]> gcc.gnu.org Git - gcc.git/blame - libjava/configure
Merged gcj-eclipse branch to trunk.
[gcc.git] / libjava / configure
CommitLineData
ee9dd372 1#! /bin/sh
ee9dd372 2# Guess values for system-dependent variables and create Makefiles.
ade710a5 3# Generated by GNU Autoconf 2.59 for libjava version-unused.
ee9dd372 4#
ade710a5 5# Copyright (C) 2003 Free Software Foundation, Inc.
ee9dd372
TT
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
ed698112
NN
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
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+"$@"}'='"$@"'
ade710a5
TF
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
ed698112
NN
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
ade710a5 33$as_unset ENV MAIL MAILPATH
ed698112
NN
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
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 \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
ade710a5 47 $as_unset $as_var
ed698112
NN
48 fi
49done
50
51# Required to use basename.
ade710a5 52if expr a : '\(a\)' >/dev/null 2>&1; then
ed698112
NN
53 as_expr=expr
54else
55 as_expr=false
56fi
57
ade710a5 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
ed698112
NN
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
ade710a5 66as_me=`$as_basename "$0" ||
ed698112
NN
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
ade710a5
TF
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
ed698112 71echo X/"$0" |
ade710a5
TF
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
ed698112
NN
76
77
ade710a5
TF
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
ed698112 85
ade710a5
TF
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
02809848
PB
97fi
98
02809848 99
ade710a5
TF
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
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
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
02809848 116
ade710a5
TF
117 ;;
118 esac
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
122 as_myself=$0
123 fi
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; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
ed698112 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
ade710a5 131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
ed698112
NN
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
ade710a5
TF
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
ed698112 137 /*)
ade710a5 138 if ("$as_dir/$as_base" -c '
02809848
PB
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
ade710a5 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
02809848 142 test "x$as_lineno_1" != "x$as_lineno_2" &&
ade710a5
TF
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
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
ed698112
NN
155
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
ade710a5
TF
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.
ed698112 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
ade710a5
TF
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
ed698112
NN
165 sed '
166 N
ade710a5
TF
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
ed698112 170 t loop
ade710a5
TF
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
ed698112 173 ' >$as_me.lineno &&
ade710a5 174 chmod +x $as_me.lineno ||
ed698112
NN
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
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
ade710a5
TF
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
ed698112
NN
182 # Exit status is that of the last command.
183 exit
184}
185
186
ade710a5
TF
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
ed698112
NN
192esac
193
ade710a5 194if expr a : '\(a\)' >/dev/null 2>&1; then
ed698112
NN
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
ade710a5
TF
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
ed698112 207 as_ln_s='cp -p'
ade710a5
TF
208 else
209 as_ln_s='ln -s'
210 fi
ed698112
NN
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
ade710a5 216rm -f conf$$ conf$$.exe conf$$.file
ed698112
NN
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
ade710a5 225as_executable_p="test -f"
ed698112
NN
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
ade710a5
TF
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
ed698112
NN
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
ee9dd372 248
ade710a5
TF
249exec 6>&1
250
ed698112
NN
251#
252# Initializations.
253#
ee9dd372 254ac_default_prefix=/usr/local
ed698112
NN
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
ade710a5
TF
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}
266
ed698112 267# Identity of this package.
e3f92d3b
MK
268PACKAGE_NAME='libjava'
269PACKAGE_TARNAME='libjava'
270PACKAGE_VERSION='version-unused'
271PACKAGE_STRING='libjava version-unused'
272PACKAGE_BUGREPORT=''
ed698112
NN
273
274ac_unique_file="java/lang/System.java"
ade710a5 275ac_subdirs_all="$ac_subdirs_all classpath libltdl"
ed698112
NN
276# Factoring default headers for most tests.
277ac_includes_default="\
278#include <stdio.h>
279#if HAVE_SYS_TYPES_H
280# include <sys/types.h>
281#endif
282#if HAVE_SYS_STAT_H
283# include <sys/stat.h>
284#endif
285#if STDC_HEADERS
286# include <stdlib.h>
287# include <stddef.h>
288#else
289# if HAVE_STDLIB_H
290# include <stdlib.h>
291# endif
292#endif
293#if HAVE_STRING_H
294# if !STDC_HEADERS && HAVE_MEMORY_H
295# include <memory.h>
296# endif
297# include <string.h>
298#endif
299#if HAVE_STRINGS_H
300# include <strings.h>
301#endif
302#if HAVE_INTTYPES_H
303# include <inttypes.h>
ade710a5
TF
304#else
305# if HAVE_STDINT_H
306# include <stdint.h>
307# endif
ed698112
NN
308#endif
309#if HAVE_UNISTD_H
310# include <unistd.h>
311#endif"
312
97b8365c 313ac_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 libgcj_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 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 LIBMAGIC 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'
ed698112 314ac_subst_files=''
ee9dd372
TT
315
316# Initialize some variables set by options.
ed698112
NN
317ac_init_help=
318ac_init_version=false
ee9dd372
TT
319# The variables have the same names as the options, with
320# dashes changed to underlines.
ed698112 321cache_file=/dev/null
ee9dd372 322exec_prefix=NONE
ee9dd372 323no_create=
ee9dd372
TT
324no_recursion=
325prefix=NONE
326program_prefix=NONE
327program_suffix=NONE
328program_transform_name=s,x,x,
329silent=
330site=
331srcdir=
ee9dd372
TT
332verbose=
333x_includes=NONE
334x_libraries=NONE
ed698112
NN
335
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.
ee9dd372
TT
341bindir='${exec_prefix}/bin'
342sbindir='${exec_prefix}/sbin'
343libexecdir='${exec_prefix}/libexec'
ade710a5 344datadir='${prefix}/share'
ee9dd372
TT
345sysconfdir='${prefix}/etc'
346sharedstatedir='${prefix}/com'
347localstatedir='${prefix}/var'
ade710a5 348libdir='${exec_prefix}/lib'
ee9dd372
TT
349includedir='${prefix}/include'
350oldincludedir='/usr/include'
ade710a5
TF
351infodir='${prefix}/info'
352mandir='${prefix}/man'
ee9dd372 353
ee9dd372
TT
354ac_prev=
355for ac_option
356do
ee9dd372
TT
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
ade710a5 359 eval "$ac_prev=\$ac_option"
ee9dd372
TT
360 ac_prev=
361 continue
362 fi
363
ade710a5 364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
ee9dd372
TT
365
366 # Accept the important Cygnus configure options, so we can diagnose typos.
367
ade710a5 368 case $ac_option in
ee9dd372
TT
369
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ed698112 373 bindir=$ac_optarg ;;
ee9dd372
TT
374
375 -build | --build | --buil | --bui | --bu)
ed698112 376 ac_prev=build_alias ;;
ee9dd372 377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ed698112 378 build_alias=$ac_optarg ;;
ee9dd372
TT
379
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=*)
ed698112
NN
385 cache_file=$ac_optarg ;;
386
387 --config-cache | -C)
388 cache_file=config.cache ;;
ee9dd372 389
ade710a5 390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
ee9dd372 391 ac_prev=datadir ;;
ade710a5
TF
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
ed698112 394 datadir=$ac_optarg ;;
ee9dd372
TT
395
396 -disable-* | --disable-*)
ed698112 397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
ee9dd372 398 # Reject names that are not valid shell variable names.
ed698112
NN
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'`
ade710a5 403 eval "enable_$ac_feature=no" ;;
ee9dd372
TT
404
405 -enable-* | --enable-*)
ed698112 406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
ee9dd372 407 # Reject names that are not valid shell variable names.
ed698112
NN
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'`
ade710a5
TF
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
ee9dd372
TT
417
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=*)
ed698112 425 exec_prefix=$ac_optarg ;;
ee9dd372
TT
426
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
430
ed698112
NN
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
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 ;;
ee9dd372
TT
437
438 -host | --host | --hos | --ho)
ed698112 439 ac_prev=host_alias ;;
ee9dd372 440 -host=* | --host=* | --hos=* | --ho=*)
ed698112 441 host_alias=$ac_optarg ;;
ee9dd372
TT
442
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=*)
ed698112 448 includedir=$ac_optarg ;;
ee9dd372
TT
449
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ed698112 453 infodir=$ac_optarg ;;
ee9dd372
TT
454
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ed698112 458 libdir=$ac_optarg ;;
ee9dd372
TT
459
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
ed698112 465 libexecdir=$ac_optarg ;;
ee9dd372
TT
466
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
ade710a5
TF
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
ee9dd372
TT
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
ade710a5
TF
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
ed698112 474 localstatedir=$ac_optarg ;;
ee9dd372
TT
475
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ed698112 479 mandir=$ac_optarg ;;
ee9dd372
TT
480
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
484
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ed698112 486 | --no-cr | --no-c | -n)
ee9dd372
TT
487 no_create=yes ;;
488
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
492
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=*)
ed698112 500 oldincludedir=$ac_optarg ;;
ee9dd372
TT
501
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ed698112 505 prefix=$ac_optarg ;;
ee9dd372
TT
506
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=*)
ed698112 512 program_prefix=$ac_optarg ;;
ee9dd372
TT
513
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=*)
ed698112 519 program_suffix=$ac_optarg ;;
ee9dd372
TT
520
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=*)
ed698112 536 program_transform_name=$ac_optarg ;;
ee9dd372
TT
537
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
541
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
ed698112 546 sbindir=$ac_optarg ;;
ee9dd372
TT
547
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
ed698112 557 sharedstatedir=$ac_optarg ;;
ee9dd372
TT
558
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
ed698112 562 site=$ac_optarg ;;
ee9dd372
TT
563
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ed698112 567 srcdir=$ac_optarg ;;
ee9dd372
TT
568
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=*)
ed698112 574 sysconfdir=$ac_optarg ;;
ee9dd372
TT
575
576 -target | --target | --targe | --targ | --tar | --ta | --t)
ed698112 577 ac_prev=target_alias ;;
ee9dd372 578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ed698112 579 target_alias=$ac_optarg ;;
ee9dd372
TT
580
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
583
ed698112
NN
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
ee9dd372
TT
586
587 -with-* | --with-*)
ed698112 588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
ee9dd372 589 # Reject names that are not valid shell variable names.
ed698112
NN
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; }; }
ee9dd372 593 ac_package=`echo $ac_package| sed 's/-/_/g'`
ade710a5
TF
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
ee9dd372
TT
599
600 -without-* | --without-*)
ed698112 601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
ee9dd372 602 # Reject names that are not valid shell variable names.
ed698112
NN
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'`
ade710a5 607 eval "with_$ac_package=no" ;;
ee9dd372
TT
608
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
612
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=*)
ed698112 618 x_includes=$ac_optarg ;;
ee9dd372
TT
619
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=*)
ed698112 625 x_libraries=$ac_optarg ;;
ee9dd372 626
ed698112
NN
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
ee9dd372
TT
630 ;;
631
ed698112
NN
632 *=*)
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; }; }
ade710a5
TF
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
ed698112
NN
640 export $ac_envvar ;;
641
ee9dd372 642 *)
ed698112
NN
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}
ee9dd372
TT
648 ;;
649
650 esac
651done
652
653if test -n "$ac_prev"; then
ed698112
NN
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; }; }
ee9dd372 657fi
ee9dd372 658
ade710a5
TF
659# Be sure to have absolute paths.
660for ac_var in exec_prefix prefix
ee9dd372 661do
ade710a5 662 eval ac_val=$`echo $ac_var`
ed698112 663 case $ac_val in
ade710a5
TF
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668done
669
670# Be sure to have absolute paths.
671for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
673do
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
ee9dd372
TT
679 esac
680done
681
ed698112
NN
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.
685build=$build_alias
686host=$host_alias
687target=$target_alias
688
689# FIXME: To remove some day.
690if 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
696 cross_compiling=yes
697 fi
698fi
ee9dd372 699
ed698112
NN
700ac_tool_prefix=
701test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703test "$silent" = yes && exec 6>/dev/null
ee9dd372 704
ee9dd372
TT
705
706# Find the source files, if location was not specified.
707if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
ade710a5
TF
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
ed698112
NN
711$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
ade710a5
TF
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
ed698112 716echo X"$0" |
ade710a5
TF
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
ee9dd372 722 srcdir=$ac_confdir
ade710a5 723 if test ! -r $srcdir/$ac_unique_file; then
ee9dd372
TT
724 srcdir=..
725 fi
726else
727 ac_srcdir_defaulted=no
728fi
ade710a5
TF
729if 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; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
ed698112 735 { (exit 1); exit 1; }; }
ade710a5 736 fi
ee9dd372 737fi
ade710a5
TF
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
ed698112 740 { (exit 1); exit 1; }; }
ade710a5
TF
741srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742ac_env_build_alias_set=${build_alias+set}
743ac_env_build_alias_value=$build_alias
744ac_cv_env_build_alias_set=${build_alias+set}
745ac_cv_env_build_alias_value=$build_alias
746ac_env_host_alias_set=${host_alias+set}
747ac_env_host_alias_value=$host_alias
748ac_cv_env_host_alias_set=${host_alias+set}
749ac_cv_env_host_alias_value=$host_alias
750ac_env_target_alias_set=${target_alias+set}
751ac_env_target_alias_value=$target_alias
752ac_cv_env_target_alias_set=${target_alias+set}
753ac_cv_env_target_alias_value=$target_alias
754ac_env_CXXCPP_set=${CXXCPP+set}
755ac_env_CXXCPP_value=$CXXCPP
756ac_cv_env_CXXCPP_set=${CXXCPP+set}
757ac_cv_env_CXXCPP_value=$CXXCPP
758ac_env_CPPFLAGS_set=${CPPFLAGS+set}
759ac_env_CPPFLAGS_value=$CPPFLAGS
760ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
761ac_cv_env_CPPFLAGS_value=$CPPFLAGS
762ac_env_CPP_set=${CPP+set}
763ac_env_CPP_value=$CPP
764ac_cv_env_CPP_set=${CPP+set}
765ac_cv_env_CPP_value=$CPP
ed698112
NN
766
767#
768# Report the --help message.
769#
770if 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.
773 cat <<_ACEOF
e3f92d3b 774\`configure' configures libjava version-unused to adapt to many kinds of systems.
ed698112
NN
775
776Usage: $0 [OPTION]... [VAR=VALUE]...
777
778To assign environment variables (e.g., CC, CFLAGS...), specify them as
779VAR=VALUE. See below for descriptions of some of the useful variables.
780
781Defaults for the options are specified in brackets.
782
783Configuration:
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 \`..']
793
ade710a5
TF
794_ACEOF
795
796 cat <<_ACEOF
ed698112
NN
797Installation directories:
798 --prefix=PREFIX install architecture-independent files in PREFIX
799 [$ac_default_prefix]
800 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
801 [PREFIX]
802
803By default, \`make install' will install all the files in
804\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
805an installation prefix other than \`$ac_default_prefix' using \`--prefix',
806for instance \`--prefix=\$HOME'.
807
808For better control, use the options below.
809
810Fine 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]
ade710a5 814 --datadir=DIR read-only architecture-independent data [PREFIX/share]
ed698112
NN
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]
ade710a5
TF
821 --infodir=DIR info documentation [PREFIX/info]
822 --mandir=DIR man documentation [PREFIX/man]
ed698112
NN
823_ACEOF
824
825 cat <<\_ACEOF
826
827Program names:
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
831
832X features:
833 --x-includes=DIR X include files are in DIR
834 --x-libraries=DIR X library files are in DIR
835
836System types:
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]
840_ACEOF
841fi
842
843if test -n "$ac_init_help"; then
e3f92d3b
MK
844 case $ac_init_help in
845 short | recursive ) echo "Configuration of libjava version-unused:";;
846 esac
ed698112
NN
847 cat <<\_ACEOF
848
849Optional Features:
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --enable-version-specific-runtime-libs
aed6152d
NN
853 specify that runtime libraries should be installed
854 in a compiler-specific directory
ed698112 855 --enable-multilib build many library versions (default)
648e8d6d 856 --enable-plugin build gcjwebplugin web browser plugin
ac1ed908 857 --enable-gconf-peer compile GConf native peers for util.preferences
97b8365c
TT
858 --enable-java-maintainer-mode
859 allow rebuilding of .class and .h files
e3f92d3b
MK
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
b0fa81ee
TT
864 --enable-libgcj-debug enable runtime debugging code
865 --enable-java-awt list of AWT peer implementations to be built
ed698112
NN
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
48d0dd75 874 --enable-gc-debug include full support for pointer backtracing etc.
ed698112 875 --enable-interpreter enable interpreter
aed6152d
NN
876 --enable-sjlj-exceptions
877 force use of builtin_setjmp for exceptions
ed698112
NN
878 --disable-java-net disable java.net
879 --disable-jvmpi disable JVMPI support
aed6152d 880 --enable-java-gc=TYPE choose garbage collector (default is boehm)
5b7a26f6 881 --disable-rpath do not hardcode runtime library paths
2fb31455 882 --enable-tls Use thread-local storage [default=yes]
ed698112
NN
883
884Optional Packages:
885 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
886 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
57255173 887 --with-build-libsubdir=DIR Directory where to find libraries for build system
ed698112 888 --with-target-subdir=SUBDIR
aed6152d
NN
889 configure in a subdirectory
890 --with-cross-host=HOST configure with a cross compiler from HOST
891 --with-newlib configure with newlib
97b8365c 892 --with-escher=ABS.PATH specify path to escher dir or JAR for X peers
ed698112
NN
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
97b8365c 895 --with-ecj-jar=FILE use preinstalled ecj jar
c33b7bf0
TF
896 --with-java-home=DIRECTORY
897 value of java.home system property
aed6152d
NN
898 --with-win32-nlsapi=ansi or unicows or unicode
899 native MinGW libgcj Win32 OS API (default is ansi)
ed698112
NN
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
5b7a26f6
KC
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
ed698112
NN
906
907Some 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>
ade710a5
TF
912 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
913 headers in a nonstandard directory <include dir>
ed698112
NN
914 CXX C++ compiler command
915 CXXFLAGS C++ compiler flags
916 CXXCPP C++ preprocessor
917 CPP C preprocessor
918
919Use these variables to override the choices made by `configure' or to help
920it to find libraries and programs with nonstandard names/locations.
921
922_ACEOF
923fi
924
925if test "$ac_init_help" = "recursive"; then
926 # If there are subdirs, report their specific --help.
ade710a5 927 ac_popdir=`pwd`
ed698112
NN
928 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
929 test -d $ac_dir || continue
930 ac_builddir=.
931
ade710a5 932if test "$ac_dir" != .; then
ed698112 933 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
ade710a5
TF
934 # A "../" for each directory in $ac_dir_suffix.
935 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
936else
937 ac_dir_suffix= ac_top_builddir=
938fi
ed698112
NN
939
940case $srcdir in
ade710a5 941 .) # No --srcdir option. We are building in place.
ed698112 942 ac_srcdir=.
ade710a5
TF
943 if test -z "$ac_top_builddir"; then
944 ac_top_srcdir=.
945 else
946 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
947 fi ;;
948 [\\/]* | ?:[\\/]* ) # Absolute path.
ed698112 949 ac_srcdir=$srcdir$ac_dir_suffix;
ade710a5
TF
950 ac_top_srcdir=$srcdir ;;
951 *) # Relative path.
952 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
953 ac_top_srcdir=$ac_top_builddir$srcdir ;;
954esac
955
956# Do not use `cd foo && pwd` to compute absolute paths, because
957# the directories may not exist.
958case `pwd` in
959.) ac_abs_builddir="$ac_dir";;
960*)
961 case "$ac_dir" in
962 .) ac_abs_builddir=`pwd`;;
963 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
964 *) ac_abs_builddir=`pwd`/"$ac_dir";;
965 esac;;
966esac
967case $ac_abs_builddir in
968.) ac_abs_top_builddir=${ac_top_builddir}.;;
969*)
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}.;;
974 esac;;
975esac
976case $ac_abs_builddir in
977.) ac_abs_srcdir=$ac_srcdir;;
978*)
979 case $ac_srcdir in
980 .) ac_abs_srcdir=$ac_abs_builddir;;
981 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
982 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
983 esac;;
984esac
985case $ac_abs_builddir in
986.) ac_abs_top_srcdir=$ac_top_srcdir;;
987*)
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;;
992 esac;;
ed698112
NN
993esac
994
ade710a5
TF
995 cd $ac_dir
996 # Check for guested configure; otherwise get Cygnus style configure.
ed698112 997 if test -f $ac_srcdir/configure.gnu; then
ade710a5 998 echo
ed698112
NN
999 $SHELL $ac_srcdir/configure.gnu --help=recursive
1000 elif test -f $ac_srcdir/configure; then
ade710a5 1001 echo
ed698112 1002 $SHELL $ac_srcdir/configure --help=recursive
ade710a5
TF
1003 elif test -f $ac_srcdir/configure.ac ||
1004 test -f $ac_srcdir/configure.in; then
1005 echo
1006 $ac_configure --help
ed698112
NN
1007 else
1008 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
ade710a5
TF
1009 fi
1010 cd $ac_popdir
ed698112
NN
1011 done
1012fi
1013
ade710a5 1014test -n "$ac_init_help" && exit 0
ed698112
NN
1015if $ac_init_version; then
1016 cat <<\_ACEOF
e3f92d3b 1017libjava configure version-unused
ade710a5 1018generated by GNU Autoconf 2.59
ed698112 1019
ade710a5 1020Copyright (C) 2003 Free Software Foundation, Inc.
ed698112
NN
1021This configure script is free software; the Free Software Foundation
1022gives unlimited permission to copy, distribute and modify it.
1023_ACEOF
ade710a5 1024 exit 0
ed698112 1025fi
ade710a5
TF
1026exec 5>config.log
1027cat >&5 <<_ACEOF
ed698112
NN
1028This file contains any messages produced by compilers while
1029running configure, to aid debugging if configure makes a mistake.
1030
e3f92d3b 1031It was created by libjava $as_me version-unused, which was
ade710a5 1032generated by GNU Autoconf 2.59. Invocation command line was
ed698112
NN
1033
1034 $ $0 $@
1035
1036_ACEOF
1037{
1038cat <<_ASUNAME
1039## --------- ##
1040## Platform. ##
1041## --------- ##
1042
1043hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1044uname -m = `(uname -m) 2>/dev/null || echo unknown`
1045uname -r = `(uname -r) 2>/dev/null || echo unknown`
1046uname -s = `(uname -s) 2>/dev/null || echo unknown`
1047uname -v = `(uname -v) 2>/dev/null || echo unknown`
1048
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`
1051
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`
ade710a5 1055hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
ed698112
NN
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`
1059
1060_ASUNAME
1061
1062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1063for as_dir in $PATH
1064do
1065 IFS=$as_save_IFS
1066 test -z "$as_dir" && as_dir=.
1067 echo "PATH: $as_dir"
1068done
1069
1070} >&5
1071
1072cat >&5 <<_ACEOF
1073
1074
1075## ----------- ##
1076## Core tests. ##
1077## ----------- ##
1078
1079_ACEOF
1080
1081
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.
1087ac_configure_args=
1088ac_configure_args0=
1089ac_configure_args1=
1090ac_sep=
1091ac_must_keep_next=false
1092for ac_pass in 1 2
1093do
1094 for ac_arg
1095 do
1096 case $ac_arg in
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)
1100 continue ;;
ade710a5 1101 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
ed698112
NN
1102 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1103 esac
1104 case $ac_pass in
1105 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1106 2)
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.
1110 else
1111 case $ac_arg in
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 ;;
1118 esac
1119 ;;
1120 -* ) ac_must_keep_next=true ;;
1121 esac
1122 fi
1123 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1124 # Get rid of the leading space.
1125 ac_sep=" "
1126 ;;
1127 esac
1128 done
1129done
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; }
1132
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.
ade710a5
TF
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.
ed698112
NN
1138trap 'exit_status=$?
1139 # Save into config.log some information that might help in debugging.
1140 {
1141 echo
1142
1143 cat <<\_ASBOX
1144## ---------------- ##
1145## Cache variables. ##
1146## ---------------- ##
1147_ASBOX
1148 echo
1149 # The following way of writing the cache mishandles newlines in values,
ade710a5 1150{
ed698112 1151 (set) 2>&1 |
ade710a5
TF
1152 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1153 *ac_space=\ *)
ed698112 1154 sed -n \
ade710a5
TF
1155 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1156 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1157 ;;
ed698112 1158 *)
ade710a5
TF
1159 sed -n \
1160 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
ed698112 1161 ;;
ade710a5
TF
1162 esac;
1163}
ed698112
NN
1164 echo
1165
1166 cat <<\_ASBOX
1167## ----------------- ##
1168## Output variables. ##
1169## ----------------- ##
1170_ASBOX
1171 echo
1172 for ac_var in $ac_subst_vars
1173 do
ade710a5
TF
1174 eval ac_val=$`echo $ac_var`
1175 echo "$ac_var='"'"'$ac_val'"'"'"
ed698112
NN
1176 done | sort
1177 echo
1178
1179 if test -n "$ac_subst_files"; then
1180 cat <<\_ASBOX
ade710a5
TF
1181## ------------- ##
1182## Output files. ##
1183## ------------- ##
ed698112
NN
1184_ASBOX
1185 echo
1186 for ac_var in $ac_subst_files
1187 do
ade710a5
TF
1188 eval ac_val=$`echo $ac_var`
1189 echo "$ac_var='"'"'$ac_val'"'"'"
ed698112
NN
1190 done | sort
1191 echo
1192 fi
1193
1194 if test -s confdefs.h; then
1195 cat <<\_ASBOX
1196## ----------- ##
1197## confdefs.h. ##
1198## ----------- ##
1199_ASBOX
1200 echo
ade710a5 1201 sed "/^$/d" confdefs.h | sort
ed698112
NN
1202 echo
1203 fi
1204 test "$ac_signal" != 0 &&
1205 echo "$as_me: caught signal $ac_signal"
1206 echo "$as_me: exit $exit_status"
1207 } >&5
ade710a5
TF
1208 rm -f core *.core &&
1209 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
ed698112 1210 exit $exit_status
ade710a5 1211 ' 0
ed698112
NN
1212for ac_signal in 1 2 13 15; do
1213 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1214done
1215ac_signal=0
1216
1217# confdefs.h avoids OS command line length limits that DEFS can exceed.
ade710a5
TF
1218rm -rf conftest* confdefs.h
1219# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1220echo >confdefs.h
ed698112
NN
1221
1222# Predefined preprocessor variables.
1223
1224cat >>confdefs.h <<_ACEOF
1225#define PACKAGE_NAME "$PACKAGE_NAME"
1226_ACEOF
1227
1228
1229cat >>confdefs.h <<_ACEOF
1230#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1231_ACEOF
1232
1233
1234cat >>confdefs.h <<_ACEOF
1235#define PACKAGE_VERSION "$PACKAGE_VERSION"
1236_ACEOF
1237
ee9dd372 1238
ed698112
NN
1239cat >>confdefs.h <<_ACEOF
1240#define PACKAGE_STRING "$PACKAGE_STRING"
1241_ACEOF
1242
1243
1244cat >>confdefs.h <<_ACEOF
1245#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1246_ACEOF
1247
1248
1249# Let the site file select an alternate cache file if it wants to.
ee9dd372 1250# Prefer explicitly selected file to automatically selected ones.
ade710a5
TF
1251if test -z "$CONFIG_SITE"; then
1252 if test "x$prefix" != xNONE; then
1253 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1254 else
1255 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1256 fi
ee9dd372 1257fi
ade710a5 1258for ac_site_file in $CONFIG_SITE; do
ee9dd372 1259 if test -r "$ac_site_file"; then
ed698112
NN
1260 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1261echo "$as_me: loading site script $ac_site_file" >&6;}
1262 sed 's/^/| /' "$ac_site_file" >&5
ee9dd372
TT
1263 . "$ac_site_file"
1264 fi
1265done
1266
1267if test -r "$cache_file"; then
ed698112
NN
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
1272echo "$as_me: loading cache $cache_file" >&6;}
1273 case $cache_file in
1274 [\\/]* | ?:[\\/]* ) . $cache_file;;
1275 *) . ./$cache_file;;
1276 esac
1277 fi
ee9dd372 1278else
ed698112
NN
1279 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1280echo "$as_me: creating cache $cache_file" >&6;}
1281 >$cache_file
1282fi
1283
1284# Check that the precious variables saved in the cache have kept the same
1285# value.
1286ac_cache_corrupted=false
ade710a5
TF
1287for ac_var in `(set) 2>&1 |
1288 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
ed698112
NN
1289 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1290 eval ac_new_set=\$ac_env_${ac_var}_set
ade710a5
TF
1291 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1292 eval ac_new_val="\$ac_env_${ac_var}_value"
ed698112
NN
1293 case $ac_old_set,$ac_new_set in
1294 set,)
1295 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1296echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1297 ac_cache_corrupted=: ;;
1298 ,set)
1299 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1300echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1301 ac_cache_corrupted=: ;;
1302 ,);;
1303 *)
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
1306echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1307 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1308echo "$as_me: former value: $ac_old_val" >&2;}
1309 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1310echo "$as_me: current value: $ac_new_val" >&2;}
1311 ac_cache_corrupted=:
1312 fi;;
1313 esac
1314 # Pass precious variables to config.status.
1315 if test "$ac_new_set" = set; then
1316 case $ac_new_val in
ade710a5
TF
1317 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1318 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
ed698112
NN
1319 *) ac_arg=$ac_var=$ac_new_val ;;
1320 esac
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'" ;;
1324 esac
1325 fi
1326done
1327if $ac_cache_corrupted; then
1328 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1329echo "$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
1331echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1332 { (exit 1); exit 1; }; }
ee9dd372
TT
1333fi
1334
ade710a5
TF
1335ac_ext=c
1336ac_cpp='$CPP $CPPFLAGS'
1337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1339ac_compiler_gnu=$ac_cv_c_compiler_gnu
1340
ed698112
NN
1341
1342
1343
1344
1345
1346
1347
1348
1349
e3f92d3b
MK
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
ed698112
NN
1360
1361
1362
1363
1364
1365
1366
1367
fe3dac3d
TT
1368
1369
7f7ba9bf 1370ac_aux_dir=
e3f92d3b 1371for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
7f7ba9bf
TT
1372 if test -f $ac_dir/install-sh; then
1373 ac_aux_dir=$ac_dir
1374 ac_install_sh="$ac_aux_dir/install-sh -c"
1375 break
1376 elif test -f $ac_dir/install.sh; then
1377 ac_aux_dir=$ac_dir
1378 ac_install_sh="$ac_aux_dir/install.sh -c"
1379 break
ed698112
NN
1380 elif test -f $ac_dir/shtool; then
1381 ac_aux_dir=$ac_dir
1382 ac_install_sh="$ac_aux_dir/shtool install -c"
1383 break
7f7ba9bf
TT
1384 fi
1385done
1386if test -z "$ac_aux_dir"; then
e3f92d3b
MK
1387 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1388echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
ed698112 1389 { (exit 1); exit 1; }; }
7f7ba9bf 1390fi
ed698112
NN
1391ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1392ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1393ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
7f7ba9bf 1394
ed698112
NN
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
1398echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1399 { (exit 1); exit 1; }; }
1400
ade710a5
TF
1401echo "$as_me:$LINENO: checking build system type" >&5
1402echo $ECHO_N "checking build system type... $ECHO_C" >&6
ed698112
NN
1403if test "${ac_cv_build+set}" = set; then
1404 echo $ECHO_N "(cached) $ECHO_C" >&6
1405else
ade710a5
TF
1406 ac_cv_build_alias=$build_alias
1407test -z "$ac_cv_build_alias" &&
1408 ac_cv_build_alias=`$ac_config_guess`
1409test -z "$ac_cv_build_alias" &&
ed698112
NN
1410 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1411echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1412 { (exit 1); exit 1; }; }
ade710a5
TF
1413ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1414 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1415echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
ed698112
NN
1416 { (exit 1); exit 1; }; }
1417
1418fi
ade710a5
TF
1419echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1420echo "${ECHO_T}$ac_cv_build" >&6
ed698112 1421build=$ac_cv_build
ade710a5
TF
1422build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1423build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1424build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
ed698112
NN
1425
1426
215c351a
PB
1427 case ${build_alias} in
1428 "") build_noncanonical=${build} ;;
1429 *) build_noncanonical=${build_alias} ;;
1430esac
1431
1432 case ${host_alias} in
1433 "") host_noncanonical=${build_noncanonical} ;;
1434 *) host_noncanonical=${host_alias} ;;
1435esac
1436
1437 case ${target_alias} in
1438 "") target_noncanonical=${host_noncanonical} ;;
1439 *) target_noncanonical=${target_alias} ;;
1440esac
1441
57255173
PB
1442
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
1448# finishes. So:
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.
1451
1452# Prefix 'build-' so this never conflicts with target_subdir.
215c351a 1453build_subdir="build-${build_noncanonical}"
57255173
PB
1454
1455# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1456if test "${with_build_libsubdir+set}" = set; then
1457 withval="$with_build_libsubdir"
1458 build_libsubdir="$withval"
1459else
1460 build_libsubdir="$build_subdir"
1461fi;
215c351a
PB
1462# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1463if ( test $srcdir = . && test -d gcc ) \
1464 || test -d $srcdir/../host-${host_noncanonical}; then
1465 host_subdir="host-${host_noncanonical}"
1466else
1467 host_subdir=.
1468fi
1469# No prefix.
1470target_subdir=${target_noncanonical}
1471
1472
1473# We use these options to decide which functions to include.
1474
ade710a5 1475# Check whether --with-target-subdir or --without-target-subdir was given.
215c351a 1476if test "${with_target_subdir+set}" = set; then
ade710a5 1477 withval="$with_target_subdir"
215c351a 1478
ade710a5 1479fi;
215c351a
PB
1480
1481# We may get other options which we don't document:
1482# --with-target-subdir, --with-multisrctop, --with-multisubdir
1483
1484# When building with srcdir == objdir, links to the source files will
1485# be created in directories within the target_subdir. We have to
1486# adjust toplevel_srcdir accordingly, so that configure finds
1487# install-sh and other auxiliary files that live in the top-level
1488# source directory.
1489if test "${srcdir}" = "."; then
1490 if test -z "${with_target_subdir}"; then
1491 toprel=".."
1492 else
1493 if test "${with_target_subdir}" != "."; then
1494 toprel="${with_multisrctop}../.."
1495 else
1496 toprel="${with_multisrctop}.."
1497 fi
1498 fi
1499else
1500 toprel=".."
1501fi
1502
1503libgcj_basedir=$srcdir/$toprel/./libjava
1504
1505
ade710a5
TF
1506echo "$as_me:$LINENO: checking host system type" >&5
1507echo $ECHO_N "checking host system type... $ECHO_C" >&6
ed698112
NN
1508if test "${ac_cv_host+set}" = set; then
1509 echo $ECHO_N "(cached) $ECHO_C" >&6
1510else
ade710a5
TF
1511 ac_cv_host_alias=$host_alias
1512test -z "$ac_cv_host_alias" &&
1513 ac_cv_host_alias=$ac_cv_build_alias
1514ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1515 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1516echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
ed698112
NN
1517 { (exit 1); exit 1; }; }
1518
1519fi
ade710a5
TF
1520echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1521echo "${ECHO_T}$ac_cv_host" >&6
ed698112 1522host=$ac_cv_host
ade710a5
TF
1523host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1524host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1525host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1526
1527
1528echo "$as_me:$LINENO: checking target system type" >&5
1529echo $ECHO_N "checking target system type... $ECHO_C" >&6
ed698112
NN
1530if test "${ac_cv_target+set}" = set; then
1531 echo $ECHO_N "(cached) $ECHO_C" >&6
1532else
ade710a5
TF
1533 ac_cv_target_alias=$target_alias
1534test "x$ac_cv_target_alias" = "x" &&
1535 ac_cv_target_alias=$ac_cv_host_alias
1536ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1537 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1538echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
ed698112
NN
1539 { (exit 1); exit 1; }; }
1540
1541fi
ade710a5
TF
1542echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1543echo "${ECHO_T}$ac_cv_target" >&6
ed698112 1544target=$ac_cv_target
ade710a5
TF
1545target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1546target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1547target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7f7ba9bf 1548
7f7ba9bf
TT
1549
1550# The aliases save the names the user supplied, while $host etc.
1551# will get canonicalized.
ed698112 1552test -n "$target_alias" &&
7f7ba9bf
TT
1553 test "$program_prefix$program_suffix$program_transform_name" = \
1554 NONENONEs,x,x, &&
1555 program_prefix=${target_alias}-
bc03b358
NN
1556 case ${build_alias} in
1557 "") build_noncanonical=${build} ;;
1558 *) build_noncanonical=${build_alias} ;;
1559esac
1560
bc03b358
NN
1561 case ${target_alias} in
1562 "") target_noncanonical=${host_noncanonical} ;;
1563 *) target_noncanonical=${target_alias} ;;
1564esac
1565
1566
60557047
MK
1567
1568
bc03b358
NN
1569# This works around the fact that libtool configuration may change LD
1570# for this particular configuration, but some shells, instead of
1571# keeping the changes in LD private, export them just because LD is
1572# exported.
1573ORIGINAL_LD_FOR_MULTILIBS=$LD
1574
ade710a5
TF
1575echo "$as_me:$LINENO: checking whether ln -s works" >&5
1576echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
ed698112
NN
1577LN_S=$as_ln_s
1578if test "$LN_S" = "ln -s"; then
ade710a5
TF
1579 echo "$as_me:$LINENO: result: yes" >&5
1580echo "${ECHO_T}yes" >&6
bc03b358 1581else
ade710a5
TF
1582 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1583echo "${ECHO_T}no, using $LN_S" >&6
bc03b358
NN
1584fi
1585
1586
1587# This works around an automake problem.
1588mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1589
1590
ed698112 1591
ade710a5 1592# Check whether --with-cross-host or --without-cross-host was given.
bc03b358 1593if test "${with_cross_host+set}" = set; then
ade710a5 1594 withval="$with_cross_host"
ed698112 1595
ade710a5 1596fi;
bc03b358
NN
1597
1598
ade710a5 1599# Check whether --with-newlib or --without-newlib was given.
bc03b358 1600if test "${with_newlib+set}" = set; then
ade710a5 1601 withval="$with_newlib"
bc03b358 1602
ade710a5 1603fi;
bc03b358 1604
ade710a5 1605# Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
bc03b358 1606if test "${enable_version_specific_runtime_libs+set}" = set; then
ade710a5
TF
1607 enableval="$enable_version_specific_runtime_libs"
1608 case "$enableval" in
bc03b358
NN
1609 yes) version_specific_libs=yes ;;
1610 no) version_specific_libs=no ;;
ed698112
NN
1611 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1612echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1613 { (exit 1); exit 1; }; };;
bc03b358
NN
1614 esac
1615else
1616 version_specific_libs=no
1617
ade710a5 1618fi;
bc03b358 1619
aed6152d 1620# Default to --enable-multilib
ade710a5 1621# Check whether --enable-multilib or --disable-multilib was given.
bc03b358 1622if test "${enable_multilib+set}" = set; then
ade710a5
TF
1623 enableval="$enable_multilib"
1624 case "${enableval}" in
bc03b358
NN
1625 yes) multilib=yes ;;
1626 no) multilib=no ;;
ed698112
NN
1627 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1628echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1629 { (exit 1); exit 1; }; } ;;
bc03b358
NN
1630 esac
1631else
1632 multilib=yes
ade710a5 1633fi;
648e8d6d
TF
1634# Check whether --enable-plugin or --disable-plugin was given.
1635if test "${enable_plugin+set}" = set; then
1636 enableval="$enable_plugin"
1637 case "$enableval" in
1638 yes) plugin_enabled=yes ;;
1639 no) plugin_enabled=no ;;
1640 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable plugin" >&5
1641echo "$as_me: error: Unknown argument to enable/disable plugin" >&2;}
1642 { (exit 1); exit 1; }; };;
1643 esac
1644else
1645 plugin_enabled=no
1646
1647fi;
1648
ac1ed908
MW
1649# Check whether --enable-gconf-peer or --disable-gconf-peer was given.
1650if test "${enable_gconf_peer+set}" = set; then
1651 enableval="$enable_gconf_peer"
1652 case "$enableval" in
1653 yes) gconf_enabled=yes ;;
1654 no) gconf_enabled=no ;;
1655 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable gconf-peer" >&5
1656echo "$as_me: error: Unknown argument to enable/disable gconf-peer" >&2;}
1657 { (exit 1); exit 1; }; };;
1658 esac
1659else
1660 gconf_enabled=no
1661
1662fi;
1663
97b8365c
TT
1664# Check whether --enable-java-maintainer-mode or --disable-java-maintainer-mode was given.
1665if test "${enable_java_maintainer_mode+set}" = set; then
1666 enableval="$enable_java_maintainer_mode"
1667
1668fi;
1669
1670
1671if test "$enable_java_maintainer_mode" = yes; then
1672 JAVA_MAINTAINER_MODE_TRUE=
1673 JAVA_MAINTAINER_MODE_FALSE='#'
1674else
1675 JAVA_MAINTAINER_MODE_TRUE='#'
1676 JAVA_MAINTAINER_MODE_FALSE=
1677fi
1678
1679
aed6152d 1680# It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
bc03b358 1681
ee9dd372 1682
ed698112
NN
1683# (1) We use an abnormal CXX (without library references), so we
1684# must cache it under a different name.
1685# (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1686# the non-multilib-adjusted value will be used in multilibs.
1687# (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1688# (4) As another side effect, automake doesn't automatically include them
1689# in Makefile.in.
1690# (5) For libstdc++-v3, -fno-builtin must be present here so that a
1691# non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1692# used in later tests. This may not be necessary in libjava; I don't know.
1693
1694
ed698112
NN
1695save_CXXFLAGS="$CXXFLAGS"
1696CXXFLAGS="$CXXFLAGS -fno-builtin"
1697ac_ext=c
1698ac_cpp='$CPP $CPPFLAGS'
1699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1701ac_compiler_gnu=$ac_cv_c_compiler_gnu
1702if test -n "$ac_tool_prefix"; then
1703 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1704set dummy ${ac_tool_prefix}gcc; ac_word=$2
ade710a5
TF
1705echo "$as_me:$LINENO: checking for $ac_word" >&5
1706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ed698112
NN
1707if test "${ac_cv_prog_CC+set}" = set; then
1708 echo $ECHO_N "(cached) $ECHO_C" >&6
1709else
1710 if test -n "$CC"; then
1711 ac_cv_prog_CC="$CC" # Let the user override the test.
1712else
1713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1714for as_dir in $PATH
1715do
1716 IFS=$as_save_IFS
1717 test -z "$as_dir" && as_dir=.
1718 for ac_exec_ext in '' $ac_executable_extensions; do
ade710a5 1719 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ed698112
NN
1720 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1722 break 2
1723 fi
1724done
1725done
ee9dd372 1726
ed698112
NN
1727fi
1728fi
1729CC=$ac_cv_prog_CC
1730if test -n "$CC"; then
ade710a5
TF
1731 echo "$as_me:$LINENO: result: $CC" >&5
1732echo "${ECHO_T}$CC" >&6
ed698112 1733else
ade710a5
TF
1734 echo "$as_me:$LINENO: result: no" >&5
1735echo "${ECHO_T}no" >&6
ed698112 1736fi
54ce7452 1737
ed698112
NN
1738fi
1739if test -z "$ac_cv_prog_CC"; then
1740 ac_ct_CC=$CC
1741 # Extract the first word of "gcc", so it can be a program name with args.
ee9dd372 1742set dummy gcc; ac_word=$2
ade710a5
TF
1743echo "$as_me:$LINENO: checking for $ac_word" >&5
1744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ed698112
NN
1745if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1746 echo $ECHO_N "(cached) $ECHO_C" >&6
1747else
1748 if test -n "$ac_ct_CC"; then
1749 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1750else
1751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1752for as_dir in $PATH
1753do
1754 IFS=$as_save_IFS
1755 test -z "$as_dir" && as_dir=.
1756 for ac_exec_ext in '' $ac_executable_extensions; do
ade710a5 1757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ed698112
NN
1758 ac_cv_prog_ac_ct_CC="gcc"
1759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1760 break 2
1761 fi
1762done
1763done
1764
1765fi
1766fi
1767ac_ct_CC=$ac_cv_prog_ac_ct_CC
1768if test -n "$ac_ct_CC"; then
ade710a5
TF
1769 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1770echo "${ECHO_T}$ac_ct_CC" >&6
ed698112 1771else
ade710a5
TF
1772 echo "$as_me:$LINENO: result: no" >&5
1773echo "${ECHO_T}no" >&6
ed698112
NN
1774fi
1775
ade710a5 1776 CC=$ac_ct_CC
ed698112
NN
1777else
1778 CC="$ac_cv_prog_CC"
1779fi
1780
1781if test -z "$CC"; then
ade710a5
TF
1782 if test -n "$ac_tool_prefix"; then
1783 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ed698112 1784set dummy ${ac_tool_prefix}cc; ac_word=$2
ade710a5
TF
1785echo "$as_me:$LINENO: checking for $ac_word" >&5
1786echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ed698112
NN
1787if test "${ac_cv_prog_CC+set}" = set; then
1788 echo $ECHO_N "(cached) $ECHO_C" >&6
ee9dd372
TT
1789else
1790 if test -n "$CC"; then
1791 ac_cv_prog_CC="$CC" # Let the user override the test.
1792else
ed698112
NN
1793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1794for as_dir in $PATH
1795do
1796 IFS=$as_save_IFS
1797 test -z "$as_dir" && as_dir=.
1798 for ac_exec_ext in '' $ac_executable_extensions; do
ade710a5 1799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ed698112
NN
1800 ac_cv_prog_CC="${ac_tool_prefix}cc"
1801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1802 break 2
1803 fi
1804done
1805done
1806
ee9dd372
TT
1807fi
1808fi
ed698112 1809CC=$ac_cv_prog_CC
ee9dd372 1810if test -n "$CC"; then
ade710a5
TF
1811 echo "$as_me:$LINENO: result: $CC" >&5
1812echo "${ECHO_T}$CC" >&6
ed698112 1813else
ade710a5
TF
1814 echo "$as_me:$LINENO: result: no" >&5
1815echo "${ECHO_T}no" >&6
ed698112
NN
1816fi
1817
ade710a5
TF
1818fi
1819if test -z "$ac_cv_prog_CC"; then
1820 ac_ct_CC=$CC
1821 # Extract the first word of "cc", so it can be a program name with args.
1822set dummy cc; ac_word=$2
1823echo "$as_me:$LINENO: checking for $ac_word" >&5
1824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1825if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1826 echo $ECHO_N "(cached) $ECHO_C" >&6
1827else
1828 if test -n "$ac_ct_CC"; then
1829 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1830else
1831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1832for as_dir in $PATH
1833do
1834 IFS=$as_save_IFS
1835 test -z "$as_dir" && as_dir=.
1836 for ac_exec_ext in '' $ac_executable_extensions; do
1837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1838 ac_cv_prog_ac_ct_CC="cc"
1839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1840 break 2
02809848 1841 fi
ade710a5
TF
1842done
1843done
1844
1845fi
1846fi
1847ac_ct_CC=$ac_cv_prog_ac_ct_CC
1848if test -n "$ac_ct_CC"; then
1849 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1850echo "${ECHO_T}$ac_ct_CC" >&6
1851else
1852 echo "$as_me:$LINENO: result: no" >&5
1853echo "${ECHO_T}no" >&6
1854fi
1855
1856 CC=$ac_ct_CC
1857else
1858 CC="$ac_cv_prog_CC"
1859fi
1860
ed698112 1861fi
ee9dd372
TT
1862if test -z "$CC"; then
1863 # Extract the first word of "cc", so it can be a program name with args.
1864set dummy cc; ac_word=$2
ade710a5
TF
1865echo "$as_me:$LINENO: checking for $ac_word" >&5
1866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ed698112
NN
1867if test "${ac_cv_prog_CC+set}" = set; then
1868 echo $ECHO_N "(cached) $ECHO_C" >&6
ee9dd372
TT
1869else
1870 if test -n "$CC"; then
1871 ac_cv_prog_CC="$CC" # Let the user override the test.
1872else
ee9dd372 1873 ac_prog_rejected=no
ed698112
NN
1874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1875for as_dir in $PATH
1876do
1877 IFS=$as_save_IFS
1878 test -z "$as_dir" && as_dir=.
1879 for ac_exec_ext in '' $ac_executable_extensions; do
ade710a5 1880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ed698112
NN
1881 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1882 ac_prog_rejected=yes
1883 continue
1884 fi
1885 ac_cv_prog_CC="cc"
1886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1887 break 2
1888 fi
1889done
1890done
1891
ee9dd372
TT
1892if test $ac_prog_rejected = yes; then
1893 # We found a bogon in the path, so make sure we never use it.
1894 set dummy $ac_cv_prog_CC
1895 shift
ed698112 1896 if test $# != 0; then
ee9dd372
TT
1897 # We chose a different compiler from the bogus one.
1898 # However, it has the same basename, so the bogon will be chosen
1899 # first if we set CC to just the basename; use the full file name.
1900 shift
ed698112 1901 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
ee9dd372
TT
1902 fi
1903fi
1904fi
1905fi
ed698112 1906CC=$ac_cv_prog_CC
ee9dd372 1907if test -n "$CC"; then
ade710a5
TF
1908 echo "$as_me:$LINENO: result: $CC" >&5
1909echo "${ECHO_T}$CC" >&6
ee9dd372 1910else
ade710a5
TF
1911 echo "$as_me:$LINENO: result: no" >&5
1912echo "${ECHO_T}no" >&6
ee9dd372
TT
1913fi
1914
ed698112
NN
1915fi
1916if test -z "$CC"; then
1917 if test -n "$ac_tool_prefix"; then
ade710a5 1918 for ac_prog in cl
ed698112
NN
1919 do
1920 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1921set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ade710a5
TF
1922echo "$as_me:$LINENO: checking for $ac_word" >&5
1923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ed698112
NN
1924if test "${ac_cv_prog_CC+set}" = set; then
1925 echo $ECHO_N "(cached) $ECHO_C" >&6
158a8e6b
AO
1926else
1927 if test -n "$CC"; then
1928 ac_cv_prog_CC="$CC" # Let the user override the test.
1929else
ed698112
NN
1930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1931for as_dir in $PATH
1932do
1933 IFS=$as_save_IFS
1934 test -z "$as_dir" && as_dir=.
1935 for ac_exec_ext in '' $ac_executable_extensions; do
ade710a5 1936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ed698112
NN
1937 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1939 break 2
1940 fi
1941done
1942done
1943
158a8e6b
AO
1944fi
1945fi
ed698112 1946CC=$ac_cv_prog_CC
158a8e6b 1947if test -n "$CC"; then
ade710a5
TF
1948 echo "$as_me:$LINENO: result: $CC" >&5
1949echo "${ECHO_T}$CC" >&6
158a8e6b 1950else
ade710a5
TF
1951 echo "$as_me:$LINENO: result: no" >&5
1952echo "${ECHO_T}no" >&6
158a8e6b 1953fi
ed698112
NN
1954
1955 test -n "$CC" && break
1956 done
1957fi
1958if test -z "$CC"; then
1959 ac_ct_CC=$CC
ade710a5 1960 for ac_prog in cl
ed698112
NN
1961do
1962 # Extract the first word of "$ac_prog", so it can be a program name with args.
1963set dummy $ac_prog; ac_word=$2
ade710a5
TF
1964echo "$as_me:$LINENO: checking for $ac_word" >&5
1965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ed698112
NN
1966if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1968else
1969 if test -n "$ac_ct_CC"; then
1970 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1971else
1972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973for as_dir in $PATH
1974do
1975 IFS=$as_save_IFS
1976 test -z "$as_dir" && as_dir=.
1977 for ac_exec_ext in '' $ac_executable_extensions; do
ade710a5 1978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ed698112
NN
1979 ac_cv_prog_ac_ct_CC="$ac_prog"
1980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1981 break 2
158a8e6b 1982 fi
ed698112
NN
1983done
1984done
1985
1986fi
1987fi
1988ac_ct_CC=$ac_cv_prog_ac_ct_CC
1989if test -n "$ac_ct_CC"; then
ade710a5
TF
1990 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1991echo "${ECHO_T}$ac_ct_CC" >&6
ed698112 1992else
ade710a5
TF
1993 echo "$as_me:$LINENO: result: no" >&5
1994echo "${ECHO_T}no" >&6
ee9dd372
TT
1995fi
1996
ed698112
NN
1997 test -n "$ac_ct_CC" && break
1998done
1999
ade710a5 2000 CC=$ac_ct_CC
ed698112
NN
2001fi
2002
2003fi
2004
2005
2006test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2007See \`config.log' for more details." >&5
2008echo "$as_me: error: no acceptable C compiler found in \$PATH
2009See \`config.log' for more details." >&2;}
2010 { (exit 1); exit 1; }; }
2011
2012# Provide some information about the compiler.
ade710a5
TF
2013echo "$as_me:$LINENO:" \
2014 "checking for C compiler version" >&5
ed698112 2015ac_compiler=`set X $ac_compile; echo $2`
ade710a5
TF
2016{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2017 (eval $ac_compiler --version </dev/null >&5) 2>&5
ed698112
NN
2018 ac_status=$?
2019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2020 (exit $ac_status); }
ade710a5
TF
2021{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2022 (eval $ac_compiler -v </dev/null >&5) 2>&5
ed698112
NN
2023 ac_status=$?
2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025 (exit $ac_status); }
ade710a5
TF
2026{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2027 (eval $ac_compiler -V </dev/null >&5) 2>&5
ed698112
NN
2028 ac_status=$?
2029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030 (exit $ac_status); }
2031
2032cat >conftest.$ac_ext <<_ACEOF
2033/* confdefs.h. */
2034_ACEOF
2035cat confdefs.h >>conftest.$ac_ext
2036cat >>conftest.$ac_ext <<_ACEOF
2037/* end confdefs.h. */
2038
2039int
2040main ()
2041{
2042
2043 ;
2044 return 0;
2045}
2046_ACEOF
2047# FIXME: Cleanup?
2048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2049 (eval $ac_link) 2>&5
2050 ac_status=$?
2051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052 (exit $ac_status); }; then
2053 gcc_no_link=no
2054else
2055 gcc_no_link=yes
2056fi
2057
2058if test x$gcc_no_link = xyes; then
2059 # Setting cross_compile will disable run tests; it will
2060 # also disable AC_CHECK_FILE but that's generally
2061 # correct if we can't link.
2062 cross_compiling=yes
2063 EXEEXT=
2064else
ade710a5 2065 cat >conftest.$ac_ext <<_ACEOF
ed698112
NN
2066/* confdefs.h. */
2067_ACEOF
2068cat confdefs.h >>conftest.$ac_ext
2069cat >>conftest.$ac_ext <<_ACEOF
2070/* end confdefs.h. */
2071
2072int
2073main ()
2074{
158a8e6b 2075
ed698112
NN
2076 ;
2077 return 0;
2078}
2079_ACEOF
2080ac_clean_files_save=$ac_clean_files
ade710a5 2081ac_clean_files="$ac_clean_files a.out a.exe b.out"
ed698112
NN
2082# Try to create an executable without -o first, disregard a.out.
2083# It will help us diagnose broken compilers, and finding out an intuition
2084# of exeext.
ade710a5
TF
2085echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2086echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
ed698112
NN
2087ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2088if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2089 (eval $ac_link_default) 2>&5
2090 ac_status=$?
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); }; then
ade710a5
TF
2093 # Find the output, starting from the most likely. This scheme is
2094# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2095# resort.
2096
2097# Be careful to initialize this variable, since it used to be cached.
2098# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2099ac_cv_exeext=
2100# b.out is created by i960 compilers.
2101for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
ed698112
NN
2102do
2103 test -f "$ac_file" || continue
2104 case $ac_file in
ade710a5
TF
2105 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2106 ;;
2107 conftest.$ac_ext )
2108 # This is the source file.
2109 ;;
2110 [ab].out )
2111 # We found the default executable, but exeext='' is most
2112 # certainly right.
2113 break;;
2114 *.* )
2115 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2116 # FIXME: I believe we export ac_cv_exeext for Libtool,
2117 # but it would be cool to find out if it's true. Does anybody
2118 # maintain Libtool? --akim.
2119 export ac_cv_exeext
2120 break;;
2121 * )
2122 break;;
ed698112
NN
2123 esac
2124done
ee9dd372 2125else
ed698112
NN
2126 echo "$as_me: failed program was:" >&5
2127sed 's/^/| /' conftest.$ac_ext >&5
2128
2129{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2130See \`config.log' for more details." >&5
2131echo "$as_me: error: C compiler cannot create executables
2132See \`config.log' for more details." >&2;}
2133 { (exit 77); exit 77; }; }
2134fi
2135
ade710a5
TF
2136ac_exeext=$ac_cv_exeext
2137echo "$as_me:$LINENO: result: $ac_file" >&5
2138echo "${ECHO_T}$ac_file" >&6
2139
2140# Check the compiler produces executables we can run. If not, either
ed698112 2141# the compiler is broken, or we cross compile.
ade710a5
TF
2142echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2143echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
ed698112
NN
2144# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2145# If not cross compiling, check that we can run a simple program.
2146if test "$cross_compiling" != yes; then
2147 if { ac_try='./$ac_file'
2148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2149 (eval $ac_try) 2>&5
2150 ac_status=$?
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); }; }; then
2153 cross_compiling=no
2154 else
2155 if test "$cross_compiling" = maybe; then
2156 cross_compiling=yes
2157 else
2158 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2159If you meant to cross compile, use \`--host'.
2160See \`config.log' for more details." >&5
2161echo "$as_me: error: cannot run C compiled programs.
2162If you meant to cross compile, use \`--host'.
2163See \`config.log' for more details." >&2;}
2164 { (exit 1); exit 1; }; }
2165 fi
2166 fi
2167fi
ade710a5
TF
2168echo "$as_me:$LINENO: result: yes" >&5
2169echo "${ECHO_T}yes" >&6
ed698112 2170
ade710a5
TF
2171rm -f a.out a.exe conftest$ac_cv_exeext b.out
2172ac_clean_files=$ac_clean_files_save
2173# Check the compiler produces executables we can run. If not, either
2174# the compiler is broken, or we cross compile.
2175echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2176echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2177echo "$as_me:$LINENO: result: $cross_compiling" >&5
2178echo "${ECHO_T}$cross_compiling" >&6
02809848 2179
ade710a5
TF
2180echo "$as_me:$LINENO: checking for suffix of executables" >&5
2181echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ed698112
NN
2183 (eval $ac_link) 2>&5
2184 ac_status=$?
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; then
ade710a5
TF
2187 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2188# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2189# work properly (i.e., refer to `conftest.exe'), while it won't with
2190# `rm'.
2191for ac_file in conftest.exe conftest conftest.*; do
2192 test -f "$ac_file" || continue
2193 case $ac_file in
2194 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2195 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2196 export ac_cv_exeext
2197 break;;
2198 * ) break;;
2199 esac
2200done
ee9dd372 2201else
ed698112
NN
2202 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2203See \`config.log' for more details." >&5
2204echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2205See \`config.log' for more details." >&2;}
2206 { (exit 1); exit 1; }; }
ee9dd372 2207fi
ed698112 2208
ade710a5
TF
2209rm -f conftest$ac_cv_exeext
2210echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2211echo "${ECHO_T}$ac_cv_exeext" >&6
ed698112 2212
ade710a5 2213rm -f conftest.$ac_ext
ed698112
NN
2214EXEEXT=$ac_cv_exeext
2215ac_exeext=$EXEEXT
ade710a5
TF
2216fi
2217echo "$as_me:$LINENO: checking for suffix of object files" >&5
2218echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
ed698112
NN
2219if test "${ac_cv_objext+set}" = set; then
2220 echo $ECHO_N "(cached) $ECHO_C" >&6
2221else
ade710a5
TF
2222 cat >conftest.$ac_ext <<_ACEOF
2223/* confdefs.h. */
2224_ACEOF
2225cat confdefs.h >>conftest.$ac_ext
2226cat >>conftest.$ac_ext <<_ACEOF
2227/* end confdefs.h. */
2228
2229int
2230main ()
2231{
2232
2233 ;
2234 return 0;
2235}
2236_ACEOF
2237rm -f conftest.o conftest.obj
ed698112
NN
2238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2239 (eval $ac_compile) 2>&5
2240 ac_status=$?
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); }; then
ade710a5 2243 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
ed698112 2244 case $ac_file in
ade710a5 2245 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
ed698112
NN
2246 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2247 break;;
2248 esac
2249done
158a8e6b 2250else
ed698112
NN
2251 echo "$as_me: failed program was:" >&5
2252sed 's/^/| /' conftest.$ac_ext >&5
2253
2254{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2255See \`config.log' for more details." >&5
2256echo "$as_me: error: cannot compute suffix of object files: cannot compile
2257See \`config.log' for more details." >&2;}
2258 { (exit 1); exit 1; }; }
158a8e6b
AO
2259fi
2260
ade710a5 2261rm -f conftest.$ac_cv_objext conftest.$ac_ext
ed698112 2262fi
ade710a5
TF
2263echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2264echo "${ECHO_T}$ac_cv_objext" >&6
ed698112
NN
2265OBJEXT=$ac_cv_objext
2266ac_objext=$OBJEXT
ade710a5
TF
2267echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2268echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
ed698112
NN
2269if test "${ac_cv_c_compiler_gnu+set}" = set; then
2270 echo $ECHO_N "(cached) $ECHO_C" >&6
2271else
2272 cat >conftest.$ac_ext <<_ACEOF
2273/* confdefs.h. */
2274_ACEOF
2275cat confdefs.h >>conftest.$ac_ext
2276cat >>conftest.$ac_ext <<_ACEOF
2277/* end confdefs.h. */
2278
2279int
2280main ()
2281{
2282#ifndef __GNUC__
2283 choke me
2284#endif
2285
2286 ;
2287 return 0;
2288}
2289_ACEOF
2290rm -f conftest.$ac_objext
2291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2292 (eval $ac_compile) 2>conftest.er1
2293 ac_status=$?
2294 grep -v '^ *+' conftest.er1 >conftest.err
2295 rm -f conftest.er1
2296 cat conftest.err >&5
2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298 (exit $ac_status); } &&
ade710a5
TF
2299 { ac_try='test -z "$ac_c_werror_flag"
2300 || test ! -s conftest.err'
ed698112
NN
2301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2302 (eval $ac_try) 2>&5
2303 ac_status=$?
2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305 (exit $ac_status); }; } &&
2306 { ac_try='test -s conftest.$ac_objext'
2307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2308 (eval $ac_try) 2>&5
2309 ac_status=$?
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311 (exit $ac_status); }; }; then
2312 ac_compiler_gnu=yes
2313else
2314 echo "$as_me: failed program was:" >&5
2315sed 's/^/| /' conftest.$ac_ext >&5
2316
ade710a5 2317ac_compiler_gnu=no
ed698112
NN
2318fi
2319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2320ac_cv_c_compiler_gnu=$ac_compiler_gnu
2321
2322fi
ade710a5
TF
2323echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2324echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
ed698112
NN
2325GCC=`test $ac_compiler_gnu = yes && echo yes`
2326ac_test_CFLAGS=${CFLAGS+set}
2327ac_save_CFLAGS=$CFLAGS
ade710a5
TF
2328CFLAGS="-g"
2329echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2330echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
ed698112
NN
2331if test "${ac_cv_prog_cc_g+set}" = set; then
2332 echo $ECHO_N "(cached) $ECHO_C" >&6
2333else
ade710a5 2334 cat >conftest.$ac_ext <<_ACEOF
ed698112
NN
2335/* confdefs.h. */
2336_ACEOF
2337cat confdefs.h >>conftest.$ac_ext
2338cat >>conftest.$ac_ext <<_ACEOF
2339/* end confdefs.h. */
2340
2341int
2342main ()
2343{
2344
2345 ;
2346 return 0;
2347}
2348_ACEOF
2349rm -f conftest.$ac_objext
2350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2351 (eval $ac_compile) 2>conftest.er1
2352 ac_status=$?
2353 grep -v '^ *+' conftest.er1 >conftest.err
2354 rm -f conftest.er1
2355 cat conftest.err >&5
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); } &&
ade710a5
TF
2358 { ac_try='test -z "$ac_c_werror_flag"
2359 || test ! -s conftest.err'
ed698112
NN
2360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2361 (eval $ac_try) 2>&5
2362 ac_status=$?
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); }; } &&
2365 { ac_try='test -s conftest.$ac_objext'
2366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2367 (eval $ac_try) 2>&5
2368 ac_status=$?
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }; }; then
ee9dd372
TT
2371 ac_cv_prog_cc_g=yes
2372else
ed698112
NN
2373 echo "$as_me: failed program was:" >&5
2374sed 's/^/| /' conftest.$ac_ext >&5
ee9dd372 2375
ade710a5
TF
2376ac_cv_prog_cc_g=no
2377fi
2378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2379fi
2380echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2381echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2382if test "$ac_test_CFLAGS" = set; then
2383 CFLAGS=$ac_save_CFLAGS
2384elif test $ac_cv_prog_cc_g = yes; then
2385 if test "$GCC" = yes; then
2386 CFLAGS="-g -O2"
2387 else
2388 CFLAGS="-g"
2389 fi
2390else
2391 if test "$GCC" = yes; then
2392 CFLAGS="-O2"
2393 else
2394 CFLAGS=
2395 fi
2396fi
2397echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2398echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2399if test "${ac_cv_prog_cc_stdc+set}" = set; then
2400 echo $ECHO_N "(cached) $ECHO_C" >&6
2401else
2402 ac_cv_prog_cc_stdc=no
2403ac_save_CC=$CC
2404cat >conftest.$ac_ext <<_ACEOF
ed698112
NN
2405/* confdefs.h. */
2406_ACEOF
2407cat confdefs.h >>conftest.$ac_ext
2408cat >>conftest.$ac_ext <<_ACEOF
2409/* end confdefs.h. */
ade710a5
TF
2410#include <stdarg.h>
2411#include <stdio.h>
2412#include <sys/types.h>
2413#include <sys/stat.h>
2414/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2415struct buf { int x; };
2416FILE * (*rcsopen) (struct buf *, struct stat *, int);
2417static char *e (p, i)
2418 char **p;
2419 int i;
2420{
2421 return p[i];
2422}
2423static char *f (char * (*g) (char **, int), char **p, ...)
2424{
2425 char *s;
2426 va_list v;
2427 va_start (v,p);
2428 s = g (p, va_arg (v,int));
2429 va_end (v);
2430 return s;
2431}
ee9dd372 2432
ade710a5
TF
2433/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2434 function prototypes and stuff, but not '\xHH' hex character constants.
2435 These don't provoke an error unfortunately, instead are silently treated
2436 as 'x'. The following induces an error, until -std1 is added to get
2437 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2438 array size at least. It's necessary to write '\x00'==0 to get something
2439 that's true only with -std1. */
2440int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2441
2442int test (int i, double x);
2443struct s1 {int (*f) (int a);};
2444struct s2 {int (*f) (double a);};
2445int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2446int argc;
2447char **argv;
ed698112
NN
2448int
2449main ()
2450{
ade710a5 2451return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
ed698112
NN
2452 ;
2453 return 0;
2454}
2455_ACEOF
ade710a5
TF
2456# Don't try gcc -ansi; that turns off useful extensions and
2457# breaks some systems' header files.
2458# AIX -qlanglvl=ansi
2459# Ultrix and OSF/1 -std1
2460# HP-UX 10.20 and later -Ae
2461# HP-UX older versions -Aa -D_HPUX_SOURCE
2462# SVR4 -Xc -D__EXTENSIONS__
2463for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2464do
2465 CC="$ac_save_CC $ac_arg"
2466 rm -f conftest.$ac_objext
ed698112
NN
2467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2468 (eval $ac_compile) 2>conftest.er1
2469 ac_status=$?
2470 grep -v '^ *+' conftest.er1 >conftest.err
2471 rm -f conftest.er1
2472 cat conftest.err >&5
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); } &&
ade710a5
TF
2475 { ac_try='test -z "$ac_c_werror_flag"
2476 || test ! -s conftest.err'
ed698112
NN
2477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2478 (eval $ac_try) 2>&5
2479 ac_status=$?
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); }; } &&
2482 { ac_try='test -s conftest.$ac_objext'
2483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484 (eval $ac_try) 2>&5
2485 ac_status=$?
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); }; }; then
ade710a5
TF
2488 ac_cv_prog_cc_stdc=$ac_arg
2489break
ed698112
NN
2490else
2491 echo "$as_me: failed program was:" >&5
2492sed 's/^/| /' conftest.$ac_ext >&5
2493
ade710a5
TF
2494fi
2495rm -f conftest.err conftest.$ac_objext
2496done
2497rm -f conftest.$ac_ext conftest.$ac_objext
2498CC=$ac_save_CC
e2ea015c 2499
ade710a5
TF
2500fi
2501
2502case "x$ac_cv_prog_cc_stdc" in
2503 x|xno)
2504 echo "$as_me:$LINENO: result: none needed" >&5
2505echo "${ECHO_T}none needed" >&6 ;;
2506 *)
2507 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2508echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2509 CC="$CC $ac_cv_prog_cc_stdc" ;;
2510esac
02809848 2511
ade710a5
TF
2512# Some people use a C++ compiler to compile C. Since we use `exit',
2513# in C++ we need to declare it. In case someone uses the same compiler
2514# for both compiling C and C++ we need to have the C++ compiler decide
2515# the declaration of exit, since it's the most demanding environment.
2516cat >conftest.$ac_ext <<_ACEOF
2517#ifndef __cplusplus
2518 choke me
2519#endif
2520_ACEOF
2521rm -f conftest.$ac_objext
2522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2523 (eval $ac_compile) 2>conftest.er1
2524 ac_status=$?
2525 grep -v '^ *+' conftest.er1 >conftest.err
2526 rm -f conftest.er1
2527 cat conftest.err >&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); } &&
2530 { ac_try='test -z "$ac_c_werror_flag"
2531 || test ! -s conftest.err'
2532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2533 (eval $ac_try) 2>&5
2534 ac_status=$?
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }; } &&
2537 { ac_try='test -s conftest.$ac_objext'
2538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2539 (eval $ac_try) 2>&5
2540 ac_status=$?
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); }; }; then
2543 for ac_declaration in \
2544 '' \
2545 'extern "C" void std::exit (int) throw (); using std::exit;' \
2546 'extern "C" void std::exit (int); using std::exit;' \
2547 'extern "C" void exit (int) throw ();' \
2548 'extern "C" void exit (int);' \
2549 'void exit (int);'
2550do
2551 cat >conftest.$ac_ext <<_ACEOF
2552/* confdefs.h. */
2553_ACEOF
2554cat confdefs.h >>conftest.$ac_ext
2555cat >>conftest.$ac_ext <<_ACEOF
2556/* end confdefs.h. */
2557$ac_declaration
2558#include <stdlib.h>
2559int
2560main ()
2561{
2562exit (42);
ed698112
NN
2563 ;
2564 return 0;
2565}
2566_ACEOF
2567rm -f conftest.$ac_objext
2568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2569 (eval $ac_compile) 2>conftest.er1
2570 ac_status=$?
2571 grep -v '^ *+' conftest.er1 >conftest.err
2572 rm -f conftest.er1
2573 cat conftest.err >&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); } &&
ade710a5
TF
2576 { ac_try='test -z "$ac_c_werror_flag"
2577 || test ! -s conftest.err'
ed698112
NN
2578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579 (eval $ac_try) 2>&5
2580 ac_status=$?
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; } &&
2583 { ac_try='test -s conftest.$ac_objext'
2584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2585 (eval $ac_try) 2>&5
2586 ac_status=$?
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); }; }; then
ade710a5 2589 :
ee9dd372 2590else
ed698112
NN
2591 echo "$as_me: failed program was:" >&5
2592sed 's/^/| /' conftest.$ac_ext >&5
2593
ade710a5 2594continue
02809848 2595fi
02809848 2596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ade710a5 2597 cat >conftest.$ac_ext <<_ACEOF
ed698112
NN
2598/* confdefs.h. */
2599_ACEOF
2600cat confdefs.h >>conftest.$ac_ext
2601cat >>conftest.$ac_ext <<_ACEOF
2602/* end confdefs.h. */
ade710a5 2603$ac_declaration
ed698112
NN
2604int
2605main ()
2606{
ade710a5 2607exit (42);
ed698112
NN
2608 ;
2609 return 0;
2610}
2611_ACEOF
ade710a5 2612rm -f conftest.$ac_objext
ed698112
NN
2613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2614 (eval $ac_compile) 2>conftest.er1
2615 ac_status=$?
2616 grep -v '^ *+' conftest.er1 >conftest.err
2617 rm -f conftest.er1
2618 cat conftest.err >&5
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); } &&
ade710a5
TF
2621 { ac_try='test -z "$ac_c_werror_flag"
2622 || test ! -s conftest.err'
ed698112
NN
2623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624 (eval $ac_try) 2>&5
2625 ac_status=$?
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); }; } &&
2628 { ac_try='test -s conftest.$ac_objext'
2629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630 (eval $ac_try) 2>&5
2631 ac_status=$?
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); }; }; then
ade710a5 2634 break
ed698112
NN
2635else
2636 echo "$as_me: failed program was:" >&5
2637sed 's/^/| /' conftest.$ac_ext >&5
2638
ee9dd372 2639fi
ade710a5 2640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ed698112 2641done
ade710a5
TF
2642rm -f conftest*
2643if test -n "$ac_declaration"; then
2644 echo '#ifdef __cplusplus' >>confdefs.h
2645 echo $ac_declaration >>confdefs.h
2646 echo '#endif' >>confdefs.h
ee9dd372 2647fi
ed698112 2648
ade710a5
TF
2649else
2650 echo "$as_me: failed program was:" >&5
2651sed 's/^/| /' conftest.$ac_ext >&5
ed698112 2652
ade710a5
TF
2653fi
2654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ed698112
NN
2655ac_ext=c
2656ac_cpp='$CPP $CPPFLAGS'
2657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2659ac_compiler_gnu=$ac_cv_c_compiler_gnu
ee9dd372 2660
ade710a5 2661ac_ext=cc
ed698112
NN
2662ac_cpp='$CXXCPP $CPPFLAGS'
2663ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2664ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2665ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
ade710a5
TF
2666if test -n "$ac_tool_prefix"; then
2667 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
ed698112
NN
2668 do
2669 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2670set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ade710a5
TF
2671echo "$as_me:$LINENO: checking for $ac_word" >&5
2672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
97b8365c 2673if test "${ac_cv_prog_CXX+set}" = set; then
ed698112
NN
2674 echo $ECHO_N "(cached) $ECHO_C" >&6
2675else
2676 if test -n "$CXX"; then
97b8365c 2677 ac_cv_prog_CXX="$CXX" # Let the user override the test.
ed698112
NN
2678else
2679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680for as_dir in $PATH
2681do
2682 IFS=$as_save_IFS
2683 test -z "$as_dir" && as_dir=.
2684 for ac_exec_ext in '' $ac_executable_extensions; do
ade710a5 2685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
97b8365c 2686 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
ed698112
NN
2687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2688 break 2
2689 fi
2690done
ee9dd372 2691done
158a8e6b 2692
ed698112
NN
2693fi
2694fi
97b8365c 2695CXX=$ac_cv_prog_CXX
ed698112 2696if test -n "$CXX"; then
ade710a5
TF
2697 echo "$as_me:$LINENO: result: $CXX" >&5
2698echo "${ECHO_T}$CXX" >&6
ed698112 2699else
ade710a5
TF
2700 echo "$as_me:$LINENO: result: no" >&5
2701echo "${ECHO_T}no" >&6
ed698112 2702fi
ee9dd372 2703
ed698112
NN
2704 test -n "$CXX" && break
2705 done
2706fi
2707if test -z "$CXX"; then
2708 ac_ct_CXX=$CXX
ade710a5 2709 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
ed698112
NN
2710do
2711 # Extract the first word of "$ac_prog", so it can be a program name with args.
2712set dummy $ac_prog; ac_word=$2
ade710a5
TF
2713echo "$as_me:$LINENO: checking for $ac_word" >&5
2714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ed698112
NN
2715if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2716 echo $ECHO_N "(cached) $ECHO_C" >&6
ee9dd372 2717else
ed698112
NN
2718 if test -n "$ac_ct_CXX"; then
2719 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
ee9dd372 2720else
ed698112
NN
2721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722for as_dir in $PATH
2723do
2724 IFS=$as_save_IFS
2725 test -z "$as_dir" && as_dir=.
2726 for ac_exec_ext in '' $ac_executable_extensions; do
ade710a5 2727 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ed698112
NN
2728 ac_cv_prog_ac_ct_CXX="$ac_prog"
2729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2730 break 2
2731 fi
2732done
2733done
2734
2735fi
ee9dd372 2736fi
ed698112
NN
2737ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2738if test -n "$ac_ct_CXX"; then
ade710a5
TF
2739 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2740echo "${ECHO_T}$ac_ct_CXX" >&6
ed698112 2741else
ade710a5
TF
2742 echo "$as_me:$LINENO: result: no" >&5
2743echo "${ECHO_T}no" >&6
ee9dd372
TT
2744fi
2745
ed698112
NN
2746 test -n "$ac_ct_CXX" && break
2747done
ade710a5 2748test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
ed698112 2749
ade710a5 2750 CXX=$ac_ct_CXX
ed698112
NN
2751fi
2752
ade710a5 2753
ed698112 2754# Provide some information about the compiler.
ade710a5
TF
2755echo "$as_me:$LINENO:" \
2756 "checking for C++ compiler version" >&5
ed698112 2757ac_compiler=`set X $ac_compile; echo $2`
ade710a5
TF
2758{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2759 (eval $ac_compiler --version </dev/null >&5) 2>&5
ed698112
NN
2760 ac_status=$?
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); }
ade710a5
TF
2763{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2764 (eval $ac_compiler -v </dev/null >&5) 2>&5
ed698112
NN
2765 ac_status=$?
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); }
ade710a5
TF
2768{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2769 (eval $ac_compiler -V </dev/null >&5) 2>&5
ed698112
NN
2770 ac_status=$?
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); }
2773
ade710a5
TF
2774echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2775echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
ed698112
NN
2776if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2777 echo $ECHO_N "(cached) $ECHO_C" >&6
2778else
2779 cat >conftest.$ac_ext <<_ACEOF
2780/* confdefs.h. */
2781_ACEOF
2782cat confdefs.h >>conftest.$ac_ext
2783cat >>conftest.$ac_ext <<_ACEOF
2784/* end confdefs.h. */
ee9dd372 2785
ed698112
NN
2786int
2787main ()
2788{
2789#ifndef __GNUC__
2790 choke me
2791#endif
2792
2793 ;
2794 return 0;
2795}
2796_ACEOF
2797rm -f conftest.$ac_objext
2798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2799 (eval $ac_compile) 2>conftest.er1
2800 ac_status=$?
2801 grep -v '^ *+' conftest.er1 >conftest.err
2802 rm -f conftest.er1
2803 cat conftest.err >&5
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); } &&
ade710a5
TF
2806 { ac_try='test -z "$ac_cxx_werror_flag"
2807 || test ! -s conftest.err'
ed698112
NN
2808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809 (eval $ac_try) 2>&5
2810 ac_status=$?
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); }; } &&
2813 { ac_try='test -s conftest.$ac_objext'
2814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2815 (eval $ac_try) 2>&5
2816 ac_status=$?
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); }; }; then
2819 ac_compiler_gnu=yes
2820else
2821 echo "$as_me: failed program was:" >&5
2822sed 's/^/| /' conftest.$ac_ext >&5
2823
ade710a5 2824ac_compiler_gnu=no
ed698112
NN
2825fi
2826rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2827ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2828
2829fi
ade710a5
TF
2830echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2831echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
ed698112
NN
2832GXX=`test $ac_compiler_gnu = yes && echo yes`
2833ac_test_CXXFLAGS=${CXXFLAGS+set}
2834ac_save_CXXFLAGS=$CXXFLAGS
ade710a5
TF
2835CXXFLAGS="-g"
2836echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2837echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
ed698112
NN
2838if test "${ac_cv_prog_cxx_g+set}" = set; then
2839 echo $ECHO_N "(cached) $ECHO_C" >&6
2840else
ade710a5 2841 cat >conftest.$ac_ext <<_ACEOF
ed698112
NN
2842/* confdefs.h. */
2843_ACEOF
2844cat confdefs.h >>conftest.$ac_ext
2845cat >>conftest.$ac_ext <<_ACEOF
2846/* end confdefs.h. */
2847
2848int
2849main ()
2850{
2851
2852 ;
2853 return 0;
2854}
2855_ACEOF
2856rm -f conftest.$ac_objext
2857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2858 (eval $ac_compile) 2>conftest.er1
2859 ac_status=$?
2860 grep -v '^ *+' conftest.er1 >conftest.err
2861 rm -f conftest.er1
2862 cat conftest.err >&5
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); } &&
ade710a5
TF
2865 { ac_try='test -z "$ac_cxx_werror_flag"
2866 || test ! -s conftest.err'
ed698112
NN
2867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2868 (eval $ac_try) 2>&5
2869 ac_status=$?
2870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871 (exit $ac_status); }; } &&
2872 { ac_try='test -s conftest.$ac_objext'
2873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2874 (eval $ac_try) 2>&5
2875 ac_status=$?
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); }; }; then
ee9dd372
TT
2878 ac_cv_prog_cxx_g=yes
2879else
ed698112
NN
2880 echo "$as_me: failed program was:" >&5
2881sed 's/^/| /' conftest.$ac_ext >&5
ee9dd372 2882
ade710a5
TF
2883ac_cv_prog_cxx_g=no
2884fi
2885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2886fi
2887echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2888echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2889if test "$ac_test_CXXFLAGS" = set; then
2890 CXXFLAGS=$ac_save_CXXFLAGS
2891elif test $ac_cv_prog_cxx_g = yes; then
2892 if test "$GXX" = yes; then
2893 CXXFLAGS="-g -O2"
2894 else
2895 CXXFLAGS="-g"
2896 fi
2897else
2898 if test "$GXX" = yes; then
2899 CXXFLAGS="-O2"
2900 else
2901 CXXFLAGS=
2902 fi
2903fi
2904for ac_declaration in \
2905 '' \
2906 'extern "C" void std::exit (int) throw (); using std::exit;' \
2907 'extern "C" void std::exit (int); using std::exit;' \
2908 'extern "C" void exit (int) throw ();' \
2909 'extern "C" void exit (int);' \
2910 'void exit (int);'
2911do
2912 cat >conftest.$ac_ext <<_ACEOF
ed698112
NN
2913/* confdefs.h. */
2914_ACEOF
2915cat confdefs.h >>conftest.$ac_ext
2916cat >>conftest.$ac_ext <<_ACEOF
2917/* end confdefs.h. */
ade710a5
TF
2918$ac_declaration
2919#include <stdlib.h>
ed698112
NN
2920int
2921main ()
2922{
ade710a5 2923exit (42);
ed698112
NN
2924 ;
2925 return 0;
2926}
2927_ACEOF
2928rm -f conftest.$ac_objext
2929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2930 (eval $ac_compile) 2>conftest.er1
2931 ac_status=$?
2932 grep -v '^ *+' conftest.er1 >conftest.err
2933 rm -f conftest.er1
2934 cat conftest.err >&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); } &&
ade710a5
TF
2937 { ac_try='test -z "$ac_cxx_werror_flag"
2938 || test ! -s conftest.err'
ed698112
NN
2939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2940 (eval $ac_try) 2>&5
2941 ac_status=$?
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); }; } &&
2944 { ac_try='test -s conftest.$ac_objext'
2945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2946 (eval $ac_try) 2>&5
2947 ac_status=$?
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); }; }; then
2950 :
2951else
2952 echo "$as_me: failed program was:" >&5
2953sed 's/^/| /' conftest.$ac_ext >&5
2954
ade710a5
TF
2955continue
2956fi
2957rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2958 cat >conftest.$ac_ext <<_ACEOF
ed698112
NN
2959/* confdefs.h. */
2960_ACEOF
2961cat confdefs.h >>conftest.$ac_ext
2962cat >>conftest.$ac_ext <<_ACEOF
2963/* end confdefs.h. */
ade710a5 2964$ac_declaration
ed698112
NN
2965int
2966main ()
2967{
ade710a5 2968exit (42);
ed698112
NN
2969 ;
2970 return 0;
2971}
2972_ACEOF
2973rm -f conftest.$ac_objext
2974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2975 (eval $ac_compile) 2>conftest.er1
2976 ac_status=$?
2977 grep -v '^ *+' conftest.er1 >conftest.err
2978 rm -f conftest.er1
2979 cat conftest.err >&5
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); } &&
ade710a5
TF
2982 { ac_try='test -z "$ac_cxx_werror_flag"
2983 || test ! -s conftest.err'
ed698112
NN
2984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2985 (eval $ac_try) 2>&5
2986 ac_status=$?
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); }; } &&
2989 { ac_try='test -s conftest.$ac_objext'
2990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2991 (eval $ac_try) 2>&5
2992 ac_status=$?
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); }; }; then
ade710a5 2995 break
e2ea015c 2996else
ed698112
NN
2997 echo "$as_me: failed program was:" >&5
2998sed 's/^/| /' conftest.$ac_ext >&5
2999
02809848 3000fi
ed698112 3001rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ade710a5
TF
3002done
3003rm -f conftest*
3004if test -n "$ac_declaration"; then
3005 echo '#ifdef __cplusplus' >>confdefs.h
3006 echo $ac_declaration >>confdefs.h
3007 echo '#endif' >>confdefs.h
158a8e6b
AO
3008fi
3009
ed698112
NN
3010ac_ext=c
3011ac_cpp='$CPP $CPPFLAGS'
3012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3014ac_compiler_gnu=$ac_cv_c_compiler_gnu
3015
3016CXXFLAGS="$save_CXXFLAGS"
3017
3018
3019
3020
158a8e6b 3021
e3f92d3b 3022am__api_version="1.9"
36609570
NN
3023# Find a good install program. We prefer a C program (faster),
3024# so one script is as good as another. But avoid the broken or
3025# incompatible versions:
3026# SysV /etc/install, /usr/sbin/install
3027# SunOS /usr/etc/install
3028# IRIX /sbin/install
3029# AIX /bin/install
ed698112 3030# AmigaOS /C/install, which installs bootblocks on floppy discs
36609570
NN
3031# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3032# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3033# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ed698112 3034# OS/2's system install, which has a completely different semantic
36609570 3035# ./install, which can be erroneously created by make from ./install.sh.
ade710a5
TF
3036echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3037echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
36609570 3038if test -z "$INSTALL"; then
ed698112
NN
3039if test "${ac_cv_path_install+set}" = set; then
3040 echo $ECHO_N "(cached) $ECHO_C" >&6
36609570 3041else
ed698112
NN
3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043for as_dir in $PATH
3044do
3045 IFS=$as_save_IFS
3046 test -z "$as_dir" && as_dir=.
3047 # Account for people who put trailing slashes in PATH elements.
3048case $as_dir/ in
3049 ./ | .// | /cC/* | \
3050 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3051 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3052 /usr/ucb/* ) ;;
3053 *)
3054 # OSF1 and SCO ODT 3.0 have their own names for install.
3055 # Don't use installbsd from OSF since it installs stuff as root
3056 # by default.
3057 for ac_prog in ginstall scoinst install; do
3058 for ac_exec_ext in '' $ac_executable_extensions; do
ade710a5 3059 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
36609570 3060 if test $ac_prog = install &&
ed698112 3061 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
36609570
NN
3062 # AIX install. It has an incompatible calling convention.
3063 :
ed698112
NN
3064 elif test $ac_prog = install &&
3065 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3066 # program-specific install script used by HP pwplus--don't use.
3067 :
36609570 3068 else
ed698112
NN
3069 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3070 break 3
36609570
NN
3071 fi
3072 fi
3073 done
ed698112
NN
3074 done
3075 ;;
3076esac
3077done
3078
36609570
NN
3079
3080fi
3081 if test "${ac_cv_path_install+set}" = set; then
ed698112 3082 INSTALL=$ac_cv_path_install
36609570 3083 else
ade710a5
TF
3084 # As a last resort, use the slow shell script. We don't cache a
3085 # path for INSTALL within a source directory, because that will
36609570 3086 # break other packages using the cache if that directory is
ade710a5 3087 # removed, or if the path is relative.
ed698112 3088 INSTALL=$ac_install_sh
36609570
NN
3089 fi
3090fi
ade710a5
TF
3091echo "$as_me:$LINENO: result: $INSTALL" >&5
3092echo "${ECHO_T}$INSTALL" >&6
36609570
NN
3093
3094# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3095# It thinks the first close brace ends the variable substitution.
3096test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3097
ed698112 3098test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
36609570
NN
3099
3100test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3101
ade710a5
TF
3102echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3103echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
36609570
NN
3104# Just in case
3105sleep 1
e3f92d3b 3106echo timestamp > conftest.file
36609570
NN
3107# Do `set' in a subshell so we don't clobber the current shell's
3108# arguments. Must try -L first in case configure is actually a
3109# symlink; some systems play weird games with the mod time of symlinks
3110# (eg FreeBSD returns the mod time of the symlink's containing
3111# directory).
3112if (
e3f92d3b 3113 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
36609570
NN
3114 if test "$*" = "X"; then
3115 # -L didn't work.
e3f92d3b 3116 set X `ls -t $srcdir/configure conftest.file`
36609570 3117 fi
e3f92d3b
MK
3118 rm -f conftest.file
3119 if test "$*" != "X $srcdir/configure conftest.file" \
3120 && test "$*" != "X conftest.file $srcdir/configure"; then
36609570
NN
3121
3122 # If neither matched, then we have a broken ls. This can happen
3123 # if, for instance, CONFIG_SHELL is bash and it inherits a
3124 # broken ls alias from the environment. This has actually
3125 # happened. Such a system could not be considered "sane".
ed698112
NN
3126 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3127alias in your environment" >&5
3128echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3129alias in your environment" >&2;}
3130 { (exit 1); exit 1; }; }
36609570
NN
3131 fi
3132
e3f92d3b 3133 test "$2" = conftest.file
36609570
NN
3134 )
3135then
3136 # Ok.
3137 :
3138else
ed698112
NN
3139 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3140Check your system clock" >&5
3141echo "$as_me: error: newly created file is older than distributed files!
3142Check your system clock" >&2;}
3143 { (exit 1); exit 1; }; }
36609570 3144fi
ade710a5
TF
3145echo "$as_me:$LINENO: result: yes" >&5
3146echo "${ECHO_T}yes" >&6
36609570 3147test "$program_prefix" != NONE &&
ade710a5 3148 program_transform_name="s,^,$program_prefix,;$program_transform_name"
36609570
NN
3149# Use a double $ so make ignores it.
3150test "$program_suffix" != NONE &&
ade710a5 3151 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
ed698112
NN
3152# Double any \ or $. echo might interpret backslashes.
3153# By default was `s,x,x', remove it if useless.
3154cat <<\_ACEOF >conftest.sed
3155s/[\\$]/&&/g;s/;s,x,x,$//
3156_ACEOF
3157program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
ade710a5 3158rm conftest.sed
ed698112 3159
e3f92d3b
MK
3160# expand $ac_aux_dir to an absolute path
3161am_aux_dir=`cd $ac_aux_dir && pwd`
3162
3163test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3164# Use eval to expand $SHELL
3165if eval "$MISSING --run true"; then
3166 am_missing_run="$MISSING --run "
3167else
3168 am_missing_run=
3169 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3170echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3171fi
3172
3173if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3174 # We used to keeping the `.' as first argument, in order to
3175 # allow $(mkdir_p) to be used without argument. As in
3176 # $(mkdir_p) $(somedir)
3177 # where $(somedir) is conditionally defined. However this is wrong
3178 # for two reasons:
3179 # 1. if the package is installed by a user who cannot write `.'
3180 # make install will fail,
3181 # 2. the above comment should most certainly read
3182 # $(mkdir_p) $(DESTDIR)$(somedir)
3183 # so it does not work when $(somedir) is undefined and
3184 # $(DESTDIR) is not.
3185 # To support the latter case, we have to write
3186 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3187 # so the `.' trick is pointless.
3188 mkdir_p='mkdir -p --'
3189else
3190 # On NextStep and OpenStep, the `mkdir' command does not
3191 # recognize any option. It will interpret all options as
3192 # directories to create, and then abort because `.' already
3193 # exists.
3194 for d in ./-p ./--version;
3195 do
3196 test -d $d && rmdir $d
3197 done
3198 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3199 if test -f "$ac_aux_dir/mkinstalldirs"; then
3200 mkdir_p='$(mkinstalldirs)'
3201 else
3202 mkdir_p='$(install_sh) -d'
3203 fi
3204fi
3205
3206for ac_prog in gawk mawk nawk awk
3207do
3208 # Extract the first word of "$ac_prog", so it can be a program name with args.
3209set dummy $ac_prog; ac_word=$2
ade710a5
TF
3210echo "$as_me:$LINENO: checking for $ac_word" >&5
3211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
e3f92d3b
MK
3212if test "${ac_cv_prog_AWK+set}" = set; then
3213 echo $ECHO_N "(cached) $ECHO_C" >&6
3214else
3215 if test -n "$AWK"; then
3216 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3217else
3218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219for as_dir in $PATH
3220do
3221 IFS=$as_save_IFS
3222 test -z "$as_dir" && as_dir=.
3223 for ac_exec_ext in '' $ac_executable_extensions; do
ade710a5 3224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e3f92d3b
MK
3225 ac_cv_prog_AWK="$ac_prog"
3226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3227 break 2
3228 fi
3229done
3230done
3231
3232fi
3233fi
3234AWK=$ac_cv_prog_AWK
3235if test -n "$AWK"; then
ade710a5
TF
3236 echo "$as_me:$LINENO: result: $AWK" >&5
3237echo "${ECHO_T}$AWK" >&6
e3f92d3b 3238else
ade710a5
TF
3239 echo "$as_me:$LINENO: result: no" >&5
3240echo "${ECHO_T}no" >&6
e3f92d3b
MK
3241fi
3242
3243 test -n "$AWK" && break
3244done
3245
ade710a5
TF
3246echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3247echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ed698112 3248set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
ade710a5 3249if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
ed698112
NN
3250 echo $ECHO_N "(cached) $ECHO_C" >&6
3251else
3252 cat >conftest.make <<\_ACEOF
36609570 3253all:
ade710a5 3254 @echo 'ac_maketemp="$(MAKE)"'
ed698112 3255_ACEOF
36609570 3256# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
ed698112 3257eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
ade710a5 3258if test -n "$ac_maketemp"; then
36609570
NN
3259 eval ac_cv_prog_make_${ac_make}_set=yes
3260else
3261 eval ac_cv_prog_make_${ac_make}_set=no
3262fi
ed698112 3263rm -f conftest.make
36609570
NN
3264fi
3265if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
ade710a5
TF
3266 echo "$as_me:$LINENO: result: yes" >&5
3267echo "${ECHO_T}yes" >&6
36609570
NN
3268 SET_MAKE=
3269else
ade710a5
TF
3270 echo "$as_me:$LINENO: result: no" >&5
3271echo "${ECHO_T}no" >&6
36609570
NN
3272 SET_MAKE="MAKE=${MAKE-make}"
3273fi
3274
e3f92d3b
MK
3275rm -rf .tst 2>/dev/null
3276mkdir .tst 2>/dev/null
3277if test -d .tst; then
3278 am__leading_dot=.
3279else
3280 am__leading_dot=_
3281fi
3282rmdir .tst 2>/dev/null
3283
3284DEPDIR="${am__leading_dot}deps"
3285
ade710a5 3286 ac_config_commands="$ac_config_commands depfiles"
e3f92d3b
MK
3287
3288
3289am_make=${MAKE-make}
3290cat > confinc << 'END'
3291am__doit:
3292 @echo done
3293.PHONY: am__doit
3294END
3295# If we don't find an include directive, just comment out the code.
ade710a5
TF
3296echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3297echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
e3f92d3b
MK
3298am__include="#"
3299am__quote=
3300_am_result=none
3301# First try GNU make style include.
3302echo "include confinc" > confmf
3303# We grep out `Entering directory' and `Leaving directory'
3304# messages which can occur if `w' ends up in MAKEFLAGS.
3305# In particular we don't look at `^make:' because GNU make might
3306# be invoked under some other name (usually "gmake"), in which
3307# case it prints its new name instead of `make'.
3308if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3309 am__include=include
3310 am__quote=
3311 _am_result=GNU
3312fi
3313# Now try BSD make style include.
3314if test "$am__include" = "#"; then
3315 echo '.include "confinc"' > confmf
3316 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3317 am__include=.include
3318 am__quote="\""
3319 _am_result=BSD
3320 fi
3321fi
3322
3323
ade710a5
TF
3324echo "$as_me:$LINENO: result: $_am_result" >&5
3325echo "${ECHO_T}$_am_result" >&6
e3f92d3b
MK
3326rm -f confinc confmf
3327
ade710a5 3328# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
e3f92d3b 3329if test "${enable_dependency_tracking+set}" = set; then
ade710a5 3330 enableval="$enable_dependency_tracking"
e3f92d3b 3331
ade710a5 3332fi;
e3f92d3b
MK
3333if test "x$enable_dependency_tracking" != xno; then
3334 am_depcomp="$ac_aux_dir/depcomp"
3335 AMDEPBACKSLASH='\'
3336fi
3337
3338
3339if test "x$enable_dependency_tracking" != xno; then
3340 AMDEP_TRUE=
3341 AMDEP_FALSE='#'
3342else
3343 AMDEP_TRUE='#'
3344 AMDEP_FALSE=
3345fi
158a8e6b 3346
9d577a61 3347
9d577a61 3348
e3f92d3b
MK
3349# test to see if srcdir already configured
3350if test "`cd $srcdir && pwd`" != "`pwd`" &&
3351 test -f $srcdir/config.status; then
ed698112
NN
3352 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3353echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3354 { (exit 1); exit 1; }; }
9d577a61 3355fi
ed698112 3356
e3f92d3b
MK
3357# test whether we have cygpath
3358if test -z "$CYGPATH_W"; then
3359 if (cygpath --version) >/dev/null 2>/dev/null; then
3360 CYGPATH_W='cygpath -w'
3361 else
3362 CYGPATH_W=echo
3363 fi
3364fi
3365
3366
3367# Define the identity of the package.
3368 PACKAGE='libjava'
3369 VERSION='version-unused'
3370
3371
ed698112 3372cat >>confdefs.h <<_ACEOF
158a8e6b 3373#define PACKAGE "$PACKAGE"
ed698112 3374_ACEOF
158a8e6b 3375
ed698112
NN
3376
3377cat >>confdefs.h <<_ACEOF
158a8e6b 3378#define VERSION "$VERSION"
ed698112 3379_ACEOF
158a8e6b 3380
e3f92d3b
MK
3381# Some tools Automake needs.
3382
3383ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3384
3385
3386AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
158a8e6b 3387
8107bcf9 3388
e3f92d3b
MK
3389AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3390
3391
3392AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3393
3394
3395MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3396
3397install_sh=${install_sh-"$am_aux_dir/install-sh"}
3398
3399# Installed binaries are usually stripped using `strip' when the user
3400# run `make install-strip'. However `strip' might not be the right
3401# tool to use in cross-compilation environments, therefore Automake
3402# will honor the `STRIP' environment variable to overrule this program.
3403if test "$cross_compiling" != no; then
3404 if test -n "$ac_tool_prefix"; then
3405 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3406set dummy ${ac_tool_prefix}strip; ac_word=$2
ade710a5
TF
3407echo "$as_me:$LINENO: checking for $ac_word" >&5
3408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
e3f92d3b
MK
3409if test "${ac_cv_prog_STRIP+set}" = set; then
3410 echo $ECHO_N "(cached) $ECHO_C" >&6
3411else
3412 if test -n "$STRIP"; then
3413 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3414else
3415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3416for as_dir in $PATH
3417do
3418 IFS=$as_save_IFS
3419 test -z "$as_dir" && as_dir=.
3420 for ac_exec_ext in '' $ac_executable_extensions; do
ade710a5 3421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e3f92d3b
MK
3422 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3424 break 2
3425 fi
3426done
3427done
3428
3429fi
3430fi
3431STRIP=$ac_cv_prog_STRIP
3432if test -n "$STRIP"; then
ade710a5
TF
3433 echo "$as_me:$LINENO: result: $STRIP" >&5
3434echo "${ECHO_T}$STRIP" >&6
ee9dd372 3435else
ade710a5
TF
3436 echo "$as_me:$LINENO: result: no" >&5
3437echo "${ECHO_T}no" >&6
158a8e6b
AO
3438fi
3439
e3f92d3b
MK
3440fi
3441if test -z "$ac_cv_prog_STRIP"; then
3442 ac_ct_STRIP=$STRIP
3443 # Extract the first word of "strip", so it can be a program name with args.
3444set dummy strip; ac_word=$2
ade710a5
TF
3445echo "$as_me:$LINENO: checking for $ac_word" >&5
3446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
e3f92d3b
MK
3447if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3448 echo $ECHO_N "(cached) $ECHO_C" >&6
3449else
3450 if test -n "$ac_ct_STRIP"; then
3451 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9d577a61 3452else
e3f92d3b
MK
3453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3454for as_dir in $PATH
3455do
3456 IFS=$as_save_IFS
3457 test -z "$as_dir" && as_dir=.
3458 for ac_exec_ext in '' $ac_executable_extensions; do
ade710a5 3459 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e3f92d3b
MK
3460 ac_cv_prog_ac_ct_STRIP="strip"
3461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3462 break 2
3463 fi
3464done
3465done
3466
ade710a5 3467 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
e3f92d3b
MK
3468fi
3469fi
3470ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3471if test -n "$ac_ct_STRIP"; then
ade710a5
TF
3472 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3473echo "${ECHO_T}$ac_ct_STRIP" >&6
e3f92d3b 3474else
ade710a5
TF
3475 echo "$as_me:$LINENO: result: no" >&5
3476echo "${ECHO_T}no" >&6
158a8e6b
AO
3477fi
3478
ade710a5 3479 STRIP=$ac_ct_STRIP
158a8e6b 3480else
e3f92d3b 3481 STRIP="$ac_cv_prog_STRIP"
9d577a61 3482fi
158a8e6b 3483
e3f92d3b
MK
3484fi
3485INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3486
3487# We need awk for the "check" target. The system "awk" is bad on
3488# some platforms.
3489# Always define AMTAR for backward compatibility.
3490
3491AMTAR=${AMTAR-"${am_missing_run}tar"}
3492
3493am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3494
3495
3496
3497
3498depcc="$CC" am_compiler_list=
3499
ade710a5
TF
3500echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3501echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
e3f92d3b
MK
3502if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3503 echo $ECHO_N "(cached) $ECHO_C" >&6
3504else
3505 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3506 # We make a subdir and do the tests there. Otherwise we can end up
3507 # making bogus files that we don't know about and never remove. For
3508 # instance it was reported that on HP-UX the gcc test will end up
3509 # making a dummy file named `D' -- because `-MD' means `put the output
3510 # in D'.
3511 mkdir conftest.dir
3512 # Copy depcomp to subdir because otherwise we won't find it if we're
3513 # using a relative directory.
3514 cp "$am_depcomp" conftest.dir
3515 cd conftest.dir
3516 # We will build objects and dependencies in a subdirectory because
3517 # it helps to detect inapplicable dependency modes. For instance
3518 # both Tru64's cc and ICC support -MD to output dependencies as a
3519 # side effect of compilation, but ICC will put the dependencies in
3520 # the current directory while Tru64 will put them in the object
3521 # directory.
3522 mkdir sub
3523
3524 am_cv_CC_dependencies_compiler_type=none
3525 if test "$am_compiler_list" = ""; then
3526 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3527 fi
3528 for depmode in $am_compiler_list; do
3529 # Setup a source with many dependencies, because some compilers
3530 # like to wrap large dependency lists on column 80 (with \), and
3531 # we should not choose a depcomp mode which is confused by this.
3532 #
3533 # We need to recreate these files for each test, as the compiler may
3534 # overwrite some of them when testing with obscure command lines.
3535 # This happens at least with the AIX C compiler.
3536 : > sub/conftest.c
3537 for i in 1 2 3 4 5 6; do
3538 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3539 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3540 # Solaris 8's {/usr,}/bin/sh.
3541 touch sub/conftst$i.h
3542 done
3543 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3544
3545 case $depmode in
3546 nosideeffect)
3547 # after this tag, mechanisms are not by side-effect, so they'll
3548 # only be used when explicitly requested
3549 if test "x$enable_dependency_tracking" = xyes; then
3550 continue
3551 else
3552 break
3553 fi
3554 ;;
3555 none) break ;;
3556 esac
3557 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3558 # mode. It turns out that the SunPro C++ compiler does not properly
3559 # handle `-M -o', and we need to detect this.
3560 if depmode=$depmode \
3561 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3562 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3563 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3564 >/dev/null 2>conftest.err &&
3565 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3566 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3567 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3568 # icc doesn't choke on unknown options, it will just issue warnings
3569 # or remarks (even with -Werror). So we grep stderr for any message
3570 # that says an option was ignored or not supported.
3571 # When given -MP, icc 7.0 and 7.1 complain thusly:
3572 # icc: Command line warning: ignoring option '-M'; no argument required
3573 # The diagnosis changed in icc 8.0:
3574 # icc: Command line remark: option '-MP' not supported
3575 if (grep 'ignoring option' conftest.err ||
3576 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3577 am_cv_CC_dependencies_compiler_type=$depmode
3578 break
3579 fi
3580 fi
3581 done
3582
3583 cd ..
3584 rm -rf conftest.dir
3585else
3586 am_cv_CC_dependencies_compiler_type=none
3587fi
3588
3589fi
ade710a5
TF
3590echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3591echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
e3f92d3b
MK
3592CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3593
3594
3595
3596if
3597 test "x$enable_dependency_tracking" != xno \
3598 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3599 am__fastdepCC_TRUE=
3600 am__fastdepCC_FALSE='#'
3601else
3602 am__fastdepCC_TRUE='#'
3603 am__fastdepCC_FALSE=
3604fi
3605
3606
3607depcc="$CXX" am_compiler_list=
3608
ade710a5
TF
3609echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3610echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
e3f92d3b
MK
3611if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3612 echo $ECHO_N "(cached) $ECHO_C" >&6
158a8e6b 3613else
e3f92d3b
MK
3614 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3615 # We make a subdir and do the tests there. Otherwise we can end up
3616 # making bogus files that we don't know about and never remove. For
3617 # instance it was reported that on HP-UX the gcc test will end up
3618 # making a dummy file named `D' -- because `-MD' means `put the output
3619 # in D'.
3620 mkdir conftest.dir
3621 # Copy depcomp to subdir because otherwise we won't find it if we're
3622 # using a relative directory.
3623 cp "$am_depcomp" conftest.dir
3624 cd conftest.dir
3625 # We will build objects and dependencies in a subdirectory because
3626 # it helps to detect inapplicable dependency modes. For instance
3627 # both Tru64's cc and ICC support -MD to output dependencies as a
3628 # side effect of compilation, but ICC will put the dependencies in
3629 # the current directory while Tru64 will put them in the object
3630 # directory.
3631 mkdir sub
3632
3633 am_cv_CXX_dependencies_compiler_type=none
3634 if test "$am_compiler_list" = ""; then
3635 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3636 fi
3637 for depmode in $am_compiler_list; do
3638 # Setup a source with many dependencies, because some compilers
3639 # like to wrap large dependency lists on column 80 (with \), and
3640 # we should not choose a depcomp mode which is confused by this.
3641 #
3642 # We need to recreate these files for each test, as the compiler may
3643 # overwrite some of them when testing with obscure command lines.
3644 # This happens at least with the AIX C compiler.
3645 : > sub/conftest.c
3646 for i in 1 2 3 4 5 6; do
3647 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3648 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3649 # Solaris 8's {/usr,}/bin/sh.
3650 touch sub/conftst$i.h
3651 done
3652 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3653
3654 case $depmode in
3655 nosideeffect)
3656 # after this tag, mechanisms are not by side-effect, so they'll
3657 # only be used when explicitly requested
3658 if test "x$enable_dependency_tracking" = xyes; then
3659 continue
3660 else
3661 break
3662 fi
3663 ;;
3664 none) break ;;
3665 esac
3666 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3667 # mode. It turns out that the SunPro C++ compiler does not properly
3668 # handle `-M -o', and we need to detect this.
3669 if depmode=$depmode \
3670 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3671 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3672 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3673 >/dev/null 2>conftest.err &&
3674 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3675 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3676 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3677 # icc doesn't choke on unknown options, it will just issue warnings
3678 # or remarks (even with -Werror). So we grep stderr for any message
3679 # that says an option was ignored or not supported.
3680 # When given -MP, icc 7.0 and 7.1 complain thusly:
3681 # icc: Command line warning: ignoring option '-M'; no argument required
3682 # The diagnosis changed in icc 8.0:
3683 # icc: Command line remark: option '-MP' not supported
3684 if (grep 'ignoring option' conftest.err ||
3685 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3686 am_cv_CXX_dependencies_compiler_type=$depmode
3687 break
3688 fi
3689 fi
3690 done
3691
3692 cd ..
3693 rm -rf conftest.dir
3694else
3695 am_cv_CXX_dependencies_compiler_type=none
8107bcf9
PB
3696fi
3697
e3f92d3b 3698fi
ade710a5
TF
3699echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3700echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
e3f92d3b
MK
3701CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3702
3703
3704
3705if
3706 test "x$enable_dependency_tracking" != xno \
3707 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3708 am__fastdepCXX_TRUE=
3709 am__fastdepCXX_FALSE='#'
9d577a61 3710else
e3f92d3b
MK
3711 am__fastdepCXX_TRUE='#'
3712 am__fastdepCXX_FALSE=
158a8e6b
AO
3713fi
3714
3715
ee9dd372 3716
e3f92d3b 3717
ed698112
NN
3718if test -n "$ac_tool_prefix"; then
3719 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
ee9dd372 3720set dummy ${ac_tool_prefix}as; ac_word=$2
ade710a5
TF
3721echo "$as_me:$LINENO: checking for $ac_word" >&5
3722echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ed698112
NN
3723if test "${ac_cv_prog_AS+set}" = set; then
3724 echo $ECHO_N "(cached) $ECHO_C" >&6
ee9dd372
TT
3725else
3726 if test -n "$AS"; then
3727 ac_cv_prog_AS="$AS" # Let the user override the test.
3728else
ed698112
NN
3729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730for as_dir in $PATH
3731do
3732 IFS=$as_save_IFS
3733 test -z "$as_dir" && as_dir=.
3734 for ac_exec_ext in '' $ac_executable_extensions; do
ade710a5 3735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ed698112
NN
3736 ac_cv_prog_AS="${ac_tool_prefix}as"
3737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3738 break 2
3739 fi
3740done
3741done
3742
ee9dd372
TT
3743fi
3744fi
ed698112 3745AS=$ac_cv_prog_AS
ee9dd372 3746if test -n "$AS"; then
ade710a5
TF
3747 echo "$as_me:$LINENO: result: $AS" >&5
3748echo "${ECHO_T}$AS" >&6
ee9dd372 3749else
ade710a5
TF
3750 echo "$as_me:$LINENO: result: no" >&5
3751echo "${ECHO_T}no" >&6
ed698112
NN
3752fi
3753
ee9dd372 3754fi
ed698112
NN
3755if test -z "$ac_cv_prog_AS"; then
3756 ac_ct_AS=$AS
3757 # Extract the first word of "as", so it can be a program name with args.
3758set dummy as; ac_word=$2
ade710a5
TF
3759echo "$as_me:$LINENO: checking for $ac_word" >&5
3760echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ed698112
NN
3761if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3762 echo $ECHO_N "(cached) $ECHO_C" >&6
3763else
3764 if test -n "$ac_ct_AS"; then
3765 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3766else
3767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768for as_dir in $PATH
3769do
3770 IFS=$as_save_IFS
3771 test -z "$as_dir" && as_dir=.
3772 for ac_exec_ext in '' $ac_executable_extensions; do
ade710a5 3773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ed698112
NN
3774 ac_cv_prog_ac_ct_AS="as"
3775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3776 break 2
3777 fi
3778done
3779done
ee9dd372 3780
ed698112
NN
3781fi
3782fi
3783ac_ct_AS=$ac_cv_prog_ac_ct_AS
3784if test -n "$ac_ct_AS"; then
ade710a5
TF
3785 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3786echo "${ECHO_T}$ac_ct_AS" >&6
ed698112 3787else
ade710a5
TF
3788 echo "$as_me:$LINENO: result: no" >&5
3789echo "${ECHO_T}no" >&6
ed698112 3790fi
ee9dd372 3791
ade710a5 3792 AS=$ac_ct_AS
ed698112
NN
3793else
3794 AS="$ac_cv_prog_AS"
3795fi
ee9dd372 3796
d6c122f7
DD
3797if test -n "$ac_tool_prefix"; then
3798 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3799set dummy ${ac_tool_prefix}ld; ac_word=$2
ade710a5
TF
3800echo "$as_me:$LINENO: checking for $ac_word" >&5
3801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d6c122f7
DD
3802if test "${ac_cv_prog_LD+set}" = set; then
3803 echo $ECHO_N "(cached) $ECHO_C" >&6
3804else
3805 if test -n "$LD"; then
3806 ac_cv_prog_LD="$LD" # Let the user override the test.
3807else
3808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809for as_dir in $PATH
3810do
3811 IFS=$as_save_IFS
3812 test -z "$as_dir" && as_dir=.
3813 for ac_exec_ext in '' $ac_executable_extensions; do
ade710a5 3814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d6c122f7
DD
3815 ac_cv_prog_LD="${ac_tool_prefix}ld"
3816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3817 break 2
3818 fi
3819done
3820done
3821
3822fi
3823fi
3824LD=$ac_cv_prog_LD
3825if test -n "$LD"; then
ade710a5
TF
3826 echo "$as_me:$LINENO: result: $LD" >&5
3827echo "${ECHO_T}$LD" >&6
d6c122f7 3828else
ade710a5
TF
3829 echo "$as_me:$LINENO: result: no" >&5
3830echo "${ECHO_T}no" >&6
d6c122f7
DD
3831fi
3832
3833fi
3834if test -z "$ac_cv_prog_LD"; then
3835 ac_ct_LD=$LD
3836 # Extract the first word of "ld", so it can be a program name with args.
3837set dummy ld; ac_word=$2
ade710a5
TF
3838echo "$as_me:$LINENO: checking for $ac_word" >&5
3839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
d6c122f7
DD
3840if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3842else
3843 if test -n "$ac_ct_LD"; then
3844 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3845else
3846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3847for as_dir in $PATH
3848do
3849 IFS=$as_save_IFS
3850 test -z "$as_dir" && as_dir=.
3851 for ac_exec_ext in '' $ac_executable_extensions; do
ade710a5 3852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d6c122f7
DD
3853 ac_cv_prog_ac_ct_LD="ld"
3854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3855 break 2
3856 fi
3857done
3858done
3859
3860fi
3861fi
3862ac_ct_LD=$ac_cv_prog_ac_ct_LD
3863if test -n "$ac_ct_LD"; then
ade710a5
TF
3864 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
3865echo "${ECHO_T}$ac_ct_LD" >&6
d6c122f7 3866else
ade710a5
TF
3867 echo "$as_me:$LINENO: result: no" >&5
3868echo "${ECHO_T}no" >&6
d6c122f7
DD
3869fi
3870
ade710a5 3871 LD=$ac_ct_LD
d6c122f7
DD
3872else
3873 LD="$ac_cv_prog_LD"
3874fi
3875
ed698112
NN
3876if test -n "$ac_tool_prefix"; then
3877 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
ee9dd372 3878set dummy ${ac_tool_prefix}ar; ac_word=$2
ade710a5
TF
3879echo "$as_me:$LINENO: checking for $ac_word" >&5
3880echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ed698112
NN
3881if test "${ac_cv_prog_AR+set}" = set; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
ee9dd372
TT
3883else
3884 if test -n "$AR"; then
3885 ac_cv_prog_AR="$AR" # Let the user override the test.
3886else
ed698112
NN
3887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3888for as_dir in $PATH
3889do
3890 IFS=$as_save_IFS
3891 test -z "$as_dir" && as_dir=.
3892 for ac_exec_ext in '' $ac_executable_extensions; do
ade710a5 3893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ed698112
NN
3894 ac_cv_prog_AR="${ac_tool_prefix}ar"
3895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3896 break 2
3897 fi
3898done
3899done
3900
ee9dd372
TT
3901fi
3902fi
ed698112 3903AR=$ac_cv_prog_AR
ee9dd372 3904if test -n "$AR"; then
ade710a5
TF
3905 echo "$as_me:$LINENO: result: $AR" >&5
3906echo "${ECHO_T}$AR" >&6
ee9dd372 3907else
ade710a5
TF
3908 echo "$as_me:$LINENO: result: no" >&5
3909echo "${ECHO_T}no" >&6
ed698112
NN
3910fi
3911
ee9dd372 3912fi
ed698112
NN
3913if test -z "$ac_cv_prog_AR"; then
3914 ac_ct_AR=$AR
3915 # Extract the first word of "ar", so it can be a program name with args.
3916set dummy ar; ac_word=$2
ade710a5
TF
3917echo "$as_me:$LINENO: checking for $ac_word" >&5
3918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ed698112
NN
3919if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
3921else
3922 if test -n "$ac_ct_AR"; then
3923 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3924else
3925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926for as_dir in $PATH
3927do
3928 IFS=$as_save_IFS
3929 test -z "$as_dir" && as_dir=.
3930 for ac_exec_ext in '' $ac_executable_extensions; do
ade710a5 3931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ed698112
NN
3932 ac_cv_prog_ac_ct_AR="ar"
3933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3934 break 2
3935 fi
3936done
3937done
ee9dd372 3938
ed698112
NN
3939fi
3940fi
3941ac_ct_AR=$ac_cv_prog_ac_ct_AR
3942if test -n "$ac_ct_AR"; then
ade710a5
TF
3943 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3944echo "${ECHO_T}$ac_ct_AR" >&6
ed698112 3945else
ade710a5
TF
3946 echo "$as_me:$LINENO: result: no" >&5
3947echo "${ECHO_T}no" >&6
ed698112 3948fi
ee9dd372 3949
ade710a5 3950 AR=$ac_ct_AR
ed698112
NN
3951else
3952 AR="$ac_cv_prog_AR"
3953fi
ee9dd372 3954
ed698112
NN
3955if test -n "$ac_tool_prefix"; then
3956 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
ee9dd372 3957set dummy ${ac_tool_prefix}ranlib; ac_word=$2
ade710a5
TF
3958echo "$as_me:$LINENO: checking for $ac_word" >&5
3959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ed698112
NN
3960if test "${ac_cv_prog_RANLIB+set}" = set; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
ee9dd372
TT
3962else
3963 if test -n "$RANLIB"; then
3964 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3965else
ed698112
NN
3966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967for as_dir in $PATH
3968do
3969 IFS=$as_save_IFS
3970 test -z "$as_dir" && as_dir=.
3971 for ac_exec_ext in '' $ac_executable_extensions; do
ade710a5 3972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ed698112
NN
3973 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3975 break 2
3976 fi
3977done
3978done
3979
ee9dd372
TT
3980fi
3981fi
ed698112 3982RANLIB=$ac_cv_prog_RANLIB
ee9dd372 3983if test -n "$RANLIB"; then
ade710a5
TF
3984 echo "$as_me:$LINENO: result: $RANLIB" >&5
3985echo "${ECHO_T}$RANLIB" >&6
ee9dd372 3986else
ade710a5
TF
3987 echo "$as_me:$LINENO: result: no" >&5
3988echo "${ECHO_T}no" >&6
ee9dd372
TT
3989fi
3990
ed698112 3991fi
ee9dd372 3992if test -z "$ac_cv_prog_RANLIB"; then
ed698112 3993 ac_ct_RANLIB=$RANLIB
ee9dd372
TT
3994 # Extract the first word of "ranlib", so it can be a program name with args.
3995set dummy ranlib; ac_word=$2
ade710a5
TF
3996echo "$as_me:$LINENO: checking for $ac_word" >&5
3997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ed698112
NN
3998if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3999 echo $ECHO_N "(cached) $ECHO_C" >&6
ee9dd372 4000else
ed698112
NN
4001 if test -n "$ac_ct_RANLIB"; then
4002 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
ee9dd372 4003else
ed698112
NN
4004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4005for as_dir in $PATH
4006do
4007 IFS=$as_save_IFS
4008 test -z "$as_dir" && as_dir=.
4009 for ac_exec_ext in '' $ac_executable_extensions; do
ade710a5 4010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ed698112
NN
4011 ac_cv_prog_ac_ct_RANLIB="ranlib"
4012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4013 break 2
4014 fi
4015done
4016done
4017
ade710a5 4018 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
ee9dd372
TT
4019fi
4020fi
ed698112
NN
4021ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4022if test -n "$ac_ct_RANLIB"; then
ade710a5
TF
4023 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4024echo "${ECHO_T}$ac_ct_RANLIB" >&6
ee9dd372 4025else
ade710a5
TF
4026 echo "$as_me:$LINENO: result: no" >&5
4027echo "${ECHO_T}no" >&6
ee9dd372
TT
4028fi
4029
ade710a5 4030 RANLIB=$ac_ct_RANLIB
ee9dd372 4031else
ed698112 4032 RANLIB="$ac_cv_prog_RANLIB"
ee9dd372
TT
4033fi
4034
02809848
PB
4035for ac_prog in gawk mawk nawk awk
4036do
4037 # Extract the first word of "$ac_prog", so it can be a program name with args.
4038set dummy $ac_prog; ac_word=$2
ade710a5
TF
4039echo "$as_me:$LINENO: checking for $ac_word" >&5
4040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
02809848
PB
4041if test "${ac_cv_prog_AWK+set}" = set; then
4042 echo $ECHO_N "(cached) $ECHO_C" >&6
4043else
4044 if test -n "$AWK"; then
4045 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4046else
4047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048for as_dir in $PATH
4049do
4050 IFS=$as_save_IFS
4051 test -z "$as_dir" && as_dir=.
4052 for ac_exec_ext in '' $ac_executable_extensions; do
ade710a5 4053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
02809848
PB
4054 ac_cv_prog_AWK="$ac_prog"
4055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4056 break 2
4057 fi
4058done
4059done
02809848
PB
4060
4061fi
4062fi
4063AWK=$ac_cv_prog_AWK
4064if test -n "$AWK"; then
ade710a5
TF
4065 echo "$as_me:$LINENO: result: $AWK" >&5
4066echo "${ECHO_T}$AWK" >&6
02809848 4067else
ade710a5
TF
4068 echo "$as_me:$LINENO: result: no" >&5
4069echo "${ECHO_T}no" >&6
02809848
PB
4070fi
4071
02809848
PB
4072 test -n "$AWK" && break
4073done
4074
97b8365c 4075for ac_prog in jar fastjar gjar
76c6ea0c
TT
4076do
4077 # Extract the first word of "$ac_prog", so it can be a program name with args.
4078set dummy $ac_prog; ac_word=$2
ade710a5
TF
4079echo "$as_me:$LINENO: checking for $ac_word" >&5
4080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
76c6ea0c
TT
4081if test "${ac_cv_prog_JAR+set}" = set; then
4082 echo $ECHO_N "(cached) $ECHO_C" >&6
4083else
4084 if test -n "$JAR"; then
4085 ac_cv_prog_JAR="$JAR" # Let the user override the test.
4086else
4087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4088for as_dir in $PATH
4089do
4090 IFS=$as_save_IFS
4091 test -z "$as_dir" && as_dir=.
4092 for ac_exec_ext in '' $ac_executable_extensions; do
ade710a5 4093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
76c6ea0c
TT
4094 ac_cv_prog_JAR="$ac_prog"
4095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4096 break 2
4097 fi
4098done
4099done
4100
4101fi
4102fi
4103JAR=$ac_cv_prog_JAR
4104if test -n "$JAR"; then
ade710a5
TF
4105 echo "$as_me:$LINENO: result: $JAR" >&5
4106echo "${ECHO_T}$JAR" >&6
76c6ea0c 4107else
ade710a5
TF
4108 echo "$as_me:$LINENO: result: no" >&5
4109echo "${ECHO_T}no" >&6
76c6ea0c
TT
4110fi
4111
4112 test -n "$JAR" && break
4113done
02809848 4114test -n "$JAR" || JAR="no"
ee9dd372 4115
02809848
PB
4116# Extract the first word of "zip", so it can be a program name with args.
4117set dummy zip; ac_word=$2
ade710a5
TF
4118echo "$as_me:$LINENO: checking for $ac_word" >&5
4119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
02809848
PB
4120if test "${ac_cv_path_ZIP+set}" = set; then
4121 echo $ECHO_N "(cached) $ECHO_C" >&6
4122else
4123 case $ZIP in
4124 [\\/]* | ?:[\\/]*)
4125 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
4126 ;;
4127 *)
4128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129for as_dir in $PATH
4130do
4131 IFS=$as_save_IFS
4132 test -z "$as_dir" && as_dir=.
4133 for ac_exec_ext in '' $ac_executable_extensions; do
ade710a5 4134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
02809848
PB
4135 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
4136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4137 break 2
4138 fi
4139done
4140done
02809848
PB
4141
4142 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
4143 ;;
4144esac
4145fi
4146ZIP=$ac_cv_path_ZIP
ade710a5 4147
02809848 4148if test -n "$ZIP"; then
ade710a5
TF
4149 echo "$as_me:$LINENO: result: $ZIP" >&5
4150echo "${ECHO_T}$ZIP" >&6
02809848 4151else
ade710a5
TF
4152 echo "$as_me:$LINENO: result: no" >&5
4153echo "${ECHO_T}no" >&6
02809848
PB
4154fi
4155
02809848
PB
4156# Extract the first word of "unzip", so it can be a program name with args.
4157set dummy unzip; ac_word=$2
ade710a5
TF
4158echo "$as_me:$LINENO: checking for $ac_word" >&5
4159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
02809848
PB
4160if test "${ac_cv_path_UNZIP+set}" = set; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
4162else
4163 case $UNZIP in
4164 [\\/]* | ?:[\\/]*)
4165 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
4166 ;;
4167 *)
4168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169for as_dir in $PATH
4170do
4171 IFS=$as_save_IFS
4172 test -z "$as_dir" && as_dir=.
4173 for ac_exec_ext in '' $ac_executable_extensions; do
ade710a5 4174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
02809848
PB
4175 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
4176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4177 break 2
4178 fi
4179done
4180done
02809848
PB
4181
4182 test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
4183 ;;
4184esac
4185fi
4186UNZIP=$ac_cv_path_UNZIP
ade710a5 4187
02809848 4188if test -n "$UNZIP"; then
ade710a5
TF
4189 echo "$as_me:$LINENO: result: $UNZIP" >&5
4190echo "${ECHO_T}$UNZIP" >&6
02809848 4191else
ade710a5
TF
4192 echo "$as_me:$LINENO: result: no" >&5
4193echo "${ECHO_T}no" >&6
02809848
PB
4194fi
4195
4196
4197
02809848
PB
4198if test "$JAR" = no; then
4199 BASH_JAR_TRUE=
4200 BASH_JAR_FALSE='#'
4201else
4202 BASH_JAR_TRUE='#'
4203 BASH_JAR_FALSE=
4204fi
4205
4206if test "$ZIP" = no; then
4207 if test "$JAR" = no; then
4208 { { echo "$as_me:$LINENO: error: cannot find neither zip nor jar, cannot continue" >&5
4209echo "$as_me: error: cannot find neither zip nor jar, cannot continue" >&2;}
4210 { (exit 1); exit 1; }; }
4211 fi
4212else
4213 # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
4214 JAR=`pwd`/scripts/jar
4215fi
4216
4217# Find a good install program. We prefer a C program (faster),
4218# so one script is as good as another. But avoid the broken or
ee9dd372
TT
4219# incompatible versions:
4220# SysV /etc/install, /usr/sbin/install
4221# SunOS /usr/etc/install
4222# IRIX /sbin/install
4223# AIX /bin/install
ed698112 4224# AmigaOS /C/install, which installs bootblocks on floppy discs
ee9dd372
TT
4225# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4226# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4227# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ed698112 4228# OS/2's system install, which has a completely different semantic
ee9dd372 4229# ./install, which can be erroneously created by make from ./install.sh.
ade710a5
TF
4230echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4231echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
ee9dd372 4232if test -z "$INSTALL"; then
ed698112
NN
4233if test "${ac_cv_path_install+set}" = set; then
4234 echo $ECHO_N "(cached) $ECHO_C" >&6
ee9dd372 4235else
ed698112
NN
4236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237for as_dir in $PATH
4238do
4239 IFS=$as_save_IFS
4240 test -z "$as_dir" && as_dir=.
4241 # Account for people who put trailing slashes in PATH elements.
4242case $as_dir/ in
4243 ./ | .// | /cC/* | \
4244 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4245 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4246 /usr/ucb/* ) ;;
4247 *)
4248 # OSF1 and SCO ODT 3.0 have their own names for install.
4249 # Don't use installbsd from OSF since it installs stuff as root
4250 # by default.
4251 for ac_prog in ginstall scoinst install; do
4252 for ac_exec_ext in '' $ac_executable_extensions; do
ade710a5 4253 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
ee9dd372 4254 if test $ac_prog = install &&
ed698112 4255 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
ee9dd372
TT
4256 # AIX install. It has an incompatible calling convention.
4257 :
ed698112
NN
4258 elif test $ac_prog = install &&
4259 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4260 # program-specific install script used by HP pwplus--don't use.
4261 :
ee9dd372 4262 else
ed698112
NN
4263 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4264 break 3
ee9dd372
TT
4265 fi
4266 fi
4267 done
ed698112
NN
4268 done
4269 ;;
4270esac
4271done
4272
ee9dd372
TT
4273
4274fi
4275 if test "${ac_cv_path_install+set}" = set; then
ed698112 4276 INSTALL=$ac_cv_path_install
ee9dd372 4277 else
ade710a5
TF
4278 # As a last resort, use the slow shell script. We don't cache a
4279 # path for INSTALL within a source directory, because that will
ee9dd372 4280 # break other packages using the cache if that directory is
ade710a5 4281 # removed, or if the path is relative.
ed698112 4282 INSTALL=$ac_install_sh
ee9dd372
TT
4283 fi
4284fi
ade710a5
TF
4285echo "$as_me:$LINENO: result: $INSTALL" >&5
4286echo "${ECHO_T}$INSTALL" >&6
ee9dd372
TT
4287
4288# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4289# It thinks the first close brace ends the variable substitution.
4290test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4291
ed698112 4292test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
a3ffcff3 4293
ee9dd372
TT
4294test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4295
4296
ade710a5
TF
4297echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4298echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4299 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
ee9dd372 4300if test "${enable_maintainer_mode+set}" = set; then
ade710a5
TF
4301 enableval="$enable_maintainer_mode"
4302 USE_MAINTAINER_MODE=$enableval
ee9dd372
TT
4303else
4304 USE_MAINTAINER_MODE=no
ade710a5
TF
4305fi;
4306 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4307echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
ee9dd372 4308
ee9dd372
TT
4309
4310if test $USE_MAINTAINER_MODE = yes; then
4311 MAINTAINER_MODE_TRUE=
4312 MAINTAINER_MODE_FALSE='#'
4313else
4314 MAINTAINER_MODE_TRUE='#'
4315 MAINTAINER_MODE_FALSE=
4316fi
e3f92d3b 4317
ee9dd372 4318 MAINT=$MAINTAINER_MODE_TRUE
36609570 4319
0659e0e3 4320
ee9dd372 4321
ee9dd372 4322
ee9dd372
TT
4323
4324# configure.host sets the following important variables
4325# libgcj_cflags - host specific C compiler flags
4326# libgcj_cxxflags - host specific C++ compiler flags
4327# libgcj_javaflags - host specific Java compiler flags
4328
4329libgcj_cflags=
4330libgcj_cxxflags=
4331libgcj_javaflags=
4332
2ee7cd3e 4333. ${srcdir}/configure.host
ee9dd372 4334
ee9dd372
TT
4335LIBGCJ_CFLAGS="${libgcj_cflags}"
4336LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4337LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
36739040
TT
4338LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4339
ee9dd372
TT
4340
4341
4342
4343
16dab3e2
TF
4344# Only use libltdl for non-newlib builds.
4345if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
ade710a5
TF
4346 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
4347echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16dab3e2
TF
4348library_names_spec=
4349libname_spec='lib$name'
4350soname_spec=
4351shrext=".so"
4352postinstall_cmds=
4353postuninstall_cmds=
4354finish_cmds=
4355finish_eval=
4356shlibpath_var=
4357shlibpath_overrides_runpath=unknown
4358version_type=none
4359dynamic_linker="$host_os ld.so"
4360sys_lib_dlsearch_path_spec="/lib /usr/lib"
4361if test "$GCC" = yes; then
ab408bac 4362 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
16dab3e2
TF
4363 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
4364 # if the path contains ";" then we assume it to be the separator
4365 # otherwise default to the standard path separator (i.e. ":") - it is
4366 # assumed that no part of a normal pathname contains ";" but that should
4367 # okay in the real world where ";" in dirpaths is itself problematic.
ab408bac 4368 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
16dab3e2 4369 else
ab408bac 4370 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
16dab3e2
TF
4371 fi
4372else
4373 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4374fi
4375need_lib_prefix=unknown
4376hardcode_into_libs=no
4377
4378# when you set need_version to no, make sure it does not cause -set_version
4379# flags to be left without arguments
4380need_version=unknown
4381
4382case $host_os in
4383aix3*)
4384 version_type=linux
4385 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4386 shlibpath_var=LIBPATH
4387
4388 # AIX 3 has no versioning support, so we append a major version to the name.
4389 soname_spec='${libname}${release}${shared_ext}$major'
4390 ;;
4391
4392aix4* | aix5*)
4393 version_type=linux
4394 need_lib_prefix=no
4395 need_version=no
4396 hardcode_into_libs=yes
4397 if test "$host_cpu" = ia64; then
4398 # AIX 5 supports IA64
4399 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4400 shlibpath_var=LD_LIBRARY_PATH
4401 else
4402 # With GCC up to 2.95.x, collect2 would create an import file
4403 # for dependence libraries. The import file would start with
4404 # the line `#! .'. This would cause the generated library to
4405 # depend on `.', always an invalid library. This was fixed in
4406 # development snapshots of GCC prior to 3.0.
4407 case $host_os in
4408 aix4 | aix4.[01] | aix4.[01].*)
4409 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4410 echo ' yes '
4411 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4412 :
4413 else
4414 can_build_shared=no
4415 fi
4416 ;;
4417 esac
4418 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4419 # soname into executable. Probably we can add versioning support to
4420 # collect2, so additional links can be useful in future.
4421 if test "$aix_use_runtimelinking" = yes; then
4422 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4423 # instead of lib<name>.a to let people know that these are not
4424 # typical AIX shared libraries.
4425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4426 else
4427 # We preserve .a as extension for shared libraries through AIX4.2
4428 # and later when we are not doing run time linking.
4429 library_names_spec='${libname}${release}.a $libname.a'
4430 soname_spec='${libname}${release}${shared_ext}$major'
4431 fi
4432 shlibpath_var=LIBPATH
4433 fi
4434 ;;
4435
4436amigaos*)
4437 library_names_spec='$libname.ixlibrary $libname.a'
4438 # Create ${libname}_ixlibrary.a entries in /sys/libs.
4439 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'
4440 ;;
4441
4442beos*)
4443 library_names_spec='${libname}${shared_ext}'
4444 dynamic_linker="$host_os ld.so"
4445 shlibpath_var=LIBRARY_PATH
4446 ;;
4447
4448bsdi4*)
4449 version_type=linux
4450 need_version=no
4451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4452 soname_spec='${libname}${release}${shared_ext}$major'
4453 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4454 shlibpath_var=LD_LIBRARY_PATH
4455 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4456 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4457 # the default ld.so.conf also contains /usr/contrib/lib and
4458 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4459 # libtool to hard-code these into programs
4460 ;;
4461
4462cygwin* | mingw* | pw32*)
4463 version_type=windows
4464 shrext=".dll"
4465 need_version=no
4466 need_lib_prefix=no
4467
4468 case $GCC,$host_os in
4469 yes,cygwin* | yes,mingw* | yes,pw32*)
4470 library_names_spec='$libname.dll.a'
4471 # DLL is installed to $(libdir)/../bin by postinstall_cmds
4472 postinstall_cmds='base_file=`basename \${file}`~
4473 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
4474 dldir=$destdir/`dirname \$dlpath`~
4475 test -d \$dldir || mkdir -p \$dldir~
4476 $install_prog $dir/$dlname \$dldir/$dlname'
4477 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4478 dlpath=$dir/\$dldll~
4479 $rm \$dlpath'
4480 shlibpath_overrides_runpath=yes
4481
4482 case $host_os in
4483 cygwin*)
4484 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
ab408bac 4485 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16dab3e2
TF
4486 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
4487 ;;
4488 mingw*)
4489 # MinGW DLLs use traditional 'lib' prefix
ab408bac
JJ
4490 soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4491 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
16dab3e2
TF
4492 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
4493 # It is most probably a Windows format PATH printed by
4494 # mingw gcc, but we are running on Cygwin. Gcc prints its search
4495 # path with ; separators, and with drive letters. We can handle the
4496 # drive letters (cygwin fileutils understands them), so leave them,
4497 # especially as we might pass files found there to a mingw objdump,
4498 # which wouldn't understand a cygwinified path. Ahh.
ab408bac 4499 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
16dab3e2 4500 else
ab408bac 4501 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
16dab3e2
TF
4502 fi
4503 ;;
4504 pw32*)
4505 # pw32 DLLs use 'pw' prefix rather than 'lib'
ab408bac 4506 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
16dab3e2
TF
4507 ;;
4508 esac
4509 ;;
4510
4511 *)
ab408bac 4512 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16dab3e2
TF
4513 ;;
4514 esac
4515 dynamic_linker='Win32 ld.exe'
4516 # FIXME: first we should search . and the directory the executable is in
4517 shlibpath_var=PATH
4518 ;;
4519
4520darwin* | rhapsody*)
4521 dynamic_linker="$host_os dyld"
4522 version_type=darwin
4523 need_lib_prefix=no
4524 need_version=no
4525 # FIXME: Relying on posixy $() will cause problems for
4526 # cross-compilation, but unfortunately the echo tests do not
4527 # yet detect zsh echo's removal of \ escapes.
4528 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4529 soname_spec='${libname}${release}${major}$shared_ext'
4530 shlibpath_overrides_runpath=yes
4531 shlibpath_var=DYLD_LIBRARY_PATH
4532 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
4533 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
4534 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
4535 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"`
4536 fi
4537 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4538 ;;
4539
4540dgux*)
4541 version_type=linux
4542 need_lib_prefix=no
4543 need_version=no
4544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4545 soname_spec='${libname}${release}${shared_ext}$major'
4546 shlibpath_var=LD_LIBRARY_PATH
4547 ;;
4548
4549freebsd1*)
4550 dynamic_linker=no
4551 ;;
4552
4553freebsd*)
4554 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4555 version_type=freebsd-$objformat
4556 case $version_type in
4557 freebsd-elf*)
4558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4559 need_version=no
4560 need_lib_prefix=no
4561 ;;
4562 freebsd-*)
4563 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4564 need_version=yes
4565 ;;
4566 esac
4567 shlibpath_var=LD_LIBRARY_PATH
4568 case $host_os in
4569 freebsd2*)
4570 shlibpath_overrides_runpath=yes
4571 ;;
4572 freebsd3.01* | freebsdelf3.01*)
4573 shlibpath_overrides_runpath=yes
4574 hardcode_into_libs=yes
4575 ;;
4576 *) # from 3.2 on
4577 shlibpath_overrides_runpath=no
4578 hardcode_into_libs=yes
4579 ;;
4580 esac
4581 ;;
ee9dd372 4582
16dab3e2
TF
4583gnu*)
4584 version_type=linux
4585 need_lib_prefix=no
4586 need_version=no
4587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4588 soname_spec='${libname}${release}${shared_ext}$major'
4589 shlibpath_var=LD_LIBRARY_PATH
4590 hardcode_into_libs=yes
4591 ;;
4592
4593hpux9* | hpux10* | hpux11*)
4594 # Give a soname corresponding to the major version so that dld.sl refuses to
4595 # link against other versions.
4596 version_type=sunos
4597 need_lib_prefix=no
4598 need_version=no
4599 case "$host_cpu" in
4600 ia64*)
4601 shrext='.so'
4602 hardcode_into_libs=yes
4603 dynamic_linker="$host_os dld.so"
4604 shlibpath_var=LD_LIBRARY_PATH
4605 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4607 soname_spec='${libname}${release}${shared_ext}$major'
4608 if test "X$HPUX_IA64_MODE" = X32; then
4609 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4610 else
4611 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4612 fi
4613 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4614 ;;
4615 hppa*64*)
4616 shrext='.sl'
4617 hardcode_into_libs=yes
4618 dynamic_linker="$host_os dld.sl"
4619 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4620 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4622 soname_spec='${libname}${release}${shared_ext}$major'
4623 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
4624 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4625 ;;
4626 *)
4627 shrext='.sl'
4628 dynamic_linker="$host_os dld.sl"
4629 shlibpath_var=SHLIB_PATH
4630 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4632 soname_spec='${libname}${release}${shared_ext}$major'
4633 ;;
4634 esac
4635 # HP-UX runs *really* slowly unless shared libraries are mode 555.
4636 postinstall_cmds='chmod 555 $lib'
4637 ;;
4638
4639irix5* | irix6* | nonstopux*)
4640 case $host_os in
4641 nonstopux*) version_type=nonstopux ;;
4642 *)
4643 if test "$lt_cv_prog_gnu_ld" = yes; then
4644 version_type=linux
4645 else
4646 version_type=irix
4647 fi ;;
4648 esac
4649 need_lib_prefix=no
4650 need_version=no
4651 soname_spec='${libname}${release}${shared_ext}$major'
4652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4653 case $host_os in
4654 irix5* | nonstopux*)
4655 libsuff= shlibsuff=
4656 ;;
4657 *)
4658 case $LD in # libtool.m4 will add one of these switches to LD
4659 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
4660 libsuff= shlibsuff= libmagic=32-bit;;
4661 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
4662 libsuff=32 shlibsuff=N32 libmagic=N32;;
4663 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
4664 libsuff=64 shlibsuff=64 libmagic=64-bit;;
4665 *) libsuff= shlibsuff= libmagic=never-match;;
4666 esac
4667 ;;
4668 esac
4669 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4670 shlibpath_overrides_runpath=no
4671 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4672 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4673 hardcode_into_libs=yes
4674 ;;
4675
4676# No shared lib support for Linux oldld, aout, or coff.
4677linux*oldld* | linux*aout* | linux*coff*)
4678 dynamic_linker=no
4679 ;;
4680
4681# This must be Linux ELF.
94ba45df 4682linux*|k*bsd*-gnu)
16dab3e2
TF
4683 version_type=linux
4684 need_lib_prefix=no
4685 need_version=no
4686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4687 soname_spec='${libname}${release}${shared_ext}$major'
4688 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4689 shlibpath_var=LD_LIBRARY_PATH
4690 shlibpath_overrides_runpath=no
4691 # This implies no fast_install, which is unacceptable.
4692 # Some rework will be needed to allow for fast_install
4693 # before this can be enabled.
4694 hardcode_into_libs=yes
4695
4696 # We used to test for /lib/ld.so.1 and disable shared libraries on
4697 # powerpc, because MkLinux only supported shared libraries with the
4698 # GNU dynamic linker. Since this was broken with cross compilers,
4699 # most powerpc-linux boxes support dynamic linking these days and
4700 # people can always --disable-shared, the test was removed, and we
4701 # assume the GNU/Linux dynamic linker is in use.
4702 dynamic_linker='GNU/Linux ld.so'
4703 ;;
4704
4705netbsd*)
4706 version_type=sunos
4707 need_lib_prefix=no
4708 need_version=no
4709 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4711 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4712 dynamic_linker='NetBSD (a.out) ld.so'
4713 else
4714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
4715 soname_spec='${libname}${release}${shared_ext}$major'
4716 dynamic_linker='NetBSD ld.elf_so'
4717 fi
4718 shlibpath_var=LD_LIBRARY_PATH
4719 shlibpath_overrides_runpath=yes
4720 hardcode_into_libs=yes
4721 ;;
4722
4723newsos6)
4724 version_type=linux
4725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4726 shlibpath_var=LD_LIBRARY_PATH
4727 shlibpath_overrides_runpath=yes
4728 ;;
4729
4730nto-qnx)
4731 version_type=linux
4732 need_lib_prefix=no
4733 need_version=no
4734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4735 soname_spec='${libname}${release}${shared_ext}$major'
4736 shlibpath_var=LD_LIBRARY_PATH
4737 shlibpath_overrides_runpath=yes
4738 ;;
4739
4740openbsd*)
4741 version_type=sunos
4742 need_lib_prefix=no
4743 need_version=no
4744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4745 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4746 shlibpath_var=LD_LIBRARY_PATH
4747 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4748 case $host_os in
4749 openbsd2.[89] | openbsd2.[89].*)
4750 shlibpath_overrides_runpath=no
4751 ;;
4752 *)
4753 shlibpath_overrides_runpath=yes
4754 ;;
4755 esac
4756 else
4757 shlibpath_overrides_runpath=yes
4758 fi
4759 ;;
4760
4761os2*)
4762 libname_spec='$name'
4763 shrext=".dll"
4764 need_lib_prefix=no
4765 library_names_spec='$libname${shared_ext} $libname.a'
4766 dynamic_linker='OS/2 ld.exe'
4767 shlibpath_var=LIBPATH
4768 ;;
4769
4770osf3* | osf4* | osf5*)
4771 version_type=osf
4772 need_lib_prefix=no
4773 need_version=no
4774 soname_spec='${libname}${release}${shared_ext}$major'
4775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4776 shlibpath_var=LD_LIBRARY_PATH
4777 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4778 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4779 ;;
4780
4781sco3.2v5*)
4782 version_type=osf
4783 soname_spec='${libname}${release}${shared_ext}$major'
4784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4785 shlibpath_var=LD_LIBRARY_PATH
4786 ;;
4787
4788solaris*)
4789 version_type=linux
4790 need_lib_prefix=no
4791 need_version=no
4792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4793 soname_spec='${libname}${release}${shared_ext}$major'
4794 shlibpath_var=LD_LIBRARY_PATH
4795 shlibpath_overrides_runpath=yes
4796 hardcode_into_libs=yes
4797 # ldd complains unless libraries are executable
4798 postinstall_cmds='chmod +x $lib'
4799 ;;
4800
4801sunos4*)
4802 version_type=sunos
4803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4804 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4805 shlibpath_var=LD_LIBRARY_PATH
4806 shlibpath_overrides_runpath=yes
4807 if test "$with_gnu_ld" = yes; then
4808 need_lib_prefix=no
4809 fi
4810 need_version=yes
4811 ;;
4812
4813sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4814 version_type=linux
4815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4816 soname_spec='${libname}${release}${shared_ext}$major'
4817 shlibpath_var=LD_LIBRARY_PATH
4818 case $host_vendor in
4819 sni)
4820 shlibpath_overrides_runpath=no
4821 need_lib_prefix=no
4822 export_dynamic_flag_spec='${wl}-Blargedynsym'
4823 runpath_var=LD_RUN_PATH
4824 ;;
4825 siemens)
4826 need_lib_prefix=no
4827 ;;
4828 motorola)
4829 need_lib_prefix=no
4830 need_version=no
4831 shlibpath_overrides_runpath=no
4832 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4833 ;;
4834 esac
4835 ;;
4836
4837sysv4*MP*)
4838 if test -d /usr/nec ;then
4839 version_type=linux
4840 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
4841 soname_spec='$libname${shared_ext}.$major'
4842 shlibpath_var=LD_LIBRARY_PATH
4843 fi
4844 ;;
4845
4846uts4*)
4847 version_type=linux
4848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4849 soname_spec='${libname}${release}${shared_ext}$major'
4850 shlibpath_var=LD_LIBRARY_PATH
4851 ;;
4852
4853*)
4854 dynamic_linker=no
4855 ;;
4856esac
ade710a5
TF
4857echo "$as_me:$LINENO: result: $dynamic_linker" >&5
4858echo "${ECHO_T}$dynamic_linker" >&6
16dab3e2
TF
4859test "$dynamic_linker" = no && can_build_shared=no
4860
4861
ade710a5
TF
4862echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
4863echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
16dab3e2
TF
4864if test "${libltdl_cv_shlibpath_var+set}" = set; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4866else
4867 libltdl_cv_shlibpath_var="$shlibpath_var"
4868fi
ade710a5
TF
4869echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
4870echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
16dab3e2
TF
4871if test -n "$libltdl_cv_shlibpath_var"; then
4872
4873cat >>confdefs.h <<_ACEOF
4874#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
4875_ACEOF
4876
4877fi
4878
4879fi
4880
ade710a5 4881 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
ee9dd372 4882
b0fa81ee
TT
4883
4884# See if the user has requested runtime debugging.
4885LIBGCJDEBUG="disable"
4886
ade710a5 4887# Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
b0fa81ee 4888if test "${enable_libgcj_debug+set}" = set; then
ade710a5
TF
4889 enableval="$enable_libgcj_debug"
4890 if test "$enable_libgcj_debug" = yes; then
b0fa81ee
TT
4891
4892cat >>confdefs.h <<\_ACEOF
4893#define DEBUG 1
4894_ACEOF
4895
4896 LIBGCJDEBUG="enable"
4897 fi
ade710a5 4898fi;
b0fa81ee 4899
97b8365c
TT
4900
4901# Check whether --with-escher or --without-escher was given.
4902if test "${with_escher+set}" = set; then
4903 withval="$with_escher"
4904
4905fi;
4906case "$with_escher" in
4907"")
4908 use_escher=false
4909 ;;
4910"no")
4911 use_escher=false
4912 ;;
4913"yes")
4914 { { echo "$as_me:$LINENO: error: Please supply an absolute path to Escher library" >&5
4915echo "$as_me: error: Please supply an absolute path to Escher library" >&2;}
4916 { (exit 1); exit 1; }; }
4917 ;;
4918*)
4919 use_escher=true
4920 ;;
4921esac
4922
b0fa81ee 4923# Determine which AWT peer libraries to build
ade710a5 4924# Check whether --enable-java-awt or --disable-java-awt was given.
b0fa81ee 4925if test "${enable_java_awt+set}" = set; then
ade710a5 4926 enableval="$enable_java_awt"
b0fa81ee 4927
ade710a5 4928fi;
b0fa81ee
TT
4929
4930peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
4931use_xlib_awt=""
4932use_gtk_awt=""
ab3fa9d3 4933use_qt_awt=""
97b8365c 4934use_x_awt=""
b0fa81ee
TT
4935# The default toolkit to use is the first one specified.
4936TOOLKIT=
4937
4938
4939for peer in $peerlibs ; do
4940 case $peer in
4941 xlib)
4942 if test "$no_x" = yes; then
4943 echo "*** xlib peers requested but no X library available" 1>&2
4944 exit 1
4945 else
9365047a
TT
4946 use_xlib_awt="yes"
4947 if test -z "$TOOLKIT"; then
4948 TOOLKIT=gnu.awt.xlib.XToolkit
4949 fi
b0fa81ee
TT
4950 fi
4951 ;;
4952 gtk)
4953 if test "$no_x" = yes; then
ab3fa9d3 4954 echo "*** gtk peers requested but no X library available" 1>&2
b0fa81ee
TT
4955 exit 1
4956 else
4957 use_gtk_awt=yes
4958 if test -z "$TOOLKIT"; then
4959 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
4960 fi
4961 fi
4962 ;;
ab3fa9d3
TT
4963 qt)
4964 if test "$no_x" = yes; then
4965 # Perhaps we should admit the possibility of embedded Qt.
4966 echo "*** Qt peers requested but no X library available" 1>&2
4967 exit 1
4968 else
4969 use_qt_awt=yes
4970 if test -z "$TOOLKIT"; then
4971 TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
4972 fi
4973 fi
4974 ;;
97b8365c
TT
4975 x)
4976 use_x_awt=yes
4977 if test -z "$TOOLKIT"; then
4978 TOOLKIT=gnu.java.awt.peer.x.XToolkit
4979 fi
4980 ;;
b0fa81ee
TT
4981 no)
4982 use_xlib_awt=
4983 use_gtk_awt=
ab3fa9d3 4984 use_qt_awt=
97b8365c 4985 use_x_awt=
b0fa81ee
TT
4986 break
4987 ;;
4988 *)
4989 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
4990 exit 1
4991 esac
4992done
4993
4994
4995
4996if test "$use_xlib_awt" = yes; then
4997 XLIB_AWT_TRUE=
4998 XLIB_AWT_FALSE='#'
4999else
5000 XLIB_AWT_TRUE='#'
5001 XLIB_AWT_FALSE=
5002fi
5003
5004
97b8365c
TT
5005
5006if test "$use_x_awt" = yes; then
5007 X_AWT_TRUE=
5008 X_AWT_FALSE='#'
5009else
5010 X_AWT_TRUE='#'
5011 X_AWT_FALSE=
5012fi
5013
5014
5015
5016cat >>confdefs.h <<_ACEOF
5017#define AWT_TOOLKIT "$TOOLKIT"
5018_ACEOF
5019
5020
5021
5022cat >>confdefs.h <<_ACEOF
5023#define LIBGCJ_PREFIX "$prefix"
5024_ACEOF
5025
5026
9365047a
TT
5027# Create standard.omit based on decisions we just made.
5028cp $srcdir/standard.omit.in standard.omit
5029if test "$use_xlib_awt" != yes; then
5030 echo gnu/awt/xlib >> standard.omit
5031 echo gnu/gcj/xlib >> standard.omit
5032fi
97b8365c
TT
5033if test "$use_x_awt" != yes; then
5034 echo gnu/java/awt/peer/x >> standard.omit
5035fi
b0fa81ee
TT
5036
5037if test -z "${with_multisubdir}"; then
5038 builddotdot=.
5039else
5040 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
5041fi
5042
5043NATIVE=yes
5044
97b8365c 5045# Which gcj and host gcj (for ecjx) do we use?
b0fa81ee 5046which_gcj=default
97b8365c
TT
5047host_exeext=${ac_exeext}
5048GCJ_FOR_ECJX=
b0fa81ee
TT
5049built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
5050if test -n "${with_cross_host}"; then
5051 # We are being configured with a cross compiler. We can't
5052 # use ac_exeext, because that is for the target platform.
5053 NATIVE=no
5054 cross_host_exeext=
97b8365c 5055 GCJ_FOR_ECJX="${with_cross_host}-gcj"
b0fa81ee
TT
5056 case "${with_cross_host}" in
5057 *mingw* | *cygwin*)
5058 cross_host_exeext=.exe
5059 ;;
5060 esac
97b8365c 5061 host_exeext=${cross_host_exeext}
b0fa81ee
TT
5062 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
5063 if test x"$build_noncanonical" = x"$with_cross_host"; then
5064 # Ordinary cross (host!=target and host=build)
5065 which_gcj=built
5066 else
5067 # Canadian cross (host!=target and host!=build)
5068 which_gcj=cross
5069 fi
5070 else
5071 which_gcj=cross
5072 fi
5073else
5074 # We are being configured with a native or crossed-native compiler
5075 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
5076 if test x"$build" = x"$host"; then
5077 # True native build (host=target and host=build)
5078 which_gcj=built
5079 else
5080 # Crossed-native build (host=target and host!=build)
5081 which_gcj=cross
5082 fi
5083 else
5084 which_gcj=path
5085 fi
5086fi
5087case "${which_gcj}" in
5088 built)
5089 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
5090 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
b0fa81ee
TT
5091 ;;
5092 cross)
5093 if test "x${with_newlib}" = "xyes"; then
5094 # FIXME (comment): Why is this needed?
5095 GCC_UNWIND_INCLUDE=
5096 GCJ="${target_noncanonical}-gcj"
5097 else
54076f8b 5098 GCJ="$built_gcc_dir/gcj -B$built_gcc_dir/"
b0fa81ee 5099 fi
54076f8b 5100 GCJH="$built_gcc_dir/gcjh"
b0fa81ee
TT
5101 ;;
5102 path)
5103 GCJ="gcj -B`${PWDCMD-pwd}`/"
b0fa81ee
TT
5104 GCJH=gcjh
5105 ;;
5106esac
5107
5108
5109
97b8365c
TT
5110
5111
b0fa81ee
TT
5112# Create it, so that compile/link tests don't fail
5113test -f libgcj.spec || touch libgcj.spec
5114
5115
5116
5117# Set up to configure Classpath.
5118# FIXME: no supported way to pass args in autoconf.
648e8d6d 5119ac_configure_args="$ac_configure_args --with-fastjar=$JAR"
97b8365c
TT
5120# Disable tool wrappers to avoid ltdl.h configure check.
5121ac_configure_args="$ac_configure_args --disable-tool-wrappers"
b0fa81ee
TT
5122ac_configure_args="$ac_configure_args --disable-load-library"
5123ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
5124ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
5125dir1=`cd $srcdir && pwd`
5126dir2=`pwd`
5127ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
5128ac_configure_args="$ac_configure_args --disable-core-jni"
5129ac_configure_args="$ac_configure_args --disable-examples"
5130ac_configure_args="$ac_configure_args --with-glibj=build"
648e8d6d
TF
5131if test "$plugin_enabled" != yes; then
5132 ac_configure_args="$ac_configure_args --disable-plugin"
5133fi
ac1ed908
MW
5134if test "$gconf_enabled" != yes; then
5135 ac_configure_args="$ac_configure_args --disable-gconf-peer"
5136 ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
5137fi
b0fa81ee 5138if test "$use_gtk_awt" != yes; then
97b8365c 5139 ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
b0fa81ee 5140fi
ab3fa9d3
TT
5141if test "$use_qt_awt" != yes; then
5142 ac_configure_args="$ac_configure_args --disable-qt-peer"
e0f7b260
TT
5143else
5144 # We need this as qt is disabled by default in classpath.
5145 ac_configure_args="$ac_configure_args --enable-qt-peer"
ab3fa9d3 5146fi
97b8365c
TT
5147if test "$use_x_awt" != yes; then
5148 ac_configure_args="$ac_configure_args --without-escher"
5149else
5150 # We need this as escher is disabled by default in classpath.
5151 if test "$use_escher" != true; then
5152 { { echo "$as_me:$LINENO: error: Please supply an absolute path to the Escher library" >&5
5153echo "$as_me: error: Please supply an absolute path to the Escher library" >&2;}
5154 { (exit 1); exit 1; }; }
5155 else
5156 ac_configure_args="$ac_configure_args --with-escher=$with_escher"
5157 fi
5158fi
5159# -Werror causes unavoidable problems in code using alsa.
5160ac_configure_args="$ac_configure_args --disable-Werror"
b0fa81ee 5161
d6f6aaf6 5162# Only use libltdl for non-newlib builds.
2d29f3a1 5163if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
52a11cbf 5164 case $enable_ltdl_convenience in
ed698112
NN
5165 no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
5166echo "$as_me: error: this package needs a convenience libltdl" >&2;}
5167 { (exit 1); exit 1; }; } ;;
7af85558
TT
5168 "") enable_ltdl_convenience=yes
5169 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
5170 esac
6d0860ee
AO
5171 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
5172 INCLTDL='-I${top_srcdir}/''libltdl'
7af85558 5173
ed698112 5174
7af85558 5175 DIRLTDL=libltdl
ed698112
NN
5176
5177cat >>confdefs.h <<\_ACEOF
7af85558 5178#define USE_LTDL 1
ed698112 5179_ACEOF
7af85558
TT
5180
5181 # Sigh. Libtool's macro doesn't do the right thing.
5182 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
7f7ba9bf 5183 # FIXME: this is a hack.
1e6347d8 5184 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
f1eba847 5185 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
7af85558
TT
5186fi
5187
5188
5189
ade710a5 5190# Check whether --enable-shared or --disable-shared was given.
a3ffcff3 5191if test "${enable_shared+set}" = set; then
ade710a5
TF
5192 enableval="$enable_shared"
5193 p=${PACKAGE-default}
52a11cbf 5194case $enableval in
a3ffcff3
TT
5195yes) enable_shared=yes ;;
5196no) enable_shared=no ;;
5197*)
5198 enable_shared=no
5199 # Look at the argument we got. We use all the common list separators.
5200 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5201 for pkg in $enableval; do
5202 if test "X$pkg" = "X$p"; then
5203 enable_shared=yes
5204 fi
5205 done
5206 IFS="$ac_save_ifs"
5207 ;;
5208esac
5209else
5210 enable_shared=yes
ade710a5
TF
5211fi;
5212# Check whether --enable-static or --disable-static was given.
a3ffcff3 5213if test "${enable_static+set}" = set; then
ade710a5
TF
5214 enableval="$enable_static"
5215 p=${PACKAGE-default}
52a11cbf 5216case $enableval in
a3ffcff3
TT
5217yes) enable_static=yes ;;
5218no) enable_static=no ;;
5219*)
5220 enable_static=no
5221 # Look at the argument we got. We use all the common list separators.
5222 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5223 for pkg in $enableval; do
5224 if test "X$pkg" = "X$p"; then
5225 enable_static=yes
5226 fi
5227 done
5228 IFS="$ac_save_ifs"
5229 ;;
5230esac
5231else
5232 enable_static=yes
ade710a5
TF
5233fi;
5234# Check whether --enable-fast-install or --disable-fast-install was given.
01b02b11 5235if test "${enable_fast_install+set}" = set; then
ade710a5
TF
5236 enableval="$enable_fast_install"
5237 p=${PACKAGE-default}
52a11cbf 5238case $enableval in
01b02b11
TT
5239yes) enable_fast_install=yes ;;
5240no) enable_fast_install=no ;;
5241*)
5242 enable_fast_install=no
5243 # Look at the argument we got. We use all the common list separators.
5244 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5245 for pkg in $enableval; do
5246 if test "X$pkg" = "X$p"; then
5247 enable_fast_install=yes
5248 fi
5249 done
5250 IFS="$ac_save_ifs"
5251 ;;
5252esac
5253else
5254 enable_fast_install=yes
ade710a5 5255fi;
02809848 5256
ade710a5 5257# Check whether --with-gnu-ld or --without-gnu-ld was given.
a3ffcff3 5258if test "${with_gnu_ld+set}" = set; then
ade710a5
TF
5259 withval="$with_gnu_ld"
5260 test "$withval" = no || with_gnu_ld=yes
a3ffcff3
TT
5261else
5262 with_gnu_ld=no
ade710a5 5263fi;
a3ffcff3 5264ac_prog=ld
52a11cbf 5265if test "$GCC" = yes; then
a3ffcff3 5266 # Check if gcc -print-prog-name=ld gives a path.
ade710a5
TF
5267 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5268echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
6d0860ee
AO
5269 case $host in
5270 *-*-mingw*)
5271 # gcc leaves a trailing carriage return which upsets mingw
5272 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5273 *)
5274 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5275 esac
52a11cbf 5276 case $ac_prog in
01b02b11 5277 # Accept absolute paths.
7af85558 5278 [\\/]* | [A-Za-z]:[\\/]*)
01b02b11
TT
5279 re_direlt='/[^/][^/]*/\.\./'
5280 # Canonicalize the path of ld
5281 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5282 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5283 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5284 done
5285 test -z "$LD" && LD="$ac_prog"
5286 ;;
a3ffcff3
TT
5287 "")
5288 # If it fails, then pretend we aren't using GCC.
5289 ac_prog=ld
5290 ;;
5291 *)
5292 # If it is relative, then search for the first ld in PATH.
5293 with_gnu_ld=unknown
5294 ;;
5295 esac
5296elif test "$with_gnu_ld" = yes; then
ade710a5
TF
5297 echo "$as_me:$LINENO: checking for GNU ld" >&5
5298echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
a3ffcff3 5299else
ade710a5
TF
5300 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5301echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
a3ffcff3 5302fi
ed698112
NN
5303if test "${lt_cv_path_LD+set}" = set; then
5304 echo $ECHO_N "(cached) $ECHO_C" >&6
a3ffcff3
TT
5305else
5306 if test -z "$LD"; then
7af85558 5307 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
a3ffcff3
TT
5308 for ac_dir in $PATH; do
5309 test -z "$ac_dir" && ac_dir=.
7af85558 5310 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
52a11cbf 5311 lt_cv_path_LD="$ac_dir/$ac_prog"
a3ffcff3
TT
5312 # Check to see if the program is GNU ld. I'd rather use --version,
5313 # but apparently some GNU ld's only accept -v.
5314 # Break only if it was the GNU/non-GNU ld that we prefer.
52a11cbf 5315 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
a3ffcff3
TT
5316 test "$with_gnu_ld" != no && break
5317 else
01b02b11 5318 test "$with_gnu_ld" != yes && break
a3ffcff3
TT
5319 fi
5320 fi
5321 done
5322 IFS="$ac_save_ifs"
5323else
52a11cbf 5324 lt_cv_path_LD="$LD" # Let the user override the test with a path.
a3ffcff3
TT
5325fi
5326fi
5327
52a11cbf 5328LD="$lt_cv_path_LD"
a3ffcff3 5329if test -n "$LD"; then
ade710a5
TF
5330 echo "$as_me:$LINENO: result: $LD" >&5
5331echo "${ECHO_T}$LD" >&6
a3ffcff3 5332else
ade710a5
TF
5333 echo "$as_me:$LINENO: result: no" >&5
5334echo "${ECHO_T}no" >&6
a3ffcff3 5335fi
ed698112
NN
5336test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5337echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5338 { (exit 1); exit 1; }; }
ade710a5
TF
5339echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5340echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
ed698112
NN
5341if test "${lt_cv_prog_gnu_ld+set}" = set; then
5342 echo $ECHO_N "(cached) $ECHO_C" >&6
a3ffcff3
TT
5343else
5344 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5345if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
52a11cbf 5346 lt_cv_prog_gnu_ld=yes
a3ffcff3 5347else
52a11cbf 5348 lt_cv_prog_gnu_ld=no
a3ffcff3
TT
5349fi
5350fi
ade710a5
TF
5351echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5352echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
52a11cbf 5353with_gnu_ld=$lt_cv_prog_gnu_ld
6d0860ee
AO
5354
5355
ade710a5
TF
5356echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5357echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
ed698112
NN
5358if test "${lt_cv_ld_reload_flag+set}" = set; then
5359 echo $ECHO_N "(cached) $ECHO_C" >&6
6d0860ee
AO
5360else
5361 lt_cv_ld_reload_flag='-r'
5362fi
ade710a5
TF
5363echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5364echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6d0860ee
AO
5365reload_flag=$lt_cv_ld_reload_flag
5366test -n "$reload_flag" && reload_flag=" $reload_flag"
a3ffcff3 5367
ade710a5
TF
5368echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5369echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
ed698112
NN
5370if test "${lt_cv_path_NM+set}" = set; then
5371 echo $ECHO_N "(cached) $ECHO_C" >&6
a3ffcff3
TT
5372else
5373 if test -n "$NM"; then
5374 # Let the user override the test.
52a11cbf 5375 lt_cv_path_NM="$NM"
a3ffcff3 5376else
7af85558 5377 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
01b02b11 5378 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
a3ffcff3 5379 test -z "$ac_dir" && ac_dir=.
6d0860ee
AO
5380 tmp_nm=$ac_dir/${ac_tool_prefix}nm
5381 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
a3ffcff3
TT
5382 # Check to see if the nm accepts a BSD-compat flag.
5383 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5384 # nm: unknown option "B" ignored
6d0860ee
AO
5385 # Tru64's nm complains that /dev/null is an invalid object file
5386 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
52a11cbf 5387 lt_cv_path_NM="$tmp_nm -B"
01b02b11 5388 break
6d0860ee 5389 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
52a11cbf 5390 lt_cv_path_NM="$tmp_nm -p"
01b02b11 5391 break
a3ffcff3 5392 else
52a11cbf 5393 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
01b02b11 5394 continue # so that we can try to find one that supports BSD flags
a3ffcff3 5395 fi
a3ffcff3
TT
5396 fi
5397 done
5398 IFS="$ac_save_ifs"
52a11cbf 5399 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
a3ffcff3
TT
5400fi
5401fi
5402
52a11cbf 5403NM="$lt_cv_path_NM"
ade710a5
TF
5404echo "$as_me:$LINENO: result: $NM" >&5
5405echo "${ECHO_T}$NM" >&6
a3ffcff3 5406
ade710a5
TF
5407echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
5408echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
ed698112
NN
5409if test "${lt_cv_deplibs_check_method+set}" = set; then
5410 echo $ECHO_N "(cached) $ECHO_C" >&6
6d0860ee 5411else
5f527203 5412 lt_cv_file_magic_cmd='$MAGIC_CMD'
6d0860ee
AO
5413lt_cv_file_magic_test_file=
5414lt_cv_deplibs_check_method='unknown'
5415# Need to set the preceding variable on all platforms that support
5416# interlibrary dependencies.
5417# 'none' -- dependencies not supported.
5418# `unknown' -- same as none, but documents that we really don't know.
5419# 'pass_all' -- all dependencies passed with no checks.
5420# 'test_compile' -- check by making test program.
5421# 'file_magic [regex]' -- check by looking for files in library path
5422# which responds to the $file_magic_cmd with a given egrep regex.
5423# If you have `file' or equivalent on your system and you're not sure
5424# whether `pass_all' will *always* work, you probably want this one.
5425
52a11cbf
RH
5426case $host_os in
5427aix*)
6d0860ee
AO
5428 lt_cv_deplibs_check_method=pass_all
5429 ;;
5430
5431beos*)
5432 lt_cv_deplibs_check_method=pass_all
5433 ;;
a3ffcff3 5434
6d0860ee 5435bsdi4*)
52a11cbf
RH
5436 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5437 lt_cv_file_magic_cmd='/usr/bin/file -L'
6d0860ee
AO
5438 lt_cv_file_magic_test_file=/shlib/libc.so
5439 ;;
5440
5f527203 5441cygwin* | mingw* |pw32*)
6d0860ee 5442 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5f527203 5443 lt_cv_file_magic_cmd='$OBJDUMP -f'
6d0860ee
AO
5444 ;;
5445
52a11cbf 5446darwin* | rhapsody*)
e44b879c 5447 # this will be overwritten by pass_all, but leave it in just in case
52a11cbf 5448 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5ec89e89
AO
5449 lt_cv_file_magic_cmd='/usr/bin/file -L'
5450 case "$host_os" in
5451 rhapsody* | darwin1.012)
5452 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
5453 ;;
5454 *) # Darwin 1.3 on
5455 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5456 ;;
5457 esac
e44b879c 5458 lt_cv_deplibs_check_method=pass_all
52a11cbf
RH
5459 ;;
5460
f1c3e0a6 5461freebsd* | kfreebsd*-gnu)
6d0860ee 5462 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
52a11cbf 5463 case $host_cpu in
6d0860ee
AO
5464 i*86 )
5465 # Not sure whether the presence of OpenBSD here was a mistake.
5466 # Let's accept both of them until this is cleared up.
52a11cbf
RH
5467 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5468 lt_cv_file_magic_cmd=/usr/bin/file
6d0860ee
AO
5469 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5470 ;;
5471 esac
5472 else
5473 lt_cv_deplibs_check_method=pass_all
5474 fi
5475 ;;
5476
5477gnu*)
5478 lt_cv_deplibs_check_method=pass_all
5479 ;;
5480
52a11cbf 5481hpux10.20*|hpux11*)
f5cc59a7
AO
5482 case $host_cpu in
5483 hppa*)
5484 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5485 lt_cv_file_magic_cmd=/usr/bin/file
5486 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5487 ;;
5488 ia64*)
5489 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5490 lt_cv_file_magic_cmd=/usr/bin/file
5491 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5492 ;;
5493 esac
6d0860ee
AO
5494 ;;
5495
5496irix5* | irix6*)
52a11cbf 5497 case $host_os in
6d0860ee
AO
5498 irix5*)
5499 # this will be overridden with pass_all, but let us keep it just in case
5500 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5501 ;;
5502 *)
52a11cbf 5503 case $LD in
6d0860ee
AO
5504 *-32|*"-32 ") libmagic=32-bit;;
5505 *-n32|*"-n32 ") libmagic=N32;;
5506 *-64|*"-64 ") libmagic=64-bit;;
5507 *) libmagic=never-match;;
5508 esac
5509 # this will be overridden with pass_all, but let us keep it just in case
52a11cbf
RH
5510 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5511 ;;
6d0860ee
AO
5512 esac
5513 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5514 lt_cv_deplibs_check_method=pass_all
5515 ;;
5516
5517# This must be Linux ELF.
5518linux-gnu*)
2539bffe 5519 lt_cv_deplibs_check_method=pass_all
6d0860ee
AO
5520 ;;
5521
f1c3e0a6 5522netbsd* | knetbsd*-gnu)
52a11cbf 5523 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5ec89e89 5524 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
6d0860ee 5525 else
5ec89e89 5526 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
6d0860ee 5527 fi
52a11cbf
RH
5528 ;;
5529
5530newsos6)
5531 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5532 lt_cv_file_magic_cmd=/usr/bin/file
5533 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6d0860ee
AO
5534 ;;
5535
5536osf3* | osf4* | osf5*)
5537 # this will be overridden with pass_all, but let us keep it just in case
5538 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5539 lt_cv_file_magic_test_file=/shlib/libc.so
5540 lt_cv_deplibs_check_method=pass_all
5541 ;;
5542
5543sco3.2v5*)
5544 lt_cv_deplibs_check_method=pass_all
5545 ;;
5546
5547solaris*)
5548 lt_cv_deplibs_check_method=pass_all
5549 lt_cv_file_magic_test_file=/lib/libc.so
5550 ;;
5551
3610e0d5
TT
5552sysv5uw[78]* | sysv4*uw2*)
5553 lt_cv_deplibs_check_method=pass_all
5554 ;;
5555
6d0860ee 5556sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
52a11cbf 5557 case $host_vendor in
6d0860ee
AO
5558 ncr)
5559 lt_cv_deplibs_check_method=pass_all
5560 ;;
5561 motorola)
52a11cbf
RH
5562 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]'
5563 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6d0860ee
AO
5564 ;;
5565 esac
5566 ;;
7af85558
TT
5567esac
5568
6d0860ee 5569fi
ade710a5
TF
5570echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5571echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6d0860ee
AO
5572file_magic_cmd=$lt_cv_file_magic_cmd
5573deplibs_check_method=$lt_cv_deplibs_check_method
5574
6d0860ee 5575
ed698112 5576
6d0860ee
AO
5577
5578# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5579
c69094e1 5580# find the maximum length of command line arguments
ade710a5
TF
5581echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5582echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
c69094e1
TT
5583if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5584 echo $ECHO_N "(cached) $ECHO_C" >&6
5585else
5586 i=0
5587 teststring="ABCD"
5588
5589 case $build_os in
5590 msdosdjgpp*)
5591 # On DJGPP, this test can blow up pretty badly due to problems in libc
5592 # (any single argument exceeding 2000 bytes causes a buffer overrun
5593 # during glob expansion). Even if it were fixed, the result of this
5594 # check would be larger than it should be.
5595 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5596 ;;
5597
5598 cygwin* | mingw*)
5599 # On Win9x/ME, this test blows up -- it succeeds, but takes
5600 # about 5 minutes as the teststring grows exponentially.
5601 # Worse, since 9x/ME are not pre-emptively multitasking,
5602 # you end up with a "frozen" computer, even though with patience
5603 # the test eventually succeeds (with a max line length of 256k).
5604 # Instead, let's just punt: use the minimum linelength reported by
5605 # all of the supported platforms: 8192 (on NT/2K/XP).
5606 lt_cv_sys_max_cmd_len=8192;
5607 ;;
5608
5609 amigaos*)
5610 # On AmigaOS with pdksh, this test takes hours, literally.
5611 # So we just punt and use a minimum line length of 8192.
5612 lt_cv_sys_max_cmd_len=8192;
5613 ;;
5614
5615 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5616 # This has been around since 386BSD, at least. Likely further.
5617 if test -x /sbin/sysctl; then
5618 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5619 elif test -x /usr/sbin/sysctl; then
5620 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5621 else
5622 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5623 fi
5624 # And add a safety zone
5625 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5626 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5627 ;;
5628 esac
5629
5630fi
5631
5632if test -n "$lt_cv_sys_max_cmd_len" ; then
ade710a5
TF
5633 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5634echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
c69094e1 5635else
ade710a5
TF
5636 echo "$as_me:$LINENO: result: none" >&5
5637echo "${ECHO_T}none" >&6
c69094e1
TT
5638fi
5639
5640
6d0860ee 5641# Only perform the check for file, if the check method requires it
52a11cbf 5642case $deplibs_check_method in
6d0860ee 5643file_magic*)
5f527203 5644 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
ade710a5
TF
5645 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5646echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
ed698112
NN
5647if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5648 echo $ECHO_N "(cached) $ECHO_C" >&6
6d0860ee 5649else
52a11cbf 5650 case $MAGIC_CMD in
6d0860ee 5651 /*)
5f527203 5652 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6d0860ee
AO
5653 ;;
5654 ?:/*)
5f527203 5655 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
6d0860ee
AO
5656 ;;
5657 *)
5f527203 5658 ac_save_MAGIC_CMD="$MAGIC_CMD"
6d0860ee
AO
5659 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5660 ac_dummy="/usr/bin:$PATH"
5661 for ac_dir in $ac_dummy; do
5662 test -z "$ac_dir" && ac_dir=.
5663 if test -f $ac_dir/${ac_tool_prefix}file; then
5f527203 5664 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6d0860ee 5665 if test -n "$file_magic_test_file"; then
52a11cbf 5666 case $deplibs_check_method in
6d0860ee
AO
5667 "file_magic "*)
5668 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5f527203 5669 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6d0860ee
AO
5670 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5671 egrep "$file_magic_regex" > /dev/null; then
5672 :
5673 else
5674 cat <<EOF 1>&2
5675
5676*** Warning: the command libtool uses to detect shared libraries,
5677*** $file_magic_cmd, produces output that libtool cannot recognize.
5678*** The result is that libtool may fail to recognize shared libraries
5679*** as such. This will affect the creation of libtool libraries that
5680*** depend on shared libraries, but programs linked with such libtool
5681*** libraries will work regardless of this problem. Nevertheless, you
5682*** may want to report the problem to your system manager and/or to
5683*** bug-libtool@gnu.org
5684
5685EOF
5686 fi ;;
5687 esac
5688 fi
5689 break
5690 fi
5691 done
5692 IFS="$ac_save_ifs"
5f527203 5693 MAGIC_CMD="$ac_save_MAGIC_CMD"
6d0860ee
AO
5694 ;;
5695esac
5696fi
5697
5f527203
AO
5698MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5699if test -n "$MAGIC_CMD"; then
ade710a5
TF
5700 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5701echo "${ECHO_T}$MAGIC_CMD" >&6
6d0860ee 5702else
ade710a5
TF
5703 echo "$as_me:$LINENO: result: no" >&5
5704echo "${ECHO_T}no" >&6
6d0860ee
AO
5705fi
5706
5f527203 5707if test -z "$lt_cv_path_MAGIC_CMD"; then
6d0860ee 5708 if test -n "$ac_tool_prefix"; then
ade710a5
TF
5709 echo "$as_me:$LINENO: checking for file" >&5
5710echo $ECHO_N "checking for file... $ECHO_C" >&6
ed698112
NN
5711if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5712 echo $ECHO_N "(cached) $ECHO_C" >&6
6d0860ee 5713else
52a11cbf 5714 case $MAGIC_CMD in
6d0860ee 5715 /*)
5f527203 5716 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6d0860ee
AO
5717 ;;
5718 ?:/*)
5f527203 5719 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
6d0860ee
AO
5720 ;;
5721 *)
5f527203 5722 ac_save_MAGIC_CMD="$MAGIC_CMD"
6d0860ee
AO
5723 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5724 ac_dummy="/usr/bin:$PATH"
5725 for ac_dir in $ac_dummy; do
5726 test -z "$ac_dir" && ac_dir=.
5727 if test -f $ac_dir/file; then
5f527203 5728 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6d0860ee 5729 if test -n "$file_magic_test_file"; then
52a11cbf 5730 case $deplibs_check_method in
6d0860ee
AO
5731 "file_magic "*)
5732 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5f527203 5733 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6d0860ee
AO
5734 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5735 egrep "$file_magic_regex" > /dev/null; then
5736 :
5737 else
5738 cat <<EOF 1>&2
5739
5740*** Warning: the command libtool uses to detect shared libraries,
5741*** $file_magic_cmd, produces output that libtool cannot recognize.
5742*** The result is that libtool may fail to recognize shared libraries
5743*** as such. This will affect the creation of libtool libraries that
5744*** depend on shared libraries, but programs linked with such libtool
5745*** libraries will work regardless of this problem. Nevertheless, you
5746*** may want to report the problem to your system manager and/or to
5747*** bug-libtool@gnu.org
5748
5749EOF
5750 fi ;;
5751 esac
5752 fi
5753 break
5754 fi
5755 done
5756 IFS="$ac_save_ifs"
5f527203 5757 MAGIC_CMD="$ac_save_MAGIC_CMD"
6d0860ee
AO
5758 ;;
5759esac
5760fi
5761
5f527203
AO
5762MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5763if test -n "$MAGIC_CMD"; then
ade710a5
TF
5764 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5765echo "${ECHO_T}$MAGIC_CMD" >&6
6d0860ee 5766else
ade710a5
TF
5767 echo "$as_me:$LINENO: result: no" >&5
5768echo "${ECHO_T}no" >&6
6d0860ee
AO
5769fi
5770
5771 else
5f527203 5772 MAGIC_CMD=:
6d0860ee
AO
5773 fi
5774fi
5775
5776 fi
5777 ;;
5778esac
5779
ed698112
NN
5780if test -n "$ac_tool_prefix"; then
5781 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6d0860ee 5782set dummy ${ac_tool_prefix}ranlib; ac_word=$2
ade710a5
TF
5783echo "$as_me:$LINENO: checking for $ac_word" >&5
5784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ed698112
NN
5785if test "${ac_cv_prog_RANLIB+set}" = set; then
5786 echo $ECHO_N "(cached) $ECHO_C" >&6
6d0860ee
AO
5787else
5788 if test -n "$RANLIB"; then
5789 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5790else
ed698112
NN
5791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5792for as_dir in $PATH
5793do
5794 IFS=$as_save_IFS
5795 test -z "$as_dir" && as_dir=.
5796 for ac_exec_ext in '' $ac_executable_extensions; do
ade710a5 5797 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ed698112
NN
5798 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5800 break 2
5801 fi
5802done
5803done
5804
6d0860ee
AO
5805fi
5806fi
ed698112 5807RANLIB=$ac_cv_prog_RANLIB
6d0860ee 5808if test -n "$RANLIB"; then
ade710a5
TF
5809 echo "$as_me:$LINENO: result: $RANLIB" >&5
5810echo "${ECHO_T}$RANLIB" >&6
6d0860ee 5811else
ade710a5
TF
5812 echo "$as_me:$LINENO: result: no" >&5
5813echo "${ECHO_T}no" >&6
6d0860ee
AO
5814fi
5815
ed698112 5816fi
6d0860ee 5817if test -z "$ac_cv_prog_RANLIB"; then
ed698112 5818 ac_ct_RANLIB=$RANLIB
6d0860ee
AO
5819 # Extract the first word of "ranlib", so it can be a program name with args.
5820set dummy ranlib; ac_word=$2
ade710a5
TF
5821echo "$as_me:$LINENO: checking for $ac_word" >&5
5822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ed698112
NN
5823if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5824 echo $ECHO_N "(cached) $ECHO_C" >&6
6d0860ee 5825else
ed698112
NN
5826 if test -n "$ac_ct_RANLIB"; then
5827 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6d0860ee 5828else
ed698112
NN
5829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830for as_dir in $PATH
5831do
5832 IFS=$as_save_IFS
5833 test -z "$as_dir" && as_dir=.
5834 for ac_exec_ext in '' $ac_executable_extensions; do
ade710a5 5835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ed698112
NN
5836 ac_cv_prog_ac_ct_RANLIB="ranlib"
5837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5838 break 2
5839 fi
5840done
5841done
5842
ade710a5 5843 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6d0860ee
AO
5844fi
5845fi
ed698112
NN
5846ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5847if test -n "$ac_ct_RANLIB"; then
ade710a5
TF
5848 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5849echo "${ECHO_T}$ac_ct_RANLIB" >&6
6d0860ee 5850else
ade710a5
TF
5851 echo "$as_me:$LINENO: result: no" >&5
5852echo "${ECHO_T}no" >&6
6d0860ee
AO
5853fi
5854
ade710a5 5855 RANLIB=$ac_ct_RANLIB
6d0860ee 5856else
ed698112 5857 RANLIB="$ac_cv_prog_RANLIB"
6d0860ee
AO
5858fi
5859
ed698112
NN
5860if test -n "$ac_tool_prefix"; then
5861 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6d0860ee 5862set dummy ${ac_tool_prefix}strip; ac_word=$2
ade710a5
TF
5863echo "$as_me:$LINENO: checking for $ac_word" >&5
5864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ed698112
NN
5865if test "${ac_cv_prog_STRIP+set}" = set; then
5866 echo $ECHO_N "(cached) $ECHO_C" >&6
6d0860ee
AO
5867else
5868 if test -n "$STRIP"; then
5869 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5870else
ed698112
NN
5871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872for as_dir in $PATH
5873do
5874 IFS=$as_save_IFS
5875 test -z "$as_dir" && as_dir=.
5876 for ac_exec_ext in '' $ac_executable_extensions; do
ade710a5 5877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ed698112
NN
5878 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5880 break 2
5881 fi
5882done
5883done
5884
6d0860ee
AO
5885fi
5886fi
ed698112 5887STRIP=$ac_cv_prog_STRIP
6d0860ee 5888if test -n "$STRIP"; then
ade710a5
TF
5889 echo "$as_me:$LINENO: result: $STRIP" >&5
5890echo "${ECHO_T}$STRIP" >&6
6d0860ee 5891else
ade710a5
TF
5892 echo "$as_me:$LINENO: result: no" >&5
5893echo "${ECHO_T}no" >&6
6d0860ee
AO
5894fi
5895
ed698112 5896fi
6d0860ee 5897if test -z "$ac_cv_prog_STRIP"; then
ed698112 5898 ac_ct_STRIP=$STRIP
6d0860ee
AO
5899 # Extract the first word of "strip", so it can be a program name with args.
5900set dummy strip; ac_word=$2
ade710a5
TF
5901echo "$as_me:$LINENO: checking for $ac_word" >&5
5902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ed698112
NN
5903if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5904 echo $ECHO_N "(cached) $ECHO_C" >&6
6d0860ee 5905else
ed698112
NN
5906 if test -n "$ac_ct_STRIP"; then
5907 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6d0860ee 5908else
ed698112
NN
5909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5910for as_dir in $PATH
5911do
5912 IFS=$as_save_IFS
5913 test -z "$as_dir" && as_dir=.
5914 for ac_exec_ext in '' $ac_executable_extensions; do
ade710a5 5915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ed698112
NN
5916 ac_cv_prog_ac_ct_STRIP="strip"
5917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5918 break 2
5919 fi
5920done
5921done
5922
ade710a5 5923 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6d0860ee
AO
5924fi
5925fi
ed698112
NN
5926ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5927if test -n "$ac_ct_STRIP"; then
ade710a5
TF
5928 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5929echo "${ECHO_T}$ac_ct_STRIP" >&6
6d0860ee 5930else
ade710a5
TF
5931 echo "$as_me:$LINENO: result: no" >&5
5932echo "${ECHO_T}no" >&6
6d0860ee
AO
5933fi
5934
ade710a5 5935 STRIP=$ac_ct_STRIP
6d0860ee 5936else
ed698112 5937 STRIP="$ac_cv_prog_STRIP"
6d0860ee
AO
5938fi
5939
5940
a3ffcff3 5941# Check for any special flags to pass to ltconfig.
01b02b11 5942libtool_flags="--cache-file=$cache_file"
a3ffcff3
TT
5943test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
5944test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
01b02b11 5945test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
52a11cbf
RH
5946test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
5947test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
ed698112 5948
7af85558 5949
ade710a5 5950# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7af85558 5951if test "${enable_libtool_lock+set}" = set; then
ade710a5 5952 enableval="$enable_libtool_lock"
7af85558 5953
ade710a5 5954fi;
7af85558
TT
5955test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
5956test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
a3ffcff3 5957
ed698112 5958
ade710a5 5959# Check whether --with-pic or --without-pic was given.
6d0860ee 5960if test "${with_pic+set}" = set; then
ade710a5
TF
5961 withval="$with_pic"
5962 pic_mode="$withval"
6d0860ee
AO
5963else
5964 pic_mode=default
ade710a5 5965fi;
6d0860ee
AO
5966test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
5967test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
5968
a3ffcff3
TT
5969# Some flags need to be propagated to the compiler or linker for good
5970# libtool support.
52a11cbf 5971case $host in
a3ffcff3
TT
5972*-*-irix6*)
5973 # Find out which ABI we are using.
97b8365c 5974 echo '#line 5974 "configure"' > conftest.$ac_ext
ed698112
NN
5975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5976 (eval $ac_compile) 2>&5
5977 ac_status=$?
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); }; then
3343fdd2
AO
5980 if test "$lt_cv_prog_gnu_ld" = yes; then
5981 case `/usr/bin/file conftest.$ac_objext` in
5982 *32-bit*)
5983 LD="${LD-ld} -melf32bsmip"
5984 ;;
5985 *N32*)
5986 LD="${LD-ld} -melf32bmipn32"
5987 ;;
5988 *64-bit*)
5989 LD="${LD-ld} -melf64bmip"
5990 ;;
5991 esac
5992 else
52a11cbf 5993 case `/usr/bin/file conftest.$ac_objext` in
a3ffcff3
TT
5994 *32-bit*)
5995 LD="${LD-ld} -32"
5996 ;;
5997 *N32*)
5998 LD="${LD-ld} -n32"
5999 ;;
6000 *64-bit*)
6001 LD="${LD-ld} -64"
6002 ;;
6003 esac
3343fdd2 6004 fi
a3ffcff3
TT
6005 fi
6006 rm -rf conftest*
6007 ;;
6008
f5cc59a7
AO
6009ia64-*-hpux*)
6010 # Find out which ABI we are using.
6011 echo 'int i;' > conftest.$ac_ext
ed698112
NN
6012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6013 (eval $ac_compile) 2>&5
6014 ac_status=$?
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); }; then
f5cc59a7
AO
6017 case "`/usr/bin/file conftest.o`" in
6018 *ELF-32*)
6019 HPUX_IA64_MODE="32"
6020 ;;
6021 *ELF-64*)
6022 HPUX_IA64_MODE="64"
6023 ;;
6024 esac
6025 fi
6026 rm -rf conftest*
6027 ;;
6028
54d9d34a
AJ
6029x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6030 # Find out which ABI we are using.
6031 echo 'int i;' > conftest.$ac_ext
ed698112
NN
6032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6033 (eval $ac_compile) 2>&5
6034 ac_status=$?
6035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036 (exit $ac_status); }; then
54d9d34a
AJ
6037 case "`/usr/bin/file conftest.o`" in
6038 *32-bit*)
6039 case $host in
6040 x86_64-*linux*)
6041 LD="${LD-ld} -m elf_i386"
6042 ;;
e517f636 6043 ppc64-*linux*|powerpc64-*linux*)
54d9d34a
AJ
6044 LD="${LD-ld} -m elf32ppclinux"
6045 ;;
6046 s390x-*linux*)
6047 LD="${LD-ld} -m elf_s390"
6048 ;;
6049 sparc64-*linux*)
6050 LD="${LD-ld} -m elf32_sparc"
6051 ;;
6052 esac
6053 ;;
6054 *64-bit*)
6055 case $host in
6056 x86_64-*linux*)
6057 LD="${LD-ld} -m elf_x86_64"
6058 ;;
6059 ppc*-*linux*|powerpc*-*linux*)
6060 LD="${LD-ld} -m elf64ppc"
6061 ;;
6062 s390*-*linux*)
6063 LD="${LD-ld} -m elf64_s390"
6064 ;;
6065 sparc*-*linux*)
6066 LD="${LD-ld} -m elf64_sparc"
6067 ;;
6068 esac
6069 ;;
6070 esac
6071 fi
6072 rm -rf conftest*
6073 ;;
6074
a3ffcff3
TT
6075*-*-sco3.2v5*)
6076 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
01b02b11 6077 SAVE_CFLAGS="$CFLAGS"
a3ffcff3 6078 CFLAGS="$CFLAGS -belf"
ade710a5
TF
6079 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6080echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
ed698112
NN
6081if test "${lt_cv_cc_needs_belf+set}" = set; then
6082 echo $ECHO_N "(cached) $ECHO_C" >&6
01b02b11 6083else
ed698112 6084
ade710a5 6085
6d0860ee 6086 ac_ext=c
6d0860ee 6087ac_cpp='$CPP $CPPFLAGS'
ed698112
NN
6088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6090ac_compiler_gnu=$ac_cv_c_compiler_gnu
6091
6092 if test x$gcc_no_link = xyes; then
6093 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6094echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6095 { (exit 1); exit 1; }; }
6096fi
6097cat >conftest.$ac_ext <<_ACEOF
6098/* confdefs.h. */
6099_ACEOF
6100cat confdefs.h >>conftest.$ac_ext
6101cat >>conftest.$ac_ext <<_ACEOF
6102/* end confdefs.h. */
01b02b11 6103
ed698112
NN
6104int
6105main ()
6106{
01b02b11 6107
ed698112
NN
6108 ;
6109 return 0;
6110}
6111_ACEOF
6112rm -f conftest.$ac_objext conftest$ac_exeext
6113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6114 (eval $ac_link) 2>conftest.er1
6115 ac_status=$?
6116 grep -v '^ *+' conftest.er1 >conftest.err
6117 rm -f conftest.er1
6118 cat conftest.err >&5
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); } &&
ade710a5
TF
6121 { ac_try='test -z "$ac_c_werror_flag"
6122 || test ! -s conftest.err'
ed698112
NN
6123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6124 (eval $ac_try) 2>&5
6125 ac_status=$?
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); }; } &&
6128 { ac_try='test -s conftest$ac_exeext'
6129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6130 (eval $ac_try) 2>&5
6131 ac_status=$?
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); }; }; then
01b02b11
TT
6134 lt_cv_cc_needs_belf=yes
6135else
ed698112
NN
6136 echo "$as_me: failed program was:" >&5
6137sed 's/^/| /' conftest.$ac_ext >&5
6138
ade710a5 6139lt_cv_cc_needs_belf=no
01b02b11 6140fi
ed698112
NN
6141rm -f conftest.err conftest.$ac_objext \
6142 conftest$ac_exeext conftest.$ac_ext
6d0860ee 6143 ac_ext=c
6d0860ee 6144ac_cpp='$CPP $CPPFLAGS'
ed698112
NN
6145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6147ac_compiler_gnu=$ac_cv_c_compiler_gnu
6d0860ee 6148
01b02b11 6149fi
ade710a5
TF
6150echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6151echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
01b02b11
TT
6152 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6153 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6154 CFLAGS="$SAVE_CFLAGS"
6155 fi
a3ffcff3
TT
6156 ;;
6157
a3ffcff3
TT
6158
6159esac
6160
01b02b11
TT
6161
6162# Save cache, so that ltconfig can load it
ed698112 6163cat >confcache <<\_ACEOF
01b02b11
TT
6164# This file is a shell script that caches the results of configure
6165# tests run on this system so they can be shared between configure
ed698112
NN
6166# scripts and configure runs, see configure's option --config-cache.
6167# It is not useful on other systems. If it contains results you don't
6168# want to keep, you may remove or edit it.
01b02b11 6169#
ed698112
NN
6170# config.status only pays attention to the cache file if you give it
6171# the --recheck option to rerun configure.
01b02b11 6172#
ed698112
NN
6173# `ac_cv_env_foo' variables (set or unset) will be overridden when
6174# loading this file, other *unset* `ac_cv_foo' will be assigned the
6175# following values.
6176
6177_ACEOF
6178
01b02b11
TT
6179# The following way of writing the cache mishandles newlines in values,
6180# but we know of no workaround that is simple, portable, and efficient.
ade710a5 6181# So, don't put newlines in cache variables' values.
01b02b11
TT
6182# Ultrix sh set writes to stderr and can't be redirected directly,
6183# and sets the high bit in the cache file unless we assign to the vars.
ade710a5 6184{
ed698112 6185 (set) 2>&1 |
ade710a5
TF
6186 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6187 *ac_space=\ *)
ed698112
NN
6188 # `set' does not quote correctly, so add quotes (double-quote
6189 # substitution turns \\\\ into \\, and sed turns \\ into \).
6190 sed -n \
6191 "s/'/'\\\\''/g;
6192 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
ade710a5 6193 ;;
ed698112
NN
6194 *)
6195 # `set' quotes correctly as required by POSIX, so do not add quotes.
ade710a5
TF
6196 sed -n \
6197 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
ed698112 6198 ;;
ade710a5
TF
6199 esac;
6200} |
ed698112
NN
6201 sed '
6202 t clear
ade710a5 6203 : clear
ed698112
NN
6204 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6205 t end
ade710a5
TF
6206 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6207 : end' >>confcache
ed698112 6208if diff $cache_file confcache >/dev/null 2>&1; then :; else
01b02b11 6209 if test -w $cache_file; then
ade710a5 6210 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
ed698112 6211 cat confcache >$cache_file
01b02b11 6212 else
ade710a5 6213 echo "not updating unwritable cache $cache_file"
01b02b11
TT
6214 fi
6215fi
6216rm -f confcache
6217
a3ffcff3 6218# Actually configure libtool. ac_aux_dir is where install-sh is found.
6d0860ee 6219AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
5f527203 6220MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6d0860ee
AO
6221LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6222AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6223objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6224deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
a3ffcff3 6225${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
6d0860ee 6226$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
ed698112
NN
6227|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
6228echo "$as_me: error: libtool configure failed" >&2;}
6229 { (exit 1); exit 1; }; }
a3ffcff3 6230
01b02b11
TT
6231# Reload cache, that may have been modified by ltconfig
6232if test -r "$cache_file"; then
ed698112
NN
6233 # Some versions of bash will fail to source /dev/null (special
6234 # files actually), so we avoid doing that.
6235 if test -f "$cache_file"; then
6236 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
6237echo "$as_me: loading cache $cache_file" >&6;}
6238 case $cache_file in
6239 [\\/]* | ?:[\\/]* ) . $cache_file;;
6240 *) . ./$cache_file;;
6241 esac
6242 fi
01b02b11 6243else
ed698112
NN
6244 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
6245echo "$as_me: creating cache $cache_file" >&6;}
6246 >$cache_file
01b02b11
TT
6247fi
6248
6249
6250# This can be used to rebuild libtool when needed
6d0860ee 6251LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
01b02b11
TT
6252
6253# Always use our own libtool.
6254LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6255
a3ffcff3
TT
6256# Redirect the config.log output again, so that the ltconfig log is not
6257# clobbered by the next message.
6258exec 5>>./config.log
6259
ade710a5 6260ac_ext=cc
ed698112
NN
6261ac_cpp='$CXXCPP $CPPFLAGS'
6262ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6263ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6264ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
ade710a5
TF
6265echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6266echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
ed698112
NN
6267if test -z "$CXXCPP"; then
6268 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6269 echo $ECHO_N "(cached) $ECHO_C" >&6
6270else
6271 # Double quotes because CXXCPP needs to be expanded
6272 for CXXCPP in "$CXX -E" "/lib/cpp"
6273 do
6274 ac_preproc_ok=false
6275for ac_cxx_preproc_warn_flag in '' yes
6276do
6277 # Use a header file that comes with gcc, so configuring glibc
6278 # with a fresh cross-compiler works.
6279 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6280 # <limits.h> exists even on freestanding compilers.
6281 # On the NeXT, cc -E runs the code through the compiler's parser,
6282 # not just through cpp. "Syntax error" is here to catch this case.
6283 cat >conftest.$ac_ext <<_ACEOF
6284/* confdefs.h. */
6285_ACEOF
6286cat confdefs.h >>conftest.$ac_ext
6287cat >>conftest.$ac_ext <<_ACEOF
6288/* end confdefs.h. */
6289#ifdef __STDC__
6290# include <limits.h>
6291#else
6292# include <assert.h>
6293#endif
6294 Syntax error
6295_ACEOF
6296if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6297 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6298 ac_status=$?
6299 grep -v '^ *+' conftest.er1 >conftest.err
6300 rm -f conftest.er1
6301 cat conftest.err >&5
6302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303 (exit $ac_status); } >/dev/null; then
6304 if test -s conftest.err; then
6305 ac_cpp_err=$ac_cxx_preproc_warn_flag
6306 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6307 else
6308 ac_cpp_err=
6309 fi
6310else
6311 ac_cpp_err=yes
6312fi
6313if test -z "$ac_cpp_err"; then
6314 :
6315else
6316 echo "$as_me: failed program was:" >&5
6317sed 's/^/| /' conftest.$ac_ext >&5
6318
6319 # Broken: fails on valid input.
6320continue
6321fi
6322rm -f conftest.err conftest.$ac_ext
6323
ade710a5 6324 # OK, works on sane cases. Now check whether non-existent headers
ed698112
NN
6325 # can be detected and how.
6326 cat >conftest.$ac_ext <<_ACEOF
6327/* confdefs.h. */
6328_ACEOF
6329cat confdefs.h >>conftest.$ac_ext
6330cat >>conftest.$ac_ext <<_ACEOF
6331/* end confdefs.h. */
6332#include <ac_nonexistent.h>
6333_ACEOF
6334if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6335 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6336 ac_status=$?
6337 grep -v '^ *+' conftest.er1 >conftest.err
6338 rm -f conftest.er1
6339 cat conftest.err >&5
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } >/dev/null; then
6342 if test -s conftest.err; then
6343 ac_cpp_err=$ac_cxx_preproc_warn_flag
6344 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6345 else
6346 ac_cpp_err=
6347 fi
6348else
6349 ac_cpp_err=yes
6350fi
6351if test -z "$ac_cpp_err"; then
6352 # Broken: success on invalid input.
6353continue
6354else
6355 echo "$as_me: failed program was:" >&5
6356sed 's/^/| /' conftest.$ac_ext >&5
6357
6358 # Passes both tests.
6359ac_preproc_ok=:
6360break
6361fi
6362rm -f conftest.err conftest.$ac_ext
6363
6364done
6365# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6366rm -f conftest.err conftest.$ac_ext
6367if $ac_preproc_ok; then
6368 break
6369fi
6370
6371 done
6372 ac_cv_prog_CXXCPP=$CXXCPP
6373
6374fi
6375 CXXCPP=$ac_cv_prog_CXXCPP
6376else
6377 ac_cv_prog_CXXCPP=$CXXCPP
6378fi
ade710a5
TF
6379echo "$as_me:$LINENO: result: $CXXCPP" >&5
6380echo "${ECHO_T}$CXXCPP" >&6
ed698112
NN
6381ac_preproc_ok=false
6382for ac_cxx_preproc_warn_flag in '' yes
6383do
6384 # Use a header file that comes with gcc, so configuring glibc
6385 # with a fresh cross-compiler works.
6386 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6387 # <limits.h> exists even on freestanding compilers.
6388 # On the NeXT, cc -E runs the code through the compiler's parser,
6389 # not just through cpp. "Syntax error" is here to catch this case.
6390 cat >conftest.$ac_ext <<_ACEOF
6391/* confdefs.h. */
6392_ACEOF
6393cat confdefs.h >>conftest.$ac_ext
6394cat >>conftest.$ac_ext <<_ACEOF
6395/* end confdefs.h. */
6396#ifdef __STDC__
6397# include <limits.h>
6398#else
6399# include <assert.h>
6400#endif
6401 Syntax error
6402_ACEOF
6403if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6404 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6405 ac_status=$?
6406 grep -v '^ *+' conftest.er1 >conftest.err
6407 rm -f conftest.er1
6408 cat conftest.err >&5
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); } >/dev/null; then
6411 if test -s conftest.err; then
6412 ac_cpp_err=$ac_cxx_preproc_warn_flag
6413 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6414 else
6415 ac_cpp_err=
6416 fi
6417else
6418 ac_cpp_err=yes
6419fi
6420if test -z "$ac_cpp_err"; then
6421 :
6422else
6423 echo "$as_me: failed program was:" >&5
6424sed 's/^/| /' conftest.$ac_ext >&5
6425
6426 # Broken: fails on valid input.
6427continue
6428fi
6429rm -f conftest.err conftest.$ac_ext
6430
ade710a5 6431 # OK, works on sane cases. Now check whether non-existent headers
ed698112
NN
6432 # can be detected and how.
6433 cat >conftest.$ac_ext <<_ACEOF
6434/* confdefs.h. */
6435_ACEOF
6436cat confdefs.h >>conftest.$ac_ext
6437cat >>conftest.$ac_ext <<_ACEOF
6438/* end confdefs.h. */
6439#include <ac_nonexistent.h>
6440_ACEOF
6441if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6442 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6443 ac_status=$?
6444 grep -v '^ *+' conftest.er1 >conftest.err
6445 rm -f conftest.er1
6446 cat conftest.err >&5
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); } >/dev/null; then
6449 if test -s conftest.err; then
6450 ac_cpp_err=$ac_cxx_preproc_warn_flag
6451 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6452 else
6453 ac_cpp_err=
6454 fi
6455else
6456 ac_cpp_err=yes
6457fi
6458if test -z "$ac_cpp_err"; then
6459 # Broken: success on invalid input.
6460continue
6461else
6462 echo "$as_me: failed program was:" >&5
6463sed 's/^/| /' conftest.$ac_ext >&5
6464
6465 # Passes both tests.
6466ac_preproc_ok=:
6467break
6468fi
6469rm -f conftest.err conftest.$ac_ext
6470
6471done
6472# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6473rm -f conftest.err conftest.$ac_ext
6474if $ac_preproc_ok; then
6475 :
6476else
6477 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6478See \`config.log' for more details." >&5
6479echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6480See \`config.log' for more details." >&2;}
6481 { (exit 1); exit 1; }; }
6482fi
6483
6484ac_ext=c
6485ac_cpp='$CPP $CPPFLAGS'
6486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6488ac_compiler_gnu=$ac_cv_c_compiler_gnu
6489
6d0860ee
AO
6490
6491
6d0860ee
AO
6492LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
6493lt_save_CC="$CC"
6494lt_save_CFLAGS="$CFLAGS"
e3f92d3b
MK
6495AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
6496MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6497LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6498AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6499objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6500deplibs_check_method="$deplibs_check_method" \
6501file_magic_cmd="$file_magic_cmd" \
6502${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6503--build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
6504|| { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6505echo "$as_me: error: libtool tag configuration failed" >&2;}
6506 { (exit 1); exit 1; }; }
6507CC="$lt_save_CC"
6508CFLAGS="$lt_save_CFLAGS"
6509
6510# Redirect the config.log output again, so that the ltconfig log is not
6511# clobbered by the next message.
6512exec 5>>./config.log
6513
6514
6515
6516
6517
6518
6519
df3e8c70 6520for ac_prog in gcj
e3f92d3b
MK
6521do
6522 # Extract the first word of "$ac_prog", so it can be a program name with args.
6523set dummy $ac_prog; ac_word=$2
ade710a5
TF
6524echo "$as_me:$LINENO: checking for $ac_word" >&5
6525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
e3f92d3b
MK
6526if test "${ac_cv_prog_GCJ+set}" = set; then
6527 echo $ECHO_N "(cached) $ECHO_C" >&6
6528else
6529 if test -n "$GCJ"; then
6530 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
6531else
6532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6533for as_dir in $PATH
6534do
6535 IFS=$as_save_IFS
6536 test -z "$as_dir" && as_dir=.
6537 for ac_exec_ext in '' $ac_executable_extensions; do
ade710a5 6538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e3f92d3b
MK
6539 ac_cv_prog_GCJ="$ac_prog"
6540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6541 break 2
6542 fi
6543done
6544done
6545
6546fi
6547fi
6548GCJ=$ac_cv_prog_GCJ
6549if test -n "$GCJ"; then
ade710a5
TF
6550 echo "$as_me:$LINENO: result: $GCJ" >&5
6551echo "${ECHO_T}$GCJ" >&6
e3f92d3b 6552else
ade710a5
TF
6553 echo "$as_me:$LINENO: result: no" >&5
6554echo "${ECHO_T}no" >&6
e3f92d3b
MK
6555fi
6556
6557 test -n "$GCJ" && break
6558done
6559test -n "$GCJ" || GCJ="gcj"
6560
6561test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
6562echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
6563 { (exit 1); exit 1; }; }
6564if test "x${GCJFLAGS-unset}" = xunset; then
6565 GCJFLAGS="-g -O2"
6566fi
6567
6568
6569depcc="$GCJ" am_compiler_list='gcc3 gcc'
6570
ade710a5
TF
6571echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6572echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
e3f92d3b
MK
6573if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
6574 echo $ECHO_N "(cached) $ECHO_C" >&6
6575else
6576 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6577 # We make a subdir and do the tests there. Otherwise we can end up
6578 # making bogus files that we don't know about and never remove. For
6579 # instance it was reported that on HP-UX the gcc test will end up
6580 # making a dummy file named `D' -- because `-MD' means `put the output
6581 # in D'.
6582 mkdir conftest.dir
6583 # Copy depcomp to subdir because otherwise we won't find it if we're
6584 # using a relative directory.
6585 cp "$am_depcomp" conftest.dir
6586 cd conftest.dir
6587 # We will build objects and dependencies in a subdirectory because
6588 # it helps to detect inapplicable dependency modes. For instance
6589 # both Tru64's cc and ICC support -MD to output dependencies as a
6590 # side effect of compilation, but ICC will put the dependencies in
6591 # the current directory while Tru64 will put them in the object
6592 # directory.
6593 mkdir sub
6594
6595 am_cv_GCJ_dependencies_compiler_type=none
6596 if test "$am_compiler_list" = ""; then
6597 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6598 fi
6599 for depmode in $am_compiler_list; do
6600 # Setup a source with many dependencies, because some compilers
6601 # like to wrap large dependency lists on column 80 (with \), and
6602 # we should not choose a depcomp mode which is confused by this.
6603 #
6604 # We need to recreate these files for each test, as the compiler may
6605 # overwrite some of them when testing with obscure command lines.
6606 # This happens at least with the AIX C compiler.
6607 : > sub/conftest.c
6608 for i in 1 2 3 4 5 6; do
6609 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6610 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6611 # Solaris 8's {/usr,}/bin/sh.
6612 touch sub/conftst$i.h
6613 done
6614 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6615
6616 case $depmode in
6617 nosideeffect)
6618 # after this tag, mechanisms are not by side-effect, so they'll
6619 # only be used when explicitly requested
6620 if test "x$enable_dependency_tracking" = xyes; then
6621 continue
6622 else
6623 break
6624 fi
6625 ;;
6626 none) break ;;
6627 esac
6628 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6629 # mode. It turns out that the SunPro C++ compiler does not properly
6630 # handle `-M -o', and we need to detect this.
6631 if depmode=$depmode \
6632 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6633 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6634 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6635 >/dev/null 2>conftest.err &&
6636 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6637 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6638 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6639 # icc doesn't choke on unknown options, it will just issue warnings
6640 # or remarks (even with -Werror). So we grep stderr for any message
6641 # that says an option was ignored or not supported.
6642 # When given -MP, icc 7.0 and 7.1 complain thusly:
6643 # icc: Command line warning: ignoring option '-M'; no argument required
6644 # The diagnosis changed in icc 8.0:
6645 # icc: Command line remark: option '-MP' not supported
6646 if (grep 'ignoring option' conftest.err ||
6647 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6648 am_cv_GCJ_dependencies_compiler_type=$depmode
6649 break
6650 fi
6651 fi
6652 done
6653
6654 cd ..
6655 rm -rf conftest.dir
6656else
6657 am_cv_GCJ_dependencies_compiler_type=none
6658fi
6659
6660fi
ade710a5
TF
6661echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
6662echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
e3f92d3b
MK
6663GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
6664
6665
6666
6667if
6668 test "x$enable_dependency_tracking" != xno \
6669 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
6670 am__fastdepGCJ_TRUE=
6671 am__fastdepGCJ_FALSE='#'
6672else
6673 am__fastdepGCJ_TRUE='#'
6674 am__fastdepGCJ_FALSE=
6675fi
6676
6677
6678
6679
6680LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
6681lt_save_CC="$CC"
6682lt_save_CFLAGS="$CFLAGS"
6683AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
52a11cbf 6684MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6d0860ee
AO
6685LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6686AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6687objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6688deplibs_check_method="$deplibs_check_method" \
6689file_magic_cmd="$file_magic_cmd" \
6690${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
e3f92d3b 6691--build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
ed698112
NN
6692|| { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6693echo "$as_me: error: libtool tag configuration failed" >&2;}
6694 { (exit 1); exit 1; }; }
6d0860ee
AO
6695CC="$lt_save_CC"
6696CFLAGS="$lt_save_CFLAGS"
6697
6698# Redirect the config.log output again, so that the ltconfig log is not
6699# clobbered by the next message.
6700exec 5>>./config.log
6701
6d0860ee 6702
ed698112 6703
e3f92d3b 6704if test "x$CC" != xcc; then
ade710a5
TF
6705 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
6706echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
e3f92d3b 6707else
ade710a5
TF
6708 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
6709echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
e3f92d3b
MK
6710fi
6711set dummy $CC; ac_cc=`echo $2 |
6712 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
ade710a5 6713if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
e3f92d3b
MK
6714 echo $ECHO_N "(cached) $ECHO_C" >&6
6715else
6716 cat >conftest.$ac_ext <<_ACEOF
6717/* confdefs.h. */
6718_ACEOF
6719cat confdefs.h >>conftest.$ac_ext
6720cat >>conftest.$ac_ext <<_ACEOF
6721/* end confdefs.h. */
6722
6723int
6724main ()
6725{
6726
6727 ;
6728 return 0;
6729}
6730_ACEOF
6731# Make sure it works both with $CC and with simple cc.
6732# We do the test twice because some compilers refuse to overwrite an
6733# existing .o file with -o, though they will create one.
ade710a5 6734ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
e3f92d3b
MK
6735if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6736 (eval $ac_try) 2>&5
6737 ac_status=$?
6738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 (exit $ac_status); } &&
ade710a5 6740 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
e3f92d3b
MK
6741 (eval $ac_try) 2>&5
6742 ac_status=$?
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); };
6745then
6746 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6747 if test "x$CC" != xcc; then
6748 # Test first that cc exists at all.
6749 if { ac_try='cc -c conftest.$ac_ext >&5'
6750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6751 (eval $ac_try) 2>&5
6752 ac_status=$?
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); }; }; then
ade710a5 6755 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
e3f92d3b
MK
6756 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6757 (eval $ac_try) 2>&5
6758 ac_status=$?
6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); } &&
ade710a5 6761 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
e3f92d3b
MK
6762 (eval $ac_try) 2>&5
6763 ac_status=$?
6764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765 (exit $ac_status); };
6766 then
6767 # cc works too.
6768 :
6769 else
6770 # cc exists but doesn't like -o.
6771 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6772 fi
6773 fi
6774 fi
6775else
6776 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6777fi
6778rm -f conftest*
6779
6780fi
6781if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
ade710a5
TF
6782 echo "$as_me:$LINENO: result: yes" >&5
6783echo "${ECHO_T}yes" >&6
e3f92d3b 6784else
ade710a5
TF
6785 echo "$as_me:$LINENO: result: no" >&5
6786echo "${ECHO_T}no" >&6
e3f92d3b
MK
6787
6788cat >>confdefs.h <<\_ACEOF
6789#define NO_MINUS_C_MINUS_O 1
6790_ACEOF
ed698112 6791
e3f92d3b 6792fi
ed698112 6793
e3f92d3b
MK
6794# FIXME: we rely on the cache variable name because
6795# there is no other way.
6796set dummy $CC
6797ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6798if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
6799 # Losing compiler, so override with the script.
6800 # FIXME: It is wrong to rewrite CC.
6801 # But if we don't then we get into trouble of one sort or another.
6802 # A longer-term fix would be to have automake use am__CC in this case,
6803 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6804 CC="$am_aux_dir/compile $CC"
6805fi
ed698112
NN
6806
6807
ade710a5
TF
6808
6809
b0fa81ee 6810subdirs="$subdirs classpath libltdl"
7af85558 6811
a3ffcff3 6812
aed6152d 6813# The -no-testsuite modules omit the test subdir.
ee9dd372
TT
6814
6815
6816if test -d $srcdir/testsuite; then
6817 TESTSUBDIR_TRUE=
6818 TESTSUBDIR_FALSE='#'
6819else
6820 TESTSUBDIR_TRUE='#'
6821 TESTSUBDIR_FALSE=
6822fi
6823
e3f92d3b 6824
aed6152d
NN
6825# Should the runtime set system properties by examining the
6826# environment variable GCJ_PROPERTIES?
ade710a5 6827# Check whether --enable-getenv-properties or --disable-getenv-properties was given.
ffccc6be 6828if test "${enable_getenv_properties+set}" = set; then
ade710a5 6829 enableval="$enable_getenv_properties"
ffccc6be 6830
ade710a5 6831fi;
ffccc6be 6832
aed6152d 6833# Whether GCJ_PROPERTIES is used depends on the target.
3610e0d5 6834if test -z "$enable_getenv_properties"; then
ffccc6be
AG
6835 enable_getenv_properties=${enable_getenv_properties_default-yes}
6836fi
6837if test "$enable_getenv_properties" = no; then
ed698112
NN
6838
6839cat >>confdefs.h <<\_ACEOF
ffccc6be 6840#define DISABLE_GETENV_PROPERTIES 1
ed698112 6841_ACEOF
ffccc6be
AG
6842
6843fi
6844
aed6152d 6845# Whether we should use arguments to main()
b5ee195f
AG
6846if test -z "$enable_main_args"; then
6847 enable_main_args=${enable_main_args_default-yes}
6848fi
6849if test "$enable_main_args" = no; then
ed698112
NN
6850
6851cat >>confdefs.h <<\_ACEOF
b5ee195f 6852#define DISABLE_MAIN_ARGS 1
ed698112 6853_ACEOF
b5ee195f
AG
6854
6855fi
6856
3610e0d5 6857
aed6152d
NN
6858# Should we use hashtable-based synchronization?
6859# Currently works only for Linux X86/ia64
6860# Typically faster and more space-efficient
ade710a5 6861# Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
3610e0d5 6862if test "${enable_hash_synchronization+set}" = set; then
ade710a5 6863 enableval="$enable_hash_synchronization"
3610e0d5 6864
ade710a5 6865fi;
3610e0d5
TT
6866
6867if test -z "$enable_hash_synchronization"; then
6868 enable_hash_synchronization=$enable_hash_synchronization_default
6869fi
3610e0d5 6870
c33b7bf0 6871
97b8365c
TT
6872install_ecj_jar=no
6873ECJ_BUILD_JAR=
6874ECJ_JAR=
6875
6876# Check whether --with-ecj-jar or --without-ecj-jar was given.
6877if test "${with_ecj_jar+set}" = set; then
6878 withval="$with_ecj_jar"
6879 ECJ_JAR=$withval
6880else
6881 if test -f $libgcj_basedir/../ecj.jar; then
6882 ECJ_BUILD_JAR=$libgcj_basedir/../ecj.jar
6883 ECJ_JAR='$(jardir)/ecj.jar'
6884 install_ecj_jar=yes
6885 fi
6886fi;
6887
6888
6889
6890
6891if test "$ECJ_JAR" != ""; then
6892 BUILD_ECJ1_TRUE=
6893 BUILD_ECJ1_FALSE='#'
6894else
6895 BUILD_ECJ1_TRUE='#'
6896 BUILD_ECJ1_FALSE=
6897fi
6898
6899
6900
6901if test $install_ecj_jar = yes; then
6902 INSTALL_ECJ_JAR_TRUE=
6903 INSTALL_ECJ_JAR_FALSE='#'
6904else
6905 INSTALL_ECJ_JAR_TRUE='#'
6906 INSTALL_ECJ_JAR_FALSE=
6907fi
6908
6909
6910
ade710a5 6911# Check whether --with-java-home or --without-java-home was given.
c33b7bf0 6912if test "${with_java_home+set}" = set; then
ade710a5
TF
6913 withval="$with_java_home"
6914 JAVA_HOME="${withval}"
c33b7bf0
TF
6915else
6916 JAVA_HOME=""
ade710a5 6917fi;
c33b7bf0
TF
6918
6919
6920if test ! -z "$JAVA_HOME"; then
6921 JAVA_HOME_SET_TRUE=
6922 JAVA_HOME_SET_FALSE='#'
6923else
6924 JAVA_HOME_SET_TRUE='#'
6925 JAVA_HOME_SET_FALSE=
6926fi
6927
6928
6929
83c02e38 6930# What is the native OS API for MinGW?
ed698112 6931
ade710a5 6932# Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
83c02e38 6933if test "${with_win32_nlsapi+set}" = set; then
ade710a5
TF
6934 withval="$with_win32_nlsapi"
6935 case "${withval}" in
83c02e38
ME
6936 ansi) with_win32_nlsapi=ansi ;;
6937 unicows) with_win32_nlsapi=unicows ;;
6938 unicode) with_win32_nlsapi=unicode ;;
ed698112
NN
6939 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
6940echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
6941 { (exit 1); exit 1; }; } ;;
83c02e38
ME
6942esac
6943else
6944 with_win32_nlsapi=ansi
ade710a5 6945fi;
83c02e38
ME
6946
6947case "${with_win32_nlsapi}" in
ed698112
NN
6948 unicows | unicode)
6949
6950cat >>confdefs.h <<\_ACEOF
83c02e38 6951#define MINGW_LIBGCJ_UNICODE 1
ed698112 6952_ACEOF
83c02e38
ME
6953
6954 ;;
6955esac
6956
aed6152d
NN
6957# configure.host sets slow_pthread_self if the synchronization code should
6958# try to avoid pthread_self calls by caching thread IDs in a hashtable.
45597167 6959if test "${slow_pthread_self}" = "yes"; then
ed698112
NN
6960
6961cat >>confdefs.h <<\_ACEOF
45597167 6962#define SLOW_PTHREAD_SELF 1
ed698112 6963_ACEOF
45597167
BM
6964
6965fi
6966
ed347998 6967# Check for gc debugging. This option is handled both here and in the GC.
ade710a5 6968# Check whether --enable-gc-debug or --disable-gc-debug was given.
ed347998 6969if test "${enable_gc_debug+set}" = set; then
ade710a5
TF
6970 enableval="$enable_gc_debug"
6971 if test "$enable_gc_debug" = "yes"; then
48d0dd75
KC
6972
6973cat >>confdefs.h <<\_ACEOF
ed347998
HB
6974#define LIBGCJ_GC_DEBUG 1
6975_ACEOF
6976
6977 fi
ade710a5 6978fi;
ed347998 6979
aed6152d 6980# See if the user has the interpreter included.
ade710a5 6981# Check whether --enable-interpreter or --disable-interpreter was given.
58eb6e7c 6982if test "${enable_interpreter+set}" = set; then
ade710a5
TF
6983 enableval="$enable_interpreter"
6984 if test "$enable_interpreter" = yes; then
b11f6430
AG
6985 # This can also be set in configure.host.
6986 libgcj_interpreter=yes
f7ccaa38
BM
6987 elif test "$enable_interpreter" = no; then
6988 libgcj_interpreter=no
b11f6430 6989 fi
ade710a5 6990fi;
b11f6430
AG
6991
6992if test "$libgcj_interpreter" = yes; then
ed698112
NN
6993
6994cat >>confdefs.h <<\_ACEOF
58eb6e7c 6995#define INTERPRETER 1
ed698112 6996_ACEOF
58eb6e7c 6997
58eb6e7c 6998fi
b2ae5f70
TT
6999INTERPRETER="$libgcj_interpreter"
7000
58eb6e7c 7001
ade710a5
TF
7002echo "$as_me:$LINENO: checking for exception model to use" >&5
7003echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
7004ac_ext=cc
52a11cbf 7005ac_cpp='$CXXCPP $CPPFLAGS'
ed698112
NN
7006ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7007ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7008ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
52a11cbf 7009
ade710a5 7010# Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
3cf88fb4 7011if test "${enable_sjlj_exceptions+set}" = set; then
ade710a5
TF
7012 enableval="$enable_sjlj_exceptions"
7013 :
52a11cbf
RH
7014else
7015 cat > conftest.$ac_ext << EOF
97b8365c 7016#line 7016 "configure"
52a11cbf
RH
7017struct S { ~S(); };
7018void bar();
7019void foo()
7020{
7021 S s;
7022 bar();
7023}
7024EOF
ed698112 7025old_CXXFLAGS="$CXXFLAGS"
52a11cbf 7026CXXFLAGS=-S
ed698112
NN
7027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7028 (eval $ac_compile) 2>&5
7029 ac_status=$?
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); }; then
52a11cbf
RH
7032 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
7033 enable_sjlj_exceptions=yes
7034 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
7035 enable_sjlj_exceptions=no
3cf88fb4
TT
7036 fi
7037fi
52a11cbf
RH
7038CXXFLAGS="$old_CXXFLAGS"
7039rm -f conftest*
ade710a5 7040fi;
52a11cbf 7041if test x$enable_sjlj_exceptions = xyes; then
ed698112
NN
7042
7043cat >>confdefs.h <<\_ACEOF
3cf88fb4 7044#define SJLJ_EXCEPTIONS 1
ed698112 7045_ACEOF
3cf88fb4 7046
52a11cbf
RH
7047 ac_exception_model_name=sjlj
7048elif test x$enable_sjlj_exceptions = xno; then
7049 ac_exception_model_name="call frame"
7050else
ed698112
NN
7051 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
7052echo "$as_me: error: unable to detect exception model" >&2;}
7053 { (exit 1); exit 1; }; }
3cf88fb4 7054fi
52a11cbf 7055ac_ext=c
52a11cbf 7056ac_cpp='$CPP $CPPFLAGS'
ed698112
NN
7057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7059ac_compiler_gnu=$ac_cv_c_compiler_gnu
52a11cbf 7060
ade710a5
TF
7061echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
7062echo "${ECHO_T}$ac_exception_model_name" >&6
3cf88fb4 7063
ed698112 7064# If we are non using SJLJ exceptions, and this host does not have support
605dc89b
BM
7065# for unwinding from a signal handler, enable checked dereferences and divides.
7066if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
7067 CHECKREFSPEC=-fcheck-references
7068 DIVIDESPEC=-fuse-divide-subroutine
7069 EXCEPTIONSPEC=
7070fi
7071
aed6152d
NN
7072# See if the user wants to disable java.net. This is the mildly
7073# ugly way that we admit that target-side configuration sucks.
ade710a5 7074# Check whether --enable-java-net or --disable-java-net was given.
4b68fe8a 7075if test "${enable_java_net+set}" = set; then
ade710a5 7076 enableval="$enable_java_net"
4b68fe8a 7077
ade710a5 7078fi;
4b68fe8a 7079
aed6152d 7080# Whether java.net is built by default can depend on the target.
3610e0d5 7081if test -z "$enable_java_net"; then
4b68fe8a
TT
7082 enable_java_net=${enable_java_net_default-yes}
7083fi
006d4a9b 7084if test "$enable_java_net" = no; then
ed698112
NN
7085
7086cat >>confdefs.h <<\_ACEOF
4b68fe8a 7087#define DISABLE_JAVA_NET 1
ed698112 7088_ACEOF
4b68fe8a
TT
7089
7090fi
7091
aed6152d
NN
7092# See if the user wants to configure without libffi. Some
7093# architectures don't support it, and default values are set in
7094# configure.host.
ed698112 7095
ade710a5 7096# Check whether --with-libffi or --without-libffi was given.
c8fb9813 7097if test "${with_libffi+set}" = set; then
ade710a5
TF
7098 withval="$with_libffi"
7099 :
c8fb9813
AG
7100else
7101 with_libffi=${with_libffi_default-yes}
ade710a5 7102fi;
c8fb9813
AG
7103
7104LIBFFI=
7105LIBFFIINCS=
7106if test "$with_libffi" != no; then
ed698112
NN
7107
7108cat >>confdefs.h <<\_ACEOF
c8fb9813 7109#define USE_LIBFFI 1
ed698112 7110_ACEOF
c8fb9813 7111
ce3b24a7 7112 LIBFFI=../libffi/libffi_convenience.la
a15e868a 7113 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
c8fb9813
AG
7114fi
7115
7116
7117
aed6152d 7118# See if the user wants to disable JVMPI support.
ade710a5 7119# Check whether --enable-jvmpi or --disable-jvmpi was given.
54c2f04b 7120if test "${enable_jvmpi+set}" = set; then
ade710a5 7121 enableval="$enable_jvmpi"
54c2f04b 7122
ade710a5 7123fi;
54c2f04b
AG
7124
7125if test "$enable_jvmpi" != no; then
ed698112
NN
7126
7127cat >>confdefs.h <<\_ACEOF
54c2f04b 7128#define ENABLE_JVMPI 1
ed698112 7129_ACEOF
54c2f04b
AG
7130
7131fi
7132
aed6152d
NN
7133# If the target is an eCos system, use the appropriate eCos
7134# I/O routines.
7135# FIXME: this should not be a local option but a global target
7136# system; at present there is no eCos target.
b5ee195f 7137TARGET_ECOS=${PROCESS-"no"}
ed698112 7138
ade710a5 7139# Check whether --with-ecos or --without-ecos was given.
ee9dd372 7140if test "${with_ecos+set}" = set; then
ade710a5
TF
7141 withval="$with_ecos"
7142 TARGET_ECOS="$with_ecos"
ee9dd372 7143
ade710a5 7144fi;
ee9dd372
TT
7145
7146case "$TARGET_ECOS" in
54a190dd 7147 no) case "$host" in
b8fe3c1e 7148 *mingw*)
54a190dd 7149 PLATFORM=Win32
9b5f18b1 7150 PLATFORMNET=Win32
65c9eafb 7151 PLATFORMH=win32.h
ed698112 7152
ade710a5
TF
7153echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
7154echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
60c7f4ef
TT
7155LD_PROG=`$CC --print-prog-name=ld`
7156LD_VERSION=`$LD_PROG --version`
7157LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
7158LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
7159if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
7160 LD_OK="ok"
7161else
7162 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
7163 LD_OK="ok"
7164 fi
7165fi
7166if test "x$LD_OK" != x; then
ade710a5
TF
7167 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
7168echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
60c7f4ef 7169else
ade710a5
TF
7170 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
7171echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
ed698112
NN
7172 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
7173echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
7174
7175cat >>confdefs.h <<\_ACEOF
60c7f4ef 7176#define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
ed698112 7177_ACEOF
60c7f4ef
TT
7178
7179fi
54a190dd
AM
7180 ;;
7181 *)
7182 PLATFORM=Posix
9b5f18b1 7183 PLATFORMNET=Posix
65c9eafb 7184 PLATFORMH=posix.h
54a190dd
AM
7185 ;;
7186 esac
ee9dd372
TT
7187 ;;
7188 *)
54a190dd 7189 PLATFORM=Ecos
9b5f18b1 7190 PLATFORMNET=NoNet
ed698112
NN
7191
7192cat >>confdefs.h <<\_ACEOF
ee9dd372 7193#define ECOS 1
ed698112 7194_ACEOF
ee9dd372 7195
65c9eafb 7196 PLATFORMH=posix.h
ee9dd372
TT
7197 ;;
7198esac
7199
ade710a5 7200 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
d7799ba1
AM
7201
7202
ed698112
NN
7203ac_ext=c
7204ac_cpp='$CPP $CPPFLAGS'
7205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7207ac_compiler_gnu=$ac_cv_c_compiler_gnu
ade710a5
TF
7208echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7209echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
ee9dd372
TT
7210# On Suns, sometimes $CPP names a directory.
7211if test -n "$CPP" && test -d "$CPP"; then
7212 CPP=
7213fi
7214if test -z "$CPP"; then
ed698112
NN
7215 if test "${ac_cv_prog_CPP+set}" = set; then
7216 echo $ECHO_N "(cached) $ECHO_C" >&6
7217else
7218 # Double quotes because CPP needs to be expanded
7219 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7220 do
7221 ac_preproc_ok=false
7222for ac_c_preproc_warn_flag in '' yes
7223do
7224 # Use a header file that comes with gcc, so configuring glibc
7225 # with a fresh cross-compiler works.
7226 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7227 # <limits.h> exists even on freestanding compilers.
ee9dd372 7228 # On the NeXT, cc -E runs the code through the compiler's parser,
ed698112
NN
7229 # not just through cpp. "Syntax error" is here to catch this case.
7230 cat >conftest.$ac_ext <<_ACEOF
7231/* confdefs.h. */
7232_ACEOF
7233cat confdefs.h >>conftest.$ac_ext
7234cat >>conftest.$ac_ext <<_ACEOF
7235/* end confdefs.h. */
7236#ifdef __STDC__
7237# include <limits.h>
7238#else
7239# include <assert.h>
7240#endif
7241 Syntax error
7242_ACEOF
7243if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7245 ac_status=$?
7246 grep -v '^ *+' conftest.er1 >conftest.err
7247 rm -f conftest.er1
7248 cat conftest.err >&5
7249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250 (exit $ac_status); } >/dev/null; then
7251 if test -s conftest.err; then
7252 ac_cpp_err=$ac_c_preproc_warn_flag
7253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7254 else
7255 ac_cpp_err=
7256 fi
ee9dd372 7257else
ed698112
NN
7258 ac_cpp_err=yes
7259fi
7260if test -z "$ac_cpp_err"; then
ee9dd372
TT
7261 :
7262else
ed698112
NN
7263 echo "$as_me: failed program was:" >&5
7264sed 's/^/| /' conftest.$ac_ext >&5
7265
7266 # Broken: fails on valid input.
7267continue
7268fi
7269rm -f conftest.err conftest.$ac_ext
7270
ade710a5 7271 # OK, works on sane cases. Now check whether non-existent headers
ed698112
NN
7272 # can be detected and how.
7273 cat >conftest.$ac_ext <<_ACEOF
7274/* confdefs.h. */
7275_ACEOF
7276cat confdefs.h >>conftest.$ac_ext
7277cat >>conftest.$ac_ext <<_ACEOF
7278/* end confdefs.h. */
7279#include <ac_nonexistent.h>
7280_ACEOF
7281if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7282 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7283 ac_status=$?
7284 grep -v '^ *+' conftest.er1 >conftest.err
7285 rm -f conftest.er1
7286 cat conftest.err >&5
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); } >/dev/null; then
7289 if test -s conftest.err; then
7290 ac_cpp_err=$ac_c_preproc_warn_flag
7291 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7292 else
7293 ac_cpp_err=
7294 fi
ee9dd372 7295else
ed698112 7296 ac_cpp_err=yes
ee9dd372 7297fi
ed698112
NN
7298if test -z "$ac_cpp_err"; then
7299 # Broken: success on invalid input.
7300continue
7301else
7302 echo "$as_me: failed program was:" >&5
7303sed 's/^/| /' conftest.$ac_ext >&5
7304
7305 # Passes both tests.
7306ac_preproc_ok=:
7307break
ee9dd372 7308fi
ed698112
NN
7309rm -f conftest.err conftest.$ac_ext
7310
7311done
7312# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7313rm -f conftest.err conftest.$ac_ext
7314if $ac_preproc_ok; then
7315 break
ee9dd372 7316fi
ed698112
NN
7317
7318 done
7319 ac_cv_prog_CPP=$CPP
7320
7321fi
7322 CPP=$ac_cv_prog_CPP
7323else
7324 ac_cv_prog_CPP=$CPP
7325fi
ade710a5
TF
7326echo "$as_me:$LINENO: result: $CPP" >&5
7327echo "${ECHO_T}$CPP" >&6
ed698112
NN
7328ac_preproc_ok=false
7329for ac_c_preproc_warn_flag in '' yes
7330do
7331 # Use a header file that comes with gcc, so configuring glibc
7332 # with a fresh cross-compiler works.
7333 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7334 # <limits.h> exists even on freestanding compilers.
7335 # On the NeXT, cc -E runs the code through the compiler's parser,
7336 # not just through cpp. "Syntax error" is here to catch this case.
7337 cat >conftest.$ac_ext <<_ACEOF
7338/* confdefs.h. */
7339_ACEOF
7340cat confdefs.h >>conftest.$ac_ext
7341cat >>conftest.$ac_ext <<_ACEOF
7342/* end confdefs.h. */
7343#ifdef __STDC__
7344# include <limits.h>
7345#else
7346# include <assert.h>
7347#endif
7348 Syntax error
7349_ACEOF
7350if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7351 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7352 ac_status=$?
7353 grep -v '^ *+' conftest.er1 >conftest.err
7354 rm -f conftest.er1
7355 cat conftest.err >&5
7356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357 (exit $ac_status); } >/dev/null; then
7358 if test -s conftest.err; then
7359 ac_cpp_err=$ac_c_preproc_warn_flag
7360 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7361 else
7362 ac_cpp_err=
7363 fi
7364else
7365 ac_cpp_err=yes
ee9dd372 7366fi
ed698112
NN
7367if test -z "$ac_cpp_err"; then
7368 :
7369else
7370 echo "$as_me: failed program was:" >&5
7371sed 's/^/| /' conftest.$ac_ext >&5
7372
7373 # Broken: fails on valid input.
7374continue
7375fi
7376rm -f conftest.err conftest.$ac_ext
7377
ade710a5 7378 # OK, works on sane cases. Now check whether non-existent headers
ed698112
NN
7379 # can be detected and how.
7380 cat >conftest.$ac_ext <<_ACEOF
7381/* confdefs.h. */
7382_ACEOF
7383cat confdefs.h >>conftest.$ac_ext
7384cat >>conftest.$ac_ext <<_ACEOF
7385/* end confdefs.h. */
7386#include <ac_nonexistent.h>
7387_ACEOF
7388if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7389 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7390 ac_status=$?
7391 grep -v '^ *+' conftest.er1 >conftest.err
7392 rm -f conftest.er1
7393 cat conftest.err >&5
7394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395 (exit $ac_status); } >/dev/null; then
7396 if test -s conftest.err; then
7397 ac_cpp_err=$ac_c_preproc_warn_flag
7398 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7399 else
7400 ac_cpp_err=
7401 fi
ee9dd372 7402else
ed698112 7403 ac_cpp_err=yes
ee9dd372 7404fi
ed698112
NN
7405if test -z "$ac_cpp_err"; then
7406 # Broken: success on invalid input.
7407continue
7408else
7409 echo "$as_me: failed program was:" >&5
7410sed 's/^/| /' conftest.$ac_ext >&5
ee9dd372 7411
ed698112
NN
7412 # Passes both tests.
7413ac_preproc_ok=:
7414break
7415fi
7416rm -f conftest.err conftest.$ac_ext
7417
7418done
7419# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7420rm -f conftest.err conftest.$ac_ext
7421if $ac_preproc_ok; then
7422 :
7423else
7424 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7425See \`config.log' for more details." >&5
7426echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7427See \`config.log' for more details." >&2;}
7428 { (exit 1); exit 1; }; }
7429fi
7430
7431ac_ext=c
7432ac_cpp='$CPP $CPPFLAGS'
7433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7435ac_compiler_gnu=$ac_cv_c_compiler_gnu
7436
7437
ade710a5
TF
7438echo "$as_me:$LINENO: checking for egrep" >&5
7439echo $ECHO_N "checking for egrep... $ECHO_C" >&6
7440if test "${ac_cv_prog_egrep+set}" = set; then
ed698112
NN
7441 echo $ECHO_N "(cached) $ECHO_C" >&6
7442else
ade710a5
TF
7443 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
7444 then ac_cv_prog_egrep='grep -E'
7445 else ac_cv_prog_egrep='egrep'
ed698112 7446 fi
02809848 7447fi
ade710a5
TF
7448echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
7449echo "${ECHO_T}$ac_cv_prog_egrep" >&6
7450 EGREP=$ac_cv_prog_egrep
ed698112
NN
7451
7452
7453cat >conftest.$ac_ext <<_ACEOF
7454/* confdefs.h. */
7455_ACEOF
7456cat confdefs.h >>conftest.$ac_ext
7457cat >>conftest.$ac_ext <<_ACEOF
7458/* end confdefs.h. */
0d16618c 7459#include <stdint.h>
ed698112
NN
7460
7461_ACEOF
ee9dd372 7462if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ed698112
NN
7463 $EGREP "uint32_t" >/dev/null 2>&1; then
7464
7465cat >>confdefs.h <<\_ACEOF
ee9dd372 7466#define HAVE_INT32_DEFINED 1
ed698112 7467_ACEOF
ee9dd372
TT
7468
7469fi
7470rm -f conftest*
7471
ed698112
NN
7472cat >conftest.$ac_ext <<_ACEOF
7473/* confdefs.h. */
7474_ACEOF
7475cat confdefs.h >>conftest.$ac_ext
7476cat >>conftest.$ac_ext <<_ACEOF
7477/* end confdefs.h. */
0d16618c 7478#include <inttypes.h>
ed698112
NN
7479
7480_ACEOF
ee9dd372 7481if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ed698112
NN
7482 $EGREP "uint32_t" >/dev/null 2>&1; then
7483
7484cat >>confdefs.h <<\_ACEOF
ee9dd372 7485#define HAVE_INT32_DEFINED 1
ed698112 7486_ACEOF
ee9dd372
TT
7487
7488fi
7489rm -f conftest*
7490
ed698112
NN
7491cat >conftest.$ac_ext <<_ACEOF
7492/* confdefs.h. */
7493_ACEOF
7494cat confdefs.h >>conftest.$ac_ext
7495cat >>conftest.$ac_ext <<_ACEOF
7496/* end confdefs.h. */
0d16618c 7497#include <sys/types.h>
ed698112
NN
7498
7499_ACEOF
0d16618c 7500if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ed698112
NN
7501 $EGREP "u_int32_t" >/dev/null 2>&1; then
7502
7503cat >>confdefs.h <<\_ACEOF
0d16618c 7504#define HAVE_BSD_INT32_DEFINED 1
ed698112 7505_ACEOF
0d16618c
TT
7506
7507fi
7508rm -f conftest*
7509
ed698112
NN
7510cat >conftest.$ac_ext <<_ACEOF
7511/* confdefs.h. */
7512_ACEOF
7513cat confdefs.h >>conftest.$ac_ext
7514cat >>conftest.$ac_ext <<_ACEOF
7515/* end confdefs.h. */
0d16618c 7516#include <sys/config.h>
ed698112
NN
7517
7518_ACEOF
0d16618c 7519if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ed698112
NN
7520 $EGREP "u_int32_t" >/dev/null 2>&1; then
7521
7522cat >>confdefs.h <<\_ACEOF
0d16618c 7523#define HAVE_BSD_INT32_DEFINED 1
ed698112 7524_ACEOF
0d16618c
TT
7525
7526fi
7527rm -f conftest*
7528
7529
ee9dd372 7530
e3f92d3b
MK
7531
7532if test "$PLATFORM" = Win32; then
7533 USING_WIN32_PLATFORM_TRUE=
7534 USING_WIN32_PLATFORM_FALSE='#'
7535else
7536 USING_WIN32_PLATFORM_TRUE='#'
7537 USING_WIN32_PLATFORM_FALSE=
7538fi
7539
7540
7541
3d5a109a 7542if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
e3f92d3b
MK
7543 USING_POSIX_PLATFORM_TRUE=
7544 USING_POSIX_PLATFORM_FALSE='#'
7545else
7546 USING_POSIX_PLATFORM_TRUE='#'
7547 USING_POSIX_PLATFORM_FALSE=
7548fi
7549
7550
f1a66265
GK
7551case "$host" in
7552 *-darwin*) DARWIN_CRT=true ;;
7553 *) DARWIN_CRT=false ;;
7554esac
7555
7556
7557if $DARWIN_CRT; then
7558 USING_DARWIN_CRT_TRUE=
7559 USING_DARWIN_CRT_FALSE='#'
7560else
7561 USING_DARWIN_CRT_TRUE='#'
7562 USING_DARWIN_CRT_FALSE=
7563fi
7564
7565
aed6152d
NN
7566# These may not be defined in a non-ANS conformant embedded system.
7567# FIXME: Should these case a runtime exception in that case?
ed698112
NN
7568cat >conftest.$ac_ext <<_ACEOF
7569/* confdefs.h. */
7570_ACEOF
7571cat confdefs.h >>conftest.$ac_ext
7572cat >>conftest.$ac_ext <<_ACEOF
7573/* end confdefs.h. */
ee9dd372 7574#include <time.h>
ed698112
NN
7575
7576_ACEOF
ee9dd372 7577if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ed698112
NN
7578 $EGREP "mktime" >/dev/null 2>&1; then
7579
7580cat >>confdefs.h <<\_ACEOF
ee9dd372 7581#define HAVE_MKTIME 1
ed698112 7582_ACEOF
ee9dd372
TT
7583
7584fi
7585rm -f conftest*
7586
ed698112
NN
7587cat >conftest.$ac_ext <<_ACEOF
7588/* confdefs.h. */
7589_ACEOF
7590cat confdefs.h >>conftest.$ac_ext
7591cat >>conftest.$ac_ext <<_ACEOF
7592/* end confdefs.h. */
ee9dd372 7593#include <time.h>
ed698112
NN
7594
7595_ACEOF
ee9dd372 7596if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ed698112
NN
7597 $EGREP "localtime" >/dev/null 2>&1; then
7598
7599cat >>confdefs.h <<\_ACEOF
ee9dd372 7600#define HAVE_LOCALTIME 1
ed698112 7601_ACEOF
ee9dd372
TT
7602
7603fi
7604rm -f conftest*
7605
7606
aed6152d
NN
7607# Create the subdirectory for natFile.cc, or the attempt
7608# to create the link will fail.
ee9dd372
TT
7609test -d java || mkdir java
7610test -d java/io || mkdir java/io
213858c0 7611test -d gnu || mkdir gnu
ade710a5 7612 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
ee9dd372
TT
7613
7614
97b8365c 7615# Likewise for natConcreteProcess.cc.
42962a48 7616test -d java/lang || mkdir java/lang
ade710a5 7617 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
42962a48
TT
7618
7619
adefdaca 7620# Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
9b5f18b1 7621test -d java/net || mkdir java/net
adefdaca 7622 ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
614c0fc2 7623
ade710a5 7624 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
9b5f18b1
MK
7625
7626
aed6152d 7627# Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
4a503716
MK
7628test -d gnu/java || mkdir gnu/java
7629test -d gnu/java/net || mkdir gnu/java/net
ade710a5 7630 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
614c0fc2 7631
ade710a5 7632 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
9b5f18b1
MK
7633
7634
aed6152d 7635# Likewise for natPipeImpl.cc and natSelectorImpl.cc.
4ba6d1c3 7636test -d gnu/java/nio || mkdir gnu/java/nio
ade710a5 7637 ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
614c0fc2 7638
ade710a5 7639 ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
4ba6d1c3 7640
76c88fd9 7641test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
ade710a5 7642 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
76c88fd9 7643
4ba6d1c3 7644
4a8e624f 7645case "${host}" in
b8fe3c1e 7646 *mingw*)
5b5662ee 7647 SYSTEMSPEC="-lgdi32 -lws2_32"
83c02e38
ME
7648 if test "${with_win32_nlsapi}" = "unicows"; then
7649 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
7650 fi
4a8e624f
AM
7651 ;;
7652 *)
7653 SYSTEMSPEC=
7654 ;;
7655esac
f994389b
TT
7656
7657
1e6347d8 7658LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
0f9c645e
AG
7659
7660
ed698112 7661
ade710a5 7662# Check whether --with-system-zlib or --without-system-zlib was given.
f994389b 7663if test "${with_system_zlib+set}" = set; then
ade710a5 7664 withval="$with_system_zlib"
f994389b 7665
ade710a5 7666fi;
f994389b
TT
7667ZLIBSPEC=
7668
0f9c645e
AG
7669ZLIBTESTSPEC=
7670
f994389b 7671
ade710a5
TF
7672echo "$as_me:$LINENO: checking for X" >&5
7673echo $ECHO_N "checking for X... $ECHO_C" >&6
ed698112 7674
02809848 7675
ade710a5 7676# Check whether --with-x or --without-x was given.
5aac1dac 7677if test "${with_x+set}" = set; then
ade710a5 7678 withval="$with_x"
ee9dd372 7679
ade710a5 7680fi;
5aac1dac
TT
7681# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7682if test "x$with_x" = xno; then
7683 # The user explicitly disabled X.
7684 have_x=disabled
7685else
7686 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7687 # Both variables are already set.
7688 have_x=yes
7689 else
ed698112
NN
7690 if test "${ac_cv_have_x+set}" = set; then
7691 echo $ECHO_N "(cached) $ECHO_C" >&6
5aac1dac
TT
7692else
7693 # One or both of the vars are not set, and there is no cached value.
ed698112 7694ac_x_includes=no ac_x_libraries=no
ade710a5 7695rm -fr conftest.dir
ed698112
NN
7696if mkdir conftest.dir; then
7697 cd conftest.dir
5aac1dac 7698 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
ed698112 7699 cat >Imakefile <<'_ACEOF'
5aac1dac
TT
7700acfindx:
7701 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
ed698112 7702_ACEOF
ade710a5 7703 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5aac1dac
TT
7704 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7705 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7706 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7707 for ac_extension in a so sl; do
7708 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ed698112
NN
7709 test -f $ac_im_libdir/libX11.$ac_extension; then
7710 ac_im_usrlibdir=$ac_im_libdir; break
5aac1dac
TT
7711 fi
7712 done
7713 # Screen out bogus values from the imake configuration. They are
7714 # bogus both because they are the default anyway, and because
7715 # using them would break gcc on systems where it needs fixed includes.
ed698112 7716 case $ac_im_incroot in
ade710a5 7717 /usr/include) ;;
ed698112 7718 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5aac1dac 7719 esac
ed698112 7720 case $ac_im_usrlibdir in
5aac1dac 7721 /usr/lib | /lib) ;;
ed698112 7722 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5aac1dac
TT
7723 esac
7724 fi
7725 cd ..
ade710a5 7726 rm -fr conftest.dir
5aac1dac 7727fi
ee9dd372 7728
ed698112
NN
7729# Standard set of common directories for X headers.
7730# Check X11 before X11Rn because it is often a symlink to the current release.
7731ac_x_header_dirs='
7732/usr/X11/include
7733/usr/X11R6/include
7734/usr/X11R5/include
7735/usr/X11R4/include
7736
7737/usr/include/X11
7738/usr/include/X11R6
7739/usr/include/X11R5
7740/usr/include/X11R4
7741
7742/usr/local/X11/include
7743/usr/local/X11R6/include
7744/usr/local/X11R5/include
7745/usr/local/X11R4/include
7746
7747/usr/local/include/X11
7748/usr/local/include/X11R6
7749/usr/local/include/X11R5
7750/usr/local/include/X11R4
7751
7752/usr/X386/include
7753/usr/x386/include
7754/usr/XFree86/include/X11
7755
7756/usr/include
7757/usr/local/include
7758/usr/unsupported/include
7759/usr/athena/include
7760/usr/local/x11r5/include
7761/usr/lpp/Xamples/include
7762
7763/usr/openwin/include
7764/usr/openwin/share/include'
7765
7766if test "$ac_x_includes" = no; then
97b8365c 7767 # Guess where to find include files, by looking for Xlib.h.
5aac1dac 7768 # First, try using that file with no special directory specified.
ed698112
NN
7769 cat >conftest.$ac_ext <<_ACEOF
7770/* confdefs.h. */
7771_ACEOF
7772cat confdefs.h >>conftest.$ac_ext
7773cat >>conftest.$ac_ext <<_ACEOF
7774/* end confdefs.h. */
97b8365c 7775#include <X11/Xlib.h>
ed698112
NN
7776_ACEOF
7777if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7778 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7779 ac_status=$?
7780 grep -v '^ *+' conftest.er1 >conftest.err
7781 rm -f conftest.er1
7782 cat conftest.err >&5
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); } >/dev/null; then
7785 if test -s conftest.err; then
7786 ac_cpp_err=$ac_c_preproc_warn_flag
7787 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7788 else
7789 ac_cpp_err=
7790 fi
7791else
7792 ac_cpp_err=yes
7793fi
7794if test -z "$ac_cpp_err"; then
5aac1dac
TT
7795 # We can compile using X headers with no special include directory.
7796ac_x_includes=
7797else
ed698112
NN
7798 echo "$as_me: failed program was:" >&5
7799sed 's/^/| /' conftest.$ac_ext >&5
7800
7801 for ac_dir in $ac_x_header_dirs; do
97b8365c 7802 if test -r "$ac_dir/X11/Xlib.h"; then
ed698112
NN
7803 ac_x_includes=$ac_dir
7804 break
7805 fi
7806done
5aac1dac 7807fi
ed698112
NN
7808rm -f conftest.err conftest.$ac_ext
7809fi # $ac_x_includes = no
ee9dd372 7810
ed698112 7811if test "$ac_x_libraries" = no; then
5aac1dac 7812 # Check for the libraries.
5aac1dac
TT
7813 # See if we find them without any special options.
7814 # Don't add to $LIBS permanently.
ed698112
NN
7815 ac_save_LIBS=$LIBS
7816 LIBS="-lXt $LIBS"
7817 if test x$gcc_no_link = xyes; then
7818 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7819echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7820 { (exit 1); exit 1; }; }
7821fi
7822cat >conftest.$ac_ext <<_ACEOF
7823/* confdefs.h. */
7824_ACEOF
7825cat confdefs.h >>conftest.$ac_ext
7826cat >>conftest.$ac_ext <<_ACEOF
7827/* end confdefs.h. */
97b8365c 7828#include <X11/Xlib.h>
ed698112
NN
7829int
7830main ()
7831{
97b8365c 7832XrmInitialize ()
ed698112
NN
7833 ;
7834 return 0;
7835}
7836_ACEOF
7837rm -f conftest.$ac_objext conftest$ac_exeext
7838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7839 (eval $ac_link) 2>conftest.er1
7840 ac_status=$?
7841 grep -v '^ *+' conftest.er1 >conftest.err
7842 rm -f conftest.er1
7843 cat conftest.err >&5
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); } &&
ade710a5
TF
7846 { ac_try='test -z "$ac_c_werror_flag"
7847 || test ! -s conftest.err'
ed698112
NN
7848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7849 (eval $ac_try) 2>&5
7850 ac_status=$?
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); }; } &&
7853 { ac_try='test -s conftest$ac_exeext'
7854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7855 (eval $ac_try) 2>&5
7856 ac_status=$?
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); }; }; then
7859 LIBS=$ac_save_LIBS
5aac1dac
TT
7860# We can link X programs with no special library path.
7861ac_x_libraries=
7862else
ed698112
NN
7863 echo "$as_me: failed program was:" >&5
7864sed 's/^/| /' conftest.$ac_ext >&5
7865
ade710a5 7866LIBS=$ac_save_LIBS
ed698112 7867for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5aac1dac 7868do
ed698112 7869 # Don't even attempt the hair of trying to link an X program!
5aac1dac 7870 for ac_extension in a so sl; do
ade710a5 7871 if test -r $ac_dir/libXt.$ac_extension; then
5aac1dac
TT
7872 ac_x_libraries=$ac_dir
7873 break 2
7874 fi
7875 done
7876done
7877fi
ed698112
NN
7878rm -f conftest.err conftest.$ac_objext \
7879 conftest$ac_exeext conftest.$ac_ext
7880fi # $ac_x_libraries = no
ee9dd372 7881
ed698112 7882if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5aac1dac
TT
7883 # Didn't find X anywhere. Cache the known absence of X.
7884 ac_cv_have_x="have_x=no"
7885else
7886 # Record where we found X for the cache.
7887 ac_cv_have_x="have_x=yes \
ed698112 7888 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5aac1dac
TT
7889fi
7890fi
ed698112 7891
5aac1dac
TT
7892 fi
7893 eval "$ac_cv_have_x"
7894fi # $with_x != no
ee9dd372 7895
5aac1dac 7896if test "$have_x" != yes; then
ade710a5
TF
7897 echo "$as_me:$LINENO: result: $have_x" >&5
7898echo "${ECHO_T}$have_x" >&6
5aac1dac
TT
7899 no_x=yes
7900else
7901 # If each of the values was on the command line, it overrides each guess.
7902 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7903 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7904 # Update the cache value to reflect the command line values.
7905 ac_cv_have_x="have_x=yes \
7906 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
ade710a5
TF
7907 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7908echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5aac1dac 7909fi
f994389b 7910
5aac1dac
TT
7911if test "$no_x" = yes; then
7912 # Not all programs may use this symbol, but it does not hurt to define it.
ed698112
NN
7913
7914cat >>confdefs.h <<\_ACEOF
5aac1dac 7915#define X_DISPLAY_MISSING 1
ed698112 7916_ACEOF
ee9dd372 7917
5aac1dac
TT
7918 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7919else
7920 if test -n "$x_includes"; then
7921 X_CFLAGS="$X_CFLAGS -I$x_includes"
7922 fi
ee9dd372 7923
5aac1dac
TT
7924 # It would also be nice to do this for all -L options, not just this one.
7925 if test -n "$x_libraries"; then
7926 X_LIBS="$X_LIBS -L$x_libraries"
7927 # For Solaris; some versions of Sun CC require a space after -R and
7928 # others require no space. Words are not sufficient . . . .
ed698112 7929 case `(uname -sr) 2>/dev/null` in
5aac1dac 7930 "SunOS 5"*)
ade710a5
TF
7931 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7932echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
ed698112
NN
7933 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7934 if test x$gcc_no_link = xyes; then
7935 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7936echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7937 { (exit 1); exit 1; }; }
7938fi
7939cat >conftest.$ac_ext <<_ACEOF
7940/* confdefs.h. */
7941_ACEOF
7942cat confdefs.h >>conftest.$ac_ext
7943cat >>conftest.$ac_ext <<_ACEOF
7944/* end confdefs.h. */
7f6e0fe6 7945
ed698112
NN
7946int
7947main ()
7948{
7f6e0fe6 7949
ed698112
NN
7950 ;
7951 return 0;
7952}
7953_ACEOF
7954rm -f conftest.$ac_objext conftest$ac_exeext
7955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7956 (eval $ac_link) 2>conftest.er1
7957 ac_status=$?
7958 grep -v '^ *+' conftest.er1 >conftest.err
7959 rm -f conftest.er1
7960 cat conftest.err >&5
7961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962 (exit $ac_status); } &&
ade710a5
TF
7963 { ac_try='test -z "$ac_c_werror_flag"
7964 || test ! -s conftest.err'
ed698112
NN
7965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7966 (eval $ac_try) 2>&5
7967 ac_status=$?
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); }; } &&
7970 { ac_try='test -s conftest$ac_exeext'
7971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7972 (eval $ac_try) 2>&5
7973 ac_status=$?
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); }; }; then
5aac1dac
TT
7976 ac_R_nospace=yes
7977else
ed698112
NN
7978 echo "$as_me: failed program was:" >&5
7979sed 's/^/| /' conftest.$ac_ext >&5
7980
ade710a5 7981ac_R_nospace=no
5aac1dac 7982fi
ed698112
NN
7983rm -f conftest.err conftest.$ac_objext \
7984 conftest$ac_exeext conftest.$ac_ext
5aac1dac 7985 if test $ac_R_nospace = yes; then
ade710a5
TF
7986 echo "$as_me:$LINENO: result: no" >&5
7987echo "${ECHO_T}no" >&6
5aac1dac
TT
7988 X_LIBS="$X_LIBS -R$x_libraries"
7989 else
7990 LIBS="$ac_xsave_LIBS -R $x_libraries"
ed698112
NN
7991 if test x$gcc_no_link = xyes; then
7992 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7993echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7994 { (exit 1); exit 1; }; }
7995fi
7996cat >conftest.$ac_ext <<_ACEOF
7997/* confdefs.h. */
7998_ACEOF
7999cat confdefs.h >>conftest.$ac_ext
8000cat >>conftest.$ac_ext <<_ACEOF
8001/* end confdefs.h. */
7f6e0fe6 8002
ed698112
NN
8003int
8004main ()
8005{
ee9dd372 8006
ed698112
NN
8007 ;
8008 return 0;
8009}
8010_ACEOF
8011rm -f conftest.$ac_objext conftest$ac_exeext
8012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8013 (eval $ac_link) 2>conftest.er1
8014 ac_status=$?
8015 grep -v '^ *+' conftest.er1 >conftest.err
8016 rm -f conftest.er1
8017 cat conftest.err >&5
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); } &&
ade710a5
TF
8020 { ac_try='test -z "$ac_c_werror_flag"
8021 || test ! -s conftest.err'
ed698112
NN
8022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8023 (eval $ac_try) 2>&5
8024 ac_status=$?
8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026 (exit $ac_status); }; } &&
8027 { ac_try='test -s conftest$ac_exeext'
8028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8029 (eval $ac_try) 2>&5
8030 ac_status=$?
8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); }; }; then
5aac1dac
TT
8033 ac_R_space=yes
8034else
ed698112
NN
8035 echo "$as_me: failed program was:" >&5
8036sed 's/^/| /' conftest.$ac_ext >&5
8037
ade710a5 8038ac_R_space=no
5aac1dac 8039fi
ed698112
NN
8040rm -f conftest.err conftest.$ac_objext \
8041 conftest$ac_exeext conftest.$ac_ext
5aac1dac 8042 if test $ac_R_space = yes; then
ade710a5
TF
8043 echo "$as_me:$LINENO: result: yes" >&5
8044echo "${ECHO_T}yes" >&6
5aac1dac
TT
8045 X_LIBS="$X_LIBS -R $x_libraries"
8046 else
ade710a5
TF
8047 echo "$as_me:$LINENO: result: neither works" >&5
8048echo "${ECHO_T}neither works" >&6
5aac1dac
TT
8049 fi
8050 fi
ed698112 8051 LIBS=$ac_xsave_LIBS
5aac1dac
TT
8052 esac
8053 fi
ee9dd372 8054
5aac1dac
TT
8055 # Check for system-dependent libraries X programs must link with.
8056 # Do this before checking for the system-independent R6 libraries
8057 # (-lICE), since we may need -lsocket or whatever for X linking.
ee9dd372 8058
5aac1dac
TT
8059 if test "$ISC" = yes; then
8060 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8061 else
ed698112
NN
8062 # Martyn Johnson says this is needed for Ultrix, if the X
8063 # libraries were built with DECnet support. And Karl Berry says
5aac1dac 8064 # the Alpha needs dnet_stub (dnet does not exist).
ed698112
NN
8065 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8066 if test x$gcc_no_link = xyes; then
8067 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8068echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8069 { (exit 1); exit 1; }; }
8070fi
8071cat >conftest.$ac_ext <<_ACEOF
8072/* confdefs.h. */
8073_ACEOF
8074cat confdefs.h >>conftest.$ac_ext
8075cat >>conftest.$ac_ext <<_ACEOF
8076/* end confdefs.h. */
8077
ade710a5 8078/* Override any gcc2 internal prototype to avoid an error. */
ed698112
NN
8079#ifdef __cplusplus
8080extern "C"
8081#endif
ade710a5
TF
8082/* We use char because int might match the return type of a gcc2
8083 builtin and then its argument prototype would still apply. */
ed698112
NN
8084char XOpenDisplay ();
8085int
8086main ()
8087{
ade710a5 8088XOpenDisplay ();
ed698112
NN
8089 ;
8090 return 0;
8091}
8092_ACEOF
8093rm -f conftest.$ac_objext conftest$ac_exeext
8094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8095 (eval $ac_link) 2>conftest.er1
8096 ac_status=$?
8097 grep -v '^ *+' conftest.er1 >conftest.err
8098 rm -f conftest.er1
8099 cat conftest.err >&5
8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101 (exit $ac_status); } &&
ade710a5
TF
8102 { ac_try='test -z "$ac_c_werror_flag"
8103 || test ! -s conftest.err'
ed698112
NN
8104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8105 (eval $ac_try) 2>&5
8106 ac_status=$?
8107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108 (exit $ac_status); }; } &&
8109 { ac_try='test -s conftest$ac_exeext'
8110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8111 (eval $ac_try) 2>&5
8112 ac_status=$?
8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114 (exit $ac_status); }; }; then
8115 :
8116else
8117 echo "$as_me: failed program was:" >&5
8118sed 's/^/| /' conftest.$ac_ext >&5
ee9dd372 8119
ade710a5
TF
8120echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8121echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
ed698112
NN
8122if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8123 echo $ECHO_N "(cached) $ECHO_C" >&6
5aac1dac 8124else
ed698112
NN
8125 ac_check_lib_save_LIBS=$LIBS
8126LIBS="-ldnet $LIBS"
8127if test x$gcc_no_link = xyes; then
8128 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8129echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8130 { (exit 1); exit 1; }; }
8131fi
8132cat >conftest.$ac_ext <<_ACEOF
8133/* confdefs.h. */
8134_ACEOF
8135cat confdefs.h >>conftest.$ac_ext
8136cat >>conftest.$ac_ext <<_ACEOF
8137/* end confdefs.h. */
45597167 8138
ade710a5 8139/* Override any gcc2 internal prototype to avoid an error. */
ed698112
NN
8140#ifdef __cplusplus
8141extern "C"
8142#endif
ade710a5
TF
8143/* We use char because int might match the return type of a gcc2
8144 builtin and then its argument prototype would still apply. */
ed698112
NN
8145char dnet_ntoa ();
8146int
8147main ()
8148{
ade710a5 8149dnet_ntoa ();
ed698112
NN
8150 ;
8151 return 0;
8152}
8153_ACEOF
8154rm -f conftest.$ac_objext conftest$ac_exeext
8155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8156 (eval $ac_link) 2>conftest.er1
8157 ac_status=$?
8158 grep -v '^ *+' conftest.er1 >conftest.err
8159 rm -f conftest.er1
8160 cat conftest.err >&5
8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); } &&
ade710a5
TF
8163 { ac_try='test -z "$ac_c_werror_flag"
8164 || test ! -s conftest.err'
ed698112
NN
8165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8166 (eval $ac_try) 2>&5
8167 ac_status=$?
8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 (exit $ac_status); }; } &&
8170 { ac_try='test -s conftest$ac_exeext'
8171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8172 (eval $ac_try) 2>&5
8173 ac_status=$?
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); }; }; then
8176 ac_cv_lib_dnet_dnet_ntoa=yes
8177else
8178 echo "$as_me: failed program was:" >&5
8179sed 's/^/| /' conftest.$ac_ext >&5
8180
ade710a5 8181ac_cv_lib_dnet_dnet_ntoa=no
ed698112
NN
8182fi
8183rm -f conftest.err conftest.$ac_objext \
8184 conftest$ac_exeext conftest.$ac_ext
8185LIBS=$ac_check_lib_save_LIBS
8186fi
ade710a5
TF
8187echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8188echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
ed698112 8189if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5aac1dac 8190 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5aac1dac 8191fi
45597167 8192
5aac1dac 8193 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
ade710a5
TF
8194 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8195echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
ed698112
NN
8196if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8197 echo $ECHO_N "(cached) $ECHO_C" >&6
5aac1dac 8198else
ed698112 8199 ac_check_lib_save_LIBS=$LIBS
5aac1dac 8200LIBS="-ldnet_stub $LIBS"
ed698112
NN
8201if test x$gcc_no_link = xyes; then
8202 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8203echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8204 { (exit 1); exit 1; }; }
8205fi
8206cat >conftest.$ac_ext <<_ACEOF
8207/* confdefs.h. */
8208_ACEOF
8209cat confdefs.h >>conftest.$ac_ext
8210cat >>conftest.$ac_ext <<_ACEOF
8211/* end confdefs.h. */
8212
ade710a5 8213/* Override any gcc2 internal prototype to avoid an error. */
ed698112
NN
8214#ifdef __cplusplus
8215extern "C"
8216#endif
ade710a5
TF
8217/* We use char because int might match the return type of a gcc2
8218 builtin and then its argument prototype would still apply. */
ed698112
NN
8219char dnet_ntoa ();
8220int
8221main ()
8222{
ade710a5 8223dnet_ntoa ();
ed698112
NN
8224 ;
8225 return 0;
8226}
8227_ACEOF
8228rm -f conftest.$ac_objext conftest$ac_exeext
8229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8230 (eval $ac_link) 2>conftest.er1
8231 ac_status=$?
8232 grep -v '^ *+' conftest.er1 >conftest.err
8233 rm -f conftest.er1
8234 cat conftest.err >&5
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); } &&
ade710a5
TF
8237 { ac_try='test -z "$ac_c_werror_flag"
8238 || test ! -s conftest.err'
ed698112
NN
8239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8240 (eval $ac_try) 2>&5
8241 ac_status=$?
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); }; } &&
8244 { ac_try='test -s conftest$ac_exeext'
8245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8246 (eval $ac_try) 2>&5
8247 ac_status=$?
8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249 (exit $ac_status); }; }; then
8250 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8251else
8252 echo "$as_me: failed program was:" >&5
8253sed 's/^/| /' conftest.$ac_ext >&5
8254
ade710a5 8255ac_cv_lib_dnet_stub_dnet_ntoa=no
ed698112
NN
8256fi
8257rm -f conftest.err conftest.$ac_objext \
8258 conftest$ac_exeext conftest.$ac_ext
8259LIBS=$ac_check_lib_save_LIBS
8260fi
ade710a5
TF
8261echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8262echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
ed698112 8263if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5aac1dac 8264 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
cf6b8de4
TT
8265fi
8266
5aac1dac 8267 fi
ed698112
NN
8268fi
8269rm -f conftest.err conftest.$ac_objext \
8270 conftest$ac_exeext conftest.$ac_ext
8271 LIBS="$ac_xsave_LIBS"
cf6b8de4 8272
5aac1dac
TT
8273 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8274 # to get the SysV transport functions.
ed698112 8275 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5aac1dac
TT
8276 # needs -lnsl.
8277 # The nsl library prevents programs from opening the X display
ed698112
NN
8278 # on Irix 5.2, according to T.E. Dickey.
8279 # The functions gethostbyname, getservbyname, and inet_addr are
8280 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
ade710a5
TF
8281 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8282echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
ed698112
NN
8283if test "${ac_cv_func_gethostbyname+set}" = set; then
8284 echo $ECHO_N "(cached) $ECHO_C" >&6
8285else
8286 if test x$gcc_no_link = xyes; then
8287 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8288echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8289 { (exit 1); exit 1; }; }
8290fi
8291cat >conftest.$ac_ext <<_ACEOF
8292/* confdefs.h. */
8293_ACEOF
8294cat confdefs.h >>conftest.$ac_ext
8295cat >>conftest.$ac_ext <<_ACEOF
8296/* end confdefs.h. */
8297/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
8298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8299#define gethostbyname innocuous_gethostbyname
8300
ee9dd372 8301/* System header to define __stub macros and hopefully few prototypes,
ed698112
NN
8302 which can conflict with char gethostbyname (); below.
8303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8304 <limits.h> exists even on freestanding compilers. */
8305
8306#ifdef __STDC__
8307# include <limits.h>
8308#else
8309# include <assert.h>
8310#endif
ee9dd372 8311
ed698112 8312#undef gethostbyname
ee9dd372 8313
ade710a5 8314/* Override any gcc2 internal prototype to avoid an error. */
ed698112
NN
8315#ifdef __cplusplus
8316extern "C"
ade710a5 8317{
ed698112 8318#endif
ade710a5
TF
8319/* We use char because int might match the return type of a gcc2
8320 builtin and then its argument prototype would still apply. */
ed698112 8321char gethostbyname ();
ee9dd372
TT
8322/* The GNU C library defines this for functions which it implements
8323 to always fail with ENOSYS. Some functions are actually named
8324 something starting with __ and the normal name is an alias. */
ade710a5 8325#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
ee9dd372 8326choke me
ade710a5
TF
8327#else
8328char (*f) () = gethostbyname;
8329#endif
8330#ifdef __cplusplus
8331}
ee9dd372
TT
8332#endif
8333
ed698112
NN
8334int
8335main ()
8336{
ade710a5 8337return f != gethostbyname;
ed698112
NN
8338 ;
8339 return 0;
8340}
8341_ACEOF
8342rm -f conftest.$ac_objext conftest$ac_exeext
8343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8344 (eval $ac_link) 2>conftest.er1
8345 ac_status=$?
8346 grep -v '^ *+' conftest.er1 >conftest.err
8347 rm -f conftest.er1
8348 cat conftest.err >&5
8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); } &&
ade710a5
TF
8351 { ac_try='test -z "$ac_c_werror_flag"
8352 || test ! -s conftest.err'
ed698112
NN
8353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8354 (eval $ac_try) 2>&5
8355 ac_status=$?
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); }; } &&
8358 { ac_try='test -s conftest$ac_exeext'
8359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8360 (eval $ac_try) 2>&5
8361 ac_status=$?
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); }; }; then
8364 ac_cv_func_gethostbyname=yes
8365else
8366 echo "$as_me: failed program was:" >&5
8367sed 's/^/| /' conftest.$ac_ext >&5
8368
ade710a5 8369ac_cv_func_gethostbyname=no
ed698112
NN
8370fi
8371rm -f conftest.err conftest.$ac_objext \
8372 conftest$ac_exeext conftest.$ac_ext
8373fi
ade710a5
TF
8374echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8375echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
ee9dd372 8376
5aac1dac 8377 if test $ac_cv_func_gethostbyname = no; then
ade710a5
TF
8378 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8379echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
ed698112
NN
8380if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8381 echo $ECHO_N "(cached) $ECHO_C" >&6
fe5e3b97 8382else
ed698112 8383 ac_check_lib_save_LIBS=$LIBS
5aac1dac 8384LIBS="-lnsl $LIBS"
ed698112
NN
8385if test x$gcc_no_link = xyes; then
8386 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8387echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8388 { (exit 1); exit 1; }; }
8389fi
8390cat >conftest.$ac_ext <<_ACEOF
8391/* confdefs.h. */
8392_ACEOF
8393cat confdefs.h >>conftest.$ac_ext
8394cat >>conftest.$ac_ext <<_ACEOF
8395/* end confdefs.h. */
8396
ade710a5 8397/* Override any gcc2 internal prototype to avoid an error. */
ed698112
NN
8398#ifdef __cplusplus
8399extern "C"
8400#endif
ade710a5
TF
8401/* We use char because int might match the return type of a gcc2
8402 builtin and then its argument prototype would still apply. */
ed698112
NN
8403char gethostbyname ();
8404int
8405main ()
8406{
ade710a5 8407gethostbyname ();
ed698112
NN
8408 ;
8409 return 0;
8410}
8411_ACEOF
8412rm -f conftest.$ac_objext conftest$ac_exeext
8413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8414 (eval $ac_link) 2>conftest.er1
8415 ac_status=$?
8416 grep -v '^ *+' conftest.er1 >conftest.err
8417 rm -f conftest.er1
8418 cat conftest.err >&5
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); } &&
ade710a5
TF
8421 { ac_try='test -z "$ac_c_werror_flag"
8422 || test ! -s conftest.err'
ed698112
NN
8423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8424 (eval $ac_try) 2>&5
8425 ac_status=$?
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); }; } &&
8428 { ac_try='test -s conftest$ac_exeext'
8429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8430 (eval $ac_try) 2>&5
8431 ac_status=$?
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); }; }; then
8434 ac_cv_lib_nsl_gethostbyname=yes
8435else
8436 echo "$as_me: failed program was:" >&5
8437sed 's/^/| /' conftest.$ac_ext >&5
8438
ade710a5 8439ac_cv_lib_nsl_gethostbyname=no
ed698112
NN
8440fi
8441rm -f conftest.err conftest.$ac_objext \
8442 conftest$ac_exeext conftest.$ac_ext
8443LIBS=$ac_check_lib_save_LIBS
8444fi
ade710a5
TF
8445echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8446echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
ed698112
NN
8447if test $ac_cv_lib_nsl_gethostbyname = yes; then
8448 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8449fi
fe5e3b97 8450
ed698112 8451 if test $ac_cv_lib_nsl_gethostbyname = no; then
ade710a5
TF
8452 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8453echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
ed698112
NN
8454if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8455 echo $ECHO_N "(cached) $ECHO_C" >&6
fe5e3b97 8456else
ed698112
NN
8457 ac_check_lib_save_LIBS=$LIBS
8458LIBS="-lbsd $LIBS"
8459if test x$gcc_no_link = xyes; then
8460 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8461echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8462 { (exit 1); exit 1; }; }
fe5e3b97 8463fi
ed698112
NN
8464cat >conftest.$ac_ext <<_ACEOF
8465/* confdefs.h. */
8466_ACEOF
8467cat confdefs.h >>conftest.$ac_ext
8468cat >>conftest.$ac_ext <<_ACEOF
8469/* end confdefs.h. */
fe5e3b97 8470
ade710a5 8471/* Override any gcc2 internal prototype to avoid an error. */
ed698112
NN
8472#ifdef __cplusplus
8473extern "C"
8474#endif
ade710a5
TF
8475/* We use char because int might match the return type of a gcc2
8476 builtin and then its argument prototype would still apply. */
ed698112
NN
8477char gethostbyname ();
8478int
8479main ()
8480{
ade710a5 8481gethostbyname ();
ed698112
NN
8482 ;
8483 return 0;
8484}
8485_ACEOF
8486rm -f conftest.$ac_objext conftest$ac_exeext
8487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8488 (eval $ac_link) 2>conftest.er1
8489 ac_status=$?
8490 grep -v '^ *+' conftest.er1 >conftest.err
8491 rm -f conftest.er1
8492 cat conftest.err >&5
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); } &&
ade710a5
TF
8495 { ac_try='test -z "$ac_c_werror_flag"
8496 || test ! -s conftest.err'
ed698112
NN
8497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8498 (eval $ac_try) 2>&5
8499 ac_status=$?
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); }; } &&
8502 { ac_try='test -s conftest$ac_exeext'
8503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8504 (eval $ac_try) 2>&5
8505 ac_status=$?
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); }; }; then
8508 ac_cv_lib_bsd_gethostbyname=yes
8509else
8510 echo "$as_me: failed program was:" >&5
8511sed 's/^/| /' conftest.$ac_ext >&5
8512
ade710a5 8513ac_cv_lib_bsd_gethostbyname=no
ed698112
NN
8514fi
8515rm -f conftest.err conftest.$ac_objext \
8516 conftest$ac_exeext conftest.$ac_ext
8517LIBS=$ac_check_lib_save_LIBS
8518fi
ade710a5
TF
8519echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8520echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
ed698112
NN
8521if test $ac_cv_lib_bsd_gethostbyname = yes; then
8522 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
fe5e3b97 8523fi
fe5e3b97 8524
ed698112 8525 fi
5aac1dac
TT
8526 fi
8527
8528 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8529 # socket/setsockopt and other routines are undefined under SCO ODT
8530 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
ed698112
NN
8531 # on later versions), says Simon Leinen: it contains gethostby*
8532 # variants that don't use the name server (or something). -lsocket
8533 # must be given before -lnsl if both are needed. We assume that
8534 # if connect needs -lnsl, so does gethostbyname.
ade710a5
TF
8535 echo "$as_me:$LINENO: checking for connect" >&5
8536echo $ECHO_N "checking for connect... $ECHO_C" >&6
ed698112
NN
8537if test "${ac_cv_func_connect+set}" = set; then
8538 echo $ECHO_N "(cached) $ECHO_C" >&6
8539else
8540 if test x$gcc_no_link = xyes; then
8541 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8542echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8543 { (exit 1); exit 1; }; }
8544fi
8545cat >conftest.$ac_ext <<_ACEOF
8546/* confdefs.h. */
8547_ACEOF
8548cat confdefs.h >>conftest.$ac_ext
8549cat >>conftest.$ac_ext <<_ACEOF
8550/* end confdefs.h. */
8551/* Define connect to an innocuous variant, in case <limits.h> declares connect.
8552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8553#define connect innocuous_connect
8554
ee9dd372 8555/* System header to define __stub macros and hopefully few prototypes,
ed698112
NN
8556 which can conflict with char connect (); below.
8557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8558 <limits.h> exists even on freestanding compilers. */
8559
8560#ifdef __STDC__
8561# include <limits.h>
8562#else
8563# include <assert.h>
8564#endif
ee9dd372 8565
ed698112 8566#undef connect
ee9dd372 8567
ade710a5 8568/* Override any gcc2 internal prototype to avoid an error. */
ed698112
NN
8569#ifdef __cplusplus
8570extern "C"
ade710a5 8571{
ed698112 8572#endif
ade710a5
TF
8573/* We use char because int might match the return type of a gcc2
8574 builtin and then its argument prototype would still apply. */
ed698112 8575char connect ();
ee9dd372
TT
8576/* The GNU C library defines this for functions which it implements
8577 to always fail with ENOSYS. Some functions are actually named
8578 something starting with __ and the normal name is an alias. */
ade710a5 8579#if defined (__stub_connect) || defined (__stub___connect)
ee9dd372 8580choke me
ade710a5
TF
8581#else
8582char (*f) () = connect;
8583#endif
8584#ifdef __cplusplus
8585}
ee9dd372
TT
8586#endif
8587
ed698112
NN
8588int
8589main ()
8590{
ade710a5 8591return f != connect;
ed698112
NN
8592 ;
8593 return 0;
8594}
8595_ACEOF
8596rm -f conftest.$ac_objext conftest$ac_exeext
8597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8598 (eval $ac_link) 2>conftest.er1
8599 ac_status=$?
8600 grep -v '^ *+' conftest.er1 >conftest.err
8601 rm -f conftest.er1
8602 cat conftest.err >&5
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); } &&
ade710a5
TF
8605 { ac_try='test -z "$ac_c_werror_flag"
8606 || test ! -s conftest.err'
ed698112
NN
8607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8608 (eval $ac_try) 2>&5
8609 ac_status=$?
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); }; } &&
8612 { ac_try='test -s conftest$ac_exeext'
8613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8614 (eval $ac_try) 2>&5
8615 ac_status=$?
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); }; }; then
8618 ac_cv_func_connect=yes
8619else
8620 echo "$as_me: failed program was:" >&5
8621sed 's/^/| /' conftest.$ac_ext >&5
8622
ade710a5 8623ac_cv_func_connect=no
ed698112
NN
8624fi
8625rm -f conftest.err conftest.$ac_objext \
8626 conftest$ac_exeext conftest.$ac_ext
8627fi
ade710a5
TF
8628echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8629echo "${ECHO_T}$ac_cv_func_connect" >&6
ee9dd372 8630
5aac1dac 8631 if test $ac_cv_func_connect = no; then
ade710a5
TF
8632 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8633echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
ed698112
NN
8634if test "${ac_cv_lib_socket_connect+set}" = set; then
8635 echo $ECHO_N "(cached) $ECHO_C" >&6
ee9dd372 8636else
ed698112 8637 ac_check_lib_save_LIBS=$LIBS
5aac1dac 8638LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
ed698112
NN
8639if test x$gcc_no_link = xyes; then
8640 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8641echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8642 { (exit 1); exit 1; }; }
8643fi
8644cat >conftest.$ac_ext <<_ACEOF
8645/* confdefs.h. */
8646_ACEOF
8647cat confdefs.h >>conftest.$ac_ext
8648cat >>conftest.$ac_ext <<_ACEOF
8649/* end confdefs.h. */
8650
ade710a5 8651/* Override any gcc2 internal prototype to avoid an error. */
ed698112
NN
8652#ifdef __cplusplus
8653extern "C"
8654#endif
ade710a5
TF
8655/* We use char because int might match the return type of a gcc2
8656 builtin and then its argument prototype would still apply. */
ed698112
NN
8657char connect ();
8658int
8659main ()
8660{
ade710a5 8661connect ();
ed698112
NN
8662 ;
8663 return 0;
8664}
8665_ACEOF
8666rm -f conftest.$ac_objext conftest$ac_exeext
8667if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8668 (eval $ac_link) 2>conftest.er1
8669 ac_status=$?
8670 grep -v '^ *+' conftest.er1 >conftest.err
8671 rm -f conftest.er1
8672 cat conftest.err >&5
8673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); } &&
ade710a5
TF
8675 { ac_try='test -z "$ac_c_werror_flag"
8676 || test ! -s conftest.err'
ed698112
NN
8677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8678 (eval $ac_try) 2>&5
8679 ac_status=$?
8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 (exit $ac_status); }; } &&
8682 { ac_try='test -s conftest$ac_exeext'
8683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8684 (eval $ac_try) 2>&5
8685 ac_status=$?
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); }; }; then
8688 ac_cv_lib_socket_connect=yes
8689else
8690 echo "$as_me: failed program was:" >&5
8691sed 's/^/| /' conftest.$ac_ext >&5
8692
ade710a5 8693ac_cv_lib_socket_connect=no
ed698112
NN
8694fi
8695rm -f conftest.err conftest.$ac_objext \
8696 conftest$ac_exeext conftest.$ac_ext
8697LIBS=$ac_check_lib_save_LIBS
8698fi
ade710a5
TF
8699echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8700echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
ed698112 8701if test $ac_cv_lib_socket_connect = yes; then
5aac1dac 8702 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
ee9dd372 8703fi
ee9dd372 8704
5aac1dac
TT
8705 fi
8706
ed698112 8707 # Guillermo Gomez says -lposix is necessary on A/UX.
ade710a5
TF
8708 echo "$as_me:$LINENO: checking for remove" >&5
8709echo $ECHO_N "checking for remove... $ECHO_C" >&6
ed698112
NN
8710if test "${ac_cv_func_remove+set}" = set; then
8711 echo $ECHO_N "(cached) $ECHO_C" >&6
8712else
8713 if test x$gcc_no_link = xyes; then
8714 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8715echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8716 { (exit 1); exit 1; }; }
8717fi
8718cat >conftest.$ac_ext <<_ACEOF
8719/* confdefs.h. */
8720_ACEOF
8721cat confdefs.h >>conftest.$ac_ext
8722cat >>conftest.$ac_ext <<_ACEOF
8723/* end confdefs.h. */
8724/* Define remove to an innocuous variant, in case <limits.h> declares remove.
8725 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8726#define remove innocuous_remove
8727
ee9dd372 8728/* System header to define __stub macros and hopefully few prototypes,
ed698112
NN
8729 which can conflict with char remove (); below.
8730 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8731 <limits.h> exists even on freestanding compilers. */
8732
8733#ifdef __STDC__
8734# include <limits.h>
8735#else
8736# include <assert.h>
8737#endif
ee9dd372 8738
ed698112 8739#undef remove
ee9dd372 8740
ade710a5 8741/* Override any gcc2 internal prototype to avoid an error. */
ed698112
NN
8742#ifdef __cplusplus
8743extern "C"
ade710a5 8744{
ed698112 8745#endif
ade710a5
TF
8746/* We use char because int might match the return type of a gcc2
8747 builtin and then its argument prototype would still apply. */
ed698112 8748char remove ();
ee9dd372
TT
8749/* The GNU C library defines this for functions which it implements
8750 to always fail with ENOSYS. Some functions are actually named
8751 something starting with __ and the normal name is an alias. */
ade710a5 8752#if defined (__stub_remove) || defined (__stub___remove)
ee9dd372 8753choke me
ade710a5
TF
8754#else
8755char (*f) () = remove;
8756#endif
8757#ifdef __cplusplus
8758}
ee9dd372
TT
8759#endif
8760
ed698112
NN
8761int
8762main ()
8763{
ade710a5 8764return f != remove;
ed698112
NN
8765 ;
8766 return 0;
8767}
8768_ACEOF
8769rm -f conftest.$ac_objext conftest$ac_exeext
8770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8771 (eval $ac_link) 2>conftest.er1
8772 ac_status=$?
8773 grep -v '^ *+' conftest.er1 >conftest.err
8774 rm -f conftest.er1
8775 cat conftest.err >&5
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); } &&
ade710a5
TF
8778 { ac_try='test -z "$ac_c_werror_flag"
8779 || test ! -s conftest.err'
ed698112
NN
8780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8781 (eval $ac_try) 2>&5
8782 ac_status=$?
8783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784 (exit $ac_status); }; } &&
8785 { ac_try='test -s conftest$ac_exeext'
8786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8787 (eval $ac_try) 2>&5
8788 ac_status=$?
8789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790 (exit $ac_status); }; }; then
8791 ac_cv_func_remove=yes
8792else
8793 echo "$as_me: failed program was:" >&5
8794sed 's/^/| /' conftest.$ac_ext >&5
8795
ade710a5 8796ac_cv_func_remove=no
ed698112
NN
8797fi
8798rm -f conftest.err conftest.$ac_objext \
8799 conftest$ac_exeext conftest.$ac_ext
8800fi
ade710a5
TF
8801echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8802echo "${ECHO_T}$ac_cv_func_remove" >&6
ee9dd372 8803
5aac1dac 8804 if test $ac_cv_func_remove = no; then
ade710a5
TF
8805 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8806echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
ed698112
NN
8807if test "${ac_cv_lib_posix_remove+set}" = set; then
8808 echo $ECHO_N "(cached) $ECHO_C" >&6
ee9dd372 8809else
ed698112 8810 ac_check_lib_save_LIBS=$LIBS
5aac1dac 8811LIBS="-lposix $LIBS"
ed698112
NN
8812if test x$gcc_no_link = xyes; then
8813 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8814echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8815 { (exit 1); exit 1; }; }
8816fi
8817cat >conftest.$ac_ext <<_ACEOF
8818/* confdefs.h. */
8819_ACEOF
8820cat confdefs.h >>conftest.$ac_ext
8821cat >>conftest.$ac_ext <<_ACEOF
8822/* end confdefs.h. */
8823
ade710a5 8824/* Override any gcc2 internal prototype to avoid an error. */
ed698112
NN
8825#ifdef __cplusplus
8826extern "C"
8827#endif
ade710a5
TF
8828/* We use char because int might match the return type of a gcc2
8829 builtin and then its argument prototype would still apply. */
ed698112
NN
8830char remove ();
8831int
8832main ()
8833{
ade710a5 8834remove ();
ed698112
NN
8835 ;
8836 return 0;
8837}
8838_ACEOF
8839rm -f conftest.$ac_objext conftest$ac_exeext
8840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8841 (eval $ac_link) 2>conftest.er1
8842 ac_status=$?
8843 grep -v '^ *+' conftest.er1 >conftest.err
8844 rm -f conftest.er1
8845 cat conftest.err >&5
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); } &&
ade710a5
TF
8848 { ac_try='test -z "$ac_c_werror_flag"
8849 || test ! -s conftest.err'
ed698112
NN
8850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8851 (eval $ac_try) 2>&5
8852 ac_status=$?
8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 (exit $ac_status); }; } &&
8855 { ac_try='test -s conftest$ac_exeext'
8856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8857 (eval $ac_try) 2>&5
8858 ac_status=$?
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); }; }; then
8861 ac_cv_lib_posix_remove=yes
8862else
8863 echo "$as_me: failed program was:" >&5
8864sed 's/^/| /' conftest.$ac_ext >&5
8865
ade710a5 8866ac_cv_lib_posix_remove=no
ed698112
NN
8867fi
8868rm -f conftest.err conftest.$ac_objext \
8869 conftest$ac_exeext conftest.$ac_ext
8870LIBS=$ac_check_lib_save_LIBS
8871fi
ade710a5
TF
8872echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8873echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
ed698112 8874if test $ac_cv_lib_posix_remove = yes; then
5aac1dac 8875 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
ee9dd372 8876fi
ee9dd372 8877
5aac1dac
TT
8878 fi
8879
8880 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
ade710a5
TF
8881 echo "$as_me:$LINENO: checking for shmat" >&5
8882echo $ECHO_N "checking for shmat... $ECHO_C" >&6
ed698112
NN
8883if test "${ac_cv_func_shmat+set}" = set; then
8884 echo $ECHO_N "(cached) $ECHO_C" >&6
8885else
8886 if test x$gcc_no_link = xyes; then
8887 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8888echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8889 { (exit 1); exit 1; }; }
8890fi
8891cat >conftest.$ac_ext <<_ACEOF
8892/* confdefs.h. */
8893_ACEOF
8894cat confdefs.h >>conftest.$ac_ext
8895cat >>conftest.$ac_ext <<_ACEOF
8896/* end confdefs.h. */
8897/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
8898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8899#define shmat innocuous_shmat
8900
283a159f 8901/* System header to define __stub macros and hopefully few prototypes,
ed698112
NN
8902 which can conflict with char shmat (); below.
8903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8904 <limits.h> exists even on freestanding compilers. */
283a159f 8905
ed698112
NN
8906#ifdef __STDC__
8907# include <limits.h>
8908#else
8909# include <assert.h>
8910#endif
283a159f 8911
ed698112
NN
8912#undef shmat
8913
ade710a5 8914/* Override any gcc2 internal prototype to avoid an error. */
ed698112
NN
8915#ifdef __cplusplus
8916extern "C"
ade710a5 8917{
ed698112 8918#endif
ade710a5
TF
8919/* We use char because int might match the return type of a gcc2
8920 builtin and then its argument prototype would still apply. */
ed698112 8921char shmat ();
283a159f
AH
8922/* The GNU C library defines this for functions which it implements
8923 to always fail with ENOSYS. Some functions are actually named
8924 something starting with __ and the normal name is an alias. */
ade710a5 8925#if defined (__stub_shmat) || defined (__stub___shmat)
283a159f 8926choke me
ade710a5
TF
8927#else
8928char (*f) () = shmat;
8929#endif
8930#ifdef __cplusplus
8931}
283a159f
AH
8932#endif
8933
ed698112
NN
8934int
8935main ()
8936{
ade710a5 8937return f != shmat;
ed698112
NN
8938 ;
8939 return 0;
8940}
8941_ACEOF
8942rm -f conftest.$ac_objext conftest$ac_exeext
8943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8944 (eval $ac_link) 2>conftest.er1
8945 ac_status=$?
8946 grep -v '^ *+' conftest.er1 >conftest.err
8947 rm -f conftest.er1
8948 cat conftest.err >&5
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); } &&
ade710a5
TF
8951 { ac_try='test -z "$ac_c_werror_flag"
8952 || test ! -s conftest.err'
ed698112
NN
8953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8954 (eval $ac_try) 2>&5
8955 ac_status=$?
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); }; } &&
8958 { ac_try='test -s conftest$ac_exeext'
8959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8960 (eval $ac_try) 2>&5
8961 ac_status=$?
8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 (exit $ac_status); }; }; then
8964 ac_cv_func_shmat=yes
8965else
8966 echo "$as_me: failed program was:" >&5
8967sed 's/^/| /' conftest.$ac_ext >&5
8968
ade710a5 8969ac_cv_func_shmat=no
ed698112
NN
8970fi
8971rm -f conftest.err conftest.$ac_objext \
8972 conftest$ac_exeext conftest.$ac_ext
8973fi
ade710a5
TF
8974echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8975echo "${ECHO_T}$ac_cv_func_shmat" >&6
283a159f 8976
5aac1dac 8977 if test $ac_cv_func_shmat = no; then
ade710a5
TF
8978 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8979echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
ed698112
NN
8980if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8981 echo $ECHO_N "(cached) $ECHO_C" >&6
283a159f 8982else
ed698112 8983 ac_check_lib_save_LIBS=$LIBS
5aac1dac 8984LIBS="-lipc $LIBS"
ed698112
NN
8985if test x$gcc_no_link = xyes; then
8986 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8987echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8988 { (exit 1); exit 1; }; }
8989fi
8990cat >conftest.$ac_ext <<_ACEOF
8991/* confdefs.h. */
8992_ACEOF
8993cat confdefs.h >>conftest.$ac_ext
8994cat >>conftest.$ac_ext <<_ACEOF
8995/* end confdefs.h. */
8996
ade710a5 8997/* Override any gcc2 internal prototype to avoid an error. */
ed698112
NN
8998#ifdef __cplusplus
8999extern "C"
9000#endif
ade710a5
TF
9001/* We use char because int might match the return type of a gcc2
9002 builtin and then its argument prototype would still apply. */
ed698112
NN
9003char shmat ();
9004int
9005main ()
9006{
ade710a5 9007shmat ();
ed698112
NN
9008 ;
9009 return 0;
9010}
9011_ACEOF
9012rm -f conftest.$ac_objext conftest$ac_exeext
9013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9014 (eval $ac_link) 2>conftest.er1
9015 ac_status=$?
9016 grep -v '^ *+' conftest.er1 >conftest.err
9017 rm -f conftest.er1
9018 cat conftest.err >&5
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); } &&
ade710a5
TF
9021 { ac_try='test -z "$ac_c_werror_flag"
9022 || test ! -s conftest.err'
ed698112
NN
9023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9024 (eval $ac_try) 2>&5
9025 ac_status=$?
9026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027 (exit $ac_status); }; } &&
9028 { ac_try='test -s conftest$ac_exeext'
9029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9030 (eval $ac_try) 2>&5
9031 ac_status=$?
9032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033 (exit $ac_status); }; }; then
9034 ac_cv_lib_ipc_shmat=yes
9035else
9036 echo "$as_me: failed program was:" >&5
9037sed 's/^/| /' conftest.$ac_ext >&5
9038
ade710a5 9039ac_cv_lib_ipc_shmat=no
ed698112
NN
9040fi
9041rm -f conftest.err conftest.$ac_objext \
9042 conftest$ac_exeext conftest.$ac_ext
9043LIBS=$ac_check_lib_save_LIBS
9044fi
ade710a5
TF
9045echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9046echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
ed698112 9047if test $ac_cv_lib_ipc_shmat = yes; then
5aac1dac 9048 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
283a159f 9049fi
5aac1dac
TT
9050
9051 fi
9052 fi
9053
9054 # Check for libraries that X11R6 Xt/Xaw programs need.
ed698112 9055 ac_save_LDFLAGS=$LDFLAGS
5aac1dac
TT
9056 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9057 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9058 # check for ICE first), but we must link in the order -lSM -lICE or
9059 # we get undefined symbols. So assume we have SM if we have ICE.
9060 # These have to be linked with before -lX11, unlike the other
9061 # libraries we check for below, so use a different variable.
ed698112 9062 # John Interrante, Karl Berry
ade710a5
TF
9063 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9064echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
ed698112
NN
9065if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9066 echo $ECHO_N "(cached) $ECHO_C" >&6
9067else
9068 ac_check_lib_save_LIBS=$LIBS
5aac1dac 9069LIBS="-lICE $X_EXTRA_LIBS $LIBS"
ed698112
NN
9070if test x$gcc_no_link = xyes; then
9071 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9072echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9073 { (exit 1); exit 1; }; }
9074fi
9075cat >conftest.$ac_ext <<_ACEOF
9076/* confdefs.h. */
9077_ACEOF
9078cat confdefs.h >>conftest.$ac_ext
9079cat >>conftest.$ac_ext <<_ACEOF
9080/* end confdefs.h. */
9081
ade710a5 9082/* Override any gcc2 internal prototype to avoid an error. */
ed698112
NN
9083#ifdef __cplusplus
9084extern "C"
9085#endif
ade710a5
TF
9086/* We use char because int might match the return type of a gcc2
9087 builtin and then its argument prototype would still apply. */
ed698112
NN
9088char IceConnectionNumber ();
9089int
9090main ()
9091{
ade710a5 9092IceConnectionNumber ();
ed698112
NN
9093 ;
9094 return 0;
9095}
9096_ACEOF
9097rm -f conftest.$ac_objext conftest$ac_exeext
9098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9099 (eval $ac_link) 2>conftest.er1
9100 ac_status=$?
9101 grep -v '^ *+' conftest.er1 >conftest.err
9102 rm -f conftest.er1
9103 cat conftest.err >&5
9104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105 (exit $ac_status); } &&
ade710a5
TF
9106 { ac_try='test -z "$ac_c_werror_flag"
9107 || test ! -s conftest.err'
ed698112
NN
9108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9109 (eval $ac_try) 2>&5
9110 ac_status=$?
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); }; } &&
9113 { ac_try='test -s conftest$ac_exeext'
9114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9115 (eval $ac_try) 2>&5
9116 ac_status=$?
9117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118 (exit $ac_status); }; }; then
9119 ac_cv_lib_ICE_IceConnectionNumber=yes
9120else
9121 echo "$as_me: failed program was:" >&5
9122sed 's/^/| /' conftest.$ac_ext >&5
9123
ade710a5 9124ac_cv_lib_ICE_IceConnectionNumber=no
ed698112
NN
9125fi
9126rm -f conftest.err conftest.$ac_objext \
9127 conftest$ac_exeext conftest.$ac_ext
9128LIBS=$ac_check_lib_save_LIBS
9129fi
ade710a5
TF
9130echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9131echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
ed698112 9132if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5aac1dac 9133 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5aac1dac
TT
9134fi
9135
ed698112 9136 LDFLAGS=$ac_save_LDFLAGS
5aac1dac
TT
9137
9138fi
9139
9140
aed6152d 9141# FIXME: this should be _libs on some hosts.
5aac1dac
TT
9142libsubdir=.libs
9143
c0975bc7
AP
9144# extra LD Flags which are required for targets
9145case "${host}" in
f97e8c0f 9146*-*-darwin[0-7].*)
73079360
AT
9147 # For now we have to disable it on darwin[8-9] because it slows down
9148 # the linking phase. A possible bug in ld?
c0975bc7
AP
9149 # on Darwin -single_module speeds up loading of the dynamic libraries.
9150 extra_ldflags_libjava=-Wl,-single_module
9151 ;;
9152esac
9153
9154
aed6152d 9155# Allow the GC to be disabled. Can be useful when debugging.
ade710a5
TF
9156echo "$as_me:$LINENO: checking for garbage collector to use" >&5
9157echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
9158# Check whether --enable-java-gc or --disable-java-gc was given.
5aac1dac 9159if test "${enable_java_gc+set}" = set; then
ade710a5
TF
9160 enableval="$enable_java_gc"
9161 GC=$enableval
5aac1dac
TT
9162else
9163 GC=boehm
ade710a5 9164fi;
5aac1dac
TT
9165GCLIBS=
9166GCINCS=
9167GCDEPS=
5aac1dac
TT
9168GCSPEC=
9169JC1GCSPEC=
9170GCTESTSPEC=
9171case "$GC" in
9172 boehm)
ade710a5
TF
9173 echo "$as_me:$LINENO: result: boehm" >&5
9174echo "${ECHO_T}boehm" >&6
5aac1dac 9175 GCLIBS=../boehm-gc/libgcjgc_convenience.la
5aac1dac
TT
9176 JC1GCSPEC='-fuse-boehm-gc'
9177 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
4109fe85 9178 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
5aac1dac
TT
9179 GCOBJS=boehm.lo
9180 GCHDR=boehm-gc.h
aed6152d 9181 # The POSIX thread support needs to know this.
ed698112
NN
9182
9183cat >>confdefs.h <<\_ACEOF
5aac1dac 9184#define HAVE_BOEHM_GC 1
ed698112 9185_ACEOF
5aac1dac
TT
9186
9187 ;;
9188 no)
ade710a5
TF
9189 echo "$as_me:$LINENO: result: none" >&5
9190echo "${ECHO_T}none" >&6
5aac1dac
TT
9191 GCHDR=no-gc.h
9192 ;;
9193 *)
ed698112
NN
9194 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
9195echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
9196 { (exit 1); exit 1; }; }
5aac1dac
TT
9197 ;;
9198esac
9199
9200
9201
9202
9203
9204
ade710a5 9205 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
5aac1dac
TT
9206
9207
9208
e3f92d3b
MK
9209if test "$GC" = boehm; then
9210 USING_BOEHMGC_TRUE=
9211 USING_BOEHMGC_FALSE='#'
9212else
9213 USING_BOEHMGC_TRUE='#'
9214 USING_BOEHMGC_FALSE=
9215fi
9216
9217
9218
9219if test "$GC" = no; then
9220 USING_NOGC_TRUE=
9221 USING_NOGC_FALSE='#'
9222else
9223 USING_NOGC_TRUE='#'
9224 USING_NOGC_FALSE=
9225fi
9226
9227
9228
ade710a5
TF
9229echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
9230echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
5aac1dac 9231THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
ade710a5
TF
9232echo "$as_me:$LINENO: result: $THREADS" >&5
9233echo "${ECHO_T}$THREADS" >&6
5aac1dac
TT
9234
9235case "$THREADS" in
9236 no | none | single)
9237 THREADS=none
9238 ;;
f3968b05 9239 posix | posix95 | pthreads)
5aac1dac
TT
9240 THREADS=posix
9241 case "$host" in
9242 *-*-linux*)
ed698112
NN
9243
9244cat >>confdefs.h <<\_ACEOF
5aac1dac 9245#define LINUX_THREADS 1
ed698112 9246_ACEOF
5aac1dac
TT
9247
9248 ;;
9249 esac
9250 ;;
9251 win32)
9252 ;;
9253 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
ed698112
NN
9254 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
9255echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
9256 { (exit 1); exit 1; }; }
5aac1dac
TT
9257 ;;
9258 *)
ed698112
NN
9259 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
9260echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
9261 { (exit 1); exit 1; }; }
5aac1dac
TT
9262 ;;
9263esac
9264
620a329b 9265THREADCXXFLAGS=
5aac1dac
TT
9266THREADLDFLAGS=
9267THREADLIBS=
9268THREADINCS=
9269THREADDEPS=
5aac1dac
TT
9270THREADH=
9271THREADSPEC=
5a121897 9272THREADSTARTFILESPEC=
5aac1dac
TT
9273case "$THREADS" in
9274 posix)
9275 case "$host" in
9276 *-*-cygwin*)
9277 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
9278 ;;
5aac1dac 9279 *-*-freebsd[1234]*)
5aac1dac
TT
9280 # Before FreeBSD 5, it didn't have -lpthread (or any library which
9281 # merely adds pthread_* functions) but it does have a -pthread switch
9282 # which is required at link-time to select -lc_r *instead* of -lc.
9283 THREADLDFLAGS=-pthread
9284 # Don't set THREADSPEC here as might be expected since -pthread is
9285 # not processed when found within a spec file, it must come from
9286 # the command line. For now, the user must provide the -pthread
9287 # switch to link code compiled with gcj. In future, consider adding
9288 # support for weak references to pthread_* functions ala gthr.h API.
56d6e6b1 9289 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
5aac1dac
TT
9290 ;;
9291 *-*-freebsd*)
04522557
NM
9292 # FreeBSD >=5.3 implements a model much closer to other modern UNIX
9293 # systems which support threads and -lpthread.
5aac1dac 9294 THREADLDFLAGS=-pthread
04522557 9295 THREADSPEC=-lpthread
5aac1dac 9296 ;;
68bfb94e 9297 alpha*-dec-osf* | hppa*-hp-hpux*)
620a329b
RS
9298 THREADCXXFLAGS=-pthread
9299 # boehm-gc needs some functions from librt, so link that too.
9300 THREADLIBS='-lpthread -lrt'
9301 THREADSPEC='-lpthread -lrt'
9302 ;;
5aac1dac
TT
9303 *)
9304 THREADLIBS=-lpthread
9305 THREADSPEC=-lpthread
9306 ;;
9307 esac
5aac1dac
TT
9308 THREADH=posix-threads.h
9309 # MIT pthreads doesn't seem to have the mutexattr functions.
9310 # But for now we don't check for it. We just assume you aren't
9311 # using MIT pthreads.
ed698112
NN
9312
9313cat >>confdefs.h <<\_ACEOF
5aac1dac 9314#define HAVE_PTHREAD_MUTEXATTR_INIT 1
ed698112 9315_ACEOF
5aac1dac
TT
9316
9317
9318 # If we're using the Boehm GC, then we happen to know that it
9319 # defines _REENTRANT, so we don't bother. Eww.
9320 if test "$GC" != boehm; then
ed698112
NN
9321
9322cat >>confdefs.h <<\_ACEOF
5aac1dac 9323#define _REENTRANT 1
ed698112 9324_ACEOF
5aac1dac
TT
9325
9326 fi
ed698112
NN
9327
9328cat >>confdefs.h <<\_ACEOF
5aac1dac 9329#define _POSIX_PTHREAD_SEMANTICS 1
ed698112 9330_ACEOF
5aac1dac
TT
9331
9332 ;;
9333
9334 win32)
5aac1dac 9335 THREADH=win32-threads.h
5a121897
RM
9336 THREADCXXFLAGS=-mthreads
9337 # We need thread-safe exception handling so _CRT_MT should be set to 1.
9338 # But we do not want the executables created to be dependent on
9339 # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
9340 # exception handling contexts. The following kludge achieves this effect
9341 # and causes a dummy __mingwthr_key_dtor() to be linked in from
9342 # libmingw32.a. This causes a memory leak of about 24 bytes per thread.
9343 # A workaround is to explicitly use -mthreads while linking Java programs.
9344 # See PR libgcj/28263.
9345 #
9346 # FIXME: In Java we are able to detect thread death at the end of
9347 # Thread.run() so we should be able to clean up the exception handling
9348 # contexts ourselves.
9349 THREADSTARTFILESPEC='crtmt%O%s'
5aac1dac 9350 ;;
19367215 9351
5aac1dac 9352 none)
5aac1dac
TT
9353 THREADH=no-threads.h
9354 ;;
9355esac
ade710a5 9356 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
19367215 9357
19367215 9358
19367215 9359
19367215 9360
e4261ef7 9361
e4261ef7 9362
19367215
HB
9363
9364
620a329b 9365
5a121897 9366
e3f92d3b
MK
9367if test "$THREADS" = posix; then
9368 USING_POSIX_THREADS_TRUE=
9369 USING_POSIX_THREADS_FALSE='#'
9370else
9371 USING_POSIX_THREADS_TRUE='#'
9372 USING_POSIX_THREADS_FALSE=
9373fi
9374
9375
9376
9377if test "$THREADS" = win32; then
9378 USING_WIN32_THREADS_TRUE=
9379 USING_WIN32_THREADS_FALSE='#'
9380else
9381 USING_WIN32_THREADS_TRUE='#'
9382 USING_WIN32_THREADS_FALSE=
9383fi
9384
9385
9386
9387if test "$THREADS" = none; then
9388 USING_NO_THREADS_TRUE=
9389 USING_NO_THREADS_FALSE='#'
9390else
9391 USING_NO_THREADS_TRUE='#'
9392 USING_NO_THREADS_FALSE=
9393fi
9394
9395
97c074fd
JJ
9396
9397if test "$use_libgcj_bc" = yes; then
9398 USE_LIBGCJ_BC_TRUE=
9399 USE_LIBGCJ_BC_FALSE='#'
9400else
9401 USE_LIBGCJ_BC_TRUE='#'
9402 USE_LIBGCJ_BC_FALSE=
9403fi
9404
9405
5aac1dac 9406if test -d sysdep; then true; else mkdir sysdep; fi
ade710a5 9407 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
b9f243c2 9408
ade710a5 9409 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
18744d9b 9410
ade710a5 9411 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
eb2925b6 9412
b9f243c2 9413
97c074fd
JJ
9414LIBGCJ_SPEC="%{s-bc-abi:} -lgcj"
9415if test "$use_libgcj_bc" = yes; then
9416 LIBGCJ_SPEC="%{s-bc-abi:-lgcj_bc;:-lgcj}"
9417fi
9418
9419
5aac1dac
TT
9420HASH_SYNC_SPEC=
9421# Hash synchronization is only useful with posix threads right now.
9422if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
9423 HASH_SYNC_SPEC=-fhash-synchronization
ed698112
NN
9424
9425cat >>confdefs.h <<\_ACEOF
5aac1dac 9426#define JV_HASH_SYNCHRONIZATION 1
ed698112 9427_ACEOF
b9f243c2 9428
b9f243c2
AH
9429fi
9430
283a159f 9431
5aac1dac
TT
9432
9433
5aac1dac
TT
9434if test "$GCC" = yes; then
9435 USING_GCC_TRUE=
9436 USING_GCC_FALSE='#'
283a159f 9437else
5aac1dac
TT
9438 USING_GCC_TRUE='#'
9439 USING_GCC_FALSE=
283a159f 9440fi
283a159f 9441
e3f92d3b 9442
5aac1dac
TT
9443# We're in the tree with gcc, and need to include some of its headers.
9444GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
283a159f 9445
5aac1dac
TT
9446if test "x${with_newlib}" = "xyes"; then
9447 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
9448 # may not work correctly, because the compiler may not be able to
9449 # link executables.
9450
9451 # We assume newlib. This lets us hard-code the functions we know
9452 # we'll have.
ed698112
NN
9453
9454cat >>confdefs.h <<\_ACEOF
5aac1dac 9455#define HAVE_MEMMOVE 1
ed698112 9456_ACEOF
9e7823cc 9457
ed698112
NN
9458
9459cat >>confdefs.h <<\_ACEOF
5aac1dac 9460#define HAVE_MEMCPY 1
ed698112 9461_ACEOF
ee9dd372 9462
ed698112
NN
9463
9464cat >>confdefs.h <<\_ACEOF
5aac1dac 9465#define HAVE_STRERROR 1
ed698112 9466_ACEOF
860a1536 9467
ed698112
NN
9468
9469cat >>confdefs.h <<\_ACEOF
5aac1dac 9470#define HAVE_TIME 1
ed698112 9471_ACEOF
860a1536 9472
ed698112
NN
9473
9474cat >>confdefs.h <<\_ACEOF
5aac1dac 9475#define HAVE_GMTIME_R 1
ed698112 9476_ACEOF
5aac1dac 9477
ed698112
NN
9478
9479cat >>confdefs.h <<\_ACEOF
5aac1dac 9480#define HAVE_LOCALTIME_R 1
ed698112 9481_ACEOF
5463a4f3 9482
ed698112
NN
9483
9484cat >>confdefs.h <<\_ACEOF
5463a4f3 9485#define HAVE_USLEEP_DECL 1
ed698112 9486_ACEOF
860a1536 9487
aed6152d 9488 # This is only for POSIX threads.
ed698112
NN
9489
9490cat >>confdefs.h <<\_ACEOF
5aac1dac 9491#define HAVE_PTHREAD_MUTEXATTR_INIT 1
ed698112 9492_ACEOF
860a1536 9493
aed6152d
NN
9494 # We also assume we are using gcc, which provides alloca.
9495 cat >>confdefs.h <<\_ACEOF
5aac1dac 9496#define HAVE_ALLOCA 1
ed698112
NN
9497_ACEOF
9498
5aac1dac 9499
aed6152d 9500 # Assume we do not have getuid and friends.
5aac1dac 9501
ed698112 9502cat >>confdefs.h <<\_ACEOF
5aac1dac 9503#define NO_GETUID 1
ed698112 9504_ACEOF
5aac1dac 9505
9b5f18b1 9506 PLATFORMNET=NoNet
5aac1dac 9507else
ed698112
NN
9508
9509
9510
9511
9512
9513
9514
9515
ed698112 9516
ed698112 9517
5aac1dac 9518
5aac1dac 9519
5aac1dac 9520
ed698112 9521
ebecd56d 9522
ed698112
NN
9523
9524
9525
17c2e2c0
TT
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
a5dfac10 9538
ade710a5 9539
9327c475 9540
17c2e2c0
TT
9541
9542
9543for ac_func in strerror ioctl select fstat open fsync sleep opendir \
9544 gmtime_r localtime_r readdir_r getpwuid_r getcwd \
1e19cfd2 9545 access stat lstat mkdir rename rmdir unlink utime chmod readlink \
17c2e2c0
TT
9546 nl_langinfo setlocale \
9547 inet_pton uname inet_ntoa \
9327c475
TT
9548 fork execvp pipe sigaction ftruncate mmap \
9549 getifaddrs
ee9dd372 9550do
ed698112 9551as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
ade710a5
TF
9552echo "$as_me:$LINENO: checking for $ac_func" >&5
9553echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9554if eval "test \"\${$as_ac_var+set}\" = set"; then
ed698112
NN
9555 echo $ECHO_N "(cached) $ECHO_C" >&6
9556else
9557 if test x$gcc_no_link = xyes; then
9558 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9559echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9560 { (exit 1); exit 1; }; }
9561fi
9562cat >conftest.$ac_ext <<_ACEOF
9563/* confdefs.h. */
9564_ACEOF
9565cat confdefs.h >>conftest.$ac_ext
9566cat >>conftest.$ac_ext <<_ACEOF
9567/* end confdefs.h. */
9568/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9569 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9570#define $ac_func innocuous_$ac_func
9571
ee9dd372 9572/* System header to define __stub macros and hopefully few prototypes,
ed698112
NN
9573 which can conflict with char $ac_func (); below.
9574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9575 <limits.h> exists even on freestanding compilers. */
9576
9577#ifdef __STDC__
9578# include <limits.h>
9579#else
9580# include <assert.h>
9581#endif
ee9dd372 9582
ed698112 9583#undef $ac_func
ee9dd372 9584
ade710a5 9585/* Override any gcc2 internal prototype to avoid an error. */
ed698112
NN
9586#ifdef __cplusplus
9587extern "C"
ade710a5 9588{
ed698112 9589#endif
ade710a5
TF
9590/* We use char because int might match the return type of a gcc2
9591 builtin and then its argument prototype would still apply. */
ed698112 9592char $ac_func ();
ee9dd372
TT
9593/* The GNU C library defines this for functions which it implements
9594 to always fail with ENOSYS. Some functions are actually named
9595 something starting with __ and the normal name is an alias. */
ade710a5 9596#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
ee9dd372 9597choke me
ade710a5
TF
9598#else
9599char (*f) () = $ac_func;
9600#endif
9601#ifdef __cplusplus
9602}
ee9dd372
TT
9603#endif
9604
ed698112
NN
9605int
9606main ()
9607{
ade710a5 9608return f != $ac_func;
ed698112
NN
9609 ;
9610 return 0;
9611}
9612_ACEOF
9613rm -f conftest.$ac_objext conftest$ac_exeext
9614if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9615 (eval $ac_link) 2>conftest.er1
9616 ac_status=$?
9617 grep -v '^ *+' conftest.er1 >conftest.err
9618 rm -f conftest.er1
9619 cat conftest.err >&5
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); } &&
ade710a5
TF
9622 { ac_try='test -z "$ac_c_werror_flag"
9623 || test ! -s conftest.err'
ed698112
NN
9624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9625 (eval $ac_try) 2>&5
9626 ac_status=$?
9627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628 (exit $ac_status); }; } &&
9629 { ac_try='test -s conftest$ac_exeext'
9630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9631 (eval $ac_try) 2>&5
9632 ac_status=$?
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); }; }; then
9635 eval "$as_ac_var=yes"
9636else
9637 echo "$as_me: failed program was:" >&5
9638sed 's/^/| /' conftest.$ac_ext >&5
9639
ade710a5 9640eval "$as_ac_var=no"
ed698112
NN
9641fi
9642rm -f conftest.err conftest.$ac_objext \
9643 conftest$ac_exeext conftest.$ac_ext
9644fi
ade710a5
TF
9645echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9646echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
ed698112
NN
9647if test `eval echo '${'$as_ac_var'}'` = yes; then
9648 cat >>confdefs.h <<_ACEOF
9649#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9650_ACEOF
ee9dd372 9651
ee9dd372 9652fi
5aac1dac 9653done
34c5c0e1 9654
ed698112
NN
9655
9656
17c2e2c0 9657for ac_func in inet_aton inet_addr
5aac1dac 9658do
ed698112 9659as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
ade710a5
TF
9660echo "$as_me:$LINENO: checking for $ac_func" >&5
9661echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9662if eval "test \"\${$as_ac_var+set}\" = set"; then
ed698112
NN
9663 echo $ECHO_N "(cached) $ECHO_C" >&6
9664else
9665 if test x$gcc_no_link = xyes; then
9666 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9667echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9668 { (exit 1); exit 1; }; }
9669fi
9670cat >conftest.$ac_ext <<_ACEOF
9671/* confdefs.h. */
9672_ACEOF
9673cat confdefs.h >>conftest.$ac_ext
9674cat >>conftest.$ac_ext <<_ACEOF
9675/* end confdefs.h. */
9676/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9678#define $ac_func innocuous_$ac_func
5aac1dac 9679
ed698112
NN
9680/* System header to define __stub macros and hopefully few prototypes,
9681 which can conflict with char $ac_func (); below.
9682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9683 <limits.h> exists even on freestanding compilers. */
5aac1dac 9684
ed698112
NN
9685#ifdef __STDC__
9686# include <limits.h>
5aac1dac 9687#else
ed698112 9688# include <assert.h>
5aac1dac
TT
9689#endif
9690
ed698112
NN
9691#undef $ac_func
9692
ade710a5 9693/* Override any gcc2 internal prototype to avoid an error. */
ed698112
NN
9694#ifdef __cplusplus
9695extern "C"
ade710a5 9696{
ed698112 9697#endif
ade710a5
TF
9698/* We use char because int might match the return type of a gcc2
9699 builtin and then its argument prototype would still apply. */
ed698112
NN
9700char $ac_func ();
9701/* The GNU C library defines this for functions which it implements
9702 to always fail with ENOSYS. Some functions are actually named
9703 something starting with __ and the normal name is an alias. */
ade710a5 9704#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
ed698112 9705choke me
ade710a5
TF
9706#else
9707char (*f) () = $ac_func;
9708#endif
9709#ifdef __cplusplus
9710}
ed698112
NN
9711#endif
9712
9713int
9714main ()
9715{
ade710a5 9716return f != $ac_func;
ed698112
NN
9717 ;
9718 return 0;
9719}
9720_ACEOF
9721rm -f conftest.$ac_objext conftest$ac_exeext
9722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9723 (eval $ac_link) 2>conftest.er1
9724 ac_status=$?
9725 grep -v '^ *+' conftest.er1 >conftest.err
9726 rm -f conftest.er1
9727 cat conftest.err >&5
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); } &&
ade710a5
TF
9730 { ac_try='test -z "$ac_c_werror_flag"
9731 || test ! -s conftest.err'
ed698112
NN
9732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9733 (eval $ac_try) 2>&5
9734 ac_status=$?
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); }; } &&
9737 { ac_try='test -s conftest$ac_exeext'
9738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9739 (eval $ac_try) 2>&5
9740 ac_status=$?
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); }; }; then
9743 eval "$as_ac_var=yes"
9744else
9745 echo "$as_me: failed program was:" >&5
9746sed 's/^/| /' conftest.$ac_ext >&5
9747
ade710a5 9748eval "$as_ac_var=no"
ed698112
NN
9749fi
9750rm -f conftest.err conftest.$ac_objext \
9751 conftest$ac_exeext conftest.$ac_ext
9752fi
ade710a5
TF
9753echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9754echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
ed698112
NN
9755if test `eval echo '${'$as_ac_var'}'` = yes; then
9756 cat >>confdefs.h <<_ACEOF
9757#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9758_ACEOF
17c2e2c0 9759 break
ed698112
NN
9760fi
9761done
9762
ade710a5
TF
9763 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9764echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
ed698112
NN
9765if test "${ac_cv_header_stdc+set}" = set; then
9766 echo $ECHO_N "(cached) $ECHO_C" >&6
9767else
9768 cat >conftest.$ac_ext <<_ACEOF
9769/* confdefs.h. */
9770_ACEOF
9771cat confdefs.h >>conftest.$ac_ext
9772cat >>conftest.$ac_ext <<_ACEOF
9773/* end confdefs.h. */
9774#include <stdlib.h>
9775#include <stdarg.h>
9776#include <string.h>
9777#include <float.h>
9778
9779int
9780main ()
9781{
9782
9783 ;
9784 return 0;
9785}
9786_ACEOF
9787rm -f conftest.$ac_objext
9788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9789 (eval $ac_compile) 2>conftest.er1
9790 ac_status=$?
9791 grep -v '^ *+' conftest.er1 >conftest.err
9792 rm -f conftest.er1
9793 cat conftest.err >&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } &&
ade710a5
TF
9796 { ac_try='test -z "$ac_c_werror_flag"
9797 || test ! -s conftest.err'
ed698112
NN
9798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9799 (eval $ac_try) 2>&5
9800 ac_status=$?
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); }; } &&
9803 { ac_try='test -s conftest.$ac_objext'
9804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9805 (eval $ac_try) 2>&5
9806 ac_status=$?
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); }; }; then
9809 ac_cv_header_stdc=yes
34c5c0e1 9810else
ed698112
NN
9811 echo "$as_me: failed program was:" >&5
9812sed 's/^/| /' conftest.$ac_ext >&5
9813
ade710a5 9814ac_cv_header_stdc=no
ed698112
NN
9815fi
9816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9817
9818if test $ac_cv_header_stdc = yes; then
9819 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9820 cat >conftest.$ac_ext <<_ACEOF
9821/* confdefs.h. */
9822_ACEOF
9823cat confdefs.h >>conftest.$ac_ext
9824cat >>conftest.$ac_ext <<_ACEOF
9825/* end confdefs.h. */
9826#include <string.h>
9827
9828_ACEOF
9829if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9830 $EGREP "memchr" >/dev/null 2>&1; then
9831 :
9832else
9833 ac_cv_header_stdc=no
34c5c0e1
AO
9834fi
9835rm -f conftest*
ed698112 9836
34c5c0e1
AO
9837fi
9838
ed698112
NN
9839if test $ac_cv_header_stdc = yes; then
9840 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9841 cat >conftest.$ac_ext <<_ACEOF
9842/* confdefs.h. */
9843_ACEOF
9844cat confdefs.h >>conftest.$ac_ext
9845cat >>conftest.$ac_ext <<_ACEOF
9846/* end confdefs.h. */
9847#include <stdlib.h>
9848
9849_ACEOF
9850if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9851 $EGREP "free" >/dev/null 2>&1; then
9852 :
9853else
9854 ac_cv_header_stdc=no
9855fi
9856rm -f conftest*
9857
9858fi
9859
9860if test $ac_cv_header_stdc = yes; then
9861 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9862 if test "$cross_compiling" = yes; then
9863 :
9864else
9865 cat >conftest.$ac_ext <<_ACEOF
9866/* confdefs.h. */
9867_ACEOF
9868cat confdefs.h >>conftest.$ac_ext
9869cat >>conftest.$ac_ext <<_ACEOF
9870/* end confdefs.h. */
9871#include <ctype.h>
9872#if ((' ' & 0x0FF) == 0x020)
9873# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9874# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9875#else
9876# define ISLOWER(c) \
9877 (('a' <= (c) && (c) <= 'i') \
9878 || ('j' <= (c) && (c) <= 'r') \
9879 || ('s' <= (c) && (c) <= 'z'))
9880# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9881#endif
9882
9883#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9884int
9885main ()
9886{
9887 int i;
9888 for (i = 0; i < 256; i++)
9889 if (XOR (islower (i), ISLOWER (i))
9890 || toupper (i) != TOUPPER (i))
ade710a5
TF
9891 exit(2);
9892 exit (0);
ed698112
NN
9893}
9894_ACEOF
9895rm -f conftest$ac_exeext
9896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9897 (eval $ac_link) 2>&5
9898 ac_status=$?
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9902 (eval $ac_try) 2>&5
9903 ac_status=$?
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); }; }; then
9906 :
5aac1dac 9907else
ed698112
NN
9908 echo "$as_me: program exited with status $ac_status" >&5
9909echo "$as_me: failed program was:" >&5
9910sed 's/^/| /' conftest.$ac_ext >&5
9911
9912( exit $ac_status )
9913ac_cv_header_stdc=no
9914fi
ade710a5 9915rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ed698112
NN
9916fi
9917fi
9918fi
ade710a5
TF
9919echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9920echo "${ECHO_T}$ac_cv_header_stdc" >&6
ed698112
NN
9921if test $ac_cv_header_stdc = yes; then
9922
9923cat >>confdefs.h <<\_ACEOF
9924#define STDC_HEADERS 1
9925_ACEOF
9926
9927fi
9928
9929# On IRIX 5.3, sys/types and inttypes.h are conflicting.
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9940 inttypes.h stdint.h unistd.h
9941do
9942as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
ade710a5
TF
9943echo "$as_me:$LINENO: checking for $ac_header" >&5
9944echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9945if eval "test \"\${$as_ac_Header+set}\" = set"; then
ed698112
NN
9946 echo $ECHO_N "(cached) $ECHO_C" >&6
9947else
9948 cat >conftest.$ac_ext <<_ACEOF
9949/* confdefs.h. */
9950_ACEOF
9951cat confdefs.h >>conftest.$ac_ext
9952cat >>conftest.$ac_ext <<_ACEOF
9953/* end confdefs.h. */
9954$ac_includes_default
9955
9956#include <$ac_header>
9957_ACEOF
9958rm -f conftest.$ac_objext
9959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9960 (eval $ac_compile) 2>conftest.er1
9961 ac_status=$?
9962 grep -v '^ *+' conftest.er1 >conftest.err
9963 rm -f conftest.er1
9964 cat conftest.err >&5
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); } &&
ade710a5
TF
9967 { ac_try='test -z "$ac_c_werror_flag"
9968 || test ! -s conftest.err'
ed698112
NN
9969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9970 (eval $ac_try) 2>&5
9971 ac_status=$?
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); }; } &&
9974 { ac_try='test -s conftest.$ac_objext'
9975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9976 (eval $ac_try) 2>&5
9977 ac_status=$?
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); }; }; then
9980 eval "$as_ac_Header=yes"
9981else
9982 echo "$as_me: failed program was:" >&5
9983sed 's/^/| /' conftest.$ac_ext >&5
9984
ade710a5 9985eval "$as_ac_Header=no"
ed698112
NN
9986fi
9987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9988fi
ade710a5
TF
9989echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9990echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
ed698112
NN
9991if test `eval echo '${'$as_ac_Header'}'` = yes; then
9992 cat >>confdefs.h <<_ACEOF
9993#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9994_ACEOF
9995
5aac1dac 9996fi
ed698112 9997
5aac1dac 9998done
34c5c0e1 9999
ed698112
NN
10000
10001
10002
10003
10004for ac_header in execinfo.h unistd.h dlfcn.h
5aac1dac 10005do
ed698112 10006as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
ade710a5
TF
10007if eval "test \"\${$as_ac_Header+set}\" = set"; then
10008 echo "$as_me:$LINENO: checking for $ac_header" >&5
10009echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10010if eval "test \"\${$as_ac_Header+set}\" = set"; then
ed698112
NN
10011 echo $ECHO_N "(cached) $ECHO_C" >&6
10012fi
ade710a5
TF
10013echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10014echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
ed698112
NN
10015else
10016 # Is the header compilable?
ade710a5
TF
10017echo "$as_me:$LINENO: checking $ac_header usability" >&5
10018echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
ed698112
NN
10019cat >conftest.$ac_ext <<_ACEOF
10020/* confdefs.h. */
10021_ACEOF
10022cat confdefs.h >>conftest.$ac_ext
10023cat >>conftest.$ac_ext <<_ACEOF
10024/* end confdefs.h. */
10025$ac_includes_default
10026#include <$ac_header>
10027_ACEOF
10028rm -f conftest.$ac_objext
10029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10030 (eval $ac_compile) 2>conftest.er1
10031 ac_status=$?
10032 grep -v '^ *+' conftest.er1 >conftest.err
10033 rm -f conftest.er1
10034 cat conftest.err >&5
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); } &&
ade710a5
TF
10037 { ac_try='test -z "$ac_c_werror_flag"
10038 || test ! -s conftest.err'
ed698112
NN
10039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10040 (eval $ac_try) 2>&5
10041 ac_status=$?
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); }; } &&
10044 { ac_try='test -s conftest.$ac_objext'
10045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10046 (eval $ac_try) 2>&5
10047 ac_status=$?
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); }; }; then
10050 ac_header_compiler=yes
10051else
10052 echo "$as_me: failed program was:" >&5
10053sed 's/^/| /' conftest.$ac_ext >&5
10054
ade710a5 10055ac_header_compiler=no
ed698112
NN
10056fi
10057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ade710a5
TF
10058echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10059echo "${ECHO_T}$ac_header_compiler" >&6
ed698112
NN
10060
10061# Is the header present?
ade710a5
TF
10062echo "$as_me:$LINENO: checking $ac_header presence" >&5
10063echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
ed698112
NN
10064cat >conftest.$ac_ext <<_ACEOF
10065/* confdefs.h. */
10066_ACEOF
10067cat confdefs.h >>conftest.$ac_ext
10068cat >>conftest.$ac_ext <<_ACEOF
10069/* end confdefs.h. */
10070#include <$ac_header>
10071_ACEOF
10072if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10074 ac_status=$?
10075 grep -v '^ *+' conftest.er1 >conftest.err
10076 rm -f conftest.er1
10077 cat conftest.err >&5
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); } >/dev/null; then
10080 if test -s conftest.err; then
10081 ac_cpp_err=$ac_c_preproc_warn_flag
10082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10083 else
10084 ac_cpp_err=
10085 fi
34c5c0e1 10086else
ed698112 10087 ac_cpp_err=yes
34c5c0e1 10088fi
ed698112
NN
10089if test -z "$ac_cpp_err"; then
10090 ac_header_preproc=yes
10091else
10092 echo "$as_me: failed program was:" >&5
10093sed 's/^/| /' conftest.$ac_ext >&5
10094
10095 ac_header_preproc=no
34c5c0e1 10096fi
ed698112 10097rm -f conftest.err conftest.$ac_ext
ade710a5
TF
10098echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10099echo "${ECHO_T}$ac_header_preproc" >&6
ed698112
NN
10100
10101# So? What about this header?
10102case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10103 yes:no: )
10104 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10105echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10107echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10108 ac_header_preproc=yes
10109 ;;
10110 no:yes:* )
10111 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10112echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10113 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10114echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10115 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10116echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10117 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10118echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10120echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10121 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10122echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ade710a5
TF
10123 (
10124 cat <<\_ASBOX
10125## ---------------------------------- ##
10126## Report this to the libjava lists. ##
10127## ---------------------------------- ##
10128_ASBOX
10129 ) |
10130 sed "s/^/$as_me: WARNING: /" >&2
ed698112
NN
10131 ;;
10132esac
ade710a5
TF
10133echo "$as_me:$LINENO: checking for $ac_header" >&5
10134echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10135if eval "test \"\${$as_ac_Header+set}\" = set"; then
ed698112 10136 echo $ECHO_N "(cached) $ECHO_C" >&6
ee9dd372 10137else
ed698112 10138 eval "$as_ac_Header=\$ac_header_preproc"
ee9dd372 10139fi
ade710a5
TF
10140echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10141echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
ed698112
NN
10142
10143fi
10144if test `eval echo '${'$as_ac_Header'}'` = yes; then
10145 cat >>confdefs.h <<_ACEOF
10146#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10147_ACEOF
10148
10149fi
10150
ee9dd372 10151done
ed698112 10152
2a67186a 10153 # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
ade710a5
TF
10154 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
10155echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
ed698112
NN
10156if test "${ac_cv_lib_dl_dladdr+set}" = set; then
10157 echo $ECHO_N "(cached) $ECHO_C" >&6
ee9dd372 10158else
ed698112 10159 ac_check_lib_save_LIBS=$LIBS
5aac1dac 10160LIBS="-ldl $LIBS"
ed698112
NN
10161if test x$gcc_no_link = xyes; then
10162 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10163echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10164 { (exit 1); exit 1; }; }
10165fi
10166cat >conftest.$ac_ext <<_ACEOF
10167/* confdefs.h. */
10168_ACEOF
10169cat confdefs.h >>conftest.$ac_ext
10170cat >>conftest.$ac_ext <<_ACEOF
10171/* end confdefs.h. */
10172
ade710a5 10173/* Override any gcc2 internal prototype to avoid an error. */
ed698112
NN
10174#ifdef __cplusplus
10175extern "C"
10176#endif
ade710a5
TF
10177/* We use char because int might match the return type of a gcc2
10178 builtin and then its argument prototype would still apply. */
ed698112
NN
10179char dladdr ();
10180int
10181main ()
10182{
ade710a5 10183dladdr ();
ed698112
NN
10184 ;
10185 return 0;
10186}
10187_ACEOF
10188rm -f conftest.$ac_objext conftest$ac_exeext
10189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10190 (eval $ac_link) 2>conftest.er1
10191 ac_status=$?
10192 grep -v '^ *+' conftest.er1 >conftest.err
10193 rm -f conftest.er1
10194 cat conftest.err >&5
10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196 (exit $ac_status); } &&
ade710a5
TF
10197 { ac_try='test -z "$ac_c_werror_flag"
10198 || test ! -s conftest.err'
ed698112
NN
10199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10200 (eval $ac_try) 2>&5
10201 ac_status=$?
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); }; } &&
10204 { ac_try='test -s conftest$ac_exeext'
10205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10206 (eval $ac_try) 2>&5
10207 ac_status=$?
10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); }; }; then
10210 ac_cv_lib_dl_dladdr=yes
10211else
10212 echo "$as_me: failed program was:" >&5
10213sed 's/^/| /' conftest.$ac_ext >&5
10214
ade710a5 10215ac_cv_lib_dl_dladdr=no
ed698112
NN
10216fi
10217rm -f conftest.err conftest.$ac_objext \
10218 conftest$ac_exeext conftest.$ac_ext
10219LIBS=$ac_check_lib_save_LIBS
10220fi
ade710a5
TF
10221echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
10222echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
ed698112 10223if test $ac_cv_lib_dl_dladdr = yes; then
ee9dd372 10224
ed698112
NN
10225
10226cat >>confdefs.h <<\_ACEOF
5aac1dac 10227#define HAVE_DLADDR 1
ed698112 10228_ACEOF
ee9dd372 10229
2a67186a
AT
10230else
10231
ade710a5
TF
10232 echo "$as_me:$LINENO: checking for dladdr in -ldld" >&5
10233echo $ECHO_N "checking for dladdr in -ldld... $ECHO_C" >&6
2a67186a
AT
10234if test "${ac_cv_lib_dld_dladdr+set}" = set; then
10235 echo $ECHO_N "(cached) $ECHO_C" >&6
10236else
10237 ac_check_lib_save_LIBS=$LIBS
10238LIBS="-ldld $LIBS"
10239if test x$gcc_no_link = xyes; then
10240 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10241echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10242 { (exit 1); exit 1; }; }
10243fi
10244cat >conftest.$ac_ext <<_ACEOF
10245/* confdefs.h. */
10246_ACEOF
10247cat confdefs.h >>conftest.$ac_ext
10248cat >>conftest.$ac_ext <<_ACEOF
10249/* end confdefs.h. */
10250
ade710a5 10251/* Override any gcc2 internal prototype to avoid an error. */
2a67186a
AT
10252#ifdef __cplusplus
10253extern "C"
10254#endif
ade710a5
TF
10255/* We use char because int might match the return type of a gcc2
10256 builtin and then its argument prototype would still apply. */
2a67186a
AT
10257char dladdr ();
10258int
10259main ()
10260{
ade710a5 10261dladdr ();
2a67186a
AT
10262 ;
10263 return 0;
10264}
10265_ACEOF
10266rm -f conftest.$ac_objext conftest$ac_exeext
10267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10268 (eval $ac_link) 2>conftest.er1
10269 ac_status=$?
10270 grep -v '^ *+' conftest.er1 >conftest.err
10271 rm -f conftest.er1
10272 cat conftest.err >&5
10273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274 (exit $ac_status); } &&
ade710a5
TF
10275 { ac_try='test -z "$ac_c_werror_flag"
10276 || test ! -s conftest.err'
2a67186a
AT
10277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10278 (eval $ac_try) 2>&5
10279 ac_status=$?
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); }; } &&
10282 { ac_try='test -s conftest$ac_exeext'
10283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10284 (eval $ac_try) 2>&5
10285 ac_status=$?
10286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287 (exit $ac_status); }; }; then
10288 ac_cv_lib_dld_dladdr=yes
10289else
10290 echo "$as_me: failed program was:" >&5
10291sed 's/^/| /' conftest.$ac_ext >&5
10292
ade710a5 10293ac_cv_lib_dld_dladdr=no
2a67186a
AT
10294fi
10295rm -f conftest.err conftest.$ac_objext \
10296 conftest$ac_exeext conftest.$ac_ext
10297LIBS=$ac_check_lib_save_LIBS
10298fi
ade710a5
TF
10299echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dladdr" >&5
10300echo "${ECHO_T}$ac_cv_lib_dld_dladdr" >&6
2a67186a
AT
10301if test $ac_cv_lib_dld_dladdr = yes; then
10302
10303
10304cat >>confdefs.h <<\_ACEOF
10305#define HAVE_DLADDR 1
10306_ACEOF
10307
10308fi
10309
5aac1dac
TT
10310fi
10311
6d1e9d18 10312
5aac1dac 10313 if test x"$build" = x"$host"; then
ade710a5
TF
10314 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
10315echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
ed698112
NN
10316if test "${ac_cv_file__proc_self_exe+set}" = set; then
10317 echo $ECHO_N "(cached) $ECHO_C" >&6
5aac1dac 10318else
ed698112
NN
10319 test "$cross_compiling" = yes &&
10320 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10321echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10322 { (exit 1); exit 1; }; }
10323if test -r "/proc/self/exe"; then
10324 ac_cv_file__proc_self_exe=yes
5aac1dac 10325else
ed698112 10326 ac_cv_file__proc_self_exe=no
5aac1dac
TT
10327fi
10328fi
ade710a5
TF
10329echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
10330echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
ed698112
NN
10331if test $ac_cv_file__proc_self_exe = yes; then
10332
10333cat >>confdefs.h <<_ACEOF
10334#define HAVE__PROC_SELF_EXE 1
10335_ACEOF
10336
ee9dd372 10337
ed698112
NN
10338
10339cat >>confdefs.h <<\_ACEOF
10340#define HAVE_PROC_SELF_EXE 1
10341_ACEOF
5aac1dac 10342
ee9dd372 10343fi
ee9dd372 10344
5aac1dac
TT
10345 else
10346 case $host in
10347 *-linux*)
ed698112
NN
10348
10349cat >>confdefs.h <<\_ACEOF
5aac1dac 10350#define HAVE_PROC_SELF_EXE 1
ed698112 10351_ACEOF
5aac1dac
TT
10352
10353 ;;
10354 esac
10355 fi
ee9dd372 10356
ed698112 10357
5b7a26f6
KC
10358 if test "X$prefix" = "XNONE"; then
10359 acl_final_prefix="$ac_default_prefix"
10360 else
10361 acl_final_prefix="$prefix"
10362 fi
10363 if test "X$exec_prefix" = "XNONE"; then
10364 acl_final_exec_prefix='${prefix}'
10365 else
10366 acl_final_exec_prefix="$exec_prefix"
10367 fi
10368 acl_save_prefix="$prefix"
10369 prefix="$acl_final_prefix"
10370 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10371 prefix="$acl_save_prefix"
10372
10373
ade710a5 10374# Check whether --with-gnu-ld or --without-gnu-ld was given.
5b7a26f6 10375if test "${with_gnu_ld+set}" = set; then
ade710a5
TF
10376 withval="$with_gnu_ld"
10377 test "$withval" = no || with_gnu_ld=yes
5b7a26f6
KC
10378else
10379 with_gnu_ld=no
ade710a5 10380fi;
5b7a26f6
KC
10381# Prepare PATH_SEPARATOR.
10382# The user is always right.
10383if test "${PATH_SEPARATOR+set}" != set; then
10384 echo "#! /bin/sh" >conf$$.sh
10385 echo "exit 0" >>conf$$.sh
10386 chmod +x conf$$.sh
10387 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10388 PATH_SEPARATOR=';'
10389 else
10390 PATH_SEPARATOR=:
10391 fi
10392 rm -f conf$$.sh
10393fi
10394ac_prog=ld
10395if test "$GCC" = yes; then
10396 # Check if gcc -print-prog-name=ld gives a path.
ade710a5
TF
10397 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10398echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5b7a26f6
KC
10399 case $host in
10400 *-*-mingw*)
10401 # gcc leaves a trailing carriage return which upsets mingw
10402 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10403 *)
10404 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10405 esac
10406 case $ac_prog in
10407 # Accept absolute paths.
10408 [\\/]* | [A-Za-z]:[\\/]*)
10409 re_direlt='/[^/][^/]*/\.\./'
10410 # Canonicalize the path of ld
10411 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10412 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10413 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10414 done
10415 test -z "$LD" && LD="$ac_prog"
10416 ;;
10417 "")
10418 # If it fails, then pretend we aren't using GCC.
10419 ac_prog=ld
10420 ;;
10421 *)
10422 # If it is relative, then search for the first ld in PATH.
10423 with_gnu_ld=unknown
10424 ;;
10425 esac
10426elif test "$with_gnu_ld" = yes; then
ade710a5
TF
10427 echo "$as_me:$LINENO: checking for GNU ld" >&5
10428echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5b7a26f6 10429else
ade710a5
TF
10430 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10431echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5b7a26f6
KC
10432fi
10433if test "${acl_cv_path_LD+set}" = set; then
10434 echo $ECHO_N "(cached) $ECHO_C" >&6
10435else
10436 if test -z "$LD"; then
10437 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10438 for ac_dir in $PATH; do
10439 test -z "$ac_dir" && ac_dir=.
10440 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10441 acl_cv_path_LD="$ac_dir/$ac_prog"
10442 # Check to see if the program is GNU ld. I'd rather use --version,
10443 # but apparently some GNU ld's only accept -v.
10444 # Break only if it was the GNU/non-GNU ld that we prefer.
10445 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10446 test "$with_gnu_ld" != no && break
10447 else
10448 test "$with_gnu_ld" != yes && break
10449 fi
10450 fi
10451 done
10452 IFS="$ac_save_ifs"
10453else
10454 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10455fi
10456fi
10457
10458LD="$acl_cv_path_LD"
10459if test -n "$LD"; then
ade710a5
TF
10460 echo "$as_me:$LINENO: result: $LD" >&5
10461echo "${ECHO_T}$LD" >&6
5b7a26f6 10462else
ade710a5
TF
10463 echo "$as_me:$LINENO: result: no" >&5
10464echo "${ECHO_T}no" >&6
5b7a26f6
KC
10465fi
10466test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10467echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10468 { (exit 1); exit 1; }; }
ade710a5
TF
10469echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10470echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5b7a26f6
KC
10471if test "${acl_cv_prog_gnu_ld+set}" = set; then
10472 echo $ECHO_N "(cached) $ECHO_C" >&6
10473else
10474 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10475if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10476 acl_cv_prog_gnu_ld=yes
10477else
10478 acl_cv_prog_gnu_ld=no
10479fi
10480fi
ade710a5
TF
10481echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10482echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5b7a26f6
KC
10483with_gnu_ld=$acl_cv_prog_gnu_ld
10484
10485
10486
ade710a5
TF
10487 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10488echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5b7a26f6
KC
10489if test "${acl_cv_rpath+set}" = set; then
10490 echo $ECHO_N "(cached) $ECHO_C" >&6
10491else
10492
10493 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10494 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10495 . ./conftest.sh
10496 rm -f ./conftest.sh
10497 acl_cv_rpath=done
10498
10499fi
ade710a5
TF
10500echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10501echo "${ECHO_T}$acl_cv_rpath" >&6
5b7a26f6
KC
10502 wl="$acl_cv_wl"
10503 libext="$acl_cv_libext"
10504 shlibext="$acl_cv_shlibext"
10505 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10506 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10507 hardcode_direct="$acl_cv_hardcode_direct"
10508 hardcode_minus_L="$acl_cv_hardcode_minus_L"
ade710a5 10509 # Check whether --enable-rpath or --disable-rpath was given.
5b7a26f6 10510if test "${enable_rpath+set}" = set; then
ade710a5
TF
10511 enableval="$enable_rpath"
10512 :
5b7a26f6
KC
10513else
10514 enable_rpath=yes
ade710a5 10515fi;
5b7a26f6
KC
10516
10517
10518
10519
10520
10521
10522
10523 use_additional=yes
10524
10525 acl_save_prefix="$prefix"
10526 prefix="$acl_final_prefix"
10527 acl_save_exec_prefix="$exec_prefix"
10528 exec_prefix="$acl_final_exec_prefix"
10529
10530 eval additional_includedir=\"$includedir\"
10531 eval additional_libdir=\"$libdir\"
10532
10533 exec_prefix="$acl_save_exec_prefix"
10534 prefix="$acl_save_prefix"
ed698112 10535
ed698112 10536
ade710a5 10537# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5aac1dac 10538if test "${with_libiconv_prefix+set}" = set; then
ade710a5
TF
10539 withval="$with_libiconv_prefix"
10540
5b7a26f6
KC
10541 if test "X$withval" = "Xno"; then
10542 use_additional=no
10543 else
10544 if test "X$withval" = "X"; then
10545
10546 acl_save_prefix="$prefix"
10547 prefix="$acl_final_prefix"
10548 acl_save_exec_prefix="$exec_prefix"
10549 exec_prefix="$acl_final_exec_prefix"
10550
10551 eval additional_includedir=\"$includedir\"
10552 eval additional_libdir=\"$libdir\"
10553
10554 exec_prefix="$acl_save_exec_prefix"
10555 prefix="$acl_save_prefix"
10556
10557 else
10558 additional_includedir="$withval/include"
10559 additional_libdir="$withval/lib"
10560 fi
10561 fi
5aac1dac 10562
ade710a5 10563fi;
5b7a26f6
KC
10564 LIBICONV=
10565 LTLIBICONV=
10566 INCICONV=
10567 rpathdirs=
10568 ltrpathdirs=
10569 names_already_handled=
10570 names_next_round='iconv '
10571 while test -n "$names_next_round"; do
10572 names_this_round="$names_next_round"
10573 names_next_round=
10574 for name in $names_this_round; do
10575 already_handled=
10576 for n in $names_already_handled; do
10577 if test "$n" = "$name"; then
10578 already_handled=yes
10579 break
10580 fi
10581 done
10582 if test -z "$already_handled"; then
10583 names_already_handled="$names_already_handled $name"
10584 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10585 eval value=\"\$HAVE_LIB$uppername\"
10586 if test -n "$value"; then
10587 if test "$value" = yes; then
10588 eval value=\"\$LIB$uppername\"
10589 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10590 eval value=\"\$LTLIB$uppername\"
10591 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10592 else
10593 :
10594 fi
10595 else
10596 found_dir=
10597 found_la=
10598 found_so=
10599 found_a=
10600 if test $use_additional = yes; then
10601 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10602 found_dir="$additional_libdir"
10603 found_so="$additional_libdir/lib$name.$shlibext"
10604 if test -f "$additional_libdir/lib$name.la"; then
10605 found_la="$additional_libdir/lib$name.la"
10606 fi
10607 else
10608 if test -f "$additional_libdir/lib$name.$libext"; then
10609 found_dir="$additional_libdir"
10610 found_a="$additional_libdir/lib$name.$libext"
10611 if test -f "$additional_libdir/lib$name.la"; then
10612 found_la="$additional_libdir/lib$name.la"
10613 fi
10614 fi
10615 fi
10616 fi
10617 if test "X$found_dir" = "X"; then
10618 for x in $LDFLAGS $LTLIBICONV; do
10619
10620 acl_save_prefix="$prefix"
10621 prefix="$acl_final_prefix"
10622 acl_save_exec_prefix="$exec_prefix"
10623 exec_prefix="$acl_final_exec_prefix"
10624 eval x=\"$x\"
10625 exec_prefix="$acl_save_exec_prefix"
10626 prefix="$acl_save_prefix"
10627
10628 case "$x" in
10629 -L*)
10630 dir=`echo "X$x" | sed -e 's/^X-L//'`
10631 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10632 found_dir="$dir"
10633 found_so="$dir/lib$name.$shlibext"
10634 if test -f "$dir/lib$name.la"; then
10635 found_la="$dir/lib$name.la"
10636 fi
10637 else
10638 if test -f "$dir/lib$name.$libext"; then
10639 found_dir="$dir"
10640 found_a="$dir/lib$name.$libext"
10641 if test -f "$dir/lib$name.la"; then
10642 found_la="$dir/lib$name.la"
10643 fi
10644 fi
10645 fi
10646 ;;
10647 esac
10648 if test "X$found_dir" != "X"; then
10649 break
10650 fi
10651 done
10652 fi
10653 if test "X$found_dir" != "X"; then
10654 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10655 if test "X$found_so" != "X"; then
10656 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10657 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10658 else
10659 haveit=
10660 for x in $ltrpathdirs; do
10661 if test "X$x" = "X$found_dir"; then
10662 haveit=yes
10663 break
10664 fi
10665 done
10666 if test -z "$haveit"; then
10667 ltrpathdirs="$ltrpathdirs $found_dir"
10668 fi
10669 if test "$hardcode_direct" = yes; then
10670 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10671 else
10672 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10673 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10674 haveit=
10675 for x in $rpathdirs; do
10676 if test "X$x" = "X$found_dir"; then
10677 haveit=yes
10678 break
10679 fi
10680 done
10681 if test -z "$haveit"; then
10682 rpathdirs="$rpathdirs $found_dir"
10683 fi
10684 else
10685 haveit=
10686 for x in $LDFLAGS $LIBICONV; do
10687
10688 acl_save_prefix="$prefix"
10689 prefix="$acl_final_prefix"
10690 acl_save_exec_prefix="$exec_prefix"
10691 exec_prefix="$acl_final_exec_prefix"
10692 eval x=\"$x\"
10693 exec_prefix="$acl_save_exec_prefix"
10694 prefix="$acl_save_prefix"
10695
10696 if test "X$x" = "X-L$found_dir"; then
10697 haveit=yes
10698 break
10699 fi
10700 done
10701 if test -z "$haveit"; then
10702 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10703 fi
10704 if test "$hardcode_minus_L" != no; then
10705 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10706 else
10707 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10708 fi
10709 fi
10710 fi
10711 fi
10712 else
10713 if test "X$found_a" != "X"; then
10714 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10715 else
10716 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10717 fi
10718 fi
10719 additional_includedir=
10720 case "$found_dir" in
10721 */lib | */lib/)
10722 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10723 additional_includedir="$basedir/include"
10724 ;;
10725 esac
10726 if test "X$additional_includedir" != "X"; then
10727 if test "X$additional_includedir" != "X/usr/include"; then
10728 haveit=
10729 if test "X$additional_includedir" = "X/usr/local/include"; then
10730 if test -n "$GCC"; then
10731 case $host_os in
10732 linux*) haveit=yes;;
10733 esac
10734 fi
10735 fi
10736 if test -z "$haveit"; then
10737 for x in $CPPFLAGS $INCICONV; do
10738
10739 acl_save_prefix="$prefix"
10740 prefix="$acl_final_prefix"
10741 acl_save_exec_prefix="$exec_prefix"
10742 exec_prefix="$acl_final_exec_prefix"
10743 eval x=\"$x\"
10744 exec_prefix="$acl_save_exec_prefix"
10745 prefix="$acl_save_prefix"
10746
10747 if test "X$x" = "X-I$additional_includedir"; then
10748 haveit=yes
10749 break
10750 fi
10751 done
10752 if test -z "$haveit"; then
10753 if test -d "$additional_includedir"; then
10754 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10755 fi
10756 fi
10757 fi
10758 fi
10759 fi
10760 if test -n "$found_la"; then
10761 save_libdir="$libdir"
10762 case "$found_la" in
10763 */* | *\\*) . "$found_la" ;;
10764 *) . "./$found_la" ;;
10765 esac
10766 libdir="$save_libdir"
10767 for dep in $dependency_libs; do
10768 case "$dep" in
10769 -L*)
10770 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10771 if test "X$additional_libdir" != "X/usr/lib"; then
10772 haveit=
10773 if test "X$additional_libdir" = "X/usr/local/lib"; then
10774 if test -n "$GCC"; then
10775 case $host_os in
10776 linux*) haveit=yes;;
10777 esac
10778 fi
10779 fi
10780 if test -z "$haveit"; then
10781 haveit=
10782 for x in $LDFLAGS $LIBICONV; do
10783
10784 acl_save_prefix="$prefix"
10785 prefix="$acl_final_prefix"
10786 acl_save_exec_prefix="$exec_prefix"
10787 exec_prefix="$acl_final_exec_prefix"
10788 eval x=\"$x\"
10789 exec_prefix="$acl_save_exec_prefix"
10790 prefix="$acl_save_prefix"
10791
10792 if test "X$x" = "X-L$additional_libdir"; then
10793 haveit=yes
10794 break
10795 fi
10796 done
10797 if test -z "$haveit"; then
10798 if test -d "$additional_libdir"; then
10799 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10800 fi
10801 fi
10802 haveit=
10803 for x in $LDFLAGS $LTLIBICONV; do
10804
10805 acl_save_prefix="$prefix"
10806 prefix="$acl_final_prefix"
10807 acl_save_exec_prefix="$exec_prefix"
10808 exec_prefix="$acl_final_exec_prefix"
10809 eval x=\"$x\"
10810 exec_prefix="$acl_save_exec_prefix"
10811 prefix="$acl_save_prefix"
10812
10813 if test "X$x" = "X-L$additional_libdir"; then
10814 haveit=yes
10815 break
10816 fi
10817 done
10818 if test -z "$haveit"; then
10819 if test -d "$additional_libdir"; then
10820 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10821 fi
10822 fi
10823 fi
10824 fi
10825 ;;
10826 -R*)
10827 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10828 if test "$enable_rpath" != no; then
10829 haveit=
10830 for x in $rpathdirs; do
10831 if test "X$x" = "X$dir"; then
10832 haveit=yes
10833 break
10834 fi
10835 done
10836 if test -z "$haveit"; then
10837 rpathdirs="$rpathdirs $dir"
10838 fi
10839 haveit=
10840 for x in $ltrpathdirs; do
10841 if test "X$x" = "X$dir"; then
10842 haveit=yes
10843 break
10844 fi
10845 done
10846 if test -z "$haveit"; then
10847 ltrpathdirs="$ltrpathdirs $dir"
10848 fi
10849 fi
10850 ;;
10851 -l*)
10852 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10853 ;;
10854 *.la)
10855 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10856 ;;
10857 *)
10858 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10859 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10860 ;;
10861 esac
10862 done
10863 fi
10864 else
10865 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10866 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10867 fi
10868 fi
10869 fi
10870 done
10871 done
10872 if test "X$rpathdirs" != "X"; then
10873 if test -n "$hardcode_libdir_separator"; then
10874 alldirs=
10875 for found_dir in $rpathdirs; do
10876 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10877 done
10878 acl_save_libdir="$libdir"
10879 libdir="$alldirs"
10880 eval flag=\"$hardcode_libdir_flag_spec\"
10881 libdir="$acl_save_libdir"
10882 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10883 else
10884 for found_dir in $rpathdirs; do
10885 acl_save_libdir="$libdir"
10886 libdir="$found_dir"
10887 eval flag=\"$hardcode_libdir_flag_spec\"
10888 libdir="$acl_save_libdir"
10889 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10890 done
10891 fi
10892 fi
10893 if test "X$ltrpathdirs" != "X"; then
10894 for found_dir in $ltrpathdirs; do
10895 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10896 done
10897 fi
10898
10899
10900
10901
10902
10903
10904
10905 am_save_CPPFLAGS="$CPPFLAGS"
10906
10907 for element in $INCICONV; do
10908 haveit=
10909 for x in $CPPFLAGS; do
10910
10911 acl_save_prefix="$prefix"
10912 prefix="$acl_final_prefix"
10913 acl_save_exec_prefix="$exec_prefix"
10914 exec_prefix="$acl_final_exec_prefix"
10915 eval x=\"$x\"
10916 exec_prefix="$acl_save_exec_prefix"
10917 prefix="$acl_save_prefix"
10918
10919 if test "X$x" = "X$element"; then
10920 haveit=yes
10921 break
10922 fi
10923 done
10924 if test -z "$haveit"; then
10925 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10926 fi
10927 done
10928
5aac1dac 10929
ade710a5
TF
10930 echo "$as_me:$LINENO: checking for iconv" >&5
10931echo $ECHO_N "checking for iconv... $ECHO_C" >&6
ed698112
NN
10932if test "${am_cv_func_iconv+set}" = set; then
10933 echo $ECHO_N "(cached) $ECHO_C" >&6
ee9dd372 10934else
ed698112 10935
5aac1dac
TT
10936 am_cv_func_iconv="no, consider installing GNU libiconv"
10937 am_cv_lib_iconv=no
ed698112
NN
10938 if test x$gcc_no_link = xyes; then
10939 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10940echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10941 { (exit 1); exit 1; }; }
10942fi
10943cat >conftest.$ac_ext <<_ACEOF
10944/* confdefs.h. */
10945_ACEOF
10946cat confdefs.h >>conftest.$ac_ext
10947cat >>conftest.$ac_ext <<_ACEOF
10948/* end confdefs.h. */
5aac1dac
TT
10949#include <stdlib.h>
10950#include <iconv.h>
ed698112
NN
10951int
10952main ()
10953{
5aac1dac
TT
10954iconv_t cd = iconv_open("","");
10955 iconv(cd,NULL,NULL,NULL,NULL);
10956 iconv_close(cd);
ed698112
NN
10957 ;
10958 return 0;
10959}
10960_ACEOF
10961rm -f conftest.$ac_objext conftest$ac_exeext
10962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10963 (eval $ac_link) 2>conftest.er1
10964 ac_status=$?
10965 grep -v '^ *+' conftest.er1 >conftest.err
10966 rm -f conftest.er1
10967 cat conftest.err >&5
10968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); } &&
ade710a5
TF
10970 { ac_try='test -z "$ac_c_werror_flag"
10971 || test ! -s conftest.err'
ed698112
NN
10972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10973 (eval $ac_try) 2>&5
10974 ac_status=$?
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); }; } &&
10977 { ac_try='test -s conftest$ac_exeext'
10978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10979 (eval $ac_try) 2>&5
10980 ac_status=$?
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); }; }; then
5aac1dac 10983 am_cv_func_iconv=yes
ee9dd372 10984else
ed698112
NN
10985 echo "$as_me: failed program was:" >&5
10986sed 's/^/| /' conftest.$ac_ext >&5
10987
ee9dd372 10988fi
ed698112
NN
10989rm -f conftest.err conftest.$ac_objext \
10990 conftest$ac_exeext conftest.$ac_ext
5aac1dac
TT
10991 if test "$am_cv_func_iconv" != yes; then
10992 am_save_LIBS="$LIBS"
5b7a26f6 10993 LIBS="$LIBS $LIBICONV"
ed698112
NN
10994 if test x$gcc_no_link = xyes; then
10995 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10996echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10997 { (exit 1); exit 1; }; }
10998fi
10999cat >conftest.$ac_ext <<_ACEOF
11000/* confdefs.h. */
11001_ACEOF
11002cat confdefs.h >>conftest.$ac_ext
11003cat >>conftest.$ac_ext <<_ACEOF
11004/* end confdefs.h. */
5aac1dac
TT
11005#include <stdlib.h>
11006#include <iconv.h>
ed698112
NN
11007int
11008main ()
11009{
5aac1dac
TT
11010iconv_t cd = iconv_open("","");
11011 iconv(cd,NULL,NULL,NULL,NULL);
11012 iconv_close(cd);
ed698112
NN
11013 ;
11014 return 0;
11015}
11016_ACEOF
11017rm -f conftest.$ac_objext conftest$ac_exeext
11018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11019 (eval $ac_link) 2>conftest.er1
11020 ac_status=$?
11021 grep -v '^ *+' conftest.er1 >conftest.err
11022 rm -f conftest.er1
11023 cat conftest.err >&5
11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 (exit $ac_status); } &&
ade710a5
TF
11026 { ac_try='test -z "$ac_c_werror_flag"
11027 || test ! -s conftest.err'
ed698112
NN
11028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11029 (eval $ac_try) 2>&5
11030 ac_status=$?
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); }; } &&
11033 { ac_try='test -s conftest$ac_exeext'
11034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11035 (eval $ac_try) 2>&5
11036 ac_status=$?
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); }; }; then
5aac1dac
TT
11039 am_cv_lib_iconv=yes
11040 am_cv_func_iconv=yes
ee9dd372 11041else
ed698112
NN
11042 echo "$as_me: failed program was:" >&5
11043sed 's/^/| /' conftest.$ac_ext >&5
11044
5aac1dac 11045fi
ed698112
NN
11046rm -f conftest.err conftest.$ac_objext \
11047 conftest$ac_exeext conftest.$ac_ext
5aac1dac
TT
11048 LIBS="$am_save_LIBS"
11049 fi
4b7f154f 11050
ed698112 11051fi
ade710a5
TF
11052echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11053echo "${ECHO_T}$am_cv_func_iconv" >&6
5aac1dac 11054 if test "$am_cv_func_iconv" = yes; then
ed698112
NN
11055
11056cat >>confdefs.h <<\_ACEOF
5aac1dac 11057#define HAVE_ICONV 1
ed698112 11058_ACEOF
7339705d 11059
5b7a26f6
KC
11060 fi
11061 if test "$am_cv_lib_iconv" = yes; then
ade710a5
TF
11062 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11063echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11064 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11065echo "${ECHO_T}$LIBICONV" >&6
5b7a26f6
KC
11066 else
11067 CPPFLAGS="$am_save_CPPFLAGS"
11068 LIBICONV=
11069 LTLIBICONV=
11070 fi
11071
11072
11073
11074 if test "$am_cv_func_iconv" = yes; then
ade710a5
TF
11075 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11076echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
ed698112
NN
11077 if test "${am_cv_proto_iconv+set}" = set; then
11078 echo $ECHO_N "(cached) $ECHO_C" >&6
4b7f154f 11079else
ed698112
NN
11080
11081 cat >conftest.$ac_ext <<_ACEOF
11082/* confdefs.h. */
11083_ACEOF
11084cat confdefs.h >>conftest.$ac_ext
11085cat >>conftest.$ac_ext <<_ACEOF
11086/* end confdefs.h. */
4b7f154f 11087
5aac1dac
TT
11088#include <stdlib.h>
11089#include <iconv.h>
11090extern
11091#ifdef __cplusplus
11092"C"
11093#endif
11094#if defined(__STDC__) || defined(__cplusplus)
11095size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
4b7f154f 11096#else
5aac1dac 11097size_t iconv();
4b7f154f
TT
11098#endif
11099
ed698112
NN
11100int
11101main ()
11102{
5aac1dac 11103
ed698112
NN
11104 ;
11105 return 0;
11106}
11107_ACEOF
11108rm -f conftest.$ac_objext
11109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11110 (eval $ac_compile) 2>conftest.er1
11111 ac_status=$?
11112 grep -v '^ *+' conftest.er1 >conftest.err
11113 rm -f conftest.er1
11114 cat conftest.err >&5
11115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116 (exit $ac_status); } &&
ade710a5
TF
11117 { ac_try='test -z "$ac_c_werror_flag"
11118 || test ! -s conftest.err'
ed698112
NN
11119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11120 (eval $ac_try) 2>&5
11121 ac_status=$?
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); }; } &&
11124 { ac_try='test -s conftest.$ac_objext'
11125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11126 (eval $ac_try) 2>&5
11127 ac_status=$?
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); }; }; then
5aac1dac 11130 am_cv_proto_iconv_arg1=""
4b7f154f 11131else
ed698112
NN
11132 echo "$as_me: failed program was:" >&5
11133sed 's/^/| /' conftest.$ac_ext >&5
11134
ade710a5 11135am_cv_proto_iconv_arg1="const"
4b7f154f 11136fi
ed698112 11137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5aac1dac 11138 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);"
4b7f154f
TT
11139fi
11140
5aac1dac 11141 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
ade710a5 11142 echo "$as_me:$LINENO: result: ${ac_t:-
ed698112
NN
11143 }$am_cv_proto_iconv" >&5
11144echo "${ECHO_T}${ac_t:-
ade710a5 11145 }$am_cv_proto_iconv" >&6
ed698112
NN
11146
11147cat >>confdefs.h <<_ACEOF
5aac1dac 11148#define ICONV_CONST $am_cv_proto_iconv_arg1
ed698112 11149_ACEOF
4b7f154f 11150
5aac1dac 11151 fi
ed698112
NN
11152
11153
ade710a5
TF
11154 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11155echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
ed698112
NN
11156if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11157 echo $ECHO_N "(cached) $ECHO_C" >&6
11158else
11159 if test x$gcc_no_link = xyes; then
11160 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11161echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11162 { (exit 1); exit 1; }; }
11163fi
11164cat >conftest.$ac_ext <<_ACEOF
11165/* confdefs.h. */
11166_ACEOF
11167cat confdefs.h >>conftest.$ac_ext
11168cat >>conftest.$ac_ext <<_ACEOF
11169/* end confdefs.h. */
5aac1dac 11170#include <locale.h>
ed698112
NN
11171int
11172main ()
11173{
5aac1dac 11174return LC_MESSAGES
ed698112
NN
11175 ;
11176 return 0;
11177}
11178_ACEOF
11179rm -f conftest.$ac_objext conftest$ac_exeext
11180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11181 (eval $ac_link) 2>conftest.er1
11182 ac_status=$?
11183 grep -v '^ *+' conftest.er1 >conftest.err
11184 rm -f conftest.er1
11185 cat conftest.err >&5
11186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187 (exit $ac_status); } &&
ade710a5
TF
11188 { ac_try='test -z "$ac_c_werror_flag"
11189 || test ! -s conftest.err'
ed698112
NN
11190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11191 (eval $ac_try) 2>&5
11192 ac_status=$?
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; } &&
11195 { ac_try='test -s conftest$ac_exeext'
11196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11197 (eval $ac_try) 2>&5
11198 ac_status=$?
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); }; }; then
5aac1dac 11201 am_cv_val_LC_MESSAGES=yes
4b7f154f 11202else
ed698112
NN
11203 echo "$as_me: failed program was:" >&5
11204sed 's/^/| /' conftest.$ac_ext >&5
11205
ade710a5 11206am_cv_val_LC_MESSAGES=no
4b7f154f 11207fi
ed698112
NN
11208rm -f conftest.err conftest.$ac_objext \
11209 conftest$ac_exeext conftest.$ac_ext
4b7f154f 11210fi
ade710a5
TF
11211echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11212echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
5b7a26f6 11213 if test $am_cv_val_LC_MESSAGES = yes; then
ed698112
NN
11214
11215cat >>confdefs.h <<\_ACEOF
5aac1dac 11216#define HAVE_LC_MESSAGES 1
ed698112 11217_ACEOF
7339705d 11218
5aac1dac 11219 fi
5b7a26f6 11220
ade710a5
TF
11221 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11222echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
ed698112
NN
11223if test "${ac_cv_struct_tm+set}" = set; then
11224 echo $ECHO_N "(cached) $ECHO_C" >&6
11225else
11226 cat >conftest.$ac_ext <<_ACEOF
11227/* confdefs.h. */
11228_ACEOF
11229cat confdefs.h >>conftest.$ac_ext
11230cat >>conftest.$ac_ext <<_ACEOF
11231/* end confdefs.h. */
5aac1dac
TT
11232#include <sys/types.h>
11233#include <time.h>
ed698112
NN
11234
11235int
11236main ()
11237{
5aac1dac 11238struct tm *tp; tp->tm_sec;
ed698112
NN
11239 ;
11240 return 0;
11241}
11242_ACEOF
11243rm -f conftest.$ac_objext
11244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11245 (eval $ac_compile) 2>conftest.er1
11246 ac_status=$?
11247 grep -v '^ *+' conftest.er1 >conftest.err
11248 rm -f conftest.er1
11249 cat conftest.err >&5
11250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251 (exit $ac_status); } &&
ade710a5
TF
11252 { ac_try='test -z "$ac_c_werror_flag"
11253 || test ! -s conftest.err'
ed698112
NN
11254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11255 (eval $ac_try) 2>&5
11256 ac_status=$?
11257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258 (exit $ac_status); }; } &&
11259 { ac_try='test -s conftest.$ac_objext'
11260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11261 (eval $ac_try) 2>&5
11262 ac_status=$?
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); }; }; then
5aac1dac 11265 ac_cv_struct_tm=time.h
7339705d 11266else
ed698112
NN
11267 echo "$as_me: failed program was:" >&5
11268sed 's/^/| /' conftest.$ac_ext >&5
11269
ade710a5 11270ac_cv_struct_tm=sys/time.h
7339705d 11271fi
ed698112 11272rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7339705d 11273fi
ade710a5
TF
11274echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11275echo "${ECHO_T}$ac_cv_struct_tm" >&6
5aac1dac 11276if test $ac_cv_struct_tm = sys/time.h; then
ed698112
NN
11277
11278cat >>confdefs.h <<\_ACEOF
5aac1dac 11279#define TM_IN_SYS_TIME 1
ed698112 11280_ACEOF
4b7f154f 11281
ee9dd372 11282fi
ee9dd372 11283
ade710a5
TF
11284echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11285echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
ed698112
NN
11286if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11287 echo $ECHO_N "(cached) $ECHO_C" >&6
5aac1dac 11288else
ed698112
NN
11289 cat >conftest.$ac_ext <<_ACEOF
11290/* confdefs.h. */
11291_ACEOF
11292cat confdefs.h >>conftest.$ac_ext
11293cat >>conftest.$ac_ext <<_ACEOF
11294/* end confdefs.h. */
5aac1dac
TT
11295#include <sys/types.h>
11296#include <$ac_cv_struct_tm>
ed698112
NN
11297
11298
11299int
11300main ()
11301{
11302static struct tm ac_aggr;
11303if (ac_aggr.tm_zone)
11304return 0;
11305 ;
11306 return 0;
11307}
11308_ACEOF
11309rm -f conftest.$ac_objext
11310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11311 (eval $ac_compile) 2>conftest.er1
11312 ac_status=$?
11313 grep -v '^ *+' conftest.er1 >conftest.err
11314 rm -f conftest.er1
11315 cat conftest.err >&5
11316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317 (exit $ac_status); } &&
ade710a5
TF
11318 { ac_try='test -z "$ac_c_werror_flag"
11319 || test ! -s conftest.err'
ed698112
NN
11320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11321 (eval $ac_try) 2>&5
11322 ac_status=$?
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); }; } &&
11325 { ac_try='test -s conftest.$ac_objext'
11326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11327 (eval $ac_try) 2>&5
11328 ac_status=$?
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); }; }; then
11331 ac_cv_member_struct_tm_tm_zone=yes
11332else
11333 echo "$as_me: failed program was:" >&5
11334sed 's/^/| /' conftest.$ac_ext >&5
11335
ade710a5 11336cat >conftest.$ac_ext <<_ACEOF
ed698112
NN
11337/* confdefs.h. */
11338_ACEOF
11339cat confdefs.h >>conftest.$ac_ext
11340cat >>conftest.$ac_ext <<_ACEOF
11341/* end confdefs.h. */
11342#include <sys/types.h>
11343#include <$ac_cv_struct_tm>
11344
11345
11346int
11347main ()
11348{
11349static struct tm ac_aggr;
11350if (sizeof ac_aggr.tm_zone)
11351return 0;
11352 ;
11353 return 0;
11354}
11355_ACEOF
11356rm -f conftest.$ac_objext
11357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11358 (eval $ac_compile) 2>conftest.er1
11359 ac_status=$?
11360 grep -v '^ *+' conftest.er1 >conftest.err
11361 rm -f conftest.er1
11362 cat conftest.err >&5
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); } &&
ade710a5
TF
11365 { ac_try='test -z "$ac_c_werror_flag"
11366 || test ! -s conftest.err'
ed698112
NN
11367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11368 (eval $ac_try) 2>&5
11369 ac_status=$?
11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); }; } &&
11372 { ac_try='test -s conftest.$ac_objext'
11373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11374 (eval $ac_try) 2>&5
11375 ac_status=$?
11376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377 (exit $ac_status); }; }; then
11378 ac_cv_member_struct_tm_tm_zone=yes
bc5afba4 11379else
ed698112
NN
11380 echo "$as_me: failed program was:" >&5
11381sed 's/^/| /' conftest.$ac_ext >&5
11382
ade710a5 11383ac_cv_member_struct_tm_tm_zone=no
5aac1dac 11384fi
ed698112 11385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5aac1dac 11386fi
ed698112
NN
11387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11388fi
ade710a5
TF
11389echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11390echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
ed698112
NN
11391if test $ac_cv_member_struct_tm_tm_zone = yes; then
11392
11393cat >>confdefs.h <<_ACEOF
11394#define HAVE_STRUCT_TM_TM_ZONE 1
11395_ACEOF
11396
11397
11398fi
11399
11400if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
5aac1dac 11401
ed698112 11402cat >>confdefs.h <<\_ACEOF
5aac1dac 11403#define HAVE_TM_ZONE 1
ed698112 11404_ACEOF
5aac1dac
TT
11405
11406else
ade710a5
TF
11407 echo "$as_me:$LINENO: checking for tzname" >&5
11408echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11409if test "${ac_cv_var_tzname+set}" = set; then
02809848
PB
11410 echo $ECHO_N "(cached) $ECHO_C" >&6
11411else
ade710a5
TF
11412 if test x$gcc_no_link = xyes; then
11413 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11414echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11415 { (exit 1); exit 1; }; }
11416fi
11417cat >conftest.$ac_ext <<_ACEOF
02809848
PB
11418/* confdefs.h. */
11419_ACEOF
11420cat confdefs.h >>conftest.$ac_ext
11421cat >>conftest.$ac_ext <<_ACEOF
11422/* end confdefs.h. */
11423#include <time.h>
ade710a5
TF
11424#ifndef tzname /* For SGI. */
11425extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11426#endif
02809848
PB
11427
11428int
11429main ()
11430{
ade710a5 11431atoi(*tzname);
02809848
PB
11432 ;
11433 return 0;
11434}
11435_ACEOF
ade710a5
TF
11436rm -f conftest.$ac_objext conftest$ac_exeext
11437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11438 (eval $ac_link) 2>conftest.er1
02809848
PB
11439 ac_status=$?
11440 grep -v '^ *+' conftest.er1 >conftest.err
11441 rm -f conftest.er1
11442 cat conftest.err >&5
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); } &&
ade710a5
TF
11445 { ac_try='test -z "$ac_c_werror_flag"
11446 || test ! -s conftest.err'
02809848
PB
11447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11448 (eval $ac_try) 2>&5
11449 ac_status=$?
11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451 (exit $ac_status); }; } &&
ade710a5 11452 { ac_try='test -s conftest$ac_exeext'
02809848
PB
11453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11454 (eval $ac_try) 2>&5
11455 ac_status=$?
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); }; }; then
ade710a5 11458 ac_cv_var_tzname=yes
02809848
PB
11459else
11460 echo "$as_me: failed program was:" >&5
11461sed 's/^/| /' conftest.$ac_ext >&5
11462
ade710a5 11463ac_cv_var_tzname=no
02809848 11464fi
ed698112
NN
11465rm -f conftest.err conftest.$ac_objext \
11466 conftest$ac_exeext conftest.$ac_ext
bc5afba4 11467fi
ade710a5
TF
11468echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11469echo "${ECHO_T}$ac_cv_var_tzname" >&6
5aac1dac 11470 if test $ac_cv_var_tzname = yes; then
ed698112
NN
11471
11472cat >>confdefs.h <<\_ACEOF
5aac1dac 11473#define HAVE_TZNAME 1
ed698112 11474_ACEOF
5aac1dac
TT
11475
11476 fi
11477fi
11478
11479
ed698112
NN
11480
11481
11482for ac_func in gethostbyname_r
ee9dd372 11483do
ed698112 11484as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
ade710a5
TF
11485echo "$as_me:$LINENO: checking for $ac_func" >&5
11486echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11487if eval "test \"\${$as_ac_var+set}\" = set"; then
ed698112
NN
11488 echo $ECHO_N "(cached) $ECHO_C" >&6
11489else
11490 if test x$gcc_no_link = xyes; then
11491 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11492echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11493 { (exit 1); exit 1; }; }
11494fi
11495cat >conftest.$ac_ext <<_ACEOF
11496/* confdefs.h. */
11497_ACEOF
11498cat confdefs.h >>conftest.$ac_ext
11499cat >>conftest.$ac_ext <<_ACEOF
11500/* end confdefs.h. */
11501/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11503#define $ac_func innocuous_$ac_func
11504
ee9dd372 11505/* System header to define __stub macros and hopefully few prototypes,
ed698112
NN
11506 which can conflict with char $ac_func (); below.
11507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11508 <limits.h> exists even on freestanding compilers. */
11509
11510#ifdef __STDC__
11511# include <limits.h>
11512#else
11513# include <assert.h>
11514#endif
ee9dd372 11515
ed698112 11516#undef $ac_func
ee9dd372 11517
ade710a5 11518/* Override any gcc2 internal prototype to avoid an error. */
ed698112
NN
11519#ifdef __cplusplus
11520extern "C"
ade710a5 11521{
ed698112 11522#endif
ade710a5
TF
11523/* We use char because int might match the return type of a gcc2
11524 builtin and then its argument prototype would still apply. */
ed698112 11525char $ac_func ();
ee9dd372
TT
11526/* The GNU C library defines this for functions which it implements
11527 to always fail with ENOSYS. Some functions are actually named
11528 something starting with __ and the normal name is an alias. */
ade710a5 11529#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
ee9dd372 11530choke me
ade710a5
TF
11531#else
11532char (*f) () = $ac_func;
11533#endif
11534#ifdef __cplusplus
11535}
ee9dd372
TT
11536#endif
11537
ed698112
NN
11538int
11539main ()
11540{
ade710a5 11541return f != $ac_func;
ed698112
NN
11542 ;
11543 return 0;
11544}
11545_ACEOF
11546rm -f conftest.$ac_objext conftest$ac_exeext
11547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11548 (eval $ac_link) 2>conftest.er1
11549 ac_status=$?
11550 grep -v '^ *+' conftest.er1 >conftest.err
11551 rm -f conftest.er1
11552 cat conftest.err >&5
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); } &&
ade710a5
TF
11555 { ac_try='test -z "$ac_c_werror_flag"
11556 || test ! -s conftest.err'
ed698112
NN
11557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11558 (eval $ac_try) 2>&5
11559 ac_status=$?
11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); }; } &&
11562 { ac_try='test -s conftest$ac_exeext'
11563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11564 (eval $ac_try) 2>&5
11565 ac_status=$?
11566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567 (exit $ac_status); }; }; then
11568 eval "$as_ac_var=yes"
11569else
11570 echo "$as_me: failed program was:" >&5
11571sed 's/^/| /' conftest.$ac_ext >&5
11572
ade710a5 11573eval "$as_ac_var=no"
ed698112
NN
11574fi
11575rm -f conftest.err conftest.$ac_objext \
11576 conftest$ac_exeext conftest.$ac_ext
11577fi
ade710a5
TF
11578echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11579echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
ed698112
NN
11580if test `eval echo '${'$as_ac_var'}'` = yes; then
11581 cat >>confdefs.h <<_ACEOF
11582#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11583_ACEOF
11584
11585
11586cat >>confdefs.h <<\_ACEOF
5aac1dac 11587#define HAVE_GETHOSTBYNAME_R 1
ed698112 11588_ACEOF
5aac1dac
TT
11589
11590 # There are two different kinds of gethostbyname_r.
11591 # We look for the one that returns `int'.
11592 # Hopefully this check is robust enough.
ed698112
NN
11593 cat >conftest.$ac_ext <<_ACEOF
11594/* confdefs.h. */
11595_ACEOF
11596cat confdefs.h >>conftest.$ac_ext
11597cat >>conftest.$ac_ext <<_ACEOF
11598/* end confdefs.h. */
5aac1dac 11599#include <netdb.h>
ed698112
NN
11600
11601_ACEOF
5aac1dac 11602if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ed698112
NN
11603 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
11604
11605
11606cat >>confdefs.h <<\_ACEOF
5aac1dac 11607#define GETHOSTBYNAME_R_RETURNS_INT 1
ed698112 11608_ACEOF
5aac1dac 11609
ee9dd372 11610fi
5aac1dac 11611rm -f conftest*
ee9dd372 11612
ee9dd372 11613
5aac1dac
TT
11614 case " $GCINCS " in
11615 *" -D_REENTRANT "*) ;;
11616 *)
ade710a5
TF
11617 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
11618echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
ed698112
NN
11619if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
11620 echo $ECHO_N "(cached) $ECHO_C" >&6
11621else
ade710a5 11622 ac_ext=cc
ed698112
NN
11623ac_cpp='$CXXCPP $CPPFLAGS'
11624ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11625ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11626ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11627
11628 cat >conftest.$ac_ext <<_ACEOF
11629/* confdefs.h. */
11630_ACEOF
11631cat confdefs.h >>conftest.$ac_ext
11632cat >>conftest.$ac_ext <<_ACEOF
11633/* end confdefs.h. */
5aac1dac 11634#include <netdb.h>
ed698112
NN
11635int
11636main ()
11637{
5aac1dac 11638gethostbyname_r("", 0, 0);
ed698112
NN
11639 ;
11640 return 0;
11641}
11642_ACEOF
11643rm -f conftest.$ac_objext
11644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11645 (eval $ac_compile) 2>conftest.er1
11646 ac_status=$?
11647 grep -v '^ *+' conftest.er1 >conftest.err
11648 rm -f conftest.er1
11649 cat conftest.err >&5
11650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651 (exit $ac_status); } &&
ade710a5
TF
11652 { ac_try='test -z "$ac_cxx_werror_flag"
11653 || test ! -s conftest.err'
ed698112
NN
11654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11655 (eval $ac_try) 2>&5
11656 ac_status=$?
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); }; } &&
11659 { ac_try='test -s conftest.$ac_objext'
11660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11661 (eval $ac_try) 2>&5
11662 ac_status=$?
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); }; }; then
5aac1dac
TT
11665 libjava_cv_gethostbyname_r_needs_reentrant=no
11666else
ed698112
NN
11667 echo "$as_me: failed program was:" >&5
11668sed 's/^/| /' conftest.$ac_ext >&5
11669
ade710a5 11670 CPPFLAGS_SAVE="$CPPFLAGS"
5aac1dac 11671 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
ed698112
NN
11672 cat >conftest.$ac_ext <<_ACEOF
11673/* confdefs.h. */
11674_ACEOF
11675cat confdefs.h >>conftest.$ac_ext
11676cat >>conftest.$ac_ext <<_ACEOF
11677/* end confdefs.h. */
5aac1dac 11678#include <netdb.h>
ed698112
NN
11679int
11680main ()
11681{
5aac1dac 11682gethostbyname_r("", 0, 0);
ed698112
NN
11683 ;
11684 return 0;
11685}
11686_ACEOF
11687rm -f conftest.$ac_objext
11688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11689 (eval $ac_compile) 2>conftest.er1
11690 ac_status=$?
11691 grep -v '^ *+' conftest.er1 >conftest.err
11692 rm -f conftest.er1
11693 cat conftest.err >&5
11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695 (exit $ac_status); } &&
ade710a5
TF
11696 { ac_try='test -z "$ac_cxx_werror_flag"
11697 || test ! -s conftest.err'
ed698112
NN
11698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11699 (eval $ac_try) 2>&5
11700 ac_status=$?
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); }; } &&
11703 { ac_try='test -s conftest.$ac_objext'
11704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11705 (eval $ac_try) 2>&5
11706 ac_status=$?
11707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); }; }; then
5aac1dac
TT
11709 libjava_cv_gethostbyname_r_needs_reentrant=yes
11710else
ed698112
NN
11711 echo "$as_me: failed program was:" >&5
11712sed 's/^/| /' conftest.$ac_ext >&5
11713
ade710a5 11714libjava_cv_gethostbyname_r_needs_reentrant=fail
5aac1dac 11715fi
ed698112 11716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5aac1dac 11717 CPPFLAGS="$CPPFLAGS_SAVE"
ed698112 11718
5aac1dac 11719fi
ed698112 11720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5aac1dac 11721 ac_ext=c
5aac1dac 11722ac_cpp='$CPP $CPPFLAGS'
ed698112
NN
11723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11725ac_compiler_gnu=$ac_cv_c_compiler_gnu
5aac1dac 11726
5aac1dac 11727
ed698112 11728fi
ade710a5
TF
11729echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
11730echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
5aac1dac 11731 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
ed698112
NN
11732
11733cat >>confdefs.h <<\_ACEOF
5aac1dac 11734#define _REENTRANT 1
ed698112 11735_ACEOF
5aac1dac
TT
11736
11737 fi
11738 ;;
11739 esac
ee9dd372 11740
ade710a5
TF
11741 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
11742echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
ed698112
NN
11743if test "${libjava_cv_struct_hostent_data+set}" = set; then
11744 echo $ECHO_N "(cached) $ECHO_C" >&6
5aac1dac 11745else
ed698112
NN
11746 cat >conftest.$ac_ext <<_ACEOF
11747/* confdefs.h. */
11748_ACEOF
11749cat confdefs.h >>conftest.$ac_ext
11750cat >>conftest.$ac_ext <<_ACEOF
11751/* end confdefs.h. */
ee9dd372 11752
5aac1dac
TT
11753#if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
11754# define _REENTRANT 1
ee9dd372 11755#endif
5aac1dac 11756#include <netdb.h>
ed698112
NN
11757int
11758main ()
11759{
5aac1dac 11760struct hostent_data data;
ed698112
NN
11761 ;
11762 return 0;
11763}
11764_ACEOF
11765rm -f conftest.$ac_objext
11766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11767 (eval $ac_compile) 2>conftest.er1
11768 ac_status=$?
11769 grep -v '^ *+' conftest.er1 >conftest.err
11770 rm -f conftest.er1
11771 cat conftest.err >&5
11772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773 (exit $ac_status); } &&
ade710a5
TF
11774 { ac_try='test -z "$ac_c_werror_flag"
11775 || test ! -s conftest.err'
ed698112
NN
11776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11777 (eval $ac_try) 2>&5
11778 ac_status=$?
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); }; } &&
11781 { ac_try='test -s conftest.$ac_objext'
11782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11783 (eval $ac_try) 2>&5
11784 ac_status=$?
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); }; }; then
5aac1dac 11787 libjava_cv_struct_hostent_data=yes
ee9dd372 11788else
ed698112
NN
11789 echo "$as_me: failed program was:" >&5
11790sed 's/^/| /' conftest.$ac_ext >&5
11791
ade710a5 11792libjava_cv_struct_hostent_data=no
ee9dd372 11793fi
ed698112 11794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ee9dd372 11795fi
ade710a5
TF
11796echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
11797echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
5aac1dac 11798 if test "x$libjava_cv_struct_hostent_data" = xyes; then
ed698112
NN
11799
11800cat >>confdefs.h <<\_ACEOF
5aac1dac 11801#define HAVE_STRUCT_HOSTENT_DATA 1
ed698112 11802_ACEOF
5aac1dac
TT
11803
11804 fi
ed698112 11805
ee9dd372
TT
11806fi
11807done
11808
ee9dd372 11809
5aac1dac
TT
11810 # FIXME: libjava source code expects to find a prototype for
11811 # gethostbyaddr_r in netdb.h. The outer check ensures that
11812 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
11813 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
11814 # linkage check is enough, yet C++ code requires proper prototypes.)
ed698112
NN
11815 cat >conftest.$ac_ext <<_ACEOF
11816/* confdefs.h. */
11817_ACEOF
11818cat confdefs.h >>conftest.$ac_ext
11819cat >>conftest.$ac_ext <<_ACEOF
11820/* end confdefs.h. */
5aac1dac 11821#include <netdb.h>
ed698112
NN
11822
11823_ACEOF
5aac1dac 11824if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ed698112
NN
11825 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
11826
11827
11828for ac_func in gethostbyaddr_r
ee9dd372 11829do
ed698112 11830as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
ade710a5
TF
11831echo "$as_me:$LINENO: checking for $ac_func" >&5
11832echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11833if eval "test \"\${$as_ac_var+set}\" = set"; then
ed698112
NN
11834 echo $ECHO_N "(cached) $ECHO_C" >&6
11835else
11836 if test x$gcc_no_link = xyes; then
11837 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11838echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11839 { (exit 1); exit 1; }; }
11840fi
11841cat >conftest.$ac_ext <<_ACEOF
11842/* confdefs.h. */
11843_ACEOF
11844cat confdefs.h >>conftest.$ac_ext
11845cat >>conftest.$ac_ext <<_ACEOF
11846/* end confdefs.h. */
11847/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11849#define $ac_func innocuous_$ac_func
11850
ee9dd372 11851/* System header to define __stub macros and hopefully few prototypes,
ed698112
NN
11852 which can conflict with char $ac_func (); below.
11853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11854 <limits.h> exists even on freestanding compilers. */
ee9dd372 11855
ed698112
NN
11856#ifdef __STDC__
11857# include <limits.h>
11858#else
11859# include <assert.h>
11860#endif
ee9dd372 11861
ed698112
NN
11862#undef $ac_func
11863
ade710a5 11864/* Override any gcc2 internal prototype to avoid an error. */
ed698112
NN
11865#ifdef __cplusplus
11866extern "C"
ade710a5 11867{
ed698112 11868#endif
ade710a5
TF
11869/* We use char because int might match the return type of a gcc2
11870 builtin and then its argument prototype would still apply. */
ed698112 11871char $ac_func ();
ee9dd372
TT
11872/* The GNU C library defines this for functions which it implements
11873 to always fail with ENOSYS. Some functions are actually named
11874 something starting with __ and the normal name is an alias. */
ade710a5 11875#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
ee9dd372 11876choke me
ade710a5
TF
11877#else
11878char (*f) () = $ac_func;
11879#endif
11880#ifdef __cplusplus
11881}
ee9dd372
TT
11882#endif
11883
ed698112
NN
11884int
11885main ()
11886{
ade710a5 11887return f != $ac_func;
ed698112
NN
11888 ;
11889 return 0;
11890}
11891_ACEOF
11892rm -f conftest.$ac_objext conftest$ac_exeext
11893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11894 (eval $ac_link) 2>conftest.er1
11895 ac_status=$?
11896 grep -v '^ *+' conftest.er1 >conftest.err
11897 rm -f conftest.er1
11898 cat conftest.err >&5
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); } &&
ade710a5
TF
11901 { ac_try='test -z "$ac_c_werror_flag"
11902 || test ! -s conftest.err'
ed698112
NN
11903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11904 (eval $ac_try) 2>&5
11905 ac_status=$?
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); }; } &&
11908 { ac_try='test -s conftest$ac_exeext'
11909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910 (eval $ac_try) 2>&5
11911 ac_status=$?
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); }; }; then
11914 eval "$as_ac_var=yes"
11915else
11916 echo "$as_me: failed program was:" >&5
11917sed 's/^/| /' conftest.$ac_ext >&5
11918
ade710a5 11919eval "$as_ac_var=no"
ed698112
NN
11920fi
11921rm -f conftest.err conftest.$ac_objext \
11922 conftest$ac_exeext conftest.$ac_ext
11923fi
ade710a5
TF
11924echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11925echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
ed698112
NN
11926if test `eval echo '${'$as_ac_var'}'` = yes; then
11927 cat >>confdefs.h <<_ACEOF
11928#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11929_ACEOF
11930
11931
11932cat >>confdefs.h <<\_ACEOF
5aac1dac 11933#define HAVE_GETHOSTBYADDR_R 1
ed698112 11934_ACEOF
ee9dd372 11935
5aac1dac
TT
11936 # There are two different kinds of gethostbyaddr_r.
11937 # We look for the one that returns `int'.
11938 # Hopefully this check is robust enough.
ed698112
NN
11939 cat >conftest.$ac_ext <<_ACEOF
11940/* confdefs.h. */
11941_ACEOF
11942cat confdefs.h >>conftest.$ac_ext
11943cat >>conftest.$ac_ext <<_ACEOF
11944/* end confdefs.h. */
5aac1dac 11945#include <netdb.h>
ed698112
NN
11946
11947_ACEOF
5aac1dac 11948if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ed698112
NN
11949 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11950
11951
11952cat >>confdefs.h <<\_ACEOF
5aac1dac 11953#define GETHOSTBYADDR_R_RETURNS_INT 1
ed698112 11954_ACEOF
8107bcf9 11955
5aac1dac
TT
11956fi
11957rm -f conftest*
11958
8107bcf9 11959fi
5aac1dac 11960done
8107bcf9 11961
5aac1dac
TT
11962fi
11963rm -f conftest*
8107bcf9 11964
f994389b 11965
ed698112
NN
11966
11967for ac_func in gethostname
5aac1dac 11968do
ed698112 11969as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
ade710a5
TF
11970echo "$as_me:$LINENO: checking for $ac_func" >&5
11971echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11972if eval "test \"\${$as_ac_var+set}\" = set"; then
ed698112
NN
11973 echo $ECHO_N "(cached) $ECHO_C" >&6
11974else
11975 if test x$gcc_no_link = xyes; then
11976 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11977echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11978 { (exit 1); exit 1; }; }
11979fi
11980cat >conftest.$ac_ext <<_ACEOF
11981/* confdefs.h. */
11982_ACEOF
11983cat confdefs.h >>conftest.$ac_ext
11984cat >>conftest.$ac_ext <<_ACEOF
11985/* end confdefs.h. */
11986/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11988#define $ac_func innocuous_$ac_func
11989
f994389b 11990/* System header to define __stub macros and hopefully few prototypes,
ed698112
NN
11991 which can conflict with char $ac_func (); below.
11992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11993 <limits.h> exists even on freestanding compilers. */
11994
11995#ifdef __STDC__
11996# include <limits.h>
11997#else
11998# include <assert.h>
11999#endif
f994389b 12000
ed698112 12001#undef $ac_func
f994389b 12002
ade710a5 12003/* Override any gcc2 internal prototype to avoid an error. */
ed698112
NN
12004#ifdef __cplusplus
12005extern "C"
ade710a5 12006{
ed698112 12007#endif
ade710a5
TF
12008/* We use char because int might match the return type of a gcc2
12009 builtin and then its argument prototype would still apply. */
ed698112 12010char $ac_func ();
f994389b
TT
12011/* The GNU C library defines this for functions which it implements
12012 to always fail with ENOSYS. Some functions are actually named
12013 something starting with __ and the normal name is an alias. */
ade710a5 12014#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
f994389b 12015choke me
ade710a5
TF
12016#else
12017char (*f) () = $ac_func;
12018#endif
12019#ifdef __cplusplus
12020}
f994389b
TT
12021#endif
12022
ed698112
NN
12023int
12024main ()
12025{
ade710a5 12026return f != $ac_func;
ed698112
NN
12027 ;
12028 return 0;
12029}
12030_ACEOF
12031rm -f conftest.$ac_objext conftest$ac_exeext
12032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12033 (eval $ac_link) 2>conftest.er1
12034 ac_status=$?
12035 grep -v '^ *+' conftest.er1 >conftest.err
12036 rm -f conftest.er1
12037 cat conftest.err >&5
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); } &&
ade710a5
TF
12040 { ac_try='test -z "$ac_c_werror_flag"
12041 || test ! -s conftest.err'
ed698112
NN
12042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12043 (eval $ac_try) 2>&5
12044 ac_status=$?
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); }; } &&
12047 { ac_try='test -s conftest$ac_exeext'
12048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12049 (eval $ac_try) 2>&5
12050 ac_status=$?
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); }; }; then
12053 eval "$as_ac_var=yes"
12054else
12055 echo "$as_me: failed program was:" >&5
12056sed 's/^/| /' conftest.$ac_ext >&5
12057
ade710a5 12058eval "$as_ac_var=no"
ed698112
NN
12059fi
12060rm -f conftest.err conftest.$ac_objext \
12061 conftest$ac_exeext conftest.$ac_ext
12062fi
ade710a5
TF
12063echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12064echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
ed698112
NN
12065if test `eval echo '${'$as_ac_var'}'` = yes; then
12066 cat >>confdefs.h <<_ACEOF
12067#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12068_ACEOF
12069
12070
12071cat >>confdefs.h <<\_ACEOF
5aac1dac 12072#define HAVE_GETHOSTNAME 1
ed698112
NN
12073_ACEOF
12074
12075 cat >conftest.$ac_ext <<_ACEOF
12076/* confdefs.h. */
12077_ACEOF
12078cat confdefs.h >>conftest.$ac_ext
12079cat >>conftest.$ac_ext <<_ACEOF
12080/* end confdefs.h. */
5aac1dac 12081#include <unistd.h>
ed698112
NN
12082
12083_ACEOF
5aac1dac 12084if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ed698112
NN
12085 $EGREP "gethostname" >/dev/null 2>&1; then
12086
12087
12088cat >>confdefs.h <<\_ACEOF
5aac1dac 12089#define HAVE_GETHOSTNAME_DECL 1
ed698112 12090_ACEOF
5aac1dac 12091
f994389b
TT
12092fi
12093rm -f conftest*
f994389b 12094
6b3517ea
RO
12095fi
12096done
12097
12098
ed698112
NN
12099
12100for ac_func in usleep
6b3517ea 12101do
ed698112 12102as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
ade710a5
TF
12103echo "$as_me:$LINENO: checking for $ac_func" >&5
12104echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12105if eval "test \"\${$as_ac_var+set}\" = set"; then
ed698112
NN
12106 echo $ECHO_N "(cached) $ECHO_C" >&6
12107else
12108 if test x$gcc_no_link = xyes; then
12109 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12110echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12111 { (exit 1); exit 1; }; }
12112fi
12113cat >conftest.$ac_ext <<_ACEOF
12114/* confdefs.h. */
12115_ACEOF
12116cat confdefs.h >>conftest.$ac_ext
12117cat >>conftest.$ac_ext <<_ACEOF
12118/* end confdefs.h. */
12119/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12121#define $ac_func innocuous_$ac_func
12122
6b3517ea 12123/* System header to define __stub macros and hopefully few prototypes,
ed698112
NN
12124 which can conflict with char $ac_func (); below.
12125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12126 <limits.h> exists even on freestanding compilers. */
6b3517ea 12127
ed698112
NN
12128#ifdef __STDC__
12129# include <limits.h>
12130#else
12131# include <assert.h>
12132#endif
6b3517ea 12133
ed698112
NN
12134#undef $ac_func
12135
ade710a5 12136/* Override any gcc2 internal prototype to avoid an error. */
ed698112
NN
12137#ifdef __cplusplus
12138extern "C"
ade710a5 12139{
ed698112 12140#endif
ade710a5
TF
12141/* We use char because int might match the return type of a gcc2
12142 builtin and then its argument prototype would still apply. */
ed698112
NN
12143char $ac_func ();
12144/* The GNU C library defines this for functions which it implements
12145 to always fail with ENOSYS. Some functions are actually named
12146 something starting with __ and the normal name is an alias. */
ade710a5 12147#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6b3517ea 12148choke me
ade710a5
TF
12149#else
12150char (*f) () = $ac_func;
12151#endif
12152#ifdef __cplusplus
12153}
6b3517ea
RO
12154#endif
12155
ed698112
NN
12156int
12157main ()
12158{
ade710a5 12159return f != $ac_func;
ed698112
NN
12160 ;
12161 return 0;
12162}
12163_ACEOF
12164rm -f conftest.$ac_objext conftest$ac_exeext
12165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12166 (eval $ac_link) 2>conftest.er1
12167 ac_status=$?
12168 grep -v '^ *+' conftest.er1 >conftest.err
12169 rm -f conftest.er1
12170 cat conftest.err >&5
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); } &&
ade710a5
TF
12173 { ac_try='test -z "$ac_c_werror_flag"
12174 || test ! -s conftest.err'
ed698112
NN
12175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12176 (eval $ac_try) 2>&5
12177 ac_status=$?
12178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179 (exit $ac_status); }; } &&
12180 { ac_try='test -s conftest$ac_exeext'
12181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12182 (eval $ac_try) 2>&5
12183 ac_status=$?
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); }; }; then
12186 eval "$as_ac_var=yes"
12187else
12188 echo "$as_me: failed program was:" >&5
12189sed 's/^/| /' conftest.$ac_ext >&5
12190
ade710a5 12191eval "$as_ac_var=no"
ed698112
NN
12192fi
12193rm -f conftest.err conftest.$ac_objext \
12194 conftest$ac_exeext conftest.$ac_ext
12195fi
ade710a5
TF
12196echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12197echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
ed698112
NN
12198if test `eval echo '${'$as_ac_var'}'` = yes; then
12199 cat >>confdefs.h <<_ACEOF
12200#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12201_ACEOF
12202
12203 cat >conftest.$ac_ext <<_ACEOF
12204/* confdefs.h. */
12205_ACEOF
12206cat confdefs.h >>conftest.$ac_ext
12207cat >>conftest.$ac_ext <<_ACEOF
12208/* end confdefs.h. */
6b3517ea 12209#include <unistd.h>
ed698112
NN
12210
12211_ACEOF
6b3517ea 12212if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ed698112
NN
12213 $EGREP "usleep" >/dev/null 2>&1; then
12214
12215
12216cat >>confdefs.h <<\_ACEOF
6b3517ea 12217#define HAVE_USLEEP_DECL 1
ed698112 12218_ACEOF
6b3517ea
RO
12219
12220fi
12221rm -f conftest*
12222
f994389b 12223fi
5aac1dac 12224done
f994389b 12225
5aac1dac
TT
12226
12227 # Look for these functions in the thread library, but only bother
12228 # if using POSIX threads.
12229 if test "$THREADS" = posix; then
12230 save_LIBS="$LIBS"
12231 LIBS="$LIBS $THREADLIBS"
12232 # Some POSIX thread systems don't have pthread_mutexattr_settype.
12233 # E.g., Solaris.
ed698112
NN
12234
12235
12236for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
5aac1dac 12237do
ed698112 12238as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
ade710a5
TF
12239echo "$as_me:$LINENO: checking for $ac_func" >&5
12240echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12241if eval "test \"\${$as_ac_var+set}\" = set"; then
ed698112
NN
12242 echo $ECHO_N "(cached) $ECHO_C" >&6
12243else
12244 if test x$gcc_no_link = xyes; then
12245 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12246echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12247 { (exit 1); exit 1; }; }
12248fi
12249cat >conftest.$ac_ext <<_ACEOF
12250/* confdefs.h. */
12251_ACEOF
12252cat confdefs.h >>conftest.$ac_ext
12253cat >>conftest.$ac_ext <<_ACEOF
12254/* end confdefs.h. */
12255/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12257#define $ac_func innocuous_$ac_func
12258
f994389b 12259/* System header to define __stub macros and hopefully few prototypes,
ed698112
NN
12260 which can conflict with char $ac_func (); below.
12261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12262 <limits.h> exists even on freestanding compilers. */
f994389b 12263
ed698112
NN
12264#ifdef __STDC__
12265# include <limits.h>
12266#else
12267# include <assert.h>
12268#endif
f994389b 12269
ed698112
NN
12270#undef $ac_func
12271
ade710a5 12272/* Override any gcc2 internal prototype to avoid an error. */
ed698112
NN
12273#ifdef __cplusplus
12274extern "C"
ade710a5 12275{
ed698112 12276#endif
ade710a5
TF
12277/* We use char because int might match the return type of a gcc2
12278 builtin and then its argument prototype would still apply. */
ed698112 12279char $ac_func ();
f994389b
TT
12280/* The GNU C library defines this for functions which it implements
12281 to always fail with ENOSYS. Some functions are actually named
12282 something starting with __ and the normal name is an alias. */
ade710a5 12283#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
f994389b 12284choke me
ade710a5
TF
12285#else
12286char (*f) () = $ac_func;
12287#endif
12288#ifdef __cplusplus
12289}
f994389b
TT
12290#endif
12291
ed698112
NN
12292int
12293main ()
12294{
ade710a5 12295return f != $ac_func;
ed698112
NN
12296 ;
12297 return 0;
12298}
12299_ACEOF
12300rm -f conftest.$ac_objext conftest$ac_exeext
12301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12302 (eval $ac_link) 2>conftest.er1
12303 ac_status=$?
12304 grep -v '^ *+' conftest.er1 >conftest.err
12305 rm -f conftest.er1
12306 cat conftest.err >&5
12307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 (exit $ac_status); } &&
ade710a5
TF
12309 { ac_try='test -z "$ac_c_werror_flag"
12310 || test ! -s conftest.err'
ed698112
NN
12311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12312 (eval $ac_try) 2>&5
12313 ac_status=$?
12314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315 (exit $ac_status); }; } &&
12316 { ac_try='test -s conftest$ac_exeext'
12317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12318 (eval $ac_try) 2>&5
12319 ac_status=$?
12320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321 (exit $ac_status); }; }; then
12322 eval "$as_ac_var=yes"
12323else
12324 echo "$as_me: failed program was:" >&5
12325sed 's/^/| /' conftest.$ac_ext >&5
12326
ade710a5 12327eval "$as_ac_var=no"
ed698112
NN
12328fi
12329rm -f conftest.err conftest.$ac_objext \
12330 conftest$ac_exeext conftest.$ac_ext
12331fi
ade710a5
TF
12332echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12333echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
ed698112
NN
12334if test `eval echo '${'$as_ac_var'}'` = yes; then
12335 cat >>confdefs.h <<_ACEOF
12336#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12337_ACEOF
f994389b 12338
5aac1dac
TT
12339fi
12340done
12341
12342
12343 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
12344 # Solaris 7 the name librt is preferred.
ed698112
NN
12345
12346for ac_func in sched_yield
5aac1dac 12347do
ed698112 12348as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
ade710a5
TF
12349echo "$as_me:$LINENO: checking for $ac_func" >&5
12350echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12351if eval "test \"\${$as_ac_var+set}\" = set"; then
ed698112
NN
12352 echo $ECHO_N "(cached) $ECHO_C" >&6
12353else
12354 if test x$gcc_no_link = xyes; then
12355 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12356echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12357 { (exit 1); exit 1; }; }
12358fi
12359cat >conftest.$ac_ext <<_ACEOF
12360/* confdefs.h. */
12361_ACEOF
12362cat confdefs.h >>conftest.$ac_ext
12363cat >>conftest.$ac_ext <<_ACEOF
12364/* end confdefs.h. */
12365/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12367#define $ac_func innocuous_$ac_func
12368
f994389b 12369/* System header to define __stub macros and hopefully few prototypes,
ed698112
NN
12370 which can conflict with char $ac_func (); below.
12371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12372 <limits.h> exists even on freestanding compilers. */
12373
12374#ifdef __STDC__
12375# include <limits.h>
12376#else
12377# include <assert.h>
12378#endif
f994389b 12379
ed698112 12380#undef $ac_func
f994389b 12381
ade710a5 12382/* Override any gcc2 internal prototype to avoid an error. */
ed698112
NN
12383#ifdef __cplusplus
12384extern "C"
ade710a5 12385{
ed698112 12386#endif
ade710a5
TF
12387/* We use char because int might match the return type of a gcc2
12388 builtin and then its argument prototype would still apply. */
ed698112 12389char $ac_func ();
f994389b
TT
12390/* The GNU C library defines this for functions which it implements
12391 to always fail with ENOSYS. Some functions are actually named
12392 something starting with __ and the normal name is an alias. */
ade710a5 12393#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
f994389b 12394choke me
ade710a5
TF
12395#else
12396char (*f) () = $ac_func;
12397#endif
12398#ifdef __cplusplus
12399}
f994389b
TT
12400#endif
12401
ed698112
NN
12402int
12403main ()
12404{
ade710a5 12405return f != $ac_func;
ed698112
NN
12406 ;
12407 return 0;
12408}
12409_ACEOF
12410rm -f conftest.$ac_objext conftest$ac_exeext
12411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12412 (eval $ac_link) 2>conftest.er1
12413 ac_status=$?
12414 grep -v '^ *+' conftest.er1 >conftest.err
12415 rm -f conftest.er1
12416 cat conftest.err >&5
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); } &&
ade710a5
TF
12419 { ac_try='test -z "$ac_c_werror_flag"
12420 || test ! -s conftest.err'
ed698112
NN
12421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12422 (eval $ac_try) 2>&5
12423 ac_status=$?
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); }; } &&
12426 { ac_try='test -s conftest$ac_exeext'
12427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12428 (eval $ac_try) 2>&5
12429 ac_status=$?
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); }; }; then
12432 eval "$as_ac_var=yes"
12433else
12434 echo "$as_me: failed program was:" >&5
12435sed 's/^/| /' conftest.$ac_ext >&5
12436
ade710a5 12437eval "$as_ac_var=no"
ed698112
NN
12438fi
12439rm -f conftest.err conftest.$ac_objext \
12440 conftest$ac_exeext conftest.$ac_ext
12441fi
ade710a5
TF
12442echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12443echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
ed698112
NN
12444if test `eval echo '${'$as_ac_var'}'` = yes; then
12445 cat >>confdefs.h <<_ACEOF
12446#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12447_ACEOF
12448
12449else
12450
ade710a5
TF
12451 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
12452echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
ed698112
NN
12453if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
12454 echo $ECHO_N "(cached) $ECHO_C" >&6
12455else
12456 ac_check_lib_save_LIBS=$LIBS
5aac1dac 12457LIBS="-lrt $LIBS"
ed698112
NN
12458if test x$gcc_no_link = xyes; then
12459 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12460echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12461 { (exit 1); exit 1; }; }
12462fi
12463cat >conftest.$ac_ext <<_ACEOF
12464/* confdefs.h. */
12465_ACEOF
12466cat confdefs.h >>conftest.$ac_ext
12467cat >>conftest.$ac_ext <<_ACEOF
12468/* end confdefs.h. */
12469
ade710a5 12470/* Override any gcc2 internal prototype to avoid an error. */
ed698112
NN
12471#ifdef __cplusplus
12472extern "C"
12473#endif
ade710a5
TF
12474/* We use char because int might match the return type of a gcc2
12475 builtin and then its argument prototype would still apply. */
ed698112
NN
12476char sched_yield ();
12477int
12478main ()
12479{
ade710a5 12480sched_yield ();
ed698112
NN
12481 ;
12482 return 0;
12483}
12484_ACEOF
12485rm -f conftest.$ac_objext conftest$ac_exeext
12486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12487 (eval $ac_link) 2>conftest.er1
12488 ac_status=$?
12489 grep -v '^ *+' conftest.er1 >conftest.err
12490 rm -f conftest.er1
12491 cat conftest.err >&5
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); } &&
ade710a5
TF
12494 { ac_try='test -z "$ac_c_werror_flag"
12495 || test ! -s conftest.err'
ed698112
NN
12496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12497 (eval $ac_try) 2>&5
12498 ac_status=$?
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); }; } &&
12501 { ac_try='test -s conftest$ac_exeext'
12502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12503 (eval $ac_try) 2>&5
12504 ac_status=$?
12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); }; }; then
12507 ac_cv_lib_rt_sched_yield=yes
12508else
12509 echo "$as_me: failed program was:" >&5
12510sed 's/^/| /' conftest.$ac_ext >&5
12511
ade710a5 12512ac_cv_lib_rt_sched_yield=no
ed698112
NN
12513fi
12514rm -f conftest.err conftest.$ac_objext \
12515 conftest$ac_exeext conftest.$ac_ext
12516LIBS=$ac_check_lib_save_LIBS
12517fi
ade710a5
TF
12518echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
12519echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
ed698112
NN
12520if test $ac_cv_lib_rt_sched_yield = yes; then
12521
12522 cat >>confdefs.h <<\_ACEOF
5aac1dac 12523#define HAVE_SCHED_YIELD 1
ed698112 12524_ACEOF
5aac1dac
TT
12525
12526 THREADLIBS="$THREADLIBS -lrt"
12527 THREADSPEC="$THREADSPEC -lrt"
f994389b 12528else
f994389b 12529
ade710a5
TF
12530 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
12531echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
ed698112
NN
12532if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
12533 echo $ECHO_N "(cached) $ECHO_C" >&6
4b7f154f 12534else
ed698112 12535 ac_check_lib_save_LIBS=$LIBS
5aac1dac 12536LIBS="-lposix4 $LIBS"
ed698112
NN
12537if test x$gcc_no_link = xyes; then
12538 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12539echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12540 { (exit 1); exit 1; }; }
12541fi
12542cat >conftest.$ac_ext <<_ACEOF
12543/* confdefs.h. */
12544_ACEOF
12545cat confdefs.h >>conftest.$ac_ext
12546cat >>conftest.$ac_ext <<_ACEOF
12547/* end confdefs.h. */
12548
ade710a5 12549/* Override any gcc2 internal prototype to avoid an error. */
ed698112
NN
12550#ifdef __cplusplus
12551extern "C"
12552#endif
ade710a5
TF
12553/* We use char because int might match the return type of a gcc2
12554 builtin and then its argument prototype would still apply. */
ed698112
NN
12555char sched_yield ();
12556int
12557main ()
12558{
ade710a5 12559sched_yield ();
ed698112
NN
12560 ;
12561 return 0;
12562}
12563_ACEOF
12564rm -f conftest.$ac_objext conftest$ac_exeext
12565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12566 (eval $ac_link) 2>conftest.er1
12567 ac_status=$?
12568 grep -v '^ *+' conftest.er1 >conftest.err
12569 rm -f conftest.er1
12570 cat conftest.err >&5
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); } &&
ade710a5
TF
12573 { ac_try='test -z "$ac_c_werror_flag"
12574 || test ! -s conftest.err'
ed698112
NN
12575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12576 (eval $ac_try) 2>&5
12577 ac_status=$?
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); }; } &&
12580 { ac_try='test -s conftest$ac_exeext'
12581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12582 (eval $ac_try) 2>&5
12583 ac_status=$?
12584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585 (exit $ac_status); }; }; then
12586 ac_cv_lib_posix4_sched_yield=yes
12587else
12588 echo "$as_me: failed program was:" >&5
12589sed 's/^/| /' conftest.$ac_ext >&5
12590
ade710a5 12591ac_cv_lib_posix4_sched_yield=no
ed698112
NN
12592fi
12593rm -f conftest.err conftest.$ac_objext \
12594 conftest$ac_exeext conftest.$ac_ext
12595LIBS=$ac_check_lib_save_LIBS
12596fi
ade710a5
TF
12597echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
12598echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
ed698112
NN
12599if test $ac_cv_lib_posix4_sched_yield = yes; then
12600
12601 cat >>confdefs.h <<\_ACEOF
5aac1dac 12602#define HAVE_SCHED_YIELD 1
ed698112 12603_ACEOF
5ec89e89 12604
5aac1dac
TT
12605 THREADLIBS="$THREADLIBS -lposix4"
12606 THREADSPEC="$THREADSPEC -lposix4"
58d2986d
AO
12607fi
12608
58d2986d
AO
12609fi
12610
58d2986d 12611fi
5aac1dac 12612done
58d2986d 12613
e59a1e40 12614
ade710a5
TF
12615 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
12616echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
e59a1e40
TT
12617if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
12618 echo $ECHO_N "(cached) $ECHO_C" >&6
12619else
12620 ac_check_lib_save_LIBS=$LIBS
12621LIBS="-lrt $LIBS"
12622if test x$gcc_no_link = xyes; then
12623 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12624echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12625 { (exit 1); exit 1; }; }
12626fi
12627cat >conftest.$ac_ext <<_ACEOF
12628/* confdefs.h. */
12629_ACEOF
12630cat confdefs.h >>conftest.$ac_ext
12631cat >>conftest.$ac_ext <<_ACEOF
12632/* end confdefs.h. */
12633
ade710a5 12634/* Override any gcc2 internal prototype to avoid an error. */
e59a1e40
TT
12635#ifdef __cplusplus
12636extern "C"
12637#endif
ade710a5
TF
12638/* We use char because int might match the return type of a gcc2
12639 builtin and then its argument prototype would still apply. */
e59a1e40
TT
12640char clock_gettime ();
12641int
12642main ()
12643{
ade710a5 12644clock_gettime ();
e59a1e40
TT
12645 ;
12646 return 0;
12647}
12648_ACEOF
12649rm -f conftest.$ac_objext conftest$ac_exeext
12650if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12651 (eval $ac_link) 2>conftest.er1
12652 ac_status=$?
12653 grep -v '^ *+' conftest.er1 >conftest.err
12654 rm -f conftest.er1
12655 cat conftest.err >&5
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); } &&
ade710a5
TF
12658 { ac_try='test -z "$ac_c_werror_flag"
12659 || test ! -s conftest.err'
e59a1e40
TT
12660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12661 (eval $ac_try) 2>&5
12662 ac_status=$?
12663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664 (exit $ac_status); }; } &&
12665 { ac_try='test -s conftest$ac_exeext'
12666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12667 (eval $ac_try) 2>&5
12668 ac_status=$?
12669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670 (exit $ac_status); }; }; then
12671 ac_cv_lib_rt_clock_gettime=yes
12672else
12673 echo "$as_me: failed program was:" >&5
12674sed 's/^/| /' conftest.$ac_ext >&5
12675
ade710a5 12676ac_cv_lib_rt_clock_gettime=no
e59a1e40
TT
12677fi
12678rm -f conftest.err conftest.$ac_objext \
12679 conftest$ac_exeext conftest.$ac_ext
12680LIBS=$ac_check_lib_save_LIBS
12681fi
ade710a5
TF
12682echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
12683echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
e59a1e40
TT
12684if test $ac_cv_lib_rt_clock_gettime = yes; then
12685
12686
12687cat >>confdefs.h <<\_ACEOF
12688#define HAVE_CLOCK_GETTIME 1
12689_ACEOF
12690
12691 case "$THREADSPEC" in
12692 *-lrt*) ;;
dfd8572b
TT
12693 *)
12694 THREADSPEC="$THREADSPEC -lrt"
12695 THREADLIBS="$THREADLIBS -lrt"
12696 ;;
e59a1e40
TT
12697 esac
12698fi
12699
12700
5aac1dac 12701 LIBS="$save_LIBS"
58d2986d 12702
5aac1dac
TT
12703 # We can save a little space at runtime if the mutex has m_count
12704 # or __m_count. This is a nice hack for Linux.
ed698112
NN
12705 cat >conftest.$ac_ext <<_ACEOF
12706/* confdefs.h. */
12707_ACEOF
12708cat confdefs.h >>conftest.$ac_ext
12709cat >>conftest.$ac_ext <<_ACEOF
12710/* end confdefs.h. */
5aac1dac 12711#include <pthread.h>
ed698112
NN
12712int
12713main ()
12714{
58d2986d 12715
5aac1dac 12716 extern pthread_mutex_t *mutex; int q = mutex->m_count;
ed698112
NN
12717
12718 ;
12719 return 0;
12720}
12721_ACEOF
12722rm -f conftest.$ac_objext
12723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12724 (eval $ac_compile) 2>conftest.er1
12725 ac_status=$?
12726 grep -v '^ *+' conftest.er1 >conftest.err
12727 rm -f conftest.er1
12728 cat conftest.err >&5
12729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730 (exit $ac_status); } &&
ade710a5
TF
12731 { ac_try='test -z "$ac_c_werror_flag"
12732 || test ! -s conftest.err'
ed698112
NN
12733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12734 (eval $ac_try) 2>&5
12735 ac_status=$?
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); }; } &&
12738 { ac_try='test -s conftest.$ac_objext'
12739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12740 (eval $ac_try) 2>&5
12741 ac_status=$?
12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); }; }; then
12744
12745cat >>confdefs.h <<\_ACEOF
5aac1dac 12746#define PTHREAD_MUTEX_HAVE_M_COUNT 1
ed698112 12747_ACEOF
58d2986d 12748
5aac1dac 12749else
ed698112
NN
12750 echo "$as_me: failed program was:" >&5
12751sed 's/^/| /' conftest.$ac_ext >&5
12752
12753
12754 cat >conftest.$ac_ext <<_ACEOF
12755/* confdefs.h. */
12756_ACEOF
12757cat confdefs.h >>conftest.$ac_ext
12758cat >>conftest.$ac_ext <<_ACEOF
12759/* end confdefs.h. */
5aac1dac 12760#include <pthread.h>
ed698112
NN
12761int
12762main ()
12763{
58d2986d 12764
5aac1dac 12765 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
ed698112
NN
12766
12767 ;
12768 return 0;
12769}
12770_ACEOF
12771rm -f conftest.$ac_objext
12772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12773 (eval $ac_compile) 2>conftest.er1
12774 ac_status=$?
12775 grep -v '^ *+' conftest.er1 >conftest.err
12776 rm -f conftest.er1
12777 cat conftest.err >&5
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); } &&
ade710a5
TF
12780 { ac_try='test -z "$ac_c_werror_flag"
12781 || test ! -s conftest.err'
ed698112
NN
12782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12783 (eval $ac_try) 2>&5
12784 ac_status=$?
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); }; } &&
12787 { ac_try='test -s conftest.$ac_objext'
12788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12789 (eval $ac_try) 2>&5
12790 ac_status=$?
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); }; }; then
12793
12794cat >>confdefs.h <<\_ACEOF
5aac1dac 12795#define PTHREAD_MUTEX_HAVE___M_COUNT 1
ed698112 12796_ACEOF
58d2986d 12797
5aac1dac 12798else
ed698112
NN
12799 echo "$as_me: failed program was:" >&5
12800sed 's/^/| /' conftest.$ac_ext >&5
12801
5aac1dac 12802fi
ed698112 12803rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5aac1dac 12804fi
ed698112 12805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5aac1dac 12806 fi
5ec89e89 12807
5aac1dac
TT
12808 # We require a way to get the time.
12809 time_found=no
ed698112
NN
12810
12811
12812
12813for ac_func in gettimeofday time ftime
5aac1dac 12814do
ed698112 12815as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
ade710a5
TF
12816echo "$as_me:$LINENO: checking for $ac_func" >&5
12817echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12818if eval "test \"\${$as_ac_var+set}\" = set"; then
ed698112
NN
12819 echo $ECHO_N "(cached) $ECHO_C" >&6
12820else
12821 if test x$gcc_no_link = xyes; then
12822 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12823echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12824 { (exit 1); exit 1; }; }
12825fi
12826cat >conftest.$ac_ext <<_ACEOF
12827/* confdefs.h. */
12828_ACEOF
12829cat confdefs.h >>conftest.$ac_ext
12830cat >>conftest.$ac_ext <<_ACEOF
12831/* end confdefs.h. */
12832/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12834#define $ac_func innocuous_$ac_func
12835
5aac1dac 12836/* System header to define __stub macros and hopefully few prototypes,
ed698112
NN
12837 which can conflict with char $ac_func (); below.
12838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12839 <limits.h> exists even on freestanding compilers. */
12840
12841#ifdef __STDC__
12842# include <limits.h>
12843#else
12844# include <assert.h>
12845#endif
b5ee195f 12846
ed698112 12847#undef $ac_func
5aac1dac 12848
ade710a5 12849/* Override any gcc2 internal prototype to avoid an error. */
ed698112
NN
12850#ifdef __cplusplus
12851extern "C"
ade710a5 12852{
ed698112 12853#endif
ade710a5
TF
12854/* We use char because int might match the return type of a gcc2
12855 builtin and then its argument prototype would still apply. */
ed698112 12856char $ac_func ();
5aac1dac
TT
12857/* The GNU C library defines this for functions which it implements
12858 to always fail with ENOSYS. Some functions are actually named
12859 something starting with __ and the normal name is an alias. */
ade710a5 12860#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5aac1dac 12861choke me
ade710a5
TF
12862#else
12863char (*f) () = $ac_func;
12864#endif
12865#ifdef __cplusplus
12866}
5aac1dac
TT
12867#endif
12868
ed698112
NN
12869int
12870main ()
12871{
ade710a5 12872return f != $ac_func;
ed698112
NN
12873 ;
12874 return 0;
12875}
12876_ACEOF
12877rm -f conftest.$ac_objext conftest$ac_exeext
12878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12879 (eval $ac_link) 2>conftest.er1
12880 ac_status=$?
12881 grep -v '^ *+' conftest.er1 >conftest.err
12882 rm -f conftest.er1
12883 cat conftest.err >&5
12884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885 (exit $ac_status); } &&
ade710a5
TF
12886 { ac_try='test -z "$ac_c_werror_flag"
12887 || test ! -s conftest.err'
ed698112
NN
12888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12889 (eval $ac_try) 2>&5
12890 ac_status=$?
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); }; } &&
12893 { ac_try='test -s conftest$ac_exeext'
12894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12895 (eval $ac_try) 2>&5
12896 ac_status=$?
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); }; }; then
12899 eval "$as_ac_var=yes"
12900else
12901 echo "$as_me: failed program was:" >&5
12902sed 's/^/| /' conftest.$ac_ext >&5
12903
ade710a5 12904eval "$as_ac_var=no"
ed698112
NN
12905fi
12906rm -f conftest.err conftest.$ac_objext \
12907 conftest$ac_exeext conftest.$ac_ext
12908fi
ade710a5
TF
12909echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12910echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
ed698112
NN
12911if test `eval echo '${'$as_ac_var'}'` = yes; then
12912 cat >>confdefs.h <<_ACEOF
12913#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12914_ACEOF
5aac1dac 12915 time_found=yes
f994389b 12916fi
5aac1dac 12917done
f994389b 12918
5aac1dac 12919 if test "$time_found" = no; then
ed698112
NN
12920 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
12921echo "$as_me: error: no function found to get the time" >&2;}
12922 { (exit 1); exit 1; }; }
5aac1dac 12923 fi
f994389b 12924
ed698112
NN
12925
12926for ac_func in memmove
5aac1dac 12927do
ed698112 12928as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
ade710a5
TF
12929echo "$as_me:$LINENO: checking for $ac_func" >&5
12930echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12931if eval "test \"\${$as_ac_var+set}\" = set"; then
ed698112
NN
12932 echo $ECHO_N "(cached) $ECHO_C" >&6
12933else
12934 if test x$gcc_no_link = xyes; then
12935 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12936echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12937 { (exit 1); exit 1; }; }
12938fi
12939cat >conftest.$ac_ext <<_ACEOF
12940/* confdefs.h. */
12941_ACEOF
12942cat confdefs.h >>conftest.$ac_ext
12943cat >>conftest.$ac_ext <<_ACEOF
12944/* end confdefs.h. */
12945/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12947#define $ac_func innocuous_$ac_func
12948
5aac1dac 12949/* System header to define __stub macros and hopefully few prototypes,
ed698112
NN
12950 which can conflict with char $ac_func (); below.
12951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12952 <limits.h> exists even on freestanding compilers. */
f994389b 12953
ed698112
NN
12954#ifdef __STDC__
12955# include <limits.h>
12956#else
12957# include <assert.h>
12958#endif
ee9dd372 12959
ed698112
NN
12960#undef $ac_func
12961
ade710a5 12962/* Override any gcc2 internal prototype to avoid an error. */
ed698112
NN
12963#ifdef __cplusplus
12964extern "C"
ade710a5 12965{
ed698112 12966#endif
ade710a5
TF
12967/* We use char because int might match the return type of a gcc2
12968 builtin and then its argument prototype would still apply. */
ed698112 12969char $ac_func ();
5aac1dac
TT
12970/* The GNU C library defines this for functions which it implements
12971 to always fail with ENOSYS. Some functions are actually named
12972 something starting with __ and the normal name is an alias. */
ade710a5 12973#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5aac1dac 12974choke me
ade710a5
TF
12975#else
12976char (*f) () = $ac_func;
12977#endif
12978#ifdef __cplusplus
12979}
5aac1dac 12980#endif
ee9dd372 12981
ed698112
NN
12982int
12983main ()
12984{
ade710a5 12985return f != $ac_func;
ed698112
NN
12986 ;
12987 return 0;
12988}
12989_ACEOF
12990rm -f conftest.$ac_objext conftest$ac_exeext
12991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12992 (eval $ac_link) 2>conftest.er1
12993 ac_status=$?
12994 grep -v '^ *+' conftest.er1 >conftest.err
12995 rm -f conftest.er1
12996 cat conftest.err >&5
12997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 (exit $ac_status); } &&
ade710a5
TF
12999 { ac_try='test -z "$ac_c_werror_flag"
13000 || test ! -s conftest.err'
ed698112
NN
13001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13002 (eval $ac_try) 2>&5
13003 ac_status=$?
13004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); }; } &&
13006 { ac_try='test -s conftest$ac_exeext'
13007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13008 (eval $ac_try) 2>&5
13009 ac_status=$?
13010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011 (exit $ac_status); }; }; then
13012 eval "$as_ac_var=yes"
13013else
13014 echo "$as_me: failed program was:" >&5
13015sed 's/^/| /' conftest.$ac_ext >&5
13016
ade710a5 13017eval "$as_ac_var=no"
ed698112
NN
13018fi
13019rm -f conftest.err conftest.$ac_objext \
13020 conftest$ac_exeext conftest.$ac_ext
13021fi
ade710a5
TF
13022echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13023echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
ed698112
NN
13024if test `eval echo '${'$as_ac_var'}'` = yes; then
13025 cat >>confdefs.h <<_ACEOF
13026#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13027_ACEOF
ee9dd372 13028
ee9dd372 13029fi
5aac1dac 13030done
ee9dd372
TT
13031
13032
5aac1dac
TT
13033 # We require memcpy.
13034 memcpy_found=no
ed698112
NN
13035
13036for ac_func in memcpy
5aac1dac 13037do
ed698112 13038as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
ade710a5
TF
13039echo "$as_me:$LINENO: checking for $ac_func" >&5
13040echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13041if eval "test \"\${$as_ac_var+set}\" = set"; then
ed698112
NN
13042 echo $ECHO_N "(cached) $ECHO_C" >&6
13043else
13044 if test x$gcc_no_link = xyes; then
13045 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13046echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13047 { (exit 1); exit 1; }; }
13048fi
13049cat >conftest.$ac_ext <<_ACEOF
13050/* confdefs.h. */
13051_ACEOF
13052cat confdefs.h >>conftest.$ac_ext
13053cat >>conftest.$ac_ext <<_ACEOF
13054/* end confdefs.h. */
13055/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13057#define $ac_func innocuous_$ac_func
13058
5aac1dac 13059/* System header to define __stub macros and hopefully few prototypes,
ed698112
NN
13060 which can conflict with char $ac_func (); below.
13061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13062 <limits.h> exists even on freestanding compilers. */
13063
13064#ifdef __STDC__
13065# include <limits.h>
13066#else
13067# include <assert.h>
13068#endif
5aac1dac 13069
ed698112 13070#undef $ac_func
ee9dd372 13071
ade710a5 13072/* Override any gcc2 internal prototype to avoid an error. */
ed698112
NN
13073#ifdef __cplusplus
13074extern "C"
ade710a5 13075{
ed698112 13076#endif
ade710a5
TF
13077/* We use char because int might match the return type of a gcc2
13078 builtin and then its argument prototype would still apply. */
ed698112 13079char $ac_func ();
5aac1dac
TT
13080/* The GNU C library defines this for functions which it implements
13081 to always fail with ENOSYS. Some functions are actually named
13082 something starting with __ and the normal name is an alias. */
ade710a5 13083#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5aac1dac 13084choke me
ade710a5
TF
13085#else
13086char (*f) () = $ac_func;
13087#endif
13088#ifdef __cplusplus
13089}
5aac1dac 13090#endif
ee9dd372 13091
ed698112
NN
13092int
13093main ()
13094{
ade710a5 13095return f != $ac_func;
ed698112
NN
13096 ;
13097 return 0;
13098}
13099_ACEOF
13100rm -f conftest.$ac_objext conftest$ac_exeext
13101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13102 (eval $ac_link) 2>conftest.er1
13103 ac_status=$?
13104 grep -v '^ *+' conftest.er1 >conftest.err
13105 rm -f conftest.er1
13106 cat conftest.err >&5
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); } &&
ade710a5
TF
13109 { ac_try='test -z "$ac_c_werror_flag"
13110 || test ! -s conftest.err'
ed698112
NN
13111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13112 (eval $ac_try) 2>&5
13113 ac_status=$?
13114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115 (exit $ac_status); }; } &&
13116 { ac_try='test -s conftest$ac_exeext'
13117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13118 (eval $ac_try) 2>&5
13119 ac_status=$?
13120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121 (exit $ac_status); }; }; then
13122 eval "$as_ac_var=yes"
13123else
13124 echo "$as_me: failed program was:" >&5
13125sed 's/^/| /' conftest.$ac_ext >&5
13126
ade710a5 13127eval "$as_ac_var=no"
ed698112
NN
13128fi
13129rm -f conftest.err conftest.$ac_objext \
13130 conftest$ac_exeext conftest.$ac_ext
13131fi
ade710a5
TF
13132echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13133echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
ed698112
NN
13134if test `eval echo '${'$as_ac_var'}'` = yes; then
13135 cat >>confdefs.h <<_ACEOF
13136#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13137_ACEOF
5aac1dac 13138 memcpy_found=yes
dbf45a01 13139fi
5aac1dac 13140done
dbf45a01 13141
5aac1dac 13142 if test "$memcpy_found" = no; then
ed698112
NN
13143 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
13144echo "$as_me: error: memcpy is required" >&2;}
13145 { (exit 1); exit 1; }; }
5aac1dac 13146 fi
2a67186a 13147 # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
ade710a5
TF
13148 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13149echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
ed698112
NN
13150if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13151 echo $ECHO_N "(cached) $ECHO_C" >&6
5aac1dac 13152else
ed698112 13153 ac_check_lib_save_LIBS=$LIBS
5aac1dac 13154LIBS="-ldl $LIBS"
ed698112
NN
13155if test x$gcc_no_link = xyes; then
13156 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13157echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13158 { (exit 1); exit 1; }; }
13159fi
13160cat >conftest.$ac_ext <<_ACEOF
13161/* confdefs.h. */
13162_ACEOF
13163cat confdefs.h >>conftest.$ac_ext
13164cat >>conftest.$ac_ext <<_ACEOF
13165/* end confdefs.h. */
13166
ade710a5 13167/* Override any gcc2 internal prototype to avoid an error. */
ed698112
NN
13168#ifdef __cplusplus
13169extern "C"
13170#endif
ade710a5
TF
13171/* We use char because int might match the return type of a gcc2
13172 builtin and then its argument prototype would still apply. */
ed698112
NN
13173char dlopen ();
13174int
13175main ()
13176{
ade710a5 13177dlopen ();
ed698112
NN
13178 ;
13179 return 0;
13180}
13181_ACEOF
13182rm -f conftest.$ac_objext conftest$ac_exeext
13183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13184 (eval $ac_link) 2>conftest.er1
13185 ac_status=$?
13186 grep -v '^ *+' conftest.er1 >conftest.err
13187 rm -f conftest.er1
13188 cat conftest.err >&5
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); } &&
ade710a5
TF
13191 { ac_try='test -z "$ac_c_werror_flag"
13192 || test ! -s conftest.err'
ed698112
NN
13193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13194 (eval $ac_try) 2>&5
13195 ac_status=$?
13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); }; } &&
13198 { ac_try='test -s conftest$ac_exeext'
13199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13200 (eval $ac_try) 2>&5
13201 ac_status=$?
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); }; }; then
13204 ac_cv_lib_dl_dlopen=yes
13205else
13206 echo "$as_me: failed program was:" >&5
13207sed 's/^/| /' conftest.$ac_ext >&5
13208
ade710a5 13209ac_cv_lib_dl_dlopen=no
ed698112
NN
13210fi
13211rm -f conftest.err conftest.$ac_objext \
13212 conftest$ac_exeext conftest.$ac_ext
13213LIBS=$ac_check_lib_save_LIBS
13214fi
ade710a5
TF
13215echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13216echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
ed698112
NN
13217if test $ac_cv_lib_dl_dlopen = yes; then
13218
13219
13220cat >>confdefs.h <<\_ACEOF
5aac1dac 13221#define HAVE_DLOPEN 1
ed698112 13222_ACEOF
1b5a2139 13223
2a67186a
AT
13224else
13225
ade710a5
TF
13226 echo "$as_me:$LINENO: checking for dlopen in -ldld" >&5
13227echo $ECHO_N "checking for dlopen in -ldld... $ECHO_C" >&6
2a67186a
AT
13228if test "${ac_cv_lib_dld_dlopen+set}" = set; then
13229 echo $ECHO_N "(cached) $ECHO_C" >&6
13230else
13231 ac_check_lib_save_LIBS=$LIBS
13232LIBS="-ldld $LIBS"
13233if test x$gcc_no_link = xyes; then
13234 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13235echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13236 { (exit 1); exit 1; }; }
13237fi
13238cat >conftest.$ac_ext <<_ACEOF
13239/* confdefs.h. */
13240_ACEOF
13241cat confdefs.h >>conftest.$ac_ext
13242cat >>conftest.$ac_ext <<_ACEOF
13243/* end confdefs.h. */
13244
ade710a5 13245/* Override any gcc2 internal prototype to avoid an error. */
2a67186a
AT
13246#ifdef __cplusplus
13247extern "C"
13248#endif
ade710a5
TF
13249/* We use char because int might match the return type of a gcc2
13250 builtin and then its argument prototype would still apply. */
2a67186a
AT
13251char dlopen ();
13252int
13253main ()
13254{
ade710a5 13255dlopen ();
2a67186a
AT
13256 ;
13257 return 0;
13258}
13259_ACEOF
13260rm -f conftest.$ac_objext conftest$ac_exeext
13261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13262 (eval $ac_link) 2>conftest.er1
13263 ac_status=$?
13264 grep -v '^ *+' conftest.er1 >conftest.err
13265 rm -f conftest.er1
13266 cat conftest.err >&5
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); } &&
ade710a5
TF
13269 { ac_try='test -z "$ac_c_werror_flag"
13270 || test ! -s conftest.err'
2a67186a
AT
13271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13272 (eval $ac_try) 2>&5
13273 ac_status=$?
13274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 (exit $ac_status); }; } &&
13276 { ac_try='test -s conftest$ac_exeext'
13277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13278 (eval $ac_try) 2>&5
13279 ac_status=$?
13280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281 (exit $ac_status); }; }; then
13282 ac_cv_lib_dld_dlopen=yes
13283else
13284 echo "$as_me: failed program was:" >&5
13285sed 's/^/| /' conftest.$ac_ext >&5
13286
ade710a5 13287ac_cv_lib_dld_dlopen=no
2a67186a
AT
13288fi
13289rm -f conftest.err conftest.$ac_objext \
13290 conftest$ac_exeext conftest.$ac_ext
13291LIBS=$ac_check_lib_save_LIBS
13292fi
ade710a5
TF
13293echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dlopen" >&5
13294echo "${ECHO_T}$ac_cv_lib_dld_dlopen" >&6
2a67186a
AT
13295if test $ac_cv_lib_dld_dlopen = yes; then
13296
13297
13298cat >>confdefs.h <<\_ACEOF
13299#define HAVE_DLOPEN 1
13300_ACEOF
13301
13302fi
13303
5aac1dac 13304fi
1b5a2139 13305
1b5a2139 13306
5aac1dac
TT
13307 # Some library-finding code we stole from Tcl.
13308 #--------------------------------------------------------------------
13309 # Check for the existence of the -lsocket and -lnsl libraries.
13310 # The order here is important, so that they end up in the right
13311 # order in the command line generated by make. Here are some
13312 # special considerations:
13313 # 1. Use "connect" and "accept" to check for -lsocket, and
13314 # "gethostbyname" to check for -lnsl.
13315 # 2. Use each function name only once: can't redo a check because
13316 # autoconf caches the results of the last check and won't redo it.
13317 # 3. Use -lnsl and -lsocket only if they supply procedures that
13318 # aren't already present in the normal libraries. This is because
13319 # IRIX 5.2 has libraries, but they aren't needed and they're
13320 # bogus: they goof up name resolution if used.
13321 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
13322 # To get around this problem, check for both libraries together
13323 # if -lsocket doesn't work by itself.
13324 #--------------------------------------------------------------------
1b5a2139 13325
ade710a5
TF
13326 echo "$as_me:$LINENO: checking for socket libraries" >&5
13327echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
ed698112
NN
13328if test "${gcj_cv_lib_sockets+set}" = set; then
13329 echo $ECHO_N "(cached) $ECHO_C" >&6
5aac1dac
TT
13330else
13331 gcj_cv_lib_sockets=
13332 gcj_checkBoth=0
13333 unset ac_cv_func_connect
ade710a5
TF
13334 echo "$as_me:$LINENO: checking for connect" >&5
13335echo $ECHO_N "checking for connect... $ECHO_C" >&6
ed698112
NN
13336if test "${ac_cv_func_connect+set}" = set; then
13337 echo $ECHO_N "(cached) $ECHO_C" >&6
13338else
13339 if test x$gcc_no_link = xyes; then
13340 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13341echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13342 { (exit 1); exit 1; }; }
13343fi
13344cat >conftest.$ac_ext <<_ACEOF
13345/* confdefs.h. */
13346_ACEOF
13347cat confdefs.h >>conftest.$ac_ext
13348cat >>conftest.$ac_ext <<_ACEOF
13349/* end confdefs.h. */
13350/* Define connect to an innocuous variant, in case <limits.h> declares connect.
13351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13352#define connect innocuous_connect
13353
5aac1dac 13354/* System header to define __stub macros and hopefully few prototypes,
ed698112
NN
13355 which can conflict with char connect (); below.
13356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13357 <limits.h> exists even on freestanding compilers. */
13358
13359#ifdef __STDC__
13360# include <limits.h>
13361#else
13362# include <assert.h>
13363#endif
5aac1dac 13364
ed698112 13365#undef connect
7bee4c4c 13366
ade710a5 13367/* Override any gcc2 internal prototype to avoid an error. */
ed698112
NN
13368#ifdef __cplusplus
13369extern "C"
ade710a5 13370{
ed698112 13371#endif
ade710a5
TF
13372/* We use char because int might match the return type of a gcc2
13373 builtin and then its argument prototype would still apply. */
ed698112 13374char connect ();
5aac1dac
TT
13375/* The GNU C library defines this for functions which it implements
13376 to always fail with ENOSYS. Some functions are actually named
13377 something starting with __ and the normal name is an alias. */
ade710a5 13378#if defined (__stub_connect) || defined (__stub___connect)
5aac1dac 13379choke me
ade710a5
TF
13380#else
13381char (*f) () = connect;
13382#endif
13383#ifdef __cplusplus
13384}
5aac1dac
TT
13385#endif
13386
ed698112
NN
13387int
13388main ()
13389{
ade710a5 13390return f != connect;
ed698112
NN
13391 ;
13392 return 0;
13393}
13394_ACEOF
13395rm -f conftest.$ac_objext conftest$ac_exeext
13396if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13397 (eval $ac_link) 2>conftest.er1
13398 ac_status=$?
13399 grep -v '^ *+' conftest.er1 >conftest.err
13400 rm -f conftest.er1
13401 cat conftest.err >&5
13402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403 (exit $ac_status); } &&
ade710a5
TF
13404 { ac_try='test -z "$ac_c_werror_flag"
13405 || test ! -s conftest.err'
ed698112
NN
13406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13407 (eval $ac_try) 2>&5
13408 ac_status=$?
13409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410 (exit $ac_status); }; } &&
13411 { ac_try='test -s conftest$ac_exeext'
13412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13413 (eval $ac_try) 2>&5
13414 ac_status=$?
13415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416 (exit $ac_status); }; }; then
13417 ac_cv_func_connect=yes
13418else
13419 echo "$as_me: failed program was:" >&5
13420sed 's/^/| /' conftest.$ac_ext >&5
13421
ade710a5 13422ac_cv_func_connect=no
ed698112
NN
13423fi
13424rm -f conftest.err conftest.$ac_objext \
13425 conftest$ac_exeext conftest.$ac_ext
13426fi
ade710a5
TF
13427echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
13428echo "${ECHO_T}$ac_cv_func_connect" >&6
ed698112 13429if test $ac_cv_func_connect = yes; then
5aac1dac
TT
13430 gcj_checkSocket=0
13431else
ed698112 13432 gcj_checkSocket=1
5aac1dac
TT
13433fi
13434
13435 if test "$gcj_checkSocket" = 1; then
13436 unset ac_cv_func_connect
ade710a5
TF
13437 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
13438echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
ed698112
NN
13439if test "${ac_cv_lib_socket_main+set}" = set; then
13440 echo $ECHO_N "(cached) $ECHO_C" >&6
ee9dd372 13441else
ed698112 13442 ac_check_lib_save_LIBS=$LIBS
5aac1dac 13443LIBS="-lsocket $LIBS"
ed698112
NN
13444if test x$gcc_no_link = xyes; then
13445 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13446echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13447 { (exit 1); exit 1; }; }
ee9dd372 13448fi
ed698112
NN
13449cat >conftest.$ac_ext <<_ACEOF
13450/* confdefs.h. */
13451_ACEOF
13452cat confdefs.h >>conftest.$ac_ext
13453cat >>conftest.$ac_ext <<_ACEOF
13454/* end confdefs.h. */
5aac1dac 13455
ed698112
NN
13456
13457int
13458main ()
13459{
ade710a5 13460main ();
ed698112
NN
13461 ;
13462 return 0;
13463}
13464_ACEOF
13465rm -f conftest.$ac_objext conftest$ac_exeext
13466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13467 (eval $ac_link) 2>conftest.er1
13468 ac_status=$?
13469 grep -v '^ *+' conftest.er1 >conftest.err
13470 rm -f conftest.er1
13471 cat conftest.err >&5
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); } &&
ade710a5
TF
13474 { ac_try='test -z "$ac_c_werror_flag"
13475 || test ! -s conftest.err'
ed698112
NN
13476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13477 (eval $ac_try) 2>&5
13478 ac_status=$?
13479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480 (exit $ac_status); }; } &&
13481 { ac_try='test -s conftest$ac_exeext'
13482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13483 (eval $ac_try) 2>&5
13484 ac_status=$?
13485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486 (exit $ac_status); }; }; then
13487 ac_cv_lib_socket_main=yes
13488else
13489 echo "$as_me: failed program was:" >&5
13490sed 's/^/| /' conftest.$ac_ext >&5
13491
ade710a5 13492ac_cv_lib_socket_main=no
ed698112
NN
13493fi
13494rm -f conftest.err conftest.$ac_objext \
13495 conftest$ac_exeext conftest.$ac_ext
13496LIBS=$ac_check_lib_save_LIBS
13497fi
ade710a5
TF
13498echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
13499echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
ed698112 13500if test $ac_cv_lib_socket_main = yes; then
5aac1dac 13501 gcj_cv_lib_sockets="-lsocket"
ee9dd372 13502else
ed698112 13503 gcj_checkBoth=1
ee9dd372 13504fi
ee9dd372 13505
5aac1dac
TT
13506 fi
13507 if test "$gcj_checkBoth" = 1; then
13508 gcj_oldLibs=$LIBS
13509 LIBS="$LIBS -lsocket -lnsl"
13510 unset ac_cv_func_accept
ade710a5
TF
13511 echo "$as_me:$LINENO: checking for accept" >&5
13512echo $ECHO_N "checking for accept... $ECHO_C" >&6
ed698112
NN
13513if test "${ac_cv_func_accept+set}" = set; then
13514 echo $ECHO_N "(cached) $ECHO_C" >&6
13515else
13516 if test x$gcc_no_link = xyes; then
13517 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13518echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13519 { (exit 1); exit 1; }; }
13520fi
13521cat >conftest.$ac_ext <<_ACEOF
13522/* confdefs.h. */
13523_ACEOF
13524cat confdefs.h >>conftest.$ac_ext
13525cat >>conftest.$ac_ext <<_ACEOF
13526/* end confdefs.h. */
13527/* Define accept to an innocuous variant, in case <limits.h> declares accept.
13528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13529#define accept innocuous_accept
13530
5aac1dac 13531/* System header to define __stub macros and hopefully few prototypes,
ed698112
NN
13532 which can conflict with char accept (); below.
13533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13534 <limits.h> exists even on freestanding compilers. */
5aac1dac 13535
ed698112
NN
13536#ifdef __STDC__
13537# include <limits.h>
13538#else
13539# include <assert.h>
13540#endif
5aac1dac 13541
ed698112
NN
13542#undef accept
13543
ade710a5 13544/* Override any gcc2 internal prototype to avoid an error. */
ed698112
NN
13545#ifdef __cplusplus
13546extern "C"
ade710a5 13547{
ed698112 13548#endif
ade710a5
TF
13549/* We use char because int might match the return type of a gcc2
13550 builtin and then its argument prototype would still apply. */
ed698112 13551char accept ();
5aac1dac
TT
13552/* The GNU C library defines this for functions which it implements
13553 to always fail with ENOSYS. Some functions are actually named
13554 something starting with __ and the normal name is an alias. */
ade710a5 13555#if defined (__stub_accept) || defined (__stub___accept)
5aac1dac 13556choke me
ade710a5
TF
13557#else
13558char (*f) () = accept;
13559#endif
13560#ifdef __cplusplus
13561}
5aac1dac
TT
13562#endif
13563
ed698112
NN
13564int
13565main ()
13566{
ade710a5 13567return f != accept;
ed698112
NN
13568 ;
13569 return 0;
13570}
13571_ACEOF
13572rm -f conftest.$ac_objext conftest$ac_exeext
13573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13574 (eval $ac_link) 2>conftest.er1
13575 ac_status=$?
13576 grep -v '^ *+' conftest.er1 >conftest.err
13577 rm -f conftest.er1
13578 cat conftest.err >&5
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); } &&
ade710a5
TF
13581 { ac_try='test -z "$ac_c_werror_flag"
13582 || test ! -s conftest.err'
ed698112
NN
13583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13584 (eval $ac_try) 2>&5
13585 ac_status=$?
13586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 (exit $ac_status); }; } &&
13588 { ac_try='test -s conftest$ac_exeext'
13589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13590 (eval $ac_try) 2>&5
13591 ac_status=$?
13592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593 (exit $ac_status); }; }; then
13594 ac_cv_func_accept=yes
13595else
13596 echo "$as_me: failed program was:" >&5
13597sed 's/^/| /' conftest.$ac_ext >&5
13598
ade710a5 13599ac_cv_func_accept=no
ed698112
NN
13600fi
13601rm -f conftest.err conftest.$ac_objext \
13602 conftest$ac_exeext conftest.$ac_ext
13603fi
ade710a5
TF
13604echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
13605echo "${ECHO_T}$ac_cv_func_accept" >&6
ed698112 13606if test $ac_cv_func_accept = yes; then
5aac1dac
TT
13607 gcj_checkNsl=0
13608 gcj_cv_lib_sockets="-lsocket -lnsl"
04942eac 13609fi
04942eac 13610
5aac1dac
TT
13611 unset ac_cv_func_accept
13612 LIBS=$gcj_oldLibs
13613 fi
13614 unset ac_cv_func_gethostbyname
13615 gcj_oldLibs=$LIBS
13616 LIBS="$LIBS $gcj_cv_lib_sockets"
ade710a5
TF
13617 echo "$as_me:$LINENO: checking for gethostbyname" >&5
13618echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
ed698112
NN
13619if test "${ac_cv_func_gethostbyname+set}" = set; then
13620 echo $ECHO_N "(cached) $ECHO_C" >&6
13621else
13622 if test x$gcc_no_link = xyes; then
13623 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13624echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13625 { (exit 1); exit 1; }; }
13626fi
13627cat >conftest.$ac_ext <<_ACEOF
13628/* confdefs.h. */
13629_ACEOF
13630cat confdefs.h >>conftest.$ac_ext
13631cat >>conftest.$ac_ext <<_ACEOF
13632/* end confdefs.h. */
13633/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
13634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13635#define gethostbyname innocuous_gethostbyname
13636
5aac1dac 13637/* System header to define __stub macros and hopefully few prototypes,
ed698112
NN
13638 which can conflict with char gethostbyname (); below.
13639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13640 <limits.h> exists even on freestanding compilers. */
13641
13642#ifdef __STDC__
13643# include <limits.h>
13644#else
13645# include <assert.h>
13646#endif
5aac1dac 13647
ed698112 13648#undef gethostbyname
5aac1dac 13649
ade710a5 13650/* Override any gcc2 internal prototype to avoid an error. */
ed698112
NN
13651#ifdef __cplusplus
13652extern "C"
ade710a5 13653{
ed698112 13654#endif
ade710a5
TF
13655/* We use char because int might match the return type of a gcc2
13656 builtin and then its argument prototype would still apply. */
ed698112 13657char gethostbyname ();
5aac1dac
TT
13658/* The GNU C library defines this for functions which it implements
13659 to always fail with ENOSYS. Some functions are actually named
13660 something starting with __ and the normal name is an alias. */
ade710a5 13661#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5aac1dac 13662choke me
ade710a5
TF
13663#else
13664char (*f) () = gethostbyname;
13665#endif
13666#ifdef __cplusplus
13667}
5aac1dac
TT
13668#endif
13669
ed698112
NN
13670int
13671main ()
13672{
ade710a5 13673return f != gethostbyname;
ed698112
NN
13674 ;
13675 return 0;
13676}
13677_ACEOF
13678rm -f conftest.$ac_objext conftest$ac_exeext
13679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13680 (eval $ac_link) 2>conftest.er1
13681 ac_status=$?
13682 grep -v '^ *+' conftest.er1 >conftest.err
13683 rm -f conftest.er1
13684 cat conftest.err >&5
13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); } &&
ade710a5
TF
13687 { ac_try='test -z "$ac_c_werror_flag"
13688 || test ! -s conftest.err'
ed698112
NN
13689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13690 (eval $ac_try) 2>&5
13691 ac_status=$?
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); }; } &&
13694 { ac_try='test -s conftest$ac_exeext'
13695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13696 (eval $ac_try) 2>&5
13697 ac_status=$?
13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); }; }; then
13700 ac_cv_func_gethostbyname=yes
13701else
13702 echo "$as_me: failed program was:" >&5
13703sed 's/^/| /' conftest.$ac_ext >&5
13704
ade710a5 13705ac_cv_func_gethostbyname=no
ed698112
NN
13706fi
13707rm -f conftest.err conftest.$ac_objext \
13708 conftest$ac_exeext conftest.$ac_ext
13709fi
ade710a5
TF
13710echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
13711echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
ed698112 13712if test $ac_cv_func_gethostbyname = yes; then
5aac1dac 13713 :
ee9dd372 13714else
ade710a5
TF
13715 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
13716echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
ed698112
NN
13717if test "${ac_cv_lib_nsl_main+set}" = set; then
13718 echo $ECHO_N "(cached) $ECHO_C" >&6
4048d336 13719else
ed698112 13720 ac_check_lib_save_LIBS=$LIBS
5aac1dac 13721LIBS="-lnsl $LIBS"
ed698112
NN
13722if test x$gcc_no_link = xyes; then
13723 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13724echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13725 { (exit 1); exit 1; }; }
4048d336 13726fi
ed698112
NN
13727cat >conftest.$ac_ext <<_ACEOF
13728/* confdefs.h. */
13729_ACEOF
13730cat confdefs.h >>conftest.$ac_ext
13731cat >>conftest.$ac_ext <<_ACEOF
13732/* end confdefs.h. */
5aac1dac 13733
ed698112
NN
13734
13735int
13736main ()
13737{
ade710a5 13738main ();
ed698112
NN
13739 ;
13740 return 0;
13741}
13742_ACEOF
13743rm -f conftest.$ac_objext conftest$ac_exeext
13744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13745 (eval $ac_link) 2>conftest.er1
13746 ac_status=$?
13747 grep -v '^ *+' conftest.er1 >conftest.err
13748 rm -f conftest.er1
13749 cat conftest.err >&5
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); } &&
ade710a5
TF
13752 { ac_try='test -z "$ac_c_werror_flag"
13753 || test ! -s conftest.err'
ed698112
NN
13754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13755 (eval $ac_try) 2>&5
13756 ac_status=$?
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); }; } &&
13759 { ac_try='test -s conftest$ac_exeext'
13760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13761 (eval $ac_try) 2>&5
13762 ac_status=$?
13763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764 (exit $ac_status); }; }; then
13765 ac_cv_lib_nsl_main=yes
13766else
13767 echo "$as_me: failed program was:" >&5
13768sed 's/^/| /' conftest.$ac_ext >&5
13769
ade710a5 13770ac_cv_lib_nsl_main=no
ed698112
NN
13771fi
13772rm -f conftest.err conftest.$ac_objext \
13773 conftest$ac_exeext conftest.$ac_ext
13774LIBS=$ac_check_lib_save_LIBS
13775fi
ade710a5
TF
13776echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
13777echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
ed698112 13778if test $ac_cv_lib_nsl_main = yes; then
5aac1dac 13779 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
4048d336
AM
13780fi
13781
5aac1dac 13782fi
4048d336 13783
5aac1dac
TT
13784 unset ac_cv_func_gethostbyname
13785 LIBS=$gcj_oldLIBS
4048d336 13786
ed698112 13787fi
ade710a5
TF
13788echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
13789echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
5aac1dac 13790 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
ee9dd372 13791
5aac1dac 13792 if test "$with_system_zlib" = yes; then
ade710a5
TF
13793 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
13794echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
ed698112
NN
13795if test "${ac_cv_lib_z_deflate+set}" = set; then
13796 echo $ECHO_N "(cached) $ECHO_C" >&6
a3e174ea 13797else
ed698112 13798 ac_check_lib_save_LIBS=$LIBS
5aac1dac 13799LIBS="-lz $LIBS"
ed698112
NN
13800if test x$gcc_no_link = xyes; then
13801 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13802echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13803 { (exit 1); exit 1; }; }
13804fi
13805cat >conftest.$ac_ext <<_ACEOF
13806/* confdefs.h. */
13807_ACEOF
13808cat confdefs.h >>conftest.$ac_ext
13809cat >>conftest.$ac_ext <<_ACEOF
13810/* end confdefs.h. */
13811
ade710a5 13812/* Override any gcc2 internal prototype to avoid an error. */
ed698112
NN
13813#ifdef __cplusplus
13814extern "C"
13815#endif
ade710a5
TF
13816/* We use char because int might match the return type of a gcc2
13817 builtin and then its argument prototype would still apply. */
ed698112
NN
13818char deflate ();
13819int
13820main ()
13821{
ade710a5 13822deflate ();
ed698112
NN
13823 ;
13824 return 0;
13825}
13826_ACEOF
13827rm -f conftest.$ac_objext conftest$ac_exeext
13828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13829 (eval $ac_link) 2>conftest.er1
13830 ac_status=$?
13831 grep -v '^ *+' conftest.er1 >conftest.err
13832 rm -f conftest.er1
13833 cat conftest.err >&5
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); } &&
ade710a5
TF
13836 { ac_try='test -z "$ac_c_werror_flag"
13837 || test ! -s conftest.err'
ed698112
NN
13838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13839 (eval $ac_try) 2>&5
13840 ac_status=$?
13841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); }; } &&
13843 { ac_try='test -s conftest$ac_exeext'
13844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13845 (eval $ac_try) 2>&5
13846 ac_status=$?
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); }; }; then
13849 ac_cv_lib_z_deflate=yes
13850else
13851 echo "$as_me: failed program was:" >&5
13852sed 's/^/| /' conftest.$ac_ext >&5
13853
ade710a5 13854ac_cv_lib_z_deflate=no
ed698112
NN
13855fi
13856rm -f conftest.err conftest.$ac_objext \
13857 conftest$ac_exeext conftest.$ac_ext
13858LIBS=$ac_check_lib_save_LIBS
13859fi
ade710a5
TF
13860echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
13861echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
ed698112 13862if test $ac_cv_lib_z_deflate = yes; then
5aac1dac 13863 ZLIBSPEC=-lz
a3e174ea 13864else
ed698112 13865 ZLIBSPEC=
a3e174ea 13866fi
a3e174ea 13867
5aac1dac
TT
13868 fi
13869
97b8365c
TT
13870 LIBMAGIC=
13871 echo "$as_me:$LINENO: checking for magic_open in -lmagic" >&5
13872echo $ECHO_N "checking for magic_open in -lmagic... $ECHO_C" >&6
13873if test "${ac_cv_lib_magic_magic_open+set}" = set; then
13874 echo $ECHO_N "(cached) $ECHO_C" >&6
13875else
13876 ac_check_lib_save_LIBS=$LIBS
13877LIBS="-lmagic $LIBS"
13878if test x$gcc_no_link = xyes; then
13879 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13880echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13881 { (exit 1); exit 1; }; }
13882fi
13883cat >conftest.$ac_ext <<_ACEOF
13884/* confdefs.h. */
13885_ACEOF
13886cat confdefs.h >>conftest.$ac_ext
13887cat >>conftest.$ac_ext <<_ACEOF
13888/* end confdefs.h. */
13889
13890/* Override any gcc2 internal prototype to avoid an error. */
13891#ifdef __cplusplus
13892extern "C"
13893#endif
13894/* We use char because int might match the return type of a gcc2
13895 builtin and then its argument prototype would still apply. */
13896char magic_open ();
13897int
13898main ()
13899{
13900magic_open ();
13901 ;
13902 return 0;
13903}
13904_ACEOF
13905rm -f conftest.$ac_objext conftest$ac_exeext
13906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13907 (eval $ac_link) 2>conftest.er1
13908 ac_status=$?
13909 grep -v '^ *+' conftest.er1 >conftest.err
13910 rm -f conftest.er1
13911 cat conftest.err >&5
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); } &&
13914 { ac_try='test -z "$ac_c_werror_flag"
13915 || test ! -s conftest.err'
13916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13917 (eval $ac_try) 2>&5
13918 ac_status=$?
13919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920 (exit $ac_status); }; } &&
13921 { ac_try='test -s conftest$ac_exeext'
13922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13923 (eval $ac_try) 2>&5
13924 ac_status=$?
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); }; }; then
13927 ac_cv_lib_magic_magic_open=yes
13928else
13929 echo "$as_me: failed program was:" >&5
13930sed 's/^/| /' conftest.$ac_ext >&5
13931
13932ac_cv_lib_magic_magic_open=no
13933fi
13934rm -f conftest.err conftest.$ac_objext \
13935 conftest$ac_exeext conftest.$ac_ext
13936LIBS=$ac_check_lib_save_LIBS
13937fi
13938echo "$as_me:$LINENO: result: $ac_cv_lib_magic_magic_open" >&5
13939echo "${ECHO_T}$ac_cv_lib_magic_magic_open" >&6
13940if test $ac_cv_lib_magic_magic_open = yes; then
13941
13942
13943cat >>confdefs.h <<\_ACEOF
13944#define HAVE_MAGIC_OPEN 1
13945_ACEOF
13946
13947 LIBMAGIC="-lmagic"
13948fi
13949
13950
13951
5aac1dac
TT
13952 # Test for Gtk stuff, if asked for.
13953 if test "$use_gtk_awt" = yes; then
ed698112 13954
a1ddb355 13955 succeeded=no
5aac1dac 13956
a1ddb355
MK
13957 if test -z "$PKG_CONFIG"; then
13958 # Extract the first word of "pkg-config", so it can be a program name with args.
29e531ff 13959set dummy pkg-config; ac_word=$2
ade710a5
TF
13960echo "$as_me:$LINENO: checking for $ac_word" >&5
13961echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ed698112
NN
13962if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13963 echo $ECHO_N "(cached) $ECHO_C" >&6
5aac1dac 13964else
ed698112
NN
13965 case $PKG_CONFIG in
13966 [\\/]* | ?:[\\/]*)
29e531ff 13967 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5aac1dac 13968 ;;
5aac1dac 13969 *)
ed698112
NN
13970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13971for as_dir in $PATH
13972do
13973 IFS=$as_save_IFS
13974 test -z "$as_dir" && as_dir=.
13975 for ac_exec_ext in '' $ac_executable_extensions; do
ade710a5 13976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ed698112
NN
13977 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13979 break 2
13980 fi
13981done
13982done
13983
29e531ff 13984 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
5aac1dac
TT
13985 ;;
13986esac
13987fi
ed698112 13988PKG_CONFIG=$ac_cv_path_PKG_CONFIG
ade710a5 13989
29e531ff 13990if test -n "$PKG_CONFIG"; then
ade710a5
TF
13991 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13992echo "${ECHO_T}$PKG_CONFIG" >&6
5aac1dac 13993else
ade710a5
TF
13994 echo "$as_me:$LINENO: result: no" >&5
13995echo "${ECHO_T}no" >&6
a3e174ea
AO
13996fi
13997
29e531ff
TF
13998 fi
13999
a1ddb355
MK
14000 if test "$PKG_CONFIG" = "no" ; then
14001 echo "*** The pkg-config script could not be found. Make sure it is"
14002 echo "*** in your path, or set the PKG_CONFIG environment variable"
14003 echo "*** to the full path to pkg-config."
14004 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14005 else
14006 PKG_CONFIG_MIN_VERSION=0.9.0
14007 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ade710a5
TF
14008 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
14009echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
5aac1dac 14010
f0faf24b 14011 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
ade710a5
TF
14012 echo "$as_me:$LINENO: result: yes" >&5
14013echo "${ECHO_T}yes" >&6
a1ddb355 14014 succeeded=yes
5aac1dac 14015
ade710a5
TF
14016 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
14017echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
f0faf24b 14018 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
ade710a5
TF
14019 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
14020echo "${ECHO_T}$GTK_CFLAGS" >&6
5aac1dac 14021
ade710a5
TF
14022 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
14023echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
f0faf24b 14024 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
ade710a5
TF
14025 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
14026echo "${ECHO_T}$GTK_LIBS" >&6
a1ddb355
MK
14027 else
14028 GTK_CFLAGS=""
14029 GTK_LIBS=""
ed698112 14030 ## If we have a custom action on failure, don't print errors, but
a1ddb355 14031 ## do set a variable so people can do so.
f0faf24b 14032 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
a1ddb355
MK
14033 echo $GTK_PKG_ERRORS
14034 fi
5aac1dac 14035
ed698112
NN
14036
14037
5aac1dac 14038 else
a1ddb355
MK
14039 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14040 echo "*** See http://www.freedesktop.org/software/pkgconfig"
5aac1dac
TT
14041 fi
14042 fi
a3e174ea 14043
a1ddb355
MK
14044 if test $succeeded = yes; then
14045 :
14046 else
ed698112
NN
14047 { { 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
14048echo "$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;}
14049 { (exit 1); exit 1; }; }
5aac1dac 14050 fi
a3e174ea 14051
a3e174ea 14052
ed698112
NN
14053
14054
14055
a1ddb355 14056 succeeded=no
ccfe7e46 14057
a1ddb355
MK
14058 if test -z "$PKG_CONFIG"; then
14059 # Extract the first word of "pkg-config", so it can be a program name with args.
29e531ff 14060set dummy pkg-config; ac_word=$2
ade710a5
TF
14061echo "$as_me:$LINENO: checking for $ac_word" >&5
14062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ed698112
NN
14063if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14064 echo $ECHO_N "(cached) $ECHO_C" >&6
5aac1dac 14065else
ed698112
NN
14066 case $PKG_CONFIG in
14067 [\\/]* | ?:[\\/]*)
29e531ff 14068 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5aac1dac 14069 ;;
5aac1dac 14070 *)
ed698112
NN
14071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14072for as_dir in $PATH
14073do
14074 IFS=$as_save_IFS
14075 test -z "$as_dir" && as_dir=.
14076 for ac_exec_ext in '' $ac_executable_extensions; do
ade710a5 14077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ed698112
NN
14078 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14080 break 2
14081 fi
14082done
14083done
14084
29e531ff 14085 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
5aac1dac
TT
14086 ;;
14087esac
14088fi
ed698112 14089PKG_CONFIG=$ac_cv_path_PKG_CONFIG
ade710a5 14090
29e531ff 14091if test -n "$PKG_CONFIG"; then
ade710a5
TF
14092 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14093echo "${ECHO_T}$PKG_CONFIG" >&6
5aac1dac 14094else
ade710a5
TF
14095 echo "$as_me:$LINENO: result: no" >&5
14096echo "${ECHO_T}no" >&6
5aac1dac
TT
14097fi
14098
29e531ff
TF
14099 fi
14100
1e567c43
TF
14101 if test "$PKG_CONFIG" = "no" ; then
14102 echo "*** The pkg-config script could not be found. Make sure it is"
14103 echo "*** in your path, or set the PKG_CONFIG environment variable"
14104 echo "*** to the full path to pkg-config."
14105 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14106 else
14107 PKG_CONFIG_MIN_VERSION=0.9.0
14108 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ade710a5
TF
14109 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
14110echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
1e567c43 14111
f0faf24b 14112 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
ade710a5
TF
14113 echo "$as_me:$LINENO: result: yes" >&5
14114echo "${ECHO_T}yes" >&6
1e567c43
TF
14115 succeeded=yes
14116
ade710a5
TF
14117 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
14118echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
f0faf24b 14119 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
ade710a5
TF
14120 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
14121echo "${ECHO_T}$GLIB_CFLAGS" >&6
1e567c43 14122
ade710a5
TF
14123 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
14124echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
f0faf24b 14125 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
ade710a5
TF
14126 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
14127echo "${ECHO_T}$GLIB_LIBS" >&6
1e567c43
TF
14128 else
14129 GLIB_CFLAGS=""
14130 GLIB_LIBS=""
ed698112 14131 ## If we have a custom action on failure, don't print errors, but
1e567c43 14132 ## do set a variable so people can do so.
f0faf24b 14133 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
1e567c43
TF
14134 echo $GLIB_PKG_ERRORS
14135 fi
14136
ed698112
NN
14137
14138
1e567c43
TF
14139 else
14140 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14141 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14142 fi
14143 fi
14144
14145 if test $succeeded = yes; then
14146 :
14147 else
ed698112
NN
14148 { { 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
14149echo "$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;}
14150 { (exit 1); exit 1; }; }
1e567c43
TF
14151 fi
14152
1e567c43 14153
ed698112
NN
14154
14155
14156
1e567c43
TF
14157 succeeded=no
14158
14159 if test -z "$PKG_CONFIG"; then
14160 # Extract the first word of "pkg-config", so it can be a program name with args.
14161set dummy pkg-config; ac_word=$2
ade710a5
TF
14162echo "$as_me:$LINENO: checking for $ac_word" >&5
14163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ed698112
NN
14164if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14165 echo $ECHO_N "(cached) $ECHO_C" >&6
1e567c43 14166else
ed698112
NN
14167 case $PKG_CONFIG in
14168 [\\/]* | ?:[\\/]*)
1e567c43
TF
14169 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14170 ;;
1e567c43 14171 *)
ed698112
NN
14172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14173for as_dir in $PATH
14174do
14175 IFS=$as_save_IFS
14176 test -z "$as_dir" && as_dir=.
14177 for ac_exec_ext in '' $ac_executable_extensions; do
ade710a5 14178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ed698112
NN
14179 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14181 break 2
14182 fi
14183done
14184done
14185
1e567c43
TF
14186 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14187 ;;
14188esac
14189fi
ed698112 14190PKG_CONFIG=$ac_cv_path_PKG_CONFIG
ade710a5 14191
1e567c43 14192if test -n "$PKG_CONFIG"; then
ade710a5
TF
14193 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14194echo "${ECHO_T}$PKG_CONFIG" >&6
1e567c43 14195else
ade710a5
TF
14196 echo "$as_me:$LINENO: result: no" >&5
14197echo "${ECHO_T}no" >&6
1e567c43
TF
14198fi
14199
14200 fi
14201
a1ddb355
MK
14202 if test "$PKG_CONFIG" = "no" ; then
14203 echo "*** The pkg-config script could not be found. Make sure it is"
14204 echo "*** in your path, or set the PKG_CONFIG environment variable"
14205 echo "*** to the full path to pkg-config."
14206 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
5aac1dac 14207 else
a1ddb355
MK
14208 PKG_CONFIG_MIN_VERSION=0.9.0
14209 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ade710a5
TF
14210 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
14211echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
a3e174ea 14212
a1ddb355 14213 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
ade710a5
TF
14214 echo "$as_me:$LINENO: result: yes" >&5
14215echo "${ECHO_T}yes" >&6
a1ddb355 14216 succeeded=yes
60a78ccf 14217
ade710a5
TF
14218 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
14219echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
a1ddb355 14220 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
ade710a5
TF
14221 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
14222echo "${ECHO_T}$LIBART_CFLAGS" >&6
5aac1dac 14223
ade710a5
TF
14224 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
14225echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
a1ddb355 14226 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
ade710a5
TF
14227 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
14228echo "${ECHO_T}$LIBART_LIBS" >&6
a1ddb355
MK
14229 else
14230 LIBART_CFLAGS=""
14231 LIBART_LIBS=""
ed698112 14232 ## If we have a custom action on failure, don't print errors, but
a1ddb355
MK
14233 ## do set a variable so people can do so.
14234 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
14235 echo $LIBART_PKG_ERRORS
14236 fi
5aac1dac 14237
ed698112
NN
14238
14239
a1ddb355
MK
14240 else
14241 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14242 echo "*** See http://www.freedesktop.org/software/pkgconfig"
5aac1dac
TT
14243 fi
14244 fi
14245
a1ddb355
MK
14246 if test $succeeded = yes; then
14247 :
5aac1dac 14248 else
ed698112
NN
14249 { { 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
14250echo "$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;}
14251 { (exit 1); exit 1; }; }
5aac1dac 14252 fi
ee9dd372 14253
ed698112
NN
14254
14255
3f8dfdd4
TF
14256
14257 # We require the XTest Extension to support java.awt.Robot.
ade710a5
TF
14258 echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
14259echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
3f8dfdd4
TF
14260if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
14261 echo $ECHO_N "(cached) $ECHO_C" >&6
14262else
14263 ac_check_lib_save_LIBS=$LIBS
14264LIBS="-lXtst ${X_LIBS} $LIBS"
14265if test x$gcc_no_link = xyes; then
14266 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14267echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14268 { (exit 1); exit 1; }; }
14269fi
14270cat >conftest.$ac_ext <<_ACEOF
14271/* confdefs.h. */
14272_ACEOF
14273cat confdefs.h >>conftest.$ac_ext
14274cat >>conftest.$ac_ext <<_ACEOF
14275/* end confdefs.h. */
14276
ade710a5 14277/* Override any gcc2 internal prototype to avoid an error. */
3f8dfdd4
TF
14278#ifdef __cplusplus
14279extern "C"
14280#endif
ade710a5
TF
14281/* We use char because int might match the return type of a gcc2
14282 builtin and then its argument prototype would still apply. */
3f8dfdd4
TF
14283char XTestQueryExtension ();
14284int
14285main ()
14286{
ade710a5 14287XTestQueryExtension ();
3f8dfdd4
TF
14288 ;
14289 return 0;
14290}
14291_ACEOF
14292rm -f conftest.$ac_objext conftest$ac_exeext
14293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14294 (eval $ac_link) 2>conftest.er1
14295 ac_status=$?
14296 grep -v '^ *+' conftest.er1 >conftest.err
14297 rm -f conftest.er1
14298 cat conftest.err >&5
14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); } &&
ade710a5
TF
14301 { ac_try='test -z "$ac_c_werror_flag"
14302 || test ! -s conftest.err'
3f8dfdd4
TF
14303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14304 (eval $ac_try) 2>&5
14305 ac_status=$?
14306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307 (exit $ac_status); }; } &&
14308 { ac_try='test -s conftest$ac_exeext'
14309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14310 (eval $ac_try) 2>&5
14311 ac_status=$?
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); }; }; then
14314 ac_cv_lib_Xtst_XTestQueryExtension=yes
14315else
14316 echo "$as_me: failed program was:" >&5
14317sed 's/^/| /' conftest.$ac_ext >&5
14318
ade710a5 14319ac_cv_lib_Xtst_XTestQueryExtension=no
3f8dfdd4
TF
14320fi
14321rm -f conftest.err conftest.$ac_objext \
14322 conftest$ac_exeext conftest.$ac_ext
14323LIBS=$ac_check_lib_save_LIBS
14324fi
ade710a5
TF
14325echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
14326echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
3f8dfdd4
TF
14327if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
14328 true
14329else
14330 { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
14331echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
14332 { (exit 1); exit 1; }; }
14333fi
14334
5aac1dac
TT
14335 fi
14336
14337 # On Solaris, and maybe other architectures, the Boehm collector
14338 # requires -ldl.
14339 if test "$GC" = boehm; then
ade710a5
TF
14340 echo "$as_me:$LINENO: checking for main in -ldl" >&5
14341echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
ed698112
NN
14342if test "${ac_cv_lib_dl_main+set}" = set; then
14343 echo $ECHO_N "(cached) $ECHO_C" >&6
5aac1dac 14344else
ed698112 14345 ac_check_lib_save_LIBS=$LIBS
5aac1dac 14346LIBS="-ldl $LIBS"
ed698112
NN
14347if test x$gcc_no_link = xyes; then
14348 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14349echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14350 { (exit 1); exit 1; }; }
5aac1dac 14351fi
ed698112
NN
14352cat >conftest.$ac_ext <<_ACEOF
14353/* confdefs.h. */
14354_ACEOF
14355cat confdefs.h >>conftest.$ac_ext
14356cat >>conftest.$ac_ext <<_ACEOF
14357/* end confdefs.h. */
5aac1dac 14358
ed698112
NN
14359
14360int
14361main ()
14362{
ade710a5 14363main ();
ed698112
NN
14364 ;
14365 return 0;
14366}
14367_ACEOF
14368rm -f conftest.$ac_objext conftest$ac_exeext
14369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14370 (eval $ac_link) 2>conftest.er1
14371 ac_status=$?
14372 grep -v '^ *+' conftest.er1 >conftest.err
14373 rm -f conftest.er1
14374 cat conftest.err >&5
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); } &&
ade710a5
TF
14377 { ac_try='test -z "$ac_c_werror_flag"
14378 || test ! -s conftest.err'
ed698112
NN
14379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14380 (eval $ac_try) 2>&5
14381 ac_status=$?
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 (exit $ac_status); }; } &&
14384 { ac_try='test -s conftest$ac_exeext'
14385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14386 (eval $ac_try) 2>&5
14387 ac_status=$?
14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389 (exit $ac_status); }; }; then
14390 ac_cv_lib_dl_main=yes
14391else
14392 echo "$as_me: failed program was:" >&5
14393sed 's/^/| /' conftest.$ac_ext >&5
14394
ade710a5 14395ac_cv_lib_dl_main=no
ed698112
NN
14396fi
14397rm -f conftest.err conftest.$ac_objext \
14398 conftest$ac_exeext conftest.$ac_ext
14399LIBS=$ac_check_lib_save_LIBS
14400fi
ade710a5
TF
14401echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
14402echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
ed698112 14403if test $ac_cv_lib_dl_main = yes; then
5aac1dac 14404 SYSTEMSPEC="$SYSTEMSPEC -ldl"
5aac1dac 14405fi
ee9dd372 14406
5aac1dac 14407 fi
17fdfd9f 14408fi
5aac1dac 14409
349e19d4
AL
14410# Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
14411case $build in
14412 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
14413 *) CLASSPATH_SEPARATOR=':' ;;
14414esac
14415
14416
5aac1dac
TT
14417# We must search the source tree for java.lang, since we still don't
14418# have libgcj.jar nor java/lang/*.class
14419GCJ_SAVE_CPPFLAGS=$CPPFLAGS
14420CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
14421
14422# Since some classes depend on this one, we need its source available
14423# before we can do any GCJ compilation test :-(
14424if test ! -f gnu/classpath/Configuration.java; then
14425 test -d gnu || mkdir gnu
14426 test -d gnu/classpath || mkdir gnu/classpath
10cbe699
TT
14427 # Note that it is not crucial that all the values here be correct.
14428 sed -e "s,@prefix@,$prefix," \
14429 -e "s,@VERSION@,$VERSION," \
14430 -e "s,@LIBDEBUG@,false," \
14431 -e "s,@INIT_LOAD_LIBRARY@,false," \
14432 -e "s,@@,$LIBGCJDEBUG," \
14433 -e "s,@default_toolkit@,$TOOLKIT," \
14434 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
14435 -e "s,@GTK_CAIRO_ENABLED@,false," \
14436 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
5aac1dac
TT
14437 > gnu/classpath/Configuration.java
14438 # We do not want to redirect the output of the grep below to /dev/null,
14439 # but we add /dev/null to the input list so that grep will print the
14440 # filename of Configuration.java in case it finds any matches.
10cbe699 14441 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
80d8905c
MK
14442 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
14443echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
ed698112 14444 { (exit 1); exit 1; }; }
5aac1dac
TT
14445 fi
14446fi
14447
ed698112
NN
14448if test -n "$ac_tool_prefix"; then
14449 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
5aac1dac 14450set dummy ${ac_tool_prefix}gcj; ac_word=$2
ade710a5
TF
14451echo "$as_me:$LINENO: checking for $ac_word" >&5
14452echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ed698112
NN
14453if test "${ac_cv_prog_GCJ+set}" = set; then
14454 echo $ECHO_N "(cached) $ECHO_C" >&6
5aac1dac
TT
14455else
14456 if test -n "$GCJ"; then
14457 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
14458else
ed698112
NN
14459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14460for as_dir in $PATH
14461do
14462 IFS=$as_save_IFS
14463 test -z "$as_dir" && as_dir=.
14464 for ac_exec_ext in '' $ac_executable_extensions; do
ade710a5 14465 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ed698112
NN
14466 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
14467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14468 break 2
14469 fi
14470done
14471done
14472
5aac1dac
TT
14473fi
14474fi
ed698112 14475GCJ=$ac_cv_prog_GCJ
5aac1dac 14476if test -n "$GCJ"; then
ade710a5
TF
14477 echo "$as_me:$LINENO: result: $GCJ" >&5
14478echo "${ECHO_T}$GCJ" >&6
ee9dd372 14479else
ade710a5
TF
14480 echo "$as_me:$LINENO: result: no" >&5
14481echo "${ECHO_T}no" >&6
5aac1dac 14482fi
0659e0e3 14483
ed698112 14484fi
5aac1dac 14485if test -z "$ac_cv_prog_GCJ"; then
ed698112 14486 ac_ct_GCJ=$GCJ
5aac1dac
TT
14487 # Extract the first word of "gcj", so it can be a program name with args.
14488set dummy gcj; ac_word=$2
ade710a5
TF
14489echo "$as_me:$LINENO: checking for $ac_word" >&5
14490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ed698112
NN
14491if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
14492 echo $ECHO_N "(cached) $ECHO_C" >&6
5aac1dac 14493else
ed698112
NN
14494 if test -n "$ac_ct_GCJ"; then
14495 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
5aac1dac 14496else
ed698112
NN
14497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14498for as_dir in $PATH
14499do
14500 IFS=$as_save_IFS
14501 test -z "$as_dir" && as_dir=.
14502 for ac_exec_ext in '' $ac_executable_extensions; do
ade710a5 14503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ed698112
NN
14504 ac_cv_prog_ac_ct_GCJ="gcj"
14505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14506 break 2
14507 fi
14508done
14509done
14510
ade710a5 14511 test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
5aac1dac
TT
14512fi
14513fi
ed698112
NN
14514ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
14515if test -n "$ac_ct_GCJ"; then
ade710a5
TF
14516 echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
14517echo "${ECHO_T}$ac_ct_GCJ" >&6
0659e0e3 14518else
ade710a5
TF
14519 echo "$as_me:$LINENO: result: no" >&5
14520echo "${ECHO_T}no" >&6
0659e0e3 14521fi
5aac1dac 14522
ade710a5 14523 GCJ=$ac_ct_GCJ
02809848
PB
14524else
14525 GCJ="$ac_cv_prog_GCJ"
ee9dd372 14526fi
ee9dd372 14527
5aac1dac 14528 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
ed698112 14529
5aac1dac
TT
14530
14531
5aac1dac 14532
b0fa81ee
TT
14533# Now remove it.
14534rm -f gnu/classpath/Configuration.java
14535
5aac1dac
TT
14536CPPFLAGS=$GCJ_SAVE_CPPFLAGS
14537
ade710a5
TF
14538echo "$as_me:$LINENO: checking for void *" >&5
14539echo $ECHO_N "checking for void *... $ECHO_C" >&6
8107bc83
KC
14540if test "${ac_cv_type_void_p+set}" = set; then
14541 echo $ECHO_N "(cached) $ECHO_C" >&6
14542else
14543 cat >conftest.$ac_ext <<_ACEOF
14544/* confdefs.h. */
14545_ACEOF
14546cat confdefs.h >>conftest.$ac_ext
14547cat >>conftest.$ac_ext <<_ACEOF
14548/* end confdefs.h. */
14549$ac_includes_default
14550int
14551main ()
14552{
ade710a5 14553if ((void * *) 0)
8107bc83 14554 return 0;
ade710a5 14555if (sizeof (void *))
8107bc83
KC
14556 return 0;
14557 ;
14558 return 0;
14559}
14560_ACEOF
14561rm -f conftest.$ac_objext
14562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14563 (eval $ac_compile) 2>conftest.er1
14564 ac_status=$?
14565 grep -v '^ *+' conftest.er1 >conftest.err
14566 rm -f conftest.er1
14567 cat conftest.err >&5
14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569 (exit $ac_status); } &&
ade710a5
TF
14570 { ac_try='test -z "$ac_c_werror_flag"
14571 || test ! -s conftest.err'
8107bc83
KC
14572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14573 (eval $ac_try) 2>&5
14574 ac_status=$?
14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); }; } &&
14577 { ac_try='test -s conftest.$ac_objext'
14578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14579 (eval $ac_try) 2>&5
14580 ac_status=$?
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); }; }; then
14583 ac_cv_type_void_p=yes
14584else
14585 echo "$as_me: failed program was:" >&5
14586sed 's/^/| /' conftest.$ac_ext >&5
14587
ade710a5 14588ac_cv_type_void_p=no
8107bc83
KC
14589fi
14590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14591fi
ade710a5
TF
14592echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14593echo "${ECHO_T}$ac_cv_type_void_p" >&6
8107bc83 14594
ade710a5
TF
14595echo "$as_me:$LINENO: checking size of void *" >&5
14596echo $ECHO_N "checking size of void *... $ECHO_C" >&6
ed698112
NN
14597if test "${ac_cv_sizeof_void_p+set}" = set; then
14598 echo $ECHO_N "(cached) $ECHO_C" >&6
ee9dd372 14599else
8107bc83 14600 if test "$ac_cv_type_void_p" = yes; then
ade710a5 14601 # The cast to unsigned long works around a bug in the HP C Compiler
8107bc83
KC
14602 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14603 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14604 # This bug is HP SR number 8606223364.
14605 if test "$cross_compiling" = yes; then
14606 # Depending upon the size, compute the lo and hi bounds.
14607cat >conftest.$ac_ext <<_ACEOF
ed698112
NN
14608/* confdefs.h. */
14609_ACEOF
14610cat confdefs.h >>conftest.$ac_ext
14611cat >>conftest.$ac_ext <<_ACEOF
14612/* end confdefs.h. */
8107bc83
KC
14613$ac_includes_default
14614int
14615main ()
14616{
ade710a5 14617static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
8107bc83 14618test_array [0] = 0
5aac1dac 14619
8107bc83
KC
14620 ;
14621 return 0;
14622}
14623_ACEOF
14624rm -f conftest.$ac_objext
14625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14626 (eval $ac_compile) 2>conftest.er1
14627 ac_status=$?
14628 grep -v '^ *+' conftest.er1 >conftest.err
14629 rm -f conftest.er1
14630 cat conftest.err >&5
14631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632 (exit $ac_status); } &&
ade710a5
TF
14633 { ac_try='test -z "$ac_c_werror_flag"
14634 || test ! -s conftest.err'
8107bc83
KC
14635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14636 (eval $ac_try) 2>&5
14637 ac_status=$?
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); }; } &&
14640 { ac_try='test -s conftest.$ac_objext'
14641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14642 (eval $ac_try) 2>&5
14643 ac_status=$?
14644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645 (exit $ac_status); }; }; then
14646 ac_lo=0 ac_mid=0
14647 while :; do
14648 cat >conftest.$ac_ext <<_ACEOF
14649/* confdefs.h. */
14650_ACEOF
14651cat confdefs.h >>conftest.$ac_ext
14652cat >>conftest.$ac_ext <<_ACEOF
14653/* end confdefs.h. */
14654$ac_includes_default
14655int
14656main ()
14657{
ade710a5 14658static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
8107bc83 14659test_array [0] = 0
5aac1dac 14660
8107bc83
KC
14661 ;
14662 return 0;
14663}
14664_ACEOF
14665rm -f conftest.$ac_objext
14666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14667 (eval $ac_compile) 2>conftest.er1
14668 ac_status=$?
14669 grep -v '^ *+' conftest.er1 >conftest.err
14670 rm -f conftest.er1
14671 cat conftest.err >&5
14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); } &&
ade710a5
TF
14674 { ac_try='test -z "$ac_c_werror_flag"
14675 || test ! -s conftest.err'
8107bc83
KC
14676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14677 (eval $ac_try) 2>&5
14678 ac_status=$?
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); }; } &&
14681 { ac_try='test -s conftest.$ac_objext'
14682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14683 (eval $ac_try) 2>&5
14684 ac_status=$?
14685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686 (exit $ac_status); }; }; then
14687 ac_hi=$ac_mid; break
14688else
14689 echo "$as_me: failed program was:" >&5
14690sed 's/^/| /' conftest.$ac_ext >&5
14691
ade710a5
TF
14692ac_lo=`expr $ac_mid + 1`
14693 if test $ac_lo -le $ac_mid; then
14694 ac_lo= ac_hi=
14695 break
14696 fi
14697 ac_mid=`expr 2 '*' $ac_mid + 1`
8107bc83
KC
14698fi
14699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14700 done
14701else
14702 echo "$as_me: failed program was:" >&5
14703sed 's/^/| /' conftest.$ac_ext >&5
14704
ade710a5 14705cat >conftest.$ac_ext <<_ACEOF
8107bc83
KC
14706/* confdefs.h. */
14707_ACEOF
14708cat confdefs.h >>conftest.$ac_ext
14709cat >>conftest.$ac_ext <<_ACEOF
14710/* end confdefs.h. */
14711$ac_includes_default
14712int
14713main ()
14714{
ade710a5 14715static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
8107bc83
KC
14716test_array [0] = 0
14717
14718 ;
14719 return 0;
14720}
14721_ACEOF
14722rm -f conftest.$ac_objext
14723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14724 (eval $ac_compile) 2>conftest.er1
14725 ac_status=$?
14726 grep -v '^ *+' conftest.er1 >conftest.err
14727 rm -f conftest.er1
14728 cat conftest.err >&5
14729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730 (exit $ac_status); } &&
ade710a5
TF
14731 { ac_try='test -z "$ac_c_werror_flag"
14732 || test ! -s conftest.err'
8107bc83
KC
14733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14734 (eval $ac_try) 2>&5
14735 ac_status=$?
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); }; } &&
14738 { ac_try='test -s conftest.$ac_objext'
14739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14740 (eval $ac_try) 2>&5
14741 ac_status=$?
14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); }; }; then
14744 ac_hi=-1 ac_mid=-1
14745 while :; do
14746 cat >conftest.$ac_ext <<_ACEOF
14747/* confdefs.h. */
14748_ACEOF
14749cat confdefs.h >>conftest.$ac_ext
14750cat >>conftest.$ac_ext <<_ACEOF
14751/* end confdefs.h. */
14752$ac_includes_default
ed698112
NN
14753int
14754main ()
14755{
ade710a5 14756static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
8107bc83
KC
14757test_array [0] = 0
14758
ed698112
NN
14759 ;
14760 return 0;
14761}
14762_ACEOF
14763rm -f conftest.$ac_objext
14764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14765 (eval $ac_compile) 2>conftest.er1
14766 ac_status=$?
14767 grep -v '^ *+' conftest.er1 >conftest.err
14768 rm -f conftest.er1
14769 cat conftest.err >&5
14770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771 (exit $ac_status); } &&
ade710a5
TF
14772 { ac_try='test -z "$ac_c_werror_flag"
14773 || test ! -s conftest.err'
ed698112
NN
14774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14775 (eval $ac_try) 2>&5
14776 ac_status=$?
14777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778 (exit $ac_status); }; } &&
14779 { ac_try='test -s conftest.$ac_objext'
14780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14781 (eval $ac_try) 2>&5
14782 ac_status=$?
14783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 (exit $ac_status); }; }; then
8107bc83 14785 ac_lo=$ac_mid; break
ee9dd372 14786else
ed698112
NN
14787 echo "$as_me: failed program was:" >&5
14788sed 's/^/| /' conftest.$ac_ext >&5
14789
ade710a5
TF
14790ac_hi=`expr '(' $ac_mid ')' - 1`
14791 if test $ac_mid -le $ac_hi; then
14792 ac_lo= ac_hi=
14793 break
14794 fi
14795 ac_mid=`expr 2 '*' $ac_mid`
ee9dd372 14796fi
ed698112 14797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8107bc83
KC
14798 done
14799else
14800 echo "$as_me: failed program was:" >&5
14801sed 's/^/| /' conftest.$ac_ext >&5
14802
ade710a5 14803ac_lo= ac_hi=
8107bc83
KC
14804fi
14805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14806fi
14807rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14808# Binary search between lo and hi bounds.
14809while test "x$ac_lo" != "x$ac_hi"; do
14810 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14811 cat >conftest.$ac_ext <<_ACEOF
14812/* confdefs.h. */
14813_ACEOF
14814cat confdefs.h >>conftest.$ac_ext
14815cat >>conftest.$ac_ext <<_ACEOF
14816/* end confdefs.h. */
14817$ac_includes_default
14818int
14819main ()
14820{
ade710a5 14821static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
8107bc83 14822test_array [0] = 0
5aac1dac 14823
8107bc83
KC
14824 ;
14825 return 0;
14826}
14827_ACEOF
14828rm -f conftest.$ac_objext
14829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14830 (eval $ac_compile) 2>conftest.er1
14831 ac_status=$?
14832 grep -v '^ *+' conftest.er1 >conftest.err
14833 rm -f conftest.er1
14834 cat conftest.err >&5
14835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836 (exit $ac_status); } &&
ade710a5
TF
14837 { ac_try='test -z "$ac_c_werror_flag"
14838 || test ! -s conftest.err'
8107bc83
KC
14839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14840 (eval $ac_try) 2>&5
14841 ac_status=$?
14842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843 (exit $ac_status); }; } &&
14844 { ac_try='test -s conftest.$ac_objext'
14845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14846 (eval $ac_try) 2>&5
14847 ac_status=$?
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); }; }; then
14850 ac_hi=$ac_mid
14851else
14852 echo "$as_me: failed program was:" >&5
14853sed 's/^/| /' conftest.$ac_ext >&5
14854
ade710a5 14855ac_lo=`expr '(' $ac_mid ')' + 1`
ee9dd372 14856fi
8107bc83
KC
14857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14858done
14859case $ac_lo in
14860?*) ac_cv_sizeof_void_p=$ac_lo;;
ade710a5 14861'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
8107bc83 14862See \`config.log' for more details." >&5
ade710a5 14863echo "$as_me: error: cannot compute sizeof (void *), 77
8107bc83 14864See \`config.log' for more details." >&2;}
ade710a5 14865 { (exit 1); exit 1; }; } ;;
8107bc83 14866esac
ade710a5
TF
14867else
14868 if test "$cross_compiling" = yes; then
14869 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14870See \`config.log' for more details." >&5
14871echo "$as_me: error: cannot run test program while cross compiling
14872See \`config.log' for more details." >&2;}
14873 { (exit 1); exit 1; }; }
8107bc83
KC
14874else
14875 cat >conftest.$ac_ext <<_ACEOF
14876/* confdefs.h. */
14877_ACEOF
14878cat confdefs.h >>conftest.$ac_ext
14879cat >>conftest.$ac_ext <<_ACEOF
14880/* end confdefs.h. */
14881$ac_includes_default
ade710a5
TF
14882long longval () { return (long) (sizeof (void *)); }
14883unsigned long ulongval () { return (long) (sizeof (void *)); }
8107bc83
KC
14884#include <stdio.h>
14885#include <stdlib.h>
14886int
14887main ()
14888{
14889
14890 FILE *f = fopen ("conftest.val", "w");
14891 if (! f)
ade710a5
TF
14892 exit (1);
14893 if (((long) (sizeof (void *))) < 0)
8107bc83 14894 {
ade710a5
TF
14895 long i = longval ();
14896 if (i != ((long) (sizeof (void *))))
14897 exit (1);
8107bc83
KC
14898 fprintf (f, "%ld\n", i);
14899 }
14900 else
14901 {
ade710a5
TF
14902 unsigned long i = ulongval ();
14903 if (i != ((long) (sizeof (void *))))
14904 exit (1);
8107bc83
KC
14905 fprintf (f, "%lu\n", i);
14906 }
ade710a5 14907 exit (ferror (f) || fclose (f) != 0);
8107bc83
KC
14908
14909 ;
14910 return 0;
14911}
14912_ACEOF
14913rm -f conftest$ac_exeext
14914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14915 (eval $ac_link) 2>&5
14916 ac_status=$?
14917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14920 (eval $ac_try) 2>&5
14921 ac_status=$?
14922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923 (exit $ac_status); }; }; then
14924 ac_cv_sizeof_void_p=`cat conftest.val`
14925else
14926 echo "$as_me: program exited with status $ac_status" >&5
14927echo "$as_me: failed program was:" >&5
14928sed 's/^/| /' conftest.$ac_ext >&5
ee9dd372 14929
8107bc83 14930( exit $ac_status )
ade710a5 14931{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
8107bc83 14932See \`config.log' for more details." >&5
ade710a5 14933echo "$as_me: error: cannot compute sizeof (void *), 77
8107bc83 14934See \`config.log' for more details." >&2;}
ade710a5
TF
14935 { (exit 1); exit 1; }; }
14936fi
14937rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8107bc83
KC
14938fi
14939fi
14940rm -f conftest.val
14941else
14942 ac_cv_sizeof_void_p=0
14943fi
14944fi
ade710a5
TF
14945echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14946echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
ed698112 14947cat >>confdefs.h <<_ACEOF
5aac1dac 14948#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
ed698112 14949_ACEOF
ee9dd372 14950
5aac1dac
TT
14951
14952
ade710a5
TF
14953echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14954echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
44bffd9f
AT
14955if test "${ac_cv_c_bigendian+set}" = set; then
14956 echo $ECHO_N "(cached) $ECHO_C" >&6
14957else
8107bc83 14958 # See if sys/param.h defines the BYTE_ORDER macro.
44bffd9f
AT
14959cat >conftest.$ac_ext <<_ACEOF
14960/* confdefs.h. */
14961_ACEOF
14962cat confdefs.h >>conftest.$ac_ext
14963cat >>conftest.$ac_ext <<_ACEOF
14964/* end confdefs.h. */
14965#include <sys/types.h>
14966#include <sys/param.h>
8107bc83 14967
44bffd9f
AT
14968int
14969main ()
14970{
44bffd9f
AT
14971#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14972 bogus endian macros
14973#endif
8107bc83 14974
44bffd9f
AT
14975 ;
14976 return 0;
14977}
14978_ACEOF
14979rm -f conftest.$ac_objext
14980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14981 (eval $ac_compile) 2>conftest.er1
14982 ac_status=$?
14983 grep -v '^ *+' conftest.er1 >conftest.err
14984 rm -f conftest.er1
14985 cat conftest.err >&5
14986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987 (exit $ac_status); } &&
ade710a5
TF
14988 { ac_try='test -z "$ac_c_werror_flag"
14989 || test ! -s conftest.err'
44bffd9f
AT
14990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14991 (eval $ac_try) 2>&5
14992 ac_status=$?
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); }; } &&
14995 { ac_try='test -s conftest.$ac_objext'
14996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14997 (eval $ac_try) 2>&5
14998 ac_status=$?
14999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 (exit $ac_status); }; }; then
15001 # It does; now see whether it defined to BIG_ENDIAN or not.
15002cat >conftest.$ac_ext <<_ACEOF
15003/* confdefs.h. */
15004_ACEOF
15005cat confdefs.h >>conftest.$ac_ext
15006cat >>conftest.$ac_ext <<_ACEOF
15007/* end confdefs.h. */
15008#include <sys/types.h>
15009#include <sys/param.h>
8107bc83 15010
44bffd9f
AT
15011int
15012main ()
15013{
44bffd9f
AT
15014#if BYTE_ORDER != BIG_ENDIAN
15015 not big endian
15016#endif
8107bc83 15017
44bffd9f
AT
15018 ;
15019 return 0;
15020}
15021_ACEOF
15022rm -f conftest.$ac_objext
15023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15024 (eval $ac_compile) 2>conftest.er1
15025 ac_status=$?
15026 grep -v '^ *+' conftest.er1 >conftest.err
15027 rm -f conftest.er1
15028 cat conftest.err >&5
15029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030 (exit $ac_status); } &&
ade710a5
TF
15031 { ac_try='test -z "$ac_c_werror_flag"
15032 || test ! -s conftest.err'
44bffd9f
AT
15033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15034 (eval $ac_try) 2>&5
15035 ac_status=$?
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); }; } &&
15038 { ac_try='test -s conftest.$ac_objext'
15039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15040 (eval $ac_try) 2>&5
15041 ac_status=$?
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); }; }; then
15044 ac_cv_c_bigendian=yes
15045else
15046 echo "$as_me: failed program was:" >&5
15047sed 's/^/| /' conftest.$ac_ext >&5
15048
ade710a5 15049ac_cv_c_bigendian=no
44bffd9f
AT
15050fi
15051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15052else
15053 echo "$as_me: failed program was:" >&5
15054sed 's/^/| /' conftest.$ac_ext >&5
15055
ade710a5 15056# It does not; compile a test program.
8107bc83
KC
15057if test "$cross_compiling" = yes; then
15058 # try to guess the endianness by grepping values into an object file
15059 ac_cv_c_bigendian=unknown
15060 cat >conftest.$ac_ext <<_ACEOF
15061/* confdefs.h. */
15062_ACEOF
15063cat confdefs.h >>conftest.$ac_ext
15064cat >>conftest.$ac_ext <<_ACEOF
15065/* end confdefs.h. */
ade710a5
TF
15066short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15067short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8107bc83 15068void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
ade710a5
TF
15069short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15070short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8107bc83
KC
15071void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
15072int
15073main ()
15074{
15075 _ascii (); _ebcdic ();
15076 ;
15077 return 0;
15078}
15079_ACEOF
15080rm -f conftest.$ac_objext
15081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15082 (eval $ac_compile) 2>conftest.er1
15083 ac_status=$?
15084 grep -v '^ *+' conftest.er1 >conftest.err
15085 rm -f conftest.er1
15086 cat conftest.err >&5
15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); } &&
ade710a5
TF
15089 { ac_try='test -z "$ac_c_werror_flag"
15090 || test ! -s conftest.err'
8107bc83
KC
15091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15092 (eval $ac_try) 2>&5
15093 ac_status=$?
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); }; } &&
15096 { ac_try='test -s conftest.$ac_objext'
15097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15098 (eval $ac_try) 2>&5
15099 ac_status=$?
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); }; }; then
15102 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
15103 ac_cv_c_bigendian=yes
15104fi
15105if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15106 if test "$ac_cv_c_bigendian" = unknown; then
15107 ac_cv_c_bigendian=no
15108 else
15109 # finding both strings is unlikely to happen, but who knows?
15110 ac_cv_c_bigendian=unknown
15111 fi
15112fi
15113else
15114 echo "$as_me: failed program was:" >&5
15115sed 's/^/| /' conftest.$ac_ext >&5
15116
44bffd9f
AT
15117fi
15118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44bffd9f
AT
15119else
15120 cat >conftest.$ac_ext <<_ACEOF
15121/* confdefs.h. */
15122_ACEOF
15123cat confdefs.h >>conftest.$ac_ext
15124cat >>conftest.$ac_ext <<_ACEOF
15125/* end confdefs.h. */
8107bc83
KC
15126int
15127main ()
15128{
44bffd9f
AT
15129 /* Are we little or big endian? From Harbison&Steele. */
15130 union
15131 {
ade710a5
TF
15132 long l;
15133 char c[sizeof (long)];
44bffd9f
AT
15134 } u;
15135 u.l = 1;
ade710a5 15136 exit (u.c[sizeof (long) - 1] == 1);
44bffd9f
AT
15137}
15138_ACEOF
15139rm -f conftest$ac_exeext
15140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15141 (eval $ac_link) 2>&5
15142 ac_status=$?
15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15146 (eval $ac_try) 2>&5
15147 ac_status=$?
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); }; }; then
15150 ac_cv_c_bigendian=no
15151else
15152 echo "$as_me: program exited with status $ac_status" >&5
15153echo "$as_me: failed program was:" >&5
15154sed 's/^/| /' conftest.$ac_ext >&5
15155
15156( exit $ac_status )
15157ac_cv_c_bigendian=yes
15158fi
ade710a5 15159rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44bffd9f
AT
15160fi
15161fi
8107bc83 15162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44bffd9f 15163fi
ade710a5
TF
15164echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
15165echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8107bc83
KC
15166case $ac_cv_c_bigendian in
15167 yes)
44bffd9f
AT
15168
15169cat >>confdefs.h <<\_ACEOF
15170#define WORDS_BIGENDIAN 1
15171_ACEOF
8107bc83
KC
15172 ;;
15173 no)
15174 ;;
15175 *)
15176 { { echo "$as_me:$LINENO: error: unknown endianness
15177presetting ac_cv_c_bigendian=no (or yes) will help" >&5
15178echo "$as_me: error: unknown endianness
15179presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
15180 { (exit 1); exit 1; }; } ;;
15181esac
44bffd9f
AT
15182
15183
5aac1dac
TT
15184ZLIBS=
15185SYS_ZLIBS=
15186ZINCS=
15187
15188if test -z "$ZLIBSPEC"; then
15189 # Use zlib from the GCC tree.
15190 ZINCS='-I$(top_srcdir)/../zlib'
15191 ZLIBS=../zlib/libzgcj_convenience.la
15192else
15193 # System's zlib.
15194 SYS_ZLIBS="$ZLIBSPEC"
ee9dd372
TT
15195fi
15196
5aac1dac
TT
15197
15198
15199
15200
15201
15202
15203
15204
c4ebd83d 15205
cd111813 15206
4c86f325 15207if test "$NATIVE" = yes; then
5aac1dac
TT
15208 NATIVE_TRUE=
15209 NATIVE_FALSE='#'
15210else
15211 NATIVE_TRUE='#'
15212 NATIVE_FALSE=
ee9dd372
TT
15213fi
15214
ee9dd372 15215
e3f92d3b 15216
97b8365c
TT
15217if test "$enable_shared" = yes; then
15218 ENABLE_SHARED_TRUE=
15219 ENABLE_SHARED_FALSE='#'
15220else
15221 ENABLE_SHARED_TRUE='#'
15222 ENABLE_SHARED_FALSE=
15223fi
15224
15225
15226
5aac1dac
TT
15227if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
15228 NEEDS_DATA_START_TRUE=
15229 NEEDS_DATA_START_FALSE='#'
15230else
15231 NEEDS_DATA_START_TRUE='#'
15232 NEEDS_DATA_START_FALSE=
ee9dd372
TT
15233fi
15234
5aac1dac 15235
e3f92d3b 15236
f1c3e0a6
AJ
15237# Process the option "--enable-version-specific-runtime-libs"
15238# Calculate toolexeclibdir
15239case ${version_specific_libs} in
15240 yes)
15241 # Need the gcc compiler version to know where to install libraries
15242 # and header files if --enable-version-specific-runtime-libs option
15243 # is selected.
e9bbd9d7 15244 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
ed2e3d33 15245 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
e9bbd9d7 15246 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
f1c3e0a6
AJ
15247 toolexeclibdir=$toolexecmainlibdir
15248 ;;
15249 no)
15250 if test -n "$with_cross_host" &&
15251 test x"$with_cross_host" != x"no"; then
15252 # Install a library built with a cross compiler in tooldir, not libdir.
ed2e3d33 15253 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
f1c3e0a6
AJ
15254 toolexecmainlibdir='$(toolexecdir)/lib'
15255 else
ed2e3d33 15256 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
f1c3e0a6
AJ
15257 toolexecmainlibdir='$(libdir)'
15258 fi
15259 multi_os_directory=`$CC -print-multi-os-directory`
15260 case $multi_os_directory in
15261 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
15262 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
15263 esac
15264 ;;
ff8b9ca8 15265esac
5aac1dac
TT
15266
15267
15268
15269
80f06e28
TF
15270# Determine where the standard .db file and GNU Classpath JNI
15271# libraries are found.
84af16a6
JJ
15272multi_os_directory=`$CC -print-multi-os-directory`
15273case $multi_os_directory in
80f06e28
TF
15274 .)
15275 dbexecdir='$(libdir)/gcj-$(gcc_version)' # Avoid /.
80f06e28
TF
15276 ;;
15277 *)
15278 dbexecdir='$(libdir)/'$multi_os_directory'/gcj-$(gcc_version)'
80f06e28 15279 ;;
84af16a6
JJ
15280esac
15281
15282
5aac1dac 15283# Determine gcj version number.
5aac1dac 15284gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
5aac1dac
TT
15285GCJVERSION=$gcjversion
15286
ed698112
NN
15287
15288cat >>confdefs.h <<_ACEOF
5aac1dac 15289#define GCJVERSION "$GCJVERSION"
ed698112
NN
15290_ACEOF
15291
15292
dafb7f3f 15293
b6121641 15294cat >>confdefs.h <<\_ACEOF
97b8365c 15295#define JV_VERSION "1.5.0"
b6121641
TF
15296_ACEOF
15297
15298
15299cat >>confdefs.h <<\_ACEOF
97b8365c 15300#define JV_API_VERSION "1.5"
b6121641
TF
15301_ACEOF
15302
15303
15304
dafb7f3f
RS
15305case "${with_gxx_include_dir}" in
15306 yes)
15307 { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
15308echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
15309 { (exit 1); exit 1; }; }
15310 ;;
15311 no | "")
15312 case "${enable_version_specific_runtime_libs}" in
e9bbd9d7 15313 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
dafb7f3f 15314 *)
e9bbd9d7 15315 libstdcxx_incdir='c++/$(gcc_version)'
505692b0
DD
15316 gxx_include_dir='include/$(libstdcxx_incdir)'
15317 if test -n "$with_cross_host" &&
15318 test x"$with_cross_host" != x"no"; then
15319 gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
15320 else
15321 gxx_include_dir='${prefix}/'"$gxx_include_dir"
15322 fi;;
dafb7f3f
RS
15323 esac ;;
15324 *) gxx_include_dir=${with_gxx_include_dir} ;;
15325esac
15326
15327
15328
15329
aed6152d
NN
15330# We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
15331# On that system, sys/ioctl.h will not include sys/filio.h unless
15332# BSD_COMP is defined; just including sys/filio.h is simpler.
17c2e2c0
TT
15333# We avoid AC_HEADER_DIRENT since we really only care about dirent.h
15334# for now. If you change this, you also must update natFile.cc.
ed698112
NN
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
ee9dd372
TT
15352
15353
9327c475 15354
97b8365c 15355
5920d981 15356
ed698112 15357
17c2e2c0
TT
15358for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
15359 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
15360 sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
15361 pwd.h sys/config.h stdint.h langinfo.h locale.h \
97b8365c 15362 dirent.h sys/rw_lock.h magic.h ifaddrs.h
5aac1dac 15363do
ed698112 15364as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
ade710a5
TF
15365if eval "test \"\${$as_ac_Header+set}\" = set"; then
15366 echo "$as_me:$LINENO: checking for $ac_header" >&5
15367echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15368if eval "test \"\${$as_ac_Header+set}\" = set"; then
ed698112
NN
15369 echo $ECHO_N "(cached) $ECHO_C" >&6
15370fi
ade710a5
TF
15371echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15372echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
ed698112
NN
15373else
15374 # Is the header compilable?
ade710a5
TF
15375echo "$as_me:$LINENO: checking $ac_header usability" >&5
15376echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
ed698112
NN
15377cat >conftest.$ac_ext <<_ACEOF
15378/* confdefs.h. */
15379_ACEOF
15380cat confdefs.h >>conftest.$ac_ext
15381cat >>conftest.$ac_ext <<_ACEOF
15382/* end confdefs.h. */
15383$ac_includes_default
15384#include <$ac_header>
15385_ACEOF
15386rm -f conftest.$ac_objext
15387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15388 (eval $ac_compile) 2>conftest.er1
15389 ac_status=$?
15390 grep -v '^ *+' conftest.er1 >conftest.err
15391 rm -f conftest.er1
15392 cat conftest.err >&5
15393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394 (exit $ac_status); } &&
ade710a5
TF
15395 { ac_try='test -z "$ac_c_werror_flag"
15396 || test ! -s conftest.err'
ed698112
NN
15397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15398 (eval $ac_try) 2>&5
15399 ac_status=$?
15400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401 (exit $ac_status); }; } &&
15402 { ac_try='test -s conftest.$ac_objext'
15403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15404 (eval $ac_try) 2>&5
15405 ac_status=$?
15406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407 (exit $ac_status); }; }; then
15408 ac_header_compiler=yes
15409else
15410 echo "$as_me: failed program was:" >&5
15411sed 's/^/| /' conftest.$ac_ext >&5
15412
ade710a5 15413ac_header_compiler=no
ed698112
NN
15414fi
15415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ade710a5
TF
15416echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15417echo "${ECHO_T}$ac_header_compiler" >&6
ed698112
NN
15418
15419# Is the header present?
ade710a5
TF
15420echo "$as_me:$LINENO: checking $ac_header presence" >&5
15421echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
ed698112
NN
15422cat >conftest.$ac_ext <<_ACEOF
15423/* confdefs.h. */
15424_ACEOF
15425cat confdefs.h >>conftest.$ac_ext
15426cat >>conftest.$ac_ext <<_ACEOF
15427/* end confdefs.h. */
15428#include <$ac_header>
15429_ACEOF
15430if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15431 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15432 ac_status=$?
15433 grep -v '^ *+' conftest.er1 >conftest.err
15434 rm -f conftest.er1
15435 cat conftest.err >&5
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); } >/dev/null; then
15438 if test -s conftest.err; then
15439 ac_cpp_err=$ac_c_preproc_warn_flag
15440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15441 else
15442 ac_cpp_err=
15443 fi
ee9dd372 15444else
ed698112 15445 ac_cpp_err=yes
ee9dd372 15446fi
ed698112
NN
15447if test -z "$ac_cpp_err"; then
15448 ac_header_preproc=yes
15449else
15450 echo "$as_me: failed program was:" >&5
15451sed 's/^/| /' conftest.$ac_ext >&5
15452
15453 ac_header_preproc=no
ee9dd372 15454fi
ed698112 15455rm -f conftest.err conftest.$ac_ext
ade710a5
TF
15456echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15457echo "${ECHO_T}$ac_header_preproc" >&6
ed698112
NN
15458
15459# So? What about this header?
15460case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15461 yes:no: )
15462 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15463echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15465echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15466 ac_header_preproc=yes
15467 ;;
15468 no:yes:* )
15469 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15470echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15471 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15472echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15473 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15474echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15475 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15476echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15478echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15479 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15480echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ade710a5
TF
15481 (
15482 cat <<\_ASBOX
15483## ---------------------------------- ##
15484## Report this to the libjava lists. ##
15485## ---------------------------------- ##
15486_ASBOX
15487 ) |
15488 sed "s/^/$as_me: WARNING: /" >&2
ed698112
NN
15489 ;;
15490esac
ade710a5
TF
15491echo "$as_me:$LINENO: checking for $ac_header" >&5
15492echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15493if eval "test \"\${$as_ac_Header+set}\" = set"; then
ed698112 15494 echo $ECHO_N "(cached) $ECHO_C" >&6
5aac1dac 15495else
ed698112
NN
15496 eval "$as_ac_Header=\$ac_header_preproc"
15497fi
ade710a5
TF
15498echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15499echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
ed698112
NN
15500
15501fi
15502if test `eval echo '${'$as_ac_Header'}'` = yes; then
15503 cat >>confdefs.h <<_ACEOF
15504#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15505_ACEOF
15506
ee9dd372 15507fi
ed698112 15508
5aac1dac 15509done
ee9dd372 15510
ed698112
NN
15511
15512for ac_header in inttypes.h
ee9dd372 15513do
ed698112 15514as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
ade710a5
TF
15515if eval "test \"\${$as_ac_Header+set}\" = set"; then
15516 echo "$as_me:$LINENO: checking for $ac_header" >&5
15517echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15518if eval "test \"\${$as_ac_Header+set}\" = set"; then
ed698112
NN
15519 echo $ECHO_N "(cached) $ECHO_C" >&6
15520fi
ade710a5
TF
15521echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15522echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
ed698112
NN
15523else
15524 # Is the header compilable?
ade710a5
TF
15525echo "$as_me:$LINENO: checking $ac_header usability" >&5
15526echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
ed698112
NN
15527cat >conftest.$ac_ext <<_ACEOF
15528/* confdefs.h. */
15529_ACEOF
15530cat confdefs.h >>conftest.$ac_ext
15531cat >>conftest.$ac_ext <<_ACEOF
15532/* end confdefs.h. */
15533$ac_includes_default
15534#include <$ac_header>
15535_ACEOF
15536rm -f conftest.$ac_objext
15537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15538 (eval $ac_compile) 2>conftest.er1
15539 ac_status=$?
15540 grep -v '^ *+' conftest.er1 >conftest.err
15541 rm -f conftest.er1
15542 cat conftest.err >&5
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); } &&
ade710a5
TF
15545 { ac_try='test -z "$ac_c_werror_flag"
15546 || test ! -s conftest.err'
ed698112
NN
15547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15548 (eval $ac_try) 2>&5
15549 ac_status=$?
15550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551 (exit $ac_status); }; } &&
15552 { ac_try='test -s conftest.$ac_objext'
15553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15554 (eval $ac_try) 2>&5
15555 ac_status=$?
15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); }; }; then
15558 ac_header_compiler=yes
15559else
15560 echo "$as_me: failed program was:" >&5
15561sed 's/^/| /' conftest.$ac_ext >&5
15562
ade710a5 15563ac_header_compiler=no
ed698112
NN
15564fi
15565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ade710a5
TF
15566echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15567echo "${ECHO_T}$ac_header_compiler" >&6
ed698112
NN
15568
15569# Is the header present?
ade710a5
TF
15570echo "$as_me:$LINENO: checking $ac_header presence" >&5
15571echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
ed698112
NN
15572cat >conftest.$ac_ext <<_ACEOF
15573/* confdefs.h. */
15574_ACEOF
15575cat confdefs.h >>conftest.$ac_ext
15576cat >>conftest.$ac_ext <<_ACEOF
15577/* end confdefs.h. */
15578#include <$ac_header>
15579_ACEOF
15580if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15581 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15582 ac_status=$?
15583 grep -v '^ *+' conftest.er1 >conftest.err
15584 rm -f conftest.er1
15585 cat conftest.err >&5
15586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587 (exit $ac_status); } >/dev/null; then
15588 if test -s conftest.err; then
15589 ac_cpp_err=$ac_c_preproc_warn_flag
15590 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15591 else
15592 ac_cpp_err=
15593 fi
ee9dd372 15594else
ed698112 15595 ac_cpp_err=yes
3cf88fb4 15596fi
ed698112
NN
15597if test -z "$ac_cpp_err"; then
15598 ac_header_preproc=yes
15599else
15600 echo "$as_me: failed program was:" >&5
15601sed 's/^/| /' conftest.$ac_ext >&5
15602
15603 ac_header_preproc=no
ee9dd372 15604fi
ed698112 15605rm -f conftest.err conftest.$ac_ext
ade710a5
TF
15606echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15607echo "${ECHO_T}$ac_header_preproc" >&6
ed698112
NN
15608
15609# So? What about this header?
15610case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15611 yes:no: )
15612 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15613echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15615echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15616 ac_header_preproc=yes
15617 ;;
15618 no:yes:* )
15619 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15620echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15621 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15622echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15623 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15624echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15625 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15626echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15628echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15629 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15630echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
ade710a5
TF
15631 (
15632 cat <<\_ASBOX
15633## ---------------------------------- ##
15634## Report this to the libjava lists. ##
15635## ---------------------------------- ##
15636_ASBOX
15637 ) |
15638 sed "s/^/$as_me: WARNING: /" >&2
ed698112
NN
15639 ;;
15640esac
ade710a5
TF
15641echo "$as_me:$LINENO: checking for $ac_header" >&5
15642echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15643if eval "test \"\${$as_ac_Header+set}\" = set"; then
ed698112
NN
15644 echo $ECHO_N "(cached) $ECHO_C" >&6
15645else
15646 eval "$as_ac_Header=\$ac_header_preproc"
15647fi
ade710a5
TF
15648echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15649echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
ed698112
NN
15650
15651fi
15652if test `eval echo '${'$as_ac_Header'}'` = yes; then
15653 cat >>confdefs.h <<_ACEOF
15654#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15655_ACEOF
15656
15657
15658cat >>confdefs.h <<\_ACEOF
5aac1dac 15659#define HAVE_INTTYPES_H 1
ed698112
NN
15660_ACEOF
15661
5aac1dac 15662
ed698112 15663cat >>confdefs.h <<\_ACEOF
5aac1dac 15664#define JV_HAVE_INTTYPES_H 1
ed698112 15665_ACEOF
ee9dd372 15666
2622c79d 15667
5aac1dac 15668fi
ed698112 15669
5aac1dac
TT
15670done
15671
ade710a5
TF
15672echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15673echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
ed698112
NN
15674if test "${ac_cv_header_sys_wait_h+set}" = set; then
15675 echo $ECHO_N "(cached) $ECHO_C" >&6
15676else
15677 cat >conftest.$ac_ext <<_ACEOF
15678/* confdefs.h. */
15679_ACEOF
15680cat confdefs.h >>conftest.$ac_ext
15681cat >>conftest.$ac_ext <<_ACEOF
15682/* end confdefs.h. */
5aac1dac
TT
15683#include <sys/types.h>
15684#include <sys/wait.h>
15685#ifndef WEXITSTATUS
ade710a5 15686# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5aac1dac
TT
15687#endif
15688#ifndef WIFEXITED
ed698112 15689# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5aac1dac 15690#endif
ed698112
NN
15691
15692int
15693main ()
15694{
15695 int s;
15696 wait (&s);
15697 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15698 ;
15699 return 0;
15700}
15701_ACEOF
15702rm -f conftest.$ac_objext
15703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15704 (eval $ac_compile) 2>conftest.er1
15705 ac_status=$?
15706 grep -v '^ *+' conftest.er1 >conftest.err
15707 rm -f conftest.er1
15708 cat conftest.err >&5
15709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15710 (exit $ac_status); } &&
ade710a5
TF
15711 { ac_try='test -z "$ac_c_werror_flag"
15712 || test ! -s conftest.err'
ed698112
NN
15713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15714 (eval $ac_try) 2>&5
15715 ac_status=$?
15716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717 (exit $ac_status); }; } &&
15718 { ac_try='test -s conftest.$ac_objext'
15719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15720 (eval $ac_try) 2>&5
15721 ac_status=$?
15722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723 (exit $ac_status); }; }; then
5aac1dac
TT
15724 ac_cv_header_sys_wait_h=yes
15725else
ed698112
NN
15726 echo "$as_me: failed program was:" >&5
15727sed 's/^/| /' conftest.$ac_ext >&5
15728
ade710a5 15729ac_cv_header_sys_wait_h=no
5aac1dac 15730fi
ed698112 15731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2622c79d 15732fi
ade710a5
TF
15733echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15734echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5aac1dac 15735if test $ac_cv_header_sys_wait_h = yes; then
ed698112
NN
15736
15737cat >>confdefs.h <<\_ACEOF
5aac1dac 15738#define HAVE_SYS_WAIT_H 1
ed698112 15739_ACEOF
2622c79d 15740
5aac1dac
TT
15741fi
15742
15743
ade710a5
TF
15744echo "$as_me:$LINENO: checking for ssize_t" >&5
15745echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
ed698112
NN
15746if test "${ac_cv_type_ssize_t+set}" = set; then
15747 echo $ECHO_N "(cached) $ECHO_C" >&6
5aac1dac 15748else
ed698112
NN
15749 cat >conftest.$ac_ext <<_ACEOF
15750/* confdefs.h. */
15751_ACEOF
15752cat confdefs.h >>conftest.$ac_ext
15753cat >>conftest.$ac_ext <<_ACEOF
15754/* end confdefs.h. */
15755$ac_includes_default
15756int
15757main ()
15758{
ade710a5 15759if ((ssize_t *) 0)
ed698112 15760 return 0;
ade710a5 15761if (sizeof (ssize_t))
ed698112
NN
15762 return 0;
15763 ;
15764 return 0;
15765}
15766_ACEOF
15767rm -f conftest.$ac_objext
15768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15769 (eval $ac_compile) 2>conftest.er1
15770 ac_status=$?
15771 grep -v '^ *+' conftest.er1 >conftest.err
15772 rm -f conftest.er1
15773 cat conftest.err >&5
15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); } &&
ade710a5
TF
15776 { ac_try='test -z "$ac_c_werror_flag"
15777 || test ! -s conftest.err'
ed698112
NN
15778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15779 (eval $ac_try) 2>&5
15780 ac_status=$?
15781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782 (exit $ac_status); }; } &&
15783 { ac_try='test -s conftest.$ac_objext'
15784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15785 (eval $ac_try) 2>&5
15786 ac_status=$?
15787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); }; }; then
15789 ac_cv_type_ssize_t=yes
5aac1dac 15790else
ed698112
NN
15791 echo "$as_me: failed program was:" >&5
15792sed 's/^/| /' conftest.$ac_ext >&5
2622c79d 15793
ade710a5 15794ac_cv_type_ssize_t=no
5aac1dac 15795fi
ed698112 15796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5aac1dac 15797fi
ade710a5
TF
15798echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
15799echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
ed698112 15800if test $ac_cv_type_ssize_t = yes; then
5aac1dac 15801 :
2622c79d 15802else
2622c79d 15803
ed698112 15804cat >>confdefs.h <<_ACEOF
5aac1dac 15805#define ssize_t int
ed698112 15806_ACEOF
5aac1dac
TT
15807
15808fi
15809
2622c79d 15810
ade710a5
TF
15811echo "$as_me:$LINENO: checking for in_addr_t" >&5
15812echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
ed698112
NN
15813cat >conftest.$ac_ext <<_ACEOF
15814/* confdefs.h. */
15815_ACEOF
15816cat confdefs.h >>conftest.$ac_ext
15817cat >>conftest.$ac_ext <<_ACEOF
15818/* end confdefs.h. */
5aac1dac
TT
15819#include <sys/types.h>
15820#if STDC_HEADERS
15821#include <stdlib.h>
15822#include <stddef.h>
15823#endif
15824#if HAVE_NETINET_IN_H
15825#include <netinet/in.h>
15826#endif
ed698112
NN
15827int
15828main ()
15829{
5aac1dac 15830in_addr_t foo;
ed698112
NN
15831 ;
15832 return 0;
15833}
15834_ACEOF
15835rm -f conftest.$ac_objext
15836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15837 (eval $ac_compile) 2>conftest.er1
15838 ac_status=$?
15839 grep -v '^ *+' conftest.er1 >conftest.err
15840 rm -f conftest.er1
15841 cat conftest.err >&5
15842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843 (exit $ac_status); } &&
ade710a5
TF
15844 { ac_try='test -z "$ac_c_werror_flag"
15845 || test ! -s conftest.err'
ed698112
NN
15846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15847 (eval $ac_try) 2>&5
15848 ac_status=$?
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); }; } &&
15851 { ac_try='test -s conftest.$ac_objext'
15852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15853 (eval $ac_try) 2>&5
15854 ac_status=$?
15855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856 (exit $ac_status); }; }; then
15857
15858cat >>confdefs.h <<\_ACEOF
5aac1dac 15859#define HAVE_IN_ADDR_T 1
ed698112 15860_ACEOF
5aac1dac 15861
ade710a5
TF
15862 echo "$as_me:$LINENO: result: yes" >&5
15863echo "${ECHO_T}yes" >&6
2622c79d 15864else
ed698112
NN
15865 echo "$as_me: failed program was:" >&5
15866sed 's/^/| /' conftest.$ac_ext >&5
15867
ade710a5
TF
15868echo "$as_me:$LINENO: result: no" >&5
15869echo "${ECHO_T}no" >&6
2622c79d 15870fi
ed698112 15871rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2622c79d 15872
ade710a5
TF
15873echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
15874echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
ed698112
NN
15875cat >conftest.$ac_ext <<_ACEOF
15876/* confdefs.h. */
15877_ACEOF
15878cat confdefs.h >>conftest.$ac_ext
15879cat >>conftest.$ac_ext <<_ACEOF
15880/* end confdefs.h. */
5aac1dac 15881#include <netinet/in.h>
ed698112
NN
15882int
15883main ()
15884{
5aac1dac 15885struct ip_mreq mreq;
ed698112
NN
15886 ;
15887 return 0;
15888}
15889_ACEOF
15890rm -f conftest.$ac_objext
15891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15892 (eval $ac_compile) 2>conftest.er1
15893 ac_status=$?
15894 grep -v '^ *+' conftest.er1 >conftest.err
15895 rm -f conftest.er1
15896 cat conftest.err >&5
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); } &&
ade710a5
TF
15899 { ac_try='test -z "$ac_c_werror_flag"
15900 || test ! -s conftest.err'
ed698112
NN
15901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15902 (eval $ac_try) 2>&5
15903 ac_status=$?
15904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905 (exit $ac_status); }; } &&
15906 { ac_try='test -s conftest.$ac_objext'
15907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15908 (eval $ac_try) 2>&5
15909 ac_status=$?
15910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911 (exit $ac_status); }; }; then
15912
15913cat >>confdefs.h <<\_ACEOF
5aac1dac 15914#define HAVE_STRUCT_IP_MREQ 1
ed698112 15915_ACEOF
5aac1dac 15916
ade710a5
TF
15917 echo "$as_me:$LINENO: result: yes" >&5
15918echo "${ECHO_T}yes" >&6
2622c79d 15919else
ed698112
NN
15920 echo "$as_me: failed program was:" >&5
15921sed 's/^/| /' conftest.$ac_ext >&5
15922
ade710a5
TF
15923echo "$as_me:$LINENO: result: no" >&5
15924echo "${ECHO_T}no" >&6
2622c79d 15925fi
ed698112 15926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2622c79d 15927
ade710a5
TF
15928echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
15929echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
ed698112
NN
15930cat >conftest.$ac_ext <<_ACEOF
15931/* confdefs.h. */
15932_ACEOF
15933cat confdefs.h >>conftest.$ac_ext
15934cat >>conftest.$ac_ext <<_ACEOF
15935/* end confdefs.h. */
5aac1dac 15936#include <netinet/in.h>
ed698112
NN
15937int
15938main ()
15939{
5aac1dac 15940struct ipv6_mreq mreq6;
ed698112
NN
15941 ;
15942 return 0;
15943}
15944_ACEOF
15945rm -f conftest.$ac_objext
15946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15947 (eval $ac_compile) 2>conftest.er1
15948 ac_status=$?
15949 grep -v '^ *+' conftest.er1 >conftest.err
15950 rm -f conftest.er1
15951 cat conftest.err >&5
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); } &&
ade710a5
TF
15954 { ac_try='test -z "$ac_c_werror_flag"
15955 || test ! -s conftest.err'
ed698112
NN
15956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15957 (eval $ac_try) 2>&5
15958 ac_status=$?
15959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960 (exit $ac_status); }; } &&
15961 { ac_try='test -s conftest.$ac_objext'
15962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15963 (eval $ac_try) 2>&5
15964 ac_status=$?
15965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15966 (exit $ac_status); }; }; then
15967
15968cat >>confdefs.h <<\_ACEOF
5aac1dac 15969#define HAVE_STRUCT_IPV6_MREQ 1
ed698112 15970_ACEOF
5aac1dac 15971
ade710a5
TF
15972 echo "$as_me:$LINENO: result: yes" >&5
15973echo "${ECHO_T}yes" >&6
2622c79d 15974else
ed698112
NN
15975 echo "$as_me: failed program was:" >&5
15976sed 's/^/| /' conftest.$ac_ext >&5
15977
ade710a5
TF
15978echo "$as_me:$LINENO: result: no" >&5
15979echo "${ECHO_T}no" >&6
2622c79d 15980fi
ed698112 15981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2622c79d 15982
ade710a5
TF
15983echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
15984echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
ed698112
NN
15985cat >conftest.$ac_ext <<_ACEOF
15986/* confdefs.h. */
15987_ACEOF
15988cat confdefs.h >>conftest.$ac_ext
15989cat >>conftest.$ac_ext <<_ACEOF
15990/* end confdefs.h. */
5aac1dac 15991#include <netinet/in.h>
ed698112
NN
15992int
15993main ()
15994{
5aac1dac 15995struct sockaddr_in6 addr6;
ed698112
NN
15996 ;
15997 return 0;
15998}
15999_ACEOF
16000rm -f conftest.$ac_objext
16001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16002 (eval $ac_compile) 2>conftest.er1
16003 ac_status=$?
16004 grep -v '^ *+' conftest.er1 >conftest.err
16005 rm -f conftest.er1
16006 cat conftest.err >&5
16007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008 (exit $ac_status); } &&
ade710a5
TF
16009 { ac_try='test -z "$ac_c_werror_flag"
16010 || test ! -s conftest.err'
ed698112
NN
16011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16012 (eval $ac_try) 2>&5
16013 ac_status=$?
16014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015 (exit $ac_status); }; } &&
16016 { ac_try='test -s conftest.$ac_objext'
16017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16018 (eval $ac_try) 2>&5
16019 ac_status=$?
16020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021 (exit $ac_status); }; }; then
16022
16023cat >>confdefs.h <<\_ACEOF
5aac1dac 16024#define HAVE_INET6 1
ed698112 16025_ACEOF
5aac1dac 16026
ade710a5
TF
16027 echo "$as_me:$LINENO: result: yes" >&5
16028echo "${ECHO_T}yes" >&6
2622c79d 16029else
ed698112
NN
16030 echo "$as_me: failed program was:" >&5
16031sed 's/^/| /' conftest.$ac_ext >&5
16032
ade710a5
TF
16033echo "$as_me:$LINENO: result: no" >&5
16034echo "${ECHO_T}no" >&6
2622c79d 16035fi
ed698112 16036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2622c79d 16037
ade710a5
TF
16038echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
16039echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
ed698112
NN
16040cat >conftest.$ac_ext <<_ACEOF
16041/* confdefs.h. */
16042_ACEOF
16043cat confdefs.h >>conftest.$ac_ext
16044cat >>conftest.$ac_ext <<_ACEOF
16045/* end confdefs.h. */
5aac1dac
TT
16046#define _POSIX_PII_SOCKET
16047#include <sys/types.h>
16048#include <sys/socket.h>
ed698112
NN
16049int
16050main ()
16051{
5aac1dac 16052socklen_t x = 5;
ed698112
NN
16053 ;
16054 return 0;
16055}
16056_ACEOF
16057rm -f conftest.$ac_objext
16058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16059 (eval $ac_compile) 2>conftest.er1
16060 ac_status=$?
16061 grep -v '^ *+' conftest.er1 >conftest.err
16062 rm -f conftest.er1
16063 cat conftest.err >&5
16064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065 (exit $ac_status); } &&
ade710a5
TF
16066 { ac_try='test -z "$ac_c_werror_flag"
16067 || test ! -s conftest.err'
ed698112
NN
16068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16069 (eval $ac_try) 2>&5
16070 ac_status=$?
16071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072 (exit $ac_status); }; } &&
16073 { ac_try='test -s conftest.$ac_objext'
16074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16075 (eval $ac_try) 2>&5
16076 ac_status=$?
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); }; }; then
16079
16080cat >>confdefs.h <<\_ACEOF
5aac1dac 16081#define HAVE_SOCKLEN_T 1
ed698112 16082_ACEOF
5aac1dac 16083
ade710a5
TF
16084 echo "$as_me:$LINENO: result: yes" >&5
16085echo "${ECHO_T}yes" >&6
2622c79d 16086else
ed698112
NN
16087 echo "$as_me: failed program was:" >&5
16088sed 's/^/| /' conftest.$ac_ext >&5
16089
ade710a5
TF
16090echo "$as_me:$LINENO: result: no" >&5
16091echo "${ECHO_T}no" >&6
2622c79d 16092fi
ed698112 16093rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2622c79d 16094
ade710a5
TF
16095echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
16096echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
ed698112
NN
16097cat >conftest.$ac_ext <<_ACEOF
16098/* confdefs.h. */
16099_ACEOF
16100cat confdefs.h >>conftest.$ac_ext
16101cat >>conftest.$ac_ext <<_ACEOF
16102/* end confdefs.h. */
5aac1dac 16103#include <time.h>
ed698112
NN
16104int
16105main ()
16106{
5aac1dac 16107struct tm tim; tim.tm_gmtoff = 0;
ed698112
NN
16108 ;
16109 return 0;
16110}
16111_ACEOF
16112rm -f conftest.$ac_objext
16113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16114 (eval $ac_compile) 2>conftest.er1
16115 ac_status=$?
16116 grep -v '^ *+' conftest.er1 >conftest.err
16117 rm -f conftest.er1
16118 cat conftest.err >&5
16119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120 (exit $ac_status); } &&
ade710a5
TF
16121 { ac_try='test -z "$ac_c_werror_flag"
16122 || test ! -s conftest.err'
ed698112
NN
16123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16124 (eval $ac_try) 2>&5
16125 ac_status=$?
16126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127 (exit $ac_status); }; } &&
16128 { ac_try='test -s conftest.$ac_objext'
16129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16130 (eval $ac_try) 2>&5
16131 ac_status=$?
16132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133 (exit $ac_status); }; }; then
16134
16135cat >>confdefs.h <<\_ACEOF
5aac1dac 16136#define STRUCT_TM_HAS_GMTOFF 1
ed698112
NN
16137_ACEOF
16138
ade710a5
TF
16139 echo "$as_me:$LINENO: result: yes" >&5
16140echo "${ECHO_T}yes" >&6
ed698112
NN
16141else
16142 echo "$as_me: failed program was:" >&5
16143sed 's/^/| /' conftest.$ac_ext >&5
16144
ade710a5
TF
16145echo "$as_me:$LINENO: result: no" >&5
16146echo "${ECHO_T}no" >&6
16147 echo "$as_me:$LINENO: checking for global timezone variable" >&5
16148echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
ed698112
NN
16149 cat >conftest.$ac_ext <<_ACEOF
16150/* confdefs.h. */
16151_ACEOF
16152cat confdefs.h >>conftest.$ac_ext
16153cat >>conftest.$ac_ext <<_ACEOF
16154/* end confdefs.h. */
5aac1dac 16155#include <time.h>
ed698112
NN
16156int
16157main ()
16158{
5aac1dac 16159void i(){long z2 = 2*timezone;}
ed698112
NN
16160 ;
16161 return 0;
16162}
16163_ACEOF
16164rm -f conftest.$ac_objext
16165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16166 (eval $ac_compile) 2>conftest.er1
16167 ac_status=$?
16168 grep -v '^ *+' conftest.er1 >conftest.err
16169 rm -f conftest.er1
16170 cat conftest.err >&5
16171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172 (exit $ac_status); } &&
ade710a5
TF
16173 { ac_try='test -z "$ac_c_werror_flag"
16174 || test ! -s conftest.err'
ed698112
NN
16175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16176 (eval $ac_try) 2>&5
16177 ac_status=$?
16178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179 (exit $ac_status); }; } &&
16180 { ac_try='test -s conftest.$ac_objext'
16181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16182 (eval $ac_try) 2>&5
16183 ac_status=$?
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); }; }; then
16186
16187cat >>confdefs.h <<\_ACEOF
5aac1dac 16188#define HAVE_TIMEZONE 1
ed698112
NN
16189_ACEOF
16190
ade710a5
TF
16191 echo "$as_me:$LINENO: result: yes" >&5
16192echo "${ECHO_T}yes" >&6
ed698112
NN
16193else
16194 echo "$as_me: failed program was:" >&5
16195sed 's/^/| /' conftest.$ac_ext >&5
16196
ade710a5
TF
16197echo "$as_me:$LINENO: result: no" >&5
16198echo "${ECHO_T}no" >&6
16199 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
16200echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
ed698112
NN
16201 cat >conftest.$ac_ext <<_ACEOF
16202/* confdefs.h. */
16203_ACEOF
16204cat confdefs.h >>conftest.$ac_ext
16205cat >>conftest.$ac_ext <<_ACEOF
16206/* end confdefs.h. */
5aac1dac 16207#include <time.h>
ed698112
NN
16208int
16209main ()
16210{
5aac1dac 16211long z2 = _timezone;
ed698112
NN
16212 ;
16213 return 0;
16214}
16215_ACEOF
16216rm -f conftest.$ac_objext
16217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16218 (eval $ac_compile) 2>conftest.er1
16219 ac_status=$?
16220 grep -v '^ *+' conftest.er1 >conftest.err
16221 rm -f conftest.er1
16222 cat conftest.err >&5
16223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224 (exit $ac_status); } &&
ade710a5
TF
16225 { ac_try='test -z "$ac_c_werror_flag"
16226 || test ! -s conftest.err'
ed698112
NN
16227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16228 (eval $ac_try) 2>&5
16229 ac_status=$?
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); }; } &&
16232 { ac_try='test -s conftest.$ac_objext'
16233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16234 (eval $ac_try) 2>&5
16235 ac_status=$?
16236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237 (exit $ac_status); }; }; then
16238
16239cat >>confdefs.h <<\_ACEOF
5aac1dac 16240#define HAVE_UNDERSCORE_TIMEZONE 1
ed698112 16241_ACEOF
5aac1dac 16242
ade710a5
TF
16243 echo "$as_me:$LINENO: result: yes" >&5
16244echo "${ECHO_T}yes" >&6
2622c79d 16245else
ed698112
NN
16246 echo "$as_me: failed program was:" >&5
16247sed 's/^/| /' conftest.$ac_ext >&5
16248
ade710a5
TF
16249echo "$as_me:$LINENO: result: no" >&5
16250echo "${ECHO_T}no" >&6
2622c79d 16251fi
ed698112 16252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2622c79d 16253fi
ed698112 16254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2622c79d 16255fi
ed698112 16256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2622c79d 16257
5aac1dac
TT
16258# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16259# for constant arguments. Useless!
ade710a5
TF
16260echo "$as_me:$LINENO: checking for working alloca.h" >&5
16261echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
ed698112
NN
16262if test "${ac_cv_working_alloca_h+set}" = set; then
16263 echo $ECHO_N "(cached) $ECHO_C" >&6
16264else
16265 if test x$gcc_no_link = xyes; then
16266 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16267echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16268 { (exit 1); exit 1; }; }
16269fi
16270cat >conftest.$ac_ext <<_ACEOF
16271/* confdefs.h. */
16272_ACEOF
16273cat confdefs.h >>conftest.$ac_ext
16274cat >>conftest.$ac_ext <<_ACEOF
16275/* end confdefs.h. */
5aac1dac 16276#include <alloca.h>
ed698112
NN
16277int
16278main ()
16279{
16280char *p = (char *) alloca (2 * sizeof (int));
16281 ;
16282 return 0;
16283}
16284_ACEOF
16285rm -f conftest.$ac_objext conftest$ac_exeext
16286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16287 (eval $ac_link) 2>conftest.er1
16288 ac_status=$?
16289 grep -v '^ *+' conftest.er1 >conftest.err
16290 rm -f conftest.er1
16291 cat conftest.err >&5
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); } &&
ade710a5
TF
16294 { ac_try='test -z "$ac_c_werror_flag"
16295 || test ! -s conftest.err'
ed698112
NN
16296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16297 (eval $ac_try) 2>&5
16298 ac_status=$?
16299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300 (exit $ac_status); }; } &&
16301 { ac_try='test -s conftest$ac_exeext'
16302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16303 (eval $ac_try) 2>&5
16304 ac_status=$?
16305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); }; }; then
16307 ac_cv_working_alloca_h=yes
16308else
16309 echo "$as_me: failed program was:" >&5
16310sed 's/^/| /' conftest.$ac_ext >&5
16311
ade710a5 16312ac_cv_working_alloca_h=no
ed698112
NN
16313fi
16314rm -f conftest.err conftest.$ac_objext \
16315 conftest$ac_exeext conftest.$ac_ext
16316fi
ade710a5
TF
16317echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16318echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
ed698112
NN
16319if test $ac_cv_working_alloca_h = yes; then
16320
16321cat >>confdefs.h <<\_ACEOF
5aac1dac 16322#define HAVE_ALLOCA_H 1
ed698112 16323_ACEOF
2622c79d 16324
5aac1dac
TT
16325fi
16326
ade710a5
TF
16327echo "$as_me:$LINENO: checking for alloca" >&5
16328echo $ECHO_N "checking for alloca... $ECHO_C" >&6
ed698112
NN
16329if test "${ac_cv_func_alloca_works+set}" = set; then
16330 echo $ECHO_N "(cached) $ECHO_C" >&6
2622c79d 16331else
ed698112
NN
16332 if test x$gcc_no_link = xyes; then
16333 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16334echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16335 { (exit 1); exit 1; }; }
16336fi
16337cat >conftest.$ac_ext <<_ACEOF
16338/* confdefs.h. */
16339_ACEOF
16340cat confdefs.h >>conftest.$ac_ext
16341cat >>conftest.$ac_ext <<_ACEOF
16342/* end confdefs.h. */
5aac1dac
TT
16343#ifdef __GNUC__
16344# define alloca __builtin_alloca
2622c79d 16345#else
5aac1dac
TT
16346# ifdef _MSC_VER
16347# include <malloc.h>
16348# define alloca _alloca
16349# else
16350# if HAVE_ALLOCA_H
16351# include <alloca.h>
16352# else
16353# ifdef _AIX
16354 #pragma alloca
16355# else
16356# ifndef alloca /* predefined by HP cc +Olibcalls */
16357char *alloca ();
16358# endif
16359# endif
16360# endif
16361# endif
2622c79d
RR
16362#endif
16363
ed698112
NN
16364int
16365main ()
16366{
16367char *p = (char *) alloca (1);
16368 ;
16369 return 0;
16370}
16371_ACEOF
16372rm -f conftest.$ac_objext conftest$ac_exeext
16373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16374 (eval $ac_link) 2>conftest.er1
16375 ac_status=$?
16376 grep -v '^ *+' conftest.er1 >conftest.err
16377 rm -f conftest.er1
16378 cat conftest.err >&5
16379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); } &&
ade710a5
TF
16381 { ac_try='test -z "$ac_c_werror_flag"
16382 || test ! -s conftest.err'
ed698112
NN
16383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16384 (eval $ac_try) 2>&5
16385 ac_status=$?
16386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16387 (exit $ac_status); }; } &&
16388 { ac_try='test -s conftest$ac_exeext'
16389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16390 (eval $ac_try) 2>&5
16391 ac_status=$?
16392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16393 (exit $ac_status); }; }; then
5aac1dac 16394 ac_cv_func_alloca_works=yes
2622c79d 16395else
ed698112
NN
16396 echo "$as_me: failed program was:" >&5
16397sed 's/^/| /' conftest.$ac_ext >&5
16398
ade710a5 16399ac_cv_func_alloca_works=no
2622c79d 16400fi
ed698112
NN
16401rm -f conftest.err conftest.$ac_objext \
16402 conftest$ac_exeext conftest.$ac_ext
2622c79d 16403fi
ade710a5
TF
16404echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16405echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
2622c79d 16406
5aac1dac 16407if test $ac_cv_func_alloca_works = yes; then
5aac1dac 16408
ed698112
NN
16409cat >>confdefs.h <<\_ACEOF
16410#define HAVE_ALLOCA 1
16411_ACEOF
2622c79d 16412
ed698112 16413else
5aac1dac 16414 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
ed698112
NN
16415# that cause trouble. Some versions do not even contain alloca or
16416# contain a buggy version. If you still want to use their alloca,
16417# use ar to extract alloca.o from them instead of compiling alloca.c.
16418
ade710a5 16419ALLOCA=alloca.$ac_objext
ed698112
NN
16420
16421cat >>confdefs.h <<\_ACEOF
5aac1dac 16422#define C_ALLOCA 1
ed698112 16423_ACEOF
5aac1dac
TT
16424
16425
ade710a5
TF
16426echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16427echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
ed698112
NN
16428if test "${ac_cv_os_cray+set}" = set; then
16429 echo $ECHO_N "(cached) $ECHO_C" >&6
2622c79d 16430else
ed698112
NN
16431 cat >conftest.$ac_ext <<_ACEOF
16432/* confdefs.h. */
16433_ACEOF
16434cat confdefs.h >>conftest.$ac_ext
16435cat >>conftest.$ac_ext <<_ACEOF
16436/* end confdefs.h. */
ade710a5 16437#if defined(CRAY) && ! defined(CRAY2)
5aac1dac
TT
16438webecray
16439#else
16440wenotbecray
16441#endif
2622c79d 16442
ed698112 16443_ACEOF
5aac1dac 16444if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ed698112 16445 $EGREP "webecray" >/dev/null 2>&1; then
5aac1dac 16446 ac_cv_os_cray=yes
2622c79d 16447else
5aac1dac 16448 ac_cv_os_cray=no
2622c79d
RR
16449fi
16450rm -f conftest*
2622c79d 16451
2622c79d 16452fi
ade710a5
TF
16453echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16454echo "${ECHO_T}$ac_cv_os_cray" >&6
5aac1dac 16455if test $ac_cv_os_cray = yes; then
ed698112
NN
16456 for ac_func in _getb67 GETB67 getb67; do
16457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
ade710a5
TF
16458echo "$as_me:$LINENO: checking for $ac_func" >&5
16459echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16460if eval "test \"\${$as_ac_var+set}\" = set"; then
ed698112
NN
16461 echo $ECHO_N "(cached) $ECHO_C" >&6
16462else
16463 if test x$gcc_no_link = xyes; then
16464 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16465echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16466 { (exit 1); exit 1; }; }
16467fi
16468cat >conftest.$ac_ext <<_ACEOF
16469/* confdefs.h. */
16470_ACEOF
16471cat confdefs.h >>conftest.$ac_ext
16472cat >>conftest.$ac_ext <<_ACEOF
16473/* end confdefs.h. */
16474/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16476#define $ac_func innocuous_$ac_func
16477
2622c79d 16478/* System header to define __stub macros and hopefully few prototypes,
ed698112
NN
16479 which can conflict with char $ac_func (); below.
16480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16481 <limits.h> exists even on freestanding compilers. */
16482
16483#ifdef __STDC__
16484# include <limits.h>
16485#else
16486# include <assert.h>
16487#endif
2622c79d 16488
ed698112 16489#undef $ac_func
2622c79d 16490
ade710a5 16491/* Override any gcc2 internal prototype to avoid an error. */
ed698112
NN
16492#ifdef __cplusplus
16493extern "C"
ade710a5 16494{
ed698112 16495#endif
ade710a5
TF
16496/* We use char because int might match the return type of a gcc2
16497 builtin and then its argument prototype would still apply. */
ed698112 16498char $ac_func ();
2622c79d
RR
16499/* The GNU C library defines this for functions which it implements
16500 to always fail with ENOSYS. Some functions are actually named
16501 something starting with __ and the normal name is an alias. */
ade710a5 16502#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2622c79d 16503choke me
ade710a5
TF
16504#else
16505char (*f) () = $ac_func;
16506#endif
16507#ifdef __cplusplus
16508}
2622c79d
RR
16509#endif
16510
ed698112
NN
16511int
16512main ()
16513{
ade710a5 16514return f != $ac_func;
ed698112
NN
16515 ;
16516 return 0;
16517}
16518_ACEOF
16519rm -f conftest.$ac_objext conftest$ac_exeext
16520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16521 (eval $ac_link) 2>conftest.er1
16522 ac_status=$?
16523 grep -v '^ *+' conftest.er1 >conftest.err
16524 rm -f conftest.er1
16525 cat conftest.err >&5
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); } &&
ade710a5
TF
16528 { ac_try='test -z "$ac_c_werror_flag"
16529 || test ! -s conftest.err'
ed698112
NN
16530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16531 (eval $ac_try) 2>&5
16532 ac_status=$?
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); }; } &&
16535 { ac_try='test -s conftest$ac_exeext'
16536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16537 (eval $ac_try) 2>&5
16538 ac_status=$?
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); }; }; then
16541 eval "$as_ac_var=yes"
16542else
16543 echo "$as_me: failed program was:" >&5
16544sed 's/^/| /' conftest.$ac_ext >&5
16545
ade710a5 16546eval "$as_ac_var=no"
ed698112
NN
16547fi
16548rm -f conftest.err conftest.$ac_objext \
16549 conftest$ac_exeext conftest.$ac_ext
16550fi
ade710a5
TF
16551echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16552echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
ed698112
NN
16553if test `eval echo '${'$as_ac_var'}'` = yes; then
16554
16555cat >>confdefs.h <<_ACEOF
5aac1dac 16556#define CRAY_STACKSEG_END $ac_func
ed698112 16557_ACEOF
5aac1dac 16558
ed698112 16559 break
2622c79d
RR
16560fi
16561
ed698112 16562 done
5aac1dac
TT
16563fi
16564
ade710a5
TF
16565echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16566echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
ed698112
NN
16567if test "${ac_cv_c_stack_direction+set}" = set; then
16568 echo $ECHO_N "(cached) $ECHO_C" >&6
2622c79d 16569else
5aac1dac
TT
16570 if test "$cross_compiling" = yes; then
16571 ac_cv_c_stack_direction=0
16572else
ed698112
NN
16573 cat >conftest.$ac_ext <<_ACEOF
16574/* confdefs.h. */
16575_ACEOF
16576cat confdefs.h >>conftest.$ac_ext
16577cat >>conftest.$ac_ext <<_ACEOF
16578/* end confdefs.h. */
16579int
5aac1dac
TT
16580find_stack_direction ()
16581{
16582 static char *addr = 0;
16583 auto char dummy;
16584 if (addr == 0)
16585 {
16586 addr = &dummy;
16587 return find_stack_direction ();
16588 }
16589 else
16590 return (&dummy > addr) ? 1 : -1;
16591}
ed698112
NN
16592
16593int
5aac1dac
TT
16594main ()
16595{
ade710a5 16596 exit (find_stack_direction () < 0);
5aac1dac 16597}
ed698112
NN
16598_ACEOF
16599rm -f conftest$ac_exeext
16600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16601 (eval $ac_link) 2>&5
16602 ac_status=$?
16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16606 (eval $ac_try) 2>&5
16607 ac_status=$?
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); }; }; then
5aac1dac 16610 ac_cv_c_stack_direction=1
2622c79d 16611else
ed698112
NN
16612 echo "$as_me: program exited with status $ac_status" >&5
16613echo "$as_me: failed program was:" >&5
16614sed 's/^/| /' conftest.$ac_ext >&5
16615
16616( exit $ac_status )
16617ac_cv_c_stack_direction=-1
5aac1dac 16618fi
ade710a5 16619rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2622c79d 16620fi
2622c79d 16621fi
ade710a5
TF
16622echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16623echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5aac1dac 16624
ed698112 16625cat >>confdefs.h <<_ACEOF
5aac1dac 16626#define STACK_DIRECTION $ac_cv_c_stack_direction
ed698112 16627_ACEOF
5aac1dac 16628
ed698112
NN
16629
16630fi
16631
2622c79d 16632
5aac1dac
TT
16633for ac_prog in perl
16634do
ed698112 16635 # Extract the first word of "$ac_prog", so it can be a program name with args.
5aac1dac 16636set dummy $ac_prog; ac_word=$2
ade710a5
TF
16637echo "$as_me:$LINENO: checking for $ac_word" >&5
16638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ed698112
NN
16639if test "${ac_cv_prog_PERL+set}" = set; then
16640 echo $ECHO_N "(cached) $ECHO_C" >&6
2622c79d 16641else
5aac1dac
TT
16642 if test -n "$PERL"; then
16643 ac_cv_prog_PERL="$PERL" # Let the user override the test.
2622c79d 16644else
ed698112
NN
16645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16646for as_dir in $PATH
16647do
16648 IFS=$as_save_IFS
16649 test -z "$as_dir" && as_dir=.
16650 for ac_exec_ext in '' $ac_executable_extensions; do
ade710a5 16651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ed698112
NN
16652 ac_cv_prog_PERL="$ac_prog"
16653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16654 break 2
16655 fi
16656done
16657done
16658
2622c79d 16659fi
2622c79d 16660fi
ed698112 16661PERL=$ac_cv_prog_PERL
5aac1dac 16662if test -n "$PERL"; then
ade710a5
TF
16663 echo "$as_me:$LINENO: result: $PERL" >&5
16664echo "${ECHO_T}$PERL" >&6
2622c79d 16665else
ade710a5
TF
16666 echo "$as_me:$LINENO: result: no" >&5
16667echo "${ECHO_T}no" >&6
2622c79d
RR
16668fi
16669
ed698112 16670 test -n "$PERL" && break
5aac1dac
TT
16671done
16672test -n "$PERL" || PERL="false"
2622c79d 16673
2622c79d 16674
5aac1dac 16675SYSDEP_SOURCES=
02731d29 16676SIGNAL_HANDLER_AUX=
2622c79d 16677
5aac1dac
TT
16678case "${host}" in
16679 i?86-*-linux*)
16680 SIGNAL_HANDLER=include/i386-signal.h
16681 ;;
16682 sparc*-sun-solaris*)
16683 SIGNAL_HANDLER=include/sparc-signal.h
16684 ;;
16685# ia64-*)
16686# SYSDEP_SOURCES=sysdep/ia64.c
16687# test -d sysdep || mkdir sysdep
16688# ;;
8c5ac2c4
RC
16689 hppa*-*-linux*)
16690 SIGNAL_HANDLER=include/pa-signal.h
16691 ;;
68bfb94e
AT
16692 hppa*-hp-hpux*)
16693 SIGNAL_HANDLER=include/hppa-signal.h
16694 ;;
5aac1dac
TT
16695 ia64-*-linux*)
16696 SIGNAL_HANDLER=include/dwarf2-signal.h
16697 ;;
02731d29 16698 powerpc*-*-linux*)
beea2324 16699 SIGNAL_HANDLER=include/powerpc-signal.h
5aac1dac
TT
16700 ;;
16701 alpha*-*-linux*)
16702 SIGNAL_HANDLER=include/dwarf2-signal.h
16703 ;;
16704 s390*-*-linux*)
16705 SIGNAL_HANDLER=include/s390-signal.h
16706 ;;
16707 x86_64*-*-linux*)
16708 SIGNAL_HANDLER=include/x86_64-signal.h
02731d29 16709 SIGNAL_HANDLER_AUX=include/i386-signal.h
5aac1dac
TT
16710 ;;
16711 sparc*-*-linux*)
16712 SIGNAL_HANDLER=include/dwarf2-signal.h
16713 ;;
be3d702c
KK
16714 sh*-*-linux*)
16715 SIGNAL_HANDLER=include/sh-signal.h
5aac1dac
TT
16716 ;;
16717 *mingw*)
16718 SIGNAL_HANDLER=include/win32-signal.h
16719 ;;
13229468
DD
16720 mips*-*-linux*)
16721 SIGNAL_HANDLER=include/mips-signal.h
16722 ;;
d4708d9d 16723 powerpc*-*-darwin*)
f8a57be8
GK
16724 SIGNAL_HANDLER=include/darwin-signal.h
16725 ;;
5aac1dac
TT
16726 *)
16727 SIGNAL_HANDLER=include/default-signal.h
16728 ;;
16729esac
2622c79d 16730
5aac1dac
TT
16731# If we're using sjlj exceptions, forget what we just learned.
16732if test "$enable_sjlj_exceptions" = yes; then
16733 SIGNAL_HANDLER=include/default-signal.h
02731d29 16734 SIGNAL_HANDLER_AUX=
5aac1dac 16735fi
2622c79d 16736
5950e016 16737
5950e016 16738
02731d29
JJ
16739if test -z "$SIGNAL_HANDLER_AUX"; then
16740 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
16741fi
16742
ade710a5 16743 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
5950e016
BM
16744
16745
5aac1dac
TT
16746if test "${multilib}" = "yes"; then
16747 multilib_arg="--enable-multilib"
2622c79d 16748else
5aac1dac 16749 multilib_arg=
2622c79d
RR
16750fi
16751
b9e6a2e5
TT
16752# See if we support thread-local storage.
16753
ade710a5 16754 # Check whether --enable-tls or --disable-tls was given.
b9e6a2e5 16755if test "${enable_tls+set}" = set; then
ade710a5
TF
16756 enableval="$enable_tls"
16757
b9e6a2e5
TT
16758 case "$enableval" in
16759 yes|no) ;;
16760 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
16761echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
16762 { (exit 1); exit 1; }; } ;;
16763 esac
16764
16765else
16766 enable_tls=yes
ade710a5 16767fi;
b9e6a2e5 16768
ade710a5
TF
16769 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
16770echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
b9e6a2e5
TT
16771if test "${have_tls+set}" = set; then
16772 echo $ECHO_N "(cached) $ECHO_C" >&6
16773else
16774
16775 if test "$cross_compiling" = yes; then
97b8365c
TT
16776 cat >conftest.$ac_ext <<_ACEOF
16777__thread int foo;
b9e6a2e5 16778_ACEOF
97b8365c
TT
16779rm -f conftest.$ac_objext
16780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16781 (eval $ac_compile) 2>conftest.er1
b9e6a2e5
TT
16782 ac_status=$?
16783 grep -v '^ *+' conftest.er1 >conftest.err
16784 rm -f conftest.er1
16785 cat conftest.err >&5
16786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787 (exit $ac_status); } &&
ade710a5
TF
16788 { ac_try='test -z "$ac_c_werror_flag"
16789 || test ! -s conftest.err'
b9e6a2e5
TT
16790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16791 (eval $ac_try) 2>&5
16792 ac_status=$?
16793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794 (exit $ac_status); }; } &&
97b8365c 16795 { ac_try='test -s conftest.$ac_objext'
b9e6a2e5
TT
16796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16797 (eval $ac_try) 2>&5
16798 ac_status=$?
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); }; }; then
16801 have_tls=yes
16802else
16803 echo "$as_me: failed program was:" >&5
16804sed 's/^/| /' conftest.$ac_ext >&5
16805
ade710a5 16806have_tls=no
b9e6a2e5 16807fi
97b8365c 16808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b9e6a2e5
TT
16809
16810else
16811 cat >conftest.$ac_ext <<_ACEOF
16812__thread int a; int b; int main() { return a = b; }
16813_ACEOF
16814rm -f conftest$ac_exeext
16815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16816 (eval $ac_link) 2>&5
16817 ac_status=$?
16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16821 (eval $ac_try) 2>&5
16822 ac_status=$?
16823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824 (exit $ac_status); }; }; then
aad741f4 16825 save_LDFLAGS="$LDFLAGS"
b9e6a2e5 16826 LDFLAGS="-static $LDFLAGS"
aad741f4
EB
16827 if test x$gcc_no_link = xyes; then
16828 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16829echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16830 { (exit 1); exit 1; }; }
16831fi
16832cat >conftest.$ac_ext <<_ACEOF
16833int main() { return 0; }
16834_ACEOF
16835rm -f conftest.$ac_objext conftest$ac_exeext
16836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16837 (eval $ac_link) 2>conftest.er1
16838 ac_status=$?
16839 grep -v '^ *+' conftest.er1 >conftest.err
16840 rm -f conftest.er1
16841 cat conftest.err >&5
16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); } &&
16844 { ac_try='test -z "$ac_c_werror_flag"
16845 || test ! -s conftest.err'
16846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16847 (eval $ac_try) 2>&5
16848 ac_status=$?
16849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850 (exit $ac_status); }; } &&
16851 { ac_try='test -s conftest$ac_exeext'
16852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16853 (eval $ac_try) 2>&5
16854 ac_status=$?
16855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856 (exit $ac_status); }; }; then
16857 if test "$cross_compiling" = yes; then
b9e6a2e5
TT
16858 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16859See \`config.log' for more details." >&5
16860echo "$as_me: error: cannot run test program while cross compiling
16861See \`config.log' for more details." >&2;}
16862 { (exit 1); exit 1; }; }
16863else
16864 cat >conftest.$ac_ext <<_ACEOF
16865__thread int a; int b; int main() { return a = b; }
16866_ACEOF
16867rm -f conftest$ac_exeext
16868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16869 (eval $ac_link) 2>&5
16870 ac_status=$?
16871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16874 (eval $ac_try) 2>&5
16875 ac_status=$?
16876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877 (exit $ac_status); }; }; then
16878 have_tls=yes
16879else
16880 echo "$as_me: program exited with status $ac_status" >&5
16881echo "$as_me: failed program was:" >&5
16882sed 's/^/| /' conftest.$ac_ext >&5
16883
16884( exit $ac_status )
16885have_tls=no
16886fi
ade710a5 16887rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b9e6a2e5 16888fi
aad741f4
EB
16889else
16890 echo "$as_me: failed program was:" >&5
16891sed 's/^/| /' conftest.$ac_ext >&5
16892
16893have_tls=yes
16894fi
16895rm -f conftest.err conftest.$ac_objext \
16896 conftest$ac_exeext conftest.$ac_ext
b9e6a2e5
TT
16897 LDFLAGS="$save_LDFLAGS"
16898else
16899 echo "$as_me: program exited with status $ac_status" >&5
16900echo "$as_me: failed program was:" >&5
16901sed 's/^/| /' conftest.$ac_ext >&5
16902
16903( exit $ac_status )
16904have_tls=no
16905fi
ade710a5 16906rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b9e6a2e5
TT
16907fi
16908fi
ade710a5
TF
16909echo "$as_me:$LINENO: result: $have_tls" >&5
16910echo "${ECHO_T}$have_tls" >&6
b9e6a2e5
TT
16911 if test "$enable_tls $have_tls" = "yes yes"; then
16912
16913cat >>confdefs.h <<\_ACEOF
16914#define HAVE_TLS 1
16915_ACEOF
16916
16917 fi
5950e016 16918
d4708d9d
JH
16919# For _Unwind_GetIPInfo.
16920
16921
16922
16923 ac_ext=cc
16924ac_cpp='$CXXCPP $CPPFLAGS'
16925ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16926ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16927ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16928
16929 ac_save_CXXFLAGS="$CXXFLAGS"
16930 CXXFLAGS="$CXXFLAGS -fno-exceptions"
16931 echo "$as_me:$LINENO: checking for _Unwind_GetIPInfo" >&5
16932echo $ECHO_N "checking for _Unwind_GetIPInfo... $ECHO_C" >&6
16933 if test "${gcc_cv_getipinfo+set}" = set; then
16934 echo $ECHO_N "(cached) $ECHO_C" >&6
16935else
16936
16937 if test x$gcc_no_link = xyes; then
16938 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16939echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16940 { (exit 1); exit 1; }; }
16941fi
16942cat >conftest.$ac_ext <<_ACEOF
16943/* confdefs.h. */
16944_ACEOF
16945cat confdefs.h >>conftest.$ac_ext
16946cat >>conftest.$ac_ext <<_ACEOF
16947/* end confdefs.h. */
16948extern "C" { extern void _Unwind_GetIPInfo(); }
16949int
16950main ()
16951{
16952_Unwind_GetIPInfo();
16953 ;
16954 return 0;
16955}
16956_ACEOF
16957rm -f conftest.$ac_objext conftest$ac_exeext
16958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16959 (eval $ac_link) 2>conftest.er1
16960 ac_status=$?
16961 grep -v '^ *+' conftest.er1 >conftest.err
16962 rm -f conftest.er1
16963 cat conftest.err >&5
16964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965 (exit $ac_status); } &&
16966 { ac_try='test -z "$ac_cxx_werror_flag"
16967 || test ! -s conftest.err'
16968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16969 (eval $ac_try) 2>&5
16970 ac_status=$?
16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); }; } &&
16973 { ac_try='test -s conftest$ac_exeext'
16974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16975 (eval $ac_try) 2>&5
16976 ac_status=$?
16977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978 (exit $ac_status); }; }; then
16979 gcc_cv_getipinfo=yes
16980else
16981 echo "$as_me: failed program was:" >&5
16982sed 's/^/| /' conftest.$ac_ext >&5
16983
16984gcc_cv_getipinfo=no
16985fi
16986rm -f conftest.err conftest.$ac_objext \
16987 conftest$ac_exeext conftest.$ac_ext
16988
16989fi
16990
16991 if test $gcc_cv_getipinfo = yes; then
16992
16993cat >>confdefs.h <<\_ACEOF
16994#define HAVE_GETIPINFO 1
16995_ACEOF
16996
16997 fi
16998 echo "$as_me:$LINENO: result: $gcc_cv_getipinfo" >&5
16999echo "${ECHO_T}$gcc_cv_getipinfo" >&6
17000 CXXFLAGS="$ac_save_CXXFLAGS"
17001 ac_ext=c
17002ac_cpp='$CPP $CPPFLAGS'
17003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17005ac_compiler_gnu=$ac_cv_c_compiler_gnu
17006
17007
17008
d6c122f7
DD
17009# Check if linker supports static linking on a per library basis
17010LD_START_STATIC_SPEC=
17011LD_FINISH_STATIC_SPEC=
17012if $LD --help 2>&1 | grep -q -e -call_shared ; then
17013 if $LD --help 2>&1 | grep -q -e -non_shared ; then
17014 LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
17015 LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
17016 fi
17017fi
17018
17019
5950e016 17020
ed698112
NN
17021here=`${PWDCMD-pwd}`
17022
17023
17024# We get this from the environment.
17025
17026
ade710a5 17027 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"
02809848
PB
17028
17029
ade710a5 17030 ac_config_files="$ac_config_files scripts/jar"
cad90591
MK
17031
17032
ade710a5 17033 ac_config_commands="$ac_config_commands default"
cad90591
MK
17034
17035
ed698112
NN
17036cat >confcache <<\_ACEOF
17037# This file is a shell script that caches the results of configure
17038# tests run on this system so they can be shared between configure
17039# scripts and configure runs, see configure's option --config-cache.
17040# It is not useful on other systems. If it contains results you don't
17041# want to keep, you may remove or edit it.
17042#
17043# config.status only pays attention to the cache file if you give it
17044# the --recheck option to rerun configure.
17045#
17046# `ac_cv_env_foo' variables (set or unset) will be overridden when
17047# loading this file, other *unset* `ac_cv_foo' will be assigned the
17048# following values.
17049
17050_ACEOF
17051
17052# The following way of writing the cache mishandles newlines in values,
17053# but we know of no workaround that is simple, portable, and efficient.
ade710a5 17054# So, don't put newlines in cache variables' values.
ed698112
NN
17055# Ultrix sh set writes to stderr and can't be redirected directly,
17056# and sets the high bit in the cache file unless we assign to the vars.
ade710a5 17057{
ed698112 17058 (set) 2>&1 |
ade710a5
TF
17059 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17060 *ac_space=\ *)
ed698112
NN
17061 # `set' does not quote correctly, so add quotes (double-quote
17062 # substitution turns \\\\ into \\, and sed turns \\ into \).
17063 sed -n \
17064 "s/'/'\\\\''/g;
17065 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
ade710a5 17066 ;;
ed698112
NN
17067 *)
17068 # `set' quotes correctly as required by POSIX, so do not add quotes.
ade710a5
TF
17069 sed -n \
17070 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
ed698112 17071 ;;
ade710a5
TF
17072 esac;
17073} |
ed698112
NN
17074 sed '
17075 t clear
ade710a5 17076 : clear
ed698112
NN
17077 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17078 t end
ade710a5
TF
17079 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17080 : end' >>confcache
ed698112
NN
17081if diff $cache_file confcache >/dev/null 2>&1; then :; else
17082 if test -w $cache_file; then
ade710a5 17083 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
ed698112
NN
17084 cat confcache >$cache_file
17085 else
ade710a5 17086 echo "not updating unwritable cache $cache_file"
ed698112
NN
17087 fi
17088fi
17089rm -f confcache
17090
17091test "x$prefix" = xNONE && prefix=$ac_default_prefix
17092# Let make expand exec_prefix.
17093test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17094
ade710a5
TF
17095# VPATH may cause trouble with some makes, so we remove $(srcdir),
17096# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17097# trailing colons and then remove the whole line if VPATH becomes empty
17098# (actually we leave an empty line to preserve line numbers).
17099if test "x$srcdir" = x.; then
17100 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17101s/:*\$(srcdir):*/:/;
17102s/:*\${srcdir}:*/:/;
17103s/:*@srcdir@:*/:/;
17104s/^\([^=]*=[ ]*\):*/\1/;
17105s/:*$//;
17106s/^[^=]*=[ ]*$//;
17107}'
17108fi
17109
ed698112
NN
17110DEFS=-DHAVE_CONFIG_H
17111
17112ac_libobjs=
17113ac_ltlibobjs=
17114for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17115 # 1. Remove the extension, and $U if already installed.
ade710a5
TF
17116 ac_i=`echo "$ac_i" |
17117 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17118 # 2. Add them.
17119 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17120 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
ed698112
NN
17121done
17122LIBOBJS=$ac_libobjs
17123
17124LTLIBOBJS=$ac_ltlibobjs
17125
17126
97b8365c
TT
17127if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
17128 { { echo "$as_me:$LINENO: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
17129Usually this means the macro was only invoked conditionally." >&5
17130echo "$as_me: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
17131Usually this means the macro was only invoked conditionally." >&2;}
17132 { (exit 1); exit 1; }; }
17133fi
e3f92d3b
MK
17134if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17135 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17136Usually this means the macro was only invoked conditionally." >&5
17137echo "$as_me: error: conditional \"AMDEP\" was never defined.
17138Usually this means the macro was only invoked conditionally." >&2;}
17139 { (exit 1); exit 1; }; }
17140fi
17141if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17142 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17143Usually this means the macro was only invoked conditionally." >&5
17144echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17145Usually this means the macro was only invoked conditionally." >&2;}
17146 { (exit 1); exit 1; }; }
17147fi
17148if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17149 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17150Usually this means the macro was only invoked conditionally." >&5
17151echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17152Usually this means the macro was only invoked conditionally." >&2;}
17153 { (exit 1); exit 1; }; }
17154fi
02809848
PB
17155if test -z "${BASH_JAR_TRUE}" && test -z "${BASH_JAR_FALSE}"; then
17156 { { echo "$as_me:$LINENO: error: conditional \"BASH_JAR\" was never defined.
17157Usually this means the macro was only invoked conditionally." >&5
17158echo "$as_me: error: conditional \"BASH_JAR\" was never defined.
17159Usually this means the macro was only invoked conditionally." >&2;}
17160 { (exit 1); exit 1; }; }
17161fi
e3f92d3b
MK
17162if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17163 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
17164Usually this means the macro was only invoked conditionally." >&5
17165echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
17166Usually this means the macro was only invoked conditionally." >&2;}
17167 { (exit 1); exit 1; }; }
17168fi
b0fa81ee
TT
17169if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
17170 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
17171Usually this means the macro was only invoked conditionally." >&5
17172echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
17173Usually this means the macro was only invoked conditionally." >&2;}
17174 { (exit 1); exit 1; }; }
17175fi
97b8365c
TT
17176if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
17177 { { echo "$as_me:$LINENO: error: conditional \"X_AWT\" was never defined.
17178Usually this means the macro was only invoked conditionally." >&5
17179echo "$as_me: error: conditional \"X_AWT\" was never defined.
17180Usually this means the macro was only invoked conditionally." >&2;}
17181 { (exit 1); exit 1; }; }
17182fi
e3f92d3b
MK
17183if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
17184 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
17185Usually this means the macro was only invoked conditionally." >&5
17186echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
17187Usually this means the macro was only invoked conditionally." >&2;}
17188 { (exit 1); exit 1; }; }
17189fi
17190if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
17191 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
17192Usually this means the macro was only invoked conditionally." >&5
17193echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
17194Usually this means the macro was only invoked conditionally." >&2;}
17195 { (exit 1); exit 1; }; }
17196fi
97b8365c
TT
17197if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
17198 { { echo "$as_me:$LINENO: error: conditional \"BUILD_ECJ1\" was never defined.
17199Usually this means the macro was only invoked conditionally." >&5
17200echo "$as_me: error: conditional \"BUILD_ECJ1\" was never defined.
17201Usually this means the macro was only invoked conditionally." >&2;}
17202 { (exit 1); exit 1; }; }
17203fi
17204if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
17205 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
17206Usually this means the macro was only invoked conditionally." >&5
17207echo "$as_me: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
17208Usually this means the macro was only invoked conditionally." >&2;}
17209 { (exit 1); exit 1; }; }
17210fi
c33b7bf0
TF
17211if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
17212 { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
17213Usually this means the macro was only invoked conditionally." >&5
17214echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
17215Usually this means the macro was only invoked conditionally." >&2;}
17216 { (exit 1); exit 1; }; }
17217fi
e3f92d3b
MK
17218if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
17219 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
17220Usually this means the macro was only invoked conditionally." >&5
17221echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
17222Usually this means the macro was only invoked conditionally." >&2;}
17223 { (exit 1); exit 1; }; }
17224fi
17225if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
17226 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
17227Usually this means the macro was only invoked conditionally." >&5
17228echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
17229Usually this means the macro was only invoked conditionally." >&2;}
17230 { (exit 1); exit 1; }; }
17231fi
f1a66265
GK
17232if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
17233 { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
17234Usually this means the macro was only invoked conditionally." >&5
17235echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
17236Usually this means the macro was only invoked conditionally." >&2;}
17237 { (exit 1); exit 1; }; }
17238fi
e3f92d3b
MK
17239if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
17240 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
17241Usually this means the macro was only invoked conditionally." >&5
17242echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
17243Usually this means the macro was only invoked conditionally." >&2;}
17244 { (exit 1); exit 1; }; }
17245fi
17246if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
17247 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
17248Usually this means the macro was only invoked conditionally." >&5
17249echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
17250Usually this means the macro was only invoked conditionally." >&2;}
17251 { (exit 1); exit 1; }; }
17252fi
17253if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
17254 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
17255Usually this means the macro was only invoked conditionally." >&5
17256echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
17257Usually this means the macro was only invoked conditionally." >&2;}
17258 { (exit 1); exit 1; }; }
17259fi
17260if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
17261 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
17262Usually this means the macro was only invoked conditionally." >&5
17263echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
17264Usually this means the macro was only invoked conditionally." >&2;}
17265 { (exit 1); exit 1; }; }
17266fi
17267if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
17268 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
17269Usually this means the macro was only invoked conditionally." >&5
17270echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
17271Usually this means the macro was only invoked conditionally." >&2;}
17272 { (exit 1); exit 1; }; }
17273fi
97c074fd
JJ
17274if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
17275 { { echo "$as_me:$LINENO: error: conditional \"USE_LIBGCJ_BC\" was never defined.
17276Usually this means the macro was only invoked conditionally." >&5
17277echo "$as_me: error: conditional \"USE_LIBGCJ_BC\" was never defined.
17278Usually this means the macro was only invoked conditionally." >&2;}
17279 { (exit 1); exit 1; }; }
17280fi
e3f92d3b
MK
17281if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
17282 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
17283Usually this means the macro was only invoked conditionally." >&5
17284echo "$as_me: error: conditional \"USING_GCC\" was never defined.
17285Usually this means the macro was only invoked conditionally." >&2;}
17286 { (exit 1); exit 1; }; }
17287fi
e3f92d3b
MK
17288if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
17289 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
17290Usually this means the macro was only invoked conditionally." >&5
17291echo "$as_me: error: conditional \"NATIVE\" was never defined.
17292Usually this means the macro was only invoked conditionally." >&2;}
17293 { (exit 1); exit 1; }; }
17294fi
97b8365c
TT
17295if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
17296 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SHARED\" was never defined.
17297Usually this means the macro was only invoked conditionally." >&5
17298echo "$as_me: error: conditional \"ENABLE_SHARED\" was never defined.
17299Usually this means the macro was only invoked conditionally." >&2;}
17300 { (exit 1); exit 1; }; }
17301fi
e3f92d3b
MK
17302if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
17303 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
17304Usually this means the macro was only invoked conditionally." >&5
17305echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
17306Usually this means the macro was only invoked conditionally." >&2;}
17307 { (exit 1); exit 1; }; }
17308fi
ed698112
NN
17309
17310: ${CONFIG_STATUS=./config.status}
17311ac_clean_files_save=$ac_clean_files
17312ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17313{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17314echo "$as_me: creating $CONFIG_STATUS" >&6;}
17315cat >$CONFIG_STATUS <<_ACEOF
17316#! $SHELL
17317# Generated by $as_me.
17318# Run this file to recreate the current configuration.
17319# Compiler output produced by configure, useful for debugging
17320# configure, is in config.log if it exists.
17321
17322debug=false
17323ac_cs_recheck=false
17324ac_cs_silent=false
17325SHELL=\${CONFIG_SHELL-$SHELL}
17326_ACEOF
17327
17328cat >>$CONFIG_STATUS <<\_ACEOF
17329## --------------------- ##
17330## M4sh Initialization. ##
17331## --------------------- ##
17332
17333# Be Bourne compatible
17334if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17335 emulate sh
17336 NULLCMD=:
17337 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17338 # is contrary to our usage. Disable this feature.
17339 alias -g '${1+"$@"}'='"$@"'
ade710a5
TF
17340elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17341 set -o posix
ed698112
NN
17342fi
17343DUALCASE=1; export DUALCASE # for MKS sh
17344
17345# Support unset when possible.
17346if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17347 as_unset=unset
17348else
17349 as_unset=false
17350fi
17351
17352
17353# Work around bugs in pre-3.0 UWIN ksh.
ade710a5 17354$as_unset ENV MAIL MAILPATH
ed698112
NN
17355PS1='$ '
17356PS2='> '
17357PS4='+ '
17358
17359# NLS nuisances.
17360for as_var in \
17361 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17362 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17363 LC_TELEPHONE LC_TIME
17364do
17365 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17366 eval $as_var=C; export $as_var
17367 else
ade710a5 17368 $as_unset $as_var
ed698112
NN
17369 fi
17370done
17371
17372# Required to use basename.
ade710a5 17373if expr a : '\(a\)' >/dev/null 2>&1; then
ed698112
NN
17374 as_expr=expr
17375else
17376 as_expr=false
17377fi
17378
ade710a5 17379if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
ed698112
NN
17380 as_basename=basename
17381else
17382 as_basename=false
17383fi
17384
17385
17386# Name of the executable.
ade710a5 17387as_me=`$as_basename "$0" ||
ed698112
NN
17388$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17389 X"$0" : 'X\(//\)$' \| \
ade710a5
TF
17390 X"$0" : 'X\(/\)$' \| \
17391 . : '\(.\)' 2>/dev/null ||
ed698112 17392echo X/"$0" |
ade710a5
TF
17393 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17394 /^X\/\(\/\/\)$/{ s//\1/; q; }
17395 /^X\/\(\/\).*/{ s//\1/; q; }
17396 s/.*/./; q'`
ed698112 17397
ade710a5
TF
17398
17399# PATH needs CR, and LINENO needs CR and PATH.
17400# Avoid depending upon Character Ranges.
17401as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17402as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17403as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17404as_cr_digits='0123456789'
17405as_cr_alnum=$as_cr_Letters$as_cr_digits
17406
17407# The user is always right.
17408if test "${PATH_SEPARATOR+set}" != set; then
17409 echo "#! /bin/sh" >conf$$.sh
17410 echo "exit 0" >>conf$$.sh
17411 chmod +x conf$$.sh
17412 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17413 PATH_SEPARATOR=';'
17414 else
17415 PATH_SEPARATOR=:
17416 fi
17417 rm -f conf$$.sh
17418fi
ed698112
NN
17419
17420
ade710a5
TF
17421 as_lineno_1=$LINENO
17422 as_lineno_2=$LINENO
17423 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17424 test "x$as_lineno_1" != "x$as_lineno_2" &&
17425 test "x$as_lineno_3" = "x$as_lineno_2" || {
17426 # Find who we are. Look in the path if we contain no path at all
17427 # relative or not.
17428 case $0 in
17429 *[\\/]* ) as_myself=$0 ;;
17430 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17431for as_dir in $PATH
17432do
17433 IFS=$as_save_IFS
17434 test -z "$as_dir" && as_dir=.
17435 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17436done
ed698112 17437
ade710a5
TF
17438 ;;
17439 esac
17440 # We did not find ourselves, most probably we were run as `sh COMMAND'
17441 # in which case we are not to be found in the path.
17442 if test "x$as_myself" = x; then
17443 as_myself=$0
17444 fi
17445 if test ! -f "$as_myself"; then
17446 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17447echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17448 { (exit 1); exit 1; }; }
17449 fi
17450 case $CONFIG_SHELL in
17451 '')
17452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17453for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17454do
17455 IFS=$as_save_IFS
17456 test -z "$as_dir" && as_dir=.
17457 for as_base in sh bash ksh sh5; do
17458 case $as_dir in
17459 /*)
17460 if ("$as_dir/$as_base" -c '
ed698112
NN
17461 as_lineno_1=$LINENO
17462 as_lineno_2=$LINENO
ade710a5 17463 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
ed698112 17464 test "x$as_lineno_1" != "x$as_lineno_2" &&
ade710a5
TF
17465 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17466 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17467 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17468 CONFIG_SHELL=$as_dir/$as_base
17469 export CONFIG_SHELL
17470 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17471 fi;;
17472 esac
17473 done
17474done
17475;;
17476 esac
ed698112
NN
17477
17478 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17479 # uniformly replaced by the line number. The first 'sed' inserts a
ade710a5
TF
17480 # line-number line before each line; the second 'sed' does the real
17481 # work. The second script uses 'N' to pair each line-number line
17482 # with the numbered line, and appends trailing '-' during
17483 # substitution so that $LINENO is not a special case at line end.
ed698112 17484 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
ade710a5
TF
17485 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17486 sed '=' <$as_myself |
ed698112
NN
17487 sed '
17488 N
ade710a5
TF
17489 s,$,-,
17490 : loop
17491 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
ed698112 17492 t loop
ade710a5
TF
17493 s,-$,,
17494 s,^['$as_cr_digits']*\n,,
ed698112 17495 ' >$as_me.lineno &&
ade710a5
TF
17496 chmod +x $as_me.lineno ||
17497 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17498echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
ed698112
NN
17499 { (exit 1); exit 1; }; }
17500
17501 # Don't try to exec as it changes $[0], causing all sort of problems
17502 # (the dirname of $[0] is not the place where we might find the
ade710a5
TF
17503 # original and so on. Autoconf is especially sensible to this).
17504 . ./$as_me.lineno
ed698112
NN
17505 # Exit status is that of the last command.
17506 exit
17507}
17508
17509
ade710a5
TF
17510case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17511 *c*,-n*) ECHO_N= ECHO_C='
17512' ECHO_T=' ' ;;
17513 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17514 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
ed698112
NN
17515esac
17516
ade710a5 17517if expr a : '\(a\)' >/dev/null 2>&1; then
ed698112
NN
17518 as_expr=expr
17519else
17520 as_expr=false
17521fi
17522
17523rm -f conf$$ conf$$.exe conf$$.file
17524echo >conf$$.file
17525if ln -s conf$$.file conf$$ 2>/dev/null; then
ade710a5
TF
17526 # We could just check for DJGPP; but this test a) works b) is more generic
17527 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17528 if test -f conf$$.exe; then
17529 # Don't use ln at all; we don't have any links
ed698112 17530 as_ln_s='cp -p'
ade710a5
TF
17531 else
17532 as_ln_s='ln -s'
17533 fi
ed698112
NN
17534elif ln conf$$.file conf$$ 2>/dev/null; then
17535 as_ln_s=ln
17536else
17537 as_ln_s='cp -p'
17538fi
ade710a5 17539rm -f conf$$ conf$$.exe conf$$.file
ed698112
NN
17540
17541if mkdir -p . 2>/dev/null; then
17542 as_mkdir_p=:
17543else
17544 test -d ./-p && rmdir ./-p
17545 as_mkdir_p=false
17546fi
17547
ade710a5 17548as_executable_p="test -f"
ed698112
NN
17549
17550# Sed expression to map a string onto a valid CPP name.
17551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17552
17553# Sed expression to map a string onto a valid variable name.
17554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17555
17556
ade710a5
TF
17557# IFS
17558# We need space, tab and new line, in precisely that order.
17559as_nl='
17560'
17561IFS=" $as_nl"
17562
17563# CDPATH.
17564$as_unset CDPATH
17565
ed698112
NN
17566exec 6>&1
17567
ade710a5 17568# Open the log real soon, to keep \$[0] and so on meaningful, and to
ed698112 17569# report actual input values of CONFIG_FILES etc. instead of their
ade710a5
TF
17570# values after options handling. Logging --version etc. is OK.
17571exec 5>>config.log
17572{
17573 echo
17574 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17575## Running $as_me. ##
17576_ASBOX
17577} >&5
17578cat >&5 <<_CSEOF
17579
e3f92d3b 17580This file was extended by libjava $as_me version-unused, which was
ade710a5 17581generated by GNU Autoconf 2.59. Invocation command line was
ed698112
NN
17582
17583 CONFIG_FILES = $CONFIG_FILES
17584 CONFIG_HEADERS = $CONFIG_HEADERS
17585 CONFIG_LINKS = $CONFIG_LINKS
17586 CONFIG_COMMANDS = $CONFIG_COMMANDS
17587 $ $0 $@
17588
ade710a5
TF
17589_CSEOF
17590echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17591echo >&5
ed698112
NN
17592_ACEOF
17593
17594# Files that config.status was made for.
ade710a5
TF
17595if test -n "$ac_config_files"; then
17596 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17597fi
ed698112 17598
ade710a5
TF
17599if test -n "$ac_config_headers"; then
17600 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17601fi
17602
17603if test -n "$ac_config_links"; then
17604 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17605fi
17606
17607if test -n "$ac_config_commands"; then
17608 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17609fi
ed698112
NN
17610
17611cat >>$CONFIG_STATUS <<\_ACEOF
ade710a5 17612
ed698112
NN
17613ac_cs_usage="\
17614\`$as_me' instantiates files from templates according to the
17615current configuration.
17616
17617Usage: $0 [OPTIONS] [FILE]...
17618
17619 -h, --help print this help, then exit
17620 -V, --version print version number, then exit
17621 -q, --quiet do not print progress messages
17622 -d, --debug don't remove temporary files
17623 --recheck update $as_me by reconfiguring in the same conditions
17624 --file=FILE[:TEMPLATE]
17625 instantiate the configuration file FILE
17626 --header=FILE[:TEMPLATE]
17627 instantiate the configuration header FILE
17628
17629Configuration files:
17630$config_files
17631
17632Configuration headers:
17633$config_headers
ee9dd372 17634
ed698112
NN
17635Configuration links:
17636$config_links
ee9dd372 17637
ed698112
NN
17638Configuration commands:
17639$config_commands
7e0c895f 17640
ed698112 17641Report bugs to <bug-autoconf@gnu.org>."
02809848 17642_ACEOF
ade710a5 17643
ed698112
NN
17644cat >>$CONFIG_STATUS <<_ACEOF
17645ac_cs_version="\\
e3f92d3b 17646libjava config.status version-unused
ade710a5 17647configured by $0, generated by GNU Autoconf 2.59,
ed698112
NN
17648 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17649
ade710a5 17650Copyright (C) 2003 Free Software Foundation, Inc.
ed698112
NN
17651This config.status script is free software; the Free Software Foundation
17652gives unlimited permission to copy, distribute and modify it."
ade710a5
TF
17653srcdir=$srcdir
17654INSTALL="$INSTALL"
ed698112
NN
17655_ACEOF
17656
17657cat >>$CONFIG_STATUS <<\_ACEOF
17658# If no file are specified by the user, then we need to provide default
17659# value. By we need to know if files were specified by the user.
17660ac_need_defaults=:
17661while test $# != 0
17662do
17663 case $1 in
17664 --*=*)
ade710a5
TF
17665 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17666 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
ed698112 17667 ac_shift=:
ee9dd372 17668 ;;
ade710a5 17669 -*)
ed698112
NN
17670 ac_option=$1
17671 ac_optarg=$2
17672 ac_shift=shift
ee9dd372 17673 ;;
ade710a5
TF
17674 *) # This is not an option, so the user has probably given explicit
17675 # arguments.
17676 ac_option=$1
17677 ac_need_defaults=false;;
ed698112 17678 esac
ee9dd372 17679
ed698112
NN
17680 case $ac_option in
17681 # Handling of the options.
ade710a5
TF
17682_ACEOF
17683cat >>$CONFIG_STATUS <<\_ACEOF
ed698112
NN
17684 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17685 ac_cs_recheck=: ;;
ade710a5
TF
17686 --version | --vers* | -V )
17687 echo "$ac_cs_version"; exit 0 ;;
17688 --he | --h)
17689 # Conflict between --help and --header
17690 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17691Try \`$0 --help' for more information." >&5
17692echo "$as_me: error: ambiguous option: $1
17693Try \`$0 --help' for more information." >&2;}
17694 { (exit 1); exit 1; }; };;
17695 --help | --hel | -h )
17696 echo "$ac_cs_usage"; exit 0 ;;
17697 --debug | --d* | -d )
ed698112
NN
17698 debug=: ;;
17699 --file | --fil | --fi | --f )
17700 $ac_shift
17701 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17702 ac_need_defaults=false;;
17703 --header | --heade | --head | --hea )
17704 $ac_shift
17705 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17706 ac_need_defaults=false;;
17707 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17708 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17709 ac_cs_silent=: ;;
ee9dd372 17710
ed698112 17711 # This is an error.
ade710a5
TF
17712 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17713Try \`$0 --help' for more information." >&5
17714echo "$as_me: error: unrecognized option: $1
17715Try \`$0 --help' for more information." >&2;}
ed698112 17716 { (exit 1); exit 1; }; } ;;
ee9dd372 17717
ade710a5 17718 *) ac_config_targets="$ac_config_targets $1" ;;
ee9dd372 17719
ed698112
NN
17720 esac
17721 shift
17722done
ee9dd372 17723
ed698112 17724ac_configure_extra_args=
ee9dd372 17725
ed698112
NN
17726if $ac_cs_silent; then
17727 exec 6>/dev/null
17728 ac_configure_extra_args="$ac_configure_extra_args --silent"
17729fi
ee9dd372 17730
ed698112
NN
17731_ACEOF
17732cat >>$CONFIG_STATUS <<_ACEOF
17733if \$ac_cs_recheck; then
ade710a5
TF
17734 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17735 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
ed698112
NN
17736fi
17737
17738_ACEOF
17739
17740cat >>$CONFIG_STATUS <<_ACEOF
ee9dd372 17741#
ade710a5 17742# INIT-COMMANDS section.
ee9dd372 17743#
ade710a5 17744
e3f92d3b 17745AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
ed698112
NN
17746srcdir=${srcdir}
17747host=${host}
17748target=${target}
17749with_multisubdir=${with_multisubdir}
17750ac_configure_args="${multilib_arg} ${ac_configure_args}"
17751CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17752libgcj_basedir=${libgcj_basedir}
17753CC="${CC}"
17754CXX="${CXX}"
17755ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
17756
17757
17758_ACEOF
17759
02809848 17760
ade710a5
TF
17761
17762cat >>$CONFIG_STATUS <<\_ACEOF
ed698112 17763for ac_config_target in $ac_config_targets
ee9dd372 17764do
ade710a5
TF
17765 case "$ac_config_target" in
17766 # Handling of arguments.
17767 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17768 "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
17769 "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
17770 "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
17771 "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
17772 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17773 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17774 "scripts/jar" ) CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
17775 "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
17776 "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
ade710a5 17777 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
adefdaca 17778 "java/net/natVMInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
ade710a5
TF
17779 "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
17780 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
17781 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
17782 "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
17783 "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
17784 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
17785 "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
17786 "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
17787 "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
17788 "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
17789 "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
17790 "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
17791 "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
17792 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17793 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17794 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17795 "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
ed698112
NN
17796 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17797echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17798 { (exit 1); exit 1; }; };;
ee9dd372
TT
17799 esac
17800done
17801
ed698112
NN
17802# If the user did not use the arguments to specify the items to instantiate,
17803# then the envvar interface is used. Set only those that are not.
17804# We use the long form for the default assignment because of an extremely
17805# bizarre bug on SunOS 4.1.3.
17806if $ac_need_defaults; then
17807 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17808 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17809 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17810 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17811fi
17812
17813# Have a temporary directory for convenience. Make it in the build tree
ade710a5 17814# simply because there is no reason to put it here, and in addition,
ed698112 17815# creating and moving files from /tmp can sometimes cause problems.
ade710a5 17816# Create a temporary directory, and hook for its removal unless debugging.
ed698112
NN
17817$debug ||
17818{
ade710a5 17819 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
ed698112
NN
17820 trap '{ (exit 1); exit 1; }' 1 2 13 15
17821}
ade710a5 17822
ed698112 17823# Create a (secure) tmp directory for tmp files.
ee9dd372 17824
ed698112 17825{
ade710a5 17826 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
ed698112
NN
17827 test -n "$tmp" && test -d "$tmp"
17828} ||
17829{
ade710a5
TF
17830 tmp=./confstat$$-$RANDOM
17831 (umask 077 && mkdir $tmp)
ed698112
NN
17832} ||
17833{
17834 echo "$me: cannot create a temporary directory in ." >&2
17835 { (exit 1); exit 1; }
17836}
ee9dd372 17837
ade710a5
TF
17838_ACEOF
17839
17840cat >>$CONFIG_STATUS <<_ACEOF
17841
ed698112 17842#
ade710a5 17843# CONFIG_FILES section.
ed698112
NN
17844#
17845
17846# No need to generate the scripts if there are no CONFIG_FILES.
17847# This happens for instance when ./config.status config.h
ade710a5
TF
17848if test -n "\$CONFIG_FILES"; then
17849 # Protect against being on the right side of a sed subst in config.status.
17850 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17851 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17852s,@SHELL@,$SHELL,;t t
17853s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17854s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17855s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17856s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17857s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17858s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17859s,@exec_prefix@,$exec_prefix,;t t
17860s,@prefix@,$prefix,;t t
17861s,@program_transform_name@,$program_transform_name,;t t
17862s,@bindir@,$bindir,;t t
17863s,@sbindir@,$sbindir,;t t
17864s,@libexecdir@,$libexecdir,;t t
17865s,@datadir@,$datadir,;t t
17866s,@sysconfdir@,$sysconfdir,;t t
17867s,@sharedstatedir@,$sharedstatedir,;t t
17868s,@localstatedir@,$localstatedir,;t t
17869s,@libdir@,$libdir,;t t
17870s,@includedir@,$includedir,;t t
17871s,@oldincludedir@,$oldincludedir,;t t
17872s,@infodir@,$infodir,;t t
17873s,@mandir@,$mandir,;t t
17874s,@build_alias@,$build_alias,;t t
17875s,@host_alias@,$host_alias,;t t
17876s,@target_alias@,$target_alias,;t t
17877s,@DEFS@,$DEFS,;t t
17878s,@ECHO_C@,$ECHO_C,;t t
17879s,@ECHO_N@,$ECHO_N,;t t
17880s,@ECHO_T@,$ECHO_T,;t t
17881s,@LIBS@,$LIBS,;t t
17882s,@build@,$build,;t t
17883s,@build_cpu@,$build_cpu,;t t
17884s,@build_vendor@,$build_vendor,;t t
17885s,@build_os@,$build_os,;t t
57255173 17886s,@build_libsubdir@,$build_libsubdir,;t t
ade710a5
TF
17887s,@build_subdir@,$build_subdir,;t t
17888s,@host_subdir@,$host_subdir,;t t
17889s,@target_subdir@,$target_subdir,;t t
17890s,@libgcj_basedir@,$libgcj_basedir,;t t
17891s,@host@,$host,;t t
17892s,@host_cpu@,$host_cpu,;t t
17893s,@host_vendor@,$host_vendor,;t t
17894s,@host_os@,$host_os,;t t
17895s,@target@,$target,;t t
17896s,@target_cpu@,$target_cpu,;t t
17897s,@target_vendor@,$target_vendor,;t t
17898s,@target_os@,$target_os,;t t
17899s,@target_noncanonical@,$target_noncanonical,;t t
17900s,@LN_S@,$LN_S,;t t
17901s,@mkinstalldirs@,$mkinstalldirs,;t t
97b8365c
TT
17902s,@JAVA_MAINTAINER_MODE_TRUE@,$JAVA_MAINTAINER_MODE_TRUE,;t t
17903s,@JAVA_MAINTAINER_MODE_FALSE@,$JAVA_MAINTAINER_MODE_FALSE,;t t
ade710a5
TF
17904s,@CC@,$CC,;t t
17905s,@ac_ct_CC@,$ac_ct_CC,;t t
17906s,@EXEEXT@,$EXEEXT,;t t
17907s,@OBJEXT@,$OBJEXT,;t t
17908s,@CXX@,$CXX,;t t
17909s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17910s,@CFLAGS@,$CFLAGS,;t t
17911s,@CXXFLAGS@,$CXXFLAGS,;t t
17912s,@LDFLAGS@,$LDFLAGS,;t t
17913s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17914s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17915s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17916s,@CYGPATH_W@,$CYGPATH_W,;t t
17917s,@PACKAGE@,$PACKAGE,;t t
17918s,@VERSION@,$VERSION,;t t
17919s,@ACLOCAL@,$ACLOCAL,;t t
17920s,@AUTOCONF@,$AUTOCONF,;t t
17921s,@AUTOMAKE@,$AUTOMAKE,;t t
17922s,@AUTOHEADER@,$AUTOHEADER,;t t
17923s,@MAKEINFO@,$MAKEINFO,;t t
17924s,@install_sh@,$install_sh,;t t
17925s,@STRIP@,$STRIP,;t t
17926s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17927s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17928s,@mkdir_p@,$mkdir_p,;t t
17929s,@AWK@,$AWK,;t t
17930s,@SET_MAKE@,$SET_MAKE,;t t
17931s,@am__leading_dot@,$am__leading_dot,;t t
17932s,@AMTAR@,$AMTAR,;t t
17933s,@am__tar@,$am__tar,;t t
17934s,@am__untar@,$am__untar,;t t
17935s,@DEPDIR@,$DEPDIR,;t t
17936s,@am__include@,$am__include,;t t
17937s,@am__quote@,$am__quote,;t t
17938s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17939s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17940s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17941s,@CCDEPMODE@,$CCDEPMODE,;t t
17942s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17943s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17944s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17945s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17946s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17947s,@AS@,$AS,;t t
17948s,@ac_ct_AS@,$ac_ct_AS,;t t
17949s,@LD@,$LD,;t t
17950s,@ac_ct_LD@,$ac_ct_LD,;t t
17951s,@AR@,$AR,;t t
17952s,@ac_ct_AR@,$ac_ct_AR,;t t
17953s,@RANLIB@,$RANLIB,;t t
17954s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17955s,@JAR@,$JAR,;t t
17956s,@ZIP@,$ZIP,;t t
17957s,@UNZIP@,$UNZIP,;t t
17958s,@BASH_JAR_TRUE@,$BASH_JAR_TRUE,;t t
17959s,@BASH_JAR_FALSE@,$BASH_JAR_FALSE,;t t
17960s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17961s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17962s,@MAINT@,$MAINT,;t t
17963s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
17964s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
17965s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
17966s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
17967s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
17968s,@TOOLKIT@,$TOOLKIT,;t t
17969s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
17970s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
97b8365c
TT
17971s,@X_AWT_TRUE@,$X_AWT_TRUE,;t t
17972s,@X_AWT_FALSE@,$X_AWT_FALSE,;t t
17973s,@GCJ_FOR_ECJX@,$GCJ_FOR_ECJX,;t t
ade710a5 17974s,@GCJH@,$GCJH,;t t
97b8365c 17975s,@host_exeext@,$host_exeext,;t t
ade710a5
TF
17976s,@INCLTDL@,$INCLTDL,;t t
17977s,@LIBLTDL@,$LIBLTDL,;t t
17978s,@DIRLTDL@,$DIRLTDL,;t t
17979s,@LIBTOOL@,$LIBTOOL,;t t
17980s,@CXXCPP@,$CXXCPP,;t t
17981s,@CPPFLAGS@,$CPPFLAGS,;t t
17982s,@GCJ@,$GCJ,;t t
17983s,@GCJFLAGS@,$GCJFLAGS,;t t
17984s,@GCJDEPMODE@,$GCJDEPMODE,;t t
17985s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
17986s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
17987s,@subdirs@,$subdirs,;t t
17988s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
17989s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
97b8365c
TT
17990s,@ECJ_BUILD_JAR@,$ECJ_BUILD_JAR,;t t
17991s,@ECJ_JAR@,$ECJ_JAR,;t t
17992s,@BUILD_ECJ1_TRUE@,$BUILD_ECJ1_TRUE,;t t
17993s,@BUILD_ECJ1_FALSE@,$BUILD_ECJ1_FALSE,;t t
17994s,@INSTALL_ECJ_JAR_TRUE@,$INSTALL_ECJ_JAR_TRUE,;t t
17995s,@INSTALL_ECJ_JAR_FALSE@,$INSTALL_ECJ_JAR_FALSE,;t t
ade710a5
TF
17996s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
17997s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
17998s,@JAVA_HOME@,$JAVA_HOME,;t t
17999s,@INTERPRETER@,$INTERPRETER,;t t
18000s,@LIBFFI@,$LIBFFI,;t t
18001s,@LIBFFIINCS@,$LIBFFIINCS,;t t
97b8365c 18002s,@PLATFORM@,$PLATFORM,;t t
ade710a5
TF
18003s,@CPP@,$CPP,;t t
18004s,@EGREP@,$EGREP,;t t
18005s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
18006s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
18007s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
18008s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
18009s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
18010s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
18011s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
18012s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
18013s,@ZLIBSPEC@,$ZLIBSPEC,;t t
18014s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
18015s,@X_CFLAGS@,$X_CFLAGS,;t t
18016s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
18017s,@X_LIBS@,$X_LIBS,;t t
18018s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
ade710a5
TF
18019s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
18020s,@GCLIBS@,$GCLIBS,;t t
18021s,@GCINCS@,$GCINCS,;t t
18022s,@GCDEPS@,$GCDEPS,;t t
18023s,@GCSPEC@,$GCSPEC,;t t
18024s,@JC1GCSPEC@,$JC1GCSPEC,;t t
18025s,@GCTESTSPEC@,$GCTESTSPEC,;t t
18026s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
18027s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
18028s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
18029s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
18030s,@THREADLIBS@,$THREADLIBS,;t t
18031s,@THREADINCS@,$THREADINCS,;t t
18032s,@THREADDEPS@,$THREADDEPS,;t t
18033s,@THREADSPEC@,$THREADSPEC,;t t
5a121897 18034s,@THREADSTARTFILESPEC@,$THREADSTARTFILESPEC,;t t
ade710a5
TF
18035s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
18036s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
18037s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
18038s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
18039s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
18040s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
18041s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
18042s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
97c074fd
JJ
18043s,@USE_LIBGCJ_BC_TRUE@,$USE_LIBGCJ_BC_TRUE,;t t
18044s,@USE_LIBGCJ_BC_FALSE@,$USE_LIBGCJ_BC_FALSE,;t t
18045s,@LIBGCJ_SPEC@,$LIBGCJ_SPEC,;t t
ade710a5
TF
18046s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
18047s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
18048s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
18049s,@LIBICONV@,$LIBICONV,;t t
18050s,@LTLIBICONV@,$LTLIBICONV,;t t
97b8365c 18051s,@LIBMAGIC@,$LIBMAGIC,;t t
348cf028 18052s,@PKG_CONFIG@,$PKG_CONFIG,;t t
ade710a5
TF
18053s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
18054s,@GTK_LIBS@,$GTK_LIBS,;t t
18055s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
18056s,@GLIB_LIBS@,$GLIB_LIBS,;t t
18057s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
18058s,@LIBART_LIBS@,$LIBART_LIBS,;t t
18059s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
18060s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
18061s,@ZLIBS@,$ZLIBS,;t t
18062s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
18063s,@ZINCS@,$ZINCS,;t t
18064s,@DIVIDESPEC@,$DIVIDESPEC,;t t
18065s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
18066s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
18067s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
18068s,@IEEESPEC@,$IEEESPEC,;t t
18069s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
18070s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
97b8365c
TT
18071s,@ENABLE_SHARED_TRUE@,$ENABLE_SHARED_TRUE,;t t
18072s,@ENABLE_SHARED_FALSE@,$ENABLE_SHARED_FALSE,;t t
ade710a5
TF
18073s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
18074s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
18075s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
18076s,@toolexecdir@,$toolexecdir,;t t
18077s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
18078s,@toolexeclibdir@,$toolexeclibdir,;t t
18079s,@dbexecdir@,$dbexecdir,;t t
18080s,@GCJVERSION@,$GCJVERSION,;t t
18081s,@gxx_include_dir@,$gxx_include_dir,;t t
18082s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
18083s,@ALLOCA@,$ALLOCA,;t t
18084s,@PERL@,$PERL,;t t
18085s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
18086s,@LD_START_STATIC_SPEC@,$LD_START_STATIC_SPEC,;t t
18087s,@LD_FINISH_STATIC_SPEC@,$LD_FINISH_STATIC_SPEC,;t t
18088s,@here@,$here,;t t
18089s,@LIBOBJS@,$LIBOBJS,;t t
18090s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18091CEOF
18092
18093_ACEOF
18094
18095 cat >>$CONFIG_STATUS <<\_ACEOF
18096 # Split the substitutions into bite-sized pieces for seds with
18097 # small command number limits, like on Digital OSF/1 and HP-UX.
18098 ac_max_sed_lines=48
18099 ac_sed_frag=1 # Number of current file.
18100 ac_beg=1 # First line for current file.
18101 ac_end=$ac_max_sed_lines # Line after last line for current file.
18102 ac_more_lines=:
18103 ac_sed_cmds=
18104 while $ac_more_lines; do
18105 if test $ac_beg -gt 1; then
18106 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18107 else
18108 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18109 fi
18110 if test ! -s $tmp/subs.frag; then
18111 ac_more_lines=false
18112 else
18113 # The purpose of the label and of the branching condition is to
18114 # speed up the sed processing (if there are no `@' at all, there
18115 # is no need to browse any of the substitutions).
18116 # These are the two extra sed commands mentioned above.
18117 (echo ':t
18118 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18119 if test -z "$ac_sed_cmds"; then
18120 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18121 else
18122 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18123 fi
18124 ac_sed_frag=`expr $ac_sed_frag + 1`
18125 ac_beg=$ac_end
18126 ac_end=`expr $ac_end + $ac_max_sed_lines`
18127 fi
18128 done
18129 if test -z "$ac_sed_cmds"; then
18130 ac_sed_cmds=cat
02809848 18131 fi
ade710a5 18132fi # test -n "$CONFIG_FILES"
02809848 18133
02809848 18134_ACEOF
ed698112 18135cat >>$CONFIG_STATUS <<\_ACEOF
ade710a5
TF
18136for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18137 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18138 case $ac_file in
18139 - | *:- | *:-:* ) # input from stdin
18140 cat >$tmp/stdin
18141 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18142 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18143 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18144 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18145 * ) ac_file_in=$ac_file.in ;;
ee9dd372
TT
18146 esac
18147
ade710a5
TF
18148 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18149 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
ed698112
NN
18150$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18151 X"$ac_file" : 'X\(//\)[^/]' \| \
18152 X"$ac_file" : 'X\(//\)$' \| \
ade710a5
TF
18153 X"$ac_file" : 'X\(/\)' \| \
18154 . : '\(.\)' 2>/dev/null ||
ed698112 18155echo X"$ac_file" |
ade710a5
TF
18156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18157 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18158 /^X\(\/\/\)$/{ s//\1/; q; }
18159 /^X\(\/\).*/{ s//\1/; q; }
18160 s/.*/./; q'`
18161 { if $as_mkdir_p; then
18162 mkdir -p "$ac_dir"
18163 else
18164 as_dir="$ac_dir"
ed698112 18165 as_dirs=
ade710a5
TF
18166 while test ! -d "$as_dir"; do
18167 as_dirs="$as_dir $as_dirs"
18168 as_dir=`(dirname "$as_dir") 2>/dev/null ||
ed698112
NN
18169$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18170 X"$as_dir" : 'X\(//\)[^/]' \| \
18171 X"$as_dir" : 'X\(//\)$' \| \
ade710a5
TF
18172 X"$as_dir" : 'X\(/\)' \| \
18173 . : '\(.\)' 2>/dev/null ||
ed698112 18174echo X"$as_dir" |
ade710a5
TF
18175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18176 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18177 /^X\(\/\/\)$/{ s//\1/; q; }
18178 /^X\(\/\).*/{ s//\1/; q; }
18179 s/.*/./; q'`
ed698112 18180 done
ade710a5
TF
18181 test ! -n "$as_dirs" || mkdir $as_dirs
18182 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18183echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
ed698112 18184 { (exit 1); exit 1; }; }; }
ade710a5 18185
ed698112
NN
18186 ac_builddir=.
18187
ade710a5 18188if test "$ac_dir" != .; then
ed698112 18189 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
ade710a5
TF
18190 # A "../" for each directory in $ac_dir_suffix.
18191 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18192else
18193 ac_dir_suffix= ac_top_builddir=
18194fi
ee9dd372 18195
ed698112 18196case $srcdir in
ade710a5 18197 .) # No --srcdir option. We are building in place.
ed698112 18198 ac_srcdir=.
ade710a5
TF
18199 if test -z "$ac_top_builddir"; then
18200 ac_top_srcdir=.
18201 else
18202 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18203 fi ;;
18204 [\\/]* | ?:[\\/]* ) # Absolute path.
ed698112 18205 ac_srcdir=$srcdir$ac_dir_suffix;
ade710a5
TF
18206 ac_top_srcdir=$srcdir ;;
18207 *) # Relative path.
18208 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18209 ac_top_srcdir=$ac_top_builddir$srcdir ;;
ed698112 18210esac
ee9dd372 18211
ade710a5
TF
18212# Do not use `cd foo && pwd` to compute absolute paths, because
18213# the directories may not exist.
18214case `pwd` in
18215.) ac_abs_builddir="$ac_dir";;
18216*)
18217 case "$ac_dir" in
18218 .) ac_abs_builddir=`pwd`;;
18219 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18220 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18221 esac;;
18222esac
18223case $ac_abs_builddir in
18224.) ac_abs_top_builddir=${ac_top_builddir}.;;
18225*)
18226 case ${ac_top_builddir}. in
18227 .) ac_abs_top_builddir=$ac_abs_builddir;;
18228 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18229 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18230 esac;;
18231esac
18232case $ac_abs_builddir in
18233.) ac_abs_srcdir=$ac_srcdir;;
18234*)
18235 case $ac_srcdir in
18236 .) ac_abs_srcdir=$ac_abs_builddir;;
18237 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18238 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18239 esac;;
18240esac
18241case $ac_abs_builddir in
18242.) ac_abs_top_srcdir=$ac_top_srcdir;;
18243*)
18244 case $ac_top_srcdir in
18245 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18246 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18247 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18248 esac;;
18249esac
ee9dd372 18250
ed698112
NN
18251
18252 case $INSTALL in
18253 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
ade710a5 18254 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
ee9dd372
TT
18255 esac
18256
ade710a5
TF
18257 if test x"$ac_file" != x-; then
18258 { echo "$as_me:$LINENO: creating $ac_file" >&5
18259echo "$as_me: creating $ac_file" >&6;}
18260 rm -f "$ac_file"
18261 fi
18262 # Let's still pretend it is `configure' which instantiates (i.e., don't
18263 # use $as_me), people would be surprised to read:
18264 # /* config.h. Generated by config.status. */
18265 if test x"$ac_file" = x-; then
18266 configure_input=
18267 else
18268 configure_input="$ac_file. "
18269 fi
18270 configure_input=$configure_input"Generated from `echo $ac_file_in |
18271 sed 's,.*/,,'` by configure."
18272
18273 # First look for the input files in the build tree, otherwise in the
18274 # src tree.
18275 ac_file_inputs=`IFS=:
18276 for f in $ac_file_in; do
18277 case $f in
18278 -) echo $tmp/stdin ;;
18279 [\\/$]*)
18280 # Absolute (can't be DOS-style, as IFS=:)
18281 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18282echo "$as_me: error: cannot find input file: $f" >&2;}
18283 { (exit 1); exit 1; }; }
18284 echo "$f";;
18285 *) # Relative
18286 if test -f "$f"; then
18287 # Build tree
18288 echo "$f"
18289 elif test -f "$srcdir/$f"; then
18290 # Source tree
18291 echo "$srcdir/$f"
18292 else
18293 # /dev/null tree
18294 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18295echo "$as_me: error: cannot find input file: $f" >&2;}
18296 { (exit 1); exit 1; }; }
18297 fi;;
18298 esac
18299 done` || { (exit 1); exit 1; }
02809848 18300_ACEOF
ed698112
NN
18301cat >>$CONFIG_STATUS <<_ACEOF
18302 sed "$ac_vpsub
18303$extrasub
18304_ACEOF
18305cat >>$CONFIG_STATUS <<\_ACEOF
18306:t
18307/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
ade710a5
TF
18308s,@configure_input@,$configure_input,;t t
18309s,@srcdir@,$ac_srcdir,;t t
18310s,@abs_srcdir@,$ac_abs_srcdir,;t t
18311s,@top_srcdir@,$ac_top_srcdir,;t t
18312s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18313s,@builddir@,$ac_builddir,;t t
18314s,@abs_builddir@,$ac_abs_builddir,;t t
18315s,@top_builddir@,$ac_top_builddir,;t t
18316s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18317s,@INSTALL@,$ac_INSTALL,;t t
18318" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18319 rm -f $tmp/stdin
18320 if test x"$ac_file" != x-; then
18321 mv $tmp/out $ac_file
18322 else
18323 cat $tmp/out
18324 rm -f $tmp/out
18325 fi
18326
18327 # Run the commands associated with the file.
ed698112 18328 case $ac_file in
ade710a5 18329 scripts/jar ) chmod +x scripts/jar ;;
ee9dd372 18330 esac
ade710a5
TF
18331done
18332_ACEOF
18333cat >>$CONFIG_STATUS <<\_ACEOF
18334
18335#
18336# CONFIG_HEADER section.
18337#
18338
18339# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18340# NAME is the cpp macro being defined and VALUE is the value it is being given.
18341#
18342# ac_d sets the value in "#define NAME VALUE" lines.
18343ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18344ac_dB='[ ].*$,\1#\2'
18345ac_dC=' '
18346ac_dD=',;t'
18347# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18348ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18349ac_uB='$,\1#\2define\3'
18350ac_uC=' '
18351ac_uD=',;t'
18352
18353for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18354 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18355 case $ac_file in
18356 - | *:- | *:-:* ) # input from stdin
18357 cat >$tmp/stdin
18358 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18359 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18360 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18361 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18362 * ) ac_file_in=$ac_file.in ;;
18363 esac
18364
18365 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18366echo "$as_me: creating $ac_file" >&6;}
18367
18368 # First look for the input files in the build tree, otherwise in the
18369 # src tree.
18370 ac_file_inputs=`IFS=:
18371 for f in $ac_file_in; do
18372 case $f in
18373 -) echo $tmp/stdin ;;
18374 [\\/$]*)
18375 # Absolute (can't be DOS-style, as IFS=:)
18376 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18377echo "$as_me: error: cannot find input file: $f" >&2;}
18378 { (exit 1); exit 1; }; }
18379 # Do quote $f, to prevent DOS paths from being IFS'd.
18380 echo "$f";;
18381 *) # Relative
18382 if test -f "$f"; then
18383 # Build tree
18384 echo "$f"
18385 elif test -f "$srcdir/$f"; then
18386 # Source tree
18387 echo "$srcdir/$f"
18388 else
18389 # /dev/null tree
18390 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18391echo "$as_me: error: cannot find input file: $f" >&2;}
18392 { (exit 1); exit 1; }; }
18393 fi;;
18394 esac
18395 done` || { (exit 1); exit 1; }
18396 # Remove the trailing spaces.
18397 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18398
18399_ACEOF
18400
18401# Transform confdefs.h into two sed scripts, `conftest.defines' and
18402# `conftest.undefs', that substitutes the proper values into
18403# config.h.in to produce config.h. The first handles `#define'
18404# templates, and the second `#undef' templates.
18405# And first: Protect against being on the right side of a sed subst in
18406# config.status. Protect against being in an unquoted here document
18407# in config.status.
18408rm -f conftest.defines conftest.undefs
18409# Using a here document instead of a string reduces the quoting nightmare.
18410# Putting comments in sed scripts is not portable.
18411#
18412# `end' is used to avoid that the second main sed command (meant for
18413# 0-ary CPP macros) applies to n-ary macro definitions.
18414# See the Autoconf documentation for `clear'.
18415cat >confdef2sed.sed <<\_ACEOF
18416s/[\\&,]/\\&/g
18417s,[\\$`],\\&,g
18418t clear
18419: clear
18420s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18421t end
18422s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18423: end
18424_ACEOF
18425# If some macros were called several times there might be several times
18426# the same #defines, which is useless. Nevertheless, we may not want to
18427# sort them, since we want the *last* AC-DEFINE to be honored.
18428uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18429sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18430rm -f confdef2sed.sed
18431
18432# This sed command replaces #undef with comments. This is necessary, for
ee9dd372
TT
18433# example, in the case of _POSIX_SOURCE, which is predefined and required
18434# on some systems where configure will not decide to define it.
ade710a5
TF
18435cat >>conftest.undefs <<\_ACEOF
18436s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18437_ACEOF
18438
18439# Break up conftest.defines because some shells have a limit on the size
18440# of here documents, and old seds have small limits too (100 cmds).
18441echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18442echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18443echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18444echo ' :' >>$CONFIG_STATUS
18445rm -f conftest.tail
18446while grep . conftest.defines >/dev/null
ed698112 18447do
ade710a5
TF
18448 # Write a limited-size here document to $tmp/defines.sed.
18449 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18450 # Speed up: don't consider the non `#define' lines.
18451 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18452 # Work around the forget-to-reset-the-flag bug.
18453 echo 't clr' >>$CONFIG_STATUS
18454 echo ': clr' >>$CONFIG_STATUS
18455 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
ed698112 18456 echo 'CEOF
ade710a5
TF
18457 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18458 rm -f $tmp/in
18459 mv $tmp/out $tmp/in
18460' >>$CONFIG_STATUS
18461 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
ed698112
NN
18462 rm -f conftest.defines
18463 mv conftest.tail conftest.defines
18464done
ade710a5
TF
18465rm -f conftest.defines
18466echo ' fi # grep' >>$CONFIG_STATUS
18467echo >>$CONFIG_STATUS
18468
18469# Break up conftest.undefs because some shells have a limit on the size
18470# of here documents, and old seds have small limits too (100 cmds).
18471echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18472rm -f conftest.tail
18473while grep . conftest.undefs >/dev/null
18474do
18475 # Write a limited-size here document to $tmp/undefs.sed.
18476 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18477 # Speed up: don't consider the non `#undef'
18478 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18479 # Work around the forget-to-reset-the-flag bug.
18480 echo 't clr' >>$CONFIG_STATUS
18481 echo ': clr' >>$CONFIG_STATUS
18482 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18483 echo 'CEOF
18484 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18485 rm -f $tmp/in
18486 mv $tmp/out $tmp/in
18487' >>$CONFIG_STATUS
18488 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18489 rm -f conftest.undefs
18490 mv conftest.tail conftest.undefs
18491done
18492rm -f conftest.undefs
ed698112
NN
18493
18494cat >>$CONFIG_STATUS <<\_ACEOF
ade710a5
TF
18495 # Let's still pretend it is `configure' which instantiates (i.e., don't
18496 # use $as_me), people would be surprised to read:
18497 # /* config.h. Generated by config.status. */
18498 if test x"$ac_file" = x-; then
18499 echo "/* Generated by configure. */" >$tmp/config.h
18500 else
18501 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18502 fi
18503 cat $tmp/in >>$tmp/config.h
18504 rm -f $tmp/in
ed698112 18505 if test x"$ac_file" != x-; then
ade710a5 18506 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
ed698112
NN
18507 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18508echo "$as_me: $ac_file is unchanged" >&6;}
18509 else
ade710a5
TF
18510 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18511$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18512 X"$ac_file" : 'X\(//\)[^/]' \| \
18513 X"$ac_file" : 'X\(//\)$' \| \
18514 X"$ac_file" : 'X\(/\)' \| \
18515 . : '\(.\)' 2>/dev/null ||
18516echo X"$ac_file" |
18517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18518 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18519 /^X\(\/\/\)$/{ s//\1/; q; }
18520 /^X\(\/\).*/{ s//\1/; q; }
18521 s/.*/./; q'`
18522 { if $as_mkdir_p; then
18523 mkdir -p "$ac_dir"
18524 else
18525 as_dir="$ac_dir"
18526 as_dirs=
18527 while test ! -d "$as_dir"; do
18528 as_dirs="$as_dir $as_dirs"
18529 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18530$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18531 X"$as_dir" : 'X\(//\)[^/]' \| \
18532 X"$as_dir" : 'X\(//\)$' \| \
18533 X"$as_dir" : 'X\(/\)' \| \
18534 . : '\(.\)' 2>/dev/null ||
18535echo X"$as_dir" |
18536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18537 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18538 /^X\(\/\/\)$/{ s//\1/; q; }
18539 /^X\(\/\).*/{ s//\1/; q; }
18540 s/.*/./; q'`
18541 done
18542 test ! -n "$as_dirs" || mkdir $as_dirs
18543 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18544echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18545 { (exit 1); exit 1; }; }; }
18546
ed698112 18547 rm -f $ac_file
ade710a5 18548 mv $tmp/config.h $ac_file
ed698112
NN
18549 fi
18550 else
ade710a5
TF
18551 cat $tmp/config.h
18552 rm -f $tmp/config.h
ed698112 18553 fi
e3f92d3b
MK
18554# Compute $ac_file's index in $config_headers.
18555_am_stamp_count=1
18556for _am_header in $config_headers :; do
18557 case $_am_header in
18558 $ac_file | $ac_file:* )
18559 break ;;
18560 * )
18561 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18562 esac
18563done
ade710a5 18564echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
e3f92d3b
MK
18565$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18566 X$ac_file : 'X\(//\)[^/]' \| \
18567 X$ac_file : 'X\(//\)$' \| \
ade710a5
TF
18568 X$ac_file : 'X\(/\)' \| \
18569 . : '\(.\)' 2>/dev/null ||
e3f92d3b 18570echo X$ac_file |
ade710a5
TF
18571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18572 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18573 /^X\(\/\/\)$/{ s//\1/; q; }
18574 /^X\(\/\).*/{ s//\1/; q; }
18575 s/.*/./; q'`/stamp-h$_am_stamp_count
18576done
18577_ACEOF
18578cat >>$CONFIG_STATUS <<\_ACEOF
18579
18580#
18581# CONFIG_LINKS section.
18582#
ee9dd372 18583
ade710a5
TF
18584for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18585 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18586 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18587
18588 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18589echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
ee9dd372
TT
18590
18591 if test ! -r $srcdir/$ac_source; then
ed698112
NN
18592 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18593echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18594 { (exit 1); exit 1; }; }
ee9dd372 18595 fi
ade710a5
TF
18596 rm -f $ac_dest
18597
18598 # Make relative symlinks.
18599 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18600$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18601 X"$ac_dest" : 'X\(//\)[^/]' \| \
18602 X"$ac_dest" : 'X\(//\)$' \| \
18603 X"$ac_dest" : 'X\(/\)' \| \
18604 . : '\(.\)' 2>/dev/null ||
18605echo X"$ac_dest" |
18606 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18607 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18608 /^X\(\/\/\)$/{ s//\1/; q; }
18609 /^X\(\/\).*/{ s//\1/; q; }
18610 s/.*/./; q'`
18611 { if $as_mkdir_p; then
18612 mkdir -p "$ac_dest_dir"
18613 else
18614 as_dir="$ac_dest_dir"
18615 as_dirs=
18616 while test ! -d "$as_dir"; do
18617 as_dirs="$as_dir $as_dirs"
18618 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18619$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18620 X"$as_dir" : 'X\(//\)[^/]' \| \
18621 X"$as_dir" : 'X\(//\)$' \| \
18622 X"$as_dir" : 'X\(/\)' \| \
18623 . : '\(.\)' 2>/dev/null ||
18624echo X"$as_dir" |
18625 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18626 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18627 /^X\(\/\/\)$/{ s//\1/; q; }
18628 /^X\(\/\).*/{ s//\1/; q; }
18629 s/.*/./; q'`
18630 done
18631 test ! -n "$as_dirs" || mkdir $as_dirs
18632 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
18633echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
18634 { (exit 1); exit 1; }; }; }
18635
18636 ac_builddir=.
18637
18638if test "$ac_dest_dir" != .; then
18639 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18640 # A "../" for each directory in $ac_dir_suffix.
18641 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18642else
18643 ac_dir_suffix= ac_top_builddir=
18644fi
18645
18646case $srcdir in
18647 .) # No --srcdir option. We are building in place.
18648 ac_srcdir=.
18649 if test -z "$ac_top_builddir"; then
18650 ac_top_srcdir=.
18651 else
18652 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18653 fi ;;
18654 [\\/]* | ?:[\\/]* ) # Absolute path.
18655 ac_srcdir=$srcdir$ac_dir_suffix;
18656 ac_top_srcdir=$srcdir ;;
18657 *) # Relative path.
18658 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18659 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18660esac
18661
18662# Do not use `cd foo && pwd` to compute absolute paths, because
18663# the directories may not exist.
18664case `pwd` in
18665.) ac_abs_builddir="$ac_dest_dir";;
18666*)
18667 case "$ac_dest_dir" in
18668 .) ac_abs_builddir=`pwd`;;
18669 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
18670 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
18671 esac;;
18672esac
18673case $ac_abs_builddir in
18674.) ac_abs_top_builddir=${ac_top_builddir}.;;
18675*)
18676 case ${ac_top_builddir}. in
18677 .) ac_abs_top_builddir=$ac_abs_builddir;;
18678 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18679 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18680 esac;;
18681esac
18682case $ac_abs_builddir in
18683.) ac_abs_srcdir=$ac_srcdir;;
18684*)
18685 case $ac_srcdir in
18686 .) ac_abs_srcdir=$ac_abs_builddir;;
18687 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18688 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18689 esac;;
18690esac
18691case $ac_abs_builddir in
18692.) ac_abs_top_srcdir=$ac_top_srcdir;;
18693*)
18694 case $ac_top_srcdir in
18695 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18696 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18697 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18698 esac;;
18699esac
18700
ed698112
NN
18701
18702 case $srcdir in
18703 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
ade710a5 18704 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
ee9dd372 18705 esac
ade710a5
TF
18706
18707 # Try a symlink, then a hard link, then a copy.
18708 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18709 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
18710 cp -p $srcdir/$ac_source $ac_dest ||
18711 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
18712echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
ed698112 18713 { (exit 1); exit 1; }; }
ade710a5
TF
18714done
18715_ACEOF
18716cat >>$CONFIG_STATUS <<\_ACEOF
18717
18718#
18719# CONFIG_COMMANDS section.
18720#
18721for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18722 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18723 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18724 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18725$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18726 X"$ac_dest" : 'X\(//\)[^/]' \| \
18727 X"$ac_dest" : 'X\(//\)$' \| \
18728 X"$ac_dest" : 'X\(/\)' \| \
18729 . : '\(.\)' 2>/dev/null ||
18730echo X"$ac_dest" |
18731 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18732 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18733 /^X\(\/\/\)$/{ s//\1/; q; }
18734 /^X\(\/\).*/{ s//\1/; q; }
18735 s/.*/./; q'`
18736 { if $as_mkdir_p; then
18737 mkdir -p "$ac_dir"
18738 else
18739 as_dir="$ac_dir"
18740 as_dirs=
18741 while test ! -d "$as_dir"; do
18742 as_dirs="$as_dir $as_dirs"
18743 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18744$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18745 X"$as_dir" : 'X\(//\)[^/]' \| \
18746 X"$as_dir" : 'X\(//\)$' \| \
18747 X"$as_dir" : 'X\(/\)' \| \
18748 . : '\(.\)' 2>/dev/null ||
18749echo X"$as_dir" |
18750 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18751 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18752 /^X\(\/\/\)$/{ s//\1/; q; }
18753 /^X\(\/\).*/{ s//\1/; q; }
18754 s/.*/./; q'`
18755 done
18756 test ! -n "$as_dirs" || mkdir $as_dirs
18757 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18758echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18759 { (exit 1); exit 1; }; }; }
18760
18761 ac_builddir=.
ed698112 18762
ade710a5
TF
18763if test "$ac_dir" != .; then
18764 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18765 # A "../" for each directory in $ac_dir_suffix.
18766 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18767else
18768 ac_dir_suffix= ac_top_builddir=
18769fi
ed698112 18770
ade710a5
TF
18771case $srcdir in
18772 .) # No --srcdir option. We are building in place.
18773 ac_srcdir=.
18774 if test -z "$ac_top_builddir"; then
18775 ac_top_srcdir=.
18776 else
18777 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18778 fi ;;
18779 [\\/]* | ?:[\\/]* ) # Absolute path.
18780 ac_srcdir=$srcdir$ac_dir_suffix;
18781 ac_top_srcdir=$srcdir ;;
18782 *) # Relative path.
18783 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18784 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18785esac
18786
18787# Do not use `cd foo && pwd` to compute absolute paths, because
18788# the directories may not exist.
18789case `pwd` in
18790.) ac_abs_builddir="$ac_dir";;
18791*)
18792 case "$ac_dir" in
18793 .) ac_abs_builddir=`pwd`;;
18794 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18795 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18796 esac;;
18797esac
18798case $ac_abs_builddir in
18799.) ac_abs_top_builddir=${ac_top_builddir}.;;
18800*)
18801 case ${ac_top_builddir}. in
18802 .) ac_abs_top_builddir=$ac_abs_builddir;;
18803 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18804 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18805 esac;;
18806esac
18807case $ac_abs_builddir in
18808.) ac_abs_srcdir=$ac_srcdir;;
18809*)
18810 case $ac_srcdir in
18811 .) ac_abs_srcdir=$ac_abs_builddir;;
18812 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18813 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18814 esac;;
18815esac
18816case $ac_abs_builddir in
18817.) ac_abs_top_srcdir=$ac_top_srcdir;;
18818*)
18819 case $ac_top_srcdir in
18820 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18821 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18822 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18823 esac;;
18824esac
18825
18826
18827 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18828echo "$as_me: executing $ac_dest commands" >&6;}
18829 case $ac_dest in
18830 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
e3f92d3b
MK
18831 # Strip MF so we end up with the name of the file.
18832 mf=`echo "$mf" | sed -e 's/:.*$//'`
18833 # Check whether this is an Automake generated Makefile or not.
18834 # We used to match only the files named `Makefile.in', but
18835 # some people rename them; so instead we look at the file content.
18836 # Grep'ing the first line is not enough: some people post-process
18837 # each Makefile.in and add a new line on top of each file to say so.
18838 # So let's grep whole file.
18839 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
ade710a5 18840 dirpart=`(dirname "$mf") 2>/dev/null ||
e3f92d3b
MK
18841$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18842 X"$mf" : 'X\(//\)[^/]' \| \
18843 X"$mf" : 'X\(//\)$' \| \
ade710a5
TF
18844 X"$mf" : 'X\(/\)' \| \
18845 . : '\(.\)' 2>/dev/null ||
e3f92d3b 18846echo X"$mf" |
ade710a5
TF
18847 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18848 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18849 /^X\(\/\/\)$/{ s//\1/; q; }
18850 /^X\(\/\).*/{ s//\1/; q; }
18851 s/.*/./; q'`
e3f92d3b
MK
18852 else
18853 continue
18854 fi
18855 # Extract the definition of DEPDIR, am__include, and am__quote
18856 # from the Makefile without running `make'.
18857 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18858 test -z "$DEPDIR" && continue
18859 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18860 test -z "am__include" && continue
18861 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18862 # When using ansi2knr, U may be empty or an underscore; expand it
18863 U=`sed -n 's/^U = //p' < "$mf"`
18864 # Find all dependency output files, they are included files with
18865 # $(DEPDIR) in their names. We invoke sed twice because it is the
18866 # simplest approach to changing $(DEPDIR) to its actual value in the
18867 # expansion.
18868 for file in `sed -n "
18869 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18870 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18871 # Make sure the directory exists.
18872 test -f "$dirpart/$file" && continue
ade710a5 18873 fdir=`(dirname "$file") 2>/dev/null ||
e3f92d3b
MK
18874$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18875 X"$file" : 'X\(//\)[^/]' \| \
18876 X"$file" : 'X\(//\)$' \| \
ade710a5
TF
18877 X"$file" : 'X\(/\)' \| \
18878 . : '\(.\)' 2>/dev/null ||
e3f92d3b 18879echo X"$file" |
ade710a5
TF
18880 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18881 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18882 /^X\(\/\/\)$/{ s//\1/; q; }
18883 /^X\(\/\).*/{ s//\1/; q; }
18884 s/.*/./; q'`
18885 { if $as_mkdir_p; then
18886 mkdir -p $dirpart/$fdir
18887 else
18888 as_dir=$dirpart/$fdir
e3f92d3b 18889 as_dirs=
ade710a5
TF
18890 while test ! -d "$as_dir"; do
18891 as_dirs="$as_dir $as_dirs"
18892 as_dir=`(dirname "$as_dir") 2>/dev/null ||
e3f92d3b
MK
18893$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18894 X"$as_dir" : 'X\(//\)[^/]' \| \
18895 X"$as_dir" : 'X\(//\)$' \| \
ade710a5
TF
18896 X"$as_dir" : 'X\(/\)' \| \
18897 . : '\(.\)' 2>/dev/null ||
e3f92d3b 18898echo X"$as_dir" |
ade710a5
TF
18899 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18900 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18901 /^X\(\/\/\)$/{ s//\1/; q; }
18902 /^X\(\/\).*/{ s//\1/; q; }
18903 s/.*/./; q'`
e3f92d3b 18904 done
ade710a5
TF
18905 test ! -n "$as_dirs" || mkdir $as_dirs
18906 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18907echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
e3f92d3b 18908 { (exit 1); exit 1; }; }; }
ade710a5 18909
e3f92d3b
MK
18910 # echo "creating $dirpart/$file"
18911 echo '# dummy' > "$dirpart/$file"
18912 done
18913done
18914 ;;
ade710a5 18915 default ) # Only add multilib support code if we just rebuilt top-level Makefile.
eb019738
TT
18916case " $CONFIG_FILES " in
18917 *" Makefile "*)
6706f116 18918 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
eb019738
TT
18919 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
18920 ;;
18921esac
3162d93d
AO
18922for ac_multi_file in $CONFIG_FILES; do
18923 case $ac_multi_file in
18924 */Makefile)
18925 grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;;
18926 esac
18927done
ed698112
NN
18928 ;;
18929 esac
ade710a5
TF
18930done
18931_ACEOF
480222b5 18932
ade710a5 18933cat >>$CONFIG_STATUS <<\_ACEOF
ed698112
NN
18934
18935{ (exit 0); exit 0; }
18936_ACEOF
ee9dd372 18937chmod +x $CONFIG_STATUS
ed698112
NN
18938ac_clean_files=$ac_clean_files_save
18939
18940
18941# configure is writing to config.log, and then calls config.status.
18942# config.status does its own redirection, appending to config.log.
18943# Unfortunately, on DOS this fails, as config.log is still kept open
18944# by configure, so config.status won't be able to write to it; its
18945# output is simply discarded. So we exec the FD to /dev/null,
18946# effectively closing config.log, so it can be properly (re)opened and
18947# appended to by config.status. When coming back to configure, we
18948# need to make the FD available again.
18949if test "$no_create" != yes; then
18950 ac_cs_success=:
18951 ac_config_status_args=
18952 test "$silent" = yes &&
18953 ac_config_status_args="$ac_config_status_args --quiet"
18954 exec 5>/dev/null
18955 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18956 exec 5>>config.log
18957 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18958 # would make configure fail if this is the last instruction.
18959 $ac_cs_success || { (exit 1); exit 1; }
18960fi
ee9dd372 18961
ed698112
NN
18962#
18963# CONFIG_SUBDIRS section.
18964#
7af85558
TT
18965if test "$no_recursion" != yes; then
18966
18967 # Remove --cache-file and --srcdir arguments so they do not pile up.
18968 ac_sub_configure_args=
18969 ac_prev=
ade710a5 18970 for ac_arg in $ac_configure_args; do
7af85558
TT
18971 if test -n "$ac_prev"; then
18972 ac_prev=
18973 continue
18974 fi
ed698112 18975 case $ac_arg in
7af85558
TT
18976 -cache-file | --cache-file | --cache-fil | --cache-fi \
18977 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18978 ac_prev=cache_file ;;
18979 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
ed698112
NN
18980 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18981 | --c=*)
18982 ;;
18983 --config-cache | -C)
7af85558
TT
18984 ;;
18985 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18986 ac_prev=srcdir ;;
18987 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18988 ;;
ed698112
NN
18989 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18990 ac_prev=prefix ;;
18991 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18992 ;;
ade710a5 18993 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7af85558
TT
18994 esac
18995 done
18996
ed698112
NN
18997 # Always prepend --prefix to ensure using the same prefix
18998 # in subdir configurations.
18999 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
19000
ade710a5 19001 ac_popdir=`pwd`
ed698112 19002 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
7af85558
TT
19003
19004 # Do not complain, so a configure script can configure whichever
19005 # parts of a large source tree are present.
ed698112 19006 test -d $srcdir/$ac_dir || continue
7af85558 19007
ade710a5
TF
19008 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
19009echo "$as_me: configuring in $ac_dir" >&6;}
19010 { if $as_mkdir_p; then
19011 mkdir -p "$ac_dir"
19012 else
19013 as_dir="$ac_dir"
ed698112 19014 as_dirs=
ade710a5
TF
19015 while test ! -d "$as_dir"; do
19016 as_dirs="$as_dir $as_dirs"
19017 as_dir=`(dirname "$as_dir") 2>/dev/null ||
ed698112
NN
19018$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19019 X"$as_dir" : 'X\(//\)[^/]' \| \
19020 X"$as_dir" : 'X\(//\)$' \| \
ade710a5
TF
19021 X"$as_dir" : 'X\(/\)' \| \
19022 . : '\(.\)' 2>/dev/null ||
ed698112 19023echo X"$as_dir" |
ade710a5
TF
19024 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19025 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19026 /^X\(\/\/\)$/{ s//\1/; q; }
19027 /^X\(\/\).*/{ s//\1/; q; }
19028 s/.*/./; q'`
ed698112 19029 done
ade710a5
TF
19030 test ! -n "$as_dirs" || mkdir $as_dirs
19031 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19032echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
ed698112 19033 { (exit 1); exit 1; }; }; }
ade710a5 19034
ed698112
NN
19035 ac_builddir=.
19036
ade710a5 19037if test "$ac_dir" != .; then
ed698112 19038 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
ade710a5
TF
19039 # A "../" for each directory in $ac_dir_suffix.
19040 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19041else
19042 ac_dir_suffix= ac_top_builddir=
19043fi
ed698112
NN
19044
19045case $srcdir in
ade710a5 19046 .) # No --srcdir option. We are building in place.
ed698112 19047 ac_srcdir=.
ade710a5
TF
19048 if test -z "$ac_top_builddir"; then
19049 ac_top_srcdir=.
19050 else
19051 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19052 fi ;;
19053 [\\/]* | ?:[\\/]* ) # Absolute path.
ed698112 19054 ac_srcdir=$srcdir$ac_dir_suffix;
ade710a5
TF
19055 ac_top_srcdir=$srcdir ;;
19056 *) # Relative path.
19057 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19058 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19059esac
19060
19061# Do not use `cd foo && pwd` to compute absolute paths, because
19062# the directories may not exist.
19063case `pwd` in
19064.) ac_abs_builddir="$ac_dir";;
19065*)
19066 case "$ac_dir" in
19067 .) ac_abs_builddir=`pwd`;;
19068 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19069 *) ac_abs_builddir=`pwd`/"$ac_dir";;
19070 esac;;
19071esac
19072case $ac_abs_builddir in
19073.) ac_abs_top_builddir=${ac_top_builddir}.;;
19074*)
19075 case ${ac_top_builddir}. in
19076 .) ac_abs_top_builddir=$ac_abs_builddir;;
19077 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19078 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19079 esac;;
19080esac
19081case $ac_abs_builddir in
19082.) ac_abs_srcdir=$ac_srcdir;;
19083*)
19084 case $ac_srcdir in
19085 .) ac_abs_srcdir=$ac_abs_builddir;;
19086 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19087 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19088 esac;;
19089esac
19090case $ac_abs_builddir in
19091.) ac_abs_top_srcdir=$ac_top_srcdir;;
19092*)
19093 case $ac_top_srcdir in
19094 .) ac_abs_top_srcdir=$ac_abs_builddir;;
19095 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19096 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19097 esac;;
ed698112 19098esac
7af85558 19099
7af85558 19100
ade710a5 19101 cd $ac_dir
7af85558
TT
19102
19103 # Check for guested configure; otherwise get Cygnus style configure.
ed698112
NN
19104 if test -f $ac_srcdir/configure.gnu; then
19105 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
19106 elif test -f $ac_srcdir/configure; then
19107 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
19108 elif test -f $ac_srcdir/configure.in; then
7af85558
TT
19109 ac_sub_configure=$ac_configure
19110 else
ed698112
NN
19111 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
19112echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
7af85558
TT
19113 ac_sub_configure=
19114 fi
19115
19116 # The recursion is here.
19117 if test -n "$ac_sub_configure"; then
7af85558 19118 # Make the cache file name correct relative to the subdirectory.
ed698112
NN
19119 case $cache_file in
19120 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
ade710a5
TF
19121 *) # Relative path.
19122 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
7af85558 19123 esac
7af85558 19124
ed698112
NN
19125 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19126echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
7af85558 19127 # The eval makes quoting arguments work.
ade710a5
TF
19128 eval $ac_sub_configure $ac_sub_configure_args \
19129 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
ed698112
NN
19130 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
19131echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
19132 { (exit 1); exit 1; }; }
7af85558
TT
19133 fi
19134
ade710a5 19135 cd $ac_popdir
7af85558
TT
19136 done
19137fi
19138
This page took 3.779618 seconds and 5 git commands to generate.