2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libjava version-unused.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME
='libjava'
269 PACKAGE_TARNAME
='libjava'
270 PACKAGE_VERSION
='version-unused'
271 PACKAGE_STRING
='libjava version-unused'
274 ac_unique_file
="java/lang/System.java"
275 ac_subdirs_all
="$ac_subdirs_all libltdl"
276 # Factoring default headers for most tests.
277 ac_includes_default
="\
280 # include <sys/types.h>
283 # include <sys/stat.h>
294 # if !STDC_HEADERS && HAVE_MEMORY_H
300 # include <strings.h>
303 # include <inttypes.h>
313 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_subdir host_subdir target_subdir libgcj_basedir host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical LN_S mkinstalldirs CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LDFLAGS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBGCJ_CFLAGS LIBGCJ_CXXFLAGS LIBGCJ_JAVAFLAGS LIBGCJ_LD_SYMBOLIC INCLTDL LIBLTDL DIRLTDL LIBTOOL CXXCPP CPPFLAGS GCJ GCJFLAGS GCJDEPMODE am__fastdepGCJ_TRUE am__fastdepGCJ_FALSE subdirs TESTSUBDIR_TRUE TESTSUBDIR_FALSE ONESTEP_TRUE ONESTEP_FALSE LIBGCJDEBUG INTERPRETER LIBFFI LIBFFIINCS PLATFORM_INNER_NAT_HDRS CPP EGREP USING_WIN32_PLATFORM_TRUE USING_WIN32_PLATFORM_FALSE USING_POSIX_PLATFORM_TRUE USING_POSIX_PLATFORM_FALSE USING_ECOS_PLATFORM_TRUE USING_ECOS_PLATFORM_FALSE USING_DARWIN_CRT_TRUE USING_DARWIN_CRT_FALSE SYSTEMSPEC LIBGCJTESTSPEC ZLIBSPEC ZLIBTESTSPEC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE GTK_AWT_TRUE GTK_AWT_FALSE GTK_CAIRO_TRUE GTK_CAIRO_FALSE PKG_CONFIG CAIRO_CFLAGS CAIRO_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS GCLIBS GCINCS GCDEPS GCSPEC JC1GCSPEC GCTESTSPEC USING_BOEHMGC_TRUE USING_BOEHMGC_FALSE USING_NOGC_TRUE USING_NOGC_FALSE THREADLIBS THREADINCS THREADDEPS THREADSPEC THREADLDFLAGS THREADCXXFLAGS USING_POSIX_THREADS_TRUE USING_POSIX_THREADS_FALSE USING_WIN32_THREADS_TRUE USING_WIN32_THREADS_FALSE USING_NO_THREADS_TRUE USING_NO_THREADS_FALSE HASH_SYNC_SPEC USING_GCC_TRUE USING_GCC_FALSE LIBICONV LTLIBICONV GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS SUPPLY_BACKTRACE_TRUE SUPPLY_BACKTRACE_FALSE GCJH ZIP CLASSPATH_SEPARATOR ac_ct_GCJ ZLIBS SYS_ZLIBS ZINCS DIVIDESPEC CHECKREFSPEC EXCEPTIONSPEC IEEESPEC NATIVE_TRUE NATIVE_FALSE NEEDS_DATA_START_TRUE NEEDS_DATA_START_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir GCJVERSION gxx_include_dir libstdcxx_incdir ALLOCA PERL BACKTRACESPEC SYSDEP_SOURCES here LIBOBJS LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version
=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name
=s
,x
,x
,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir
='${exec_prefix}/bin'
342 sbindir
='${exec_prefix}/sbin'
343 libexecdir
='${exec_prefix}/libexec'
344 datadir
='${prefix}/share'
345 sysconfdir
='${prefix}/etc'
346 sharedstatedir
='${prefix}/com'
347 localstatedir
='${prefix}/var'
348 libdir
='${exec_prefix}/lib'
349 includedir
='${prefix}/include'
350 oldincludedir
='/usr/include'
351 infodir
='${prefix}/info'
352 mandir
='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
372 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
375 -build |
--build |
--buil |
--bui |
--bu)
376 ac_prev
=build_alias
;;
377 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
378 build_alias
=$ac_optarg ;;
380 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
381 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
382 ac_prev
=cache_file
;;
383 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
384 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
385 cache_file
=$ac_optarg ;;
388 cache_file
=config.cache
;;
390 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
392 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
394 datadir
=$ac_optarg ;;
396 -disable-* |
--disable-*)
397 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* |
--enable-*)
406 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
419 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
420 |
--exec |
--exe |
--ex)
421 ac_prev
=exec_prefix
;;
422 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
423 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
424 |
--exec=* |
--exe=* |
--ex=*)
425 exec_prefix
=$ac_optarg ;;
427 -gas |
--gas |
--ga |
--g)
428 # Obsolete; use --with-gas.
431 -help |
--help |
--hel |
--he |
-h)
433 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
434 ac_init_help
=recursive
;;
435 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
436 ac_init_help
=short
;;
438 -host |
--host |
--hos |
--ho)
439 ac_prev
=host_alias
;;
440 -host=* |
--host=* |
--hos=* |
--ho=*)
441 host_alias
=$ac_optarg ;;
443 -includedir |
--includedir |
--includedi |
--included |
--include \
444 |
--includ |
--inclu |
--incl |
--inc)
445 ac_prev
=includedir
;;
446 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
447 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
448 includedir
=$ac_optarg ;;
450 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
452 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
453 infodir
=$ac_optarg ;;
455 -libdir |
--libdir |
--libdi |
--libd)
457 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
460 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
461 |
--libexe |
--libex |
--libe)
462 ac_prev
=libexecdir
;;
463 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
464 |
--libexe=* |
--libex=* |
--libe=*)
465 libexecdir
=$ac_optarg ;;
467 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
468 |
--localstate |
--localstat |
--localsta |
--localst \
469 |
--locals |
--local |
--loca |
--loc |
--lo)
470 ac_prev
=localstatedir
;;
471 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
472 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
473 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
474 localstatedir
=$ac_optarg ;;
476 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
478 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
482 # Obsolete; use --without-fp.
485 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
486 |
--no-cr |
--no-c |
-n)
489 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
490 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
493 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
494 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
495 |
--oldin |
--oldi |
--old |
--ol |
--o)
496 ac_prev
=oldincludedir
;;
497 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
498 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
499 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
500 oldincludedir
=$ac_optarg ;;
502 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
504 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
507 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
508 |
--program-pre |
--program-pr |
--program-p)
509 ac_prev
=program_prefix
;;
510 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
511 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
512 program_prefix
=$ac_optarg ;;
514 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
515 |
--program-suf |
--program-su |
--program-s)
516 ac_prev
=program_suffix
;;
517 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
518 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
519 program_suffix
=$ac_optarg ;;
521 -program-transform-name |
--program-transform-name \
522 |
--program-transform-nam |
--program-transform-na \
523 |
--program-transform-n |
--program-transform- \
524 |
--program-transform |
--program-transfor \
525 |
--program-transfo |
--program-transf \
526 |
--program-trans |
--program-tran \
527 |
--progr-tra |
--program-tr |
--program-t)
528 ac_prev
=program_transform_name
;;
529 -program-transform-name=* |
--program-transform-name=* \
530 |
--program-transform-nam=* |
--program-transform-na=* \
531 |
--program-transform-n=* |
--program-transform-=* \
532 |
--program-transform=* |
--program-transfor=* \
533 |
--program-transfo=* |
--program-transf=* \
534 |
--program-trans=* |
--program-tran=* \
535 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
536 program_transform_name
=$ac_optarg ;;
538 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
539 |
-silent |
--silent |
--silen |
--sile |
--sil)
542 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
544 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
546 sbindir
=$ac_optarg ;;
548 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
549 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
550 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
552 ac_prev
=sharedstatedir
;;
553 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
554 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
555 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
557 sharedstatedir
=$ac_optarg ;;
559 -site |
--site |
--sit)
561 -site=* |
--site=* |
--sit=*)
564 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
566 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
569 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
570 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
571 ac_prev
=sysconfdir
;;
572 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
573 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
574 sysconfdir
=$ac_optarg ;;
576 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
577 ac_prev
=target_alias
;;
578 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
579 target_alias
=$ac_optarg ;;
581 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
584 -version |
--version |
--versio |
--versi |
--vers |
-V)
588 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package
=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* |
--without-*)
601 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package
=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
614 |
--x-incl |
--x-inc |
--x-in |
--x-i)
615 ac_prev
=x_includes
;;
616 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
617 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
618 x_includes
=$ac_optarg ;;
620 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
621 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
622 ac_prev
=x_libraries
;;
623 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
624 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
625 x_libraries
=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var
in exec_prefix prefix
662 eval ac_val
=$
`echo $ac_var`
664 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val
=$
`echo $ac_var`
676 [\\/$
]* | ?
:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x
; then
691 if test "x$build_alias" = x
; then
692 cross_compiling
=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
703 test "$silent" = yes && exec 6>/dev
/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted
=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir
=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted
=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set
=${build_alias+set}
743 ac_env_build_alias_value
=$build_alias
744 ac_cv_env_build_alias_set
=${build_alias+set}
745 ac_cv_env_build_alias_value
=$build_alias
746 ac_env_host_alias_set
=${host_alias+set}
747 ac_env_host_alias_value
=$host_alias
748 ac_cv_env_host_alias_set
=${host_alias+set}
749 ac_cv_env_host_alias_value
=$host_alias
750 ac_env_target_alias_set
=${target_alias+set}
751 ac_env_target_alias_value
=$target_alias
752 ac_cv_env_target_alias_set
=${target_alias+set}
753 ac_cv_env_target_alias_value
=$target_alias
754 ac_env_CXXCPP_set
=${CXXCPP+set}
755 ac_env_CXXCPP_value
=$CXXCPP
756 ac_cv_env_CXXCPP_set
=${CXXCPP+set}
757 ac_cv_env_CXXCPP_value
=$CXXCPP
758 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
759 ac_env_CPPFLAGS_value
=$CPPFLAGS
760 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
761 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
762 ac_env_CPP_set
=${CPP+set}
763 ac_env_CPP_value
=$CPP
764 ac_cv_env_CPP_set
=${CPP+set}
765 ac_cv_env_CPP_value
=$CPP
768 # Report the --help message.
770 if test "$ac_init_help" = "long"; then
771 # Omit some internal or obsolete options to make the list less imposing.
772 # This message is too long to be a string in the A/UX 3.1 sh.
774 \`configure' configures libjava version-unused to adapt to many kinds of systems.
776 Usage: $0 [OPTION]... [VAR=VALUE]...
778 To assign environment variables (e.g., CC, CFLAGS...), specify them as
779 VAR=VALUE. See below for descriptions of some of the useful variables.
781 Defaults for the options are specified in brackets.
784 -h, --help display this help and exit
785 --help=short display options specific to this package
786 --help=recursive display the short help of all the included packages
787 -V, --version display version information and exit
788 -q, --quiet, --silent do not print \`checking...' messages
789 --cache-file=FILE cache test results in FILE [disabled]
790 -C, --config-cache alias for \`--cache-file=config.cache'
791 -n, --no-create do not create output files
792 --srcdir=DIR find the sources in DIR [configure dir or \`..']
797 Installation directories:
798 --prefix=PREFIX install architecture-independent files in PREFIX
800 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
803 By default, \`make install' will install all the files in
804 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
805 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
806 for instance \`--prefix=\$HOME'.
808 For better control, use the options below.
810 Fine tuning of the installation directories:
811 --bindir=DIR user executables [EPREFIX/bin]
812 --sbindir=DIR system admin executables [EPREFIX/sbin]
813 --libexecdir=DIR program executables [EPREFIX/libexec]
814 --datadir=DIR read-only architecture-independent data [PREFIX/share]
815 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
816 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
817 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
818 --libdir=DIR object code libraries [EPREFIX/lib]
819 --includedir=DIR C header files [PREFIX/include]
820 --oldincludedir=DIR C header files for non-gcc [/usr/include]
821 --infodir=DIR info documentation [PREFIX/info]
822 --mandir=DIR man documentation [PREFIX/man]
828 --program-prefix=PREFIX prepend PREFIX to installed program names
829 --program-suffix=SUFFIX append SUFFIX to installed program names
830 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
833 --x-includes=DIR X include files are
in DIR
834 --x-libraries=DIR X library files are
in DIR
837 --build=BUILD configure
for building on BUILD
[guessed
]
838 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
839 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive
) echo "Configuration of libjava version-unused:";;
850 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
851 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
852 --enable-version-specific-runtime-libs
853 specify that runtime libraries should be installed
854 in a compiler-specific directory
855 --enable-multilib build many library versions
(default
)
856 --disable-dependency-tracking speeds up one-time build
857 --enable-dependency-tracking do not reject slow dependency extractors
858 --enable-maintainer-mode enable make rules and dependencies not useful
859 (and sometimes confusing
) to the casual installer
860 --enable-shared=PKGS build shared libraries default
=yes
861 --enable-static=PKGS build static libraries default
=yes
862 --enable-fast-install=PKGS optimize
for fast installation default
=yes
863 --disable-libtool-lock avoid locking
(might
break parallel builds
)
864 --disable-getenv-properties
865 don
't set system properties from GCJ_PROPERTIES
866 --enable-hash-synchronization
867 use global hash table for monitor locks
868 --enable-libgcj-multifile
869 allow compilation of several files at once
871 --enable-libgcj-debug enable runtime debugging code
872 --enable-gc-debug include full support for pointer backtracing etc.
873 --enable-interpreter enable interpreter
874 --enable-sjlj-exceptions
875 force use of builtin_setjmp for exceptions
876 --disable-java-net disable java.net
877 --disable-jvmpi disable JVMPI support
878 --enable-java-awt list of AWT peer implementations to be built
879 --enable-gtk-cairo build the cairo Graphics2D implementation on GTK
880 --enable-java-gc=TYPE choose garbage collector (default is boehm)
881 --disable-rpath do not hardcode runtime library paths
884 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
885 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
886 --with-target-subdir=SUBDIR
887 configure in a subdirectory
888 --with-cross-host=HOST configure with a cross compiler from HOST
889 --with-newlib configure with newlib
890 --with-gnu-ld assume the C compiler uses GNU ld default=no
891 --with-pic try to use only PIC/non-PIC objects default=use both
892 --with-win32-nlsapi=ansi or unicows or unicode
893 native MinGW libgcj Win32 OS API (default is ansi)
894 --without-libffi don't use libffi
895 --with-ecos enable runtime eCos target support
896 --with-system-zlib use installed libz
897 --with-x use the X Window System
898 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
899 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
901 Some influential environment variables:
902 CC C compiler command
903 CFLAGS C compiler flags
904 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
905 nonstandard directory <lib dir>
906 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
907 headers in a nonstandard directory <include dir>
908 CXX C++ compiler command
909 CXXFLAGS C++ compiler flags
910 CXXCPP C++ preprocessor
913 Use these variables to override the choices made by `configure' or to
help
914 it to
find libraries and programs with nonstandard names
/locations.
919 if test "$ac_init_help" = "recursive"; then
920 # If there are subdirs, report their specific --help.
922 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
923 test -d $ac_dir ||
continue
926 if test "$ac_dir" != .
; then
927 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
928 # A "../" for each directory in $ac_dir_suffix.
929 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
931 ac_dir_suffix
= ac_top_builddir
=
935 .
) # No --srcdir option. We are building in place.
937 if test -z "$ac_top_builddir"; then
940 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
942 [\\/]* | ?
:[\\/]* ) # Absolute path.
943 ac_srcdir
=$srcdir$ac_dir_suffix;
944 ac_top_srcdir
=$srcdir ;;
946 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
947 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
950 # Do not use `cd foo && pwd` to compute absolute paths, because
951 # the directories may not exist.
953 .
) ac_abs_builddir
="$ac_dir";;
956 .
) ac_abs_builddir
=`pwd`;;
957 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
958 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
961 case $ac_abs_builddir in
962 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
964 case ${ac_top_builddir}.
in
965 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
966 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
967 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
970 case $ac_abs_builddir in
971 .
) ac_abs_srcdir
=$ac_srcdir;;
974 .
) ac_abs_srcdir
=$ac_abs_builddir;;
975 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
976 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
979 case $ac_abs_builddir in
980 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
982 case $ac_top_srcdir in
983 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
984 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
985 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
990 # Check for guested configure; otherwise get Cygnus style configure.
991 if test -f $ac_srcdir/configure.gnu
; then
993 $SHELL $ac_srcdir/configure.gnu
--help=recursive
994 elif test -f $ac_srcdir/configure
; then
996 $SHELL $ac_srcdir/configure
--help=recursive
997 elif test -f $ac_srcdir/configure.ac ||
998 test -f $ac_srcdir/configure.
in; then
1000 $ac_configure --help
1002 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1008 test -n "$ac_init_help" && exit 0
1009 if $ac_init_version; then
1011 libjava configure version-unused
1012 generated by GNU Autoconf
2.59
1014 Copyright
(C
) 2003 Free Software Foundation
, Inc.
1015 This configure
script is free software
; the Free Software Foundation
1016 gives unlimited permission to copy
, distribute and modify it.
1022 This file contains any messages produced by compilers while
1023 running configure, to aid debugging if configure makes a mistake.
1025 It was created by libjava $as_me version-unused, which was
1026 generated by GNU Autoconf 2.59. Invocation command line was
1037 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1038 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1039 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1040 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1041 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1043 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1044 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1046 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1047 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1048 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1049 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1050 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1051 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1052 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1056 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1060 test -z "$as_dir" && as_dir
=.
1061 echo "PATH: $as_dir"
1076 # Keep a trace of the command line.
1077 # Strip out --no-create and --no-recursion so they do not pile up.
1078 # Strip out --silent because we don't want to record it for future runs.
1079 # Also quote any args containing shell meta-characters.
1080 # Make two passes to allow for proper duplicate-argument suppression.
1085 ac_must_keep_next
=false
1091 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1092 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1093 |
-silent |
--silent |
--silen |
--sile |
--sil)
1095 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1096 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1099 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1101 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1102 if test $ac_must_keep_next = true
; then
1103 ac_must_keep_next
=false
# Got value, back to normal.
1106 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1107 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1108 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1109 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1110 case "$ac_configure_args0 " in
1111 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1114 -* ) ac_must_keep_next
=true
;;
1117 ac_configure_args
="$ac_configure_args$ac_sep'$ac_arg'"
1118 # Get rid of the leading space.
1124 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1125 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1127 # When interrupted or exit'd, cleanup temporary files, and complete
1128 # config.log. We remove comments because anyway the quotes in there
1129 # would cause problems or look ugly.
1130 # WARNING: Be sure not to use single quotes in there, as some shells,
1131 # such as our DU 5.0 friend, will then `close' the trap.
1132 trap 'exit_status=$?
1133 # Save into config.log some information that might help in debugging.
1138 ## ---------------- ##
1139 ## Cache variables. ##
1140 ## ---------------- ##
1143 # The following way of writing the cache mishandles newlines in values,
1146 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1149 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1150 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1154 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1161 ## ----------------- ##
1162 ## Output variables. ##
1163 ## ----------------- ##
1166 for ac_var in $ac_subst_vars
1168 eval ac_val=$`echo $ac_var`
1169 echo "$ac_var='"'"'$ac_val'"'"'"
1173 if test -n "$ac_subst_files"; then
1180 for ac_var in $ac_subst_files
1182 eval ac_val=$`echo $ac_var`
1183 echo "$ac_var='"'"'$ac_val'"'"'"
1188 if test -s confdefs.h; then
1195 sed "/^$/d" confdefs.h | sort
1198 test "$ac_signal" != 0 &&
1199 echo "$as_me: caught signal $ac_signal"
1200 echo "$as_me: exit $exit_status"
1202 rm -f core *.core &&
1203 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1206 for ac_signal
in 1 2 13 15; do
1207 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1211 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1212 rm -rf conftest
* confdefs.h
1213 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1216 # Predefined preprocessor variables.
1218 cat >>confdefs.h
<<_ACEOF
1219 #define PACKAGE_NAME "$PACKAGE_NAME"
1223 cat >>confdefs.h
<<_ACEOF
1224 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1228 cat >>confdefs.h
<<_ACEOF
1229 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1233 cat >>confdefs.h
<<_ACEOF
1234 #define PACKAGE_STRING "$PACKAGE_STRING"
1238 cat >>confdefs.h
<<_ACEOF
1239 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1243 # Let the site file select an alternate cache file if it wants to.
1244 # Prefer explicitly selected file to automatically selected ones.
1245 if test -z "$CONFIG_SITE"; then
1246 if test "x$prefix" != xNONE
; then
1247 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
1249 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1252 for ac_site_file
in $CONFIG_SITE; do
1253 if test -r "$ac_site_file"; then
1254 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1255 echo "$as_me: loading site script $ac_site_file" >&6;}
1256 sed 's/^/| /' "$ac_site_file" >&5
1261 if test -r "$cache_file"; then
1262 # Some versions of bash will fail to source /dev/null (special
1263 # files actually), so we avoid doing that.
1264 if test -f "$cache_file"; then
1265 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1266 echo "$as_me: loading cache $cache_file" >&6;}
1268 [\\/]* | ?
:[\\/]* ) .
$cache_file;;
1269 *) . .
/$cache_file;;
1273 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1274 echo "$as_me: creating cache $cache_file" >&6;}
1278 # Check that the precious variables saved in the cache have kept the same
1280 ac_cache_corrupted
=false
1281 for ac_var
in `(set) 2>&1 |
1282 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1283 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1284 eval ac_new_set
=\
$ac_env_${ac_var}_set
1285 eval ac_old_val
="\$ac_cv_env_${ac_var}_value"
1286 eval ac_new_val
="\$ac_env_${ac_var}_value"
1287 case $ac_old_set,$ac_new_set in
1289 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1290 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1291 ac_cache_corrupted
=: ;;
1293 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1294 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1295 ac_cache_corrupted
=: ;;
1298 if test "x$ac_old_val" != "x$ac_new_val"; then
1299 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1300 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1301 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1302 echo "$as_me: former value: $ac_old_val" >&2;}
1303 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1304 echo "$as_me: current value: $ac_new_val" >&2;}
1305 ac_cache_corrupted
=:
1308 # Pass precious variables to config.status.
1309 if test "$ac_new_set" = set; then
1311 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1312 ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1313 *) ac_arg
=$ac_var=$ac_new_val ;;
1315 case " $ac_configure_args " in
1316 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1317 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1321 if $ac_cache_corrupted; then
1322 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1323 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1324 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1325 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1326 { (exit 1); exit 1; }; }
1330 ac_cpp
='$CPP $CPPFLAGS'
1331 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1332 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1333 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1365 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1366 if test -f $ac_dir/install-sh
; then
1368 ac_install_sh
="$ac_aux_dir/install-sh -c"
1370 elif test -f $ac_dir/install.sh
; then
1372 ac_install_sh
="$ac_aux_dir/install.sh -c"
1374 elif test -f $ac_dir/shtool
; then
1376 ac_install_sh
="$ac_aux_dir/shtool install -c"
1380 if test -z "$ac_aux_dir"; then
1381 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1382 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1383 { (exit 1); exit 1; }; }
1385 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1386 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1387 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1389 # Make sure we can run config.sub.
1390 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1391 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1392 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1393 { (exit 1); exit 1; }; }
1395 echo "$as_me:$LINENO: checking build system type" >&5
1396 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1397 if test "${ac_cv_build+set}" = set; then
1398 echo $ECHO_N "(cached) $ECHO_C" >&6
1400 ac_cv_build_alias
=$build_alias
1401 test -z "$ac_cv_build_alias" &&
1402 ac_cv_build_alias
=`$ac_config_guess`
1403 test -z "$ac_cv_build_alias" &&
1404 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1405 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1406 { (exit 1); exit 1; }; }
1407 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1408 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1409 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1410 { (exit 1); exit 1; }; }
1413 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1414 echo "${ECHO_T}$ac_cv_build" >&6
1416 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1417 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1418 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1421 case ${build_alias} in
1422 "") build_noncanonical
=${build} ;;
1423 *) build_noncanonical
=${build_alias} ;;
1426 case ${host_alias} in
1427 "") host_noncanonical
=${build_noncanonical} ;;
1428 *) host_noncanonical
=${host_alias} ;;
1431 case ${target_alias} in
1432 "") target_noncanonical
=${host_noncanonical} ;;
1433 *) target_noncanonical
=${target_alias} ;;
1436 # Prefix 'build-' so this never conflicts with target_subdir.
1437 build_subdir
="build-${build_noncanonical}"
1438 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1439 if ( test $srcdir = .
&& test -d gcc
) \
1440 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
1441 host_subdir
="host-${host_noncanonical}"
1446 target_subdir
=${target_noncanonical}
1449 # We use these options to decide which functions to include.
1451 # Check whether --with-target-subdir or --without-target-subdir was given.
1452 if test "${with_target_subdir+set}" = set; then
1453 withval
="$with_target_subdir"
1457 # We may get other options which we don't document:
1458 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1460 # When building with srcdir == objdir, links to the source files will
1461 # be created in directories within the target_subdir. We have to
1462 # adjust toplevel_srcdir accordingly, so that configure finds
1463 # install-sh and other auxiliary files that live in the top-level
1465 if test "${srcdir}" = "."; then
1466 if test -z "${with_target_subdir}"; then
1469 if test "${with_target_subdir}" != "."; then
1470 toprel
="${with_multisrctop}../.."
1472 toprel
="${with_multisrctop}.."
1479 libgcj_basedir
=$srcdir/$toprel/.
/libjava
1482 echo "$as_me:$LINENO: checking host system type" >&5
1483 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1484 if test "${ac_cv_host+set}" = set; then
1485 echo $ECHO_N "(cached) $ECHO_C" >&6
1487 ac_cv_host_alias
=$host_alias
1488 test -z "$ac_cv_host_alias" &&
1489 ac_cv_host_alias
=$ac_cv_build_alias
1490 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1491 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1492 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1493 { (exit 1); exit 1; }; }
1496 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1497 echo "${ECHO_T}$ac_cv_host" >&6
1499 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1500 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1501 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1504 echo "$as_me:$LINENO: checking target system type" >&5
1505 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1506 if test "${ac_cv_target+set}" = set; then
1507 echo $ECHO_N "(cached) $ECHO_C" >&6
1509 ac_cv_target_alias
=$target_alias
1510 test "x$ac_cv_target_alias" = "x" &&
1511 ac_cv_target_alias
=$ac_cv_host_alias
1512 ac_cv_target
=`$ac_config_sub $ac_cv_target_alias` ||
1513 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1514 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1515 { (exit 1); exit 1; }; }
1518 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1519 echo "${ECHO_T}$ac_cv_target" >&6
1520 target
=$ac_cv_target
1521 target_cpu
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1522 target_vendor
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1523 target_os
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1526 # The aliases save the names the user supplied, while $host etc.
1527 # will get canonicalized.
1528 test -n "$target_alias" &&
1529 test "$program_prefix$program_suffix$program_transform_name" = \
1531 program_prefix
=${target_alias}-
1532 case ${build_alias} in
1533 "") build_noncanonical
=${build} ;;
1534 *) build_noncanonical
=${build_alias} ;;
1537 case ${target_alias} in
1538 "") target_noncanonical
=${host_noncanonical} ;;
1539 *) target_noncanonical
=${target_alias} ;;
1545 # This works around the fact that libtool configuration may change LD
1546 # for this particular configuration, but some shells, instead of
1547 # keeping the changes in LD private, export them just because LD is
1549 ORIGINAL_LD_FOR_MULTILIBS
=$LD
1551 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1552 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1554 if test "$LN_S" = "ln -s"; then
1555 echo "$as_me:$LINENO: result: yes" >&5
1556 echo "${ECHO_T}yes" >&6
1558 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1559 echo "${ECHO_T}no, using $LN_S" >&6
1563 # This works around an automake problem.
1564 mkinstalldirs
="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1568 # Check whether --with-cross-host or --without-cross-host was given.
1569 if test "${with_cross_host+set}" = set; then
1570 withval
="$with_cross_host"
1575 # Check whether --with-newlib or --without-newlib was given.
1576 if test "${with_newlib+set}" = set; then
1577 withval
="$with_newlib"
1581 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1582 if test "${enable_version_specific_runtime_libs+set}" = set; then
1583 enableval
="$enable_version_specific_runtime_libs"
1584 case "$enableval" in
1585 yes) version_specific_libs
=yes ;;
1586 no
) version_specific_libs
=no
;;
1587 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1588 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1589 { (exit 1); exit 1; }; };;
1592 version_specific_libs
=no
1596 # Default to --enable-multilib
1597 # Check whether --enable-multilib or --disable-multilib was given.
1598 if test "${enable_multilib+set}" = set; then
1599 enableval
="$enable_multilib"
1600 case "${enableval}" in
1601 yes) multilib
=yes ;;
1603 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1604 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1605 { (exit 1); exit 1; }; } ;;
1610 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1613 # (1) We use an abnormal CXX (without library references), so we
1614 # must cache it under a different name.
1615 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1616 # the non-multilib-adjusted value will be used in multilibs.
1617 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1618 # (4) As another side effect, automake doesn't automatically include them
1620 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1621 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1622 # used in later tests. This may not be necessary in libjava; I don't know.
1626 save_CXXFLAGS
="$CXXFLAGS"
1627 CXXFLAGS
="$CXXFLAGS -fno-builtin"
1629 ac_cpp
='$CPP $CPPFLAGS'
1630 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1631 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1632 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1633 if test -n "$ac_tool_prefix"; then
1634 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1635 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1636 echo "$as_me:$LINENO: checking for $ac_word" >&5
1637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1638 if test "${ac_cv_prog_CC+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1641 if test -n "$CC"; then
1642 ac_cv_prog_CC
="$CC" # Let the user override the test.
1644 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1648 test -z "$as_dir" && as_dir
=.
1649 for ac_exec_ext
in '' $ac_executable_extensions; do
1650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1651 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1661 if test -n "$CC"; then
1662 echo "$as_me:$LINENO: result: $CC" >&5
1663 echo "${ECHO_T}$CC" >&6
1665 echo "$as_me:$LINENO: result: no" >&5
1666 echo "${ECHO_T}no" >&6
1670 if test -z "$ac_cv_prog_CC"; then
1672 # Extract the first word of "gcc", so it can be a program name with args.
1673 set dummy gcc
; ac_word
=$2
1674 echo "$as_me:$LINENO: checking for $ac_word" >&5
1675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1676 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1677 echo $ECHO_N "(cached) $ECHO_C" >&6
1679 if test -n "$ac_ct_CC"; then
1680 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1682 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1686 test -z "$as_dir" && as_dir
=.
1687 for ac_exec_ext
in '' $ac_executable_extensions; do
1688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1689 ac_cv_prog_ac_ct_CC
="gcc"
1690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1698 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1699 if test -n "$ac_ct_CC"; then
1700 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1701 echo "${ECHO_T}$ac_ct_CC" >&6
1703 echo "$as_me:$LINENO: result: no" >&5
1704 echo "${ECHO_T}no" >&6
1712 if test -z "$CC"; then
1713 if test -n "$ac_tool_prefix"; then
1714 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1715 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1716 echo "$as_me:$LINENO: checking for $ac_word" >&5
1717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1718 if test "${ac_cv_prog_CC+set}" = set; then
1719 echo $ECHO_N "(cached) $ECHO_C" >&6
1721 if test -n "$CC"; then
1722 ac_cv_prog_CC
="$CC" # Let the user override the test.
1724 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1728 test -z "$as_dir" && as_dir
=.
1729 for ac_exec_ext
in '' $ac_executable_extensions; do
1730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1731 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1741 if test -n "$CC"; then
1742 echo "$as_me:$LINENO: result: $CC" >&5
1743 echo "${ECHO_T}$CC" >&6
1745 echo "$as_me:$LINENO: result: no" >&5
1746 echo "${ECHO_T}no" >&6
1750 if test -z "$ac_cv_prog_CC"; then
1752 # Extract the first word of "cc", so it can be a program name with args.
1753 set dummy cc
; ac_word
=$2
1754 echo "$as_me:$LINENO: checking for $ac_word" >&5
1755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1756 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1757 echo $ECHO_N "(cached) $ECHO_C" >&6
1759 if test -n "$ac_ct_CC"; then
1760 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1762 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1766 test -z "$as_dir" && as_dir
=.
1767 for ac_exec_ext
in '' $ac_executable_extensions; do
1768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1769 ac_cv_prog_ac_ct_CC
="cc"
1770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1778 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1779 if test -n "$ac_ct_CC"; then
1780 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1781 echo "${ECHO_T}$ac_ct_CC" >&6
1783 echo "$as_me:$LINENO: result: no" >&5
1784 echo "${ECHO_T}no" >&6
1793 if test -z "$CC"; then
1794 # Extract the first word of "cc", so it can be a program name with args.
1795 set dummy cc
; ac_word
=$2
1796 echo "$as_me:$LINENO: checking for $ac_word" >&5
1797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1798 if test "${ac_cv_prog_CC+set}" = set; then
1799 echo $ECHO_N "(cached) $ECHO_C" >&6
1801 if test -n "$CC"; then
1802 ac_cv_prog_CC
="$CC" # Let the user override the test.
1805 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1809 test -z "$as_dir" && as_dir
=.
1810 for ac_exec_ext
in '' $ac_executable_extensions; do
1811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1812 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1813 ac_prog_rejected
=yes
1817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1823 if test $ac_prog_rejected = yes; then
1824 # We found a bogon in the path, so make sure we never use it.
1825 set dummy
$ac_cv_prog_CC
1827 if test $# != 0; then
1828 # We chose a different compiler from the bogus one.
1829 # However, it has the same basename, so the bogon will be chosen
1830 # first if we set CC to just the basename; use the full file name.
1832 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1838 if test -n "$CC"; then
1839 echo "$as_me:$LINENO: result: $CC" >&5
1840 echo "${ECHO_T}$CC" >&6
1842 echo "$as_me:$LINENO: result: no" >&5
1843 echo "${ECHO_T}no" >&6
1847 if test -z "$CC"; then
1848 if test -n "$ac_tool_prefix"; then
1851 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1852 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1853 echo "$as_me:$LINENO: checking for $ac_word" >&5
1854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1855 if test "${ac_cv_prog_CC+set}" = set; then
1856 echo $ECHO_N "(cached) $ECHO_C" >&6
1858 if test -n "$CC"; then
1859 ac_cv_prog_CC
="$CC" # Let the user override the test.
1861 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1865 test -z "$as_dir" && as_dir
=.
1866 for ac_exec_ext
in '' $ac_executable_extensions; do
1867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1868 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1878 if test -n "$CC"; then
1879 echo "$as_me:$LINENO: result: $CC" >&5
1880 echo "${ECHO_T}$CC" >&6
1882 echo "$as_me:$LINENO: result: no" >&5
1883 echo "${ECHO_T}no" >&6
1886 test -n "$CC" && break
1889 if test -z "$CC"; then
1893 # Extract the first word of "$ac_prog", so it can be a program name with args.
1894 set dummy
$ac_prog; ac_word
=$2
1895 echo "$as_me:$LINENO: checking for $ac_word" >&5
1896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1897 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1898 echo $ECHO_N "(cached) $ECHO_C" >&6
1900 if test -n "$ac_ct_CC"; then
1901 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1903 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1907 test -z "$as_dir" && as_dir
=.
1908 for ac_exec_ext
in '' $ac_executable_extensions; do
1909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1910 ac_cv_prog_ac_ct_CC
="$ac_prog"
1911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1919 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1920 if test -n "$ac_ct_CC"; then
1921 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1922 echo "${ECHO_T}$ac_ct_CC" >&6
1924 echo "$as_me:$LINENO: result: no" >&5
1925 echo "${ECHO_T}no" >&6
1928 test -n "$ac_ct_CC" && break
1937 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1938 See \`config.log' for more details." >&5
1939 echo "$as_me: error: no acceptable C compiler found in \$PATH
1940 See \`config.log' for more details." >&2;}
1941 { (exit 1); exit 1; }; }
1943 # Provide some information about the compiler.
1944 echo "$as_me:$LINENO:" \
1945 "checking for C compiler version" >&5
1946 ac_compiler
=`set X $ac_compile; echo $2`
1947 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1948 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1951 (exit $ac_status); }
1952 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1953 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1956 (exit $ac_status); }
1957 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1958 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1961 (exit $ac_status); }
1963 cat >conftest.
$ac_ext <<_ACEOF
1966 cat confdefs.h
>>conftest.
$ac_ext
1967 cat >>conftest.
$ac_ext <<_ACEOF
1968 /* end confdefs.h. */
1979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1980 (eval $ac_link) 2>&5
1982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1983 (exit $ac_status); }; then
1989 if test x
$gcc_no_link = xyes
; then
1990 # Setting cross_compile will disable run tests; it will
1991 # also disable AC_CHECK_FILE but that's generally
1992 # correct if we can't link.
1996 cat >conftest.
$ac_ext <<_ACEOF
1999 cat confdefs.h
>>conftest.
$ac_ext
2000 cat >>conftest.
$ac_ext <<_ACEOF
2001 /* end confdefs.h. */
2011 ac_clean_files_save
=$ac_clean_files
2012 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2013 # Try to create an executable without -o first, disregard a.out.
2014 # It will help us diagnose broken compilers, and finding out an intuition
2016 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2017 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2018 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2019 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2020 (eval $ac_link_default) 2>&5
2022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2023 (exit $ac_status); }; then
2024 # Find the output, starting from the most likely. This scheme is
2025 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2028 # Be careful to initialize this variable, since it used to be cached.
2029 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2031 # b.out is created by i960 compilers.
2032 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2034 test -f "$ac_file" ||
continue
2036 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2039 # This is the source file.
2042 # We found the default executable, but exeext='' is most
2046 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2047 # FIXME: I believe we export ac_cv_exeext for Libtool,
2048 # but it would be cool to find out if it's true. Does anybody
2049 # maintain Libtool? --akim.
2057 echo "$as_me: failed program was:" >&5
2058 sed 's/^/| /' conftest.
$ac_ext >&5
2060 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2061 See \`config.log' for more details." >&5
2062 echo "$as_me: error: C compiler cannot create executables
2063 See \`config.log' for more details." >&2;}
2064 { (exit 77); exit 77; }; }
2067 ac_exeext
=$ac_cv_exeext
2068 echo "$as_me:$LINENO: result: $ac_file" >&5
2069 echo "${ECHO_T}$ac_file" >&6
2071 # Check the compiler produces executables we can run. If not, either
2072 # the compiler is broken, or we cross compile.
2073 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2074 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2075 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2076 # If not cross compiling, check that we can run a simple program.
2077 if test "$cross_compiling" != yes; then
2078 if { ac_try
='./$ac_file'
2079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083 (exit $ac_status); }; }; then
2086 if test "$cross_compiling" = maybe
; then
2089 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2090 If you meant to cross compile, use \`--host'.
2091 See \`config.log' for more details." >&5
2092 echo "$as_me: error: cannot run C compiled programs.
2093 If you meant to cross compile, use \`--host'.
2094 See \`config.log' for more details." >&2;}
2095 { (exit 1); exit 1; }; }
2099 echo "$as_me:$LINENO: result: yes" >&5
2100 echo "${ECHO_T}yes" >&6
2102 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2103 ac_clean_files
=$ac_clean_files_save
2104 # Check the compiler produces executables we can run. If not, either
2105 # the compiler is broken, or we cross compile.
2106 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2107 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2108 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2109 echo "${ECHO_T}$cross_compiling" >&6
2111 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2112 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2114 (eval $ac_link) 2>&5
2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117 (exit $ac_status); }; then
2118 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2119 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2120 # work properly (i.e., refer to `conftest.exe'), while it won't with
2122 for ac_file
in conftest.exe conftest conftest.
*; do
2123 test -f "$ac_file" ||
continue
2125 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2126 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2133 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2134 See \`config.log' for more details." >&5
2135 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2136 See \`config.log' for more details." >&2;}
2137 { (exit 1); exit 1; }; }
2140 rm -f conftest
$ac_cv_exeext
2141 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2142 echo "${ECHO_T}$ac_cv_exeext" >&6
2144 rm -f conftest.
$ac_ext
2145 EXEEXT
=$ac_cv_exeext
2148 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2149 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2150 if test "${ac_cv_objext+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2153 cat >conftest.
$ac_ext <<_ACEOF
2156 cat confdefs.h
>>conftest.
$ac_ext
2157 cat >>conftest.
$ac_ext <<_ACEOF
2158 /* end confdefs.h. */
2168 rm -f conftest.o conftest.obj
2169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2170 (eval $ac_compile) 2>&5
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); }; then
2174 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2176 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2177 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2182 echo "$as_me: failed program was:" >&5
2183 sed 's/^/| /' conftest.
$ac_ext >&5
2185 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2186 See \`config.log' for more details." >&5
2187 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2188 See \`config.log' for more details." >&2;}
2189 { (exit 1); exit 1; }; }
2192 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2194 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2195 echo "${ECHO_T}$ac_cv_objext" >&6
2196 OBJEXT
=$ac_cv_objext
2198 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2199 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2200 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2201 echo $ECHO_N "(cached) $ECHO_C" >&6
2203 cat >conftest.
$ac_ext <<_ACEOF
2206 cat confdefs.h
>>conftest.
$ac_ext
2207 cat >>conftest.
$ac_ext <<_ACEOF
2208 /* end confdefs.h. */
2221 rm -f conftest.
$ac_objext
2222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2223 (eval $ac_compile) 2>conftest.er1
2225 grep -v '^ *+' conftest.er1
>conftest.err
2227 cat conftest.err
>&5
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); } &&
2230 { ac_try
='test -z "$ac_c_werror_flag"
2231 || test ! -s conftest.err'
2232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); }; } &&
2237 { ac_try
='test -s conftest.$ac_objext'
2238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); }; }; then
2245 echo "$as_me: failed program was:" >&5
2246 sed 's/^/| /' conftest.
$ac_ext >&5
2250 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2251 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2254 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2255 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2256 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2257 ac_test_CFLAGS
=${CFLAGS+set}
2258 ac_save_CFLAGS
=$CFLAGS
2260 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2261 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2262 if test "${ac_cv_prog_cc_g+set}" = set; then
2263 echo $ECHO_N "(cached) $ECHO_C" >&6
2265 cat >conftest.
$ac_ext <<_ACEOF
2268 cat confdefs.h
>>conftest.
$ac_ext
2269 cat >>conftest.
$ac_ext <<_ACEOF
2270 /* end confdefs.h. */
2280 rm -f conftest.
$ac_objext
2281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2282 (eval $ac_compile) 2>conftest.er1
2284 grep -v '^ *+' conftest.er1
>conftest.err
2286 cat conftest.err
>&5
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); } &&
2289 { ac_try
='test -z "$ac_c_werror_flag"
2290 || test ! -s conftest.err'
2291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295 (exit $ac_status); }; } &&
2296 { ac_try
='test -s conftest.$ac_objext'
2297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); }; }; then
2304 echo "$as_me: failed program was:" >&5
2305 sed 's/^/| /' conftest.
$ac_ext >&5
2309 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2311 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2312 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2313 if test "$ac_test_CFLAGS" = set; then
2314 CFLAGS
=$ac_save_CFLAGS
2315 elif test $ac_cv_prog_cc_g = yes; then
2316 if test "$GCC" = yes; then
2322 if test "$GCC" = yes; then
2328 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2329 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2330 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2331 echo $ECHO_N "(cached) $ECHO_C" >&6
2333 ac_cv_prog_cc_stdc
=no
2335 cat >conftest.
$ac_ext <<_ACEOF
2338 cat confdefs.h
>>conftest.
$ac_ext
2339 cat >>conftest.
$ac_ext <<_ACEOF
2340 /* end confdefs.h. */
2343 #include <sys/types.h>
2344 #include <sys/stat.h>
2345 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2346 struct buf { int x; };
2347 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2348 static char *e (p, i)
2354 static char *f (char * (*g) (char **, int), char **p, ...)
2359 s = g (p, va_arg (v,int));
2364 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2365 function prototypes and stuff, but not '\xHH' hex character constants.
2366 These don't provoke an error unfortunately, instead are silently treated
2367 as 'x'. The following induces an error, until -std1 is added to get
2368 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2369 array size at least. It's necessary to write '\x00'==0 to get something
2370 that's true only with -std1. */
2371 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2373 int test (int i, double x);
2374 struct s1 {int (*f) (int a);};
2375 struct s2 {int (*f) (double a);};
2376 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2382 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2387 # Don't try gcc -ansi; that turns off useful extensions and
2388 # breaks some systems' header files.
2389 # AIX -qlanglvl=ansi
2390 # Ultrix and OSF/1 -std1
2391 # HP-UX 10.20 and later -Ae
2392 # HP-UX older versions -Aa -D_HPUX_SOURCE
2393 # SVR4 -Xc -D__EXTENSIONS__
2394 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2396 CC
="$ac_save_CC $ac_arg"
2397 rm -f conftest.
$ac_objext
2398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2399 (eval $ac_compile) 2>conftest.er1
2401 grep -v '^ *+' conftest.er1
>conftest.err
2403 cat conftest.err
>&5
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); } &&
2406 { ac_try
='test -z "$ac_c_werror_flag"
2407 || test ! -s conftest.err'
2408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }; } &&
2413 { ac_try
='test -s conftest.$ac_objext'
2414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); }; }; then
2419 ac_cv_prog_cc_stdc
=$ac_arg
2422 echo "$as_me: failed program was:" >&5
2423 sed 's/^/| /' conftest.
$ac_ext >&5
2426 rm -f conftest.err conftest.
$ac_objext
2428 rm -f conftest.
$ac_ext conftest.
$ac_objext
2433 case "x$ac_cv_prog_cc_stdc" in
2435 echo "$as_me:$LINENO: result: none needed" >&5
2436 echo "${ECHO_T}none needed" >&6 ;;
2438 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2439 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2440 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2443 # Some people use a C++ compiler to compile C. Since we use `exit',
2444 # in C++ we need to declare it. In case someone uses the same compiler
2445 # for both compiling C and C++ we need to have the C++ compiler decide
2446 # the declaration of exit, since it's the most demanding environment.
2447 cat >conftest.
$ac_ext <<_ACEOF
2452 rm -f conftest.
$ac_objext
2453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2454 (eval $ac_compile) 2>conftest.er1
2456 grep -v '^ *+' conftest.er1
>conftest.err
2458 cat conftest.err
>&5
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); } &&
2461 { ac_try
='test -z "$ac_c_werror_flag"
2462 || test ! -s conftest.err'
2463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }; } &&
2468 { ac_try
='test -s conftest.$ac_objext'
2469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); }; }; then
2474 for ac_declaration
in \
2476 'extern "C" void std::exit (int) throw (); using std::exit;' \
2477 'extern "C" void std::exit (int); using std::exit;' \
2478 'extern "C" void exit (int) throw ();' \
2479 'extern "C" void exit (int);' \
2482 cat >conftest.
$ac_ext <<_ACEOF
2485 cat confdefs.h
>>conftest.
$ac_ext
2486 cat >>conftest.
$ac_ext <<_ACEOF
2487 /* end confdefs.h. */
2498 rm -f conftest.
$ac_objext
2499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2500 (eval $ac_compile) 2>conftest.er1
2502 grep -v '^ *+' conftest.er1
>conftest.err
2504 cat conftest.err
>&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); } &&
2507 { ac_try
='test -z "$ac_c_werror_flag"
2508 || test ! -s conftest.err'
2509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; } &&
2514 { ac_try
='test -s conftest.$ac_objext'
2515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); }; }; then
2522 echo "$as_me: failed program was:" >&5
2523 sed 's/^/| /' conftest.
$ac_ext >&5
2527 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2528 cat >conftest.
$ac_ext <<_ACEOF
2531 cat confdefs.h
>>conftest.
$ac_ext
2532 cat >>conftest.
$ac_ext <<_ACEOF
2533 /* end confdefs.h. */
2543 rm -f conftest.
$ac_objext
2544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2545 (eval $ac_compile) 2>conftest.er1
2547 grep -v '^ *+' conftest.er1
>conftest.err
2549 cat conftest.err
>&5
2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); } &&
2552 { ac_try
='test -z "$ac_c_werror_flag"
2553 || test ! -s conftest.err'
2554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); }; } &&
2559 { ac_try
='test -s conftest.$ac_objext'
2560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }; }; then
2567 echo "$as_me: failed program was:" >&5
2568 sed 's/^/| /' conftest.
$ac_ext >&5
2571 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2574 if test -n "$ac_declaration"; then
2575 echo '#ifdef __cplusplus' >>confdefs.h
2576 echo $ac_declaration >>confdefs.h
2577 echo '#endif' >>confdefs.h
2581 echo "$as_me: failed program was:" >&5
2582 sed 's/^/| /' conftest.
$ac_ext >&5
2585 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2587 ac_cpp
='$CPP $CPPFLAGS'
2588 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2589 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2590 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2593 ac_cpp
='$CXXCPP $CPPFLAGS'
2594 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2595 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2596 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2597 if test -n "$ac_tool_prefix"; then
2598 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
2600 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2601 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2602 echo "$as_me:$LINENO: checking for $ac_word" >&5
2603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2604 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2605 echo $ECHO_N "(cached) $ECHO_C" >&6
2607 if test -n "$CXX"; then
2608 glibcxx_cv_prog_CXX
="$CXX" # Let the user override the test.
2610 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2614 test -z "$as_dir" && as_dir
=.
2615 for ac_exec_ext
in '' $ac_executable_extensions; do
2616 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2617 glibcxx_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
2618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2626 CXX
=$glibcxx_cv_prog_CXX
2627 if test -n "$CXX"; then
2628 echo "$as_me:$LINENO: result: $CXX" >&5
2629 echo "${ECHO_T}$CXX" >&6
2631 echo "$as_me:$LINENO: result: no" >&5
2632 echo "${ECHO_T}no" >&6
2635 test -n "$CXX" && break
2638 if test -z "$CXX"; then
2640 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
2642 # Extract the first word of "$ac_prog", so it can be a program name with args.
2643 set dummy
$ac_prog; ac_word
=$2
2644 echo "$as_me:$LINENO: checking for $ac_word" >&5
2645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2646 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2647 echo $ECHO_N "(cached) $ECHO_C" >&6
2649 if test -n "$ac_ct_CXX"; then
2650 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
2652 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2656 test -z "$as_dir" && as_dir
=.
2657 for ac_exec_ext
in '' $ac_executable_extensions; do
2658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2659 ac_cv_prog_ac_ct_CXX
="$ac_prog"
2660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2668 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
2669 if test -n "$ac_ct_CXX"; then
2670 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2671 echo "${ECHO_T}$ac_ct_CXX" >&6
2673 echo "$as_me:$LINENO: result: no" >&5
2674 echo "${ECHO_T}no" >&6
2677 test -n "$ac_ct_CXX" && break
2679 test -n "$ac_ct_CXX" || ac_ct_CXX
="g++"
2685 # Provide some information about the compiler.
2686 echo "$as_me:$LINENO:" \
2687 "checking for C++ compiler version" >&5
2688 ac_compiler
=`set X $ac_compile; echo $2`
2689 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2690 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }
2694 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2695 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); }
2699 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2700 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); }
2705 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2706 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2707 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2708 echo $ECHO_N "(cached) $ECHO_C" >&6
2710 cat >conftest.
$ac_ext <<_ACEOF
2713 cat confdefs.h
>>conftest.
$ac_ext
2714 cat >>conftest.
$ac_ext <<_ACEOF
2715 /* end confdefs.h. */
2728 rm -f conftest.
$ac_objext
2729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2730 (eval $ac_compile) 2>conftest.er1
2732 grep -v '^ *+' conftest.er1
>conftest.err
2734 cat conftest.err
>&5
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); } &&
2737 { ac_try
='test -z "$ac_cxx_werror_flag"
2738 || test ! -s conftest.err'
2739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); }; } &&
2744 { ac_try
='test -s conftest.$ac_objext'
2745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); }; }; then
2752 echo "$as_me: failed program was:" >&5
2753 sed 's/^/| /' conftest.
$ac_ext >&5
2757 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2758 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
2761 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2762 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2763 GXX
=`test $ac_compiler_gnu = yes && echo yes`
2764 ac_test_CXXFLAGS
=${CXXFLAGS+set}
2765 ac_save_CXXFLAGS
=$CXXFLAGS
2767 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2768 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2769 if test "${ac_cv_prog_cxx_g+set}" = set; then
2770 echo $ECHO_N "(cached) $ECHO_C" >&6
2772 cat >conftest.
$ac_ext <<_ACEOF
2775 cat confdefs.h
>>conftest.
$ac_ext
2776 cat >>conftest.
$ac_ext <<_ACEOF
2777 /* end confdefs.h. */
2787 rm -f conftest.
$ac_objext
2788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2789 (eval $ac_compile) 2>conftest.er1
2791 grep -v '^ *+' conftest.er1
>conftest.err
2793 cat conftest.err
>&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); } &&
2796 { ac_try
='test -z "$ac_cxx_werror_flag"
2797 || test ! -s conftest.err'
2798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; } &&
2803 { ac_try
='test -s conftest.$ac_objext'
2804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; }; then
2809 ac_cv_prog_cxx_g
=yes
2811 echo "$as_me: failed program was:" >&5
2812 sed 's/^/| /' conftest.
$ac_ext >&5
2816 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2818 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2819 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2820 if test "$ac_test_CXXFLAGS" = set; then
2821 CXXFLAGS
=$ac_save_CXXFLAGS
2822 elif test $ac_cv_prog_cxx_g = yes; then
2823 if test "$GXX" = yes; then
2829 if test "$GXX" = yes; then
2835 for ac_declaration
in \
2837 'extern "C" void std::exit (int) throw (); using std::exit;' \
2838 'extern "C" void std::exit (int); using std::exit;' \
2839 'extern "C" void exit (int) throw ();' \
2840 'extern "C" void exit (int);' \
2843 cat >conftest.
$ac_ext <<_ACEOF
2846 cat confdefs.h
>>conftest.
$ac_ext
2847 cat >>conftest.
$ac_ext <<_ACEOF
2848 /* end confdefs.h. */
2859 rm -f conftest.
$ac_objext
2860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2861 (eval $ac_compile) 2>conftest.er1
2863 grep -v '^ *+' conftest.er1
>conftest.err
2865 cat conftest.err
>&5
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); } &&
2868 { ac_try
='test -z "$ac_cxx_werror_flag"
2869 || test ! -s conftest.err'
2870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); }; } &&
2875 { ac_try
='test -s conftest.$ac_objext'
2876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); }; }; then
2883 echo "$as_me: failed program was:" >&5
2884 sed 's/^/| /' conftest.
$ac_ext >&5
2888 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2889 cat >conftest.
$ac_ext <<_ACEOF
2892 cat confdefs.h
>>conftest.
$ac_ext
2893 cat >>conftest.
$ac_ext <<_ACEOF
2894 /* end confdefs.h. */
2904 rm -f conftest.
$ac_objext
2905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2906 (eval $ac_compile) 2>conftest.er1
2908 grep -v '^ *+' conftest.er1
>conftest.err
2910 cat conftest.err
>&5
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); } &&
2913 { ac_try
='test -z "$ac_cxx_werror_flag"
2914 || test ! -s conftest.err'
2915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); }; } &&
2920 { ac_try
='test -s conftest.$ac_objext'
2921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }; }; then
2928 echo "$as_me: failed program was:" >&5
2929 sed 's/^/| /' conftest.
$ac_ext >&5
2932 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2935 if test -n "$ac_declaration"; then
2936 echo '#ifdef __cplusplus' >>confdefs.h
2937 echo $ac_declaration >>confdefs.h
2938 echo '#endif' >>confdefs.h
2942 ac_cpp
='$CPP $CPPFLAGS'
2943 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2944 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2945 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2947 CXXFLAGS
="$save_CXXFLAGS"
2953 am__api_version
="1.9"
2954 # Find a good install program. We prefer a C program (faster),
2955 # so one script is as good as another. But avoid the broken or
2956 # incompatible versions:
2957 # SysV /etc/install, /usr/sbin/install
2958 # SunOS /usr/etc/install
2959 # IRIX /sbin/install
2961 # AmigaOS /C/install, which installs bootblocks on floppy discs
2962 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2963 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2964 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2965 # OS/2's system install, which has a completely different semantic
2966 # ./install, which can be erroneously created by make from ./install.sh.
2967 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2968 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2969 if test -z "$INSTALL"; then
2970 if test "${ac_cv_path_install+set}" = set; then
2971 echo $ECHO_N "(cached) $ECHO_C" >&6
2973 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2977 test -z "$as_dir" && as_dir
=.
2978 # Account for people who put trailing slashes in PATH elements.
2980 .
/ | .
// |
/cC
/* | \
2981 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2982 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2985 # OSF1 and SCO ODT 3.0 have their own names for install.
2986 # Don't use installbsd from OSF since it installs stuff as root
2988 for ac_prog
in ginstall scoinst
install; do
2989 for ac_exec_ext
in '' $ac_executable_extensions; do
2990 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2991 if test $ac_prog = install &&
2992 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2993 # AIX install. It has an incompatible calling convention.
2995 elif test $ac_prog = install &&
2996 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2997 # program-specific install script used by HP pwplus--don't use.
3000 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3012 if test "${ac_cv_path_install+set}" = set; then
3013 INSTALL
=$ac_cv_path_install
3015 # As a last resort, use the slow shell script. We don't cache a
3016 # path for INSTALL within a source directory, because that will
3017 # break other packages using the cache if that directory is
3018 # removed, or if the path is relative.
3019 INSTALL
=$ac_install_sh
3022 echo "$as_me:$LINENO: result: $INSTALL" >&5
3023 echo "${ECHO_T}$INSTALL" >&6
3025 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3026 # It thinks the first close brace ends the variable substitution.
3027 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3029 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3031 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3033 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3034 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3037 echo timestamp
> conftest.
file
3038 # Do `set' in a subshell so we don't clobber the current shell's
3039 # arguments. Must try -L first in case configure is actually a
3040 # symlink; some systems play weird games with the mod time of symlinks
3041 # (eg FreeBSD returns the mod time of the symlink's containing
3044 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3045 if test "$*" = "X"; then
3047 set X
`ls -t $srcdir/configure conftest.file`
3050 if test "$*" != "X $srcdir/configure conftest.file" \
3051 && test "$*" != "X conftest.file $srcdir/configure"; then
3053 # If neither matched, then we have a broken ls. This can happen
3054 # if, for instance, CONFIG_SHELL is bash and it inherits a
3055 # broken ls alias from the environment. This has actually
3056 # happened. Such a system could not be considered "sane".
3057 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3058 alias in your environment" >&5
3059 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3060 alias in your environment" >&2;}
3061 { (exit 1); exit 1; }; }
3064 test "$2" = conftest.
file
3070 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3071 Check your system clock" >&5
3072 echo "$as_me: error: newly created file is older than distributed files!
3073 Check your system clock" >&2;}
3074 { (exit 1); exit 1; }; }
3076 echo "$as_me:$LINENO: result: yes" >&5
3077 echo "${ECHO_T}yes" >&6
3078 test "$program_prefix" != NONE
&&
3079 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
3080 # Use a double $ so make ignores it.
3081 test "$program_suffix" != NONE
&&
3082 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
3083 # Double any \ or $. echo might interpret backslashes.
3084 # By default was `s,x,x', remove it if useless.
3085 cat <<\_ACEOF
>conftest.
sed
3086 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
3088 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
3091 # expand $ac_aux_dir to an absolute path
3092 am_aux_dir
=`cd $ac_aux_dir && pwd`
3094 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
3095 # Use eval to expand $SHELL
3096 if eval "$MISSING --run true"; then
3097 am_missing_run
="$MISSING --run "
3100 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3101 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3104 if mkdir
-p --version .
>/dev
/null
2>&1 && test ! -d .
/--version; then
3105 # We used to keeping the `.' as first argument, in order to
3106 # allow $(mkdir_p) to be used without argument. As in
3107 # $(mkdir_p) $(somedir)
3108 # where $(somedir) is conditionally defined. However this is wrong
3110 # 1. if the package is installed by a user who cannot write `.'
3111 # make install will fail,
3112 # 2. the above comment should most certainly read
3113 # $(mkdir_p) $(DESTDIR)$(somedir)
3114 # so it does not work when $(somedir) is undefined and
3115 # $(DESTDIR) is not.
3116 # To support the latter case, we have to write
3117 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3118 # so the `.' trick is pointless.
3119 mkdir_p
='mkdir -p --'
3121 # On NextStep and OpenStep, the `mkdir' command does not
3122 # recognize any option. It will interpret all options as
3123 # directories to create, and then abort because `.' already
3125 for d
in .
/-p .
/--version;
3127 test -d $d && rmdir $d
3129 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3130 if test -f "$ac_aux_dir/mkinstalldirs"; then
3131 mkdir_p
='$(mkinstalldirs)'
3133 mkdir_p
='$(install_sh) -d'
3137 for ac_prog
in gawk mawk nawk
awk
3139 # Extract the first word of "$ac_prog", so it can be a program name with args.
3140 set dummy
$ac_prog; ac_word
=$2
3141 echo "$as_me:$LINENO: checking for $ac_word" >&5
3142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3143 if test "${ac_cv_prog_AWK+set}" = set; then
3144 echo $ECHO_N "(cached) $ECHO_C" >&6
3146 if test -n "$AWK"; then
3147 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3149 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3153 test -z "$as_dir" && as_dir
=.
3154 for ac_exec_ext
in '' $ac_executable_extensions; do
3155 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3156 ac_cv_prog_AWK
="$ac_prog"
3157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3166 if test -n "$AWK"; then
3167 echo "$as_me:$LINENO: result: $AWK" >&5
3168 echo "${ECHO_T}$AWK" >&6
3170 echo "$as_me:$LINENO: result: no" >&5
3171 echo "${ECHO_T}no" >&6
3174 test -n "$AWK" && break
3177 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3178 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3179 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
3180 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3181 echo $ECHO_N "(cached) $ECHO_C" >&6
3183 cat >conftest.
make <<\_ACEOF
3185 @
echo 'ac_maketemp="$(MAKE)"'
3187 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3188 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3189 if test -n "$ac_maketemp"; then
3190 eval ac_cv_prog_make_
${ac_make}_set
=yes
3192 eval ac_cv_prog_make_
${ac_make}_set
=no
3196 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3197 echo "$as_me:$LINENO: result: yes" >&5
3198 echo "${ECHO_T}yes" >&6
3201 echo "$as_me:$LINENO: result: no" >&5
3202 echo "${ECHO_T}no" >&6
3203 SET_MAKE
="MAKE=${MAKE-make}"
3206 rm -rf .tst
2>/dev
/null
3207 mkdir .tst
2>/dev
/null
3208 if test -d .tst
; then
3213 rmdir .tst
2>/dev
/null
3215 DEPDIR
="${am__leading_dot}deps"
3217 ac_config_commands
="$ac_config_commands depfiles"
3220 am_make
=${MAKE-make}
3221 cat > confinc
<< 'END'
3226 # If we don't find an include directive, just comment out the code.
3227 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3228 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3232 # First try GNU make style include.
3233 echo "include confinc" > confmf
3234 # We grep out `Entering directory' and `Leaving directory'
3235 # messages which can occur if `w' ends up in MAKEFLAGS.
3236 # In particular we don't look at `^make:' because GNU make might
3237 # be invoked under some other name (usually "gmake"), in which
3238 # case it prints its new name instead of `make'.
3239 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3244 # Now try BSD make style include.
3245 if test "$am__include" = "#"; then
3246 echo '.include "confinc"' > confmf
3247 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3248 am__include
=.include
3255 echo "$as_me:$LINENO: result: $_am_result" >&5
3256 echo "${ECHO_T}$_am_result" >&6
3257 rm -f confinc confmf
3259 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3260 if test "${enable_dependency_tracking+set}" = set; then
3261 enableval
="$enable_dependency_tracking"
3264 if test "x$enable_dependency_tracking" != xno
; then
3265 am_depcomp
="$ac_aux_dir/depcomp"
3270 if test "x$enable_dependency_tracking" != xno; then
3280 # test to see if srcdir already configured
3281 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3282 test -f $srcdir/config.status
; then
3283 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3284 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3285 { (exit 1); exit 1; }; }
3288 # test whether we have cygpath
3289 if test -z "$CYGPATH_W"; then
3290 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3291 CYGPATH_W
='cygpath -w'
3298 # Define the identity of the package.
3300 VERSION
='version-unused'
3303 cat >>confdefs.h
<<_ACEOF
3304 #define PACKAGE "$PACKAGE"
3308 cat >>confdefs.h
<<_ACEOF
3309 #define VERSION "$VERSION"
3312 # Some tools Automake needs.
3314 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3317 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3320 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3323 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3326 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3328 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
3330 # Installed binaries are usually stripped using `strip' when the user
3331 # run `make install-strip'. However `strip' might not be the right
3332 # tool to use in cross-compilation environments, therefore Automake
3333 # will honor the `STRIP' environment variable to overrule this program.
3334 if test "$cross_compiling" != no
; then
3335 if test -n "$ac_tool_prefix"; then
3336 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3337 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3338 echo "$as_me:$LINENO: checking for $ac_word" >&5
3339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3340 if test "${ac_cv_prog_STRIP+set}" = set; then
3341 echo $ECHO_N "(cached) $ECHO_C" >&6
3343 if test -n "$STRIP"; then
3344 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3346 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3350 test -z "$as_dir" && as_dir
=.
3351 for ac_exec_ext
in '' $ac_executable_extensions; do
3352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3353 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3362 STRIP
=$ac_cv_prog_STRIP
3363 if test -n "$STRIP"; then
3364 echo "$as_me:$LINENO: result: $STRIP" >&5
3365 echo "${ECHO_T}$STRIP" >&6
3367 echo "$as_me:$LINENO: result: no" >&5
3368 echo "${ECHO_T}no" >&6
3372 if test -z "$ac_cv_prog_STRIP"; then
3374 # Extract the first word of "strip", so it can be a program name with args.
3375 set dummy strip
; ac_word
=$2
3376 echo "$as_me:$LINENO: checking for $ac_word" >&5
3377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3378 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3379 echo $ECHO_N "(cached) $ECHO_C" >&6
3381 if test -n "$ac_ct_STRIP"; then
3382 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3384 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3388 test -z "$as_dir" && as_dir
=.
3389 for ac_exec_ext
in '' $ac_executable_extensions; do
3390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3391 ac_cv_prog_ac_ct_STRIP
="strip"
3392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3398 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
3401 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3402 if test -n "$ac_ct_STRIP"; then
3403 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3404 echo "${ECHO_T}$ac_ct_STRIP" >&6
3406 echo "$as_me:$LINENO: result: no" >&5
3407 echo "${ECHO_T}no" >&6
3412 STRIP
="$ac_cv_prog_STRIP"
3416 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
3418 # We need awk for the "check" target. The system "awk" is bad on
3420 # Always define AMTAR for backward compatibility.
3422 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3424 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3429 depcc
="$CC" am_compiler_list
=
3431 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3432 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3433 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3434 echo $ECHO_N "(cached) $ECHO_C" >&6
3436 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3437 # We make a subdir and do the tests there. Otherwise we can end up
3438 # making bogus files that we don't know about and never remove. For
3439 # instance it was reported that on HP-UX the gcc test will end up
3440 # making a dummy file named `D' -- because `-MD' means `put the output
3443 # Copy depcomp to subdir because otherwise we won't find it if we're
3444 # using a relative directory.
3445 cp "$am_depcomp" conftest.dir
3447 # We will build objects and dependencies in a subdirectory because
3448 # it helps to detect inapplicable dependency modes. For instance
3449 # both Tru64's cc and ICC support -MD to output dependencies as a
3450 # side effect of compilation, but ICC will put the dependencies in
3451 # the current directory while Tru64 will put them in the object
3455 am_cv_CC_dependencies_compiler_type
=none
3456 if test "$am_compiler_list" = ""; then
3457 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3459 for depmode
in $am_compiler_list; do
3460 # Setup a source with many dependencies, because some compilers
3461 # like to wrap large dependency lists on column 80 (with \), and
3462 # we should not choose a depcomp mode which is confused by this.
3464 # We need to recreate these files for each test, as the compiler may
3465 # overwrite some of them when testing with obscure command lines.
3466 # This happens at least with the AIX C compiler.
3468 for i
in 1 2 3 4 5 6; do
3469 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3470 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3471 # Solaris 8's {/usr,}/bin/sh.
3472 touch sub
/conftst
$i.h
3474 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3478 # after this tag, mechanisms are not by side-effect, so they'll
3479 # only be used when explicitly requested
3480 if test "x$enable_dependency_tracking" = xyes
; then
3488 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3489 # mode. It turns out that the SunPro C++ compiler does not properly
3490 # handle `-M -o', and we need to detect this.
3491 if depmode
=$depmode \
3492 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3493 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3494 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3495 >/dev
/null
2>conftest.err
&&
3496 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3497 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3498 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3499 # icc doesn't choke on unknown options, it will just issue warnings
3500 # or remarks (even with -Werror). So we grep stderr for any message
3501 # that says an option was ignored or not supported.
3502 # When given -MP, icc 7.0 and 7.1 complain thusly:
3503 # icc: Command line warning: ignoring option '-M'; no argument required
3504 # The diagnosis changed in icc 8.0:
3505 # icc: Command line remark: option '-MP' not supported
3506 if (grep 'ignoring option' conftest.err ||
3507 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3508 am_cv_CC_dependencies_compiler_type
=$depmode
3517 am_cv_CC_dependencies_compiler_type
=none
3521 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3522 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3523 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3528 test "x$enable_dependency_tracking" != xno \
3529 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3531 am__fastdepCC_FALSE
='#'
3533 am__fastdepCC_TRUE
='#'
3534 am__fastdepCC_FALSE
=
3538 depcc
="$CXX" am_compiler_list
=
3540 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3541 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3542 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3546 # We make a subdir and do the tests there. Otherwise we can end up
3547 # making bogus files that we don't know about and never remove. For
3548 # instance it was reported that on HP-UX the gcc test will end up
3549 # making a dummy file named `D' -- because `-MD' means `put the output
3552 # Copy depcomp to subdir because otherwise we won't find it if we're
3553 # using a relative directory.
3554 cp "$am_depcomp" conftest.dir
3556 # We will build objects and dependencies in a subdirectory because
3557 # it helps to detect inapplicable dependency modes. For instance
3558 # both Tru64's cc and ICC support -MD to output dependencies as a
3559 # side effect of compilation, but ICC will put the dependencies in
3560 # the current directory while Tru64 will put them in the object
3564 am_cv_CXX_dependencies_compiler_type
=none
3565 if test "$am_compiler_list" = ""; then
3566 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3568 for depmode
in $am_compiler_list; do
3569 # Setup a source with many dependencies, because some compilers
3570 # like to wrap large dependency lists on column 80 (with \), and
3571 # we should not choose a depcomp mode which is confused by this.
3573 # We need to recreate these files for each test, as the compiler may
3574 # overwrite some of them when testing with obscure command lines.
3575 # This happens at least with the AIX C compiler.
3577 for i
in 1 2 3 4 5 6; do
3578 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3579 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3580 # Solaris 8's {/usr,}/bin/sh.
3581 touch sub
/conftst
$i.h
3583 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3587 # after this tag, mechanisms are not by side-effect, so they'll
3588 # only be used when explicitly requested
3589 if test "x$enable_dependency_tracking" = xyes
; then
3597 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3598 # mode. It turns out that the SunPro C++ compiler does not properly
3599 # handle `-M -o', and we need to detect this.
3600 if depmode
=$depmode \
3601 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3602 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3603 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3604 >/dev
/null
2>conftest.err
&&
3605 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3606 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3607 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3608 # icc doesn't choke on unknown options, it will just issue warnings
3609 # or remarks (even with -Werror). So we grep stderr for any message
3610 # that says an option was ignored or not supported.
3611 # When given -MP, icc 7.0 and 7.1 complain thusly:
3612 # icc: Command line warning: ignoring option '-M'; no argument required
3613 # The diagnosis changed in icc 8.0:
3614 # icc: Command line remark: option '-MP' not supported
3615 if (grep 'ignoring option' conftest.err ||
3616 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3617 am_cv_CXX_dependencies_compiler_type
=$depmode
3626 am_cv_CXX_dependencies_compiler_type
=none
3630 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3631 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3632 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
3637 test "x$enable_dependency_tracking" != xno \
3638 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
3639 am__fastdepCXX_TRUE
=
3640 am__fastdepCXX_FALSE
='#'
3642 am__fastdepCXX_TRUE
='#'
3643 am__fastdepCXX_FALSE
=
3649 if test -n "$ac_tool_prefix"; then
3650 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3651 set dummy
${ac_tool_prefix}as
; ac_word
=$2
3652 echo "$as_me:$LINENO: checking for $ac_word" >&5
3653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3654 if test "${ac_cv_prog_AS+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3657 if test -n "$AS"; then
3658 ac_cv_prog_AS
="$AS" # Let the user override the test.
3660 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3664 test -z "$as_dir" && as_dir
=.
3665 for ac_exec_ext
in '' $ac_executable_extensions; do
3666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3667 ac_cv_prog_AS
="${ac_tool_prefix}as"
3668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3677 if test -n "$AS"; then
3678 echo "$as_me:$LINENO: result: $AS" >&5
3679 echo "${ECHO_T}$AS" >&6
3681 echo "$as_me:$LINENO: result: no" >&5
3682 echo "${ECHO_T}no" >&6
3686 if test -z "$ac_cv_prog_AS"; then
3688 # Extract the first word of "as", so it can be a program name with args.
3689 set dummy as
; ac_word
=$2
3690 echo "$as_me:$LINENO: checking for $ac_word" >&5
3691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3692 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
3695 if test -n "$ac_ct_AS"; then
3696 ac_cv_prog_ac_ct_AS
="$ac_ct_AS" # Let the user override the test.
3698 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3702 test -z "$as_dir" && as_dir
=.
3703 for ac_exec_ext
in '' $ac_executable_extensions; do
3704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3705 ac_cv_prog_ac_ct_AS
="as"
3706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3714 ac_ct_AS
=$ac_cv_prog_ac_ct_AS
3715 if test -n "$ac_ct_AS"; then
3716 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3717 echo "${ECHO_T}$ac_ct_AS" >&6
3719 echo "$as_me:$LINENO: result: no" >&5
3720 echo "${ECHO_T}no" >&6
3728 if test -n "$ac_tool_prefix"; then
3729 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3730 set dummy
${ac_tool_prefix}ar; ac_word
=$2
3731 echo "$as_me:$LINENO: checking for $ac_word" >&5
3732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3733 if test "${ac_cv_prog_AR+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3736 if test -n "$AR"; then
3737 ac_cv_prog_AR
="$AR" # Let the user override the test.
3739 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3743 test -z "$as_dir" && as_dir
=.
3744 for ac_exec_ext
in '' $ac_executable_extensions; do
3745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3746 ac_cv_prog_AR
="${ac_tool_prefix}ar"
3747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3756 if test -n "$AR"; then
3757 echo "$as_me:$LINENO: result: $AR" >&5
3758 echo "${ECHO_T}$AR" >&6
3760 echo "$as_me:$LINENO: result: no" >&5
3761 echo "${ECHO_T}no" >&6
3765 if test -z "$ac_cv_prog_AR"; then
3767 # Extract the first word of "ar", so it can be a program name with args.
3768 set dummy
ar; ac_word
=$2
3769 echo "$as_me:$LINENO: checking for $ac_word" >&5
3770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3771 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3774 if test -n "$ac_ct_AR"; then
3775 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
3777 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3781 test -z "$as_dir" && as_dir
=.
3782 for ac_exec_ext
in '' $ac_executable_extensions; do
3783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3784 ac_cv_prog_ac_ct_AR
="ar"
3785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3793 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
3794 if test -n "$ac_ct_AR"; then
3795 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3796 echo "${ECHO_T}$ac_ct_AR" >&6
3798 echo "$as_me:$LINENO: result: no" >&5
3799 echo "${ECHO_T}no" >&6
3807 if test -n "$ac_tool_prefix"; then
3808 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3809 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3810 echo "$as_me:$LINENO: checking for $ac_word" >&5
3811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3812 if test "${ac_cv_prog_RANLIB+set}" = set; then
3813 echo $ECHO_N "(cached) $ECHO_C" >&6
3815 if test -n "$RANLIB"; then
3816 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3818 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3822 test -z "$as_dir" && as_dir
=.
3823 for ac_exec_ext
in '' $ac_executable_extensions; do
3824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3825 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3834 RANLIB
=$ac_cv_prog_RANLIB
3835 if test -n "$RANLIB"; then
3836 echo "$as_me:$LINENO: result: $RANLIB" >&5
3837 echo "${ECHO_T}$RANLIB" >&6
3839 echo "$as_me:$LINENO: result: no" >&5
3840 echo "${ECHO_T}no" >&6
3844 if test -z "$ac_cv_prog_RANLIB"; then
3845 ac_ct_RANLIB
=$RANLIB
3846 # Extract the first word of "ranlib", so it can be a program name with args.
3847 set dummy ranlib
; ac_word
=$2
3848 echo "$as_me:$LINENO: checking for $ac_word" >&5
3849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3850 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3851 echo $ECHO_N "(cached) $ECHO_C" >&6
3853 if test -n "$ac_ct_RANLIB"; then
3854 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3856 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3860 test -z "$as_dir" && as_dir
=.
3861 for ac_exec_ext
in '' $ac_executable_extensions; do
3862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3863 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3870 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3873 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3874 if test -n "$ac_ct_RANLIB"; then
3875 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3876 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3878 echo "$as_me:$LINENO: result: no" >&5
3879 echo "${ECHO_T}no" >&6
3882 RANLIB
=$ac_ct_RANLIB
3884 RANLIB
="$ac_cv_prog_RANLIB"
3888 # Find a good install program. We prefer a C program (faster),
3889 # so one script is as good as another. But avoid the broken or
3890 # incompatible versions:
3891 # SysV /etc/install, /usr/sbin/install
3892 # SunOS /usr/etc/install
3893 # IRIX /sbin/install
3895 # AmigaOS /C/install, which installs bootblocks on floppy discs
3896 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3897 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3898 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3899 # OS/2's system install, which has a completely different semantic
3900 # ./install, which can be erroneously created by make from ./install.sh.
3901 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3902 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3903 if test -z "$INSTALL"; then
3904 if test "${ac_cv_path_install+set}" = set; then
3905 echo $ECHO_N "(cached) $ECHO_C" >&6
3907 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3911 test -z "$as_dir" && as_dir
=.
3912 # Account for people who put trailing slashes in PATH elements.
3914 .
/ | .
// |
/cC
/* | \
3915 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3916 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3919 # OSF1 and SCO ODT 3.0 have their own names for install.
3920 # Don't use installbsd from OSF since it installs stuff as root
3922 for ac_prog
in ginstall scoinst
install; do
3923 for ac_exec_ext
in '' $ac_executable_extensions; do
3924 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3925 if test $ac_prog = install &&
3926 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3927 # AIX install. It has an incompatible calling convention.
3929 elif test $ac_prog = install &&
3930 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3931 # program-specific install script used by HP pwplus--don't use.
3934 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3946 if test "${ac_cv_path_install+set}" = set; then
3947 INSTALL
=$ac_cv_path_install
3949 # As a last resort, use the slow shell script. We don't cache a
3950 # path for INSTALL within a source directory, because that will
3951 # break other packages using the cache if that directory is
3952 # removed, or if the path is relative.
3953 INSTALL
=$ac_install_sh
3956 echo "$as_me:$LINENO: result: $INSTALL" >&5
3957 echo "${ECHO_T}$INSTALL" >&6
3959 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3960 # It thinks the first close brace ends the variable substitution.
3961 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3963 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3965 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3968 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3969 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3970 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3971 if test "${enable_maintainer_mode+set}" = set; then
3972 enableval
="$enable_maintainer_mode"
3973 USE_MAINTAINER_MODE
=$enableval
3975 USE_MAINTAINER_MODE
=no
3977 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3978 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3981 if test $USE_MAINTAINER_MODE = yes; then
3982 MAINTAINER_MODE_TRUE
=
3983 MAINTAINER_MODE_FALSE
='#'
3985 MAINTAINER_MODE_TRUE
='#'
3986 MAINTAINER_MODE_FALSE
=
3989 MAINT
=$MAINTAINER_MODE_TRUE
3995 # configure.host sets the following important variables
3996 # libgcj_cflags - host specific C compiler flags
3997 # libgcj_cxxflags - host specific C++ compiler flags
3998 # libgcj_javaflags - host specific Java compiler flags
4004 .
${srcdir}/configure.
host
4006 LIBGCJ_CFLAGS
="${libgcj_cflags}"
4007 LIBGCJ_CXXFLAGS
="${libgcj_cxxflags}"
4008 LIBGCJ_JAVAFLAGS
="${libgcj_javaflags}"
4009 LIBGCJ_LD_SYMBOLIC
="${libgcj_ld_symbolic}"
4015 ac_config_headers
="$ac_config_headers include/config.h gcj/libgcj-config.h"
4018 # Only use libltdl for non-newlib builds.
4019 if test "x${with_newlib}" = "x" ||
test "x${with_newlib}" = "xno"; then
4020 case $enable_ltdl_convenience in
4021 no
) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
4022 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
4023 { (exit 1); exit 1; }; } ;;
4024 "") enable_ltdl_convenience
=yes
4025 ac_configure_args
="$ac_configure_args --enable-ltdl-convenience" ;;
4027 LIBLTDL
='${top_builddir}/''libltdl'/libltdlc.la
4028 INCLTDL
='-I${top_srcdir}/''libltdl'
4033 cat >>confdefs.h
<<\_ACEOF
4037 # Sigh. Libtool's macro doesn't do the right thing.
4038 INCLTDL
="-I\$(top_srcdir)/libltdl $INCLTDL"
4039 # FIXME: this is a hack.
4040 sub_auxdir
="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
4041 ac_configure_args
="$ac_configure_args --with-auxdir=$sub_auxdir"
4046 # Check whether --enable-shared or --disable-shared was given.
4047 if test "${enable_shared+set}" = set; then
4048 enableval
="$enable_shared"
4049 p
=${PACKAGE-default}
4051 yes) enable_shared
=yes ;;
4052 no
) enable_shared
=no
;;
4055 # Look at the argument we got. We use all the common list separators.
4056 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
4057 for pkg
in $enableval; do
4058 if test "X$pkg" = "X$p"; then
4068 # Check whether --enable-static or --disable-static was given.
4069 if test "${enable_static+set}" = set; then
4070 enableval
="$enable_static"
4071 p
=${PACKAGE-default}
4073 yes) enable_static
=yes ;;
4074 no
) enable_static
=no
;;
4077 # Look at the argument we got. We use all the common list separators.
4078 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
4079 for pkg
in $enableval; do
4080 if test "X$pkg" = "X$p"; then
4090 # Check whether --enable-fast-install or --disable-fast-install was given.
4091 if test "${enable_fast_install+set}" = set; then
4092 enableval
="$enable_fast_install"
4093 p
=${PACKAGE-default}
4095 yes) enable_fast_install
=yes ;;
4096 no
) enable_fast_install
=no
;;
4098 enable_fast_install
=no
4099 # Look at the argument we got. We use all the common list separators.
4100 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
4101 for pkg
in $enableval; do
4102 if test "X$pkg" = "X$p"; then
4103 enable_fast_install
=yes
4110 enable_fast_install
=yes
4113 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4114 if test "${with_gnu_ld+set}" = set; then
4115 withval
="$with_gnu_ld"
4116 test "$withval" = no || with_gnu_ld
=yes
4121 if test "$GCC" = yes; then
4122 # Check if gcc -print-prog-name=ld gives a path.
4123 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4124 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4127 # gcc leaves a trailing carriage return which upsets mingw
4128 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4130 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
4133 # Accept absolute paths.
4134 [\\/]* |
[A-Za-z
]:[\\/]*)
4135 re_direlt
='/[^/][^/]*/\.\./'
4136 # Canonicalize the path of ld
4137 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
4138 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
4139 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
4141 test -z "$LD" && LD
="$ac_prog"
4144 # If it fails, then pretend we aren't using GCC.
4148 # If it is relative, then search for the first ld in PATH.
4152 elif test "$with_gnu_ld" = yes; then
4153 echo "$as_me:$LINENO: checking for GNU ld" >&5
4154 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4156 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4157 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4159 if test "${lt_cv_path_LD+set}" = set; then
4160 echo $ECHO_N "(cached) $ECHO_C" >&6
4162 if test -z "$LD"; then
4163 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4164 for ac_dir
in $PATH; do
4165 test -z "$ac_dir" && ac_dir
=.
4166 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
4167 lt_cv_path_LD
="$ac_dir/$ac_prog"
4168 # Check to see if the program is GNU ld. I'd rather use --version,
4169 # but apparently some GNU ld's only accept -v.
4170 # Break only if it was the GNU/non-GNU ld that we prefer.
4171 if "$lt_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
4172 test "$with_gnu_ld" != no
&& break
4174 test "$with_gnu_ld" != yes && break
4180 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
4185 if test -n "$LD"; then
4186 echo "$as_me:$LINENO: result: $LD" >&5
4187 echo "${ECHO_T}$LD" >&6
4189 echo "$as_me:$LINENO: result: no" >&5
4190 echo "${ECHO_T}no" >&6
4192 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4193 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4194 { (exit 1); exit 1; }; }
4195 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4196 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4197 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4200 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4201 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
4202 lt_cv_prog_gnu_ld
=yes
4204 lt_cv_prog_gnu_ld
=no
4207 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4208 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4209 with_gnu_ld
=$lt_cv_prog_gnu_ld
4212 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4213 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4214 if test "${lt_cv_ld_reload_flag+set}" = set; then
4215 echo $ECHO_N "(cached) $ECHO_C" >&6
4217 lt_cv_ld_reload_flag
='-r'
4219 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4220 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4221 reload_flag
=$lt_cv_ld_reload_flag
4222 test -n "$reload_flag" && reload_flag
=" $reload_flag"
4224 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4225 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4226 if test "${lt_cv_path_NM+set}" = set; then
4227 echo $ECHO_N "(cached) $ECHO_C" >&6
4229 if test -n "$NM"; then
4230 # Let the user override the test.
4233 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4234 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
4235 test -z "$ac_dir" && ac_dir
=.
4236 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
4237 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
4238 # Check to see if the nm accepts a BSD-compat flag.
4239 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4240 # nm: unknown option "B" ignored
4241 # Tru64's nm complains that /dev/null is an invalid object file
4242 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep '(/dev/null|Invalid file or object type)' >/dev
/null
; then
4243 lt_cv_path_NM
="$tmp_nm -B"
4245 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
4246 lt_cv_path_NM
="$tmp_nm -p"
4249 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4250 continue # so that we can try to find one that supports BSD flags
4255 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
4260 echo "$as_me:$LINENO: result: $NM" >&5
4261 echo "${ECHO_T}$NM" >&6
4263 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4264 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4265 if test "${lt_cv_deplibs_check_method+set}" = set; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4268 lt_cv_file_magic_cmd
='$MAGIC_CMD'
4269 lt_cv_file_magic_test_file
=
4270 lt_cv_deplibs_check_method
='unknown'
4271 # Need to set the preceding variable on all platforms that support
4272 # interlibrary dependencies.
4273 # 'none' -- dependencies not supported.
4274 # `unknown' -- same as none, but documents that we really don't know.
4275 # 'pass_all' -- all dependencies passed with no checks.
4276 # 'test_compile' -- check by making test program.
4277 # 'file_magic [regex]' -- check by looking for files in library path
4278 # which responds to the $file_magic_cmd with a given egrep regex.
4279 # If you have `file' or equivalent on your system and you're not sure
4280 # whether `pass_all' will *always* work, you probably want this one.
4284 lt_cv_deplibs_check_method
=pass_all
4288 lt_cv_deplibs_check_method
=pass_all
4292 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4293 lt_cv_file_magic_cmd
='/usr/bin/file -L'
4294 lt_cv_file_magic_test_file
=/shlib
/libc.so
4297 cygwin
* | mingw
* |pw32
*)
4298 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
4299 lt_cv_file_magic_cmd
='$OBJDUMP -f'
4302 darwin
* | rhapsody
*)
4303 # this will be overwritten by pass_all, but leave it in just in case
4304 lt_cv_deplibs_check_method
='file_magic Mach-O dynamically linked shared library'
4305 lt_cv_file_magic_cmd
='/usr/bin/file -L'
4307 rhapsody
* | darwin1.012
)
4308 lt_cv_file_magic_test_file
='/System/Library/Frameworks/System.framework/System'
4311 lt_cv_file_magic_test_file
='/usr/lib/libSystem.dylib'
4314 lt_cv_deplibs_check_method
=pass_all
4317 freebsd
* | kfreebsd
*-gnu)
4318 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
4321 # Not sure whether the presence of OpenBSD here was a mistake.
4322 # Let's accept both of them until this is cleared up.
4323 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4324 lt_cv_file_magic_cmd
=/usr
/bin
/file
4325 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
4329 lt_cv_deplibs_check_method
=pass_all
4334 lt_cv_deplibs_check_method
=pass_all
4340 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4341 lt_cv_file_magic_cmd
=/usr
/bin
/file
4342 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
4345 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4346 lt_cv_file_magic_cmd
=/usr
/bin
/file
4347 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
4355 # this will be overridden with pass_all, but let us keep it just in case
4356 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4360 *-32|
*"-32 ") libmagic
=32-bit;;
4361 *-n32|
*"-n32 ") libmagic
=N32
;;
4362 *-64|
*"-64 ") libmagic
=64-bit;;
4363 *) libmagic
=never-match
;;
4365 # this will be overridden with pass_all, but let us keep it just in case
4366 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4369 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
4370 lt_cv_deplibs_check_method
=pass_all
4373 # This must be Linux ELF.
4375 lt_cv_deplibs_check_method
=pass_all
4378 netbsd
* | knetbsd
*-gnu)
4379 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
4380 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4382 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so$'
4387 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4388 lt_cv_file_magic_cmd
=/usr
/bin
/file
4389 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
4392 osf3
* | osf4
* | osf5
*)
4393 # this will be overridden with pass_all, but let us keep it just in case
4394 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
4395 lt_cv_file_magic_test_file
=/shlib
/libc.so
4396 lt_cv_deplibs_check_method
=pass_all
4400 lt_cv_deplibs_check_method
=pass_all
4404 lt_cv_deplibs_check_method
=pass_all
4405 lt_cv_file_magic_test_file
=/lib
/libc.so
4408 sysv5uw
[78]* | sysv4
*uw2
*)
4409 lt_cv_deplibs_check_method
=pass_all
4412 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
4413 case $host_vendor in
4415 lt_cv_deplibs_check_method
=pass_all
4418 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]'
4419 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
4426 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4427 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4428 file_magic_cmd
=$lt_cv_file_magic_cmd
4429 deplibs_check_method
=$lt_cv_deplibs_check_method
4434 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4436 # Only perform the check for file, if the check method requires it
4437 case $deplibs_check_method in
4439 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4440 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4441 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4442 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
4447 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
4450 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
4453 ac_save_MAGIC_CMD
="$MAGIC_CMD"
4454 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4455 ac_dummy
="/usr/bin:$PATH"
4456 for ac_dir
in $ac_dummy; do
4457 test -z "$ac_dir" && ac_dir
=.
4458 if test -f $ac_dir/${ac_tool_prefix}file; then
4459 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
4460 if test -n "$file_magic_test_file"; then
4461 case $deplibs_check_method in
4463 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4464 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
4465 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
4466 egrep "$file_magic_regex" > /dev
/null
; then
4471 *** Warning: the command libtool uses to detect shared libraries,
4472 *** $file_magic_cmd, produces output that libtool cannot recognize.
4473 *** The result is that libtool may fail to recognize shared libraries
4474 *** as such. This will affect the creation of libtool libraries that
4475 *** depend on shared libraries, but programs linked with such libtool
4476 *** libraries will work regardless of this problem. Nevertheless, you
4477 *** may want to report the problem to your system manager and/or to
4478 *** bug-libtool@gnu.org
4488 MAGIC_CMD
="$ac_save_MAGIC_CMD"
4493 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
4494 if test -n "$MAGIC_CMD"; then
4495 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4496 echo "${ECHO_T}$MAGIC_CMD" >&6
4498 echo "$as_me:$LINENO: result: no" >&5
4499 echo "${ECHO_T}no" >&6
4502 if test -z "$lt_cv_path_MAGIC_CMD"; then
4503 if test -n "$ac_tool_prefix"; then
4504 echo "$as_me:$LINENO: checking for file" >&5
4505 echo $ECHO_N "checking for file... $ECHO_C" >&6
4506 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4507 echo $ECHO_N "(cached) $ECHO_C" >&6
4511 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
4514 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
4517 ac_save_MAGIC_CMD
="$MAGIC_CMD"
4518 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4519 ac_dummy
="/usr/bin:$PATH"
4520 for ac_dir
in $ac_dummy; do
4521 test -z "$ac_dir" && ac_dir
=.
4522 if test -f $ac_dir/file; then
4523 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
4524 if test -n "$file_magic_test_file"; then
4525 case $deplibs_check_method in
4527 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4528 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
4529 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
4530 egrep "$file_magic_regex" > /dev
/null
; then
4535 *** Warning: the command libtool uses to detect shared libraries,
4536 *** $file_magic_cmd, produces output that libtool cannot recognize.
4537 *** The result is that libtool may fail to recognize shared libraries
4538 *** as such. This will affect the creation of libtool libraries that
4539 *** depend on shared libraries, but programs linked with such libtool
4540 *** libraries will work regardless of this problem. Nevertheless, you
4541 *** may want to report the problem to your system manager and/or to
4542 *** bug-libtool@gnu.org
4552 MAGIC_CMD
="$ac_save_MAGIC_CMD"
4557 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
4558 if test -n "$MAGIC_CMD"; then
4559 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4560 echo "${ECHO_T}$MAGIC_CMD" >&6
4562 echo "$as_me:$LINENO: result: no" >&5
4563 echo "${ECHO_T}no" >&6
4575 if test -n "$ac_tool_prefix"; then
4576 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4577 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4578 echo "$as_me:$LINENO: checking for $ac_word" >&5
4579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4580 if test "${ac_cv_prog_RANLIB+set}" = set; then
4581 echo $ECHO_N "(cached) $ECHO_C" >&6
4583 if test -n "$RANLIB"; then
4584 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4586 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4590 test -z "$as_dir" && as_dir
=.
4591 for ac_exec_ext
in '' $ac_executable_extensions; do
4592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4593 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4602 RANLIB
=$ac_cv_prog_RANLIB
4603 if test -n "$RANLIB"; then
4604 echo "$as_me:$LINENO: result: $RANLIB" >&5
4605 echo "${ECHO_T}$RANLIB" >&6
4607 echo "$as_me:$LINENO: result: no" >&5
4608 echo "${ECHO_T}no" >&6
4612 if test -z "$ac_cv_prog_RANLIB"; then
4613 ac_ct_RANLIB
=$RANLIB
4614 # Extract the first word of "ranlib", so it can be a program name with args.
4615 set dummy ranlib
; ac_word
=$2
4616 echo "$as_me:$LINENO: checking for $ac_word" >&5
4617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4618 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4619 echo $ECHO_N "(cached) $ECHO_C" >&6
4621 if test -n "$ac_ct_RANLIB"; then
4622 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4624 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4628 test -z "$as_dir" && as_dir
=.
4629 for ac_exec_ext
in '' $ac_executable_extensions; do
4630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4631 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4638 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
4641 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4642 if test -n "$ac_ct_RANLIB"; then
4643 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4644 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4646 echo "$as_me:$LINENO: result: no" >&5
4647 echo "${ECHO_T}no" >&6
4650 RANLIB
=$ac_ct_RANLIB
4652 RANLIB
="$ac_cv_prog_RANLIB"
4655 if test -n "$ac_tool_prefix"; then
4656 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4657 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
4658 echo "$as_me:$LINENO: checking for $ac_word" >&5
4659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4660 if test "${ac_cv_prog_STRIP+set}" = set; then
4661 echo $ECHO_N "(cached) $ECHO_C" >&6
4663 if test -n "$STRIP"; then
4664 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
4666 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4670 test -z "$as_dir" && as_dir
=.
4671 for ac_exec_ext
in '' $ac_executable_extensions; do
4672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4673 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
4674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4682 STRIP
=$ac_cv_prog_STRIP
4683 if test -n "$STRIP"; then
4684 echo "$as_me:$LINENO: result: $STRIP" >&5
4685 echo "${ECHO_T}$STRIP" >&6
4687 echo "$as_me:$LINENO: result: no" >&5
4688 echo "${ECHO_T}no" >&6
4692 if test -z "$ac_cv_prog_STRIP"; then
4694 # Extract the first word of "strip", so it can be a program name with args.
4695 set dummy strip
; ac_word
=$2
4696 echo "$as_me:$LINENO: checking for $ac_word" >&5
4697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4698 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4701 if test -n "$ac_ct_STRIP"; then
4702 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
4704 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4708 test -z "$as_dir" && as_dir
=.
4709 for ac_exec_ext
in '' $ac_executable_extensions; do
4710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4711 ac_cv_prog_ac_ct_STRIP
="strip"
4712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4718 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
4721 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
4722 if test -n "$ac_ct_STRIP"; then
4723 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4724 echo "${ECHO_T}$ac_ct_STRIP" >&6
4726 echo "$as_me:$LINENO: result: no" >&5
4727 echo "${ECHO_T}no" >&6
4732 STRIP
="$ac_cv_prog_STRIP"
4736 # Check for any special flags to pass to ltconfig.
4737 libtool_flags
="--cache-file=$cache_file"
4738 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
4739 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
4740 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
4741 test "$GCC" = yes && libtool_flags
="$libtool_flags --with-gcc"
4742 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
4745 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4746 if test "${enable_libtool_lock+set}" = set; then
4747 enableval
="$enable_libtool_lock"
4750 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
4751 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
4754 # Check whether --with-pic or --without-pic was given.
4755 if test "${with_pic+set}" = set; then
4761 test x
"$pic_mode" = xyes
&& libtool_flags
="$libtool_flags --prefer-pic"
4762 test x
"$pic_mode" = xno
&& libtool_flags
="$libtool_flags --prefer-non-pic"
4764 # Some flags need to be propagated to the compiler or linker for good
4768 # Find out which ABI we are using.
4769 echo '#line 4769 "configure"' > conftest.
$ac_ext
4770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4771 (eval $ac_compile) 2>&5
4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774 (exit $ac_status); }; then
4775 if test "$lt_cv_prog_gnu_ld" = yes; then
4776 case `/usr/bin/file conftest.$ac_objext` in
4778 LD
="${LD-ld} -melf32bsmip"
4781 LD
="${LD-ld} -melf32bmipn32"
4784 LD
="${LD-ld} -melf64bmip"
4788 case `/usr/bin/file conftest.$ac_objext` in
4805 # Find out which ABI we are using.
4806 echo 'int i;' > conftest.
$ac_ext
4807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4808 (eval $ac_compile) 2>&5
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); }; then
4812 case "`/usr/bin/file conftest.o`" in
4824 x86_64-
*linux
*|ppc
*-*linux
*|powerpc
*-*linux
*|s390
*-*linux
*|sparc
*-*linux
*)
4825 # Find out which ABI we are using.
4826 echo 'int i;' > conftest.
$ac_ext
4827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4828 (eval $ac_compile) 2>&5
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); }; then
4832 case "`/usr/bin/file conftest.o`" in
4836 LD
="${LD-ld} -m elf_i386"
4838 ppc64-
*linux
*|powerpc64-
*linux
*)
4839 LD
="${LD-ld} -m elf32ppclinux"
4842 LD
="${LD-ld} -m elf_s390"
4845 LD
="${LD-ld} -m elf32_sparc"
4852 LD
="${LD-ld} -m elf_x86_64"
4854 ppc
*-*linux
*|powerpc
*-*linux
*)
4855 LD
="${LD-ld} -m elf64ppc"
4858 LD
="${LD-ld} -m elf64_s390"
4861 LD
="${LD-ld} -m elf64_sparc"
4871 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4872 SAVE_CFLAGS
="$CFLAGS"
4873 CFLAGS
="$CFLAGS -belf"
4874 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4875 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4876 if test "${lt_cv_cc_needs_belf+set}" = set; then
4877 echo $ECHO_N "(cached) $ECHO_C" >&6
4882 ac_cpp
='$CPP $CPPFLAGS'
4883 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4884 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4885 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4887 if test x
$gcc_no_link = xyes
; then
4888 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4889 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4890 { (exit 1); exit 1; }; }
4892 cat >conftest.
$ac_ext <<_ACEOF
4895 cat confdefs.h
>>conftest.
$ac_ext
4896 cat >>conftest.
$ac_ext <<_ACEOF
4897 /* end confdefs.h. */
4907 rm -f conftest.
$ac_objext conftest
$ac_exeext
4908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4909 (eval $ac_link) 2>conftest.er1
4911 grep -v '^ *+' conftest.er1
>conftest.err
4913 cat conftest.err
>&5
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); } &&
4916 { ac_try
='test -z "$ac_c_werror_flag"
4917 || test ! -s conftest.err'
4918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); }; } &&
4923 { ac_try
='test -s conftest$ac_exeext'
4924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928 (exit $ac_status); }; }; then
4929 lt_cv_cc_needs_belf
=yes
4931 echo "$as_me: failed program was:" >&5
4932 sed 's/^/| /' conftest.
$ac_ext >&5
4934 lt_cv_cc_needs_belf
=no
4936 rm -f conftest.err conftest.
$ac_objext \
4937 conftest
$ac_exeext conftest.
$ac_ext
4939 ac_cpp
='$CPP $CPPFLAGS'
4940 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4941 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4942 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4945 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4946 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4947 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
4948 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4949 CFLAGS
="$SAVE_CFLAGS"
4957 # Save cache, so that ltconfig can load it
4958 cat >confcache
<<\_ACEOF
4959 # This file is a shell script that caches the results of configure
4960 # tests run on this system so they can be shared between configure
4961 # scripts and configure runs, see configure's option --config-cache.
4962 # It is not useful on other systems. If it contains results you don't
4963 # want to keep, you may remove or edit it.
4965 # config.status only pays attention to the cache file if you give it
4966 # the --recheck option to rerun configure.
4968 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4969 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4974 # The following way of writing the cache mishandles newlines in values,
4975 # but we know of no workaround that is simple, portable, and efficient.
4976 # So, don't put newlines in cache variables' values.
4977 # Ultrix sh set writes to stderr and can't be redirected directly,
4978 # and sets the high bit in the cache file unless we assign to the vars.
4981 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4983 # `set' does not quote correctly, so add quotes (double-quote
4984 # substitution turns \\\\ into \\, and sed turns \\ into \).
4987 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4990 # `set' quotes correctly as required by POSIX, so do not add quotes.
4992 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4999 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5001 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5003 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
5004 if test -w $cache_file; then
5005 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5006 cat confcache
>$cache_file
5008 echo "not updating unwritable cache $cache_file"
5013 # Actually configure libtool. ac_aux_dir is where install-sh is found.
5014 AR
="$AR" LTCC
="$CC" CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
5015 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
5016 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
5017 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
5018 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
5019 deplibs_check_method
="$deplibs_check_method" file_magic_cmd
="$file_magic_cmd" \
5020 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
5021 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh
$host \
5022 ||
{ { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5023 echo "$as_me: error: libtool configure failed" >&2;}
5024 { (exit 1); exit 1; }; }
5026 # Reload cache, that may have been modified by ltconfig
5027 if test -r "$cache_file"; then
5028 # Some versions of bash will fail to source /dev/null (special
5029 # files actually), so we avoid doing that.
5030 if test -f "$cache_file"; then
5031 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5032 echo "$as_me: loading cache $cache_file" >&6;}
5034 [\\/]* | ?
:[\\/]* ) .
$cache_file;;
5035 *) . .
/$cache_file;;
5039 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5040 echo "$as_me: creating cache $cache_file" >&6;}
5045 # This can be used to rebuild libtool when needed
5046 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5048 # Always use our own libtool.
5049 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
5051 # Redirect the config.log output again, so that the ltconfig log is not
5052 # clobbered by the next message.
5053 exec 5>>.
/config.log
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
5060 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5061 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5062 if test -z "$CXXCPP"; then
5063 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5066 # Double quotes because CXXCPP needs to be expanded
5067 for CXXCPP
in "$CXX -E" "/lib/cpp"
5070 for ac_cxx_preproc_warn_flag
in '' yes
5072 # Use a header file that comes with gcc, so configuring glibc
5073 # with a fresh cross-compiler works.
5074 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5075 # <limits.h> exists even on freestanding compilers.
5076 # On the NeXT, cc -E runs the code through the compiler's parser,
5077 # not just through cpp. "Syntax error" is here to catch this case.
5078 cat >conftest.
$ac_ext <<_ACEOF
5081 cat confdefs.h
>>conftest.
$ac_ext
5082 cat >>conftest.
$ac_ext <<_ACEOF
5083 /* end confdefs.h. */
5085 # include <limits.h>
5087 # include <assert.h>
5091 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5092 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5094 grep -v '^ *+' conftest.er1
>conftest.err
5096 cat conftest.err
>&5
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); } >/dev
/null
; then
5099 if test -s conftest.err
; then
5100 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5101 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
5108 if test -z "$ac_cpp_err"; then
5111 echo "$as_me: failed program was:" >&5
5112 sed 's/^/| /' conftest.
$ac_ext >&5
5114 # Broken: fails on valid input.
5117 rm -f conftest.err conftest.
$ac_ext
5119 # OK, works on sane cases. Now check whether non-existent headers
5120 # can be detected and how.
5121 cat >conftest.
$ac_ext <<_ACEOF
5124 cat confdefs.h
>>conftest.
$ac_ext
5125 cat >>conftest.
$ac_ext <<_ACEOF
5126 /* end confdefs.h. */
5127 #include <ac_nonexistent.h>
5129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5130 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5132 grep -v '^ *+' conftest.er1
>conftest.err
5134 cat conftest.err
>&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); } >/dev
/null
; then
5137 if test -s conftest.err
; then
5138 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5139 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
5146 if test -z "$ac_cpp_err"; then
5147 # Broken: success on invalid input.
5150 echo "$as_me: failed program was:" >&5
5151 sed 's/^/| /' conftest.
$ac_ext >&5
5153 # Passes both tests.
5157 rm -f conftest.err conftest.
$ac_ext
5160 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5161 rm -f conftest.err conftest.
$ac_ext
5162 if $ac_preproc_ok; then
5167 ac_cv_prog_CXXCPP
=$CXXCPP
5170 CXXCPP
=$ac_cv_prog_CXXCPP
5172 ac_cv_prog_CXXCPP
=$CXXCPP
5174 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5175 echo "${ECHO_T}$CXXCPP" >&6
5177 for ac_cxx_preproc_warn_flag
in '' yes
5179 # Use a header file that comes with gcc, so configuring glibc
5180 # with a fresh cross-compiler works.
5181 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5182 # <limits.h> exists even on freestanding compilers.
5183 # On the NeXT, cc -E runs the code through the compiler's parser,
5184 # not just through cpp. "Syntax error" is here to catch this case.
5185 cat >conftest.
$ac_ext <<_ACEOF
5188 cat confdefs.h
>>conftest.
$ac_ext
5189 cat >>conftest.
$ac_ext <<_ACEOF
5190 /* end confdefs.h. */
5192 # include <limits.h>
5194 # include <assert.h>
5198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5199 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5201 grep -v '^ *+' conftest.er1
>conftest.err
5203 cat conftest.err
>&5
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); } >/dev
/null
; then
5206 if test -s conftest.err
; then
5207 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5208 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
5215 if test -z "$ac_cpp_err"; then
5218 echo "$as_me: failed program was:" >&5
5219 sed 's/^/| /' conftest.
$ac_ext >&5
5221 # Broken: fails on valid input.
5224 rm -f conftest.err conftest.
$ac_ext
5226 # OK, works on sane cases. Now check whether non-existent headers
5227 # can be detected and how.
5228 cat >conftest.
$ac_ext <<_ACEOF
5231 cat confdefs.h
>>conftest.
$ac_ext
5232 cat >>conftest.
$ac_ext <<_ACEOF
5233 /* end confdefs.h. */
5234 #include <ac_nonexistent.h>
5236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5237 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5239 grep -v '^ *+' conftest.er1
>conftest.err
5241 cat conftest.err
>&5
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); } >/dev
/null
; then
5244 if test -s conftest.err
; then
5245 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5246 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
5253 if test -z "$ac_cpp_err"; then
5254 # Broken: success on invalid input.
5257 echo "$as_me: failed program was:" >&5
5258 sed 's/^/| /' conftest.
$ac_ext >&5
5260 # Passes both tests.
5264 rm -f conftest.err conftest.
$ac_ext
5267 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5268 rm -f conftest.err conftest.
$ac_ext
5269 if $ac_preproc_ok; then
5272 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5273 See \`config.log' for more details." >&5
5274 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5275 See \`config.log' for more details." >&2;}
5276 { (exit 1); exit 1; }; }
5280 ac_cpp
='$CPP $CPPFLAGS'
5281 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5282 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5283 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5287 LIBTOOL_DEPS
=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
5289 lt_save_CFLAGS
="$CFLAGS"
5290 AR
="$AR" LTCC
="$CC" CC
="$CXX" CXX
="$CXX" CFLAGS
="$CXXFLAGS" CPPFLAGS
="$CPPFLAGS" \
5291 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
5292 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
5293 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
5294 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
5295 deplibs_check_method
="$deplibs_check_method" \
5296 file_magic_cmd
="$file_magic_cmd" \
5297 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
-o libtool
$libtool_flags \
5298 --build="$build" --add-tag=CXX
$ac_aux_dir/ltcf-cxx.sh
$host \
5299 ||
{ { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5300 echo "$as_me: error: libtool tag configuration failed" >&2;}
5301 { (exit 1); exit 1; }; }
5303 CFLAGS
="$lt_save_CFLAGS"
5305 # Redirect the config.log output again, so that the ltconfig log is not
5306 # clobbered by the next message.
5307 exec 5>>.
/config.log
5317 # Extract the first word of "$ac_prog", so it can be a program name with args.
5318 set dummy
$ac_prog; ac_word
=$2
5319 echo "$as_me:$LINENO: checking for $ac_word" >&5
5320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5321 if test "${ac_cv_prog_GCJ+set}" = set; then
5322 echo $ECHO_N "(cached) $ECHO_C" >&6
5324 if test -n "$GCJ"; then
5325 ac_cv_prog_GCJ
="$GCJ" # Let the user override the test.
5327 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5331 test -z "$as_dir" && as_dir
=.
5332 for ac_exec_ext
in '' $ac_executable_extensions; do
5333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5334 ac_cv_prog_GCJ
="$ac_prog"
5335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5344 if test -n "$GCJ"; then
5345 echo "$as_me:$LINENO: result: $GCJ" >&5
5346 echo "${ECHO_T}$GCJ" >&6
5348 echo "$as_me:$LINENO: result: no" >&5
5349 echo "${ECHO_T}no" >&6
5352 test -n "$GCJ" && break
5354 test -n "$GCJ" || GCJ
="gcj"
5356 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
5357 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
5358 { (exit 1); exit 1; }; }
5359 if test "x${GCJFLAGS-unset}" = xunset
; then
5364 depcc
="$GCJ" am_compiler_list
='gcc3 gcc'
5366 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5367 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5368 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
5369 echo $ECHO_N "(cached) $ECHO_C" >&6
5371 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5372 # We make a subdir and do the tests there. Otherwise we can end up
5373 # making bogus files that we don't know about and never remove. For
5374 # instance it was reported that on HP-UX the gcc test will end up
5375 # making a dummy file named `D' -- because `-MD' means `put the output
5378 # Copy depcomp to subdir because otherwise we won't find it if we're
5379 # using a relative directory.
5380 cp "$am_depcomp" conftest.dir
5382 # We will build objects and dependencies in a subdirectory because
5383 # it helps to detect inapplicable dependency modes. For instance
5384 # both Tru64's cc and ICC support -MD to output dependencies as a
5385 # side effect of compilation, but ICC will put the dependencies in
5386 # the current directory while Tru64 will put them in the object
5390 am_cv_GCJ_dependencies_compiler_type
=none
5391 if test "$am_compiler_list" = ""; then
5392 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5394 for depmode
in $am_compiler_list; do
5395 # Setup a source with many dependencies, because some compilers
5396 # like to wrap large dependency lists on column 80 (with \), and
5397 # we should not choose a depcomp mode which is confused by this.
5399 # We need to recreate these files for each test, as the compiler may
5400 # overwrite some of them when testing with obscure command lines.
5401 # This happens at least with the AIX C compiler.
5403 for i
in 1 2 3 4 5 6; do
5404 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5405 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5406 # Solaris 8's {/usr,}/bin/sh.
5407 touch sub
/conftst
$i.h
5409 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5413 # after this tag, mechanisms are not by side-effect, so they'll
5414 # only be used when explicitly requested
5415 if test "x$enable_dependency_tracking" = xyes
; then
5423 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5424 # mode. It turns out that the SunPro C++ compiler does not properly
5425 # handle `-M -o', and we need to detect this.
5426 if depmode
=$depmode \
5427 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
5428 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5429 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
5430 >/dev
/null
2>conftest.err
&&
5431 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5432 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
5433 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5434 # icc doesn't choke on unknown options, it will just issue warnings
5435 # or remarks (even with -Werror). So we grep stderr for any message
5436 # that says an option was ignored or not supported.
5437 # When given -MP, icc 7.0 and 7.1 complain thusly:
5438 # icc: Command line warning: ignoring option '-M'; no argument required
5439 # The diagnosis changed in icc 8.0:
5440 # icc: Command line remark: option '-MP' not supported
5441 if (grep 'ignoring option' conftest.err ||
5442 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5443 am_cv_GCJ_dependencies_compiler_type
=$depmode
5452 am_cv_GCJ_dependencies_compiler_type
=none
5456 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
5457 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
5458 GCJDEPMODE
=depmode
=$am_cv_GCJ_dependencies_compiler_type
5463 test "x$enable_dependency_tracking" != xno \
5464 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3
; then
5465 am__fastdepGCJ_TRUE
=
5466 am__fastdepGCJ_FALSE
='#'
5468 am__fastdepGCJ_TRUE
='#'
5469 am__fastdepGCJ_FALSE
=
5475 LIBTOOL_DEPS
=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
5477 lt_save_CFLAGS
="$CFLAGS"
5478 AR
="$AR" LTCC
="$CC" CC
="$GCJ" CFLAGS
="$GCJFLAGS" CPPFLAGS
="$CPPFLAGS" \
5479 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
5480 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
5481 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
5482 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
5483 deplibs_check_method
="$deplibs_check_method" \
5484 file_magic_cmd
="$file_magic_cmd" \
5485 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
-o libtool
$libtool_flags \
5486 --build="$build" --add-tag=GCJ
$ac_aux_dir/ltcf-gcj.sh
$host \
5487 ||
{ { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5488 echo "$as_me: error: libtool tag configuration failed" >&2;}
5489 { (exit 1); exit 1; }; }
5491 CFLAGS
="$lt_save_CFLAGS"
5493 # Redirect the config.log output again, so that the ltconfig log is not
5494 # clobbered by the next message.
5495 exec 5>>.
/config.log
5499 if test "x$CC" != xcc
; then
5500 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5501 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
5503 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5504 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
5506 set dummy
$CC; ac_cc
=`echo $2 |
5507 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5508 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
5509 echo $ECHO_N "(cached) $ECHO_C" >&6
5511 cat >conftest.
$ac_ext <<_ACEOF
5514 cat confdefs.h
>>conftest.
$ac_ext
5515 cat >>conftest.
$ac_ext <<_ACEOF
5516 /* end confdefs.h. */
5526 # Make sure it works both with $CC and with simple cc.
5527 # We do the test twice because some compilers refuse to overwrite an
5528 # existing .o file with -o, though they will create one.
5529 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5530 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); } &&
5535 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); };
5541 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
5542 if test "x$CC" != xcc
; then
5543 # Test first that cc exists at all.
5544 if { ac_try
='cc -c conftest.$ac_ext >&5'
5545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); }; }; then
5550 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5551 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); } &&
5556 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); };
5565 # cc exists but doesn't like -o.
5566 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
5571 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
5576 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
5577 echo "$as_me:$LINENO: result: yes" >&5
5578 echo "${ECHO_T}yes" >&6
5580 echo "$as_me:$LINENO: result: no" >&5
5581 echo "${ECHO_T}no" >&6
5583 cat >>confdefs.h
<<\_ACEOF
5584 #define NO_MINUS_C_MINUS_O 1
5589 # FIXME: we rely on the cache variable name because
5590 # there is no other way.
5592 ac_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5593 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
5594 # Losing compiler, so override with the script.
5595 # FIXME: It is wrong to rewrite CC.
5596 # But if we don't then we get into trouble of one sort or another.
5597 # A longer-term fix would be to have automake use am__CC in this case,
5598 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5599 CC
="$am_aux_dir/compile $CC"
5604 subdirs
="$subdirs libltdl"
5607 # The -no-testsuite modules omit the test subdir.
5610 if test -d $srcdir/testsuite
; then
5612 TESTSUBDIR_FALSE
='#'
5619 # Should the runtime set system properties by examining the
5620 # environment variable GCJ_PROPERTIES?
5621 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
5622 if test "${enable_getenv_properties+set}" = set; then
5623 enableval
="$enable_getenv_properties"
5627 # Whether GCJ_PROPERTIES is used depends on the target.
5628 if test -z "$enable_getenv_properties"; then
5629 enable_getenv_properties
=${enable_getenv_properties_default-yes}
5631 if test "$enable_getenv_properties" = no
; then
5633 cat >>confdefs.h
<<\_ACEOF
5634 #define DISABLE_GETENV_PROPERTIES 1
5639 # Whether we should use arguments to main()
5640 if test -z "$enable_main_args"; then
5641 enable_main_args
=${enable_main_args_default-yes}
5643 if test "$enable_main_args" = no
; then
5645 cat >>confdefs.h
<<\_ACEOF
5646 #define DISABLE_MAIN_ARGS 1
5652 # Should we use hashtable-based synchronization?
5653 # Currently works only for Linux X86/ia64
5654 # Typically faster and more space-efficient
5655 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
5656 if test "${enable_hash_synchronization+set}" = set; then
5657 enableval
="$enable_hash_synchronization"
5661 if test -z "$enable_hash_synchronization"; then
5662 enable_hash_synchronization
=$enable_hash_synchronization_default
5665 # Do we allow intermodule optimizations (i.e. compiling many files at once)?
5666 # Check whether --enable-libgcj-multifile or --disable-libgcj-multifile was given.
5667 if test "${enable_libgcj_multifile+set}" = set; then
5668 enableval
="$enable_libgcj_multifile"
5669 case "${enableval}" in
5670 yes) enable_libgcj_multifile
=yes ;;
5671 no
) enable_libgcj_multifile
=no
;;
5672 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-libgcj-multifile" >&5
5673 echo "$as_me: error: bad value ${enableval} for --enable-libgcj-multifile" >&2;}
5674 { (exit 1); exit 1; }; } ;;
5677 enable_libgcj_multifile
=no
5681 if test "$enable_libgcj_multifile" = yes; then
5690 # What is the native OS API for MinGW?
5692 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
5693 if test "${with_win32_nlsapi+set}" = set; then
5694 withval
="$with_win32_nlsapi"
5695 case "${withval}" in
5696 ansi
) with_win32_nlsapi
=ansi
;;
5697 unicows
) with_win32_nlsapi
=unicows
;;
5698 unicode
) with_win32_nlsapi
=unicode
;;
5699 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
5700 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
5701 { (exit 1); exit 1; }; } ;;
5704 with_win32_nlsapi
=ansi
5707 case "${with_win32_nlsapi}" in
5710 cat >>confdefs.h
<<\_ACEOF
5711 #define MINGW_LIBGCJ_UNICODE 1
5717 # configure.host sets slow_pthread_self if the synchronization code should
5718 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
5719 if test "${slow_pthread_self}" = "yes"; then
5721 cat >>confdefs.h
<<\_ACEOF
5722 #define SLOW_PTHREAD_SELF 1
5728 # See if the user has requested runtime debugging.
5731 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
5732 if test "${enable_libgcj_debug+set}" = set; then
5733 enableval
="$enable_libgcj_debug"
5734 if test "$enable_libgcj_debug" = yes; then
5736 cat >>confdefs.h
<<\_ACEOF
5744 # Check for gc debugging. This option is handled both here and in the GC.
5745 # Check whether --enable-gc-debug or --disable-gc-debug was given.
5746 if test "${enable_gc_debug+set}" = set; then
5747 enableval
="$enable_gc_debug"
5748 if test "$enable_gc_debug" = "yes"; then
5750 cat >>confdefs.h
<<\_ACEOF
5751 #define LIBGCJ_GC_DEBUG 1
5757 # See if the user has the interpreter included.
5758 # Check whether --enable-interpreter or --disable-interpreter was given.
5759 if test "${enable_interpreter+set}" = set; then
5760 enableval
="$enable_interpreter"
5761 if test "$enable_interpreter" = yes; then
5762 # This can also be set in configure.host.
5763 libgcj_interpreter
=yes
5764 elif test "$enable_interpreter" = no
; then
5765 libgcj_interpreter
=no
5769 if test "$libgcj_interpreter" = yes; then
5771 cat >>confdefs.h
<<\_ACEOF
5772 #define INTERPRETER 1
5776 INTERPRETER
="$libgcj_interpreter"
5779 echo "$as_me:$LINENO: checking for exception model to use" >&5
5780 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
5782 ac_cpp
='$CXXCPP $CPPFLAGS'
5783 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5784 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5785 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5787 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
5788 if test "${enable_sjlj_exceptions+set}" = set; then
5789 enableval
="$enable_sjlj_exceptions"
5792 cat > conftest.
$ac_ext << EOF
5793 #line 5793 "configure"
5802 old_CXXFLAGS
="$CXXFLAGS"
5804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5805 (eval $ac_compile) 2>&5
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); }; then
5809 if grep _Unwind_SjLj_Resume conftest.s
>/dev
/null
2>&1 ; then
5810 enable_sjlj_exceptions
=yes
5811 elif grep _Unwind_Resume conftest.s
>/dev
/null
2>&1 ; then
5812 enable_sjlj_exceptions
=no
5815 CXXFLAGS
="$old_CXXFLAGS"
5818 if test x
$enable_sjlj_exceptions = xyes
; then
5820 cat >>confdefs.h
<<\_ACEOF
5821 #define SJLJ_EXCEPTIONS 1
5824 ac_exception_model_name
=sjlj
5825 elif test x
$enable_sjlj_exceptions = xno
; then
5826 ac_exception_model_name
="call frame"
5828 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
5829 echo "$as_me: error: unable to detect exception model" >&2;}
5830 { (exit 1); exit 1; }; }
5833 ac_cpp
='$CPP $CPPFLAGS'
5834 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5835 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5836 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5838 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
5839 echo "${ECHO_T}$ac_exception_model_name" >&6
5841 # If we are non using SJLJ exceptions, and this host does not have support
5842 # for unwinding from a signal handler, enable checked dereferences and divides.
5843 if test $can_unwind_signal = no
&& test $enable_sjlj_exceptions = no
; then
5844 CHECKREFSPEC
=-fcheck-references
5845 DIVIDESPEC
=-fuse-divide-subroutine
5849 # See if the user wants to disable java.net. This is the mildly
5850 # ugly way that we admit that target-side configuration sucks.
5851 # Check whether --enable-java-net or --disable-java-net was given.
5852 if test "${enable_java_net+set}" = set; then
5853 enableval
="$enable_java_net"
5857 # Whether java.net is built by default can depend on the target.
5858 if test -z "$enable_java_net"; then
5859 enable_java_net
=${enable_java_net_default-yes}
5861 if test "$enable_java_net" = no
; then
5863 cat >>confdefs.h
<<\_ACEOF
5864 #define DISABLE_JAVA_NET 1
5869 # See if the user wants to configure without libffi. Some
5870 # architectures don't support it, and default values are set in
5873 # Check whether --with-libffi or --without-libffi was given.
5874 if test "${with_libffi+set}" = set; then
5875 withval
="$with_libffi"
5878 with_libffi
=${with_libffi_default-yes}
5883 if test "$with_libffi" != no
; then
5885 cat >>confdefs.h
<<\_ACEOF
5886 #define USE_LIBFFI 1
5889 LIBFFI
=..
/libffi
/libffi_convenience.la
5890 LIBFFIINCS
='-I$(top_srcdir)/../libffi/include -I../libffi/include'
5895 # See if the user wants to disable JVMPI support.
5896 # Check whether --enable-jvmpi or --disable-jvmpi was given.
5897 if test "${enable_jvmpi+set}" = set; then
5898 enableval
="$enable_jvmpi"
5902 if test "$enable_jvmpi" != no
; then
5904 cat >>confdefs.h
<<\_ACEOF
5905 #define ENABLE_JVMPI 1
5910 # If the target is an eCos system, use the appropriate eCos
5912 # FIXME: this should not be a local option but a global target
5913 # system; at present there is no eCos target.
5914 TARGET_ECOS
=${PROCESS-"no"}
5916 # Check whether --with-ecos or --without-ecos was given.
5917 if test "${with_ecos+set}" = set; then
5918 withval
="$with_ecos"
5919 TARGET_ECOS
="$with_ecos"
5925 PLATFORM_INNER_NAT_HDRS
=
5926 case "$TARGET_ECOS" in
5933 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
5934 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
5935 LD_PROG
=`$CC --print-prog-name=ld`
5936 LD_VERSION
=`$LD_PROG --version`
5937 LD_VERSION_MAJOR
=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
5938 LD_VERSION_MINOR
=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
5939 if expr "$LD_VERSION_MAJOR" \
> 2 > /dev
/null
; then
5942 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \
>= 13 > /dev
/null
; then
5946 if test "x$LD_OK" != x
; then
5947 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
5948 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
5950 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
5951 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
5952 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
5953 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
5955 cat >>confdefs.h
<<\_ACEOF
5956 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
5965 PLATFORM_INNER_NAT_HDRS
='java/lang/ConcreteProcess$$ProcessManager.h'
5973 cat >>confdefs.h
<<\_ACEOF
5981 ac_config_links
="$ac_config_links include/platform.h:include/$PLATFORMH"
5985 ac_cpp
='$CPP $CPPFLAGS'
5986 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5987 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5988 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5989 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5990 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5991 # On Suns, sometimes $CPP names a directory.
5992 if test -n "$CPP" && test -d "$CPP"; then
5995 if test -z "$CPP"; then
5996 if test "${ac_cv_prog_CPP+set}" = set; then
5997 echo $ECHO_N "(cached) $ECHO_C" >&6
5999 # Double quotes because CPP needs to be expanded
6000 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6003 for ac_c_preproc_warn_flag
in '' yes
6005 # Use a header file that comes with gcc, so configuring glibc
6006 # with a fresh cross-compiler works.
6007 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6008 # <limits.h> exists even on freestanding compilers.
6009 # On the NeXT, cc -E runs the code through the compiler's parser,
6010 # not just through cpp. "Syntax error" is here to catch this case.
6011 cat >conftest.
$ac_ext <<_ACEOF
6014 cat confdefs.h
>>conftest.
$ac_ext
6015 cat >>conftest.
$ac_ext <<_ACEOF
6016 /* end confdefs.h. */
6018 # include <limits.h>
6020 # include <assert.h>
6024 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6025 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6027 grep -v '^ *+' conftest.er1
>conftest.err
6029 cat conftest.err
>&5
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); } >/dev
/null
; then
6032 if test -s conftest.err
; then
6033 ac_cpp_err
=$ac_c_preproc_warn_flag
6034 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6041 if test -z "$ac_cpp_err"; then
6044 echo "$as_me: failed program was:" >&5
6045 sed 's/^/| /' conftest.
$ac_ext >&5
6047 # Broken: fails on valid input.
6050 rm -f conftest.err conftest.
$ac_ext
6052 # OK, works on sane cases. Now check whether non-existent headers
6053 # can be detected and how.
6054 cat >conftest.
$ac_ext <<_ACEOF
6057 cat confdefs.h
>>conftest.
$ac_ext
6058 cat >>conftest.
$ac_ext <<_ACEOF
6059 /* end confdefs.h. */
6060 #include <ac_nonexistent.h>
6062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6063 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6065 grep -v '^ *+' conftest.er1
>conftest.err
6067 cat conftest.err
>&5
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); } >/dev
/null
; then
6070 if test -s conftest.err
; then
6071 ac_cpp_err
=$ac_c_preproc_warn_flag
6072 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6079 if test -z "$ac_cpp_err"; then
6080 # Broken: success on invalid input.
6083 echo "$as_me: failed program was:" >&5
6084 sed 's/^/| /' conftest.
$ac_ext >&5
6086 # Passes both tests.
6090 rm -f conftest.err conftest.
$ac_ext
6093 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6094 rm -f conftest.err conftest.
$ac_ext
6095 if $ac_preproc_ok; then
6107 echo "$as_me:$LINENO: result: $CPP" >&5
6108 echo "${ECHO_T}$CPP" >&6
6110 for ac_c_preproc_warn_flag
in '' yes
6112 # Use a header file that comes with gcc, so configuring glibc
6113 # with a fresh cross-compiler works.
6114 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6115 # <limits.h> exists even on freestanding compilers.
6116 # On the NeXT, cc -E runs the code through the compiler's parser,
6117 # not just through cpp. "Syntax error" is here to catch this case.
6118 cat >conftest.
$ac_ext <<_ACEOF
6121 cat confdefs.h
>>conftest.
$ac_ext
6122 cat >>conftest.
$ac_ext <<_ACEOF
6123 /* end confdefs.h. */
6125 # include <limits.h>
6127 # include <assert.h>
6131 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6132 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6134 grep -v '^ *+' conftest.er1
>conftest.err
6136 cat conftest.err
>&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); } >/dev
/null
; then
6139 if test -s conftest.err
; then
6140 ac_cpp_err
=$ac_c_preproc_warn_flag
6141 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6148 if test -z "$ac_cpp_err"; then
6151 echo "$as_me: failed program was:" >&5
6152 sed 's/^/| /' conftest.
$ac_ext >&5
6154 # Broken: fails on valid input.
6157 rm -f conftest.err conftest.
$ac_ext
6159 # OK, works on sane cases. Now check whether non-existent headers
6160 # can be detected and how.
6161 cat >conftest.
$ac_ext <<_ACEOF
6164 cat confdefs.h
>>conftest.
$ac_ext
6165 cat >>conftest.
$ac_ext <<_ACEOF
6166 /* end confdefs.h. */
6167 #include <ac_nonexistent.h>
6169 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6170 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6172 grep -v '^ *+' conftest.er1
>conftest.err
6174 cat conftest.err
>&5
6175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176 (exit $ac_status); } >/dev
/null
; then
6177 if test -s conftest.err
; then
6178 ac_cpp_err
=$ac_c_preproc_warn_flag
6179 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6186 if test -z "$ac_cpp_err"; then
6187 # Broken: success on invalid input.
6190 echo "$as_me: failed program was:" >&5
6191 sed 's/^/| /' conftest.
$ac_ext >&5
6193 # Passes both tests.
6197 rm -f conftest.err conftest.
$ac_ext
6200 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6201 rm -f conftest.err conftest.
$ac_ext
6202 if $ac_preproc_ok; then
6205 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6206 See \`config.log' for more details." >&5
6207 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6208 See \`config.log' for more details." >&2;}
6209 { (exit 1); exit 1; }; }
6213 ac_cpp
='$CPP $CPPFLAGS'
6214 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6215 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6216 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6219 echo "$as_me:$LINENO: checking for egrep" >&5
6220 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6221 if test "${ac_cv_prog_egrep+set}" = set; then
6222 echo $ECHO_N "(cached) $ECHO_C" >&6
6224 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
6225 then ac_cv_prog_egrep
='grep -E'
6226 else ac_cv_prog_egrep
='egrep'
6229 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6230 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6231 EGREP
=$ac_cv_prog_egrep
6234 cat >conftest.
$ac_ext <<_ACEOF
6237 cat confdefs.h
>>conftest.
$ac_ext
6238 cat >>conftest.
$ac_ext <<_ACEOF
6239 /* end confdefs.h. */
6243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6244 $EGREP "uint32_t" >/dev
/null
2>&1; then
6246 cat >>confdefs.h
<<\_ACEOF
6247 #define HAVE_INT32_DEFINED 1
6253 cat >conftest.
$ac_ext <<_ACEOF
6256 cat confdefs.h
>>conftest.
$ac_ext
6257 cat >>conftest.
$ac_ext <<_ACEOF
6258 /* end confdefs.h. */
6259 #include <inttypes.h>
6262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6263 $EGREP "uint32_t" >/dev
/null
2>&1; then
6265 cat >>confdefs.h
<<\_ACEOF
6266 #define HAVE_INT32_DEFINED 1
6272 cat >conftest.
$ac_ext <<_ACEOF
6275 cat confdefs.h
>>conftest.
$ac_ext
6276 cat >>conftest.
$ac_ext <<_ACEOF
6277 /* end confdefs.h. */
6278 #include <sys/types.h>
6281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6282 $EGREP "u_int32_t" >/dev
/null
2>&1; then
6284 cat >>confdefs.h
<<\_ACEOF
6285 #define HAVE_BSD_INT32_DEFINED 1
6291 cat >conftest.
$ac_ext <<_ACEOF
6294 cat confdefs.h
>>conftest.
$ac_ext
6295 cat >>conftest.
$ac_ext <<_ACEOF
6296 /* end confdefs.h. */
6297 #include <sys/config.h>
6300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6301 $EGREP "u_int32_t" >/dev
/null
2>&1; then
6303 cat >>confdefs.h
<<\_ACEOF
6304 #define HAVE_BSD_INT32_DEFINED 1
6313 if test "$PLATFORM" = Win32
; then
6314 USING_WIN32_PLATFORM_TRUE
=
6315 USING_WIN32_PLATFORM_FALSE
='#'
6317 USING_WIN32_PLATFORM_TRUE
='#'
6318 USING_WIN32_PLATFORM_FALSE
=
6323 if test "$PLATFORM" = Posix
; then
6324 USING_POSIX_PLATFORM_TRUE
=
6325 USING_POSIX_PLATFORM_FALSE
='#'
6327 USING_POSIX_PLATFORM_TRUE
='#'
6328 USING_POSIX_PLATFORM_FALSE
=
6333 if test "$PLATFORM" = Ecos
; then
6334 USING_ECOS_PLATFORM_TRUE
=
6335 USING_ECOS_PLATFORM_FALSE
='#'
6337 USING_ECOS_PLATFORM_TRUE
='#'
6338 USING_ECOS_PLATFORM_FALSE
=
6343 *-darwin*) DARWIN_CRT
=true
;;
6344 *) DARWIN_CRT
=false
;;
6348 if $DARWIN_CRT; then
6349 USING_DARWIN_CRT_TRUE
=
6350 USING_DARWIN_CRT_FALSE
='#'
6352 USING_DARWIN_CRT_TRUE
='#'
6353 USING_DARWIN_CRT_FALSE
=
6357 # These may not be defined in a non-ANS conformant embedded system.
6358 # FIXME: Should these case a runtime exception in that case?
6359 cat >conftest.
$ac_ext <<_ACEOF
6362 cat confdefs.h
>>conftest.
$ac_ext
6363 cat >>conftest.
$ac_ext <<_ACEOF
6364 /* end confdefs.h. */
6368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6369 $EGREP "mktime" >/dev
/null
2>&1; then
6371 cat >>confdefs.h
<<\_ACEOF
6372 #define HAVE_MKTIME 1
6378 cat >conftest.
$ac_ext <<_ACEOF
6381 cat confdefs.h
>>conftest.
$ac_ext
6382 cat >>conftest.
$ac_ext <<_ACEOF
6383 /* end confdefs.h. */
6387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6388 $EGREP "localtime" >/dev
/null
2>&1; then
6390 cat >>confdefs.h
<<\_ACEOF
6391 #define HAVE_LOCALTIME 1
6398 # Create the subdirectory for natFile.cc, or the attempt
6399 # to create the link will fail.
6400 test -d java || mkdir java
6401 test -d java
/io || mkdir java
/io
6402 test -d gnu || mkdir gnu
6403 ac_config_links
="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
6406 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
6407 test -d java
/lang || mkdir java
/lang
6408 ac_config_links
="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
6410 ac_config_links
="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
6413 # Likewise for natInetAddress.cc and natNetworkInterface.cc.
6414 test -d java
/net || mkdir java
/net
6415 ac_config_links
="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
6417 ac_config_links
="$ac_config_links java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc"
6420 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
6421 test -d gnu
/java || mkdir gnu
/java
6422 test -d gnu
/java
/net || mkdir gnu
/java
/net
6423 ac_config_links
="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
6425 ac_config_links
="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
6428 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
6429 test -d gnu
/java
/nio || mkdir gnu
/java
/nio
6430 ac_config_links
="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
6432 ac_config_links
="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
6434 test -d gnu
/java
/nio
/channels || mkdir gnu
/java
/nio
/channels
6435 ac_config_links
="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
6440 SYSTEMSPEC
="-lgdi32 -lws2_32"
6441 if test "${with_win32_nlsapi}" = "unicows"; then
6442 SYSTEMSPEC
="-lunicows $SYSTEMSPEC"
6451 LIBGCJTESTSPEC
="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
6455 # Check whether --with-system-zlib or --without-system-zlib was given.
6456 if test "${with_system_zlib+set}" = set; then
6457 withval
="$with_system_zlib"
6465 echo "$as_me:$LINENO: checking for X" >&5
6466 echo $ECHO_N "checking for X... $ECHO_C" >&6
6469 # Check whether --with-x or --without-x was given.
6470 if test "${with_x+set}" = set; then
6474 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6475 if test "x$with_x" = xno
; then
6476 # The user explicitly disabled X.
6479 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
6480 # Both variables are already set.
6483 if test "${ac_cv_have_x+set}" = set; then
6484 echo $ECHO_N "(cached) $ECHO_C" >&6
6486 # One or both of the vars are not set, and there is no cached value.
6487 ac_x_includes
=no ac_x_libraries
=no
6489 if mkdir conftest.dir
; then
6491 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6492 cat >Imakefile
<<'_ACEOF'
6494 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6496 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
6497 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6498 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6499 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6500 for ac_extension
in a so sl
; do
6501 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
6502 test -f $ac_im_libdir/libX11.
$ac_extension; then
6503 ac_im_usrlibdir
=$ac_im_libdir; break
6506 # Screen out bogus values from the imake configuration. They are
6507 # bogus both because they are the default anyway, and because
6508 # using them would break gcc on systems where it needs fixed includes.
6509 case $ac_im_incroot in
6511 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
6513 case $ac_im_usrlibdir in
6515 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
6522 # Standard set of common directories for X headers.
6523 # Check X11 before X11Rn because it is often a symlink to the current release.
6535 /usr/local/X11/include
6536 /usr/local/X11R6/include
6537 /usr/local/X11R5/include
6538 /usr/local/X11R4/include
6540 /usr/local/include/X11
6541 /usr/local/include/X11R6
6542 /usr/local/include/X11R5
6543 /usr/local/include/X11R4
6547 /usr/XFree86/include/X11
6551 /usr/unsupported/include
6553 /usr/local/x11r5/include
6554 /usr/lpp/Xamples/include
6556 /usr/openwin/include
6557 /usr/openwin/share/include'
6559 if test "$ac_x_includes" = no
; then
6560 # Guess where to find include files, by looking for Intrinsic.h.
6561 # First, try using that file with no special directory specified.
6562 cat >conftest.
$ac_ext <<_ACEOF
6565 cat confdefs.h
>>conftest.
$ac_ext
6566 cat >>conftest.
$ac_ext <<_ACEOF
6567 /* end confdefs.h. */
6568 #include <X11/Intrinsic.h>
6570 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6571 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6573 grep -v '^ *+' conftest.er1
>conftest.err
6575 cat conftest.err
>&5
6576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577 (exit $ac_status); } >/dev
/null
; then
6578 if test -s conftest.err
; then
6579 ac_cpp_err
=$ac_c_preproc_warn_flag
6580 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6587 if test -z "$ac_cpp_err"; then
6588 # We can compile using X headers with no special include directory.
6591 echo "$as_me: failed program was:" >&5
6592 sed 's/^/| /' conftest.
$ac_ext >&5
6594 for ac_dir
in $ac_x_header_dirs; do
6595 if test -r "$ac_dir/X11/Intrinsic.h"; then
6596 ac_x_includes
=$ac_dir
6601 rm -f conftest.err conftest.
$ac_ext
6602 fi # $ac_x_includes = no
6604 if test "$ac_x_libraries" = no
; then
6605 # Check for the libraries.
6606 # See if we find them without any special options.
6607 # Don't add to $LIBS permanently.
6610 if test x
$gcc_no_link = xyes
; then
6611 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6612 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6613 { (exit 1); exit 1; }; }
6615 cat >conftest.
$ac_ext <<_ACEOF
6618 cat confdefs.h
>>conftest.
$ac_ext
6619 cat >>conftest.
$ac_ext <<_ACEOF
6620 /* end confdefs.h. */
6621 #include <X11/Intrinsic.h>
6630 rm -f conftest.
$ac_objext conftest
$ac_exeext
6631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6632 (eval $ac_link) 2>conftest.er1
6634 grep -v '^ *+' conftest.er1
>conftest.err
6636 cat conftest.err
>&5
6637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638 (exit $ac_status); } &&
6639 { ac_try
='test -z "$ac_c_werror_flag"
6640 || test ! -s conftest.err'
6641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); }; } &&
6646 { ac_try
='test -s conftest$ac_exeext'
6647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651 (exit $ac_status); }; }; then
6653 # We can link X programs with no special library path.
6656 echo "$as_me: failed program was:" >&5
6657 sed 's/^/| /' conftest.
$ac_ext >&5
6660 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6662 # Don't even attempt the hair of trying to link an X program!
6663 for ac_extension
in a so sl
; do
6664 if test -r $ac_dir/libXt.
$ac_extension; then
6665 ac_x_libraries
=$ac_dir
6671 rm -f conftest.err conftest.
$ac_objext \
6672 conftest
$ac_exeext conftest.
$ac_ext
6673 fi # $ac_x_libraries = no
6675 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
6676 # Didn't find X anywhere. Cache the known absence of X.
6677 ac_cv_have_x
="have_x=no"
6679 # Record where we found X for the cache.
6680 ac_cv_have_x
="have_x=yes \
6681 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6686 eval "$ac_cv_have_x"
6689 if test "$have_x" != yes; then
6690 echo "$as_me:$LINENO: result: $have_x" >&5
6691 echo "${ECHO_T}$have_x" >&6
6694 # If each of the values was on the command line, it overrides each guess.
6695 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
6696 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
6697 # Update the cache value to reflect the command line values.
6698 ac_cv_have_x
="have_x=yes \
6699 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6700 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6701 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6704 if test "$no_x" = yes; then
6705 # Not all programs may use this symbol, but it does not hurt to define it.
6707 cat >>confdefs.h
<<\_ACEOF
6708 #define X_DISPLAY_MISSING 1
6711 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
6713 if test -n "$x_includes"; then
6714 X_CFLAGS
="$X_CFLAGS -I$x_includes"
6717 # It would also be nice to do this for all -L options, not just this one.
6718 if test -n "$x_libraries"; then
6719 X_LIBS
="$X_LIBS -L$x_libraries"
6720 # For Solaris; some versions of Sun CC require a space after -R and
6721 # others require no space. Words are not sufficient . . . .
6722 case `(uname -sr) 2>/dev/null` in
6724 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6725 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
6726 ac_xsave_LIBS
=$LIBS; LIBS
="$LIBS -R$x_libraries"
6727 if test x
$gcc_no_link = xyes
; then
6728 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6729 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6730 { (exit 1); exit 1; }; }
6732 cat >conftest.
$ac_ext <<_ACEOF
6735 cat confdefs.h
>>conftest.
$ac_ext
6736 cat >>conftest.
$ac_ext <<_ACEOF
6737 /* end confdefs.h. */
6747 rm -f conftest.
$ac_objext conftest
$ac_exeext
6748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6749 (eval $ac_link) 2>conftest.er1
6751 grep -v '^ *+' conftest.er1
>conftest.err
6753 cat conftest.err
>&5
6754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755 (exit $ac_status); } &&
6756 { ac_try
='test -z "$ac_c_werror_flag"
6757 || test ! -s conftest.err'
6758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); }; } &&
6763 { ac_try
='test -s conftest$ac_exeext'
6764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); }; }; then
6771 echo "$as_me: failed program was:" >&5
6772 sed 's/^/| /' conftest.
$ac_ext >&5
6776 rm -f conftest.err conftest.
$ac_objext \
6777 conftest
$ac_exeext conftest.
$ac_ext
6778 if test $ac_R_nospace = yes; then
6779 echo "$as_me:$LINENO: result: no" >&5
6780 echo "${ECHO_T}no" >&6
6781 X_LIBS
="$X_LIBS -R$x_libraries"
6783 LIBS
="$ac_xsave_LIBS -R $x_libraries"
6784 if test x
$gcc_no_link = xyes
; then
6785 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6786 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6787 { (exit 1); exit 1; }; }
6789 cat >conftest.
$ac_ext <<_ACEOF
6792 cat confdefs.h
>>conftest.
$ac_ext
6793 cat >>conftest.
$ac_ext <<_ACEOF
6794 /* end confdefs.h. */
6804 rm -f conftest.
$ac_objext conftest
$ac_exeext
6805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6806 (eval $ac_link) 2>conftest.er1
6808 grep -v '^ *+' conftest.er1
>conftest.err
6810 cat conftest.err
>&5
6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); } &&
6813 { ac_try
='test -z "$ac_c_werror_flag"
6814 || test ! -s conftest.err'
6815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); }; } &&
6820 { ac_try
='test -s conftest$ac_exeext'
6821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); }; }; then
6828 echo "$as_me: failed program was:" >&5
6829 sed 's/^/| /' conftest.
$ac_ext >&5
6833 rm -f conftest.err conftest.
$ac_objext \
6834 conftest
$ac_exeext conftest.
$ac_ext
6835 if test $ac_R_space = yes; then
6836 echo "$as_me:$LINENO: result: yes" >&5
6837 echo "${ECHO_T}yes" >&6
6838 X_LIBS
="$X_LIBS -R $x_libraries"
6840 echo "$as_me:$LINENO: result: neither works" >&5
6841 echo "${ECHO_T}neither works" >&6
6848 # Check for system-dependent libraries X programs must link with.
6849 # Do this before checking for the system-independent R6 libraries
6850 # (-lICE), since we may need -lsocket or whatever for X linking.
6852 if test "$ISC" = yes; then
6853 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
6855 # Martyn Johnson says this is needed for Ultrix, if the X
6856 # libraries were built with DECnet support. And Karl Berry says
6857 # the Alpha needs dnet_stub (dnet does not exist).
6858 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS $X_LIBS -lX11"
6859 if test x
$gcc_no_link = xyes
; then
6860 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6861 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6862 { (exit 1); exit 1; }; }
6864 cat >conftest.
$ac_ext <<_ACEOF
6867 cat confdefs.h
>>conftest.
$ac_ext
6868 cat >>conftest.
$ac_ext <<_ACEOF
6869 /* end confdefs.h. */
6871 /* Override any gcc2 internal prototype to avoid an error. */
6875 /* We use char because int might match the return type of a gcc2
6876 builtin and then its argument prototype would still apply. */
6877 char XOpenDisplay ();
6886 rm -f conftest.
$ac_objext conftest
$ac_exeext
6887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6888 (eval $ac_link) 2>conftest.er1
6890 grep -v '^ *+' conftest.er1
>conftest.err
6892 cat conftest.err
>&5
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); } &&
6895 { ac_try
='test -z "$ac_c_werror_flag"
6896 || test ! -s conftest.err'
6897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); }; } &&
6902 { ac_try
='test -s conftest$ac_exeext'
6903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); }; }; then
6910 echo "$as_me: failed program was:" >&5
6911 sed 's/^/| /' conftest.
$ac_ext >&5
6913 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6914 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6915 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6916 echo $ECHO_N "(cached) $ECHO_C" >&6
6918 ac_check_lib_save_LIBS
=$LIBS
6920 if test x
$gcc_no_link = xyes
; then
6921 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6922 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6923 { (exit 1); exit 1; }; }
6925 cat >conftest.
$ac_ext <<_ACEOF
6928 cat confdefs.h
>>conftest.
$ac_ext
6929 cat >>conftest.
$ac_ext <<_ACEOF
6930 /* end confdefs.h. */
6932 /* Override any gcc2 internal prototype to avoid an error. */
6936 /* We use char because int might match the return type of a gcc2
6937 builtin and then its argument prototype would still apply. */
6947 rm -f conftest.
$ac_objext conftest
$ac_exeext
6948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6949 (eval $ac_link) 2>conftest.er1
6951 grep -v '^ *+' conftest.er1
>conftest.err
6953 cat conftest.err
>&5
6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955 (exit $ac_status); } &&
6956 { ac_try
='test -z "$ac_c_werror_flag"
6957 || test ! -s conftest.err'
6958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); }; } &&
6963 { ac_try
='test -s conftest$ac_exeext'
6964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); }; }; then
6969 ac_cv_lib_dnet_dnet_ntoa
=yes
6971 echo "$as_me: failed program was:" >&5
6972 sed 's/^/| /' conftest.
$ac_ext >&5
6974 ac_cv_lib_dnet_dnet_ntoa
=no
6976 rm -f conftest.err conftest.
$ac_objext \
6977 conftest
$ac_exeext conftest.
$ac_ext
6978 LIBS
=$ac_check_lib_save_LIBS
6980 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6981 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6982 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6983 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
6986 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
6987 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6988 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
6989 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6990 echo $ECHO_N "(cached) $ECHO_C" >&6
6992 ac_check_lib_save_LIBS
=$LIBS
6993 LIBS
="-ldnet_stub $LIBS"
6994 if test x
$gcc_no_link = xyes
; then
6995 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6996 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6997 { (exit 1); exit 1; }; }
6999 cat >conftest.
$ac_ext <<_ACEOF
7002 cat confdefs.h
>>conftest.
$ac_ext
7003 cat >>conftest.
$ac_ext <<_ACEOF
7004 /* end confdefs.h. */
7006 /* Override any gcc2 internal prototype to avoid an error. */
7010 /* We use char because int might match the return type of a gcc2
7011 builtin and then its argument prototype would still apply. */
7021 rm -f conftest.
$ac_objext conftest
$ac_exeext
7022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7023 (eval $ac_link) 2>conftest.er1
7025 grep -v '^ *+' conftest.er1
>conftest.err
7027 cat conftest.err
>&5
7028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); } &&
7030 { ac_try
='test -z "$ac_c_werror_flag"
7031 || test ! -s conftest.err'
7032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036 (exit $ac_status); }; } &&
7037 { ac_try
='test -s conftest$ac_exeext'
7038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042 (exit $ac_status); }; }; then
7043 ac_cv_lib_dnet_stub_dnet_ntoa
=yes
7045 echo "$as_me: failed program was:" >&5
7046 sed 's/^/| /' conftest.
$ac_ext >&5
7048 ac_cv_lib_dnet_stub_dnet_ntoa
=no
7050 rm -f conftest.err conftest.
$ac_objext \
7051 conftest
$ac_exeext conftest.
$ac_ext
7052 LIBS
=$ac_check_lib_save_LIBS
7054 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7055 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7056 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7057 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
7062 rm -f conftest.err conftest.
$ac_objext \
7063 conftest
$ac_exeext conftest.
$ac_ext
7064 LIBS
="$ac_xsave_LIBS"
7066 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7067 # to get the SysV transport functions.
7068 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7070 # The nsl library prevents programs from opening the X display
7071 # on Irix 5.2, according to T.E. Dickey.
7072 # The functions gethostbyname, getservbyname, and inet_addr are
7073 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7074 echo "$as_me:$LINENO: checking for gethostbyname" >&5
7075 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7076 if test "${ac_cv_func_gethostbyname+set}" = set; then
7077 echo $ECHO_N "(cached) $ECHO_C" >&6
7079 if test x
$gcc_no_link = xyes
; then
7080 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7081 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7082 { (exit 1); exit 1; }; }
7084 cat >conftest.
$ac_ext <<_ACEOF
7087 cat confdefs.h
>>conftest.
$ac_ext
7088 cat >>conftest.
$ac_ext <<_ACEOF
7089 /* end confdefs.h. */
7090 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
7091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7092 #define gethostbyname innocuous_gethostbyname
7094 /* System header to define __stub macros and hopefully few prototypes,
7095 which can conflict with char gethostbyname (); below.
7096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7097 <limits.h> exists even on freestanding compilers. */
7100 # include <limits.h>
7102 # include <assert.h>
7105 #undef gethostbyname
7107 /* Override any gcc2 internal prototype to avoid an error. */
7112 /* We use char because int might match the return type of a gcc2
7113 builtin and then its argument prototype would still apply. */
7114 char gethostbyname ();
7115 /* The GNU C library defines this for functions which it implements
7116 to always fail with ENOSYS. Some functions are actually named
7117 something starting with __ and the normal name is an alias. */
7118 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7121 char (*f) () = gethostbyname;
7130 return f != gethostbyname;
7135 rm -f conftest.
$ac_objext conftest
$ac_exeext
7136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7137 (eval $ac_link) 2>conftest.er1
7139 grep -v '^ *+' conftest.er1
>conftest.err
7141 cat conftest.err
>&5
7142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143 (exit $ac_status); } &&
7144 { ac_try
='test -z "$ac_c_werror_flag"
7145 || test ! -s conftest.err'
7146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150 (exit $ac_status); }; } &&
7151 { ac_try
='test -s conftest$ac_exeext'
7152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 (exit $ac_status); }; }; then
7157 ac_cv_func_gethostbyname
=yes
7159 echo "$as_me: failed program was:" >&5
7160 sed 's/^/| /' conftest.
$ac_ext >&5
7162 ac_cv_func_gethostbyname
=no
7164 rm -f conftest.err conftest.
$ac_objext \
7165 conftest
$ac_exeext conftest.
$ac_ext
7167 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7168 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7170 if test $ac_cv_func_gethostbyname = no
; then
7171 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7172 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7173 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7174 echo $ECHO_N "(cached) $ECHO_C" >&6
7176 ac_check_lib_save_LIBS
=$LIBS
7178 if test x
$gcc_no_link = xyes
; then
7179 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7180 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7181 { (exit 1); exit 1; }; }
7183 cat >conftest.
$ac_ext <<_ACEOF
7186 cat confdefs.h
>>conftest.
$ac_ext
7187 cat >>conftest.
$ac_ext <<_ACEOF
7188 /* end confdefs.h. */
7190 /* Override any gcc2 internal prototype to avoid an error. */
7194 /* We use char because int might match the return type of a gcc2
7195 builtin and then its argument prototype would still apply. */
7196 char gethostbyname ();
7205 rm -f conftest.
$ac_objext conftest
$ac_exeext
7206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7207 (eval $ac_link) 2>conftest.er1
7209 grep -v '^ *+' conftest.er1
>conftest.err
7211 cat conftest.err
>&5
7212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213 (exit $ac_status); } &&
7214 { ac_try
='test -z "$ac_c_werror_flag"
7215 || test ! -s conftest.err'
7216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220 (exit $ac_status); }; } &&
7221 { ac_try
='test -s conftest$ac_exeext'
7222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 (exit $ac_status); }; }; then
7227 ac_cv_lib_nsl_gethostbyname
=yes
7229 echo "$as_me: failed program was:" >&5
7230 sed 's/^/| /' conftest.
$ac_ext >&5
7232 ac_cv_lib_nsl_gethostbyname
=no
7234 rm -f conftest.err conftest.
$ac_objext \
7235 conftest
$ac_exeext conftest.
$ac_ext
7236 LIBS
=$ac_check_lib_save_LIBS
7238 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7239 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7240 if test $ac_cv_lib_nsl_gethostbyname = yes; then
7241 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
7244 if test $ac_cv_lib_nsl_gethostbyname = no
; then
7245 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7246 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
7247 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7248 echo $ECHO_N "(cached) $ECHO_C" >&6
7250 ac_check_lib_save_LIBS
=$LIBS
7252 if test x
$gcc_no_link = xyes
; then
7253 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7254 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7255 { (exit 1); exit 1; }; }
7257 cat >conftest.
$ac_ext <<_ACEOF
7260 cat confdefs.h
>>conftest.
$ac_ext
7261 cat >>conftest.
$ac_ext <<_ACEOF
7262 /* end confdefs.h. */
7264 /* Override any gcc2 internal prototype to avoid an error. */
7268 /* We use char because int might match the return type of a gcc2
7269 builtin and then its argument prototype would still apply. */
7270 char gethostbyname ();
7279 rm -f conftest.
$ac_objext conftest
$ac_exeext
7280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7281 (eval $ac_link) 2>conftest.er1
7283 grep -v '^ *+' conftest.er1
>conftest.err
7285 cat conftest.err
>&5
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); } &&
7288 { ac_try
='test -z "$ac_c_werror_flag"
7289 || test ! -s conftest.err'
7290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); }; } &&
7295 { ac_try
='test -s conftest$ac_exeext'
7296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); }; }; then
7301 ac_cv_lib_bsd_gethostbyname
=yes
7303 echo "$as_me: failed program was:" >&5
7304 sed 's/^/| /' conftest.
$ac_ext >&5
7306 ac_cv_lib_bsd_gethostbyname
=no
7308 rm -f conftest.err conftest.
$ac_objext \
7309 conftest
$ac_exeext conftest.
$ac_ext
7310 LIBS
=$ac_check_lib_save_LIBS
7312 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7313 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
7314 if test $ac_cv_lib_bsd_gethostbyname = yes; then
7315 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lbsd"
7321 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7322 # socket/setsockopt and other routines are undefined under SCO ODT
7323 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7324 # on later versions), says Simon Leinen: it contains gethostby*
7325 # variants that don't use the name server (or something). -lsocket
7326 # must be given before -lnsl if both are needed. We assume that
7327 # if connect needs -lnsl, so does gethostbyname.
7328 echo "$as_me:$LINENO: checking for connect" >&5
7329 echo $ECHO_N "checking for connect... $ECHO_C" >&6
7330 if test "${ac_cv_func_connect+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7333 if test x
$gcc_no_link = xyes
; then
7334 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7335 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7336 { (exit 1); exit 1; }; }
7338 cat >conftest.
$ac_ext <<_ACEOF
7341 cat confdefs.h
>>conftest.
$ac_ext
7342 cat >>conftest.
$ac_ext <<_ACEOF
7343 /* end confdefs.h. */
7344 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7346 #define connect innocuous_connect
7348 /* System header to define __stub macros and hopefully few prototypes,
7349 which can conflict with char connect (); below.
7350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7351 <limits.h> exists even on freestanding compilers. */
7354 # include <limits.h>
7356 # include <assert.h>
7361 /* Override any gcc2 internal prototype to avoid an error. */
7366 /* We use char because int might match the return type of a gcc2
7367 builtin and then its argument prototype would still apply. */
7369 /* The GNU C library defines this for functions which it implements
7370 to always fail with ENOSYS. Some functions are actually named
7371 something starting with __ and the normal name is an alias. */
7372 #if defined (__stub_connect) || defined (__stub___connect)
7375 char (*f) () = connect;
7384 return f != connect;
7389 rm -f conftest.
$ac_objext conftest
$ac_exeext
7390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7391 (eval $ac_link) 2>conftest.er1
7393 grep -v '^ *+' conftest.er1
>conftest.err
7395 cat conftest.err
>&5
7396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397 (exit $ac_status); } &&
7398 { ac_try
='test -z "$ac_c_werror_flag"
7399 || test ! -s conftest.err'
7400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404 (exit $ac_status); }; } &&
7405 { ac_try
='test -s conftest$ac_exeext'
7406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410 (exit $ac_status); }; }; then
7411 ac_cv_func_connect
=yes
7413 echo "$as_me: failed program was:" >&5
7414 sed 's/^/| /' conftest.
$ac_ext >&5
7416 ac_cv_func_connect
=no
7418 rm -f conftest.err conftest.
$ac_objext \
7419 conftest
$ac_exeext conftest.
$ac_ext
7421 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7422 echo "${ECHO_T}$ac_cv_func_connect" >&6
7424 if test $ac_cv_func_connect = no
; then
7425 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7426 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
7427 if test "${ac_cv_lib_socket_connect+set}" = set; then
7428 echo $ECHO_N "(cached) $ECHO_C" >&6
7430 ac_check_lib_save_LIBS
=$LIBS
7431 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
7432 if test x
$gcc_no_link = xyes
; then
7433 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7434 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7435 { (exit 1); exit 1; }; }
7437 cat >conftest.
$ac_ext <<_ACEOF
7440 cat confdefs.h
>>conftest.
$ac_ext
7441 cat >>conftest.
$ac_ext <<_ACEOF
7442 /* end confdefs.h. */
7444 /* Override any gcc2 internal prototype to avoid an error. */
7448 /* We use char because int might match the return type of a gcc2
7449 builtin and then its argument prototype would still apply. */
7459 rm -f conftest.
$ac_objext conftest
$ac_exeext
7460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7461 (eval $ac_link) 2>conftest.er1
7463 grep -v '^ *+' conftest.er1
>conftest.err
7465 cat conftest.err
>&5
7466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); } &&
7468 { ac_try
='test -z "$ac_c_werror_flag"
7469 || test ! -s conftest.err'
7470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474 (exit $ac_status); }; } &&
7475 { ac_try
='test -s conftest$ac_exeext'
7476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); }; }; then
7481 ac_cv_lib_socket_connect
=yes
7483 echo "$as_me: failed program was:" >&5
7484 sed 's/^/| /' conftest.
$ac_ext >&5
7486 ac_cv_lib_socket_connect
=no
7488 rm -f conftest.err conftest.
$ac_objext \
7489 conftest
$ac_exeext conftest.
$ac_ext
7490 LIBS
=$ac_check_lib_save_LIBS
7492 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7493 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
7494 if test $ac_cv_lib_socket_connect = yes; then
7495 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
7500 # Guillermo Gomez says -lposix is necessary on A/UX.
7501 echo "$as_me:$LINENO: checking for remove" >&5
7502 echo $ECHO_N "checking for remove... $ECHO_C" >&6
7503 if test "${ac_cv_func_remove+set}" = set; then
7504 echo $ECHO_N "(cached) $ECHO_C" >&6
7506 if test x
$gcc_no_link = xyes
; then
7507 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7508 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7509 { (exit 1); exit 1; }; }
7511 cat >conftest.
$ac_ext <<_ACEOF
7514 cat confdefs.h
>>conftest.
$ac_ext
7515 cat >>conftest.
$ac_ext <<_ACEOF
7516 /* end confdefs.h. */
7517 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7518 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7519 #define remove innocuous_remove
7521 /* System header to define __stub macros and hopefully few prototypes,
7522 which can conflict with char remove (); below.
7523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7524 <limits.h> exists even on freestanding compilers. */
7527 # include <limits.h>
7529 # include <assert.h>
7534 /* Override any gcc2 internal prototype to avoid an error. */
7539 /* We use char because int might match the return type of a gcc2
7540 builtin and then its argument prototype would still apply. */
7542 /* The GNU C library defines this for functions which it implements
7543 to always fail with ENOSYS. Some functions are actually named
7544 something starting with __ and the normal name is an alias. */
7545 #if defined (__stub_remove) || defined (__stub___remove)
7548 char (*f) () = remove;
7562 rm -f conftest.
$ac_objext conftest
$ac_exeext
7563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7564 (eval $ac_link) 2>conftest.er1
7566 grep -v '^ *+' conftest.er1
>conftest.err
7568 cat conftest.err
>&5
7569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); } &&
7571 { ac_try
='test -z "$ac_c_werror_flag"
7572 || test ! -s conftest.err'
7573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); }; } &&
7578 { ac_try
='test -s conftest$ac_exeext'
7579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583 (exit $ac_status); }; }; then
7584 ac_cv_func_remove
=yes
7586 echo "$as_me: failed program was:" >&5
7587 sed 's/^/| /' conftest.
$ac_ext >&5
7589 ac_cv_func_remove
=no
7591 rm -f conftest.err conftest.
$ac_objext \
7592 conftest
$ac_exeext conftest.
$ac_ext
7594 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7595 echo "${ECHO_T}$ac_cv_func_remove" >&6
7597 if test $ac_cv_func_remove = no
; then
7598 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7599 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
7600 if test "${ac_cv_lib_posix_remove+set}" = set; then
7601 echo $ECHO_N "(cached) $ECHO_C" >&6
7603 ac_check_lib_save_LIBS
=$LIBS
7604 LIBS
="-lposix $LIBS"
7605 if test x
$gcc_no_link = xyes
; then
7606 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7607 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7608 { (exit 1); exit 1; }; }
7610 cat >conftest.
$ac_ext <<_ACEOF
7613 cat confdefs.h
>>conftest.
$ac_ext
7614 cat >>conftest.
$ac_ext <<_ACEOF
7615 /* end confdefs.h. */
7617 /* Override any gcc2 internal prototype to avoid an error. */
7621 /* We use char because int might match the return type of a gcc2
7622 builtin and then its argument prototype would still apply. */
7632 rm -f conftest.
$ac_objext conftest
$ac_exeext
7633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7634 (eval $ac_link) 2>conftest.er1
7636 grep -v '^ *+' conftest.er1
>conftest.err
7638 cat conftest.err
>&5
7639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); } &&
7641 { ac_try
='test -z "$ac_c_werror_flag"
7642 || test ! -s conftest.err'
7643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647 (exit $ac_status); }; } &&
7648 { ac_try
='test -s conftest$ac_exeext'
7649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); }; }; then
7654 ac_cv_lib_posix_remove
=yes
7656 echo "$as_me: failed program was:" >&5
7657 sed 's/^/| /' conftest.
$ac_ext >&5
7659 ac_cv_lib_posix_remove
=no
7661 rm -f conftest.err conftest.
$ac_objext \
7662 conftest
$ac_exeext conftest.
$ac_ext
7663 LIBS
=$ac_check_lib_save_LIBS
7665 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7666 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
7667 if test $ac_cv_lib_posix_remove = yes; then
7668 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
7673 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7674 echo "$as_me:$LINENO: checking for shmat" >&5
7675 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
7676 if test "${ac_cv_func_shmat+set}" = set; then
7677 echo $ECHO_N "(cached) $ECHO_C" >&6
7679 if test x
$gcc_no_link = xyes
; then
7680 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7681 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7682 { (exit 1); exit 1; }; }
7684 cat >conftest.
$ac_ext <<_ACEOF
7687 cat confdefs.h
>>conftest.
$ac_ext
7688 cat >>conftest.
$ac_ext <<_ACEOF
7689 /* end confdefs.h. */
7690 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7692 #define shmat innocuous_shmat
7694 /* System header to define __stub macros and hopefully few prototypes,
7695 which can conflict with char shmat (); below.
7696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7697 <limits.h> exists even on freestanding compilers. */
7700 # include <limits.h>
7702 # include <assert.h>
7707 /* Override any gcc2 internal prototype to avoid an error. */
7712 /* We use char because int might match the return type of a gcc2
7713 builtin and then its argument prototype would still apply. */
7715 /* The GNU C library defines this for functions which it implements
7716 to always fail with ENOSYS. Some functions are actually named
7717 something starting with __ and the normal name is an alias. */
7718 #if defined (__stub_shmat) || defined (__stub___shmat)
7721 char (*f) () = shmat;
7735 rm -f conftest.
$ac_objext conftest
$ac_exeext
7736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7737 (eval $ac_link) 2>conftest.er1
7739 grep -v '^ *+' conftest.er1
>conftest.err
7741 cat conftest.err
>&5
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); } &&
7744 { ac_try
='test -z "$ac_c_werror_flag"
7745 || test ! -s conftest.err'
7746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750 (exit $ac_status); }; } &&
7751 { ac_try
='test -s conftest$ac_exeext'
7752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 (exit $ac_status); }; }; then
7757 ac_cv_func_shmat
=yes
7759 echo "$as_me: failed program was:" >&5
7760 sed 's/^/| /' conftest.
$ac_ext >&5
7764 rm -f conftest.err conftest.
$ac_objext \
7765 conftest
$ac_exeext conftest.
$ac_ext
7767 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7768 echo "${ECHO_T}$ac_cv_func_shmat" >&6
7770 if test $ac_cv_func_shmat = no
; then
7771 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7772 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
7773 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7774 echo $ECHO_N "(cached) $ECHO_C" >&6
7776 ac_check_lib_save_LIBS
=$LIBS
7778 if test x
$gcc_no_link = xyes
; then
7779 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7780 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7781 { (exit 1); exit 1; }; }
7783 cat >conftest.
$ac_ext <<_ACEOF
7786 cat confdefs.h
>>conftest.
$ac_ext
7787 cat >>conftest.
$ac_ext <<_ACEOF
7788 /* end confdefs.h. */
7790 /* Override any gcc2 internal prototype to avoid an error. */
7794 /* We use char because int might match the return type of a gcc2
7795 builtin and then its argument prototype would still apply. */
7805 rm -f conftest.
$ac_objext conftest
$ac_exeext
7806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7807 (eval $ac_link) 2>conftest.er1
7809 grep -v '^ *+' conftest.er1
>conftest.err
7811 cat conftest.err
>&5
7812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813 (exit $ac_status); } &&
7814 { ac_try
='test -z "$ac_c_werror_flag"
7815 || test ! -s conftest.err'
7816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); }; } &&
7821 { ac_try
='test -s conftest$ac_exeext'
7822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); }; }; then
7827 ac_cv_lib_ipc_shmat
=yes
7829 echo "$as_me: failed program was:" >&5
7830 sed 's/^/| /' conftest.
$ac_ext >&5
7832 ac_cv_lib_ipc_shmat
=no
7834 rm -f conftest.err conftest.
$ac_objext \
7835 conftest
$ac_exeext conftest.
$ac_ext
7836 LIBS
=$ac_check_lib_save_LIBS
7838 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7839 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
7840 if test $ac_cv_lib_ipc_shmat = yes; then
7841 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
7847 # Check for libraries that X11R6 Xt/Xaw programs need.
7848 ac_save_LDFLAGS
=$LDFLAGS
7849 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
7850 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7851 # check for ICE first), but we must link in the order -lSM -lICE or
7852 # we get undefined symbols. So assume we have SM if we have ICE.
7853 # These have to be linked with before -lX11, unlike the other
7854 # libraries we check for below, so use a different variable.
7855 # John Interrante, Karl Berry
7856 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7857 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
7858 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7859 echo $ECHO_N "(cached) $ECHO_C" >&6
7861 ac_check_lib_save_LIBS
=$LIBS
7862 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
7863 if test x
$gcc_no_link = xyes
; then
7864 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7865 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7866 { (exit 1); exit 1; }; }
7868 cat >conftest.
$ac_ext <<_ACEOF
7871 cat confdefs.h
>>conftest.
$ac_ext
7872 cat >>conftest.
$ac_ext <<_ACEOF
7873 /* end confdefs.h. */
7875 /* Override any gcc2 internal prototype to avoid an error. */
7879 /* We use char because int might match the return type of a gcc2
7880 builtin and then its argument prototype would still apply. */
7881 char IceConnectionNumber ();
7885 IceConnectionNumber ();
7890 rm -f conftest.
$ac_objext conftest
$ac_exeext
7891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7892 (eval $ac_link) 2>conftest.er1
7894 grep -v '^ *+' conftest.er1
>conftest.err
7896 cat conftest.err
>&5
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); } &&
7899 { ac_try
='test -z "$ac_c_werror_flag"
7900 || test ! -s conftest.err'
7901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905 (exit $ac_status); }; } &&
7906 { ac_try
='test -s conftest$ac_exeext'
7907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); }; }; then
7912 ac_cv_lib_ICE_IceConnectionNumber
=yes
7914 echo "$as_me: failed program was:" >&5
7915 sed 's/^/| /' conftest.
$ac_ext >&5
7917 ac_cv_lib_ICE_IceConnectionNumber
=no
7919 rm -f conftest.err conftest.
$ac_objext \
7920 conftest
$ac_exeext conftest.
$ac_ext
7921 LIBS
=$ac_check_lib_save_LIBS
7923 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7924 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
7925 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7926 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
7929 LDFLAGS
=$ac_save_LDFLAGS
7934 # Determine which AWT peer libraries to build
7935 # Check whether --enable-java-awt or --disable-java-awt was given.
7936 if test "${enable_java_awt+set}" = set; then
7937 enableval
="$enable_java_awt"
7941 peerlibs
="`echo ${enable_java_awt} | tr ',' ' '`"
7944 # The default toolkit to use is the first one specified.
7948 for peer
in $peerlibs ; do
7951 if test "$no_x" = yes; then
7952 echo "*** xlib peers requested but no X library available" 1>&2
7956 if test -z "$TOOLKIT"; then
7957 TOOLKIT
=gnu.awt.xlib.XToolkit
7962 if test "$no_x" = yes; then
7963 echo "*** xlib peers requested but no X library available" 1>&2
7967 if test -z "$TOOLKIT"; then
7968 TOOLKIT
=gnu.java.awt.peer.gtk.GtkToolkit
7970 test -d jniinclude || mkdir jniinclude
7979 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
7986 if test "$use_xlib_awt" = yes; then
7996 if test "$use_gtk_awt" = yes; then
8005 # determine whether to enable the cairo GTK Graphics2D backend
8006 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
8007 if test "${enable_gtk_cairo+set}" = set; then
8008 enableval
="$enable_gtk_cairo"
8013 if test "x${enable_gtk_cairo}" = xyes
; then
8021 if test "x${enable_gtk_cairo}" = xyes
8026 if test -z "$PKG_CONFIG"; then
8027 # Extract the first word of "pkg-config", so it can be a program name with args.
8028 set dummy pkg-config
; ac_word
=$2
8029 echo "$as_me:$LINENO: checking for $ac_word" >&5
8030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8031 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8032 echo $ECHO_N "(cached) $ECHO_C" >&6
8036 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8039 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8043 test -z "$as_dir" && as_dir
=.
8044 for ac_exec_ext
in '' $ac_executable_extensions; do
8045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8046 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8053 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8057 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8059 if test -n "$PKG_CONFIG"; then
8060 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8061 echo "${ECHO_T}$PKG_CONFIG" >&6
8063 echo "$as_me:$LINENO: result: no" >&5
8064 echo "${ECHO_T}no" >&6
8069 if test "$PKG_CONFIG" = "no" ; then
8070 echo "*** The pkg-config script could not be found. Make sure it is"
8071 echo "*** in your path, or set the PKG_CONFIG environment variable"
8072 echo "*** to the full path to pkg-config."
8073 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8075 PKG_CONFIG_MIN_VERSION
=0.9.0
8076 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8077 echo "$as_me:$LINENO: checking for cairo" >&5
8078 echo $ECHO_N "checking for cairo... $ECHO_C" >&6
8080 if $PKG_CONFIG --exists "cairo" ; then
8081 echo "$as_me:$LINENO: result: yes" >&5
8082 echo "${ECHO_T}yes" >&6
8085 echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
8086 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
8087 CAIRO_CFLAGS
=`$PKG_CONFIG --cflags "cairo"`
8088 echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
8089 echo "${ECHO_T}$CAIRO_CFLAGS" >&6
8091 echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
8092 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
8093 CAIRO_LIBS
=`$PKG_CONFIG --libs "cairo"`
8094 echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
8095 echo "${ECHO_T}$CAIRO_LIBS" >&6
8099 ## If we have a custom action on failure, don't print errors, but
8100 ## do set a variable so people can do so.
8101 CAIRO_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
8102 echo $CAIRO_PKG_ERRORS
8108 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8109 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8113 if test $succeeded = yes; then
8116 { { 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
8117 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;}
8118 { (exit 1); exit 1; }; }
8124 if test -z "$PKG_CONFIG"; then
8125 # Extract the first word of "pkg-config", so it can be a program name with args.
8126 set dummy pkg-config
; ac_word
=$2
8127 echo "$as_me:$LINENO: checking for $ac_word" >&5
8128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8129 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8130 echo $ECHO_N "(cached) $ECHO_C" >&6
8134 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8137 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8141 test -z "$as_dir" && as_dir
=.
8142 for ac_exec_ext
in '' $ac_executable_extensions; do
8143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8144 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8151 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
8155 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8157 if test -n "$PKG_CONFIG"; then
8158 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8159 echo "${ECHO_T}$PKG_CONFIG" >&6
8161 echo "$as_me:$LINENO: result: no" >&5
8162 echo "${ECHO_T}no" >&6
8167 if test "$PKG_CONFIG" = "no" ; then
8168 echo "*** The pkg-config script could not be found. Make sure it is"
8169 echo "*** in your path, or set the PKG_CONFIG environment variable"
8170 echo "*** to the full path to pkg-config."
8171 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8173 PKG_CONFIG_MIN_VERSION
=0.9.0
8174 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8175 echo "$as_me:$LINENO: checking for pangoft2" >&5
8176 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
8178 if $PKG_CONFIG --exists "pangoft2" ; then
8179 echo "$as_me:$LINENO: result: yes" >&5
8180 echo "${ECHO_T}yes" >&6
8183 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
8184 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
8185 PANGOFT2_CFLAGS
=`$PKG_CONFIG --cflags "pangoft2"`
8186 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
8187 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
8189 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
8190 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
8191 PANGOFT2_LIBS
=`$PKG_CONFIG --libs "pangoft2"`
8192 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
8193 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
8197 ## If we have a custom action on failure, don't print errors, but
8198 ## do set a variable so people can do so.
8199 PANGOFT2_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
8200 echo $PANGOFT2_PKG_ERRORS
8206 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8207 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8211 if test $succeeded = yes; then
8214 { { 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
8215 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;}
8216 { (exit 1); exit 1; }; }
8225 # FIXME: this should be _libs on some hosts.
8228 # Allow the GC to be disabled. Can be useful when debugging.
8229 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
8230 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
8231 # Check whether --enable-java-gc or --disable-java-gc was given.
8232 if test "${enable_java_gc+set}" = set; then
8233 enableval
="$enable_java_gc"
8246 echo "$as_me:$LINENO: result: boehm" >&5
8247 echo "${ECHO_T}boehm" >&6
8248 GCLIBS
=..
/boehm-gc
/libgcjgc_convenience.la
8249 JC1GCSPEC
='-fuse-boehm-gc'
8250 GCTESTSPEC
="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
8251 GCINCS
='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
8254 # The POSIX thread support needs to know this.
8256 cat >>confdefs.h
<<\_ACEOF
8257 #define HAVE_BOEHM_GC 1
8262 echo "$as_me:$LINENO: result: none" >&5
8263 echo "${ECHO_T}none" >&6
8267 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
8268 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
8269 { (exit 1); exit 1; }; }
8278 ac_config_links
="$ac_config_links include/java-gc.h:include/$GCHDR"
8282 if test "$GC" = boehm
; then
8284 USING_BOEHMGC_FALSE
='#'
8286 USING_BOEHMGC_TRUE
='#'
8287 USING_BOEHMGC_FALSE
=
8292 if test "$GC" = no
; then
8294 USING_NOGC_FALSE
='#'
8302 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
8303 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
8304 THREADS
=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
8305 echo "$as_me:$LINENO: result: $THREADS" >&5
8306 echo "${ECHO_T}$THREADS" >&6
8312 posix | posix95 | pthreads
)
8317 cat >>confdefs.h
<<\_ACEOF
8318 #define LINUX_THREADS 1
8326 decosf1 | irix | mach | os2 | solaris | dce | vxworks
)
8327 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
8328 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
8329 { (exit 1); exit 1; }; }
8332 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
8333 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
8334 { (exit 1); exit 1; }; }
8349 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
8352 # Before FreeBSD 5, it didn't have -lpthread (or any library which
8353 # merely adds pthread_* functions) but it does have a -pthread switch
8354 # which is required at link-time to select -lc_r *instead* of -lc.
8355 THREADLDFLAGS
=-pthread
8356 # Don't set THREADSPEC here as might be expected since -pthread is
8357 # not processed when found within a spec file, it must come from
8358 # the command line. For now, the user must provide the -pthread
8359 # switch to link code compiled with gcj. In future, consider adding
8360 # support for weak references to pthread_* functions ala gthr.h API.
8361 THREADSPEC
='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
8364 # FreeBSD 5 implements a model much closer to other modern UNIX
8365 # which support threads. However, it still does not support
8367 THREADLDFLAGS
=-pthread
8371 THREADCXXFLAGS
=-pthread
8372 # boehm-gc needs some functions from librt, so link that too.
8373 THREADLIBS
='-lpthread -lrt'
8374 THREADSPEC
='-lpthread -lrt'
8377 THREADLIBS
=-lpthread
8378 THREADSPEC
=-lpthread
8381 THREADH
=posix-threads.h
8382 # MIT pthreads doesn't seem to have the mutexattr functions.
8383 # But for now we don't check for it. We just assume you aren't
8384 # using MIT pthreads.
8386 cat >>confdefs.h
<<\_ACEOF
8387 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8391 # If we're using the Boehm GC, then we happen to know that it
8392 # defines _REENTRANT, so we don't bother. Eww.
8393 if test "$GC" != boehm
; then
8395 cat >>confdefs.h
<<\_ACEOF
8396 #define _REENTRANT 1
8401 cat >>confdefs.h
<<\_ACEOF
8402 #define _POSIX_PTHREAD_SEMANTICS 1
8408 THREADH
=win32-threads.h
8412 THREADH
=no-threads.h
8415 ac_config_links
="$ac_config_links include/java-threads.h:include/$THREADH"
8425 if test "$THREADS" = posix
; then
8426 USING_POSIX_THREADS_TRUE
=
8427 USING_POSIX_THREADS_FALSE
='#'
8429 USING_POSIX_THREADS_TRUE
='#'
8430 USING_POSIX_THREADS_FALSE
=
8435 if test "$THREADS" = win32
; then
8436 USING_WIN32_THREADS_TRUE
=
8437 USING_WIN32_THREADS_FALSE
='#'
8439 USING_WIN32_THREADS_TRUE
='#'
8440 USING_WIN32_THREADS_FALSE
=
8445 if test "$THREADS" = none
; then
8446 USING_NO_THREADS_TRUE
=
8447 USING_NO_THREADS_FALSE
='#'
8449 USING_NO_THREADS_TRUE
='#'
8450 USING_NO_THREADS_FALSE
=
8454 if test -d sysdep
; then true
; else mkdir sysdep
; fi
8455 ac_config_links
="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
8457 ac_config_links
="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
8461 # Hash synchronization is only useful with posix threads right now.
8462 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
8463 HASH_SYNC_SPEC
=-fhash-synchronization
8465 cat >>confdefs.h
<<\_ACEOF
8466 #define JV_HASH_SYNCHRONIZATION 1
8474 if test "$GCC" = yes; then
8483 # We're in the tree with gcc, and need to include some of its headers.
8484 GCC_UNWIND_INCLUDE
='-I$(libgcj_basedir)/../gcc'
8486 if test "x${with_newlib}" = "xyes"; then
8487 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
8488 # may not work correctly, because the compiler may not be able to
8491 # We assume newlib. This lets us hard-code the functions we know
8494 cat >>confdefs.h
<<\_ACEOF
8495 #define HAVE_MEMMOVE 1
8499 cat >>confdefs.h
<<\_ACEOF
8500 #define HAVE_MEMCPY 1
8504 cat >>confdefs.h
<<\_ACEOF
8505 #define HAVE_STRERROR 1
8509 cat >>confdefs.h
<<\_ACEOF
8514 cat >>confdefs.h
<<\_ACEOF
8515 #define HAVE_GMTIME_R 1
8519 cat >>confdefs.h
<<\_ACEOF
8520 #define HAVE_LOCALTIME_R 1
8524 cat >>confdefs.h
<<\_ACEOF
8525 #define HAVE_USLEEP_DECL 1
8528 # This is only for POSIX threads.
8530 cat >>confdefs.h
<<\_ACEOF
8531 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8534 # We also assume we are using gcc, which provides alloca.
8535 cat >>confdefs.h
<<\_ACEOF
8536 #define HAVE_ALLOCA 1
8540 # Assume we do not have getuid and friends.
8542 cat >>confdefs.h
<<\_ACEOF
8580 for ac_func
in strerror ioctl
select fstat open fsync
sleep opendir \
8581 gmtime_r localtime_r readdir_r getpwuid_r getcwd \
8582 access stat mkdir rename
rmdir unlink realpath utime
chmod \
8583 nl_langinfo setlocale \
8584 inet_pton uname inet_ntoa \
8585 fork execvp pipe sigaction ftruncate
8587 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8588 echo "$as_me:$LINENO: checking for $ac_func" >&5
8589 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8590 if eval "test \"\${$as_ac_var+set}\" = set"; then
8591 echo $ECHO_N "(cached) $ECHO_C" >&6
8593 if test x
$gcc_no_link = xyes
; then
8594 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8595 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8596 { (exit 1); exit 1; }; }
8598 cat >conftest.
$ac_ext <<_ACEOF
8601 cat confdefs.h
>>conftest.
$ac_ext
8602 cat >>conftest.
$ac_ext <<_ACEOF
8603 /* end confdefs.h. */
8604 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8606 #define $ac_func innocuous_$ac_func
8608 /* System header to define __stub macros and hopefully few prototypes,
8609 which can conflict with char $ac_func (); below.
8610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8611 <limits.h> exists even on freestanding compilers. */
8614 # include <limits.h>
8616 # include <assert.h>
8621 /* Override any gcc2 internal prototype to avoid an error. */
8626 /* We use char because int might match the return type of a gcc2
8627 builtin and then its argument prototype would still apply. */
8629 /* The GNU C library defines this for functions which it implements
8630 to always fail with ENOSYS. Some functions are actually named
8631 something starting with __ and the normal name is an alias. */
8632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8635 char (*f) () = $ac_func;
8644 return f != $ac_func;
8649 rm -f conftest.
$ac_objext conftest
$ac_exeext
8650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8651 (eval $ac_link) 2>conftest.er1
8653 grep -v '^ *+' conftest.er1
>conftest.err
8655 cat conftest.err
>&5
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); } &&
8658 { ac_try
='test -z "$ac_c_werror_flag"
8659 || test ! -s conftest.err'
8660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); }; } &&
8665 { ac_try
='test -s conftest$ac_exeext'
8666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); }; }; then
8671 eval "$as_ac_var=yes"
8673 echo "$as_me: failed program was:" >&5
8674 sed 's/^/| /' conftest.
$ac_ext >&5
8676 eval "$as_ac_var=no"
8678 rm -f conftest.err conftest.
$ac_objext \
8679 conftest
$ac_exeext conftest.
$ac_ext
8681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8682 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8683 if test `eval echo '${'$as_ac_var'}'` = yes; then
8684 cat >>confdefs.h
<<_ACEOF
8685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8693 for ac_func
in inet_aton inet_addr
8695 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8696 echo "$as_me:$LINENO: checking for $ac_func" >&5
8697 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8698 if eval "test \"\${$as_ac_var+set}\" = set"; then
8699 echo $ECHO_N "(cached) $ECHO_C" >&6
8701 if test x
$gcc_no_link = xyes
; then
8702 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8703 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8704 { (exit 1); exit 1; }; }
8706 cat >conftest.
$ac_ext <<_ACEOF
8709 cat confdefs.h
>>conftest.
$ac_ext
8710 cat >>conftest.
$ac_ext <<_ACEOF
8711 /* end confdefs.h. */
8712 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8714 #define $ac_func innocuous_$ac_func
8716 /* System header to define __stub macros and hopefully few prototypes,
8717 which can conflict with char $ac_func (); below.
8718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8719 <limits.h> exists even on freestanding compilers. */
8722 # include <limits.h>
8724 # include <assert.h>
8729 /* Override any gcc2 internal prototype to avoid an error. */
8734 /* We use char because int might match the return type of a gcc2
8735 builtin and then its argument prototype would still apply. */
8737 /* The GNU C library defines this for functions which it implements
8738 to always fail with ENOSYS. Some functions are actually named
8739 something starting with __ and the normal name is an alias. */
8740 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8743 char (*f) () = $ac_func;
8752 return f != $ac_func;
8757 rm -f conftest.
$ac_objext conftest
$ac_exeext
8758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8759 (eval $ac_link) 2>conftest.er1
8761 grep -v '^ *+' conftest.er1
>conftest.err
8763 cat conftest.err
>&5
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); } &&
8766 { ac_try
='test -z "$ac_c_werror_flag"
8767 || test ! -s conftest.err'
8768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); }; } &&
8773 { ac_try
='test -s conftest$ac_exeext'
8774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778 (exit $ac_status); }; }; then
8779 eval "$as_ac_var=yes"
8781 echo "$as_me: failed program was:" >&5
8782 sed 's/^/| /' conftest.
$ac_ext >&5
8784 eval "$as_ac_var=no"
8786 rm -f conftest.err conftest.
$ac_objext \
8787 conftest
$ac_exeext conftest.
$ac_ext
8789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8790 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8791 if test `eval echo '${'$as_ac_var'}'` = yes; then
8792 cat >>confdefs.h
<<_ACEOF
8793 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8799 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8800 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8801 if test "${ac_cv_header_stdc+set}" = set; then
8802 echo $ECHO_N "(cached) $ECHO_C" >&6
8804 cat >conftest.
$ac_ext <<_ACEOF
8807 cat confdefs.h
>>conftest.
$ac_ext
8808 cat >>conftest.
$ac_ext <<_ACEOF
8809 /* end confdefs.h. */
8823 rm -f conftest.
$ac_objext
8824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8825 (eval $ac_compile) 2>conftest.er1
8827 grep -v '^ *+' conftest.er1
>conftest.err
8829 cat conftest.err
>&5
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); } &&
8832 { ac_try
='test -z "$ac_c_werror_flag"
8833 || test ! -s conftest.err'
8834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); }; } &&
8839 { ac_try
='test -s conftest.$ac_objext'
8840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); }; }; then
8845 ac_cv_header_stdc
=yes
8847 echo "$as_me: failed program was:" >&5
8848 sed 's/^/| /' conftest.
$ac_ext >&5
8850 ac_cv_header_stdc
=no
8852 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8854 if test $ac_cv_header_stdc = yes; then
8855 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8856 cat >conftest.
$ac_ext <<_ACEOF
8859 cat confdefs.h
>>conftest.
$ac_ext
8860 cat >>conftest.
$ac_ext <<_ACEOF
8861 /* end confdefs.h. */
8865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8866 $EGREP "memchr" >/dev
/null
2>&1; then
8869 ac_cv_header_stdc
=no
8875 if test $ac_cv_header_stdc = yes; then
8876 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8877 cat >conftest.
$ac_ext <<_ACEOF
8880 cat confdefs.h
>>conftest.
$ac_ext
8881 cat >>conftest.
$ac_ext <<_ACEOF
8882 /* end confdefs.h. */
8886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8887 $EGREP "free" >/dev
/null
2>&1; then
8890 ac_cv_header_stdc
=no
8896 if test $ac_cv_header_stdc = yes; then
8897 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8898 if test "$cross_compiling" = yes; then
8901 cat >conftest.
$ac_ext <<_ACEOF
8904 cat confdefs.h
>>conftest.
$ac_ext
8905 cat >>conftest.
$ac_ext <<_ACEOF
8906 /* end confdefs.h. */
8908 #if ((' ' & 0x0FF) == 0x020)
8909 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8910 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8912 # define ISLOWER(c) \
8913 (('a' <= (c) && (c) <= 'i') \
8914 || ('j' <= (c) && (c) <= 'r') \
8915 || ('s' <= (c) && (c) <= 'z'))
8916 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8919 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8924 for (i = 0; i < 256; i++)
8925 if (XOR (islower (i), ISLOWER (i))
8926 || toupper (i) != TOUPPER (i))
8931 rm -f conftest
$ac_exeext
8932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8933 (eval $ac_link) 2>&5
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); }; }; then
8944 echo "$as_me: program exited with status $ac_status" >&5
8945 echo "$as_me: failed program was:" >&5
8946 sed 's/^/| /' conftest.
$ac_ext >&5
8949 ac_cv_header_stdc
=no
8951 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8955 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8956 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8957 if test $ac_cv_header_stdc = yes; then
8959 cat >>confdefs.h
<<\_ACEOF
8960 #define STDC_HEADERS 1
8965 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8975 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
8976 inttypes.h stdint.h unistd.h
8978 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8979 echo "$as_me:$LINENO: checking for $ac_header" >&5
8980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8982 echo $ECHO_N "(cached) $ECHO_C" >&6
8984 cat >conftest.
$ac_ext <<_ACEOF
8987 cat confdefs.h
>>conftest.
$ac_ext
8988 cat >>conftest.
$ac_ext <<_ACEOF
8989 /* end confdefs.h. */
8990 $ac_includes_default
8992 #include <$ac_header>
8994 rm -f conftest.
$ac_objext
8995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8996 (eval $ac_compile) 2>conftest.er1
8998 grep -v '^ *+' conftest.er1
>conftest.err
9000 cat conftest.err
>&5
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); } &&
9003 { ac_try
='test -z "$ac_c_werror_flag"
9004 || test ! -s conftest.err'
9005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 (exit $ac_status); }; } &&
9010 { ac_try
='test -s conftest.$ac_objext'
9011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015 (exit $ac_status); }; }; then
9016 eval "$as_ac_Header=yes"
9018 echo "$as_me: failed program was:" >&5
9019 sed 's/^/| /' conftest.
$ac_ext >&5
9021 eval "$as_ac_Header=no"
9023 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9026 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9027 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9028 cat >>confdefs.h
<<_ACEOF
9029 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9040 for ac_header
in execinfo.h unistd.h dlfcn.h
9042 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9043 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9044 echo "$as_me:$LINENO: checking for $ac_header" >&5
9045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9046 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9047 echo $ECHO_N "(cached) $ECHO_C" >&6
9049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9050 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9052 # Is the header compilable?
9053 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9054 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9055 cat >conftest.
$ac_ext <<_ACEOF
9058 cat confdefs.h
>>conftest.
$ac_ext
9059 cat >>conftest.
$ac_ext <<_ACEOF
9060 /* end confdefs.h. */
9061 $ac_includes_default
9062 #include <$ac_header>
9064 rm -f conftest.
$ac_objext
9065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9066 (eval $ac_compile) 2>conftest.er1
9068 grep -v '^ *+' conftest.er1
>conftest.err
9070 cat conftest.err
>&5
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); } &&
9073 { ac_try
='test -z "$ac_c_werror_flag"
9074 || test ! -s conftest.err'
9075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 (exit $ac_status); }; } &&
9080 { ac_try
='test -s conftest.$ac_objext'
9081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); }; }; then
9086 ac_header_compiler
=yes
9088 echo "$as_me: failed program was:" >&5
9089 sed 's/^/| /' conftest.
$ac_ext >&5
9091 ac_header_compiler
=no
9093 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9094 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9095 echo "${ECHO_T}$ac_header_compiler" >&6
9097 # Is the header present?
9098 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9099 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9100 cat >conftest.
$ac_ext <<_ACEOF
9103 cat confdefs.h
>>conftest.
$ac_ext
9104 cat >>conftest.
$ac_ext <<_ACEOF
9105 /* end confdefs.h. */
9106 #include <$ac_header>
9108 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9109 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9111 grep -v '^ *+' conftest.er1
>conftest.err
9113 cat conftest.err
>&5
9114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115 (exit $ac_status); } >/dev
/null
; then
9116 if test -s conftest.err
; then
9117 ac_cpp_err
=$ac_c_preproc_warn_flag
9118 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9125 if test -z "$ac_cpp_err"; then
9126 ac_header_preproc
=yes
9128 echo "$as_me: failed program was:" >&5
9129 sed 's/^/| /' conftest.
$ac_ext >&5
9131 ac_header_preproc
=no
9133 rm -f conftest.err conftest.
$ac_ext
9134 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9135 echo "${ECHO_T}$ac_header_preproc" >&6
9137 # So? What about this header?
9138 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9140 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9141 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9143 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9144 ac_header_preproc
=yes
9147 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9148 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9149 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9150 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9151 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9152 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9153 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9154 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9156 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9157 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9158 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9161 ## ---------------------------------- ##
9162 ## Report this to the libjava lists. ##
9163 ## ---------------------------------- ##
9166 sed "s/^/$as_me: WARNING: /" >&2
9169 echo "$as_me:$LINENO: checking for $ac_header" >&5
9170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9172 echo $ECHO_N "(cached) $ECHO_C" >&6
9174 eval "$as_ac_Header=\$ac_header_preproc"
9176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9177 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9180 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9181 cat >>confdefs.h
<<_ACEOF
9182 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9189 echo "$as_me:$LINENO: checking for backtrace" >&5
9190 echo $ECHO_N "checking for backtrace... $ECHO_C" >&6
9191 if test "${ac_cv_func_backtrace+set}" = set; then
9192 echo $ECHO_N "(cached) $ECHO_C" >&6
9194 if test x
$gcc_no_link = xyes
; then
9195 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9196 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9197 { (exit 1); exit 1; }; }
9199 cat >conftest.
$ac_ext <<_ACEOF
9202 cat confdefs.h
>>conftest.
$ac_ext
9203 cat >>conftest.
$ac_ext <<_ACEOF
9204 /* end confdefs.h. */
9205 /* Define backtrace to an innocuous variant, in case <limits.h> declares backtrace.
9206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9207 #define backtrace innocuous_backtrace
9209 /* System header to define __stub macros and hopefully few prototypes,
9210 which can conflict with char backtrace (); below.
9211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9212 <limits.h> exists even on freestanding compilers. */
9215 # include <limits.h>
9217 # include <assert.h>
9222 /* Override any gcc2 internal prototype to avoid an error. */
9227 /* We use char because int might match the return type of a gcc2
9228 builtin and then its argument prototype would still apply. */
9230 /* The GNU C library defines this for functions which it implements
9231 to always fail with ENOSYS. Some functions are actually named
9232 something starting with __ and the normal name is an alias. */
9233 #if defined (__stub_backtrace) || defined (__stub___backtrace)
9236 char (*f) () = backtrace;
9245 return f != backtrace;
9250 rm -f conftest.
$ac_objext conftest
$ac_exeext
9251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9252 (eval $ac_link) 2>conftest.er1
9254 grep -v '^ *+' conftest.er1
>conftest.err
9256 cat conftest.err
>&5
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); } &&
9259 { ac_try
='test -z "$ac_c_werror_flag"
9260 || test ! -s conftest.err'
9261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); }; } &&
9266 { ac_try
='test -s conftest$ac_exeext'
9267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); }; }; then
9272 ac_cv_func_backtrace
=yes
9274 echo "$as_me: failed program was:" >&5
9275 sed 's/^/| /' conftest.
$ac_ext >&5
9277 ac_cv_func_backtrace
=no
9279 rm -f conftest.err conftest.
$ac_objext \
9280 conftest
$ac_exeext conftest.
$ac_ext
9282 echo "$as_me:$LINENO: result: $ac_cv_func_backtrace" >&5
9283 echo "${ECHO_T}$ac_cv_func_backtrace" >&6
9284 if test $ac_cv_func_backtrace = yes; then
9288 # Has broken backtrace()
9291 # Has broken backtrace(), but we supply our own.
9292 if test -d sysdep
; then true
; else mkdir
-p sysdep
; fi
9293 supply_backtrace
=yes
9295 cat >>confdefs.h
<<\_ACEOF
9296 #define HAVE_BACKTRACE 1
9302 cat >>confdefs.h
<<\_ACEOF
9303 #define HAVE_BACKTRACE 1
9313 # Has backtrace() defined in libgcj itself
9315 cat >>confdefs.h
<<\_ACEOF
9316 #define HAVE_BACKTRACE 1
9325 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
9326 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
9327 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
9328 echo $ECHO_N "(cached) $ECHO_C" >&6
9330 ac_check_lib_save_LIBS
=$LIBS
9332 if test x
$gcc_no_link = xyes
; then
9333 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9334 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9335 { (exit 1); exit 1; }; }
9337 cat >conftest.
$ac_ext <<_ACEOF
9340 cat confdefs.h
>>conftest.
$ac_ext
9341 cat >>conftest.
$ac_ext <<_ACEOF
9342 /* end confdefs.h. */
9344 /* Override any gcc2 internal prototype to avoid an error. */
9348 /* We use char because int might match the return type of a gcc2
9349 builtin and then its argument prototype would still apply. */
9359 rm -f conftest.
$ac_objext conftest
$ac_exeext
9360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9361 (eval $ac_link) 2>conftest.er1
9363 grep -v '^ *+' conftest.er1
>conftest.err
9365 cat conftest.err
>&5
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); } &&
9368 { ac_try
='test -z "$ac_c_werror_flag"
9369 || test ! -s conftest.err'
9370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); }; } &&
9375 { ac_try
='test -s conftest$ac_exeext'
9376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); }; }; then
9381 ac_cv_lib_dl_dladdr
=yes
9383 echo "$as_me: failed program was:" >&5
9384 sed 's/^/| /' conftest.
$ac_ext >&5
9386 ac_cv_lib_dl_dladdr
=no
9388 rm -f conftest.err conftest.
$ac_objext \
9389 conftest
$ac_exeext conftest.
$ac_ext
9390 LIBS
=$ac_check_lib_save_LIBS
9392 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
9393 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
9394 if test $ac_cv_lib_dl_dladdr = yes; then
9396 if test "x${disable_dladdr}" = "xyes"; then
9401 cat >>confdefs.h
<<\_ACEOF
9402 #define HAVE_DLADDR 1
9409 if test x
"$build" = x
"$host"; then
9410 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
9411 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
9412 if test "${ac_cv_file__proc_self_exe+set}" = set; then
9413 echo $ECHO_N "(cached) $ECHO_C" >&6
9415 test "$cross_compiling" = yes &&
9416 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
9417 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9418 { (exit 1); exit 1; }; }
9419 if test -r "/proc/self/exe"; then
9420 ac_cv_file__proc_self_exe
=yes
9422 ac_cv_file__proc_self_exe
=no
9425 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
9426 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
9427 if test $ac_cv_file__proc_self_exe = yes; then
9429 cat >>confdefs.h
<<_ACEOF
9430 #define HAVE__PROC_SELF_EXE 1
9435 cat >>confdefs.h
<<\_ACEOF
9436 #define HAVE_PROC_SELF_EXE 1
9445 cat >>confdefs.h
<<\_ACEOF
9446 #define HAVE_PROC_SELF_EXE 1
9454 if test "X$prefix" = "XNONE"; then
9455 acl_final_prefix
="$ac_default_prefix"
9457 acl_final_prefix
="$prefix"
9459 if test "X$exec_prefix" = "XNONE"; then
9460 acl_final_exec_prefix
='${prefix}'
9462 acl_final_exec_prefix
="$exec_prefix"
9464 acl_save_prefix
="$prefix"
9465 prefix
="$acl_final_prefix"
9466 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9467 prefix
="$acl_save_prefix"
9470 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9471 if test "${with_gnu_ld+set}" = set; then
9472 withval
="$with_gnu_ld"
9473 test "$withval" = no || with_gnu_ld
=yes
9477 # Prepare PATH_SEPARATOR.
9478 # The user is always right.
9479 if test "${PATH_SEPARATOR+set}" != set; then
9480 echo "#! /bin/sh" >conf$$.sh
9481 echo "exit 0" >>conf$$.sh
9483 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9491 if test "$GCC" = yes; then
9492 # Check if gcc -print-prog-name=ld gives a path.
9493 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
9494 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
9497 # gcc leaves a trailing carriage return which upsets mingw
9498 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9500 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9503 # Accept absolute paths.
9504 [\\/]* |
[A-Za-z
]:[\\/]*)
9505 re_direlt
='/[^/][^/]*/\.\./'
9506 # Canonicalize the path of ld
9507 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9508 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9509 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9511 test -z "$LD" && LD
="$ac_prog"
9514 # If it fails, then pretend we aren't using GCC.
9518 # If it is relative, then search for the first ld in PATH.
9522 elif test "$with_gnu_ld" = yes; then
9523 echo "$as_me:$LINENO: checking for GNU ld" >&5
9524 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9526 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9527 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9529 if test "${acl_cv_path_LD+set}" = set; then
9530 echo $ECHO_N "(cached) $ECHO_C" >&6
9532 if test -z "$LD"; then
9533 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9534 for ac_dir
in $PATH; do
9535 test -z "$ac_dir" && ac_dir
=.
9536 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9537 acl_cv_path_LD
="$ac_dir/$ac_prog"
9538 # Check to see if the program is GNU ld. I'd rather use --version,
9539 # but apparently some GNU ld's only accept -v.
9540 # Break only if it was the GNU/non-GNU ld that we prefer.
9541 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9542 test "$with_gnu_ld" != no
&& break
9544 test "$with_gnu_ld" != yes && break
9550 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9554 LD
="$acl_cv_path_LD"
9555 if test -n "$LD"; then
9556 echo "$as_me:$LINENO: result: $LD" >&5
9557 echo "${ECHO_T}$LD" >&6
9559 echo "$as_me:$LINENO: result: no" >&5
9560 echo "${ECHO_T}no" >&6
9562 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9563 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9564 { (exit 1); exit 1; }; }
9565 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9566 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9567 if test "${acl_cv_prog_gnu_ld+set}" = set; then
9568 echo $ECHO_N "(cached) $ECHO_C" >&6
9570 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9571 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9572 acl_cv_prog_gnu_ld
=yes
9574 acl_cv_prog_gnu_ld
=no
9577 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9578 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
9579 with_gnu_ld
=$acl_cv_prog_gnu_ld
9583 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9584 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
9585 if test "${acl_cv_rpath+set}" = set; then
9586 echo $ECHO_N "(cached) $ECHO_C" >&6
9589 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9590 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9596 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9597 echo "${ECHO_T}$acl_cv_rpath" >&6
9599 libext
="$acl_cv_libext"
9600 shlibext
="$acl_cv_shlibext"
9601 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9602 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9603 hardcode_direct
="$acl_cv_hardcode_direct"
9604 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9605 # Check whether --enable-rpath or --disable-rpath was given.
9606 if test "${enable_rpath+set}" = set; then
9607 enableval
="$enable_rpath"
9621 acl_save_prefix
="$prefix"
9622 prefix
="$acl_final_prefix"
9623 acl_save_exec_prefix
="$exec_prefix"
9624 exec_prefix
="$acl_final_exec_prefix"
9626 eval additional_includedir
=\"$includedir\"
9627 eval additional_libdir
=\"$libdir\"
9629 exec_prefix
="$acl_save_exec_prefix"
9630 prefix
="$acl_save_prefix"
9633 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
9634 if test "${with_libiconv_prefix+set}" = set; then
9635 withval
="$with_libiconv_prefix"
9637 if test "X$withval" = "Xno"; then
9640 if test "X$withval" = "X"; then
9642 acl_save_prefix
="$prefix"
9643 prefix
="$acl_final_prefix"
9644 acl_save_exec_prefix
="$exec_prefix"
9645 exec_prefix
="$acl_final_exec_prefix"
9647 eval additional_includedir
=\"$includedir\"
9648 eval additional_libdir
=\"$libdir\"
9650 exec_prefix
="$acl_save_exec_prefix"
9651 prefix
="$acl_save_prefix"
9654 additional_includedir
="$withval/include"
9655 additional_libdir
="$withval/lib"
9665 names_already_handled
=
9666 names_next_round
='iconv '
9667 while test -n "$names_next_round"; do
9668 names_this_round
="$names_next_round"
9670 for name
in $names_this_round; do
9672 for n
in $names_already_handled; do
9673 if test "$n" = "$name"; then
9678 if test -z "$already_handled"; then
9679 names_already_handled
="$names_already_handled $name"
9680 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9681 eval value
=\"\
$HAVE_LIB$uppername\"
9682 if test -n "$value"; then
9683 if test "$value" = yes; then
9684 eval value
=\"\
$LIB$uppername\"
9685 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
9686 eval value
=\"\
$LTLIB$uppername\"
9687 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
9696 if test $use_additional = yes; then
9697 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9698 found_dir
="$additional_libdir"
9699 found_so
="$additional_libdir/lib$name.$shlibext"
9700 if test -f "$additional_libdir/lib$name.la"; then
9701 found_la
="$additional_libdir/lib$name.la"
9704 if test -f "$additional_libdir/lib$name.$libext"; then
9705 found_dir
="$additional_libdir"
9706 found_a
="$additional_libdir/lib$name.$libext"
9707 if test -f "$additional_libdir/lib$name.la"; then
9708 found_la
="$additional_libdir/lib$name.la"
9713 if test "X$found_dir" = "X"; then
9714 for x
in $LDFLAGS $LTLIBICONV; do
9716 acl_save_prefix
="$prefix"
9717 prefix
="$acl_final_prefix"
9718 acl_save_exec_prefix
="$exec_prefix"
9719 exec_prefix
="$acl_final_exec_prefix"
9721 exec_prefix
="$acl_save_exec_prefix"
9722 prefix
="$acl_save_prefix"
9726 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9727 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9729 found_so
="$dir/lib$name.$shlibext"
9730 if test -f "$dir/lib$name.la"; then
9731 found_la
="$dir/lib$name.la"
9734 if test -f "$dir/lib$name.$libext"; then
9736 found_a
="$dir/lib$name.$libext"
9737 if test -f "$dir/lib$name.la"; then
9738 found_la
="$dir/lib$name.la"
9744 if test "X$found_dir" != "X"; then
9749 if test "X$found_dir" != "X"; then
9750 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9751 if test "X$found_so" != "X"; then
9752 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9753 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9756 for x
in $ltrpathdirs; do
9757 if test "X$x" = "X$found_dir"; then
9762 if test -z "$haveit"; then
9763 ltrpathdirs
="$ltrpathdirs $found_dir"
9765 if test "$hardcode_direct" = yes; then
9766 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9768 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9769 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9771 for x
in $rpathdirs; do
9772 if test "X$x" = "X$found_dir"; then
9777 if test -z "$haveit"; then
9778 rpathdirs
="$rpathdirs $found_dir"
9782 for x
in $LDFLAGS $LIBICONV; do
9784 acl_save_prefix
="$prefix"
9785 prefix
="$acl_final_prefix"
9786 acl_save_exec_prefix
="$exec_prefix"
9787 exec_prefix
="$acl_final_exec_prefix"
9789 exec_prefix
="$acl_save_exec_prefix"
9790 prefix
="$acl_save_prefix"
9792 if test "X$x" = "X-L$found_dir"; then
9797 if test -z "$haveit"; then
9798 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9800 if test "$hardcode_minus_L" != no
; then
9801 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9803 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9809 if test "X$found_a" != "X"; then
9810 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
9812 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9815 additional_includedir
=
9816 case "$found_dir" in
9818 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9819 additional_includedir
="$basedir/include"
9822 if test "X$additional_includedir" != "X"; then
9823 if test "X$additional_includedir" != "X/usr/include"; then
9825 if test "X$additional_includedir" = "X/usr/local/include"; then
9826 if test -n "$GCC"; then
9828 linux
*) haveit
=yes;;
9832 if test -z "$haveit"; then
9833 for x
in $CPPFLAGS $INCICONV; do
9835 acl_save_prefix
="$prefix"
9836 prefix
="$acl_final_prefix"
9837 acl_save_exec_prefix
="$exec_prefix"
9838 exec_prefix
="$acl_final_exec_prefix"
9840 exec_prefix
="$acl_save_exec_prefix"
9841 prefix
="$acl_save_prefix"
9843 if test "X$x" = "X-I$additional_includedir"; then
9848 if test -z "$haveit"; then
9849 if test -d "$additional_includedir"; then
9850 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9856 if test -n "$found_la"; then
9857 save_libdir
="$libdir"
9859 */* |
*\\*) .
"$found_la" ;;
9860 *) .
"./$found_la" ;;
9862 libdir
="$save_libdir"
9863 for dep
in $dependency_libs; do
9866 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9867 if test "X$additional_libdir" != "X/usr/lib"; then
9869 if test "X$additional_libdir" = "X/usr/local/lib"; then
9870 if test -n "$GCC"; then
9872 linux
*) haveit
=yes;;
9876 if test -z "$haveit"; then
9878 for x
in $LDFLAGS $LIBICONV; do
9880 acl_save_prefix
="$prefix"
9881 prefix
="$acl_final_prefix"
9882 acl_save_exec_prefix
="$exec_prefix"
9883 exec_prefix
="$acl_final_exec_prefix"
9885 exec_prefix
="$acl_save_exec_prefix"
9886 prefix
="$acl_save_prefix"
9888 if test "X$x" = "X-L$additional_libdir"; then
9893 if test -z "$haveit"; then
9894 if test -d "$additional_libdir"; then
9895 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9899 for x
in $LDFLAGS $LTLIBICONV; do
9901 acl_save_prefix
="$prefix"
9902 prefix
="$acl_final_prefix"
9903 acl_save_exec_prefix
="$exec_prefix"
9904 exec_prefix
="$acl_final_exec_prefix"
9906 exec_prefix
="$acl_save_exec_prefix"
9907 prefix
="$acl_save_prefix"
9909 if test "X$x" = "X-L$additional_libdir"; then
9914 if test -z "$haveit"; then
9915 if test -d "$additional_libdir"; then
9916 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9923 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9924 if test "$enable_rpath" != no
; then
9926 for x
in $rpathdirs; do
9927 if test "X$x" = "X$dir"; then
9932 if test -z "$haveit"; then
9933 rpathdirs
="$rpathdirs $dir"
9936 for x
in $ltrpathdirs; do
9937 if test "X$x" = "X$dir"; then
9942 if test -z "$haveit"; then
9943 ltrpathdirs
="$ltrpathdirs $dir"
9948 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9951 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9954 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
9955 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9961 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9962 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9968 if test "X$rpathdirs" != "X"; then
9969 if test -n "$hardcode_libdir_separator"; then
9971 for found_dir
in $rpathdirs; do
9972 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9974 acl_save_libdir
="$libdir"
9976 eval flag
=\"$hardcode_libdir_flag_spec\"
9977 libdir
="$acl_save_libdir"
9978 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9980 for found_dir
in $rpathdirs; do
9981 acl_save_libdir
="$libdir"
9983 eval flag
=\"$hardcode_libdir_flag_spec\"
9984 libdir
="$acl_save_libdir"
9985 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9989 if test "X$ltrpathdirs" != "X"; then
9990 for found_dir
in $ltrpathdirs; do
9991 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10001 am_save_CPPFLAGS
="$CPPFLAGS"
10003 for element
in $INCICONV; do
10005 for x
in $CPPFLAGS; do
10007 acl_save_prefix
="$prefix"
10008 prefix
="$acl_final_prefix"
10009 acl_save_exec_prefix
="$exec_prefix"
10010 exec_prefix
="$acl_final_exec_prefix"
10012 exec_prefix
="$acl_save_exec_prefix"
10013 prefix
="$acl_save_prefix"
10015 if test "X$x" = "X$element"; then
10020 if test -z "$haveit"; then
10021 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10026 echo "$as_me:$LINENO: checking for iconv" >&5
10027 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10028 if test "${am_cv_func_iconv+set}" = set; then
10029 echo $ECHO_N "(cached) $ECHO_C" >&6
10032 am_cv_func_iconv
="no, consider installing GNU libiconv"
10034 if test x
$gcc_no_link = xyes
; then
10035 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10036 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10037 { (exit 1); exit 1; }; }
10039 cat >conftest.
$ac_ext <<_ACEOF
10042 cat confdefs.h
>>conftest.
$ac_ext
10043 cat >>conftest.
$ac_ext <<_ACEOF
10044 /* end confdefs.h. */
10045 #include <stdlib.h>
10050 iconv_t cd = iconv_open("","");
10051 iconv(cd,NULL,NULL,NULL,NULL);
10057 rm -f conftest.
$ac_objext conftest
$ac_exeext
10058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10059 (eval $ac_link) 2>conftest.er1
10061 grep -v '^ *+' conftest.er1
>conftest.err
10063 cat conftest.err
>&5
10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 (exit $ac_status); } &&
10066 { ac_try
='test -z "$ac_c_werror_flag"
10067 || test ! -s conftest.err'
10068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10069 (eval $ac_try) 2>&5
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); }; } &&
10073 { ac_try
='test -s conftest$ac_exeext'
10074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10075 (eval $ac_try) 2>&5
10077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078 (exit $ac_status); }; }; then
10079 am_cv_func_iconv
=yes
10081 echo "$as_me: failed program was:" >&5
10082 sed 's/^/| /' conftest.
$ac_ext >&5
10085 rm -f conftest.err conftest.
$ac_objext \
10086 conftest
$ac_exeext conftest.
$ac_ext
10087 if test "$am_cv_func_iconv" != yes; then
10088 am_save_LIBS
="$LIBS"
10089 LIBS
="$LIBS $LIBICONV"
10090 if test x
$gcc_no_link = xyes
; then
10091 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10092 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10093 { (exit 1); exit 1; }; }
10095 cat >conftest.
$ac_ext <<_ACEOF
10098 cat confdefs.h
>>conftest.
$ac_ext
10099 cat >>conftest.
$ac_ext <<_ACEOF
10100 /* end confdefs.h. */
10101 #include <stdlib.h>
10106 iconv_t cd = iconv_open("","");
10107 iconv(cd,NULL,NULL,NULL,NULL);
10113 rm -f conftest.
$ac_objext conftest
$ac_exeext
10114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10115 (eval $ac_link) 2>conftest.er1
10117 grep -v '^ *+' conftest.er1
>conftest.err
10119 cat conftest.err
>&5
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121 (exit $ac_status); } &&
10122 { ac_try
='test -z "$ac_c_werror_flag"
10123 || test ! -s conftest.err'
10124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10125 (eval $ac_try) 2>&5
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); }; } &&
10129 { ac_try
='test -s conftest$ac_exeext'
10130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10131 (eval $ac_try) 2>&5
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); }; }; then
10135 am_cv_lib_iconv
=yes
10136 am_cv_func_iconv
=yes
10138 echo "$as_me: failed program was:" >&5
10139 sed 's/^/| /' conftest.
$ac_ext >&5
10142 rm -f conftest.err conftest.
$ac_objext \
10143 conftest
$ac_exeext conftest.
$ac_ext
10144 LIBS
="$am_save_LIBS"
10148 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10149 echo "${ECHO_T}$am_cv_func_iconv" >&6
10150 if test "$am_cv_func_iconv" = yes; then
10152 cat >>confdefs.h
<<\_ACEOF
10153 #define HAVE_ICONV 1
10157 if test "$am_cv_lib_iconv" = yes; then
10158 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10159 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10160 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10161 echo "${ECHO_T}$LIBICONV" >&6
10163 CPPFLAGS
="$am_save_CPPFLAGS"
10170 if test "$am_cv_func_iconv" = yes; then
10171 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10172 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10173 if test "${am_cv_proto_iconv+set}" = set; then
10174 echo $ECHO_N "(cached) $ECHO_C" >&6
10177 cat >conftest.
$ac_ext <<_ACEOF
10180 cat confdefs.h
>>conftest.
$ac_ext
10181 cat >>conftest.
$ac_ext <<_ACEOF
10182 /* end confdefs.h. */
10184 #include <stdlib.h>
10190 #if defined(__STDC__) || defined(__cplusplus)
10191 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10204 rm -f conftest.
$ac_objext
10205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10206 (eval $ac_compile) 2>conftest.er1
10208 grep -v '^ *+' conftest.er1
>conftest.err
10210 cat conftest.err
>&5
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); } &&
10213 { ac_try
='test -z "$ac_c_werror_flag"
10214 || test ! -s conftest.err'
10215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10216 (eval $ac_try) 2>&5
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); }; } &&
10220 { ac_try
='test -s conftest.$ac_objext'
10221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10222 (eval $ac_try) 2>&5
10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225 (exit $ac_status); }; }; then
10226 am_cv_proto_iconv_arg1
=""
10228 echo "$as_me: failed program was:" >&5
10229 sed 's/^/| /' conftest.
$ac_ext >&5
10231 am_cv_proto_iconv_arg1
="const"
10233 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10234 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);"
10237 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10238 echo "$as_me:$LINENO: result: ${ac_t:-
10239 }$am_cv_proto_iconv" >&5
10240 echo "${ECHO_T}${ac_t:-
10241 }$am_cv_proto_iconv" >&6
10243 cat >>confdefs.h
<<_ACEOF
10244 #define ICONV_CONST $am_cv_proto_iconv_arg1
10250 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10251 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10252 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10253 echo $ECHO_N "(cached) $ECHO_C" >&6
10255 if test x
$gcc_no_link = xyes
; then
10256 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10257 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10258 { (exit 1); exit 1; }; }
10260 cat >conftest.
$ac_ext <<_ACEOF
10263 cat confdefs.h
>>conftest.
$ac_ext
10264 cat >>conftest.
$ac_ext <<_ACEOF
10265 /* end confdefs.h. */
10266 #include <locale.h>
10275 rm -f conftest.
$ac_objext conftest
$ac_exeext
10276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10277 (eval $ac_link) 2>conftest.er1
10279 grep -v '^ *+' conftest.er1
>conftest.err
10281 cat conftest.err
>&5
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); } &&
10284 { ac_try
='test -z "$ac_c_werror_flag"
10285 || test ! -s conftest.err'
10286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10287 (eval $ac_try) 2>&5
10289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290 (exit $ac_status); }; } &&
10291 { ac_try
='test -s conftest$ac_exeext'
10292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10293 (eval $ac_try) 2>&5
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); }; }; then
10297 am_cv_val_LC_MESSAGES
=yes
10299 echo "$as_me: failed program was:" >&5
10300 sed 's/^/| /' conftest.
$ac_ext >&5
10302 am_cv_val_LC_MESSAGES
=no
10304 rm -f conftest.err conftest.
$ac_objext \
10305 conftest
$ac_exeext conftest.
$ac_ext
10307 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10308 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10309 if test $am_cv_val_LC_MESSAGES = yes; then
10311 cat >>confdefs.h
<<\_ACEOF
10312 #define HAVE_LC_MESSAGES 1
10317 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10318 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10319 if test "${ac_cv_struct_tm+set}" = set; then
10320 echo $ECHO_N "(cached) $ECHO_C" >&6
10322 cat >conftest.
$ac_ext <<_ACEOF
10325 cat confdefs.h
>>conftest.
$ac_ext
10326 cat >>conftest.
$ac_ext <<_ACEOF
10327 /* end confdefs.h. */
10328 #include <sys/types.h>
10334 struct tm *tp; tp->tm_sec;
10339 rm -f conftest.
$ac_objext
10340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10341 (eval $ac_compile) 2>conftest.er1
10343 grep -v '^ *+' conftest.er1
>conftest.err
10345 cat conftest.err
>&5
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); } &&
10348 { ac_try
='test -z "$ac_c_werror_flag"
10349 || test ! -s conftest.err'
10350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10351 (eval $ac_try) 2>&5
10353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354 (exit $ac_status); }; } &&
10355 { ac_try
='test -s conftest.$ac_objext'
10356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10357 (eval $ac_try) 2>&5
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); }; }; then
10361 ac_cv_struct_tm
=time.h
10363 echo "$as_me: failed program was:" >&5
10364 sed 's/^/| /' conftest.
$ac_ext >&5
10366 ac_cv_struct_tm
=sys
/time.h
10368 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10370 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10371 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10372 if test $ac_cv_struct_tm = sys
/time.h
; then
10374 cat >>confdefs.h
<<\_ACEOF
10375 #define TM_IN_SYS_TIME 1
10380 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10381 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10382 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10383 echo $ECHO_N "(cached) $ECHO_C" >&6
10385 cat >conftest.
$ac_ext <<_ACEOF
10388 cat confdefs.h
>>conftest.
$ac_ext
10389 cat >>conftest.
$ac_ext <<_ACEOF
10390 /* end confdefs.h. */
10391 #include <sys/types.h>
10392 #include <$ac_cv_struct_tm>
10398 static struct tm ac_aggr;
10399 if (ac_aggr.tm_zone)
10405 rm -f conftest.
$ac_objext
10406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10407 (eval $ac_compile) 2>conftest.er1
10409 grep -v '^ *+' conftest.er1
>conftest.err
10411 cat conftest.err
>&5
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); } &&
10414 { ac_try
='test -z "$ac_c_werror_flag"
10415 || test ! -s conftest.err'
10416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10417 (eval $ac_try) 2>&5
10419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); }; } &&
10421 { ac_try
='test -s conftest.$ac_objext'
10422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10423 (eval $ac_try) 2>&5
10425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426 (exit $ac_status); }; }; then
10427 ac_cv_member_struct_tm_tm_zone
=yes
10429 echo "$as_me: failed program was:" >&5
10430 sed 's/^/| /' conftest.
$ac_ext >&5
10432 cat >conftest.
$ac_ext <<_ACEOF
10435 cat confdefs.h
>>conftest.
$ac_ext
10436 cat >>conftest.
$ac_ext <<_ACEOF
10437 /* end confdefs.h. */
10438 #include <sys/types.h>
10439 #include <$ac_cv_struct_tm>
10445 static struct tm ac_aggr;
10446 if (sizeof ac_aggr.tm_zone)
10452 rm -f conftest.
$ac_objext
10453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10454 (eval $ac_compile) 2>conftest.er1
10456 grep -v '^ *+' conftest.er1
>conftest.err
10458 cat conftest.err
>&5
10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); } &&
10461 { ac_try
='test -z "$ac_c_werror_flag"
10462 || test ! -s conftest.err'
10463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10464 (eval $ac_try) 2>&5
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); }; } &&
10468 { ac_try
='test -s conftest.$ac_objext'
10469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10470 (eval $ac_try) 2>&5
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); }; }; then
10474 ac_cv_member_struct_tm_tm_zone
=yes
10476 echo "$as_me: failed program was:" >&5
10477 sed 's/^/| /' conftest.
$ac_ext >&5
10479 ac_cv_member_struct_tm_tm_zone
=no
10481 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10483 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10485 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10486 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10487 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10489 cat >>confdefs.h
<<_ACEOF
10490 #define HAVE_STRUCT_TM_TM_ZONE 1
10496 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10498 cat >>confdefs.h
<<\_ACEOF
10499 #define HAVE_TM_ZONE 1
10503 echo "$as_me:$LINENO: checking for tzname" >&5
10504 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10505 if test "${ac_cv_var_tzname+set}" = set; then
10506 echo $ECHO_N "(cached) $ECHO_C" >&6
10508 if test x
$gcc_no_link = xyes
; then
10509 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10510 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10511 { (exit 1); exit 1; }; }
10513 cat >conftest.
$ac_ext <<_ACEOF
10516 cat confdefs.h
>>conftest.
$ac_ext
10517 cat >>conftest.
$ac_ext <<_ACEOF
10518 /* end confdefs.h. */
10520 #ifndef tzname /* For SGI. */
10521 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
10532 rm -f conftest.
$ac_objext conftest
$ac_exeext
10533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10534 (eval $ac_link) 2>conftest.er1
10536 grep -v '^ *+' conftest.er1
>conftest.err
10538 cat conftest.err
>&5
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); } &&
10541 { ac_try
='test -z "$ac_c_werror_flag"
10542 || test ! -s conftest.err'
10543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10544 (eval $ac_try) 2>&5
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); }; } &&
10548 { ac_try
='test -s conftest$ac_exeext'
10549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10550 (eval $ac_try) 2>&5
10552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); }; }; then
10554 ac_cv_var_tzname
=yes
10556 echo "$as_me: failed program was:" >&5
10557 sed 's/^/| /' conftest.
$ac_ext >&5
10559 ac_cv_var_tzname
=no
10561 rm -f conftest.err conftest.
$ac_objext \
10562 conftest
$ac_exeext conftest.
$ac_ext
10564 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10565 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10566 if test $ac_cv_var_tzname = yes; then
10568 cat >>confdefs.h
<<\_ACEOF
10569 #define HAVE_TZNAME 1
10578 for ac_func
in gethostbyname_r
10580 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10581 echo "$as_me:$LINENO: checking for $ac_func" >&5
10582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10583 if eval "test \"\${$as_ac_var+set}\" = set"; then
10584 echo $ECHO_N "(cached) $ECHO_C" >&6
10586 if test x
$gcc_no_link = xyes
; then
10587 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10588 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10589 { (exit 1); exit 1; }; }
10591 cat >conftest.
$ac_ext <<_ACEOF
10594 cat confdefs.h
>>conftest.
$ac_ext
10595 cat >>conftest.
$ac_ext <<_ACEOF
10596 /* end confdefs.h. */
10597 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10599 #define $ac_func innocuous_$ac_func
10601 /* System header to define __stub macros and hopefully few prototypes,
10602 which can conflict with char $ac_func (); below.
10603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10604 <limits.h> exists even on freestanding compilers. */
10607 # include <limits.h>
10609 # include <assert.h>
10614 /* Override any gcc2 internal prototype to avoid an error. */
10619 /* We use char because int might match the return type of a gcc2
10620 builtin and then its argument prototype would still apply. */
10622 /* The GNU C library defines this for functions which it implements
10623 to always fail with ENOSYS. Some functions are actually named
10624 something starting with __ and the normal name is an alias. */
10625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10628 char (*f) () = $ac_func;
10637 return f != $ac_func;
10642 rm -f conftest.
$ac_objext conftest
$ac_exeext
10643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10644 (eval $ac_link) 2>conftest.er1
10646 grep -v '^ *+' conftest.er1
>conftest.err
10648 cat conftest.err
>&5
10649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650 (exit $ac_status); } &&
10651 { ac_try
='test -z "$ac_c_werror_flag"
10652 || test ! -s conftest.err'
10653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10654 (eval $ac_try) 2>&5
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); }; } &&
10658 { ac_try
='test -s conftest$ac_exeext'
10659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10660 (eval $ac_try) 2>&5
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); }; }; then
10664 eval "$as_ac_var=yes"
10666 echo "$as_me: failed program was:" >&5
10667 sed 's/^/| /' conftest.
$ac_ext >&5
10669 eval "$as_ac_var=no"
10671 rm -f conftest.err conftest.
$ac_objext \
10672 conftest
$ac_exeext conftest.
$ac_ext
10674 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10675 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10676 if test `eval echo '${'$as_ac_var'}'` = yes; then
10677 cat >>confdefs.h
<<_ACEOF
10678 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10682 cat >>confdefs.h
<<\_ACEOF
10683 #define HAVE_GETHOSTBYNAME_R 1
10686 # There are two different kinds of gethostbyname_r.
10687 # We look for the one that returns `int'.
10688 # Hopefully this check is robust enough.
10689 cat >conftest.
$ac_ext <<_ACEOF
10692 cat confdefs.h
>>conftest.
$ac_ext
10693 cat >>conftest.
$ac_ext <<_ACEOF
10694 /* end confdefs.h. */
10698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10699 $EGREP "int.*gethostbyname_r" >/dev
/null
2>&1; then
10702 cat >>confdefs.h
<<\_ACEOF
10703 #define GETHOSTBYNAME_R_RETURNS_INT 1
10710 case " $GCINCS " in
10711 *" -D_REENTRANT "*) ;;
10713 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
10714 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
10715 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
10716 echo $ECHO_N "(cached) $ECHO_C" >&6
10719 ac_cpp
='$CXXCPP $CPPFLAGS'
10720 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10721 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10722 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10724 cat >conftest.
$ac_ext <<_ACEOF
10727 cat confdefs.h
>>conftest.
$ac_ext
10728 cat >>conftest.
$ac_ext <<_ACEOF
10729 /* end confdefs.h. */
10734 gethostbyname_r("", 0, 0);
10739 rm -f conftest.
$ac_objext
10740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10741 (eval $ac_compile) 2>conftest.er1
10743 grep -v '^ *+' conftest.er1
>conftest.err
10745 cat conftest.err
>&5
10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747 (exit $ac_status); } &&
10748 { ac_try
='test -z "$ac_cxx_werror_flag"
10749 || test ! -s conftest.err'
10750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10751 (eval $ac_try) 2>&5
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); }; } &&
10755 { ac_try
='test -s conftest.$ac_objext'
10756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10757 (eval $ac_try) 2>&5
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); }; }; then
10761 libjava_cv_gethostbyname_r_needs_reentrant
=no
10763 echo "$as_me: failed program was:" >&5
10764 sed 's/^/| /' conftest.
$ac_ext >&5
10766 CPPFLAGS_SAVE
="$CPPFLAGS"
10767 CPPFLAGS
="$CPPFLAGS -D_REENTRANT"
10768 cat >conftest.
$ac_ext <<_ACEOF
10771 cat confdefs.h
>>conftest.
$ac_ext
10772 cat >>conftest.
$ac_ext <<_ACEOF
10773 /* end confdefs.h. */
10778 gethostbyname_r("", 0, 0);
10783 rm -f conftest.
$ac_objext
10784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10785 (eval $ac_compile) 2>conftest.er1
10787 grep -v '^ *+' conftest.er1
>conftest.err
10789 cat conftest.err
>&5
10790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); } &&
10792 { ac_try
='test -z "$ac_cxx_werror_flag"
10793 || test ! -s conftest.err'
10794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10795 (eval $ac_try) 2>&5
10797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798 (exit $ac_status); }; } &&
10799 { ac_try
='test -s conftest.$ac_objext'
10800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10801 (eval $ac_try) 2>&5
10803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804 (exit $ac_status); }; }; then
10805 libjava_cv_gethostbyname_r_needs_reentrant
=yes
10807 echo "$as_me: failed program was:" >&5
10808 sed 's/^/| /' conftest.
$ac_ext >&5
10810 libjava_cv_gethostbyname_r_needs_reentrant
=fail
10812 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10813 CPPFLAGS
="$CPPFLAGS_SAVE"
10816 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10818 ac_cpp
='$CPP $CPPFLAGS'
10819 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10820 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10821 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10825 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
10826 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
10827 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes
; then
10829 cat >>confdefs.h
<<\_ACEOF
10830 #define _REENTRANT 1
10837 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
10838 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
10839 if test "${libjava_cv_struct_hostent_data+set}" = set; then
10840 echo $ECHO_N "(cached) $ECHO_C" >&6
10842 cat >conftest.
$ac_ext <<_ACEOF
10845 cat confdefs.h
>>conftest.
$ac_ext
10846 cat >>conftest.
$ac_ext <<_ACEOF
10847 /* end confdefs.h. */
10849 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
10850 # define _REENTRANT 1
10856 struct hostent_data data;
10861 rm -f conftest.
$ac_objext
10862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10863 (eval $ac_compile) 2>conftest.er1
10865 grep -v '^ *+' conftest.er1
>conftest.err
10867 cat conftest.err
>&5
10868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 (exit $ac_status); } &&
10870 { ac_try
='test -z "$ac_c_werror_flag"
10871 || test ! -s conftest.err'
10872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10873 (eval $ac_try) 2>&5
10875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876 (exit $ac_status); }; } &&
10877 { ac_try
='test -s conftest.$ac_objext'
10878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10879 (eval $ac_try) 2>&5
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); }; }; then
10883 libjava_cv_struct_hostent_data
=yes
10885 echo "$as_me: failed program was:" >&5
10886 sed 's/^/| /' conftest.
$ac_ext >&5
10888 libjava_cv_struct_hostent_data
=no
10890 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10892 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
10893 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
10894 if test "x$libjava_cv_struct_hostent_data" = xyes
; then
10896 cat >>confdefs.h
<<\_ACEOF
10897 #define HAVE_STRUCT_HOSTENT_DATA 1
10906 # FIXME: libjava source code expects to find a prototype for
10907 # gethostbyaddr_r in netdb.h. The outer check ensures that
10908 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
10909 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
10910 # linkage check is enough, yet C++ code requires proper prototypes.)
10911 cat >conftest.
$ac_ext <<_ACEOF
10914 cat confdefs.h
>>conftest.
$ac_ext
10915 cat >>conftest.
$ac_ext <<_ACEOF
10916 /* end confdefs.h. */
10920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10921 $EGREP "gethostbyaddr_r" >/dev
/null
2>&1; then
10924 for ac_func
in gethostbyaddr_r
10926 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10927 echo "$as_me:$LINENO: checking for $ac_func" >&5
10928 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10929 if eval "test \"\${$as_ac_var+set}\" = set"; then
10930 echo $ECHO_N "(cached) $ECHO_C" >&6
10932 if test x
$gcc_no_link = xyes
; then
10933 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10934 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10935 { (exit 1); exit 1; }; }
10937 cat >conftest.
$ac_ext <<_ACEOF
10940 cat confdefs.h
>>conftest.
$ac_ext
10941 cat >>conftest.
$ac_ext <<_ACEOF
10942 /* end confdefs.h. */
10943 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10945 #define $ac_func innocuous_$ac_func
10947 /* System header to define __stub macros and hopefully few prototypes,
10948 which can conflict with char $ac_func (); below.
10949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10950 <limits.h> exists even on freestanding compilers. */
10953 # include <limits.h>
10955 # include <assert.h>
10960 /* Override any gcc2 internal prototype to avoid an error. */
10965 /* We use char because int might match the return type of a gcc2
10966 builtin and then its argument prototype would still apply. */
10968 /* The GNU C library defines this for functions which it implements
10969 to always fail with ENOSYS. Some functions are actually named
10970 something starting with __ and the normal name is an alias. */
10971 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10974 char (*f) () = $ac_func;
10983 return f != $ac_func;
10988 rm -f conftest.
$ac_objext conftest
$ac_exeext
10989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10990 (eval $ac_link) 2>conftest.er1
10992 grep -v '^ *+' conftest.er1
>conftest.err
10994 cat conftest.err
>&5
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); } &&
10997 { ac_try
='test -z "$ac_c_werror_flag"
10998 || test ! -s conftest.err'
10999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11000 (eval $ac_try) 2>&5
11002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003 (exit $ac_status); }; } &&
11004 { ac_try
='test -s conftest$ac_exeext'
11005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11006 (eval $ac_try) 2>&5
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); }; }; then
11010 eval "$as_ac_var=yes"
11012 echo "$as_me: failed program was:" >&5
11013 sed 's/^/| /' conftest.
$ac_ext >&5
11015 eval "$as_ac_var=no"
11017 rm -f conftest.err conftest.
$ac_objext \
11018 conftest
$ac_exeext conftest.
$ac_ext
11020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11021 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11022 if test `eval echo '${'$as_ac_var'}'` = yes; then
11023 cat >>confdefs.h
<<_ACEOF
11024 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11028 cat >>confdefs.h
<<\_ACEOF
11029 #define HAVE_GETHOSTBYADDR_R 1
11032 # There are two different kinds of gethostbyaddr_r.
11033 # We look for the one that returns `int'.
11034 # Hopefully this check is robust enough.
11035 cat >conftest.
$ac_ext <<_ACEOF
11038 cat confdefs.h
>>conftest.
$ac_ext
11039 cat >>conftest.
$ac_ext <<_ACEOF
11040 /* end confdefs.h. */
11044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11045 $EGREP "int.*gethostbyaddr_r" >/dev
/null
2>&1; then
11048 cat >>confdefs.h
<<\_ACEOF
11049 #define GETHOSTBYADDR_R_RETURNS_INT 1
11063 for ac_func
in gethostname
11065 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11066 echo "$as_me:$LINENO: checking for $ac_func" >&5
11067 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11068 if eval "test \"\${$as_ac_var+set}\" = set"; then
11069 echo $ECHO_N "(cached) $ECHO_C" >&6
11071 if test x
$gcc_no_link = xyes
; then
11072 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11073 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11074 { (exit 1); exit 1; }; }
11076 cat >conftest.
$ac_ext <<_ACEOF
11079 cat confdefs.h
>>conftest.
$ac_ext
11080 cat >>conftest.
$ac_ext <<_ACEOF
11081 /* end confdefs.h. */
11082 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11083 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11084 #define $ac_func innocuous_$ac_func
11086 /* System header to define __stub macros and hopefully few prototypes,
11087 which can conflict with char $ac_func (); below.
11088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11089 <limits.h> exists even on freestanding compilers. */
11092 # include <limits.h>
11094 # include <assert.h>
11099 /* Override any gcc2 internal prototype to avoid an error. */
11104 /* We use char because int might match the return type of a gcc2
11105 builtin and then its argument prototype would still apply. */
11107 /* The GNU C library defines this for functions which it implements
11108 to always fail with ENOSYS. Some functions are actually named
11109 something starting with __ and the normal name is an alias. */
11110 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11113 char (*f) () = $ac_func;
11122 return f != $ac_func;
11127 rm -f conftest.
$ac_objext conftest
$ac_exeext
11128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11129 (eval $ac_link) 2>conftest.er1
11131 grep -v '^ *+' conftest.er1
>conftest.err
11133 cat conftest.err
>&5
11134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135 (exit $ac_status); } &&
11136 { ac_try
='test -z "$ac_c_werror_flag"
11137 || test ! -s conftest.err'
11138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11139 (eval $ac_try) 2>&5
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); }; } &&
11143 { ac_try
='test -s conftest$ac_exeext'
11144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11145 (eval $ac_try) 2>&5
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); }; }; then
11149 eval "$as_ac_var=yes"
11151 echo "$as_me: failed program was:" >&5
11152 sed 's/^/| /' conftest.
$ac_ext >&5
11154 eval "$as_ac_var=no"
11156 rm -f conftest.err conftest.
$ac_objext \
11157 conftest
$ac_exeext conftest.
$ac_ext
11159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11160 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11161 if test `eval echo '${'$as_ac_var'}'` = yes; then
11162 cat >>confdefs.h
<<_ACEOF
11163 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11167 cat >>confdefs.h
<<\_ACEOF
11168 #define HAVE_GETHOSTNAME 1
11171 cat >conftest.
$ac_ext <<_ACEOF
11174 cat confdefs.h
>>conftest.
$ac_ext
11175 cat >>conftest.
$ac_ext <<_ACEOF
11176 /* end confdefs.h. */
11177 #include <unistd.h>
11180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11181 $EGREP "gethostname" >/dev
/null
2>&1; then
11184 cat >>confdefs.h
<<\_ACEOF
11185 #define HAVE_GETHOSTNAME_DECL 1
11196 for ac_func
in usleep
11198 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11199 echo "$as_me:$LINENO: checking for $ac_func" >&5
11200 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11201 if eval "test \"\${$as_ac_var+set}\" = set"; then
11202 echo $ECHO_N "(cached) $ECHO_C" >&6
11204 if test x
$gcc_no_link = xyes
; then
11205 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11206 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11207 { (exit 1); exit 1; }; }
11209 cat >conftest.
$ac_ext <<_ACEOF
11212 cat confdefs.h
>>conftest.
$ac_ext
11213 cat >>conftest.
$ac_ext <<_ACEOF
11214 /* end confdefs.h. */
11215 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11217 #define $ac_func innocuous_$ac_func
11219 /* System header to define __stub macros and hopefully few prototypes,
11220 which can conflict with char $ac_func (); below.
11221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11222 <limits.h> exists even on freestanding compilers. */
11225 # include <limits.h>
11227 # include <assert.h>
11232 /* Override any gcc2 internal prototype to avoid an error. */
11237 /* We use char because int might match the return type of a gcc2
11238 builtin and then its argument prototype would still apply. */
11240 /* The GNU C library defines this for functions which it implements
11241 to always fail with ENOSYS. Some functions are actually named
11242 something starting with __ and the normal name is an alias. */
11243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11246 char (*f) () = $ac_func;
11255 return f != $ac_func;
11260 rm -f conftest.
$ac_objext conftest
$ac_exeext
11261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11262 (eval $ac_link) 2>conftest.er1
11264 grep -v '^ *+' conftest.er1
>conftest.err
11266 cat conftest.err
>&5
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); } &&
11269 { ac_try
='test -z "$ac_c_werror_flag"
11270 || test ! -s conftest.err'
11271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11272 (eval $ac_try) 2>&5
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); }; } &&
11276 { ac_try
='test -s conftest$ac_exeext'
11277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11278 (eval $ac_try) 2>&5
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); }; }; then
11282 eval "$as_ac_var=yes"
11284 echo "$as_me: failed program was:" >&5
11285 sed 's/^/| /' conftest.
$ac_ext >&5
11287 eval "$as_ac_var=no"
11289 rm -f conftest.err conftest.
$ac_objext \
11290 conftest
$ac_exeext conftest.
$ac_ext
11292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11293 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11294 if test `eval echo '${'$as_ac_var'}'` = yes; then
11295 cat >>confdefs.h
<<_ACEOF
11296 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11299 cat >conftest.
$ac_ext <<_ACEOF
11302 cat confdefs.h
>>conftest.
$ac_ext
11303 cat >>conftest.
$ac_ext <<_ACEOF
11304 /* end confdefs.h. */
11305 #include <unistd.h>
11308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11309 $EGREP "usleep" >/dev
/null
2>&1; then
11312 cat >>confdefs.h
<<\_ACEOF
11313 #define HAVE_USLEEP_DECL 1
11323 # Look for these functions in the thread library, but only bother
11324 # if using POSIX threads.
11325 if test "$THREADS" = posix
; then
11327 LIBS
="$LIBS $THREADLIBS"
11328 # Some POSIX thread systems don't have pthread_mutexattr_settype.
11332 for ac_func
in pthread_mutexattr_settype pthread_mutexattr_setkind_np
11334 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11335 echo "$as_me:$LINENO: checking for $ac_func" >&5
11336 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11337 if eval "test \"\${$as_ac_var+set}\" = set"; then
11338 echo $ECHO_N "(cached) $ECHO_C" >&6
11340 if test x
$gcc_no_link = xyes
; then
11341 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11342 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11343 { (exit 1); exit 1; }; }
11345 cat >conftest.
$ac_ext <<_ACEOF
11348 cat confdefs.h
>>conftest.
$ac_ext
11349 cat >>conftest.
$ac_ext <<_ACEOF
11350 /* end confdefs.h. */
11351 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11352 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11353 #define $ac_func innocuous_$ac_func
11355 /* System header to define __stub macros and hopefully few prototypes,
11356 which can conflict with char $ac_func (); below.
11357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11358 <limits.h> exists even on freestanding compilers. */
11361 # include <limits.h>
11363 # include <assert.h>
11368 /* Override any gcc2 internal prototype to avoid an error. */
11373 /* We use char because int might match the return type of a gcc2
11374 builtin and then its argument prototype would still apply. */
11376 /* The GNU C library defines this for functions which it implements
11377 to always fail with ENOSYS. Some functions are actually named
11378 something starting with __ and the normal name is an alias. */
11379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11382 char (*f) () = $ac_func;
11391 return f != $ac_func;
11396 rm -f conftest.
$ac_objext conftest
$ac_exeext
11397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11398 (eval $ac_link) 2>conftest.er1
11400 grep -v '^ *+' conftest.er1
>conftest.err
11402 cat conftest.err
>&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); } &&
11405 { ac_try
='test -z "$ac_c_werror_flag"
11406 || test ! -s conftest.err'
11407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11408 (eval $ac_try) 2>&5
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); }; } &&
11412 { ac_try
='test -s conftest$ac_exeext'
11413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11414 (eval $ac_try) 2>&5
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); }; }; then
11418 eval "$as_ac_var=yes"
11420 echo "$as_me: failed program was:" >&5
11421 sed 's/^/| /' conftest.
$ac_ext >&5
11423 eval "$as_ac_var=no"
11425 rm -f conftest.err conftest.
$ac_objext \
11426 conftest
$ac_exeext conftest.
$ac_ext
11428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11429 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11430 if test `eval echo '${'$as_ac_var'}'` = yes; then
11431 cat >>confdefs.h
<<_ACEOF
11432 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11439 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
11440 # Solaris 7 the name librt is preferred.
11442 for ac_func
in sched_yield
11444 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11445 echo "$as_me:$LINENO: checking for $ac_func" >&5
11446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11447 if eval "test \"\${$as_ac_var+set}\" = set"; then
11448 echo $ECHO_N "(cached) $ECHO_C" >&6
11450 if test x
$gcc_no_link = xyes
; then
11451 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11452 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11453 { (exit 1); exit 1; }; }
11455 cat >conftest.
$ac_ext <<_ACEOF
11458 cat confdefs.h
>>conftest.
$ac_ext
11459 cat >>conftest.
$ac_ext <<_ACEOF
11460 /* end confdefs.h. */
11461 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11463 #define $ac_func innocuous_$ac_func
11465 /* System header to define __stub macros and hopefully few prototypes,
11466 which can conflict with char $ac_func (); below.
11467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11468 <limits.h> exists even on freestanding compilers. */
11471 # include <limits.h>
11473 # include <assert.h>
11478 /* Override any gcc2 internal prototype to avoid an error. */
11483 /* We use char because int might match the return type of a gcc2
11484 builtin and then its argument prototype would still apply. */
11486 /* The GNU C library defines this for functions which it implements
11487 to always fail with ENOSYS. Some functions are actually named
11488 something starting with __ and the normal name is an alias. */
11489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11492 char (*f) () = $ac_func;
11501 return f != $ac_func;
11506 rm -f conftest.
$ac_objext conftest
$ac_exeext
11507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11508 (eval $ac_link) 2>conftest.er1
11510 grep -v '^ *+' conftest.er1
>conftest.err
11512 cat conftest.err
>&5
11513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514 (exit $ac_status); } &&
11515 { ac_try
='test -z "$ac_c_werror_flag"
11516 || test ! -s conftest.err'
11517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11518 (eval $ac_try) 2>&5
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); }; } &&
11522 { ac_try
='test -s conftest$ac_exeext'
11523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11524 (eval $ac_try) 2>&5
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); }; }; then
11528 eval "$as_ac_var=yes"
11530 echo "$as_me: failed program was:" >&5
11531 sed 's/^/| /' conftest.
$ac_ext >&5
11533 eval "$as_ac_var=no"
11535 rm -f conftest.err conftest.
$ac_objext \
11536 conftest
$ac_exeext conftest.
$ac_ext
11538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11539 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11540 if test `eval echo '${'$as_ac_var'}'` = yes; then
11541 cat >>confdefs.h
<<_ACEOF
11542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11547 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
11548 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
11549 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
11550 echo $ECHO_N "(cached) $ECHO_C" >&6
11552 ac_check_lib_save_LIBS
=$LIBS
11554 if test x
$gcc_no_link = xyes
; then
11555 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11556 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11557 { (exit 1); exit 1; }; }
11559 cat >conftest.
$ac_ext <<_ACEOF
11562 cat confdefs.h
>>conftest.
$ac_ext
11563 cat >>conftest.
$ac_ext <<_ACEOF
11564 /* end confdefs.h. */
11566 /* Override any gcc2 internal prototype to avoid an error. */
11570 /* We use char because int might match the return type of a gcc2
11571 builtin and then its argument prototype would still apply. */
11572 char sched_yield ();
11581 rm -f conftest.
$ac_objext conftest
$ac_exeext
11582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11583 (eval $ac_link) 2>conftest.er1
11585 grep -v '^ *+' conftest.er1
>conftest.err
11587 cat conftest.err
>&5
11588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589 (exit $ac_status); } &&
11590 { ac_try
='test -z "$ac_c_werror_flag"
11591 || test ! -s conftest.err'
11592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11593 (eval $ac_try) 2>&5
11595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596 (exit $ac_status); }; } &&
11597 { ac_try
='test -s conftest$ac_exeext'
11598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11599 (eval $ac_try) 2>&5
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); }; }; then
11603 ac_cv_lib_rt_sched_yield
=yes
11605 echo "$as_me: failed program was:" >&5
11606 sed 's/^/| /' conftest.
$ac_ext >&5
11608 ac_cv_lib_rt_sched_yield
=no
11610 rm -f conftest.err conftest.
$ac_objext \
11611 conftest
$ac_exeext conftest.
$ac_ext
11612 LIBS
=$ac_check_lib_save_LIBS
11614 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
11615 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
11616 if test $ac_cv_lib_rt_sched_yield = yes; then
11618 cat >>confdefs.h
<<\_ACEOF
11619 #define HAVE_SCHED_YIELD 1
11622 THREADLIBS
="$THREADLIBS -lrt"
11623 THREADSPEC
="$THREADSPEC -lrt"
11626 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
11627 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
11628 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
11629 echo $ECHO_N "(cached) $ECHO_C" >&6
11631 ac_check_lib_save_LIBS
=$LIBS
11632 LIBS
="-lposix4 $LIBS"
11633 if test x
$gcc_no_link = xyes
; then
11634 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11635 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11636 { (exit 1); exit 1; }; }
11638 cat >conftest.
$ac_ext <<_ACEOF
11641 cat confdefs.h
>>conftest.
$ac_ext
11642 cat >>conftest.
$ac_ext <<_ACEOF
11643 /* end confdefs.h. */
11645 /* Override any gcc2 internal prototype to avoid an error. */
11649 /* We use char because int might match the return type of a gcc2
11650 builtin and then its argument prototype would still apply. */
11651 char sched_yield ();
11660 rm -f conftest.
$ac_objext conftest
$ac_exeext
11661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11662 (eval $ac_link) 2>conftest.er1
11664 grep -v '^ *+' conftest.er1
>conftest.err
11666 cat conftest.err
>&5
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); } &&
11669 { ac_try
='test -z "$ac_c_werror_flag"
11670 || test ! -s conftest.err'
11671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11672 (eval $ac_try) 2>&5
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); }; } &&
11676 { ac_try
='test -s conftest$ac_exeext'
11677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11678 (eval $ac_try) 2>&5
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); }; }; then
11682 ac_cv_lib_posix4_sched_yield
=yes
11684 echo "$as_me: failed program was:" >&5
11685 sed 's/^/| /' conftest.
$ac_ext >&5
11687 ac_cv_lib_posix4_sched_yield
=no
11689 rm -f conftest.err conftest.
$ac_objext \
11690 conftest
$ac_exeext conftest.
$ac_ext
11691 LIBS
=$ac_check_lib_save_LIBS
11693 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
11694 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
11695 if test $ac_cv_lib_posix4_sched_yield = yes; then
11697 cat >>confdefs.h
<<\_ACEOF
11698 #define HAVE_SCHED_YIELD 1
11701 THREADLIBS
="$THREADLIBS -lposix4"
11702 THREADSPEC
="$THREADSPEC -lposix4"
11712 # We can save a little space at runtime if the mutex has m_count
11713 # or __m_count. This is a nice hack for Linux.
11714 cat >conftest.
$ac_ext <<_ACEOF
11717 cat confdefs.h
>>conftest.
$ac_ext
11718 cat >>conftest.
$ac_ext <<_ACEOF
11719 /* end confdefs.h. */
11720 #include <pthread.h>
11725 extern pthread_mutex_t *mutex; int q = mutex->m_count;
11731 rm -f conftest.
$ac_objext
11732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11733 (eval $ac_compile) 2>conftest.er1
11735 grep -v '^ *+' conftest.er1
>conftest.err
11737 cat conftest.err
>&5
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); } &&
11740 { ac_try
='test -z "$ac_c_werror_flag"
11741 || test ! -s conftest.err'
11742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11743 (eval $ac_try) 2>&5
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); }; } &&
11747 { ac_try
='test -s conftest.$ac_objext'
11748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11749 (eval $ac_try) 2>&5
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); }; }; then
11754 cat >>confdefs.h
<<\_ACEOF
11755 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
11759 echo "$as_me: failed program was:" >&5
11760 sed 's/^/| /' conftest.
$ac_ext >&5
11763 cat >conftest.
$ac_ext <<_ACEOF
11766 cat confdefs.h
>>conftest.
$ac_ext
11767 cat >>conftest.
$ac_ext <<_ACEOF
11768 /* end confdefs.h. */
11769 #include <pthread.h>
11774 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
11780 rm -f conftest.
$ac_objext
11781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11782 (eval $ac_compile) 2>conftest.er1
11784 grep -v '^ *+' conftest.er1
>conftest.err
11786 cat conftest.err
>&5
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); } &&
11789 { ac_try
='test -z "$ac_c_werror_flag"
11790 || test ! -s conftest.err'
11791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11792 (eval $ac_try) 2>&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); }; } &&
11796 { ac_try
='test -s conftest.$ac_objext'
11797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11798 (eval $ac_try) 2>&5
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); }; }; then
11803 cat >>confdefs.h
<<\_ACEOF
11804 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
11808 echo "$as_me: failed program was:" >&5
11809 sed 's/^/| /' conftest.
$ac_ext >&5
11812 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11814 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11817 # We require a way to get the time.
11822 for ac_func
in gettimeofday
time ftime
11824 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11825 echo "$as_me:$LINENO: checking for $ac_func" >&5
11826 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11827 if eval "test \"\${$as_ac_var+set}\" = set"; then
11828 echo $ECHO_N "(cached) $ECHO_C" >&6
11830 if test x
$gcc_no_link = xyes
; then
11831 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11832 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11833 { (exit 1); exit 1; }; }
11835 cat >conftest.
$ac_ext <<_ACEOF
11838 cat confdefs.h
>>conftest.
$ac_ext
11839 cat >>conftest.
$ac_ext <<_ACEOF
11840 /* end confdefs.h. */
11841 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11842 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11843 #define $ac_func innocuous_$ac_func
11845 /* System header to define __stub macros and hopefully few prototypes,
11846 which can conflict with char $ac_func (); below.
11847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11848 <limits.h> exists even on freestanding compilers. */
11851 # include <limits.h>
11853 # include <assert.h>
11858 /* Override any gcc2 internal prototype to avoid an error. */
11863 /* We use char because int might match the return type of a gcc2
11864 builtin and then its argument prototype would still apply. */
11866 /* The GNU C library defines this for functions which it implements
11867 to always fail with ENOSYS. Some functions are actually named
11868 something starting with __ and the normal name is an alias. */
11869 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11872 char (*f) () = $ac_func;
11881 return f != $ac_func;
11886 rm -f conftest.
$ac_objext conftest
$ac_exeext
11887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11888 (eval $ac_link) 2>conftest.er1
11890 grep -v '^ *+' conftest.er1
>conftest.err
11892 cat conftest.err
>&5
11893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894 (exit $ac_status); } &&
11895 { ac_try
='test -z "$ac_c_werror_flag"
11896 || test ! -s conftest.err'
11897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11898 (eval $ac_try) 2>&5
11900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901 (exit $ac_status); }; } &&
11902 { ac_try
='test -s conftest$ac_exeext'
11903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11904 (eval $ac_try) 2>&5
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); }; }; then
11908 eval "$as_ac_var=yes"
11910 echo "$as_me: failed program was:" >&5
11911 sed 's/^/| /' conftest.
$ac_ext >&5
11913 eval "$as_ac_var=no"
11915 rm -f conftest.err conftest.
$ac_objext \
11916 conftest
$ac_exeext conftest.
$ac_ext
11918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11919 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11920 if test `eval echo '${'$as_ac_var'}'` = yes; then
11921 cat >>confdefs.h
<<_ACEOF
11922 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11928 if test "$time_found" = no
; then
11929 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
11930 echo "$as_me: error: no function found to get the time" >&2;}
11931 { (exit 1); exit 1; }; }
11935 for ac_func
in memmove
11937 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11938 echo "$as_me:$LINENO: checking for $ac_func" >&5
11939 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11940 if eval "test \"\${$as_ac_var+set}\" = set"; then
11941 echo $ECHO_N "(cached) $ECHO_C" >&6
11943 if test x
$gcc_no_link = xyes
; then
11944 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11945 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11946 { (exit 1); exit 1; }; }
11948 cat >conftest.
$ac_ext <<_ACEOF
11951 cat confdefs.h
>>conftest.
$ac_ext
11952 cat >>conftest.
$ac_ext <<_ACEOF
11953 /* end confdefs.h. */
11954 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11956 #define $ac_func innocuous_$ac_func
11958 /* System header to define __stub macros and hopefully few prototypes,
11959 which can conflict with char $ac_func (); below.
11960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11961 <limits.h> exists even on freestanding compilers. */
11964 # include <limits.h>
11966 # include <assert.h>
11971 /* Override any gcc2 internal prototype to avoid an error. */
11976 /* We use char because int might match the return type of a gcc2
11977 builtin and then its argument prototype would still apply. */
11979 /* The GNU C library defines this for functions which it implements
11980 to always fail with ENOSYS. Some functions are actually named
11981 something starting with __ and the normal name is an alias. */
11982 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11985 char (*f) () = $ac_func;
11994 return f != $ac_func;
11999 rm -f conftest.
$ac_objext conftest
$ac_exeext
12000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12001 (eval $ac_link) 2>conftest.er1
12003 grep -v '^ *+' conftest.er1
>conftest.err
12005 cat conftest.err
>&5
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); } &&
12008 { ac_try
='test -z "$ac_c_werror_flag"
12009 || test ! -s conftest.err'
12010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12011 (eval $ac_try) 2>&5
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); }; } &&
12015 { ac_try
='test -s conftest$ac_exeext'
12016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12017 (eval $ac_try) 2>&5
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); }; }; then
12021 eval "$as_ac_var=yes"
12023 echo "$as_me: failed program was:" >&5
12024 sed 's/^/| /' conftest.
$ac_ext >&5
12026 eval "$as_ac_var=no"
12028 rm -f conftest.err conftest.
$ac_objext \
12029 conftest
$ac_exeext conftest.
$ac_ext
12031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12032 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12033 if test `eval echo '${'$as_ac_var'}'` = yes; then
12034 cat >>confdefs.h
<<_ACEOF
12035 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12042 # We require memcpy.
12045 for ac_func
in memcpy
12047 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12048 echo "$as_me:$LINENO: checking for $ac_func" >&5
12049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12050 if eval "test \"\${$as_ac_var+set}\" = set"; then
12051 echo $ECHO_N "(cached) $ECHO_C" >&6
12053 if test x
$gcc_no_link = xyes
; then
12054 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12055 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12056 { (exit 1); exit 1; }; }
12058 cat >conftest.
$ac_ext <<_ACEOF
12061 cat confdefs.h
>>conftest.
$ac_ext
12062 cat >>conftest.
$ac_ext <<_ACEOF
12063 /* end confdefs.h. */
12064 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12066 #define $ac_func innocuous_$ac_func
12068 /* System header to define __stub macros and hopefully few prototypes,
12069 which can conflict with char $ac_func (); below.
12070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12071 <limits.h> exists even on freestanding compilers. */
12074 # include <limits.h>
12076 # include <assert.h>
12081 /* Override any gcc2 internal prototype to avoid an error. */
12086 /* We use char because int might match the return type of a gcc2
12087 builtin and then its argument prototype would still apply. */
12089 /* The GNU C library defines this for functions which it implements
12090 to always fail with ENOSYS. Some functions are actually named
12091 something starting with __ and the normal name is an alias. */
12092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12095 char (*f) () = $ac_func;
12104 return f != $ac_func;
12109 rm -f conftest.
$ac_objext conftest
$ac_exeext
12110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12111 (eval $ac_link) 2>conftest.er1
12113 grep -v '^ *+' conftest.er1
>conftest.err
12115 cat conftest.err
>&5
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); } &&
12118 { ac_try
='test -z "$ac_c_werror_flag"
12119 || test ! -s conftest.err'
12120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12121 (eval $ac_try) 2>&5
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); }; } &&
12125 { ac_try
='test -s conftest$ac_exeext'
12126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12127 (eval $ac_try) 2>&5
12129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130 (exit $ac_status); }; }; then
12131 eval "$as_ac_var=yes"
12133 echo "$as_me: failed program was:" >&5
12134 sed 's/^/| /' conftest.
$ac_ext >&5
12136 eval "$as_ac_var=no"
12138 rm -f conftest.err conftest.
$ac_objext \
12139 conftest
$ac_exeext conftest.
$ac_ext
12141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12142 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12143 if test `eval echo '${'$as_ac_var'}'` = yes; then
12144 cat >>confdefs.h
<<_ACEOF
12145 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12151 if test "$memcpy_found" = no
; then
12152 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
12153 echo "$as_me: error: memcpy is required" >&2;}
12154 { (exit 1); exit 1; }; }
12157 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12158 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12159 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12160 echo $ECHO_N "(cached) $ECHO_C" >&6
12162 ac_check_lib_save_LIBS
=$LIBS
12164 if test x
$gcc_no_link = xyes
; then
12165 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12166 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12167 { (exit 1); exit 1; }; }
12169 cat >conftest.
$ac_ext <<_ACEOF
12172 cat confdefs.h
>>conftest.
$ac_ext
12173 cat >>conftest.
$ac_ext <<_ACEOF
12174 /* end confdefs.h. */
12176 /* Override any gcc2 internal prototype to avoid an error. */
12180 /* We use char because int might match the return type of a gcc2
12181 builtin and then its argument prototype would still apply. */
12191 rm -f conftest.
$ac_objext conftest
$ac_exeext
12192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12193 (eval $ac_link) 2>conftest.er1
12195 grep -v '^ *+' conftest.er1
>conftest.err
12197 cat conftest.err
>&5
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); } &&
12200 { ac_try
='test -z "$ac_c_werror_flag"
12201 || test ! -s conftest.err'
12202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12203 (eval $ac_try) 2>&5
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); }; } &&
12207 { ac_try
='test -s conftest$ac_exeext'
12208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12209 (eval $ac_try) 2>&5
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); }; }; then
12213 ac_cv_lib_dl_dlopen
=yes
12215 echo "$as_me: failed program was:" >&5
12216 sed 's/^/| /' conftest.
$ac_ext >&5
12218 ac_cv_lib_dl_dlopen
=no
12220 rm -f conftest.err conftest.
$ac_objext \
12221 conftest
$ac_exeext conftest.
$ac_ext
12222 LIBS
=$ac_check_lib_save_LIBS
12224 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12225 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12226 if test $ac_cv_lib_dl_dlopen = yes; then
12229 cat >>confdefs.h
<<\_ACEOF
12230 #define HAVE_DLOPEN 1
12236 # Some library-finding code we stole from Tcl.
12237 #--------------------------------------------------------------------
12238 # Check for the existence of the -lsocket and -lnsl libraries.
12239 # The order here is important, so that they end up in the right
12240 # order in the command line generated by make. Here are some
12241 # special considerations:
12242 # 1. Use "connect" and "accept" to check for -lsocket, and
12243 # "gethostbyname" to check for -lnsl.
12244 # 2. Use each function name only once: can't redo a check because
12245 # autoconf caches the results of the last check and won't redo it.
12246 # 3. Use -lnsl and -lsocket only if they supply procedures that
12247 # aren't already present in the normal libraries. This is because
12248 # IRIX 5.2 has libraries, but they aren't needed and they're
12249 # bogus: they goof up name resolution if used.
12250 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
12251 # To get around this problem, check for both libraries together
12252 # if -lsocket doesn't work by itself.
12253 #--------------------------------------------------------------------
12255 echo "$as_me:$LINENO: checking for socket libraries" >&5
12256 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
12257 if test "${gcj_cv_lib_sockets+set}" = set; then
12258 echo $ECHO_N "(cached) $ECHO_C" >&6
12260 gcj_cv_lib_sockets
=
12262 unset ac_cv_func_connect
12263 echo "$as_me:$LINENO: checking for connect" >&5
12264 echo $ECHO_N "checking for connect... $ECHO_C" >&6
12265 if test "${ac_cv_func_connect+set}" = set; then
12266 echo $ECHO_N "(cached) $ECHO_C" >&6
12268 if test x
$gcc_no_link = xyes
; then
12269 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12270 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12271 { (exit 1); exit 1; }; }
12273 cat >conftest.
$ac_ext <<_ACEOF
12276 cat confdefs.h
>>conftest.
$ac_ext
12277 cat >>conftest.
$ac_ext <<_ACEOF
12278 /* end confdefs.h. */
12279 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
12280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12281 #define connect innocuous_connect
12283 /* System header to define __stub macros and hopefully few prototypes,
12284 which can conflict with char connect (); below.
12285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12286 <limits.h> exists even on freestanding compilers. */
12289 # include <limits.h>
12291 # include <assert.h>
12296 /* Override any gcc2 internal prototype to avoid an error. */
12301 /* We use char because int might match the return type of a gcc2
12302 builtin and then its argument prototype would still apply. */
12304 /* The GNU C library defines this for functions which it implements
12305 to always fail with ENOSYS. Some functions are actually named
12306 something starting with __ and the normal name is an alias. */
12307 #if defined (__stub_connect) || defined (__stub___connect)
12310 char (*f) () = connect;
12319 return f != connect;
12324 rm -f conftest.
$ac_objext conftest
$ac_exeext
12325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12326 (eval $ac_link) 2>conftest.er1
12328 grep -v '^ *+' conftest.er1
>conftest.err
12330 cat conftest.err
>&5
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); } &&
12333 { ac_try
='test -z "$ac_c_werror_flag"
12334 || test ! -s conftest.err'
12335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12336 (eval $ac_try) 2>&5
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); }; } &&
12340 { ac_try
='test -s conftest$ac_exeext'
12341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12342 (eval $ac_try) 2>&5
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); }; }; then
12346 ac_cv_func_connect
=yes
12348 echo "$as_me: failed program was:" >&5
12349 sed 's/^/| /' conftest.
$ac_ext >&5
12351 ac_cv_func_connect
=no
12353 rm -f conftest.err conftest.
$ac_objext \
12354 conftest
$ac_exeext conftest.
$ac_ext
12356 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
12357 echo "${ECHO_T}$ac_cv_func_connect" >&6
12358 if test $ac_cv_func_connect = yes; then
12364 if test "$gcj_checkSocket" = 1; then
12365 unset ac_cv_func_connect
12366 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
12367 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
12368 if test "${ac_cv_lib_socket_main+set}" = set; then
12369 echo $ECHO_N "(cached) $ECHO_C" >&6
12371 ac_check_lib_save_LIBS
=$LIBS
12372 LIBS
="-lsocket $LIBS"
12373 if test x
$gcc_no_link = xyes
; then
12374 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12375 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12376 { (exit 1); exit 1; }; }
12378 cat >conftest.
$ac_ext <<_ACEOF
12381 cat confdefs.h
>>conftest.
$ac_ext
12382 cat >>conftest.
$ac_ext <<_ACEOF
12383 /* end confdefs.h. */
12394 rm -f conftest.
$ac_objext conftest
$ac_exeext
12395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12396 (eval $ac_link) 2>conftest.er1
12398 grep -v '^ *+' conftest.er1
>conftest.err
12400 cat conftest.err
>&5
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); } &&
12403 { ac_try
='test -z "$ac_c_werror_flag"
12404 || test ! -s conftest.err'
12405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12406 (eval $ac_try) 2>&5
12408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 (exit $ac_status); }; } &&
12410 { ac_try
='test -s conftest$ac_exeext'
12411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12412 (eval $ac_try) 2>&5
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); }; }; then
12416 ac_cv_lib_socket_main
=yes
12418 echo "$as_me: failed program was:" >&5
12419 sed 's/^/| /' conftest.
$ac_ext >&5
12421 ac_cv_lib_socket_main
=no
12423 rm -f conftest.err conftest.
$ac_objext \
12424 conftest
$ac_exeext conftest.
$ac_ext
12425 LIBS
=$ac_check_lib_save_LIBS
12427 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
12428 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
12429 if test $ac_cv_lib_socket_main = yes; then
12430 gcj_cv_lib_sockets
="-lsocket"
12436 if test "$gcj_checkBoth" = 1; then
12438 LIBS
="$LIBS -lsocket -lnsl"
12439 unset ac_cv_func_accept
12440 echo "$as_me:$LINENO: checking for accept" >&5
12441 echo $ECHO_N "checking for accept... $ECHO_C" >&6
12442 if test "${ac_cv_func_accept+set}" = set; then
12443 echo $ECHO_N "(cached) $ECHO_C" >&6
12445 if test x
$gcc_no_link = xyes
; then
12446 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12447 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12448 { (exit 1); exit 1; }; }
12450 cat >conftest.
$ac_ext <<_ACEOF
12453 cat confdefs.h
>>conftest.
$ac_ext
12454 cat >>conftest.
$ac_ext <<_ACEOF
12455 /* end confdefs.h. */
12456 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
12457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12458 #define accept innocuous_accept
12460 /* System header to define __stub macros and hopefully few prototypes,
12461 which can conflict with char accept (); below.
12462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12463 <limits.h> exists even on freestanding compilers. */
12466 # include <limits.h>
12468 # include <assert.h>
12473 /* Override any gcc2 internal prototype to avoid an error. */
12478 /* We use char because int might match the return type of a gcc2
12479 builtin and then its argument prototype would still apply. */
12481 /* The GNU C library defines this for functions which it implements
12482 to always fail with ENOSYS. Some functions are actually named
12483 something starting with __ and the normal name is an alias. */
12484 #if defined (__stub_accept) || defined (__stub___accept)
12487 char (*f) () = accept;
12496 return f != accept;
12501 rm -f conftest.
$ac_objext conftest
$ac_exeext
12502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12503 (eval $ac_link) 2>conftest.er1
12505 grep -v '^ *+' conftest.er1
>conftest.err
12507 cat conftest.err
>&5
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); } &&
12510 { ac_try
='test -z "$ac_c_werror_flag"
12511 || test ! -s conftest.err'
12512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12513 (eval $ac_try) 2>&5
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); }; } &&
12517 { ac_try
='test -s conftest$ac_exeext'
12518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12519 (eval $ac_try) 2>&5
12521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); }; }; then
12523 ac_cv_func_accept
=yes
12525 echo "$as_me: failed program was:" >&5
12526 sed 's/^/| /' conftest.
$ac_ext >&5
12528 ac_cv_func_accept
=no
12530 rm -f conftest.err conftest.
$ac_objext \
12531 conftest
$ac_exeext conftest.
$ac_ext
12533 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
12534 echo "${ECHO_T}$ac_cv_func_accept" >&6
12535 if test $ac_cv_func_accept = yes; then
12537 gcj_cv_lib_sockets
="-lsocket -lnsl"
12540 unset ac_cv_func_accept
12543 unset ac_cv_func_gethostbyname
12545 LIBS
="$LIBS $gcj_cv_lib_sockets"
12546 echo "$as_me:$LINENO: checking for gethostbyname" >&5
12547 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
12548 if test "${ac_cv_func_gethostbyname+set}" = set; then
12549 echo $ECHO_N "(cached) $ECHO_C" >&6
12551 if test x
$gcc_no_link = xyes
; then
12552 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12553 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12554 { (exit 1); exit 1; }; }
12556 cat >conftest.
$ac_ext <<_ACEOF
12559 cat confdefs.h
>>conftest.
$ac_ext
12560 cat >>conftest.
$ac_ext <<_ACEOF
12561 /* end confdefs.h. */
12562 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
12563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12564 #define gethostbyname innocuous_gethostbyname
12566 /* System header to define __stub macros and hopefully few prototypes,
12567 which can conflict with char gethostbyname (); below.
12568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12569 <limits.h> exists even on freestanding compilers. */
12572 # include <limits.h>
12574 # include <assert.h>
12577 #undef gethostbyname
12579 /* Override any gcc2 internal prototype to avoid an error. */
12584 /* We use char because int might match the return type of a gcc2
12585 builtin and then its argument prototype would still apply. */
12586 char gethostbyname ();
12587 /* The GNU C library defines this for functions which it implements
12588 to always fail with ENOSYS. Some functions are actually named
12589 something starting with __ and the normal name is an alias. */
12590 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
12593 char (*f) () = gethostbyname;
12602 return f != gethostbyname;
12607 rm -f conftest.
$ac_objext conftest
$ac_exeext
12608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12609 (eval $ac_link) 2>conftest.er1
12611 grep -v '^ *+' conftest.er1
>conftest.err
12613 cat conftest.err
>&5
12614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615 (exit $ac_status); } &&
12616 { ac_try
='test -z "$ac_c_werror_flag"
12617 || test ! -s conftest.err'
12618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12619 (eval $ac_try) 2>&5
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); }; } &&
12623 { ac_try
='test -s conftest$ac_exeext'
12624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12625 (eval $ac_try) 2>&5
12627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628 (exit $ac_status); }; }; then
12629 ac_cv_func_gethostbyname
=yes
12631 echo "$as_me: failed program was:" >&5
12632 sed 's/^/| /' conftest.
$ac_ext >&5
12634 ac_cv_func_gethostbyname
=no
12636 rm -f conftest.err conftest.
$ac_objext \
12637 conftest
$ac_exeext conftest.
$ac_ext
12639 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
12640 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
12641 if test $ac_cv_func_gethostbyname = yes; then
12644 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
12645 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
12646 if test "${ac_cv_lib_nsl_main+set}" = set; then
12647 echo $ECHO_N "(cached) $ECHO_C" >&6
12649 ac_check_lib_save_LIBS
=$LIBS
12651 if test x
$gcc_no_link = xyes
; then
12652 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12653 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12654 { (exit 1); exit 1; }; }
12656 cat >conftest.
$ac_ext <<_ACEOF
12659 cat confdefs.h
>>conftest.
$ac_ext
12660 cat >>conftest.
$ac_ext <<_ACEOF
12661 /* end confdefs.h. */
12672 rm -f conftest.
$ac_objext conftest
$ac_exeext
12673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12674 (eval $ac_link) 2>conftest.er1
12676 grep -v '^ *+' conftest.er1
>conftest.err
12678 cat conftest.err
>&5
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); } &&
12681 { ac_try
='test -z "$ac_c_werror_flag"
12682 || test ! -s conftest.err'
12683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12684 (eval $ac_try) 2>&5
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); }; } &&
12688 { ac_try
='test -s conftest$ac_exeext'
12689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12690 (eval $ac_try) 2>&5
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); }; }; then
12694 ac_cv_lib_nsl_main
=yes
12696 echo "$as_me: failed program was:" >&5
12697 sed 's/^/| /' conftest.
$ac_ext >&5
12699 ac_cv_lib_nsl_main
=no
12701 rm -f conftest.err conftest.
$ac_objext \
12702 conftest
$ac_exeext conftest.
$ac_ext
12703 LIBS
=$ac_check_lib_save_LIBS
12705 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
12706 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
12707 if test $ac_cv_lib_nsl_main = yes; then
12708 gcj_cv_lib_sockets
="$gcj_cv_lib_sockets -lnsl"
12713 unset ac_cv_func_gethostbyname
12717 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
12718 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
12719 SYSTEMSPEC
="$SYSTEMSPEC $gcj_cv_lib_sockets"
12721 if test "$with_system_zlib" = yes; then
12722 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
12723 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
12724 if test "${ac_cv_lib_z_deflate+set}" = set; then
12725 echo $ECHO_N "(cached) $ECHO_C" >&6
12727 ac_check_lib_save_LIBS
=$LIBS
12729 if test x
$gcc_no_link = xyes
; then
12730 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12731 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12732 { (exit 1); exit 1; }; }
12734 cat >conftest.
$ac_ext <<_ACEOF
12737 cat confdefs.h
>>conftest.
$ac_ext
12738 cat >>conftest.
$ac_ext <<_ACEOF
12739 /* end confdefs.h. */
12741 /* Override any gcc2 internal prototype to avoid an error. */
12745 /* We use char because int might match the return type of a gcc2
12746 builtin and then its argument prototype would still apply. */
12756 rm -f conftest.
$ac_objext conftest
$ac_exeext
12757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12758 (eval $ac_link) 2>conftest.er1
12760 grep -v '^ *+' conftest.er1
>conftest.err
12762 cat conftest.err
>&5
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); } &&
12765 { ac_try
='test -z "$ac_c_werror_flag"
12766 || test ! -s conftest.err'
12767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12768 (eval $ac_try) 2>&5
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); }; } &&
12772 { ac_try
='test -s conftest$ac_exeext'
12773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12774 (eval $ac_try) 2>&5
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); }; }; then
12778 ac_cv_lib_z_deflate
=yes
12780 echo "$as_me: failed program was:" >&5
12781 sed 's/^/| /' conftest.
$ac_ext >&5
12783 ac_cv_lib_z_deflate
=no
12785 rm -f conftest.err conftest.
$ac_objext \
12786 conftest
$ac_exeext conftest.
$ac_ext
12787 LIBS
=$ac_check_lib_save_LIBS
12789 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
12790 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
12791 if test $ac_cv_lib_z_deflate = yes; then
12799 # Test for Gtk stuff, if asked for.
12800 if test "$use_gtk_awt" = yes; then
12804 if test -z "$PKG_CONFIG"; then
12805 # Extract the first word of "pkg-config", so it can be a program name with args.
12806 set dummy pkg-config
; ac_word
=$2
12807 echo "$as_me:$LINENO: checking for $ac_word" >&5
12808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12809 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12810 echo $ECHO_N "(cached) $ECHO_C" >&6
12812 case $PKG_CONFIG in
12814 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12817 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12818 for as_dir
in $PATH
12821 test -z "$as_dir" && as_dir
=.
12822 for ac_exec_ext
in '' $ac_executable_extensions; do
12823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12824 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12831 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12835 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12837 if test -n "$PKG_CONFIG"; then
12838 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12839 echo "${ECHO_T}$PKG_CONFIG" >&6
12841 echo "$as_me:$LINENO: result: no" >&5
12842 echo "${ECHO_T}no" >&6
12847 if test "$PKG_CONFIG" = "no" ; then
12848 echo "*** The pkg-config script could not be found. Make sure it is"
12849 echo "*** in your path, or set the PKG_CONFIG environment variable"
12850 echo "*** to the full path to pkg-config."
12851 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12853 PKG_CONFIG_MIN_VERSION
=0.9.0
12854 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12855 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
12856 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
12858 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
12859 echo "$as_me:$LINENO: result: yes" >&5
12860 echo "${ECHO_T}yes" >&6
12863 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
12864 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
12865 GTK_CFLAGS
=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
12866 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
12867 echo "${ECHO_T}$GTK_CFLAGS" >&6
12869 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
12870 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
12871 GTK_LIBS
=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
12872 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
12873 echo "${ECHO_T}$GTK_LIBS" >&6
12877 ## If we have a custom action on failure, don't print errors, but
12878 ## do set a variable so people can do so.
12879 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
12880 echo $GTK_PKG_ERRORS
12886 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12887 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12891 if test $succeeded = yes; then
12894 { { 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
12895 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;}
12896 { (exit 1); exit 1; }; }
12905 if test -z "$PKG_CONFIG"; then
12906 # Extract the first word of "pkg-config", so it can be a program name with args.
12907 set dummy pkg-config
; ac_word
=$2
12908 echo "$as_me:$LINENO: checking for $ac_word" >&5
12909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12910 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12911 echo $ECHO_N "(cached) $ECHO_C" >&6
12913 case $PKG_CONFIG in
12915 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12918 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12919 for as_dir
in $PATH
12922 test -z "$as_dir" && as_dir
=.
12923 for ac_exec_ext
in '' $ac_executable_extensions; do
12924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12925 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12932 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12936 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12938 if test -n "$PKG_CONFIG"; then
12939 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12940 echo "${ECHO_T}$PKG_CONFIG" >&6
12942 echo "$as_me:$LINENO: result: no" >&5
12943 echo "${ECHO_T}no" >&6
12948 if test "$PKG_CONFIG" = "no" ; then
12949 echo "*** The pkg-config script could not be found. Make sure it is"
12950 echo "*** in your path, or set the PKG_CONFIG environment variable"
12951 echo "*** to the full path to pkg-config."
12952 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12954 PKG_CONFIG_MIN_VERSION
=0.9.0
12955 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12956 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
12957 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
12959 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
12960 echo "$as_me:$LINENO: result: yes" >&5
12961 echo "${ECHO_T}yes" >&6
12964 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
12965 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
12966 GLIB_CFLAGS
=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
12967 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
12968 echo "${ECHO_T}$GLIB_CFLAGS" >&6
12970 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
12971 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
12972 GLIB_LIBS
=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
12973 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
12974 echo "${ECHO_T}$GLIB_LIBS" >&6
12978 ## If we have a custom action on failure, don't print errors, but
12979 ## do set a variable so people can do so.
12980 GLIB_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
12981 echo $GLIB_PKG_ERRORS
12987 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12988 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12992 if test $succeeded = yes; then
12995 { { 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
12996 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;}
12997 { (exit 1); exit 1; }; }
13006 if test -z "$PKG_CONFIG"; then
13007 # Extract the first word of "pkg-config", so it can be a program name with args.
13008 set dummy pkg-config
; ac_word
=$2
13009 echo "$as_me:$LINENO: checking for $ac_word" >&5
13010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13011 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13012 echo $ECHO_N "(cached) $ECHO_C" >&6
13014 case $PKG_CONFIG in
13016 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13019 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13020 for as_dir
in $PATH
13023 test -z "$as_dir" && as_dir
=.
13024 for ac_exec_ext
in '' $ac_executable_extensions; do
13025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13026 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13033 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13037 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13039 if test -n "$PKG_CONFIG"; then
13040 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13041 echo "${ECHO_T}$PKG_CONFIG" >&6
13043 echo "$as_me:$LINENO: result: no" >&5
13044 echo "${ECHO_T}no" >&6
13049 if test "$PKG_CONFIG" = "no" ; then
13050 echo "*** The pkg-config script could not be found. Make sure it is"
13051 echo "*** in your path, or set the PKG_CONFIG environment variable"
13052 echo "*** to the full path to pkg-config."
13053 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13055 PKG_CONFIG_MIN_VERSION
=0.9.0
13056 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13057 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
13058 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
13060 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
13061 echo "$as_me:$LINENO: result: yes" >&5
13062 echo "${ECHO_T}yes" >&6
13065 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
13066 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
13067 LIBART_CFLAGS
=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
13068 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
13069 echo "${ECHO_T}$LIBART_CFLAGS" >&6
13071 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
13072 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
13073 LIBART_LIBS
=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
13074 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
13075 echo "${ECHO_T}$LIBART_LIBS" >&6
13079 ## If we have a custom action on failure, don't print errors, but
13080 ## do set a variable so people can do so.
13081 LIBART_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
13082 echo $LIBART_PKG_ERRORS
13088 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13089 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13093 if test $succeeded = yes; then
13096 { { 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
13097 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;}
13098 { (exit 1); exit 1; }; }
13104 # We require the XTest Extension to support java.awt.Robot.
13105 echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
13106 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
13107 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
13108 echo $ECHO_N "(cached) $ECHO_C" >&6
13110 ac_check_lib_save_LIBS
=$LIBS
13111 LIBS
="-lXtst ${X_LIBS} $LIBS"
13112 if test x
$gcc_no_link = xyes
; then
13113 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13114 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13115 { (exit 1); exit 1; }; }
13117 cat >conftest.
$ac_ext <<_ACEOF
13120 cat confdefs.h
>>conftest.
$ac_ext
13121 cat >>conftest.
$ac_ext <<_ACEOF
13122 /* end confdefs.h. */
13124 /* Override any gcc2 internal prototype to avoid an error. */
13128 /* We use char because int might match the return type of a gcc2
13129 builtin and then its argument prototype would still apply. */
13130 char XTestQueryExtension ();
13134 XTestQueryExtension ();
13139 rm -f conftest.
$ac_objext conftest
$ac_exeext
13140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13141 (eval $ac_link) 2>conftest.er1
13143 grep -v '^ *+' conftest.er1
>conftest.err
13145 cat conftest.err
>&5
13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); } &&
13148 { ac_try
='test -z "$ac_c_werror_flag"
13149 || test ! -s conftest.err'
13150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13151 (eval $ac_try) 2>&5
13153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); }; } &&
13155 { ac_try
='test -s conftest$ac_exeext'
13156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13157 (eval $ac_try) 2>&5
13159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160 (exit $ac_status); }; }; then
13161 ac_cv_lib_Xtst_XTestQueryExtension
=yes
13163 echo "$as_me: failed program was:" >&5
13164 sed 's/^/| /' conftest.
$ac_ext >&5
13166 ac_cv_lib_Xtst_XTestQueryExtension
=no
13168 rm -f conftest.err conftest.
$ac_objext \
13169 conftest
$ac_exeext conftest.
$ac_ext
13170 LIBS
=$ac_check_lib_save_LIBS
13172 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
13173 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
13174 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
13177 { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
13178 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
13179 { (exit 1); exit 1; }; }
13184 # On Solaris, and maybe other architectures, the Boehm collector
13186 if test "$GC" = boehm
; then
13187 echo "$as_me:$LINENO: checking for main in -ldl" >&5
13188 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
13189 if test "${ac_cv_lib_dl_main+set}" = set; then
13190 echo $ECHO_N "(cached) $ECHO_C" >&6
13192 ac_check_lib_save_LIBS
=$LIBS
13194 if test x
$gcc_no_link = xyes
; then
13195 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13196 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13197 { (exit 1); exit 1; }; }
13199 cat >conftest.
$ac_ext <<_ACEOF
13202 cat confdefs.h
>>conftest.
$ac_ext
13203 cat >>conftest.
$ac_ext <<_ACEOF
13204 /* end confdefs.h. */
13215 rm -f conftest.
$ac_objext conftest
$ac_exeext
13216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13217 (eval $ac_link) 2>conftest.er1
13219 grep -v '^ *+' conftest.er1
>conftest.err
13221 cat conftest.err
>&5
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); } &&
13224 { ac_try
='test -z "$ac_c_werror_flag"
13225 || test ! -s conftest.err'
13226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13227 (eval $ac_try) 2>&5
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); }; } &&
13231 { ac_try
='test -s conftest$ac_exeext'
13232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13233 (eval $ac_try) 2>&5
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); }; }; then
13237 ac_cv_lib_dl_main
=yes
13239 echo "$as_me: failed program was:" >&5
13240 sed 's/^/| /' conftest.
$ac_ext >&5
13242 ac_cv_lib_dl_main
=no
13244 rm -f conftest.err conftest.
$ac_objext \
13245 conftest
$ac_exeext conftest.
$ac_ext
13246 LIBS
=$ac_check_lib_save_LIBS
13248 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
13249 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
13250 if test $ac_cv_lib_dl_main = yes; then
13251 SYSTEMSPEC
="$SYSTEMSPEC -ldl"
13258 if test "$supply_backtrace" = yes; then
13259 SUPPLY_BACKTRACE_TRUE
=
13260 SUPPLY_BACKTRACE_FALSE
='#'
13262 SUPPLY_BACKTRACE_TRUE
='#'
13263 SUPPLY_BACKTRACE_FALSE
=
13267 if test -z "${with_multisubdir}"; then
13270 builddotdot
=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
13275 # Which gcj do we use?
13277 built_gcc_dir
="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
13278 if test -n "${with_cross_host}"; then
13279 # We are being configured with a cross compiler. We can't
13280 # use ac_exeext, because that is for the target platform.
13283 case "${with_cross_host}" in
13284 *mingw
* |
*cygwin
*)
13285 cross_host_exeext
=.exe
13288 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
13289 if test x
"$build_noncanonical" = x
"$with_cross_host"; then
13290 # Ordinary cross (host!=target and host=build)
13293 # Canadian cross (host!=target and host!=build)
13300 # We are being configured with a native or crossed-native compiler
13301 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
13302 if test x
"$build" = x
"$host"; then
13303 # True native build (host=target and host=build)
13306 # Crossed-native build (host=target and host!=build)
13313 case "${which_gcj}" in
13315 GCJ
="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
13316 GCJH
='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
13317 ZIP
='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/fastjar/fastjar'
13320 if test "x${with_newlib}" = "xyes"; then
13321 # FIXME (comment): Why is this needed?
13322 GCC_UNWIND_INCLUDE
=
13323 GCJ
="${target_noncanonical}-gcj"
13325 GCJ
="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
13327 ZIP
='$(target_noncanonical)-fastjar'
13328 GCJH
='$(target_noncanonical)-gcjh'
13331 GCJ
="gcj -B`${PWDCMD-pwd}`/"
13332 ## In this case, gcj is found outside the build tree. However, zip is
13333 ## found in the build tree.
13334 ZIP
='$(top_builddir)/$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
13342 # Create it, so that compile/link tests don't fail
13343 test -f libgcj.spec ||
touch libgcj.spec
13345 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
13347 *-mingw32) CLASSPATH_SEPARATOR
=';' ;;
13348 *) CLASSPATH_SEPARATOR
=':' ;;
13352 # We must search the source tree for java.lang, since we still don't
13353 # have libgcj.jar nor java/lang/*.class
13354 GCJ_SAVE_CPPFLAGS
=$CPPFLAGS
13355 CPPFLAGS
="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
13357 # Since some classes depend on this one, we need its source available
13358 # before we can do any GCJ compilation test :-(
13359 if test ! -f gnu
/classpath
/Configuration.java
; then
13360 test -d gnu || mkdir gnu
13361 test -d gnu
/classpath || mkdir gnu
/classpath
13362 sed -e 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
13363 -e 's,@TOOLKIT@,$TOOLKIT,' \
13364 < $srcdir/gnu
/classpath
/Configuration.java.
in \
13365 > gnu
/classpath
/Configuration.java
13366 # We do not want to redirect the output of the grep below to /dev/null,
13367 # but we add /dev/null to the input list so that grep will print the
13368 # filename of Configuration.java in case it finds any matches.
13369 if grep @ gnu
/classpath
/Configuration.java
/dev
/null
; then
13370 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
13371 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
13372 { (exit 1); exit 1; }; }
13376 if test -n "$ac_tool_prefix"; then
13377 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
13378 set dummy
${ac_tool_prefix}gcj
; ac_word
=$2
13379 echo "$as_me:$LINENO: checking for $ac_word" >&5
13380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13381 if test "${ac_cv_prog_GCJ+set}" = set; then
13382 echo $ECHO_N "(cached) $ECHO_C" >&6
13384 if test -n "$GCJ"; then
13385 ac_cv_prog_GCJ
="$GCJ" # Let the user override the test.
13387 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13388 for as_dir
in $PATH
13391 test -z "$as_dir" && as_dir
=.
13392 for ac_exec_ext
in '' $ac_executable_extensions; do
13393 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13394 ac_cv_prog_GCJ
="${ac_tool_prefix}gcj"
13395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13403 GCJ
=$ac_cv_prog_GCJ
13404 if test -n "$GCJ"; then
13405 echo "$as_me:$LINENO: result: $GCJ" >&5
13406 echo "${ECHO_T}$GCJ" >&6
13408 echo "$as_me:$LINENO: result: no" >&5
13409 echo "${ECHO_T}no" >&6
13413 if test -z "$ac_cv_prog_GCJ"; then
13415 # Extract the first word of "gcj", so it can be a program name with args.
13416 set dummy gcj
; ac_word
=$2
13417 echo "$as_me:$LINENO: checking for $ac_word" >&5
13418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13419 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
13420 echo $ECHO_N "(cached) $ECHO_C" >&6
13422 if test -n "$ac_ct_GCJ"; then
13423 ac_cv_prog_ac_ct_GCJ
="$ac_ct_GCJ" # Let the user override the test.
13425 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13426 for as_dir
in $PATH
13429 test -z "$as_dir" && as_dir
=.
13430 for ac_exec_ext
in '' $ac_executable_extensions; do
13431 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13432 ac_cv_prog_ac_ct_GCJ
="gcj"
13433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13439 test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ
="no"
13442 ac_ct_GCJ
=$ac_cv_prog_ac_ct_GCJ
13443 if test -n "$ac_ct_GCJ"; then
13444 echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
13445 echo "${ECHO_T}$ac_ct_GCJ" >&6
13447 echo "$as_me:$LINENO: result: no" >&5
13448 echo "${ECHO_T}no" >&6
13453 GCJ
="$ac_cv_prog_GCJ"
13456 test "x${GCJFLAGS+set}" = xset || GCJFLAGS
="-g -O2"
13461 CPPFLAGS
=$GCJ_SAVE_CPPFLAGS
13463 echo "$as_me:$LINENO: checking size of void *" >&5
13464 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13465 if test "${ac_cv_sizeof_void_p+set}" = set; then
13466 echo $ECHO_N "(cached) $ECHO_C" >&6
13468 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
13469 cat >conftest.
$ac_ext <<_ACEOF
13472 cat confdefs.h
>>conftest.
$ac_ext
13473 cat >>conftest.
$ac_ext <<_ACEOF
13474 /* end confdefs.h. */
13475 #include "confdefs.h"
13476 #include <sys/types.h>
13482 switch (0) case 0: case (sizeof (void *) == $ac_size):;
13487 rm -f conftest.
$ac_objext
13488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13489 (eval $ac_compile) 2>conftest.er1
13491 grep -v '^ *+' conftest.er1
>conftest.err
13493 cat conftest.err
>&5
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); } &&
13496 { ac_try
='test -z "$ac_c_werror_flag"
13497 || test ! -s conftest.err'
13498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13499 (eval $ac_try) 2>&5
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); }; } &&
13503 { ac_try
='test -s conftest.$ac_objext'
13504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13505 (eval $ac_try) 2>&5
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); }; }; then
13509 ac_cv_sizeof_void_p
=$ac_size
13511 echo "$as_me: failed program was:" >&5
13512 sed 's/^/| /' conftest.
$ac_ext >&5
13515 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13516 if test x
$ac_cv_sizeof_void_p != x
; then break; fi
13521 if test x
$ac_cv_sizeof_void_p = x
; then
13522 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
13523 echo "$as_me: error: cannot determine a size for void *" >&2;}
13524 { (exit 1); exit 1; }; }
13526 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13527 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13529 cat >>confdefs.h
<<_ACEOF
13530 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13535 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13536 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
13537 if test "${ac_cv_c_bigendian+set}" = set; then
13538 echo $ECHO_N "(cached) $ECHO_C" >&6
13540 ac_cv_c_bigendian
=unknown
13541 # See if sys/param.h defines the BYTE_ORDER macro.
13542 cat >conftest.
$ac_ext <<_ACEOF
13545 cat confdefs.h
>>conftest.
$ac_ext
13546 cat >>conftest.
$ac_ext <<_ACEOF
13547 /* end confdefs.h. */
13548 #include <sys/types.h>
13549 #include <sys/param.h>
13554 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13555 bogus endian macros
13561 rm -f conftest.
$ac_objext
13562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13563 (eval $ac_compile) 2>conftest.er1
13565 grep -v '^ *+' conftest.er1
>conftest.err
13567 cat conftest.err
>&5
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); } &&
13570 { ac_try
='test -z "$ac_c_werror_flag"
13571 || test ! -s conftest.err'
13572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13573 (eval $ac_try) 2>&5
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); }; } &&
13577 { ac_try
='test -s conftest.$ac_objext'
13578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13579 (eval $ac_try) 2>&5
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); }; }; then
13583 # It does; now see whether it defined to BIG_ENDIAN or not.
13584 cat >conftest.
$ac_ext <<_ACEOF
13587 cat confdefs.h
>>conftest.
$ac_ext
13588 cat >>conftest.
$ac_ext <<_ACEOF
13589 /* end confdefs.h. */
13590 #include <sys/types.h>
13591 #include <sys/param.h>
13596 #if BYTE_ORDER != BIG_ENDIAN
13603 rm -f conftest.
$ac_objext
13604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13605 (eval $ac_compile) 2>conftest.er1
13607 grep -v '^ *+' conftest.er1
>conftest.err
13609 cat conftest.err
>&5
13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); } &&
13612 { ac_try
='test -z "$ac_c_werror_flag"
13613 || test ! -s conftest.err'
13614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13615 (eval $ac_try) 2>&5
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); }; } &&
13619 { ac_try
='test -s conftest.$ac_objext'
13620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13621 (eval $ac_try) 2>&5
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); }; }; then
13625 ac_cv_c_bigendian
=yes
13627 echo "$as_me: failed program was:" >&5
13628 sed 's/^/| /' conftest.
$ac_ext >&5
13630 ac_cv_c_bigendian
=no
13632 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13634 echo "$as_me: failed program was:" >&5
13635 sed 's/^/| /' conftest.
$ac_ext >&5
13638 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13639 if test $ac_cv_c_bigendian = unknown
; then
13640 if test "$cross_compiling" = yes; then
13641 echo $ac_n "cross-compiling... " 2>&6
13643 cat >conftest.
$ac_ext <<_ACEOF
13646 cat confdefs.h
>>conftest.
$ac_ext
13647 cat >>conftest.
$ac_ext <<_ACEOF
13648 /* end confdefs.h. */
13650 /* Are we little or big endian? From Harbison&Steele. */
13654 char c[sizeof (long)];
13657 exit (u.c[sizeof (long) - 1] == 1);
13660 rm -f conftest
$ac_exeext
13661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13662 (eval $ac_link) 2>&5
13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13667 (eval $ac_try) 2>&5
13669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); }; }; then
13671 ac_cv_c_bigendian
=no
13673 echo "$as_me: program exited with status $ac_status" >&5
13674 echo "$as_me: failed program was:" >&5
13675 sed 's/^/| /' conftest.
$ac_ext >&5
13677 ( exit $ac_status )
13678 ac_cv_c_bigendian
=yes
13680 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13684 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13685 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
13686 if test $ac_cv_c_bigendian = unknown
; then
13687 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
13688 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
13690 cat >conftest.c
<<EOF
13691 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13692 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13693 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
13694 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13695 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13696 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
13697 int main() { _ascii (); _ebcdic (); return 0; }
13699 if test -f conftest.c
; then
13700 if ${CC-cc} ${CFLAGS} -c conftest.c
-o conftest.o
&& test -f conftest.o
; then
13701 if test `grep -l BIGenDianSyS conftest.o` ; then
13702 echo $ac_n ' big endian probe OK, ' 1>&6
13703 ac_cv_c_bigendian
=yes
13705 if test `grep -l LiTTleEnDian conftest.o` ; then
13706 echo $ac_n ' little endian probe OK, ' 1>&6
13707 if test $ac_cv_c_bigendian = yes ; then
13708 ac_cv_c_bigendian
=unknown
;
13710 ac_cv_c_bigendian
=no
13713 echo $ac_n 'guessing bigendian ... ' >&6
13716 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13717 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
13719 if test $ac_cv_c_bigendian = yes; then
13721 cat >>confdefs.h
<<\_ACEOF
13722 #define WORDS_BIGENDIAN 1
13726 cat >>confdefs.h
<<\_ACEOF
13727 #define HOST_WORDS_BIG_ENDIAN 1
13735 cat >>confdefs.h
<<_ACEOF
13736 #define BYTEORDER $BYTEORDER
13739 if test $ac_cv_c_bigendian = unknown
; then
13740 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
13741 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
13742 { (exit 1); exit 1; }; }
13750 if test -z "$ZLIBSPEC"; then
13751 # Use zlib from the GCC tree.
13752 ZINCS
='-I$(top_srcdir)/../zlib'
13753 ZLIBS
=..
/zlib
/libzgcj_convenience.la
13756 SYS_ZLIBS
="$ZLIBSPEC"
13768 if test "$NATIVE" = yes; then
13778 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
13779 NEEDS_DATA_START_TRUE
=
13780 NEEDS_DATA_START_FALSE
='#'
13782 NEEDS_DATA_START_TRUE
='#'
13783 NEEDS_DATA_START_FALSE
=
13788 # Process the option "--enable-version-specific-runtime-libs"
13789 # Calculate toolexeclibdir
13790 case ${version_specific_libs} in
13792 # Need the gcc compiler version to know where to install libraries
13793 # and header files if --enable-version-specific-runtime-libs option
13795 includedir
='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
13796 toolexecdir
='$(libdir)/gcc/$(target_noncanonical)'
13797 toolexecmainlibdir
='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
13798 toolexeclibdir
=$toolexecmainlibdir
13801 if test -n "$with_cross_host" &&
13802 test x
"$with_cross_host" != x
"no"; then
13803 # Install a library built with a cross compiler in tooldir, not libdir.
13804 toolexecdir
='$(exec_prefix)/$(target_noncanonical)'
13805 toolexecmainlibdir
='$(toolexecdir)/lib'
13807 toolexecdir
='$(libdir)/gcc-lib/$(target_noncanonical)'
13808 toolexecmainlibdir
='$(libdir)'
13810 multi_os_directory
=`$CC -print-multi-os-directory`
13811 case $multi_os_directory in
13812 .
) toolexeclibdir
=$toolexecmainlibdir ;; # Avoid trailing /.
13813 *) toolexeclibdir
=$toolexecmainlibdir/$multi_os_directory ;;
13821 # Determine gcj version number.
13822 gcjversion
=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
13823 GCJVERSION
=$gcjversion
13826 cat >>confdefs.h
<<_ACEOF
13827 #define GCJVERSION "$GCJVERSION"
13832 cat >>confdefs.h
<<\_ACEOF
13833 #define JV_VERSION "1.4.2"
13837 cat >>confdefs.h
<<\_ACEOF
13838 #define JV_API_VERSION "1.4"
13843 case "${with_gxx_include_dir}" in
13845 { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
13846 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
13847 { (exit 1); exit 1; }; }
13850 case "${enable_version_specific_runtime_libs}" in
13851 yes) gxx_include_dir
='$(libsubdir)/include/c++' ;;
13853 libstdcxx_incdir
='c++/$(gcc_version)'
13854 gxx_include_dir
='$(prefix)/include/$(libstdcxx_incdir)' ;;
13856 *) gxx_include_dir
=${with_gxx_include_dir} ;;
13862 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
13863 # On that system, sys/ioctl.h will not include sys/filio.h unless
13864 # BSD_COMP is defined; just including sys/filio.h is simpler.
13865 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
13866 # for now. If you change this, you also must update natFile.cc.
13887 for ac_header
in unistd.h bstring.h sys
/time.h sys
/types.h fcntl.h \
13888 sys
/ioctl.h sys
/filio.h sys
/stat.h sys
/select.h \
13889 sys
/socket.h netinet
/in.h arpa
/inet.h netdb.h net
/if.h \
13890 pwd.h sys
/config.h stdint.h langinfo.h locale.h \
13893 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13895 echo "$as_me:$LINENO: checking for $ac_header" >&5
13896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13897 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13898 echo $ECHO_N "(cached) $ECHO_C" >&6
13900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13901 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13903 # Is the header compilable?
13904 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13905 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13906 cat >conftest.
$ac_ext <<_ACEOF
13909 cat confdefs.h
>>conftest.
$ac_ext
13910 cat >>conftest.
$ac_ext <<_ACEOF
13911 /* end confdefs.h. */
13912 $ac_includes_default
13913 #include <$ac_header>
13915 rm -f conftest.
$ac_objext
13916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13917 (eval $ac_compile) 2>conftest.er1
13919 grep -v '^ *+' conftest.er1
>conftest.err
13921 cat conftest.err
>&5
13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); } &&
13924 { ac_try
='test -z "$ac_c_werror_flag"
13925 || test ! -s conftest.err'
13926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13927 (eval $ac_try) 2>&5
13929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13930 (exit $ac_status); }; } &&
13931 { ac_try
='test -s conftest.$ac_objext'
13932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13933 (eval $ac_try) 2>&5
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); }; }; then
13937 ac_header_compiler
=yes
13939 echo "$as_me: failed program was:" >&5
13940 sed 's/^/| /' conftest.
$ac_ext >&5
13942 ac_header_compiler
=no
13944 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13945 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13946 echo "${ECHO_T}$ac_header_compiler" >&6
13948 # Is the header present?
13949 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13950 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13951 cat >conftest.
$ac_ext <<_ACEOF
13954 cat confdefs.h
>>conftest.
$ac_ext
13955 cat >>conftest.
$ac_ext <<_ACEOF
13956 /* end confdefs.h. */
13957 #include <$ac_header>
13959 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13960 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13962 grep -v '^ *+' conftest.er1
>conftest.err
13964 cat conftest.err
>&5
13965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966 (exit $ac_status); } >/dev
/null
; then
13967 if test -s conftest.err
; then
13968 ac_cpp_err
=$ac_c_preproc_warn_flag
13969 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13976 if test -z "$ac_cpp_err"; then
13977 ac_header_preproc
=yes
13979 echo "$as_me: failed program was:" >&5
13980 sed 's/^/| /' conftest.
$ac_ext >&5
13982 ac_header_preproc
=no
13984 rm -f conftest.err conftest.
$ac_ext
13985 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13986 echo "${ECHO_T}$ac_header_preproc" >&6
13988 # So? What about this header?
13989 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13991 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13992 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13994 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13995 ac_header_preproc
=yes
13998 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13999 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14000 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14001 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14002 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14003 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14004 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14005 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14006 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14007 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14008 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14009 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14012 ## ---------------------------------- ##
14013 ## Report this to the libjava lists. ##
14014 ## ---------------------------------- ##
14017 sed "s/^/$as_me: WARNING: /" >&2
14020 echo "$as_me:$LINENO: checking for $ac_header" >&5
14021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14022 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14023 echo $ECHO_N "(cached) $ECHO_C" >&6
14025 eval "$as_ac_Header=\$ac_header_preproc"
14027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14028 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14032 cat >>confdefs.h
<<_ACEOF
14033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14041 for ac_header
in inttypes.h
14043 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14045 echo "$as_me:$LINENO: checking for $ac_header" >&5
14046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14048 echo $ECHO_N "(cached) $ECHO_C" >&6
14050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14053 # Is the header compilable?
14054 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14055 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14056 cat >conftest.
$ac_ext <<_ACEOF
14059 cat confdefs.h
>>conftest.
$ac_ext
14060 cat >>conftest.
$ac_ext <<_ACEOF
14061 /* end confdefs.h. */
14062 $ac_includes_default
14063 #include <$ac_header>
14065 rm -f conftest.
$ac_objext
14066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14067 (eval $ac_compile) 2>conftest.er1
14069 grep -v '^ *+' conftest.er1
>conftest.err
14071 cat conftest.err
>&5
14072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14073 (exit $ac_status); } &&
14074 { ac_try
='test -z "$ac_c_werror_flag"
14075 || test ! -s conftest.err'
14076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14077 (eval $ac_try) 2>&5
14079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080 (exit $ac_status); }; } &&
14081 { ac_try
='test -s conftest.$ac_objext'
14082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14083 (eval $ac_try) 2>&5
14085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086 (exit $ac_status); }; }; then
14087 ac_header_compiler
=yes
14089 echo "$as_me: failed program was:" >&5
14090 sed 's/^/| /' conftest.
$ac_ext >&5
14092 ac_header_compiler
=no
14094 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14095 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14096 echo "${ECHO_T}$ac_header_compiler" >&6
14098 # Is the header present?
14099 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14100 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14101 cat >conftest.
$ac_ext <<_ACEOF
14104 cat confdefs.h
>>conftest.
$ac_ext
14105 cat >>conftest.
$ac_ext <<_ACEOF
14106 /* end confdefs.h. */
14107 #include <$ac_header>
14109 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14110 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14112 grep -v '^ *+' conftest.er1
>conftest.err
14114 cat conftest.err
>&5
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); } >/dev
/null
; then
14117 if test -s conftest.err
; then
14118 ac_cpp_err
=$ac_c_preproc_warn_flag
14119 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14126 if test -z "$ac_cpp_err"; then
14127 ac_header_preproc
=yes
14129 echo "$as_me: failed program was:" >&5
14130 sed 's/^/| /' conftest.
$ac_ext >&5
14132 ac_header_preproc
=no
14134 rm -f conftest.err conftest.
$ac_ext
14135 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14136 echo "${ECHO_T}$ac_header_preproc" >&6
14138 # So? What about this header?
14139 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14141 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14142 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14144 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14145 ac_header_preproc
=yes
14148 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14149 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14150 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14151 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14152 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14153 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14154 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14155 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14157 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14158 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14159 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14162 ## ---------------------------------- ##
14163 ## Report this to the libjava lists. ##
14164 ## ---------------------------------- ##
14167 sed "s/^/$as_me: WARNING: /" >&2
14170 echo "$as_me:$LINENO: checking for $ac_header" >&5
14171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14173 echo $ECHO_N "(cached) $ECHO_C" >&6
14175 eval "$as_ac_Header=\$ac_header_preproc"
14177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14178 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14181 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14182 cat >>confdefs.h
<<_ACEOF
14183 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14187 cat >>confdefs.h
<<\_ACEOF
14188 #define HAVE_INTTYPES_H 1
14192 cat >>confdefs.h
<<\_ACEOF
14193 #define JV_HAVE_INTTYPES_H 1
14201 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14202 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
14203 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14204 echo $ECHO_N "(cached) $ECHO_C" >&6
14206 cat >conftest.
$ac_ext <<_ACEOF
14209 cat confdefs.h
>>conftest.
$ac_ext
14210 cat >>conftest.
$ac_ext <<_ACEOF
14211 /* end confdefs.h. */
14212 #include <sys/types.h>
14213 #include <sys/wait.h>
14214 #ifndef WEXITSTATUS
14215 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
14218 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14226 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14231 rm -f conftest.
$ac_objext
14232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14233 (eval $ac_compile) 2>conftest.er1
14235 grep -v '^ *+' conftest.er1
>conftest.err
14237 cat conftest.err
>&5
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); } &&
14240 { ac_try
='test -z "$ac_c_werror_flag"
14241 || test ! -s conftest.err'
14242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14243 (eval $ac_try) 2>&5
14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); }; } &&
14247 { ac_try
='test -s conftest.$ac_objext'
14248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14249 (eval $ac_try) 2>&5
14251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); }; }; then
14253 ac_cv_header_sys_wait_h
=yes
14255 echo "$as_me: failed program was:" >&5
14256 sed 's/^/| /' conftest.
$ac_ext >&5
14258 ac_cv_header_sys_wait_h
=no
14260 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14262 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14263 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
14264 if test $ac_cv_header_sys_wait_h = yes; then
14266 cat >>confdefs.h
<<\_ACEOF
14267 #define HAVE_SYS_WAIT_H 1
14273 echo "$as_me:$LINENO: checking for ssize_t" >&5
14274 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14275 if test "${ac_cv_type_ssize_t+set}" = set; then
14276 echo $ECHO_N "(cached) $ECHO_C" >&6
14278 cat >conftest.
$ac_ext <<_ACEOF
14281 cat confdefs.h
>>conftest.
$ac_ext
14282 cat >>conftest.
$ac_ext <<_ACEOF
14283 /* end confdefs.h. */
14284 $ac_includes_default
14290 if (sizeof (ssize_t))
14296 rm -f conftest.
$ac_objext
14297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14298 (eval $ac_compile) 2>conftest.er1
14300 grep -v '^ *+' conftest.er1
>conftest.err
14302 cat conftest.err
>&5
14303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304 (exit $ac_status); } &&
14305 { ac_try
='test -z "$ac_c_werror_flag"
14306 || test ! -s conftest.err'
14307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14308 (eval $ac_try) 2>&5
14310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311 (exit $ac_status); }; } &&
14312 { ac_try
='test -s conftest.$ac_objext'
14313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14314 (eval $ac_try) 2>&5
14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 (exit $ac_status); }; }; then
14318 ac_cv_type_ssize_t
=yes
14320 echo "$as_me: failed program was:" >&5
14321 sed 's/^/| /' conftest.
$ac_ext >&5
14323 ac_cv_type_ssize_t
=no
14325 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14327 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14328 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14329 if test $ac_cv_type_ssize_t = yes; then
14333 cat >>confdefs.h
<<_ACEOF
14334 #define ssize_t int
14340 echo "$as_me:$LINENO: checking for in_addr_t" >&5
14341 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
14342 cat >conftest.
$ac_ext <<_ACEOF
14345 cat confdefs.h
>>conftest.
$ac_ext
14346 cat >>conftest.
$ac_ext <<_ACEOF
14347 /* end confdefs.h. */
14348 #include <sys/types.h>
14350 #include <stdlib.h>
14351 #include <stddef.h>
14353 #if HAVE_NETINET_IN_H
14354 #include <netinet/in.h>
14364 rm -f conftest.
$ac_objext
14365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14366 (eval $ac_compile) 2>conftest.er1
14368 grep -v '^ *+' conftest.er1
>conftest.err
14370 cat conftest.err
>&5
14371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372 (exit $ac_status); } &&
14373 { ac_try
='test -z "$ac_c_werror_flag"
14374 || test ! -s conftest.err'
14375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14376 (eval $ac_try) 2>&5
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); }; } &&
14380 { ac_try
='test -s conftest.$ac_objext'
14381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14382 (eval $ac_try) 2>&5
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); }; }; then
14387 cat >>confdefs.h
<<\_ACEOF
14388 #define HAVE_IN_ADDR_T 1
14391 echo "$as_me:$LINENO: result: yes" >&5
14392 echo "${ECHO_T}yes" >&6
14394 echo "$as_me: failed program was:" >&5
14395 sed 's/^/| /' conftest.
$ac_ext >&5
14397 echo "$as_me:$LINENO: result: no" >&5
14398 echo "${ECHO_T}no" >&6
14400 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14402 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
14403 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
14404 cat >conftest.
$ac_ext <<_ACEOF
14407 cat confdefs.h
>>conftest.
$ac_ext
14408 cat >>conftest.
$ac_ext <<_ACEOF
14409 /* end confdefs.h. */
14410 #include <netinet/in.h>
14414 struct ip_mreq mreq;
14419 rm -f conftest.
$ac_objext
14420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14421 (eval $ac_compile) 2>conftest.er1
14423 grep -v '^ *+' conftest.er1
>conftest.err
14425 cat conftest.err
>&5
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); } &&
14428 { ac_try
='test -z "$ac_c_werror_flag"
14429 || test ! -s conftest.err'
14430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14431 (eval $ac_try) 2>&5
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); }; } &&
14435 { ac_try
='test -s conftest.$ac_objext'
14436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14437 (eval $ac_try) 2>&5
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); }; }; then
14442 cat >>confdefs.h
<<\_ACEOF
14443 #define HAVE_STRUCT_IP_MREQ 1
14446 echo "$as_me:$LINENO: result: yes" >&5
14447 echo "${ECHO_T}yes" >&6
14449 echo "$as_me: failed program was:" >&5
14450 sed 's/^/| /' conftest.
$ac_ext >&5
14452 echo "$as_me:$LINENO: result: no" >&5
14453 echo "${ECHO_T}no" >&6
14455 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14457 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
14458 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
14459 cat >conftest.
$ac_ext <<_ACEOF
14462 cat confdefs.h
>>conftest.
$ac_ext
14463 cat >>conftest.
$ac_ext <<_ACEOF
14464 /* end confdefs.h. */
14465 #include <netinet/in.h>
14469 struct ipv6_mreq mreq6;
14474 rm -f conftest.
$ac_objext
14475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14476 (eval $ac_compile) 2>conftest.er1
14478 grep -v '^ *+' conftest.er1
>conftest.err
14480 cat conftest.err
>&5
14481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); } &&
14483 { ac_try
='test -z "$ac_c_werror_flag"
14484 || test ! -s conftest.err'
14485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14486 (eval $ac_try) 2>&5
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); }; } &&
14490 { ac_try
='test -s conftest.$ac_objext'
14491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14492 (eval $ac_try) 2>&5
14494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 (exit $ac_status); }; }; then
14497 cat >>confdefs.h
<<\_ACEOF
14498 #define HAVE_STRUCT_IPV6_MREQ 1
14501 echo "$as_me:$LINENO: result: yes" >&5
14502 echo "${ECHO_T}yes" >&6
14504 echo "$as_me: failed program was:" >&5
14505 sed 's/^/| /' conftest.
$ac_ext >&5
14507 echo "$as_me:$LINENO: result: no" >&5
14508 echo "${ECHO_T}no" >&6
14510 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14512 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
14513 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
14514 cat >conftest.
$ac_ext <<_ACEOF
14517 cat confdefs.h
>>conftest.
$ac_ext
14518 cat >>conftest.
$ac_ext <<_ACEOF
14519 /* end confdefs.h. */
14520 #include <netinet/in.h>
14524 struct sockaddr_in6 addr6;
14529 rm -f conftest.
$ac_objext
14530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14531 (eval $ac_compile) 2>conftest.er1
14533 grep -v '^ *+' conftest.er1
>conftest.err
14535 cat conftest.err
>&5
14536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537 (exit $ac_status); } &&
14538 { ac_try
='test -z "$ac_c_werror_flag"
14539 || test ! -s conftest.err'
14540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14541 (eval $ac_try) 2>&5
14543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14544 (exit $ac_status); }; } &&
14545 { ac_try
='test -s conftest.$ac_objext'
14546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14547 (eval $ac_try) 2>&5
14549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550 (exit $ac_status); }; }; then
14552 cat >>confdefs.h
<<\_ACEOF
14553 #define HAVE_INET6 1
14556 echo "$as_me:$LINENO: result: yes" >&5
14557 echo "${ECHO_T}yes" >&6
14559 echo "$as_me: failed program was:" >&5
14560 sed 's/^/| /' conftest.
$ac_ext >&5
14562 echo "$as_me:$LINENO: result: no" >&5
14563 echo "${ECHO_T}no" >&6
14565 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14567 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
14568 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
14569 cat >conftest.
$ac_ext <<_ACEOF
14572 cat confdefs.h
>>conftest.
$ac_ext
14573 cat >>conftest.
$ac_ext <<_ACEOF
14574 /* end confdefs.h. */
14575 #define _POSIX_PII_SOCKET
14576 #include <sys/types.h>
14577 #include <sys/socket.h>
14586 rm -f conftest.
$ac_objext
14587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14588 (eval $ac_compile) 2>conftest.er1
14590 grep -v '^ *+' conftest.er1
>conftest.err
14592 cat conftest.err
>&5
14593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14594 (exit $ac_status); } &&
14595 { ac_try
='test -z "$ac_c_werror_flag"
14596 || test ! -s conftest.err'
14597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14598 (eval $ac_try) 2>&5
14600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601 (exit $ac_status); }; } &&
14602 { ac_try
='test -s conftest.$ac_objext'
14603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14604 (eval $ac_try) 2>&5
14606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607 (exit $ac_status); }; }; then
14609 cat >>confdefs.h
<<\_ACEOF
14610 #define HAVE_SOCKLEN_T 1
14613 echo "$as_me:$LINENO: result: yes" >&5
14614 echo "${ECHO_T}yes" >&6
14616 echo "$as_me: failed program was:" >&5
14617 sed 's/^/| /' conftest.
$ac_ext >&5
14619 echo "$as_me:$LINENO: result: no" >&5
14620 echo "${ECHO_T}no" >&6
14622 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14624 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
14625 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
14626 cat >conftest.
$ac_ext <<_ACEOF
14629 cat confdefs.h
>>conftest.
$ac_ext
14630 cat >>conftest.
$ac_ext <<_ACEOF
14631 /* end confdefs.h. */
14636 struct tm tim; tim.tm_gmtoff = 0;
14641 rm -f conftest.
$ac_objext
14642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14643 (eval $ac_compile) 2>conftest.er1
14645 grep -v '^ *+' conftest.er1
>conftest.err
14647 cat conftest.err
>&5
14648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); } &&
14650 { ac_try
='test -z "$ac_c_werror_flag"
14651 || test ! -s conftest.err'
14652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14653 (eval $ac_try) 2>&5
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); }; } &&
14657 { ac_try
='test -s conftest.$ac_objext'
14658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14659 (eval $ac_try) 2>&5
14661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662 (exit $ac_status); }; }; then
14664 cat >>confdefs.h
<<\_ACEOF
14665 #define STRUCT_TM_HAS_GMTOFF 1
14668 echo "$as_me:$LINENO: result: yes" >&5
14669 echo "${ECHO_T}yes" >&6
14671 echo "$as_me: failed program was:" >&5
14672 sed 's/^/| /' conftest.
$ac_ext >&5
14674 echo "$as_me:$LINENO: result: no" >&5
14675 echo "${ECHO_T}no" >&6
14676 echo "$as_me:$LINENO: checking for global timezone variable" >&5
14677 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
14678 cat >conftest.
$ac_ext <<_ACEOF
14681 cat confdefs.h
>>conftest.
$ac_ext
14682 cat >>conftest.
$ac_ext <<_ACEOF
14683 /* end confdefs.h. */
14688 void i(){long z2 = 2*timezone;}
14693 rm -f conftest.
$ac_objext
14694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14695 (eval $ac_compile) 2>conftest.er1
14697 grep -v '^ *+' conftest.er1
>conftest.err
14699 cat conftest.err
>&5
14700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701 (exit $ac_status); } &&
14702 { ac_try
='test -z "$ac_c_werror_flag"
14703 || test ! -s conftest.err'
14704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14705 (eval $ac_try) 2>&5
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); }; } &&
14709 { ac_try
='test -s conftest.$ac_objext'
14710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14711 (eval $ac_try) 2>&5
14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714 (exit $ac_status); }; }; then
14716 cat >>confdefs.h
<<\_ACEOF
14717 #define HAVE_TIMEZONE 1
14720 echo "$as_me:$LINENO: result: yes" >&5
14721 echo "${ECHO_T}yes" >&6
14723 echo "$as_me: failed program was:" >&5
14724 sed 's/^/| /' conftest.
$ac_ext >&5
14726 echo "$as_me:$LINENO: result: no" >&5
14727 echo "${ECHO_T}no" >&6
14728 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
14729 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
14730 cat >conftest.
$ac_ext <<_ACEOF
14733 cat confdefs.h
>>conftest.
$ac_ext
14734 cat >>conftest.
$ac_ext <<_ACEOF
14735 /* end confdefs.h. */
14740 long z2 = _timezone;
14745 rm -f conftest.
$ac_objext
14746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14747 (eval $ac_compile) 2>conftest.er1
14749 grep -v '^ *+' conftest.er1
>conftest.err
14751 cat conftest.err
>&5
14752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753 (exit $ac_status); } &&
14754 { ac_try
='test -z "$ac_c_werror_flag"
14755 || test ! -s conftest.err'
14756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14757 (eval $ac_try) 2>&5
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); }; } &&
14761 { ac_try
='test -s conftest.$ac_objext'
14762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14763 (eval $ac_try) 2>&5
14765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766 (exit $ac_status); }; }; then
14768 cat >>confdefs.h
<<\_ACEOF
14769 #define HAVE_UNDERSCORE_TIMEZONE 1
14772 echo "$as_me:$LINENO: result: yes" >&5
14773 echo "${ECHO_T}yes" >&6
14775 echo "$as_me: failed program was:" >&5
14776 sed 's/^/| /' conftest.
$ac_ext >&5
14778 echo "$as_me:$LINENO: result: no" >&5
14779 echo "${ECHO_T}no" >&6
14781 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14783 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14785 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14787 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14788 # for constant arguments. Useless!
14789 echo "$as_me:$LINENO: checking for working alloca.h" >&5
14790 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14791 if test "${ac_cv_working_alloca_h+set}" = set; then
14792 echo $ECHO_N "(cached) $ECHO_C" >&6
14794 if test x
$gcc_no_link = xyes
; then
14795 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14796 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14797 { (exit 1); exit 1; }; }
14799 cat >conftest.
$ac_ext <<_ACEOF
14802 cat confdefs.h
>>conftest.
$ac_ext
14803 cat >>conftest.
$ac_ext <<_ACEOF
14804 /* end confdefs.h. */
14805 #include <alloca.h>
14809 char *p = (char *) alloca (2 * sizeof (int));
14814 rm -f conftest.
$ac_objext conftest
$ac_exeext
14815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14816 (eval $ac_link) 2>conftest.er1
14818 grep -v '^ *+' conftest.er1
>conftest.err
14820 cat conftest.err
>&5
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); } &&
14823 { ac_try
='test -z "$ac_c_werror_flag"
14824 || test ! -s conftest.err'
14825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14826 (eval $ac_try) 2>&5
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); }; } &&
14830 { ac_try
='test -s conftest$ac_exeext'
14831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14832 (eval $ac_try) 2>&5
14834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835 (exit $ac_status); }; }; then
14836 ac_cv_working_alloca_h
=yes
14838 echo "$as_me: failed program was:" >&5
14839 sed 's/^/| /' conftest.
$ac_ext >&5
14841 ac_cv_working_alloca_h
=no
14843 rm -f conftest.err conftest.
$ac_objext \
14844 conftest
$ac_exeext conftest.
$ac_ext
14846 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14847 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14848 if test $ac_cv_working_alloca_h = yes; then
14850 cat >>confdefs.h
<<\_ACEOF
14851 #define HAVE_ALLOCA_H 1
14856 echo "$as_me:$LINENO: checking for alloca" >&5
14857 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14858 if test "${ac_cv_func_alloca_works+set}" = set; then
14859 echo $ECHO_N "(cached) $ECHO_C" >&6
14861 if test x
$gcc_no_link = xyes
; then
14862 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14863 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14864 { (exit 1); exit 1; }; }
14866 cat >conftest.
$ac_ext <<_ACEOF
14869 cat confdefs.h
>>conftest.
$ac_ext
14870 cat >>conftest.
$ac_ext <<_ACEOF
14871 /* end confdefs.h. */
14873 # define alloca __builtin_alloca
14876 # include <malloc.h>
14877 # define alloca _alloca
14880 # include <alloca.h>
14885 # ifndef alloca /* predefined by HP cc +Olibcalls */
14896 char *p = (char *) alloca (1);
14901 rm -f conftest.
$ac_objext conftest
$ac_exeext
14902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14903 (eval $ac_link) 2>conftest.er1
14905 grep -v '^ *+' conftest.er1
>conftest.err
14907 cat conftest.err
>&5
14908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 (exit $ac_status); } &&
14910 { ac_try
='test -z "$ac_c_werror_flag"
14911 || test ! -s conftest.err'
14912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14913 (eval $ac_try) 2>&5
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); }; } &&
14917 { ac_try
='test -s conftest$ac_exeext'
14918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14919 (eval $ac_try) 2>&5
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); }; }; then
14923 ac_cv_func_alloca_works
=yes
14925 echo "$as_me: failed program was:" >&5
14926 sed 's/^/| /' conftest.
$ac_ext >&5
14928 ac_cv_func_alloca_works
=no
14930 rm -f conftest.err conftest.
$ac_objext \
14931 conftest
$ac_exeext conftest.
$ac_ext
14933 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14934 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14936 if test $ac_cv_func_alloca_works = yes; then
14938 cat >>confdefs.h
<<\_ACEOF
14939 #define HAVE_ALLOCA 1
14943 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14944 # that cause trouble. Some versions do not even contain alloca or
14945 # contain a buggy version. If you still want to use their alloca,
14946 # use ar to extract alloca.o from them instead of compiling alloca.c.
14948 ALLOCA
=alloca.
$ac_objext
14950 cat >>confdefs.h
<<\_ACEOF
14955 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14956 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14957 if test "${ac_cv_os_cray+set}" = set; then
14958 echo $ECHO_N "(cached) $ECHO_C" >&6
14960 cat >conftest.
$ac_ext <<_ACEOF
14963 cat confdefs.h
>>conftest.
$ac_ext
14964 cat >>conftest.
$ac_ext <<_ACEOF
14965 /* end confdefs.h. */
14966 #if defined(CRAY) && ! defined(CRAY2)
14973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14974 $EGREP "webecray" >/dev
/null
2>&1; then
14982 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14983 echo "${ECHO_T}$ac_cv_os_cray" >&6
14984 if test $ac_cv_os_cray = yes; then
14985 for ac_func
in _getb67 GETB67 getb67
; do
14986 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14987 echo "$as_me:$LINENO: checking for $ac_func" >&5
14988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14989 if eval "test \"\${$as_ac_var+set}\" = set"; then
14990 echo $ECHO_N "(cached) $ECHO_C" >&6
14992 if test x
$gcc_no_link = xyes
; then
14993 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14994 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14995 { (exit 1); exit 1; }; }
14997 cat >conftest.
$ac_ext <<_ACEOF
15000 cat confdefs.h
>>conftest.
$ac_ext
15001 cat >>conftest.
$ac_ext <<_ACEOF
15002 /* end confdefs.h. */
15003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15005 #define $ac_func innocuous_$ac_func
15007 /* System header to define __stub macros and hopefully few prototypes,
15008 which can conflict with char $ac_func (); below.
15009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15010 <limits.h> exists even on freestanding compilers. */
15013 # include <limits.h>
15015 # include <assert.h>
15020 /* Override any gcc2 internal prototype to avoid an error. */
15025 /* We use char because int might match the return type of a gcc2
15026 builtin and then its argument prototype would still apply. */
15028 /* The GNU C library defines this for functions which it implements
15029 to always fail with ENOSYS. Some functions are actually named
15030 something starting with __ and the normal name is an alias. */
15031 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15034 char (*f) () = $ac_func;
15043 return f != $ac_func;
15048 rm -f conftest.
$ac_objext conftest
$ac_exeext
15049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15050 (eval $ac_link) 2>conftest.er1
15052 grep -v '^ *+' conftest.er1
>conftest.err
15054 cat conftest.err
>&5
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); } &&
15057 { ac_try
='test -z "$ac_c_werror_flag"
15058 || test ! -s conftest.err'
15059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15060 (eval $ac_try) 2>&5
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); }; } &&
15064 { ac_try
='test -s conftest$ac_exeext'
15065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15066 (eval $ac_try) 2>&5
15068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069 (exit $ac_status); }; }; then
15070 eval "$as_ac_var=yes"
15072 echo "$as_me: failed program was:" >&5
15073 sed 's/^/| /' conftest.
$ac_ext >&5
15075 eval "$as_ac_var=no"
15077 rm -f conftest.err conftest.
$ac_objext \
15078 conftest
$ac_exeext conftest.
$ac_ext
15080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15081 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15082 if test `eval echo '${'$as_ac_var'}'` = yes; then
15084 cat >>confdefs.h
<<_ACEOF
15085 #define CRAY_STACKSEG_END $ac_func
15094 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15095 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15096 if test "${ac_cv_c_stack_direction+set}" = set; then
15097 echo $ECHO_N "(cached) $ECHO_C" >&6
15099 if test "$cross_compiling" = yes; then
15100 ac_cv_c_stack_direction
=0
15102 cat >conftest.
$ac_ext <<_ACEOF
15105 cat confdefs.h
>>conftest.
$ac_ext
15106 cat >>conftest.
$ac_ext <<_ACEOF
15107 /* end confdefs.h. */
15109 find_stack_direction ()
15111 static char *addr = 0;
15116 return find_stack_direction ();
15119 return (&dummy > addr) ? 1 : -1;
15125 exit (find_stack_direction () < 0);
15128 rm -f conftest
$ac_exeext
15129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15130 (eval $ac_link) 2>&5
15132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15135 (eval $ac_try) 2>&5
15137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138 (exit $ac_status); }; }; then
15139 ac_cv_c_stack_direction
=1
15141 echo "$as_me: program exited with status $ac_status" >&5
15142 echo "$as_me: failed program was:" >&5
15143 sed 's/^/| /' conftest.
$ac_ext >&5
15145 ( exit $ac_status )
15146 ac_cv_c_stack_direction
=-1
15148 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15151 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15152 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
15154 cat >>confdefs.h
<<_ACEOF
15155 #define STACK_DIRECTION $ac_cv_c_stack_direction
15161 if test x
$gcc_no_link = xyes
; then
15162 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset
; then
15163 ac_cv_func_mmap_fixed_mapped
=no
15166 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset
; then
15169 for ac_header
in stdlib.h unistd.h
15171 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15173 echo "$as_me:$LINENO: checking for $ac_header" >&5
15174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15176 echo $ECHO_N "(cached) $ECHO_C" >&6
15178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15181 # Is the header compilable?
15182 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15183 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15184 cat >conftest.
$ac_ext <<_ACEOF
15187 cat confdefs.h
>>conftest.
$ac_ext
15188 cat >>conftest.
$ac_ext <<_ACEOF
15189 /* end confdefs.h. */
15190 $ac_includes_default
15191 #include <$ac_header>
15193 rm -f conftest.
$ac_objext
15194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15195 (eval $ac_compile) 2>conftest.er1
15197 grep -v '^ *+' conftest.er1
>conftest.err
15199 cat conftest.err
>&5
15200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201 (exit $ac_status); } &&
15202 { ac_try
='test -z "$ac_c_werror_flag"
15203 || test ! -s conftest.err'
15204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15205 (eval $ac_try) 2>&5
15207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208 (exit $ac_status); }; } &&
15209 { ac_try
='test -s conftest.$ac_objext'
15210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15211 (eval $ac_try) 2>&5
15213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); }; }; then
15215 ac_header_compiler
=yes
15217 echo "$as_me: failed program was:" >&5
15218 sed 's/^/| /' conftest.
$ac_ext >&5
15220 ac_header_compiler
=no
15222 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15223 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15224 echo "${ECHO_T}$ac_header_compiler" >&6
15226 # Is the header present?
15227 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15228 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15229 cat >conftest.
$ac_ext <<_ACEOF
15232 cat confdefs.h
>>conftest.
$ac_ext
15233 cat >>conftest.
$ac_ext <<_ACEOF
15234 /* end confdefs.h. */
15235 #include <$ac_header>
15237 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15238 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15240 grep -v '^ *+' conftest.er1
>conftest.err
15242 cat conftest.err
>&5
15243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); } >/dev
/null
; then
15245 if test -s conftest.err
; then
15246 ac_cpp_err
=$ac_c_preproc_warn_flag
15247 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15254 if test -z "$ac_cpp_err"; then
15255 ac_header_preproc
=yes
15257 echo "$as_me: failed program was:" >&5
15258 sed 's/^/| /' conftest.
$ac_ext >&5
15260 ac_header_preproc
=no
15262 rm -f conftest.err conftest.
$ac_ext
15263 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15264 echo "${ECHO_T}$ac_header_preproc" >&6
15266 # So? What about this header?
15267 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15269 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15270 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15272 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15273 ac_header_preproc
=yes
15276 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15277 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15278 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15279 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15280 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15281 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15282 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15283 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15285 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15286 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15287 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15290 ## ---------------------------------- ##
15291 ## Report this to the libjava lists. ##
15292 ## ---------------------------------- ##
15295 sed "s/^/$as_me: WARNING: /" >&2
15298 echo "$as_me:$LINENO: checking for $ac_header" >&5
15299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15301 echo $ECHO_N "(cached) $ECHO_C" >&6
15303 eval "$as_ac_Header=\$ac_header_preproc"
15305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15306 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15310 cat >>confdefs.h
<<_ACEOF
15311 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15319 for ac_func
in getpagesize
15321 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15322 echo "$as_me:$LINENO: checking for $ac_func" >&5
15323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15324 if eval "test \"\${$as_ac_var+set}\" = set"; then
15325 echo $ECHO_N "(cached) $ECHO_C" >&6
15327 if test x
$gcc_no_link = xyes
; then
15328 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15329 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15330 { (exit 1); exit 1; }; }
15332 cat >conftest.
$ac_ext <<_ACEOF
15335 cat confdefs.h
>>conftest.
$ac_ext
15336 cat >>conftest.
$ac_ext <<_ACEOF
15337 /* end confdefs.h. */
15338 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15339 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15340 #define $ac_func innocuous_$ac_func
15342 /* System header to define __stub macros and hopefully few prototypes,
15343 which can conflict with char $ac_func (); below.
15344 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15345 <limits.h> exists even on freestanding compilers. */
15348 # include <limits.h>
15350 # include <assert.h>
15355 /* Override any gcc2 internal prototype to avoid an error. */
15360 /* We use char because int might match the return type of a gcc2
15361 builtin and then its argument prototype would still apply. */
15363 /* The GNU C library defines this for functions which it implements
15364 to always fail with ENOSYS. Some functions are actually named
15365 something starting with __ and the normal name is an alias. */
15366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15369 char (*f) () = $ac_func;
15378 return f != $ac_func;
15383 rm -f conftest.
$ac_objext conftest
$ac_exeext
15384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15385 (eval $ac_link) 2>conftest.er1
15387 grep -v '^ *+' conftest.er1
>conftest.err
15389 cat conftest.err
>&5
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); } &&
15392 { ac_try
='test -z "$ac_c_werror_flag"
15393 || test ! -s conftest.err'
15394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15395 (eval $ac_try) 2>&5
15397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398 (exit $ac_status); }; } &&
15399 { ac_try
='test -s conftest$ac_exeext'
15400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15401 (eval $ac_try) 2>&5
15403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404 (exit $ac_status); }; }; then
15405 eval "$as_ac_var=yes"
15407 echo "$as_me: failed program was:" >&5
15408 sed 's/^/| /' conftest.
$ac_ext >&5
15410 eval "$as_ac_var=no"
15412 rm -f conftest.err conftest.
$ac_objext \
15413 conftest
$ac_exeext conftest.
$ac_ext
15415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15416 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15417 if test `eval echo '${'$as_ac_var'}'` = yes; then
15418 cat >>confdefs.h
<<_ACEOF
15419 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15425 echo "$as_me:$LINENO: checking for working mmap" >&5
15426 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
15427 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
15428 echo $ECHO_N "(cached) $ECHO_C" >&6
15430 if test "$cross_compiling" = yes; then
15431 ac_cv_func_mmap_fixed_mapped
=no
15433 cat >conftest.
$ac_ext <<_ACEOF
15436 cat confdefs.h
>>conftest.
$ac_ext
15437 cat >>conftest.
$ac_ext <<_ACEOF
15438 /* end confdefs.h. */
15439 $ac_includes_default
15440 /* malloc might have been renamed as rpl_malloc. */
15443 /* Thanks to Mike Haertel and Jim Avera for this test.
15444 Here is a matrix of mmap possibilities:
15445 mmap private not fixed
15446 mmap private fixed at somewhere currently unmapped
15447 mmap private fixed at somewhere already mapped
15448 mmap shared not fixed
15449 mmap shared fixed at somewhere currently unmapped
15450 mmap shared fixed at somewhere already mapped
15451 For private mappings, we should verify that changes cannot be read()
15452 back from the file, nor mmap's back from the file at a different
15453 address. (There have been systems where private was not correctly
15454 implemented like the infamous i386 svr4.0, and systems where the
15455 VM page cache was not coherent with the file system buffer cache
15456 like early versions of FreeBSD and possibly contemporary NetBSD.)
15457 For shared mappings, we should conversely verify that changes get
15458 propagated back to all the places they're supposed to be.
15460 Grep wants private fixed already mapped.
15461 The main things grep needs to know about mmap are:
15462 * does it exist and is it safe to write into the mmap'd area
15463 * how to use it (BSD variants) */
15466 #include <sys/mman.h>
15468 #if !STDC_HEADERS && !HAVE_STDLIB_H
15472 /* This mess was copied from the GNU getpagesize.h. */
15473 #if !HAVE_GETPAGESIZE
15474 /* Assume that all systems that can run configure have sys/param.h. */
15475 # if !HAVE_SYS_PARAM_H
15476 # define HAVE_SYS_PARAM_H 1
15479 # ifdef _SC_PAGESIZE
15480 # define getpagesize() sysconf(_SC_PAGESIZE)
15481 # else /* no _SC_PAGESIZE */
15482 # if HAVE_SYS_PARAM_H
15483 # include <sys/param.h>
15484 # ifdef EXEC_PAGESIZE
15485 # define getpagesize() EXEC_PAGESIZE
15486 # else /* no EXEC_PAGESIZE */
15488 # define getpagesize() NBPG * CLSIZE
15491 # endif /* no CLSIZE */
15492 # else /* no NBPG */
15494 # define getpagesize() NBPC
15495 # else /* no NBPC */
15497 # define getpagesize() PAGESIZE
15498 # endif /* PAGESIZE */
15499 # endif /* no NBPC */
15500 # endif /* no NBPG */
15501 # endif /* no EXEC_PAGESIZE */
15502 # else /* no HAVE_SYS_PARAM_H */
15503 # define getpagesize() 8192 /* punt totally */
15504 # endif /* no HAVE_SYS_PARAM_H */
15505 # endif /* no _SC_PAGESIZE */
15507 #endif /* no HAVE_GETPAGESIZE */
15512 char *data, *data2, *data3;
15516 pagesize = getpagesize ();
15518 /* First, make a file with some known garbage in it. */
15519 data = (char *) malloc (pagesize);
15522 for (i = 0; i < pagesize; ++i)
15523 *(data + i) = rand ();
15525 fd = creat ("conftest.mmap", 0600);
15528 if (write (fd, data, pagesize) != pagesize)
15532 /* Next, try to mmap the file at a fixed address which already has
15533 something else allocated at it. If we can, also make sure that
15534 we see the same garbage. */
15535 fd = open ("conftest.mmap", O_RDWR);
15538 data2 = (char *) malloc (2 * pagesize);
15541 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
15542 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15543 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15545 for (i = 0; i < pagesize; ++i)
15546 if (*(data + i) != *(data2 + i))
15549 /* Finally, make sure that changes to the mapped area do not
15550 percolate back to the file as seen by read(). (This is a bug on
15551 some variants of i386 svr4.0.) */
15552 for (i = 0; i < pagesize; ++i)
15553 *(data2 + i) = *(data2 + i) + 1;
15554 data3 = (char *) malloc (pagesize);
15557 if (read (fd, data3, pagesize) != pagesize)
15559 for (i = 0; i < pagesize; ++i)
15560 if (*(data + i) != *(data3 + i))
15566 rm -f conftest
$ac_exeext
15567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15568 (eval $ac_link) 2>&5
15570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15573 (eval $ac_try) 2>&5
15575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576 (exit $ac_status); }; }; then
15577 ac_cv_func_mmap_fixed_mapped
=yes
15579 echo "$as_me: program exited with status $ac_status" >&5
15580 echo "$as_me: failed program was:" >&5
15581 sed 's/^/| /' conftest.
$ac_ext >&5
15583 ( exit $ac_status )
15584 ac_cv_func_mmap_fixed_mapped
=no
15586 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15589 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
15590 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
15591 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15593 cat >>confdefs.h
<<\_ACEOF
15594 #define HAVE_MMAP 1
15598 rm -f conftest.mmap
15602 for ac_prog
in perl
15604 # Extract the first word of "$ac_prog", so it can be a program name with args.
15605 set dummy
$ac_prog; ac_word
=$2
15606 echo "$as_me:$LINENO: checking for $ac_word" >&5
15607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15608 if test "${ac_cv_prog_PERL+set}" = set; then
15609 echo $ECHO_N "(cached) $ECHO_C" >&6
15611 if test -n "$PERL"; then
15612 ac_cv_prog_PERL
="$PERL" # Let the user override the test.
15614 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15615 for as_dir
in $PATH
15618 test -z "$as_dir" && as_dir
=.
15619 for ac_exec_ext
in '' $ac_executable_extensions; do
15620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15621 ac_cv_prog_PERL
="$ac_prog"
15622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15630 PERL
=$ac_cv_prog_PERL
15631 if test -n "$PERL"; then
15632 echo "$as_me:$LINENO: result: $PERL" >&5
15633 echo "${ECHO_T}$PERL" >&6
15635 echo "$as_me:$LINENO: result: no" >&5
15636 echo "${ECHO_T}no" >&6
15639 test -n "$PERL" && break
15641 test -n "$PERL" || PERL
="false"
15645 SIGNAL_HANDLER_AUX
=
15649 SIGNAL_HANDLER
=include
/i386-signal.h
15651 sparc
*-sun-solaris*)
15652 SIGNAL_HANDLER
=include
/sparc-signal.h
15655 # SYSDEP_SOURCES=sysdep/ia64.c
15656 # test -d sysdep || mkdir sysdep
15659 SIGNAL_HANDLER
=include
/pa-signal.h
15662 SIGNAL_HANDLER
=include
/dwarf2-signal.h
15665 SIGNAL_HANDLER
=include
/powerpc-signal.h
15668 SIGNAL_HANDLER
=include
/dwarf2-signal.h
15671 SIGNAL_HANDLER
=include
/s390-signal.h
15674 SIGNAL_HANDLER
=include
/x86_64-signal.h
15675 SIGNAL_HANDLER_AUX
=include
/i386-signal.h
15678 SIGNAL_HANDLER
=include
/dwarf2-signal.h
15681 SIGNAL_HANDLER
=include
/sh-signal.h
15684 SIGNAL_HANDLER
=include
/win32-signal.h
15687 SIGNAL_HANDLER
=include
/mips-signal.h
15690 SIGNAL_HANDLER
=include
/darwin-signal.h
15693 SIGNAL_HANDLER
=include
/default-signal.h
15697 # If we're using sjlj exceptions, forget what we just learned.
15698 if test "$enable_sjlj_exceptions" = yes; then
15699 SIGNAL_HANDLER
=include
/default-signal.h
15700 SIGNAL_HANDLER_AUX
=
15703 # Define here any compiler flags that you need in order to make backtrace() work.
15706 x86_64
*-*-linux*|i?
86-*)
15707 BACKTRACESPEC
=-fno-omit-frame-pointer
15714 if test -z "$SIGNAL_HANDLER_AUX"; then
15715 SIGNAL_HANDLER_AUX
=$SIGNAL_HANDLER
15718 ac_config_links
="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
15721 if test "${multilib}" = "yes"; then
15722 multilib_arg
="--enable-multilib"
15729 here
=`${PWDCMD-pwd}`
15732 # We get this from the environment.
15735 ac_config_files
="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile external/Makefile external/sax/Makefile external/w3c_dom/Makefile"
15738 ac_config_commands
="$ac_config_commands default"
15741 cat >confcache
<<\_ACEOF
15742 # This file is a shell script that caches the results of configure
15743 # tests run on this system so they can be shared between configure
15744 # scripts and configure runs, see configure's option --config-cache.
15745 # It is not useful on other systems. If it contains results you don't
15746 # want to keep, you may remove or edit it.
15748 # config.status only pays attention to the cache file if you give it
15749 # the --recheck option to rerun configure.
15751 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15752 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15753 # following values.
15757 # The following way of writing the cache mishandles newlines in values,
15758 # but we know of no workaround that is simple, portable, and efficient.
15759 # So, don't put newlines in cache variables' values.
15760 # Ultrix sh set writes to stderr and can't be redirected directly,
15761 # and sets the high bit in the cache file unless we assign to the vars.
15764 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15766 # `set' does not quote correctly, so add quotes (double-quote
15767 # substitution turns \\\\ into \\, and sed turns \\ into \).
15770 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15773 # `set' quotes correctly as required by POSIX, so do not add quotes.
15775 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15782 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15784 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15786 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
15787 if test -w $cache_file; then
15788 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15789 cat confcache
>$cache_file
15791 echo "not updating unwritable cache $cache_file"
15796 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15797 # Let make expand exec_prefix.
15798 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15800 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15801 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15802 # trailing colons and then remove the whole line if VPATH becomes empty
15803 # (actually we leave an empty line to preserve line numbers).
15804 if test "x$srcdir" = x.
; then
15805 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
15806 s/:*\$(srcdir):*/:/;
15807 s/:*\${srcdir}:*/:/;
15809 s/^\([^=]*=[ ]*\):*/\1/;
15815 DEFS
=-DHAVE_CONFIG_H
15819 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15820 # 1. Remove the extension, and $U if already installed.
15821 ac_i
=`echo "$ac_i" |
15822 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15824 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
15825 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
15827 LIBOBJS
=$ac_libobjs
15829 LTLIBOBJS
=$ac_ltlibobjs
15832 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15833 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15834 Usually this means the macro was only invoked conditionally." >&5
15835 echo "$as_me: error: conditional \"AMDEP\" was never defined.
15836 Usually this means the macro was only invoked conditionally." >&2;}
15837 { (exit 1); exit 1; }; }
15839 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15840 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15841 Usually this means the macro was only invoked conditionally." >&5
15842 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15843 Usually this means the macro was only invoked conditionally." >&2;}
15844 { (exit 1); exit 1; }; }
15846 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15847 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
15848 Usually this means the macro was only invoked conditionally." >&5
15849 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
15850 Usually this means the macro was only invoked conditionally." >&2;}
15851 { (exit 1); exit 1; }; }
15853 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15854 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15855 Usually this means the macro was only invoked conditionally." >&5
15856 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
15857 Usually this means the macro was only invoked conditionally." >&2;}
15858 { (exit 1); exit 1; }; }
15860 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
15861 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
15862 Usually this means the macro was only invoked conditionally." >&5
15863 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
15864 Usually this means the macro was only invoked conditionally." >&2;}
15865 { (exit 1); exit 1; }; }
15867 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
15868 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
15869 Usually this means the macro was only invoked conditionally." >&5
15870 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
15871 Usually this means the macro was only invoked conditionally." >&2;}
15872 { (exit 1); exit 1; }; }
15874 if test -z "${ONESTEP_TRUE}" && test -z "${ONESTEP_FALSE}"; then
15875 { { echo "$as_me:$LINENO: error: conditional \"ONESTEP\" was never defined.
15876 Usually this means the macro was only invoked conditionally." >&5
15877 echo "$as_me: error: conditional \"ONESTEP\" was never defined.
15878 Usually this means the macro was only invoked conditionally." >&2;}
15879 { (exit 1); exit 1; }; }
15881 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
15882 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
15883 Usually this means the macro was only invoked conditionally." >&5
15884 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
15885 Usually this means the macro was only invoked conditionally." >&2;}
15886 { (exit 1); exit 1; }; }
15888 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
15889 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
15890 Usually this means the macro was only invoked conditionally." >&5
15891 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
15892 Usually this means the macro was only invoked conditionally." >&2;}
15893 { (exit 1); exit 1; }; }
15895 if test -z "${USING_ECOS_PLATFORM_TRUE}" && test -z "${USING_ECOS_PLATFORM_FALSE}"; then
15896 { { echo "$as_me:$LINENO: error: conditional \"USING_ECOS_PLATFORM\" was never defined.
15897 Usually this means the macro was only invoked conditionally." >&5
15898 echo "$as_me: error: conditional \"USING_ECOS_PLATFORM\" was never defined.
15899 Usually this means the macro was only invoked conditionally." >&2;}
15900 { (exit 1); exit 1; }; }
15902 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
15903 { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
15904 Usually this means the macro was only invoked conditionally." >&5
15905 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
15906 Usually this means the macro was only invoked conditionally." >&2;}
15907 { (exit 1); exit 1; }; }
15909 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
15910 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
15911 Usually this means the macro was only invoked conditionally." >&5
15912 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
15913 Usually this means the macro was only invoked conditionally." >&2;}
15914 { (exit 1); exit 1; }; }
15916 if test -z "${GTK_AWT_TRUE}" && test -z "${GTK_AWT_FALSE}"; then
15917 { { echo "$as_me:$LINENO: error: conditional \"GTK_AWT\" was never defined.
15918 Usually this means the macro was only invoked conditionally." >&5
15919 echo "$as_me: error: conditional \"GTK_AWT\" was never defined.
15920 Usually this means the macro was only invoked conditionally." >&2;}
15921 { (exit 1); exit 1; }; }
15923 if test -z "${GTK_CAIRO_TRUE}" && test -z "${GTK_CAIRO_FALSE}"; then
15924 { { echo "$as_me:$LINENO: error: conditional \"GTK_CAIRO\" was never defined.
15925 Usually this means the macro was only invoked conditionally." >&5
15926 echo "$as_me: error: conditional \"GTK_CAIRO\" was never defined.
15927 Usually this means the macro was only invoked conditionally." >&2;}
15928 { (exit 1); exit 1; }; }
15930 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
15931 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
15932 Usually this means the macro was only invoked conditionally." >&5
15933 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
15934 Usually this means the macro was only invoked conditionally." >&2;}
15935 { (exit 1); exit 1; }; }
15937 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
15938 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
15939 Usually this means the macro was only invoked conditionally." >&5
15940 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
15941 Usually this means the macro was only invoked conditionally." >&2;}
15942 { (exit 1); exit 1; }; }
15944 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
15945 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
15946 Usually this means the macro was only invoked conditionally." >&5
15947 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
15948 Usually this means the macro was only invoked conditionally." >&2;}
15949 { (exit 1); exit 1; }; }
15951 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
15952 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
15953 Usually this means the macro was only invoked conditionally." >&5
15954 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
15955 Usually this means the macro was only invoked conditionally." >&2;}
15956 { (exit 1); exit 1; }; }
15958 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
15959 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
15960 Usually this means the macro was only invoked conditionally." >&5
15961 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
15962 Usually this means the macro was only invoked conditionally." >&2;}
15963 { (exit 1); exit 1; }; }
15965 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
15966 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
15967 Usually this means the macro was only invoked conditionally." >&5
15968 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
15969 Usually this means the macro was only invoked conditionally." >&2;}
15970 { (exit 1); exit 1; }; }
15972 if test -z "${SUPPLY_BACKTRACE_TRUE}" && test -z "${SUPPLY_BACKTRACE_FALSE}"; then
15973 { { echo "$as_me:$LINENO: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
15974 Usually this means the macro was only invoked conditionally." >&5
15975 echo "$as_me: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
15976 Usually this means the macro was only invoked conditionally." >&2;}
15977 { (exit 1); exit 1; }; }
15979 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
15980 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
15981 Usually this means the macro was only invoked conditionally." >&5
15982 echo "$as_me: error: conditional \"NATIVE\" was never defined.
15983 Usually this means the macro was only invoked conditionally." >&2;}
15984 { (exit 1); exit 1; }; }
15986 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
15987 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
15988 Usually this means the macro was only invoked conditionally." >&5
15989 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
15990 Usually this means the macro was only invoked conditionally." >&2;}
15991 { (exit 1); exit 1; }; }
15994 : ${CONFIG_STATUS=./config.status}
15995 ac_clean_files_save
=$ac_clean_files
15996 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15997 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15998 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15999 cat >$CONFIG_STATUS <<_ACEOF
16001 # Generated by $as_me.
16002 # Run this file to recreate the current configuration.
16003 # Compiler output produced by configure, useful for debugging
16004 # configure, is in config.log if it exists.
16007 ac_cs_recheck=false
16009 SHELL=\${CONFIG_SHELL-$SHELL}
16012 cat >>$CONFIG_STATUS <<\_ACEOF
16013 ## --------------------- ##
16014 ## M4sh Initialization. ##
16015 ## --------------------- ##
16017 # Be Bourne compatible
16018 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16021 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16022 # is contrary to our usage. Disable this feature.
16023 alias -g '${1+"$@"}'='"$@"'
16024 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
16027 DUALCASE
=1; export DUALCASE
# for MKS sh
16029 # Support unset when possible.
16030 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
16037 # Work around bugs in pre-3.0 UWIN ksh.
16038 $as_unset ENV MAIL MAILPATH
16045 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16046 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16047 LC_TELEPHONE LC_TIME
16049 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16050 eval $as_var=C
; export $as_var
16056 # Required to use basename.
16057 if expr a
: '\(a\)' >/dev
/null
2>&1; then
16063 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
16064 as_basename
=basename
16070 # Name of the executable.
16071 as_me
=`$as_basename "$0" ||
16072 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16073 X"$0" : 'X\(//\)$' \| \
16074 X"$0" : 'X\(/\)$' \| \
16075 . : '\(.\)' 2>/dev/null ||
16077 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16078 /^X\/\(\/\/\)$/{ s//\1/; q; }
16079 /^X\/\(\/\).*/{ s//\1/; q; }
16083 # PATH needs CR, and LINENO needs CR and PATH.
16084 # Avoid depending upon Character Ranges.
16085 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16086 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16087 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16088 as_cr_digits
='0123456789'
16089 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16091 # The user is always right.
16092 if test "${PATH_SEPARATOR+set}" != set; then
16093 echo "#! /bin/sh" >conf$$.sh
16094 echo "exit 0" >>conf$$.sh
16096 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
16105 as_lineno_1
=$LINENO
16106 as_lineno_2
=$LINENO
16107 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
16108 test "x$as_lineno_1" != "x$as_lineno_2" &&
16109 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
16110 # Find who we are. Look in the path if we contain no path at all
16113 *[\\/]* ) as_myself
=$0 ;;
16114 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16115 for as_dir
in $PATH
16118 test -z "$as_dir" && as_dir
=.
16119 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
16124 # We did not find ourselves, most probably we were run as `sh COMMAND'
16125 # in which case we are not to be found in the path.
16126 if test "x$as_myself" = x
; then
16129 if test ! -f "$as_myself"; then
16130 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16131 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16132 { (exit 1); exit 1; }; }
16134 case $CONFIG_SHELL in
16136 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16137 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
16140 test -z "$as_dir" && as_dir
=.
16141 for as_base
in sh bash ksh sh5
; do
16144 if ("$as_dir/$as_base" -c '
16145 as_lineno_1=$LINENO
16146 as_lineno_2=$LINENO
16147 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16148 test "x$as_lineno_1" != "x$as_lineno_2" &&
16149 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
16150 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
16151 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
16152 CONFIG_SHELL
=$as_dir/$as_base
16153 export CONFIG_SHELL
16154 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16162 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16163 # uniformly replaced by the line number. The first 'sed' inserts a
16164 # line-number line before each line; the second 'sed' does the real
16165 # work. The second script uses 'N' to pair each line-number line
16166 # with the numbered line, and appends trailing '-' during
16167 # substitution so that $LINENO is not a special case at line end.
16168 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16169 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16170 sed '=' <$as_myself |
16175 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16178 s,^['$as_cr_digits']*\n,,
16179 ' >$as_me.lineno
&&
16180 chmod +x
$as_me.lineno ||
16181 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16182 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16183 { (exit 1); exit 1; }; }
16185 # Don't try to exec as it changes $[0], causing all sort of problems
16186 # (the dirname of $[0] is not the place where we might find the
16187 # original and so on. Autoconf is especially sensible to this).
16189 # Exit status is that of the last command.
16194 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16195 *c
*,-n*) ECHO_N
= ECHO_C
='
16197 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
16198 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
16201 if expr a
: '\(a\)' >/dev
/null
2>&1; then
16207 rm -f conf$$ conf$$.exe conf$$.
file
16209 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16210 # We could just check for DJGPP; but this test a) works b) is more generic
16211 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16212 if test -f conf$$.exe
; then
16213 # Don't use ln at all; we don't have any links
16218 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16223 rm -f conf$$ conf$$.exe conf$$.
file
16225 if mkdir
-p .
2>/dev
/null
; then
16228 test -d .
/-p && rmdir .
/-p
16232 as_executable_p
="test -f"
16234 # Sed expression to map a string onto a valid CPP name.
16235 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16237 # Sed expression to map a string onto a valid variable name.
16238 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16242 # We need space, tab and new line, in precisely that order.
16252 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16253 # report actual input values of CONFIG_FILES etc. instead of their
16254 # values after options handling. Logging --version etc. is OK.
16258 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16259 ## Running $as_me. ##
16264 This file was extended by libjava $as_me version-unused, which was
16265 generated by GNU Autoconf 2.59. Invocation command line was
16267 CONFIG_FILES = $CONFIG_FILES
16268 CONFIG_HEADERS = $CONFIG_HEADERS
16269 CONFIG_LINKS = $CONFIG_LINKS
16270 CONFIG_COMMANDS = $CONFIG_COMMANDS
16274 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16278 # Files that config.status was made for.
16279 if test -n "$ac_config_files"; then
16280 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16283 if test -n "$ac_config_headers"; then
16284 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16287 if test -n "$ac_config_links"; then
16288 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16291 if test -n "$ac_config_commands"; then
16292 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16295 cat >>$CONFIG_STATUS <<\_ACEOF
16298 \`$as_me' instantiates files from templates according to the
16299 current configuration.
16301 Usage: $0 [OPTIONS] [FILE]...
16303 -h, --help print this help, then exit
16304 -V, --version print version number, then exit
16305 -q, --quiet do not print progress messages
16306 -d, --debug don't remove temporary files
16307 --recheck update $as_me by reconfiguring in the same conditions
16308 --file=FILE[:TEMPLATE]
16309 instantiate the configuration file FILE
16310 --header=FILE[:TEMPLATE]
16311 instantiate the configuration header FILE
16313 Configuration files:
16316 Configuration headers:
16319 Configuration links:
16322 Configuration commands:
16325 Report bugs to <bug-autoconf@gnu.org>."
16328 cat >>$CONFIG_STATUS <<_ACEOF
16330 libjava config.status version-unused
16331 configured by $0, generated by GNU Autoconf 2.59,
16332 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16334 Copyright (C) 2003 Free Software Foundation, Inc.
16335 This config.status script is free software; the Free Software Foundation
16336 gives unlimited permission to copy, distribute and modify it."
16341 cat >>$CONFIG_STATUS <<\_ACEOF
16342 # If no file are specified by the user, then we need to provide default
16343 # value. By we need to know if files were specified by the user.
16349 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
16350 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
16358 *) # This is not an option, so the user has probably given explicit
16361 ac_need_defaults
=false
;;
16365 # Handling of the options.
16367 cat >>$CONFIG_STATUS <<\_ACEOF
16368 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16370 --version |
--vers* |
-V )
16371 echo "$ac_cs_version"; exit 0 ;;
16373 # Conflict between --help and --header
16374 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16375 Try \`$0 --help' for more information." >&5
16376 echo "$as_me: error: ambiguous option: $1
16377 Try \`$0 --help' for more information." >&2;}
16378 { (exit 1); exit 1; }; };;
16379 --help |
--hel |
-h )
16380 echo "$ac_cs_usage"; exit 0 ;;
16381 --debug |
--d* |
-d )
16383 --file |
--fil |
--fi |
--f )
16385 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
16386 ac_need_defaults
=false
;;
16387 --header |
--heade |
--head |
--hea )
16389 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
16390 ac_need_defaults
=false
;;
16391 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16392 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16395 # This is an error.
16396 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16397 Try \`$0 --help' for more information." >&5
16398 echo "$as_me: error: unrecognized option: $1
16399 Try \`$0 --help' for more information." >&2;}
16400 { (exit 1); exit 1; }; } ;;
16402 *) ac_config_targets
="$ac_config_targets $1" ;;
16408 ac_configure_extra_args
=
16410 if $ac_cs_silent; then
16412 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16416 cat >>$CONFIG_STATUS <<_ACEOF
16417 if \$ac_cs_recheck; then
16418 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16419 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16424 cat >>$CONFIG_STATUS <<_ACEOF
16426 # INIT-COMMANDS section.
16429 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16433 with_multisubdir=${with_multisubdir}
16434 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16435 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16436 libgcj_basedir=${libgcj_basedir}
16439 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
16446 cat >>$CONFIG_STATUS <<\_ACEOF
16447 for ac_config_target
in $ac_config_targets
16449 case "$ac_config_target" in
16450 # Handling of arguments.
16451 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16452 "libgcj.pc" ) CONFIG_FILES
="$CONFIG_FILES libgcj.pc" ;;
16453 "libgcj.spec" ) CONFIG_FILES
="$CONFIG_FILES libgcj.spec" ;;
16454 "libgcj-test.spec" ) CONFIG_FILES
="$CONFIG_FILES libgcj-test.spec" ;;
16455 "gnu/classpath/Configuration.java" ) CONFIG_FILES
="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
16456 "gcj/Makefile" ) CONFIG_FILES
="$CONFIG_FILES gcj/Makefile" ;;
16457 "include/Makefile" ) CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
16458 "testsuite/Makefile" ) CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
16459 "external/Makefile" ) CONFIG_FILES
="$CONFIG_FILES external/Makefile" ;;
16460 "external/sax/Makefile" ) CONFIG_FILES
="$CONFIG_FILES external/sax/Makefile" ;;
16461 "external/w3c_dom/Makefile" ) CONFIG_FILES
="$CONFIG_FILES external/w3c_dom/Makefile" ;;
16462 "include/platform.h" ) CONFIG_LINKS
="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
16463 "java/io/natFile.cc" ) CONFIG_LINKS
="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
16464 "java/lang/ConcreteProcess.java" ) CONFIG_LINKS
="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
16465 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS
="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
16466 "java/net/natInetAddress.cc" ) CONFIG_LINKS
="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
16467 "java/net/natNetworkInterface.cc" ) CONFIG_LINKS
="$CONFIG_LINKS java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc" ;;
16468 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS
="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
16469 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS
="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
16470 "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS
="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
16471 "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS
="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
16472 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS
="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
16473 "include/java-gc.h" ) CONFIG_LINKS
="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
16474 "include/java-threads.h" ) CONFIG_LINKS
="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
16475 "sysdep/locks.h" ) CONFIG_LINKS
="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
16476 "sysdep/backtrace.h" ) CONFIG_LINKS
="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
16477 "include/java-signal.h" ) CONFIG_LINKS
="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
16478 "include/java-signal-aux.h" ) CONFIG_LINKS
="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
16479 "depfiles" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
16480 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
16481 "include/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS include/config.h" ;;
16482 "gcj/libgcj-config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
16483 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16484 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16485 { (exit 1); exit 1; }; };;
16489 # If the user did not use the arguments to specify the items to instantiate,
16490 # then the envvar interface is used. Set only those that are not.
16491 # We use the long form for the default assignment because of an extremely
16492 # bizarre bug on SunOS 4.1.3.
16493 if $ac_need_defaults; then
16494 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16495 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16496 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
16497 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16500 # Have a temporary directory for convenience. Make it in the build tree
16501 # simply because there is no reason to put it here, and in addition,
16502 # creating and moving files from /tmp can sometimes cause problems.
16503 # Create a temporary directory, and hook for its removal unless debugging.
16506 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16507 trap '{ (exit 1); exit 1; }' 1 2 13 15
16510 # Create a (secure) tmp directory for tmp files.
16513 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16514 test -n "$tmp" && test -d "$tmp"
16517 tmp
=.
/confstat$$
-$RANDOM
16518 (umask 077 && mkdir
$tmp)
16521 echo "$me: cannot create a temporary directory in ." >&2
16522 { (exit 1); exit 1; }
16527 cat >>$CONFIG_STATUS <<_ACEOF
16530 # CONFIG_FILES section.
16533 # No need to generate the scripts if there are no CONFIG_FILES.
16534 # This happens for instance when ./config.status config.h
16535 if test -n "\$CONFIG_FILES"; then
16536 # Protect against being on the right side of a sed subst in config.status.
16537 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16538 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16539 s,@SHELL@,$SHELL,;t t
16540 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16541 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16542 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16543 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16544 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16545 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16546 s,@exec_prefix@,$exec_prefix,;t t
16547 s,@prefix@,$prefix,;t t
16548 s,@program_transform_name@,$program_transform_name,;t t
16549 s,@bindir@,$bindir,;t t
16550 s,@sbindir@,$sbindir,;t t
16551 s,@libexecdir@,$libexecdir,;t t
16552 s,@datadir@,$datadir,;t t
16553 s,@sysconfdir@,$sysconfdir,;t t
16554 s,@sharedstatedir@,$sharedstatedir,;t t
16555 s,@localstatedir@,$localstatedir,;t t
16556 s,@libdir@,$libdir,;t t
16557 s,@includedir@,$includedir,;t t
16558 s,@oldincludedir@,$oldincludedir,;t t
16559 s,@infodir@,$infodir,;t t
16560 s,@mandir@,$mandir,;t t
16561 s,@build_alias@,$build_alias,;t t
16562 s,@host_alias@,$host_alias,;t t
16563 s,@target_alias@,$target_alias,;t t
16564 s,@DEFS@,$DEFS,;t t
16565 s,@ECHO_C@,$ECHO_C,;t t
16566 s,@ECHO_N@,$ECHO_N,;t t
16567 s,@ECHO_T@,$ECHO_T,;t t
16568 s,@LIBS@,$LIBS,;t t
16569 s,@build@,$build,;t t
16570 s,@build_cpu@,$build_cpu,;t t
16571 s,@build_vendor@,$build_vendor,;t t
16572 s,@build_os@,$build_os,;t t
16573 s,@build_subdir@,$build_subdir,;t t
16574 s,@host_subdir@,$host_subdir,;t t
16575 s,@target_subdir@,$target_subdir,;t t
16576 s,@libgcj_basedir@,$libgcj_basedir,;t t
16577 s,@host@,$host,;t t
16578 s,@host_cpu@,$host_cpu,;t t
16579 s,@host_vendor@,$host_vendor,;t t
16580 s,@host_os@,$host_os,;t t
16581 s,@target@,$target,;t t
16582 s,@target_cpu@,$target_cpu,;t t
16583 s,@target_vendor@,$target_vendor,;t t
16584 s,@target_os@,$target_os,;t t
16585 s,@target_noncanonical@,$target_noncanonical,;t t
16586 s,@LN_S@,$LN_S,;t t
16587 s,@mkinstalldirs@,$mkinstalldirs,;t t
16589 s,@ac_ct_CC@,$ac_ct_CC,;t t
16590 s,@EXEEXT@,$EXEEXT,;t t
16591 s,@OBJEXT@,$OBJEXT,;t t
16593 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
16594 s,@CFLAGS@,$CFLAGS,;t t
16595 s,@CXXFLAGS@,$CXXFLAGS,;t t
16596 s,@LDFLAGS@,$LDFLAGS,;t t
16597 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16598 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16599 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16600 s,@CYGPATH_W@,$CYGPATH_W,;t t
16601 s,@PACKAGE@,$PACKAGE,;t t
16602 s,@VERSION@,$VERSION,;t t
16603 s,@ACLOCAL@,$ACLOCAL,;t t
16604 s,@AUTOCONF@,$AUTOCONF,;t t
16605 s,@AUTOMAKE@,$AUTOMAKE,;t t
16606 s,@AUTOHEADER@,$AUTOHEADER,;t t
16607 s,@MAKEINFO@,$MAKEINFO,;t t
16608 s,@install_sh@,$install_sh,;t t
16609 s,@STRIP@,$STRIP,;t t
16610 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16611 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
16612 s,@mkdir_p@,$mkdir_p,;t t
16614 s,@SET_MAKE@,$SET_MAKE,;t t
16615 s,@am__leading_dot@,$am__leading_dot,;t t
16616 s,@AMTAR@,$AMTAR,;t t
16617 s,@am__tar@,$am__tar,;t t
16618 s,@am__untar@,$am__untar,;t t
16619 s,@DEPDIR@,$DEPDIR,;t t
16620 s,@am__include@,$am__include,;t t
16621 s,@am__quote@,$am__quote,;t t
16622 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
16623 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
16624 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
16625 s,@CCDEPMODE@,$CCDEPMODE,;t t
16626 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
16627 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
16628 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
16629 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
16630 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
16632 s,@ac_ct_AS@,$ac_ct_AS,;t t
16634 s,@ac_ct_AR@,$ac_ct_AR,;t t
16635 s,@RANLIB@,$RANLIB,;t t
16636 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16637 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
16638 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
16639 s,@MAINT@,$MAINT,;t t
16640 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
16641 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
16642 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
16643 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
16644 s,@INCLTDL@,$INCLTDL,;t t
16645 s,@LIBLTDL@,$LIBLTDL,;t t
16646 s,@DIRLTDL@,$DIRLTDL,;t t
16647 s,@LIBTOOL@,$LIBTOOL,;t t
16648 s,@CXXCPP@,$CXXCPP,;t t
16649 s,@CPPFLAGS@,$CPPFLAGS,;t t
16651 s,@GCJFLAGS@,$GCJFLAGS,;t t
16652 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
16653 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
16654 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
16655 s,@subdirs@,$subdirs,;t t
16656 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
16657 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
16658 s,@ONESTEP_TRUE@,$ONESTEP_TRUE,;t t
16659 s,@ONESTEP_FALSE@,$ONESTEP_FALSE,;t t
16660 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
16661 s,@INTERPRETER@,$INTERPRETER,;t t
16662 s,@LIBFFI@,$LIBFFI,;t t
16663 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
16664 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
16666 s,@EGREP@,$EGREP,;t t
16667 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
16668 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
16669 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
16670 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
16671 s,@USING_ECOS_PLATFORM_TRUE@,$USING_ECOS_PLATFORM_TRUE,;t t
16672 s,@USING_ECOS_PLATFORM_FALSE@,$USING_ECOS_PLATFORM_FALSE,;t t
16673 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
16674 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
16675 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
16676 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
16677 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
16678 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
16679 s,@X_CFLAGS@,$X_CFLAGS,;t t
16680 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
16681 s,@X_LIBS@,$X_LIBS,;t t
16682 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
16683 s,@TOOLKIT@,$TOOLKIT,;t t
16684 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
16685 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
16686 s,@GTK_AWT_TRUE@,$GTK_AWT_TRUE,;t t
16687 s,@GTK_AWT_FALSE@,$GTK_AWT_FALSE,;t t
16688 s,@GTK_CAIRO_TRUE@,$GTK_CAIRO_TRUE,;t t
16689 s,@GTK_CAIRO_FALSE@,$GTK_CAIRO_FALSE,;t t
16690 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
16691 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
16692 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
16693 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
16694 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
16695 s,@GCLIBS@,$GCLIBS,;t t
16696 s,@GCINCS@,$GCINCS,;t t
16697 s,@GCDEPS@,$GCDEPS,;t t
16698 s,@GCSPEC@,$GCSPEC,;t t
16699 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
16700 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
16701 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
16702 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
16703 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
16704 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
16705 s,@THREADLIBS@,$THREADLIBS,;t t
16706 s,@THREADINCS@,$THREADINCS,;t t
16707 s,@THREADDEPS@,$THREADDEPS,;t t
16708 s,@THREADSPEC@,$THREADSPEC,;t t
16709 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
16710 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
16711 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
16712 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
16713 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
16714 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
16715 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
16716 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
16717 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
16718 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
16719 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
16720 s,@LIBICONV@,$LIBICONV,;t t
16721 s,@LTLIBICONV@,$LTLIBICONV,;t t
16722 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
16723 s,@GTK_LIBS@,$GTK_LIBS,;t t
16724 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
16725 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
16726 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
16727 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
16728 s,@SUPPLY_BACKTRACE_TRUE@,$SUPPLY_BACKTRACE_TRUE,;t t
16729 s,@SUPPLY_BACKTRACE_FALSE@,$SUPPLY_BACKTRACE_FALSE,;t t
16730 s,@GCJH@,$GCJH,;t t
16732 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
16733 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
16734 s,@ZLIBS@,$ZLIBS,;t t
16735 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
16736 s,@ZINCS@,$ZINCS,;t t
16737 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
16738 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
16739 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
16740 s,@IEEESPEC@,$IEEESPEC,;t t
16741 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
16742 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
16743 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
16744 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
16745 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
16746 s,@toolexecdir@,$toolexecdir,;t t
16747 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
16748 s,@toolexeclibdir@,$toolexeclibdir,;t t
16749 s,@GCJVERSION@,$GCJVERSION,;t t
16750 s,@gxx_include_dir@,$gxx_include_dir,;t t
16751 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
16752 s,@ALLOCA@,$ALLOCA,;t t
16753 s,@PERL@,$PERL,;t t
16754 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
16755 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
16756 s,@here@,$here,;t t
16757 s,@LIBOBJS@,$LIBOBJS,;t t
16758 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16763 cat >>$CONFIG_STATUS <<\_ACEOF
16764 # Split the substitutions into bite-sized pieces for seds with
16765 # small command number limits, like on Digital OSF/1 and HP-UX.
16766 ac_max_sed_lines
=48
16767 ac_sed_frag
=1 # Number of current file.
16768 ac_beg
=1 # First line for current file.
16769 ac_end
=$ac_max_sed_lines # Line after last line for current file.
16772 while $ac_more_lines; do
16773 if test $ac_beg -gt 1; then
16774 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
16776 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
16778 if test ! -s $tmp/subs.frag
; then
16779 ac_more_lines
=false
16781 # The purpose of the label and of the branching condition is to
16782 # speed up the sed processing (if there are no `@' at all, there
16783 # is no need to browse any of the substitutions).
16784 # These are the two extra sed commands mentioned above.
16786 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
16787 if test -z "$ac_sed_cmds"; then
16788 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
16790 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16792 ac_sed_frag
=`expr $ac_sed_frag + 1`
16794 ac_end
=`expr $ac_end + $ac_max_sed_lines`
16797 if test -z "$ac_sed_cmds"; then
16800 fi # test -n "$CONFIG_FILES"
16803 cat >>$CONFIG_STATUS <<\_ACEOF
16804 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
16805 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16807 - |
*:- |
*:-:* ) # input from stdin
16809 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16810 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16811 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16812 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16813 * ) ac_file_in
=$ac_file.
in ;;
16816 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16817 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
16818 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16819 X"$ac_file" : 'X\(//\)[^/]' \| \
16820 X"$ac_file" : 'X\(//\)$' \| \
16821 X"$ac_file" : 'X\(/\)' \| \
16822 . : '\(.\)' 2>/dev/null ||
16824 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16825 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16826 /^X\(\/\/\)$/{ s//\1/; q; }
16827 /^X\(\/\).*/{ s//\1/; q; }
16829 { if $as_mkdir_p; then
16834 while test ! -d "$as_dir"; do
16835 as_dirs
="$as_dir $as_dirs"
16836 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
16837 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16838 X"$as_dir" : 'X\(//\)[^/]' \| \
16839 X"$as_dir" : 'X\(//\)$' \| \
16840 X"$as_dir" : 'X\(/\)' \| \
16841 . : '\(.\)' 2>/dev/null ||
16843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16844 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16845 /^X\(\/\/\)$/{ s//\1/; q; }
16846 /^X\(\/\).*/{ s//\1/; q; }
16849 test ! -n "$as_dirs" || mkdir
$as_dirs
16850 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16851 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16852 { (exit 1); exit 1; }; }; }
16856 if test "$ac_dir" != .
; then
16857 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16858 # A "../" for each directory in $ac_dir_suffix.
16859 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16861 ac_dir_suffix
= ac_top_builddir
=
16865 .
) # No --srcdir option. We are building in place.
16867 if test -z "$ac_top_builddir"; then
16870 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
16872 [\\/]* | ?
:[\\/]* ) # Absolute path.
16873 ac_srcdir
=$srcdir$ac_dir_suffix;
16874 ac_top_srcdir
=$srcdir ;;
16875 *) # Relative path.
16876 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
16877 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
16880 # Do not use `cd foo && pwd` to compute absolute paths, because
16881 # the directories may not exist.
16883 .
) ac_abs_builddir
="$ac_dir";;
16886 .
) ac_abs_builddir
=`pwd`;;
16887 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
16888 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
16891 case $ac_abs_builddir in
16892 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16894 case ${ac_top_builddir}.
in
16895 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
16896 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16897 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
16900 case $ac_abs_builddir in
16901 .
) ac_abs_srcdir
=$ac_srcdir;;
16904 .
) ac_abs_srcdir
=$ac_abs_builddir;;
16905 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
16906 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
16909 case $ac_abs_builddir in
16910 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
16912 case $ac_top_srcdir in
16913 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
16914 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
16915 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
16921 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
16922 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
16925 if test x
"$ac_file" != x-
; then
16926 { echo "$as_me:$LINENO: creating $ac_file" >&5
16927 echo "$as_me: creating $ac_file" >&6;}
16930 # Let's still pretend it is `configure' which instantiates (i.e., don't
16931 # use $as_me), people would be surprised to read:
16932 # /* config.h. Generated by config.status. */
16933 if test x
"$ac_file" = x-
; then
16936 configure_input
="$ac_file. "
16938 configure_input
=$configure_input"Generated from `echo $ac_file_in |
16939 sed 's,.*/,,'` by configure."
16941 # First look for the input files in the build tree, otherwise in the
16943 ac_file_inputs
=`IFS=:
16944 for f in $ac_file_in; do
16946 -) echo $tmp/stdin ;;
16948 # Absolute (can't be DOS-style, as IFS=:)
16949 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16950 echo "$as_me: error: cannot find input file: $f" >&2;}
16951 { (exit 1); exit 1; }; }
16954 if test -f "$f"; then
16957 elif test -f "$srcdir/$f"; then
16962 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16963 echo "$as_me: error: cannot find input file: $f" >&2;}
16964 { (exit 1); exit 1; }; }
16967 done` ||
{ (exit 1); exit 1; }
16969 cat >>$CONFIG_STATUS <<_ACEOF
16973 cat >>$CONFIG_STATUS <<\_ACEOF
16975 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16976 s
,@configure_input@
,$configure_input,;t t
16977 s
,@srcdir@
,$ac_srcdir,;t t
16978 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
16979 s
,@top_srcdir@
,$ac_top_srcdir,;t t
16980 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
16981 s
,@builddir@
,$ac_builddir,;t t
16982 s
,@abs_builddir@
,$ac_abs_builddir,;t t
16983 s
,@top_builddir@
,$ac_top_builddir,;t t
16984 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
16985 s
,@INSTALL@
,$ac_INSTALL,;t t
16986 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16988 if test x"$ac_file" != x-; then
16989 mv $tmp/out $ac_file
16997 cat >>$CONFIG_STATUS <<\_ACEOF
17000 # CONFIG_HEADER section.
17003 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
17004 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17006 # ac_d sets the value in "#define NAME VALUE" lines.
17007 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17008 ac_dB
='[ ].*$,\1#\2'
17011 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17012 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17013 ac_uB
='$,\1#\2define\3'
17017 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
17018 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17020 - |
*:- |
*:-:* ) # input from stdin
17022 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17023 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17024 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17025 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17026 * ) ac_file_in
=$ac_file.
in ;;
17029 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
17030 echo "$as_me: creating $ac_file" >&6;}
17032 # First look for the input files in the build tree, otherwise in the
17034 ac_file_inputs
=`IFS=:
17035 for f in $ac_file_in; do
17037 -) echo $tmp/stdin ;;
17039 # Absolute (can't be DOS-style, as IFS=:)
17040 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17041 echo "$as_me: error: cannot find input file: $f" >&2;}
17042 { (exit 1); exit 1; }; }
17043 # Do quote $f, to prevent DOS paths from being IFS'd.
17046 if test -f "$f"; then
17049 elif test -f "$srcdir/$f"; then
17054 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17055 echo "$as_me: error: cannot find input file: $f" >&2;}
17056 { (exit 1); exit 1; }; }
17059 done` ||
{ (exit 1); exit 1; }
17060 # Remove the trailing spaces.
17061 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17065 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17066 # `conftest.undefs', that substitutes the proper values into
17067 # config.h.in to produce config.h. The first handles `#define'
17068 # templates, and the second `#undef' templates.
17069 # And first: Protect against being on the right side of a sed subst in
17070 # config.status. Protect against being in an unquoted here document
17071 # in config.status.
17072 rm -f conftest.defines conftest.undefs
17073 # Using a here document instead of a string reduces the quoting nightmare.
17074 # Putting comments in sed scripts is not portable.
17076 # `end' is used to avoid that the second main sed command (meant for
17077 # 0-ary CPP macros) applies to n-ary macro definitions.
17078 # See the Autoconf documentation for `clear'.
17079 cat >confdef2sed.
sed <<\_ACEOF
17084 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17086 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17089 # If some macros were called several times there might be several times
17090 # the same #defines, which is useless. Nevertheless, we may not want to
17091 # sort them, since we want the *last* AC-DEFINE to be honored.
17092 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17093 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17094 rm -f confdef2sed.sed
17096 # This sed command replaces #undef with comments. This is necessary, for
17097 # example, in the case of _POSIX_SOURCE, which is predefined and required
17098 # on some systems where configure will not decide to define it.
17099 cat >>conftest.undefs <<\_ACEOF
17100 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17103 # Break up conftest.defines because some shells have a limit on the size
17104 # of here documents, and old seds have small limits too (100 cmds).
17105 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17106 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17107 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17108 echo ' :' >>$CONFIG_STATUS
17109 rm -f conftest.tail
17110 while grep . conftest.defines >/dev/null
17112 # Write a limited-size here document to $tmp/defines.sed.
17113 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17114 # Speed up: don't consider the non `#define' lines.
17115 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17116 # Work around the forget-to-reset-the-flag bug.
17117 echo 't clr' >>$CONFIG_STATUS
17118 echo ': clr' >>$CONFIG_STATUS
17119 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
17121 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17123 mv $tmp/out $tmp/in
17125 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
17126 rm -f conftest.defines
17127 mv conftest.
tail conftest.defines
17129 rm -f conftest.defines
17130 echo ' fi # grep' >>$CONFIG_STATUS
17131 echo >>$CONFIG_STATUS
17133 # Break up conftest.undefs because some shells have a limit on the size
17134 # of here documents, and old seds have small limits too (100 cmds).
17135 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17136 rm -f conftest.
tail
17137 while grep . conftest.undefs
>/dev
/null
17139 # Write a limited-size here document to $tmp/undefs.sed.
17140 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17141 # Speed up: don't consider the non
`#undef'
17142 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17143 # Work around the forget-to-reset-the-flag bug.
17144 echo 't clr' >>$CONFIG_STATUS
17145 echo ': clr' >>$CONFIG_STATUS
17146 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17148 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17150 mv $tmp/out $tmp/in
17152 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17153 rm -f conftest.undefs
17154 mv conftest.tail conftest.undefs
17156 rm -f conftest.undefs
17158 cat >>$CONFIG_STATUS <<\_ACEOF
17159 # Let's still pretend it is `configure
' which instantiates (i.e., don't
17160 # use $as_me), people would be surprised to read:
17161 # /* config.h. Generated by config.status. */
17162 if test x
"$ac_file" = x-
; then
17163 echo "/* Generated by configure. */" >$tmp/config.h
17165 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17167 cat $tmp/in >>$tmp/config.h
17169 if test x
"$ac_file" != x-
; then
17170 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
17171 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17172 echo "$as_me: $ac_file is unchanged" >&6;}
17174 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
17175 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17176 X"$ac_file" : 'X\(//\)[^/]' \| \
17177 X"$ac_file" : 'X\(//\)$' \| \
17178 X"$ac_file" : 'X\(/\)' \| \
17179 . : '\(.\)' 2>/dev/null ||
17181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17182 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17183 /^X\(\/\/\)$/{ s//\1/; q; }
17184 /^X\(\/\).*/{ s//\1/; q; }
17186 { if $as_mkdir_p; then
17191 while test ! -d "$as_dir"; do
17192 as_dirs
="$as_dir $as_dirs"
17193 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
17194 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17195 X"$as_dir" : 'X\(//\)[^/]' \| \
17196 X"$as_dir" : 'X\(//\)$' \| \
17197 X"$as_dir" : 'X\(/\)' \| \
17198 . : '\(.\)' 2>/dev/null ||
17200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17201 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17202 /^X\(\/\/\)$/{ s//\1/; q; }
17203 /^X\(\/\).*/{ s//\1/; q; }
17206 test ! -n "$as_dirs" || mkdir
$as_dirs
17207 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17208 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17209 { (exit 1); exit 1; }; }; }
17212 mv $tmp/config.h
$ac_file
17216 rm -f $tmp/config.h
17218 # Compute $ac_file's index in $config_headers.
17220 for _am_header
in $config_headers :; do
17221 case $_am_header in
17222 $ac_file |
$ac_file:* )
17225 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
17228 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17229 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17230 X$ac_file : 'X\(//\)[^/]' \| \
17231 X$ac_file : 'X\(//\)$' \| \
17232 X$ac_file : 'X\(/\)' \| \
17233 . : '\(.\)' 2>/dev/null ||
17235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17236 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17237 /^X\(\/\/\)$/{ s//\1/; q; }
17238 /^X\(\/\).*/{ s//\1/; q; }
17239 s/.*/./; q'`/stamp-h
$_am_stamp_count
17242 cat >>$CONFIG_STATUS <<\_ACEOF
17245 # CONFIG_LINKS section.
17248 for ac_file
in : $CONFIG_LINKS; do test "x$ac_file" = x
: && continue
17249 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
17250 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17252 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17253 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
17255 if test ! -r $srcdir/$ac_source; then
17256 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17257 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17258 { (exit 1); exit 1; }; }
17262 # Make relative symlinks.
17263 ac_dest_dir
=`(dirname "$ac_dest") 2>/dev/null ||
17264 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17265 X"$ac_dest" : 'X\(//\)[^/]' \| \
17266 X"$ac_dest" : 'X\(//\)$' \| \
17267 X"$ac_dest" : 'X\(/\)' \| \
17268 . : '\(.\)' 2>/dev/null ||
17270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17271 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17272 /^X\(\/\/\)$/{ s//\1/; q; }
17273 /^X\(\/\).*/{ s//\1/; q; }
17275 { if $as_mkdir_p; then
17276 mkdir
-p "$ac_dest_dir"
17278 as_dir
="$ac_dest_dir"
17280 while test ! -d "$as_dir"; do
17281 as_dirs
="$as_dir $as_dirs"
17282 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
17283 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17284 X"$as_dir" : 'X\(//\)[^/]' \| \
17285 X"$as_dir" : 'X\(//\)$' \| \
17286 X"$as_dir" : 'X\(/\)' \| \
17287 . : '\(.\)' 2>/dev/null ||
17289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17290 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17291 /^X\(\/\/\)$/{ s//\1/; q; }
17292 /^X\(\/\).*/{ s//\1/; q; }
17295 test ! -n "$as_dirs" || mkdir
$as_dirs
17296 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
17297 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
17298 { (exit 1); exit 1; }; }; }
17302 if test "$ac_dest_dir" != .
; then
17303 ac_dir_suffix
=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17304 # A "../" for each directory in $ac_dir_suffix.
17305 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17307 ac_dir_suffix
= ac_top_builddir
=
17311 .
) # No --srcdir option. We are building in place.
17313 if test -z "$ac_top_builddir"; then
17316 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
17318 [\\/]* | ?
:[\\/]* ) # Absolute path.
17319 ac_srcdir
=$srcdir$ac_dir_suffix;
17320 ac_top_srcdir
=$srcdir ;;
17321 *) # Relative path.
17322 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
17323 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
17326 # Do not use `cd foo && pwd` to compute absolute paths, because
17327 # the directories may not exist.
17329 .
) ac_abs_builddir
="$ac_dest_dir";;
17331 case "$ac_dest_dir" in
17332 .
) ac_abs_builddir
=`pwd`;;
17333 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dest_dir";;
17334 *) ac_abs_builddir
=`pwd`/"$ac_dest_dir";;
17337 case $ac_abs_builddir in
17338 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17340 case ${ac_top_builddir}.
in
17341 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
17342 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17343 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
17346 case $ac_abs_builddir in
17347 .
) ac_abs_srcdir
=$ac_srcdir;;
17350 .
) ac_abs_srcdir
=$ac_abs_builddir;;
17351 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
17352 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
17355 case $ac_abs_builddir in
17356 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
17358 case $ac_top_srcdir in
17359 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
17360 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
17361 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
17367 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
17368 *) ac_rel_source
=$ac_top_builddir$srcdir/$ac_source ;;
17371 # Try a symlink, then a hard link, then a copy.
17372 ln -s $ac_rel_source $ac_dest 2>/dev
/null ||
17373 ln $srcdir/$ac_source $ac_dest 2>/dev
/null ||
17374 cp -p $srcdir/$ac_source $ac_dest ||
17375 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
17376 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
17377 { (exit 1); exit 1; }; }
17380 cat >>$CONFIG_STATUS <<\_ACEOF
17383 # CONFIG_COMMANDS section.
17385 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
17386 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
17387 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17388 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
17389 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17390 X"$ac_dest" : 'X\(//\)[^/]' \| \
17391 X"$ac_dest" : 'X\(//\)$' \| \
17392 X"$ac_dest" : 'X\(/\)' \| \
17393 . : '\(.\)' 2>/dev/null ||
17395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17396 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17397 /^X\(\/\/\)$/{ s//\1/; q; }
17398 /^X\(\/\).*/{ s//\1/; q; }
17400 { if $as_mkdir_p; then
17405 while test ! -d "$as_dir"; do
17406 as_dirs
="$as_dir $as_dirs"
17407 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
17408 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17409 X"$as_dir" : 'X\(//\)[^/]' \| \
17410 X"$as_dir" : 'X\(//\)$' \| \
17411 X"$as_dir" : 'X\(/\)' \| \
17412 . : '\(.\)' 2>/dev/null ||
17414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17415 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17416 /^X\(\/\/\)$/{ s//\1/; q; }
17417 /^X\(\/\).*/{ s//\1/; q; }
17420 test ! -n "$as_dirs" || mkdir
$as_dirs
17421 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17422 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17423 { (exit 1); exit 1; }; }; }
17427 if test "$ac_dir" != .
; then
17428 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17429 # A "../" for each directory in $ac_dir_suffix.
17430 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17432 ac_dir_suffix
= ac_top_builddir
=
17436 .
) # No --srcdir option. We are building in place.
17438 if test -z "$ac_top_builddir"; then
17441 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
17443 [\\/]* | ?
:[\\/]* ) # Absolute path.
17444 ac_srcdir
=$srcdir$ac_dir_suffix;
17445 ac_top_srcdir
=$srcdir ;;
17446 *) # Relative path.
17447 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
17448 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
17451 # Do not use `cd foo && pwd` to compute absolute paths, because
17452 # the directories may not exist.
17454 .
) ac_abs_builddir
="$ac_dir";;
17457 .
) ac_abs_builddir
=`pwd`;;
17458 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
17459 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
17462 case $ac_abs_builddir in
17463 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17465 case ${ac_top_builddir}.
in
17466 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
17467 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17468 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
17471 case $ac_abs_builddir in
17472 .
) ac_abs_srcdir
=$ac_srcdir;;
17475 .
) ac_abs_srcdir
=$ac_abs_builddir;;
17476 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
17477 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
17480 case $ac_abs_builddir in
17481 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
17483 case $ac_top_srcdir in
17484 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
17485 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
17486 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
17491 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17492 echo "$as_me: executing $ac_dest commands" >&6;}
17494 depfiles
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
17495 # Strip MF so we end up with the name of the file.
17496 mf
=`echo "$mf" | sed -e 's/:.*$//'`
17497 # Check whether this is an Automake generated Makefile or not.
17498 # We used to match only the files named `Makefile.in', but
17499 # some people rename them; so instead we look at the file content.
17500 # Grep'ing the first line is not enough: some people post-process
17501 # each Makefile.in and add a new line on top of each file to say so.
17502 # So let's grep whole file.
17503 if grep '^#.*generated by automake' $mf > /dev
/null
2>&1; then
17504 dirpart
=`(dirname "$mf") 2>/dev/null ||
17505 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17506 X"$mf" : 'X\(//\)[^/]' \| \
17507 X"$mf" : 'X\(//\)$' \| \
17508 X"$mf" : 'X\(/\)' \| \
17509 . : '\(.\)' 2>/dev/null ||
17511 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17512 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17513 /^X\(\/\/\)$/{ s//\1/; q; }
17514 /^X\(\/\).*/{ s//\1/; q; }
17519 # Extract the definition of DEPDIR, am__include, and am__quote
17520 # from the Makefile without running `make'.
17521 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
17522 test -z "$DEPDIR" && continue
17523 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
17524 test -z "am__include" && continue
17525 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
17526 # When using ansi2knr, U may be empty or an underscore; expand it
17527 U
=`sed -n 's/^U = //p' < "$mf"`
17528 # Find all dependency output files, they are included files with
17529 # $(DEPDIR) in their names. We invoke sed twice because it is the
17530 # simplest approach to changing $(DEPDIR) to its actual value in the
17532 for file in `sed -n "
17533 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17534 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17535 # Make sure the directory exists.
17536 test -f "$dirpart/$file" && continue
17537 fdir
=`(dirname "$file") 2>/dev/null ||
17538 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17539 X"$file" : 'X\(//\)[^/]' \| \
17540 X"$file" : 'X\(//\)$' \| \
17541 X"$file" : 'X\(/\)' \| \
17542 . : '\(.\)' 2>/dev/null ||
17544 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17545 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17546 /^X\(\/\/\)$/{ s//\1/; q; }
17547 /^X\(\/\).*/{ s//\1/; q; }
17549 { if $as_mkdir_p; then
17550 mkdir
-p $dirpart/$fdir
17552 as_dir
=$dirpart/$fdir
17554 while test ! -d "$as_dir"; do
17555 as_dirs
="$as_dir $as_dirs"
17556 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
17557 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17558 X"$as_dir" : 'X\(//\)[^/]' \| \
17559 X"$as_dir" : 'X\(//\)$' \| \
17560 X"$as_dir" : 'X\(/\)' \| \
17561 . : '\(.\)' 2>/dev/null ||
17563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17564 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17565 /^X\(\/\/\)$/{ s//\1/; q; }
17566 /^X\(\/\).*/{ s//\1/; q; }
17569 test ! -n "$as_dirs" || mkdir
$as_dirs
17570 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
17571 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
17572 { (exit 1); exit 1; }; }; }
17574 # echo "creating $dirpart/$file"
17575 echo '# dummy' > "$dirpart/$file"
17579 default
) # Only add multilib support code if we just rebuilt top-level Makefile.
17580 case " $CONFIG_FILES " in
17582 LD
="${ORIGINAL_LD_FOR_MULTILIBS}"
17583 ac_file
=Makefile .
${libgcj_basedir}/..
/config-ml.
in
17586 for ac_multi_file
in $CONFIG_FILES; do
17587 case $ac_multi_file in
17589 grep "^MULTI[^ ]* =" Makefile
>> "$ac_multi_file" ;;
17597 cat >>$CONFIG_STATUS <<\_ACEOF
17599 { (exit 0); exit 0; }
17601 chmod +x
$CONFIG_STATUS
17602 ac_clean_files
=$ac_clean_files_save
17605 # configure is writing to config.log, and then calls config.status.
17606 # config.status does its own redirection, appending to config.log.
17607 # Unfortunately, on DOS this fails, as config.log is still kept open
17608 # by configure, so config.status won't be able to write to it; its
17609 # output is simply discarded. So we exec the FD to /dev/null,
17610 # effectively closing config.log, so it can be properly (re)opened and
17611 # appended to by config.status. When coming back to configure, we
17612 # need to make the FD available again.
17613 if test "$no_create" != yes; then
17615 ac_config_status_args
=
17616 test "$silent" = yes &&
17617 ac_config_status_args
="$ac_config_status_args --quiet"
17619 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17621 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17622 # would make configure fail if this is the last instruction.
17623 $ac_cs_success ||
{ (exit 1); exit 1; }
17627 # CONFIG_SUBDIRS section.
17629 if test "$no_recursion" != yes; then
17631 # Remove --cache-file and --srcdir arguments so they do not pile up.
17632 ac_sub_configure_args
=
17634 for ac_arg
in $ac_configure_args; do
17635 if test -n "$ac_prev"; then
17640 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
17641 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
17642 ac_prev
=cache_file
;;
17643 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
17644 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
17647 --config-cache |
-C)
17649 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
17651 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
17653 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
17655 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
17657 *) ac_sub_configure_args
="$ac_sub_configure_args $ac_arg" ;;
17661 # Always prepend --prefix to ensure using the same prefix
17662 # in subdir configurations.
17663 ac_sub_configure_args
="--prefix=$prefix $ac_sub_configure_args"
17666 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
17668 # Do not complain, so a configure script can configure whichever
17669 # parts of a large source tree are present.
17670 test -d $srcdir/$ac_dir ||
continue
17672 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
17673 echo "$as_me: configuring in $ac_dir" >&6;}
17674 { if $as_mkdir_p; then
17679 while test ! -d "$as_dir"; do
17680 as_dirs
="$as_dir $as_dirs"
17681 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
17682 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17683 X"$as_dir" : 'X\(//\)[^/]' \| \
17684 X"$as_dir" : 'X\(//\)$' \| \
17685 X"$as_dir" : 'X\(/\)' \| \
17686 . : '\(.\)' 2>/dev/null ||
17688 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17689 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17690 /^X\(\/\/\)$/{ s//\1/; q; }
17691 /^X\(\/\).*/{ s//\1/; q; }
17694 test ! -n "$as_dirs" || mkdir
$as_dirs
17695 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17696 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17697 { (exit 1); exit 1; }; }; }
17701 if test "$ac_dir" != .
; then
17702 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17703 # A "../" for each directory in $ac_dir_suffix.
17704 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17706 ac_dir_suffix
= ac_top_builddir
=
17710 .
) # No --srcdir option. We are building in place.
17712 if test -z "$ac_top_builddir"; then
17715 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
17717 [\\/]* | ?
:[\\/]* ) # Absolute path.
17718 ac_srcdir
=$srcdir$ac_dir_suffix;
17719 ac_top_srcdir
=$srcdir ;;
17720 *) # Relative path.
17721 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
17722 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
17725 # Do not use `cd foo && pwd` to compute absolute paths, because
17726 # the directories may not exist.
17728 .
) ac_abs_builddir
="$ac_dir";;
17731 .
) ac_abs_builddir
=`pwd`;;
17732 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
17733 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
17736 case $ac_abs_builddir in
17737 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17739 case ${ac_top_builddir}.
in
17740 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
17741 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17742 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
17745 case $ac_abs_builddir in
17746 .
) ac_abs_srcdir
=$ac_srcdir;;
17749 .
) ac_abs_srcdir
=$ac_abs_builddir;;
17750 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
17751 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
17754 case $ac_abs_builddir in
17755 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
17757 case $ac_top_srcdir in
17758 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
17759 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
17760 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
17767 # Check for guested configure; otherwise get Cygnus style configure.
17768 if test -f $ac_srcdir/configure.gnu
; then
17769 ac_sub_configure
="$SHELL '$ac_srcdir/configure.gnu'"
17770 elif test -f $ac_srcdir/configure
; then
17771 ac_sub_configure
="$SHELL '$ac_srcdir/configure'"
17772 elif test -f $ac_srcdir/configure.
in; then
17773 ac_sub_configure
=$ac_configure
17775 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
17776 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17780 # The recursion is here.
17781 if test -n "$ac_sub_configure"; then
17782 # Make the cache file name correct relative to the subdirectory.
17783 case $cache_file in
17784 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
17785 *) # Relative path.
17786 ac_sub_cache_file
=$ac_top_builddir$cache_file ;;
17789 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
17790 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17791 # The eval makes quoting arguments work.
17792 eval $ac_sub_configure $ac_sub_configure_args \
17793 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
17794 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
17795 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
17796 { (exit 1); exit 1; }; }