2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libjava version-unused.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME
='libjava'
269 PACKAGE_TARNAME
='libjava'
270 PACKAGE_VERSION
='version-unused'
271 PACKAGE_STRING
='libjava version-unused'
274 ac_unique_file
="java/lang/System.java"
275 ac_subdirs_all
="$ac_subdirs_all classpath libltdl"
276 # Factoring default headers for most tests.
277 ac_includes_default
="\
280 # include <sys/types.h>
283 # include <sys/stat.h>
294 # if !STDC_HEADERS && HAVE_MEMORY_H
300 # include <strings.h>
303 # include <inttypes.h>
313 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_libsubdir build_subdir host_subdir target_subdir multi_basedir host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical LN_S mkinstalldirs JAVA_MAINTAINER_MODE_TRUE JAVA_MAINTAINER_MODE_FALSE 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 LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB JAR ZIP UNZIP BASH_JAR_TRUE BASH_JAR_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBGCJ_CFLAGS LIBGCJ_CXXFLAGS LIBGCJ_JAVAFLAGS LIBGCJ_LD_SYMBOLIC LIBGCJ_LD_SYMBOLIC_FUNCTIONS LIBGCJDEBUG TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE X_AWT_TRUE X_AWT_FALSE GCJ_FOR_ECJX GCJH host_exeext INCLTDL LIBLTDL DIRLTDL LIBTOOL CXXCPP CPPFLAGS GCJ GCJFLAGS GCJDEPMODE am__fastdepGCJ_TRUE am__fastdepGCJ_FALSE subdirs TESTSUBDIR_TRUE TESTSUBDIR_FALSE ECJ_BUILD_JAR ECJ_JAR BUILD_ECJ1_TRUE BUILD_ECJ1_FALSE INSTALL_ECJ_JAR_TRUE INSTALL_ECJ_JAR_FALSE JAVA_HOME_SET_TRUE JAVA_HOME_SET_FALSE JAVA_HOME INTERPRETER LIBFFI LIBFFIINCS PLATFORM CPP EGREP USING_WIN32_PLATFORM_TRUE USING_WIN32_PLATFORM_FALSE USING_POSIX_PLATFORM_TRUE USING_POSIX_PLATFORM_FALSE USING_DARWIN_CRT_TRUE USING_DARWIN_CRT_FALSE SYSTEMSPEC LIBGCJTESTSPEC ZLIBSPEC ZLIBTESTSPEC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS extra_ldflags_libjava GCLIBS GCINCS GCDEPS GCSPEC JC1GCSPEC GCTESTSPEC USING_BOEHMGC_TRUE USING_BOEHMGC_FALSE USING_NOGC_TRUE USING_NOGC_FALSE THREADLIBS THREADINCS THREADDEPS THREADSPEC THREADSTARTFILESPEC 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 USE_LIBGCJ_BC_TRUE USE_LIBGCJ_BC_FALSE LIBGCJ_SPEC HASH_SYNC_SPEC USING_GCC_TRUE USING_GCC_FALSE LIBICONV LTLIBICONV PKG_CONFIG GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS CLASSPATH_SEPARATOR ac_ct_GCJ ZLIBS SYS_ZLIBS ZINCS DIVIDESPEC CHECKREFSPEC EXCEPTIONSPEC BACKTRACESPEC IEEESPEC NATIVE_TRUE NATIVE_FALSE ENABLE_SHARED_TRUE ENABLE_SHARED_FALSE NEEDS_DATA_START_TRUE NEEDS_DATA_START_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir dbexecdir GCJVERSION gxx_include_dir libstdcxx_incdir ALLOCA PERL SYSDEP_SOURCES LD_START_STATIC_SPEC LD_FINISH_STATIC_SPEC 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-multilib build many library versions
(default
)
853 --enable-version-specific-runtime-libs
854 specify that runtime libraries should be installed
855 in a compiler-specific directory
856 --enable-plugin build gcjwebplugin web browser plugin
857 --enable-gconf-peer compile GConf native peers
for util.preferences
858 --enable-java-maintainer-mode
859 allow rebuilding of .class and .h files
860 --disable-dependency-tracking speeds up one-time build
861 --enable-dependency-tracking do not reject slow dependency extractors
862 --enable-maintainer-mode enable make rules and dependencies not useful
863 (and sometimes confusing
) to the casual installer
864 --enable-libgcj-debug enable runtime debugging code
865 --enable-java-awt list of AWT peer implementations to be built
866 --enable-shared=PKGS build shared libraries default
=yes
867 --enable-static=PKGS build static libraries default
=yes
868 --enable-fast-install=PKGS optimize
for fast installation default
=yes
869 --disable-libtool-lock avoid locking
(might
break parallel builds
)
870 --disable-getenv-properties
871 don
't set system properties from GCJ_PROPERTIES
872 --enable-hash-synchronization
873 use global hash table for monitor locks
874 --enable-gc-debug include full support for pointer backtracing etc.
875 --enable-interpreter enable interpreter
876 --enable-sjlj-exceptions
877 force use of builtin_setjmp for exceptions
878 --disable-java-net disable java.net
879 --disable-jvmpi disable JVMPI support
880 --enable-java-gc=TYPE choose garbage collector (default is boehm)
881 --disable-rpath do not hardcode runtime library paths
882 --enable-tls Use thread-local storage [default=yes]
885 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
886 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
887 --with-build-libsubdir=DIR Directory where to find libraries for build system
888 --with-target-subdir=SUBDIR
889 configure in a subdirectory
890 --with-cross-host=HOST configure with a cross compiler from HOST
891 --with-newlib configure with newlib
892 --with-escher=ABS.PATH specify path to escher dir or JAR for X peers
893 --with-gnu-ld assume the C compiler uses GNU ld default=no
894 --with-pic try to use only PIC/non-PIC objects default=use both
895 --with-ecj-jar=FILE use preinstalled ecj jar
896 --with-java-home=DIRECTORY
897 value of java.home system property
898 --with-win32-nlsapi=ansi or unicows or unicode
899 native MinGW libgcj Win32 OS API (default is ansi)
900 --without-libffi don't use libffi
901 --with-ecos enable runtime eCos target support
902 --with-system-zlib use installed libz
903 --with-x use the X Window System
904 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
905 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
907 Some influential environment variables:
908 CC C compiler command
909 CFLAGS C compiler flags
910 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
911 nonstandard directory <lib dir>
912 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
913 headers in a nonstandard directory <include dir>
914 CXX C++ compiler command
915 CXXFLAGS C++ compiler flags
916 CXXCPP C++ preprocessor
919 Use these variables to override the choices made by `configure' or to
help
920 it to
find libraries and programs with nonstandard names
/locations.
925 if test "$ac_init_help" = "recursive"; then
926 # If there are subdirs, report their specific --help.
928 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
929 test -d $ac_dir ||
continue
932 if test "$ac_dir" != .
; then
933 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
934 # A "../" for each directory in $ac_dir_suffix.
935 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
937 ac_dir_suffix
= ac_top_builddir
=
941 .
) # No --srcdir option. We are building in place.
943 if test -z "$ac_top_builddir"; then
946 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
948 [\\/]* | ?
:[\\/]* ) # Absolute path.
949 ac_srcdir
=$srcdir$ac_dir_suffix;
950 ac_top_srcdir
=$srcdir ;;
952 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
953 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
956 # Do not use `cd foo && pwd` to compute absolute paths, because
957 # the directories may not exist.
959 .
) ac_abs_builddir
="$ac_dir";;
962 .
) ac_abs_builddir
=`pwd`;;
963 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
964 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
967 case $ac_abs_builddir in
968 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
970 case ${ac_top_builddir}.
in
971 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
972 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
973 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
976 case $ac_abs_builddir in
977 .
) ac_abs_srcdir
=$ac_srcdir;;
980 .
) ac_abs_srcdir
=$ac_abs_builddir;;
981 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
982 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
985 case $ac_abs_builddir in
986 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
988 case $ac_top_srcdir in
989 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
990 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
991 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
996 # Check for guested configure; otherwise get Cygnus style configure.
997 if test -f $ac_srcdir/configure.gnu
; then
999 $SHELL $ac_srcdir/configure.gnu
--help=recursive
1000 elif test -f $ac_srcdir/configure
; then
1002 $SHELL $ac_srcdir/configure
--help=recursive
1003 elif test -f $ac_srcdir/configure.ac ||
1004 test -f $ac_srcdir/configure.
in; then
1006 $ac_configure --help
1008 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1014 test -n "$ac_init_help" && exit 0
1015 if $ac_init_version; then
1017 libjava configure version-unused
1018 generated by GNU Autoconf
2.59
1020 Copyright
(C
) 2003 Free Software Foundation
, Inc.
1021 This configure
script is free software
; the Free Software Foundation
1022 gives unlimited permission to copy
, distribute and modify it.
1028 This file contains any messages produced by compilers while
1029 running configure, to aid debugging if configure makes a mistake.
1031 It was created by libjava $as_me version-unused, which was
1032 generated by GNU Autoconf 2.59. Invocation command line was
1043 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1044 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1045 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1046 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1047 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1049 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1050 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1052 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1053 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1054 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1055 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1056 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1057 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1058 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1062 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1066 test -z "$as_dir" && as_dir
=.
1067 echo "PATH: $as_dir"
1082 # Keep a trace of the command line.
1083 # Strip out --no-create and --no-recursion so they do not pile up.
1084 # Strip out --silent because we don't want to record it for future runs.
1085 # Also quote any args containing shell meta-characters.
1086 # Make two passes to allow for proper duplicate-argument suppression.
1091 ac_must_keep_next
=false
1097 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1098 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1099 |
-silent |
--silent |
--silen |
--sile |
--sil)
1101 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1102 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1105 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1107 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1108 if test $ac_must_keep_next = true
; then
1109 ac_must_keep_next
=false
# Got value, back to normal.
1112 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1113 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1114 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1115 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1116 case "$ac_configure_args0 " in
1117 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1120 -* ) ac_must_keep_next
=true
;;
1123 ac_configure_args
="$ac_configure_args$ac_sep'$ac_arg'"
1124 # Get rid of the leading space.
1130 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1131 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1133 # When interrupted or exit'd, cleanup temporary files, and complete
1134 # config.log. We remove comments because anyway the quotes in there
1135 # would cause problems or look ugly.
1136 # WARNING: Be sure not to use single quotes in there, as some shells,
1137 # such as our DU 5.0 friend, will then `close' the trap.
1138 trap 'exit_status=$?
1139 # Save into config.log some information that might help in debugging.
1144 ## ---------------- ##
1145 ## Cache variables. ##
1146 ## ---------------- ##
1149 # The following way of writing the cache mishandles newlines in values,
1152 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1155 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1156 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1160 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1167 ## ----------------- ##
1168 ## Output variables. ##
1169 ## ----------------- ##
1172 for ac_var in $ac_subst_vars
1174 eval ac_val=$`echo $ac_var`
1175 echo "$ac_var='"'"'$ac_val'"'"'"
1179 if test -n "$ac_subst_files"; then
1186 for ac_var in $ac_subst_files
1188 eval ac_val=$`echo $ac_var`
1189 echo "$ac_var='"'"'$ac_val'"'"'"
1194 if test -s confdefs.h; then
1201 sed "/^$/d" confdefs.h | sort
1204 test "$ac_signal" != 0 &&
1205 echo "$as_me: caught signal $ac_signal"
1206 echo "$as_me: exit $exit_status"
1208 rm -f core *.core &&
1209 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1212 for ac_signal
in 1 2 13 15; do
1213 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1217 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1218 rm -rf conftest
* confdefs.h
1219 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1222 # Predefined preprocessor variables.
1224 cat >>confdefs.h
<<_ACEOF
1225 #define PACKAGE_NAME "$PACKAGE_NAME"
1229 cat >>confdefs.h
<<_ACEOF
1230 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1234 cat >>confdefs.h
<<_ACEOF
1235 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1239 cat >>confdefs.h
<<_ACEOF
1240 #define PACKAGE_STRING "$PACKAGE_STRING"
1244 cat >>confdefs.h
<<_ACEOF
1245 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1249 # Let the site file select an alternate cache file if it wants to.
1250 # Prefer explicitly selected file to automatically selected ones.
1251 if test -z "$CONFIG_SITE"; then
1252 if test "x$prefix" != xNONE
; then
1253 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
1255 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1258 for ac_site_file
in $CONFIG_SITE; do
1259 if test -r "$ac_site_file"; then
1260 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1261 echo "$as_me: loading site script $ac_site_file" >&6;}
1262 sed 's/^/| /' "$ac_site_file" >&5
1267 if test -r "$cache_file"; then
1268 # Some versions of bash will fail to source /dev/null (special
1269 # files actually), so we avoid doing that.
1270 if test -f "$cache_file"; then
1271 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1272 echo "$as_me: loading cache $cache_file" >&6;}
1274 [\\/]* | ?
:[\\/]* ) .
$cache_file;;
1275 *) . .
/$cache_file;;
1279 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1280 echo "$as_me: creating cache $cache_file" >&6;}
1284 # Check that the precious variables saved in the cache have kept the same
1286 ac_cache_corrupted
=false
1287 for ac_var
in `(set) 2>&1 |
1288 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1289 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1290 eval ac_new_set
=\
$ac_env_${ac_var}_set
1291 eval ac_old_val
="\$ac_cv_env_${ac_var}_value"
1292 eval ac_new_val
="\$ac_env_${ac_var}_value"
1293 case $ac_old_set,$ac_new_set in
1295 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1296 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1297 ac_cache_corrupted
=: ;;
1299 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1300 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1301 ac_cache_corrupted
=: ;;
1304 if test "x$ac_old_val" != "x$ac_new_val"; then
1305 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1306 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1307 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1308 echo "$as_me: former value: $ac_old_val" >&2;}
1309 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1310 echo "$as_me: current value: $ac_new_val" >&2;}
1311 ac_cache_corrupted
=:
1314 # Pass precious variables to config.status.
1315 if test "$ac_new_set" = set; then
1317 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1318 ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1319 *) ac_arg
=$ac_var=$ac_new_val ;;
1321 case " $ac_configure_args " in
1322 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1323 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1327 if $ac_cache_corrupted; then
1328 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1329 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1330 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1331 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1332 { (exit 1); exit 1; }; }
1336 ac_cpp
='$CPP $CPPFLAGS'
1337 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1338 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1339 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1371 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1372 if test -f $ac_dir/install-sh
; then
1374 ac_install_sh
="$ac_aux_dir/install-sh -c"
1376 elif test -f $ac_dir/install.sh
; then
1378 ac_install_sh
="$ac_aux_dir/install.sh -c"
1380 elif test -f $ac_dir/shtool
; then
1382 ac_install_sh
="$ac_aux_dir/shtool install -c"
1386 if test -z "$ac_aux_dir"; then
1387 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1388 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1389 { (exit 1); exit 1; }; }
1391 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1392 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1393 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1395 # Make sure we can run config.sub.
1396 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1397 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1398 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1399 { (exit 1); exit 1; }; }
1401 echo "$as_me:$LINENO: checking build system type" >&5
1402 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1403 if test "${ac_cv_build+set}" = set; then
1404 echo $ECHO_N "(cached) $ECHO_C" >&6
1406 ac_cv_build_alias
=$build_alias
1407 test -z "$ac_cv_build_alias" &&
1408 ac_cv_build_alias
=`$ac_config_guess`
1409 test -z "$ac_cv_build_alias" &&
1410 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1411 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1412 { (exit 1); exit 1; }; }
1413 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1414 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1415 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1416 { (exit 1); exit 1; }; }
1419 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1420 echo "${ECHO_T}$ac_cv_build" >&6
1422 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1423 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1424 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1427 case ${build_alias} in
1428 "") build_noncanonical
=${build} ;;
1429 *) build_noncanonical
=${build_alias} ;;
1432 case ${host_alias} in
1433 "") host_noncanonical
=${build_noncanonical} ;;
1434 *) host_noncanonical
=${host_alias} ;;
1437 case ${target_alias} in
1438 "") target_noncanonical
=${host_noncanonical} ;;
1439 *) target_noncanonical
=${target_alias} ;;
1443 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1444 # have matching libraries, they should use host libraries: Makefile.tpl
1445 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1446 # However, they still use the build modules, because the corresponding
1447 # host modules (e.g. bison) are only built for the host when bootstrap
1449 # - build_subdir is where we find build modules, and never changes.
1450 # - build_libsubdir is where we find build libraries, and can be overridden.
1452 # Prefix 'build-' so this never conflicts with target_subdir.
1453 build_subdir
="build-${build_noncanonical}"
1455 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1456 if test "${with_build_libsubdir+set}" = set; then
1457 withval
="$with_build_libsubdir"
1458 build_libsubdir
="$withval"
1460 build_libsubdir
="$build_subdir"
1462 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1463 if ( test $srcdir = .
&& test -d gcc
) \
1464 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
1465 host_subdir
="host-${host_noncanonical}"
1470 target_subdir
=${target_noncanonical}
1473 # We use these options to decide which functions to include.
1475 # Check whether --with-target-subdir or --without-target-subdir was given.
1476 if test "${with_target_subdir+set}" = set; then
1477 withval
="$with_target_subdir"
1481 # We may get other options which we don't document:
1482 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1484 # Find the rest of the source tree framework.
1485 # Default to --enable-multilib
1486 # Check whether --enable-multilib or --disable-multilib was given.
1487 if test "${enable_multilib+set}" = set; then
1488 enableval
="$enable_multilib"
1489 case "$enableval" in
1490 yes) multilib
=yes ;;
1492 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1493 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1494 { (exit 1); exit 1; }; } ;;
1500 # We may get other options which we leave undocumented:
1501 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1502 # See config-ml.in if you want the gory details.
1504 if test "$srcdir" = "."; then
1505 if test "$with_target_subdir" != "."; then
1506 multi_basedir
="$srcdir/$with_multisrctop../.."
1508 multi_basedir
="$srcdir/$with_multisrctop.."
1511 multi_basedir
="$srcdir/.."
1515 # Even if the default multilib is not a cross compilation,
1516 # it may be that some of the other multilibs are.
1517 if test $cross_compiling = no
&& test $multilib = yes \
1518 && test "x${with_multisubdir}" != x
; then
1519 cross_compiling
=maybe
1522 ac_config_commands
="$ac_config_commands default-1"
1525 echo "$as_me:$LINENO: checking host system type" >&5
1526 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1527 if test "${ac_cv_host+set}" = set; then
1528 echo $ECHO_N "(cached) $ECHO_C" >&6
1530 ac_cv_host_alias
=$host_alias
1531 test -z "$ac_cv_host_alias" &&
1532 ac_cv_host_alias
=$ac_cv_build_alias
1533 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1534 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1535 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1536 { (exit 1); exit 1; }; }
1539 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1540 echo "${ECHO_T}$ac_cv_host" >&6
1542 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1543 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1544 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1547 echo "$as_me:$LINENO: checking target system type" >&5
1548 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1549 if test "${ac_cv_target+set}" = set; then
1550 echo $ECHO_N "(cached) $ECHO_C" >&6
1552 ac_cv_target_alias
=$target_alias
1553 test "x$ac_cv_target_alias" = "x" &&
1554 ac_cv_target_alias
=$ac_cv_host_alias
1555 ac_cv_target
=`$ac_config_sub $ac_cv_target_alias` ||
1556 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1557 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1558 { (exit 1); exit 1; }; }
1561 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1562 echo "${ECHO_T}$ac_cv_target" >&6
1563 target
=$ac_cv_target
1564 target_cpu
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1565 target_vendor
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1566 target_os
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1569 # The aliases save the names the user supplied, while $host etc.
1570 # will get canonicalized.
1571 test -n "$target_alias" &&
1572 test "$program_prefix$program_suffix$program_transform_name" = \
1574 program_prefix
=${target_alias}-
1575 case ${build_alias} in
1576 "") build_noncanonical
=${build} ;;
1577 *) build_noncanonical
=${build_alias} ;;
1580 case ${target_alias} in
1581 "") target_noncanonical
=${host_noncanonical} ;;
1582 *) target_noncanonical
=${target_alias} ;;
1588 # This works around the fact that libtool configuration may change LD
1589 # for this particular configuration, but some shells, instead of
1590 # keeping the changes in LD private, export them just because LD is
1592 ORIGINAL_LD_FOR_MULTILIBS
=$LD
1594 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1595 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1597 if test "$LN_S" = "ln -s"; then
1598 echo "$as_me:$LINENO: result: yes" >&5
1599 echo "${ECHO_T}yes" >&6
1601 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1602 echo "${ECHO_T}no, using $LN_S" >&6
1606 # This works around an automake problem.
1607 mkinstalldirs
="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1611 # Check whether --with-cross-host or --without-cross-host was given.
1612 if test "${with_cross_host+set}" = set; then
1613 withval
="$with_cross_host"
1618 # Check whether --with-newlib or --without-newlib was given.
1619 if test "${with_newlib+set}" = set; then
1620 withval
="$with_newlib"
1624 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1625 if test "${enable_version_specific_runtime_libs+set}" = set; then
1626 enableval
="$enable_version_specific_runtime_libs"
1627 case "$enableval" in
1628 yes) version_specific_libs
=yes ;;
1629 no
) version_specific_libs
=no
;;
1630 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1631 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1632 { (exit 1); exit 1; }; };;
1635 version_specific_libs
=no
1639 # Check whether --enable-plugin or --disable-plugin was given.
1640 if test "${enable_plugin+set}" = set; then
1641 enableval
="$enable_plugin"
1642 case "$enableval" in
1643 yes) plugin_enabled
=yes ;;
1644 no
) plugin_enabled
=no
;;
1645 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable plugin" >&5
1646 echo "$as_me: error: Unknown argument to enable/disable plugin" >&2;}
1647 { (exit 1); exit 1; }; };;
1654 # Check whether --enable-gconf-peer or --disable-gconf-peer was given.
1655 if test "${enable_gconf_peer+set}" = set; then
1656 enableval
="$enable_gconf_peer"
1657 case "$enableval" in
1658 yes) gconf_enabled
=yes ;;
1659 no
) gconf_enabled
=no
;;
1660 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable gconf-peer" >&5
1661 echo "$as_me: error: Unknown argument to enable/disable gconf-peer" >&2;}
1662 { (exit 1); exit 1; }; };;
1669 # Check whether --enable-java-maintainer-mode or --disable-java-maintainer-mode was given.
1670 if test "${enable_java_maintainer_mode+set}" = set; then
1671 enableval
="$enable_java_maintainer_mode"
1676 if test "$enable_java_maintainer_mode" = yes; then
1677 JAVA_MAINTAINER_MODE_TRUE
=
1678 JAVA_MAINTAINER_MODE_FALSE
='#'
1680 JAVA_MAINTAINER_MODE_TRUE
='#'
1681 JAVA_MAINTAINER_MODE_FALSE
=
1685 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1688 # (1) We use an abnormal CXX (without library references), so we
1689 # must cache it under a different name.
1690 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1691 # the non-multilib-adjusted value will be used in multilibs.
1692 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1693 # (4) As another side effect, automake doesn't automatically include them
1695 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1696 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1697 # used in later tests. This may not be necessary in libjava; I don't know.
1700 save_CXXFLAGS
="$CXXFLAGS"
1701 CXXFLAGS
="$CXXFLAGS -fno-builtin"
1703 ac_cpp
='$CPP $CPPFLAGS'
1704 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1705 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1706 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1707 if test -n "$ac_tool_prefix"; then
1708 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1709 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1710 echo "$as_me:$LINENO: checking for $ac_word" >&5
1711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1712 if test "${ac_cv_prog_CC+set}" = set; then
1713 echo $ECHO_N "(cached) $ECHO_C" >&6
1715 if test -n "$CC"; then
1716 ac_cv_prog_CC
="$CC" # Let the user override the test.
1718 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1722 test -z "$as_dir" && as_dir
=.
1723 for ac_exec_ext
in '' $ac_executable_extensions; do
1724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1725 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1735 if test -n "$CC"; then
1736 echo "$as_me:$LINENO: result: $CC" >&5
1737 echo "${ECHO_T}$CC" >&6
1739 echo "$as_me:$LINENO: result: no" >&5
1740 echo "${ECHO_T}no" >&6
1744 if test -z "$ac_cv_prog_CC"; then
1746 # Extract the first word of "gcc", so it can be a program name with args.
1747 set dummy gcc
; ac_word
=$2
1748 echo "$as_me:$LINENO: checking for $ac_word" >&5
1749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1750 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1751 echo $ECHO_N "(cached) $ECHO_C" >&6
1753 if test -n "$ac_ct_CC"; then
1754 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1756 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1760 test -z "$as_dir" && as_dir
=.
1761 for ac_exec_ext
in '' $ac_executable_extensions; do
1762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1763 ac_cv_prog_ac_ct_CC
="gcc"
1764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1772 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1773 if test -n "$ac_ct_CC"; then
1774 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1775 echo "${ECHO_T}$ac_ct_CC" >&6
1777 echo "$as_me:$LINENO: result: no" >&5
1778 echo "${ECHO_T}no" >&6
1786 if test -z "$CC"; then
1787 if test -n "$ac_tool_prefix"; then
1788 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1789 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1790 echo "$as_me:$LINENO: checking for $ac_word" >&5
1791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1792 if test "${ac_cv_prog_CC+set}" = set; then
1793 echo $ECHO_N "(cached) $ECHO_C" >&6
1795 if test -n "$CC"; then
1796 ac_cv_prog_CC
="$CC" # Let the user override the test.
1798 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1802 test -z "$as_dir" && as_dir
=.
1803 for ac_exec_ext
in '' $ac_executable_extensions; do
1804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1805 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1815 if test -n "$CC"; then
1816 echo "$as_me:$LINENO: result: $CC" >&5
1817 echo "${ECHO_T}$CC" >&6
1819 echo "$as_me:$LINENO: result: no" >&5
1820 echo "${ECHO_T}no" >&6
1824 if test -z "$ac_cv_prog_CC"; then
1826 # Extract the first word of "cc", so it can be a program name with args.
1827 set dummy cc
; ac_word
=$2
1828 echo "$as_me:$LINENO: checking for $ac_word" >&5
1829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1830 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1831 echo $ECHO_N "(cached) $ECHO_C" >&6
1833 if test -n "$ac_ct_CC"; then
1834 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1836 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1840 test -z "$as_dir" && as_dir
=.
1841 for ac_exec_ext
in '' $ac_executable_extensions; do
1842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1843 ac_cv_prog_ac_ct_CC
="cc"
1844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1852 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1853 if test -n "$ac_ct_CC"; then
1854 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1855 echo "${ECHO_T}$ac_ct_CC" >&6
1857 echo "$as_me:$LINENO: result: no" >&5
1858 echo "${ECHO_T}no" >&6
1867 if test -z "$CC"; then
1868 # Extract the first word of "cc", so it can be a program name with args.
1869 set dummy cc
; ac_word
=$2
1870 echo "$as_me:$LINENO: checking for $ac_word" >&5
1871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1872 if test "${ac_cv_prog_CC+set}" = set; then
1873 echo $ECHO_N "(cached) $ECHO_C" >&6
1875 if test -n "$CC"; then
1876 ac_cv_prog_CC
="$CC" # Let the user override the test.
1879 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1883 test -z "$as_dir" && as_dir
=.
1884 for ac_exec_ext
in '' $ac_executable_extensions; do
1885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1886 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1887 ac_prog_rejected
=yes
1891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1897 if test $ac_prog_rejected = yes; then
1898 # We found a bogon in the path, so make sure we never use it.
1899 set dummy
$ac_cv_prog_CC
1901 if test $# != 0; then
1902 # We chose a different compiler from the bogus one.
1903 # However, it has the same basename, so the bogon will be chosen
1904 # first if we set CC to just the basename; use the full file name.
1906 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1912 if test -n "$CC"; then
1913 echo "$as_me:$LINENO: result: $CC" >&5
1914 echo "${ECHO_T}$CC" >&6
1916 echo "$as_me:$LINENO: result: no" >&5
1917 echo "${ECHO_T}no" >&6
1921 if test -z "$CC"; then
1922 if test -n "$ac_tool_prefix"; then
1925 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1926 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1927 echo "$as_me:$LINENO: checking for $ac_word" >&5
1928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1929 if test "${ac_cv_prog_CC+set}" = set; then
1930 echo $ECHO_N "(cached) $ECHO_C" >&6
1932 if test -n "$CC"; then
1933 ac_cv_prog_CC
="$CC" # Let the user override the test.
1935 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1939 test -z "$as_dir" && as_dir
=.
1940 for ac_exec_ext
in '' $ac_executable_extensions; do
1941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1942 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1952 if test -n "$CC"; then
1953 echo "$as_me:$LINENO: result: $CC" >&5
1954 echo "${ECHO_T}$CC" >&6
1956 echo "$as_me:$LINENO: result: no" >&5
1957 echo "${ECHO_T}no" >&6
1960 test -n "$CC" && break
1963 if test -z "$CC"; then
1967 # Extract the first word of "$ac_prog", so it can be a program name with args.
1968 set dummy
$ac_prog; ac_word
=$2
1969 echo "$as_me:$LINENO: checking for $ac_word" >&5
1970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1971 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1974 if test -n "$ac_ct_CC"; then
1975 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1977 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1981 test -z "$as_dir" && as_dir
=.
1982 for ac_exec_ext
in '' $ac_executable_extensions; do
1983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1984 ac_cv_prog_ac_ct_CC
="$ac_prog"
1985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1993 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1994 if test -n "$ac_ct_CC"; then
1995 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1996 echo "${ECHO_T}$ac_ct_CC" >&6
1998 echo "$as_me:$LINENO: result: no" >&5
1999 echo "${ECHO_T}no" >&6
2002 test -n "$ac_ct_CC" && break
2011 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2012 See \`config.log' for more details." >&5
2013 echo "$as_me: error: no acceptable C compiler found in \$PATH
2014 See \`config.log' for more details." >&2;}
2015 { (exit 1); exit 1; }; }
2017 # Provide some information about the compiler.
2018 echo "$as_me:$LINENO:" \
2019 "checking for C compiler version" >&5
2020 ac_compiler
=`set X $ac_compile; echo $2`
2021 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2022 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025 (exit $ac_status); }
2026 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2027 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030 (exit $ac_status); }
2031 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2032 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035 (exit $ac_status); }
2037 cat >conftest.
$ac_ext <<_ACEOF
2040 cat confdefs.h
>>conftest.
$ac_ext
2041 cat >>conftest.
$ac_ext <<_ACEOF
2042 /* end confdefs.h. */
2053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2054 (eval $ac_link) 2>&5
2056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057 (exit $ac_status); }; then
2063 if test x
$gcc_no_link = xyes
; then
2064 # Setting cross_compile will disable run tests; it will
2065 # also disable AC_CHECK_FILE but that's generally
2066 # correct if we can't link.
2070 cat >conftest.
$ac_ext <<_ACEOF
2073 cat confdefs.h
>>conftest.
$ac_ext
2074 cat >>conftest.
$ac_ext <<_ACEOF
2075 /* end confdefs.h. */
2085 ac_clean_files_save
=$ac_clean_files
2086 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2087 # Try to create an executable without -o first, disregard a.out.
2088 # It will help us diagnose broken compilers, and finding out an intuition
2090 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2091 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2092 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2093 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2094 (eval $ac_link_default) 2>&5
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }; then
2098 # Find the output, starting from the most likely. This scheme is
2099 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2102 # Be careful to initialize this variable, since it used to be cached.
2103 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2105 # b.out is created by i960 compilers.
2106 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2108 test -f "$ac_file" ||
continue
2110 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2113 # This is the source file.
2116 # We found the default executable, but exeext='' is most
2120 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2121 # FIXME: I believe we export ac_cv_exeext for Libtool,
2122 # but it would be cool to find out if it's true. Does anybody
2123 # maintain Libtool? --akim.
2131 echo "$as_me: failed program was:" >&5
2132 sed 's/^/| /' conftest.
$ac_ext >&5
2134 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2135 See \`config.log' for more details." >&5
2136 echo "$as_me: error: C compiler cannot create executables
2137 See \`config.log' for more details." >&2;}
2138 { (exit 77); exit 77; }; }
2141 ac_exeext
=$ac_cv_exeext
2142 echo "$as_me:$LINENO: result: $ac_file" >&5
2143 echo "${ECHO_T}$ac_file" >&6
2145 # Check the compiler produces executables we can run. If not, either
2146 # the compiler is broken, or we cross compile.
2147 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2148 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2149 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2150 # If not cross compiling, check that we can run a simple program.
2151 if test "$cross_compiling" != yes; then
2152 if { ac_try
='./$ac_file'
2153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }; }; then
2160 if test "$cross_compiling" = maybe
; then
2163 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2164 If you meant to cross compile, use \`--host'.
2165 See \`config.log' for more details." >&5
2166 echo "$as_me: error: cannot run C compiled programs.
2167 If you meant to cross compile, use \`--host'.
2168 See \`config.log' for more details." >&2;}
2169 { (exit 1); exit 1; }; }
2173 echo "$as_me:$LINENO: result: yes" >&5
2174 echo "${ECHO_T}yes" >&6
2176 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2177 ac_clean_files
=$ac_clean_files_save
2178 # Check the compiler produces executables we can run. If not, either
2179 # the compiler is broken, or we cross compile.
2180 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2181 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2182 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2183 echo "${ECHO_T}$cross_compiling" >&6
2185 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2186 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2188 (eval $ac_link) 2>&5
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }; then
2192 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2193 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2194 # work properly (i.e., refer to `conftest.exe'), while it won't with
2196 for ac_file
in conftest.exe conftest conftest.
*; do
2197 test -f "$ac_file" ||
continue
2199 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2200 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2207 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2208 See \`config.log' for more details." >&5
2209 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2210 See \`config.log' for more details." >&2;}
2211 { (exit 1); exit 1; }; }
2214 rm -f conftest
$ac_cv_exeext
2215 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2216 echo "${ECHO_T}$ac_cv_exeext" >&6
2218 rm -f conftest.
$ac_ext
2219 EXEEXT
=$ac_cv_exeext
2222 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2223 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2224 if test "${ac_cv_objext+set}" = set; then
2225 echo $ECHO_N "(cached) $ECHO_C" >&6
2227 cat >conftest.
$ac_ext <<_ACEOF
2230 cat confdefs.h
>>conftest.
$ac_ext
2231 cat >>conftest.
$ac_ext <<_ACEOF
2232 /* end confdefs.h. */
2242 rm -f conftest.o conftest.obj
2243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2244 (eval $ac_compile) 2>&5
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); }; then
2248 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2250 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2251 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2256 echo "$as_me: failed program was:" >&5
2257 sed 's/^/| /' conftest.
$ac_ext >&5
2259 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2260 See \`config.log' for more details." >&5
2261 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2262 See \`config.log' for more details." >&2;}
2263 { (exit 1); exit 1; }; }
2266 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2268 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2269 echo "${ECHO_T}$ac_cv_objext" >&6
2270 OBJEXT
=$ac_cv_objext
2272 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2273 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2274 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2275 echo $ECHO_N "(cached) $ECHO_C" >&6
2277 cat >conftest.
$ac_ext <<_ACEOF
2280 cat confdefs.h
>>conftest.
$ac_ext
2281 cat >>conftest.
$ac_ext <<_ACEOF
2282 /* end confdefs.h. */
2295 rm -f conftest.
$ac_objext
2296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2297 (eval $ac_compile) 2>conftest.er1
2299 grep -v '^ *+' conftest.er1
>conftest.err
2301 cat conftest.err
>&5
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); } &&
2304 { ac_try
='test -z "$ac_c_werror_flag"
2305 || test ! -s conftest.err'
2306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310 (exit $ac_status); }; } &&
2311 { ac_try
='test -s conftest.$ac_objext'
2312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); }; }; then
2319 echo "$as_me: failed program was:" >&5
2320 sed 's/^/| /' conftest.
$ac_ext >&5
2324 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2325 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2328 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2329 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2330 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2331 ac_test_CFLAGS
=${CFLAGS+set}
2332 ac_save_CFLAGS
=$CFLAGS
2334 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2335 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2336 if test "${ac_cv_prog_cc_g+set}" = set; then
2337 echo $ECHO_N "(cached) $ECHO_C" >&6
2339 cat >conftest.
$ac_ext <<_ACEOF
2342 cat confdefs.h
>>conftest.
$ac_ext
2343 cat >>conftest.
$ac_ext <<_ACEOF
2344 /* end confdefs.h. */
2354 rm -f conftest.
$ac_objext
2355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2356 (eval $ac_compile) 2>conftest.er1
2358 grep -v '^ *+' conftest.er1
>conftest.err
2360 cat conftest.err
>&5
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); } &&
2363 { ac_try
='test -z "$ac_c_werror_flag"
2364 || test ! -s conftest.err'
2365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; } &&
2370 { ac_try
='test -s conftest.$ac_objext'
2371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }; }; then
2378 echo "$as_me: failed program was:" >&5
2379 sed 's/^/| /' conftest.
$ac_ext >&5
2383 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2385 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2386 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2387 if test "$ac_test_CFLAGS" = set; then
2388 CFLAGS
=$ac_save_CFLAGS
2389 elif test $ac_cv_prog_cc_g = yes; then
2390 if test "$GCC" = yes; then
2396 if test "$GCC" = yes; then
2402 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2403 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2404 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2405 echo $ECHO_N "(cached) $ECHO_C" >&6
2407 ac_cv_prog_cc_stdc
=no
2409 cat >conftest.
$ac_ext <<_ACEOF
2412 cat confdefs.h
>>conftest.
$ac_ext
2413 cat >>conftest.
$ac_ext <<_ACEOF
2414 /* end confdefs.h. */
2417 #include <sys/types.h>
2418 #include <sys/stat.h>
2419 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2420 struct buf { int x; };
2421 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2422 static char *e (p, i)
2428 static char *f (char * (*g) (char **, int), char **p, ...)
2433 s = g (p, va_arg (v,int));
2438 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2439 function prototypes and stuff, but not '\xHH' hex character constants.
2440 These don't provoke an error unfortunately, instead are silently treated
2441 as 'x'. The following induces an error, until -std1 is added to get
2442 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2443 array size at least. It's necessary to write '\x00'==0 to get something
2444 that's true only with -std1. */
2445 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2447 int test (int i, double x);
2448 struct s1 {int (*f) (int a);};
2449 struct s2 {int (*f) (double a);};
2450 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2456 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2461 # Don't try gcc -ansi; that turns off useful extensions and
2462 # breaks some systems' header files.
2463 # AIX -qlanglvl=ansi
2464 # Ultrix and OSF/1 -std1
2465 # HP-UX 10.20 and later -Ae
2466 # HP-UX older versions -Aa -D_HPUX_SOURCE
2467 # SVR4 -Xc -D__EXTENSIONS__
2468 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2470 CC
="$ac_save_CC $ac_arg"
2471 rm -f conftest.
$ac_objext
2472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2473 (eval $ac_compile) 2>conftest.er1
2475 grep -v '^ *+' conftest.er1
>conftest.err
2477 cat conftest.err
>&5
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); } &&
2480 { ac_try
='test -z "$ac_c_werror_flag"
2481 || test ! -s conftest.err'
2482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); }; } &&
2487 { ac_try
='test -s conftest.$ac_objext'
2488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); }; }; then
2493 ac_cv_prog_cc_stdc
=$ac_arg
2496 echo "$as_me: failed program was:" >&5
2497 sed 's/^/| /' conftest.
$ac_ext >&5
2500 rm -f conftest.err conftest.
$ac_objext
2502 rm -f conftest.
$ac_ext conftest.
$ac_objext
2507 case "x$ac_cv_prog_cc_stdc" in
2509 echo "$as_me:$LINENO: result: none needed" >&5
2510 echo "${ECHO_T}none needed" >&6 ;;
2512 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2513 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2514 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2517 # Some people use a C++ compiler to compile C. Since we use `exit',
2518 # in C++ we need to declare it. In case someone uses the same compiler
2519 # for both compiling C and C++ we need to have the C++ compiler decide
2520 # the declaration of exit, since it's the most demanding environment.
2521 cat >conftest.
$ac_ext <<_ACEOF
2526 rm -f conftest.
$ac_objext
2527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2528 (eval $ac_compile) 2>conftest.er1
2530 grep -v '^ *+' conftest.er1
>conftest.err
2532 cat conftest.err
>&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); } &&
2535 { ac_try
='test -z "$ac_c_werror_flag"
2536 || test ! -s conftest.err'
2537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }; } &&
2542 { ac_try
='test -s conftest.$ac_objext'
2543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }; }; then
2548 for ac_declaration
in \
2550 'extern "C" void std::exit (int) throw (); using std::exit;' \
2551 'extern "C" void std::exit (int); using std::exit;' \
2552 'extern "C" void exit (int) throw ();' \
2553 'extern "C" void exit (int);' \
2556 cat >conftest.
$ac_ext <<_ACEOF
2559 cat confdefs.h
>>conftest.
$ac_ext
2560 cat >>conftest.
$ac_ext <<_ACEOF
2561 /* end confdefs.h. */
2572 rm -f conftest.
$ac_objext
2573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2574 (eval $ac_compile) 2>conftest.er1
2576 grep -v '^ *+' conftest.er1
>conftest.err
2578 cat conftest.err
>&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); } &&
2581 { ac_try
='test -z "$ac_c_werror_flag"
2582 || test ! -s conftest.err'
2583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }; } &&
2588 { ac_try
='test -s conftest.$ac_objext'
2589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; }; then
2596 echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.
$ac_ext >&5
2601 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2602 cat >conftest.
$ac_ext <<_ACEOF
2605 cat confdefs.h
>>conftest.
$ac_ext
2606 cat >>conftest.
$ac_ext <<_ACEOF
2607 /* end confdefs.h. */
2617 rm -f conftest.
$ac_objext
2618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2619 (eval $ac_compile) 2>conftest.er1
2621 grep -v '^ *+' conftest.er1
>conftest.err
2623 cat conftest.err
>&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); } &&
2626 { ac_try
='test -z "$ac_c_werror_flag"
2627 || test ! -s conftest.err'
2628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); }; } &&
2633 { ac_try
='test -s conftest.$ac_objext'
2634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; }; then
2641 echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.
$ac_ext >&5
2645 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2648 if test -n "$ac_declaration"; then
2649 echo '#ifdef __cplusplus' >>confdefs.h
2650 echo $ac_declaration >>confdefs.h
2651 echo '#endif' >>confdefs.h
2655 echo "$as_me: failed program was:" >&5
2656 sed 's/^/| /' conftest.
$ac_ext >&5
2659 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2661 ac_cpp
='$CPP $CPPFLAGS'
2662 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2663 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2664 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2667 ac_cpp
='$CXXCPP $CPPFLAGS'
2668 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2669 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2670 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2671 if test -n "$ac_tool_prefix"; then
2672 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
2674 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2675 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2676 echo "$as_me:$LINENO: checking for $ac_word" >&5
2677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2678 if test "${ac_cv_prog_CXX+set}" = set; then
2679 echo $ECHO_N "(cached) $ECHO_C" >&6
2681 if test -n "$CXX"; then
2682 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
2684 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2688 test -z "$as_dir" && as_dir
=.
2689 for ac_exec_ext
in '' $ac_executable_extensions; do
2690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2691 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
2692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2701 if test -n "$CXX"; then
2702 echo "$as_me:$LINENO: result: $CXX" >&5
2703 echo "${ECHO_T}$CXX" >&6
2705 echo "$as_me:$LINENO: result: no" >&5
2706 echo "${ECHO_T}no" >&6
2709 test -n "$CXX" && break
2712 if test -z "$CXX"; then
2714 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
2716 # Extract the first word of "$ac_prog", so it can be a program name with args.
2717 set dummy
$ac_prog; ac_word
=$2
2718 echo "$as_me:$LINENO: checking for $ac_word" >&5
2719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2720 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2721 echo $ECHO_N "(cached) $ECHO_C" >&6
2723 if test -n "$ac_ct_CXX"; then
2724 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
2726 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2730 test -z "$as_dir" && as_dir
=.
2731 for ac_exec_ext
in '' $ac_executable_extensions; do
2732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2733 ac_cv_prog_ac_ct_CXX
="$ac_prog"
2734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2742 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
2743 if test -n "$ac_ct_CXX"; then
2744 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2745 echo "${ECHO_T}$ac_ct_CXX" >&6
2747 echo "$as_me:$LINENO: result: no" >&5
2748 echo "${ECHO_T}no" >&6
2751 test -n "$ac_ct_CXX" && break
2753 test -n "$ac_ct_CXX" || ac_ct_CXX
="g++"
2759 # Provide some information about the compiler.
2760 echo "$as_me:$LINENO:" \
2761 "checking for C++ compiler version" >&5
2762 ac_compiler
=`set X $ac_compile; echo $2`
2763 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2764 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); }
2768 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2769 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); }
2773 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2774 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }
2779 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2780 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2781 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2784 cat >conftest.
$ac_ext <<_ACEOF
2787 cat confdefs.h
>>conftest.
$ac_ext
2788 cat >>conftest.
$ac_ext <<_ACEOF
2789 /* end confdefs.h. */
2802 rm -f conftest.
$ac_objext
2803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2804 (eval $ac_compile) 2>conftest.er1
2806 grep -v '^ *+' conftest.er1
>conftest.err
2808 cat conftest.err
>&5
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); } &&
2811 { ac_try
='test -z "$ac_cxx_werror_flag"
2812 || test ! -s conftest.err'
2813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); }; } &&
2818 { ac_try
='test -s conftest.$ac_objext'
2819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); }; }; then
2826 echo "$as_me: failed program was:" >&5
2827 sed 's/^/| /' conftest.
$ac_ext >&5
2831 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2832 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
2835 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2836 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2837 GXX
=`test $ac_compiler_gnu = yes && echo yes`
2838 ac_test_CXXFLAGS
=${CXXFLAGS+set}
2839 ac_save_CXXFLAGS
=$CXXFLAGS
2841 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2842 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2843 if test "${ac_cv_prog_cxx_g+set}" = set; then
2844 echo $ECHO_N "(cached) $ECHO_C" >&6
2846 cat >conftest.
$ac_ext <<_ACEOF
2849 cat confdefs.h
>>conftest.
$ac_ext
2850 cat >>conftest.
$ac_ext <<_ACEOF
2851 /* end confdefs.h. */
2861 rm -f conftest.
$ac_objext
2862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2863 (eval $ac_compile) 2>conftest.er1
2865 grep -v '^ *+' conftest.er1
>conftest.err
2867 cat conftest.err
>&5
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); } &&
2870 { ac_try
='test -z "$ac_cxx_werror_flag"
2871 || test ! -s conftest.err'
2872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); }; } &&
2877 { ac_try
='test -s conftest.$ac_objext'
2878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }; }; then
2883 ac_cv_prog_cxx_g
=yes
2885 echo "$as_me: failed program was:" >&5
2886 sed 's/^/| /' conftest.
$ac_ext >&5
2890 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2892 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2893 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2894 if test "$ac_test_CXXFLAGS" = set; then
2895 CXXFLAGS
=$ac_save_CXXFLAGS
2896 elif test $ac_cv_prog_cxx_g = yes; then
2897 if test "$GXX" = yes; then
2903 if test "$GXX" = yes; then
2909 for ac_declaration
in \
2911 'extern "C" void std::exit (int) throw (); using std::exit;' \
2912 'extern "C" void std::exit (int); using std::exit;' \
2913 'extern "C" void exit (int) throw ();' \
2914 'extern "C" void exit (int);' \
2917 cat >conftest.
$ac_ext <<_ACEOF
2920 cat confdefs.h
>>conftest.
$ac_ext
2921 cat >>conftest.
$ac_ext <<_ACEOF
2922 /* end confdefs.h. */
2933 rm -f conftest.
$ac_objext
2934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2935 (eval $ac_compile) 2>conftest.er1
2937 grep -v '^ *+' conftest.er1
>conftest.err
2939 cat conftest.err
>&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); } &&
2942 { ac_try
='test -z "$ac_cxx_werror_flag"
2943 || test ! -s conftest.err'
2944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); }; } &&
2949 { ac_try
='test -s conftest.$ac_objext'
2950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); }; }; then
2957 echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.
$ac_ext >&5
2962 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2963 cat >conftest.
$ac_ext <<_ACEOF
2966 cat confdefs.h
>>conftest.
$ac_ext
2967 cat >>conftest.
$ac_ext <<_ACEOF
2968 /* end confdefs.h. */
2978 rm -f conftest.
$ac_objext
2979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2980 (eval $ac_compile) 2>conftest.er1
2982 grep -v '^ *+' conftest.er1
>conftest.err
2984 cat conftest.err
>&5
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); } &&
2987 { ac_try
='test -z "$ac_cxx_werror_flag"
2988 || test ! -s conftest.err'
2989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); }; } &&
2994 { ac_try
='test -s conftest.$ac_objext'
2995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); }; }; then
3002 echo "$as_me: failed program was:" >&5
3003 sed 's/^/| /' conftest.
$ac_ext >&5
3006 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3009 if test -n "$ac_declaration"; then
3010 echo '#ifdef __cplusplus' >>confdefs.h
3011 echo $ac_declaration >>confdefs.h
3012 echo '#endif' >>confdefs.h
3016 ac_cpp
='$CPP $CPPFLAGS'
3017 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3018 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3019 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3021 CXXFLAGS
="$save_CXXFLAGS"
3027 am__api_version
="1.9"
3028 # Find a good install program. We prefer a C program (faster),
3029 # so one script is as good as another. But avoid the broken or
3030 # incompatible versions:
3031 # SysV /etc/install, /usr/sbin/install
3032 # SunOS /usr/etc/install
3033 # IRIX /sbin/install
3035 # AmigaOS /C/install, which installs bootblocks on floppy discs
3036 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3037 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3038 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3039 # OS/2's system install, which has a completely different semantic
3040 # ./install, which can be erroneously created by make from ./install.sh.
3041 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3042 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3043 if test -z "$INSTALL"; then
3044 if test "${ac_cv_path_install+set}" = set; then
3045 echo $ECHO_N "(cached) $ECHO_C" >&6
3047 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3051 test -z "$as_dir" && as_dir
=.
3052 # Account for people who put trailing slashes in PATH elements.
3054 .
/ | .
// |
/cC
/* | \
3055 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3056 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3059 # OSF1 and SCO ODT 3.0 have their own names for install.
3060 # Don't use installbsd from OSF since it installs stuff as root
3062 for ac_prog
in ginstall scoinst
install; do
3063 for ac_exec_ext
in '' $ac_executable_extensions; do
3064 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3065 if test $ac_prog = install &&
3066 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3067 # AIX install. It has an incompatible calling convention.
3069 elif test $ac_prog = install &&
3070 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3071 # program-specific install script used by HP pwplus--don't use.
3074 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3086 if test "${ac_cv_path_install+set}" = set; then
3087 INSTALL
=$ac_cv_path_install
3089 # As a last resort, use the slow shell script. We don't cache a
3090 # path for INSTALL within a source directory, because that will
3091 # break other packages using the cache if that directory is
3092 # removed, or if the path is relative.
3093 INSTALL
=$ac_install_sh
3096 echo "$as_me:$LINENO: result: $INSTALL" >&5
3097 echo "${ECHO_T}$INSTALL" >&6
3099 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3100 # It thinks the first close brace ends the variable substitution.
3101 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3103 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3105 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3107 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3108 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3111 echo timestamp
> conftest.
file
3112 # Do `set' in a subshell so we don't clobber the current shell's
3113 # arguments. Must try -L first in case configure is actually a
3114 # symlink; some systems play weird games with the mod time of symlinks
3115 # (eg FreeBSD returns the mod time of the symlink's containing
3118 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3119 if test "$*" = "X"; then
3121 set X
`ls -t $srcdir/configure conftest.file`
3124 if test "$*" != "X $srcdir/configure conftest.file" \
3125 && test "$*" != "X conftest.file $srcdir/configure"; then
3127 # If neither matched, then we have a broken ls. This can happen
3128 # if, for instance, CONFIG_SHELL is bash and it inherits a
3129 # broken ls alias from the environment. This has actually
3130 # happened. Such a system could not be considered "sane".
3131 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3132 alias in your environment" >&5
3133 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3134 alias in your environment" >&2;}
3135 { (exit 1); exit 1; }; }
3138 test "$2" = conftest.
file
3144 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3145 Check your system clock" >&5
3146 echo "$as_me: error: newly created file is older than distributed files!
3147 Check your system clock" >&2;}
3148 { (exit 1); exit 1; }; }
3150 echo "$as_me:$LINENO: result: yes" >&5
3151 echo "${ECHO_T}yes" >&6
3152 test "$program_prefix" != NONE
&&
3153 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
3154 # Use a double $ so make ignores it.
3155 test "$program_suffix" != NONE
&&
3156 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
3157 # Double any \ or $. echo might interpret backslashes.
3158 # By default was `s,x,x', remove it if useless.
3159 cat <<\_ACEOF
>conftest.
sed
3160 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
3162 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
3165 # expand $ac_aux_dir to an absolute path
3166 am_aux_dir
=`cd $ac_aux_dir && pwd`
3168 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
3169 # Use eval to expand $SHELL
3170 if eval "$MISSING --run true"; then
3171 am_missing_run
="$MISSING --run "
3174 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3175 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3178 if mkdir
-p --version .
>/dev
/null
2>&1 && test ! -d .
/--version; then
3179 # We used to keeping the `.' as first argument, in order to
3180 # allow $(mkdir_p) to be used without argument. As in
3181 # $(mkdir_p) $(somedir)
3182 # where $(somedir) is conditionally defined. However this is wrong
3184 # 1. if the package is installed by a user who cannot write `.'
3185 # make install will fail,
3186 # 2. the above comment should most certainly read
3187 # $(mkdir_p) $(DESTDIR)$(somedir)
3188 # so it does not work when $(somedir) is undefined and
3189 # $(DESTDIR) is not.
3190 # To support the latter case, we have to write
3191 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3192 # so the `.' trick is pointless.
3193 mkdir_p
='mkdir -p --'
3195 # On NextStep and OpenStep, the `mkdir' command does not
3196 # recognize any option. It will interpret all options as
3197 # directories to create, and then abort because `.' already
3199 for d
in .
/-p .
/--version;
3201 test -d $d && rmdir $d
3203 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3204 if test -f "$ac_aux_dir/mkinstalldirs"; then
3205 mkdir_p
='$(mkinstalldirs)'
3207 mkdir_p
='$(install_sh) -d'
3211 for ac_prog
in gawk mawk nawk
awk
3213 # Extract the first word of "$ac_prog", so it can be a program name with args.
3214 set dummy
$ac_prog; ac_word
=$2
3215 echo "$as_me:$LINENO: checking for $ac_word" >&5
3216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3217 if test "${ac_cv_prog_AWK+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3220 if test -n "$AWK"; then
3221 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3223 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3227 test -z "$as_dir" && as_dir
=.
3228 for ac_exec_ext
in '' $ac_executable_extensions; do
3229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3230 ac_cv_prog_AWK
="$ac_prog"
3231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3240 if test -n "$AWK"; then
3241 echo "$as_me:$LINENO: result: $AWK" >&5
3242 echo "${ECHO_T}$AWK" >&6
3244 echo "$as_me:$LINENO: result: no" >&5
3245 echo "${ECHO_T}no" >&6
3248 test -n "$AWK" && break
3251 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3252 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3253 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
3254 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3255 echo $ECHO_N "(cached) $ECHO_C" >&6
3257 cat >conftest.
make <<\_ACEOF
3259 @
echo 'ac_maketemp="$(MAKE)"'
3261 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3262 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3263 if test -n "$ac_maketemp"; then
3264 eval ac_cv_prog_make_
${ac_make}_set
=yes
3266 eval ac_cv_prog_make_
${ac_make}_set
=no
3270 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3271 echo "$as_me:$LINENO: result: yes" >&5
3272 echo "${ECHO_T}yes" >&6
3275 echo "$as_me:$LINENO: result: no" >&5
3276 echo "${ECHO_T}no" >&6
3277 SET_MAKE
="MAKE=${MAKE-make}"
3280 rm -rf .tst
2>/dev
/null
3281 mkdir .tst
2>/dev
/null
3282 if test -d .tst
; then
3287 rmdir .tst
2>/dev
/null
3289 DEPDIR
="${am__leading_dot}deps"
3291 ac_config_commands
="$ac_config_commands depfiles"
3294 am_make
=${MAKE-make}
3295 cat > confinc
<< 'END'
3300 # If we don't find an include directive, just comment out the code.
3301 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3302 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3306 # First try GNU make style include.
3307 echo "include confinc" > confmf
3308 # We grep out `Entering directory' and `Leaving directory'
3309 # messages which can occur if `w' ends up in MAKEFLAGS.
3310 # In particular we don't look at `^make:' because GNU make might
3311 # be invoked under some other name (usually "gmake"), in which
3312 # case it prints its new name instead of `make'.
3313 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3318 # Now try BSD make style include.
3319 if test "$am__include" = "#"; then
3320 echo '.include "confinc"' > confmf
3321 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3322 am__include
=.include
3329 echo "$as_me:$LINENO: result: $_am_result" >&5
3330 echo "${ECHO_T}$_am_result" >&6
3331 rm -f confinc confmf
3333 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3334 if test "${enable_dependency_tracking+set}" = set; then
3335 enableval
="$enable_dependency_tracking"
3338 if test "x$enable_dependency_tracking" != xno
; then
3339 am_depcomp
="$ac_aux_dir/depcomp"
3344 if test "x$enable_dependency_tracking" != xno; then
3354 # test to see if srcdir already configured
3355 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3356 test -f $srcdir/config.status
; then
3357 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3358 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3359 { (exit 1); exit 1; }; }
3362 # test whether we have cygpath
3363 if test -z "$CYGPATH_W"; then
3364 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3365 CYGPATH_W
='cygpath -w'
3372 # Define the identity of the package.
3374 VERSION
='version-unused'
3377 cat >>confdefs.h
<<_ACEOF
3378 #define PACKAGE "$PACKAGE"
3382 cat >>confdefs.h
<<_ACEOF
3383 #define VERSION "$VERSION"
3386 # Some tools Automake needs.
3388 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3391 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3394 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3397 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3400 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3402 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
3404 # Installed binaries are usually stripped using `strip' when the user
3405 # run `make install-strip'. However `strip' might not be the right
3406 # tool to use in cross-compilation environments, therefore Automake
3407 # will honor the `STRIP' environment variable to overrule this program.
3408 if test "$cross_compiling" != no
; then
3409 if test -n "$ac_tool_prefix"; then
3410 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3411 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3412 echo "$as_me:$LINENO: checking for $ac_word" >&5
3413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3414 if test "${ac_cv_prog_STRIP+set}" = set; then
3415 echo $ECHO_N "(cached) $ECHO_C" >&6
3417 if test -n "$STRIP"; then
3418 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3420 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3424 test -z "$as_dir" && as_dir
=.
3425 for ac_exec_ext
in '' $ac_executable_extensions; do
3426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3427 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3436 STRIP
=$ac_cv_prog_STRIP
3437 if test -n "$STRIP"; then
3438 echo "$as_me:$LINENO: result: $STRIP" >&5
3439 echo "${ECHO_T}$STRIP" >&6
3441 echo "$as_me:$LINENO: result: no" >&5
3442 echo "${ECHO_T}no" >&6
3446 if test -z "$ac_cv_prog_STRIP"; then
3448 # Extract the first word of "strip", so it can be a program name with args.
3449 set dummy strip
; ac_word
=$2
3450 echo "$as_me:$LINENO: checking for $ac_word" >&5
3451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3452 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3453 echo $ECHO_N "(cached) $ECHO_C" >&6
3455 if test -n "$ac_ct_STRIP"; then
3456 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3458 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3462 test -z "$as_dir" && as_dir
=.
3463 for ac_exec_ext
in '' $ac_executable_extensions; do
3464 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3465 ac_cv_prog_ac_ct_STRIP
="strip"
3466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3472 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
3475 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3476 if test -n "$ac_ct_STRIP"; then
3477 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3478 echo "${ECHO_T}$ac_ct_STRIP" >&6
3480 echo "$as_me:$LINENO: result: no" >&5
3481 echo "${ECHO_T}no" >&6
3486 STRIP
="$ac_cv_prog_STRIP"
3490 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
3492 # We need awk for the "check" target. The system "awk" is bad on
3494 # Always define AMTAR for backward compatibility.
3496 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3498 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3503 depcc
="$CC" am_compiler_list
=
3505 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3506 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3507 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3508 echo $ECHO_N "(cached) $ECHO_C" >&6
3510 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3511 # We make a subdir and do the tests there. Otherwise we can end up
3512 # making bogus files that we don't know about and never remove. For
3513 # instance it was reported that on HP-UX the gcc test will end up
3514 # making a dummy file named `D' -- because `-MD' means `put the output
3517 # Copy depcomp to subdir because otherwise we won't find it if we're
3518 # using a relative directory.
3519 cp "$am_depcomp" conftest.dir
3521 # We will build objects and dependencies in a subdirectory because
3522 # it helps to detect inapplicable dependency modes. For instance
3523 # both Tru64's cc and ICC support -MD to output dependencies as a
3524 # side effect of compilation, but ICC will put the dependencies in
3525 # the current directory while Tru64 will put them in the object
3529 am_cv_CC_dependencies_compiler_type
=none
3530 if test "$am_compiler_list" = ""; then
3531 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3533 for depmode
in $am_compiler_list; do
3534 # Setup a source with many dependencies, because some compilers
3535 # like to wrap large dependency lists on column 80 (with \), and
3536 # we should not choose a depcomp mode which is confused by this.
3538 # We need to recreate these files for each test, as the compiler may
3539 # overwrite some of them when testing with obscure command lines.
3540 # This happens at least with the AIX C compiler.
3542 for i
in 1 2 3 4 5 6; do
3543 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3544 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3545 # Solaris 8's {/usr,}/bin/sh.
3546 touch sub
/conftst
$i.h
3548 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3552 # after this tag, mechanisms are not by side-effect, so they'll
3553 # only be used when explicitly requested
3554 if test "x$enable_dependency_tracking" = xyes
; then
3562 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3563 # mode. It turns out that the SunPro C++ compiler does not properly
3564 # handle `-M -o', and we need to detect this.
3565 if depmode
=$depmode \
3566 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3567 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3568 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3569 >/dev
/null
2>conftest.err
&&
3570 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3571 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3572 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3573 # icc doesn't choke on unknown options, it will just issue warnings
3574 # or remarks (even with -Werror). So we grep stderr for any message
3575 # that says an option was ignored or not supported.
3576 # When given -MP, icc 7.0 and 7.1 complain thusly:
3577 # icc: Command line warning: ignoring option '-M'; no argument required
3578 # The diagnosis changed in icc 8.0:
3579 # icc: Command line remark: option '-MP' not supported
3580 if (grep 'ignoring option' conftest.err ||
3581 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3582 am_cv_CC_dependencies_compiler_type
=$depmode
3591 am_cv_CC_dependencies_compiler_type
=none
3595 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3596 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3597 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3602 test "x$enable_dependency_tracking" != xno \
3603 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3605 am__fastdepCC_FALSE
='#'
3607 am__fastdepCC_TRUE
='#'
3608 am__fastdepCC_FALSE
=
3612 depcc
="$CXX" am_compiler_list
=
3614 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3615 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3616 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3617 echo $ECHO_N "(cached) $ECHO_C" >&6
3619 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3620 # We make a subdir and do the tests there. Otherwise we can end up
3621 # making bogus files that we don't know about and never remove. For
3622 # instance it was reported that on HP-UX the gcc test will end up
3623 # making a dummy file named `D' -- because `-MD' means `put the output
3626 # Copy depcomp to subdir because otherwise we won't find it if we're
3627 # using a relative directory.
3628 cp "$am_depcomp" conftest.dir
3630 # We will build objects and dependencies in a subdirectory because
3631 # it helps to detect inapplicable dependency modes. For instance
3632 # both Tru64's cc and ICC support -MD to output dependencies as a
3633 # side effect of compilation, but ICC will put the dependencies in
3634 # the current directory while Tru64 will put them in the object
3638 am_cv_CXX_dependencies_compiler_type
=none
3639 if test "$am_compiler_list" = ""; then
3640 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3642 for depmode
in $am_compiler_list; do
3643 # Setup a source with many dependencies, because some compilers
3644 # like to wrap large dependency lists on column 80 (with \), and
3645 # we should not choose a depcomp mode which is confused by this.
3647 # We need to recreate these files for each test, as the compiler may
3648 # overwrite some of them when testing with obscure command lines.
3649 # This happens at least with the AIX C compiler.
3651 for i
in 1 2 3 4 5 6; do
3652 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3653 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3654 # Solaris 8's {/usr,}/bin/sh.
3655 touch sub
/conftst
$i.h
3657 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3661 # after this tag, mechanisms are not by side-effect, so they'll
3662 # only be used when explicitly requested
3663 if test "x$enable_dependency_tracking" = xyes
; then
3671 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3672 # mode. It turns out that the SunPro C++ compiler does not properly
3673 # handle `-M -o', and we need to detect this.
3674 if depmode
=$depmode \
3675 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3676 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3677 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3678 >/dev
/null
2>conftest.err
&&
3679 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3680 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3681 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3682 # icc doesn't choke on unknown options, it will just issue warnings
3683 # or remarks (even with -Werror). So we grep stderr for any message
3684 # that says an option was ignored or not supported.
3685 # When given -MP, icc 7.0 and 7.1 complain thusly:
3686 # icc: Command line warning: ignoring option '-M'; no argument required
3687 # The diagnosis changed in icc 8.0:
3688 # icc: Command line remark: option '-MP' not supported
3689 if (grep 'ignoring option' conftest.err ||
3690 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3691 am_cv_CXX_dependencies_compiler_type
=$depmode
3700 am_cv_CXX_dependencies_compiler_type
=none
3704 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3705 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3706 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
3711 test "x$enable_dependency_tracking" != xno \
3712 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
3713 am__fastdepCXX_TRUE
=
3714 am__fastdepCXX_FALSE
='#'
3716 am__fastdepCXX_TRUE
='#'
3717 am__fastdepCXX_FALSE
=
3723 if test -n "$ac_tool_prefix"; then
3724 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3725 set dummy
${ac_tool_prefix}as
; ac_word
=$2
3726 echo "$as_me:$LINENO: checking for $ac_word" >&5
3727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3728 if test "${ac_cv_prog_AS+set}" = set; then
3729 echo $ECHO_N "(cached) $ECHO_C" >&6
3731 if test -n "$AS"; then
3732 ac_cv_prog_AS
="$AS" # Let the user override the test.
3734 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3738 test -z "$as_dir" && as_dir
=.
3739 for ac_exec_ext
in '' $ac_executable_extensions; do
3740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3741 ac_cv_prog_AS
="${ac_tool_prefix}as"
3742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3751 if test -n "$AS"; then
3752 echo "$as_me:$LINENO: result: $AS" >&5
3753 echo "${ECHO_T}$AS" >&6
3755 echo "$as_me:$LINENO: result: no" >&5
3756 echo "${ECHO_T}no" >&6
3760 if test -z "$ac_cv_prog_AS"; then
3762 # Extract the first word of "as", so it can be a program name with args.
3763 set dummy as
; ac_word
=$2
3764 echo "$as_me:$LINENO: checking for $ac_word" >&5
3765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3766 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3769 if test -n "$ac_ct_AS"; then
3770 ac_cv_prog_ac_ct_AS
="$ac_ct_AS" # Let the user override the test.
3772 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3776 test -z "$as_dir" && as_dir
=.
3777 for ac_exec_ext
in '' $ac_executable_extensions; do
3778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3779 ac_cv_prog_ac_ct_AS
="as"
3780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3788 ac_ct_AS
=$ac_cv_prog_ac_ct_AS
3789 if test -n "$ac_ct_AS"; then
3790 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3791 echo "${ECHO_T}$ac_ct_AS" >&6
3793 echo "$as_me:$LINENO: result: no" >&5
3794 echo "${ECHO_T}no" >&6
3802 if test -n "$ac_tool_prefix"; then
3803 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3804 set dummy
${ac_tool_prefix}ld
; ac_word
=$2
3805 echo "$as_me:$LINENO: checking for $ac_word" >&5
3806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3807 if test "${ac_cv_prog_LD+set}" = set; then
3808 echo $ECHO_N "(cached) $ECHO_C" >&6
3810 if test -n "$LD"; then
3811 ac_cv_prog_LD
="$LD" # Let the user override the test.
3813 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3817 test -z "$as_dir" && as_dir
=.
3818 for ac_exec_ext
in '' $ac_executable_extensions; do
3819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3820 ac_cv_prog_LD
="${ac_tool_prefix}ld"
3821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3830 if test -n "$LD"; then
3831 echo "$as_me:$LINENO: result: $LD" >&5
3832 echo "${ECHO_T}$LD" >&6
3834 echo "$as_me:$LINENO: result: no" >&5
3835 echo "${ECHO_T}no" >&6
3839 if test -z "$ac_cv_prog_LD"; then
3841 # Extract the first word of "ld", so it can be a program name with args.
3842 set dummy ld
; ac_word
=$2
3843 echo "$as_me:$LINENO: checking for $ac_word" >&5
3844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3845 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3848 if test -n "$ac_ct_LD"; then
3849 ac_cv_prog_ac_ct_LD
="$ac_ct_LD" # Let the user override the test.
3851 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3855 test -z "$as_dir" && as_dir
=.
3856 for ac_exec_ext
in '' $ac_executable_extensions; do
3857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3858 ac_cv_prog_ac_ct_LD
="ld"
3859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3867 ac_ct_LD
=$ac_cv_prog_ac_ct_LD
3868 if test -n "$ac_ct_LD"; then
3869 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
3870 echo "${ECHO_T}$ac_ct_LD" >&6
3872 echo "$as_me:$LINENO: result: no" >&5
3873 echo "${ECHO_T}no" >&6
3881 if test -n "$ac_tool_prefix"; then
3882 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3883 set dummy
${ac_tool_prefix}ar; ac_word
=$2
3884 echo "$as_me:$LINENO: checking for $ac_word" >&5
3885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3886 if test "${ac_cv_prog_AR+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3889 if test -n "$AR"; then
3890 ac_cv_prog_AR
="$AR" # Let the user override the test.
3892 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3896 test -z "$as_dir" && as_dir
=.
3897 for ac_exec_ext
in '' $ac_executable_extensions; do
3898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3899 ac_cv_prog_AR
="${ac_tool_prefix}ar"
3900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3909 if test -n "$AR"; then
3910 echo "$as_me:$LINENO: result: $AR" >&5
3911 echo "${ECHO_T}$AR" >&6
3913 echo "$as_me:$LINENO: result: no" >&5
3914 echo "${ECHO_T}no" >&6
3918 if test -z "$ac_cv_prog_AR"; then
3920 # Extract the first word of "ar", so it can be a program name with args.
3921 set dummy
ar; ac_word
=$2
3922 echo "$as_me:$LINENO: checking for $ac_word" >&5
3923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3924 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3927 if test -n "$ac_ct_AR"; then
3928 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
3930 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3934 test -z "$as_dir" && as_dir
=.
3935 for ac_exec_ext
in '' $ac_executable_extensions; do
3936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3937 ac_cv_prog_ac_ct_AR
="ar"
3938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3946 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
3947 if test -n "$ac_ct_AR"; then
3948 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3949 echo "${ECHO_T}$ac_ct_AR" >&6
3951 echo "$as_me:$LINENO: result: no" >&5
3952 echo "${ECHO_T}no" >&6
3960 if test -n "$ac_tool_prefix"; then
3961 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3962 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3963 echo "$as_me:$LINENO: checking for $ac_word" >&5
3964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3965 if test "${ac_cv_prog_RANLIB+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3968 if test -n "$RANLIB"; then
3969 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3971 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3975 test -z "$as_dir" && as_dir
=.
3976 for ac_exec_ext
in '' $ac_executable_extensions; do
3977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3978 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3987 RANLIB
=$ac_cv_prog_RANLIB
3988 if test -n "$RANLIB"; then
3989 echo "$as_me:$LINENO: result: $RANLIB" >&5
3990 echo "${ECHO_T}$RANLIB" >&6
3992 echo "$as_me:$LINENO: result: no" >&5
3993 echo "${ECHO_T}no" >&6
3997 if test -z "$ac_cv_prog_RANLIB"; then
3998 ac_ct_RANLIB
=$RANLIB
3999 # Extract the first word of "ranlib", so it can be a program name with args.
4000 set dummy ranlib
; ac_word
=$2
4001 echo "$as_me:$LINENO: checking for $ac_word" >&5
4002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4003 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
4006 if test -n "$ac_ct_RANLIB"; then
4007 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4009 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4013 test -z "$as_dir" && as_dir
=.
4014 for ac_exec_ext
in '' $ac_executable_extensions; do
4015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4016 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4023 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
4026 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4027 if test -n "$ac_ct_RANLIB"; then
4028 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4029 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4031 echo "$as_me:$LINENO: result: no" >&5
4032 echo "${ECHO_T}no" >&6
4035 RANLIB
=$ac_ct_RANLIB
4037 RANLIB
="$ac_cv_prog_RANLIB"
4040 for ac_prog
in gawk mawk nawk
awk
4042 # Extract the first word of "$ac_prog", so it can be a program name with args.
4043 set dummy
$ac_prog; ac_word
=$2
4044 echo "$as_me:$LINENO: checking for $ac_word" >&5
4045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4046 if test "${ac_cv_prog_AWK+set}" = set; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4049 if test -n "$AWK"; then
4050 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4052 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4056 test -z "$as_dir" && as_dir
=.
4057 for ac_exec_ext
in '' $ac_executable_extensions; do
4058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4059 ac_cv_prog_AWK
="$ac_prog"
4060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4069 if test -n "$AWK"; then
4070 echo "$as_me:$LINENO: result: $AWK" >&5
4071 echo "${ECHO_T}$AWK" >&6
4073 echo "$as_me:$LINENO: result: no" >&5
4074 echo "${ECHO_T}no" >&6
4077 test -n "$AWK" && break
4080 for ac_prog
in jar fastjar gjar
4082 # Extract the first word of "$ac_prog", so it can be a program name with args.
4083 set dummy
$ac_prog; ac_word
=$2
4084 echo "$as_me:$LINENO: checking for $ac_word" >&5
4085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4086 if test "${ac_cv_prog_JAR+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4089 if test -n "$JAR"; then
4090 ac_cv_prog_JAR
="$JAR" # Let the user override the test.
4092 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4096 test -z "$as_dir" && as_dir
=.
4097 for ac_exec_ext
in '' $ac_executable_extensions; do
4098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4099 ac_cv_prog_JAR
="$ac_prog"
4100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4109 if test -n "$JAR"; then
4110 echo "$as_me:$LINENO: result: $JAR" >&5
4111 echo "${ECHO_T}$JAR" >&6
4113 echo "$as_me:$LINENO: result: no" >&5
4114 echo "${ECHO_T}no" >&6
4117 test -n "$JAR" && break
4119 test -n "$JAR" || JAR
="no"
4121 # Extract the first word of "zip", so it can be a program name with args.
4122 set dummy
zip; ac_word
=$2
4123 echo "$as_me:$LINENO: checking for $ac_word" >&5
4124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4125 if test "${ac_cv_path_ZIP+set}" = set; then
4126 echo $ECHO_N "(cached) $ECHO_C" >&6
4130 ac_cv_path_ZIP
="$ZIP" # Let the user override the test with a path.
4133 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4137 test -z "$as_dir" && as_dir
=.
4138 for ac_exec_ext
in '' $ac_executable_extensions; do
4139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4140 ac_cv_path_ZIP
="$as_dir/$ac_word$ac_exec_ext"
4141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4147 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP
="no"
4153 if test -n "$ZIP"; then
4154 echo "$as_me:$LINENO: result: $ZIP" >&5
4155 echo "${ECHO_T}$ZIP" >&6
4157 echo "$as_me:$LINENO: result: no" >&5
4158 echo "${ECHO_T}no" >&6
4161 # Extract the first word of "unzip", so it can be a program name with args.
4162 set dummy
unzip; ac_word
=$2
4163 echo "$as_me:$LINENO: checking for $ac_word" >&5
4164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4165 if test "${ac_cv_path_UNZIP+set}" = set; then
4166 echo $ECHO_N "(cached) $ECHO_C" >&6
4170 ac_cv_path_UNZIP
="$UNZIP" # Let the user override the test with a path.
4173 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4177 test -z "$as_dir" && as_dir
=.
4178 for ac_exec_ext
in '' $ac_executable_extensions; do
4179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4180 ac_cv_path_UNZIP
="$as_dir/$ac_word$ac_exec_ext"
4181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4187 test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP
="unzip"
4191 UNZIP
=$ac_cv_path_UNZIP
4193 if test -n "$UNZIP"; then
4194 echo "$as_me:$LINENO: result: $UNZIP" >&5
4195 echo "${ECHO_T}$UNZIP" >&6
4197 echo "$as_me:$LINENO: result: no" >&5
4198 echo "${ECHO_T}no" >&6
4203 if test "$JAR" = no
; then
4211 if test "$ZIP" = no
; then
4212 if test "$JAR" = no
; then
4213 { { echo "$as_me:$LINENO: error: cannot find neither zip nor jar, cannot continue" >&5
4214 echo "$as_me: error: cannot find neither zip nor jar, cannot continue" >&2;}
4215 { (exit 1); exit 1; }; }
4218 # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
4219 JAR
=`pwd`/scripts
/jar
4222 # Find a good install program. We prefer a C program (faster),
4223 # so one script is as good as another. But avoid the broken or
4224 # incompatible versions:
4225 # SysV /etc/install, /usr/sbin/install
4226 # SunOS /usr/etc/install
4227 # IRIX /sbin/install
4229 # AmigaOS /C/install, which installs bootblocks on floppy discs
4230 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4231 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4232 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4233 # OS/2's system install, which has a completely different semantic
4234 # ./install, which can be erroneously created by make from ./install.sh.
4235 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4236 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4237 if test -z "$INSTALL"; then
4238 if test "${ac_cv_path_install+set}" = set; then
4239 echo $ECHO_N "(cached) $ECHO_C" >&6
4241 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4245 test -z "$as_dir" && as_dir
=.
4246 # Account for people who put trailing slashes in PATH elements.
4248 .
/ | .
// |
/cC
/* | \
4249 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4250 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4253 # OSF1 and SCO ODT 3.0 have their own names for install.
4254 # Don't use installbsd from OSF since it installs stuff as root
4256 for ac_prog
in ginstall scoinst
install; do
4257 for ac_exec_ext
in '' $ac_executable_extensions; do
4258 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4259 if test $ac_prog = install &&
4260 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4261 # AIX install. It has an incompatible calling convention.
4263 elif test $ac_prog = install &&
4264 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4265 # program-specific install script used by HP pwplus--don't use.
4268 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4280 if test "${ac_cv_path_install+set}" = set; then
4281 INSTALL
=$ac_cv_path_install
4283 # As a last resort, use the slow shell script. We don't cache a
4284 # path for INSTALL within a source directory, because that will
4285 # break other packages using the cache if that directory is
4286 # removed, or if the path is relative.
4287 INSTALL
=$ac_install_sh
4290 echo "$as_me:$LINENO: result: $INSTALL" >&5
4291 echo "${ECHO_T}$INSTALL" >&6
4293 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4294 # It thinks the first close brace ends the variable substitution.
4295 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4297 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4299 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4302 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4303 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4304 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4305 if test "${enable_maintainer_mode+set}" = set; then
4306 enableval
="$enable_maintainer_mode"
4307 USE_MAINTAINER_MODE
=$enableval
4309 USE_MAINTAINER_MODE
=no
4311 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4312 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4315 if test $USE_MAINTAINER_MODE = yes; then
4316 MAINTAINER_MODE_TRUE
=
4317 MAINTAINER_MODE_FALSE
='#'
4319 MAINTAINER_MODE_TRUE
='#'
4320 MAINTAINER_MODE_FALSE
=
4323 MAINT
=$MAINTAINER_MODE_TRUE
4329 # configure.host sets the following important variables
4330 # libgcj_cflags - host specific C compiler flags
4331 # libgcj_cxxflags - host specific C++ compiler flags
4332 # libgcj_javaflags - host specific Java compiler flags
4338 .
${srcdir}/configure.
host
4340 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4341 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4342 if test "${acl_cv_prog_gnu_ld+set}" = set; then
4343 echo $ECHO_N "(cached) $ECHO_C" >&6
4345 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4346 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
4347 acl_cv_prog_gnu_ld
=yes
4349 acl_cv_prog_gnu_ld
=no
4352 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
4353 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
4354 with_gnu_ld
=$acl_cv_prog_gnu_ld
4356 echo "$as_me:$LINENO: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
4357 echo $ECHO_N "checking if the GNU linker ($LD) supports -Bsymbolic-functions... $ECHO_C" >&6
4358 if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then
4359 echo $ECHO_N "(cached) $ECHO_C" >&6
4362 acl_cv_prog_gnu_ld_symbolic
=no
4364 if test x
"$with_gnu_ld" = x
"yes"; then
4365 if $LD --help 2>&1 </dev
/null |
grep Bsymbolic-functions
1>&5; then
4366 acl_cv_prog_gnu_ld_symbolic
=yes
4370 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld_symbolic" >&5
4371 echo "${ECHO_T}$acl_cv_prog_gnu_ld_symbolic" >&6
4372 if test x
"$acl_cv_prog_gnu_ld_symbolic" = x
"yes"; then
4373 SYMBOLIC_LDFLAGS
="-Wl,-Bsymbolic-functions"
4378 libgcj_ld_symbolic_functions
=$SYMBOLIC_LDFLAGS
4379 if test -z "$libgcj_ld_symbolic"; then
4380 libgcj_ld_symbolic
=$SYMBOLIC_LDFLAGS
4383 LIBGCJ_CFLAGS
="${libgcj_cflags}"
4384 LIBGCJ_CXXFLAGS
="${libgcj_cxxflags}"
4385 LIBGCJ_JAVAFLAGS
="${libgcj_javaflags}"
4386 LIBGCJ_LD_SYMBOLIC
="${libgcj_ld_symbolic}"
4387 LIBGCJ_LD_SYMBOLIC_FUNCTIONS
="${libgcj_ld_symbolic_functions}"
4394 # Only use libltdl for non-newlib builds.
4395 if test "x${with_newlib}" = "x" ||
test "x${with_newlib}" = "xno"; then
4396 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
4397 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4399 libname_spec
='lib$name'
4407 shlibpath_overrides_runpath
=unknown
4409 dynamic_linker
="$host_os ld.so"
4410 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
4411 if test "$GCC" = yes; then
4412 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4413 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
4414 # if the path contains ";" then we assume it to be the separator
4415 # otherwise default to the standard path separator (i.e. ":") - it is
4416 # assumed that no part of a normal pathname contains ";" but that should
4417 # okay in the real world where ";" in dirpaths is itself problematic.
4418 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4420 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4423 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
4425 need_lib_prefix
=unknown
4426 hardcode_into_libs
=no
4428 # when you set need_version to no, make sure it does not cause -set_version
4429 # flags to be left without arguments
4430 need_version
=unknown
4435 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
4436 shlibpath_var
=LIBPATH
4438 # AIX 3 has no versioning support, so we append a major version to the name.
4439 soname_spec
='${libname}${release}${shared_ext}$major'
4446 hardcode_into_libs
=yes
4447 if test "$host_cpu" = ia64
; then
4448 # AIX 5 supports IA64
4449 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4450 shlibpath_var
=LD_LIBRARY_PATH
4452 # With GCC up to 2.95.x, collect2 would create an import file
4453 # for dependence libraries. The import file would start with
4454 # the line `#! .'. This would cause the generated library to
4455 # depend on `.', always an invalid library. This was fixed in
4456 # development snapshots of GCC prior to 3.0.
4458 aix4 | aix4.
[01] | aix4.
[01].
*)
4459 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4461 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
4468 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4469 # soname into executable. Probably we can add versioning support to
4470 # collect2, so additional links can be useful in future.
4471 if test "$aix_use_runtimelinking" = yes; then
4472 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4473 # instead of lib<name>.a to let people know that these are not
4474 # typical AIX shared libraries.
4475 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4477 # We preserve .a as extension for shared libraries through AIX4.2
4478 # and later when we are not doing run time linking.
4479 library_names_spec
='${libname}${release}.a $libname.a'
4480 soname_spec
='${libname}${release}${shared_ext}$major'
4482 shlibpath_var
=LIBPATH
4487 library_names_spec
='$libname.ixlibrary $libname.a'
4488 # Create ${libname}_ixlibrary.a entries in /sys/libs.
4489 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
4493 library_names_spec
='${libname}${shared_ext}'
4494 dynamic_linker
="$host_os ld.so"
4495 shlibpath_var
=LIBRARY_PATH
4501 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4502 soname_spec
='${libname}${release}${shared_ext}$major'
4503 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
4504 shlibpath_var
=LD_LIBRARY_PATH
4505 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4506 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
4507 # the default ld.so.conf also contains /usr/contrib/lib and
4508 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4509 # libtool to hard-code these into programs
4512 cygwin
* | mingw
* | pw32
*)
4513 version_type
=windows
4518 case $GCC,$host_os in
4519 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
4520 library_names_spec
='$libname.dll.a'
4521 # DLL is installed to $(libdir)/../bin by postinstall_cmds
4522 postinstall_cmds
='base_file=`basename \${file}`~
4523 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
4524 dldir=$destdir/`dirname \$dlpath`~
4525 test -d \$dldir || mkdir -p \$dldir~
4526 $install_prog $dir/$dlname \$dldir/$dlname'
4527 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4528 dlpath=$dir/\$dldll~
4530 shlibpath_overrides_runpath
=yes
4534 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4535 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4536 sys_lib_search_path_spec
="/lib /lib/w32api /usr/lib /usr/local/lib"
4539 # MinGW DLLs use traditional 'lib' prefix
4540 soname_spec
='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4541 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4542 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
4543 # It is most probably a Windows format PATH printed by
4544 # mingw gcc, but we are running on Cygwin. Gcc prints its search
4545 # path with ; separators, and with drive letters. We can handle the
4546 # drive letters (cygwin fileutils understands them), so leave them,
4547 # especially as we might pass files found there to a mingw objdump,
4548 # which wouldn't understand a cygwinified path. Ahh.
4549 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4551 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4555 # pw32 DLLs use 'pw' prefix rather than 'lib'
4556 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
4562 library_names_spec
='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
4565 dynamic_linker
='Win32 ld.exe'
4566 # FIXME: first we should search . and the directory the executable is in
4570 darwin
* | rhapsody
*)
4571 dynamic_linker
="$host_os dyld"
4575 # FIXME: Relying on posixy $() will cause problems for
4576 # cross-compilation, but unfortunately the echo tests do not
4577 # yet detect zsh echo's removal of \ escapes.
4578 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4579 soname_spec
='${libname}${release}${major}$shared_ext'
4580 shlibpath_overrides_runpath
=yes
4581 shlibpath_var
=DYLD_LIBRARY_PATH
4582 shrext
='$(test .$module = .yes && echo .so || echo .dylib)'
4583 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
4584 if $CC -v 2>&1 |
grep 'Apple' >/dev
/null
; then
4585 sys_lib_search_path_spec
=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
4587 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
4594 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4595 soname_spec
='${libname}${release}${shared_ext}$major'
4596 shlibpath_var
=LD_LIBRARY_PATH
4604 objformat
=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4605 version_type
=freebsd-
$objformat
4606 case $version_type in
4608 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4613 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4617 shlibpath_var
=LD_LIBRARY_PATH
4620 shlibpath_overrides_runpath
=yes
4622 freebsd3.01
* | freebsdelf3.01
*)
4623 shlibpath_overrides_runpath
=yes
4624 hardcode_into_libs
=yes
4627 shlibpath_overrides_runpath
=no
4628 hardcode_into_libs
=yes
4637 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4638 soname_spec
='${libname}${release}${shared_ext}$major'
4639 shlibpath_var
=LD_LIBRARY_PATH
4640 hardcode_into_libs
=yes
4643 hpux9
* | hpux10
* | hpux11
*)
4644 # Give a soname corresponding to the major version so that dld.sl refuses to
4645 # link against other versions.
4652 hardcode_into_libs
=yes
4653 dynamic_linker
="$host_os dld.so"
4654 shlibpath_var
=LD_LIBRARY_PATH
4655 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
4656 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4657 soname_spec
='${libname}${release}${shared_ext}$major'
4658 if test "X$HPUX_IA64_MODE" = X32
; then
4659 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4661 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
4663 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
4667 hardcode_into_libs
=yes
4668 dynamic_linker
="$host_os dld.sl"
4669 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
4670 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
4671 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4672 soname_spec
='${libname}${release}${shared_ext}$major'
4673 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
4674 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
4678 dynamic_linker
="$host_os dld.sl"
4679 shlibpath_var
=SHLIB_PATH
4680 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
4681 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4682 soname_spec
='${libname}${release}${shared_ext}$major'
4685 # HP-UX runs *really* slowly unless shared libraries are mode 555.
4686 postinstall_cmds
='chmod 555 $lib'
4689 irix5
* | irix6
* | nonstopux
*)
4691 nonstopux
*) version_type
=nonstopux
;;
4693 if test "$lt_cv_prog_gnu_ld" = yes; then
4701 soname_spec
='${libname}${release}${shared_ext}$major'
4702 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4704 irix5
* | nonstopux
*)
4708 case $LD in # libtool.m4 will add one of these switches to LD
4709 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
4710 libsuff
= shlibsuff
= libmagic
=32-bit;;
4711 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
4712 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
4713 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
4714 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
4715 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
4719 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
4720 shlibpath_overrides_runpath
=no
4721 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4722 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
4723 hardcode_into_libs
=yes
4726 # No shared lib support for Linux oldld, aout, or coff.
4727 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
4731 # This must be Linux ELF.
4736 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4737 soname_spec
='${libname}${release}${shared_ext}$major'
4738 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4739 shlibpath_var
=LD_LIBRARY_PATH
4740 shlibpath_overrides_runpath
=no
4741 # This implies no fast_install, which is unacceptable.
4742 # Some rework will be needed to allow for fast_install
4743 # before this can be enabled.
4744 hardcode_into_libs
=yes
4746 # We used to test for /lib/ld.so.1 and disable shared libraries on
4747 # powerpc, because MkLinux only supported shared libraries with the
4748 # GNU dynamic linker. Since this was broken with cross compilers,
4749 # most powerpc-linux boxes support dynamic linking these days and
4750 # people can always --disable-shared, the test was removed, and we
4751 # assume the GNU/Linux dynamic linker is in use.
4752 dynamic_linker
='GNU/Linux ld.so'
4759 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
4760 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4761 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4762 dynamic_linker
='NetBSD (a.out) ld.so'
4764 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
4765 soname_spec
='${libname}${release}${shared_ext}$major'
4766 dynamic_linker
='NetBSD ld.elf_so'
4768 shlibpath_var
=LD_LIBRARY_PATH
4769 shlibpath_overrides_runpath
=yes
4770 hardcode_into_libs
=yes
4775 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4776 shlibpath_var
=LD_LIBRARY_PATH
4777 shlibpath_overrides_runpath
=yes
4784 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4785 soname_spec
='${libname}${release}${shared_ext}$major'
4786 shlibpath_var
=LD_LIBRARY_PATH
4787 shlibpath_overrides_runpath
=yes
4794 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4795 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4796 shlibpath_var
=LD_LIBRARY_PATH
4797 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4799 openbsd2.
[89] | openbsd2.
[89].
*)
4800 shlibpath_overrides_runpath
=no
4803 shlibpath_overrides_runpath
=yes
4807 shlibpath_overrides_runpath
=yes
4812 libname_spec
='$name'
4815 library_names_spec
='$libname${shared_ext} $libname.a'
4816 dynamic_linker
='OS/2 ld.exe'
4817 shlibpath_var
=LIBPATH
4820 osf3
* | osf4
* | osf5
*)
4824 soname_spec
='${libname}${release}${shared_ext}$major'
4825 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4826 shlibpath_var
=LD_LIBRARY_PATH
4827 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4828 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
4833 soname_spec
='${libname}${release}${shared_ext}$major'
4834 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4835 shlibpath_var
=LD_LIBRARY_PATH
4842 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4843 soname_spec
='${libname}${release}${shared_ext}$major'
4844 shlibpath_var
=LD_LIBRARY_PATH
4845 shlibpath_overrides_runpath
=yes
4846 hardcode_into_libs
=yes
4847 # ldd complains unless libraries are executable
4848 postinstall_cmds
='chmod +x $lib'
4853 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4854 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4855 shlibpath_var
=LD_LIBRARY_PATH
4856 shlibpath_overrides_runpath
=yes
4857 if test "$with_gnu_ld" = yes; then
4863 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
4865 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4866 soname_spec
='${libname}${release}${shared_ext}$major'
4867 shlibpath_var
=LD_LIBRARY_PATH
4868 case $host_vendor in
4870 shlibpath_overrides_runpath
=no
4872 export_dynamic_flag_spec
='${wl}-Blargedynsym'
4873 runpath_var
=LD_RUN_PATH
4881 shlibpath_overrides_runpath
=no
4882 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
4888 if test -d /usr
/nec
;then
4890 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
4891 soname_spec
='$libname${shared_ext}.$major'
4892 shlibpath_var
=LD_LIBRARY_PATH
4898 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4899 soname_spec
='${libname}${release}${shared_ext}$major'
4900 shlibpath_var
=LD_LIBRARY_PATH
4907 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
4908 echo "${ECHO_T}$dynamic_linker" >&6
4909 test "$dynamic_linker" = no
&& can_build_shared
=no
4912 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
4913 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
4914 if test "${libltdl_cv_shlibpath_var+set}" = set; then
4915 echo $ECHO_N "(cached) $ECHO_C" >&6
4917 libltdl_cv_shlibpath_var
="$shlibpath_var"
4919 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
4920 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
4921 if test -n "$libltdl_cv_shlibpath_var"; then
4923 cat >>confdefs.h
<<_ACEOF
4924 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
4931 ac_config_headers
="$ac_config_headers include/config.h gcj/libgcj-config.h"
4934 # See if the user has requested runtime debugging.
4935 LIBGCJDEBUG
="disable"
4937 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
4938 if test "${enable_libgcj_debug+set}" = set; then
4939 enableval
="$enable_libgcj_debug"
4940 if test "$enable_libgcj_debug" = yes; then
4942 cat >>confdefs.h
<<\_ACEOF
4946 LIBGCJDEBUG
="enable"
4951 # Check whether --with-escher or --without-escher was given.
4952 if test "${with_escher+set}" = set; then
4953 withval
="$with_escher"
4956 case "$with_escher" in
4964 { { echo "$as_me:$LINENO: error: Please supply an absolute path to Escher library" >&5
4965 echo "$as_me: error: Please supply an absolute path to Escher library" >&2;}
4966 { (exit 1); exit 1; }; }
4973 # Determine which AWT peer libraries to build
4974 # Check whether --enable-java-awt or --disable-java-awt was given.
4975 if test "${enable_java_awt+set}" = set; then
4976 enableval
="$enable_java_awt"
4980 peerlibs
="`echo ${enable_java_awt} | tr ',' ' '`"
4985 # The default toolkit to use is the first one specified.
4989 for peer
in $peerlibs ; do
4992 if test "$no_x" = yes; then
4993 echo "*** xlib peers requested but no X library available" 1>&2
4997 if test -z "$TOOLKIT"; then
4998 TOOLKIT
=gnu.awt.xlib.XToolkit
5003 if test "$no_x" = yes; then
5004 echo "*** gtk peers requested but no X library available" 1>&2
5008 if test -z "$TOOLKIT"; then
5009 TOOLKIT
=gnu.java.awt.peer.gtk.GtkToolkit
5014 if test "$no_x" = yes; then
5015 # Perhaps we should admit the possibility of embedded Qt.
5016 echo "*** Qt peers requested but no X library available" 1>&2
5020 if test -z "$TOOLKIT"; then
5021 TOOLKIT
=gnu.java.awt.peer.qt.QtToolkit
5027 if test -z "$TOOLKIT"; then
5028 TOOLKIT
=gnu.java.awt.peer.x.XToolkit
5039 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
5046 if test "$use_xlib_awt" = yes; then
5056 if test "$use_x_awt" = yes; then
5066 cat >>confdefs.h
<<_ACEOF
5067 #define AWT_TOOLKIT "$TOOLKIT"
5072 cat >>confdefs.h
<<_ACEOF
5073 #define LIBGCJ_PREFIX "$prefix"
5077 # Create standard.omit based on decisions we just made.
5078 cp $srcdir/standard.omit.
in standard.omit
5079 if test "$use_xlib_awt" != yes; then
5080 echo gnu
/awt
/xlib
>> standard.omit
5081 echo gnu
/gcj
/xlib
>> standard.omit
5083 if test "$use_x_awt" != yes; then
5084 echo gnu
/java
/awt
/peer
/x
>> standard.omit
5087 if test -z "${with_multisubdir}"; then
5090 builddotdot
=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
5095 # Which gcj and host gcj (for ecjx) do we use?
5097 host_exeext
=${ac_exeext}
5099 built_gcc_dir
="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
5100 if test -n "${with_cross_host}"; then
5101 # We are being configured with a cross compiler. We can't
5102 # use ac_exeext, because that is for the target platform.
5105 GCJ_FOR_ECJX
="${with_cross_host}-gcj"
5106 case "${with_cross_host}" in
5108 cross_host_exeext
=.exe
5111 host_exeext
=${cross_host_exeext}
5112 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
5113 if test x
"$build_noncanonical" = x
"$with_cross_host"; then
5114 # Ordinary cross (host!=target and host=build)
5117 # Canadian cross (host!=target and host!=build)
5124 # We are being configured with a native or crossed-native compiler
5125 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
5126 if test x
"$build" = x
"$host"; then
5127 # True native build (host=target and host=build)
5130 # Crossed-native build (host=target and host!=build)
5137 case "${which_gcj}" in
5139 GCJ
="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
5140 GCJH
='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
5143 if test "x${with_newlib}" = "xyes"; then
5144 # FIXME (comment): Why is this needed?
5146 GCJ
="${target_noncanonical}-gcj"
5148 GCJ
="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
5150 GCJH
="$built_gcc_dir/gcjh"
5153 GCJ
="gcj -B`${PWDCMD-pwd}`/"
5162 # Create it, so that compile/link tests don't fail
5163 test -f libgcj.spec ||
touch libgcj.spec
5167 # Set up to configure Classpath.
5168 # FIXME: no supported way to pass args in autoconf.
5169 ac_configure_args
="$ac_configure_args --with-fastjar=$JAR"
5170 # Disable tool wrappers to avoid ltdl.h configure check.
5171 ac_configure_args
="$ac_configure_args --disable-tool-wrappers"
5172 ac_configure_args
="$ac_configure_args --disable-load-library"
5173 ac_configure_args
="$ac_configure_args --${LIBGCJDEBUG}-debug"
5174 ac_configure_args
="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
5175 dir1
=`cd $srcdir && pwd`
5177 ac_configure_args
="$ac_configure_args --with-vm-classes=$dir1:$dir2"
5178 ac_configure_args
="$ac_configure_args --disable-core-jni"
5179 ac_configure_args
="$ac_configure_args --disable-examples"
5180 ac_configure_args
="$ac_configure_args --with-glibj=build"
5181 if test "$plugin_enabled" != yes; then
5182 ac_configure_args
="$ac_configure_args --disable-plugin"
5184 if test "$gconf_enabled" != yes; then
5185 ac_configure_args
="$ac_configure_args --disable-gconf-peer"
5186 ac_configure_args
="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
5188 if test "$use_gtk_awt" != yes; then
5189 ac_configure_args
="$ac_configure_args --disable-gtk-peer --disable-plugin"
5191 if test "$use_qt_awt" != yes; then
5192 ac_configure_args
="$ac_configure_args --disable-qt-peer"
5194 # We need this as qt is disabled by default in classpath.
5195 ac_configure_args
="$ac_configure_args --enable-qt-peer"
5197 if test "$use_x_awt" != yes; then
5198 ac_configure_args
="$ac_configure_args --without-escher"
5200 # We need this as escher is disabled by default in classpath.
5201 if test "$use_escher" != true
; then
5202 { { echo "$as_me:$LINENO: error: Please supply an absolute path to the Escher library" >&5
5203 echo "$as_me: error: Please supply an absolute path to the Escher library" >&2;}
5204 { (exit 1); exit 1; }; }
5206 ac_configure_args
="$ac_configure_args --with-escher=$with_escher"
5209 # -Werror causes unavoidable problems in code using alsa.
5210 ac_configure_args
="$ac_configure_args --disable-Werror"
5212 # Only use libltdl for non-newlib builds.
5213 if test "x${with_newlib}" = "x" ||
test "x${with_newlib}" = "xno"; then
5214 case $enable_ltdl_convenience in
5215 no
) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
5216 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
5217 { (exit 1); exit 1; }; } ;;
5218 "") enable_ltdl_convenience
=yes
5219 ac_configure_args
="$ac_configure_args --enable-ltdl-convenience" ;;
5221 LIBLTDL
='${top_builddir}/''libltdl'/libltdlc.la
5222 INCLTDL
='-I${top_srcdir}/''libltdl'
5227 cat >>confdefs.h
<<\_ACEOF
5231 # Sigh. Libtool's macro doesn't do the right thing.
5232 INCLTDL
="-I\$(top_srcdir)/libltdl $INCLTDL"
5233 # FIXME: this is a hack.
5234 sub_auxdir
="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
5235 ac_configure_args
="$ac_configure_args --with-auxdir=$sub_auxdir"
5240 # Check whether --enable-shared or --disable-shared was given.
5241 if test "${enable_shared+set}" = set; then
5242 enableval
="$enable_shared"
5243 p
=${PACKAGE-default}
5245 yes) enable_shared
=yes ;;
5246 no
) enable_shared
=no
;;
5249 # Look at the argument we got. We use all the common list separators.
5250 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
5251 for pkg
in $enableval; do
5252 if test "X$pkg" = "X$p"; then
5262 # Check whether --enable-static or --disable-static was given.
5263 if test "${enable_static+set}" = set; then
5264 enableval
="$enable_static"
5265 p
=${PACKAGE-default}
5267 yes) enable_static
=yes ;;
5268 no
) enable_static
=no
;;
5271 # Look at the argument we got. We use all the common list separators.
5272 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
5273 for pkg
in $enableval; do
5274 if test "X$pkg" = "X$p"; then
5284 # Check whether --enable-fast-install or --disable-fast-install was given.
5285 if test "${enable_fast_install+set}" = set; then
5286 enableval
="$enable_fast_install"
5287 p
=${PACKAGE-default}
5289 yes) enable_fast_install
=yes ;;
5290 no
) enable_fast_install
=no
;;
5292 enable_fast_install
=no
5293 # Look at the argument we got. We use all the common list separators.
5294 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
5295 for pkg
in $enableval; do
5296 if test "X$pkg" = "X$p"; then
5297 enable_fast_install
=yes
5304 enable_fast_install
=yes
5307 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5308 if test "${with_gnu_ld+set}" = set; then
5309 withval
="$with_gnu_ld"
5310 test "$withval" = no || with_gnu_ld
=yes
5315 if test "$GCC" = yes; then
5316 # Check if gcc -print-prog-name=ld gives a path.
5317 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5318 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5321 # gcc leaves a trailing carriage return which upsets mingw
5322 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5324 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
5327 # Accept absolute paths.
5328 [\\/]* |
[A-Za-z
]:[\\/]*)
5329 re_direlt
='/[^/][^/]*/\.\./'
5330 # Canonicalize the path of ld
5331 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
5332 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
5333 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
5335 test -z "$LD" && LD
="$ac_prog"
5338 # If it fails, then pretend we aren't using GCC.
5342 # If it is relative, then search for the first ld in PATH.
5346 elif test "$with_gnu_ld" = yes; then
5347 echo "$as_me:$LINENO: checking for GNU ld" >&5
5348 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5350 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5351 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5353 if test "${lt_cv_path_LD+set}" = set; then
5354 echo $ECHO_N "(cached) $ECHO_C" >&6
5356 if test -z "$LD"; then
5357 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5358 for ac_dir
in $PATH; do
5359 test -z "$ac_dir" && ac_dir
=.
5360 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
5361 lt_cv_path_LD
="$ac_dir/$ac_prog"
5362 # Check to see if the program is GNU ld. I'd rather use --version,
5363 # but apparently some GNU ld's only accept -v.
5364 # Break only if it was the GNU/non-GNU ld that we prefer.
5365 if "$lt_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
5366 test "$with_gnu_ld" != no
&& break
5368 test "$with_gnu_ld" != yes && break
5374 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
5379 if test -n "$LD"; then
5380 echo "$as_me:$LINENO: result: $LD" >&5
5381 echo "${ECHO_T}$LD" >&6
5383 echo "$as_me:$LINENO: result: no" >&5
5384 echo "${ECHO_T}no" >&6
5386 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5387 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5388 { (exit 1); exit 1; }; }
5389 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5390 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5391 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5392 echo $ECHO_N "(cached) $ECHO_C" >&6
5394 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5395 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
5396 lt_cv_prog_gnu_ld
=yes
5398 lt_cv_prog_gnu_ld
=no
5401 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5402 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5403 with_gnu_ld
=$lt_cv_prog_gnu_ld
5406 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5407 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5408 if test "${lt_cv_ld_reload_flag+set}" = set; then
5409 echo $ECHO_N "(cached) $ECHO_C" >&6
5411 lt_cv_ld_reload_flag
='-r'
5413 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5414 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5415 reload_flag
=$lt_cv_ld_reload_flag
5416 test -n "$reload_flag" && reload_flag
=" $reload_flag"
5418 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5419 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5420 if test "${lt_cv_path_NM+set}" = set; then
5421 echo $ECHO_N "(cached) $ECHO_C" >&6
5423 if test -n "$NM"; then
5424 # Let the user override the test.
5427 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5428 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
5429 test -z "$ac_dir" && ac_dir
=.
5430 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
5431 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
5432 # Check to see if the nm accepts a BSD-compat flag.
5433 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5434 # nm: unknown option "B" ignored
5435 # Tru64's nm complains that /dev/null is an invalid object file
5436 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep '(/dev/null|Invalid file or object type)' >/dev
/null
; then
5437 lt_cv_path_NM
="$tmp_nm -B"
5439 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
5440 lt_cv_path_NM
="$tmp_nm -p"
5443 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5444 continue # so that we can try to find one that supports BSD flags
5449 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
5454 echo "$as_me:$LINENO: result: $NM" >&5
5455 echo "${ECHO_T}$NM" >&6
5457 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
5458 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
5459 if test "${lt_cv_deplibs_check_method+set}" = set; then
5460 echo $ECHO_N "(cached) $ECHO_C" >&6
5462 lt_cv_file_magic_cmd
='$MAGIC_CMD'
5463 lt_cv_file_magic_test_file
=
5464 lt_cv_deplibs_check_method
='unknown'
5465 # Need to set the preceding variable on all platforms that support
5466 # interlibrary dependencies.
5467 # 'none' -- dependencies not supported.
5468 # `unknown' -- same as none, but documents that we really don't know.
5469 # 'pass_all' -- all dependencies passed with no checks.
5470 # 'test_compile' -- check by making test program.
5471 # 'file_magic [regex]' -- check by looking for files in library path
5472 # which responds to the $file_magic_cmd with a given egrep regex.
5473 # If you have `file' or equivalent on your system and you're not sure
5474 # whether `pass_all' will *always* work, you probably want this one.
5478 lt_cv_deplibs_check_method
=pass_all
5482 lt_cv_deplibs_check_method
=pass_all
5486 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5487 lt_cv_file_magic_cmd
='/usr/bin/file -L'
5488 lt_cv_file_magic_test_file
=/shlib
/libc.so
5491 cygwin
* | mingw
* |pw32
*)
5492 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
5493 lt_cv_file_magic_cmd
='$OBJDUMP -f'
5496 darwin
* | rhapsody
*)
5497 # this will be overwritten by pass_all, but leave it in just in case
5498 lt_cv_deplibs_check_method
='file_magic Mach-O dynamically linked shared library'
5499 lt_cv_file_magic_cmd
='/usr/bin/file -L'
5501 rhapsody
* | darwin1.012
)
5502 lt_cv_file_magic_test_file
='/System/Library/Frameworks/System.framework/System'
5505 lt_cv_file_magic_test_file
='/usr/lib/libSystem.dylib'
5508 lt_cv_deplibs_check_method
=pass_all
5511 freebsd
* | kfreebsd
*-gnu)
5512 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
5515 # Not sure whether the presence of OpenBSD here was a mistake.
5516 # Let's accept both of them until this is cleared up.
5517 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5518 lt_cv_file_magic_cmd
=/usr
/bin
/file
5519 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
5523 lt_cv_deplibs_check_method
=pass_all
5528 lt_cv_deplibs_check_method
=pass_all
5534 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5535 lt_cv_file_magic_cmd
=/usr
/bin
/file
5536 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
5539 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5540 lt_cv_file_magic_cmd
=/usr
/bin
/file
5541 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
5549 # this will be overridden with pass_all, but let us keep it just in case
5550 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5554 *-32|
*"-32 ") libmagic
=32-bit;;
5555 *-n32|
*"-n32 ") libmagic
=N32
;;
5556 *-64|
*"-64 ") libmagic
=64-bit;;
5557 *) libmagic
=never-match
;;
5559 # this will be overridden with pass_all, but let us keep it just in case
5560 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5563 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
5564 lt_cv_deplibs_check_method
=pass_all
5567 # This must be Linux ELF.
5569 lt_cv_deplibs_check_method
=pass_all
5572 netbsd
* | knetbsd
*-gnu)
5573 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
5574 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
5576 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so$'
5581 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5582 lt_cv_file_magic_cmd
=/usr
/bin
/file
5583 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
5586 osf3
* | osf4
* | osf5
*)
5587 # this will be overridden with pass_all, but let us keep it just in case
5588 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
5589 lt_cv_file_magic_test_file
=/shlib
/libc.so
5590 lt_cv_deplibs_check_method
=pass_all
5594 lt_cv_deplibs_check_method
=pass_all
5598 lt_cv_deplibs_check_method
=pass_all
5599 lt_cv_file_magic_test_file
=/lib
/libc.so
5602 sysv5uw
[78]* | sysv4
*uw2
*)
5603 lt_cv_deplibs_check_method
=pass_all
5606 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
5607 case $host_vendor in
5609 lt_cv_deplibs_check_method
=pass_all
5612 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]'
5613 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
5620 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5621 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5622 file_magic_cmd
=$lt_cv_file_magic_cmd
5623 deplibs_check_method
=$lt_cv_deplibs_check_method
5628 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5630 # find the maximum length of command line arguments
5631 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5632 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5633 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5641 # On DJGPP, this test can blow up pretty badly due to problems in libc
5642 # (any single argument exceeding 2000 bytes causes a buffer overrun
5643 # during glob expansion). Even if it were fixed, the result of this
5644 # check would be larger than it should be.
5645 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
5649 # On Win9x/ME, this test blows up -- it succeeds, but takes
5650 # about 5 minutes as the teststring grows exponentially.
5651 # Worse, since 9x/ME are not pre-emptively multitasking,
5652 # you end up with a "frozen" computer, even though with patience
5653 # the test eventually succeeds (with a max line length of 256k).
5654 # Instead, let's just punt: use the minimum linelength reported by
5655 # all of the supported platforms: 8192 (on NT/2K/XP).
5656 lt_cv_sys_max_cmd_len
=8192;
5660 # On AmigaOS with pdksh, this test takes hours, literally.
5661 # So we just punt and use a minimum line length of 8192.
5662 lt_cv_sys_max_cmd_len
=8192;
5665 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
5666 # This has been around since 386BSD, at least. Likely further.
5667 if test -x /sbin
/sysctl
; then
5668 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
5669 elif test -x /usr
/sbin
/sysctl
; then
5670 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
5672 lt_cv_sys_max_cmd_len
=65536 # usable default for *BSD
5674 # And add a safety zone
5675 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5676 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5682 if test -n "$lt_cv_sys_max_cmd_len" ; then
5683 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5684 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5686 echo "$as_me:$LINENO: result: none" >&5
5687 echo "${ECHO_T}none" >&6
5691 # Only perform the check for file, if the check method requires it
5692 case $deplibs_check_method in
5694 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5695 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5696 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5697 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5698 echo $ECHO_N "(cached) $ECHO_C" >&6
5702 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
5705 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
5708 ac_save_MAGIC_CMD
="$MAGIC_CMD"
5709 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5710 ac_dummy
="/usr/bin:$PATH"
5711 for ac_dir
in $ac_dummy; do
5712 test -z "$ac_dir" && ac_dir
=.
5713 if test -f $ac_dir/${ac_tool_prefix}file; then
5714 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
5715 if test -n "$file_magic_test_file"; then
5716 case $deplibs_check_method in
5718 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5719 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
5720 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
5721 egrep "$file_magic_regex" > /dev
/null
; then
5726 *** Warning: the command libtool uses to detect shared libraries,
5727 *** $file_magic_cmd, produces output that libtool cannot recognize.
5728 *** The result is that libtool may fail to recognize shared libraries
5729 *** as such. This will affect the creation of libtool libraries that
5730 *** depend on shared libraries, but programs linked with such libtool
5731 *** libraries will work regardless of this problem. Nevertheless, you
5732 *** may want to report the problem to your system manager and/or to
5733 *** bug-libtool@gnu.org
5743 MAGIC_CMD
="$ac_save_MAGIC_CMD"
5748 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
5749 if test -n "$MAGIC_CMD"; then
5750 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5751 echo "${ECHO_T}$MAGIC_CMD" >&6
5753 echo "$as_me:$LINENO: result: no" >&5
5754 echo "${ECHO_T}no" >&6
5757 if test -z "$lt_cv_path_MAGIC_CMD"; then
5758 if test -n "$ac_tool_prefix"; then
5759 echo "$as_me:$LINENO: checking for file" >&5
5760 echo $ECHO_N "checking for file... $ECHO_C" >&6
5761 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5762 echo $ECHO_N "(cached) $ECHO_C" >&6
5766 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
5769 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
5772 ac_save_MAGIC_CMD
="$MAGIC_CMD"
5773 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5774 ac_dummy
="/usr/bin:$PATH"
5775 for ac_dir
in $ac_dummy; do
5776 test -z "$ac_dir" && ac_dir
=.
5777 if test -f $ac_dir/file; then
5778 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
5779 if test -n "$file_magic_test_file"; then
5780 case $deplibs_check_method in
5782 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5783 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
5784 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
5785 egrep "$file_magic_regex" > /dev
/null
; then
5790 *** Warning: the command libtool uses to detect shared libraries,
5791 *** $file_magic_cmd, produces output that libtool cannot recognize.
5792 *** The result is that libtool may fail to recognize shared libraries
5793 *** as such. This will affect the creation of libtool libraries that
5794 *** depend on shared libraries, but programs linked with such libtool
5795 *** libraries will work regardless of this problem. Nevertheless, you
5796 *** may want to report the problem to your system manager and/or to
5797 *** bug-libtool@gnu.org
5807 MAGIC_CMD
="$ac_save_MAGIC_CMD"
5812 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
5813 if test -n "$MAGIC_CMD"; then
5814 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5815 echo "${ECHO_T}$MAGIC_CMD" >&6
5817 echo "$as_me:$LINENO: result: no" >&5
5818 echo "${ECHO_T}no" >&6
5830 if test -n "$ac_tool_prefix"; then
5831 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5832 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5833 echo "$as_me:$LINENO: checking for $ac_word" >&5
5834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5835 if test "${ac_cv_prog_RANLIB+set}" = set; then
5836 echo $ECHO_N "(cached) $ECHO_C" >&6
5838 if test -n "$RANLIB"; then
5839 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5841 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5845 test -z "$as_dir" && as_dir
=.
5846 for ac_exec_ext
in '' $ac_executable_extensions; do
5847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5848 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5857 RANLIB
=$ac_cv_prog_RANLIB
5858 if test -n "$RANLIB"; then
5859 echo "$as_me:$LINENO: result: $RANLIB" >&5
5860 echo "${ECHO_T}$RANLIB" >&6
5862 echo "$as_me:$LINENO: result: no" >&5
5863 echo "${ECHO_T}no" >&6
5867 if test -z "$ac_cv_prog_RANLIB"; then
5868 ac_ct_RANLIB
=$RANLIB
5869 # Extract the first word of "ranlib", so it can be a program name with args.
5870 set dummy ranlib
; ac_word
=$2
5871 echo "$as_me:$LINENO: checking for $ac_word" >&5
5872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5873 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5874 echo $ECHO_N "(cached) $ECHO_C" >&6
5876 if test -n "$ac_ct_RANLIB"; then
5877 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5879 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5883 test -z "$as_dir" && as_dir
=.
5884 for ac_exec_ext
in '' $ac_executable_extensions; do
5885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5886 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5893 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
5896 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5897 if test -n "$ac_ct_RANLIB"; then
5898 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5899 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5901 echo "$as_me:$LINENO: result: no" >&5
5902 echo "${ECHO_T}no" >&6
5905 RANLIB
=$ac_ct_RANLIB
5907 RANLIB
="$ac_cv_prog_RANLIB"
5910 if test -n "$ac_tool_prefix"; then
5911 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5912 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
5913 echo "$as_me:$LINENO: checking for $ac_word" >&5
5914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5915 if test "${ac_cv_prog_STRIP+set}" = set; then
5916 echo $ECHO_N "(cached) $ECHO_C" >&6
5918 if test -n "$STRIP"; then
5919 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
5921 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5925 test -z "$as_dir" && as_dir
=.
5926 for ac_exec_ext
in '' $ac_executable_extensions; do
5927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5928 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
5929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5937 STRIP
=$ac_cv_prog_STRIP
5938 if test -n "$STRIP"; then
5939 echo "$as_me:$LINENO: result: $STRIP" >&5
5940 echo "${ECHO_T}$STRIP" >&6
5942 echo "$as_me:$LINENO: result: no" >&5
5943 echo "${ECHO_T}no" >&6
5947 if test -z "$ac_cv_prog_STRIP"; then
5949 # Extract the first word of "strip", so it can be a program name with args.
5950 set dummy strip
; ac_word
=$2
5951 echo "$as_me:$LINENO: checking for $ac_word" >&5
5952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5953 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5954 echo $ECHO_N "(cached) $ECHO_C" >&6
5956 if test -n "$ac_ct_STRIP"; then
5957 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
5959 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5963 test -z "$as_dir" && as_dir
=.
5964 for ac_exec_ext
in '' $ac_executable_extensions; do
5965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5966 ac_cv_prog_ac_ct_STRIP
="strip"
5967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5973 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
5976 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
5977 if test -n "$ac_ct_STRIP"; then
5978 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5979 echo "${ECHO_T}$ac_ct_STRIP" >&6
5981 echo "$as_me:$LINENO: result: no" >&5
5982 echo "${ECHO_T}no" >&6
5987 STRIP
="$ac_cv_prog_STRIP"
5991 # Check for any special flags to pass to ltconfig.
5992 libtool_flags
="--cache-file=$cache_file"
5993 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
5994 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
5995 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
5996 test "$GCC" = yes && libtool_flags
="$libtool_flags --with-gcc"
5997 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
6000 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6001 if test "${enable_libtool_lock+set}" = set; then
6002 enableval
="$enable_libtool_lock"
6005 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
6006 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
6009 # Check whether --with-pic or --without-pic was given.
6010 if test "${with_pic+set}" = set; then
6016 test x
"$pic_mode" = xyes
&& libtool_flags
="$libtool_flags --prefer-pic"
6017 test x
"$pic_mode" = xno
&& libtool_flags
="$libtool_flags --prefer-non-pic"
6019 # Some flags need to be propagated to the compiler or linker for good
6023 # Find out which ABI we are using.
6024 echo '#line 6024 "configure"' > conftest.
$ac_ext
6025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6026 (eval $ac_compile) 2>&5
6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029 (exit $ac_status); }; then
6030 if test "$lt_cv_prog_gnu_ld" = yes; then
6031 case `/usr/bin/file conftest.$ac_objext` in
6033 LD
="${LD-ld} -melf32bsmip"
6036 LD
="${LD-ld} -melf32bmipn32"
6039 LD
="${LD-ld} -melf64bmip"
6043 case `/usr/bin/file conftest.$ac_objext` in
6060 # Find out which ABI we are using.
6061 echo 'int i;' > conftest.
$ac_ext
6062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6063 (eval $ac_compile) 2>&5
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); }; then
6067 case "`/usr/bin/file conftest.o`" in
6079 x86_64-
*linux
*|ppc
*-*linux
*|powerpc
*-*linux
*|s390
*-*linux
*|sparc
*-*linux
*)
6080 # Find out which ABI we are using.
6081 echo 'int i;' > conftest.
$ac_ext
6082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6083 (eval $ac_compile) 2>&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; then
6087 case "`/usr/bin/file conftest.o`" in
6091 LD
="${LD-ld} -m elf_i386"
6093 ppc64-
*linux
*|powerpc64-
*linux
*)
6094 LD
="${LD-ld} -m elf32ppclinux"
6097 LD
="${LD-ld} -m elf_s390"
6100 LD
="${LD-ld} -m elf32_sparc"
6107 LD
="${LD-ld} -m elf_x86_64"
6109 ppc
*-*linux
*|powerpc
*-*linux
*)
6110 LD
="${LD-ld} -m elf64ppc"
6113 LD
="${LD-ld} -m elf64_s390"
6116 LD
="${LD-ld} -m elf64_sparc"
6126 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6127 SAVE_CFLAGS
="$CFLAGS"
6128 CFLAGS
="$CFLAGS -belf"
6129 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6130 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6131 if test "${lt_cv_cc_needs_belf+set}" = set; then
6132 echo $ECHO_N "(cached) $ECHO_C" >&6
6137 ac_cpp
='$CPP $CPPFLAGS'
6138 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6139 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6140 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6142 if test x
$gcc_no_link = xyes
; then
6143 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6144 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6145 { (exit 1); exit 1; }; }
6147 cat >conftest.
$ac_ext <<_ACEOF
6150 cat confdefs.h
>>conftest.
$ac_ext
6151 cat >>conftest.
$ac_ext <<_ACEOF
6152 /* end confdefs.h. */
6162 rm -f conftest.
$ac_objext conftest
$ac_exeext
6163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6164 (eval $ac_link) 2>conftest.er1
6166 grep -v '^ *+' conftest.er1
>conftest.err
6168 cat conftest.err
>&5
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); } &&
6171 { ac_try
='test -z "$ac_c_werror_flag"
6172 || test ! -s conftest.err'
6173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); }; } &&
6178 { ac_try
='test -s conftest$ac_exeext'
6179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); }; }; then
6184 lt_cv_cc_needs_belf
=yes
6186 echo "$as_me: failed program was:" >&5
6187 sed 's/^/| /' conftest.
$ac_ext >&5
6189 lt_cv_cc_needs_belf
=no
6191 rm -f conftest.err conftest.
$ac_objext \
6192 conftest
$ac_exeext conftest.
$ac_ext
6194 ac_cpp
='$CPP $CPPFLAGS'
6195 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6196 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6197 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6200 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6201 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6202 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
6203 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6204 CFLAGS
="$SAVE_CFLAGS"
6212 # Save cache, so that ltconfig can load it
6213 cat >confcache
<<\_ACEOF
6214 # This file is a shell script that caches the results of configure
6215 # tests run on this system so they can be shared between configure
6216 # scripts and configure runs, see configure's option --config-cache.
6217 # It is not useful on other systems. If it contains results you don't
6218 # want to keep, you may remove or edit it.
6220 # config.status only pays attention to the cache file if you give it
6221 # the --recheck option to rerun configure.
6223 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6224 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6229 # The following way of writing the cache mishandles newlines in values,
6230 # but we know of no workaround that is simple, portable, and efficient.
6231 # So, don't put newlines in cache variables' values.
6232 # Ultrix sh set writes to stderr and can't be redirected directly,
6233 # and sets the high bit in the cache file unless we assign to the vars.
6236 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6238 # `set' does not quote correctly, so add quotes (double-quote
6239 # substitution turns \\\\ into \\, and sed turns \\ into \).
6242 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6245 # `set' quotes correctly as required by POSIX, so do not add quotes.
6247 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6254 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6256 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6258 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
6259 if test -w $cache_file; then
6260 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6261 cat confcache
>$cache_file
6263 echo "not updating unwritable cache $cache_file"
6268 # Actually configure libtool. ac_aux_dir is where install-sh is found.
6269 AR
="$AR" LTCC
="$CC" CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
6270 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
6271 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
6272 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
6273 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
6274 deplibs_check_method
="$deplibs_check_method" file_magic_cmd
="$file_magic_cmd" \
6275 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
6276 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh
$host \
6277 ||
{ { echo "$as_me:$LINENO: error: libtool configure failed" >&5
6278 echo "$as_me: error: libtool configure failed" >&2;}
6279 { (exit 1); exit 1; }; }
6281 # Reload cache, that may have been modified by ltconfig
6282 if test -r "$cache_file"; then
6283 # Some versions of bash will fail to source /dev/null (special
6284 # files actually), so we avoid doing that.
6285 if test -f "$cache_file"; then
6286 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
6287 echo "$as_me: loading cache $cache_file" >&6;}
6289 [\\/]* | ?
:[\\/]* ) .
$cache_file;;
6290 *) . .
/$cache_file;;
6294 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
6295 echo "$as_me: creating cache $cache_file" >&6;}
6300 # This can be used to rebuild libtool when needed
6301 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
6303 # Always use our own libtool.
6304 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
6306 # Redirect the config.log output again, so that the ltconfig log is not
6307 # clobbered by the next message.
6308 exec 5>>.
/config.log
6311 ac_cpp
='$CXXCPP $CPPFLAGS'
6312 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6313 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6314 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6315 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6316 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6317 if test -z "$CXXCPP"; then
6318 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6319 echo $ECHO_N "(cached) $ECHO_C" >&6
6321 # Double quotes because CXXCPP needs to be expanded
6322 for CXXCPP
in "$CXX -E" "/lib/cpp"
6325 for ac_cxx_preproc_warn_flag
in '' yes
6327 # Use a header file that comes with gcc, so configuring glibc
6328 # with a fresh cross-compiler works.
6329 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6330 # <limits.h> exists even on freestanding compilers.
6331 # On the NeXT, cc -E runs the code through the compiler's parser,
6332 # not just through cpp. "Syntax error" is here to catch this case.
6333 cat >conftest.
$ac_ext <<_ACEOF
6336 cat confdefs.h
>>conftest.
$ac_ext
6337 cat >>conftest.
$ac_ext <<_ACEOF
6338 /* end confdefs.h. */
6340 # include <limits.h>
6342 # include <assert.h>
6346 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6347 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6349 grep -v '^ *+' conftest.er1
>conftest.err
6351 cat conftest.err
>&5
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); } >/dev
/null
; then
6354 if test -s conftest.err
; then
6355 ac_cpp_err
=$ac_cxx_preproc_warn_flag
6356 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
6363 if test -z "$ac_cpp_err"; then
6366 echo "$as_me: failed program was:" >&5
6367 sed 's/^/| /' conftest.
$ac_ext >&5
6369 # Broken: fails on valid input.
6372 rm -f conftest.err conftest.
$ac_ext
6374 # OK, works on sane cases. Now check whether non-existent headers
6375 # can be detected and how.
6376 cat >conftest.
$ac_ext <<_ACEOF
6379 cat confdefs.h
>>conftest.
$ac_ext
6380 cat >>conftest.
$ac_ext <<_ACEOF
6381 /* end confdefs.h. */
6382 #include <ac_nonexistent.h>
6384 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6385 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6387 grep -v '^ *+' conftest.er1
>conftest.err
6389 cat conftest.err
>&5
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); } >/dev
/null
; then
6392 if test -s conftest.err
; then
6393 ac_cpp_err
=$ac_cxx_preproc_warn_flag
6394 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
6401 if test -z "$ac_cpp_err"; then
6402 # Broken: success on invalid input.
6405 echo "$as_me: failed program was:" >&5
6406 sed 's/^/| /' conftest.
$ac_ext >&5
6408 # Passes both tests.
6412 rm -f conftest.err conftest.
$ac_ext
6415 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6416 rm -f conftest.err conftest.
$ac_ext
6417 if $ac_preproc_ok; then
6422 ac_cv_prog_CXXCPP
=$CXXCPP
6425 CXXCPP
=$ac_cv_prog_CXXCPP
6427 ac_cv_prog_CXXCPP
=$CXXCPP
6429 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6430 echo "${ECHO_T}$CXXCPP" >&6
6432 for ac_cxx_preproc_warn_flag
in '' yes
6434 # Use a header file that comes with gcc, so configuring glibc
6435 # with a fresh cross-compiler works.
6436 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6437 # <limits.h> exists even on freestanding compilers.
6438 # On the NeXT, cc -E runs the code through the compiler's parser,
6439 # not just through cpp. "Syntax error" is here to catch this case.
6440 cat >conftest.
$ac_ext <<_ACEOF
6443 cat confdefs.h
>>conftest.
$ac_ext
6444 cat >>conftest.
$ac_ext <<_ACEOF
6445 /* end confdefs.h. */
6447 # include <limits.h>
6449 # include <assert.h>
6453 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6454 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6456 grep -v '^ *+' conftest.er1
>conftest.err
6458 cat conftest.err
>&5
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); } >/dev
/null
; then
6461 if test -s conftest.err
; then
6462 ac_cpp_err
=$ac_cxx_preproc_warn_flag
6463 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
6470 if test -z "$ac_cpp_err"; then
6473 echo "$as_me: failed program was:" >&5
6474 sed 's/^/| /' conftest.
$ac_ext >&5
6476 # Broken: fails on valid input.
6479 rm -f conftest.err conftest.
$ac_ext
6481 # OK, works on sane cases. Now check whether non-existent headers
6482 # can be detected and how.
6483 cat >conftest.
$ac_ext <<_ACEOF
6486 cat confdefs.h
>>conftest.
$ac_ext
6487 cat >>conftest.
$ac_ext <<_ACEOF
6488 /* end confdefs.h. */
6489 #include <ac_nonexistent.h>
6491 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6492 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6494 grep -v '^ *+' conftest.er1
>conftest.err
6496 cat conftest.err
>&5
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); } >/dev
/null
; then
6499 if test -s conftest.err
; then
6500 ac_cpp_err
=$ac_cxx_preproc_warn_flag
6501 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
6508 if test -z "$ac_cpp_err"; then
6509 # Broken: success on invalid input.
6512 echo "$as_me: failed program was:" >&5
6513 sed 's/^/| /' conftest.
$ac_ext >&5
6515 # Passes both tests.
6519 rm -f conftest.err conftest.
$ac_ext
6522 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6523 rm -f conftest.err conftest.
$ac_ext
6524 if $ac_preproc_ok; then
6527 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6528 See \`config.log' for more details." >&5
6529 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6530 See \`config.log' for more details." >&2;}
6531 { (exit 1); exit 1; }; }
6535 ac_cpp
='$CPP $CPPFLAGS'
6536 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6537 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6538 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6542 LIBTOOL_DEPS
=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
6544 lt_save_CFLAGS
="$CFLAGS"
6545 AR
="$AR" LTCC
="$CC" CC
="$CXX" CXX
="$CXX" CFLAGS
="$CXXFLAGS" CPPFLAGS
="$CPPFLAGS" \
6546 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
6547 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
6548 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
6549 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
6550 deplibs_check_method
="$deplibs_check_method" \
6551 file_magic_cmd
="$file_magic_cmd" \
6552 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
-o libtool
$libtool_flags \
6553 --build="$build" --add-tag=CXX
$ac_aux_dir/ltcf-cxx.sh
$host \
6554 ||
{ { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6555 echo "$as_me: error: libtool tag configuration failed" >&2;}
6556 { (exit 1); exit 1; }; }
6558 CFLAGS
="$lt_save_CFLAGS"
6560 # Redirect the config.log output again, so that the ltconfig log is not
6561 # clobbered by the next message.
6562 exec 5>>.
/config.log
6572 # Extract the first word of "$ac_prog", so it can be a program name with args.
6573 set dummy
$ac_prog; ac_word
=$2
6574 echo "$as_me:$LINENO: checking for $ac_word" >&5
6575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6576 if test "${ac_cv_prog_GCJ+set}" = set; then
6577 echo $ECHO_N "(cached) $ECHO_C" >&6
6579 if test -n "$GCJ"; then
6580 ac_cv_prog_GCJ
="$GCJ" # Let the user override the test.
6582 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6586 test -z "$as_dir" && as_dir
=.
6587 for ac_exec_ext
in '' $ac_executable_extensions; do
6588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6589 ac_cv_prog_GCJ
="$ac_prog"
6590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6599 if test -n "$GCJ"; then
6600 echo "$as_me:$LINENO: result: $GCJ" >&5
6601 echo "${ECHO_T}$GCJ" >&6
6603 echo "$as_me:$LINENO: result: no" >&5
6604 echo "${ECHO_T}no" >&6
6607 test -n "$GCJ" && break
6609 test -n "$GCJ" || GCJ
="gcj"
6611 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
6612 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
6613 { (exit 1); exit 1; }; }
6614 if test "x${GCJFLAGS-unset}" = xunset
; then
6619 depcc
="$GCJ" am_compiler_list
='gcc3 gcc'
6621 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6622 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6623 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
6624 echo $ECHO_N "(cached) $ECHO_C" >&6
6626 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6627 # We make a subdir and do the tests there. Otherwise we can end up
6628 # making bogus files that we don't know about and never remove. For
6629 # instance it was reported that on HP-UX the gcc test will end up
6630 # making a dummy file named `D' -- because `-MD' means `put the output
6633 # Copy depcomp to subdir because otherwise we won't find it if we're
6634 # using a relative directory.
6635 cp "$am_depcomp" conftest.dir
6637 # We will build objects and dependencies in a subdirectory because
6638 # it helps to detect inapplicable dependency modes. For instance
6639 # both Tru64's cc and ICC support -MD to output dependencies as a
6640 # side effect of compilation, but ICC will put the dependencies in
6641 # the current directory while Tru64 will put them in the object
6645 am_cv_GCJ_dependencies_compiler_type
=none
6646 if test "$am_compiler_list" = ""; then
6647 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6649 for depmode
in $am_compiler_list; do
6650 # Setup a source with many dependencies, because some compilers
6651 # like to wrap large dependency lists on column 80 (with \), and
6652 # we should not choose a depcomp mode which is confused by this.
6654 # We need to recreate these files for each test, as the compiler may
6655 # overwrite some of them when testing with obscure command lines.
6656 # This happens at least with the AIX C compiler.
6658 for i
in 1 2 3 4 5 6; do
6659 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
6660 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6661 # Solaris 8's {/usr,}/bin/sh.
6662 touch sub
/conftst
$i.h
6664 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6668 # after this tag, mechanisms are not by side-effect, so they'll
6669 # only be used when explicitly requested
6670 if test "x$enable_dependency_tracking" = xyes
; then
6678 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6679 # mode. It turns out that the SunPro C++ compiler does not properly
6680 # handle `-M -o', and we need to detect this.
6681 if depmode
=$depmode \
6682 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
6683 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
6684 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
6685 >/dev
/null
2>conftest.err
&&
6686 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
6687 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
6688 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
6689 # icc doesn't choke on unknown options, it will just issue warnings
6690 # or remarks (even with -Werror). So we grep stderr for any message
6691 # that says an option was ignored or not supported.
6692 # When given -MP, icc 7.0 and 7.1 complain thusly:
6693 # icc: Command line warning: ignoring option '-M'; no argument required
6694 # The diagnosis changed in icc 8.0:
6695 # icc: Command line remark: option '-MP' not supported
6696 if (grep 'ignoring option' conftest.err ||
6697 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
6698 am_cv_GCJ_dependencies_compiler_type
=$depmode
6707 am_cv_GCJ_dependencies_compiler_type
=none
6711 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
6712 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
6713 GCJDEPMODE
=depmode
=$am_cv_GCJ_dependencies_compiler_type
6718 test "x$enable_dependency_tracking" != xno \
6719 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3
; then
6720 am__fastdepGCJ_TRUE
=
6721 am__fastdepGCJ_FALSE
='#'
6723 am__fastdepGCJ_TRUE
='#'
6724 am__fastdepGCJ_FALSE
=
6730 LIBTOOL_DEPS
=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
6732 lt_save_CFLAGS
="$CFLAGS"
6733 AR
="$AR" LTCC
="$CC" CC
="$GCJ" CFLAGS
="$GCJFLAGS" CPPFLAGS
="$CPPFLAGS" \
6734 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
6735 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
6736 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
6737 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
6738 deplibs_check_method
="$deplibs_check_method" \
6739 file_magic_cmd
="$file_magic_cmd" \
6740 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
-o libtool
$libtool_flags \
6741 --build="$build" --add-tag=GCJ
$ac_aux_dir/ltcf-gcj.sh
$host \
6742 ||
{ { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6743 echo "$as_me: error: libtool tag configuration failed" >&2;}
6744 { (exit 1); exit 1; }; }
6746 CFLAGS
="$lt_save_CFLAGS"
6748 # Redirect the config.log output again, so that the ltconfig log is not
6749 # clobbered by the next message.
6750 exec 5>>.
/config.log
6754 if test "x$CC" != xcc
; then
6755 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
6756 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
6758 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
6759 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
6761 set dummy
$CC; ac_cc
=`echo $2 |
6762 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6763 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
6764 echo $ECHO_N "(cached) $ECHO_C" >&6
6766 cat >conftest.
$ac_ext <<_ACEOF
6769 cat confdefs.h
>>conftest.
$ac_ext
6770 cat >>conftest.
$ac_ext <<_ACEOF
6771 /* end confdefs.h. */
6781 # Make sure it works both with $CC and with simple cc.
6782 # We do the test twice because some compilers refuse to overwrite an
6783 # existing .o file with -o, though they will create one.
6784 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6785 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789 (exit $ac_status); } &&
6790 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); };
6796 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
6797 if test "x$CC" != xcc
; then
6798 # Test first that cc exists at all.
6799 if { ac_try
='cc -c conftest.$ac_ext >&5'
6800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); }; }; then
6805 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6806 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); } &&
6811 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); };
6820 # cc exists but doesn't like -o.
6821 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
6826 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
6831 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
6832 echo "$as_me:$LINENO: result: yes" >&5
6833 echo "${ECHO_T}yes" >&6
6835 echo "$as_me:$LINENO: result: no" >&5
6836 echo "${ECHO_T}no" >&6
6838 cat >>confdefs.h
<<\_ACEOF
6839 #define NO_MINUS_C_MINUS_O 1
6844 # FIXME: we rely on the cache variable name because
6845 # there is no other way.
6847 ac_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6848 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
6849 # Losing compiler, so override with the script.
6850 # FIXME: It is wrong to rewrite CC.
6851 # But if we don't then we get into trouble of one sort or another.
6852 # A longer-term fix would be to have automake use am__CC in this case,
6853 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6854 CC
="$am_aux_dir/compile $CC"
6860 subdirs
="$subdirs classpath libltdl"
6863 # The -no-testsuite modules omit the test subdir.
6866 if test -d $srcdir/testsuite
; then
6868 TESTSUBDIR_FALSE
='#'
6875 # Should the runtime set system properties by examining the
6876 # environment variable GCJ_PROPERTIES?
6877 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
6878 if test "${enable_getenv_properties+set}" = set; then
6879 enableval
="$enable_getenv_properties"
6883 # Whether GCJ_PROPERTIES is used depends on the target.
6884 if test -z "$enable_getenv_properties"; then
6885 enable_getenv_properties
=${enable_getenv_properties_default-yes}
6887 if test "$enable_getenv_properties" = no
; then
6889 cat >>confdefs.h
<<\_ACEOF
6890 #define DISABLE_GETENV_PROPERTIES 1
6895 # Whether we should use arguments to main()
6896 if test -z "$enable_main_args"; then
6897 enable_main_args
=${enable_main_args_default-yes}
6899 if test "$enable_main_args" = no
; then
6901 cat >>confdefs.h
<<\_ACEOF
6902 #define DISABLE_MAIN_ARGS 1
6908 # Should we use hashtable-based synchronization?
6909 # Currently works only for Linux X86/ia64
6910 # Typically faster and more space-efficient
6911 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
6912 if test "${enable_hash_synchronization+set}" = set; then
6913 enableval
="$enable_hash_synchronization"
6917 if test -z "$enable_hash_synchronization"; then
6918 enable_hash_synchronization
=$enable_hash_synchronization_default
6926 # Check whether --with-ecj-jar or --without-ecj-jar was given.
6927 if test "${with_ecj_jar+set}" = set; then
6928 withval
="$with_ecj_jar"
6931 if test -f $multi_basedir/ecj.jar
; then
6932 ECJ_BUILD_JAR
=$multi_basedir/ecj.jar
6933 ECJ_JAR
='$(jardir)/ecj.jar'
6941 if test "$ECJ_JAR" != ""; then
6943 BUILD_ECJ1_FALSE
='#'
6951 if test $install_ecj_jar = yes; then
6952 INSTALL_ECJ_JAR_TRUE
=
6953 INSTALL_ECJ_JAR_FALSE
='#'
6955 INSTALL_ECJ_JAR_TRUE
='#'
6956 INSTALL_ECJ_JAR_FALSE
=
6961 # Check whether --with-java-home or --without-java-home was given.
6962 if test "${with_java_home+set}" = set; then
6963 withval
="$with_java_home"
6964 JAVA_HOME
="${withval}"
6970 if test ! -z "$JAVA_HOME"; then
6972 JAVA_HOME_SET_FALSE
='#'
6974 JAVA_HOME_SET_TRUE
='#'
6975 JAVA_HOME_SET_FALSE
=
6980 # What is the native OS API for MinGW?
6982 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
6983 if test "${with_win32_nlsapi+set}" = set; then
6984 withval
="$with_win32_nlsapi"
6985 case "${withval}" in
6986 ansi
) with_win32_nlsapi
=ansi
;;
6987 unicows
) with_win32_nlsapi
=unicows
;;
6988 unicode
) with_win32_nlsapi
=unicode
;;
6989 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
6990 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
6991 { (exit 1); exit 1; }; } ;;
6994 with_win32_nlsapi
=ansi
6997 case "${with_win32_nlsapi}" in
7000 cat >>confdefs.h
<<\_ACEOF
7001 #define MINGW_LIBGCJ_UNICODE 1
7007 # configure.host sets slow_pthread_self if the synchronization code should
7008 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
7009 if test "${slow_pthread_self}" = "yes"; then
7011 cat >>confdefs.h
<<\_ACEOF
7012 #define SLOW_PTHREAD_SELF 1
7017 # Check for gc debugging. This option is handled both here and in the GC.
7018 # Check whether --enable-gc-debug or --disable-gc-debug was given.
7019 if test "${enable_gc_debug+set}" = set; then
7020 enableval
="$enable_gc_debug"
7021 if test "$enable_gc_debug" = "yes"; then
7023 cat >>confdefs.h
<<\_ACEOF
7024 #define LIBGCJ_GC_DEBUG 1
7030 # See if the user has the interpreter included.
7031 # Check whether --enable-interpreter or --disable-interpreter was given.
7032 if test "${enable_interpreter+set}" = set; then
7033 enableval
="$enable_interpreter"
7034 if test "$enable_interpreter" = yes; then
7035 # This can also be set in configure.host.
7036 libgcj_interpreter
=yes
7037 elif test "$enable_interpreter" = no
; then
7038 libgcj_interpreter
=no
7042 if test "$libgcj_interpreter" = yes; then
7044 cat >>confdefs.h
<<\_ACEOF
7045 #define INTERPRETER 1
7049 INTERPRETER
="$libgcj_interpreter"
7052 echo "$as_me:$LINENO: checking for exception model to use" >&5
7053 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
7055 ac_cpp
='$CXXCPP $CPPFLAGS'
7056 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7057 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7058 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7060 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
7061 if test "${enable_sjlj_exceptions+set}" = set; then
7062 enableval
="$enable_sjlj_exceptions"
7065 cat > conftest.
$ac_ext << EOF
7066 #line 7066 "configure"
7075 old_CXXFLAGS
="$CXXFLAGS"
7077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7078 (eval $ac_compile) 2>&5
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); }; then
7082 if grep _Unwind_SjLj_Resume conftest.s
>/dev
/null
2>&1 ; then
7083 enable_sjlj_exceptions
=yes
7084 elif grep _Unwind_Resume conftest.s
>/dev
/null
2>&1 ; then
7085 enable_sjlj_exceptions
=no
7088 CXXFLAGS
="$old_CXXFLAGS"
7091 if test x
$enable_sjlj_exceptions = xyes
; then
7093 cat >>confdefs.h
<<\_ACEOF
7094 #define SJLJ_EXCEPTIONS 1
7097 ac_exception_model_name
=sjlj
7098 elif test x
$enable_sjlj_exceptions = xno
; then
7099 ac_exception_model_name
="call frame"
7101 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
7102 echo "$as_me: error: unable to detect exception model" >&2;}
7103 { (exit 1); exit 1; }; }
7106 ac_cpp
='$CPP $CPPFLAGS'
7107 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7108 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7109 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7111 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
7112 echo "${ECHO_T}$ac_exception_model_name" >&6
7114 # If we are non using SJLJ exceptions, and this host does not have support
7115 # for unwinding from a signal handler, enable checked dereferences and divides.
7116 if test $can_unwind_signal = no
&& test $enable_sjlj_exceptions = no
; then
7117 CHECKREFSPEC
=-fcheck-references
7118 DIVIDESPEC
=-fuse-divide-subroutine
7122 # See if the user wants to disable java.net. This is the mildly
7123 # ugly way that we admit that target-side configuration sucks.
7124 # Check whether --enable-java-net or --disable-java-net was given.
7125 if test "${enable_java_net+set}" = set; then
7126 enableval
="$enable_java_net"
7130 # Whether java.net is built by default can depend on the target.
7131 if test -z "$enable_java_net"; then
7132 enable_java_net
=${enable_java_net_default-yes}
7134 if test "$enable_java_net" = no
; then
7136 cat >>confdefs.h
<<\_ACEOF
7137 #define DISABLE_JAVA_NET 1
7142 # See if the user wants to configure without libffi. Some
7143 # architectures don't support it, and default values are set in
7146 # Check whether --with-libffi or --without-libffi was given.
7147 if test "${with_libffi+set}" = set; then
7148 withval
="$with_libffi"
7151 with_libffi
=${with_libffi_default-yes}
7156 if test "$with_libffi" != no
; then
7158 cat >>confdefs.h
<<\_ACEOF
7159 #define USE_LIBFFI 1
7162 LIBFFI
=..
/libffi
/libffi_convenience.la
7163 LIBFFIINCS
='-I$(top_srcdir)/../libffi/include -I../libffi/include'
7168 # See if the user wants to disable JVMPI support.
7169 # Check whether --enable-jvmpi or --disable-jvmpi was given.
7170 if test "${enable_jvmpi+set}" = set; then
7171 enableval
="$enable_jvmpi"
7175 if test "$enable_jvmpi" != no
; then
7177 cat >>confdefs.h
<<\_ACEOF
7178 #define ENABLE_JVMPI 1
7183 # If the target is an eCos system, use the appropriate eCos
7185 # FIXME: this should not be a local option but a global target
7186 # system; at present there is no eCos target.
7187 TARGET_ECOS
=${PROCESS-"no"}
7189 # Check whether --with-ecos or --without-ecos was given.
7190 if test "${with_ecos+set}" = set; then
7191 withval
="$with_ecos"
7192 TARGET_ECOS
="$with_ecos"
7196 case "$TARGET_ECOS" in
7203 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
7204 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
7205 LD_PROG
=`$CC --print-prog-name=ld`
7206 LD_VERSION
=`$LD_PROG --version`
7207 LD_VERSION_MAJOR
=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
7208 LD_VERSION_MINOR
=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
7209 if expr "$LD_VERSION_MAJOR" \
> 2 > /dev
/null
; then
7212 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \
>= 13 > /dev
/null
; then
7216 if test "x$LD_OK" != x
; then
7217 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
7218 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
7220 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
7221 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
7222 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
7223 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
7225 cat >>confdefs.h
<<\_ACEOF
7226 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
7242 cat >>confdefs.h
<<\_ACEOF
7250 ac_config_links
="$ac_config_links include/platform.h:include/$PLATFORMH"
7254 ac_cpp
='$CPP $CPPFLAGS'
7255 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7256 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7257 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7258 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7259 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7260 # On Suns, sometimes $CPP names a directory.
7261 if test -n "$CPP" && test -d "$CPP"; then
7264 if test -z "$CPP"; then
7265 if test "${ac_cv_prog_CPP+set}" = set; then
7266 echo $ECHO_N "(cached) $ECHO_C" >&6
7268 # Double quotes because CPP needs to be expanded
7269 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7272 for ac_c_preproc_warn_flag
in '' yes
7274 # Use a header file that comes with gcc, so configuring glibc
7275 # with a fresh cross-compiler works.
7276 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7277 # <limits.h> exists even on freestanding compilers.
7278 # On the NeXT, cc -E runs the code through the compiler's parser,
7279 # not just through cpp. "Syntax error" is here to catch this case.
7280 cat >conftest.
$ac_ext <<_ACEOF
7283 cat confdefs.h
>>conftest.
$ac_ext
7284 cat >>conftest.
$ac_ext <<_ACEOF
7285 /* end confdefs.h. */
7287 # include <limits.h>
7289 # include <assert.h>
7293 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7294 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7296 grep -v '^ *+' conftest.er1
>conftest.err
7298 cat conftest.err
>&5
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); } >/dev
/null
; then
7301 if test -s conftest.err
; then
7302 ac_cpp_err
=$ac_c_preproc_warn_flag
7303 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7310 if test -z "$ac_cpp_err"; then
7313 echo "$as_me: failed program was:" >&5
7314 sed 's/^/| /' conftest.
$ac_ext >&5
7316 # Broken: fails on valid input.
7319 rm -f conftest.err conftest.
$ac_ext
7321 # OK, works on sane cases. Now check whether non-existent headers
7322 # can be detected and how.
7323 cat >conftest.
$ac_ext <<_ACEOF
7326 cat confdefs.h
>>conftest.
$ac_ext
7327 cat >>conftest.
$ac_ext <<_ACEOF
7328 /* end confdefs.h. */
7329 #include <ac_nonexistent.h>
7331 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7332 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7334 grep -v '^ *+' conftest.er1
>conftest.err
7336 cat conftest.err
>&5
7337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338 (exit $ac_status); } >/dev
/null
; then
7339 if test -s conftest.err
; then
7340 ac_cpp_err
=$ac_c_preproc_warn_flag
7341 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7348 if test -z "$ac_cpp_err"; then
7349 # Broken: success on invalid input.
7352 echo "$as_me: failed program was:" >&5
7353 sed 's/^/| /' conftest.
$ac_ext >&5
7355 # Passes both tests.
7359 rm -f conftest.err conftest.
$ac_ext
7362 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7363 rm -f conftest.err conftest.
$ac_ext
7364 if $ac_preproc_ok; then
7376 echo "$as_me:$LINENO: result: $CPP" >&5
7377 echo "${ECHO_T}$CPP" >&6
7379 for ac_c_preproc_warn_flag
in '' yes
7381 # Use a header file that comes with gcc, so configuring glibc
7382 # with a fresh cross-compiler works.
7383 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7384 # <limits.h> exists even on freestanding compilers.
7385 # On the NeXT, cc -E runs the code through the compiler's parser,
7386 # not just through cpp. "Syntax error" is here to catch this case.
7387 cat >conftest.
$ac_ext <<_ACEOF
7390 cat confdefs.h
>>conftest.
$ac_ext
7391 cat >>conftest.
$ac_ext <<_ACEOF
7392 /* end confdefs.h. */
7394 # include <limits.h>
7396 # include <assert.h>
7400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7401 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7403 grep -v '^ *+' conftest.er1
>conftest.err
7405 cat conftest.err
>&5
7406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); } >/dev
/null
; then
7408 if test -s conftest.err
; then
7409 ac_cpp_err
=$ac_c_preproc_warn_flag
7410 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7417 if test -z "$ac_cpp_err"; then
7420 echo "$as_me: failed program was:" >&5
7421 sed 's/^/| /' conftest.
$ac_ext >&5
7423 # Broken: fails on valid input.
7426 rm -f conftest.err conftest.
$ac_ext
7428 # OK, works on sane cases. Now check whether non-existent headers
7429 # can be detected and how.
7430 cat >conftest.
$ac_ext <<_ACEOF
7433 cat confdefs.h
>>conftest.
$ac_ext
7434 cat >>conftest.
$ac_ext <<_ACEOF
7435 /* end confdefs.h. */
7436 #include <ac_nonexistent.h>
7438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7439 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7441 grep -v '^ *+' conftest.er1
>conftest.err
7443 cat conftest.err
>&5
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); } >/dev
/null
; then
7446 if test -s conftest.err
; then
7447 ac_cpp_err
=$ac_c_preproc_warn_flag
7448 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7455 if test -z "$ac_cpp_err"; then
7456 # Broken: success on invalid input.
7459 echo "$as_me: failed program was:" >&5
7460 sed 's/^/| /' conftest.
$ac_ext >&5
7462 # Passes both tests.
7466 rm -f conftest.err conftest.
$ac_ext
7469 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7470 rm -f conftest.err conftest.
$ac_ext
7471 if $ac_preproc_ok; then
7474 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7475 See \`config.log' for more details." >&5
7476 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7477 See \`config.log' for more details." >&2;}
7478 { (exit 1); exit 1; }; }
7482 ac_cpp
='$CPP $CPPFLAGS'
7483 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7484 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7485 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7488 echo "$as_me:$LINENO: checking for egrep" >&5
7489 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
7490 if test "${ac_cv_prog_egrep+set}" = set; then
7491 echo $ECHO_N "(cached) $ECHO_C" >&6
7493 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
7494 then ac_cv_prog_egrep
='grep -E'
7495 else ac_cv_prog_egrep
='egrep'
7498 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
7499 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
7500 EGREP
=$ac_cv_prog_egrep
7503 cat >conftest.
$ac_ext <<_ACEOF
7506 cat confdefs.h
>>conftest.
$ac_ext
7507 cat >>conftest.
$ac_ext <<_ACEOF
7508 /* end confdefs.h. */
7512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7513 $EGREP "uint32_t" >/dev
/null
2>&1; then
7515 cat >>confdefs.h
<<\_ACEOF
7516 #define HAVE_INT32_DEFINED 1
7522 cat >conftest.
$ac_ext <<_ACEOF
7525 cat confdefs.h
>>conftest.
$ac_ext
7526 cat >>conftest.
$ac_ext <<_ACEOF
7527 /* end confdefs.h. */
7528 #include <inttypes.h>
7531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7532 $EGREP "uint32_t" >/dev
/null
2>&1; then
7534 cat >>confdefs.h
<<\_ACEOF
7535 #define HAVE_INT32_DEFINED 1
7541 cat >conftest.
$ac_ext <<_ACEOF
7544 cat confdefs.h
>>conftest.
$ac_ext
7545 cat >>conftest.
$ac_ext <<_ACEOF
7546 /* end confdefs.h. */
7547 #include <sys/types.h>
7550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7551 $EGREP "u_int32_t" >/dev
/null
2>&1; then
7553 cat >>confdefs.h
<<\_ACEOF
7554 #define HAVE_BSD_INT32_DEFINED 1
7560 cat >conftest.
$ac_ext <<_ACEOF
7563 cat confdefs.h
>>conftest.
$ac_ext
7564 cat >>conftest.
$ac_ext <<_ACEOF
7565 /* end confdefs.h. */
7566 #include <sys/config.h>
7569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7570 $EGREP "u_int32_t" >/dev
/null
2>&1; then
7572 cat >>confdefs.h
<<\_ACEOF
7573 #define HAVE_BSD_INT32_DEFINED 1
7582 if test "$PLATFORM" = Win32
; then
7583 USING_WIN32_PLATFORM_TRUE
=
7584 USING_WIN32_PLATFORM_FALSE
='#'
7586 USING_WIN32_PLATFORM_TRUE
='#'
7587 USING_WIN32_PLATFORM_FALSE
=
7592 if test "$PLATFORM" = Posix ||
test "$PLATFORM" = Ecos
; then
7593 USING_POSIX_PLATFORM_TRUE
=
7594 USING_POSIX_PLATFORM_FALSE
='#'
7596 USING_POSIX_PLATFORM_TRUE
='#'
7597 USING_POSIX_PLATFORM_FALSE
=
7602 *-darwin*) DARWIN_CRT
=true
;;
7603 *) DARWIN_CRT
=false
;;
7607 if $DARWIN_CRT; then
7608 USING_DARWIN_CRT_TRUE
=
7609 USING_DARWIN_CRT_FALSE
='#'
7611 USING_DARWIN_CRT_TRUE
='#'
7612 USING_DARWIN_CRT_FALSE
=
7616 # These may not be defined in a non-ANS conformant embedded system.
7617 # FIXME: Should these case a runtime exception in that case?
7618 cat >conftest.
$ac_ext <<_ACEOF
7621 cat confdefs.h
>>conftest.
$ac_ext
7622 cat >>conftest.
$ac_ext <<_ACEOF
7623 /* end confdefs.h. */
7627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7628 $EGREP "mktime" >/dev
/null
2>&1; then
7630 cat >>confdefs.h
<<\_ACEOF
7631 #define HAVE_MKTIME 1
7637 cat >conftest.
$ac_ext <<_ACEOF
7640 cat confdefs.h
>>conftest.
$ac_ext
7641 cat >>conftest.
$ac_ext <<_ACEOF
7642 /* end confdefs.h. */
7646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7647 $EGREP "localtime" >/dev
/null
2>&1; then
7649 cat >>confdefs.h
<<\_ACEOF
7650 #define HAVE_LOCALTIME 1
7657 # Create the subdirectory for natFile.cc, or the attempt
7658 # to create the link will fail.
7659 test -d java || mkdir java
7660 test -d java
/io || mkdir java
/io
7661 test -d gnu || mkdir gnu
7662 ac_config_links
="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
7665 # Likewise for natConcreteProcess.cc.
7666 test -d java
/lang || mkdir java
/lang
7667 ac_config_links
="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
7670 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
7671 test -d java
/net || mkdir java
/net
7672 ac_config_links
="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
7674 ac_config_links
="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
7677 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
7678 test -d gnu
/java || mkdir gnu
/java
7679 test -d gnu
/java
/net || mkdir gnu
/java
/net
7680 ac_config_links
="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
7682 ac_config_links
="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
7685 # Likewise for natVMPipe.cc and natVMSelector.cc.
7686 test -d gnu
/java
/nio || mkdir gnu
/java
/nio
7687 ac_config_links
="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
7689 ac_config_links
="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
7692 # Likewise for natFileChannelImpl.cc
7693 test -d gnu
/java
/nio
/channels || mkdir gnu
/java
/nio
/channels
7694 ac_config_links
="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
7699 SYSTEMSPEC
="-lgdi32 -lws2_32"
7700 if test "${with_win32_nlsapi}" = "unicows"; then
7701 SYSTEMSPEC
="-lunicows $SYSTEMSPEC"
7710 LIBGCJTESTSPEC
="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
7714 # Check whether --with-system-zlib or --without-system-zlib was given.
7715 if test "${with_system_zlib+set}" = set; then
7716 withval
="$with_system_zlib"
7724 echo "$as_me:$LINENO: checking for X" >&5
7725 echo $ECHO_N "checking for X... $ECHO_C" >&6
7728 # Check whether --with-x or --without-x was given.
7729 if test "${with_x+set}" = set; then
7733 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7734 if test "x$with_x" = xno
; then
7735 # The user explicitly disabled X.
7738 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
7739 # Both variables are already set.
7742 if test "${ac_cv_have_x+set}" = set; then
7743 echo $ECHO_N "(cached) $ECHO_C" >&6
7745 # One or both of the vars are not set, and there is no cached value.
7746 ac_x_includes
=no ac_x_libraries
=no
7748 if mkdir conftest.dir
; then
7750 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7751 cat >Imakefile
<<'_ACEOF'
7753 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7755 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
7756 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7757 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7758 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7759 for ac_extension
in a so sl
; do
7760 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
7761 test -f $ac_im_libdir/libX11.
$ac_extension; then
7762 ac_im_usrlibdir
=$ac_im_libdir; break
7765 # Screen out bogus values from the imake configuration. They are
7766 # bogus both because they are the default anyway, and because
7767 # using them would break gcc on systems where it needs fixed includes.
7768 case $ac_im_incroot in
7770 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
7772 case $ac_im_usrlibdir in
7774 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
7781 # Standard set of common directories for X headers.
7782 # Check X11 before X11Rn because it is often a symlink to the current release.
7794 /usr/local/X11/include
7795 /usr/local/X11R6/include
7796 /usr/local/X11R5/include
7797 /usr/local/X11R4/include
7799 /usr/local/include/X11
7800 /usr/local/include/X11R6
7801 /usr/local/include/X11R5
7802 /usr/local/include/X11R4
7806 /usr/XFree86/include/X11
7810 /usr/unsupported/include
7812 /usr/local/x11r5/include
7813 /usr/lpp/Xamples/include
7815 /usr/openwin/include
7816 /usr/openwin/share/include'
7818 if test "$ac_x_includes" = no
; then
7819 # Guess where to find include files, by looking for Xlib.h.
7820 # First, try using that file with no special directory specified.
7821 cat >conftest.
$ac_ext <<_ACEOF
7824 cat confdefs.h
>>conftest.
$ac_ext
7825 cat >>conftest.
$ac_ext <<_ACEOF
7826 /* end confdefs.h. */
7827 #include <X11/Xlib.h>
7829 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7830 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7832 grep -v '^ *+' conftest.er1
>conftest.err
7834 cat conftest.err
>&5
7835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); } >/dev
/null
; then
7837 if test -s conftest.err
; then
7838 ac_cpp_err
=$ac_c_preproc_warn_flag
7839 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7846 if test -z "$ac_cpp_err"; then
7847 # We can compile using X headers with no special include directory.
7850 echo "$as_me: failed program was:" >&5
7851 sed 's/^/| /' conftest.
$ac_ext >&5
7853 for ac_dir
in $ac_x_header_dirs; do
7854 if test -r "$ac_dir/X11/Xlib.h"; then
7855 ac_x_includes
=$ac_dir
7860 rm -f conftest.err conftest.
$ac_ext
7861 fi # $ac_x_includes = no
7863 if test "$ac_x_libraries" = no
; then
7864 # Check for the libraries.
7865 # See if we find them without any special options.
7866 # Don't add to $LIBS permanently.
7869 if test x
$gcc_no_link = xyes
; then
7870 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7871 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7872 { (exit 1); exit 1; }; }
7874 cat >conftest.
$ac_ext <<_ACEOF
7877 cat confdefs.h
>>conftest.
$ac_ext
7878 cat >>conftest.
$ac_ext <<_ACEOF
7879 /* end confdefs.h. */
7880 #include <X11/Xlib.h>
7889 rm -f conftest.
$ac_objext conftest
$ac_exeext
7890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7891 (eval $ac_link) 2>conftest.er1
7893 grep -v '^ *+' conftest.er1
>conftest.err
7895 cat conftest.err
>&5
7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); } &&
7898 { ac_try
='test -z "$ac_c_werror_flag"
7899 || test ! -s conftest.err'
7900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); }; } &&
7905 { ac_try
='test -s conftest$ac_exeext'
7906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); }; }; then
7912 # We can link X programs with no special library path.
7915 echo "$as_me: failed program was:" >&5
7916 sed 's/^/| /' conftest.
$ac_ext >&5
7919 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7921 # Don't even attempt the hair of trying to link an X program!
7922 for ac_extension
in a so sl
; do
7923 if test -r $ac_dir/libXt.
$ac_extension; then
7924 ac_x_libraries
=$ac_dir
7930 rm -f conftest.err conftest.
$ac_objext \
7931 conftest
$ac_exeext conftest.
$ac_ext
7932 fi # $ac_x_libraries = no
7934 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
7935 # Didn't find X anywhere. Cache the known absence of X.
7936 ac_cv_have_x
="have_x=no"
7938 # Record where we found X for the cache.
7939 ac_cv_have_x
="have_x=yes \
7940 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7945 eval "$ac_cv_have_x"
7948 if test "$have_x" != yes; then
7949 echo "$as_me:$LINENO: result: $have_x" >&5
7950 echo "${ECHO_T}$have_x" >&6
7953 # If each of the values was on the command line, it overrides each guess.
7954 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
7955 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
7956 # Update the cache value to reflect the command line values.
7957 ac_cv_have_x
="have_x=yes \
7958 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7959 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7960 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7963 if test "$no_x" = yes; then
7964 # Not all programs may use this symbol, but it does not hurt to define it.
7966 cat >>confdefs.h
<<\_ACEOF
7967 #define X_DISPLAY_MISSING 1
7970 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
7972 if test -n "$x_includes"; then
7973 X_CFLAGS
="$X_CFLAGS -I$x_includes"
7976 # It would also be nice to do this for all -L options, not just this one.
7977 if test -n "$x_libraries"; then
7978 X_LIBS
="$X_LIBS -L$x_libraries"
7979 # For Solaris; some versions of Sun CC require a space after -R and
7980 # others require no space. Words are not sufficient . . . .
7981 case `(uname -sr) 2>/dev/null` in
7983 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7984 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7985 ac_xsave_LIBS
=$LIBS; LIBS
="$LIBS -R$x_libraries"
7986 if test x
$gcc_no_link = xyes
; then
7987 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7988 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7989 { (exit 1); exit 1; }; }
7991 cat >conftest.
$ac_ext <<_ACEOF
7994 cat confdefs.h
>>conftest.
$ac_ext
7995 cat >>conftest.
$ac_ext <<_ACEOF
7996 /* end confdefs.h. */
8006 rm -f conftest.
$ac_objext conftest
$ac_exeext
8007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8008 (eval $ac_link) 2>conftest.er1
8010 grep -v '^ *+' conftest.er1
>conftest.err
8012 cat conftest.err
>&5
8013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014 (exit $ac_status); } &&
8015 { ac_try
='test -z "$ac_c_werror_flag"
8016 || test ! -s conftest.err'
8017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); }; } &&
8022 { ac_try
='test -s conftest$ac_exeext'
8023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); }; }; then
8030 echo "$as_me: failed program was:" >&5
8031 sed 's/^/| /' conftest.
$ac_ext >&5
8035 rm -f conftest.err conftest.
$ac_objext \
8036 conftest
$ac_exeext conftest.
$ac_ext
8037 if test $ac_R_nospace = yes; then
8038 echo "$as_me:$LINENO: result: no" >&5
8039 echo "${ECHO_T}no" >&6
8040 X_LIBS
="$X_LIBS -R$x_libraries"
8042 LIBS
="$ac_xsave_LIBS -R $x_libraries"
8043 if test x
$gcc_no_link = xyes
; then
8044 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8045 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8046 { (exit 1); exit 1; }; }
8048 cat >conftest.
$ac_ext <<_ACEOF
8051 cat confdefs.h
>>conftest.
$ac_ext
8052 cat >>conftest.
$ac_ext <<_ACEOF
8053 /* end confdefs.h. */
8063 rm -f conftest.
$ac_objext conftest
$ac_exeext
8064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8065 (eval $ac_link) 2>conftest.er1
8067 grep -v '^ *+' conftest.er1
>conftest.err
8069 cat conftest.err
>&5
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); } &&
8072 { ac_try
='test -z "$ac_c_werror_flag"
8073 || test ! -s conftest.err'
8074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078 (exit $ac_status); }; } &&
8079 { ac_try
='test -s conftest$ac_exeext'
8080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 (exit $ac_status); }; }; then
8087 echo "$as_me: failed program was:" >&5
8088 sed 's/^/| /' conftest.
$ac_ext >&5
8092 rm -f conftest.err conftest.
$ac_objext \
8093 conftest
$ac_exeext conftest.
$ac_ext
8094 if test $ac_R_space = yes; then
8095 echo "$as_me:$LINENO: result: yes" >&5
8096 echo "${ECHO_T}yes" >&6
8097 X_LIBS
="$X_LIBS -R $x_libraries"
8099 echo "$as_me:$LINENO: result: neither works" >&5
8100 echo "${ECHO_T}neither works" >&6
8107 # Check for system-dependent libraries X programs must link with.
8108 # Do this before checking for the system-independent R6 libraries
8109 # (-lICE), since we may need -lsocket or whatever for X linking.
8111 if test "$ISC" = yes; then
8112 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
8114 # Martyn Johnson says this is needed for Ultrix, if the X
8115 # libraries were built with DECnet support. And Karl Berry says
8116 # the Alpha needs dnet_stub (dnet does not exist).
8117 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS $X_LIBS -lX11"
8118 if test x
$gcc_no_link = xyes
; then
8119 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8120 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8121 { (exit 1); exit 1; }; }
8123 cat >conftest.
$ac_ext <<_ACEOF
8126 cat confdefs.h
>>conftest.
$ac_ext
8127 cat >>conftest.
$ac_ext <<_ACEOF
8128 /* end confdefs.h. */
8130 /* Override any gcc2 internal prototype to avoid an error. */
8134 /* We use char because int might match the return type of a gcc2
8135 builtin and then its argument prototype would still apply. */
8136 char XOpenDisplay ();
8145 rm -f conftest.
$ac_objext conftest
$ac_exeext
8146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8147 (eval $ac_link) 2>conftest.er1
8149 grep -v '^ *+' conftest.er1
>conftest.err
8151 cat conftest.err
>&5
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); } &&
8154 { ac_try
='test -z "$ac_c_werror_flag"
8155 || test ! -s conftest.err'
8156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160 (exit $ac_status); }; } &&
8161 { ac_try
='test -s conftest$ac_exeext'
8162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); }; }; then
8169 echo "$as_me: failed program was:" >&5
8170 sed 's/^/| /' conftest.
$ac_ext >&5
8172 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8173 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8174 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8175 echo $ECHO_N "(cached) $ECHO_C" >&6
8177 ac_check_lib_save_LIBS
=$LIBS
8179 if test x
$gcc_no_link = xyes
; then
8180 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8181 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8182 { (exit 1); exit 1; }; }
8184 cat >conftest.
$ac_ext <<_ACEOF
8187 cat confdefs.h
>>conftest.
$ac_ext
8188 cat >>conftest.
$ac_ext <<_ACEOF
8189 /* end confdefs.h. */
8191 /* Override any gcc2 internal prototype to avoid an error. */
8195 /* We use char because int might match the return type of a gcc2
8196 builtin and then its argument prototype would still apply. */
8206 rm -f conftest.
$ac_objext conftest
$ac_exeext
8207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8208 (eval $ac_link) 2>conftest.er1
8210 grep -v '^ *+' conftest.er1
>conftest.err
8212 cat conftest.err
>&5
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 (exit $ac_status); } &&
8215 { ac_try
='test -z "$ac_c_werror_flag"
8216 || test ! -s conftest.err'
8217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 (exit $ac_status); }; } &&
8222 { ac_try
='test -s conftest$ac_exeext'
8223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); }; }; then
8228 ac_cv_lib_dnet_dnet_ntoa
=yes
8230 echo "$as_me: failed program was:" >&5
8231 sed 's/^/| /' conftest.
$ac_ext >&5
8233 ac_cv_lib_dnet_dnet_ntoa
=no
8235 rm -f conftest.err conftest.
$ac_objext \
8236 conftest
$ac_exeext conftest.
$ac_ext
8237 LIBS
=$ac_check_lib_save_LIBS
8239 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8240 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8241 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8242 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
8245 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
8246 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8247 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8248 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8249 echo $ECHO_N "(cached) $ECHO_C" >&6
8251 ac_check_lib_save_LIBS
=$LIBS
8252 LIBS
="-ldnet_stub $LIBS"
8253 if test x
$gcc_no_link = xyes
; then
8254 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8255 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8256 { (exit 1); exit 1; }; }
8258 cat >conftest.
$ac_ext <<_ACEOF
8261 cat confdefs.h
>>conftest.
$ac_ext
8262 cat >>conftest.
$ac_ext <<_ACEOF
8263 /* end confdefs.h. */
8265 /* Override any gcc2 internal prototype to avoid an error. */
8269 /* We use char because int might match the return type of a gcc2
8270 builtin and then its argument prototype would still apply. */
8280 rm -f conftest.
$ac_objext conftest
$ac_exeext
8281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8282 (eval $ac_link) 2>conftest.er1
8284 grep -v '^ *+' conftest.er1
>conftest.err
8286 cat conftest.err
>&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); } &&
8289 { ac_try
='test -z "$ac_c_werror_flag"
8290 || test ! -s conftest.err'
8291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); }; } &&
8296 { ac_try
='test -s conftest$ac_exeext'
8297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); }; }; then
8302 ac_cv_lib_dnet_stub_dnet_ntoa
=yes
8304 echo "$as_me: failed program was:" >&5
8305 sed 's/^/| /' conftest.
$ac_ext >&5
8307 ac_cv_lib_dnet_stub_dnet_ntoa
=no
8309 rm -f conftest.err conftest.
$ac_objext \
8310 conftest
$ac_exeext conftest.
$ac_ext
8311 LIBS
=$ac_check_lib_save_LIBS
8313 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8314 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8315 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8316 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
8321 rm -f conftest.err conftest.
$ac_objext \
8322 conftest
$ac_exeext conftest.
$ac_ext
8323 LIBS
="$ac_xsave_LIBS"
8325 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8326 # to get the SysV transport functions.
8327 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8329 # The nsl library prevents programs from opening the X display
8330 # on Irix 5.2, according to T.E. Dickey.
8331 # The functions gethostbyname, getservbyname, and inet_addr are
8332 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8333 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8334 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8335 if test "${ac_cv_func_gethostbyname+set}" = set; then
8336 echo $ECHO_N "(cached) $ECHO_C" >&6
8338 if test x
$gcc_no_link = xyes
; then
8339 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8340 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8341 { (exit 1); exit 1; }; }
8343 cat >conftest.
$ac_ext <<_ACEOF
8346 cat confdefs.h
>>conftest.
$ac_ext
8347 cat >>conftest.
$ac_ext <<_ACEOF
8348 /* end confdefs.h. */
8349 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
8350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8351 #define gethostbyname innocuous_gethostbyname
8353 /* System header to define __stub macros and hopefully few prototypes,
8354 which can conflict with char gethostbyname (); below.
8355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8356 <limits.h> exists even on freestanding compilers. */
8359 # include <limits.h>
8361 # include <assert.h>
8364 #undef gethostbyname
8366 /* Override any gcc2 internal prototype to avoid an error. */
8371 /* We use char because int might match the return type of a gcc2
8372 builtin and then its argument prototype would still apply. */
8373 char gethostbyname ();
8374 /* The GNU C library defines this for functions which it implements
8375 to always fail with ENOSYS. Some functions are actually named
8376 something starting with __ and the normal name is an alias. */
8377 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8380 char (*f) () = gethostbyname;
8389 return f != gethostbyname;
8394 rm -f conftest.
$ac_objext conftest
$ac_exeext
8395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8396 (eval $ac_link) 2>conftest.er1
8398 grep -v '^ *+' conftest.er1
>conftest.err
8400 cat conftest.err
>&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } &&
8403 { ac_try
='test -z "$ac_c_werror_flag"
8404 || test ! -s conftest.err'
8405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); }; } &&
8410 { ac_try
='test -s conftest$ac_exeext'
8411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); }; }; then
8416 ac_cv_func_gethostbyname
=yes
8418 echo "$as_me: failed program was:" >&5
8419 sed 's/^/| /' conftest.
$ac_ext >&5
8421 ac_cv_func_gethostbyname
=no
8423 rm -f conftest.err conftest.
$ac_objext \
8424 conftest
$ac_exeext conftest.
$ac_ext
8426 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8427 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8429 if test $ac_cv_func_gethostbyname = no
; then
8430 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8431 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8432 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8433 echo $ECHO_N "(cached) $ECHO_C" >&6
8435 ac_check_lib_save_LIBS
=$LIBS
8437 if test x
$gcc_no_link = xyes
; then
8438 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8439 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8440 { (exit 1); exit 1; }; }
8442 cat >conftest.
$ac_ext <<_ACEOF
8445 cat confdefs.h
>>conftest.
$ac_ext
8446 cat >>conftest.
$ac_ext <<_ACEOF
8447 /* end confdefs.h. */
8449 /* Override any gcc2 internal prototype to avoid an error. */
8453 /* We use char because int might match the return type of a gcc2
8454 builtin and then its argument prototype would still apply. */
8455 char gethostbyname ();
8464 rm -f conftest.
$ac_objext conftest
$ac_exeext
8465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8466 (eval $ac_link) 2>conftest.er1
8468 grep -v '^ *+' conftest.er1
>conftest.err
8470 cat conftest.err
>&5
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); } &&
8473 { ac_try
='test -z "$ac_c_werror_flag"
8474 || test ! -s conftest.err'
8475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); }; } &&
8480 { ac_try
='test -s conftest$ac_exeext'
8481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); }; }; then
8486 ac_cv_lib_nsl_gethostbyname
=yes
8488 echo "$as_me: failed program was:" >&5
8489 sed 's/^/| /' conftest.
$ac_ext >&5
8491 ac_cv_lib_nsl_gethostbyname
=no
8493 rm -f conftest.err conftest.
$ac_objext \
8494 conftest
$ac_exeext conftest.
$ac_ext
8495 LIBS
=$ac_check_lib_save_LIBS
8497 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8498 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8499 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8500 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
8503 if test $ac_cv_lib_nsl_gethostbyname = no
; then
8504 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8505 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8506 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8507 echo $ECHO_N "(cached) $ECHO_C" >&6
8509 ac_check_lib_save_LIBS
=$LIBS
8511 if test x
$gcc_no_link = xyes
; then
8512 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8513 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8514 { (exit 1); exit 1; }; }
8516 cat >conftest.
$ac_ext <<_ACEOF
8519 cat confdefs.h
>>conftest.
$ac_ext
8520 cat >>conftest.
$ac_ext <<_ACEOF
8521 /* end confdefs.h. */
8523 /* Override any gcc2 internal prototype to avoid an error. */
8527 /* We use char because int might match the return type of a gcc2
8528 builtin and then its argument prototype would still apply. */
8529 char gethostbyname ();
8538 rm -f conftest.
$ac_objext conftest
$ac_exeext
8539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8540 (eval $ac_link) 2>conftest.er1
8542 grep -v '^ *+' conftest.er1
>conftest.err
8544 cat conftest.err
>&5
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); } &&
8547 { ac_try
='test -z "$ac_c_werror_flag"
8548 || test ! -s conftest.err'
8549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); }; } &&
8554 { ac_try
='test -s conftest$ac_exeext'
8555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); }; }; then
8560 ac_cv_lib_bsd_gethostbyname
=yes
8562 echo "$as_me: failed program was:" >&5
8563 sed 's/^/| /' conftest.
$ac_ext >&5
8565 ac_cv_lib_bsd_gethostbyname
=no
8567 rm -f conftest.err conftest.
$ac_objext \
8568 conftest
$ac_exeext conftest.
$ac_ext
8569 LIBS
=$ac_check_lib_save_LIBS
8571 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8572 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8573 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8574 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lbsd"
8580 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8581 # socket/setsockopt and other routines are undefined under SCO ODT
8582 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8583 # on later versions), says Simon Leinen: it contains gethostby*
8584 # variants that don't use the name server (or something). -lsocket
8585 # must be given before -lnsl if both are needed. We assume that
8586 # if connect needs -lnsl, so does gethostbyname.
8587 echo "$as_me:$LINENO: checking for connect" >&5
8588 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8589 if test "${ac_cv_func_connect+set}" = set; then
8590 echo $ECHO_N "(cached) $ECHO_C" >&6
8592 if test x
$gcc_no_link = xyes
; then
8593 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8594 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8595 { (exit 1); exit 1; }; }
8597 cat >conftest.
$ac_ext <<_ACEOF
8600 cat confdefs.h
>>conftest.
$ac_ext
8601 cat >>conftest.
$ac_ext <<_ACEOF
8602 /* end confdefs.h. */
8603 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
8604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8605 #define connect innocuous_connect
8607 /* System header to define __stub macros and hopefully few prototypes,
8608 which can conflict with char connect (); below.
8609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8610 <limits.h> exists even on freestanding compilers. */
8613 # include <limits.h>
8615 # include <assert.h>
8620 /* Override any gcc2 internal prototype to avoid an error. */
8625 /* We use char because int might match the return type of a gcc2
8626 builtin and then its argument prototype would still apply. */
8628 /* The GNU C library defines this for functions which it implements
8629 to always fail with ENOSYS. Some functions are actually named
8630 something starting with __ and the normal name is an alias. */
8631 #if defined (__stub_connect) || defined (__stub___connect)
8634 char (*f) () = connect;
8643 return f != connect;
8648 rm -f conftest.
$ac_objext conftest
$ac_exeext
8649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8650 (eval $ac_link) 2>conftest.er1
8652 grep -v '^ *+' conftest.er1
>conftest.err
8654 cat conftest.err
>&5
8655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656 (exit $ac_status); } &&
8657 { ac_try
='test -z "$ac_c_werror_flag"
8658 || test ! -s conftest.err'
8659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); }; } &&
8664 { ac_try
='test -s conftest$ac_exeext'
8665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); }; }; then
8670 ac_cv_func_connect
=yes
8672 echo "$as_me: failed program was:" >&5
8673 sed 's/^/| /' conftest.
$ac_ext >&5
8675 ac_cv_func_connect
=no
8677 rm -f conftest.err conftest.
$ac_objext \
8678 conftest
$ac_exeext conftest.
$ac_ext
8680 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8681 echo "${ECHO_T}$ac_cv_func_connect" >&6
8683 if test $ac_cv_func_connect = no
; then
8684 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8685 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8686 if test "${ac_cv_lib_socket_connect+set}" = set; then
8687 echo $ECHO_N "(cached) $ECHO_C" >&6
8689 ac_check_lib_save_LIBS
=$LIBS
8690 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
8691 if test x
$gcc_no_link = xyes
; then
8692 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8693 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8694 { (exit 1); exit 1; }; }
8696 cat >conftest.
$ac_ext <<_ACEOF
8699 cat confdefs.h
>>conftest.
$ac_ext
8700 cat >>conftest.
$ac_ext <<_ACEOF
8701 /* end confdefs.h. */
8703 /* Override any gcc2 internal prototype to avoid an error. */
8707 /* We use char because int might match the return type of a gcc2
8708 builtin and then its argument prototype would still apply. */
8718 rm -f conftest.
$ac_objext conftest
$ac_exeext
8719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8720 (eval $ac_link) 2>conftest.er1
8722 grep -v '^ *+' conftest.er1
>conftest.err
8724 cat conftest.err
>&5
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); } &&
8727 { ac_try
='test -z "$ac_c_werror_flag"
8728 || test ! -s conftest.err'
8729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); }; } &&
8734 { ac_try
='test -s conftest$ac_exeext'
8735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); }; }; then
8740 ac_cv_lib_socket_connect
=yes
8742 echo "$as_me: failed program was:" >&5
8743 sed 's/^/| /' conftest.
$ac_ext >&5
8745 ac_cv_lib_socket_connect
=no
8747 rm -f conftest.err conftest.
$ac_objext \
8748 conftest
$ac_exeext conftest.
$ac_ext
8749 LIBS
=$ac_check_lib_save_LIBS
8751 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8752 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8753 if test $ac_cv_lib_socket_connect = yes; then
8754 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
8759 # Guillermo Gomez says -lposix is necessary on A/UX.
8760 echo "$as_me:$LINENO: checking for remove" >&5
8761 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8762 if test "${ac_cv_func_remove+set}" = set; then
8763 echo $ECHO_N "(cached) $ECHO_C" >&6
8765 if test x
$gcc_no_link = xyes
; then
8766 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8767 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8768 { (exit 1); exit 1; }; }
8770 cat >conftest.
$ac_ext <<_ACEOF
8773 cat confdefs.h
>>conftest.
$ac_ext
8774 cat >>conftest.
$ac_ext <<_ACEOF
8775 /* end confdefs.h. */
8776 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
8777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8778 #define remove innocuous_remove
8780 /* System header to define __stub macros and hopefully few prototypes,
8781 which can conflict with char remove (); below.
8782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8783 <limits.h> exists even on freestanding compilers. */
8786 # include <limits.h>
8788 # include <assert.h>
8793 /* Override any gcc2 internal prototype to avoid an error. */
8798 /* We use char because int might match the return type of a gcc2
8799 builtin and then its argument prototype would still apply. */
8801 /* The GNU C library defines this for functions which it implements
8802 to always fail with ENOSYS. Some functions are actually named
8803 something starting with __ and the normal name is an alias. */
8804 #if defined (__stub_remove) || defined (__stub___remove)
8807 char (*f) () = remove;
8821 rm -f conftest.
$ac_objext conftest
$ac_exeext
8822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8823 (eval $ac_link) 2>conftest.er1
8825 grep -v '^ *+' conftest.er1
>conftest.err
8827 cat conftest.err
>&5
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); } &&
8830 { ac_try
='test -z "$ac_c_werror_flag"
8831 || test ! -s conftest.err'
8832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); }; } &&
8837 { ac_try
='test -s conftest$ac_exeext'
8838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 (exit $ac_status); }; }; then
8843 ac_cv_func_remove
=yes
8845 echo "$as_me: failed program was:" >&5
8846 sed 's/^/| /' conftest.
$ac_ext >&5
8848 ac_cv_func_remove
=no
8850 rm -f conftest.err conftest.
$ac_objext \
8851 conftest
$ac_exeext conftest.
$ac_ext
8853 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8854 echo "${ECHO_T}$ac_cv_func_remove" >&6
8856 if test $ac_cv_func_remove = no
; then
8857 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8858 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8859 if test "${ac_cv_lib_posix_remove+set}" = set; then
8860 echo $ECHO_N "(cached) $ECHO_C" >&6
8862 ac_check_lib_save_LIBS
=$LIBS
8863 LIBS
="-lposix $LIBS"
8864 if test x
$gcc_no_link = xyes
; then
8865 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8866 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8867 { (exit 1); exit 1; }; }
8869 cat >conftest.
$ac_ext <<_ACEOF
8872 cat confdefs.h
>>conftest.
$ac_ext
8873 cat >>conftest.
$ac_ext <<_ACEOF
8874 /* end confdefs.h. */
8876 /* Override any gcc2 internal prototype to avoid an error. */
8880 /* We use char because int might match the return type of a gcc2
8881 builtin and then its argument prototype would still apply. */
8891 rm -f conftest.
$ac_objext conftest
$ac_exeext
8892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8893 (eval $ac_link) 2>conftest.er1
8895 grep -v '^ *+' conftest.er1
>conftest.err
8897 cat conftest.err
>&5
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); } &&
8900 { ac_try
='test -z "$ac_c_werror_flag"
8901 || test ! -s conftest.err'
8902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); }; } &&
8907 { ac_try
='test -s conftest$ac_exeext'
8908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); }; }; then
8913 ac_cv_lib_posix_remove
=yes
8915 echo "$as_me: failed program was:" >&5
8916 sed 's/^/| /' conftest.
$ac_ext >&5
8918 ac_cv_lib_posix_remove
=no
8920 rm -f conftest.err conftest.
$ac_objext \
8921 conftest
$ac_exeext conftest.
$ac_ext
8922 LIBS
=$ac_check_lib_save_LIBS
8924 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8925 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8926 if test $ac_cv_lib_posix_remove = yes; then
8927 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
8932 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8933 echo "$as_me:$LINENO: checking for shmat" >&5
8934 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8935 if test "${ac_cv_func_shmat+set}" = set; then
8936 echo $ECHO_N "(cached) $ECHO_C" >&6
8938 if test x
$gcc_no_link = xyes
; then
8939 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8940 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8941 { (exit 1); exit 1; }; }
8943 cat >conftest.
$ac_ext <<_ACEOF
8946 cat confdefs.h
>>conftest.
$ac_ext
8947 cat >>conftest.
$ac_ext <<_ACEOF
8948 /* end confdefs.h. */
8949 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
8950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8951 #define shmat innocuous_shmat
8953 /* System header to define __stub macros and hopefully few prototypes,
8954 which can conflict with char shmat (); below.
8955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8956 <limits.h> exists even on freestanding compilers. */
8959 # include <limits.h>
8961 # include <assert.h>
8966 /* Override any gcc2 internal prototype to avoid an error. */
8971 /* We use char because int might match the return type of a gcc2
8972 builtin and then its argument prototype would still apply. */
8974 /* The GNU C library defines this for functions which it implements
8975 to always fail with ENOSYS. Some functions are actually named
8976 something starting with __ and the normal name is an alias. */
8977 #if defined (__stub_shmat) || defined (__stub___shmat)
8980 char (*f) () = shmat;
8994 rm -f conftest.
$ac_objext conftest
$ac_exeext
8995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8996 (eval $ac_link) 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_exeext'
9011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015 (exit $ac_status); }; }; then
9016 ac_cv_func_shmat
=yes
9018 echo "$as_me: failed program was:" >&5
9019 sed 's/^/| /' conftest.
$ac_ext >&5
9023 rm -f conftest.err conftest.
$ac_objext \
9024 conftest
$ac_exeext conftest.
$ac_ext
9026 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9027 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9029 if test $ac_cv_func_shmat = no
; then
9030 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9031 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9032 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9033 echo $ECHO_N "(cached) $ECHO_C" >&6
9035 ac_check_lib_save_LIBS
=$LIBS
9037 if test x
$gcc_no_link = xyes
; then
9038 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9039 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9040 { (exit 1); exit 1; }; }
9042 cat >conftest.
$ac_ext <<_ACEOF
9045 cat confdefs.h
>>conftest.
$ac_ext
9046 cat >>conftest.
$ac_ext <<_ACEOF
9047 /* end confdefs.h. */
9049 /* Override any gcc2 internal prototype to avoid an error. */
9053 /* We use char because int might match the return type of a gcc2
9054 builtin and then its argument prototype would still apply. */
9064 rm -f conftest.
$ac_objext conftest
$ac_exeext
9065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9066 (eval $ac_link) 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_exeext'
9081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); }; }; then
9086 ac_cv_lib_ipc_shmat
=yes
9088 echo "$as_me: failed program was:" >&5
9089 sed 's/^/| /' conftest.
$ac_ext >&5
9091 ac_cv_lib_ipc_shmat
=no
9093 rm -f conftest.err conftest.
$ac_objext \
9094 conftest
$ac_exeext conftest.
$ac_ext
9095 LIBS
=$ac_check_lib_save_LIBS
9097 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9098 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9099 if test $ac_cv_lib_ipc_shmat = yes; then
9100 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
9106 # Check for libraries that X11R6 Xt/Xaw programs need.
9107 ac_save_LDFLAGS
=$LDFLAGS
9108 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
9109 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9110 # check for ICE first), but we must link in the order -lSM -lICE or
9111 # we get undefined symbols. So assume we have SM if we have ICE.
9112 # These have to be linked with before -lX11, unlike the other
9113 # libraries we check for below, so use a different variable.
9114 # John Interrante, Karl Berry
9115 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9116 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9117 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9118 echo $ECHO_N "(cached) $ECHO_C" >&6
9120 ac_check_lib_save_LIBS
=$LIBS
9121 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
9122 if test x
$gcc_no_link = xyes
; then
9123 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9124 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9125 { (exit 1); exit 1; }; }
9127 cat >conftest.
$ac_ext <<_ACEOF
9130 cat confdefs.h
>>conftest.
$ac_ext
9131 cat >>conftest.
$ac_ext <<_ACEOF
9132 /* end confdefs.h. */
9134 /* Override any gcc2 internal prototype to avoid an error. */
9138 /* We use char because int might match the return type of a gcc2
9139 builtin and then its argument prototype would still apply. */
9140 char IceConnectionNumber ();
9144 IceConnectionNumber ();
9149 rm -f conftest.
$ac_objext conftest
$ac_exeext
9150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9151 (eval $ac_link) 2>conftest.er1
9153 grep -v '^ *+' conftest.er1
>conftest.err
9155 cat conftest.err
>&5
9156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 (exit $ac_status); } &&
9158 { ac_try
='test -z "$ac_c_werror_flag"
9159 || test ! -s conftest.err'
9160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164 (exit $ac_status); }; } &&
9165 { ac_try
='test -s conftest$ac_exeext'
9166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); }; }; then
9171 ac_cv_lib_ICE_IceConnectionNumber
=yes
9173 echo "$as_me: failed program was:" >&5
9174 sed 's/^/| /' conftest.
$ac_ext >&5
9176 ac_cv_lib_ICE_IceConnectionNumber
=no
9178 rm -f conftest.err conftest.
$ac_objext \
9179 conftest
$ac_exeext conftest.
$ac_ext
9180 LIBS
=$ac_check_lib_save_LIBS
9182 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9183 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9184 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9185 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
9188 LDFLAGS
=$ac_save_LDFLAGS
9193 # FIXME: this should be _libs on some hosts.
9196 # extra LD Flags which are required for targets
9199 # For now we have to disable it on darwin[8-9] because it slows down
9200 # the linking phase. A possible bug in ld?
9201 # on Darwin -single_module speeds up loading of the dynamic libraries.
9202 extra_ldflags_libjava
=-Wl,-single_module
9207 # Allow the GC to be disabled. Can be useful when debugging.
9208 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
9209 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
9210 # Check whether --enable-java-gc or --disable-java-gc was given.
9211 if test "${enable_java_gc+set}" = set; then
9212 enableval
="$enable_java_gc"
9225 echo "$as_me:$LINENO: result: boehm" >&5
9226 echo "${ECHO_T}boehm" >&6
9227 GCLIBS
=..
/boehm-gc
/libgcjgc_convenience.la
9228 JC1GCSPEC
='-fuse-boehm-gc'
9229 GCTESTSPEC
="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
9230 GCINCS
='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
9233 # The POSIX thread support needs to know this.
9235 cat >>confdefs.h
<<\_ACEOF
9236 #define HAVE_BOEHM_GC 1
9241 echo "$as_me:$LINENO: result: none" >&5
9242 echo "${ECHO_T}none" >&6
9246 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
9247 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
9248 { (exit 1); exit 1; }; }
9257 ac_config_links
="$ac_config_links include/java-gc.h:include/$GCHDR"
9261 if test "$GC" = boehm
; then
9263 USING_BOEHMGC_FALSE
='#'
9265 USING_BOEHMGC_TRUE
='#'
9266 USING_BOEHMGC_FALSE
=
9271 if test "$GC" = no
; then
9273 USING_NOGC_FALSE
='#'
9281 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
9282 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
9283 THREADS
=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
9284 echo "$as_me:$LINENO: result: $THREADS" >&5
9285 echo "${ECHO_T}$THREADS" >&6
9291 posix | posix95 | pthreads
)
9296 cat >>confdefs.h
<<\_ACEOF
9297 #define LINUX_THREADS 1
9305 decosf1 | irix | mach | os2 | solaris | dce | vxworks
)
9306 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
9307 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
9308 { (exit 1); exit 1; }; }
9311 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
9312 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
9313 { (exit 1); exit 1; }; }
9324 THREADSTARTFILESPEC
=
9329 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
9332 # Before FreeBSD 5, it didn't have -lpthread (or any library which
9333 # merely adds pthread_* functions) but it does have a -pthread switch
9334 # which is required at link-time to select -lc_r *instead* of -lc.
9335 THREADLDFLAGS
=-pthread
9336 # Don't set THREADSPEC here as might be expected since -pthread is
9337 # not processed when found within a spec file, it must come from
9338 # the command line. For now, the user must provide the -pthread
9339 # switch to link code compiled with gcj. In future, consider adding
9340 # support for weak references to pthread_* functions ala gthr.h API.
9341 THREADSPEC
='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
9344 # FreeBSD >=5.3 implements a model much closer to other modern UNIX
9345 # systems which support threads and -lpthread.
9346 THREADLDFLAGS
=-pthread
9347 THREADSPEC
=-lpthread
9349 alpha
*-dec-osf* | hppa
*-hp-hpux*)
9350 THREADCXXFLAGS
=-pthread
9351 # boehm-gc needs some functions from librt, so link that too.
9352 THREADLIBS
='-lpthread -lrt'
9353 THREADSPEC
='-lpthread -lrt'
9356 THREADLIBS
=-lpthread
9357 THREADSPEC
=-lpthread
9360 THREADH
=posix-threads.h
9361 # MIT pthreads doesn't seem to have the mutexattr functions.
9362 # But for now we don't check for it. We just assume you aren't
9363 # using MIT pthreads.
9365 cat >>confdefs.h
<<\_ACEOF
9366 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9370 # If we're using the Boehm GC, then we happen to know that it
9371 # defines _REENTRANT, so we don't bother. Eww.
9372 if test "$GC" != boehm
; then
9374 cat >>confdefs.h
<<\_ACEOF
9375 #define _REENTRANT 1
9380 cat >>confdefs.h
<<\_ACEOF
9381 #define _POSIX_PTHREAD_SEMANTICS 1
9387 THREADH
=win32-threads.h
9388 THREADCXXFLAGS
=-mthreads
9389 # We need thread-safe exception handling so _CRT_MT should be set to 1.
9390 # But we do not want the executables created to be dependent on
9391 # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
9392 # exception handling contexts. The following kludge achieves this effect
9393 # and causes a dummy __mingwthr_key_dtor() to be linked in from
9394 # libmingw32.a. This causes a memory leak of about 24 bytes per thread.
9395 # A workaround is to explicitly use -mthreads while linking Java programs.
9396 # See PR libgcj/28263.
9398 # FIXME: In Java we are able to detect thread death at the end of
9399 # Thread.run() so we should be able to clean up the exception handling
9400 # contexts ourselves.
9401 THREADSTARTFILESPEC
='crtmt%O%s'
9405 THREADH
=no-threads.h
9408 ac_config_links
="$ac_config_links include/java-threads.h:include/$THREADH"
9419 if test "$THREADS" = posix
; then
9420 USING_POSIX_THREADS_TRUE
=
9421 USING_POSIX_THREADS_FALSE
='#'
9423 USING_POSIX_THREADS_TRUE
='#'
9424 USING_POSIX_THREADS_FALSE
=
9429 if test "$THREADS" = win32
; then
9430 USING_WIN32_THREADS_TRUE
=
9431 USING_WIN32_THREADS_FALSE
='#'
9433 USING_WIN32_THREADS_TRUE
='#'
9434 USING_WIN32_THREADS_FALSE
=
9439 if test "$THREADS" = none
; then
9440 USING_NO_THREADS_TRUE
=
9441 USING_NO_THREADS_FALSE
='#'
9443 USING_NO_THREADS_TRUE
='#'
9444 USING_NO_THREADS_FALSE
=
9449 if test "$use_libgcj_bc" = yes; then
9451 USE_LIBGCJ_BC_FALSE
='#'
9453 USE_LIBGCJ_BC_TRUE
='#'
9454 USE_LIBGCJ_BC_FALSE
=
9458 if test -d sysdep
; then true
; else mkdir sysdep
; fi
9459 ac_config_links
="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
9461 ac_config_links
="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
9463 ac_config_links
="$ac_config_links sysdep/descriptor.h:$descriptor_h"
9466 LIBGCJ_SPEC
="%{s-bc-abi:} -lgcj"
9467 if test "$use_libgcj_bc" = yes; then
9468 LIBGCJ_SPEC
="%{s-bc-abi:-lgcj_bc;:-lgcj}"
9473 # Hash synchronization is only useful with posix threads right now.
9474 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
9475 HASH_SYNC_SPEC
=-fhash-synchronization
9477 cat >>confdefs.h
<<\_ACEOF
9478 #define JV_HASH_SYNCHRONIZATION 1
9486 if test "$GCC" = yes; then
9495 # We're in the tree with gcc, and need to include some of its headers.
9496 GCC_UNWIND_INCLUDE
='-I$(multi_basedir)/./libjava/../gcc'
9498 if test "x${with_newlib}" = "xyes"; then
9499 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
9500 # may not work correctly, because the compiler may not be able to
9503 # We assume newlib. This lets us hard-code the functions we know
9506 cat >>confdefs.h
<<\_ACEOF
9507 #define HAVE_MEMMOVE 1
9511 cat >>confdefs.h
<<\_ACEOF
9512 #define HAVE_MEMCPY 1
9516 cat >>confdefs.h
<<\_ACEOF
9517 #define HAVE_STRERROR 1
9521 cat >>confdefs.h
<<\_ACEOF
9526 cat >>confdefs.h
<<\_ACEOF
9527 #define HAVE_GMTIME_R 1
9531 cat >>confdefs.h
<<\_ACEOF
9532 #define HAVE_LOCALTIME_R 1
9536 cat >>confdefs.h
<<\_ACEOF
9537 #define HAVE_USLEEP_DECL 1
9540 # This is only for POSIX threads.
9542 cat >>confdefs.h
<<\_ACEOF
9543 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9546 # We also assume we are using gcc, which provides alloca.
9547 cat >>confdefs.h
<<\_ACEOF
9548 #define HAVE_ALLOCA 1
9552 # Assume we do not have getuid and friends.
9554 cat >>confdefs.h
<<\_ACEOF
9595 for ac_func
in strerror ioctl
select fstat open fsync
sleep opendir \
9596 gmtime_r localtime_r readdir_r getpwuid_r getcwd \
9597 access stat lstat mkdir rename
rmdir unlink utime
chmod readlink \
9598 nl_langinfo setlocale \
9599 inet_pton uname inet_ntoa \
9600 fork execvp pipe sigaction ftruncate mmap \
9603 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9604 echo "$as_me:$LINENO: checking for $ac_func" >&5
9605 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9606 if eval "test \"\${$as_ac_var+set}\" = set"; then
9607 echo $ECHO_N "(cached) $ECHO_C" >&6
9609 if test x
$gcc_no_link = xyes
; then
9610 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9611 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9612 { (exit 1); exit 1; }; }
9614 cat >conftest.
$ac_ext <<_ACEOF
9617 cat confdefs.h
>>conftest.
$ac_ext
9618 cat >>conftest.
$ac_ext <<_ACEOF
9619 /* end confdefs.h. */
9620 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9622 #define $ac_func innocuous_$ac_func
9624 /* System header to define __stub macros and hopefully few prototypes,
9625 which can conflict with char $ac_func (); below.
9626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9627 <limits.h> exists even on freestanding compilers. */
9630 # include <limits.h>
9632 # include <assert.h>
9637 /* Override any gcc2 internal prototype to avoid an error. */
9642 /* We use char because int might match the return type of a gcc2
9643 builtin and then its argument prototype would still apply. */
9645 /* The GNU C library defines this for functions which it implements
9646 to always fail with ENOSYS. Some functions are actually named
9647 something starting with __ and the normal name is an alias. */
9648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9651 char (*f) () = $ac_func;
9660 return f != $ac_func;
9665 rm -f conftest.
$ac_objext conftest
$ac_exeext
9666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9667 (eval $ac_link) 2>conftest.er1
9669 grep -v '^ *+' conftest.er1
>conftest.err
9671 cat conftest.err
>&5
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); } &&
9674 { ac_try
='test -z "$ac_c_werror_flag"
9675 || test ! -s conftest.err'
9676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); }; } &&
9681 { ac_try
='test -s conftest$ac_exeext'
9682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); }; }; then
9687 eval "$as_ac_var=yes"
9689 echo "$as_me: failed program was:" >&5
9690 sed 's/^/| /' conftest.
$ac_ext >&5
9692 eval "$as_ac_var=no"
9694 rm -f conftest.err conftest.
$ac_objext \
9695 conftest
$ac_exeext conftest.
$ac_ext
9697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9698 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9699 if test `eval echo '${'$as_ac_var'}'` = yes; then
9700 cat >>confdefs.h
<<_ACEOF
9701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9709 for ac_func
in inet_aton inet_addr
9711 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9712 echo "$as_me:$LINENO: checking for $ac_func" >&5
9713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9714 if eval "test \"\${$as_ac_var+set}\" = set"; then
9715 echo $ECHO_N "(cached) $ECHO_C" >&6
9717 if test x
$gcc_no_link = xyes
; then
9718 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9719 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9720 { (exit 1); exit 1; }; }
9722 cat >conftest.
$ac_ext <<_ACEOF
9725 cat confdefs.h
>>conftest.
$ac_ext
9726 cat >>conftest.
$ac_ext <<_ACEOF
9727 /* end confdefs.h. */
9728 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9730 #define $ac_func innocuous_$ac_func
9732 /* System header to define __stub macros and hopefully few prototypes,
9733 which can conflict with char $ac_func (); below.
9734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9735 <limits.h> exists even on freestanding compilers. */
9738 # include <limits.h>
9740 # include <assert.h>
9745 /* Override any gcc2 internal prototype to avoid an error. */
9750 /* We use char because int might match the return type of a gcc2
9751 builtin and then its argument prototype would still apply. */
9753 /* The GNU C library defines this for functions which it implements
9754 to always fail with ENOSYS. Some functions are actually named
9755 something starting with __ and the normal name is an alias. */
9756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9759 char (*f) () = $ac_func;
9768 return f != $ac_func;
9773 rm -f conftest.
$ac_objext conftest
$ac_exeext
9774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9775 (eval $ac_link) 2>conftest.er1
9777 grep -v '^ *+' conftest.er1
>conftest.err
9779 cat conftest.err
>&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); } &&
9782 { ac_try
='test -z "$ac_c_werror_flag"
9783 || test ! -s conftest.err'
9784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); }; } &&
9789 { ac_try
='test -s conftest$ac_exeext'
9790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); }; }; then
9795 eval "$as_ac_var=yes"
9797 echo "$as_me: failed program was:" >&5
9798 sed 's/^/| /' conftest.
$ac_ext >&5
9800 eval "$as_ac_var=no"
9802 rm -f conftest.err conftest.
$ac_objext \
9803 conftest
$ac_exeext conftest.
$ac_ext
9805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9806 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9807 if test `eval echo '${'$as_ac_var'}'` = yes; then
9808 cat >>confdefs.h
<<_ACEOF
9809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9815 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9816 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9817 if test "${ac_cv_header_stdc+set}" = set; then
9818 echo $ECHO_N "(cached) $ECHO_C" >&6
9820 cat >conftest.
$ac_ext <<_ACEOF
9823 cat confdefs.h
>>conftest.
$ac_ext
9824 cat >>conftest.
$ac_ext <<_ACEOF
9825 /* end confdefs.h. */
9839 rm -f conftest.
$ac_objext
9840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9841 (eval $ac_compile) 2>conftest.er1
9843 grep -v '^ *+' conftest.er1
>conftest.err
9845 cat conftest.err
>&5
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); } &&
9848 { ac_try
='test -z "$ac_c_werror_flag"
9849 || test ! -s conftest.err'
9850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); }; } &&
9855 { ac_try
='test -s conftest.$ac_objext'
9856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); }; }; then
9861 ac_cv_header_stdc
=yes
9863 echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.
$ac_ext >&5
9866 ac_cv_header_stdc
=no
9868 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9870 if test $ac_cv_header_stdc = yes; then
9871 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9872 cat >conftest.
$ac_ext <<_ACEOF
9875 cat confdefs.h
>>conftest.
$ac_ext
9876 cat >>conftest.
$ac_ext <<_ACEOF
9877 /* end confdefs.h. */
9881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9882 $EGREP "memchr" >/dev
/null
2>&1; then
9885 ac_cv_header_stdc
=no
9891 if test $ac_cv_header_stdc = yes; then
9892 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9893 cat >conftest.
$ac_ext <<_ACEOF
9896 cat confdefs.h
>>conftest.
$ac_ext
9897 cat >>conftest.
$ac_ext <<_ACEOF
9898 /* end confdefs.h. */
9902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9903 $EGREP "free" >/dev
/null
2>&1; then
9906 ac_cv_header_stdc
=no
9912 if test $ac_cv_header_stdc = yes; then
9913 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9914 if test "$cross_compiling" = yes; then
9917 cat >conftest.
$ac_ext <<_ACEOF
9920 cat confdefs.h
>>conftest.
$ac_ext
9921 cat >>conftest.
$ac_ext <<_ACEOF
9922 /* end confdefs.h. */
9924 #if ((' ' & 0x0FF) == 0x020)
9925 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9926 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9928 # define ISLOWER(c) \
9929 (('a' <= (c) && (c) <= 'i') \
9930 || ('j' <= (c) && (c) <= 'r') \
9931 || ('s' <= (c) && (c) <= 'z'))
9932 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9935 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9940 for (i = 0; i < 256; i++)
9941 if (XOR (islower (i), ISLOWER (i))
9942 || toupper (i) != TOUPPER (i))
9947 rm -f conftest
$ac_exeext
9948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9949 (eval $ac_link) 2>&5
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); }; }; then
9960 echo "$as_me: program exited with status $ac_status" >&5
9961 echo "$as_me: failed program was:" >&5
9962 sed 's/^/| /' conftest.
$ac_ext >&5
9965 ac_cv_header_stdc
=no
9967 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9971 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9972 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9973 if test $ac_cv_header_stdc = yes; then
9975 cat >>confdefs.h
<<\_ACEOF
9976 #define STDC_HEADERS 1
9981 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9991 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
9992 inttypes.h stdint.h unistd.h
9994 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9995 echo "$as_me:$LINENO: checking for $ac_header" >&5
9996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9998 echo $ECHO_N "(cached) $ECHO_C" >&6
10000 cat >conftest.
$ac_ext <<_ACEOF
10003 cat confdefs.h
>>conftest.
$ac_ext
10004 cat >>conftest.
$ac_ext <<_ACEOF
10005 /* end confdefs.h. */
10006 $ac_includes_default
10008 #include <$ac_header>
10010 rm -f conftest.
$ac_objext
10011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10012 (eval $ac_compile) 2>conftest.er1
10014 grep -v '^ *+' conftest.er1
>conftest.err
10016 cat conftest.err
>&5
10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018 (exit $ac_status); } &&
10019 { ac_try
='test -z "$ac_c_werror_flag"
10020 || test ! -s conftest.err'
10021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10022 (eval $ac_try) 2>&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); }; } &&
10026 { ac_try
='test -s conftest.$ac_objext'
10027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10028 (eval $ac_try) 2>&5
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); }; }; then
10032 eval "$as_ac_Header=yes"
10034 echo "$as_me: failed program was:" >&5
10035 sed 's/^/| /' conftest.
$ac_ext >&5
10037 eval "$as_ac_Header=no"
10039 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10042 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10044 cat >>confdefs.h
<<_ACEOF
10045 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10056 for ac_header
in execinfo.h unistd.h dlfcn.h
10058 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10060 echo "$as_me:$LINENO: checking for $ac_header" >&5
10061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10063 echo $ECHO_N "(cached) $ECHO_C" >&6
10065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10066 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10068 # Is the header compilable?
10069 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10070 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10071 cat >conftest.
$ac_ext <<_ACEOF
10074 cat confdefs.h
>>conftest.
$ac_ext
10075 cat >>conftest.
$ac_ext <<_ACEOF
10076 /* end confdefs.h. */
10077 $ac_includes_default
10078 #include <$ac_header>
10080 rm -f conftest.
$ac_objext
10081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10082 (eval $ac_compile) 2>conftest.er1
10084 grep -v '^ *+' conftest.er1
>conftest.err
10086 cat conftest.err
>&5
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); } &&
10089 { ac_try
='test -z "$ac_c_werror_flag"
10090 || test ! -s conftest.err'
10091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10092 (eval $ac_try) 2>&5
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); }; } &&
10096 { ac_try
='test -s conftest.$ac_objext'
10097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10098 (eval $ac_try) 2>&5
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); }; }; then
10102 ac_header_compiler
=yes
10104 echo "$as_me: failed program was:" >&5
10105 sed 's/^/| /' conftest.
$ac_ext >&5
10107 ac_header_compiler
=no
10109 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10110 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10111 echo "${ECHO_T}$ac_header_compiler" >&6
10113 # Is the header present?
10114 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10115 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10116 cat >conftest.
$ac_ext <<_ACEOF
10119 cat confdefs.h
>>conftest.
$ac_ext
10120 cat >>conftest.
$ac_ext <<_ACEOF
10121 /* end confdefs.h. */
10122 #include <$ac_header>
10124 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10125 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10127 grep -v '^ *+' conftest.er1
>conftest.err
10129 cat conftest.err
>&5
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); } >/dev
/null
; then
10132 if test -s conftest.err
; then
10133 ac_cpp_err
=$ac_c_preproc_warn_flag
10134 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10141 if test -z "$ac_cpp_err"; then
10142 ac_header_preproc
=yes
10144 echo "$as_me: failed program was:" >&5
10145 sed 's/^/| /' conftest.
$ac_ext >&5
10147 ac_header_preproc
=no
10149 rm -f conftest.err conftest.
$ac_ext
10150 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10151 echo "${ECHO_T}$ac_header_preproc" >&6
10153 # So? What about this header?
10154 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10156 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10157 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10159 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10160 ac_header_preproc
=yes
10163 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10164 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10165 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10166 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10167 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10168 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10169 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10170 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10172 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10173 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10174 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10177 ## ---------------------------------- ##
10178 ## Report this to the libjava lists. ##
10179 ## ---------------------------------- ##
10182 sed "s/^/$as_me: WARNING: /" >&2
10185 echo "$as_me:$LINENO: checking for $ac_header" >&5
10186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10188 echo $ECHO_N "(cached) $ECHO_C" >&6
10190 eval "$as_ac_Header=\$ac_header_preproc"
10192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10193 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10196 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10197 cat >>confdefs.h
<<_ACEOF
10198 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10205 # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
10206 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
10207 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
10208 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
10209 echo $ECHO_N "(cached) $ECHO_C" >&6
10211 ac_check_lib_save_LIBS
=$LIBS
10213 if test x
$gcc_no_link = xyes
; then
10214 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10215 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10216 { (exit 1); exit 1; }; }
10218 cat >conftest.
$ac_ext <<_ACEOF
10221 cat confdefs.h
>>conftest.
$ac_ext
10222 cat >>conftest.
$ac_ext <<_ACEOF
10223 /* end confdefs.h. */
10225 /* Override any gcc2 internal prototype to avoid an error. */
10229 /* We use char because int might match the return type of a gcc2
10230 builtin and then its argument prototype would still apply. */
10240 rm -f conftest.
$ac_objext conftest
$ac_exeext
10241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10242 (eval $ac_link) 2>conftest.er1
10244 grep -v '^ *+' conftest.er1
>conftest.err
10246 cat conftest.err
>&5
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); } &&
10249 { ac_try
='test -z "$ac_c_werror_flag"
10250 || test ! -s conftest.err'
10251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10252 (eval $ac_try) 2>&5
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); }; } &&
10256 { ac_try
='test -s conftest$ac_exeext'
10257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10258 (eval $ac_try) 2>&5
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); }; }; then
10262 ac_cv_lib_dl_dladdr
=yes
10264 echo "$as_me: failed program was:" >&5
10265 sed 's/^/| /' conftest.
$ac_ext >&5
10267 ac_cv_lib_dl_dladdr
=no
10269 rm -f conftest.err conftest.
$ac_objext \
10270 conftest
$ac_exeext conftest.
$ac_ext
10271 LIBS
=$ac_check_lib_save_LIBS
10273 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
10274 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
10275 if test $ac_cv_lib_dl_dladdr = yes; then
10278 cat >>confdefs.h
<<\_ACEOF
10279 #define HAVE_DLADDR 1
10284 echo "$as_me:$LINENO: checking for dladdr in -ldld" >&5
10285 echo $ECHO_N "checking for dladdr in -ldld... $ECHO_C" >&6
10286 if test "${ac_cv_lib_dld_dladdr+set}" = set; then
10287 echo $ECHO_N "(cached) $ECHO_C" >&6
10289 ac_check_lib_save_LIBS
=$LIBS
10291 if test x
$gcc_no_link = xyes
; then
10292 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10293 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10294 { (exit 1); exit 1; }; }
10296 cat >conftest.
$ac_ext <<_ACEOF
10299 cat confdefs.h
>>conftest.
$ac_ext
10300 cat >>conftest.
$ac_ext <<_ACEOF
10301 /* end confdefs.h. */
10303 /* Override any gcc2 internal prototype to avoid an error. */
10307 /* We use char because int might match the return type of a gcc2
10308 builtin and then its argument prototype would still apply. */
10318 rm -f conftest.
$ac_objext conftest
$ac_exeext
10319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10320 (eval $ac_link) 2>conftest.er1
10322 grep -v '^ *+' conftest.er1
>conftest.err
10324 cat conftest.err
>&5
10325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326 (exit $ac_status); } &&
10327 { ac_try
='test -z "$ac_c_werror_flag"
10328 || test ! -s conftest.err'
10329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10330 (eval $ac_try) 2>&5
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); }; } &&
10334 { ac_try
='test -s conftest$ac_exeext'
10335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10336 (eval $ac_try) 2>&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); }; }; then
10340 ac_cv_lib_dld_dladdr
=yes
10342 echo "$as_me: failed program was:" >&5
10343 sed 's/^/| /' conftest.
$ac_ext >&5
10345 ac_cv_lib_dld_dladdr
=no
10347 rm -f conftest.err conftest.
$ac_objext \
10348 conftest
$ac_exeext conftest.
$ac_ext
10349 LIBS
=$ac_check_lib_save_LIBS
10351 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dladdr" >&5
10352 echo "${ECHO_T}$ac_cv_lib_dld_dladdr" >&6
10353 if test $ac_cv_lib_dld_dladdr = yes; then
10356 cat >>confdefs.h
<<\_ACEOF
10357 #define HAVE_DLADDR 1
10365 if test x
"$cross_compiling" = x
"no"; then
10366 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
10367 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
10368 if test "${ac_cv_file__proc_self_exe+set}" = set; then
10369 echo $ECHO_N "(cached) $ECHO_C" >&6
10371 test "$cross_compiling" = yes &&
10372 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10373 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10374 { (exit 1); exit 1; }; }
10375 if test -r "/proc/self/exe"; then
10376 ac_cv_file__proc_self_exe
=yes
10378 ac_cv_file__proc_self_exe
=no
10381 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
10382 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
10383 if test $ac_cv_file__proc_self_exe = yes; then
10385 cat >>confdefs.h
<<_ACEOF
10386 #define HAVE__PROC_SELF_EXE 1
10391 cat >>confdefs.h
<<\_ACEOF
10392 #define HAVE_PROC_SELF_EXE 1
10401 cat >>confdefs.h
<<\_ACEOF
10402 #define HAVE_PROC_SELF_EXE 1
10410 if test "X$prefix" = "XNONE"; then
10411 acl_final_prefix
="$ac_default_prefix"
10413 acl_final_prefix
="$prefix"
10415 if test "X$exec_prefix" = "XNONE"; then
10416 acl_final_exec_prefix
='${prefix}'
10418 acl_final_exec_prefix
="$exec_prefix"
10420 acl_save_prefix
="$prefix"
10421 prefix
="$acl_final_prefix"
10422 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10423 prefix
="$acl_save_prefix"
10426 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10427 if test "${with_gnu_ld+set}" = set; then
10428 withval
="$with_gnu_ld"
10429 test "$withval" = no || with_gnu_ld
=yes
10433 # Prepare PATH_SEPARATOR.
10434 # The user is always right.
10435 if test "${PATH_SEPARATOR+set}" != set; then
10436 echo "#! /bin/sh" >conf$$.sh
10437 echo "exit 0" >>conf$$.sh
10439 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10447 if test "$GCC" = yes; then
10448 # Check if gcc -print-prog-name=ld gives a path.
10449 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10450 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10453 # gcc leaves a trailing carriage return which upsets mingw
10454 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10456 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10459 # Accept absolute paths.
10460 [\\/]* |
[A-Za-z
]:[\\/]*)
10461 re_direlt
='/[^/][^/]*/\.\./'
10462 # Canonicalize the path of ld
10463 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10464 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10465 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10467 test -z "$LD" && LD
="$ac_prog"
10470 # If it fails, then pretend we aren't using GCC.
10474 # If it is relative, then search for the first ld in PATH.
10475 with_gnu_ld
=unknown
10478 elif test "$with_gnu_ld" = yes; then
10479 echo "$as_me:$LINENO: checking for GNU ld" >&5
10480 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10482 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10483 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10485 if test "${acl_cv_path_LD+set}" = set; then
10486 echo $ECHO_N "(cached) $ECHO_C" >&6
10488 if test -z "$LD"; then
10489 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10490 for ac_dir
in $PATH; do
10491 test -z "$ac_dir" && ac_dir
=.
10492 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10493 acl_cv_path_LD
="$ac_dir/$ac_prog"
10494 # Check to see if the program is GNU ld. I'd rather use --version,
10495 # but apparently some GNU ld's only accept -v.
10496 # Break only if it was the GNU/non-GNU ld that we prefer.
10497 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10498 test "$with_gnu_ld" != no
&& break
10500 test "$with_gnu_ld" != yes && break
10506 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10510 LD
="$acl_cv_path_LD"
10511 if test -n "$LD"; then
10512 echo "$as_me:$LINENO: result: $LD" >&5
10513 echo "${ECHO_T}$LD" >&6
10515 echo "$as_me:$LINENO: result: no" >&5
10516 echo "${ECHO_T}no" >&6
10518 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10519 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10520 { (exit 1); exit 1; }; }
10521 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10522 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10523 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10524 echo $ECHO_N "(cached) $ECHO_C" >&6
10526 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10527 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10528 acl_cv_prog_gnu_ld
=yes
10530 acl_cv_prog_gnu_ld
=no
10533 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10534 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10535 with_gnu_ld
=$acl_cv_prog_gnu_ld
10539 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10540 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10541 if test "${acl_cv_rpath+set}" = set; then
10542 echo $ECHO_N "(cached) $ECHO_C" >&6
10545 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10546 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10548 rm -f .
/conftest.sh
10552 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10553 echo "${ECHO_T}$acl_cv_rpath" >&6
10555 libext
="$acl_cv_libext"
10556 shlibext
="$acl_cv_shlibext"
10557 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10558 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10559 hardcode_direct
="$acl_cv_hardcode_direct"
10560 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10561 # Check whether --enable-rpath or --disable-rpath was given.
10562 if test "${enable_rpath+set}" = set; then
10563 enableval
="$enable_rpath"
10577 acl_save_prefix
="$prefix"
10578 prefix
="$acl_final_prefix"
10579 acl_save_exec_prefix
="$exec_prefix"
10580 exec_prefix
="$acl_final_exec_prefix"
10582 eval additional_includedir
=\"$includedir\"
10583 eval additional_libdir
=\"$libdir\"
10585 exec_prefix
="$acl_save_exec_prefix"
10586 prefix
="$acl_save_prefix"
10589 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10590 if test "${with_libiconv_prefix+set}" = set; then
10591 withval
="$with_libiconv_prefix"
10593 if test "X$withval" = "Xno"; then
10596 if test "X$withval" = "X"; then
10598 acl_save_prefix
="$prefix"
10599 prefix
="$acl_final_prefix"
10600 acl_save_exec_prefix
="$exec_prefix"
10601 exec_prefix
="$acl_final_exec_prefix"
10603 eval additional_includedir
=\"$includedir\"
10604 eval additional_libdir
=\"$libdir\"
10606 exec_prefix
="$acl_save_exec_prefix"
10607 prefix
="$acl_save_prefix"
10610 additional_includedir
="$withval/include"
10611 additional_libdir
="$withval/lib"
10621 names_already_handled
=
10622 names_next_round
='iconv '
10623 while test -n "$names_next_round"; do
10624 names_this_round
="$names_next_round"
10626 for name
in $names_this_round; do
10628 for n
in $names_already_handled; do
10629 if test "$n" = "$name"; then
10630 already_handled
=yes
10634 if test -z "$already_handled"; then
10635 names_already_handled
="$names_already_handled $name"
10636 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10637 eval value
=\"\
$HAVE_LIB$uppername\"
10638 if test -n "$value"; then
10639 if test "$value" = yes; then
10640 eval value
=\"\
$LIB$uppername\"
10641 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10642 eval value
=\"\
$LTLIB$uppername\"
10643 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10652 if test $use_additional = yes; then
10653 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10654 found_dir
="$additional_libdir"
10655 found_so
="$additional_libdir/lib$name.$shlibext"
10656 if test -f "$additional_libdir/lib$name.la"; then
10657 found_la
="$additional_libdir/lib$name.la"
10660 if test -f "$additional_libdir/lib$name.$libext"; then
10661 found_dir
="$additional_libdir"
10662 found_a
="$additional_libdir/lib$name.$libext"
10663 if test -f "$additional_libdir/lib$name.la"; then
10664 found_la
="$additional_libdir/lib$name.la"
10669 if test "X$found_dir" = "X"; then
10670 for x
in $LDFLAGS $LTLIBICONV; do
10672 acl_save_prefix
="$prefix"
10673 prefix
="$acl_final_prefix"
10674 acl_save_exec_prefix
="$exec_prefix"
10675 exec_prefix
="$acl_final_exec_prefix"
10677 exec_prefix
="$acl_save_exec_prefix"
10678 prefix
="$acl_save_prefix"
10682 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10683 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10685 found_so
="$dir/lib$name.$shlibext"
10686 if test -f "$dir/lib$name.la"; then
10687 found_la
="$dir/lib$name.la"
10690 if test -f "$dir/lib$name.$libext"; then
10692 found_a
="$dir/lib$name.$libext"
10693 if test -f "$dir/lib$name.la"; then
10694 found_la
="$dir/lib$name.la"
10700 if test "X$found_dir" != "X"; then
10705 if test "X$found_dir" != "X"; then
10706 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10707 if test "X$found_so" != "X"; then
10708 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10709 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10712 for x
in $ltrpathdirs; do
10713 if test "X$x" = "X$found_dir"; then
10718 if test -z "$haveit"; then
10719 ltrpathdirs
="$ltrpathdirs $found_dir"
10721 if test "$hardcode_direct" = yes; then
10722 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10724 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10725 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10727 for x
in $rpathdirs; do
10728 if test "X$x" = "X$found_dir"; then
10733 if test -z "$haveit"; then
10734 rpathdirs
="$rpathdirs $found_dir"
10738 for x
in $LDFLAGS $LIBICONV; do
10740 acl_save_prefix
="$prefix"
10741 prefix
="$acl_final_prefix"
10742 acl_save_exec_prefix
="$exec_prefix"
10743 exec_prefix
="$acl_final_exec_prefix"
10745 exec_prefix
="$acl_save_exec_prefix"
10746 prefix
="$acl_save_prefix"
10748 if test "X$x" = "X-L$found_dir"; then
10753 if test -z "$haveit"; then
10754 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10756 if test "$hardcode_minus_L" != no
; then
10757 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10759 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10765 if test "X$found_a" != "X"; then
10766 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10768 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10771 additional_includedir
=
10772 case "$found_dir" in
10774 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10775 additional_includedir
="$basedir/include"
10778 if test "X$additional_includedir" != "X"; then
10779 if test "X$additional_includedir" != "X/usr/include"; then
10781 if test "X$additional_includedir" = "X/usr/local/include"; then
10782 if test -n "$GCC"; then
10784 linux
*) haveit
=yes;;
10788 if test -z "$haveit"; then
10789 for x
in $CPPFLAGS $INCICONV; do
10791 acl_save_prefix
="$prefix"
10792 prefix
="$acl_final_prefix"
10793 acl_save_exec_prefix
="$exec_prefix"
10794 exec_prefix
="$acl_final_exec_prefix"
10796 exec_prefix
="$acl_save_exec_prefix"
10797 prefix
="$acl_save_prefix"
10799 if test "X$x" = "X-I$additional_includedir"; then
10804 if test -z "$haveit"; then
10805 if test -d "$additional_includedir"; then
10806 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10812 if test -n "$found_la"; then
10813 save_libdir
="$libdir"
10814 case "$found_la" in
10815 */* |
*\\*) .
"$found_la" ;;
10816 *) .
"./$found_la" ;;
10818 libdir
="$save_libdir"
10819 for dep
in $dependency_libs; do
10822 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10823 if test "X$additional_libdir" != "X/usr/lib"; then
10825 if test "X$additional_libdir" = "X/usr/local/lib"; then
10826 if test -n "$GCC"; then
10828 linux
*) haveit
=yes;;
10832 if test -z "$haveit"; then
10834 for x
in $LDFLAGS $LIBICONV; do
10836 acl_save_prefix
="$prefix"
10837 prefix
="$acl_final_prefix"
10838 acl_save_exec_prefix
="$exec_prefix"
10839 exec_prefix
="$acl_final_exec_prefix"
10841 exec_prefix
="$acl_save_exec_prefix"
10842 prefix
="$acl_save_prefix"
10844 if test "X$x" = "X-L$additional_libdir"; then
10849 if test -z "$haveit"; then
10850 if test -d "$additional_libdir"; then
10851 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10855 for x
in $LDFLAGS $LTLIBICONV; do
10857 acl_save_prefix
="$prefix"
10858 prefix
="$acl_final_prefix"
10859 acl_save_exec_prefix
="$exec_prefix"
10860 exec_prefix
="$acl_final_exec_prefix"
10862 exec_prefix
="$acl_save_exec_prefix"
10863 prefix
="$acl_save_prefix"
10865 if test "X$x" = "X-L$additional_libdir"; then
10870 if test -z "$haveit"; then
10871 if test -d "$additional_libdir"; then
10872 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10879 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10880 if test "$enable_rpath" != no
; then
10882 for x
in $rpathdirs; do
10883 if test "X$x" = "X$dir"; then
10888 if test -z "$haveit"; then
10889 rpathdirs
="$rpathdirs $dir"
10892 for x
in $ltrpathdirs; do
10893 if test "X$x" = "X$dir"; then
10898 if test -z "$haveit"; then
10899 ltrpathdirs
="$ltrpathdirs $dir"
10904 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10907 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10910 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10911 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10917 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10918 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10924 if test "X$rpathdirs" != "X"; then
10925 if test -n "$hardcode_libdir_separator"; then
10927 for found_dir
in $rpathdirs; do
10928 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10930 acl_save_libdir
="$libdir"
10932 eval flag
=\"$hardcode_libdir_flag_spec\"
10933 libdir
="$acl_save_libdir"
10934 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10936 for found_dir
in $rpathdirs; do
10937 acl_save_libdir
="$libdir"
10938 libdir
="$found_dir"
10939 eval flag
=\"$hardcode_libdir_flag_spec\"
10940 libdir
="$acl_save_libdir"
10941 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10945 if test "X$ltrpathdirs" != "X"; then
10946 for found_dir
in $ltrpathdirs; do
10947 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10957 am_save_CPPFLAGS
="$CPPFLAGS"
10959 for element
in $INCICONV; do
10961 for x
in $CPPFLAGS; do
10963 acl_save_prefix
="$prefix"
10964 prefix
="$acl_final_prefix"
10965 acl_save_exec_prefix
="$exec_prefix"
10966 exec_prefix
="$acl_final_exec_prefix"
10968 exec_prefix
="$acl_save_exec_prefix"
10969 prefix
="$acl_save_prefix"
10971 if test "X$x" = "X$element"; then
10976 if test -z "$haveit"; then
10977 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10982 echo "$as_me:$LINENO: checking for iconv" >&5
10983 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10984 if test "${am_cv_func_iconv+set}" = set; then
10985 echo $ECHO_N "(cached) $ECHO_C" >&6
10988 am_cv_func_iconv
="no, consider installing GNU libiconv"
10990 if test x
$gcc_no_link = xyes
; then
10991 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10992 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10993 { (exit 1); exit 1; }; }
10995 cat >conftest.
$ac_ext <<_ACEOF
10998 cat confdefs.h
>>conftest.
$ac_ext
10999 cat >>conftest.
$ac_ext <<_ACEOF
11000 /* end confdefs.h. */
11001 #include <stdlib.h>
11006 iconv_t cd = iconv_open("","");
11007 iconv(cd,NULL,NULL,NULL,NULL);
11013 rm -f conftest.
$ac_objext conftest
$ac_exeext
11014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11015 (eval $ac_link) 2>conftest.er1
11017 grep -v '^ *+' conftest.er1
>conftest.err
11019 cat conftest.err
>&5
11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); } &&
11022 { ac_try
='test -z "$ac_c_werror_flag"
11023 || test ! -s conftest.err'
11024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11025 (eval $ac_try) 2>&5
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); }; } &&
11029 { ac_try
='test -s conftest$ac_exeext'
11030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11031 (eval $ac_try) 2>&5
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); }; }; then
11035 am_cv_func_iconv
=yes
11037 echo "$as_me: failed program was:" >&5
11038 sed 's/^/| /' conftest.
$ac_ext >&5
11041 rm -f conftest.err conftest.
$ac_objext \
11042 conftest
$ac_exeext conftest.
$ac_ext
11043 if test "$am_cv_func_iconv" != yes; then
11044 am_save_LIBS
="$LIBS"
11045 LIBS
="$LIBS $LIBICONV"
11046 if test x
$gcc_no_link = xyes
; then
11047 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11048 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11049 { (exit 1); exit 1; }; }
11051 cat >conftest.
$ac_ext <<_ACEOF
11054 cat confdefs.h
>>conftest.
$ac_ext
11055 cat >>conftest.
$ac_ext <<_ACEOF
11056 /* end confdefs.h. */
11057 #include <stdlib.h>
11062 iconv_t cd = iconv_open("","");
11063 iconv(cd,NULL,NULL,NULL,NULL);
11069 rm -f conftest.
$ac_objext conftest
$ac_exeext
11070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11071 (eval $ac_link) 2>conftest.er1
11073 grep -v '^ *+' conftest.er1
>conftest.err
11075 cat conftest.err
>&5
11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); } &&
11078 { ac_try
='test -z "$ac_c_werror_flag"
11079 || test ! -s conftest.err'
11080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11081 (eval $ac_try) 2>&5
11083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); }; } &&
11085 { ac_try
='test -s conftest$ac_exeext'
11086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11087 (eval $ac_try) 2>&5
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); }; }; then
11091 am_cv_lib_iconv
=yes
11092 am_cv_func_iconv
=yes
11094 echo "$as_me: failed program was:" >&5
11095 sed 's/^/| /' conftest.
$ac_ext >&5
11098 rm -f conftest.err conftest.
$ac_objext \
11099 conftest
$ac_exeext conftest.
$ac_ext
11100 LIBS
="$am_save_LIBS"
11104 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11105 echo "${ECHO_T}$am_cv_func_iconv" >&6
11106 if test "$am_cv_func_iconv" = yes; then
11108 cat >>confdefs.h
<<\_ACEOF
11109 #define HAVE_ICONV 1
11113 if test "$am_cv_lib_iconv" = yes; then
11114 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11115 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11116 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11117 echo "${ECHO_T}$LIBICONV" >&6
11119 CPPFLAGS
="$am_save_CPPFLAGS"
11126 if test "$am_cv_func_iconv" = yes; then
11127 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11128 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11129 if test "${am_cv_proto_iconv+set}" = set; then
11130 echo $ECHO_N "(cached) $ECHO_C" >&6
11133 cat >conftest.
$ac_ext <<_ACEOF
11136 cat confdefs.h
>>conftest.
$ac_ext
11137 cat >>conftest.
$ac_ext <<_ACEOF
11138 /* end confdefs.h. */
11140 #include <stdlib.h>
11146 #if defined(__STDC__) || defined(__cplusplus)
11147 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11160 rm -f conftest.
$ac_objext
11161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11162 (eval $ac_compile) 2>conftest.er1
11164 grep -v '^ *+' conftest.er1
>conftest.err
11166 cat conftest.err
>&5
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); } &&
11169 { ac_try
='test -z "$ac_c_werror_flag"
11170 || test ! -s conftest.err'
11171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11172 (eval $ac_try) 2>&5
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); }; } &&
11176 { ac_try
='test -s conftest.$ac_objext'
11177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11178 (eval $ac_try) 2>&5
11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); }; }; then
11182 am_cv_proto_iconv_arg1
=""
11184 echo "$as_me: failed program was:" >&5
11185 sed 's/^/| /' conftest.
$ac_ext >&5
11187 am_cv_proto_iconv_arg1
="const"
11189 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11190 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);"
11193 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11194 echo "$as_me:$LINENO: result: ${ac_t:-
11195 }$am_cv_proto_iconv" >&5
11196 echo "${ECHO_T}${ac_t:-
11197 }$am_cv_proto_iconv" >&6
11199 cat >>confdefs.h
<<_ACEOF
11200 #define ICONV_CONST $am_cv_proto_iconv_arg1
11206 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11207 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11208 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11209 echo $ECHO_N "(cached) $ECHO_C" >&6
11211 if test x
$gcc_no_link = xyes
; then
11212 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11213 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11214 { (exit 1); exit 1; }; }
11216 cat >conftest.
$ac_ext <<_ACEOF
11219 cat confdefs.h
>>conftest.
$ac_ext
11220 cat >>conftest.
$ac_ext <<_ACEOF
11221 /* end confdefs.h. */
11222 #include <locale.h>
11231 rm -f conftest.
$ac_objext conftest
$ac_exeext
11232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11233 (eval $ac_link) 2>conftest.er1
11235 grep -v '^ *+' conftest.er1
>conftest.err
11237 cat conftest.err
>&5
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); } &&
11240 { ac_try
='test -z "$ac_c_werror_flag"
11241 || test ! -s conftest.err'
11242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11243 (eval $ac_try) 2>&5
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); }; } &&
11247 { ac_try
='test -s conftest$ac_exeext'
11248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11249 (eval $ac_try) 2>&5
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); }; }; then
11253 am_cv_val_LC_MESSAGES
=yes
11255 echo "$as_me: failed program was:" >&5
11256 sed 's/^/| /' conftest.
$ac_ext >&5
11258 am_cv_val_LC_MESSAGES
=no
11260 rm -f conftest.err conftest.
$ac_objext \
11261 conftest
$ac_exeext conftest.
$ac_ext
11263 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11264 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11265 if test $am_cv_val_LC_MESSAGES = yes; then
11267 cat >>confdefs.h
<<\_ACEOF
11268 #define HAVE_LC_MESSAGES 1
11273 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11274 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11275 if test "${ac_cv_struct_tm+set}" = set; then
11276 echo $ECHO_N "(cached) $ECHO_C" >&6
11278 cat >conftest.
$ac_ext <<_ACEOF
11281 cat confdefs.h
>>conftest.
$ac_ext
11282 cat >>conftest.
$ac_ext <<_ACEOF
11283 /* end confdefs.h. */
11284 #include <sys/types.h>
11290 struct tm *tp; tp->tm_sec;
11295 rm -f conftest.
$ac_objext
11296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11297 (eval $ac_compile) 2>conftest.er1
11299 grep -v '^ *+' conftest.er1
>conftest.err
11301 cat conftest.err
>&5
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); } &&
11304 { ac_try
='test -z "$ac_c_werror_flag"
11305 || test ! -s conftest.err'
11306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11307 (eval $ac_try) 2>&5
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); }; } &&
11311 { ac_try
='test -s conftest.$ac_objext'
11312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11313 (eval $ac_try) 2>&5
11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 (exit $ac_status); }; }; then
11317 ac_cv_struct_tm
=time.h
11319 echo "$as_me: failed program was:" >&5
11320 sed 's/^/| /' conftest.
$ac_ext >&5
11322 ac_cv_struct_tm
=sys
/time.h
11324 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11326 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11327 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11328 if test $ac_cv_struct_tm = sys
/time.h
; then
11330 cat >>confdefs.h
<<\_ACEOF
11331 #define TM_IN_SYS_TIME 1
11336 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11337 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11338 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11339 echo $ECHO_N "(cached) $ECHO_C" >&6
11341 cat >conftest.
$ac_ext <<_ACEOF
11344 cat confdefs.h
>>conftest.
$ac_ext
11345 cat >>conftest.
$ac_ext <<_ACEOF
11346 /* end confdefs.h. */
11347 #include <sys/types.h>
11348 #include <$ac_cv_struct_tm>
11354 static struct tm ac_aggr;
11355 if (ac_aggr.tm_zone)
11361 rm -f conftest.
$ac_objext
11362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11363 (eval $ac_compile) 2>conftest.er1
11365 grep -v '^ *+' conftest.er1
>conftest.err
11367 cat conftest.err
>&5
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); } &&
11370 { ac_try
='test -z "$ac_c_werror_flag"
11371 || test ! -s conftest.err'
11372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11373 (eval $ac_try) 2>&5
11375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376 (exit $ac_status); }; } &&
11377 { ac_try
='test -s conftest.$ac_objext'
11378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11379 (eval $ac_try) 2>&5
11381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382 (exit $ac_status); }; }; then
11383 ac_cv_member_struct_tm_tm_zone
=yes
11385 echo "$as_me: failed program was:" >&5
11386 sed 's/^/| /' conftest.
$ac_ext >&5
11388 cat >conftest.
$ac_ext <<_ACEOF
11391 cat confdefs.h
>>conftest.
$ac_ext
11392 cat >>conftest.
$ac_ext <<_ACEOF
11393 /* end confdefs.h. */
11394 #include <sys/types.h>
11395 #include <$ac_cv_struct_tm>
11401 static struct tm ac_aggr;
11402 if (sizeof ac_aggr.tm_zone)
11408 rm -f conftest.
$ac_objext
11409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11410 (eval $ac_compile) 2>conftest.er1
11412 grep -v '^ *+' conftest.er1
>conftest.err
11414 cat conftest.err
>&5
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); } &&
11417 { ac_try
='test -z "$ac_c_werror_flag"
11418 || test ! -s conftest.err'
11419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11420 (eval $ac_try) 2>&5
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); }; } &&
11424 { ac_try
='test -s conftest.$ac_objext'
11425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11426 (eval $ac_try) 2>&5
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); }; }; then
11430 ac_cv_member_struct_tm_tm_zone
=yes
11432 echo "$as_me: failed program was:" >&5
11433 sed 's/^/| /' conftest.
$ac_ext >&5
11435 ac_cv_member_struct_tm_tm_zone
=no
11437 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11439 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11441 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11442 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11443 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11445 cat >>confdefs.h
<<_ACEOF
11446 #define HAVE_STRUCT_TM_TM_ZONE 1
11452 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11454 cat >>confdefs.h
<<\_ACEOF
11455 #define HAVE_TM_ZONE 1
11459 echo "$as_me:$LINENO: checking for tzname" >&5
11460 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11461 if test "${ac_cv_var_tzname+set}" = set; then
11462 echo $ECHO_N "(cached) $ECHO_C" >&6
11464 if test x
$gcc_no_link = xyes
; then
11465 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11466 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11467 { (exit 1); exit 1; }; }
11469 cat >conftest.
$ac_ext <<_ACEOF
11472 cat confdefs.h
>>conftest.
$ac_ext
11473 cat >>conftest.
$ac_ext <<_ACEOF
11474 /* end confdefs.h. */
11476 #ifndef tzname /* For SGI. */
11477 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11488 rm -f conftest.
$ac_objext conftest
$ac_exeext
11489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11490 (eval $ac_link) 2>conftest.er1
11492 grep -v '^ *+' conftest.er1
>conftest.err
11494 cat conftest.err
>&5
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); } &&
11497 { ac_try
='test -z "$ac_c_werror_flag"
11498 || test ! -s conftest.err'
11499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500 (eval $ac_try) 2>&5
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; } &&
11504 { ac_try
='test -s conftest$ac_exeext'
11505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506 (eval $ac_try) 2>&5
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; }; then
11510 ac_cv_var_tzname
=yes
11512 echo "$as_me: failed program was:" >&5
11513 sed 's/^/| /' conftest.
$ac_ext >&5
11515 ac_cv_var_tzname
=no
11517 rm -f conftest.err conftest.
$ac_objext \
11518 conftest
$ac_exeext conftest.
$ac_ext
11520 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11521 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11522 if test $ac_cv_var_tzname = yes; then
11524 cat >>confdefs.h
<<\_ACEOF
11525 #define HAVE_TZNAME 1
11534 for ac_func
in gethostbyname_r
11536 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11537 echo "$as_me:$LINENO: checking for $ac_func" >&5
11538 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11539 if eval "test \"\${$as_ac_var+set}\" = set"; then
11540 echo $ECHO_N "(cached) $ECHO_C" >&6
11542 if test x
$gcc_no_link = xyes
; then
11543 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11544 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11545 { (exit 1); exit 1; }; }
11547 cat >conftest.
$ac_ext <<_ACEOF
11550 cat confdefs.h
>>conftest.
$ac_ext
11551 cat >>conftest.
$ac_ext <<_ACEOF
11552 /* end confdefs.h. */
11553 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11554 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11555 #define $ac_func innocuous_$ac_func
11557 /* System header to define __stub macros and hopefully few prototypes,
11558 which can conflict with char $ac_func (); below.
11559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11560 <limits.h> exists even on freestanding compilers. */
11563 # include <limits.h>
11565 # include <assert.h>
11570 /* Override any gcc2 internal prototype to avoid an error. */
11575 /* We use char because int might match the return type of a gcc2
11576 builtin and then its argument prototype would still apply. */
11578 /* The GNU C library defines this for functions which it implements
11579 to always fail with ENOSYS. Some functions are actually named
11580 something starting with __ and the normal name is an alias. */
11581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11584 char (*f) () = $ac_func;
11593 return f != $ac_func;
11598 rm -f conftest.
$ac_objext conftest
$ac_exeext
11599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11600 (eval $ac_link) 2>conftest.er1
11602 grep -v '^ *+' conftest.er1
>conftest.err
11604 cat conftest.err
>&5
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); } &&
11607 { ac_try
='test -z "$ac_c_werror_flag"
11608 || test ! -s conftest.err'
11609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11610 (eval $ac_try) 2>&5
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); }; } &&
11614 { ac_try
='test -s conftest$ac_exeext'
11615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11616 (eval $ac_try) 2>&5
11618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); }; }; then
11620 eval "$as_ac_var=yes"
11622 echo "$as_me: failed program was:" >&5
11623 sed 's/^/| /' conftest.
$ac_ext >&5
11625 eval "$as_ac_var=no"
11627 rm -f conftest.err conftest.
$ac_objext \
11628 conftest
$ac_exeext conftest.
$ac_ext
11630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11631 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11632 if test `eval echo '${'$as_ac_var'}'` = yes; then
11633 cat >>confdefs.h
<<_ACEOF
11634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11638 cat >>confdefs.h
<<\_ACEOF
11639 #define HAVE_GETHOSTBYNAME_R 1
11642 # There are two different kinds of gethostbyname_r.
11643 # We look for the one that returns `int'.
11644 # Hopefully this check is robust enough.
11645 cat >conftest.
$ac_ext <<_ACEOF
11648 cat confdefs.h
>>conftest.
$ac_ext
11649 cat >>conftest.
$ac_ext <<_ACEOF
11650 /* end confdefs.h. */
11654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11655 $EGREP "int.*gethostbyname_r" >/dev
/null
2>&1; then
11658 cat >>confdefs.h
<<\_ACEOF
11659 #define GETHOSTBYNAME_R_RETURNS_INT 1
11666 case " $GCINCS " in
11667 *" -D_REENTRANT "*) ;;
11669 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
11670 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
11671 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
11672 echo $ECHO_N "(cached) $ECHO_C" >&6
11675 ac_cpp
='$CXXCPP $CPPFLAGS'
11676 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11677 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11678 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
11680 cat >conftest.
$ac_ext <<_ACEOF
11683 cat confdefs.h
>>conftest.
$ac_ext
11684 cat >>conftest.
$ac_ext <<_ACEOF
11685 /* end confdefs.h. */
11690 gethostbyname_r("", 0, 0);
11695 rm -f conftest.
$ac_objext
11696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11697 (eval $ac_compile) 2>conftest.er1
11699 grep -v '^ *+' conftest.er1
>conftest.err
11701 cat conftest.err
>&5
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); } &&
11704 { ac_try
='test -z "$ac_cxx_werror_flag"
11705 || test ! -s conftest.err'
11706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11707 (eval $ac_try) 2>&5
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); }; } &&
11711 { ac_try
='test -s conftest.$ac_objext'
11712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11713 (eval $ac_try) 2>&5
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); }; }; then
11717 libjava_cv_gethostbyname_r_needs_reentrant
=no
11719 echo "$as_me: failed program was:" >&5
11720 sed 's/^/| /' conftest.
$ac_ext >&5
11722 CPPFLAGS_SAVE
="$CPPFLAGS"
11723 CPPFLAGS
="$CPPFLAGS -D_REENTRANT"
11724 cat >conftest.
$ac_ext <<_ACEOF
11727 cat confdefs.h
>>conftest.
$ac_ext
11728 cat >>conftest.
$ac_ext <<_ACEOF
11729 /* end confdefs.h. */
11734 gethostbyname_r("", 0, 0);
11739 rm -f conftest.
$ac_objext
11740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11741 (eval $ac_compile) 2>conftest.er1
11743 grep -v '^ *+' conftest.er1
>conftest.err
11745 cat conftest.err
>&5
11746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); } &&
11748 { ac_try
='test -z "$ac_cxx_werror_flag"
11749 || test ! -s conftest.err'
11750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11751 (eval $ac_try) 2>&5
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); }; } &&
11755 { ac_try
='test -s conftest.$ac_objext'
11756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11757 (eval $ac_try) 2>&5
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); }; }; then
11761 libjava_cv_gethostbyname_r_needs_reentrant
=yes
11763 echo "$as_me: failed program was:" >&5
11764 sed 's/^/| /' conftest.
$ac_ext >&5
11766 libjava_cv_gethostbyname_r_needs_reentrant
=fail
11768 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11769 CPPFLAGS
="$CPPFLAGS_SAVE"
11772 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11774 ac_cpp
='$CPP $CPPFLAGS'
11775 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11776 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11777 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11781 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
11782 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
11783 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes
; then
11785 cat >>confdefs.h
<<\_ACEOF
11786 #define _REENTRANT 1
11793 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
11794 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
11795 if test "${libjava_cv_struct_hostent_data+set}" = set; then
11796 echo $ECHO_N "(cached) $ECHO_C" >&6
11798 cat >conftest.
$ac_ext <<_ACEOF
11801 cat confdefs.h
>>conftest.
$ac_ext
11802 cat >>conftest.
$ac_ext <<_ACEOF
11803 /* end confdefs.h. */
11805 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
11806 # define _REENTRANT 1
11812 struct hostent_data data;
11817 rm -f conftest.
$ac_objext
11818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11819 (eval $ac_compile) 2>conftest.er1
11821 grep -v '^ *+' conftest.er1
>conftest.err
11823 cat conftest.err
>&5
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); } &&
11826 { ac_try
='test -z "$ac_c_werror_flag"
11827 || test ! -s conftest.err'
11828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11829 (eval $ac_try) 2>&5
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); }; } &&
11833 { ac_try
='test -s conftest.$ac_objext'
11834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11835 (eval $ac_try) 2>&5
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); }; }; then
11839 libjava_cv_struct_hostent_data
=yes
11841 echo "$as_me: failed program was:" >&5
11842 sed 's/^/| /' conftest.
$ac_ext >&5
11844 libjava_cv_struct_hostent_data
=no
11846 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11848 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
11849 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
11850 if test "x$libjava_cv_struct_hostent_data" = xyes
; then
11852 cat >>confdefs.h
<<\_ACEOF
11853 #define HAVE_STRUCT_HOSTENT_DATA 1
11862 # FIXME: libjava source code expects to find a prototype for
11863 # gethostbyaddr_r in netdb.h. The outer check ensures that
11864 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
11865 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
11866 # linkage check is enough, yet C++ code requires proper prototypes.)
11867 cat >conftest.
$ac_ext <<_ACEOF
11870 cat confdefs.h
>>conftest.
$ac_ext
11871 cat >>conftest.
$ac_ext <<_ACEOF
11872 /* end confdefs.h. */
11876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11877 $EGREP "gethostbyaddr_r" >/dev
/null
2>&1; then
11880 for ac_func
in gethostbyaddr_r
11882 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11883 echo "$as_me:$LINENO: checking for $ac_func" >&5
11884 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11885 if eval "test \"\${$as_ac_var+set}\" = set"; then
11886 echo $ECHO_N "(cached) $ECHO_C" >&6
11888 if test x
$gcc_no_link = xyes
; then
11889 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11890 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11891 { (exit 1); exit 1; }; }
11893 cat >conftest.
$ac_ext <<_ACEOF
11896 cat confdefs.h
>>conftest.
$ac_ext
11897 cat >>conftest.
$ac_ext <<_ACEOF
11898 /* end confdefs.h. */
11899 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11901 #define $ac_func innocuous_$ac_func
11903 /* System header to define __stub macros and hopefully few prototypes,
11904 which can conflict with char $ac_func (); below.
11905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11906 <limits.h> exists even on freestanding compilers. */
11909 # include <limits.h>
11911 # include <assert.h>
11916 /* Override any gcc2 internal prototype to avoid an error. */
11921 /* We use char because int might match the return type of a gcc2
11922 builtin and then its argument prototype would still apply. */
11924 /* The GNU C library defines this for functions which it implements
11925 to always fail with ENOSYS. Some functions are actually named
11926 something starting with __ and the normal name is an alias. */
11927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11930 char (*f) () = $ac_func;
11939 return f != $ac_func;
11944 rm -f conftest.
$ac_objext conftest
$ac_exeext
11945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11946 (eval $ac_link) 2>conftest.er1
11948 grep -v '^ *+' conftest.er1
>conftest.err
11950 cat conftest.err
>&5
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); } &&
11953 { ac_try
='test -z "$ac_c_werror_flag"
11954 || test ! -s conftest.err'
11955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11956 (eval $ac_try) 2>&5
11958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); }; } &&
11960 { ac_try
='test -s conftest$ac_exeext'
11961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11962 (eval $ac_try) 2>&5
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); }; }; then
11966 eval "$as_ac_var=yes"
11968 echo "$as_me: failed program was:" >&5
11969 sed 's/^/| /' conftest.
$ac_ext >&5
11971 eval "$as_ac_var=no"
11973 rm -f conftest.err conftest.
$ac_objext \
11974 conftest
$ac_exeext conftest.
$ac_ext
11976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11977 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11978 if test `eval echo '${'$as_ac_var'}'` = yes; then
11979 cat >>confdefs.h
<<_ACEOF
11980 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11984 cat >>confdefs.h
<<\_ACEOF
11985 #define HAVE_GETHOSTBYADDR_R 1
11988 # There are two different kinds of gethostbyaddr_r.
11989 # We look for the one that returns `int'.
11990 # Hopefully this check is robust enough.
11991 cat >conftest.
$ac_ext <<_ACEOF
11994 cat confdefs.h
>>conftest.
$ac_ext
11995 cat >>conftest.
$ac_ext <<_ACEOF
11996 /* end confdefs.h. */
12000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12001 $EGREP "int.*gethostbyaddr_r" >/dev
/null
2>&1; then
12004 cat >>confdefs.h
<<\_ACEOF
12005 #define GETHOSTBYADDR_R_RETURNS_INT 1
12019 for ac_func
in gethostname
12021 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12022 echo "$as_me:$LINENO: checking for $ac_func" >&5
12023 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12024 if eval "test \"\${$as_ac_var+set}\" = set"; then
12025 echo $ECHO_N "(cached) $ECHO_C" >&6
12027 if test x
$gcc_no_link = xyes
; then
12028 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12029 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12030 { (exit 1); exit 1; }; }
12032 cat >conftest.
$ac_ext <<_ACEOF
12035 cat confdefs.h
>>conftest.
$ac_ext
12036 cat >>conftest.
$ac_ext <<_ACEOF
12037 /* end confdefs.h. */
12038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12040 #define $ac_func innocuous_$ac_func
12042 /* System header to define __stub macros and hopefully few prototypes,
12043 which can conflict with char $ac_func (); below.
12044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12045 <limits.h> exists even on freestanding compilers. */
12048 # include <limits.h>
12050 # include <assert.h>
12055 /* Override any gcc2 internal prototype to avoid an error. */
12060 /* We use char because int might match the return type of a gcc2
12061 builtin and then its argument prototype would still apply. */
12063 /* The GNU C library defines this for functions which it implements
12064 to always fail with ENOSYS. Some functions are actually named
12065 something starting with __ and the normal name is an alias. */
12066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12069 char (*f) () = $ac_func;
12078 return f != $ac_func;
12083 rm -f conftest.
$ac_objext conftest
$ac_exeext
12084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12085 (eval $ac_link) 2>conftest.er1
12087 grep -v '^ *+' conftest.er1
>conftest.err
12089 cat conftest.err
>&5
12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); } &&
12092 { ac_try
='test -z "$ac_c_werror_flag"
12093 || test ! -s conftest.err'
12094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12095 (eval $ac_try) 2>&5
12097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098 (exit $ac_status); }; } &&
12099 { ac_try
='test -s conftest$ac_exeext'
12100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12101 (eval $ac_try) 2>&5
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); }; }; then
12105 eval "$as_ac_var=yes"
12107 echo "$as_me: failed program was:" >&5
12108 sed 's/^/| /' conftest.
$ac_ext >&5
12110 eval "$as_ac_var=no"
12112 rm -f conftest.err conftest.
$ac_objext \
12113 conftest
$ac_exeext conftest.
$ac_ext
12115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12116 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12117 if test `eval echo '${'$as_ac_var'}'` = yes; then
12118 cat >>confdefs.h
<<_ACEOF
12119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12123 cat >>confdefs.h
<<\_ACEOF
12124 #define HAVE_GETHOSTNAME 1
12127 cat >conftest.
$ac_ext <<_ACEOF
12130 cat confdefs.h
>>conftest.
$ac_ext
12131 cat >>conftest.
$ac_ext <<_ACEOF
12132 /* end confdefs.h. */
12133 #include <unistd.h>
12136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12137 $EGREP "gethostname" >/dev
/null
2>&1; then
12140 cat >>confdefs.h
<<\_ACEOF
12141 #define HAVE_GETHOSTNAME_DECL 1
12152 for ac_func
in usleep
12154 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12155 echo "$as_me:$LINENO: checking for $ac_func" >&5
12156 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12157 if eval "test \"\${$as_ac_var+set}\" = set"; then
12158 echo $ECHO_N "(cached) $ECHO_C" >&6
12160 if test x
$gcc_no_link = xyes
; then
12161 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12162 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12163 { (exit 1); exit 1; }; }
12165 cat >conftest.
$ac_ext <<_ACEOF
12168 cat confdefs.h
>>conftest.
$ac_ext
12169 cat >>conftest.
$ac_ext <<_ACEOF
12170 /* end confdefs.h. */
12171 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12173 #define $ac_func innocuous_$ac_func
12175 /* System header to define __stub macros and hopefully few prototypes,
12176 which can conflict with char $ac_func (); below.
12177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12178 <limits.h> exists even on freestanding compilers. */
12181 # include <limits.h>
12183 # include <assert.h>
12188 /* Override any gcc2 internal prototype to avoid an error. */
12193 /* We use char because int might match the return type of a gcc2
12194 builtin and then its argument prototype would still apply. */
12196 /* The GNU C library defines this for functions which it implements
12197 to always fail with ENOSYS. Some functions are actually named
12198 something starting with __ and the normal name is an alias. */
12199 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12202 char (*f) () = $ac_func;
12211 return f != $ac_func;
12216 rm -f conftest.
$ac_objext conftest
$ac_exeext
12217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12218 (eval $ac_link) 2>conftest.er1
12220 grep -v '^ *+' conftest.er1
>conftest.err
12222 cat conftest.err
>&5
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); } &&
12225 { ac_try
='test -z "$ac_c_werror_flag"
12226 || test ! -s conftest.err'
12227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12228 (eval $ac_try) 2>&5
12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); }; } &&
12232 { ac_try
='test -s conftest$ac_exeext'
12233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12234 (eval $ac_try) 2>&5
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); }; }; then
12238 eval "$as_ac_var=yes"
12240 echo "$as_me: failed program was:" >&5
12241 sed 's/^/| /' conftest.
$ac_ext >&5
12243 eval "$as_ac_var=no"
12245 rm -f conftest.err conftest.
$ac_objext \
12246 conftest
$ac_exeext conftest.
$ac_ext
12248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12249 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12250 if test `eval echo '${'$as_ac_var'}'` = yes; then
12251 cat >>confdefs.h
<<_ACEOF
12252 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12255 cat >conftest.
$ac_ext <<_ACEOF
12258 cat confdefs.h
>>conftest.
$ac_ext
12259 cat >>conftest.
$ac_ext <<_ACEOF
12260 /* end confdefs.h. */
12261 #include <unistd.h>
12264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12265 $EGREP "usleep" >/dev
/null
2>&1; then
12268 cat >>confdefs.h
<<\_ACEOF
12269 #define HAVE_USLEEP_DECL 1
12279 # Look for these functions in the thread library, but only bother
12280 # if using POSIX threads.
12281 if test "$THREADS" = posix
; then
12283 LIBS
="$LIBS $THREADLIBS"
12284 # Some POSIX thread systems don't have pthread_mutexattr_settype.
12288 for ac_func
in pthread_mutexattr_settype pthread_mutexattr_setkind_np
12290 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12291 echo "$as_me:$LINENO: checking for $ac_func" >&5
12292 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12293 if eval "test \"\${$as_ac_var+set}\" = set"; then
12294 echo $ECHO_N "(cached) $ECHO_C" >&6
12296 if test x
$gcc_no_link = xyes
; then
12297 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12298 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12299 { (exit 1); exit 1; }; }
12301 cat >conftest.
$ac_ext <<_ACEOF
12304 cat confdefs.h
>>conftest.
$ac_ext
12305 cat >>conftest.
$ac_ext <<_ACEOF
12306 /* end confdefs.h. */
12307 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12309 #define $ac_func innocuous_$ac_func
12311 /* System header to define __stub macros and hopefully few prototypes,
12312 which can conflict with char $ac_func (); below.
12313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12314 <limits.h> exists even on freestanding compilers. */
12317 # include <limits.h>
12319 # include <assert.h>
12324 /* Override any gcc2 internal prototype to avoid an error. */
12329 /* We use char because int might match the return type of a gcc2
12330 builtin and then its argument prototype would still apply. */
12332 /* The GNU C library defines this for functions which it implements
12333 to always fail with ENOSYS. Some functions are actually named
12334 something starting with __ and the normal name is an alias. */
12335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12338 char (*f) () = $ac_func;
12347 return f != $ac_func;
12352 rm -f conftest.
$ac_objext conftest
$ac_exeext
12353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12354 (eval $ac_link) 2>conftest.er1
12356 grep -v '^ *+' conftest.er1
>conftest.err
12358 cat conftest.err
>&5
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); } &&
12361 { ac_try
='test -z "$ac_c_werror_flag"
12362 || test ! -s conftest.err'
12363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12364 (eval $ac_try) 2>&5
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); }; } &&
12368 { ac_try
='test -s conftest$ac_exeext'
12369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12370 (eval $ac_try) 2>&5
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); }; }; then
12374 eval "$as_ac_var=yes"
12376 echo "$as_me: failed program was:" >&5
12377 sed 's/^/| /' conftest.
$ac_ext >&5
12379 eval "$as_ac_var=no"
12381 rm -f conftest.err conftest.
$ac_objext \
12382 conftest
$ac_exeext conftest.
$ac_ext
12384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12385 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12386 if test `eval echo '${'$as_ac_var'}'` = yes; then
12387 cat >>confdefs.h
<<_ACEOF
12388 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12395 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
12396 # Solaris 7 the name librt is preferred.
12398 for ac_func
in sched_yield
12400 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12401 echo "$as_me:$LINENO: checking for $ac_func" >&5
12402 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12403 if eval "test \"\${$as_ac_var+set}\" = set"; then
12404 echo $ECHO_N "(cached) $ECHO_C" >&6
12406 if test x
$gcc_no_link = xyes
; then
12407 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12408 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12409 { (exit 1); exit 1; }; }
12411 cat >conftest.
$ac_ext <<_ACEOF
12414 cat confdefs.h
>>conftest.
$ac_ext
12415 cat >>conftest.
$ac_ext <<_ACEOF
12416 /* end confdefs.h. */
12417 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12419 #define $ac_func innocuous_$ac_func
12421 /* System header to define __stub macros and hopefully few prototypes,
12422 which can conflict with char $ac_func (); below.
12423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12424 <limits.h> exists even on freestanding compilers. */
12427 # include <limits.h>
12429 # include <assert.h>
12434 /* Override any gcc2 internal prototype to avoid an error. */
12439 /* We use char because int might match the return type of a gcc2
12440 builtin and then its argument prototype would still apply. */
12442 /* The GNU C library defines this for functions which it implements
12443 to always fail with ENOSYS. Some functions are actually named
12444 something starting with __ and the normal name is an alias. */
12445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12448 char (*f) () = $ac_func;
12457 return f != $ac_func;
12462 rm -f conftest.
$ac_objext conftest
$ac_exeext
12463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12464 (eval $ac_link) 2>conftest.er1
12466 grep -v '^ *+' conftest.er1
>conftest.err
12468 cat conftest.err
>&5
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); } &&
12471 { ac_try
='test -z "$ac_c_werror_flag"
12472 || test ! -s conftest.err'
12473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12474 (eval $ac_try) 2>&5
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); }; } &&
12478 { ac_try
='test -s conftest$ac_exeext'
12479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12480 (eval $ac_try) 2>&5
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); }; }; then
12484 eval "$as_ac_var=yes"
12486 echo "$as_me: failed program was:" >&5
12487 sed 's/^/| /' conftest.
$ac_ext >&5
12489 eval "$as_ac_var=no"
12491 rm -f conftest.err conftest.
$ac_objext \
12492 conftest
$ac_exeext conftest.
$ac_ext
12494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12495 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12496 if test `eval echo '${'$as_ac_var'}'` = yes; then
12497 cat >>confdefs.h
<<_ACEOF
12498 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12503 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
12504 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
12505 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
12506 echo $ECHO_N "(cached) $ECHO_C" >&6
12508 ac_check_lib_save_LIBS
=$LIBS
12510 if test x
$gcc_no_link = xyes
; then
12511 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12512 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12513 { (exit 1); exit 1; }; }
12515 cat >conftest.
$ac_ext <<_ACEOF
12518 cat confdefs.h
>>conftest.
$ac_ext
12519 cat >>conftest.
$ac_ext <<_ACEOF
12520 /* end confdefs.h. */
12522 /* Override any gcc2 internal prototype to avoid an error. */
12526 /* We use char because int might match the return type of a gcc2
12527 builtin and then its argument prototype would still apply. */
12528 char sched_yield ();
12537 rm -f conftest.
$ac_objext conftest
$ac_exeext
12538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12539 (eval $ac_link) 2>conftest.er1
12541 grep -v '^ *+' conftest.er1
>conftest.err
12543 cat conftest.err
>&5
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); } &&
12546 { ac_try
='test -z "$ac_c_werror_flag"
12547 || test ! -s conftest.err'
12548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12549 (eval $ac_try) 2>&5
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); }; } &&
12553 { ac_try
='test -s conftest$ac_exeext'
12554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12555 (eval $ac_try) 2>&5
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); }; }; then
12559 ac_cv_lib_rt_sched_yield
=yes
12561 echo "$as_me: failed program was:" >&5
12562 sed 's/^/| /' conftest.
$ac_ext >&5
12564 ac_cv_lib_rt_sched_yield
=no
12566 rm -f conftest.err conftest.
$ac_objext \
12567 conftest
$ac_exeext conftest.
$ac_ext
12568 LIBS
=$ac_check_lib_save_LIBS
12570 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
12571 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
12572 if test $ac_cv_lib_rt_sched_yield = yes; then
12574 cat >>confdefs.h
<<\_ACEOF
12575 #define HAVE_SCHED_YIELD 1
12578 THREADLIBS
="$THREADLIBS -lrt"
12579 THREADSPEC
="$THREADSPEC -lrt"
12582 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
12583 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
12584 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
12585 echo $ECHO_N "(cached) $ECHO_C" >&6
12587 ac_check_lib_save_LIBS
=$LIBS
12588 LIBS
="-lposix4 $LIBS"
12589 if test x
$gcc_no_link = xyes
; then
12590 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12591 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12592 { (exit 1); exit 1; }; }
12594 cat >conftest.
$ac_ext <<_ACEOF
12597 cat confdefs.h
>>conftest.
$ac_ext
12598 cat >>conftest.
$ac_ext <<_ACEOF
12599 /* end confdefs.h. */
12601 /* Override any gcc2 internal prototype to avoid an error. */
12605 /* We use char because int might match the return type of a gcc2
12606 builtin and then its argument prototype would still apply. */
12607 char sched_yield ();
12616 rm -f conftest.
$ac_objext conftest
$ac_exeext
12617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12618 (eval $ac_link) 2>conftest.er1
12620 grep -v '^ *+' conftest.er1
>conftest.err
12622 cat conftest.err
>&5
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); } &&
12625 { ac_try
='test -z "$ac_c_werror_flag"
12626 || test ! -s conftest.err'
12627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12628 (eval $ac_try) 2>&5
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); }; } &&
12632 { ac_try
='test -s conftest$ac_exeext'
12633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12634 (eval $ac_try) 2>&5
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); }; }; then
12638 ac_cv_lib_posix4_sched_yield
=yes
12640 echo "$as_me: failed program was:" >&5
12641 sed 's/^/| /' conftest.
$ac_ext >&5
12643 ac_cv_lib_posix4_sched_yield
=no
12645 rm -f conftest.err conftest.
$ac_objext \
12646 conftest
$ac_exeext conftest.
$ac_ext
12647 LIBS
=$ac_check_lib_save_LIBS
12649 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
12650 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
12651 if test $ac_cv_lib_posix4_sched_yield = yes; then
12653 cat >>confdefs.h
<<\_ACEOF
12654 #define HAVE_SCHED_YIELD 1
12657 THREADLIBS
="$THREADLIBS -lposix4"
12658 THREADSPEC
="$THREADSPEC -lposix4"
12667 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
12668 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
12669 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
12670 echo $ECHO_N "(cached) $ECHO_C" >&6
12672 ac_check_lib_save_LIBS
=$LIBS
12674 if test x
$gcc_no_link = xyes
; then
12675 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12676 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12677 { (exit 1); exit 1; }; }
12679 cat >conftest.
$ac_ext <<_ACEOF
12682 cat confdefs.h
>>conftest.
$ac_ext
12683 cat >>conftest.
$ac_ext <<_ACEOF
12684 /* end confdefs.h. */
12686 /* Override any gcc2 internal prototype to avoid an error. */
12690 /* We use char because int might match the return type of a gcc2
12691 builtin and then its argument prototype would still apply. */
12692 char clock_gettime ();
12701 rm -f conftest.
$ac_objext conftest
$ac_exeext
12702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12703 (eval $ac_link) 2>conftest.er1
12705 grep -v '^ *+' conftest.er1
>conftest.err
12707 cat conftest.err
>&5
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); } &&
12710 { ac_try
='test -z "$ac_c_werror_flag"
12711 || test ! -s conftest.err'
12712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12713 (eval $ac_try) 2>&5
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); }; } &&
12717 { ac_try
='test -s conftest$ac_exeext'
12718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12719 (eval $ac_try) 2>&5
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); }; }; then
12723 ac_cv_lib_rt_clock_gettime
=yes
12725 echo "$as_me: failed program was:" >&5
12726 sed 's/^/| /' conftest.
$ac_ext >&5
12728 ac_cv_lib_rt_clock_gettime
=no
12730 rm -f conftest.err conftest.
$ac_objext \
12731 conftest
$ac_exeext conftest.
$ac_ext
12732 LIBS
=$ac_check_lib_save_LIBS
12734 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
12735 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
12736 if test $ac_cv_lib_rt_clock_gettime = yes; then
12739 cat >>confdefs.h
<<\_ACEOF
12740 #define HAVE_CLOCK_GETTIME 1
12743 case "$THREADSPEC" in
12746 THREADSPEC
="$THREADSPEC -lrt"
12747 THREADLIBS
="$THREADLIBS -lrt"
12755 # We can save a little space at runtime if the mutex has m_count
12756 # or __m_count. This is a nice hack for Linux.
12757 cat >conftest.
$ac_ext <<_ACEOF
12760 cat confdefs.h
>>conftest.
$ac_ext
12761 cat >>conftest.
$ac_ext <<_ACEOF
12762 /* end confdefs.h. */
12763 #include <pthread.h>
12768 extern pthread_mutex_t *mutex; int q = mutex->m_count;
12774 rm -f conftest.
$ac_objext
12775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12776 (eval $ac_compile) 2>conftest.er1
12778 grep -v '^ *+' conftest.er1
>conftest.err
12780 cat conftest.err
>&5
12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); } &&
12783 { ac_try
='test -z "$ac_c_werror_flag"
12784 || test ! -s conftest.err'
12785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12786 (eval $ac_try) 2>&5
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); }; } &&
12790 { ac_try
='test -s conftest.$ac_objext'
12791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12792 (eval $ac_try) 2>&5
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); }; }; then
12797 cat >>confdefs.h
<<\_ACEOF
12798 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
12802 echo "$as_me: failed program was:" >&5
12803 sed 's/^/| /' conftest.
$ac_ext >&5
12806 cat >conftest.
$ac_ext <<_ACEOF
12809 cat confdefs.h
>>conftest.
$ac_ext
12810 cat >>conftest.
$ac_ext <<_ACEOF
12811 /* end confdefs.h. */
12812 #include <pthread.h>
12817 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
12823 rm -f conftest.
$ac_objext
12824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12825 (eval $ac_compile) 2>conftest.er1
12827 grep -v '^ *+' conftest.er1
>conftest.err
12829 cat conftest.err
>&5
12830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831 (exit $ac_status); } &&
12832 { ac_try
='test -z "$ac_c_werror_flag"
12833 || test ! -s conftest.err'
12834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12835 (eval $ac_try) 2>&5
12837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838 (exit $ac_status); }; } &&
12839 { ac_try
='test -s conftest.$ac_objext'
12840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12841 (eval $ac_try) 2>&5
12843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); }; }; then
12846 cat >>confdefs.h
<<\_ACEOF
12847 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
12851 echo "$as_me: failed program was:" >&5
12852 sed 's/^/| /' conftest.
$ac_ext >&5
12855 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12857 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12860 # We require a way to get the time.
12865 for ac_func
in gettimeofday
time ftime
12867 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12868 echo "$as_me:$LINENO: checking for $ac_func" >&5
12869 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12870 if eval "test \"\${$as_ac_var+set}\" = set"; then
12871 echo $ECHO_N "(cached) $ECHO_C" >&6
12873 if test x
$gcc_no_link = xyes
; then
12874 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12875 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12876 { (exit 1); exit 1; }; }
12878 cat >conftest.
$ac_ext <<_ACEOF
12881 cat confdefs.h
>>conftest.
$ac_ext
12882 cat >>conftest.
$ac_ext <<_ACEOF
12883 /* end confdefs.h. */
12884 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12886 #define $ac_func innocuous_$ac_func
12888 /* System header to define __stub macros and hopefully few prototypes,
12889 which can conflict with char $ac_func (); below.
12890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12891 <limits.h> exists even on freestanding compilers. */
12894 # include <limits.h>
12896 # include <assert.h>
12901 /* Override any gcc2 internal prototype to avoid an error. */
12906 /* We use char because int might match the return type of a gcc2
12907 builtin and then its argument prototype would still apply. */
12909 /* The GNU C library defines this for functions which it implements
12910 to always fail with ENOSYS. Some functions are actually named
12911 something starting with __ and the normal name is an alias. */
12912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12915 char (*f) () = $ac_func;
12924 return f != $ac_func;
12929 rm -f conftest.
$ac_objext conftest
$ac_exeext
12930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12931 (eval $ac_link) 2>conftest.er1
12933 grep -v '^ *+' conftest.er1
>conftest.err
12935 cat conftest.err
>&5
12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937 (exit $ac_status); } &&
12938 { ac_try
='test -z "$ac_c_werror_flag"
12939 || test ! -s conftest.err'
12940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12941 (eval $ac_try) 2>&5
12943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944 (exit $ac_status); }; } &&
12945 { ac_try
='test -s conftest$ac_exeext'
12946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12947 (eval $ac_try) 2>&5
12949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950 (exit $ac_status); }; }; then
12951 eval "$as_ac_var=yes"
12953 echo "$as_me: failed program was:" >&5
12954 sed 's/^/| /' conftest.
$ac_ext >&5
12956 eval "$as_ac_var=no"
12958 rm -f conftest.err conftest.
$ac_objext \
12959 conftest
$ac_exeext conftest.
$ac_ext
12961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12962 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12963 if test `eval echo '${'$as_ac_var'}'` = yes; then
12964 cat >>confdefs.h
<<_ACEOF
12965 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12971 if test "$time_found" = no
; then
12972 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
12973 echo "$as_me: error: no function found to get the time" >&2;}
12974 { (exit 1); exit 1; }; }
12978 for ac_func
in memmove
12980 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12981 echo "$as_me:$LINENO: checking for $ac_func" >&5
12982 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12983 if eval "test \"\${$as_ac_var+set}\" = set"; then
12984 echo $ECHO_N "(cached) $ECHO_C" >&6
12986 if test x
$gcc_no_link = xyes
; then
12987 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12988 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12989 { (exit 1); exit 1; }; }
12991 cat >conftest.
$ac_ext <<_ACEOF
12994 cat confdefs.h
>>conftest.
$ac_ext
12995 cat >>conftest.
$ac_ext <<_ACEOF
12996 /* end confdefs.h. */
12997 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12999 #define $ac_func innocuous_$ac_func
13001 /* System header to define __stub macros and hopefully few prototypes,
13002 which can conflict with char $ac_func (); below.
13003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13004 <limits.h> exists even on freestanding compilers. */
13007 # include <limits.h>
13009 # include <assert.h>
13014 /* Override any gcc2 internal prototype to avoid an error. */
13019 /* We use char because int might match the return type of a gcc2
13020 builtin and then its argument prototype would still apply. */
13022 /* The GNU C library defines this for functions which it implements
13023 to always fail with ENOSYS. Some functions are actually named
13024 something starting with __ and the normal name is an alias. */
13025 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13028 char (*f) () = $ac_func;
13037 return f != $ac_func;
13042 rm -f conftest.
$ac_objext conftest
$ac_exeext
13043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13044 (eval $ac_link) 2>conftest.er1
13046 grep -v '^ *+' conftest.er1
>conftest.err
13048 cat conftest.err
>&5
13049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050 (exit $ac_status); } &&
13051 { ac_try
='test -z "$ac_c_werror_flag"
13052 || test ! -s conftest.err'
13053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13054 (eval $ac_try) 2>&5
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); }; } &&
13058 { ac_try
='test -s conftest$ac_exeext'
13059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13060 (eval $ac_try) 2>&5
13062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); }; }; then
13064 eval "$as_ac_var=yes"
13066 echo "$as_me: failed program was:" >&5
13067 sed 's/^/| /' conftest.
$ac_ext >&5
13069 eval "$as_ac_var=no"
13071 rm -f conftest.err conftest.
$ac_objext \
13072 conftest
$ac_exeext conftest.
$ac_ext
13074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13075 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13076 if test `eval echo '${'$as_ac_var'}'` = yes; then
13077 cat >>confdefs.h
<<_ACEOF
13078 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13085 # We require memcpy.
13088 for ac_func
in memcpy
13090 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13091 echo "$as_me:$LINENO: checking for $ac_func" >&5
13092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13093 if eval "test \"\${$as_ac_var+set}\" = set"; then
13094 echo $ECHO_N "(cached) $ECHO_C" >&6
13096 if test x
$gcc_no_link = xyes
; then
13097 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13098 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13099 { (exit 1); exit 1; }; }
13101 cat >conftest.
$ac_ext <<_ACEOF
13104 cat confdefs.h
>>conftest.
$ac_ext
13105 cat >>conftest.
$ac_ext <<_ACEOF
13106 /* end confdefs.h. */
13107 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13109 #define $ac_func innocuous_$ac_func
13111 /* System header to define __stub macros and hopefully few prototypes,
13112 which can conflict with char $ac_func (); below.
13113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13114 <limits.h> exists even on freestanding compilers. */
13117 # include <limits.h>
13119 # include <assert.h>
13124 /* Override any gcc2 internal prototype to avoid an error. */
13129 /* We use char because int might match the return type of a gcc2
13130 builtin and then its argument prototype would still apply. */
13132 /* The GNU C library defines this for functions which it implements
13133 to always fail with ENOSYS. Some functions are actually named
13134 something starting with __ and the normal name is an alias. */
13135 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13138 char (*f) () = $ac_func;
13147 return f != $ac_func;
13152 rm -f conftest.
$ac_objext conftest
$ac_exeext
13153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13154 (eval $ac_link) 2>conftest.er1
13156 grep -v '^ *+' conftest.er1
>conftest.err
13158 cat conftest.err
>&5
13159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160 (exit $ac_status); } &&
13161 { ac_try
='test -z "$ac_c_werror_flag"
13162 || test ! -s conftest.err'
13163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13164 (eval $ac_try) 2>&5
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); }; } &&
13168 { ac_try
='test -s conftest$ac_exeext'
13169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13170 (eval $ac_try) 2>&5
13172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173 (exit $ac_status); }; }; then
13174 eval "$as_ac_var=yes"
13176 echo "$as_me: failed program was:" >&5
13177 sed 's/^/| /' conftest.
$ac_ext >&5
13179 eval "$as_ac_var=no"
13181 rm -f conftest.err conftest.
$ac_objext \
13182 conftest
$ac_exeext conftest.
$ac_ext
13184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13185 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13186 if test `eval echo '${'$as_ac_var'}'` = yes; then
13187 cat >>confdefs.h
<<_ACEOF
13188 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13194 if test "$memcpy_found" = no
; then
13195 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
13196 echo "$as_me: error: memcpy is required" >&2;}
13197 { (exit 1); exit 1; }; }
13199 # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
13200 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13201 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13202 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13203 echo $ECHO_N "(cached) $ECHO_C" >&6
13205 ac_check_lib_save_LIBS
=$LIBS
13207 if test x
$gcc_no_link = xyes
; then
13208 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13209 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13210 { (exit 1); exit 1; }; }
13212 cat >conftest.
$ac_ext <<_ACEOF
13215 cat confdefs.h
>>conftest.
$ac_ext
13216 cat >>conftest.
$ac_ext <<_ACEOF
13217 /* end confdefs.h. */
13219 /* Override any gcc2 internal prototype to avoid an error. */
13223 /* We use char because int might match the return type of a gcc2
13224 builtin and then its argument prototype would still apply. */
13234 rm -f conftest.
$ac_objext conftest
$ac_exeext
13235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13236 (eval $ac_link) 2>conftest.er1
13238 grep -v '^ *+' conftest.er1
>conftest.err
13240 cat conftest.err
>&5
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); } &&
13243 { ac_try
='test -z "$ac_c_werror_flag"
13244 || test ! -s conftest.err'
13245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13246 (eval $ac_try) 2>&5
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); }; } &&
13250 { ac_try
='test -s conftest$ac_exeext'
13251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13252 (eval $ac_try) 2>&5
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); }; }; then
13256 ac_cv_lib_dl_dlopen
=yes
13258 echo "$as_me: failed program was:" >&5
13259 sed 's/^/| /' conftest.
$ac_ext >&5
13261 ac_cv_lib_dl_dlopen
=no
13263 rm -f conftest.err conftest.
$ac_objext \
13264 conftest
$ac_exeext conftest.
$ac_ext
13265 LIBS
=$ac_check_lib_save_LIBS
13267 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13268 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13269 if test $ac_cv_lib_dl_dlopen = yes; then
13272 cat >>confdefs.h
<<\_ACEOF
13273 #define HAVE_DLOPEN 1
13278 echo "$as_me:$LINENO: checking for dlopen in -ldld" >&5
13279 echo $ECHO_N "checking for dlopen in -ldld... $ECHO_C" >&6
13280 if test "${ac_cv_lib_dld_dlopen+set}" = set; then
13281 echo $ECHO_N "(cached) $ECHO_C" >&6
13283 ac_check_lib_save_LIBS
=$LIBS
13285 if test x
$gcc_no_link = xyes
; then
13286 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13287 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13288 { (exit 1); exit 1; }; }
13290 cat >conftest.
$ac_ext <<_ACEOF
13293 cat confdefs.h
>>conftest.
$ac_ext
13294 cat >>conftest.
$ac_ext <<_ACEOF
13295 /* end confdefs.h. */
13297 /* Override any gcc2 internal prototype to avoid an error. */
13301 /* We use char because int might match the return type of a gcc2
13302 builtin and then its argument prototype would still apply. */
13312 rm -f conftest.
$ac_objext conftest
$ac_exeext
13313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13314 (eval $ac_link) 2>conftest.er1
13316 grep -v '^ *+' conftest.er1
>conftest.err
13318 cat conftest.err
>&5
13319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320 (exit $ac_status); } &&
13321 { ac_try
='test -z "$ac_c_werror_flag"
13322 || test ! -s conftest.err'
13323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13324 (eval $ac_try) 2>&5
13326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327 (exit $ac_status); }; } &&
13328 { ac_try
='test -s conftest$ac_exeext'
13329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13330 (eval $ac_try) 2>&5
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); }; }; then
13334 ac_cv_lib_dld_dlopen
=yes
13336 echo "$as_me: failed program was:" >&5
13337 sed 's/^/| /' conftest.
$ac_ext >&5
13339 ac_cv_lib_dld_dlopen
=no
13341 rm -f conftest.err conftest.
$ac_objext \
13342 conftest
$ac_exeext conftest.
$ac_ext
13343 LIBS
=$ac_check_lib_save_LIBS
13345 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dlopen" >&5
13346 echo "${ECHO_T}$ac_cv_lib_dld_dlopen" >&6
13347 if test $ac_cv_lib_dld_dlopen = yes; then
13350 cat >>confdefs.h
<<\_ACEOF
13351 #define HAVE_DLOPEN 1
13359 # Some library-finding code we stole from Tcl.
13360 #--------------------------------------------------------------------
13361 # Check for the existence of the -lsocket and -lnsl libraries.
13362 # The order here is important, so that they end up in the right
13363 # order in the command line generated by make. Here are some
13364 # special considerations:
13365 # 1. Use "connect" and "accept" to check for -lsocket, and
13366 # "gethostbyname" to check for -lnsl.
13367 # 2. Use each function name only once: can't redo a check because
13368 # autoconf caches the results of the last check and won't redo it.
13369 # 3. Use -lnsl and -lsocket only if they supply procedures that
13370 # aren't already present in the normal libraries. This is because
13371 # IRIX 5.2 has libraries, but they aren't needed and they're
13372 # bogus: they goof up name resolution if used.
13373 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
13374 # To get around this problem, check for both libraries together
13375 # if -lsocket doesn't work by itself.
13376 #--------------------------------------------------------------------
13378 echo "$as_me:$LINENO: checking for socket libraries" >&5
13379 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
13380 if test "${gcj_cv_lib_sockets+set}" = set; then
13381 echo $ECHO_N "(cached) $ECHO_C" >&6
13383 gcj_cv_lib_sockets
=
13385 unset ac_cv_func_connect
13386 echo "$as_me:$LINENO: checking for connect" >&5
13387 echo $ECHO_N "checking for connect... $ECHO_C" >&6
13388 if test "${ac_cv_func_connect+set}" = set; then
13389 echo $ECHO_N "(cached) $ECHO_C" >&6
13391 if test x
$gcc_no_link = xyes
; then
13392 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13393 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13394 { (exit 1); exit 1; }; }
13396 cat >conftest.
$ac_ext <<_ACEOF
13399 cat confdefs.h
>>conftest.
$ac_ext
13400 cat >>conftest.
$ac_ext <<_ACEOF
13401 /* end confdefs.h. */
13402 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
13403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13404 #define connect innocuous_connect
13406 /* System header to define __stub macros and hopefully few prototypes,
13407 which can conflict with char connect (); below.
13408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13409 <limits.h> exists even on freestanding compilers. */
13412 # include <limits.h>
13414 # include <assert.h>
13419 /* Override any gcc2 internal prototype to avoid an error. */
13424 /* We use char because int might match the return type of a gcc2
13425 builtin and then its argument prototype would still apply. */
13427 /* The GNU C library defines this for functions which it implements
13428 to always fail with ENOSYS. Some functions are actually named
13429 something starting with __ and the normal name is an alias. */
13430 #if defined (__stub_connect) || defined (__stub___connect)
13433 char (*f) () = connect;
13442 return f != connect;
13447 rm -f conftest.
$ac_objext conftest
$ac_exeext
13448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13449 (eval $ac_link) 2>conftest.er1
13451 grep -v '^ *+' conftest.er1
>conftest.err
13453 cat conftest.err
>&5
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); } &&
13456 { ac_try
='test -z "$ac_c_werror_flag"
13457 || test ! -s conftest.err'
13458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13459 (eval $ac_try) 2>&5
13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); }; } &&
13463 { ac_try
='test -s conftest$ac_exeext'
13464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13465 (eval $ac_try) 2>&5
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); }; }; then
13469 ac_cv_func_connect
=yes
13471 echo "$as_me: failed program was:" >&5
13472 sed 's/^/| /' conftest.
$ac_ext >&5
13474 ac_cv_func_connect
=no
13476 rm -f conftest.err conftest.
$ac_objext \
13477 conftest
$ac_exeext conftest.
$ac_ext
13479 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
13480 echo "${ECHO_T}$ac_cv_func_connect" >&6
13481 if test $ac_cv_func_connect = yes; then
13487 if test "$gcj_checkSocket" = 1; then
13488 unset ac_cv_func_connect
13489 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
13490 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
13491 if test "${ac_cv_lib_socket_main+set}" = set; then
13492 echo $ECHO_N "(cached) $ECHO_C" >&6
13494 ac_check_lib_save_LIBS
=$LIBS
13495 LIBS
="-lsocket $LIBS"
13496 if test x
$gcc_no_link = xyes
; then
13497 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13498 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13499 { (exit 1); exit 1; }; }
13501 cat >conftest.
$ac_ext <<_ACEOF
13504 cat confdefs.h
>>conftest.
$ac_ext
13505 cat >>conftest.
$ac_ext <<_ACEOF
13506 /* end confdefs.h. */
13517 rm -f conftest.
$ac_objext conftest
$ac_exeext
13518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13519 (eval $ac_link) 2>conftest.er1
13521 grep -v '^ *+' conftest.er1
>conftest.err
13523 cat conftest.err
>&5
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); } &&
13526 { ac_try
='test -z "$ac_c_werror_flag"
13527 || test ! -s conftest.err'
13528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13529 (eval $ac_try) 2>&5
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); }; } &&
13533 { ac_try
='test -s conftest$ac_exeext'
13534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13535 (eval $ac_try) 2>&5
13537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538 (exit $ac_status); }; }; then
13539 ac_cv_lib_socket_main
=yes
13541 echo "$as_me: failed program was:" >&5
13542 sed 's/^/| /' conftest.
$ac_ext >&5
13544 ac_cv_lib_socket_main
=no
13546 rm -f conftest.err conftest.
$ac_objext \
13547 conftest
$ac_exeext conftest.
$ac_ext
13548 LIBS
=$ac_check_lib_save_LIBS
13550 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
13551 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
13552 if test $ac_cv_lib_socket_main = yes; then
13553 gcj_cv_lib_sockets
="-lsocket"
13559 if test "$gcj_checkBoth" = 1; then
13561 LIBS
="$LIBS -lsocket -lnsl"
13562 unset ac_cv_func_accept
13563 echo "$as_me:$LINENO: checking for accept" >&5
13564 echo $ECHO_N "checking for accept... $ECHO_C" >&6
13565 if test "${ac_cv_func_accept+set}" = set; then
13566 echo $ECHO_N "(cached) $ECHO_C" >&6
13568 if test x
$gcc_no_link = xyes
; then
13569 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13570 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13571 { (exit 1); exit 1; }; }
13573 cat >conftest.
$ac_ext <<_ACEOF
13576 cat confdefs.h
>>conftest.
$ac_ext
13577 cat >>conftest.
$ac_ext <<_ACEOF
13578 /* end confdefs.h. */
13579 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
13580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13581 #define accept innocuous_accept
13583 /* System header to define __stub macros and hopefully few prototypes,
13584 which can conflict with char accept (); below.
13585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13586 <limits.h> exists even on freestanding compilers. */
13589 # include <limits.h>
13591 # include <assert.h>
13596 /* Override any gcc2 internal prototype to avoid an error. */
13601 /* We use char because int might match the return type of a gcc2
13602 builtin and then its argument prototype would still apply. */
13604 /* The GNU C library defines this for functions which it implements
13605 to always fail with ENOSYS. Some functions are actually named
13606 something starting with __ and the normal name is an alias. */
13607 #if defined (__stub_accept) || defined (__stub___accept)
13610 char (*f) () = accept;
13619 return f != accept;
13624 rm -f conftest.
$ac_objext conftest
$ac_exeext
13625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13626 (eval $ac_link) 2>conftest.er1
13628 grep -v '^ *+' conftest.er1
>conftest.err
13630 cat conftest.err
>&5
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); } &&
13633 { ac_try
='test -z "$ac_c_werror_flag"
13634 || test ! -s conftest.err'
13635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13636 (eval $ac_try) 2>&5
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); }; } &&
13640 { ac_try
='test -s conftest$ac_exeext'
13641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13642 (eval $ac_try) 2>&5
13644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645 (exit $ac_status); }; }; then
13646 ac_cv_func_accept
=yes
13648 echo "$as_me: failed program was:" >&5
13649 sed 's/^/| /' conftest.
$ac_ext >&5
13651 ac_cv_func_accept
=no
13653 rm -f conftest.err conftest.
$ac_objext \
13654 conftest
$ac_exeext conftest.
$ac_ext
13656 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
13657 echo "${ECHO_T}$ac_cv_func_accept" >&6
13658 if test $ac_cv_func_accept = yes; then
13660 gcj_cv_lib_sockets
="-lsocket -lnsl"
13663 unset ac_cv_func_accept
13666 unset ac_cv_func_gethostbyname
13668 LIBS
="$LIBS $gcj_cv_lib_sockets"
13669 echo "$as_me:$LINENO: checking for gethostbyname" >&5
13670 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
13671 if test "${ac_cv_func_gethostbyname+set}" = set; then
13672 echo $ECHO_N "(cached) $ECHO_C" >&6
13674 if test x
$gcc_no_link = xyes
; then
13675 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13676 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13677 { (exit 1); exit 1; }; }
13679 cat >conftest.
$ac_ext <<_ACEOF
13682 cat confdefs.h
>>conftest.
$ac_ext
13683 cat >>conftest.
$ac_ext <<_ACEOF
13684 /* end confdefs.h. */
13685 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
13686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13687 #define gethostbyname innocuous_gethostbyname
13689 /* System header to define __stub macros and hopefully few prototypes,
13690 which can conflict with char gethostbyname (); below.
13691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13692 <limits.h> exists even on freestanding compilers. */
13695 # include <limits.h>
13697 # include <assert.h>
13700 #undef gethostbyname
13702 /* Override any gcc2 internal prototype to avoid an error. */
13707 /* We use char because int might match the return type of a gcc2
13708 builtin and then its argument prototype would still apply. */
13709 char gethostbyname ();
13710 /* The GNU C library defines this for functions which it implements
13711 to always fail with ENOSYS. Some functions are actually named
13712 something starting with __ and the normal name is an alias. */
13713 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13716 char (*f) () = gethostbyname;
13725 return f != gethostbyname;
13730 rm -f conftest.
$ac_objext conftest
$ac_exeext
13731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13732 (eval $ac_link) 2>conftest.er1
13734 grep -v '^ *+' conftest.er1
>conftest.err
13736 cat conftest.err
>&5
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); } &&
13739 { ac_try
='test -z "$ac_c_werror_flag"
13740 || test ! -s conftest.err'
13741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13742 (eval $ac_try) 2>&5
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); }; } &&
13746 { ac_try
='test -s conftest$ac_exeext'
13747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13748 (eval $ac_try) 2>&5
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); }; }; then
13752 ac_cv_func_gethostbyname
=yes
13754 echo "$as_me: failed program was:" >&5
13755 sed 's/^/| /' conftest.
$ac_ext >&5
13757 ac_cv_func_gethostbyname
=no
13759 rm -f conftest.err conftest.
$ac_objext \
13760 conftest
$ac_exeext conftest.
$ac_ext
13762 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
13763 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
13764 if test $ac_cv_func_gethostbyname = yes; then
13767 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
13768 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
13769 if test "${ac_cv_lib_nsl_main+set}" = set; then
13770 echo $ECHO_N "(cached) $ECHO_C" >&6
13772 ac_check_lib_save_LIBS
=$LIBS
13774 if test x
$gcc_no_link = xyes
; then
13775 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13776 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13777 { (exit 1); exit 1; }; }
13779 cat >conftest.
$ac_ext <<_ACEOF
13782 cat confdefs.h
>>conftest.
$ac_ext
13783 cat >>conftest.
$ac_ext <<_ACEOF
13784 /* end confdefs.h. */
13795 rm -f conftest.
$ac_objext conftest
$ac_exeext
13796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13797 (eval $ac_link) 2>conftest.er1
13799 grep -v '^ *+' conftest.er1
>conftest.err
13801 cat conftest.err
>&5
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); } &&
13804 { ac_try
='test -z "$ac_c_werror_flag"
13805 || test ! -s conftest.err'
13806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13807 (eval $ac_try) 2>&5
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); }; } &&
13811 { ac_try
='test -s conftest$ac_exeext'
13812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13813 (eval $ac_try) 2>&5
13815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); }; }; then
13817 ac_cv_lib_nsl_main
=yes
13819 echo "$as_me: failed program was:" >&5
13820 sed 's/^/| /' conftest.
$ac_ext >&5
13822 ac_cv_lib_nsl_main
=no
13824 rm -f conftest.err conftest.
$ac_objext \
13825 conftest
$ac_exeext conftest.
$ac_ext
13826 LIBS
=$ac_check_lib_save_LIBS
13828 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
13829 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
13830 if test $ac_cv_lib_nsl_main = yes; then
13831 gcj_cv_lib_sockets
="$gcj_cv_lib_sockets -lnsl"
13836 unset ac_cv_func_gethostbyname
13840 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
13841 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
13842 SYSTEMSPEC
="$SYSTEMSPEC $gcj_cv_lib_sockets"
13844 if test "$with_system_zlib" = yes; then
13845 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
13846 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
13847 if test "${ac_cv_lib_z_deflate+set}" = set; then
13848 echo $ECHO_N "(cached) $ECHO_C" >&6
13850 ac_check_lib_save_LIBS
=$LIBS
13852 if test x
$gcc_no_link = xyes
; then
13853 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13854 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13855 { (exit 1); exit 1; }; }
13857 cat >conftest.
$ac_ext <<_ACEOF
13860 cat confdefs.h
>>conftest.
$ac_ext
13861 cat >>conftest.
$ac_ext <<_ACEOF
13862 /* end confdefs.h. */
13864 /* Override any gcc2 internal prototype to avoid an error. */
13868 /* We use char because int might match the return type of a gcc2
13869 builtin and then its argument prototype would still apply. */
13879 rm -f conftest.
$ac_objext conftest
$ac_exeext
13880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13881 (eval $ac_link) 2>conftest.er1
13883 grep -v '^ *+' conftest.er1
>conftest.err
13885 cat conftest.err
>&5
13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); } &&
13888 { ac_try
='test -z "$ac_c_werror_flag"
13889 || test ! -s conftest.err'
13890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13891 (eval $ac_try) 2>&5
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); }; } &&
13895 { ac_try
='test -s conftest$ac_exeext'
13896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13897 (eval $ac_try) 2>&5
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); }; }; then
13901 ac_cv_lib_z_deflate
=yes
13903 echo "$as_me: failed program was:" >&5
13904 sed 's/^/| /' conftest.
$ac_ext >&5
13906 ac_cv_lib_z_deflate
=no
13908 rm -f conftest.err conftest.
$ac_objext \
13909 conftest
$ac_exeext conftest.
$ac_ext
13910 LIBS
=$ac_check_lib_save_LIBS
13912 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
13913 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
13914 if test $ac_cv_lib_z_deflate = yes; then
13922 # Test for Gtk stuff, if asked for.
13923 if test "$use_gtk_awt" = yes; then
13927 if test -z "$PKG_CONFIG"; then
13928 # Extract the first word of "pkg-config", so it can be a program name with args.
13929 set dummy pkg-config
; ac_word
=$2
13930 echo "$as_me:$LINENO: checking for $ac_word" >&5
13931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13932 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13933 echo $ECHO_N "(cached) $ECHO_C" >&6
13935 case $PKG_CONFIG in
13937 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13940 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13941 for as_dir
in $PATH
13944 test -z "$as_dir" && as_dir
=.
13945 for ac_exec_ext
in '' $ac_executable_extensions; do
13946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13947 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13954 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13958 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13960 if test -n "$PKG_CONFIG"; then
13961 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13962 echo "${ECHO_T}$PKG_CONFIG" >&6
13964 echo "$as_me:$LINENO: result: no" >&5
13965 echo "${ECHO_T}no" >&6
13970 if test "$PKG_CONFIG" = "no" ; then
13971 echo "*** The pkg-config script could not be found. Make sure it is"
13972 echo "*** in your path, or set the PKG_CONFIG environment variable"
13973 echo "*** to the full path to pkg-config."
13974 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13976 PKG_CONFIG_MIN_VERSION
=0.9.0
13977 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13978 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
13979 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
13981 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
13982 echo "$as_me:$LINENO: result: yes" >&5
13983 echo "${ECHO_T}yes" >&6
13986 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
13987 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
13988 GTK_CFLAGS
=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
13989 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
13990 echo "${ECHO_T}$GTK_CFLAGS" >&6
13992 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
13993 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
13994 GTK_LIBS
=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
13995 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
13996 echo "${ECHO_T}$GTK_LIBS" >&6
14000 ## If we have a custom action on failure, don't print errors, but
14001 ## do set a variable so people can do so.
14002 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
14003 echo $GTK_PKG_ERRORS
14009 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14010 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14014 if test $succeeded = yes; then
14017 { { 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
14018 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;}
14019 { (exit 1); exit 1; }; }
14028 if test -z "$PKG_CONFIG"; then
14029 # Extract the first word of "pkg-config", so it can be a program name with args.
14030 set dummy pkg-config
; ac_word
=$2
14031 echo "$as_me:$LINENO: checking for $ac_word" >&5
14032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14033 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14034 echo $ECHO_N "(cached) $ECHO_C" >&6
14036 case $PKG_CONFIG in
14038 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
14041 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14042 for as_dir
in $PATH
14045 test -z "$as_dir" && as_dir
=.
14046 for ac_exec_ext
in '' $ac_executable_extensions; do
14047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14048 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
14049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14055 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
14059 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
14061 if test -n "$PKG_CONFIG"; then
14062 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14063 echo "${ECHO_T}$PKG_CONFIG" >&6
14065 echo "$as_me:$LINENO: result: no" >&5
14066 echo "${ECHO_T}no" >&6
14071 if test "$PKG_CONFIG" = "no" ; then
14072 echo "*** The pkg-config script could not be found. Make sure it is"
14073 echo "*** in your path, or set the PKG_CONFIG environment variable"
14074 echo "*** to the full path to pkg-config."
14075 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14077 PKG_CONFIG_MIN_VERSION
=0.9.0
14078 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14079 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
14080 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
14082 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
14083 echo "$as_me:$LINENO: result: yes" >&5
14084 echo "${ECHO_T}yes" >&6
14087 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
14088 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
14089 GLIB_CFLAGS
=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
14090 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
14091 echo "${ECHO_T}$GLIB_CFLAGS" >&6
14093 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
14094 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
14095 GLIB_LIBS
=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
14096 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
14097 echo "${ECHO_T}$GLIB_LIBS" >&6
14101 ## If we have a custom action on failure, don't print errors, but
14102 ## do set a variable so people can do so.
14103 GLIB_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
14104 echo $GLIB_PKG_ERRORS
14110 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14111 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14115 if test $succeeded = yes; then
14118 { { 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
14119 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;}
14120 { (exit 1); exit 1; }; }
14129 if test -z "$PKG_CONFIG"; then
14130 # Extract the first word of "pkg-config", so it can be a program name with args.
14131 set dummy pkg-config
; ac_word
=$2
14132 echo "$as_me:$LINENO: checking for $ac_word" >&5
14133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14134 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14135 echo $ECHO_N "(cached) $ECHO_C" >&6
14137 case $PKG_CONFIG in
14139 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
14142 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14143 for as_dir
in $PATH
14146 test -z "$as_dir" && as_dir
=.
14147 for ac_exec_ext
in '' $ac_executable_extensions; do
14148 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14149 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
14150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14156 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
14160 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
14162 if test -n "$PKG_CONFIG"; then
14163 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14164 echo "${ECHO_T}$PKG_CONFIG" >&6
14166 echo "$as_me:$LINENO: result: no" >&5
14167 echo "${ECHO_T}no" >&6
14172 if test "$PKG_CONFIG" = "no" ; then
14173 echo "*** The pkg-config script could not be found. Make sure it is"
14174 echo "*** in your path, or set the PKG_CONFIG environment variable"
14175 echo "*** to the full path to pkg-config."
14176 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14178 PKG_CONFIG_MIN_VERSION
=0.9.0
14179 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14180 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
14181 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
14183 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
14184 echo "$as_me:$LINENO: result: yes" >&5
14185 echo "${ECHO_T}yes" >&6
14188 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
14189 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
14190 LIBART_CFLAGS
=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
14191 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
14192 echo "${ECHO_T}$LIBART_CFLAGS" >&6
14194 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
14195 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
14196 LIBART_LIBS
=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
14197 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
14198 echo "${ECHO_T}$LIBART_LIBS" >&6
14202 ## If we have a custom action on failure, don't print errors, but
14203 ## do set a variable so people can do so.
14204 LIBART_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
14205 echo $LIBART_PKG_ERRORS
14211 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14212 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14216 if test $succeeded = yes; then
14219 { { 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
14220 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;}
14221 { (exit 1); exit 1; }; }
14227 # We require the XTest Extension to support java.awt.Robot.
14228 echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
14229 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
14230 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
14231 echo $ECHO_N "(cached) $ECHO_C" >&6
14233 ac_check_lib_save_LIBS
=$LIBS
14234 LIBS
="-lXtst ${X_LIBS} $LIBS"
14235 if test x
$gcc_no_link = xyes
; then
14236 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14237 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14238 { (exit 1); exit 1; }; }
14240 cat >conftest.
$ac_ext <<_ACEOF
14243 cat confdefs.h
>>conftest.
$ac_ext
14244 cat >>conftest.
$ac_ext <<_ACEOF
14245 /* end confdefs.h. */
14247 /* Override any gcc2 internal prototype to avoid an error. */
14251 /* We use char because int might match the return type of a gcc2
14252 builtin and then its argument prototype would still apply. */
14253 char XTestQueryExtension ();
14257 XTestQueryExtension ();
14262 rm -f conftest.
$ac_objext conftest
$ac_exeext
14263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14264 (eval $ac_link) 2>conftest.er1
14266 grep -v '^ *+' conftest.er1
>conftest.err
14268 cat conftest.err
>&5
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); } &&
14271 { ac_try
='test -z "$ac_c_werror_flag"
14272 || test ! -s conftest.err'
14273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14274 (eval $ac_try) 2>&5
14276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); }; } &&
14278 { ac_try
='test -s conftest$ac_exeext'
14279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14280 (eval $ac_try) 2>&5
14282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283 (exit $ac_status); }; }; then
14284 ac_cv_lib_Xtst_XTestQueryExtension
=yes
14286 echo "$as_me: failed program was:" >&5
14287 sed 's/^/| /' conftest.
$ac_ext >&5
14289 ac_cv_lib_Xtst_XTestQueryExtension
=no
14291 rm -f conftest.err conftest.
$ac_objext \
14292 conftest
$ac_exeext conftest.
$ac_ext
14293 LIBS
=$ac_check_lib_save_LIBS
14295 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
14296 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
14297 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
14300 { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
14301 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
14302 { (exit 1); exit 1; }; }
14307 # On Solaris, and maybe other architectures, the Boehm collector
14309 if test "$GC" = boehm
; then
14310 echo "$as_me:$LINENO: checking for main in -ldl" >&5
14311 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
14312 if test "${ac_cv_lib_dl_main+set}" = set; then
14313 echo $ECHO_N "(cached) $ECHO_C" >&6
14315 ac_check_lib_save_LIBS
=$LIBS
14317 if test x
$gcc_no_link = xyes
; then
14318 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14319 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14320 { (exit 1); exit 1; }; }
14322 cat >conftest.
$ac_ext <<_ACEOF
14325 cat confdefs.h
>>conftest.
$ac_ext
14326 cat >>conftest.
$ac_ext <<_ACEOF
14327 /* end confdefs.h. */
14338 rm -f conftest.
$ac_objext conftest
$ac_exeext
14339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14340 (eval $ac_link) 2>conftest.er1
14342 grep -v '^ *+' conftest.er1
>conftest.err
14344 cat conftest.err
>&5
14345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346 (exit $ac_status); } &&
14347 { ac_try
='test -z "$ac_c_werror_flag"
14348 || test ! -s conftest.err'
14349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14350 (eval $ac_try) 2>&5
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); }; } &&
14354 { ac_try
='test -s conftest$ac_exeext'
14355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14356 (eval $ac_try) 2>&5
14358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 (exit $ac_status); }; }; then
14360 ac_cv_lib_dl_main
=yes
14362 echo "$as_me: failed program was:" >&5
14363 sed 's/^/| /' conftest.
$ac_ext >&5
14365 ac_cv_lib_dl_main
=no
14367 rm -f conftest.err conftest.
$ac_objext \
14368 conftest
$ac_exeext conftest.
$ac_ext
14369 LIBS
=$ac_check_lib_save_LIBS
14371 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
14372 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
14373 if test $ac_cv_lib_dl_main = yes; then
14374 SYSTEMSPEC
="$SYSTEMSPEC -ldl"
14380 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
14382 *-mingw32) CLASSPATH_SEPARATOR
=';' ;;
14383 *) CLASSPATH_SEPARATOR
=':' ;;
14387 # We must search the source tree for java.lang, since we still don't
14388 # have libgcj.jar nor java/lang/*.class
14389 GCJ_SAVE_CPPFLAGS
=$CPPFLAGS
14390 CPPFLAGS
="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
14392 # Since some classes depend on this one, we need its source available
14393 # before we can do any GCJ compilation test :-(
14394 if test ! -f gnu
/classpath
/Configuration.java
; then
14395 test -d gnu || mkdir gnu
14396 test -d gnu
/classpath || mkdir gnu
/classpath
14397 # Note that it is not crucial that all the values here be correct.
14398 sed -e "s,@prefix@,$prefix," \
14399 -e "s,@VERSION@,$VERSION," \
14400 -e "s,@LIBDEBUG@,false," \
14401 -e "s,@INIT_LOAD_LIBRARY@,false," \
14402 -e "s,@@,$LIBGCJDEBUG," \
14403 -e "s,@default_toolkit@,$TOOLKIT," \
14404 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
14405 -e "s,@GTK_CAIRO_ENABLED@,false," \
14406 < $srcdir/classpath
/gnu
/classpath
/Configuration.java.
in \
14407 > gnu
/classpath
/Configuration.java
14408 # We do not want to redirect the output of the grep below to /dev/null,
14409 # but we add /dev/null to the input list so that grep will print the
14410 # filename of Configuration.java in case it finds any matches.
14411 if grep '@.*@' gnu
/classpath
/Configuration.java
/dev
/null
; then
14412 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
14413 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
14414 { (exit 1); exit 1; }; }
14418 if test -n "$ac_tool_prefix"; then
14419 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
14420 set dummy
${ac_tool_prefix}gcj
; ac_word
=$2
14421 echo "$as_me:$LINENO: checking for $ac_word" >&5
14422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14423 if test "${ac_cv_prog_GCJ+set}" = set; then
14424 echo $ECHO_N "(cached) $ECHO_C" >&6
14426 if test -n "$GCJ"; then
14427 ac_cv_prog_GCJ
="$GCJ" # Let the user override the test.
14429 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14430 for as_dir
in $PATH
14433 test -z "$as_dir" && as_dir
=.
14434 for ac_exec_ext
in '' $ac_executable_extensions; do
14435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14436 ac_cv_prog_GCJ
="${ac_tool_prefix}gcj"
14437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14445 GCJ
=$ac_cv_prog_GCJ
14446 if test -n "$GCJ"; then
14447 echo "$as_me:$LINENO: result: $GCJ" >&5
14448 echo "${ECHO_T}$GCJ" >&6
14450 echo "$as_me:$LINENO: result: no" >&5
14451 echo "${ECHO_T}no" >&6
14455 if test -z "$ac_cv_prog_GCJ"; then
14457 # Extract the first word of "gcj", so it can be a program name with args.
14458 set dummy gcj
; ac_word
=$2
14459 echo "$as_me:$LINENO: checking for $ac_word" >&5
14460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14461 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
14462 echo $ECHO_N "(cached) $ECHO_C" >&6
14464 if test -n "$ac_ct_GCJ"; then
14465 ac_cv_prog_ac_ct_GCJ
="$ac_ct_GCJ" # Let the user override the test.
14467 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14468 for as_dir
in $PATH
14471 test -z "$as_dir" && as_dir
=.
14472 for ac_exec_ext
in '' $ac_executable_extensions; do
14473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14474 ac_cv_prog_ac_ct_GCJ
="gcj"
14475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14481 test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ
="no"
14484 ac_ct_GCJ
=$ac_cv_prog_ac_ct_GCJ
14485 if test -n "$ac_ct_GCJ"; then
14486 echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
14487 echo "${ECHO_T}$ac_ct_GCJ" >&6
14489 echo "$as_me:$LINENO: result: no" >&5
14490 echo "${ECHO_T}no" >&6
14495 GCJ
="$ac_cv_prog_GCJ"
14498 test "x${GCJFLAGS+set}" = xset || GCJFLAGS
="-g -O2"
14504 rm -f gnu
/classpath
/Configuration.java
14506 CPPFLAGS
=$GCJ_SAVE_CPPFLAGS
14508 echo "$as_me:$LINENO: checking for void *" >&5
14509 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14510 if test "${ac_cv_type_void_p+set}" = set; then
14511 echo $ECHO_N "(cached) $ECHO_C" >&6
14513 cat >conftest.
$ac_ext <<_ACEOF
14516 cat confdefs.h
>>conftest.
$ac_ext
14517 cat >>conftest.
$ac_ext <<_ACEOF
14518 /* end confdefs.h. */
14519 $ac_includes_default
14525 if (sizeof (void *))
14531 rm -f conftest.
$ac_objext
14532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14533 (eval $ac_compile) 2>conftest.er1
14535 grep -v '^ *+' conftest.er1
>conftest.err
14537 cat conftest.err
>&5
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); } &&
14540 { ac_try
='test -z "$ac_c_werror_flag"
14541 || test ! -s conftest.err'
14542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14543 (eval $ac_try) 2>&5
14545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546 (exit $ac_status); }; } &&
14547 { ac_try
='test -s conftest.$ac_objext'
14548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14549 (eval $ac_try) 2>&5
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); }; }; then
14553 ac_cv_type_void_p
=yes
14555 echo "$as_me: failed program was:" >&5
14556 sed 's/^/| /' conftest.
$ac_ext >&5
14558 ac_cv_type_void_p
=no
14560 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14562 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14563 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14565 echo "$as_me:$LINENO: checking size of void *" >&5
14566 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14567 if test "${ac_cv_sizeof_void_p+set}" = set; then
14568 echo $ECHO_N "(cached) $ECHO_C" >&6
14570 if test "$ac_cv_type_void_p" = yes; then
14571 # The cast to unsigned long works around a bug in the HP C Compiler
14572 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14573 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14574 # This bug is HP SR number 8606223364.
14575 if test "$cross_compiling" = yes; then
14576 # Depending upon the size, compute the lo and hi bounds.
14577 cat >conftest.
$ac_ext <<_ACEOF
14580 cat confdefs.h
>>conftest.
$ac_ext
14581 cat >>conftest.
$ac_ext <<_ACEOF
14582 /* end confdefs.h. */
14583 $ac_includes_default
14587 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14594 rm -f conftest.
$ac_objext
14595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14596 (eval $ac_compile) 2>conftest.er1
14598 grep -v '^ *+' conftest.er1
>conftest.err
14600 cat conftest.err
>&5
14601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602 (exit $ac_status); } &&
14603 { ac_try
='test -z "$ac_c_werror_flag"
14604 || test ! -s conftest.err'
14605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14606 (eval $ac_try) 2>&5
14608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 (exit $ac_status); }; } &&
14610 { ac_try
='test -s conftest.$ac_objext'
14611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14612 (eval $ac_try) 2>&5
14614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615 (exit $ac_status); }; }; then
14618 cat >conftest.
$ac_ext <<_ACEOF
14621 cat confdefs.h
>>conftest.
$ac_ext
14622 cat >>conftest.
$ac_ext <<_ACEOF
14623 /* end confdefs.h. */
14624 $ac_includes_default
14628 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14635 rm -f conftest.
$ac_objext
14636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14637 (eval $ac_compile) 2>conftest.er1
14639 grep -v '^ *+' conftest.er1
>conftest.err
14641 cat conftest.err
>&5
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); } &&
14644 { ac_try
='test -z "$ac_c_werror_flag"
14645 || test ! -s conftest.err'
14646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14647 (eval $ac_try) 2>&5
14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); }; } &&
14651 { ac_try
='test -s conftest.$ac_objext'
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); }; }; then
14657 ac_hi
=$ac_mid; break
14659 echo "$as_me: failed program was:" >&5
14660 sed 's/^/| /' conftest.
$ac_ext >&5
14662 ac_lo
=`expr $ac_mid + 1`
14663 if test $ac_lo -le $ac_mid; then
14667 ac_mid
=`expr 2 '*' $ac_mid + 1`
14669 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14672 echo "$as_me: failed program was:" >&5
14673 sed 's/^/| /' conftest.
$ac_ext >&5
14675 cat >conftest.
$ac_ext <<_ACEOF
14678 cat confdefs.h
>>conftest.
$ac_ext
14679 cat >>conftest.
$ac_ext <<_ACEOF
14680 /* end confdefs.h. */
14681 $ac_includes_default
14685 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14692 rm -f conftest.
$ac_objext
14693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14694 (eval $ac_compile) 2>conftest.er1
14696 grep -v '^ *+' conftest.er1
>conftest.err
14698 cat conftest.err
>&5
14699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700 (exit $ac_status); } &&
14701 { ac_try
='test -z "$ac_c_werror_flag"
14702 || test ! -s conftest.err'
14703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14704 (eval $ac_try) 2>&5
14706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14707 (exit $ac_status); }; } &&
14708 { ac_try
='test -s conftest.$ac_objext'
14709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14710 (eval $ac_try) 2>&5
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 (exit $ac_status); }; }; then
14716 cat >conftest.
$ac_ext <<_ACEOF
14719 cat confdefs.h
>>conftest.
$ac_ext
14720 cat >>conftest.
$ac_ext <<_ACEOF
14721 /* end confdefs.h. */
14722 $ac_includes_default
14726 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14733 rm -f conftest.
$ac_objext
14734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14735 (eval $ac_compile) 2>conftest.er1
14737 grep -v '^ *+' conftest.er1
>conftest.err
14739 cat conftest.err
>&5
14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); } &&
14742 { ac_try
='test -z "$ac_c_werror_flag"
14743 || test ! -s conftest.err'
14744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14745 (eval $ac_try) 2>&5
14747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748 (exit $ac_status); }; } &&
14749 { ac_try
='test -s conftest.$ac_objext'
14750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14751 (eval $ac_try) 2>&5
14753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754 (exit $ac_status); }; }; then
14755 ac_lo
=$ac_mid; break
14757 echo "$as_me: failed program was:" >&5
14758 sed 's/^/| /' conftest.
$ac_ext >&5
14760 ac_hi
=`expr '(' $ac_mid ')' - 1`
14761 if test $ac_mid -le $ac_hi; then
14765 ac_mid
=`expr 2 '*' $ac_mid`
14767 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14770 echo "$as_me: failed program was:" >&5
14771 sed 's/^/| /' conftest.
$ac_ext >&5
14775 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14777 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14778 # Binary search between lo and hi bounds.
14779 while test "x$ac_lo" != "x$ac_hi"; do
14780 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14781 cat >conftest.
$ac_ext <<_ACEOF
14784 cat confdefs.h
>>conftest.
$ac_ext
14785 cat >>conftest.
$ac_ext <<_ACEOF
14786 /* end confdefs.h. */
14787 $ac_includes_default
14791 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14798 rm -f conftest.
$ac_objext
14799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14800 (eval $ac_compile) 2>conftest.er1
14802 grep -v '^ *+' conftest.er1
>conftest.err
14804 cat conftest.err
>&5
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); } &&
14807 { ac_try
='test -z "$ac_c_werror_flag"
14808 || test ! -s conftest.err'
14809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14810 (eval $ac_try) 2>&5
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); }; } &&
14814 { ac_try
='test -s conftest.$ac_objext'
14815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14816 (eval $ac_try) 2>&5
14818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 (exit $ac_status); }; }; then
14822 echo "$as_me: failed program was:" >&5
14823 sed 's/^/| /' conftest.
$ac_ext >&5
14825 ac_lo
=`expr '(' $ac_mid ')' + 1`
14827 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14830 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
14831 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14832 See \`config.log' for more details." >&5
14833 echo "$as_me: error: cannot compute sizeof (void *), 77
14834 See \`config.log' for more details." >&2;}
14835 { (exit 1); exit 1; }; } ;;
14838 if test "$cross_compiling" = yes; then
14839 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14840 See \`config.log' for more details." >&5
14841 echo "$as_me: error: cannot run test program while cross compiling
14842 See \`config.log' for more details." >&2;}
14843 { (exit 1); exit 1; }; }
14845 cat >conftest.
$ac_ext <<_ACEOF
14848 cat confdefs.h
>>conftest.
$ac_ext
14849 cat >>conftest.
$ac_ext <<_ACEOF
14850 /* end confdefs.h. */
14851 $ac_includes_default
14852 long longval () { return (long) (sizeof (void *)); }
14853 unsigned long ulongval () { return (long) (sizeof (void *)); }
14855 #include <stdlib.h>
14860 FILE *f = fopen ("conftest.val", "w");
14863 if (((long) (sizeof (void *))) < 0)
14865 long i = longval ();
14866 if (i != ((long) (sizeof (void *))))
14868 fprintf (f, "%ld\n", i);
14872 unsigned long i = ulongval ();
14873 if (i != ((long) (sizeof (void *))))
14875 fprintf (f, "%lu\n", i);
14877 exit (ferror (f) || fclose (f) != 0);
14883 rm -f conftest
$ac_exeext
14884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14885 (eval $ac_link) 2>&5
14887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14890 (eval $ac_try) 2>&5
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); }; }; then
14894 ac_cv_sizeof_void_p
=`cat conftest.val`
14896 echo "$as_me: program exited with status $ac_status" >&5
14897 echo "$as_me: failed program was:" >&5
14898 sed 's/^/| /' conftest.
$ac_ext >&5
14900 ( exit $ac_status )
14901 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14902 See \`config.log' for more details." >&5
14903 echo "$as_me: error: cannot compute sizeof (void *), 77
14904 See \`config.log' for more details." >&2;}
14905 { (exit 1); exit 1; }; }
14907 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14912 ac_cv_sizeof_void_p
=0
14915 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14916 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14917 cat >>confdefs.h
<<_ACEOF
14918 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14923 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14924 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
14925 if test "${ac_cv_c_bigendian+set}" = set; then
14926 echo $ECHO_N "(cached) $ECHO_C" >&6
14928 # See if sys/param.h defines the BYTE_ORDER macro.
14929 cat >conftest.
$ac_ext <<_ACEOF
14932 cat confdefs.h
>>conftest.
$ac_ext
14933 cat >>conftest.
$ac_ext <<_ACEOF
14934 /* end confdefs.h. */
14935 #include <sys/types.h>
14936 #include <sys/param.h>
14941 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14942 bogus endian macros
14949 rm -f conftest.
$ac_objext
14950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14951 (eval $ac_compile) 2>conftest.er1
14953 grep -v '^ *+' conftest.er1
>conftest.err
14955 cat conftest.err
>&5
14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); } &&
14958 { ac_try
='test -z "$ac_c_werror_flag"
14959 || test ! -s conftest.err'
14960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14961 (eval $ac_try) 2>&5
14963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964 (exit $ac_status); }; } &&
14965 { ac_try
='test -s conftest.$ac_objext'
14966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14967 (eval $ac_try) 2>&5
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); }; }; then
14971 # It does; now see whether it defined to BIG_ENDIAN or not.
14972 cat >conftest.
$ac_ext <<_ACEOF
14975 cat confdefs.h
>>conftest.
$ac_ext
14976 cat >>conftest.
$ac_ext <<_ACEOF
14977 /* end confdefs.h. */
14978 #include <sys/types.h>
14979 #include <sys/param.h>
14984 #if BYTE_ORDER != BIG_ENDIAN
14992 rm -f conftest.
$ac_objext
14993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14994 (eval $ac_compile) 2>conftest.er1
14996 grep -v '^ *+' conftest.er1
>conftest.err
14998 cat conftest.err
>&5
14999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 (exit $ac_status); } &&
15001 { ac_try
='test -z "$ac_c_werror_flag"
15002 || test ! -s conftest.err'
15003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15004 (eval $ac_try) 2>&5
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); }; } &&
15008 { ac_try
='test -s conftest.$ac_objext'
15009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15010 (eval $ac_try) 2>&5
15012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013 (exit $ac_status); }; }; then
15014 ac_cv_c_bigendian
=yes
15016 echo "$as_me: failed program was:" >&5
15017 sed 's/^/| /' conftest.
$ac_ext >&5
15019 ac_cv_c_bigendian
=no
15021 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15023 echo "$as_me: failed program was:" >&5
15024 sed 's/^/| /' conftest.
$ac_ext >&5
15026 # It does not; compile a test program.
15027 if test "$cross_compiling" = yes; then
15028 # try to guess the endianness by grepping values into an object file
15029 ac_cv_c_bigendian
=unknown
15030 cat >conftest.
$ac_ext <<_ACEOF
15033 cat confdefs.h
>>conftest.
$ac_ext
15034 cat >>conftest.
$ac_ext <<_ACEOF
15035 /* end confdefs.h. */
15036 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15037 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15038 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
15039 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15040 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15041 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
15045 _ascii (); _ebcdic ();
15050 rm -f conftest.
$ac_objext
15051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15052 (eval $ac_compile) 2>conftest.er1
15054 grep -v '^ *+' conftest.er1
>conftest.err
15056 cat conftest.err
>&5
15057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); } &&
15059 { ac_try
='test -z "$ac_c_werror_flag"
15060 || test ! -s conftest.err'
15061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15062 (eval $ac_try) 2>&5
15064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065 (exit $ac_status); }; } &&
15066 { ac_try
='test -s conftest.$ac_objext'
15067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15068 (eval $ac_try) 2>&5
15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071 (exit $ac_status); }; }; then
15072 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
15073 ac_cv_c_bigendian
=yes
15075 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
15076 if test "$ac_cv_c_bigendian" = unknown
; then
15077 ac_cv_c_bigendian
=no
15079 # finding both strings is unlikely to happen, but who knows?
15080 ac_cv_c_bigendian
=unknown
15084 echo "$as_me: failed program was:" >&5
15085 sed 's/^/| /' conftest.
$ac_ext >&5
15088 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15090 cat >conftest.
$ac_ext <<_ACEOF
15093 cat confdefs.h
>>conftest.
$ac_ext
15094 cat >>conftest.
$ac_ext <<_ACEOF
15095 /* end confdefs.h. */
15099 /* Are we little or big endian? From Harbison&Steele. */
15103 char c[sizeof (long)];
15106 exit (u.c[sizeof (long) - 1] == 1);
15109 rm -f conftest
$ac_exeext
15110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15111 (eval $ac_link) 2>&5
15113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15116 (eval $ac_try) 2>&5
15118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119 (exit $ac_status); }; }; then
15120 ac_cv_c_bigendian
=no
15122 echo "$as_me: program exited with status $ac_status" >&5
15123 echo "$as_me: failed program was:" >&5
15124 sed 's/^/| /' conftest.
$ac_ext >&5
15126 ( exit $ac_status )
15127 ac_cv_c_bigendian
=yes
15129 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15132 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15134 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
15135 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
15136 case $ac_cv_c_bigendian in
15139 cat >>confdefs.h
<<\_ACEOF
15140 #define WORDS_BIGENDIAN 1
15146 { { echo "$as_me:$LINENO: error: unknown endianness
15147 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
15148 echo "$as_me: error: unknown endianness
15149 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
15150 { (exit 1); exit 1; }; } ;;
15158 if test -z "$ZLIBSPEC"; then
15159 # Use zlib from the GCC tree.
15160 ZINCS
='-I$(top_srcdir)/../zlib'
15161 ZLIBS
=..
/zlib
/libzgcj_convenience.la
15164 SYS_ZLIBS
="$ZLIBSPEC"
15177 if test "$NATIVE" = yes; then
15187 if test "$enable_shared" = yes; then
15188 ENABLE_SHARED_TRUE
=
15189 ENABLE_SHARED_FALSE
='#'
15191 ENABLE_SHARED_TRUE
='#'
15192 ENABLE_SHARED_FALSE
=
15197 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
15198 NEEDS_DATA_START_TRUE
=
15199 NEEDS_DATA_START_FALSE
='#'
15201 NEEDS_DATA_START_TRUE
='#'
15202 NEEDS_DATA_START_FALSE
=
15207 # Process the option "--enable-version-specific-runtime-libs"
15208 # Calculate toolexeclibdir
15209 case ${version_specific_libs} in
15211 # Need the gcc compiler version to know where to install libraries
15212 # and header files if --enable-version-specific-runtime-libs option
15214 includedir
='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
15215 toolexecdir
='$(libdir)/gcc/$(target_noncanonical)'
15216 toolexecmainlibdir
='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
15217 toolexeclibdir
=$toolexecmainlibdir
15220 if test -n "$with_cross_host" &&
15221 test x
"$with_cross_host" != x
"no"; then
15222 # Install a library built with a cross compiler in tooldir, not libdir.
15223 toolexecdir
='$(exec_prefix)/$(target_noncanonical)'
15224 toolexecmainlibdir
='$(toolexecdir)/lib'
15226 toolexecdir
='$(libdir)/gcc-lib/$(target_noncanonical)'
15227 toolexecmainlibdir
='$(libdir)'
15229 multi_os_directory
=`$CC -print-multi-os-directory`
15230 case $multi_os_directory in
15231 .
) toolexeclibdir
=$toolexecmainlibdir ;; # Avoid trailing /.
15232 *) toolexeclibdir
=$toolexecmainlibdir/$multi_os_directory ;;
15240 # Determine where the standard .db file and GNU Classpath JNI
15241 # libraries are found.
15242 multi_os_directory
=`$CC -print-multi-os-directory`
15243 case $multi_os_directory in
15245 dbexecdir
='$(libdir)/gcj-$(gcc_version)' # Avoid /.
15248 dbexecdir
='$(libdir)/'$multi_os_directory'/gcj-$(gcc_version)'
15253 # Determine gcj version number.
15254 gcjversion
=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
15255 GCJVERSION
=$gcjversion
15258 cat >>confdefs.h
<<_ACEOF
15259 #define GCJVERSION "$GCJVERSION"
15264 cat >>confdefs.h
<<\_ACEOF
15265 #define JV_VERSION "1.5.0"
15269 cat >>confdefs.h
<<\_ACEOF
15270 #define JV_API_VERSION "1.5"
15275 case "${with_gxx_include_dir}" in
15277 { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
15278 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
15279 { (exit 1); exit 1; }; }
15282 case "${enable_version_specific_runtime_libs}" in
15283 yes) gxx_include_dir
='$(libsubdir)/include/c++' ;;
15285 libstdcxx_incdir
='c++/$(gcc_version)'
15286 gxx_include_dir
='include/$(libstdcxx_incdir)'
15287 if test -n "$with_cross_host" &&
15288 test x
"$with_cross_host" != x
"no"; then
15289 gxx_include_dir
='${prefix}/${target_alias}/'"$gxx_include_dir"
15291 gxx_include_dir
='${prefix}/'"$gxx_include_dir"
15294 *) gxx_include_dir
=${with_gxx_include_dir} ;;
15300 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
15301 # On that system, sys/ioctl.h will not include sys/filio.h unless
15302 # BSD_COMP is defined; just including sys/filio.h is simpler.
15303 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
15304 # for now. If you change this, you also must update natFile.cc.
15328 for ac_header
in unistd.h bstring.h sys
/time.h sys
/types.h fcntl.h \
15329 sys
/ioctl.h sys
/filio.h sys
/stat.h sys
/select.h \
15330 sys
/socket.h netinet
/in.h arpa
/inet.h netdb.h net
/if.h \
15331 pwd.h sys
/config.h stdint.h langinfo.h locale.h \
15332 dirent.h sys
/rw_lock.h magic.h ifaddrs.h
15334 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15336 echo "$as_me:$LINENO: checking for $ac_header" >&5
15337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15339 echo $ECHO_N "(cached) $ECHO_C" >&6
15341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15344 # Is the header compilable?
15345 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15346 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15347 cat >conftest.
$ac_ext <<_ACEOF
15350 cat confdefs.h
>>conftest.
$ac_ext
15351 cat >>conftest.
$ac_ext <<_ACEOF
15352 /* end confdefs.h. */
15353 $ac_includes_default
15354 #include <$ac_header>
15356 rm -f conftest.
$ac_objext
15357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15358 (eval $ac_compile) 2>conftest.er1
15360 grep -v '^ *+' conftest.er1
>conftest.err
15362 cat conftest.err
>&5
15363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364 (exit $ac_status); } &&
15365 { ac_try
='test -z "$ac_c_werror_flag"
15366 || test ! -s conftest.err'
15367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15368 (eval $ac_try) 2>&5
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); }; } &&
15372 { ac_try
='test -s conftest.$ac_objext'
15373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15374 (eval $ac_try) 2>&5
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); }; }; then
15378 ac_header_compiler
=yes
15380 echo "$as_me: failed program was:" >&5
15381 sed 's/^/| /' conftest.
$ac_ext >&5
15383 ac_header_compiler
=no
15385 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15386 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15387 echo "${ECHO_T}$ac_header_compiler" >&6
15389 # Is the header present?
15390 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15392 cat >conftest.
$ac_ext <<_ACEOF
15395 cat confdefs.h
>>conftest.
$ac_ext
15396 cat >>conftest.
$ac_ext <<_ACEOF
15397 /* end confdefs.h. */
15398 #include <$ac_header>
15400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15401 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15403 grep -v '^ *+' conftest.er1
>conftest.err
15405 cat conftest.err
>&5
15406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407 (exit $ac_status); } >/dev
/null
; then
15408 if test -s conftest.err
; then
15409 ac_cpp_err
=$ac_c_preproc_warn_flag
15410 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15417 if test -z "$ac_cpp_err"; then
15418 ac_header_preproc
=yes
15420 echo "$as_me: failed program was:" >&5
15421 sed 's/^/| /' conftest.
$ac_ext >&5
15423 ac_header_preproc
=no
15425 rm -f conftest.err conftest.
$ac_ext
15426 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15427 echo "${ECHO_T}$ac_header_preproc" >&6
15429 # So? What about this header?
15430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15432 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15433 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15435 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15436 ac_header_preproc
=yes
15439 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15440 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15441 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15442 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15443 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15444 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15445 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15446 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15448 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15449 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15450 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15453 ## ---------------------------------- ##
15454 ## Report this to the libjava lists. ##
15455 ## ---------------------------------- ##
15458 sed "s/^/$as_me: WARNING: /" >&2
15461 echo "$as_me:$LINENO: checking for $ac_header" >&5
15462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15464 echo $ECHO_N "(cached) $ECHO_C" >&6
15466 eval "$as_ac_Header=\$ac_header_preproc"
15468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15473 cat >>confdefs.h
<<_ACEOF
15474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15482 for ac_header
in inttypes.h
15484 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15486 echo "$as_me:$LINENO: checking for $ac_header" >&5
15487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15489 echo $ECHO_N "(cached) $ECHO_C" >&6
15491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15492 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15494 # Is the header compilable?
15495 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15496 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15497 cat >conftest.
$ac_ext <<_ACEOF
15500 cat confdefs.h
>>conftest.
$ac_ext
15501 cat >>conftest.
$ac_ext <<_ACEOF
15502 /* end confdefs.h. */
15503 $ac_includes_default
15504 #include <$ac_header>
15506 rm -f conftest.
$ac_objext
15507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15508 (eval $ac_compile) 2>conftest.er1
15510 grep -v '^ *+' conftest.er1
>conftest.err
15512 cat conftest.err
>&5
15513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 (exit $ac_status); } &&
15515 { ac_try
='test -z "$ac_c_werror_flag"
15516 || test ! -s conftest.err'
15517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15518 (eval $ac_try) 2>&5
15520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521 (exit $ac_status); }; } &&
15522 { ac_try
='test -s conftest.$ac_objext'
15523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15524 (eval $ac_try) 2>&5
15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527 (exit $ac_status); }; }; then
15528 ac_header_compiler
=yes
15530 echo "$as_me: failed program was:" >&5
15531 sed 's/^/| /' conftest.
$ac_ext >&5
15533 ac_header_compiler
=no
15535 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15536 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15537 echo "${ECHO_T}$ac_header_compiler" >&6
15539 # Is the header present?
15540 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15541 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15542 cat >conftest.
$ac_ext <<_ACEOF
15545 cat confdefs.h
>>conftest.
$ac_ext
15546 cat >>conftest.
$ac_ext <<_ACEOF
15547 /* end confdefs.h. */
15548 #include <$ac_header>
15550 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15551 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15553 grep -v '^ *+' conftest.er1
>conftest.err
15555 cat conftest.err
>&5
15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); } >/dev
/null
; then
15558 if test -s conftest.err
; then
15559 ac_cpp_err
=$ac_c_preproc_warn_flag
15560 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15567 if test -z "$ac_cpp_err"; then
15568 ac_header_preproc
=yes
15570 echo "$as_me: failed program was:" >&5
15571 sed 's/^/| /' conftest.
$ac_ext >&5
15573 ac_header_preproc
=no
15575 rm -f conftest.err conftest.
$ac_ext
15576 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15577 echo "${ECHO_T}$ac_header_preproc" >&6
15579 # So? What about this header?
15580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15582 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15583 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15585 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15586 ac_header_preproc
=yes
15589 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15590 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15591 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15592 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15593 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15594 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15595 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15596 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15598 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15599 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15600 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15603 ## ---------------------------------- ##
15604 ## Report this to the libjava lists. ##
15605 ## ---------------------------------- ##
15608 sed "s/^/$as_me: WARNING: /" >&2
15611 echo "$as_me:$LINENO: checking for $ac_header" >&5
15612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15614 echo $ECHO_N "(cached) $ECHO_C" >&6
15616 eval "$as_ac_Header=\$ac_header_preproc"
15618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15623 cat >>confdefs.h
<<_ACEOF
15624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15628 cat >>confdefs.h
<<\_ACEOF
15629 #define HAVE_INTTYPES_H 1
15633 cat >>confdefs.h
<<\_ACEOF
15634 #define JV_HAVE_INTTYPES_H 1
15642 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15643 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
15644 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15645 echo $ECHO_N "(cached) $ECHO_C" >&6
15647 cat >conftest.
$ac_ext <<_ACEOF
15650 cat confdefs.h
>>conftest.
$ac_ext
15651 cat >>conftest.
$ac_ext <<_ACEOF
15652 /* end confdefs.h. */
15653 #include <sys/types.h>
15654 #include <sys/wait.h>
15655 #ifndef WEXITSTATUS
15656 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
15659 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15667 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15672 rm -f conftest.
$ac_objext
15673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15674 (eval $ac_compile) 2>conftest.er1
15676 grep -v '^ *+' conftest.er1
>conftest.err
15678 cat conftest.err
>&5
15679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680 (exit $ac_status); } &&
15681 { ac_try
='test -z "$ac_c_werror_flag"
15682 || test ! -s conftest.err'
15683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15684 (eval $ac_try) 2>&5
15686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687 (exit $ac_status); }; } &&
15688 { ac_try
='test -s conftest.$ac_objext'
15689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15690 (eval $ac_try) 2>&5
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); }; }; then
15694 ac_cv_header_sys_wait_h
=yes
15696 echo "$as_me: failed program was:" >&5
15697 sed 's/^/| /' conftest.
$ac_ext >&5
15699 ac_cv_header_sys_wait_h
=no
15701 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15703 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15704 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
15705 if test $ac_cv_header_sys_wait_h = yes; then
15707 cat >>confdefs.h
<<\_ACEOF
15708 #define HAVE_SYS_WAIT_H 1
15714 echo "$as_me:$LINENO: checking for ssize_t" >&5
15715 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15716 if test "${ac_cv_type_ssize_t+set}" = set; then
15717 echo $ECHO_N "(cached) $ECHO_C" >&6
15719 cat >conftest.
$ac_ext <<_ACEOF
15722 cat confdefs.h
>>conftest.
$ac_ext
15723 cat >>conftest.
$ac_ext <<_ACEOF
15724 /* end confdefs.h. */
15725 $ac_includes_default
15731 if (sizeof (ssize_t))
15737 rm -f conftest.
$ac_objext
15738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15739 (eval $ac_compile) 2>conftest.er1
15741 grep -v '^ *+' conftest.er1
>conftest.err
15743 cat conftest.err
>&5
15744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745 (exit $ac_status); } &&
15746 { ac_try
='test -z "$ac_c_werror_flag"
15747 || test ! -s conftest.err'
15748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15749 (eval $ac_try) 2>&5
15751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752 (exit $ac_status); }; } &&
15753 { ac_try
='test -s conftest.$ac_objext'
15754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15755 (eval $ac_try) 2>&5
15757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758 (exit $ac_status); }; }; then
15759 ac_cv_type_ssize_t
=yes
15761 echo "$as_me: failed program was:" >&5
15762 sed 's/^/| /' conftest.
$ac_ext >&5
15764 ac_cv_type_ssize_t
=no
15766 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15768 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
15769 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
15770 if test $ac_cv_type_ssize_t = yes; then
15774 cat >>confdefs.h
<<_ACEOF
15775 #define ssize_t int
15781 echo "$as_me:$LINENO: checking for in_addr_t" >&5
15782 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
15783 cat >conftest.
$ac_ext <<_ACEOF
15786 cat confdefs.h
>>conftest.
$ac_ext
15787 cat >>conftest.
$ac_ext <<_ACEOF
15788 /* end confdefs.h. */
15789 #include <sys/types.h>
15791 #include <stdlib.h>
15792 #include <stddef.h>
15794 #if HAVE_NETINET_IN_H
15795 #include <netinet/in.h>
15805 rm -f conftest.
$ac_objext
15806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15807 (eval $ac_compile) 2>conftest.er1
15809 grep -v '^ *+' conftest.er1
>conftest.err
15811 cat conftest.err
>&5
15812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); } &&
15814 { ac_try
='test -z "$ac_c_werror_flag"
15815 || test ! -s conftest.err'
15816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15817 (eval $ac_try) 2>&5
15819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820 (exit $ac_status); }; } &&
15821 { ac_try
='test -s conftest.$ac_objext'
15822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15823 (eval $ac_try) 2>&5
15825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826 (exit $ac_status); }; }; then
15828 cat >>confdefs.h
<<\_ACEOF
15829 #define HAVE_IN_ADDR_T 1
15832 echo "$as_me:$LINENO: result: yes" >&5
15833 echo "${ECHO_T}yes" >&6
15835 echo "$as_me: failed program was:" >&5
15836 sed 's/^/| /' conftest.
$ac_ext >&5
15838 echo "$as_me:$LINENO: result: no" >&5
15839 echo "${ECHO_T}no" >&6
15841 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15843 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
15844 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
15845 cat >conftest.
$ac_ext <<_ACEOF
15848 cat confdefs.h
>>conftest.
$ac_ext
15849 cat >>conftest.
$ac_ext <<_ACEOF
15850 /* end confdefs.h. */
15851 #include <netinet/in.h>
15855 struct ip_mreq mreq;
15860 rm -f conftest.
$ac_objext
15861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15862 (eval $ac_compile) 2>conftest.er1
15864 grep -v '^ *+' conftest.er1
>conftest.err
15866 cat conftest.err
>&5
15867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868 (exit $ac_status); } &&
15869 { ac_try
='test -z "$ac_c_werror_flag"
15870 || test ! -s conftest.err'
15871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15872 (eval $ac_try) 2>&5
15874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875 (exit $ac_status); }; } &&
15876 { ac_try
='test -s conftest.$ac_objext'
15877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15878 (eval $ac_try) 2>&5
15880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881 (exit $ac_status); }; }; then
15883 cat >>confdefs.h
<<\_ACEOF
15884 #define HAVE_STRUCT_IP_MREQ 1
15887 echo "$as_me:$LINENO: result: yes" >&5
15888 echo "${ECHO_T}yes" >&6
15890 echo "$as_me: failed program was:" >&5
15891 sed 's/^/| /' conftest.
$ac_ext >&5
15893 echo "$as_me:$LINENO: result: no" >&5
15894 echo "${ECHO_T}no" >&6
15896 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15898 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
15899 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
15900 cat >conftest.
$ac_ext <<_ACEOF
15903 cat confdefs.h
>>conftest.
$ac_ext
15904 cat >>conftest.
$ac_ext <<_ACEOF
15905 /* end confdefs.h. */
15906 #include <netinet/in.h>
15910 struct ipv6_mreq mreq6;
15915 rm -f conftest.
$ac_objext
15916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15917 (eval $ac_compile) 2>conftest.er1
15919 grep -v '^ *+' conftest.er1
>conftest.err
15921 cat conftest.err
>&5
15922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15923 (exit $ac_status); } &&
15924 { ac_try
='test -z "$ac_c_werror_flag"
15925 || test ! -s conftest.err'
15926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15927 (eval $ac_try) 2>&5
15929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930 (exit $ac_status); }; } &&
15931 { ac_try
='test -s conftest.$ac_objext'
15932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15933 (eval $ac_try) 2>&5
15935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936 (exit $ac_status); }; }; then
15938 cat >>confdefs.h
<<\_ACEOF
15939 #define HAVE_STRUCT_IPV6_MREQ 1
15942 echo "$as_me:$LINENO: result: yes" >&5
15943 echo "${ECHO_T}yes" >&6
15945 echo "$as_me: failed program was:" >&5
15946 sed 's/^/| /' conftest.
$ac_ext >&5
15948 echo "$as_me:$LINENO: result: no" >&5
15949 echo "${ECHO_T}no" >&6
15951 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15953 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
15954 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
15955 cat >conftest.
$ac_ext <<_ACEOF
15958 cat confdefs.h
>>conftest.
$ac_ext
15959 cat >>conftest.
$ac_ext <<_ACEOF
15960 /* end confdefs.h. */
15961 #include <netinet/in.h>
15965 struct sockaddr_in6 addr6;
15970 rm -f conftest.
$ac_objext
15971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15972 (eval $ac_compile) 2>conftest.er1
15974 grep -v '^ *+' conftest.er1
>conftest.err
15976 cat conftest.err
>&5
15977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15978 (exit $ac_status); } &&
15979 { ac_try
='test -z "$ac_c_werror_flag"
15980 || test ! -s conftest.err'
15981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15982 (eval $ac_try) 2>&5
15984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985 (exit $ac_status); }; } &&
15986 { ac_try
='test -s conftest.$ac_objext'
15987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15988 (eval $ac_try) 2>&5
15990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991 (exit $ac_status); }; }; then
15993 cat >>confdefs.h
<<\_ACEOF
15994 #define HAVE_INET6 1
15997 echo "$as_me:$LINENO: result: yes" >&5
15998 echo "${ECHO_T}yes" >&6
16000 echo "$as_me: failed program was:" >&5
16001 sed 's/^/| /' conftest.
$ac_ext >&5
16003 echo "$as_me:$LINENO: result: no" >&5
16004 echo "${ECHO_T}no" >&6
16006 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16008 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
16009 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
16010 cat >conftest.
$ac_ext <<_ACEOF
16013 cat confdefs.h
>>conftest.
$ac_ext
16014 cat >>conftest.
$ac_ext <<_ACEOF
16015 /* end confdefs.h. */
16016 #define _POSIX_PII_SOCKET
16017 #include <sys/types.h>
16018 #include <sys/socket.h>
16027 rm -f conftest.
$ac_objext
16028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16029 (eval $ac_compile) 2>conftest.er1
16031 grep -v '^ *+' conftest.er1
>conftest.err
16033 cat conftest.err
>&5
16034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035 (exit $ac_status); } &&
16036 { ac_try
='test -z "$ac_c_werror_flag"
16037 || test ! -s conftest.err'
16038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16039 (eval $ac_try) 2>&5
16041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); }; } &&
16043 { ac_try
='test -s conftest.$ac_objext'
16044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16045 (eval $ac_try) 2>&5
16047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048 (exit $ac_status); }; }; then
16050 cat >>confdefs.h
<<\_ACEOF
16051 #define HAVE_SOCKLEN_T 1
16054 echo "$as_me:$LINENO: result: yes" >&5
16055 echo "${ECHO_T}yes" >&6
16057 echo "$as_me: failed program was:" >&5
16058 sed 's/^/| /' conftest.
$ac_ext >&5
16060 echo "$as_me:$LINENO: result: no" >&5
16061 echo "${ECHO_T}no" >&6
16063 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16065 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
16066 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
16067 cat >conftest.
$ac_ext <<_ACEOF
16070 cat confdefs.h
>>conftest.
$ac_ext
16071 cat >>conftest.
$ac_ext <<_ACEOF
16072 /* end confdefs.h. */
16077 struct tm tim; tim.tm_gmtoff = 0;
16082 rm -f conftest.
$ac_objext
16083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16084 (eval $ac_compile) 2>conftest.er1
16086 grep -v '^ *+' conftest.er1
>conftest.err
16088 cat conftest.err
>&5
16089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090 (exit $ac_status); } &&
16091 { ac_try
='test -z "$ac_c_werror_flag"
16092 || test ! -s conftest.err'
16093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16094 (eval $ac_try) 2>&5
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); }; } &&
16098 { ac_try
='test -s conftest.$ac_objext'
16099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16100 (eval $ac_try) 2>&5
16102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103 (exit $ac_status); }; }; then
16105 cat >>confdefs.h
<<\_ACEOF
16106 #define STRUCT_TM_HAS_GMTOFF 1
16109 echo "$as_me:$LINENO: result: yes" >&5
16110 echo "${ECHO_T}yes" >&6
16112 echo "$as_me: failed program was:" >&5
16113 sed 's/^/| /' conftest.
$ac_ext >&5
16115 echo "$as_me:$LINENO: result: no" >&5
16116 echo "${ECHO_T}no" >&6
16117 echo "$as_me:$LINENO: checking for global timezone variable" >&5
16118 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
16119 cat >conftest.
$ac_ext <<_ACEOF
16122 cat confdefs.h
>>conftest.
$ac_ext
16123 cat >>conftest.
$ac_ext <<_ACEOF
16124 /* end confdefs.h. */
16129 void i(){long z2 = 2*timezone;}
16134 rm -f conftest.
$ac_objext
16135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16136 (eval $ac_compile) 2>conftest.er1
16138 grep -v '^ *+' conftest.er1
>conftest.err
16140 cat conftest.err
>&5
16141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16142 (exit $ac_status); } &&
16143 { ac_try
='test -z "$ac_c_werror_flag"
16144 || test ! -s conftest.err'
16145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16146 (eval $ac_try) 2>&5
16148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149 (exit $ac_status); }; } &&
16150 { ac_try
='test -s conftest.$ac_objext'
16151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16152 (eval $ac_try) 2>&5
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); }; }; then
16157 cat >>confdefs.h
<<\_ACEOF
16158 #define HAVE_TIMEZONE 1
16161 echo "$as_me:$LINENO: result: yes" >&5
16162 echo "${ECHO_T}yes" >&6
16164 echo "$as_me: failed program was:" >&5
16165 sed 's/^/| /' conftest.
$ac_ext >&5
16167 echo "$as_me:$LINENO: result: no" >&5
16168 echo "${ECHO_T}no" >&6
16169 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
16170 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
16171 cat >conftest.
$ac_ext <<_ACEOF
16174 cat confdefs.h
>>conftest.
$ac_ext
16175 cat >>conftest.
$ac_ext <<_ACEOF
16176 /* end confdefs.h. */
16181 long z2 = _timezone;
16186 rm -f conftest.
$ac_objext
16187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16188 (eval $ac_compile) 2>conftest.er1
16190 grep -v '^ *+' conftest.er1
>conftest.err
16192 cat conftest.err
>&5
16193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); } &&
16195 { ac_try
='test -z "$ac_c_werror_flag"
16196 || test ! -s conftest.err'
16197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16198 (eval $ac_try) 2>&5
16200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201 (exit $ac_status); }; } &&
16202 { ac_try
='test -s conftest.$ac_objext'
16203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16204 (eval $ac_try) 2>&5
16206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207 (exit $ac_status); }; }; then
16209 cat >>confdefs.h
<<\_ACEOF
16210 #define HAVE_UNDERSCORE_TIMEZONE 1
16213 echo "$as_me:$LINENO: result: yes" >&5
16214 echo "${ECHO_T}yes" >&6
16216 echo "$as_me: failed program was:" >&5
16217 sed 's/^/| /' conftest.
$ac_ext >&5
16219 echo "$as_me:$LINENO: result: no" >&5
16220 echo "${ECHO_T}no" >&6
16222 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16224 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16226 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16228 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16229 # for constant arguments. Useless!
16230 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16231 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16232 if test "${ac_cv_working_alloca_h+set}" = set; then
16233 echo $ECHO_N "(cached) $ECHO_C" >&6
16235 if test x
$gcc_no_link = xyes
; then
16236 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16237 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16238 { (exit 1); exit 1; }; }
16240 cat >conftest.
$ac_ext <<_ACEOF
16243 cat confdefs.h
>>conftest.
$ac_ext
16244 cat >>conftest.
$ac_ext <<_ACEOF
16245 /* end confdefs.h. */
16246 #include <alloca.h>
16250 char *p = (char *) alloca (2 * sizeof (int));
16255 rm -f conftest.
$ac_objext conftest
$ac_exeext
16256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16257 (eval $ac_link) 2>conftest.er1
16259 grep -v '^ *+' conftest.er1
>conftest.err
16261 cat conftest.err
>&5
16262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); } &&
16264 { ac_try
='test -z "$ac_c_werror_flag"
16265 || test ! -s conftest.err'
16266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16267 (eval $ac_try) 2>&5
16269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270 (exit $ac_status); }; } &&
16271 { ac_try
='test -s conftest$ac_exeext'
16272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16273 (eval $ac_try) 2>&5
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); }; }; then
16277 ac_cv_working_alloca_h
=yes
16279 echo "$as_me: failed program was:" >&5
16280 sed 's/^/| /' conftest.
$ac_ext >&5
16282 ac_cv_working_alloca_h
=no
16284 rm -f conftest.err conftest.
$ac_objext \
16285 conftest
$ac_exeext conftest.
$ac_ext
16287 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16288 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16289 if test $ac_cv_working_alloca_h = yes; then
16291 cat >>confdefs.h
<<\_ACEOF
16292 #define HAVE_ALLOCA_H 1
16297 echo "$as_me:$LINENO: checking for alloca" >&5
16298 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16299 if test "${ac_cv_func_alloca_works+set}" = set; then
16300 echo $ECHO_N "(cached) $ECHO_C" >&6
16302 if test x
$gcc_no_link = xyes
; then
16303 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16304 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16305 { (exit 1); exit 1; }; }
16307 cat >conftest.
$ac_ext <<_ACEOF
16310 cat confdefs.h
>>conftest.
$ac_ext
16311 cat >>conftest.
$ac_ext <<_ACEOF
16312 /* end confdefs.h. */
16314 # define alloca __builtin_alloca
16317 # include <malloc.h>
16318 # define alloca _alloca
16321 # include <alloca.h>
16326 # ifndef alloca /* predefined by HP cc +Olibcalls */
16337 char *p = (char *) alloca (1);
16342 rm -f conftest.
$ac_objext conftest
$ac_exeext
16343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16344 (eval $ac_link) 2>conftest.er1
16346 grep -v '^ *+' conftest.er1
>conftest.err
16348 cat conftest.err
>&5
16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); } &&
16351 { ac_try
='test -z "$ac_c_werror_flag"
16352 || test ! -s conftest.err'
16353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16354 (eval $ac_try) 2>&5
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); }; } &&
16358 { ac_try
='test -s conftest$ac_exeext'
16359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16360 (eval $ac_try) 2>&5
16362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363 (exit $ac_status); }; }; then
16364 ac_cv_func_alloca_works
=yes
16366 echo "$as_me: failed program was:" >&5
16367 sed 's/^/| /' conftest.
$ac_ext >&5
16369 ac_cv_func_alloca_works
=no
16371 rm -f conftest.err conftest.
$ac_objext \
16372 conftest
$ac_exeext conftest.
$ac_ext
16374 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16375 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16377 if test $ac_cv_func_alloca_works = yes; then
16379 cat >>confdefs.h
<<\_ACEOF
16380 #define HAVE_ALLOCA 1
16384 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16385 # that cause trouble. Some versions do not even contain alloca or
16386 # contain a buggy version. If you still want to use their alloca,
16387 # use ar to extract alloca.o from them instead of compiling alloca.c.
16389 ALLOCA
=alloca.
$ac_objext
16391 cat >>confdefs.h
<<\_ACEOF
16396 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16397 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16398 if test "${ac_cv_os_cray+set}" = set; then
16399 echo $ECHO_N "(cached) $ECHO_C" >&6
16401 cat >conftest.
$ac_ext <<_ACEOF
16404 cat confdefs.h
>>conftest.
$ac_ext
16405 cat >>conftest.
$ac_ext <<_ACEOF
16406 /* end confdefs.h. */
16407 #if defined(CRAY) && ! defined(CRAY2)
16414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16415 $EGREP "webecray" >/dev
/null
2>&1; then
16423 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16424 echo "${ECHO_T}$ac_cv_os_cray" >&6
16425 if test $ac_cv_os_cray = yes; then
16426 for ac_func
in _getb67 GETB67 getb67
; do
16427 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16428 echo "$as_me:$LINENO: checking for $ac_func" >&5
16429 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16430 if eval "test \"\${$as_ac_var+set}\" = set"; then
16431 echo $ECHO_N "(cached) $ECHO_C" >&6
16433 if test x
$gcc_no_link = xyes
; then
16434 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16435 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16436 { (exit 1); exit 1; }; }
16438 cat >conftest.
$ac_ext <<_ACEOF
16441 cat confdefs.h
>>conftest.
$ac_ext
16442 cat >>conftest.
$ac_ext <<_ACEOF
16443 /* end confdefs.h. */
16444 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16445 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16446 #define $ac_func innocuous_$ac_func
16448 /* System header to define __stub macros and hopefully few prototypes,
16449 which can conflict with char $ac_func (); below.
16450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16451 <limits.h> exists even on freestanding compilers. */
16454 # include <limits.h>
16456 # include <assert.h>
16461 /* Override any gcc2 internal prototype to avoid an error. */
16466 /* We use char because int might match the return type of a gcc2
16467 builtin and then its argument prototype would still apply. */
16469 /* The GNU C library defines this for functions which it implements
16470 to always fail with ENOSYS. Some functions are actually named
16471 something starting with __ and the normal name is an alias. */
16472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16475 char (*f) () = $ac_func;
16484 return f != $ac_func;
16489 rm -f conftest.
$ac_objext conftest
$ac_exeext
16490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16491 (eval $ac_link) 2>conftest.er1
16493 grep -v '^ *+' conftest.er1
>conftest.err
16495 cat conftest.err
>&5
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); } &&
16498 { ac_try
='test -z "$ac_c_werror_flag"
16499 || test ! -s conftest.err'
16500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16501 (eval $ac_try) 2>&5
16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); }; } &&
16505 { ac_try
='test -s conftest$ac_exeext'
16506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16507 (eval $ac_try) 2>&5
16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); }; }; then
16511 eval "$as_ac_var=yes"
16513 echo "$as_me: failed program was:" >&5
16514 sed 's/^/| /' conftest.
$ac_ext >&5
16516 eval "$as_ac_var=no"
16518 rm -f conftest.err conftest.
$ac_objext \
16519 conftest
$ac_exeext conftest.
$ac_ext
16521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16522 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16523 if test `eval echo '${'$as_ac_var'}'` = yes; then
16525 cat >>confdefs.h
<<_ACEOF
16526 #define CRAY_STACKSEG_END $ac_func
16535 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16536 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16537 if test "${ac_cv_c_stack_direction+set}" = set; then
16538 echo $ECHO_N "(cached) $ECHO_C" >&6
16540 if test "$cross_compiling" = yes; then
16541 ac_cv_c_stack_direction
=0
16543 cat >conftest.
$ac_ext <<_ACEOF
16546 cat confdefs.h
>>conftest.
$ac_ext
16547 cat >>conftest.
$ac_ext <<_ACEOF
16548 /* end confdefs.h. */
16550 find_stack_direction ()
16552 static char *addr = 0;
16557 return find_stack_direction ();
16560 return (&dummy > addr) ? 1 : -1;
16566 exit (find_stack_direction () < 0);
16569 rm -f conftest
$ac_exeext
16570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16571 (eval $ac_link) 2>&5
16573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16574 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16576 (eval $ac_try) 2>&5
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); }; }; then
16580 ac_cv_c_stack_direction
=1
16582 echo "$as_me: program exited with status $ac_status" >&5
16583 echo "$as_me: failed program was:" >&5
16584 sed 's/^/| /' conftest.
$ac_ext >&5
16586 ( exit $ac_status )
16587 ac_cv_c_stack_direction
=-1
16589 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16592 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16593 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16595 cat >>confdefs.h
<<_ACEOF
16596 #define STACK_DIRECTION $ac_cv_c_stack_direction
16603 for ac_prog
in perl
16605 # Extract the first word of "$ac_prog", so it can be a program name with args.
16606 set dummy
$ac_prog; ac_word
=$2
16607 echo "$as_me:$LINENO: checking for $ac_word" >&5
16608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16609 if test "${ac_cv_prog_PERL+set}" = set; then
16610 echo $ECHO_N "(cached) $ECHO_C" >&6
16612 if test -n "$PERL"; then
16613 ac_cv_prog_PERL
="$PERL" # Let the user override the test.
16615 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16616 for as_dir
in $PATH
16619 test -z "$as_dir" && as_dir
=.
16620 for ac_exec_ext
in '' $ac_executable_extensions; do
16621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16622 ac_cv_prog_PERL
="$ac_prog"
16623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16631 PERL
=$ac_cv_prog_PERL
16632 if test -n "$PERL"; then
16633 echo "$as_me:$LINENO: result: $PERL" >&5
16634 echo "${ECHO_T}$PERL" >&6
16636 echo "$as_me:$LINENO: result: no" >&5
16637 echo "${ECHO_T}no" >&6
16640 test -n "$PERL" && break
16642 test -n "$PERL" || PERL
="false"
16646 SIGNAL_HANDLER_AUX
=
16650 SIGNAL_HANDLER
=include
/i386-signal.h
16652 sparc
*-sun-solaris*)
16653 SIGNAL_HANDLER
=include
/sparc-signal.h
16656 # SYSDEP_SOURCES=sysdep/ia64.c
16657 # test -d sysdep || mkdir sysdep
16660 SIGNAL_HANDLER
=include
/pa-signal.h
16663 SIGNAL_HANDLER
=include
/hppa-signal.h
16666 SIGNAL_HANDLER
=include
/dwarf2-signal.h
16669 SIGNAL_HANDLER
=include
/powerpc-signal.h
16672 SIGNAL_HANDLER
=include
/dwarf2-signal.h
16675 SIGNAL_HANDLER
=include
/s390-signal.h
16678 SIGNAL_HANDLER
=include
/x86_64-signal.h
16679 SIGNAL_HANDLER_AUX
=include
/i386-signal.h
16682 SIGNAL_HANDLER
=include
/dwarf2-signal.h
16685 SIGNAL_HANDLER
=include
/sh-signal.h
16688 SIGNAL_HANDLER
=include
/win32-signal.h
16691 SIGNAL_HANDLER
=include
/mips-signal.h
16693 powerpc
*-*-darwin*)
16694 SIGNAL_HANDLER
=include
/darwin-signal.h
16697 SIGNAL_HANDLER
=include
/default-signal.h
16701 # If we're using sjlj exceptions, forget what we just learned.
16702 if test "$enable_sjlj_exceptions" = yes; then
16703 SIGNAL_HANDLER
=include
/default-signal.h
16704 SIGNAL_HANDLER_AUX
=
16709 if test -z "$SIGNAL_HANDLER_AUX"; then
16710 SIGNAL_HANDLER_AUX
=$SIGNAL_HANDLER
16713 ac_config_links
="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
16716 if test "${multilib}" = "yes"; then
16717 multilib_arg
="--enable-multilib"
16722 # See if we support thread-local storage.
16724 # Check whether --enable-tls or --disable-tls was given.
16725 if test "${enable_tls+set}" = set; then
16726 enableval
="$enable_tls"
16728 case "$enableval" in
16730 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
16731 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
16732 { (exit 1); exit 1; }; } ;;
16739 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
16740 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
16741 if test "${have_tls+set}" = set; then
16742 echo $ECHO_N "(cached) $ECHO_C" >&6
16745 if test "$cross_compiling" = yes; then
16746 if test x
$gcc_no_link = xyes
; then
16747 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16748 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16749 { (exit 1); exit 1; }; }
16751 cat >conftest.
$ac_ext <<_ACEOF
16752 __thread int a; int b; int main() { return a = b; }
16754 rm -f conftest.
$ac_objext conftest
$ac_exeext
16755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16756 (eval $ac_link) 2>conftest.er1
16758 grep -v '^ *+' conftest.er1
>conftest.err
16760 cat conftest.err
>&5
16761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762 (exit $ac_status); } &&
16763 { ac_try
='test -z "$ac_c_werror_flag"
16764 || test ! -s conftest.err'
16765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16766 (eval $ac_try) 2>&5
16768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769 (exit $ac_status); }; } &&
16770 { ac_try
='test -s conftest$ac_exeext'
16771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16772 (eval $ac_try) 2>&5
16774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775 (exit $ac_status); }; }; then
16778 echo "$as_me: failed program was:" >&5
16779 sed 's/^/| /' conftest.
$ac_ext >&5
16783 rm -f conftest.err conftest.
$ac_objext \
16784 conftest
$ac_exeext conftest.
$ac_ext
16787 cat >conftest.
$ac_ext <<_ACEOF
16788 __thread int a; int b; int main() { return a = b; }
16790 rm -f conftest
$ac_exeext
16791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16792 (eval $ac_link) 2>&5
16794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16797 (eval $ac_try) 2>&5
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); }; }; then
16801 save_LDFLAGS
="$LDFLAGS"
16802 LDFLAGS
="-static $LDFLAGS"
16803 if test x
$gcc_no_link = xyes
; then
16804 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16805 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16806 { (exit 1); exit 1; }; }
16808 cat >conftest.
$ac_ext <<_ACEOF
16809 int main() { return 0; }
16811 rm -f conftest.
$ac_objext conftest
$ac_exeext
16812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16813 (eval $ac_link) 2>conftest.er1
16815 grep -v '^ *+' conftest.er1
>conftest.err
16817 cat conftest.err
>&5
16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); } &&
16820 { ac_try
='test -z "$ac_c_werror_flag"
16821 || test ! -s conftest.err'
16822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16823 (eval $ac_try) 2>&5
16825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16826 (exit $ac_status); }; } &&
16827 { ac_try
='test -s conftest$ac_exeext'
16828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16829 (eval $ac_try) 2>&5
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); }; }; then
16833 if test "$cross_compiling" = yes; then
16834 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16835 See \`config.log' for more details." >&5
16836 echo "$as_me: error: cannot run test program while cross compiling
16837 See \`config.log' for more details." >&2;}
16838 { (exit 1); exit 1; }; }
16840 cat >conftest.
$ac_ext <<_ACEOF
16841 __thread int a; int b; int main() { return a = b; }
16843 rm -f conftest
$ac_exeext
16844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16845 (eval $ac_link) 2>&5
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16850 (eval $ac_try) 2>&5
16852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); }; }; then
16856 echo "$as_me: program exited with status $ac_status" >&5
16857 echo "$as_me: failed program was:" >&5
16858 sed 's/^/| /' conftest.
$ac_ext >&5
16860 ( exit $ac_status )
16863 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16866 echo "$as_me: failed program was:" >&5
16867 sed 's/^/| /' conftest.
$ac_ext >&5
16871 rm -f conftest.err conftest.
$ac_objext \
16872 conftest
$ac_exeext conftest.
$ac_ext
16873 LDFLAGS
="$save_LDFLAGS"
16875 echo "$as_me: program exited with status $ac_status" >&5
16876 echo "$as_me: failed program was:" >&5
16877 sed 's/^/| /' conftest.
$ac_ext >&5
16879 ( exit $ac_status )
16882 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16885 echo "$as_me:$LINENO: result: $have_tls" >&5
16886 echo "${ECHO_T}$have_tls" >&6
16887 if test "$enable_tls $have_tls" = "yes yes"; then
16889 cat >>confdefs.h
<<\_ACEOF
16895 # For _Unwind_GetIPInfo.
16900 ac_cpp
='$CXXCPP $CPPFLAGS'
16901 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16902 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16903 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
16905 ac_save_CXXFLAGS
="$CXXFLAGS"
16906 CXXFLAGS
="$CXXFLAGS -fno-exceptions"
16907 echo "$as_me:$LINENO: checking for _Unwind_GetIPInfo" >&5
16908 echo $ECHO_N "checking for _Unwind_GetIPInfo... $ECHO_C" >&6
16909 if test "${gcc_cv_getipinfo+set}" = set; then
16910 echo $ECHO_N "(cached) $ECHO_C" >&6
16913 if test x
$gcc_no_link = xyes
; then
16914 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16915 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16916 { (exit 1); exit 1; }; }
16918 cat >conftest.
$ac_ext <<_ACEOF
16921 cat confdefs.h
>>conftest.
$ac_ext
16922 cat >>conftest.
$ac_ext <<_ACEOF
16923 /* end confdefs.h. */
16924 extern "C" { extern void _Unwind_GetIPInfo(); }
16928 _Unwind_GetIPInfo();
16933 rm -f conftest.
$ac_objext conftest
$ac_exeext
16934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16935 (eval $ac_link) 2>conftest.er1
16937 grep -v '^ *+' conftest.er1
>conftest.err
16939 cat conftest.err
>&5
16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); } &&
16942 { ac_try
='test -z "$ac_cxx_werror_flag"
16943 || test ! -s conftest.err'
16944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16945 (eval $ac_try) 2>&5
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); }; } &&
16949 { ac_try
='test -s conftest$ac_exeext'
16950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16951 (eval $ac_try) 2>&5
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); }; }; then
16955 gcc_cv_getipinfo
=yes
16957 echo "$as_me: failed program was:" >&5
16958 sed 's/^/| /' conftest.
$ac_ext >&5
16960 gcc_cv_getipinfo
=no
16962 rm -f conftest.err conftest.
$ac_objext \
16963 conftest
$ac_exeext conftest.
$ac_ext
16967 if test $gcc_cv_getipinfo = yes; then
16969 cat >>confdefs.h
<<\_ACEOF
16970 #define HAVE_GETIPINFO 1
16974 echo "$as_me:$LINENO: result: $gcc_cv_getipinfo" >&5
16975 echo "${ECHO_T}$gcc_cv_getipinfo" >&6
16976 CXXFLAGS
="$ac_save_CXXFLAGS"
16978 ac_cpp
='$CPP $CPPFLAGS'
16979 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16980 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16981 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
16985 # Check if linker supports static linking on a per library basis
16986 LD_START_STATIC_SPEC
=
16987 LD_FINISH_STATIC_SPEC
=
16988 if $LD --help 2>&1 |
grep -q -e -call_shared ; then
16989 if $LD --help 2>&1 |
grep -q -e -non_shared ; then
16990 LD_START_STATIC_SPEC
='%{static-libgcj:-non_shared}'
16991 LD_FINISH_STATIC_SPEC
='%{static-libgcj:-call_shared}'
16997 here
=`${PWDCMD-pwd}`
17000 # We get this from the environment.
17003 ac_config_files
="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"
17006 ac_config_files
="$ac_config_files scripts/jar"
17009 ac_config_commands
="$ac_config_commands default"
17012 cat >confcache
<<\_ACEOF
17013 # This file is a shell script that caches the results of configure
17014 # tests run on this system so they can be shared between configure
17015 # scripts and configure runs, see configure's option --config-cache.
17016 # It is not useful on other systems. If it contains results you don't
17017 # want to keep, you may remove or edit it.
17019 # config.status only pays attention to the cache file if you give it
17020 # the --recheck option to rerun configure.
17022 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17023 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17024 # following values.
17028 # The following way of writing the cache mishandles newlines in values,
17029 # but we know of no workaround that is simple, portable, and efficient.
17030 # So, don't put newlines in cache variables' values.
17031 # Ultrix sh set writes to stderr and can't be redirected directly,
17032 # and sets the high bit in the cache file unless we assign to the vars.
17035 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17037 # `set' does not quote correctly, so add quotes (double-quote
17038 # substitution turns \\\\ into \\, and sed turns \\ into \).
17041 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17044 # `set' quotes correctly as required by POSIX, so do not add quotes.
17046 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17053 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17055 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17057 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
17058 if test -w $cache_file; then
17059 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17060 cat confcache
>$cache_file
17062 echo "not updating unwritable cache $cache_file"
17067 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17068 # Let make expand exec_prefix.
17069 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17071 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17072 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17073 # trailing colons and then remove the whole line if VPATH becomes empty
17074 # (actually we leave an empty line to preserve line numbers).
17075 if test "x$srcdir" = x.
; then
17076 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
17077 s/:*\$(srcdir):*/:/;
17078 s/:*\${srcdir}:*/:/;
17080 s/^\([^=]*=[ ]*\):*/\1/;
17086 DEFS
=-DHAVE_CONFIG_H
17090 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
17091 # 1. Remove the extension, and $U if already installed.
17092 ac_i
=`echo "$ac_i" |
17093 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17095 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
17096 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
17098 LIBOBJS
=$ac_libobjs
17100 LTLIBOBJS
=$ac_ltlibobjs
17103 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
17104 { { echo "$as_me:$LINENO: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
17105 Usually this means the macro was only invoked conditionally." >&5
17106 echo "$as_me: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
17107 Usually this means the macro was only invoked conditionally." >&2;}
17108 { (exit 1); exit 1; }; }
17110 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17111 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17112 Usually this means the macro was only invoked conditionally." >&5
17113 echo "$as_me: error: conditional \"AMDEP\" was never defined.
17114 Usually this means the macro was only invoked conditionally." >&2;}
17115 { (exit 1); exit 1; }; }
17117 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17118 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17119 Usually this means the macro was only invoked conditionally." >&5
17120 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17121 Usually this means the macro was only invoked conditionally." >&2;}
17122 { (exit 1); exit 1; }; }
17124 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17125 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17126 Usually this means the macro was only invoked conditionally." >&5
17127 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17128 Usually this means the macro was only invoked conditionally." >&2;}
17129 { (exit 1); exit 1; }; }
17131 if test -z "${BASH_JAR_TRUE}" && test -z "${BASH_JAR_FALSE}"; then
17132 { { echo "$as_me:$LINENO: error: conditional \"BASH_JAR\" was never defined.
17133 Usually this means the macro was only invoked conditionally." >&5
17134 echo "$as_me: error: conditional \"BASH_JAR\" was never defined.
17135 Usually this means the macro was only invoked conditionally." >&2;}
17136 { (exit 1); exit 1; }; }
17138 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17139 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
17140 Usually this means the macro was only invoked conditionally." >&5
17141 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
17142 Usually this means the macro was only invoked conditionally." >&2;}
17143 { (exit 1); exit 1; }; }
17145 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
17146 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
17147 Usually this means the macro was only invoked conditionally." >&5
17148 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
17149 Usually this means the macro was only invoked conditionally." >&2;}
17150 { (exit 1); exit 1; }; }
17152 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
17153 { { echo "$as_me:$LINENO: error: conditional \"X_AWT\" was never defined.
17154 Usually this means the macro was only invoked conditionally." >&5
17155 echo "$as_me: error: conditional \"X_AWT\" was never defined.
17156 Usually this means the macro was only invoked conditionally." >&2;}
17157 { (exit 1); exit 1; }; }
17159 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
17160 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
17161 Usually this means the macro was only invoked conditionally." >&5
17162 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
17163 Usually this means the macro was only invoked conditionally." >&2;}
17164 { (exit 1); exit 1; }; }
17166 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
17167 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
17168 Usually this means the macro was only invoked conditionally." >&5
17169 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
17170 Usually this means the macro was only invoked conditionally." >&2;}
17171 { (exit 1); exit 1; }; }
17173 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
17174 { { echo "$as_me:$LINENO: error: conditional \"BUILD_ECJ1\" was never defined.
17175 Usually this means the macro was only invoked conditionally." >&5
17176 echo "$as_me: error: conditional \"BUILD_ECJ1\" was never defined.
17177 Usually this means the macro was only invoked conditionally." >&2;}
17178 { (exit 1); exit 1; }; }
17180 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
17181 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
17182 Usually this means the macro was only invoked conditionally." >&5
17183 echo "$as_me: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
17184 Usually this means the macro was only invoked conditionally." >&2;}
17185 { (exit 1); exit 1; }; }
17187 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
17188 { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
17189 Usually this means the macro was only invoked conditionally." >&5
17190 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
17191 Usually this means the macro was only invoked conditionally." >&2;}
17192 { (exit 1); exit 1; }; }
17194 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
17195 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
17196 Usually this means the macro was only invoked conditionally." >&5
17197 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
17198 Usually this means the macro was only invoked conditionally." >&2;}
17199 { (exit 1); exit 1; }; }
17201 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
17202 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
17203 Usually this means the macro was only invoked conditionally." >&5
17204 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
17205 Usually this means the macro was only invoked conditionally." >&2;}
17206 { (exit 1); exit 1; }; }
17208 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
17209 { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
17210 Usually this means the macro was only invoked conditionally." >&5
17211 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
17212 Usually this means the macro was only invoked conditionally." >&2;}
17213 { (exit 1); exit 1; }; }
17215 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
17216 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
17217 Usually this means the macro was only invoked conditionally." >&5
17218 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
17219 Usually this means the macro was only invoked conditionally." >&2;}
17220 { (exit 1); exit 1; }; }
17222 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
17223 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
17224 Usually this means the macro was only invoked conditionally." >&5
17225 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
17226 Usually this means the macro was only invoked conditionally." >&2;}
17227 { (exit 1); exit 1; }; }
17229 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
17230 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
17231 Usually this means the macro was only invoked conditionally." >&5
17232 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
17233 Usually this means the macro was only invoked conditionally." >&2;}
17234 { (exit 1); exit 1; }; }
17236 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
17237 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
17238 Usually this means the macro was only invoked conditionally." >&5
17239 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
17240 Usually this means the macro was only invoked conditionally." >&2;}
17241 { (exit 1); exit 1; }; }
17243 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
17244 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
17245 Usually this means the macro was only invoked conditionally." >&5
17246 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
17247 Usually this means the macro was only invoked conditionally." >&2;}
17248 { (exit 1); exit 1; }; }
17250 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
17251 { { echo "$as_me:$LINENO: error: conditional \"USE_LIBGCJ_BC\" was never defined.
17252 Usually this means the macro was only invoked conditionally." >&5
17253 echo "$as_me: error: conditional \"USE_LIBGCJ_BC\" was never defined.
17254 Usually this means the macro was only invoked conditionally." >&2;}
17255 { (exit 1); exit 1; }; }
17257 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
17258 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
17259 Usually this means the macro was only invoked conditionally." >&5
17260 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
17261 Usually this means the macro was only invoked conditionally." >&2;}
17262 { (exit 1); exit 1; }; }
17264 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
17265 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
17266 Usually this means the macro was only invoked conditionally." >&5
17267 echo "$as_me: error: conditional \"NATIVE\" was never defined.
17268 Usually this means the macro was only invoked conditionally." >&2;}
17269 { (exit 1); exit 1; }; }
17271 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
17272 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SHARED\" was never defined.
17273 Usually this means the macro was only invoked conditionally." >&5
17274 echo "$as_me: error: conditional \"ENABLE_SHARED\" was never defined.
17275 Usually this means the macro was only invoked conditionally." >&2;}
17276 { (exit 1); exit 1; }; }
17278 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
17279 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
17280 Usually this means the macro was only invoked conditionally." >&5
17281 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
17282 Usually this means the macro was only invoked conditionally." >&2;}
17283 { (exit 1); exit 1; }; }
17286 : ${CONFIG_STATUS=./config.status}
17287 ac_clean_files_save
=$ac_clean_files
17288 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17289 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17290 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17291 cat >$CONFIG_STATUS <<_ACEOF
17293 # Generated by $as_me.
17294 # Run this file to recreate the current configuration.
17295 # Compiler output produced by configure, useful for debugging
17296 # configure, is in config.log if it exists.
17299 ac_cs_recheck=false
17301 SHELL=\${CONFIG_SHELL-$SHELL}
17304 cat >>$CONFIG_STATUS <<\_ACEOF
17305 ## --------------------- ##
17306 ## M4sh Initialization. ##
17307 ## --------------------- ##
17309 # Be Bourne compatible
17310 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
17313 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17314 # is contrary to our usage. Disable this feature.
17315 alias -g '${1+"$@"}'='"$@"'
17316 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
17319 DUALCASE
=1; export DUALCASE
# for MKS sh
17321 # Support unset when possible.
17322 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
17329 # Work around bugs in pre-3.0 UWIN ksh.
17330 $as_unset ENV MAIL MAILPATH
17337 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17338 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17339 LC_TELEPHONE LC_TIME
17341 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17342 eval $as_var=C
; export $as_var
17348 # Required to use basename.
17349 if expr a
: '\(a\)' >/dev
/null
2>&1; then
17355 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
17356 as_basename
=basename
17362 # Name of the executable.
17363 as_me
=`$as_basename "$0" ||
17364 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17365 X"$0" : 'X\(//\)$' \| \
17366 X"$0" : 'X\(/\)$' \| \
17367 . : '\(.\)' 2>/dev/null ||
17369 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17370 /^X\/\(\/\/\)$/{ s//\1/; q; }
17371 /^X\/\(\/\).*/{ s//\1/; q; }
17375 # PATH needs CR, and LINENO needs CR and PATH.
17376 # Avoid depending upon Character Ranges.
17377 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
17378 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17379 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
17380 as_cr_digits
='0123456789'
17381 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17383 # The user is always right.
17384 if test "${PATH_SEPARATOR+set}" != set; then
17385 echo "#! /bin/sh" >conf$$.sh
17386 echo "exit 0" >>conf$$.sh
17388 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
17397 as_lineno_1
=$LINENO
17398 as_lineno_2
=$LINENO
17399 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
17400 test "x$as_lineno_1" != "x$as_lineno_2" &&
17401 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
17402 # Find who we are. Look in the path if we contain no path at all
17405 *[\\/]* ) as_myself
=$0 ;;
17406 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17407 for as_dir
in $PATH
17410 test -z "$as_dir" && as_dir
=.
17411 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
17416 # We did not find ourselves, most probably we were run as `sh COMMAND'
17417 # in which case we are not to be found in the path.
17418 if test "x$as_myself" = x
; then
17421 if test ! -f "$as_myself"; then
17422 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17423 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17424 { (exit 1); exit 1; }; }
17426 case $CONFIG_SHELL in
17428 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17429 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
17432 test -z "$as_dir" && as_dir
=.
17433 for as_base
in sh bash ksh sh5
; do
17436 if ("$as_dir/$as_base" -c '
17437 as_lineno_1=$LINENO
17438 as_lineno_2=$LINENO
17439 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17440 test "x$as_lineno_1" != "x$as_lineno_2" &&
17441 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
17442 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
17443 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
17444 CONFIG_SHELL
=$as_dir/$as_base
17445 export CONFIG_SHELL
17446 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17454 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17455 # uniformly replaced by the line number. The first 'sed' inserts a
17456 # line-number line before each line; the second 'sed' does the real
17457 # work. The second script uses 'N' to pair each line-number line
17458 # with the numbered line, and appends trailing '-' during
17459 # substitution so that $LINENO is not a special case at line end.
17460 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17461 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17462 sed '=' <$as_myself |
17467 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17470 s,^['$as_cr_digits']*\n,,
17471 ' >$as_me.lineno
&&
17472 chmod +x
$as_me.lineno ||
17473 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17474 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17475 { (exit 1); exit 1; }; }
17477 # Don't try to exec as it changes $[0], causing all sort of problems
17478 # (the dirname of $[0] is not the place where we might find the
17479 # original and so on. Autoconf is especially sensible to this).
17481 # Exit status is that of the last command.
17486 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17487 *c
*,-n*) ECHO_N
= ECHO_C
='
17489 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
17490 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
17493 if expr a
: '\(a\)' >/dev
/null
2>&1; then
17499 rm -f conf$$ conf$$.exe conf$$.
file
17501 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17502 # We could just check for DJGPP; but this test a) works b) is more generic
17503 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17504 if test -f conf$$.exe
; then
17505 # Don't use ln at all; we don't have any links
17510 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17515 rm -f conf$$ conf$$.exe conf$$.
file
17517 if mkdir
-p .
2>/dev
/null
; then
17520 test -d .
/-p && rmdir .
/-p
17524 as_executable_p
="test -f"
17526 # Sed expression to map a string onto a valid CPP name.
17527 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17529 # Sed expression to map a string onto a valid variable name.
17530 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17534 # We need space, tab and new line, in precisely that order.
17544 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17545 # report actual input values of CONFIG_FILES etc. instead of their
17546 # values after options handling. Logging --version etc. is OK.
17550 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17551 ## Running $as_me. ##
17556 This file was extended by libjava $as_me version-unused, which was
17557 generated by GNU Autoconf 2.59. Invocation command line was
17559 CONFIG_FILES = $CONFIG_FILES
17560 CONFIG_HEADERS = $CONFIG_HEADERS
17561 CONFIG_LINKS = $CONFIG_LINKS
17562 CONFIG_COMMANDS = $CONFIG_COMMANDS
17566 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17570 # Files that config.status was made for.
17571 if test -n "$ac_config_files"; then
17572 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17575 if test -n "$ac_config_headers"; then
17576 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17579 if test -n "$ac_config_links"; then
17580 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17583 if test -n "$ac_config_commands"; then
17584 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17587 cat >>$CONFIG_STATUS <<\_ACEOF
17590 \`$as_me' instantiates files from templates according to the
17591 current configuration.
17593 Usage: $0 [OPTIONS] [FILE]...
17595 -h, --help print this help, then exit
17596 -V, --version print version number, then exit
17597 -q, --quiet do not print progress messages
17598 -d, --debug don't remove temporary files
17599 --recheck update $as_me by reconfiguring in the same conditions
17600 --file=FILE[:TEMPLATE]
17601 instantiate the configuration file FILE
17602 --header=FILE[:TEMPLATE]
17603 instantiate the configuration header FILE
17605 Configuration files:
17608 Configuration headers:
17611 Configuration links:
17614 Configuration commands:
17617 Report bugs to <bug-autoconf@gnu.org>."
17620 cat >>$CONFIG_STATUS <<_ACEOF
17622 libjava config.status version-unused
17623 configured by $0, generated by GNU Autoconf 2.59,
17624 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17626 Copyright (C) 2003 Free Software Foundation, Inc.
17627 This config.status script is free software; the Free Software Foundation
17628 gives unlimited permission to copy, distribute and modify it."
17633 cat >>$CONFIG_STATUS <<\_ACEOF
17634 # If no file are specified by the user, then we need to provide default
17635 # value. By we need to know if files were specified by the user.
17641 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
17642 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
17650 *) # This is not an option, so the user has probably given explicit
17653 ac_need_defaults
=false
;;
17657 # Handling of the options.
17659 cat >>$CONFIG_STATUS <<\_ACEOF
17660 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
17662 --version |
--vers* |
-V )
17663 echo "$ac_cs_version"; exit 0 ;;
17665 # Conflict between --help and --header
17666 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17667 Try \`$0 --help' for more information." >&5
17668 echo "$as_me: error: ambiguous option: $1
17669 Try \`$0 --help' for more information." >&2;}
17670 { (exit 1); exit 1; }; };;
17671 --help |
--hel |
-h )
17672 echo "$ac_cs_usage"; exit 0 ;;
17673 --debug |
--d* |
-d )
17675 --file |
--fil |
--fi |
--f )
17677 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
17678 ac_need_defaults
=false
;;
17679 --header |
--heade |
--head |
--hea )
17681 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
17682 ac_need_defaults
=false
;;
17683 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17684 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17687 # This is an error.
17688 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17689 Try \`$0 --help' for more information." >&5
17690 echo "$as_me: error: unrecognized option: $1
17691 Try \`$0 --help' for more information." >&2;}
17692 { (exit 1); exit 1; }; } ;;
17694 *) ac_config_targets
="$ac_config_targets $1" ;;
17700 ac_configure_extra_args
=
17702 if $ac_cs_silent; then
17704 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17708 cat >>$CONFIG_STATUS <<_ACEOF
17709 if \$ac_cs_recheck; then
17710 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17711 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17716 cat >>$CONFIG_STATUS <<_ACEOF
17718 # INIT-COMMANDS section.
17725 with_multisubdir="$with_multisubdir"
17726 with_multisrctop="$with_multisrctop"
17727 with_target_subdir="$with_target_subdir"
17728 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17729 multi_basedir="$multi_basedir"
17730 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17732 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17736 with_multisubdir=${with_multisubdir}
17737 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17738 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17739 multi_basedir=${multi_basedir}
17742 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
17749 cat >>$CONFIG_STATUS <<\_ACEOF
17750 for ac_config_target
in $ac_config_targets
17752 case "$ac_config_target" in
17753 # Handling of arguments.
17754 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
17755 "libgcj.pc" ) CONFIG_FILES
="$CONFIG_FILES libgcj.pc" ;;
17756 "libgcj.spec" ) CONFIG_FILES
="$CONFIG_FILES libgcj.spec" ;;
17757 "libgcj-test.spec" ) CONFIG_FILES
="$CONFIG_FILES libgcj-test.spec" ;;
17758 "gcj/Makefile" ) CONFIG_FILES
="$CONFIG_FILES gcj/Makefile" ;;
17759 "include/Makefile" ) CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
17760 "testsuite/Makefile" ) CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
17761 "scripts/jar" ) CONFIG_FILES
="$CONFIG_FILES scripts/jar" ;;
17762 "include/platform.h" ) CONFIG_LINKS
="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
17763 "java/io/natFile.cc" ) CONFIG_LINKS
="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
17764 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS
="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
17765 "java/net/natVMInetAddress.cc" ) CONFIG_LINKS
="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
17766 "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS
="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
17767 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS
="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
17768 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS
="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
17769 "gnu/java/nio/natVMPipe.cc" ) CONFIG_LINKS
="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
17770 "gnu/java/nio/natVMSelector.cc" ) CONFIG_LINKS
="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
17771 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS
="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
17772 "include/java-gc.h" ) CONFIG_LINKS
="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
17773 "include/java-threads.h" ) CONFIG_LINKS
="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
17774 "sysdep/locks.h" ) CONFIG_LINKS
="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
17775 "sysdep/backtrace.h" ) CONFIG_LINKS
="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
17776 "sysdep/descriptor.h" ) CONFIG_LINKS
="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
17777 "include/java-signal.h" ) CONFIG_LINKS
="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
17778 "include/java-signal-aux.h" ) CONFIG_LINKS
="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
17779 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
17780 "depfiles" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
17781 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
17782 "include/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS include/config.h" ;;
17783 "gcj/libgcj-config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
17784 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17785 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17786 { (exit 1); exit 1; }; };;
17790 # If the user did not use the arguments to specify the items to instantiate,
17791 # then the envvar interface is used. Set only those that are not.
17792 # We use the long form for the default assignment because of an extremely
17793 # bizarre bug on SunOS 4.1.3.
17794 if $ac_need_defaults; then
17795 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17796 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17797 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
17798 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
17801 # Have a temporary directory for convenience. Make it in the build tree
17802 # simply because there is no reason to put it here, and in addition,
17803 # creating and moving files from /tmp can sometimes cause problems.
17804 # Create a temporary directory, and hook for its removal unless debugging.
17807 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17808 trap '{ (exit 1); exit 1; }' 1 2 13 15
17811 # Create a (secure) tmp directory for tmp files.
17814 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17815 test -n "$tmp" && test -d "$tmp"
17818 tmp
=.
/confstat$$
-$RANDOM
17819 (umask 077 && mkdir
$tmp)
17822 echo "$me: cannot create a temporary directory in ." >&2
17823 { (exit 1); exit 1; }
17828 cat >>$CONFIG_STATUS <<_ACEOF
17831 # CONFIG_FILES section.
17834 # No need to generate the scripts if there are no CONFIG_FILES.
17835 # This happens for instance when ./config.status config.h
17836 if test -n "\$CONFIG_FILES"; then
17837 # Protect against being on the right side of a sed subst in config.status.
17838 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17839 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17840 s,@SHELL@,$SHELL,;t t
17841 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17842 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17843 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17844 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17845 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17846 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17847 s,@exec_prefix@,$exec_prefix,;t t
17848 s,@prefix@,$prefix,;t t
17849 s,@program_transform_name@,$program_transform_name,;t t
17850 s,@bindir@,$bindir,;t t
17851 s,@sbindir@,$sbindir,;t t
17852 s,@libexecdir@,$libexecdir,;t t
17853 s,@datadir@,$datadir,;t t
17854 s,@sysconfdir@,$sysconfdir,;t t
17855 s,@sharedstatedir@,$sharedstatedir,;t t
17856 s,@localstatedir@,$localstatedir,;t t
17857 s,@libdir@,$libdir,;t t
17858 s,@includedir@,$includedir,;t t
17859 s,@oldincludedir@,$oldincludedir,;t t
17860 s,@infodir@,$infodir,;t t
17861 s,@mandir@,$mandir,;t t
17862 s,@build_alias@,$build_alias,;t t
17863 s,@host_alias@,$host_alias,;t t
17864 s,@target_alias@,$target_alias,;t t
17865 s,@DEFS@,$DEFS,;t t
17866 s,@ECHO_C@,$ECHO_C,;t t
17867 s,@ECHO_N@,$ECHO_N,;t t
17868 s,@ECHO_T@,$ECHO_T,;t t
17869 s,@LIBS@,$LIBS,;t t
17870 s,@build@,$build,;t t
17871 s,@build_cpu@,$build_cpu,;t t
17872 s,@build_vendor@,$build_vendor,;t t
17873 s,@build_os@,$build_os,;t t
17874 s,@build_libsubdir@,$build_libsubdir,;t t
17875 s,@build_subdir@,$build_subdir,;t t
17876 s,@host_subdir@,$host_subdir,;t t
17877 s,@target_subdir@,$target_subdir,;t t
17878 s,@multi_basedir@,$multi_basedir,;t t
17879 s,@host@,$host,;t t
17880 s,@host_cpu@,$host_cpu,;t t
17881 s,@host_vendor@,$host_vendor,;t t
17882 s,@host_os@,$host_os,;t t
17883 s,@target@,$target,;t t
17884 s,@target_cpu@,$target_cpu,;t t
17885 s,@target_vendor@,$target_vendor,;t t
17886 s,@target_os@,$target_os,;t t
17887 s,@target_noncanonical@,$target_noncanonical,;t t
17888 s,@LN_S@,$LN_S,;t t
17889 s,@mkinstalldirs@,$mkinstalldirs,;t t
17890 s,@JAVA_MAINTAINER_MODE_TRUE@,$JAVA_MAINTAINER_MODE_TRUE,;t t
17891 s,@JAVA_MAINTAINER_MODE_FALSE@,$JAVA_MAINTAINER_MODE_FALSE,;t t
17893 s,@ac_ct_CC@,$ac_ct_CC,;t t
17894 s,@EXEEXT@,$EXEEXT,;t t
17895 s,@OBJEXT@,$OBJEXT,;t t
17897 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17898 s,@CFLAGS@,$CFLAGS,;t t
17899 s,@CXXFLAGS@,$CXXFLAGS,;t t
17900 s,@LDFLAGS@,$LDFLAGS,;t t
17901 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17902 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17903 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17904 s,@CYGPATH_W@,$CYGPATH_W,;t t
17905 s,@PACKAGE@,$PACKAGE,;t t
17906 s,@VERSION@,$VERSION,;t t
17907 s,@ACLOCAL@,$ACLOCAL,;t t
17908 s,@AUTOCONF@,$AUTOCONF,;t t
17909 s,@AUTOMAKE@,$AUTOMAKE,;t t
17910 s,@AUTOHEADER@,$AUTOHEADER,;t t
17911 s,@MAKEINFO@,$MAKEINFO,;t t
17912 s,@install_sh@,$install_sh,;t t
17913 s,@STRIP@,$STRIP,;t t
17914 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17915 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17916 s,@mkdir_p@,$mkdir_p,;t t
17918 s,@SET_MAKE@,$SET_MAKE,;t t
17919 s,@am__leading_dot@,$am__leading_dot,;t t
17920 s,@AMTAR@,$AMTAR,;t t
17921 s,@am__tar@,$am__tar,;t t
17922 s,@am__untar@,$am__untar,;t t
17923 s,@DEPDIR@,$DEPDIR,;t t
17924 s,@am__include@,$am__include,;t t
17925 s,@am__quote@,$am__quote,;t t
17926 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17927 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17928 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17929 s,@CCDEPMODE@,$CCDEPMODE,;t t
17930 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17931 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17932 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17933 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17934 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17936 s,@ac_ct_AS@,$ac_ct_AS,;t t
17938 s,@ac_ct_LD@,$ac_ct_LD,;t t
17940 s,@ac_ct_AR@,$ac_ct_AR,;t t
17941 s,@RANLIB@,$RANLIB,;t t
17942 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17945 s,@UNZIP@,$UNZIP,;t t
17946 s,@BASH_JAR_TRUE@,$BASH_JAR_TRUE,;t t
17947 s,@BASH_JAR_FALSE@,$BASH_JAR_FALSE,;t t
17948 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17949 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17950 s,@MAINT@,$MAINT,;t t
17951 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
17952 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
17953 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
17954 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
17955 s,@LIBGCJ_LD_SYMBOLIC_FUNCTIONS@,$LIBGCJ_LD_SYMBOLIC_FUNCTIONS,;t t
17956 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
17957 s,@TOOLKIT@,$TOOLKIT,;t t
17958 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
17959 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
17960 s,@X_AWT_TRUE@,$X_AWT_TRUE,;t t
17961 s,@X_AWT_FALSE@,$X_AWT_FALSE,;t t
17962 s,@GCJ_FOR_ECJX@,$GCJ_FOR_ECJX,;t t
17963 s,@GCJH@,$GCJH,;t t
17964 s,@host_exeext@,$host_exeext,;t t
17965 s,@INCLTDL@,$INCLTDL,;t t
17966 s,@LIBLTDL@,$LIBLTDL,;t t
17967 s,@DIRLTDL@,$DIRLTDL,;t t
17968 s,@LIBTOOL@,$LIBTOOL,;t t
17969 s,@CXXCPP@,$CXXCPP,;t t
17970 s,@CPPFLAGS@,$CPPFLAGS,;t t
17972 s,@GCJFLAGS@,$GCJFLAGS,;t t
17973 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
17974 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
17975 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
17976 s,@subdirs@,$subdirs,;t t
17977 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
17978 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
17979 s,@ECJ_BUILD_JAR@,$ECJ_BUILD_JAR,;t t
17980 s,@ECJ_JAR@,$ECJ_JAR,;t t
17981 s,@BUILD_ECJ1_TRUE@,$BUILD_ECJ1_TRUE,;t t
17982 s,@BUILD_ECJ1_FALSE@,$BUILD_ECJ1_FALSE,;t t
17983 s,@INSTALL_ECJ_JAR_TRUE@,$INSTALL_ECJ_JAR_TRUE,;t t
17984 s,@INSTALL_ECJ_JAR_FALSE@,$INSTALL_ECJ_JAR_FALSE,;t t
17985 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
17986 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
17987 s,@JAVA_HOME@,$JAVA_HOME,;t t
17988 s,@INTERPRETER@,$INTERPRETER,;t t
17989 s,@LIBFFI@,$LIBFFI,;t t
17990 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
17991 s,@PLATFORM@,$PLATFORM,;t t
17993 s,@EGREP@,$EGREP,;t t
17994 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
17995 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
17996 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
17997 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
17998 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
17999 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
18000 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
18001 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
18002 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
18003 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
18004 s,@X_CFLAGS@,$X_CFLAGS,;t t
18005 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
18006 s,@X_LIBS@,$X_LIBS,;t t
18007 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
18008 s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
18009 s,@GCLIBS@,$GCLIBS,;t t
18010 s,@GCINCS@,$GCINCS,;t t
18011 s,@GCDEPS@,$GCDEPS,;t t
18012 s,@GCSPEC@,$GCSPEC,;t t
18013 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
18014 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
18015 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
18016 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
18017 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
18018 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
18019 s,@THREADLIBS@,$THREADLIBS,;t t
18020 s,@THREADINCS@,$THREADINCS,;t t
18021 s,@THREADDEPS@,$THREADDEPS,;t t
18022 s,@THREADSPEC@,$THREADSPEC,;t t
18023 s,@THREADSTARTFILESPEC@,$THREADSTARTFILESPEC,;t t
18024 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
18025 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
18026 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
18027 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
18028 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
18029 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
18030 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
18031 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
18032 s,@USE_LIBGCJ_BC_TRUE@,$USE_LIBGCJ_BC_TRUE,;t t
18033 s,@USE_LIBGCJ_BC_FALSE@,$USE_LIBGCJ_BC_FALSE,;t t
18034 s,@LIBGCJ_SPEC@,$LIBGCJ_SPEC,;t t
18035 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
18036 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
18037 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
18038 s,@LIBICONV@,$LIBICONV,;t t
18039 s,@LTLIBICONV@,$LTLIBICONV,;t t
18040 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
18041 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
18042 s,@GTK_LIBS@,$GTK_LIBS,;t t
18043 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
18044 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
18045 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
18046 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
18047 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
18048 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
18049 s,@ZLIBS@,$ZLIBS,;t t
18050 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
18051 s,@ZINCS@,$ZINCS,;t t
18052 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
18053 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
18054 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
18055 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
18056 s,@IEEESPEC@,$IEEESPEC,;t t
18057 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
18058 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
18059 s,@ENABLE_SHARED_TRUE@,$ENABLE_SHARED_TRUE,;t t
18060 s,@ENABLE_SHARED_FALSE@,$ENABLE_SHARED_FALSE,;t t
18061 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
18062 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
18063 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
18064 s,@toolexecdir@,$toolexecdir,;t t
18065 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
18066 s,@toolexeclibdir@,$toolexeclibdir,;t t
18067 s,@dbexecdir@,$dbexecdir,;t t
18068 s,@GCJVERSION@,$GCJVERSION,;t t
18069 s,@gxx_include_dir@,$gxx_include_dir,;t t
18070 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
18071 s,@ALLOCA@,$ALLOCA,;t t
18072 s,@PERL@,$PERL,;t t
18073 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
18074 s,@LD_START_STATIC_SPEC@,$LD_START_STATIC_SPEC,;t t
18075 s,@LD_FINISH_STATIC_SPEC@,$LD_FINISH_STATIC_SPEC,;t t
18076 s,@here@,$here,;t t
18077 s,@LIBOBJS@,$LIBOBJS,;t t
18078 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18083 cat >>$CONFIG_STATUS <<\_ACEOF
18084 # Split the substitutions into bite-sized pieces for seds with
18085 # small command number limits, like on Digital OSF/1 and HP-UX.
18086 ac_max_sed_lines
=48
18087 ac_sed_frag
=1 # Number of current file.
18088 ac_beg
=1 # First line for current file.
18089 ac_end
=$ac_max_sed_lines # Line after last line for current file.
18092 while $ac_more_lines; do
18093 if test $ac_beg -gt 1; then
18094 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
18096 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
18098 if test ! -s $tmp/subs.frag
; then
18099 ac_more_lines
=false
18101 # The purpose of the label and of the branching condition is to
18102 # speed up the sed processing (if there are no `@' at all, there
18103 # is no need to browse any of the substitutions).
18104 # These are the two extra sed commands mentioned above.
18106 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
18107 if test -z "$ac_sed_cmds"; then
18108 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
18110 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18112 ac_sed_frag
=`expr $ac_sed_frag + 1`
18114 ac_end
=`expr $ac_end + $ac_max_sed_lines`
18117 if test -z "$ac_sed_cmds"; then
18120 fi # test -n "$CONFIG_FILES"
18123 cat >>$CONFIG_STATUS <<\_ACEOF
18124 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
18125 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18127 - |
*:- |
*:-:* ) # input from stdin
18129 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18130 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18131 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18132 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18133 * ) ac_file_in
=$ac_file.
in ;;
18136 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18137 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
18138 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18139 X"$ac_file" : 'X\(//\)[^/]' \| \
18140 X"$ac_file" : 'X\(//\)$' \| \
18141 X"$ac_file" : 'X\(/\)' \| \
18142 . : '\(.\)' 2>/dev/null ||
18144 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18145 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18146 /^X\(\/\/\)$/{ s//\1/; q; }
18147 /^X\(\/\).*/{ s//\1/; q; }
18149 { if $as_mkdir_p; then
18154 while test ! -d "$as_dir"; do
18155 as_dirs
="$as_dir $as_dirs"
18156 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
18157 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18158 X"$as_dir" : 'X\(//\)[^/]' \| \
18159 X"$as_dir" : 'X\(//\)$' \| \
18160 X"$as_dir" : 'X\(/\)' \| \
18161 . : '\(.\)' 2>/dev/null ||
18163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18164 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18165 /^X\(\/\/\)$/{ s//\1/; q; }
18166 /^X\(\/\).*/{ s//\1/; q; }
18169 test ! -n "$as_dirs" || mkdir
$as_dirs
18170 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18171 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18172 { (exit 1); exit 1; }; }; }
18176 if test "$ac_dir" != .
; then
18177 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18178 # A "../" for each directory in $ac_dir_suffix.
18179 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18181 ac_dir_suffix
= ac_top_builddir
=
18185 .
) # No --srcdir option. We are building in place.
18187 if test -z "$ac_top_builddir"; then
18190 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
18192 [\\/]* | ?
:[\\/]* ) # Absolute path.
18193 ac_srcdir
=$srcdir$ac_dir_suffix;
18194 ac_top_srcdir
=$srcdir ;;
18195 *) # Relative path.
18196 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
18197 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
18200 # Do not use `cd foo && pwd` to compute absolute paths, because
18201 # the directories may not exist.
18203 .
) ac_abs_builddir
="$ac_dir";;
18206 .
) ac_abs_builddir
=`pwd`;;
18207 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
18208 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
18211 case $ac_abs_builddir in
18212 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
18214 case ${ac_top_builddir}.
in
18215 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
18216 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
18217 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
18220 case $ac_abs_builddir in
18221 .
) ac_abs_srcdir
=$ac_srcdir;;
18224 .
) ac_abs_srcdir
=$ac_abs_builddir;;
18225 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
18226 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
18229 case $ac_abs_builddir in
18230 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
18232 case $ac_top_srcdir in
18233 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
18234 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
18235 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
18241 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
18242 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
18245 if test x
"$ac_file" != x-
; then
18246 { echo "$as_me:$LINENO: creating $ac_file" >&5
18247 echo "$as_me: creating $ac_file" >&6;}
18250 # Let's still pretend it is `configure' which instantiates (i.e., don't
18251 # use $as_me), people would be surprised to read:
18252 # /* config.h. Generated by config.status. */
18253 if test x
"$ac_file" = x-
; then
18256 configure_input
="$ac_file. "
18258 configure_input
=$configure_input"Generated from `echo $ac_file_in |
18259 sed 's,.*/,,'` by configure."
18261 # First look for the input files in the build tree, otherwise in the
18263 ac_file_inputs
=`IFS=:
18264 for f in $ac_file_in; do
18266 -) echo $tmp/stdin ;;
18268 # Absolute (can't be DOS-style, as IFS=:)
18269 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18270 echo "$as_me: error: cannot find input file: $f" >&2;}
18271 { (exit 1); exit 1; }; }
18274 if test -f "$f"; then
18277 elif test -f "$srcdir/$f"; then
18282 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18283 echo "$as_me: error: cannot find input file: $f" >&2;}
18284 { (exit 1); exit 1; }; }
18287 done` ||
{ (exit 1); exit 1; }
18289 cat >>$CONFIG_STATUS <<_ACEOF
18293 cat >>$CONFIG_STATUS <<\_ACEOF
18295 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18296 s
,@configure_input@
,$configure_input,;t t
18297 s
,@srcdir@
,$ac_srcdir,;t t
18298 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
18299 s
,@top_srcdir@
,$ac_top_srcdir,;t t
18300 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
18301 s
,@builddir@
,$ac_builddir,;t t
18302 s
,@abs_builddir@
,$ac_abs_builddir,;t t
18303 s
,@top_builddir@
,$ac_top_builddir,;t t
18304 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
18305 s
,@INSTALL@
,$ac_INSTALL,;t t
18306 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18308 if test x"$ac_file" != x-; then
18309 mv $tmp/out $ac_file
18315 # Run the commands associated with the file.
18317 scripts/jar ) chmod +x scripts/jar ;;
18321 cat >>$CONFIG_STATUS <<\_ACEOF
18324 # CONFIG_HEADER section.
18327 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
18328 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18330 # ac_d sets the value in "#define NAME VALUE" lines.
18331 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18332 ac_dB
='[ ].*$,\1#\2'
18335 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18336 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18337 ac_uB
='$,\1#\2define\3'
18341 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
18342 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18344 - |
*:- |
*:-:* ) # input from stdin
18346 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18347 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18348 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18349 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18350 * ) ac_file_in
=$ac_file.
in ;;
18353 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
18354 echo "$as_me: creating $ac_file" >&6;}
18356 # First look for the input files in the build tree, otherwise in the
18358 ac_file_inputs
=`IFS=:
18359 for f in $ac_file_in; do
18361 -) echo $tmp/stdin ;;
18363 # Absolute (can't be DOS-style, as IFS=:)
18364 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18365 echo "$as_me: error: cannot find input file: $f" >&2;}
18366 { (exit 1); exit 1; }; }
18367 # Do quote $f, to prevent DOS paths from being IFS'd.
18370 if test -f "$f"; then
18373 elif test -f "$srcdir/$f"; then
18378 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18379 echo "$as_me: error: cannot find input file: $f" >&2;}
18380 { (exit 1); exit 1; }; }
18383 done` ||
{ (exit 1); exit 1; }
18384 # Remove the trailing spaces.
18385 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18389 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18390 # `conftest.undefs', that substitutes the proper values into
18391 # config.h.in to produce config.h. The first handles `#define'
18392 # templates, and the second `#undef' templates.
18393 # And first: Protect against being on the right side of a sed subst in
18394 # config.status. Protect against being in an unquoted here document
18395 # in config.status.
18396 rm -f conftest.defines conftest.undefs
18397 # Using a here document instead of a string reduces the quoting nightmare.
18398 # Putting comments in sed scripts is not portable.
18400 # `end' is used to avoid that the second main sed command (meant for
18401 # 0-ary CPP macros) applies to n-ary macro definitions.
18402 # See the Autoconf documentation for `clear'.
18403 cat >confdef2sed.
sed <<\_ACEOF
18408 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18410 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18413 # If some macros were called several times there might be several times
18414 # the same #defines, which is useless. Nevertheless, we may not want to
18415 # sort them, since we want the *last* AC-DEFINE to be honored.
18416 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18417 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18418 rm -f confdef2sed.sed
18420 # This sed command replaces #undef with comments. This is necessary, for
18421 # example, in the case of _POSIX_SOURCE, which is predefined and required
18422 # on some systems where configure will not decide to define it.
18423 cat >>conftest.undefs <<\_ACEOF
18424 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18427 # Break up conftest.defines because some shells have a limit on the size
18428 # of here documents, and old seds have small limits too (100 cmds).
18429 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18430 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18431 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18432 echo ' :' >>$CONFIG_STATUS
18433 rm -f conftest.tail
18434 while grep . conftest.defines >/dev/null
18436 # Write a limited-size here document to $tmp/defines.sed.
18437 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18438 # Speed up: don't consider the non `#define' lines.
18439 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18440 # Work around the forget-to-reset-the-flag bug.
18441 echo 't clr' >>$CONFIG_STATUS
18442 echo ': clr' >>$CONFIG_STATUS
18443 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
18445 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18447 mv $tmp/out $tmp/in
18449 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
18450 rm -f conftest.defines
18451 mv conftest.
tail conftest.defines
18453 rm -f conftest.defines
18454 echo ' fi # grep' >>$CONFIG_STATUS
18455 echo >>$CONFIG_STATUS
18457 # Break up conftest.undefs because some shells have a limit on the size
18458 # of here documents, and old seds have small limits too (100 cmds).
18459 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18460 rm -f conftest.
tail
18461 while grep . conftest.undefs
>/dev
/null
18463 # Write a limited-size here document to $tmp/undefs.sed.
18464 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18465 # Speed up: don't consider the non
`#undef'
18466 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18467 # Work around the forget-to-reset-the-flag bug.
18468 echo 't clr' >>$CONFIG_STATUS
18469 echo ': clr' >>$CONFIG_STATUS
18470 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18472 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18474 mv $tmp/out $tmp/in
18476 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18477 rm -f conftest.undefs
18478 mv conftest.tail conftest.undefs
18480 rm -f conftest.undefs
18482 cat >>$CONFIG_STATUS <<\_ACEOF
18483 # Let's still pretend it is `configure
' which instantiates (i.e., don't
18484 # use $as_me), people would be surprised to read:
18485 # /* config.h. Generated by config.status. */
18486 if test x
"$ac_file" = x-
; then
18487 echo "/* Generated by configure. */" >$tmp/config.h
18489 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18491 cat $tmp/in >>$tmp/config.h
18493 if test x
"$ac_file" != x-
; then
18494 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
18495 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18496 echo "$as_me: $ac_file is unchanged" >&6;}
18498 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
18499 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18500 X"$ac_file" : 'X\(//\)[^/]' \| \
18501 X"$ac_file" : 'X\(//\)$' \| \
18502 X"$ac_file" : 'X\(/\)' \| \
18503 . : '\(.\)' 2>/dev/null ||
18505 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18506 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18507 /^X\(\/\/\)$/{ s//\1/; q; }
18508 /^X\(\/\).*/{ s//\1/; q; }
18510 { if $as_mkdir_p; then
18515 while test ! -d "$as_dir"; do
18516 as_dirs
="$as_dir $as_dirs"
18517 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
18518 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18519 X"$as_dir" : 'X\(//\)[^/]' \| \
18520 X"$as_dir" : 'X\(//\)$' \| \
18521 X"$as_dir" : 'X\(/\)' \| \
18522 . : '\(.\)' 2>/dev/null ||
18524 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18525 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18526 /^X\(\/\/\)$/{ s//\1/; q; }
18527 /^X\(\/\).*/{ s//\1/; q; }
18530 test ! -n "$as_dirs" || mkdir
$as_dirs
18531 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18532 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18533 { (exit 1); exit 1; }; }; }
18536 mv $tmp/config.h
$ac_file
18540 rm -f $tmp/config.h
18542 # Compute $ac_file's index in $config_headers.
18544 for _am_header
in $config_headers :; do
18545 case $_am_header in
18546 $ac_file |
$ac_file:* )
18549 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
18552 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
18553 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18554 X$ac_file : 'X\(//\)[^/]' \| \
18555 X$ac_file : 'X\(//\)$' \| \
18556 X$ac_file : 'X\(/\)' \| \
18557 . : '\(.\)' 2>/dev/null ||
18559 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18560 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18561 /^X\(\/\/\)$/{ s//\1/; q; }
18562 /^X\(\/\).*/{ s//\1/; q; }
18563 s/.*/./; q'`/stamp-h
$_am_stamp_count
18566 cat >>$CONFIG_STATUS <<\_ACEOF
18569 # CONFIG_LINKS section.
18572 for ac_file
in : $CONFIG_LINKS; do test "x$ac_file" = x
: && continue
18573 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
18574 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18576 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18577 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18579 if test ! -r $srcdir/$ac_source; then
18580 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18581 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18582 { (exit 1); exit 1; }; }
18586 # Make relative symlinks.
18587 ac_dest_dir
=`(dirname "$ac_dest") 2>/dev/null ||
18588 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18589 X"$ac_dest" : 'X\(//\)[^/]' \| \
18590 X"$ac_dest" : 'X\(//\)$' \| \
18591 X"$ac_dest" : 'X\(/\)' \| \
18592 . : '\(.\)' 2>/dev/null ||
18594 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18595 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18596 /^X\(\/\/\)$/{ s//\1/; q; }
18597 /^X\(\/\).*/{ s//\1/; q; }
18599 { if $as_mkdir_p; then
18600 mkdir
-p "$ac_dest_dir"
18602 as_dir
="$ac_dest_dir"
18604 while test ! -d "$as_dir"; do
18605 as_dirs
="$as_dir $as_dirs"
18606 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
18607 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18608 X"$as_dir" : 'X\(//\)[^/]' \| \
18609 X"$as_dir" : 'X\(//\)$' \| \
18610 X"$as_dir" : 'X\(/\)' \| \
18611 . : '\(.\)' 2>/dev/null ||
18613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18614 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18615 /^X\(\/\/\)$/{ s//\1/; q; }
18616 /^X\(\/\).*/{ s//\1/; q; }
18619 test ! -n "$as_dirs" || mkdir
$as_dirs
18620 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
18621 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
18622 { (exit 1); exit 1; }; }; }
18626 if test "$ac_dest_dir" != .
; then
18627 ac_dir_suffix
=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18628 # A "../" for each directory in $ac_dir_suffix.
18629 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18631 ac_dir_suffix
= ac_top_builddir
=
18635 .
) # No --srcdir option. We are building in place.
18637 if test -z "$ac_top_builddir"; then
18640 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
18642 [\\/]* | ?
:[\\/]* ) # Absolute path.
18643 ac_srcdir
=$srcdir$ac_dir_suffix;
18644 ac_top_srcdir
=$srcdir ;;
18645 *) # Relative path.
18646 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
18647 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
18650 # Do not use `cd foo && pwd` to compute absolute paths, because
18651 # the directories may not exist.
18653 .
) ac_abs_builddir
="$ac_dest_dir";;
18655 case "$ac_dest_dir" in
18656 .
) ac_abs_builddir
=`pwd`;;
18657 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dest_dir";;
18658 *) ac_abs_builddir
=`pwd`/"$ac_dest_dir";;
18661 case $ac_abs_builddir in
18662 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
18664 case ${ac_top_builddir}.
in
18665 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
18666 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
18667 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
18670 case $ac_abs_builddir in
18671 .
) ac_abs_srcdir
=$ac_srcdir;;
18674 .
) ac_abs_srcdir
=$ac_abs_builddir;;
18675 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
18676 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
18679 case $ac_abs_builddir in
18680 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
18682 case $ac_top_srcdir in
18683 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
18684 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
18685 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
18691 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
18692 *) ac_rel_source
=$ac_top_builddir$srcdir/$ac_source ;;
18695 # Try a symlink, then a hard link, then a copy.
18696 ln -s $ac_rel_source $ac_dest 2>/dev
/null ||
18697 ln $srcdir/$ac_source $ac_dest 2>/dev
/null ||
18698 cp -p $srcdir/$ac_source $ac_dest ||
18699 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
18700 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
18701 { (exit 1); exit 1; }; }
18704 cat >>$CONFIG_STATUS <<\_ACEOF
18707 # CONFIG_COMMANDS section.
18709 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
18710 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
18711 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18712 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
18713 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18714 X"$ac_dest" : 'X\(//\)[^/]' \| \
18715 X"$ac_dest" : 'X\(//\)$' \| \
18716 X"$ac_dest" : 'X\(/\)' \| \
18717 . : '\(.\)' 2>/dev/null ||
18719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18721 /^X\(\/\/\)$/{ s//\1/; q; }
18722 /^X\(\/\).*/{ s//\1/; q; }
18724 { if $as_mkdir_p; then
18729 while test ! -d "$as_dir"; do
18730 as_dirs
="$as_dir $as_dirs"
18731 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
18732 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18733 X"$as_dir" : 'X\(//\)[^/]' \| \
18734 X"$as_dir" : 'X\(//\)$' \| \
18735 X"$as_dir" : 'X\(/\)' \| \
18736 . : '\(.\)' 2>/dev/null ||
18738 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18739 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18740 /^X\(\/\/\)$/{ s//\1/; q; }
18741 /^X\(\/\).*/{ s//\1/; q; }
18744 test ! -n "$as_dirs" || mkdir
$as_dirs
18745 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18746 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18747 { (exit 1); exit 1; }; }; }
18751 if test "$ac_dir" != .
; then
18752 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18753 # A "../" for each directory in $ac_dir_suffix.
18754 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18756 ac_dir_suffix
= ac_top_builddir
=
18760 .
) # No --srcdir option. We are building in place.
18762 if test -z "$ac_top_builddir"; then
18765 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
18767 [\\/]* | ?
:[\\/]* ) # Absolute path.
18768 ac_srcdir
=$srcdir$ac_dir_suffix;
18769 ac_top_srcdir
=$srcdir ;;
18770 *) # Relative path.
18771 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
18772 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
18775 # Do not use `cd foo && pwd` to compute absolute paths, because
18776 # the directories may not exist.
18778 .
) ac_abs_builddir
="$ac_dir";;
18781 .
) ac_abs_builddir
=`pwd`;;
18782 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
18783 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
18786 case $ac_abs_builddir in
18787 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
18789 case ${ac_top_builddir}.
in
18790 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
18791 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
18792 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
18795 case $ac_abs_builddir in
18796 .
) ac_abs_srcdir
=$ac_srcdir;;
18799 .
) ac_abs_srcdir
=$ac_abs_builddir;;
18800 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
18801 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
18804 case $ac_abs_builddir in
18805 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
18807 case $ac_top_srcdir in
18808 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
18809 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
18810 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
18815 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18816 echo "$as_me: executing $ac_dest commands" >&6;}
18819 # Only add multilib support code if we just rebuilt the top-level
18821 case " $CONFIG_FILES " in
18823 ac_file
=Makefile .
${multi_basedir}/config-ml.
in
18826 depfiles
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
18827 # Strip MF so we end up with the name of the file.
18828 mf
=`echo "$mf" | sed -e 's/:.*$//'`
18829 # Check whether this is an Automake generated Makefile or not.
18830 # We used to match only the files named `Makefile.in', but
18831 # some people rename them; so instead we look at the file content.
18832 # Grep'ing the first line is not enough: some people post-process
18833 # each Makefile.in and add a new line on top of each file to say so.
18834 # So let's grep whole file.
18835 if grep '^#.*generated by automake' $mf > /dev
/null
2>&1; then
18836 dirpart
=`(dirname "$mf") 2>/dev/null ||
18837 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18838 X"$mf" : 'X\(//\)[^/]' \| \
18839 X"$mf" : 'X\(//\)$' \| \
18840 X"$mf" : 'X\(/\)' \| \
18841 . : '\(.\)' 2>/dev/null ||
18843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18844 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18845 /^X\(\/\/\)$/{ s//\1/; q; }
18846 /^X\(\/\).*/{ s//\1/; q; }
18851 # Extract the definition of DEPDIR, am__include, and am__quote
18852 # from the Makefile without running `make'.
18853 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
18854 test -z "$DEPDIR" && continue
18855 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
18856 test -z "am__include" && continue
18857 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
18858 # When using ansi2knr, U may be empty or an underscore; expand it
18859 U
=`sed -n 's/^U = //p' < "$mf"`
18860 # Find all dependency output files, they are included files with
18861 # $(DEPDIR) in their names. We invoke sed twice because it is the
18862 # simplest approach to changing $(DEPDIR) to its actual value in the
18864 for file in `sed -n "
18865 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18866 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18867 # Make sure the directory exists.
18868 test -f "$dirpart/$file" && continue
18869 fdir
=`(dirname "$file") 2>/dev/null ||
18870 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18871 X"$file" : 'X\(//\)[^/]' \| \
18872 X"$file" : 'X\(//\)$' \| \
18873 X"$file" : 'X\(/\)' \| \
18874 . : '\(.\)' 2>/dev/null ||
18876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18877 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18878 /^X\(\/\/\)$/{ s//\1/; q; }
18879 /^X\(\/\).*/{ s//\1/; q; }
18881 { if $as_mkdir_p; then
18882 mkdir
-p $dirpart/$fdir
18884 as_dir
=$dirpart/$fdir
18886 while test ! -d "$as_dir"; do
18887 as_dirs
="$as_dir $as_dirs"
18888 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
18889 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18890 X"$as_dir" : 'X\(//\)[^/]' \| \
18891 X"$as_dir" : 'X\(//\)$' \| \
18892 X"$as_dir" : 'X\(/\)' \| \
18893 . : '\(.\)' 2>/dev/null ||
18895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18896 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18897 /^X\(\/\/\)$/{ s//\1/; q; }
18898 /^X\(\/\).*/{ s//\1/; q; }
18901 test ! -n "$as_dirs" || mkdir
$as_dirs
18902 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18903 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18904 { (exit 1); exit 1; }; }; }
18906 # echo "creating $dirpart/$file"
18907 echo '# dummy' > "$dirpart/$file"
18911 default
) # Only add multilib support code if we just rebuilt top-level Makefile.
18912 case " $CONFIG_FILES " in
18914 LD
="${ORIGINAL_LD_FOR_MULTILIBS}"
18915 ac_file
=Makefile .
${multi_basedir}/.
/libjava
/..
/config-ml.
in
18918 for ac_multi_file
in $CONFIG_FILES; do
18919 case $ac_multi_file in
18921 grep "^MULTI[^ ]* =" Makefile
>> "$ac_multi_file" ;;
18929 cat >>$CONFIG_STATUS <<\_ACEOF
18931 { (exit 0); exit 0; }
18933 chmod +x
$CONFIG_STATUS
18934 ac_clean_files
=$ac_clean_files_save
18937 # configure is writing to config.log, and then calls config.status.
18938 # config.status does its own redirection, appending to config.log.
18939 # Unfortunately, on DOS this fails, as config.log is still kept open
18940 # by configure, so config.status won't be able to write to it; its
18941 # output is simply discarded. So we exec the FD to /dev/null,
18942 # effectively closing config.log, so it can be properly (re)opened and
18943 # appended to by config.status. When coming back to configure, we
18944 # need to make the FD available again.
18945 if test "$no_create" != yes; then
18947 ac_config_status_args
=
18948 test "$silent" = yes &&
18949 ac_config_status_args
="$ac_config_status_args --quiet"
18951 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
18953 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18954 # would make configure fail if this is the last instruction.
18955 $ac_cs_success ||
{ (exit 1); exit 1; }
18959 # CONFIG_SUBDIRS section.
18961 if test "$no_recursion" != yes; then
18963 # Remove --cache-file and --srcdir arguments so they do not pile up.
18964 ac_sub_configure_args
=
18966 for ac_arg
in $ac_configure_args; do
18967 if test -n "$ac_prev"; then
18972 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
18973 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
18974 ac_prev
=cache_file
;;
18975 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
18976 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
18979 --config-cache |
-C)
18981 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
18983 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
18985 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
18987 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
18989 *) ac_sub_configure_args
="$ac_sub_configure_args $ac_arg" ;;
18993 # Always prepend --prefix to ensure using the same prefix
18994 # in subdir configurations.
18995 ac_sub_configure_args
="--prefix=$prefix $ac_sub_configure_args"
18998 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
19000 # Do not complain, so a configure script can configure whichever
19001 # parts of a large source tree are present.
19002 test -d $srcdir/$ac_dir ||
continue
19004 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
19005 echo "$as_me: configuring in $ac_dir" >&6;}
19006 { if $as_mkdir_p; then
19011 while test ! -d "$as_dir"; do
19012 as_dirs
="$as_dir $as_dirs"
19013 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
19014 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19015 X"$as_dir" : 'X\(//\)[^/]' \| \
19016 X"$as_dir" : 'X\(//\)$' \| \
19017 X"$as_dir" : 'X\(/\)' \| \
19018 . : '\(.\)' 2>/dev/null ||
19020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19021 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19022 /^X\(\/\/\)$/{ s//\1/; q; }
19023 /^X\(\/\).*/{ s//\1/; q; }
19026 test ! -n "$as_dirs" || mkdir
$as_dirs
19027 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19028 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19029 { (exit 1); exit 1; }; }; }
19033 if test "$ac_dir" != .
; then
19034 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19035 # A "../" for each directory in $ac_dir_suffix.
19036 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19038 ac_dir_suffix
= ac_top_builddir
=
19042 .
) # No --srcdir option. We are building in place.
19044 if test -z "$ac_top_builddir"; then
19047 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
19049 [\\/]* | ?
:[\\/]* ) # Absolute path.
19050 ac_srcdir
=$srcdir$ac_dir_suffix;
19051 ac_top_srcdir
=$srcdir ;;
19052 *) # Relative path.
19053 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
19054 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
19057 # Do not use `cd foo && pwd` to compute absolute paths, because
19058 # the directories may not exist.
19060 .
) ac_abs_builddir
="$ac_dir";;
19063 .
) ac_abs_builddir
=`pwd`;;
19064 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
19065 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
19068 case $ac_abs_builddir in
19069 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
19071 case ${ac_top_builddir}.
in
19072 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
19073 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
19074 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
19077 case $ac_abs_builddir in
19078 .
) ac_abs_srcdir
=$ac_srcdir;;
19081 .
) ac_abs_srcdir
=$ac_abs_builddir;;
19082 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
19083 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
19086 case $ac_abs_builddir in
19087 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
19089 case $ac_top_srcdir in
19090 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
19091 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
19092 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
19099 # Check for guested configure; otherwise get Cygnus style configure.
19100 if test -f $ac_srcdir/configure.gnu
; then
19101 ac_sub_configure
="$SHELL '$ac_srcdir/configure.gnu'"
19102 elif test -f $ac_srcdir/configure
; then
19103 ac_sub_configure
="$SHELL '$ac_srcdir/configure'"
19104 elif test -f $ac_srcdir/configure.
in; then
19105 ac_sub_configure
=$ac_configure
19107 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
19108 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19112 # The recursion is here.
19113 if test -n "$ac_sub_configure"; then
19114 # Make the cache file name correct relative to the subdirectory.
19115 case $cache_file in
19116 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
19117 *) # Relative path.
19118 ac_sub_cache_file
=$ac_top_builddir$cache_file ;;
19121 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19122 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19123 # The eval makes quoting arguments work.
19124 eval $ac_sub_configure $ac_sub_configure_args \
19125 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
19126 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
19127 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
19128 { (exit 1); exit 1; }; }