2007-01-28 Thomas Koenig <Thomas.Koenig@online.de>
[official-gcc.git] / libjava / configure
blobdb6189075602eef65005724e4cec9c9c8e5b5c31
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libjava version-unused.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for 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
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
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
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
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
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
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `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= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME='libjava'
269 PACKAGE_TARNAME='libjava'
270 PACKAGE_VERSION='version-unused'
271 PACKAGE_STRING='libjava version-unused'
272 PACKAGE_BUGREPORT=''
274 ac_unique_file="java/lang/System.java"
275 ac_subdirs_all="$ac_subdirs_all classpath libltdl"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
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>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_libsubdir build_subdir host_subdir target_subdir multi_basedir host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical LN_S mkinstalldirs JAVA_MAINTAINER_MODE_TRUE JAVA_MAINTAINER_MODE_FALSE CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LDFLAGS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB JAR ZIP UNZIP BASH_JAR_TRUE BASH_JAR_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBGCJ_CFLAGS LIBGCJ_CXXFLAGS LIBGCJ_JAVAFLAGS LIBGCJ_LD_SYMBOLIC LIBGCJ_LD_SYMBOLIC_FUNCTIONS LIBGCJDEBUG TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE X_AWT_TRUE X_AWT_FALSE GCJ_FOR_ECJX GCJH host_exeext INCLTDL LIBLTDL DIRLTDL LIBTOOL CXXCPP CPPFLAGS GCJ GCJFLAGS GCJDEPMODE am__fastdepGCJ_TRUE am__fastdepGCJ_FALSE subdirs TESTSUBDIR_TRUE TESTSUBDIR_FALSE ECJ_BUILD_JAR ECJ_JAR BUILD_ECJ1_TRUE BUILD_ECJ1_FALSE INSTALL_ECJ_JAR_TRUE INSTALL_ECJ_JAR_FALSE JAVA_HOME_SET_TRUE JAVA_HOME_SET_FALSE JAVA_HOME INTERPRETER LIBFFI LIBFFIINCS PLATFORM CPP EGREP USING_WIN32_PLATFORM_TRUE USING_WIN32_PLATFORM_FALSE USING_POSIX_PLATFORM_TRUE USING_POSIX_PLATFORM_FALSE USING_DARWIN_CRT_TRUE USING_DARWIN_CRT_FALSE SYSTEMSPEC LIBGCJTESTSPEC ZLIBSPEC ZLIBTESTSPEC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS extra_ldflags_libjava GCLIBS GCINCS GCDEPS GCSPEC JC1GCSPEC GCTESTSPEC USING_BOEHMGC_TRUE USING_BOEHMGC_FALSE USING_NOGC_TRUE USING_NOGC_FALSE THREADLIBS THREADINCS THREADDEPS THREADSPEC THREADSTARTFILESPEC THREADLDFLAGS THREADCXXFLAGS USING_POSIX_THREADS_TRUE USING_POSIX_THREADS_FALSE USING_WIN32_THREADS_TRUE USING_WIN32_THREADS_FALSE USING_NO_THREADS_TRUE USING_NO_THREADS_FALSE USE_LIBGCJ_BC_TRUE USE_LIBGCJ_BC_FALSE LIBGCJ_SPEC HASH_SYNC_SPEC USING_GCC_TRUE USING_GCC_FALSE LIBICONV LTLIBICONV PKG_CONFIG GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS CLASSPATH_SEPARATOR ac_ct_GCJ ZLIBS SYS_ZLIBS ZINCS DIVIDESPEC CHECKREFSPEC EXCEPTIONSPEC BACKTRACESPEC IEEESPEC NATIVE_TRUE NATIVE_FALSE ENABLE_SHARED_TRUE ENABLE_SHARED_FALSE NEEDS_DATA_START_TRUE NEEDS_DATA_START_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir dbexecdir GCJVERSION gxx_include_dir libstdcxx_incdir ALLOCA PERL SYSDEP_SOURCES LD_START_STATIC_SPEC LD_FINISH_STATIC_SPEC here LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
354 ac_prev=
355 for ac_option
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
368 case $ac_option in
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
387 --config-cache | -C)
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
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'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
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 ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
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 ;;
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
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=*)
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
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'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
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; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
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}
650 esac
651 done
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
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
668 done
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
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; }; };;
679 esac
680 done
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.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
726 else
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CXXCPP_set=${CXXCPP+set}
755 ac_env_CXXCPP_value=$CXXCPP
756 ac_cv_env_CXXCPP_set=${CXXCPP+set}
757 ac_cv_env_CXXCPP_value=$CXXCPP
758 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
759 ac_env_CPPFLAGS_value=$CPPFLAGS
760 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
761 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
762 ac_env_CPP_set=${CPP+set}
763 ac_env_CPP_value=$CPP
764 ac_cv_env_CPP_set=${CPP+set}
765 ac_cv_env_CPP_value=$CPP
768 # Report the --help message.
770 if test "$ac_init_help" = "long"; then
771 # Omit some internal or obsolete options to make the list less imposing.
772 # This message is too long to be a string in the A/UX 3.1 sh.
773 cat <<_ACEOF
774 \`configure' configures libjava version-unused to adapt to many kinds of systems.
776 Usage: $0 [OPTION]... [VAR=VALUE]...
778 To assign environment variables (e.g., CC, CFLAGS...), specify them as
779 VAR=VALUE. See below for descriptions of some of the useful variables.
781 Defaults for the options are specified in brackets.
783 Configuration:
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 \`..']
794 _ACEOF
796 cat <<_ACEOF
797 Installation 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]
803 By default, \`make install' will install all the files in
804 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
805 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
806 for instance \`--prefix=\$HOME'.
808 For better control, use the options below.
810 Fine tuning of the installation directories:
811 --bindir=DIR user executables [EPREFIX/bin]
812 --sbindir=DIR system admin executables [EPREFIX/sbin]
813 --libexecdir=DIR program executables [EPREFIX/libexec]
814 --datadir=DIR read-only architecture-independent data [PREFIX/share]
815 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
816 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
817 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
818 --libdir=DIR object code libraries [EPREFIX/lib]
819 --includedir=DIR C header files [PREFIX/include]
820 --oldincludedir=DIR C header files for non-gcc [/usr/include]
821 --infodir=DIR info documentation [PREFIX/info]
822 --mandir=DIR man documentation [PREFIX/man]
823 _ACEOF
825 cat <<\_ACEOF
827 Program 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
832 X features:
833 --x-includes=DIR X include files are in DIR
834 --x-libraries=DIR X library files are in DIR
836 System 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
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive ) echo "Configuration of libjava version-unused:";;
846 esac
847 cat <<\_ACEOF
849 Optional Features:
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --enable-multilib build many library versions (default)
853 --enable-version-specific-runtime-libs
854 specify that runtime libraries should be installed
855 in a compiler-specific directory
856 --enable-plugin build gcjwebplugin web browser plugin
857 --enable-gconf-peer compile GConf native peers for util.preferences
858 --enable-java-maintainer-mode
859 allow rebuilding of .class and .h files
860 --disable-dependency-tracking speeds up one-time build
861 --enable-dependency-tracking do not reject slow dependency extractors
862 --enable-maintainer-mode enable make rules and dependencies not useful
863 (and sometimes confusing) to the casual installer
864 --enable-libgcj-debug enable runtime debugging code
865 --enable-java-awt list of AWT peer implementations to be built
866 --enable-shared=PKGS build shared libraries default=yes
867 --enable-static=PKGS build static libraries default=yes
868 --enable-fast-install=PKGS optimize for fast installation default=yes
869 --disable-libtool-lock avoid locking (might break parallel builds)
870 --disable-getenv-properties
871 don't set system properties from GCJ_PROPERTIES
872 --enable-hash-synchronization
873 use global hash table for monitor locks
874 --enable-gc-debug include full support for pointer backtracing etc.
875 --enable-interpreter enable interpreter
876 --enable-sjlj-exceptions
877 force use of builtin_setjmp for exceptions
878 --disable-java-net disable java.net
879 --disable-jvmpi disable JVMPI support
880 --enable-java-gc=TYPE choose garbage collector (default is boehm)
881 --disable-rpath do not hardcode runtime library paths
882 --enable-tls Use thread-local storage [default=yes]
884 Optional Packages:
885 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
886 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
887 --with-build-libsubdir=DIR Directory where to find libraries for build system
888 --with-target-subdir=SUBDIR
889 configure in a subdirectory
890 --with-cross-host=HOST configure with a cross compiler from HOST
891 --with-newlib configure with newlib
892 --with-escher=ABS.PATH specify path to escher dir or JAR for X peers
893 --with-gnu-ld assume the C compiler uses GNU ld default=no
894 --with-pic try to use only PIC/non-PIC objects default=use both
895 --with-ecj-jar=FILE use preinstalled ecj jar
896 --with-java-home=DIRECTORY
897 value of java.home system property
898 --with-win32-nlsapi=ansi or unicows or unicode
899 native MinGW libgcj Win32 OS API (default is ansi)
900 --without-libffi don't use libffi
901 --with-ecos enable runtime eCos target support
902 --with-system-zlib use installed libz
903 --with-x use the X Window System
904 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
905 --without-libiconv-prefix don't search for libiconv in includedir and libdir
907 Some influential environment variables:
908 CC C compiler command
909 CFLAGS C compiler flags
910 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
911 nonstandard directory <lib dir>
912 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
913 headers in a nonstandard directory <include dir>
914 CXX C++ compiler command
915 CXXFLAGS C++ compiler flags
916 CXXCPP C++ preprocessor
917 CPP C preprocessor
919 Use these variables to override the choices made by `configure' or to help
920 it to find libraries and programs with nonstandard names/locations.
922 _ACEOF
925 if test "$ac_init_help" = "recursive"; then
926 # If there are subdirs, report their specific --help.
927 ac_popdir=`pwd`
928 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
929 test -d $ac_dir || continue
930 ac_builddir=.
932 if test "$ac_dir" != .; then
933 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
934 # A "../" for each directory in $ac_dir_suffix.
935 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
936 else
937 ac_dir_suffix= ac_top_builddir=
940 case $srcdir in
941 .) # No --srcdir option. We are building in place.
942 ac_srcdir=.
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.
949 ac_srcdir=$srcdir$ac_dir_suffix;
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 ;;
954 esac
956 # Do not use `cd foo && pwd` to compute absolute paths, because
957 # the directories may not exist.
958 case `pwd` in
959 .) ac_abs_builddir="$ac_dir";;
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;;
966 esac
967 case $ac_abs_builddir in
968 .) ac_abs_top_builddir=${ac_top_builddir}.;;
970 case ${ac_top_builddir}. in
971 .) ac_abs_top_builddir=$ac_abs_builddir;;
972 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
973 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
974 esac;;
975 esac
976 case $ac_abs_builddir in
977 .) ac_abs_srcdir=$ac_srcdir;;
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;;
984 esac
985 case $ac_abs_builddir in
986 .) ac_abs_top_srcdir=$ac_top_srcdir;;
988 case $ac_top_srcdir in
989 .) ac_abs_top_srcdir=$ac_abs_builddir;;
990 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
991 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
992 esac;;
993 esac
995 cd $ac_dir
996 # Check for guested configure; otherwise get Cygnus style configure.
997 if test -f $ac_srcdir/configure.gnu; then
998 echo
999 $SHELL $ac_srcdir/configure.gnu --help=recursive
1000 elif test -f $ac_srcdir/configure; then
1001 echo
1002 $SHELL $ac_srcdir/configure --help=recursive
1003 elif test -f $ac_srcdir/configure.ac ||
1004 test -f $ac_srcdir/configure.in; then
1005 echo
1006 $ac_configure --help
1007 else
1008 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1010 cd $ac_popdir
1011 done
1014 test -n "$ac_init_help" && exit 0
1015 if $ac_init_version; then
1016 cat <<\_ACEOF
1017 libjava configure version-unused
1018 generated by GNU Autoconf 2.59
1020 Copyright (C) 2003 Free Software Foundation, Inc.
1021 This configure script is free software; the Free Software Foundation
1022 gives unlimited permission to copy, distribute and modify it.
1023 _ACEOF
1024 exit 0
1026 exec 5>config.log
1027 cat >&5 <<_ACEOF
1028 This file contains any messages produced by compilers while
1029 running configure, to aid debugging if configure makes a mistake.
1031 It was created by libjava $as_me version-unused, which was
1032 generated by GNU Autoconf 2.59. Invocation command line was
1034 $ $0 $@
1036 _ACEOF
1038 cat <<_ASUNAME
1039 ## --------- ##
1040 ## Platform. ##
1041 ## --------- ##
1043 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1044 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1045 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1046 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1047 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1049 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1050 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1052 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1053 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1054 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1055 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1056 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1057 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1058 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1060 _ASUNAME
1062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1063 for as_dir in $PATH
1065 IFS=$as_save_IFS
1066 test -z "$as_dir" && as_dir=.
1067 echo "PATH: $as_dir"
1068 done
1070 } >&5
1072 cat >&5 <<_ACEOF
1075 ## ----------- ##
1076 ## Core tests. ##
1077 ## ----------- ##
1079 _ACEOF
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.
1087 ac_configure_args=
1088 ac_configure_args0=
1089 ac_configure_args1=
1090 ac_sep=
1091 ac_must_keep_next=false
1092 for ac_pass in 1 2
1094 for ac_arg
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 ;;
1101 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
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'" ;;
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
1120 -* ) ac_must_keep_next=true ;;
1121 esac
1123 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1124 # Get rid of the leading space.
1125 ac_sep=" "
1127 esac
1128 done
1129 done
1130 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1131 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1133 # When interrupted or exit'd, cleanup temporary files, and complete
1134 # config.log. We remove comments because anyway the quotes in there
1135 # would cause problems or look ugly.
1136 # WARNING: Be sure not to use single quotes in there, as some shells,
1137 # such as our DU 5.0 friend, will then `close' the trap.
1138 trap 'exit_status=$?
1139 # Save into config.log some information that might help in debugging.
1141 echo
1143 cat <<\_ASBOX
1144 ## ---------------- ##
1145 ## Cache variables. ##
1146 ## ---------------- ##
1147 _ASBOX
1148 echo
1149 # The following way of writing the cache mishandles newlines in values,
1151 (set) 2>&1 |
1152 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1153 *ac_space=\ *)
1154 sed -n \
1155 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1156 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1159 sed -n \
1160 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1162 esac;
1164 echo
1166 cat <<\_ASBOX
1167 ## ----------------- ##
1168 ## Output variables. ##
1169 ## ----------------- ##
1170 _ASBOX
1171 echo
1172 for ac_var in $ac_subst_vars
1174 eval ac_val=$`echo $ac_var`
1175 echo "$ac_var='"'"'$ac_val'"'"'"
1176 done | sort
1177 echo
1179 if test -n "$ac_subst_files"; then
1180 cat <<\_ASBOX
1181 ## ------------- ##
1182 ## Output files. ##
1183 ## ------------- ##
1184 _ASBOX
1185 echo
1186 for ac_var in $ac_subst_files
1188 eval ac_val=$`echo $ac_var`
1189 echo "$ac_var='"'"'$ac_val'"'"'"
1190 done | sort
1191 echo
1194 if test -s confdefs.h; then
1195 cat <<\_ASBOX
1196 ## ----------- ##
1197 ## confdefs.h. ##
1198 ## ----------- ##
1199 _ASBOX
1200 echo
1201 sed "/^$/d" confdefs.h | sort
1202 echo
1204 test "$ac_signal" != 0 &&
1205 echo "$as_me: caught signal $ac_signal"
1206 echo "$as_me: exit $exit_status"
1207 } >&5
1208 rm -f core *.core &&
1209 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1210 exit $exit_status
1212 for ac_signal in 1 2 13 15; do
1213 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1214 done
1215 ac_signal=0
1217 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1218 rm -rf conftest* confdefs.h
1219 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1220 echo >confdefs.h
1222 # Predefined preprocessor variables.
1224 cat >>confdefs.h <<_ACEOF
1225 #define PACKAGE_NAME "$PACKAGE_NAME"
1226 _ACEOF
1229 cat >>confdefs.h <<_ACEOF
1230 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1231 _ACEOF
1234 cat >>confdefs.h <<_ACEOF
1235 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1236 _ACEOF
1239 cat >>confdefs.h <<_ACEOF
1240 #define PACKAGE_STRING "$PACKAGE_STRING"
1241 _ACEOF
1244 cat >>confdefs.h <<_ACEOF
1245 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1246 _ACEOF
1249 # Let the site file select an alternate cache file if it wants to.
1250 # Prefer explicitly selected file to automatically selected ones.
1251 if test -z "$CONFIG_SITE"; then
1252 if test "x$prefix" != xNONE; then
1253 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1254 else
1255 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1258 for ac_site_file in $CONFIG_SITE; do
1259 if test -r "$ac_site_file"; then
1260 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1261 echo "$as_me: loading site script $ac_site_file" >&6;}
1262 sed 's/^/| /' "$ac_site_file" >&5
1263 . "$ac_site_file"
1265 done
1267 if test -r "$cache_file"; then
1268 # Some versions of bash will fail to source /dev/null (special
1269 # files actually), so we avoid doing that.
1270 if test -f "$cache_file"; then
1271 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1272 echo "$as_me: loading cache $cache_file" >&6;}
1273 case $cache_file in
1274 [\\/]* | ?:[\\/]* ) . $cache_file;;
1275 *) . ./$cache_file;;
1276 esac
1278 else
1279 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1280 echo "$as_me: creating cache $cache_file" >&6;}
1281 >$cache_file
1284 # Check that the precious variables saved in the cache have kept the same
1285 # value.
1286 ac_cache_corrupted=false
1287 for ac_var in `(set) 2>&1 |
1288 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1289 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1290 eval ac_new_set=\$ac_env_${ac_var}_set
1291 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1292 eval ac_new_val="\$ac_env_${ac_var}_value"
1293 case $ac_old_set,$ac_new_set in
1294 set,)
1295 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1296 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1297 ac_cache_corrupted=: ;;
1298 ,set)
1299 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1300 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1301 ac_cache_corrupted=: ;;
1302 ,);;
1304 if test "x$ac_old_val" != "x$ac_new_val"; then
1305 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1306 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1307 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1308 echo "$as_me: former value: $ac_old_val" >&2;}
1309 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1310 echo "$as_me: current value: $ac_new_val" >&2;}
1311 ac_cache_corrupted=:
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
1317 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1318 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
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
1326 done
1327 if $ac_cache_corrupted; then
1328 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1329 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1330 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1331 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1332 { (exit 1); exit 1; }; }
1335 ac_ext=c
1336 ac_cpp='$CPP $CPPFLAGS'
1337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1370 ac_aux_dir=
1371 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
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
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
1385 done
1386 if test -z "$ac_aux_dir"; then
1387 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1388 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1389 { (exit 1); exit 1; }; }
1391 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1392 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1393 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1395 # Make sure we can run config.sub.
1396 $ac_config_sub sun4 >/dev/null 2>&1 ||
1397 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1398 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1399 { (exit 1); exit 1; }; }
1401 echo "$as_me:$LINENO: checking build system type" >&5
1402 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1403 if test "${ac_cv_build+set}" = set; then
1404 echo $ECHO_N "(cached) $ECHO_C" >&6
1405 else
1406 ac_cv_build_alias=$build_alias
1407 test -z "$ac_cv_build_alias" &&
1408 ac_cv_build_alias=`$ac_config_guess`
1409 test -z "$ac_cv_build_alias" &&
1410 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1411 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1412 { (exit 1); exit 1; }; }
1413 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1414 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1415 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1416 { (exit 1); exit 1; }; }
1419 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1420 echo "${ECHO_T}$ac_cv_build" >&6
1421 build=$ac_cv_build
1422 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1423 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1424 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1427 case ${build_alias} in
1428 "") build_noncanonical=${build} ;;
1429 *) build_noncanonical=${build_alias} ;;
1430 esac
1432 case ${host_alias} in
1433 "") host_noncanonical=${build_noncanonical} ;;
1434 *) host_noncanonical=${host_alias} ;;
1435 esac
1437 case ${target_alias} in
1438 "") target_noncanonical=${host_noncanonical} ;;
1439 *) target_noncanonical=${target_alias} ;;
1440 esac
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.
1452 # Prefix 'build-' so this never conflicts with target_subdir.
1453 build_subdir="build-${build_noncanonical}"
1455 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1456 if test "${with_build_libsubdir+set}" = set; then
1457 withval="$with_build_libsubdir"
1458 build_libsubdir="$withval"
1459 else
1460 build_libsubdir="$build_subdir"
1462 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1463 if ( test $srcdir = . && test -d gcc ) \
1464 || test -d $srcdir/../host-${host_noncanonical}; then
1465 host_subdir="host-${host_noncanonical}"
1466 else
1467 host_subdir=.
1469 # No prefix.
1470 target_subdir=${target_noncanonical}
1473 # We use these options to decide which functions to include.
1475 # Check whether --with-target-subdir or --without-target-subdir was given.
1476 if test "${with_target_subdir+set}" = set; then
1477 withval="$with_target_subdir"
1481 # We may get other options which we don't document:
1482 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1484 # Find the rest of the source tree framework.
1485 # Default to --enable-multilib
1486 # Check whether --enable-multilib or --disable-multilib was given.
1487 if test "${enable_multilib+set}" = set; then
1488 enableval="$enable_multilib"
1489 case "$enableval" in
1490 yes) multilib=yes ;;
1491 no) multilib=no ;;
1492 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1493 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1494 { (exit 1); exit 1; }; } ;;
1495 esac
1496 else
1497 multilib=yes
1500 # We may get other options which we leave undocumented:
1501 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1502 # See config-ml.in if you want the gory details.
1504 if test "$srcdir" = "."; then
1505 if test "$with_target_subdir" != "."; then
1506 multi_basedir="$srcdir/$with_multisrctop../.."
1507 else
1508 multi_basedir="$srcdir/$with_multisrctop.."
1510 else
1511 multi_basedir="$srcdir/.."
1515 # Even if the default multilib is not a cross compilation,
1516 # it may be that some of the other multilibs are.
1517 if test $cross_compiling = no && test $multilib = yes \
1518 && test "x${with_multisubdir}" != x ; then
1519 cross_compiling=maybe
1522 ac_config_commands="$ac_config_commands default-1"
1525 echo "$as_me:$LINENO: checking host system type" >&5
1526 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1527 if test "${ac_cv_host+set}" = set; then
1528 echo $ECHO_N "(cached) $ECHO_C" >&6
1529 else
1530 ac_cv_host_alias=$host_alias
1531 test -z "$ac_cv_host_alias" &&
1532 ac_cv_host_alias=$ac_cv_build_alias
1533 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1534 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1535 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1536 { (exit 1); exit 1; }; }
1539 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1540 echo "${ECHO_T}$ac_cv_host" >&6
1541 host=$ac_cv_host
1542 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1543 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1544 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1547 echo "$as_me:$LINENO: checking target system type" >&5
1548 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1549 if test "${ac_cv_target+set}" = set; then
1550 echo $ECHO_N "(cached) $ECHO_C" >&6
1551 else
1552 ac_cv_target_alias=$target_alias
1553 test "x$ac_cv_target_alias" = "x" &&
1554 ac_cv_target_alias=$ac_cv_host_alias
1555 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1556 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1557 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1558 { (exit 1); exit 1; }; }
1561 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1562 echo "${ECHO_T}$ac_cv_target" >&6
1563 target=$ac_cv_target
1564 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1565 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1566 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1569 # The aliases save the names the user supplied, while $host etc.
1570 # will get canonicalized.
1571 test -n "$target_alias" &&
1572 test "$program_prefix$program_suffix$program_transform_name" = \
1573 NONENONEs,x,x, &&
1574 program_prefix=${target_alias}-
1575 case ${build_alias} in
1576 "") build_noncanonical=${build} ;;
1577 *) build_noncanonical=${build_alias} ;;
1578 esac
1580 case ${target_alias} in
1581 "") target_noncanonical=${host_noncanonical} ;;
1582 *) target_noncanonical=${target_alias} ;;
1583 esac
1588 # This works around the fact that libtool configuration may change LD
1589 # for this particular configuration, but some shells, instead of
1590 # keeping the changes in LD private, export them just because LD is
1591 # exported.
1592 ORIGINAL_LD_FOR_MULTILIBS=$LD
1594 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1595 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1596 LN_S=$as_ln_s
1597 if test "$LN_S" = "ln -s"; then
1598 echo "$as_me:$LINENO: result: yes" >&5
1599 echo "${ECHO_T}yes" >&6
1600 else
1601 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1602 echo "${ECHO_T}no, using $LN_S" >&6
1606 # This works around an automake problem.
1607 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1611 # Check whether --with-cross-host or --without-cross-host was given.
1612 if test "${with_cross_host+set}" = set; then
1613 withval="$with_cross_host"
1618 # Check whether --with-newlib or --without-newlib was given.
1619 if test "${with_newlib+set}" = set; then
1620 withval="$with_newlib"
1624 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1625 if test "${enable_version_specific_runtime_libs+set}" = set; then
1626 enableval="$enable_version_specific_runtime_libs"
1627 case "$enableval" in
1628 yes) version_specific_libs=yes ;;
1629 no) version_specific_libs=no ;;
1630 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1631 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1632 { (exit 1); exit 1; }; };;
1633 esac
1634 else
1635 version_specific_libs=no
1639 # Check whether --enable-plugin or --disable-plugin was given.
1640 if test "${enable_plugin+set}" = set; then
1641 enableval="$enable_plugin"
1642 case "$enableval" in
1643 yes) plugin_enabled=yes ;;
1644 no) plugin_enabled=no ;;
1645 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable plugin" >&5
1646 echo "$as_me: error: Unknown argument to enable/disable plugin" >&2;}
1647 { (exit 1); exit 1; }; };;
1648 esac
1649 else
1650 plugin_enabled=no
1654 # Check whether --enable-gconf-peer or --disable-gconf-peer was given.
1655 if test "${enable_gconf_peer+set}" = set; then
1656 enableval="$enable_gconf_peer"
1657 case "$enableval" in
1658 yes) gconf_enabled=yes ;;
1659 no) gconf_enabled=no ;;
1660 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable gconf-peer" >&5
1661 echo "$as_me: error: Unknown argument to enable/disable gconf-peer" >&2;}
1662 { (exit 1); exit 1; }; };;
1663 esac
1664 else
1665 gconf_enabled=no
1669 # Check whether --enable-java-maintainer-mode or --disable-java-maintainer-mode was given.
1670 if test "${enable_java_maintainer_mode+set}" = set; then
1671 enableval="$enable_java_maintainer_mode"
1676 if test "$enable_java_maintainer_mode" = yes; then
1677 JAVA_MAINTAINER_MODE_TRUE=
1678 JAVA_MAINTAINER_MODE_FALSE='#'
1679 else
1680 JAVA_MAINTAINER_MODE_TRUE='#'
1681 JAVA_MAINTAINER_MODE_FALSE=
1685 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1688 # (1) We use an abnormal CXX (without library references), so we
1689 # must cache it under a different name.
1690 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1691 # the non-multilib-adjusted value will be used in multilibs.
1692 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1693 # (4) As another side effect, automake doesn't automatically include them
1694 # in Makefile.in.
1695 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1696 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1697 # used in later tests. This may not be necessary in libjava; I don't know.
1700 save_CXXFLAGS="$CXXFLAGS"
1701 CXXFLAGS="$CXXFLAGS -fno-builtin"
1702 ac_ext=c
1703 ac_cpp='$CPP $CPPFLAGS'
1704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1707 if test -n "$ac_tool_prefix"; then
1708 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1709 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1710 echo "$as_me:$LINENO: checking for $ac_word" >&5
1711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1712 if test "${ac_cv_prog_CC+set}" = set; then
1713 echo $ECHO_N "(cached) $ECHO_C" >&6
1714 else
1715 if test -n "$CC"; then
1716 ac_cv_prog_CC="$CC" # Let the user override the test.
1717 else
1718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1719 for as_dir in $PATH
1721 IFS=$as_save_IFS
1722 test -z "$as_dir" && as_dir=.
1723 for ac_exec_ext in '' $ac_executable_extensions; do
1724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1725 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1727 break 2
1729 done
1730 done
1734 CC=$ac_cv_prog_CC
1735 if test -n "$CC"; then
1736 echo "$as_me:$LINENO: result: $CC" >&5
1737 echo "${ECHO_T}$CC" >&6
1738 else
1739 echo "$as_me:$LINENO: result: no" >&5
1740 echo "${ECHO_T}no" >&6
1744 if test -z "$ac_cv_prog_CC"; then
1745 ac_ct_CC=$CC
1746 # Extract the first word of "gcc", so it can be a program name with args.
1747 set dummy gcc; ac_word=$2
1748 echo "$as_me:$LINENO: checking for $ac_word" >&5
1749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1750 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1751 echo $ECHO_N "(cached) $ECHO_C" >&6
1752 else
1753 if test -n "$ac_ct_CC"; then
1754 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1755 else
1756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1757 for as_dir in $PATH
1759 IFS=$as_save_IFS
1760 test -z "$as_dir" && as_dir=.
1761 for ac_exec_ext in '' $ac_executable_extensions; do
1762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1763 ac_cv_prog_ac_ct_CC="gcc"
1764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1765 break 2
1767 done
1768 done
1772 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1773 if test -n "$ac_ct_CC"; then
1774 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1775 echo "${ECHO_T}$ac_ct_CC" >&6
1776 else
1777 echo "$as_me:$LINENO: result: no" >&5
1778 echo "${ECHO_T}no" >&6
1781 CC=$ac_ct_CC
1782 else
1783 CC="$ac_cv_prog_CC"
1786 if test -z "$CC"; then
1787 if test -n "$ac_tool_prefix"; then
1788 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1789 set dummy ${ac_tool_prefix}cc; ac_word=$2
1790 echo "$as_me:$LINENO: checking for $ac_word" >&5
1791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1792 if test "${ac_cv_prog_CC+set}" = set; then
1793 echo $ECHO_N "(cached) $ECHO_C" >&6
1794 else
1795 if test -n "$CC"; then
1796 ac_cv_prog_CC="$CC" # Let the user override the test.
1797 else
1798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1799 for as_dir in $PATH
1801 IFS=$as_save_IFS
1802 test -z "$as_dir" && as_dir=.
1803 for ac_exec_ext in '' $ac_executable_extensions; do
1804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1805 ac_cv_prog_CC="${ac_tool_prefix}cc"
1806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1807 break 2
1809 done
1810 done
1814 CC=$ac_cv_prog_CC
1815 if test -n "$CC"; then
1816 echo "$as_me:$LINENO: result: $CC" >&5
1817 echo "${ECHO_T}$CC" >&6
1818 else
1819 echo "$as_me:$LINENO: result: no" >&5
1820 echo "${ECHO_T}no" >&6
1824 if test -z "$ac_cv_prog_CC"; then
1825 ac_ct_CC=$CC
1826 # Extract the first word of "cc", so it can be a program name with args.
1827 set dummy cc; ac_word=$2
1828 echo "$as_me:$LINENO: checking for $ac_word" >&5
1829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1830 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1831 echo $ECHO_N "(cached) $ECHO_C" >&6
1832 else
1833 if test -n "$ac_ct_CC"; then
1834 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1835 else
1836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1837 for as_dir in $PATH
1839 IFS=$as_save_IFS
1840 test -z "$as_dir" && as_dir=.
1841 for ac_exec_ext in '' $ac_executable_extensions; do
1842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1843 ac_cv_prog_ac_ct_CC="cc"
1844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1845 break 2
1847 done
1848 done
1852 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1853 if test -n "$ac_ct_CC"; then
1854 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1855 echo "${ECHO_T}$ac_ct_CC" >&6
1856 else
1857 echo "$as_me:$LINENO: result: no" >&5
1858 echo "${ECHO_T}no" >&6
1861 CC=$ac_ct_CC
1862 else
1863 CC="$ac_cv_prog_CC"
1867 if test -z "$CC"; then
1868 # Extract the first word of "cc", so it can be a program name with args.
1869 set dummy cc; ac_word=$2
1870 echo "$as_me:$LINENO: checking for $ac_word" >&5
1871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1872 if test "${ac_cv_prog_CC+set}" = set; then
1873 echo $ECHO_N "(cached) $ECHO_C" >&6
1874 else
1875 if test -n "$CC"; then
1876 ac_cv_prog_CC="$CC" # Let the user override the test.
1877 else
1878 ac_prog_rejected=no
1879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1880 for as_dir in $PATH
1882 IFS=$as_save_IFS
1883 test -z "$as_dir" && as_dir=.
1884 for ac_exec_ext in '' $ac_executable_extensions; do
1885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1886 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1887 ac_prog_rejected=yes
1888 continue
1890 ac_cv_prog_CC="cc"
1891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1892 break 2
1894 done
1895 done
1897 if test $ac_prog_rejected = yes; then
1898 # We found a bogon in the path, so make sure we never use it.
1899 set dummy $ac_cv_prog_CC
1900 shift
1901 if test $# != 0; then
1902 # We chose a different compiler from the bogus one.
1903 # However, it has the same basename, so the bogon will be chosen
1904 # first if we set CC to just the basename; use the full file name.
1905 shift
1906 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1911 CC=$ac_cv_prog_CC
1912 if test -n "$CC"; then
1913 echo "$as_me:$LINENO: result: $CC" >&5
1914 echo "${ECHO_T}$CC" >&6
1915 else
1916 echo "$as_me:$LINENO: result: no" >&5
1917 echo "${ECHO_T}no" >&6
1921 if test -z "$CC"; then
1922 if test -n "$ac_tool_prefix"; then
1923 for ac_prog in cl
1925 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1926 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1927 echo "$as_me:$LINENO: checking for $ac_word" >&5
1928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1929 if test "${ac_cv_prog_CC+set}" = set; then
1930 echo $ECHO_N "(cached) $ECHO_C" >&6
1931 else
1932 if test -n "$CC"; then
1933 ac_cv_prog_CC="$CC" # Let the user override the test.
1934 else
1935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1936 for as_dir in $PATH
1938 IFS=$as_save_IFS
1939 test -z "$as_dir" && as_dir=.
1940 for ac_exec_ext in '' $ac_executable_extensions; do
1941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1942 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1944 break 2
1946 done
1947 done
1951 CC=$ac_cv_prog_CC
1952 if test -n "$CC"; then
1953 echo "$as_me:$LINENO: result: $CC" >&5
1954 echo "${ECHO_T}$CC" >&6
1955 else
1956 echo "$as_me:$LINENO: result: no" >&5
1957 echo "${ECHO_T}no" >&6
1960 test -n "$CC" && break
1961 done
1963 if test -z "$CC"; then
1964 ac_ct_CC=$CC
1965 for ac_prog in cl
1967 # Extract the first word of "$ac_prog", so it can be a program name with args.
1968 set dummy $ac_prog; ac_word=$2
1969 echo "$as_me:$LINENO: checking for $ac_word" >&5
1970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1971 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1973 else
1974 if test -n "$ac_ct_CC"; then
1975 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1976 else
1977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1978 for as_dir in $PATH
1980 IFS=$as_save_IFS
1981 test -z "$as_dir" && as_dir=.
1982 for ac_exec_ext in '' $ac_executable_extensions; do
1983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1984 ac_cv_prog_ac_ct_CC="$ac_prog"
1985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1986 break 2
1988 done
1989 done
1993 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1994 if test -n "$ac_ct_CC"; then
1995 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1996 echo "${ECHO_T}$ac_ct_CC" >&6
1997 else
1998 echo "$as_me:$LINENO: result: no" >&5
1999 echo "${ECHO_T}no" >&6
2002 test -n "$ac_ct_CC" && break
2003 done
2005 CC=$ac_ct_CC
2011 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2012 See \`config.log' for more details." >&5
2013 echo "$as_me: error: no acceptable C compiler found in \$PATH
2014 See \`config.log' for more details." >&2;}
2015 { (exit 1); exit 1; }; }
2017 # Provide some information about the compiler.
2018 echo "$as_me:$LINENO:" \
2019 "checking for C compiler version" >&5
2020 ac_compiler=`set X $ac_compile; echo $2`
2021 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2022 (eval $ac_compiler --version </dev/null >&5) 2>&5
2023 ac_status=$?
2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025 (exit $ac_status); }
2026 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2027 (eval $ac_compiler -v </dev/null >&5) 2>&5
2028 ac_status=$?
2029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030 (exit $ac_status); }
2031 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2032 (eval $ac_compiler -V </dev/null >&5) 2>&5
2033 ac_status=$?
2034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035 (exit $ac_status); }
2037 cat >conftest.$ac_ext <<_ACEOF
2038 /* confdefs.h. */
2039 _ACEOF
2040 cat confdefs.h >>conftest.$ac_ext
2041 cat >>conftest.$ac_ext <<_ACEOF
2042 /* end confdefs.h. */
2045 main ()
2049 return 0;
2051 _ACEOF
2052 # FIXME: Cleanup?
2053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2054 (eval $ac_link) 2>&5
2055 ac_status=$?
2056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057 (exit $ac_status); }; then
2058 gcc_no_link=no
2059 else
2060 gcc_no_link=yes
2063 if test x$gcc_no_link = xyes; then
2064 # Setting cross_compile will disable run tests; it will
2065 # also disable AC_CHECK_FILE but that's generally
2066 # correct if we can't link.
2067 cross_compiling=yes
2068 EXEEXT=
2069 else
2070 cat >conftest.$ac_ext <<_ACEOF
2071 /* confdefs.h. */
2072 _ACEOF
2073 cat confdefs.h >>conftest.$ac_ext
2074 cat >>conftest.$ac_ext <<_ACEOF
2075 /* end confdefs.h. */
2078 main ()
2082 return 0;
2084 _ACEOF
2085 ac_clean_files_save=$ac_clean_files
2086 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2087 # Try to create an executable without -o first, disregard a.out.
2088 # It will help us diagnose broken compilers, and finding out an intuition
2089 # of exeext.
2090 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2091 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2092 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2093 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2094 (eval $ac_link_default) 2>&5
2095 ac_status=$?
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }; then
2098 # Find the output, starting from the most likely. This scheme is
2099 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2100 # resort.
2102 # Be careful to initialize this variable, since it used to be cached.
2103 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2104 ac_cv_exeext=
2105 # b.out is created by i960 compilers.
2106 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2108 test -f "$ac_file" || continue
2109 case $ac_file in
2110 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2112 conftest.$ac_ext )
2113 # This is the source file.
2115 [ab].out )
2116 # We found the default executable, but exeext='' is most
2117 # certainly right.
2118 break;;
2119 *.* )
2120 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2121 # FIXME: I believe we export ac_cv_exeext for Libtool,
2122 # but it would be cool to find out if it's true. Does anybody
2123 # maintain Libtool? --akim.
2124 export ac_cv_exeext
2125 break;;
2127 break;;
2128 esac
2129 done
2130 else
2131 echo "$as_me: failed program was:" >&5
2132 sed 's/^/| /' conftest.$ac_ext >&5
2134 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2135 See \`config.log' for more details." >&5
2136 echo "$as_me: error: C compiler cannot create executables
2137 See \`config.log' for more details." >&2;}
2138 { (exit 77); exit 77; }; }
2141 ac_exeext=$ac_cv_exeext
2142 echo "$as_me:$LINENO: result: $ac_file" >&5
2143 echo "${ECHO_T}$ac_file" >&6
2145 # Check the compiler produces executables we can run. If not, either
2146 # the compiler is broken, or we cross compile.
2147 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2148 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2149 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2150 # If not cross compiling, check that we can run a simple program.
2151 if test "$cross_compiling" != yes; then
2152 if { ac_try='./$ac_file'
2153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154 (eval $ac_try) 2>&5
2155 ac_status=$?
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }; }; then
2158 cross_compiling=no
2159 else
2160 if test "$cross_compiling" = maybe; then
2161 cross_compiling=yes
2162 else
2163 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2164 If you meant to cross compile, use \`--host'.
2165 See \`config.log' for more details." >&5
2166 echo "$as_me: error: cannot run C compiled programs.
2167 If you meant to cross compile, use \`--host'.
2168 See \`config.log' for more details." >&2;}
2169 { (exit 1); exit 1; }; }
2173 echo "$as_me:$LINENO: result: yes" >&5
2174 echo "${ECHO_T}yes" >&6
2176 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2177 ac_clean_files=$ac_clean_files_save
2178 # Check the compiler produces executables we can run. If not, either
2179 # the compiler is broken, or we cross compile.
2180 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2181 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2182 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2183 echo "${ECHO_T}$cross_compiling" >&6
2185 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2186 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2188 (eval $ac_link) 2>&5
2189 ac_status=$?
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }; then
2192 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2193 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2194 # work properly (i.e., refer to `conftest.exe'), while it won't with
2195 # `rm'.
2196 for ac_file in conftest.exe conftest conftest.*; do
2197 test -f "$ac_file" || continue
2198 case $ac_file in
2199 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2200 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2201 export ac_cv_exeext
2202 break;;
2203 * ) break;;
2204 esac
2205 done
2206 else
2207 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2208 See \`config.log' for more details." >&5
2209 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2210 See \`config.log' for more details." >&2;}
2211 { (exit 1); exit 1; }; }
2214 rm -f conftest$ac_cv_exeext
2215 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2216 echo "${ECHO_T}$ac_cv_exeext" >&6
2218 rm -f conftest.$ac_ext
2219 EXEEXT=$ac_cv_exeext
2220 ac_exeext=$EXEEXT
2222 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2223 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2224 if test "${ac_cv_objext+set}" = set; then
2225 echo $ECHO_N "(cached) $ECHO_C" >&6
2226 else
2227 cat >conftest.$ac_ext <<_ACEOF
2228 /* confdefs.h. */
2229 _ACEOF
2230 cat confdefs.h >>conftest.$ac_ext
2231 cat >>conftest.$ac_ext <<_ACEOF
2232 /* end confdefs.h. */
2235 main ()
2239 return 0;
2241 _ACEOF
2242 rm -f conftest.o conftest.obj
2243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2244 (eval $ac_compile) 2>&5
2245 ac_status=$?
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); }; then
2248 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2249 case $ac_file in
2250 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2251 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2252 break;;
2253 esac
2254 done
2255 else
2256 echo "$as_me: failed program was:" >&5
2257 sed 's/^/| /' conftest.$ac_ext >&5
2259 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2260 See \`config.log' for more details." >&5
2261 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2262 See \`config.log' for more details." >&2;}
2263 { (exit 1); exit 1; }; }
2266 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2268 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2269 echo "${ECHO_T}$ac_cv_objext" >&6
2270 OBJEXT=$ac_cv_objext
2271 ac_objext=$OBJEXT
2272 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2273 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2274 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2275 echo $ECHO_N "(cached) $ECHO_C" >&6
2276 else
2277 cat >conftest.$ac_ext <<_ACEOF
2278 /* confdefs.h. */
2279 _ACEOF
2280 cat confdefs.h >>conftest.$ac_ext
2281 cat >>conftest.$ac_ext <<_ACEOF
2282 /* end confdefs.h. */
2285 main ()
2287 #ifndef __GNUC__
2288 choke me
2289 #endif
2292 return 0;
2294 _ACEOF
2295 rm -f conftest.$ac_objext
2296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2297 (eval $ac_compile) 2>conftest.er1
2298 ac_status=$?
2299 grep -v '^ *+' conftest.er1 >conftest.err
2300 rm -f conftest.er1
2301 cat conftest.err >&5
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); } &&
2304 { ac_try='test -z "$ac_c_werror_flag"
2305 || test ! -s conftest.err'
2306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2307 (eval $ac_try) 2>&5
2308 ac_status=$?
2309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310 (exit $ac_status); }; } &&
2311 { ac_try='test -s conftest.$ac_objext'
2312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2313 (eval $ac_try) 2>&5
2314 ac_status=$?
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); }; }; then
2317 ac_compiler_gnu=yes
2318 else
2319 echo "$as_me: failed program was:" >&5
2320 sed 's/^/| /' conftest.$ac_ext >&5
2322 ac_compiler_gnu=no
2324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2325 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2328 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2329 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2330 GCC=`test $ac_compiler_gnu = yes && echo yes`
2331 ac_test_CFLAGS=${CFLAGS+set}
2332 ac_save_CFLAGS=$CFLAGS
2333 CFLAGS="-g"
2334 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2335 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2336 if test "${ac_cv_prog_cc_g+set}" = set; then
2337 echo $ECHO_N "(cached) $ECHO_C" >&6
2338 else
2339 cat >conftest.$ac_ext <<_ACEOF
2340 /* confdefs.h. */
2341 _ACEOF
2342 cat confdefs.h >>conftest.$ac_ext
2343 cat >>conftest.$ac_ext <<_ACEOF
2344 /* end confdefs.h. */
2347 main ()
2351 return 0;
2353 _ACEOF
2354 rm -f conftest.$ac_objext
2355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2356 (eval $ac_compile) 2>conftest.er1
2357 ac_status=$?
2358 grep -v '^ *+' conftest.er1 >conftest.err
2359 rm -f conftest.er1
2360 cat conftest.err >&5
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); } &&
2363 { ac_try='test -z "$ac_c_werror_flag"
2364 || test ! -s conftest.err'
2365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366 (eval $ac_try) 2>&5
2367 ac_status=$?
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; } &&
2370 { ac_try='test -s conftest.$ac_objext'
2371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2372 (eval $ac_try) 2>&5
2373 ac_status=$?
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }; }; then
2376 ac_cv_prog_cc_g=yes
2377 else
2378 echo "$as_me: failed program was:" >&5
2379 sed 's/^/| /' conftest.$ac_ext >&5
2381 ac_cv_prog_cc_g=no
2383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2385 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2386 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2387 if test "$ac_test_CFLAGS" = set; then
2388 CFLAGS=$ac_save_CFLAGS
2389 elif test $ac_cv_prog_cc_g = yes; then
2390 if test "$GCC" = yes; then
2391 CFLAGS="-g -O2"
2392 else
2393 CFLAGS="-g"
2395 else
2396 if test "$GCC" = yes; then
2397 CFLAGS="-O2"
2398 else
2399 CFLAGS=
2402 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2403 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2404 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2405 echo $ECHO_N "(cached) $ECHO_C" >&6
2406 else
2407 ac_cv_prog_cc_stdc=no
2408 ac_save_CC=$CC
2409 cat >conftest.$ac_ext <<_ACEOF
2410 /* confdefs.h. */
2411 _ACEOF
2412 cat confdefs.h >>conftest.$ac_ext
2413 cat >>conftest.$ac_ext <<_ACEOF
2414 /* end confdefs.h. */
2415 #include <stdarg.h>
2416 #include <stdio.h>
2417 #include <sys/types.h>
2418 #include <sys/stat.h>
2419 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2420 struct buf { int x; };
2421 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2422 static char *e (p, i)
2423 char **p;
2424 int i;
2426 return p[i];
2428 static char *f (char * (*g) (char **, int), char **p, ...)
2430 char *s;
2431 va_list v;
2432 va_start (v,p);
2433 s = g (p, va_arg (v,int));
2434 va_end (v);
2435 return s;
2438 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2439 function prototypes and stuff, but not '\xHH' hex character constants.
2440 These don't provoke an error unfortunately, instead are silently treated
2441 as 'x'. The following induces an error, until -std1 is added to get
2442 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2443 array size at least. It's necessary to write '\x00'==0 to get something
2444 that's true only with -std1. */
2445 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2447 int test (int i, double x);
2448 struct s1 {int (*f) (int a);};
2449 struct s2 {int (*f) (double a);};
2450 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2451 int argc;
2452 char **argv;
2454 main ()
2456 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2458 return 0;
2460 _ACEOF
2461 # Don't try gcc -ansi; that turns off useful extensions and
2462 # breaks some systems' header files.
2463 # AIX -qlanglvl=ansi
2464 # Ultrix and OSF/1 -std1
2465 # HP-UX 10.20 and later -Ae
2466 # HP-UX older versions -Aa -D_HPUX_SOURCE
2467 # SVR4 -Xc -D__EXTENSIONS__
2468 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2470 CC="$ac_save_CC $ac_arg"
2471 rm -f conftest.$ac_objext
2472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2473 (eval $ac_compile) 2>conftest.er1
2474 ac_status=$?
2475 grep -v '^ *+' conftest.er1 >conftest.err
2476 rm -f conftest.er1
2477 cat conftest.err >&5
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); } &&
2480 { ac_try='test -z "$ac_c_werror_flag"
2481 || test ! -s conftest.err'
2482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2483 (eval $ac_try) 2>&5
2484 ac_status=$?
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); }; } &&
2487 { ac_try='test -s conftest.$ac_objext'
2488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2489 (eval $ac_try) 2>&5
2490 ac_status=$?
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); }; }; then
2493 ac_cv_prog_cc_stdc=$ac_arg
2494 break
2495 else
2496 echo "$as_me: failed program was:" >&5
2497 sed 's/^/| /' conftest.$ac_ext >&5
2500 rm -f conftest.err conftest.$ac_objext
2501 done
2502 rm -f conftest.$ac_ext conftest.$ac_objext
2503 CC=$ac_save_CC
2507 case "x$ac_cv_prog_cc_stdc" in
2508 x|xno)
2509 echo "$as_me:$LINENO: result: none needed" >&5
2510 echo "${ECHO_T}none needed" >&6 ;;
2512 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2513 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2514 CC="$CC $ac_cv_prog_cc_stdc" ;;
2515 esac
2517 # Some people use a C++ compiler to compile C. Since we use `exit',
2518 # in C++ we need to declare it. In case someone uses the same compiler
2519 # for both compiling C and C++ we need to have the C++ compiler decide
2520 # the declaration of exit, since it's the most demanding environment.
2521 cat >conftest.$ac_ext <<_ACEOF
2522 #ifndef __cplusplus
2523 choke me
2524 #endif
2525 _ACEOF
2526 rm -f conftest.$ac_objext
2527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2528 (eval $ac_compile) 2>conftest.er1
2529 ac_status=$?
2530 grep -v '^ *+' conftest.er1 >conftest.err
2531 rm -f conftest.er1
2532 cat conftest.err >&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); } &&
2535 { ac_try='test -z "$ac_c_werror_flag"
2536 || test ! -s conftest.err'
2537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538 (eval $ac_try) 2>&5
2539 ac_status=$?
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }; } &&
2542 { ac_try='test -s conftest.$ac_objext'
2543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2544 (eval $ac_try) 2>&5
2545 ac_status=$?
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }; }; then
2548 for ac_declaration in \
2549 '' \
2550 'extern "C" void std::exit (int) throw (); using std::exit;' \
2551 'extern "C" void std::exit (int); using std::exit;' \
2552 'extern "C" void exit (int) throw ();' \
2553 'extern "C" void exit (int);' \
2554 'void exit (int);'
2556 cat >conftest.$ac_ext <<_ACEOF
2557 /* confdefs.h. */
2558 _ACEOF
2559 cat confdefs.h >>conftest.$ac_ext
2560 cat >>conftest.$ac_ext <<_ACEOF
2561 /* end confdefs.h. */
2562 $ac_declaration
2563 #include <stdlib.h>
2565 main ()
2567 exit (42);
2569 return 0;
2571 _ACEOF
2572 rm -f conftest.$ac_objext
2573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2574 (eval $ac_compile) 2>conftest.er1
2575 ac_status=$?
2576 grep -v '^ *+' conftest.er1 >conftest.err
2577 rm -f conftest.er1
2578 cat conftest.err >&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); } &&
2581 { ac_try='test -z "$ac_c_werror_flag"
2582 || test ! -s conftest.err'
2583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584 (eval $ac_try) 2>&5
2585 ac_status=$?
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }; } &&
2588 { ac_try='test -s conftest.$ac_objext'
2589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590 (eval $ac_try) 2>&5
2591 ac_status=$?
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; }; then
2595 else
2596 echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2599 continue
2601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2602 cat >conftest.$ac_ext <<_ACEOF
2603 /* confdefs.h. */
2604 _ACEOF
2605 cat confdefs.h >>conftest.$ac_ext
2606 cat >>conftest.$ac_ext <<_ACEOF
2607 /* end confdefs.h. */
2608 $ac_declaration
2610 main ()
2612 exit (42);
2614 return 0;
2616 _ACEOF
2617 rm -f conftest.$ac_objext
2618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2619 (eval $ac_compile) 2>conftest.er1
2620 ac_status=$?
2621 grep -v '^ *+' conftest.er1 >conftest.err
2622 rm -f conftest.er1
2623 cat conftest.err >&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); } &&
2626 { ac_try='test -z "$ac_c_werror_flag"
2627 || test ! -s conftest.err'
2628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629 (eval $ac_try) 2>&5
2630 ac_status=$?
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); }; } &&
2633 { ac_try='test -s conftest.$ac_objext'
2634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635 (eval $ac_try) 2>&5
2636 ac_status=$?
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; }; then
2639 break
2640 else
2641 echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2646 done
2647 rm -f conftest*
2648 if test -n "$ac_declaration"; then
2649 echo '#ifdef __cplusplus' >>confdefs.h
2650 echo $ac_declaration >>confdefs.h
2651 echo '#endif' >>confdefs.h
2654 else
2655 echo "$as_me: failed program was:" >&5
2656 sed 's/^/| /' conftest.$ac_ext >&5
2659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2660 ac_ext=c
2661 ac_cpp='$CPP $CPPFLAGS'
2662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2666 ac_ext=cc
2667 ac_cpp='$CXXCPP $CPPFLAGS'
2668 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2669 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2670 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2671 if test -n "$ac_tool_prefix"; then
2672 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2674 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2675 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2676 echo "$as_me:$LINENO: checking for $ac_word" >&5
2677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2678 if test "${ac_cv_prog_CXX+set}" = set; then
2679 echo $ECHO_N "(cached) $ECHO_C" >&6
2680 else
2681 if test -n "$CXX"; then
2682 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2683 else
2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 for as_dir in $PATH
2687 IFS=$as_save_IFS
2688 test -z "$as_dir" && as_dir=.
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2691 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 break 2
2695 done
2696 done
2700 CXX=$ac_cv_prog_CXX
2701 if test -n "$CXX"; then
2702 echo "$as_me:$LINENO: result: $CXX" >&5
2703 echo "${ECHO_T}$CXX" >&6
2704 else
2705 echo "$as_me:$LINENO: result: no" >&5
2706 echo "${ECHO_T}no" >&6
2709 test -n "$CXX" && break
2710 done
2712 if test -z "$CXX"; then
2713 ac_ct_CXX=$CXX
2714 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2716 # Extract the first word of "$ac_prog", so it can be a program name with args.
2717 set dummy $ac_prog; ac_word=$2
2718 echo "$as_me:$LINENO: checking for $ac_word" >&5
2719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2720 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2721 echo $ECHO_N "(cached) $ECHO_C" >&6
2722 else
2723 if test -n "$ac_ct_CXX"; then
2724 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2725 else
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 for as_dir in $PATH
2729 IFS=$as_save_IFS
2730 test -z "$as_dir" && as_dir=.
2731 for ac_exec_ext in '' $ac_executable_extensions; do
2732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2733 ac_cv_prog_ac_ct_CXX="$ac_prog"
2734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2735 break 2
2737 done
2738 done
2742 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2743 if test -n "$ac_ct_CXX"; then
2744 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2745 echo "${ECHO_T}$ac_ct_CXX" >&6
2746 else
2747 echo "$as_me:$LINENO: result: no" >&5
2748 echo "${ECHO_T}no" >&6
2751 test -n "$ac_ct_CXX" && break
2752 done
2753 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2755 CXX=$ac_ct_CXX
2759 # Provide some information about the compiler.
2760 echo "$as_me:$LINENO:" \
2761 "checking for C++ compiler version" >&5
2762 ac_compiler=`set X $ac_compile; echo $2`
2763 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2764 (eval $ac_compiler --version </dev/null >&5) 2>&5
2765 ac_status=$?
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); }
2768 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2769 (eval $ac_compiler -v </dev/null >&5) 2>&5
2770 ac_status=$?
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); }
2773 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2774 (eval $ac_compiler -V </dev/null >&5) 2>&5
2775 ac_status=$?
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }
2779 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2780 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2781 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2783 else
2784 cat >conftest.$ac_ext <<_ACEOF
2785 /* confdefs.h. */
2786 _ACEOF
2787 cat confdefs.h >>conftest.$ac_ext
2788 cat >>conftest.$ac_ext <<_ACEOF
2789 /* end confdefs.h. */
2792 main ()
2794 #ifndef __GNUC__
2795 choke me
2796 #endif
2799 return 0;
2801 _ACEOF
2802 rm -f conftest.$ac_objext
2803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2804 (eval $ac_compile) 2>conftest.er1
2805 ac_status=$?
2806 grep -v '^ *+' conftest.er1 >conftest.err
2807 rm -f conftest.er1
2808 cat conftest.err >&5
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); } &&
2811 { ac_try='test -z "$ac_cxx_werror_flag"
2812 || test ! -s conftest.err'
2813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2814 (eval $ac_try) 2>&5
2815 ac_status=$?
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); }; } &&
2818 { ac_try='test -s conftest.$ac_objext'
2819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2820 (eval $ac_try) 2>&5
2821 ac_status=$?
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); }; }; then
2824 ac_compiler_gnu=yes
2825 else
2826 echo "$as_me: failed program was:" >&5
2827 sed 's/^/| /' conftest.$ac_ext >&5
2829 ac_compiler_gnu=no
2831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2832 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2835 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2836 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2837 GXX=`test $ac_compiler_gnu = yes && echo yes`
2838 ac_test_CXXFLAGS=${CXXFLAGS+set}
2839 ac_save_CXXFLAGS=$CXXFLAGS
2840 CXXFLAGS="-g"
2841 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2842 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2843 if test "${ac_cv_prog_cxx_g+set}" = set; then
2844 echo $ECHO_N "(cached) $ECHO_C" >&6
2845 else
2846 cat >conftest.$ac_ext <<_ACEOF
2847 /* confdefs.h. */
2848 _ACEOF
2849 cat confdefs.h >>conftest.$ac_ext
2850 cat >>conftest.$ac_ext <<_ACEOF
2851 /* end confdefs.h. */
2854 main ()
2858 return 0;
2860 _ACEOF
2861 rm -f conftest.$ac_objext
2862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2863 (eval $ac_compile) 2>conftest.er1
2864 ac_status=$?
2865 grep -v '^ *+' conftest.er1 >conftest.err
2866 rm -f conftest.er1
2867 cat conftest.err >&5
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); } &&
2870 { ac_try='test -z "$ac_cxx_werror_flag"
2871 || test ! -s conftest.err'
2872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873 (eval $ac_try) 2>&5
2874 ac_status=$?
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); }; } &&
2877 { ac_try='test -s conftest.$ac_objext'
2878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879 (eval $ac_try) 2>&5
2880 ac_status=$?
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }; }; then
2883 ac_cv_prog_cxx_g=yes
2884 else
2885 echo "$as_me: failed program was:" >&5
2886 sed 's/^/| /' conftest.$ac_ext >&5
2888 ac_cv_prog_cxx_g=no
2890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2892 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2893 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2894 if test "$ac_test_CXXFLAGS" = set; then
2895 CXXFLAGS=$ac_save_CXXFLAGS
2896 elif test $ac_cv_prog_cxx_g = yes; then
2897 if test "$GXX" = yes; then
2898 CXXFLAGS="-g -O2"
2899 else
2900 CXXFLAGS="-g"
2902 else
2903 if test "$GXX" = yes; then
2904 CXXFLAGS="-O2"
2905 else
2906 CXXFLAGS=
2909 for ac_declaration in \
2910 '' \
2911 'extern "C" void std::exit (int) throw (); using std::exit;' \
2912 'extern "C" void std::exit (int); using std::exit;' \
2913 'extern "C" void exit (int) throw ();' \
2914 'extern "C" void exit (int);' \
2915 'void exit (int);'
2917 cat >conftest.$ac_ext <<_ACEOF
2918 /* confdefs.h. */
2919 _ACEOF
2920 cat confdefs.h >>conftest.$ac_ext
2921 cat >>conftest.$ac_ext <<_ACEOF
2922 /* end confdefs.h. */
2923 $ac_declaration
2924 #include <stdlib.h>
2926 main ()
2928 exit (42);
2930 return 0;
2932 _ACEOF
2933 rm -f conftest.$ac_objext
2934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2935 (eval $ac_compile) 2>conftest.er1
2936 ac_status=$?
2937 grep -v '^ *+' conftest.er1 >conftest.err
2938 rm -f conftest.er1
2939 cat conftest.err >&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); } &&
2942 { ac_try='test -z "$ac_cxx_werror_flag"
2943 || test ! -s conftest.err'
2944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2945 (eval $ac_try) 2>&5
2946 ac_status=$?
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); }; } &&
2949 { ac_try='test -s conftest.$ac_objext'
2950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2951 (eval $ac_try) 2>&5
2952 ac_status=$?
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); }; }; then
2956 else
2957 echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2960 continue
2962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2963 cat >conftest.$ac_ext <<_ACEOF
2964 /* confdefs.h. */
2965 _ACEOF
2966 cat confdefs.h >>conftest.$ac_ext
2967 cat >>conftest.$ac_ext <<_ACEOF
2968 /* end confdefs.h. */
2969 $ac_declaration
2971 main ()
2973 exit (42);
2975 return 0;
2977 _ACEOF
2978 rm -f conftest.$ac_objext
2979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2980 (eval $ac_compile) 2>conftest.er1
2981 ac_status=$?
2982 grep -v '^ *+' conftest.er1 >conftest.err
2983 rm -f conftest.er1
2984 cat conftest.err >&5
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); } &&
2987 { ac_try='test -z "$ac_cxx_werror_flag"
2988 || test ! -s conftest.err'
2989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2990 (eval $ac_try) 2>&5
2991 ac_status=$?
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); }; } &&
2994 { ac_try='test -s conftest.$ac_objext'
2995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2996 (eval $ac_try) 2>&5
2997 ac_status=$?
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); }; }; then
3000 break
3001 else
3002 echo "$as_me: failed program was:" >&5
3003 sed 's/^/| /' conftest.$ac_ext >&5
3006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3007 done
3008 rm -f conftest*
3009 if test -n "$ac_declaration"; then
3010 echo '#ifdef __cplusplus' >>confdefs.h
3011 echo $ac_declaration >>confdefs.h
3012 echo '#endif' >>confdefs.h
3015 ac_ext=c
3016 ac_cpp='$CPP $CPPFLAGS'
3017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3021 CXXFLAGS="$save_CXXFLAGS"
3027 am__api_version="1.9"
3028 # Find a good install program. We prefer a C program (faster),
3029 # so one script is as good as another. But avoid the broken or
3030 # incompatible versions:
3031 # SysV /etc/install, /usr/sbin/install
3032 # SunOS /usr/etc/install
3033 # IRIX /sbin/install
3034 # AIX /bin/install
3035 # AmigaOS /C/install, which installs bootblocks on floppy discs
3036 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3037 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3038 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3039 # OS/2's system install, which has a completely different semantic
3040 # ./install, which can be erroneously created by make from ./install.sh.
3041 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3042 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3043 if test -z "$INSTALL"; then
3044 if test "${ac_cv_path_install+set}" = set; then
3045 echo $ECHO_N "(cached) $ECHO_C" >&6
3046 else
3047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048 for as_dir in $PATH
3050 IFS=$as_save_IFS
3051 test -z "$as_dir" && as_dir=.
3052 # Account for people who put trailing slashes in PATH elements.
3053 case $as_dir/ in
3054 ./ | .// | /cC/* | \
3055 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3056 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3057 /usr/ucb/* ) ;;
3059 # OSF1 and SCO ODT 3.0 have their own names for install.
3060 # Don't use installbsd from OSF since it installs stuff as root
3061 # by default.
3062 for ac_prog in ginstall scoinst install; do
3063 for ac_exec_ext in '' $ac_executable_extensions; do
3064 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3065 if test $ac_prog = install &&
3066 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3067 # AIX install. It has an incompatible calling convention.
3069 elif test $ac_prog = install &&
3070 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3071 # program-specific install script used by HP pwplus--don't use.
3073 else
3074 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3075 break 3
3078 done
3079 done
3081 esac
3082 done
3086 if test "${ac_cv_path_install+set}" = set; then
3087 INSTALL=$ac_cv_path_install
3088 else
3089 # As a last resort, use the slow shell script. We don't cache a
3090 # path for INSTALL within a source directory, because that will
3091 # break other packages using the cache if that directory is
3092 # removed, or if the path is relative.
3093 INSTALL=$ac_install_sh
3096 echo "$as_me:$LINENO: result: $INSTALL" >&5
3097 echo "${ECHO_T}$INSTALL" >&6
3099 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3100 # It thinks the first close brace ends the variable substitution.
3101 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3103 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3105 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3107 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3108 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3109 # Just in case
3110 sleep 1
3111 echo timestamp > conftest.file
3112 # Do `set' in a subshell so we don't clobber the current shell's
3113 # arguments. Must try -L first in case configure is actually a
3114 # symlink; some systems play weird games with the mod time of symlinks
3115 # (eg FreeBSD returns the mod time of the symlink's containing
3116 # directory).
3117 if (
3118 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3119 if test "$*" = "X"; then
3120 # -L didn't work.
3121 set X `ls -t $srcdir/configure conftest.file`
3123 rm -f conftest.file
3124 if test "$*" != "X $srcdir/configure conftest.file" \
3125 && test "$*" != "X conftest.file $srcdir/configure"; then
3127 # If neither matched, then we have a broken ls. This can happen
3128 # if, for instance, CONFIG_SHELL is bash and it inherits a
3129 # broken ls alias from the environment. This has actually
3130 # happened. Such a system could not be considered "sane".
3131 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3132 alias in your environment" >&5
3133 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3134 alias in your environment" >&2;}
3135 { (exit 1); exit 1; }; }
3138 test "$2" = conftest.file
3140 then
3141 # Ok.
3143 else
3144 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3145 Check your system clock" >&5
3146 echo "$as_me: error: newly created file is older than distributed files!
3147 Check your system clock" >&2;}
3148 { (exit 1); exit 1; }; }
3150 echo "$as_me:$LINENO: result: yes" >&5
3151 echo "${ECHO_T}yes" >&6
3152 test "$program_prefix" != NONE &&
3153 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3154 # Use a double $ so make ignores it.
3155 test "$program_suffix" != NONE &&
3156 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3157 # Double any \ or $. echo might interpret backslashes.
3158 # By default was `s,x,x', remove it if useless.
3159 cat <<\_ACEOF >conftest.sed
3160 s/[\\$]/&&/g;s/;s,x,x,$//
3161 _ACEOF
3162 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3163 rm conftest.sed
3165 # expand $ac_aux_dir to an absolute path
3166 am_aux_dir=`cd $ac_aux_dir && pwd`
3168 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3169 # Use eval to expand $SHELL
3170 if eval "$MISSING --run true"; then
3171 am_missing_run="$MISSING --run "
3172 else
3173 am_missing_run=
3174 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3175 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3178 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3179 # We used to keeping the `.' as first argument, in order to
3180 # allow $(mkdir_p) to be used without argument. As in
3181 # $(mkdir_p) $(somedir)
3182 # where $(somedir) is conditionally defined. However this is wrong
3183 # for two reasons:
3184 # 1. if the package is installed by a user who cannot write `.'
3185 # make install will fail,
3186 # 2. the above comment should most certainly read
3187 # $(mkdir_p) $(DESTDIR)$(somedir)
3188 # so it does not work when $(somedir) is undefined and
3189 # $(DESTDIR) is not.
3190 # To support the latter case, we have to write
3191 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3192 # so the `.' trick is pointless.
3193 mkdir_p='mkdir -p --'
3194 else
3195 # On NextStep and OpenStep, the `mkdir' command does not
3196 # recognize any option. It will interpret all options as
3197 # directories to create, and then abort because `.' already
3198 # exists.
3199 for d in ./-p ./--version;
3201 test -d $d && rmdir $d
3202 done
3203 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3204 if test -f "$ac_aux_dir/mkinstalldirs"; then
3205 mkdir_p='$(mkinstalldirs)'
3206 else
3207 mkdir_p='$(install_sh) -d'
3211 for ac_prog in gawk mawk nawk awk
3213 # Extract the first word of "$ac_prog", so it can be a program name with args.
3214 set dummy $ac_prog; ac_word=$2
3215 echo "$as_me:$LINENO: checking for $ac_word" >&5
3216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3217 if test "${ac_cv_prog_AWK+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3219 else
3220 if test -n "$AWK"; then
3221 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3222 else
3223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224 for as_dir in $PATH
3226 IFS=$as_save_IFS
3227 test -z "$as_dir" && as_dir=.
3228 for ac_exec_ext in '' $ac_executable_extensions; do
3229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3230 ac_cv_prog_AWK="$ac_prog"
3231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3232 break 2
3234 done
3235 done
3239 AWK=$ac_cv_prog_AWK
3240 if test -n "$AWK"; then
3241 echo "$as_me:$LINENO: result: $AWK" >&5
3242 echo "${ECHO_T}$AWK" >&6
3243 else
3244 echo "$as_me:$LINENO: result: no" >&5
3245 echo "${ECHO_T}no" >&6
3248 test -n "$AWK" && break
3249 done
3251 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3252 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3253 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3254 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3255 echo $ECHO_N "(cached) $ECHO_C" >&6
3256 else
3257 cat >conftest.make <<\_ACEOF
3258 all:
3259 @echo 'ac_maketemp="$(MAKE)"'
3260 _ACEOF
3261 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3262 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3263 if test -n "$ac_maketemp"; then
3264 eval ac_cv_prog_make_${ac_make}_set=yes
3265 else
3266 eval ac_cv_prog_make_${ac_make}_set=no
3268 rm -f conftest.make
3270 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3271 echo "$as_me:$LINENO: result: yes" >&5
3272 echo "${ECHO_T}yes" >&6
3273 SET_MAKE=
3274 else
3275 echo "$as_me:$LINENO: result: no" >&5
3276 echo "${ECHO_T}no" >&6
3277 SET_MAKE="MAKE=${MAKE-make}"
3280 rm -rf .tst 2>/dev/null
3281 mkdir .tst 2>/dev/null
3282 if test -d .tst; then
3283 am__leading_dot=.
3284 else
3285 am__leading_dot=_
3287 rmdir .tst 2>/dev/null
3289 DEPDIR="${am__leading_dot}deps"
3291 ac_config_commands="$ac_config_commands depfiles"
3294 am_make=${MAKE-make}
3295 cat > confinc << 'END'
3296 am__doit:
3297 @echo done
3298 .PHONY: am__doit
3300 # If we don't find an include directive, just comment out the code.
3301 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3302 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3303 am__include="#"
3304 am__quote=
3305 _am_result=none
3306 # First try GNU make style include.
3307 echo "include confinc" > confmf
3308 # We grep out `Entering directory' and `Leaving directory'
3309 # messages which can occur if `w' ends up in MAKEFLAGS.
3310 # In particular we don't look at `^make:' because GNU make might
3311 # be invoked under some other name (usually "gmake"), in which
3312 # case it prints its new name instead of `make'.
3313 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3314 am__include=include
3315 am__quote=
3316 _am_result=GNU
3318 # Now try BSD make style include.
3319 if test "$am__include" = "#"; then
3320 echo '.include "confinc"' > confmf
3321 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3322 am__include=.include
3323 am__quote="\""
3324 _am_result=BSD
3329 echo "$as_me:$LINENO: result: $_am_result" >&5
3330 echo "${ECHO_T}$_am_result" >&6
3331 rm -f confinc confmf
3333 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3334 if test "${enable_dependency_tracking+set}" = set; then
3335 enableval="$enable_dependency_tracking"
3338 if test "x$enable_dependency_tracking" != xno; then
3339 am_depcomp="$ac_aux_dir/depcomp"
3340 AMDEPBACKSLASH='\'
3344 if test "x$enable_dependency_tracking" != xno; then
3345 AMDEP_TRUE=
3346 AMDEP_FALSE='#'
3347 else
3348 AMDEP_TRUE='#'
3349 AMDEP_FALSE=
3354 # test to see if srcdir already configured
3355 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3356 test -f $srcdir/config.status; then
3357 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3358 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3359 { (exit 1); exit 1; }; }
3362 # test whether we have cygpath
3363 if test -z "$CYGPATH_W"; then
3364 if (cygpath --version) >/dev/null 2>/dev/null; then
3365 CYGPATH_W='cygpath -w'
3366 else
3367 CYGPATH_W=echo
3372 # Define the identity of the package.
3373 PACKAGE='libjava'
3374 VERSION='version-unused'
3377 cat >>confdefs.h <<_ACEOF
3378 #define PACKAGE "$PACKAGE"
3379 _ACEOF
3382 cat >>confdefs.h <<_ACEOF
3383 #define VERSION "$VERSION"
3384 _ACEOF
3386 # Some tools Automake needs.
3388 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3391 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3394 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3397 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3400 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3402 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3404 # Installed binaries are usually stripped using `strip' when the user
3405 # run `make install-strip'. However `strip' might not be the right
3406 # tool to use in cross-compilation environments, therefore Automake
3407 # will honor the `STRIP' environment variable to overrule this program.
3408 if test "$cross_compiling" != no; then
3409 if test -n "$ac_tool_prefix"; then
3410 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3411 set dummy ${ac_tool_prefix}strip; ac_word=$2
3412 echo "$as_me:$LINENO: checking for $ac_word" >&5
3413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3414 if test "${ac_cv_prog_STRIP+set}" = set; then
3415 echo $ECHO_N "(cached) $ECHO_C" >&6
3416 else
3417 if test -n "$STRIP"; then
3418 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3419 else
3420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3421 for as_dir in $PATH
3423 IFS=$as_save_IFS
3424 test -z "$as_dir" && as_dir=.
3425 for ac_exec_ext in '' $ac_executable_extensions; do
3426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3427 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3429 break 2
3431 done
3432 done
3436 STRIP=$ac_cv_prog_STRIP
3437 if test -n "$STRIP"; then
3438 echo "$as_me:$LINENO: result: $STRIP" >&5
3439 echo "${ECHO_T}$STRIP" >&6
3440 else
3441 echo "$as_me:$LINENO: result: no" >&5
3442 echo "${ECHO_T}no" >&6
3446 if test -z "$ac_cv_prog_STRIP"; then
3447 ac_ct_STRIP=$STRIP
3448 # Extract the first word of "strip", so it can be a program name with args.
3449 set dummy strip; ac_word=$2
3450 echo "$as_me:$LINENO: checking for $ac_word" >&5
3451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3452 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3453 echo $ECHO_N "(cached) $ECHO_C" >&6
3454 else
3455 if test -n "$ac_ct_STRIP"; then
3456 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3457 else
3458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3459 for as_dir in $PATH
3461 IFS=$as_save_IFS
3462 test -z "$as_dir" && as_dir=.
3463 for ac_exec_ext in '' $ac_executable_extensions; do
3464 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3465 ac_cv_prog_ac_ct_STRIP="strip"
3466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3467 break 2
3469 done
3470 done
3472 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3475 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3476 if test -n "$ac_ct_STRIP"; then
3477 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3478 echo "${ECHO_T}$ac_ct_STRIP" >&6
3479 else
3480 echo "$as_me:$LINENO: result: no" >&5
3481 echo "${ECHO_T}no" >&6
3484 STRIP=$ac_ct_STRIP
3485 else
3486 STRIP="$ac_cv_prog_STRIP"
3490 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3492 # We need awk for the "check" target. The system "awk" is bad on
3493 # some platforms.
3494 # Always define AMTAR for backward compatibility.
3496 AMTAR=${AMTAR-"${am_missing_run}tar"}
3498 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3503 depcc="$CC" am_compiler_list=
3505 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3506 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3507 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3508 echo $ECHO_N "(cached) $ECHO_C" >&6
3509 else
3510 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3511 # We make a subdir and do the tests there. Otherwise we can end up
3512 # making bogus files that we don't know about and never remove. For
3513 # instance it was reported that on HP-UX the gcc test will end up
3514 # making a dummy file named `D' -- because `-MD' means `put the output
3515 # in D'.
3516 mkdir conftest.dir
3517 # Copy depcomp to subdir because otherwise we won't find it if we're
3518 # using a relative directory.
3519 cp "$am_depcomp" conftest.dir
3520 cd conftest.dir
3521 # We will build objects and dependencies in a subdirectory because
3522 # it helps to detect inapplicable dependency modes. For instance
3523 # both Tru64's cc and ICC support -MD to output dependencies as a
3524 # side effect of compilation, but ICC will put the dependencies in
3525 # the current directory while Tru64 will put them in the object
3526 # directory.
3527 mkdir sub
3529 am_cv_CC_dependencies_compiler_type=none
3530 if test "$am_compiler_list" = ""; then
3531 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3533 for depmode in $am_compiler_list; do
3534 # Setup a source with many dependencies, because some compilers
3535 # like to wrap large dependency lists on column 80 (with \), and
3536 # we should not choose a depcomp mode which is confused by this.
3538 # We need to recreate these files for each test, as the compiler may
3539 # overwrite some of them when testing with obscure command lines.
3540 # This happens at least with the AIX C compiler.
3541 : > sub/conftest.c
3542 for i in 1 2 3 4 5 6; do
3543 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3544 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3545 # Solaris 8's {/usr,}/bin/sh.
3546 touch sub/conftst$i.h
3547 done
3548 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3550 case $depmode in
3551 nosideeffect)
3552 # after this tag, mechanisms are not by side-effect, so they'll
3553 # only be used when explicitly requested
3554 if test "x$enable_dependency_tracking" = xyes; then
3555 continue
3556 else
3557 break
3560 none) break ;;
3561 esac
3562 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3563 # mode. It turns out that the SunPro C++ compiler does not properly
3564 # handle `-M -o', and we need to detect this.
3565 if depmode=$depmode \
3566 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3567 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3568 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3569 >/dev/null 2>conftest.err &&
3570 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3571 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3572 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3573 # icc doesn't choke on unknown options, it will just issue warnings
3574 # or remarks (even with -Werror). So we grep stderr for any message
3575 # that says an option was ignored or not supported.
3576 # When given -MP, icc 7.0 and 7.1 complain thusly:
3577 # icc: Command line warning: ignoring option '-M'; no argument required
3578 # The diagnosis changed in icc 8.0:
3579 # icc: Command line remark: option '-MP' not supported
3580 if (grep 'ignoring option' conftest.err ||
3581 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3582 am_cv_CC_dependencies_compiler_type=$depmode
3583 break
3586 done
3588 cd ..
3589 rm -rf conftest.dir
3590 else
3591 am_cv_CC_dependencies_compiler_type=none
3595 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3596 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3597 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3602 test "x$enable_dependency_tracking" != xno \
3603 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3604 am__fastdepCC_TRUE=
3605 am__fastdepCC_FALSE='#'
3606 else
3607 am__fastdepCC_TRUE='#'
3608 am__fastdepCC_FALSE=
3612 depcc="$CXX" am_compiler_list=
3614 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3615 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3616 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3617 echo $ECHO_N "(cached) $ECHO_C" >&6
3618 else
3619 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3620 # We make a subdir and do the tests there. Otherwise we can end up
3621 # making bogus files that we don't know about and never remove. For
3622 # instance it was reported that on HP-UX the gcc test will end up
3623 # making a dummy file named `D' -- because `-MD' means `put the output
3624 # in D'.
3625 mkdir conftest.dir
3626 # Copy depcomp to subdir because otherwise we won't find it if we're
3627 # using a relative directory.
3628 cp "$am_depcomp" conftest.dir
3629 cd conftest.dir
3630 # We will build objects and dependencies in a subdirectory because
3631 # it helps to detect inapplicable dependency modes. For instance
3632 # both Tru64's cc and ICC support -MD to output dependencies as a
3633 # side effect of compilation, but ICC will put the dependencies in
3634 # the current directory while Tru64 will put them in the object
3635 # directory.
3636 mkdir sub
3638 am_cv_CXX_dependencies_compiler_type=none
3639 if test "$am_compiler_list" = ""; then
3640 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3642 for depmode in $am_compiler_list; do
3643 # Setup a source with many dependencies, because some compilers
3644 # like to wrap large dependency lists on column 80 (with \), and
3645 # we should not choose a depcomp mode which is confused by this.
3647 # We need to recreate these files for each test, as the compiler may
3648 # overwrite some of them when testing with obscure command lines.
3649 # This happens at least with the AIX C compiler.
3650 : > sub/conftest.c
3651 for i in 1 2 3 4 5 6; do
3652 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3653 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3654 # Solaris 8's {/usr,}/bin/sh.
3655 touch sub/conftst$i.h
3656 done
3657 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3659 case $depmode in
3660 nosideeffect)
3661 # after this tag, mechanisms are not by side-effect, so they'll
3662 # only be used when explicitly requested
3663 if test "x$enable_dependency_tracking" = xyes; then
3664 continue
3665 else
3666 break
3669 none) break ;;
3670 esac
3671 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3672 # mode. It turns out that the SunPro C++ compiler does not properly
3673 # handle `-M -o', and we need to detect this.
3674 if depmode=$depmode \
3675 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3676 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3677 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3678 >/dev/null 2>conftest.err &&
3679 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3680 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3681 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3682 # icc doesn't choke on unknown options, it will just issue warnings
3683 # or remarks (even with -Werror). So we grep stderr for any message
3684 # that says an option was ignored or not supported.
3685 # When given -MP, icc 7.0 and 7.1 complain thusly:
3686 # icc: Command line warning: ignoring option '-M'; no argument required
3687 # The diagnosis changed in icc 8.0:
3688 # icc: Command line remark: option '-MP' not supported
3689 if (grep 'ignoring option' conftest.err ||
3690 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3691 am_cv_CXX_dependencies_compiler_type=$depmode
3692 break
3695 done
3697 cd ..
3698 rm -rf conftest.dir
3699 else
3700 am_cv_CXX_dependencies_compiler_type=none
3704 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3705 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3706 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3711 test "x$enable_dependency_tracking" != xno \
3712 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3713 am__fastdepCXX_TRUE=
3714 am__fastdepCXX_FALSE='#'
3715 else
3716 am__fastdepCXX_TRUE='#'
3717 am__fastdepCXX_FALSE=
3723 if test -n "$ac_tool_prefix"; then
3724 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3725 set dummy ${ac_tool_prefix}as; ac_word=$2
3726 echo "$as_me:$LINENO: checking for $ac_word" >&5
3727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3728 if test "${ac_cv_prog_AS+set}" = set; then
3729 echo $ECHO_N "(cached) $ECHO_C" >&6
3730 else
3731 if test -n "$AS"; then
3732 ac_cv_prog_AS="$AS" # Let the user override the test.
3733 else
3734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3735 for as_dir in $PATH
3737 IFS=$as_save_IFS
3738 test -z "$as_dir" && as_dir=.
3739 for ac_exec_ext in '' $ac_executable_extensions; do
3740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3741 ac_cv_prog_AS="${ac_tool_prefix}as"
3742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3743 break 2
3745 done
3746 done
3750 AS=$ac_cv_prog_AS
3751 if test -n "$AS"; then
3752 echo "$as_me:$LINENO: result: $AS" >&5
3753 echo "${ECHO_T}$AS" >&6
3754 else
3755 echo "$as_me:$LINENO: result: no" >&5
3756 echo "${ECHO_T}no" >&6
3760 if test -z "$ac_cv_prog_AS"; then
3761 ac_ct_AS=$AS
3762 # Extract the first word of "as", so it can be a program name with args.
3763 set dummy as; ac_word=$2
3764 echo "$as_me:$LINENO: checking for $ac_word" >&5
3765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3766 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3768 else
3769 if test -n "$ac_ct_AS"; then
3770 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3771 else
3772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773 for as_dir in $PATH
3775 IFS=$as_save_IFS
3776 test -z "$as_dir" && as_dir=.
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3779 ac_cv_prog_ac_ct_AS="as"
3780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3781 break 2
3783 done
3784 done
3788 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3789 if test -n "$ac_ct_AS"; then
3790 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3791 echo "${ECHO_T}$ac_ct_AS" >&6
3792 else
3793 echo "$as_me:$LINENO: result: no" >&5
3794 echo "${ECHO_T}no" >&6
3797 AS=$ac_ct_AS
3798 else
3799 AS="$ac_cv_prog_AS"
3802 if test -n "$ac_tool_prefix"; then
3803 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3804 set dummy ${ac_tool_prefix}ld; ac_word=$2
3805 echo "$as_me:$LINENO: checking for $ac_word" >&5
3806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3807 if test "${ac_cv_prog_LD+set}" = set; then
3808 echo $ECHO_N "(cached) $ECHO_C" >&6
3809 else
3810 if test -n "$LD"; then
3811 ac_cv_prog_LD="$LD" # Let the user override the test.
3812 else
3813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 for as_dir in $PATH
3816 IFS=$as_save_IFS
3817 test -z "$as_dir" && as_dir=.
3818 for ac_exec_ext in '' $ac_executable_extensions; do
3819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3820 ac_cv_prog_LD="${ac_tool_prefix}ld"
3821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3822 break 2
3824 done
3825 done
3829 LD=$ac_cv_prog_LD
3830 if test -n "$LD"; then
3831 echo "$as_me:$LINENO: result: $LD" >&5
3832 echo "${ECHO_T}$LD" >&6
3833 else
3834 echo "$as_me:$LINENO: result: no" >&5
3835 echo "${ECHO_T}no" >&6
3839 if test -z "$ac_cv_prog_LD"; then
3840 ac_ct_LD=$LD
3841 # Extract the first word of "ld", so it can be a program name with args.
3842 set dummy ld; ac_word=$2
3843 echo "$as_me:$LINENO: checking for $ac_word" >&5
3844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3845 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3847 else
3848 if test -n "$ac_ct_LD"; then
3849 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3850 else
3851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852 for as_dir in $PATH
3854 IFS=$as_save_IFS
3855 test -z "$as_dir" && as_dir=.
3856 for ac_exec_ext in '' $ac_executable_extensions; do
3857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3858 ac_cv_prog_ac_ct_LD="ld"
3859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3860 break 2
3862 done
3863 done
3867 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3868 if test -n "$ac_ct_LD"; then
3869 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
3870 echo "${ECHO_T}$ac_ct_LD" >&6
3871 else
3872 echo "$as_me:$LINENO: result: no" >&5
3873 echo "${ECHO_T}no" >&6
3876 LD=$ac_ct_LD
3877 else
3878 LD="$ac_cv_prog_LD"
3881 if test -n "$ac_tool_prefix"; then
3882 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3883 set dummy ${ac_tool_prefix}ar; ac_word=$2
3884 echo "$as_me:$LINENO: checking for $ac_word" >&5
3885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3886 if test "${ac_cv_prog_AR+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 else
3889 if test -n "$AR"; then
3890 ac_cv_prog_AR="$AR" # Let the user override the test.
3891 else
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 for as_dir in $PATH
3895 IFS=$as_save_IFS
3896 test -z "$as_dir" && as_dir=.
3897 for ac_exec_ext in '' $ac_executable_extensions; do
3898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3899 ac_cv_prog_AR="${ac_tool_prefix}ar"
3900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3901 break 2
3903 done
3904 done
3908 AR=$ac_cv_prog_AR
3909 if test -n "$AR"; then
3910 echo "$as_me:$LINENO: result: $AR" >&5
3911 echo "${ECHO_T}$AR" >&6
3912 else
3913 echo "$as_me:$LINENO: result: no" >&5
3914 echo "${ECHO_T}no" >&6
3918 if test -z "$ac_cv_prog_AR"; then
3919 ac_ct_AR=$AR
3920 # Extract the first word of "ar", so it can be a program name with args.
3921 set dummy ar; ac_word=$2
3922 echo "$as_me:$LINENO: checking for $ac_word" >&5
3923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3924 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3926 else
3927 if test -n "$ac_ct_AR"; then
3928 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3929 else
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931 for as_dir in $PATH
3933 IFS=$as_save_IFS
3934 test -z "$as_dir" && as_dir=.
3935 for ac_exec_ext in '' $ac_executable_extensions; do
3936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3937 ac_cv_prog_ac_ct_AR="ar"
3938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3939 break 2
3941 done
3942 done
3946 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3947 if test -n "$ac_ct_AR"; then
3948 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3949 echo "${ECHO_T}$ac_ct_AR" >&6
3950 else
3951 echo "$as_me:$LINENO: result: no" >&5
3952 echo "${ECHO_T}no" >&6
3955 AR=$ac_ct_AR
3956 else
3957 AR="$ac_cv_prog_AR"
3960 if test -n "$ac_tool_prefix"; then
3961 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3962 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3963 echo "$as_me:$LINENO: checking for $ac_word" >&5
3964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3965 if test "${ac_cv_prog_RANLIB+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3967 else
3968 if test -n "$RANLIB"; then
3969 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3970 else
3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972 for as_dir in $PATH
3974 IFS=$as_save_IFS
3975 test -z "$as_dir" && as_dir=.
3976 for ac_exec_ext in '' $ac_executable_extensions; do
3977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3978 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3980 break 2
3982 done
3983 done
3987 RANLIB=$ac_cv_prog_RANLIB
3988 if test -n "$RANLIB"; then
3989 echo "$as_me:$LINENO: result: $RANLIB" >&5
3990 echo "${ECHO_T}$RANLIB" >&6
3991 else
3992 echo "$as_me:$LINENO: result: no" >&5
3993 echo "${ECHO_T}no" >&6
3997 if test -z "$ac_cv_prog_RANLIB"; then
3998 ac_ct_RANLIB=$RANLIB
3999 # Extract the first word of "ranlib", so it can be a program name with args.
4000 set dummy ranlib; ac_word=$2
4001 echo "$as_me:$LINENO: checking for $ac_word" >&5
4002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4003 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
4005 else
4006 if test -n "$ac_ct_RANLIB"; then
4007 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4008 else
4009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010 for as_dir in $PATH
4012 IFS=$as_save_IFS
4013 test -z "$as_dir" && as_dir=.
4014 for ac_exec_ext in '' $ac_executable_extensions; do
4015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4016 ac_cv_prog_ac_ct_RANLIB="ranlib"
4017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4018 break 2
4020 done
4021 done
4023 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4026 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4027 if test -n "$ac_ct_RANLIB"; then
4028 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4029 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4030 else
4031 echo "$as_me:$LINENO: result: no" >&5
4032 echo "${ECHO_T}no" >&6
4035 RANLIB=$ac_ct_RANLIB
4036 else
4037 RANLIB="$ac_cv_prog_RANLIB"
4040 for ac_prog in gawk mawk nawk awk
4042 # Extract the first word of "$ac_prog", so it can be a program name with args.
4043 set dummy $ac_prog; ac_word=$2
4044 echo "$as_me:$LINENO: checking for $ac_word" >&5
4045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4046 if test "${ac_cv_prog_AWK+set}" = set; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4048 else
4049 if test -n "$AWK"; then
4050 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4051 else
4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053 for as_dir in $PATH
4055 IFS=$as_save_IFS
4056 test -z "$as_dir" && as_dir=.
4057 for ac_exec_ext in '' $ac_executable_extensions; do
4058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4059 ac_cv_prog_AWK="$ac_prog"
4060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4061 break 2
4063 done
4064 done
4068 AWK=$ac_cv_prog_AWK
4069 if test -n "$AWK"; then
4070 echo "$as_me:$LINENO: result: $AWK" >&5
4071 echo "${ECHO_T}$AWK" >&6
4072 else
4073 echo "$as_me:$LINENO: result: no" >&5
4074 echo "${ECHO_T}no" >&6
4077 test -n "$AWK" && break
4078 done
4080 for ac_prog in jar fastjar gjar
4082 # Extract the first word of "$ac_prog", so it can be a program name with args.
4083 set dummy $ac_prog; ac_word=$2
4084 echo "$as_me:$LINENO: checking for $ac_word" >&5
4085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4086 if test "${ac_cv_prog_JAR+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4088 else
4089 if test -n "$JAR"; then
4090 ac_cv_prog_JAR="$JAR" # Let the user override the test.
4091 else
4092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4093 for as_dir in $PATH
4095 IFS=$as_save_IFS
4096 test -z "$as_dir" && as_dir=.
4097 for ac_exec_ext in '' $ac_executable_extensions; do
4098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4099 ac_cv_prog_JAR="$ac_prog"
4100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4101 break 2
4103 done
4104 done
4108 JAR=$ac_cv_prog_JAR
4109 if test -n "$JAR"; then
4110 echo "$as_me:$LINENO: result: $JAR" >&5
4111 echo "${ECHO_T}$JAR" >&6
4112 else
4113 echo "$as_me:$LINENO: result: no" >&5
4114 echo "${ECHO_T}no" >&6
4117 test -n "$JAR" && break
4118 done
4119 test -n "$JAR" || JAR="no"
4121 # Extract the first word of "zip", so it can be a program name with args.
4122 set dummy zip; ac_word=$2
4123 echo "$as_me:$LINENO: checking for $ac_word" >&5
4124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4125 if test "${ac_cv_path_ZIP+set}" = set; then
4126 echo $ECHO_N "(cached) $ECHO_C" >&6
4127 else
4128 case $ZIP in
4129 [\\/]* | ?:[\\/]*)
4130 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
4133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134 for as_dir in $PATH
4136 IFS=$as_save_IFS
4137 test -z "$as_dir" && as_dir=.
4138 for ac_exec_ext in '' $ac_executable_extensions; do
4139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4140 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
4141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4142 break 2
4144 done
4145 done
4147 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
4149 esac
4151 ZIP=$ac_cv_path_ZIP
4153 if test -n "$ZIP"; then
4154 echo "$as_me:$LINENO: result: $ZIP" >&5
4155 echo "${ECHO_T}$ZIP" >&6
4156 else
4157 echo "$as_me:$LINENO: result: no" >&5
4158 echo "${ECHO_T}no" >&6
4161 # Extract the first word of "unzip", so it can be a program name with args.
4162 set dummy unzip; ac_word=$2
4163 echo "$as_me:$LINENO: checking for $ac_word" >&5
4164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4165 if test "${ac_cv_path_UNZIP+set}" = set; then
4166 echo $ECHO_N "(cached) $ECHO_C" >&6
4167 else
4168 case $UNZIP in
4169 [\\/]* | ?:[\\/]*)
4170 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
4173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174 for as_dir in $PATH
4176 IFS=$as_save_IFS
4177 test -z "$as_dir" && as_dir=.
4178 for ac_exec_ext in '' $ac_executable_extensions; do
4179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4180 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
4181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4182 break 2
4184 done
4185 done
4187 test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
4189 esac
4191 UNZIP=$ac_cv_path_UNZIP
4193 if test -n "$UNZIP"; then
4194 echo "$as_me:$LINENO: result: $UNZIP" >&5
4195 echo "${ECHO_T}$UNZIP" >&6
4196 else
4197 echo "$as_me:$LINENO: result: no" >&5
4198 echo "${ECHO_T}no" >&6
4203 if test "$JAR" = no; then
4204 BASH_JAR_TRUE=
4205 BASH_JAR_FALSE='#'
4206 else
4207 BASH_JAR_TRUE='#'
4208 BASH_JAR_FALSE=
4211 if test "$ZIP" = no; then
4212 if test "$JAR" = no; then
4213 { { echo "$as_me:$LINENO: error: cannot find neither zip nor jar, cannot continue" >&5
4214 echo "$as_me: error: cannot find neither zip nor jar, cannot continue" >&2;}
4215 { (exit 1); exit 1; }; }
4217 else
4218 # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
4219 JAR=`pwd`/scripts/jar
4222 # Find a good install program. We prefer a C program (faster),
4223 # so one script is as good as another. But avoid the broken or
4224 # incompatible versions:
4225 # SysV /etc/install, /usr/sbin/install
4226 # SunOS /usr/etc/install
4227 # IRIX /sbin/install
4228 # AIX /bin/install
4229 # AmigaOS /C/install, which installs bootblocks on floppy discs
4230 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4231 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4232 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4233 # OS/2's system install, which has a completely different semantic
4234 # ./install, which can be erroneously created by make from ./install.sh.
4235 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4236 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4237 if test -z "$INSTALL"; then
4238 if test "${ac_cv_path_install+set}" = set; then
4239 echo $ECHO_N "(cached) $ECHO_C" >&6
4240 else
4241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242 for as_dir in $PATH
4244 IFS=$as_save_IFS
4245 test -z "$as_dir" && as_dir=.
4246 # Account for people who put trailing slashes in PATH elements.
4247 case $as_dir/ in
4248 ./ | .// | /cC/* | \
4249 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4250 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4251 /usr/ucb/* ) ;;
4253 # OSF1 and SCO ODT 3.0 have their own names for install.
4254 # Don't use installbsd from OSF since it installs stuff as root
4255 # by default.
4256 for ac_prog in ginstall scoinst install; do
4257 for ac_exec_ext in '' $ac_executable_extensions; do
4258 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4259 if test $ac_prog = install &&
4260 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4261 # AIX install. It has an incompatible calling convention.
4263 elif test $ac_prog = install &&
4264 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4265 # program-specific install script used by HP pwplus--don't use.
4267 else
4268 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4269 break 3
4272 done
4273 done
4275 esac
4276 done
4280 if test "${ac_cv_path_install+set}" = set; then
4281 INSTALL=$ac_cv_path_install
4282 else
4283 # As a last resort, use the slow shell script. We don't cache a
4284 # path for INSTALL within a source directory, because that will
4285 # break other packages using the cache if that directory is
4286 # removed, or if the path is relative.
4287 INSTALL=$ac_install_sh
4290 echo "$as_me:$LINENO: result: $INSTALL" >&5
4291 echo "${ECHO_T}$INSTALL" >&6
4293 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4294 # It thinks the first close brace ends the variable substitution.
4295 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4297 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4299 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4302 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4303 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4304 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4305 if test "${enable_maintainer_mode+set}" = set; then
4306 enableval="$enable_maintainer_mode"
4307 USE_MAINTAINER_MODE=$enableval
4308 else
4309 USE_MAINTAINER_MODE=no
4311 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4312 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4315 if test $USE_MAINTAINER_MODE = yes; then
4316 MAINTAINER_MODE_TRUE=
4317 MAINTAINER_MODE_FALSE='#'
4318 else
4319 MAINTAINER_MODE_TRUE='#'
4320 MAINTAINER_MODE_FALSE=
4323 MAINT=$MAINTAINER_MODE_TRUE
4329 # configure.host sets the following important variables
4330 # libgcj_cflags - host specific C compiler flags
4331 # libgcj_cxxflags - host specific C++ compiler flags
4332 # libgcj_javaflags - host specific Java compiler flags
4334 libgcj_cflags=
4335 libgcj_cxxflags=
4336 libgcj_javaflags=
4338 . ${srcdir}/configure.host
4340 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4341 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4342 if test "${acl_cv_prog_gnu_ld+set}" = set; then
4343 echo $ECHO_N "(cached) $ECHO_C" >&6
4344 else
4345 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4346 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4347 acl_cv_prog_gnu_ld=yes
4348 else
4349 acl_cv_prog_gnu_ld=no
4352 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
4353 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
4354 with_gnu_ld=$acl_cv_prog_gnu_ld
4356 echo "$as_me:$LINENO: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
4357 echo $ECHO_N "checking if the GNU linker ($LD) supports -Bsymbolic-functions... $ECHO_C" >&6
4358 if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then
4359 echo $ECHO_N "(cached) $ECHO_C" >&6
4360 else
4362 acl_cv_prog_gnu_ld_symbolic=no
4364 if test x"$with_gnu_ld" = x"yes"; then
4365 if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then
4366 acl_cv_prog_gnu_ld_symbolic=yes
4370 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld_symbolic" >&5
4371 echo "${ECHO_T}$acl_cv_prog_gnu_ld_symbolic" >&6
4372 if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
4373 SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
4374 else
4375 SYMBOLIC_LDFLAGS=''
4378 libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS
4379 if test -z "$libgcj_ld_symbolic"; then
4380 libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS
4383 LIBGCJ_CFLAGS="${libgcj_cflags}"
4384 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4385 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4386 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4387 LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}"
4394 # Only use libltdl for non-newlib builds.
4395 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4396 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
4397 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4398 library_names_spec=
4399 libname_spec='lib$name'
4400 soname_spec=
4401 shrext=".so"
4402 postinstall_cmds=
4403 postuninstall_cmds=
4404 finish_cmds=
4405 finish_eval=
4406 shlibpath_var=
4407 shlibpath_overrides_runpath=unknown
4408 version_type=none
4409 dynamic_linker="$host_os ld.so"
4410 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4411 if test "$GCC" = yes; then
4412 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4413 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
4414 # if the path contains ";" then we assume it to be the separator
4415 # otherwise default to the standard path separator (i.e. ":") - it is
4416 # assumed that no part of a normal pathname contains ";" but that should
4417 # okay in the real world where ";" in dirpaths is itself problematic.
4418 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4419 else
4420 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4422 else
4423 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4425 need_lib_prefix=unknown
4426 hardcode_into_libs=no
4428 # when you set need_version to no, make sure it does not cause -set_version
4429 # flags to be left without arguments
4430 need_version=unknown
4432 case $host_os in
4433 aix3*)
4434 version_type=linux
4435 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4436 shlibpath_var=LIBPATH
4438 # AIX 3 has no versioning support, so we append a major version to the name.
4439 soname_spec='${libname}${release}${shared_ext}$major'
4442 aix4* | aix5*)
4443 version_type=linux
4444 need_lib_prefix=no
4445 need_version=no
4446 hardcode_into_libs=yes
4447 if test "$host_cpu" = ia64; then
4448 # AIX 5 supports IA64
4449 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4450 shlibpath_var=LD_LIBRARY_PATH
4451 else
4452 # With GCC up to 2.95.x, collect2 would create an import file
4453 # for dependence libraries. The import file would start with
4454 # the line `#! .'. This would cause the generated library to
4455 # depend on `.', always an invalid library. This was fixed in
4456 # development snapshots of GCC prior to 3.0.
4457 case $host_os in
4458 aix4 | aix4.[01] | aix4.[01].*)
4459 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4460 echo ' yes '
4461 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4463 else
4464 can_build_shared=no
4467 esac
4468 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4469 # soname into executable. Probably we can add versioning support to
4470 # collect2, so additional links can be useful in future.
4471 if test "$aix_use_runtimelinking" = yes; then
4472 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4473 # instead of lib<name>.a to let people know that these are not
4474 # typical AIX shared libraries.
4475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4476 else
4477 # We preserve .a as extension for shared libraries through AIX4.2
4478 # and later when we are not doing run time linking.
4479 library_names_spec='${libname}${release}.a $libname.a'
4480 soname_spec='${libname}${release}${shared_ext}$major'
4482 shlibpath_var=LIBPATH
4486 amigaos*)
4487 library_names_spec='$libname.ixlibrary $libname.a'
4488 # Create ${libname}_ixlibrary.a entries in /sys/libs.
4489 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
4492 beos*)
4493 library_names_spec='${libname}${shared_ext}'
4494 dynamic_linker="$host_os ld.so"
4495 shlibpath_var=LIBRARY_PATH
4498 bsdi4*)
4499 version_type=linux
4500 need_version=no
4501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4502 soname_spec='${libname}${release}${shared_ext}$major'
4503 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4504 shlibpath_var=LD_LIBRARY_PATH
4505 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4506 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4507 # the default ld.so.conf also contains /usr/contrib/lib and
4508 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4509 # libtool to hard-code these into programs
4512 cygwin* | mingw* | pw32*)
4513 version_type=windows
4514 shrext=".dll"
4515 need_version=no
4516 need_lib_prefix=no
4518 case $GCC,$host_os in
4519 yes,cygwin* | yes,mingw* | yes,pw32*)
4520 library_names_spec='$libname.dll.a'
4521 # DLL is installed to $(libdir)/../bin by postinstall_cmds
4522 postinstall_cmds='base_file=`basename \${file}`~
4523 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
4524 dldir=$destdir/`dirname \$dlpath`~
4525 test -d \$dldir || mkdir -p \$dldir~
4526 $install_prog $dir/$dlname \$dldir/$dlname'
4527 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4528 dlpath=$dir/\$dldll~
4529 $rm \$dlpath'
4530 shlibpath_overrides_runpath=yes
4532 case $host_os in
4533 cygwin*)
4534 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4535 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4536 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
4538 mingw*)
4539 # MinGW DLLs use traditional 'lib' prefix
4540 soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4541 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4542 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
4543 # It is most probably a Windows format PATH printed by
4544 # mingw gcc, but we are running on Cygwin. Gcc prints its search
4545 # path with ; separators, and with drive letters. We can handle the
4546 # drive letters (cygwin fileutils understands them), so leave them,
4547 # especially as we might pass files found there to a mingw objdump,
4548 # which wouldn't understand a cygwinified path. Ahh.
4549 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4550 else
4551 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4554 pw32*)
4555 # pw32 DLLs use 'pw' prefix rather than 'lib'
4556 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
4558 esac
4562 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
4564 esac
4565 dynamic_linker='Win32 ld.exe'
4566 # FIXME: first we should search . and the directory the executable is in
4567 shlibpath_var=PATH
4570 darwin* | rhapsody*)
4571 dynamic_linker="$host_os dyld"
4572 version_type=darwin
4573 need_lib_prefix=no
4574 need_version=no
4575 # FIXME: Relying on posixy $() will cause problems for
4576 # cross-compilation, but unfortunately the echo tests do not
4577 # yet detect zsh echo's removal of \ escapes.
4578 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4579 soname_spec='${libname}${release}${major}$shared_ext'
4580 shlibpath_overrides_runpath=yes
4581 shlibpath_var=DYLD_LIBRARY_PATH
4582 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
4583 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
4584 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
4585 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
4587 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4590 dgux*)
4591 version_type=linux
4592 need_lib_prefix=no
4593 need_version=no
4594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4595 soname_spec='${libname}${release}${shared_ext}$major'
4596 shlibpath_var=LD_LIBRARY_PATH
4599 freebsd1*)
4600 dynamic_linker=no
4603 freebsd*)
4604 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4605 version_type=freebsd-$objformat
4606 case $version_type in
4607 freebsd-elf*)
4608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4609 need_version=no
4610 need_lib_prefix=no
4612 freebsd-*)
4613 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4614 need_version=yes
4616 esac
4617 shlibpath_var=LD_LIBRARY_PATH
4618 case $host_os in
4619 freebsd2*)
4620 shlibpath_overrides_runpath=yes
4622 freebsd3.01* | freebsdelf3.01*)
4623 shlibpath_overrides_runpath=yes
4624 hardcode_into_libs=yes
4626 *) # from 3.2 on
4627 shlibpath_overrides_runpath=no
4628 hardcode_into_libs=yes
4630 esac
4633 gnu*)
4634 version_type=linux
4635 need_lib_prefix=no
4636 need_version=no
4637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4638 soname_spec='${libname}${release}${shared_ext}$major'
4639 shlibpath_var=LD_LIBRARY_PATH
4640 hardcode_into_libs=yes
4643 hpux9* | hpux10* | hpux11*)
4644 # Give a soname corresponding to the major version so that dld.sl refuses to
4645 # link against other versions.
4646 version_type=sunos
4647 need_lib_prefix=no
4648 need_version=no
4649 case "$host_cpu" in
4650 ia64*)
4651 shrext='.so'
4652 hardcode_into_libs=yes
4653 dynamic_linker="$host_os dld.so"
4654 shlibpath_var=LD_LIBRARY_PATH
4655 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4657 soname_spec='${libname}${release}${shared_ext}$major'
4658 if test "X$HPUX_IA64_MODE" = X32; then
4659 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4660 else
4661 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4663 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4665 hppa*64*)
4666 shrext='.sl'
4667 hardcode_into_libs=yes
4668 dynamic_linker="$host_os dld.sl"
4669 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4670 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4672 soname_spec='${libname}${release}${shared_ext}$major'
4673 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
4674 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4677 shrext='.sl'
4678 dynamic_linker="$host_os dld.sl"
4679 shlibpath_var=SHLIB_PATH
4680 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4682 soname_spec='${libname}${release}${shared_ext}$major'
4684 esac
4685 # HP-UX runs *really* slowly unless shared libraries are mode 555.
4686 postinstall_cmds='chmod 555 $lib'
4689 irix5* | irix6* | nonstopux*)
4690 case $host_os in
4691 nonstopux*) version_type=nonstopux ;;
4693 if test "$lt_cv_prog_gnu_ld" = yes; then
4694 version_type=linux
4695 else
4696 version_type=irix
4697 fi ;;
4698 esac
4699 need_lib_prefix=no
4700 need_version=no
4701 soname_spec='${libname}${release}${shared_ext}$major'
4702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4703 case $host_os in
4704 irix5* | nonstopux*)
4705 libsuff= shlibsuff=
4708 case $LD in # libtool.m4 will add one of these switches to LD
4709 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
4710 libsuff= shlibsuff= libmagic=32-bit;;
4711 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
4712 libsuff=32 shlibsuff=N32 libmagic=N32;;
4713 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
4714 libsuff=64 shlibsuff=64 libmagic=64-bit;;
4715 *) libsuff= shlibsuff= libmagic=never-match;;
4716 esac
4718 esac
4719 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4720 shlibpath_overrides_runpath=no
4721 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4722 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4723 hardcode_into_libs=yes
4726 # No shared lib support for Linux oldld, aout, or coff.
4727 linux*oldld* | linux*aout* | linux*coff*)
4728 dynamic_linker=no
4731 # This must be Linux ELF.
4732 linux*|k*bsd*-gnu)
4733 version_type=linux
4734 need_lib_prefix=no
4735 need_version=no
4736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4737 soname_spec='${libname}${release}${shared_ext}$major'
4738 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4739 shlibpath_var=LD_LIBRARY_PATH
4740 shlibpath_overrides_runpath=no
4741 # This implies no fast_install, which is unacceptable.
4742 # Some rework will be needed to allow for fast_install
4743 # before this can be enabled.
4744 hardcode_into_libs=yes
4746 # We used to test for /lib/ld.so.1 and disable shared libraries on
4747 # powerpc, because MkLinux only supported shared libraries with the
4748 # GNU dynamic linker. Since this was broken with cross compilers,
4749 # most powerpc-linux boxes support dynamic linking these days and
4750 # people can always --disable-shared, the test was removed, and we
4751 # assume the GNU/Linux dynamic linker is in use.
4752 dynamic_linker='GNU/Linux ld.so'
4755 netbsd*)
4756 version_type=sunos
4757 need_lib_prefix=no
4758 need_version=no
4759 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4761 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4762 dynamic_linker='NetBSD (a.out) ld.so'
4763 else
4764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
4765 soname_spec='${libname}${release}${shared_ext}$major'
4766 dynamic_linker='NetBSD ld.elf_so'
4768 shlibpath_var=LD_LIBRARY_PATH
4769 shlibpath_overrides_runpath=yes
4770 hardcode_into_libs=yes
4773 newsos6)
4774 version_type=linux
4775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4776 shlibpath_var=LD_LIBRARY_PATH
4777 shlibpath_overrides_runpath=yes
4780 nto-qnx)
4781 version_type=linux
4782 need_lib_prefix=no
4783 need_version=no
4784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4785 soname_spec='${libname}${release}${shared_ext}$major'
4786 shlibpath_var=LD_LIBRARY_PATH
4787 shlibpath_overrides_runpath=yes
4790 openbsd*)
4791 version_type=sunos
4792 need_lib_prefix=no
4793 need_version=no
4794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4795 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4796 shlibpath_var=LD_LIBRARY_PATH
4797 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4798 case $host_os in
4799 openbsd2.[89] | openbsd2.[89].*)
4800 shlibpath_overrides_runpath=no
4803 shlibpath_overrides_runpath=yes
4805 esac
4806 else
4807 shlibpath_overrides_runpath=yes
4811 os2*)
4812 libname_spec='$name'
4813 shrext=".dll"
4814 need_lib_prefix=no
4815 library_names_spec='$libname${shared_ext} $libname.a'
4816 dynamic_linker='OS/2 ld.exe'
4817 shlibpath_var=LIBPATH
4820 osf3* | osf4* | osf5*)
4821 version_type=osf
4822 need_lib_prefix=no
4823 need_version=no
4824 soname_spec='${libname}${release}${shared_ext}$major'
4825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4826 shlibpath_var=LD_LIBRARY_PATH
4827 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4828 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4831 sco3.2v5*)
4832 version_type=osf
4833 soname_spec='${libname}${release}${shared_ext}$major'
4834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4835 shlibpath_var=LD_LIBRARY_PATH
4838 solaris*)
4839 version_type=linux
4840 need_lib_prefix=no
4841 need_version=no
4842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4843 soname_spec='${libname}${release}${shared_ext}$major'
4844 shlibpath_var=LD_LIBRARY_PATH
4845 shlibpath_overrides_runpath=yes
4846 hardcode_into_libs=yes
4847 # ldd complains unless libraries are executable
4848 postinstall_cmds='chmod +x $lib'
4851 sunos4*)
4852 version_type=sunos
4853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4854 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4855 shlibpath_var=LD_LIBRARY_PATH
4856 shlibpath_overrides_runpath=yes
4857 if test "$with_gnu_ld" = yes; then
4858 need_lib_prefix=no
4860 need_version=yes
4863 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4864 version_type=linux
4865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4866 soname_spec='${libname}${release}${shared_ext}$major'
4867 shlibpath_var=LD_LIBRARY_PATH
4868 case $host_vendor in
4869 sni)
4870 shlibpath_overrides_runpath=no
4871 need_lib_prefix=no
4872 export_dynamic_flag_spec='${wl}-Blargedynsym'
4873 runpath_var=LD_RUN_PATH
4875 siemens)
4876 need_lib_prefix=no
4878 motorola)
4879 need_lib_prefix=no
4880 need_version=no
4881 shlibpath_overrides_runpath=no
4882 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4884 esac
4887 sysv4*MP*)
4888 if test -d /usr/nec ;then
4889 version_type=linux
4890 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
4891 soname_spec='$libname${shared_ext}.$major'
4892 shlibpath_var=LD_LIBRARY_PATH
4896 uts4*)
4897 version_type=linux
4898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4899 soname_spec='${libname}${release}${shared_ext}$major'
4900 shlibpath_var=LD_LIBRARY_PATH
4904 dynamic_linker=no
4906 esac
4907 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
4908 echo "${ECHO_T}$dynamic_linker" >&6
4909 test "$dynamic_linker" = no && can_build_shared=no
4912 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
4913 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
4914 if test "${libltdl_cv_shlibpath_var+set}" = set; then
4915 echo $ECHO_N "(cached) $ECHO_C" >&6
4916 else
4917 libltdl_cv_shlibpath_var="$shlibpath_var"
4919 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
4920 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
4921 if test -n "$libltdl_cv_shlibpath_var"; then
4923 cat >>confdefs.h <<_ACEOF
4924 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
4925 _ACEOF
4931 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
4934 # See if the user has requested runtime debugging.
4935 LIBGCJDEBUG="disable"
4937 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
4938 if test "${enable_libgcj_debug+set}" = set; then
4939 enableval="$enable_libgcj_debug"
4940 if test "$enable_libgcj_debug" = yes; then
4942 cat >>confdefs.h <<\_ACEOF
4943 #define DEBUG 1
4944 _ACEOF
4946 LIBGCJDEBUG="enable"
4951 # Check whether --with-escher or --without-escher was given.
4952 if test "${with_escher+set}" = set; then
4953 withval="$with_escher"
4956 case "$with_escher" in
4958 use_escher=false
4960 "no")
4961 use_escher=false
4963 "yes")
4964 { { echo "$as_me:$LINENO: error: Please supply an absolute path to Escher library" >&5
4965 echo "$as_me: error: Please supply an absolute path to Escher library" >&2;}
4966 { (exit 1); exit 1; }; }
4969 use_escher=true
4971 esac
4973 # Determine which AWT peer libraries to build
4974 # Check whether --enable-java-awt or --disable-java-awt was given.
4975 if test "${enable_java_awt+set}" = set; then
4976 enableval="$enable_java_awt"
4980 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
4981 use_xlib_awt=""
4982 use_gtk_awt=""
4983 use_qt_awt=""
4984 use_x_awt=""
4985 # The default toolkit to use is the first one specified.
4986 TOOLKIT=
4989 for peer in $peerlibs ; do
4990 case $peer in
4991 xlib)
4992 if test "$no_x" = yes; then
4993 echo "*** xlib peers requested but no X library available" 1>&2
4994 exit 1
4995 else
4996 use_xlib_awt="yes"
4997 if test -z "$TOOLKIT"; then
4998 TOOLKIT=gnu.awt.xlib.XToolkit
5002 gtk)
5003 if test "$no_x" = yes; then
5004 echo "*** gtk peers requested but no X library available" 1>&2
5005 exit 1
5006 else
5007 use_gtk_awt=yes
5008 if test -z "$TOOLKIT"; then
5009 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
5014 if test "$no_x" = yes; then
5015 # Perhaps we should admit the possibility of embedded Qt.
5016 echo "*** Qt peers requested but no X library available" 1>&2
5017 exit 1
5018 else
5019 use_qt_awt=yes
5020 if test -z "$TOOLKIT"; then
5021 TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
5026 use_x_awt=yes
5027 if test -z "$TOOLKIT"; then
5028 TOOLKIT=gnu.java.awt.peer.x.XToolkit
5032 use_xlib_awt=
5033 use_gtk_awt=
5034 use_qt_awt=
5035 use_x_awt=
5036 break
5039 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
5040 exit 1
5041 esac
5042 done
5046 if test "$use_xlib_awt" = yes; then
5047 XLIB_AWT_TRUE=
5048 XLIB_AWT_FALSE='#'
5049 else
5050 XLIB_AWT_TRUE='#'
5051 XLIB_AWT_FALSE=
5056 if test "$use_x_awt" = yes; then
5057 X_AWT_TRUE=
5058 X_AWT_FALSE='#'
5059 else
5060 X_AWT_TRUE='#'
5061 X_AWT_FALSE=
5066 cat >>confdefs.h <<_ACEOF
5067 #define AWT_TOOLKIT "$TOOLKIT"
5068 _ACEOF
5072 cat >>confdefs.h <<_ACEOF
5073 #define LIBGCJ_PREFIX "$prefix"
5074 _ACEOF
5077 # Create standard.omit based on decisions we just made.
5078 cp $srcdir/standard.omit.in standard.omit
5079 if test "$use_xlib_awt" != yes; then
5080 echo gnu/awt/xlib >> standard.omit
5081 echo gnu/gcj/xlib >> standard.omit
5083 if test "$use_x_awt" != yes; then
5084 echo gnu/java/awt/peer/x >> standard.omit
5087 if test -z "${with_multisubdir}"; then
5088 builddotdot=.
5089 else
5090 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
5093 NATIVE=yes
5095 # Which gcj and host gcj (for ecjx) do we use?
5096 which_gcj=default
5097 host_exeext=${ac_exeext}
5098 GCJ_FOR_ECJX=
5099 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
5100 if test -n "${with_cross_host}"; then
5101 # We are being configured with a cross compiler. We can't
5102 # use ac_exeext, because that is for the target platform.
5103 NATIVE=no
5104 cross_host_exeext=
5105 GCJ_FOR_ECJX="${with_cross_host}-gcj"
5106 case "${with_cross_host}" in
5107 *mingw* | *cygwin*)
5108 cross_host_exeext=.exe
5110 esac
5111 host_exeext=${cross_host_exeext}
5112 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
5113 if test x"$build_noncanonical" = x"$with_cross_host"; then
5114 # Ordinary cross (host!=target and host=build)
5115 which_gcj=built
5116 else
5117 # Canadian cross (host!=target and host!=build)
5118 which_gcj=cross
5120 else
5121 which_gcj=cross
5123 else
5124 # We are being configured with a native or crossed-native compiler
5125 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
5126 if test x"$build" = x"$host"; then
5127 # True native build (host=target and host=build)
5128 which_gcj=built
5129 else
5130 # Crossed-native build (host=target and host!=build)
5131 which_gcj=cross
5133 else
5134 which_gcj=path
5137 case "${which_gcj}" in
5138 built)
5139 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
5140 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
5142 cross)
5143 if test "x${with_newlib}" = "xyes"; then
5144 # FIXME (comment): Why is this needed?
5145 GCC_UNWIND_INCLUDE=
5146 GCJ="${target_noncanonical}-gcj"
5147 else
5148 GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
5150 GCJH="$built_gcc_dir/gcjh"
5152 path)
5153 GCJ="gcj -B`${PWDCMD-pwd}`/"
5154 GCJH=gcjh
5156 esac
5162 # Create it, so that compile/link tests don't fail
5163 test -f libgcj.spec || touch libgcj.spec
5167 # Set up to configure Classpath.
5168 # FIXME: no supported way to pass args in autoconf.
5169 ac_configure_args="$ac_configure_args --with-fastjar=$JAR"
5170 # Disable tool wrappers to avoid ltdl.h configure check.
5171 ac_configure_args="$ac_configure_args --disable-tool-wrappers"
5172 ac_configure_args="$ac_configure_args --disable-load-library"
5173 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
5174 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
5175 dir1=`cd $srcdir && pwd`
5176 dir2=`pwd`
5177 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
5178 ac_configure_args="$ac_configure_args --disable-core-jni"
5179 ac_configure_args="$ac_configure_args --disable-examples"
5180 ac_configure_args="$ac_configure_args --with-glibj=build"
5181 if test "$plugin_enabled" != yes; then
5182 ac_configure_args="$ac_configure_args --disable-plugin"
5184 if test "$gconf_enabled" != yes; then
5185 ac_configure_args="$ac_configure_args --disable-gconf-peer"
5186 ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
5188 if test "$use_gtk_awt" != yes; then
5189 ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
5191 if test "$use_qt_awt" != yes; then
5192 ac_configure_args="$ac_configure_args --disable-qt-peer"
5193 else
5194 # We need this as qt is disabled by default in classpath.
5195 ac_configure_args="$ac_configure_args --enable-qt-peer"
5197 if test "$use_x_awt" != yes; then
5198 ac_configure_args="$ac_configure_args --without-escher"
5199 else
5200 # We need this as escher is disabled by default in classpath.
5201 if test "$use_escher" != true; then
5202 { { echo "$as_me:$LINENO: error: Please supply an absolute path to the Escher library" >&5
5203 echo "$as_me: error: Please supply an absolute path to the Escher library" >&2;}
5204 { (exit 1); exit 1; }; }
5205 else
5206 ac_configure_args="$ac_configure_args --with-escher=$with_escher"
5209 # -Werror causes unavoidable problems in code using alsa.
5210 ac_configure_args="$ac_configure_args --disable-Werror"
5212 # Only use libltdl for non-newlib builds.
5213 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5214 case $enable_ltdl_convenience in
5215 no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
5216 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
5217 { (exit 1); exit 1; }; } ;;
5218 "") enable_ltdl_convenience=yes
5219 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
5220 esac
5221 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
5222 INCLTDL='-I${top_srcdir}/''libltdl'
5225 DIRLTDL=libltdl
5227 cat >>confdefs.h <<\_ACEOF
5228 #define USE_LTDL 1
5229 _ACEOF
5231 # Sigh. Libtool's macro doesn't do the right thing.
5232 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
5233 # FIXME: this is a hack.
5234 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
5235 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
5240 # Check whether --enable-shared or --disable-shared was given.
5241 if test "${enable_shared+set}" = set; then
5242 enableval="$enable_shared"
5243 p=${PACKAGE-default}
5244 case $enableval in
5245 yes) enable_shared=yes ;;
5246 no) enable_shared=no ;;
5248 enable_shared=no
5249 # Look at the argument we got. We use all the common list separators.
5250 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5251 for pkg in $enableval; do
5252 if test "X$pkg" = "X$p"; then
5253 enable_shared=yes
5255 done
5256 IFS="$ac_save_ifs"
5258 esac
5259 else
5260 enable_shared=yes
5262 # Check whether --enable-static or --disable-static was given.
5263 if test "${enable_static+set}" = set; then
5264 enableval="$enable_static"
5265 p=${PACKAGE-default}
5266 case $enableval in
5267 yes) enable_static=yes ;;
5268 no) enable_static=no ;;
5270 enable_static=no
5271 # Look at the argument we got. We use all the common list separators.
5272 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5273 for pkg in $enableval; do
5274 if test "X$pkg" = "X$p"; then
5275 enable_static=yes
5277 done
5278 IFS="$ac_save_ifs"
5280 esac
5281 else
5282 enable_static=yes
5284 # Check whether --enable-fast-install or --disable-fast-install was given.
5285 if test "${enable_fast_install+set}" = set; then
5286 enableval="$enable_fast_install"
5287 p=${PACKAGE-default}
5288 case $enableval in
5289 yes) enable_fast_install=yes ;;
5290 no) enable_fast_install=no ;;
5292 enable_fast_install=no
5293 # Look at the argument we got. We use all the common list separators.
5294 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5295 for pkg in $enableval; do
5296 if test "X$pkg" = "X$p"; then
5297 enable_fast_install=yes
5299 done
5300 IFS="$ac_save_ifs"
5302 esac
5303 else
5304 enable_fast_install=yes
5307 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5308 if test "${with_gnu_ld+set}" = set; then
5309 withval="$with_gnu_ld"
5310 test "$withval" = no || with_gnu_ld=yes
5311 else
5312 with_gnu_ld=no
5314 ac_prog=ld
5315 if test "$GCC" = yes; then
5316 # Check if gcc -print-prog-name=ld gives a path.
5317 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5318 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5319 case $host in
5320 *-*-mingw*)
5321 # gcc leaves a trailing carriage return which upsets mingw
5322 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5324 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5325 esac
5326 case $ac_prog in
5327 # Accept absolute paths.
5328 [\\/]* | [A-Za-z]:[\\/]*)
5329 re_direlt='/[^/][^/]*/\.\./'
5330 # Canonicalize the path of ld
5331 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5332 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5333 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5334 done
5335 test -z "$LD" && LD="$ac_prog"
5338 # If it fails, then pretend we aren't using GCC.
5339 ac_prog=ld
5342 # If it is relative, then search for the first ld in PATH.
5343 with_gnu_ld=unknown
5345 esac
5346 elif test "$with_gnu_ld" = yes; then
5347 echo "$as_me:$LINENO: checking for GNU ld" >&5
5348 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5349 else
5350 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5351 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5353 if test "${lt_cv_path_LD+set}" = set; then
5354 echo $ECHO_N "(cached) $ECHO_C" >&6
5355 else
5356 if test -z "$LD"; then
5357 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5358 for ac_dir in $PATH; do
5359 test -z "$ac_dir" && ac_dir=.
5360 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5361 lt_cv_path_LD="$ac_dir/$ac_prog"
5362 # Check to see if the program is GNU ld. I'd rather use --version,
5363 # but apparently some GNU ld's only accept -v.
5364 # Break only if it was the GNU/non-GNU ld that we prefer.
5365 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5366 test "$with_gnu_ld" != no && break
5367 else
5368 test "$with_gnu_ld" != yes && break
5371 done
5372 IFS="$ac_save_ifs"
5373 else
5374 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5378 LD="$lt_cv_path_LD"
5379 if test -n "$LD"; then
5380 echo "$as_me:$LINENO: result: $LD" >&5
5381 echo "${ECHO_T}$LD" >&6
5382 else
5383 echo "$as_me:$LINENO: result: no" >&5
5384 echo "${ECHO_T}no" >&6
5386 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5387 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5388 { (exit 1); exit 1; }; }
5389 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5390 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5391 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5392 echo $ECHO_N "(cached) $ECHO_C" >&6
5393 else
5394 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5395 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5396 lt_cv_prog_gnu_ld=yes
5397 else
5398 lt_cv_prog_gnu_ld=no
5401 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5402 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5403 with_gnu_ld=$lt_cv_prog_gnu_ld
5406 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5407 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5408 if test "${lt_cv_ld_reload_flag+set}" = set; then
5409 echo $ECHO_N "(cached) $ECHO_C" >&6
5410 else
5411 lt_cv_ld_reload_flag='-r'
5413 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5414 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5415 reload_flag=$lt_cv_ld_reload_flag
5416 test -n "$reload_flag" && reload_flag=" $reload_flag"
5418 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5419 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5420 if test "${lt_cv_path_NM+set}" = set; then
5421 echo $ECHO_N "(cached) $ECHO_C" >&6
5422 else
5423 if test -n "$NM"; then
5424 # Let the user override the test.
5425 lt_cv_path_NM="$NM"
5426 else
5427 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5428 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5429 test -z "$ac_dir" && ac_dir=.
5430 tmp_nm=$ac_dir/${ac_tool_prefix}nm
5431 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
5432 # Check to see if the nm accepts a BSD-compat flag.
5433 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5434 # nm: unknown option "B" ignored
5435 # Tru64's nm complains that /dev/null is an invalid object file
5436 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
5437 lt_cv_path_NM="$tmp_nm -B"
5438 break
5439 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
5440 lt_cv_path_NM="$tmp_nm -p"
5441 break
5442 else
5443 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5444 continue # so that we can try to find one that supports BSD flags
5447 done
5448 IFS="$ac_save_ifs"
5449 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5453 NM="$lt_cv_path_NM"
5454 echo "$as_me:$LINENO: result: $NM" >&5
5455 echo "${ECHO_T}$NM" >&6
5457 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
5458 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
5459 if test "${lt_cv_deplibs_check_method+set}" = set; then
5460 echo $ECHO_N "(cached) $ECHO_C" >&6
5461 else
5462 lt_cv_file_magic_cmd='$MAGIC_CMD'
5463 lt_cv_file_magic_test_file=
5464 lt_cv_deplibs_check_method='unknown'
5465 # Need to set the preceding variable on all platforms that support
5466 # interlibrary dependencies.
5467 # 'none' -- dependencies not supported.
5468 # `unknown' -- same as none, but documents that we really don't know.
5469 # 'pass_all' -- all dependencies passed with no checks.
5470 # 'test_compile' -- check by making test program.
5471 # 'file_magic [regex]' -- check by looking for files in library path
5472 # which responds to the $file_magic_cmd with a given egrep regex.
5473 # If you have `file' or equivalent on your system and you're not sure
5474 # whether `pass_all' will *always* work, you probably want this one.
5476 case $host_os in
5477 aix*)
5478 lt_cv_deplibs_check_method=pass_all
5481 beos*)
5482 lt_cv_deplibs_check_method=pass_all
5485 bsdi4*)
5486 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5487 lt_cv_file_magic_cmd='/usr/bin/file -L'
5488 lt_cv_file_magic_test_file=/shlib/libc.so
5491 cygwin* | mingw* |pw32*)
5492 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5493 lt_cv_file_magic_cmd='$OBJDUMP -f'
5496 darwin* | rhapsody*)
5497 # this will be overwritten by pass_all, but leave it in just in case
5498 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5499 lt_cv_file_magic_cmd='/usr/bin/file -L'
5500 case "$host_os" in
5501 rhapsody* | darwin1.012)
5502 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
5504 *) # Darwin 1.3 on
5505 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5507 esac
5508 lt_cv_deplibs_check_method=pass_all
5511 freebsd* | kfreebsd*-gnu)
5512 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5513 case $host_cpu in
5514 i*86 )
5515 # Not sure whether the presence of OpenBSD here was a mistake.
5516 # Let's accept both of them until this is cleared up.
5517 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5518 lt_cv_file_magic_cmd=/usr/bin/file
5519 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5521 esac
5522 else
5523 lt_cv_deplibs_check_method=pass_all
5527 gnu*)
5528 lt_cv_deplibs_check_method=pass_all
5531 hpux10.20*|hpux11*)
5532 case $host_cpu in
5533 hppa*)
5534 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5535 lt_cv_file_magic_cmd=/usr/bin/file
5536 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5538 ia64*)
5539 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5540 lt_cv_file_magic_cmd=/usr/bin/file
5541 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5543 esac
5546 irix5* | irix6*)
5547 case $host_os in
5548 irix5*)
5549 # this will be overridden with pass_all, but let us keep it just in case
5550 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5553 case $LD in
5554 *-32|*"-32 ") libmagic=32-bit;;
5555 *-n32|*"-n32 ") libmagic=N32;;
5556 *-64|*"-64 ") libmagic=64-bit;;
5557 *) libmagic=never-match;;
5558 esac
5559 # this will be overridden with pass_all, but let us keep it just in case
5560 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5562 esac
5563 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5564 lt_cv_deplibs_check_method=pass_all
5567 # This must be Linux ELF.
5568 linux-gnu*)
5569 lt_cv_deplibs_check_method=pass_all
5572 netbsd* | knetbsd*-gnu)
5573 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5574 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
5575 else
5576 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
5580 newsos6)
5581 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5582 lt_cv_file_magic_cmd=/usr/bin/file
5583 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5586 osf3* | osf4* | osf5*)
5587 # this will be overridden with pass_all, but let us keep it just in case
5588 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5589 lt_cv_file_magic_test_file=/shlib/libc.so
5590 lt_cv_deplibs_check_method=pass_all
5593 sco3.2v5*)
5594 lt_cv_deplibs_check_method=pass_all
5597 solaris*)
5598 lt_cv_deplibs_check_method=pass_all
5599 lt_cv_file_magic_test_file=/lib/libc.so
5602 sysv5uw[78]* | sysv4*uw2*)
5603 lt_cv_deplibs_check_method=pass_all
5606 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5607 case $host_vendor in
5608 ncr)
5609 lt_cv_deplibs_check_method=pass_all
5611 motorola)
5612 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5613 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5615 esac
5617 esac
5620 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5621 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5622 file_magic_cmd=$lt_cv_file_magic_cmd
5623 deplibs_check_method=$lt_cv_deplibs_check_method
5628 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5630 # find the maximum length of command line arguments
5631 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5632 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5633 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5635 else
5637 teststring="ABCD"
5639 case $build_os in
5640 msdosdjgpp*)
5641 # On DJGPP, this test can blow up pretty badly due to problems in libc
5642 # (any single argument exceeding 2000 bytes causes a buffer overrun
5643 # during glob expansion). Even if it were fixed, the result of this
5644 # check would be larger than it should be.
5645 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5648 cygwin* | mingw*)
5649 # On Win9x/ME, this test blows up -- it succeeds, but takes
5650 # about 5 minutes as the teststring grows exponentially.
5651 # Worse, since 9x/ME are not pre-emptively multitasking,
5652 # you end up with a "frozen" computer, even though with patience
5653 # the test eventually succeeds (with a max line length of 256k).
5654 # Instead, let's just punt: use the minimum linelength reported by
5655 # all of the supported platforms: 8192 (on NT/2K/XP).
5656 lt_cv_sys_max_cmd_len=8192;
5659 amigaos*)
5660 # On AmigaOS with pdksh, this test takes hours, literally.
5661 # So we just punt and use a minimum line length of 8192.
5662 lt_cv_sys_max_cmd_len=8192;
5665 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5666 # This has been around since 386BSD, at least. Likely further.
5667 if test -x /sbin/sysctl; then
5668 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5669 elif test -x /usr/sbin/sysctl; then
5670 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5671 else
5672 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5674 # And add a safety zone
5675 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5676 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5678 esac
5682 if test -n "$lt_cv_sys_max_cmd_len" ; then
5683 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5684 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5685 else
5686 echo "$as_me:$LINENO: result: none" >&5
5687 echo "${ECHO_T}none" >&6
5691 # Only perform the check for file, if the check method requires it
5692 case $deplibs_check_method in
5693 file_magic*)
5694 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5695 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5696 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5697 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5698 echo $ECHO_N "(cached) $ECHO_C" >&6
5699 else
5700 case $MAGIC_CMD in
5702 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5704 ?:/*)
5705 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5708 ac_save_MAGIC_CMD="$MAGIC_CMD"
5709 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5710 ac_dummy="/usr/bin:$PATH"
5711 for ac_dir in $ac_dummy; do
5712 test -z "$ac_dir" && ac_dir=.
5713 if test -f $ac_dir/${ac_tool_prefix}file; then
5714 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5715 if test -n "$file_magic_test_file"; then
5716 case $deplibs_check_method in
5717 "file_magic "*)
5718 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5719 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5720 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5721 egrep "$file_magic_regex" > /dev/null; then
5723 else
5724 cat <<EOF 1>&2
5726 *** Warning: the command libtool uses to detect shared libraries,
5727 *** $file_magic_cmd, produces output that libtool cannot recognize.
5728 *** The result is that libtool may fail to recognize shared libraries
5729 *** as such. This will affect the creation of libtool libraries that
5730 *** depend on shared libraries, but programs linked with such libtool
5731 *** libraries will work regardless of this problem. Nevertheless, you
5732 *** may want to report the problem to your system manager and/or to
5733 *** bug-libtool@gnu.org
5736 fi ;;
5737 esac
5739 break
5741 done
5742 IFS="$ac_save_ifs"
5743 MAGIC_CMD="$ac_save_MAGIC_CMD"
5745 esac
5748 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5749 if test -n "$MAGIC_CMD"; then
5750 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5751 echo "${ECHO_T}$MAGIC_CMD" >&6
5752 else
5753 echo "$as_me:$LINENO: result: no" >&5
5754 echo "${ECHO_T}no" >&6
5757 if test -z "$lt_cv_path_MAGIC_CMD"; then
5758 if test -n "$ac_tool_prefix"; then
5759 echo "$as_me:$LINENO: checking for file" >&5
5760 echo $ECHO_N "checking for file... $ECHO_C" >&6
5761 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5762 echo $ECHO_N "(cached) $ECHO_C" >&6
5763 else
5764 case $MAGIC_CMD in
5766 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5768 ?:/*)
5769 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5772 ac_save_MAGIC_CMD="$MAGIC_CMD"
5773 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5774 ac_dummy="/usr/bin:$PATH"
5775 for ac_dir in $ac_dummy; do
5776 test -z "$ac_dir" && ac_dir=.
5777 if test -f $ac_dir/file; then
5778 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5779 if test -n "$file_magic_test_file"; then
5780 case $deplibs_check_method in
5781 "file_magic "*)
5782 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5783 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5784 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5785 egrep "$file_magic_regex" > /dev/null; then
5787 else
5788 cat <<EOF 1>&2
5790 *** Warning: the command libtool uses to detect shared libraries,
5791 *** $file_magic_cmd, produces output that libtool cannot recognize.
5792 *** The result is that libtool may fail to recognize shared libraries
5793 *** as such. This will affect the creation of libtool libraries that
5794 *** depend on shared libraries, but programs linked with such libtool
5795 *** libraries will work regardless of this problem. Nevertheless, you
5796 *** may want to report the problem to your system manager and/or to
5797 *** bug-libtool@gnu.org
5800 fi ;;
5801 esac
5803 break
5805 done
5806 IFS="$ac_save_ifs"
5807 MAGIC_CMD="$ac_save_MAGIC_CMD"
5809 esac
5812 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5813 if test -n "$MAGIC_CMD"; then
5814 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5815 echo "${ECHO_T}$MAGIC_CMD" >&6
5816 else
5817 echo "$as_me:$LINENO: result: no" >&5
5818 echo "${ECHO_T}no" >&6
5821 else
5822 MAGIC_CMD=:
5828 esac
5830 if test -n "$ac_tool_prefix"; then
5831 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5832 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5833 echo "$as_me:$LINENO: checking for $ac_word" >&5
5834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5835 if test "${ac_cv_prog_RANLIB+set}" = set; then
5836 echo $ECHO_N "(cached) $ECHO_C" >&6
5837 else
5838 if test -n "$RANLIB"; then
5839 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5840 else
5841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5842 for as_dir in $PATH
5844 IFS=$as_save_IFS
5845 test -z "$as_dir" && as_dir=.
5846 for ac_exec_ext in '' $ac_executable_extensions; do
5847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5848 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5850 break 2
5852 done
5853 done
5857 RANLIB=$ac_cv_prog_RANLIB
5858 if test -n "$RANLIB"; then
5859 echo "$as_me:$LINENO: result: $RANLIB" >&5
5860 echo "${ECHO_T}$RANLIB" >&6
5861 else
5862 echo "$as_me:$LINENO: result: no" >&5
5863 echo "${ECHO_T}no" >&6
5867 if test -z "$ac_cv_prog_RANLIB"; then
5868 ac_ct_RANLIB=$RANLIB
5869 # Extract the first word of "ranlib", so it can be a program name with args.
5870 set dummy ranlib; ac_word=$2
5871 echo "$as_me:$LINENO: checking for $ac_word" >&5
5872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5873 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5874 echo $ECHO_N "(cached) $ECHO_C" >&6
5875 else
5876 if test -n "$ac_ct_RANLIB"; then
5877 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5878 else
5879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5880 for as_dir in $PATH
5882 IFS=$as_save_IFS
5883 test -z "$as_dir" && as_dir=.
5884 for ac_exec_ext in '' $ac_executable_extensions; do
5885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5886 ac_cv_prog_ac_ct_RANLIB="ranlib"
5887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5888 break 2
5890 done
5891 done
5893 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5896 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5897 if test -n "$ac_ct_RANLIB"; then
5898 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5899 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5900 else
5901 echo "$as_me:$LINENO: result: no" >&5
5902 echo "${ECHO_T}no" >&6
5905 RANLIB=$ac_ct_RANLIB
5906 else
5907 RANLIB="$ac_cv_prog_RANLIB"
5910 if test -n "$ac_tool_prefix"; then
5911 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5912 set dummy ${ac_tool_prefix}strip; ac_word=$2
5913 echo "$as_me:$LINENO: checking for $ac_word" >&5
5914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5915 if test "${ac_cv_prog_STRIP+set}" = set; then
5916 echo $ECHO_N "(cached) $ECHO_C" >&6
5917 else
5918 if test -n "$STRIP"; then
5919 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5920 else
5921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5922 for as_dir in $PATH
5924 IFS=$as_save_IFS
5925 test -z "$as_dir" && as_dir=.
5926 for ac_exec_ext in '' $ac_executable_extensions; do
5927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5928 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5930 break 2
5932 done
5933 done
5937 STRIP=$ac_cv_prog_STRIP
5938 if test -n "$STRIP"; then
5939 echo "$as_me:$LINENO: result: $STRIP" >&5
5940 echo "${ECHO_T}$STRIP" >&6
5941 else
5942 echo "$as_me:$LINENO: result: no" >&5
5943 echo "${ECHO_T}no" >&6
5947 if test -z "$ac_cv_prog_STRIP"; then
5948 ac_ct_STRIP=$STRIP
5949 # Extract the first word of "strip", so it can be a program name with args.
5950 set dummy strip; ac_word=$2
5951 echo "$as_me:$LINENO: checking for $ac_word" >&5
5952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5953 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5954 echo $ECHO_N "(cached) $ECHO_C" >&6
5955 else
5956 if test -n "$ac_ct_STRIP"; then
5957 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5958 else
5959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960 for as_dir in $PATH
5962 IFS=$as_save_IFS
5963 test -z "$as_dir" && as_dir=.
5964 for ac_exec_ext in '' $ac_executable_extensions; do
5965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5966 ac_cv_prog_ac_ct_STRIP="strip"
5967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5968 break 2
5970 done
5971 done
5973 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5976 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5977 if test -n "$ac_ct_STRIP"; then
5978 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5979 echo "${ECHO_T}$ac_ct_STRIP" >&6
5980 else
5981 echo "$as_me:$LINENO: result: no" >&5
5982 echo "${ECHO_T}no" >&6
5985 STRIP=$ac_ct_STRIP
5986 else
5987 STRIP="$ac_cv_prog_STRIP"
5991 # Check for any special flags to pass to ltconfig.
5992 libtool_flags="--cache-file=$cache_file"
5993 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
5994 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
5995 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
5996 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
5997 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
6000 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6001 if test "${enable_libtool_lock+set}" = set; then
6002 enableval="$enable_libtool_lock"
6005 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
6006 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
6009 # Check whether --with-pic or --without-pic was given.
6010 if test "${with_pic+set}" = set; then
6011 withval="$with_pic"
6012 pic_mode="$withval"
6013 else
6014 pic_mode=default
6016 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
6017 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
6019 # Some flags need to be propagated to the compiler or linker for good
6020 # libtool support.
6021 case $host in
6022 *-*-irix6*)
6023 # Find out which ABI we are using.
6024 echo '#line 6024 "configure"' > conftest.$ac_ext
6025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6026 (eval $ac_compile) 2>&5
6027 ac_status=$?
6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029 (exit $ac_status); }; then
6030 if test "$lt_cv_prog_gnu_ld" = yes; then
6031 case `/usr/bin/file conftest.$ac_objext` in
6032 *32-bit*)
6033 LD="${LD-ld} -melf32bsmip"
6035 *N32*)
6036 LD="${LD-ld} -melf32bmipn32"
6038 *64-bit*)
6039 LD="${LD-ld} -melf64bmip"
6041 esac
6042 else
6043 case `/usr/bin/file conftest.$ac_objext` in
6044 *32-bit*)
6045 LD="${LD-ld} -32"
6047 *N32*)
6048 LD="${LD-ld} -n32"
6050 *64-bit*)
6051 LD="${LD-ld} -64"
6053 esac
6056 rm -rf conftest*
6059 ia64-*-hpux*)
6060 # Find out which ABI we are using.
6061 echo 'int i;' > conftest.$ac_ext
6062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6063 (eval $ac_compile) 2>&5
6064 ac_status=$?
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); }; then
6067 case "`/usr/bin/file conftest.o`" in
6068 *ELF-32*)
6069 HPUX_IA64_MODE="32"
6071 *ELF-64*)
6072 HPUX_IA64_MODE="64"
6074 esac
6076 rm -rf conftest*
6079 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6080 # Find out which ABI we are using.
6081 echo 'int i;' > conftest.$ac_ext
6082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6083 (eval $ac_compile) 2>&5
6084 ac_status=$?
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; then
6087 case "`/usr/bin/file conftest.o`" in
6088 *32-bit*)
6089 case $host in
6090 x86_64-*linux*)
6091 LD="${LD-ld} -m elf_i386"
6093 ppc64-*linux*|powerpc64-*linux*)
6094 LD="${LD-ld} -m elf32ppclinux"
6096 s390x-*linux*)
6097 LD="${LD-ld} -m elf_s390"
6099 sparc64-*linux*)
6100 LD="${LD-ld} -m elf32_sparc"
6102 esac
6104 *64-bit*)
6105 case $host in
6106 x86_64-*linux*)
6107 LD="${LD-ld} -m elf_x86_64"
6109 ppc*-*linux*|powerpc*-*linux*)
6110 LD="${LD-ld} -m elf64ppc"
6112 s390*-*linux*)
6113 LD="${LD-ld} -m elf64_s390"
6115 sparc*-*linux*)
6116 LD="${LD-ld} -m elf64_sparc"
6118 esac
6120 esac
6122 rm -rf conftest*
6125 *-*-sco3.2v5*)
6126 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6127 SAVE_CFLAGS="$CFLAGS"
6128 CFLAGS="$CFLAGS -belf"
6129 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6130 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6131 if test "${lt_cv_cc_needs_belf+set}" = set; then
6132 echo $ECHO_N "(cached) $ECHO_C" >&6
6133 else
6136 ac_ext=c
6137 ac_cpp='$CPP $CPPFLAGS'
6138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6142 if test x$gcc_no_link = xyes; then
6143 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6144 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6145 { (exit 1); exit 1; }; }
6147 cat >conftest.$ac_ext <<_ACEOF
6148 /* confdefs.h. */
6149 _ACEOF
6150 cat confdefs.h >>conftest.$ac_ext
6151 cat >>conftest.$ac_ext <<_ACEOF
6152 /* end confdefs.h. */
6155 main ()
6159 return 0;
6161 _ACEOF
6162 rm -f conftest.$ac_objext conftest$ac_exeext
6163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6164 (eval $ac_link) 2>conftest.er1
6165 ac_status=$?
6166 grep -v '^ *+' conftest.er1 >conftest.err
6167 rm -f conftest.er1
6168 cat conftest.err >&5
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); } &&
6171 { ac_try='test -z "$ac_c_werror_flag"
6172 || test ! -s conftest.err'
6173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6174 (eval $ac_try) 2>&5
6175 ac_status=$?
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); }; } &&
6178 { ac_try='test -s conftest$ac_exeext'
6179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6180 (eval $ac_try) 2>&5
6181 ac_status=$?
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); }; }; then
6184 lt_cv_cc_needs_belf=yes
6185 else
6186 echo "$as_me: failed program was:" >&5
6187 sed 's/^/| /' conftest.$ac_ext >&5
6189 lt_cv_cc_needs_belf=no
6191 rm -f conftest.err conftest.$ac_objext \
6192 conftest$ac_exeext conftest.$ac_ext
6193 ac_ext=c
6194 ac_cpp='$CPP $CPPFLAGS'
6195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6200 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6201 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6202 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6203 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6204 CFLAGS="$SAVE_CFLAGS"
6209 esac
6212 # Save cache, so that ltconfig can load it
6213 cat >confcache <<\_ACEOF
6214 # This file is a shell script that caches the results of configure
6215 # tests run on this system so they can be shared between configure
6216 # scripts and configure runs, see configure's option --config-cache.
6217 # It is not useful on other systems. If it contains results you don't
6218 # want to keep, you may remove or edit it.
6220 # config.status only pays attention to the cache file if you give it
6221 # the --recheck option to rerun configure.
6223 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6224 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6225 # following values.
6227 _ACEOF
6229 # The following way of writing the cache mishandles newlines in values,
6230 # but we know of no workaround that is simple, portable, and efficient.
6231 # So, don't put newlines in cache variables' values.
6232 # Ultrix sh set writes to stderr and can't be redirected directly,
6233 # and sets the high bit in the cache file unless we assign to the vars.
6235 (set) 2>&1 |
6236 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6237 *ac_space=\ *)
6238 # `set' does not quote correctly, so add quotes (double-quote
6239 # substitution turns \\\\ into \\, and sed turns \\ into \).
6240 sed -n \
6241 "s/'/'\\\\''/g;
6242 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6245 # `set' quotes correctly as required by POSIX, so do not add quotes.
6246 sed -n \
6247 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6249 esac;
6251 sed '
6252 t clear
6253 : clear
6254 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6255 t end
6256 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6257 : end' >>confcache
6258 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6259 if test -w $cache_file; then
6260 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6261 cat confcache >$cache_file
6262 else
6263 echo "not updating unwritable cache $cache_file"
6266 rm -f confcache
6268 # Actually configure libtool. ac_aux_dir is where install-sh is found.
6269 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
6270 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6271 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6272 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6273 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6274 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
6275 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
6276 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
6277 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
6278 echo "$as_me: error: libtool configure failed" >&2;}
6279 { (exit 1); exit 1; }; }
6281 # Reload cache, that may have been modified by ltconfig
6282 if test -r "$cache_file"; then
6283 # Some versions of bash will fail to source /dev/null (special
6284 # files actually), so we avoid doing that.
6285 if test -f "$cache_file"; then
6286 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
6287 echo "$as_me: loading cache $cache_file" >&6;}
6288 case $cache_file in
6289 [\\/]* | ?:[\\/]* ) . $cache_file;;
6290 *) . ./$cache_file;;
6291 esac
6293 else
6294 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
6295 echo "$as_me: creating cache $cache_file" >&6;}
6296 >$cache_file
6300 # This can be used to rebuild libtool when needed
6301 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
6303 # Always use our own libtool.
6304 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6306 # Redirect the config.log output again, so that the ltconfig log is not
6307 # clobbered by the next message.
6308 exec 5>>./config.log
6310 ac_ext=cc
6311 ac_cpp='$CXXCPP $CPPFLAGS'
6312 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6313 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6314 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6315 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6316 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6317 if test -z "$CXXCPP"; then
6318 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6319 echo $ECHO_N "(cached) $ECHO_C" >&6
6320 else
6321 # Double quotes because CXXCPP needs to be expanded
6322 for CXXCPP in "$CXX -E" "/lib/cpp"
6324 ac_preproc_ok=false
6325 for ac_cxx_preproc_warn_flag in '' yes
6327 # Use a header file that comes with gcc, so configuring glibc
6328 # with a fresh cross-compiler works.
6329 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6330 # <limits.h> exists even on freestanding compilers.
6331 # On the NeXT, cc -E runs the code through the compiler's parser,
6332 # not just through cpp. "Syntax error" is here to catch this case.
6333 cat >conftest.$ac_ext <<_ACEOF
6334 /* confdefs.h. */
6335 _ACEOF
6336 cat confdefs.h >>conftest.$ac_ext
6337 cat >>conftest.$ac_ext <<_ACEOF
6338 /* end confdefs.h. */
6339 #ifdef __STDC__
6340 # include <limits.h>
6341 #else
6342 # include <assert.h>
6343 #endif
6344 Syntax error
6345 _ACEOF
6346 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6347 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6348 ac_status=$?
6349 grep -v '^ *+' conftest.er1 >conftest.err
6350 rm -f conftest.er1
6351 cat conftest.err >&5
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); } >/dev/null; then
6354 if test -s conftest.err; then
6355 ac_cpp_err=$ac_cxx_preproc_warn_flag
6356 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6357 else
6358 ac_cpp_err=
6360 else
6361 ac_cpp_err=yes
6363 if test -z "$ac_cpp_err"; then
6365 else
6366 echo "$as_me: failed program was:" >&5
6367 sed 's/^/| /' conftest.$ac_ext >&5
6369 # Broken: fails on valid input.
6370 continue
6372 rm -f conftest.err conftest.$ac_ext
6374 # OK, works on sane cases. Now check whether non-existent headers
6375 # can be detected and how.
6376 cat >conftest.$ac_ext <<_ACEOF
6377 /* confdefs.h. */
6378 _ACEOF
6379 cat confdefs.h >>conftest.$ac_ext
6380 cat >>conftest.$ac_ext <<_ACEOF
6381 /* end confdefs.h. */
6382 #include <ac_nonexistent.h>
6383 _ACEOF
6384 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6385 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6386 ac_status=$?
6387 grep -v '^ *+' conftest.er1 >conftest.err
6388 rm -f conftest.er1
6389 cat conftest.err >&5
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); } >/dev/null; then
6392 if test -s conftest.err; then
6393 ac_cpp_err=$ac_cxx_preproc_warn_flag
6394 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6395 else
6396 ac_cpp_err=
6398 else
6399 ac_cpp_err=yes
6401 if test -z "$ac_cpp_err"; then
6402 # Broken: success on invalid input.
6403 continue
6404 else
6405 echo "$as_me: failed program was:" >&5
6406 sed 's/^/| /' conftest.$ac_ext >&5
6408 # Passes both tests.
6409 ac_preproc_ok=:
6410 break
6412 rm -f conftest.err conftest.$ac_ext
6414 done
6415 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6416 rm -f conftest.err conftest.$ac_ext
6417 if $ac_preproc_ok; then
6418 break
6421 done
6422 ac_cv_prog_CXXCPP=$CXXCPP
6425 CXXCPP=$ac_cv_prog_CXXCPP
6426 else
6427 ac_cv_prog_CXXCPP=$CXXCPP
6429 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6430 echo "${ECHO_T}$CXXCPP" >&6
6431 ac_preproc_ok=false
6432 for ac_cxx_preproc_warn_flag in '' yes
6434 # Use a header file that comes with gcc, so configuring glibc
6435 # with a fresh cross-compiler works.
6436 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6437 # <limits.h> exists even on freestanding compilers.
6438 # On the NeXT, cc -E runs the code through the compiler's parser,
6439 # not just through cpp. "Syntax error" is here to catch this case.
6440 cat >conftest.$ac_ext <<_ACEOF
6441 /* confdefs.h. */
6442 _ACEOF
6443 cat confdefs.h >>conftest.$ac_ext
6444 cat >>conftest.$ac_ext <<_ACEOF
6445 /* end confdefs.h. */
6446 #ifdef __STDC__
6447 # include <limits.h>
6448 #else
6449 # include <assert.h>
6450 #endif
6451 Syntax error
6452 _ACEOF
6453 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6454 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6455 ac_status=$?
6456 grep -v '^ *+' conftest.er1 >conftest.err
6457 rm -f conftest.er1
6458 cat conftest.err >&5
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); } >/dev/null; then
6461 if test -s conftest.err; then
6462 ac_cpp_err=$ac_cxx_preproc_warn_flag
6463 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6464 else
6465 ac_cpp_err=
6467 else
6468 ac_cpp_err=yes
6470 if test -z "$ac_cpp_err"; then
6472 else
6473 echo "$as_me: failed program was:" >&5
6474 sed 's/^/| /' conftest.$ac_ext >&5
6476 # Broken: fails on valid input.
6477 continue
6479 rm -f conftest.err conftest.$ac_ext
6481 # OK, works on sane cases. Now check whether non-existent headers
6482 # can be detected and how.
6483 cat >conftest.$ac_ext <<_ACEOF
6484 /* confdefs.h. */
6485 _ACEOF
6486 cat confdefs.h >>conftest.$ac_ext
6487 cat >>conftest.$ac_ext <<_ACEOF
6488 /* end confdefs.h. */
6489 #include <ac_nonexistent.h>
6490 _ACEOF
6491 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6492 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6493 ac_status=$?
6494 grep -v '^ *+' conftest.er1 >conftest.err
6495 rm -f conftest.er1
6496 cat conftest.err >&5
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); } >/dev/null; then
6499 if test -s conftest.err; then
6500 ac_cpp_err=$ac_cxx_preproc_warn_flag
6501 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6502 else
6503 ac_cpp_err=
6505 else
6506 ac_cpp_err=yes
6508 if test -z "$ac_cpp_err"; then
6509 # Broken: success on invalid input.
6510 continue
6511 else
6512 echo "$as_me: failed program was:" >&5
6513 sed 's/^/| /' conftest.$ac_ext >&5
6515 # Passes both tests.
6516 ac_preproc_ok=:
6517 break
6519 rm -f conftest.err conftest.$ac_ext
6521 done
6522 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6523 rm -f conftest.err conftest.$ac_ext
6524 if $ac_preproc_ok; then
6526 else
6527 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6528 See \`config.log' for more details." >&5
6529 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6530 See \`config.log' for more details." >&2;}
6531 { (exit 1); exit 1; }; }
6534 ac_ext=c
6535 ac_cpp='$CPP $CPPFLAGS'
6536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6542 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
6543 lt_save_CC="$CC"
6544 lt_save_CFLAGS="$CFLAGS"
6545 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
6546 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6547 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6548 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6549 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6550 deplibs_check_method="$deplibs_check_method" \
6551 file_magic_cmd="$file_magic_cmd" \
6552 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6553 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
6554 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6555 echo "$as_me: error: libtool tag configuration failed" >&2;}
6556 { (exit 1); exit 1; }; }
6557 CC="$lt_save_CC"
6558 CFLAGS="$lt_save_CFLAGS"
6560 # Redirect the config.log output again, so that the ltconfig log is not
6561 # clobbered by the next message.
6562 exec 5>>./config.log
6570 for ac_prog in gcj
6572 # Extract the first word of "$ac_prog", so it can be a program name with args.
6573 set dummy $ac_prog; ac_word=$2
6574 echo "$as_me:$LINENO: checking for $ac_word" >&5
6575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6576 if test "${ac_cv_prog_GCJ+set}" = set; then
6577 echo $ECHO_N "(cached) $ECHO_C" >&6
6578 else
6579 if test -n "$GCJ"; then
6580 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
6581 else
6582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583 for as_dir in $PATH
6585 IFS=$as_save_IFS
6586 test -z "$as_dir" && as_dir=.
6587 for ac_exec_ext in '' $ac_executable_extensions; do
6588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6589 ac_cv_prog_GCJ="$ac_prog"
6590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6591 break 2
6593 done
6594 done
6598 GCJ=$ac_cv_prog_GCJ
6599 if test -n "$GCJ"; then
6600 echo "$as_me:$LINENO: result: $GCJ" >&5
6601 echo "${ECHO_T}$GCJ" >&6
6602 else
6603 echo "$as_me:$LINENO: result: no" >&5
6604 echo "${ECHO_T}no" >&6
6607 test -n "$GCJ" && break
6608 done
6609 test -n "$GCJ" || GCJ="gcj"
6611 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
6612 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
6613 { (exit 1); exit 1; }; }
6614 if test "x${GCJFLAGS-unset}" = xunset; then
6615 GCJFLAGS="-g -O2"
6619 depcc="$GCJ" am_compiler_list='gcc3 gcc'
6621 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6622 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6623 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
6624 echo $ECHO_N "(cached) $ECHO_C" >&6
6625 else
6626 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6627 # We make a subdir and do the tests there. Otherwise we can end up
6628 # making bogus files that we don't know about and never remove. For
6629 # instance it was reported that on HP-UX the gcc test will end up
6630 # making a dummy file named `D' -- because `-MD' means `put the output
6631 # in D'.
6632 mkdir conftest.dir
6633 # Copy depcomp to subdir because otherwise we won't find it if we're
6634 # using a relative directory.
6635 cp "$am_depcomp" conftest.dir
6636 cd conftest.dir
6637 # We will build objects and dependencies in a subdirectory because
6638 # it helps to detect inapplicable dependency modes. For instance
6639 # both Tru64's cc and ICC support -MD to output dependencies as a
6640 # side effect of compilation, but ICC will put the dependencies in
6641 # the current directory while Tru64 will put them in the object
6642 # directory.
6643 mkdir sub
6645 am_cv_GCJ_dependencies_compiler_type=none
6646 if test "$am_compiler_list" = ""; then
6647 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6649 for depmode in $am_compiler_list; do
6650 # Setup a source with many dependencies, because some compilers
6651 # like to wrap large dependency lists on column 80 (with \), and
6652 # we should not choose a depcomp mode which is confused by this.
6654 # We need to recreate these files for each test, as the compiler may
6655 # overwrite some of them when testing with obscure command lines.
6656 # This happens at least with the AIX C compiler.
6657 : > sub/conftest.c
6658 for i in 1 2 3 4 5 6; do
6659 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6660 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6661 # Solaris 8's {/usr,}/bin/sh.
6662 touch sub/conftst$i.h
6663 done
6664 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6666 case $depmode in
6667 nosideeffect)
6668 # after this tag, mechanisms are not by side-effect, so they'll
6669 # only be used when explicitly requested
6670 if test "x$enable_dependency_tracking" = xyes; then
6671 continue
6672 else
6673 break
6676 none) break ;;
6677 esac
6678 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6679 # mode. It turns out that the SunPro C++ compiler does not properly
6680 # handle `-M -o', and we need to detect this.
6681 if depmode=$depmode \
6682 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6683 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6684 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6685 >/dev/null 2>conftest.err &&
6686 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6687 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6688 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6689 # icc doesn't choke on unknown options, it will just issue warnings
6690 # or remarks (even with -Werror). So we grep stderr for any message
6691 # that says an option was ignored or not supported.
6692 # When given -MP, icc 7.0 and 7.1 complain thusly:
6693 # icc: Command line warning: ignoring option '-M'; no argument required
6694 # The diagnosis changed in icc 8.0:
6695 # icc: Command line remark: option '-MP' not supported
6696 if (grep 'ignoring option' conftest.err ||
6697 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6698 am_cv_GCJ_dependencies_compiler_type=$depmode
6699 break
6702 done
6704 cd ..
6705 rm -rf conftest.dir
6706 else
6707 am_cv_GCJ_dependencies_compiler_type=none
6711 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
6712 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
6713 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
6718 test "x$enable_dependency_tracking" != xno \
6719 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
6720 am__fastdepGCJ_TRUE=
6721 am__fastdepGCJ_FALSE='#'
6722 else
6723 am__fastdepGCJ_TRUE='#'
6724 am__fastdepGCJ_FALSE=
6730 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
6731 lt_save_CC="$CC"
6732 lt_save_CFLAGS="$CFLAGS"
6733 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
6734 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6735 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6736 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6737 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6738 deplibs_check_method="$deplibs_check_method" \
6739 file_magic_cmd="$file_magic_cmd" \
6740 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6741 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
6742 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6743 echo "$as_me: error: libtool tag configuration failed" >&2;}
6744 { (exit 1); exit 1; }; }
6745 CC="$lt_save_CC"
6746 CFLAGS="$lt_save_CFLAGS"
6748 # Redirect the config.log output again, so that the ltconfig log is not
6749 # clobbered by the next message.
6750 exec 5>>./config.log
6754 if test "x$CC" != xcc; then
6755 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
6756 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
6757 else
6758 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
6759 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
6761 set dummy $CC; ac_cc=`echo $2 |
6762 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6763 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
6764 echo $ECHO_N "(cached) $ECHO_C" >&6
6765 else
6766 cat >conftest.$ac_ext <<_ACEOF
6767 /* confdefs.h. */
6768 _ACEOF
6769 cat confdefs.h >>conftest.$ac_ext
6770 cat >>conftest.$ac_ext <<_ACEOF
6771 /* end confdefs.h. */
6774 main ()
6778 return 0;
6780 _ACEOF
6781 # Make sure it works both with $CC and with simple cc.
6782 # We do the test twice because some compilers refuse to overwrite an
6783 # existing .o file with -o, though they will create one.
6784 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6785 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6786 (eval $ac_try) 2>&5
6787 ac_status=$?
6788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789 (exit $ac_status); } &&
6790 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6791 (eval $ac_try) 2>&5
6792 ac_status=$?
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); };
6795 then
6796 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6797 if test "x$CC" != xcc; then
6798 # Test first that cc exists at all.
6799 if { ac_try='cc -c conftest.$ac_ext >&5'
6800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801 (eval $ac_try) 2>&5
6802 ac_status=$?
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); }; }; then
6805 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6806 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6807 (eval $ac_try) 2>&5
6808 ac_status=$?
6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); } &&
6811 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6812 (eval $ac_try) 2>&5
6813 ac_status=$?
6814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); };
6816 then
6817 # cc works too.
6819 else
6820 # cc exists but doesn't like -o.
6821 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6825 else
6826 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6828 rm -f conftest*
6831 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
6832 echo "$as_me:$LINENO: result: yes" >&5
6833 echo "${ECHO_T}yes" >&6
6834 else
6835 echo "$as_me:$LINENO: result: no" >&5
6836 echo "${ECHO_T}no" >&6
6838 cat >>confdefs.h <<\_ACEOF
6839 #define NO_MINUS_C_MINUS_O 1
6840 _ACEOF
6844 # FIXME: we rely on the cache variable name because
6845 # there is no other way.
6846 set dummy $CC
6847 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6848 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
6849 # Losing compiler, so override with the script.
6850 # FIXME: It is wrong to rewrite CC.
6851 # But if we don't then we get into trouble of one sort or another.
6852 # A longer-term fix would be to have automake use am__CC in this case,
6853 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6854 CC="$am_aux_dir/compile $CC"
6860 subdirs="$subdirs classpath libltdl"
6863 # The -no-testsuite modules omit the test subdir.
6866 if test -d $srcdir/testsuite; then
6867 TESTSUBDIR_TRUE=
6868 TESTSUBDIR_FALSE='#'
6869 else
6870 TESTSUBDIR_TRUE='#'
6871 TESTSUBDIR_FALSE=
6875 # Should the runtime set system properties by examining the
6876 # environment variable GCJ_PROPERTIES?
6877 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
6878 if test "${enable_getenv_properties+set}" = set; then
6879 enableval="$enable_getenv_properties"
6883 # Whether GCJ_PROPERTIES is used depends on the target.
6884 if test -z "$enable_getenv_properties"; then
6885 enable_getenv_properties=${enable_getenv_properties_default-yes}
6887 if test "$enable_getenv_properties" = no; then
6889 cat >>confdefs.h <<\_ACEOF
6890 #define DISABLE_GETENV_PROPERTIES 1
6891 _ACEOF
6895 # Whether we should use arguments to main()
6896 if test -z "$enable_main_args"; then
6897 enable_main_args=${enable_main_args_default-yes}
6899 if test "$enable_main_args" = no; then
6901 cat >>confdefs.h <<\_ACEOF
6902 #define DISABLE_MAIN_ARGS 1
6903 _ACEOF
6908 # Should we use hashtable-based synchronization?
6909 # Currently works only for Linux X86/ia64
6910 # Typically faster and more space-efficient
6911 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
6912 if test "${enable_hash_synchronization+set}" = set; then
6913 enableval="$enable_hash_synchronization"
6917 if test -z "$enable_hash_synchronization"; then
6918 enable_hash_synchronization=$enable_hash_synchronization_default
6922 install_ecj_jar=no
6923 ECJ_BUILD_JAR=
6924 ECJ_JAR=
6926 # Check whether --with-ecj-jar or --without-ecj-jar was given.
6927 if test "${with_ecj_jar+set}" = set; then
6928 withval="$with_ecj_jar"
6929 ECJ_JAR=$withval
6930 else
6931 if test -f $multi_basedir/ecj.jar; then
6932 ECJ_BUILD_JAR=$multi_basedir/ecj.jar
6933 ECJ_JAR='$(jardir)/ecj.jar'
6934 install_ecj_jar=yes
6941 if test "$ECJ_JAR" != ""; then
6942 BUILD_ECJ1_TRUE=
6943 BUILD_ECJ1_FALSE='#'
6944 else
6945 BUILD_ECJ1_TRUE='#'
6946 BUILD_ECJ1_FALSE=
6951 if test $install_ecj_jar = yes; then
6952 INSTALL_ECJ_JAR_TRUE=
6953 INSTALL_ECJ_JAR_FALSE='#'
6954 else
6955 INSTALL_ECJ_JAR_TRUE='#'
6956 INSTALL_ECJ_JAR_FALSE=
6961 # Check whether --with-java-home or --without-java-home was given.
6962 if test "${with_java_home+set}" = set; then
6963 withval="$with_java_home"
6964 JAVA_HOME="${withval}"
6965 else
6966 JAVA_HOME=""
6970 if test ! -z "$JAVA_HOME"; then
6971 JAVA_HOME_SET_TRUE=
6972 JAVA_HOME_SET_FALSE='#'
6973 else
6974 JAVA_HOME_SET_TRUE='#'
6975 JAVA_HOME_SET_FALSE=
6980 # What is the native OS API for MinGW?
6982 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
6983 if test "${with_win32_nlsapi+set}" = set; then
6984 withval="$with_win32_nlsapi"
6985 case "${withval}" in
6986 ansi) with_win32_nlsapi=ansi ;;
6987 unicows) with_win32_nlsapi=unicows ;;
6988 unicode) with_win32_nlsapi=unicode ;;
6989 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
6990 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
6991 { (exit 1); exit 1; }; } ;;
6992 esac
6993 else
6994 with_win32_nlsapi=ansi
6997 case "${with_win32_nlsapi}" in
6998 unicows | unicode)
7000 cat >>confdefs.h <<\_ACEOF
7001 #define MINGW_LIBGCJ_UNICODE 1
7002 _ACEOF
7005 esac
7007 # configure.host sets slow_pthread_self if the synchronization code should
7008 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
7009 if test "${slow_pthread_self}" = "yes"; then
7011 cat >>confdefs.h <<\_ACEOF
7012 #define SLOW_PTHREAD_SELF 1
7013 _ACEOF
7017 # Check for gc debugging. This option is handled both here and in the GC.
7018 # Check whether --enable-gc-debug or --disable-gc-debug was given.
7019 if test "${enable_gc_debug+set}" = set; then
7020 enableval="$enable_gc_debug"
7021 if test "$enable_gc_debug" = "yes"; then
7023 cat >>confdefs.h <<\_ACEOF
7024 #define LIBGCJ_GC_DEBUG 1
7025 _ACEOF
7030 # See if the user has the interpreter included.
7031 # Check whether --enable-interpreter or --disable-interpreter was given.
7032 if test "${enable_interpreter+set}" = set; then
7033 enableval="$enable_interpreter"
7034 if test "$enable_interpreter" = yes; then
7035 # This can also be set in configure.host.
7036 libgcj_interpreter=yes
7037 elif test "$enable_interpreter" = no; then
7038 libgcj_interpreter=no
7042 if test "$libgcj_interpreter" = yes; then
7044 cat >>confdefs.h <<\_ACEOF
7045 #define INTERPRETER 1
7046 _ACEOF
7049 INTERPRETER="$libgcj_interpreter"
7052 echo "$as_me:$LINENO: checking for exception model to use" >&5
7053 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
7054 ac_ext=cc
7055 ac_cpp='$CXXCPP $CPPFLAGS'
7056 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7057 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7058 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7060 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
7061 if test "${enable_sjlj_exceptions+set}" = set; then
7062 enableval="$enable_sjlj_exceptions"
7064 else
7065 cat > conftest.$ac_ext << EOF
7066 #line 7066 "configure"
7067 struct S { ~S(); };
7068 void bar();
7069 void foo()
7071 S s;
7072 bar();
7075 old_CXXFLAGS="$CXXFLAGS"
7076 CXXFLAGS=-S
7077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7078 (eval $ac_compile) 2>&5
7079 ac_status=$?
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); }; then
7082 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
7083 enable_sjlj_exceptions=yes
7084 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
7085 enable_sjlj_exceptions=no
7088 CXXFLAGS="$old_CXXFLAGS"
7089 rm -f conftest*
7091 if test x$enable_sjlj_exceptions = xyes; then
7093 cat >>confdefs.h <<\_ACEOF
7094 #define SJLJ_EXCEPTIONS 1
7095 _ACEOF
7097 ac_exception_model_name=sjlj
7098 elif test x$enable_sjlj_exceptions = xno; then
7099 ac_exception_model_name="call frame"
7100 else
7101 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
7102 echo "$as_me: error: unable to detect exception model" >&2;}
7103 { (exit 1); exit 1; }; }
7105 ac_ext=c
7106 ac_cpp='$CPP $CPPFLAGS'
7107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7111 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
7112 echo "${ECHO_T}$ac_exception_model_name" >&6
7114 # If we are non using SJLJ exceptions, and this host does not have support
7115 # for unwinding from a signal handler, enable checked dereferences and divides.
7116 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
7117 CHECKREFSPEC=-fcheck-references
7118 DIVIDESPEC=-fuse-divide-subroutine
7119 EXCEPTIONSPEC=
7122 # See if the user wants to disable java.net. This is the mildly
7123 # ugly way that we admit that target-side configuration sucks.
7124 # Check whether --enable-java-net or --disable-java-net was given.
7125 if test "${enable_java_net+set}" = set; then
7126 enableval="$enable_java_net"
7130 # Whether java.net is built by default can depend on the target.
7131 if test -z "$enable_java_net"; then
7132 enable_java_net=${enable_java_net_default-yes}
7134 if test "$enable_java_net" = no; then
7136 cat >>confdefs.h <<\_ACEOF
7137 #define DISABLE_JAVA_NET 1
7138 _ACEOF
7142 # See if the user wants to configure without libffi. Some
7143 # architectures don't support it, and default values are set in
7144 # configure.host.
7146 # Check whether --with-libffi or --without-libffi was given.
7147 if test "${with_libffi+set}" = set; then
7148 withval="$with_libffi"
7150 else
7151 with_libffi=${with_libffi_default-yes}
7154 LIBFFI=
7155 LIBFFIINCS=
7156 if test "$with_libffi" != no; then
7158 cat >>confdefs.h <<\_ACEOF
7159 #define USE_LIBFFI 1
7160 _ACEOF
7162 LIBFFI=../libffi/libffi_convenience.la
7163 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
7168 # See if the user wants to disable JVMPI support.
7169 # Check whether --enable-jvmpi or --disable-jvmpi was given.
7170 if test "${enable_jvmpi+set}" = set; then
7171 enableval="$enable_jvmpi"
7175 if test "$enable_jvmpi" != no; then
7177 cat >>confdefs.h <<\_ACEOF
7178 #define ENABLE_JVMPI 1
7179 _ACEOF
7183 # If the target is an eCos system, use the appropriate eCos
7184 # I/O routines.
7185 # FIXME: this should not be a local option but a global target
7186 # system; at present there is no eCos target.
7187 TARGET_ECOS=${PROCESS-"no"}
7189 # Check whether --with-ecos or --without-ecos was given.
7190 if test "${with_ecos+set}" = set; then
7191 withval="$with_ecos"
7192 TARGET_ECOS="$with_ecos"
7196 case "$TARGET_ECOS" in
7197 no) case "$host" in
7198 *mingw*)
7199 PLATFORM=Win32
7200 PLATFORMNET=Win32
7201 PLATFORMH=win32.h
7203 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
7204 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
7205 LD_PROG=`$CC --print-prog-name=ld`
7206 LD_VERSION=`$LD_PROG --version`
7207 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
7208 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
7209 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
7210 LD_OK="ok"
7211 else
7212 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
7213 LD_OK="ok"
7216 if test "x$LD_OK" != x; then
7217 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
7218 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
7219 else
7220 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
7221 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
7222 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
7223 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
7225 cat >>confdefs.h <<\_ACEOF
7226 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
7227 _ACEOF
7232 PLATFORM=Posix
7233 PLATFORMNET=Posix
7234 PLATFORMH=posix.h
7236 esac
7239 PLATFORM=Ecos
7240 PLATFORMNET=NoNet
7242 cat >>confdefs.h <<\_ACEOF
7243 #define ECOS 1
7244 _ACEOF
7246 PLATFORMH=posix.h
7248 esac
7250 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
7253 ac_ext=c
7254 ac_cpp='$CPP $CPPFLAGS'
7255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7258 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7259 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7260 # On Suns, sometimes $CPP names a directory.
7261 if test -n "$CPP" && test -d "$CPP"; then
7262 CPP=
7264 if test -z "$CPP"; then
7265 if test "${ac_cv_prog_CPP+set}" = set; then
7266 echo $ECHO_N "(cached) $ECHO_C" >&6
7267 else
7268 # Double quotes because CPP needs to be expanded
7269 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7271 ac_preproc_ok=false
7272 for ac_c_preproc_warn_flag in '' yes
7274 # Use a header file that comes with gcc, so configuring glibc
7275 # with a fresh cross-compiler works.
7276 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7277 # <limits.h> exists even on freestanding compilers.
7278 # On the NeXT, cc -E runs the code through the compiler's parser,
7279 # not just through cpp. "Syntax error" is here to catch this case.
7280 cat >conftest.$ac_ext <<_ACEOF
7281 /* confdefs.h. */
7282 _ACEOF
7283 cat confdefs.h >>conftest.$ac_ext
7284 cat >>conftest.$ac_ext <<_ACEOF
7285 /* end confdefs.h. */
7286 #ifdef __STDC__
7287 # include <limits.h>
7288 #else
7289 # include <assert.h>
7290 #endif
7291 Syntax error
7292 _ACEOF
7293 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7294 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7295 ac_status=$?
7296 grep -v '^ *+' conftest.er1 >conftest.err
7297 rm -f conftest.er1
7298 cat conftest.err >&5
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); } >/dev/null; then
7301 if test -s conftest.err; then
7302 ac_cpp_err=$ac_c_preproc_warn_flag
7303 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7304 else
7305 ac_cpp_err=
7307 else
7308 ac_cpp_err=yes
7310 if test -z "$ac_cpp_err"; then
7312 else
7313 echo "$as_me: failed program was:" >&5
7314 sed 's/^/| /' conftest.$ac_ext >&5
7316 # Broken: fails on valid input.
7317 continue
7319 rm -f conftest.err conftest.$ac_ext
7321 # OK, works on sane cases. Now check whether non-existent headers
7322 # can be detected and how.
7323 cat >conftest.$ac_ext <<_ACEOF
7324 /* confdefs.h. */
7325 _ACEOF
7326 cat confdefs.h >>conftest.$ac_ext
7327 cat >>conftest.$ac_ext <<_ACEOF
7328 /* end confdefs.h. */
7329 #include <ac_nonexistent.h>
7330 _ACEOF
7331 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7332 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7333 ac_status=$?
7334 grep -v '^ *+' conftest.er1 >conftest.err
7335 rm -f conftest.er1
7336 cat conftest.err >&5
7337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338 (exit $ac_status); } >/dev/null; then
7339 if test -s conftest.err; then
7340 ac_cpp_err=$ac_c_preproc_warn_flag
7341 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7342 else
7343 ac_cpp_err=
7345 else
7346 ac_cpp_err=yes
7348 if test -z "$ac_cpp_err"; then
7349 # Broken: success on invalid input.
7350 continue
7351 else
7352 echo "$as_me: failed program was:" >&5
7353 sed 's/^/| /' conftest.$ac_ext >&5
7355 # Passes both tests.
7356 ac_preproc_ok=:
7357 break
7359 rm -f conftest.err conftest.$ac_ext
7361 done
7362 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7363 rm -f conftest.err conftest.$ac_ext
7364 if $ac_preproc_ok; then
7365 break
7368 done
7369 ac_cv_prog_CPP=$CPP
7372 CPP=$ac_cv_prog_CPP
7373 else
7374 ac_cv_prog_CPP=$CPP
7376 echo "$as_me:$LINENO: result: $CPP" >&5
7377 echo "${ECHO_T}$CPP" >&6
7378 ac_preproc_ok=false
7379 for ac_c_preproc_warn_flag in '' yes
7381 # Use a header file that comes with gcc, so configuring glibc
7382 # with a fresh cross-compiler works.
7383 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7384 # <limits.h> exists even on freestanding compilers.
7385 # On the NeXT, cc -E runs the code through the compiler's parser,
7386 # not just through cpp. "Syntax error" is here to catch this case.
7387 cat >conftest.$ac_ext <<_ACEOF
7388 /* confdefs.h. */
7389 _ACEOF
7390 cat confdefs.h >>conftest.$ac_ext
7391 cat >>conftest.$ac_ext <<_ACEOF
7392 /* end confdefs.h. */
7393 #ifdef __STDC__
7394 # include <limits.h>
7395 #else
7396 # include <assert.h>
7397 #endif
7398 Syntax error
7399 _ACEOF
7400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7402 ac_status=$?
7403 grep -v '^ *+' conftest.er1 >conftest.err
7404 rm -f conftest.er1
7405 cat conftest.err >&5
7406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); } >/dev/null; then
7408 if test -s conftest.err; then
7409 ac_cpp_err=$ac_c_preproc_warn_flag
7410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7411 else
7412 ac_cpp_err=
7414 else
7415 ac_cpp_err=yes
7417 if test -z "$ac_cpp_err"; then
7419 else
7420 echo "$as_me: failed program was:" >&5
7421 sed 's/^/| /' conftest.$ac_ext >&5
7423 # Broken: fails on valid input.
7424 continue
7426 rm -f conftest.err conftest.$ac_ext
7428 # OK, works on sane cases. Now check whether non-existent headers
7429 # can be detected and how.
7430 cat >conftest.$ac_ext <<_ACEOF
7431 /* confdefs.h. */
7432 _ACEOF
7433 cat confdefs.h >>conftest.$ac_ext
7434 cat >>conftest.$ac_ext <<_ACEOF
7435 /* end confdefs.h. */
7436 #include <ac_nonexistent.h>
7437 _ACEOF
7438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7440 ac_status=$?
7441 grep -v '^ *+' conftest.er1 >conftest.err
7442 rm -f conftest.er1
7443 cat conftest.err >&5
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); } >/dev/null; then
7446 if test -s conftest.err; then
7447 ac_cpp_err=$ac_c_preproc_warn_flag
7448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7449 else
7450 ac_cpp_err=
7452 else
7453 ac_cpp_err=yes
7455 if test -z "$ac_cpp_err"; then
7456 # Broken: success on invalid input.
7457 continue
7458 else
7459 echo "$as_me: failed program was:" >&5
7460 sed 's/^/| /' conftest.$ac_ext >&5
7462 # Passes both tests.
7463 ac_preproc_ok=:
7464 break
7466 rm -f conftest.err conftest.$ac_ext
7468 done
7469 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7470 rm -f conftest.err conftest.$ac_ext
7471 if $ac_preproc_ok; then
7473 else
7474 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7475 See \`config.log' for more details." >&5
7476 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7477 See \`config.log' for more details." >&2;}
7478 { (exit 1); exit 1; }; }
7481 ac_ext=c
7482 ac_cpp='$CPP $CPPFLAGS'
7483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7488 echo "$as_me:$LINENO: checking for egrep" >&5
7489 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
7490 if test "${ac_cv_prog_egrep+set}" = set; then
7491 echo $ECHO_N "(cached) $ECHO_C" >&6
7492 else
7493 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
7494 then ac_cv_prog_egrep='grep -E'
7495 else ac_cv_prog_egrep='egrep'
7498 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
7499 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
7500 EGREP=$ac_cv_prog_egrep
7503 cat >conftest.$ac_ext <<_ACEOF
7504 /* confdefs.h. */
7505 _ACEOF
7506 cat confdefs.h >>conftest.$ac_ext
7507 cat >>conftest.$ac_ext <<_ACEOF
7508 /* end confdefs.h. */
7509 #include <stdint.h>
7511 _ACEOF
7512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7513 $EGREP "uint32_t" >/dev/null 2>&1; then
7515 cat >>confdefs.h <<\_ACEOF
7516 #define HAVE_INT32_DEFINED 1
7517 _ACEOF
7520 rm -f conftest*
7522 cat >conftest.$ac_ext <<_ACEOF
7523 /* confdefs.h. */
7524 _ACEOF
7525 cat confdefs.h >>conftest.$ac_ext
7526 cat >>conftest.$ac_ext <<_ACEOF
7527 /* end confdefs.h. */
7528 #include <inttypes.h>
7530 _ACEOF
7531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7532 $EGREP "uint32_t" >/dev/null 2>&1; then
7534 cat >>confdefs.h <<\_ACEOF
7535 #define HAVE_INT32_DEFINED 1
7536 _ACEOF
7539 rm -f conftest*
7541 cat >conftest.$ac_ext <<_ACEOF
7542 /* confdefs.h. */
7543 _ACEOF
7544 cat confdefs.h >>conftest.$ac_ext
7545 cat >>conftest.$ac_ext <<_ACEOF
7546 /* end confdefs.h. */
7547 #include <sys/types.h>
7549 _ACEOF
7550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7551 $EGREP "u_int32_t" >/dev/null 2>&1; then
7553 cat >>confdefs.h <<\_ACEOF
7554 #define HAVE_BSD_INT32_DEFINED 1
7555 _ACEOF
7558 rm -f conftest*
7560 cat >conftest.$ac_ext <<_ACEOF
7561 /* confdefs.h. */
7562 _ACEOF
7563 cat confdefs.h >>conftest.$ac_ext
7564 cat >>conftest.$ac_ext <<_ACEOF
7565 /* end confdefs.h. */
7566 #include <sys/config.h>
7568 _ACEOF
7569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7570 $EGREP "u_int32_t" >/dev/null 2>&1; then
7572 cat >>confdefs.h <<\_ACEOF
7573 #define HAVE_BSD_INT32_DEFINED 1
7574 _ACEOF
7577 rm -f conftest*
7582 if test "$PLATFORM" = Win32; then
7583 USING_WIN32_PLATFORM_TRUE=
7584 USING_WIN32_PLATFORM_FALSE='#'
7585 else
7586 USING_WIN32_PLATFORM_TRUE='#'
7587 USING_WIN32_PLATFORM_FALSE=
7592 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
7593 USING_POSIX_PLATFORM_TRUE=
7594 USING_POSIX_PLATFORM_FALSE='#'
7595 else
7596 USING_POSIX_PLATFORM_TRUE='#'
7597 USING_POSIX_PLATFORM_FALSE=
7601 case "$host" in
7602 *-darwin*) DARWIN_CRT=true ;;
7603 *) DARWIN_CRT=false ;;
7604 esac
7607 if $DARWIN_CRT; then
7608 USING_DARWIN_CRT_TRUE=
7609 USING_DARWIN_CRT_FALSE='#'
7610 else
7611 USING_DARWIN_CRT_TRUE='#'
7612 USING_DARWIN_CRT_FALSE=
7616 # These may not be defined in a non-ANS conformant embedded system.
7617 # FIXME: Should these case a runtime exception in that case?
7618 cat >conftest.$ac_ext <<_ACEOF
7619 /* confdefs.h. */
7620 _ACEOF
7621 cat confdefs.h >>conftest.$ac_ext
7622 cat >>conftest.$ac_ext <<_ACEOF
7623 /* end confdefs.h. */
7624 #include <time.h>
7626 _ACEOF
7627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7628 $EGREP "mktime" >/dev/null 2>&1; then
7630 cat >>confdefs.h <<\_ACEOF
7631 #define HAVE_MKTIME 1
7632 _ACEOF
7635 rm -f conftest*
7637 cat >conftest.$ac_ext <<_ACEOF
7638 /* confdefs.h. */
7639 _ACEOF
7640 cat confdefs.h >>conftest.$ac_ext
7641 cat >>conftest.$ac_ext <<_ACEOF
7642 /* end confdefs.h. */
7643 #include <time.h>
7645 _ACEOF
7646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7647 $EGREP "localtime" >/dev/null 2>&1; then
7649 cat >>confdefs.h <<\_ACEOF
7650 #define HAVE_LOCALTIME 1
7651 _ACEOF
7654 rm -f conftest*
7657 # Create the subdirectory for natFile.cc, or the attempt
7658 # to create the link will fail.
7659 test -d java || mkdir java
7660 test -d java/io || mkdir java/io
7661 test -d gnu || mkdir gnu
7662 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
7665 # Likewise for natConcreteProcess.cc.
7666 test -d java/lang || mkdir java/lang
7667 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
7670 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
7671 test -d java/net || mkdir java/net
7672 ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
7674 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
7677 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
7678 test -d gnu/java || mkdir gnu/java
7679 test -d gnu/java/net || mkdir gnu/java/net
7680 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
7682 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
7685 # Likewise for natVMPipe.cc and natVMSelector.cc.
7686 test -d gnu/java/nio || mkdir gnu/java/nio
7687 ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
7689 ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
7692 # Likewise for natFileChannelImpl.cc
7693 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
7694 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
7697 case "${host}" in
7698 *mingw*)
7699 SYSTEMSPEC="-lgdi32 -lws2_32"
7700 if test "${with_win32_nlsapi}" = "unicows"; then
7701 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
7705 SYSTEMSPEC=
7707 esac
7710 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
7714 # Check whether --with-system-zlib or --without-system-zlib was given.
7715 if test "${with_system_zlib+set}" = set; then
7716 withval="$with_system_zlib"
7719 ZLIBSPEC=
7721 ZLIBTESTSPEC=
7724 echo "$as_me:$LINENO: checking for X" >&5
7725 echo $ECHO_N "checking for X... $ECHO_C" >&6
7728 # Check whether --with-x or --without-x was given.
7729 if test "${with_x+set}" = set; then
7730 withval="$with_x"
7733 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7734 if test "x$with_x" = xno; then
7735 # The user explicitly disabled X.
7736 have_x=disabled
7737 else
7738 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7739 # Both variables are already set.
7740 have_x=yes
7741 else
7742 if test "${ac_cv_have_x+set}" = set; then
7743 echo $ECHO_N "(cached) $ECHO_C" >&6
7744 else
7745 # One or both of the vars are not set, and there is no cached value.
7746 ac_x_includes=no ac_x_libraries=no
7747 rm -fr conftest.dir
7748 if mkdir conftest.dir; then
7749 cd conftest.dir
7750 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7751 cat >Imakefile <<'_ACEOF'
7752 acfindx:
7753 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7754 _ACEOF
7755 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7756 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7757 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7758 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7759 for ac_extension in a so sl; do
7760 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7761 test -f $ac_im_libdir/libX11.$ac_extension; then
7762 ac_im_usrlibdir=$ac_im_libdir; break
7764 done
7765 # Screen out bogus values from the imake configuration. They are
7766 # bogus both because they are the default anyway, and because
7767 # using them would break gcc on systems where it needs fixed includes.
7768 case $ac_im_incroot in
7769 /usr/include) ;;
7770 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7771 esac
7772 case $ac_im_usrlibdir in
7773 /usr/lib | /lib) ;;
7774 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7775 esac
7777 cd ..
7778 rm -fr conftest.dir
7781 # Standard set of common directories for X headers.
7782 # Check X11 before X11Rn because it is often a symlink to the current release.
7783 ac_x_header_dirs='
7784 /usr/X11/include
7785 /usr/X11R6/include
7786 /usr/X11R5/include
7787 /usr/X11R4/include
7789 /usr/include/X11
7790 /usr/include/X11R6
7791 /usr/include/X11R5
7792 /usr/include/X11R4
7794 /usr/local/X11/include
7795 /usr/local/X11R6/include
7796 /usr/local/X11R5/include
7797 /usr/local/X11R4/include
7799 /usr/local/include/X11
7800 /usr/local/include/X11R6
7801 /usr/local/include/X11R5
7802 /usr/local/include/X11R4
7804 /usr/X386/include
7805 /usr/x386/include
7806 /usr/XFree86/include/X11
7808 /usr/include
7809 /usr/local/include
7810 /usr/unsupported/include
7811 /usr/athena/include
7812 /usr/local/x11r5/include
7813 /usr/lpp/Xamples/include
7815 /usr/openwin/include
7816 /usr/openwin/share/include'
7818 if test "$ac_x_includes" = no; then
7819 # Guess where to find include files, by looking for Xlib.h.
7820 # First, try using that file with no special directory specified.
7821 cat >conftest.$ac_ext <<_ACEOF
7822 /* confdefs.h. */
7823 _ACEOF
7824 cat confdefs.h >>conftest.$ac_ext
7825 cat >>conftest.$ac_ext <<_ACEOF
7826 /* end confdefs.h. */
7827 #include <X11/Xlib.h>
7828 _ACEOF
7829 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7830 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7831 ac_status=$?
7832 grep -v '^ *+' conftest.er1 >conftest.err
7833 rm -f conftest.er1
7834 cat conftest.err >&5
7835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); } >/dev/null; then
7837 if test -s conftest.err; then
7838 ac_cpp_err=$ac_c_preproc_warn_flag
7839 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7840 else
7841 ac_cpp_err=
7843 else
7844 ac_cpp_err=yes
7846 if test -z "$ac_cpp_err"; then
7847 # We can compile using X headers with no special include directory.
7848 ac_x_includes=
7849 else
7850 echo "$as_me: failed program was:" >&5
7851 sed 's/^/| /' conftest.$ac_ext >&5
7853 for ac_dir in $ac_x_header_dirs; do
7854 if test -r "$ac_dir/X11/Xlib.h"; then
7855 ac_x_includes=$ac_dir
7856 break
7858 done
7860 rm -f conftest.err conftest.$ac_ext
7861 fi # $ac_x_includes = no
7863 if test "$ac_x_libraries" = no; then
7864 # Check for the libraries.
7865 # See if we find them without any special options.
7866 # Don't add to $LIBS permanently.
7867 ac_save_LIBS=$LIBS
7868 LIBS="-lXt $LIBS"
7869 if test x$gcc_no_link = xyes; then
7870 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7871 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7872 { (exit 1); exit 1; }; }
7874 cat >conftest.$ac_ext <<_ACEOF
7875 /* confdefs.h. */
7876 _ACEOF
7877 cat confdefs.h >>conftest.$ac_ext
7878 cat >>conftest.$ac_ext <<_ACEOF
7879 /* end confdefs.h. */
7880 #include <X11/Xlib.h>
7882 main ()
7884 XrmInitialize ()
7886 return 0;
7888 _ACEOF
7889 rm -f conftest.$ac_objext conftest$ac_exeext
7890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7891 (eval $ac_link) 2>conftest.er1
7892 ac_status=$?
7893 grep -v '^ *+' conftest.er1 >conftest.err
7894 rm -f conftest.er1
7895 cat conftest.err >&5
7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); } &&
7898 { ac_try='test -z "$ac_c_werror_flag"
7899 || test ! -s conftest.err'
7900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7901 (eval $ac_try) 2>&5
7902 ac_status=$?
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); }; } &&
7905 { ac_try='test -s conftest$ac_exeext'
7906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7907 (eval $ac_try) 2>&5
7908 ac_status=$?
7909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); }; }; then
7911 LIBS=$ac_save_LIBS
7912 # We can link X programs with no special library path.
7913 ac_x_libraries=
7914 else
7915 echo "$as_me: failed program was:" >&5
7916 sed 's/^/| /' conftest.$ac_ext >&5
7918 LIBS=$ac_save_LIBS
7919 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7921 # Don't even attempt the hair of trying to link an X program!
7922 for ac_extension in a so sl; do
7923 if test -r $ac_dir/libXt.$ac_extension; then
7924 ac_x_libraries=$ac_dir
7925 break 2
7927 done
7928 done
7930 rm -f conftest.err conftest.$ac_objext \
7931 conftest$ac_exeext conftest.$ac_ext
7932 fi # $ac_x_libraries = no
7934 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7935 # Didn't find X anywhere. Cache the known absence of X.
7936 ac_cv_have_x="have_x=no"
7937 else
7938 # Record where we found X for the cache.
7939 ac_cv_have_x="have_x=yes \
7940 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7945 eval "$ac_cv_have_x"
7946 fi # $with_x != no
7948 if test "$have_x" != yes; then
7949 echo "$as_me:$LINENO: result: $have_x" >&5
7950 echo "${ECHO_T}$have_x" >&6
7951 no_x=yes
7952 else
7953 # If each of the values was on the command line, it overrides each guess.
7954 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7955 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7956 # Update the cache value to reflect the command line values.
7957 ac_cv_have_x="have_x=yes \
7958 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7959 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7960 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7963 if test "$no_x" = yes; then
7964 # Not all programs may use this symbol, but it does not hurt to define it.
7966 cat >>confdefs.h <<\_ACEOF
7967 #define X_DISPLAY_MISSING 1
7968 _ACEOF
7970 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7971 else
7972 if test -n "$x_includes"; then
7973 X_CFLAGS="$X_CFLAGS -I$x_includes"
7976 # It would also be nice to do this for all -L options, not just this one.
7977 if test -n "$x_libraries"; then
7978 X_LIBS="$X_LIBS -L$x_libraries"
7979 # For Solaris; some versions of Sun CC require a space after -R and
7980 # others require no space. Words are not sufficient . . . .
7981 case `(uname -sr) 2>/dev/null` in
7982 "SunOS 5"*)
7983 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7984 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7985 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7986 if test x$gcc_no_link = xyes; then
7987 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7988 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7989 { (exit 1); exit 1; }; }
7991 cat >conftest.$ac_ext <<_ACEOF
7992 /* confdefs.h. */
7993 _ACEOF
7994 cat confdefs.h >>conftest.$ac_ext
7995 cat >>conftest.$ac_ext <<_ACEOF
7996 /* end confdefs.h. */
7999 main ()
8003 return 0;
8005 _ACEOF
8006 rm -f conftest.$ac_objext conftest$ac_exeext
8007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8008 (eval $ac_link) 2>conftest.er1
8009 ac_status=$?
8010 grep -v '^ *+' conftest.er1 >conftest.err
8011 rm -f conftest.er1
8012 cat conftest.err >&5
8013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014 (exit $ac_status); } &&
8015 { ac_try='test -z "$ac_c_werror_flag"
8016 || test ! -s conftest.err'
8017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8018 (eval $ac_try) 2>&5
8019 ac_status=$?
8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); }; } &&
8022 { ac_try='test -s conftest$ac_exeext'
8023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8024 (eval $ac_try) 2>&5
8025 ac_status=$?
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); }; }; then
8028 ac_R_nospace=yes
8029 else
8030 echo "$as_me: failed program was:" >&5
8031 sed 's/^/| /' conftest.$ac_ext >&5
8033 ac_R_nospace=no
8035 rm -f conftest.err conftest.$ac_objext \
8036 conftest$ac_exeext conftest.$ac_ext
8037 if test $ac_R_nospace = yes; then
8038 echo "$as_me:$LINENO: result: no" >&5
8039 echo "${ECHO_T}no" >&6
8040 X_LIBS="$X_LIBS -R$x_libraries"
8041 else
8042 LIBS="$ac_xsave_LIBS -R $x_libraries"
8043 if test x$gcc_no_link = xyes; then
8044 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8045 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8046 { (exit 1); exit 1; }; }
8048 cat >conftest.$ac_ext <<_ACEOF
8049 /* confdefs.h. */
8050 _ACEOF
8051 cat confdefs.h >>conftest.$ac_ext
8052 cat >>conftest.$ac_ext <<_ACEOF
8053 /* end confdefs.h. */
8056 main ()
8060 return 0;
8062 _ACEOF
8063 rm -f conftest.$ac_objext conftest$ac_exeext
8064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8065 (eval $ac_link) 2>conftest.er1
8066 ac_status=$?
8067 grep -v '^ *+' conftest.er1 >conftest.err
8068 rm -f conftest.er1
8069 cat conftest.err >&5
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); } &&
8072 { ac_try='test -z "$ac_c_werror_flag"
8073 || test ! -s conftest.err'
8074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8075 (eval $ac_try) 2>&5
8076 ac_status=$?
8077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078 (exit $ac_status); }; } &&
8079 { ac_try='test -s conftest$ac_exeext'
8080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8081 (eval $ac_try) 2>&5
8082 ac_status=$?
8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 (exit $ac_status); }; }; then
8085 ac_R_space=yes
8086 else
8087 echo "$as_me: failed program was:" >&5
8088 sed 's/^/| /' conftest.$ac_ext >&5
8090 ac_R_space=no
8092 rm -f conftest.err conftest.$ac_objext \
8093 conftest$ac_exeext conftest.$ac_ext
8094 if test $ac_R_space = yes; then
8095 echo "$as_me:$LINENO: result: yes" >&5
8096 echo "${ECHO_T}yes" >&6
8097 X_LIBS="$X_LIBS -R $x_libraries"
8098 else
8099 echo "$as_me:$LINENO: result: neither works" >&5
8100 echo "${ECHO_T}neither works" >&6
8103 LIBS=$ac_xsave_LIBS
8104 esac
8107 # Check for system-dependent libraries X programs must link with.
8108 # Do this before checking for the system-independent R6 libraries
8109 # (-lICE), since we may need -lsocket or whatever for X linking.
8111 if test "$ISC" = yes; then
8112 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8113 else
8114 # Martyn Johnson says this is needed for Ultrix, if the X
8115 # libraries were built with DECnet support. And Karl Berry says
8116 # the Alpha needs dnet_stub (dnet does not exist).
8117 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8118 if test x$gcc_no_link = xyes; then
8119 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8120 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8121 { (exit 1); exit 1; }; }
8123 cat >conftest.$ac_ext <<_ACEOF
8124 /* confdefs.h. */
8125 _ACEOF
8126 cat confdefs.h >>conftest.$ac_ext
8127 cat >>conftest.$ac_ext <<_ACEOF
8128 /* end confdefs.h. */
8130 /* Override any gcc2 internal prototype to avoid an error. */
8131 #ifdef __cplusplus
8132 extern "C"
8133 #endif
8134 /* We use char because int might match the return type of a gcc2
8135 builtin and then its argument prototype would still apply. */
8136 char XOpenDisplay ();
8138 main ()
8140 XOpenDisplay ();
8142 return 0;
8144 _ACEOF
8145 rm -f conftest.$ac_objext conftest$ac_exeext
8146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8147 (eval $ac_link) 2>conftest.er1
8148 ac_status=$?
8149 grep -v '^ *+' conftest.er1 >conftest.err
8150 rm -f conftest.er1
8151 cat conftest.err >&5
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); } &&
8154 { ac_try='test -z "$ac_c_werror_flag"
8155 || test ! -s conftest.err'
8156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8157 (eval $ac_try) 2>&5
8158 ac_status=$?
8159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160 (exit $ac_status); }; } &&
8161 { ac_try='test -s conftest$ac_exeext'
8162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8163 (eval $ac_try) 2>&5
8164 ac_status=$?
8165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); }; }; then
8168 else
8169 echo "$as_me: failed program was:" >&5
8170 sed 's/^/| /' conftest.$ac_ext >&5
8172 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8173 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8174 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8175 echo $ECHO_N "(cached) $ECHO_C" >&6
8176 else
8177 ac_check_lib_save_LIBS=$LIBS
8178 LIBS="-ldnet $LIBS"
8179 if test x$gcc_no_link = xyes; then
8180 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8181 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8182 { (exit 1); exit 1; }; }
8184 cat >conftest.$ac_ext <<_ACEOF
8185 /* confdefs.h. */
8186 _ACEOF
8187 cat confdefs.h >>conftest.$ac_ext
8188 cat >>conftest.$ac_ext <<_ACEOF
8189 /* end confdefs.h. */
8191 /* Override any gcc2 internal prototype to avoid an error. */
8192 #ifdef __cplusplus
8193 extern "C"
8194 #endif
8195 /* We use char because int might match the return type of a gcc2
8196 builtin and then its argument prototype would still apply. */
8197 char dnet_ntoa ();
8199 main ()
8201 dnet_ntoa ();
8203 return 0;
8205 _ACEOF
8206 rm -f conftest.$ac_objext conftest$ac_exeext
8207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8208 (eval $ac_link) 2>conftest.er1
8209 ac_status=$?
8210 grep -v '^ *+' conftest.er1 >conftest.err
8211 rm -f conftest.er1
8212 cat conftest.err >&5
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 (exit $ac_status); } &&
8215 { ac_try='test -z "$ac_c_werror_flag"
8216 || test ! -s conftest.err'
8217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8218 (eval $ac_try) 2>&5
8219 ac_status=$?
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 (exit $ac_status); }; } &&
8222 { ac_try='test -s conftest$ac_exeext'
8223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8224 (eval $ac_try) 2>&5
8225 ac_status=$?
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); }; }; then
8228 ac_cv_lib_dnet_dnet_ntoa=yes
8229 else
8230 echo "$as_me: failed program was:" >&5
8231 sed 's/^/| /' conftest.$ac_ext >&5
8233 ac_cv_lib_dnet_dnet_ntoa=no
8235 rm -f conftest.err conftest.$ac_objext \
8236 conftest$ac_exeext conftest.$ac_ext
8237 LIBS=$ac_check_lib_save_LIBS
8239 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8240 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8241 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8242 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8245 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8246 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8247 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8248 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8249 echo $ECHO_N "(cached) $ECHO_C" >&6
8250 else
8251 ac_check_lib_save_LIBS=$LIBS
8252 LIBS="-ldnet_stub $LIBS"
8253 if test x$gcc_no_link = xyes; then
8254 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8255 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8256 { (exit 1); exit 1; }; }
8258 cat >conftest.$ac_ext <<_ACEOF
8259 /* confdefs.h. */
8260 _ACEOF
8261 cat confdefs.h >>conftest.$ac_ext
8262 cat >>conftest.$ac_ext <<_ACEOF
8263 /* end confdefs.h. */
8265 /* Override any gcc2 internal prototype to avoid an error. */
8266 #ifdef __cplusplus
8267 extern "C"
8268 #endif
8269 /* We use char because int might match the return type of a gcc2
8270 builtin and then its argument prototype would still apply. */
8271 char dnet_ntoa ();
8273 main ()
8275 dnet_ntoa ();
8277 return 0;
8279 _ACEOF
8280 rm -f conftest.$ac_objext conftest$ac_exeext
8281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8282 (eval $ac_link) 2>conftest.er1
8283 ac_status=$?
8284 grep -v '^ *+' conftest.er1 >conftest.err
8285 rm -f conftest.er1
8286 cat conftest.err >&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); } &&
8289 { ac_try='test -z "$ac_c_werror_flag"
8290 || test ! -s conftest.err'
8291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8292 (eval $ac_try) 2>&5
8293 ac_status=$?
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); }; } &&
8296 { ac_try='test -s conftest$ac_exeext'
8297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8298 (eval $ac_try) 2>&5
8299 ac_status=$?
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); }; }; then
8302 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8303 else
8304 echo "$as_me: failed program was:" >&5
8305 sed 's/^/| /' conftest.$ac_ext >&5
8307 ac_cv_lib_dnet_stub_dnet_ntoa=no
8309 rm -f conftest.err conftest.$ac_objext \
8310 conftest$ac_exeext conftest.$ac_ext
8311 LIBS=$ac_check_lib_save_LIBS
8313 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8314 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8315 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8316 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8321 rm -f conftest.err conftest.$ac_objext \
8322 conftest$ac_exeext conftest.$ac_ext
8323 LIBS="$ac_xsave_LIBS"
8325 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8326 # to get the SysV transport functions.
8327 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8328 # needs -lnsl.
8329 # The nsl library prevents programs from opening the X display
8330 # on Irix 5.2, according to T.E. Dickey.
8331 # The functions gethostbyname, getservbyname, and inet_addr are
8332 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8333 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8334 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8335 if test "${ac_cv_func_gethostbyname+set}" = set; then
8336 echo $ECHO_N "(cached) $ECHO_C" >&6
8337 else
8338 if test x$gcc_no_link = xyes; then
8339 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8340 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8341 { (exit 1); exit 1; }; }
8343 cat >conftest.$ac_ext <<_ACEOF
8344 /* confdefs.h. */
8345 _ACEOF
8346 cat confdefs.h >>conftest.$ac_ext
8347 cat >>conftest.$ac_ext <<_ACEOF
8348 /* end confdefs.h. */
8349 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
8350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8351 #define gethostbyname innocuous_gethostbyname
8353 /* System header to define __stub macros and hopefully few prototypes,
8354 which can conflict with char gethostbyname (); below.
8355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8356 <limits.h> exists even on freestanding compilers. */
8358 #ifdef __STDC__
8359 # include <limits.h>
8360 #else
8361 # include <assert.h>
8362 #endif
8364 #undef gethostbyname
8366 /* Override any gcc2 internal prototype to avoid an error. */
8367 #ifdef __cplusplus
8368 extern "C"
8370 #endif
8371 /* We use char because int might match the return type of a gcc2
8372 builtin and then its argument prototype would still apply. */
8373 char gethostbyname ();
8374 /* The GNU C library defines this for functions which it implements
8375 to always fail with ENOSYS. Some functions are actually named
8376 something starting with __ and the normal name is an alias. */
8377 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8378 choke me
8379 #else
8380 char (*f) () = gethostbyname;
8381 #endif
8382 #ifdef __cplusplus
8384 #endif
8387 main ()
8389 return f != gethostbyname;
8391 return 0;
8393 _ACEOF
8394 rm -f conftest.$ac_objext conftest$ac_exeext
8395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8396 (eval $ac_link) 2>conftest.er1
8397 ac_status=$?
8398 grep -v '^ *+' conftest.er1 >conftest.err
8399 rm -f conftest.er1
8400 cat conftest.err >&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } &&
8403 { ac_try='test -z "$ac_c_werror_flag"
8404 || test ! -s conftest.err'
8405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8406 (eval $ac_try) 2>&5
8407 ac_status=$?
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); }; } &&
8410 { ac_try='test -s conftest$ac_exeext'
8411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8412 (eval $ac_try) 2>&5
8413 ac_status=$?
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); }; }; then
8416 ac_cv_func_gethostbyname=yes
8417 else
8418 echo "$as_me: failed program was:" >&5
8419 sed 's/^/| /' conftest.$ac_ext >&5
8421 ac_cv_func_gethostbyname=no
8423 rm -f conftest.err conftest.$ac_objext \
8424 conftest$ac_exeext conftest.$ac_ext
8426 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8427 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8429 if test $ac_cv_func_gethostbyname = no; then
8430 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8431 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8432 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8433 echo $ECHO_N "(cached) $ECHO_C" >&6
8434 else
8435 ac_check_lib_save_LIBS=$LIBS
8436 LIBS="-lnsl $LIBS"
8437 if test x$gcc_no_link = xyes; then
8438 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8439 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8440 { (exit 1); exit 1; }; }
8442 cat >conftest.$ac_ext <<_ACEOF
8443 /* confdefs.h. */
8444 _ACEOF
8445 cat confdefs.h >>conftest.$ac_ext
8446 cat >>conftest.$ac_ext <<_ACEOF
8447 /* end confdefs.h. */
8449 /* Override any gcc2 internal prototype to avoid an error. */
8450 #ifdef __cplusplus
8451 extern "C"
8452 #endif
8453 /* We use char because int might match the return type of a gcc2
8454 builtin and then its argument prototype would still apply. */
8455 char gethostbyname ();
8457 main ()
8459 gethostbyname ();
8461 return 0;
8463 _ACEOF
8464 rm -f conftest.$ac_objext conftest$ac_exeext
8465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8466 (eval $ac_link) 2>conftest.er1
8467 ac_status=$?
8468 grep -v '^ *+' conftest.er1 >conftest.err
8469 rm -f conftest.er1
8470 cat conftest.err >&5
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); } &&
8473 { ac_try='test -z "$ac_c_werror_flag"
8474 || test ! -s conftest.err'
8475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8476 (eval $ac_try) 2>&5
8477 ac_status=$?
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); }; } &&
8480 { ac_try='test -s conftest$ac_exeext'
8481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8482 (eval $ac_try) 2>&5
8483 ac_status=$?
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); }; }; then
8486 ac_cv_lib_nsl_gethostbyname=yes
8487 else
8488 echo "$as_me: failed program was:" >&5
8489 sed 's/^/| /' conftest.$ac_ext >&5
8491 ac_cv_lib_nsl_gethostbyname=no
8493 rm -f conftest.err conftest.$ac_objext \
8494 conftest$ac_exeext conftest.$ac_ext
8495 LIBS=$ac_check_lib_save_LIBS
8497 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8498 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8499 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8500 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8503 if test $ac_cv_lib_nsl_gethostbyname = no; then
8504 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8505 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8506 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8507 echo $ECHO_N "(cached) $ECHO_C" >&6
8508 else
8509 ac_check_lib_save_LIBS=$LIBS
8510 LIBS="-lbsd $LIBS"
8511 if test x$gcc_no_link = xyes; then
8512 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8513 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8514 { (exit 1); exit 1; }; }
8516 cat >conftest.$ac_ext <<_ACEOF
8517 /* confdefs.h. */
8518 _ACEOF
8519 cat confdefs.h >>conftest.$ac_ext
8520 cat >>conftest.$ac_ext <<_ACEOF
8521 /* end confdefs.h. */
8523 /* Override any gcc2 internal prototype to avoid an error. */
8524 #ifdef __cplusplus
8525 extern "C"
8526 #endif
8527 /* We use char because int might match the return type of a gcc2
8528 builtin and then its argument prototype would still apply. */
8529 char gethostbyname ();
8531 main ()
8533 gethostbyname ();
8535 return 0;
8537 _ACEOF
8538 rm -f conftest.$ac_objext conftest$ac_exeext
8539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8540 (eval $ac_link) 2>conftest.er1
8541 ac_status=$?
8542 grep -v '^ *+' conftest.er1 >conftest.err
8543 rm -f conftest.er1
8544 cat conftest.err >&5
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); } &&
8547 { ac_try='test -z "$ac_c_werror_flag"
8548 || test ! -s conftest.err'
8549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8550 (eval $ac_try) 2>&5
8551 ac_status=$?
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); }; } &&
8554 { ac_try='test -s conftest$ac_exeext'
8555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8556 (eval $ac_try) 2>&5
8557 ac_status=$?
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); }; }; then
8560 ac_cv_lib_bsd_gethostbyname=yes
8561 else
8562 echo "$as_me: failed program was:" >&5
8563 sed 's/^/| /' conftest.$ac_ext >&5
8565 ac_cv_lib_bsd_gethostbyname=no
8567 rm -f conftest.err conftest.$ac_objext \
8568 conftest$ac_exeext conftest.$ac_ext
8569 LIBS=$ac_check_lib_save_LIBS
8571 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8572 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8573 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8574 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8580 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8581 # socket/setsockopt and other routines are undefined under SCO ODT
8582 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8583 # on later versions), says Simon Leinen: it contains gethostby*
8584 # variants that don't use the name server (or something). -lsocket
8585 # must be given before -lnsl if both are needed. We assume that
8586 # if connect needs -lnsl, so does gethostbyname.
8587 echo "$as_me:$LINENO: checking for connect" >&5
8588 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8589 if test "${ac_cv_func_connect+set}" = set; then
8590 echo $ECHO_N "(cached) $ECHO_C" >&6
8591 else
8592 if test x$gcc_no_link = xyes; then
8593 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8594 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8595 { (exit 1); exit 1; }; }
8597 cat >conftest.$ac_ext <<_ACEOF
8598 /* confdefs.h. */
8599 _ACEOF
8600 cat confdefs.h >>conftest.$ac_ext
8601 cat >>conftest.$ac_ext <<_ACEOF
8602 /* end confdefs.h. */
8603 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
8604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8605 #define connect innocuous_connect
8607 /* System header to define __stub macros and hopefully few prototypes,
8608 which can conflict with char connect (); below.
8609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8610 <limits.h> exists even on freestanding compilers. */
8612 #ifdef __STDC__
8613 # include <limits.h>
8614 #else
8615 # include <assert.h>
8616 #endif
8618 #undef connect
8620 /* Override any gcc2 internal prototype to avoid an error. */
8621 #ifdef __cplusplus
8622 extern "C"
8624 #endif
8625 /* We use char because int might match the return type of a gcc2
8626 builtin and then its argument prototype would still apply. */
8627 char connect ();
8628 /* The GNU C library defines this for functions which it implements
8629 to always fail with ENOSYS. Some functions are actually named
8630 something starting with __ and the normal name is an alias. */
8631 #if defined (__stub_connect) || defined (__stub___connect)
8632 choke me
8633 #else
8634 char (*f) () = connect;
8635 #endif
8636 #ifdef __cplusplus
8638 #endif
8641 main ()
8643 return f != connect;
8645 return 0;
8647 _ACEOF
8648 rm -f conftest.$ac_objext conftest$ac_exeext
8649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8650 (eval $ac_link) 2>conftest.er1
8651 ac_status=$?
8652 grep -v '^ *+' conftest.er1 >conftest.err
8653 rm -f conftest.er1
8654 cat conftest.err >&5
8655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656 (exit $ac_status); } &&
8657 { ac_try='test -z "$ac_c_werror_flag"
8658 || test ! -s conftest.err'
8659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8660 (eval $ac_try) 2>&5
8661 ac_status=$?
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); }; } &&
8664 { ac_try='test -s conftest$ac_exeext'
8665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8666 (eval $ac_try) 2>&5
8667 ac_status=$?
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); }; }; then
8670 ac_cv_func_connect=yes
8671 else
8672 echo "$as_me: failed program was:" >&5
8673 sed 's/^/| /' conftest.$ac_ext >&5
8675 ac_cv_func_connect=no
8677 rm -f conftest.err conftest.$ac_objext \
8678 conftest$ac_exeext conftest.$ac_ext
8680 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8681 echo "${ECHO_T}$ac_cv_func_connect" >&6
8683 if test $ac_cv_func_connect = no; then
8684 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8685 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8686 if test "${ac_cv_lib_socket_connect+set}" = set; then
8687 echo $ECHO_N "(cached) $ECHO_C" >&6
8688 else
8689 ac_check_lib_save_LIBS=$LIBS
8690 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8691 if test x$gcc_no_link = xyes; then
8692 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8693 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8694 { (exit 1); exit 1; }; }
8696 cat >conftest.$ac_ext <<_ACEOF
8697 /* confdefs.h. */
8698 _ACEOF
8699 cat confdefs.h >>conftest.$ac_ext
8700 cat >>conftest.$ac_ext <<_ACEOF
8701 /* end confdefs.h. */
8703 /* Override any gcc2 internal prototype to avoid an error. */
8704 #ifdef __cplusplus
8705 extern "C"
8706 #endif
8707 /* We use char because int might match the return type of a gcc2
8708 builtin and then its argument prototype would still apply. */
8709 char connect ();
8711 main ()
8713 connect ();
8715 return 0;
8717 _ACEOF
8718 rm -f conftest.$ac_objext conftest$ac_exeext
8719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8720 (eval $ac_link) 2>conftest.er1
8721 ac_status=$?
8722 grep -v '^ *+' conftest.er1 >conftest.err
8723 rm -f conftest.er1
8724 cat conftest.err >&5
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); } &&
8727 { ac_try='test -z "$ac_c_werror_flag"
8728 || test ! -s conftest.err'
8729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8730 (eval $ac_try) 2>&5
8731 ac_status=$?
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); }; } &&
8734 { ac_try='test -s conftest$ac_exeext'
8735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8736 (eval $ac_try) 2>&5
8737 ac_status=$?
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); }; }; then
8740 ac_cv_lib_socket_connect=yes
8741 else
8742 echo "$as_me: failed program was:" >&5
8743 sed 's/^/| /' conftest.$ac_ext >&5
8745 ac_cv_lib_socket_connect=no
8747 rm -f conftest.err conftest.$ac_objext \
8748 conftest$ac_exeext conftest.$ac_ext
8749 LIBS=$ac_check_lib_save_LIBS
8751 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8752 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8753 if test $ac_cv_lib_socket_connect = yes; then
8754 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8759 # Guillermo Gomez says -lposix is necessary on A/UX.
8760 echo "$as_me:$LINENO: checking for remove" >&5
8761 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8762 if test "${ac_cv_func_remove+set}" = set; then
8763 echo $ECHO_N "(cached) $ECHO_C" >&6
8764 else
8765 if test x$gcc_no_link = xyes; then
8766 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8767 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8768 { (exit 1); exit 1; }; }
8770 cat >conftest.$ac_ext <<_ACEOF
8771 /* confdefs.h. */
8772 _ACEOF
8773 cat confdefs.h >>conftest.$ac_ext
8774 cat >>conftest.$ac_ext <<_ACEOF
8775 /* end confdefs.h. */
8776 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
8777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8778 #define remove innocuous_remove
8780 /* System header to define __stub macros and hopefully few prototypes,
8781 which can conflict with char remove (); below.
8782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8783 <limits.h> exists even on freestanding compilers. */
8785 #ifdef __STDC__
8786 # include <limits.h>
8787 #else
8788 # include <assert.h>
8789 #endif
8791 #undef remove
8793 /* Override any gcc2 internal prototype to avoid an error. */
8794 #ifdef __cplusplus
8795 extern "C"
8797 #endif
8798 /* We use char because int might match the return type of a gcc2
8799 builtin and then its argument prototype would still apply. */
8800 char remove ();
8801 /* The GNU C library defines this for functions which it implements
8802 to always fail with ENOSYS. Some functions are actually named
8803 something starting with __ and the normal name is an alias. */
8804 #if defined (__stub_remove) || defined (__stub___remove)
8805 choke me
8806 #else
8807 char (*f) () = remove;
8808 #endif
8809 #ifdef __cplusplus
8811 #endif
8814 main ()
8816 return f != remove;
8818 return 0;
8820 _ACEOF
8821 rm -f conftest.$ac_objext conftest$ac_exeext
8822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8823 (eval $ac_link) 2>conftest.er1
8824 ac_status=$?
8825 grep -v '^ *+' conftest.er1 >conftest.err
8826 rm -f conftest.er1
8827 cat conftest.err >&5
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); } &&
8830 { ac_try='test -z "$ac_c_werror_flag"
8831 || test ! -s conftest.err'
8832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8833 (eval $ac_try) 2>&5
8834 ac_status=$?
8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); }; } &&
8837 { ac_try='test -s conftest$ac_exeext'
8838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8839 (eval $ac_try) 2>&5
8840 ac_status=$?
8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 (exit $ac_status); }; }; then
8843 ac_cv_func_remove=yes
8844 else
8845 echo "$as_me: failed program was:" >&5
8846 sed 's/^/| /' conftest.$ac_ext >&5
8848 ac_cv_func_remove=no
8850 rm -f conftest.err conftest.$ac_objext \
8851 conftest$ac_exeext conftest.$ac_ext
8853 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8854 echo "${ECHO_T}$ac_cv_func_remove" >&6
8856 if test $ac_cv_func_remove = no; then
8857 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8858 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8859 if test "${ac_cv_lib_posix_remove+set}" = set; then
8860 echo $ECHO_N "(cached) $ECHO_C" >&6
8861 else
8862 ac_check_lib_save_LIBS=$LIBS
8863 LIBS="-lposix $LIBS"
8864 if test x$gcc_no_link = xyes; then
8865 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8866 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8867 { (exit 1); exit 1; }; }
8869 cat >conftest.$ac_ext <<_ACEOF
8870 /* confdefs.h. */
8871 _ACEOF
8872 cat confdefs.h >>conftest.$ac_ext
8873 cat >>conftest.$ac_ext <<_ACEOF
8874 /* end confdefs.h. */
8876 /* Override any gcc2 internal prototype to avoid an error. */
8877 #ifdef __cplusplus
8878 extern "C"
8879 #endif
8880 /* We use char because int might match the return type of a gcc2
8881 builtin and then its argument prototype would still apply. */
8882 char remove ();
8884 main ()
8886 remove ();
8888 return 0;
8890 _ACEOF
8891 rm -f conftest.$ac_objext conftest$ac_exeext
8892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8893 (eval $ac_link) 2>conftest.er1
8894 ac_status=$?
8895 grep -v '^ *+' conftest.er1 >conftest.err
8896 rm -f conftest.er1
8897 cat conftest.err >&5
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); } &&
8900 { ac_try='test -z "$ac_c_werror_flag"
8901 || test ! -s conftest.err'
8902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8903 (eval $ac_try) 2>&5
8904 ac_status=$?
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); }; } &&
8907 { ac_try='test -s conftest$ac_exeext'
8908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8909 (eval $ac_try) 2>&5
8910 ac_status=$?
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); }; }; then
8913 ac_cv_lib_posix_remove=yes
8914 else
8915 echo "$as_me: failed program was:" >&5
8916 sed 's/^/| /' conftest.$ac_ext >&5
8918 ac_cv_lib_posix_remove=no
8920 rm -f conftest.err conftest.$ac_objext \
8921 conftest$ac_exeext conftest.$ac_ext
8922 LIBS=$ac_check_lib_save_LIBS
8924 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8925 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8926 if test $ac_cv_lib_posix_remove = yes; then
8927 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8932 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8933 echo "$as_me:$LINENO: checking for shmat" >&5
8934 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8935 if test "${ac_cv_func_shmat+set}" = set; then
8936 echo $ECHO_N "(cached) $ECHO_C" >&6
8937 else
8938 if test x$gcc_no_link = xyes; then
8939 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8940 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8941 { (exit 1); exit 1; }; }
8943 cat >conftest.$ac_ext <<_ACEOF
8944 /* confdefs.h. */
8945 _ACEOF
8946 cat confdefs.h >>conftest.$ac_ext
8947 cat >>conftest.$ac_ext <<_ACEOF
8948 /* end confdefs.h. */
8949 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
8950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8951 #define shmat innocuous_shmat
8953 /* System header to define __stub macros and hopefully few prototypes,
8954 which can conflict with char shmat (); below.
8955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8956 <limits.h> exists even on freestanding compilers. */
8958 #ifdef __STDC__
8959 # include <limits.h>
8960 #else
8961 # include <assert.h>
8962 #endif
8964 #undef shmat
8966 /* Override any gcc2 internal prototype to avoid an error. */
8967 #ifdef __cplusplus
8968 extern "C"
8970 #endif
8971 /* We use char because int might match the return type of a gcc2
8972 builtin and then its argument prototype would still apply. */
8973 char shmat ();
8974 /* The GNU C library defines this for functions which it implements
8975 to always fail with ENOSYS. Some functions are actually named
8976 something starting with __ and the normal name is an alias. */
8977 #if defined (__stub_shmat) || defined (__stub___shmat)
8978 choke me
8979 #else
8980 char (*f) () = shmat;
8981 #endif
8982 #ifdef __cplusplus
8984 #endif
8987 main ()
8989 return f != shmat;
8991 return 0;
8993 _ACEOF
8994 rm -f conftest.$ac_objext conftest$ac_exeext
8995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8996 (eval $ac_link) 2>conftest.er1
8997 ac_status=$?
8998 grep -v '^ *+' conftest.er1 >conftest.err
8999 rm -f conftest.er1
9000 cat conftest.err >&5
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); } &&
9003 { ac_try='test -z "$ac_c_werror_flag"
9004 || test ! -s conftest.err'
9005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9006 (eval $ac_try) 2>&5
9007 ac_status=$?
9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 (exit $ac_status); }; } &&
9010 { ac_try='test -s conftest$ac_exeext'
9011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9012 (eval $ac_try) 2>&5
9013 ac_status=$?
9014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015 (exit $ac_status); }; }; then
9016 ac_cv_func_shmat=yes
9017 else
9018 echo "$as_me: failed program was:" >&5
9019 sed 's/^/| /' conftest.$ac_ext >&5
9021 ac_cv_func_shmat=no
9023 rm -f conftest.err conftest.$ac_objext \
9024 conftest$ac_exeext conftest.$ac_ext
9026 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9027 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9029 if test $ac_cv_func_shmat = no; then
9030 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9031 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9032 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9033 echo $ECHO_N "(cached) $ECHO_C" >&6
9034 else
9035 ac_check_lib_save_LIBS=$LIBS
9036 LIBS="-lipc $LIBS"
9037 if test x$gcc_no_link = xyes; then
9038 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9039 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9040 { (exit 1); exit 1; }; }
9042 cat >conftest.$ac_ext <<_ACEOF
9043 /* confdefs.h. */
9044 _ACEOF
9045 cat confdefs.h >>conftest.$ac_ext
9046 cat >>conftest.$ac_ext <<_ACEOF
9047 /* end confdefs.h. */
9049 /* Override any gcc2 internal prototype to avoid an error. */
9050 #ifdef __cplusplus
9051 extern "C"
9052 #endif
9053 /* We use char because int might match the return type of a gcc2
9054 builtin and then its argument prototype would still apply. */
9055 char shmat ();
9057 main ()
9059 shmat ();
9061 return 0;
9063 _ACEOF
9064 rm -f conftest.$ac_objext conftest$ac_exeext
9065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9066 (eval $ac_link) 2>conftest.er1
9067 ac_status=$?
9068 grep -v '^ *+' conftest.er1 >conftest.err
9069 rm -f conftest.er1
9070 cat conftest.err >&5
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); } &&
9073 { ac_try='test -z "$ac_c_werror_flag"
9074 || test ! -s conftest.err'
9075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9076 (eval $ac_try) 2>&5
9077 ac_status=$?
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 (exit $ac_status); }; } &&
9080 { ac_try='test -s conftest$ac_exeext'
9081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9082 (eval $ac_try) 2>&5
9083 ac_status=$?
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); }; }; then
9086 ac_cv_lib_ipc_shmat=yes
9087 else
9088 echo "$as_me: failed program was:" >&5
9089 sed 's/^/| /' conftest.$ac_ext >&5
9091 ac_cv_lib_ipc_shmat=no
9093 rm -f conftest.err conftest.$ac_objext \
9094 conftest$ac_exeext conftest.$ac_ext
9095 LIBS=$ac_check_lib_save_LIBS
9097 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9098 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9099 if test $ac_cv_lib_ipc_shmat = yes; then
9100 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9106 # Check for libraries that X11R6 Xt/Xaw programs need.
9107 ac_save_LDFLAGS=$LDFLAGS
9108 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9109 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9110 # check for ICE first), but we must link in the order -lSM -lICE or
9111 # we get undefined symbols. So assume we have SM if we have ICE.
9112 # These have to be linked with before -lX11, unlike the other
9113 # libraries we check for below, so use a different variable.
9114 # John Interrante, Karl Berry
9115 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9116 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9117 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9118 echo $ECHO_N "(cached) $ECHO_C" >&6
9119 else
9120 ac_check_lib_save_LIBS=$LIBS
9121 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9122 if test x$gcc_no_link = xyes; then
9123 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9124 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9125 { (exit 1); exit 1; }; }
9127 cat >conftest.$ac_ext <<_ACEOF
9128 /* confdefs.h. */
9129 _ACEOF
9130 cat confdefs.h >>conftest.$ac_ext
9131 cat >>conftest.$ac_ext <<_ACEOF
9132 /* end confdefs.h. */
9134 /* Override any gcc2 internal prototype to avoid an error. */
9135 #ifdef __cplusplus
9136 extern "C"
9137 #endif
9138 /* We use char because int might match the return type of a gcc2
9139 builtin and then its argument prototype would still apply. */
9140 char IceConnectionNumber ();
9142 main ()
9144 IceConnectionNumber ();
9146 return 0;
9148 _ACEOF
9149 rm -f conftest.$ac_objext conftest$ac_exeext
9150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9151 (eval $ac_link) 2>conftest.er1
9152 ac_status=$?
9153 grep -v '^ *+' conftest.er1 >conftest.err
9154 rm -f conftest.er1
9155 cat conftest.err >&5
9156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 (exit $ac_status); } &&
9158 { ac_try='test -z "$ac_c_werror_flag"
9159 || test ! -s conftest.err'
9160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9161 (eval $ac_try) 2>&5
9162 ac_status=$?
9163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164 (exit $ac_status); }; } &&
9165 { ac_try='test -s conftest$ac_exeext'
9166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9167 (eval $ac_try) 2>&5
9168 ac_status=$?
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); }; }; then
9171 ac_cv_lib_ICE_IceConnectionNumber=yes
9172 else
9173 echo "$as_me: failed program was:" >&5
9174 sed 's/^/| /' conftest.$ac_ext >&5
9176 ac_cv_lib_ICE_IceConnectionNumber=no
9178 rm -f conftest.err conftest.$ac_objext \
9179 conftest$ac_exeext conftest.$ac_ext
9180 LIBS=$ac_check_lib_save_LIBS
9182 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9183 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9184 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9185 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9188 LDFLAGS=$ac_save_LDFLAGS
9193 # FIXME: this should be _libs on some hosts.
9194 libsubdir=.libs
9196 # extra LD Flags which are required for targets
9197 case "${host}" in
9198 *-*-darwin[0-7].*)
9199 # For now we have to disable it on darwin[8-9] because it slows down
9200 # the linking phase. A possible bug in ld?
9201 # on Darwin -single_module speeds up loading of the dynamic libraries.
9202 extra_ldflags_libjava=-Wl,-single_module
9204 esac
9207 # Allow the GC to be disabled. Can be useful when debugging.
9208 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
9209 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
9210 # Check whether --enable-java-gc or --disable-java-gc was given.
9211 if test "${enable_java_gc+set}" = set; then
9212 enableval="$enable_java_gc"
9213 GC=$enableval
9214 else
9215 GC=boehm
9217 GCLIBS=
9218 GCINCS=
9219 GCDEPS=
9220 GCSPEC=
9221 JC1GCSPEC=
9222 GCTESTSPEC=
9223 case "$GC" in
9224 boehm)
9225 echo "$as_me:$LINENO: result: boehm" >&5
9226 echo "${ECHO_T}boehm" >&6
9227 GCLIBS=../boehm-gc/libgcjgc_convenience.la
9228 JC1GCSPEC='-fuse-boehm-gc'
9229 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
9230 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
9231 GCOBJS=boehm.lo
9232 GCHDR=boehm-gc.h
9233 # The POSIX thread support needs to know this.
9235 cat >>confdefs.h <<\_ACEOF
9236 #define HAVE_BOEHM_GC 1
9237 _ACEOF
9241 echo "$as_me:$LINENO: result: none" >&5
9242 echo "${ECHO_T}none" >&6
9243 GCHDR=no-gc.h
9246 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
9247 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
9248 { (exit 1); exit 1; }; }
9250 esac
9257 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
9261 if test "$GC" = boehm; then
9262 USING_BOEHMGC_TRUE=
9263 USING_BOEHMGC_FALSE='#'
9264 else
9265 USING_BOEHMGC_TRUE='#'
9266 USING_BOEHMGC_FALSE=
9271 if test "$GC" = no; then
9272 USING_NOGC_TRUE=
9273 USING_NOGC_FALSE='#'
9274 else
9275 USING_NOGC_TRUE='#'
9276 USING_NOGC_FALSE=
9281 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
9282 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
9283 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
9284 echo "$as_me:$LINENO: result: $THREADS" >&5
9285 echo "${ECHO_T}$THREADS" >&6
9287 case "$THREADS" in
9288 no | none | single)
9289 THREADS=none
9291 posix | posix95 | pthreads)
9292 THREADS=posix
9293 case "$host" in
9294 *-*-linux*)
9296 cat >>confdefs.h <<\_ACEOF
9297 #define LINUX_THREADS 1
9298 _ACEOF
9301 esac
9303 win32)
9305 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
9306 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
9307 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
9308 { (exit 1); exit 1; }; }
9311 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
9312 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
9313 { (exit 1); exit 1; }; }
9315 esac
9317 THREADCXXFLAGS=
9318 THREADLDFLAGS=
9319 THREADLIBS=
9320 THREADINCS=
9321 THREADDEPS=
9322 THREADH=
9323 THREADSPEC=
9324 THREADSTARTFILESPEC=
9325 case "$THREADS" in
9326 posix)
9327 case "$host" in
9328 *-*-cygwin*)
9329 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
9331 *-*-freebsd[1234]*)
9332 # Before FreeBSD 5, it didn't have -lpthread (or any library which
9333 # merely adds pthread_* functions) but it does have a -pthread switch
9334 # which is required at link-time to select -lc_r *instead* of -lc.
9335 THREADLDFLAGS=-pthread
9336 # Don't set THREADSPEC here as might be expected since -pthread is
9337 # not processed when found within a spec file, it must come from
9338 # the command line. For now, the user must provide the -pthread
9339 # switch to link code compiled with gcj. In future, consider adding
9340 # support for weak references to pthread_* functions ala gthr.h API.
9341 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
9343 *-*-freebsd*)
9344 # FreeBSD >=5.3 implements a model much closer to other modern UNIX
9345 # systems which support threads and -lpthread.
9346 THREADLDFLAGS=-pthread
9347 THREADSPEC=-lpthread
9349 alpha*-dec-osf* | hppa*-hp-hpux*)
9350 THREADCXXFLAGS=-pthread
9351 # boehm-gc needs some functions from librt, so link that too.
9352 THREADLIBS='-lpthread -lrt'
9353 THREADSPEC='-lpthread -lrt'
9356 THREADLIBS=-lpthread
9357 THREADSPEC=-lpthread
9359 esac
9360 THREADH=posix-threads.h
9361 # MIT pthreads doesn't seem to have the mutexattr functions.
9362 # But for now we don't check for it. We just assume you aren't
9363 # using MIT pthreads.
9365 cat >>confdefs.h <<\_ACEOF
9366 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9367 _ACEOF
9370 # If we're using the Boehm GC, then we happen to know that it
9371 # defines _REENTRANT, so we don't bother. Eww.
9372 if test "$GC" != boehm; then
9374 cat >>confdefs.h <<\_ACEOF
9375 #define _REENTRANT 1
9376 _ACEOF
9380 cat >>confdefs.h <<\_ACEOF
9381 #define _POSIX_PTHREAD_SEMANTICS 1
9382 _ACEOF
9386 win32)
9387 THREADH=win32-threads.h
9388 THREADCXXFLAGS=-mthreads
9389 # We need thread-safe exception handling so _CRT_MT should be set to 1.
9390 # But we do not want the executables created to be dependent on
9391 # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
9392 # exception handling contexts. The following kludge achieves this effect
9393 # and causes a dummy __mingwthr_key_dtor() to be linked in from
9394 # libmingw32.a. This causes a memory leak of about 24 bytes per thread.
9395 # A workaround is to explicitly use -mthreads while linking Java programs.
9396 # See PR libgcj/28263.
9398 # FIXME: In Java we are able to detect thread death at the end of
9399 # Thread.run() so we should be able to clean up the exception handling
9400 # contexts ourselves.
9401 THREADSTARTFILESPEC='crtmt%O%s'
9404 none)
9405 THREADH=no-threads.h
9407 esac
9408 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
9419 if test "$THREADS" = posix; then
9420 USING_POSIX_THREADS_TRUE=
9421 USING_POSIX_THREADS_FALSE='#'
9422 else
9423 USING_POSIX_THREADS_TRUE='#'
9424 USING_POSIX_THREADS_FALSE=
9429 if test "$THREADS" = win32; then
9430 USING_WIN32_THREADS_TRUE=
9431 USING_WIN32_THREADS_FALSE='#'
9432 else
9433 USING_WIN32_THREADS_TRUE='#'
9434 USING_WIN32_THREADS_FALSE=
9439 if test "$THREADS" = none; then
9440 USING_NO_THREADS_TRUE=
9441 USING_NO_THREADS_FALSE='#'
9442 else
9443 USING_NO_THREADS_TRUE='#'
9444 USING_NO_THREADS_FALSE=
9449 if test "$use_libgcj_bc" = yes; then
9450 USE_LIBGCJ_BC_TRUE=
9451 USE_LIBGCJ_BC_FALSE='#'
9452 else
9453 USE_LIBGCJ_BC_TRUE='#'
9454 USE_LIBGCJ_BC_FALSE=
9458 if test -d sysdep; then true; else mkdir sysdep; fi
9459 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
9461 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
9463 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
9466 LIBGCJ_SPEC="%{s-bc-abi:} -lgcj"
9467 if test "$use_libgcj_bc" = yes; then
9468 LIBGCJ_SPEC="%{s-bc-abi:-lgcj_bc;:-lgcj}"
9472 HASH_SYNC_SPEC=
9473 # Hash synchronization is only useful with posix threads right now.
9474 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
9475 HASH_SYNC_SPEC=-fhash-synchronization
9477 cat >>confdefs.h <<\_ACEOF
9478 #define JV_HASH_SYNCHRONIZATION 1
9479 _ACEOF
9486 if test "$GCC" = yes; then
9487 USING_GCC_TRUE=
9488 USING_GCC_FALSE='#'
9489 else
9490 USING_GCC_TRUE='#'
9491 USING_GCC_FALSE=
9495 # We're in the tree with gcc, and need to include some of its headers.
9496 GCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../gcc'
9498 if test "x${with_newlib}" = "xyes"; then
9499 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
9500 # may not work correctly, because the compiler may not be able to
9501 # link executables.
9503 # We assume newlib. This lets us hard-code the functions we know
9504 # we'll have.
9506 cat >>confdefs.h <<\_ACEOF
9507 #define HAVE_MEMMOVE 1
9508 _ACEOF
9511 cat >>confdefs.h <<\_ACEOF
9512 #define HAVE_MEMCPY 1
9513 _ACEOF
9516 cat >>confdefs.h <<\_ACEOF
9517 #define HAVE_STRERROR 1
9518 _ACEOF
9521 cat >>confdefs.h <<\_ACEOF
9522 #define HAVE_TIME 1
9523 _ACEOF
9526 cat >>confdefs.h <<\_ACEOF
9527 #define HAVE_GMTIME_R 1
9528 _ACEOF
9531 cat >>confdefs.h <<\_ACEOF
9532 #define HAVE_LOCALTIME_R 1
9533 _ACEOF
9536 cat >>confdefs.h <<\_ACEOF
9537 #define HAVE_USLEEP_DECL 1
9538 _ACEOF
9540 # This is only for POSIX threads.
9542 cat >>confdefs.h <<\_ACEOF
9543 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9544 _ACEOF
9546 # We also assume we are using gcc, which provides alloca.
9547 cat >>confdefs.h <<\_ACEOF
9548 #define HAVE_ALLOCA 1
9549 _ACEOF
9552 # Assume we do not have getuid and friends.
9554 cat >>confdefs.h <<\_ACEOF
9555 #define NO_GETUID 1
9556 _ACEOF
9558 PLATFORMNET=NoNet
9559 else
9595 for ac_func in strerror ioctl select fstat open fsync sleep opendir \
9596 gmtime_r localtime_r readdir_r getpwuid_r getcwd \
9597 access stat lstat mkdir rename rmdir unlink utime chmod readlink \
9598 nl_langinfo setlocale \
9599 inet_pton uname inet_ntoa \
9600 fork execvp pipe sigaction ftruncate mmap \
9601 getifaddrs
9603 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9604 echo "$as_me:$LINENO: checking for $ac_func" >&5
9605 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9606 if eval "test \"\${$as_ac_var+set}\" = set"; then
9607 echo $ECHO_N "(cached) $ECHO_C" >&6
9608 else
9609 if test x$gcc_no_link = xyes; then
9610 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9611 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9612 { (exit 1); exit 1; }; }
9614 cat >conftest.$ac_ext <<_ACEOF
9615 /* confdefs.h. */
9616 _ACEOF
9617 cat confdefs.h >>conftest.$ac_ext
9618 cat >>conftest.$ac_ext <<_ACEOF
9619 /* end confdefs.h. */
9620 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9622 #define $ac_func innocuous_$ac_func
9624 /* System header to define __stub macros and hopefully few prototypes,
9625 which can conflict with char $ac_func (); below.
9626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9627 <limits.h> exists even on freestanding compilers. */
9629 #ifdef __STDC__
9630 # include <limits.h>
9631 #else
9632 # include <assert.h>
9633 #endif
9635 #undef $ac_func
9637 /* Override any gcc2 internal prototype to avoid an error. */
9638 #ifdef __cplusplus
9639 extern "C"
9641 #endif
9642 /* We use char because int might match the return type of a gcc2
9643 builtin and then its argument prototype would still apply. */
9644 char $ac_func ();
9645 /* The GNU C library defines this for functions which it implements
9646 to always fail with ENOSYS. Some functions are actually named
9647 something starting with __ and the normal name is an alias. */
9648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9649 choke me
9650 #else
9651 char (*f) () = $ac_func;
9652 #endif
9653 #ifdef __cplusplus
9655 #endif
9658 main ()
9660 return f != $ac_func;
9662 return 0;
9664 _ACEOF
9665 rm -f conftest.$ac_objext conftest$ac_exeext
9666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9667 (eval $ac_link) 2>conftest.er1
9668 ac_status=$?
9669 grep -v '^ *+' conftest.er1 >conftest.err
9670 rm -f conftest.er1
9671 cat conftest.err >&5
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); } &&
9674 { ac_try='test -z "$ac_c_werror_flag"
9675 || test ! -s conftest.err'
9676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9677 (eval $ac_try) 2>&5
9678 ac_status=$?
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); }; } &&
9681 { ac_try='test -s conftest$ac_exeext'
9682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9683 (eval $ac_try) 2>&5
9684 ac_status=$?
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); }; }; then
9687 eval "$as_ac_var=yes"
9688 else
9689 echo "$as_me: failed program was:" >&5
9690 sed 's/^/| /' conftest.$ac_ext >&5
9692 eval "$as_ac_var=no"
9694 rm -f conftest.err conftest.$ac_objext \
9695 conftest$ac_exeext conftest.$ac_ext
9697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9698 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9699 if test `eval echo '${'$as_ac_var'}'` = yes; then
9700 cat >>confdefs.h <<_ACEOF
9701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9702 _ACEOF
9705 done
9709 for ac_func in inet_aton inet_addr
9711 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9712 echo "$as_me:$LINENO: checking for $ac_func" >&5
9713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9714 if eval "test \"\${$as_ac_var+set}\" = set"; then
9715 echo $ECHO_N "(cached) $ECHO_C" >&6
9716 else
9717 if test x$gcc_no_link = xyes; then
9718 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9719 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9720 { (exit 1); exit 1; }; }
9722 cat >conftest.$ac_ext <<_ACEOF
9723 /* confdefs.h. */
9724 _ACEOF
9725 cat confdefs.h >>conftest.$ac_ext
9726 cat >>conftest.$ac_ext <<_ACEOF
9727 /* end confdefs.h. */
9728 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9730 #define $ac_func innocuous_$ac_func
9732 /* System header to define __stub macros and hopefully few prototypes,
9733 which can conflict with char $ac_func (); below.
9734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9735 <limits.h> exists even on freestanding compilers. */
9737 #ifdef __STDC__
9738 # include <limits.h>
9739 #else
9740 # include <assert.h>
9741 #endif
9743 #undef $ac_func
9745 /* Override any gcc2 internal prototype to avoid an error. */
9746 #ifdef __cplusplus
9747 extern "C"
9749 #endif
9750 /* We use char because int might match the return type of a gcc2
9751 builtin and then its argument prototype would still apply. */
9752 char $ac_func ();
9753 /* The GNU C library defines this for functions which it implements
9754 to always fail with ENOSYS. Some functions are actually named
9755 something starting with __ and the normal name is an alias. */
9756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9757 choke me
9758 #else
9759 char (*f) () = $ac_func;
9760 #endif
9761 #ifdef __cplusplus
9763 #endif
9766 main ()
9768 return f != $ac_func;
9770 return 0;
9772 _ACEOF
9773 rm -f conftest.$ac_objext conftest$ac_exeext
9774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9775 (eval $ac_link) 2>conftest.er1
9776 ac_status=$?
9777 grep -v '^ *+' conftest.er1 >conftest.err
9778 rm -f conftest.er1
9779 cat conftest.err >&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); } &&
9782 { ac_try='test -z "$ac_c_werror_flag"
9783 || test ! -s conftest.err'
9784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9785 (eval $ac_try) 2>&5
9786 ac_status=$?
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); }; } &&
9789 { ac_try='test -s conftest$ac_exeext'
9790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9791 (eval $ac_try) 2>&5
9792 ac_status=$?
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); }; }; then
9795 eval "$as_ac_var=yes"
9796 else
9797 echo "$as_me: failed program was:" >&5
9798 sed 's/^/| /' conftest.$ac_ext >&5
9800 eval "$as_ac_var=no"
9802 rm -f conftest.err conftest.$ac_objext \
9803 conftest$ac_exeext conftest.$ac_ext
9805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9806 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9807 if test `eval echo '${'$as_ac_var'}'` = yes; then
9808 cat >>confdefs.h <<_ACEOF
9809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9810 _ACEOF
9811 break
9813 done
9815 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9816 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9817 if test "${ac_cv_header_stdc+set}" = set; then
9818 echo $ECHO_N "(cached) $ECHO_C" >&6
9819 else
9820 cat >conftest.$ac_ext <<_ACEOF
9821 /* confdefs.h. */
9822 _ACEOF
9823 cat confdefs.h >>conftest.$ac_ext
9824 cat >>conftest.$ac_ext <<_ACEOF
9825 /* end confdefs.h. */
9826 #include <stdlib.h>
9827 #include <stdarg.h>
9828 #include <string.h>
9829 #include <float.h>
9832 main ()
9836 return 0;
9838 _ACEOF
9839 rm -f conftest.$ac_objext
9840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9841 (eval $ac_compile) 2>conftest.er1
9842 ac_status=$?
9843 grep -v '^ *+' conftest.er1 >conftest.err
9844 rm -f conftest.er1
9845 cat conftest.err >&5
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); } &&
9848 { ac_try='test -z "$ac_c_werror_flag"
9849 || test ! -s conftest.err'
9850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9851 (eval $ac_try) 2>&5
9852 ac_status=$?
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); }; } &&
9855 { ac_try='test -s conftest.$ac_objext'
9856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9857 (eval $ac_try) 2>&5
9858 ac_status=$?
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); }; }; then
9861 ac_cv_header_stdc=yes
9862 else
9863 echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.$ac_ext >&5
9866 ac_cv_header_stdc=no
9868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9870 if test $ac_cv_header_stdc = yes; then
9871 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9872 cat >conftest.$ac_ext <<_ACEOF
9873 /* confdefs.h. */
9874 _ACEOF
9875 cat confdefs.h >>conftest.$ac_ext
9876 cat >>conftest.$ac_ext <<_ACEOF
9877 /* end confdefs.h. */
9878 #include <string.h>
9880 _ACEOF
9881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9882 $EGREP "memchr" >/dev/null 2>&1; then
9884 else
9885 ac_cv_header_stdc=no
9887 rm -f conftest*
9891 if test $ac_cv_header_stdc = yes; then
9892 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9893 cat >conftest.$ac_ext <<_ACEOF
9894 /* confdefs.h. */
9895 _ACEOF
9896 cat confdefs.h >>conftest.$ac_ext
9897 cat >>conftest.$ac_ext <<_ACEOF
9898 /* end confdefs.h. */
9899 #include <stdlib.h>
9901 _ACEOF
9902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9903 $EGREP "free" >/dev/null 2>&1; then
9905 else
9906 ac_cv_header_stdc=no
9908 rm -f conftest*
9912 if test $ac_cv_header_stdc = yes; then
9913 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9914 if test "$cross_compiling" = yes; then
9916 else
9917 cat >conftest.$ac_ext <<_ACEOF
9918 /* confdefs.h. */
9919 _ACEOF
9920 cat confdefs.h >>conftest.$ac_ext
9921 cat >>conftest.$ac_ext <<_ACEOF
9922 /* end confdefs.h. */
9923 #include <ctype.h>
9924 #if ((' ' & 0x0FF) == 0x020)
9925 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9926 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9927 #else
9928 # define ISLOWER(c) \
9929 (('a' <= (c) && (c) <= 'i') \
9930 || ('j' <= (c) && (c) <= 'r') \
9931 || ('s' <= (c) && (c) <= 'z'))
9932 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9933 #endif
9935 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9937 main ()
9939 int i;
9940 for (i = 0; i < 256; i++)
9941 if (XOR (islower (i), ISLOWER (i))
9942 || toupper (i) != TOUPPER (i))
9943 exit(2);
9944 exit (0);
9946 _ACEOF
9947 rm -f conftest$ac_exeext
9948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9949 (eval $ac_link) 2>&5
9950 ac_status=$?
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9954 (eval $ac_try) 2>&5
9955 ac_status=$?
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); }; }; then
9959 else
9960 echo "$as_me: program exited with status $ac_status" >&5
9961 echo "$as_me: failed program was:" >&5
9962 sed 's/^/| /' conftest.$ac_ext >&5
9964 ( exit $ac_status )
9965 ac_cv_header_stdc=no
9967 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9971 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9972 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9973 if test $ac_cv_header_stdc = yes; then
9975 cat >>confdefs.h <<\_ACEOF
9976 #define STDC_HEADERS 1
9977 _ACEOF
9981 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9991 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9992 inttypes.h stdint.h unistd.h
9994 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9995 echo "$as_me:$LINENO: checking for $ac_header" >&5
9996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9998 echo $ECHO_N "(cached) $ECHO_C" >&6
9999 else
10000 cat >conftest.$ac_ext <<_ACEOF
10001 /* confdefs.h. */
10002 _ACEOF
10003 cat confdefs.h >>conftest.$ac_ext
10004 cat >>conftest.$ac_ext <<_ACEOF
10005 /* end confdefs.h. */
10006 $ac_includes_default
10008 #include <$ac_header>
10009 _ACEOF
10010 rm -f conftest.$ac_objext
10011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10012 (eval $ac_compile) 2>conftest.er1
10013 ac_status=$?
10014 grep -v '^ *+' conftest.er1 >conftest.err
10015 rm -f conftest.er1
10016 cat conftest.err >&5
10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018 (exit $ac_status); } &&
10019 { ac_try='test -z "$ac_c_werror_flag"
10020 || test ! -s conftest.err'
10021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10022 (eval $ac_try) 2>&5
10023 ac_status=$?
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); }; } &&
10026 { ac_try='test -s conftest.$ac_objext'
10027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10028 (eval $ac_try) 2>&5
10029 ac_status=$?
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); }; }; then
10032 eval "$as_ac_Header=yes"
10033 else
10034 echo "$as_me: failed program was:" >&5
10035 sed 's/^/| /' conftest.$ac_ext >&5
10037 eval "$as_ac_Header=no"
10039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10042 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10044 cat >>confdefs.h <<_ACEOF
10045 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10046 _ACEOF
10050 done
10056 for ac_header in execinfo.h unistd.h dlfcn.h
10058 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10060 echo "$as_me:$LINENO: checking for $ac_header" >&5
10061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10063 echo $ECHO_N "(cached) $ECHO_C" >&6
10065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10066 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10067 else
10068 # Is the header compilable?
10069 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10070 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10071 cat >conftest.$ac_ext <<_ACEOF
10072 /* confdefs.h. */
10073 _ACEOF
10074 cat confdefs.h >>conftest.$ac_ext
10075 cat >>conftest.$ac_ext <<_ACEOF
10076 /* end confdefs.h. */
10077 $ac_includes_default
10078 #include <$ac_header>
10079 _ACEOF
10080 rm -f conftest.$ac_objext
10081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10082 (eval $ac_compile) 2>conftest.er1
10083 ac_status=$?
10084 grep -v '^ *+' conftest.er1 >conftest.err
10085 rm -f conftest.er1
10086 cat conftest.err >&5
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); } &&
10089 { ac_try='test -z "$ac_c_werror_flag"
10090 || test ! -s conftest.err'
10091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10092 (eval $ac_try) 2>&5
10093 ac_status=$?
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); }; } &&
10096 { ac_try='test -s conftest.$ac_objext'
10097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10098 (eval $ac_try) 2>&5
10099 ac_status=$?
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); }; }; then
10102 ac_header_compiler=yes
10103 else
10104 echo "$as_me: failed program was:" >&5
10105 sed 's/^/| /' conftest.$ac_ext >&5
10107 ac_header_compiler=no
10109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10110 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10111 echo "${ECHO_T}$ac_header_compiler" >&6
10113 # Is the header present?
10114 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10115 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10116 cat >conftest.$ac_ext <<_ACEOF
10117 /* confdefs.h. */
10118 _ACEOF
10119 cat confdefs.h >>conftest.$ac_ext
10120 cat >>conftest.$ac_ext <<_ACEOF
10121 /* end confdefs.h. */
10122 #include <$ac_header>
10123 _ACEOF
10124 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10125 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10126 ac_status=$?
10127 grep -v '^ *+' conftest.er1 >conftest.err
10128 rm -f conftest.er1
10129 cat conftest.err >&5
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); } >/dev/null; then
10132 if test -s conftest.err; then
10133 ac_cpp_err=$ac_c_preproc_warn_flag
10134 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10135 else
10136 ac_cpp_err=
10138 else
10139 ac_cpp_err=yes
10141 if test -z "$ac_cpp_err"; then
10142 ac_header_preproc=yes
10143 else
10144 echo "$as_me: failed program was:" >&5
10145 sed 's/^/| /' conftest.$ac_ext >&5
10147 ac_header_preproc=no
10149 rm -f conftest.err conftest.$ac_ext
10150 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10151 echo "${ECHO_T}$ac_header_preproc" >&6
10153 # So? What about this header?
10154 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10155 yes:no: )
10156 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10157 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10159 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10160 ac_header_preproc=yes
10162 no:yes:* )
10163 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10164 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10165 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10166 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10167 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10168 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10169 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10170 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10172 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10173 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10174 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10176 cat <<\_ASBOX
10177 ## ---------------------------------- ##
10178 ## Report this to the libjava lists. ##
10179 ## ---------------------------------- ##
10180 _ASBOX
10182 sed "s/^/$as_me: WARNING: /" >&2
10184 esac
10185 echo "$as_me:$LINENO: checking for $ac_header" >&5
10186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10188 echo $ECHO_N "(cached) $ECHO_C" >&6
10189 else
10190 eval "$as_ac_Header=\$ac_header_preproc"
10192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10193 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10196 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10197 cat >>confdefs.h <<_ACEOF
10198 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10199 _ACEOF
10203 done
10205 # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
10206 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
10207 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
10208 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
10209 echo $ECHO_N "(cached) $ECHO_C" >&6
10210 else
10211 ac_check_lib_save_LIBS=$LIBS
10212 LIBS="-ldl $LIBS"
10213 if test x$gcc_no_link = xyes; then
10214 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10215 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10216 { (exit 1); exit 1; }; }
10218 cat >conftest.$ac_ext <<_ACEOF
10219 /* confdefs.h. */
10220 _ACEOF
10221 cat confdefs.h >>conftest.$ac_ext
10222 cat >>conftest.$ac_ext <<_ACEOF
10223 /* end confdefs.h. */
10225 /* Override any gcc2 internal prototype to avoid an error. */
10226 #ifdef __cplusplus
10227 extern "C"
10228 #endif
10229 /* We use char because int might match the return type of a gcc2
10230 builtin and then its argument prototype would still apply. */
10231 char dladdr ();
10233 main ()
10235 dladdr ();
10237 return 0;
10239 _ACEOF
10240 rm -f conftest.$ac_objext conftest$ac_exeext
10241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10242 (eval $ac_link) 2>conftest.er1
10243 ac_status=$?
10244 grep -v '^ *+' conftest.er1 >conftest.err
10245 rm -f conftest.er1
10246 cat conftest.err >&5
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); } &&
10249 { ac_try='test -z "$ac_c_werror_flag"
10250 || test ! -s conftest.err'
10251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10252 (eval $ac_try) 2>&5
10253 ac_status=$?
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); }; } &&
10256 { ac_try='test -s conftest$ac_exeext'
10257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10258 (eval $ac_try) 2>&5
10259 ac_status=$?
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); }; }; then
10262 ac_cv_lib_dl_dladdr=yes
10263 else
10264 echo "$as_me: failed program was:" >&5
10265 sed 's/^/| /' conftest.$ac_ext >&5
10267 ac_cv_lib_dl_dladdr=no
10269 rm -f conftest.err conftest.$ac_objext \
10270 conftest$ac_exeext conftest.$ac_ext
10271 LIBS=$ac_check_lib_save_LIBS
10273 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
10274 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
10275 if test $ac_cv_lib_dl_dladdr = yes; then
10278 cat >>confdefs.h <<\_ACEOF
10279 #define HAVE_DLADDR 1
10280 _ACEOF
10282 else
10284 echo "$as_me:$LINENO: checking for dladdr in -ldld" >&5
10285 echo $ECHO_N "checking for dladdr in -ldld... $ECHO_C" >&6
10286 if test "${ac_cv_lib_dld_dladdr+set}" = set; then
10287 echo $ECHO_N "(cached) $ECHO_C" >&6
10288 else
10289 ac_check_lib_save_LIBS=$LIBS
10290 LIBS="-ldld $LIBS"
10291 if test x$gcc_no_link = xyes; then
10292 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10293 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10294 { (exit 1); exit 1; }; }
10296 cat >conftest.$ac_ext <<_ACEOF
10297 /* confdefs.h. */
10298 _ACEOF
10299 cat confdefs.h >>conftest.$ac_ext
10300 cat >>conftest.$ac_ext <<_ACEOF
10301 /* end confdefs.h. */
10303 /* Override any gcc2 internal prototype to avoid an error. */
10304 #ifdef __cplusplus
10305 extern "C"
10306 #endif
10307 /* We use char because int might match the return type of a gcc2
10308 builtin and then its argument prototype would still apply. */
10309 char dladdr ();
10311 main ()
10313 dladdr ();
10315 return 0;
10317 _ACEOF
10318 rm -f conftest.$ac_objext conftest$ac_exeext
10319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10320 (eval $ac_link) 2>conftest.er1
10321 ac_status=$?
10322 grep -v '^ *+' conftest.er1 >conftest.err
10323 rm -f conftest.er1
10324 cat conftest.err >&5
10325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326 (exit $ac_status); } &&
10327 { ac_try='test -z "$ac_c_werror_flag"
10328 || test ! -s conftest.err'
10329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10330 (eval $ac_try) 2>&5
10331 ac_status=$?
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); }; } &&
10334 { ac_try='test -s conftest$ac_exeext'
10335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10336 (eval $ac_try) 2>&5
10337 ac_status=$?
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); }; }; then
10340 ac_cv_lib_dld_dladdr=yes
10341 else
10342 echo "$as_me: failed program was:" >&5
10343 sed 's/^/| /' conftest.$ac_ext >&5
10345 ac_cv_lib_dld_dladdr=no
10347 rm -f conftest.err conftest.$ac_objext \
10348 conftest$ac_exeext conftest.$ac_ext
10349 LIBS=$ac_check_lib_save_LIBS
10351 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dladdr" >&5
10352 echo "${ECHO_T}$ac_cv_lib_dld_dladdr" >&6
10353 if test $ac_cv_lib_dld_dladdr = yes; then
10356 cat >>confdefs.h <<\_ACEOF
10357 #define HAVE_DLADDR 1
10358 _ACEOF
10365 if test x"$cross_compiling" = x"no"; then
10366 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
10367 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
10368 if test "${ac_cv_file__proc_self_exe+set}" = set; then
10369 echo $ECHO_N "(cached) $ECHO_C" >&6
10370 else
10371 test "$cross_compiling" = yes &&
10372 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10373 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10374 { (exit 1); exit 1; }; }
10375 if test -r "/proc/self/exe"; then
10376 ac_cv_file__proc_self_exe=yes
10377 else
10378 ac_cv_file__proc_self_exe=no
10381 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
10382 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
10383 if test $ac_cv_file__proc_self_exe = yes; then
10385 cat >>confdefs.h <<_ACEOF
10386 #define HAVE__PROC_SELF_EXE 1
10387 _ACEOF
10391 cat >>confdefs.h <<\_ACEOF
10392 #define HAVE_PROC_SELF_EXE 1
10393 _ACEOF
10397 else
10398 case $host in
10399 *-linux*)
10401 cat >>confdefs.h <<\_ACEOF
10402 #define HAVE_PROC_SELF_EXE 1
10403 _ACEOF
10406 esac
10410 if test "X$prefix" = "XNONE"; then
10411 acl_final_prefix="$ac_default_prefix"
10412 else
10413 acl_final_prefix="$prefix"
10415 if test "X$exec_prefix" = "XNONE"; then
10416 acl_final_exec_prefix='${prefix}'
10417 else
10418 acl_final_exec_prefix="$exec_prefix"
10420 acl_save_prefix="$prefix"
10421 prefix="$acl_final_prefix"
10422 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10423 prefix="$acl_save_prefix"
10426 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10427 if test "${with_gnu_ld+set}" = set; then
10428 withval="$with_gnu_ld"
10429 test "$withval" = no || with_gnu_ld=yes
10430 else
10431 with_gnu_ld=no
10433 # Prepare PATH_SEPARATOR.
10434 # The user is always right.
10435 if test "${PATH_SEPARATOR+set}" != set; then
10436 echo "#! /bin/sh" >conf$$.sh
10437 echo "exit 0" >>conf$$.sh
10438 chmod +x conf$$.sh
10439 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10440 PATH_SEPARATOR=';'
10441 else
10442 PATH_SEPARATOR=:
10444 rm -f conf$$.sh
10446 ac_prog=ld
10447 if test "$GCC" = yes; then
10448 # Check if gcc -print-prog-name=ld gives a path.
10449 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10450 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10451 case $host in
10452 *-*-mingw*)
10453 # gcc leaves a trailing carriage return which upsets mingw
10454 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10456 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10457 esac
10458 case $ac_prog in
10459 # Accept absolute paths.
10460 [\\/]* | [A-Za-z]:[\\/]*)
10461 re_direlt='/[^/][^/]*/\.\./'
10462 # Canonicalize the path of ld
10463 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10464 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10465 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10466 done
10467 test -z "$LD" && LD="$ac_prog"
10470 # If it fails, then pretend we aren't using GCC.
10471 ac_prog=ld
10474 # If it is relative, then search for the first ld in PATH.
10475 with_gnu_ld=unknown
10477 esac
10478 elif test "$with_gnu_ld" = yes; then
10479 echo "$as_me:$LINENO: checking for GNU ld" >&5
10480 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10481 else
10482 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10483 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10485 if test "${acl_cv_path_LD+set}" = set; then
10486 echo $ECHO_N "(cached) $ECHO_C" >&6
10487 else
10488 if test -z "$LD"; then
10489 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10490 for ac_dir in $PATH; do
10491 test -z "$ac_dir" && ac_dir=.
10492 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10493 acl_cv_path_LD="$ac_dir/$ac_prog"
10494 # Check to see if the program is GNU ld. I'd rather use --version,
10495 # but apparently some GNU ld's only accept -v.
10496 # Break only if it was the GNU/non-GNU ld that we prefer.
10497 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10498 test "$with_gnu_ld" != no && break
10499 else
10500 test "$with_gnu_ld" != yes && break
10503 done
10504 IFS="$ac_save_ifs"
10505 else
10506 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10510 LD="$acl_cv_path_LD"
10511 if test -n "$LD"; then
10512 echo "$as_me:$LINENO: result: $LD" >&5
10513 echo "${ECHO_T}$LD" >&6
10514 else
10515 echo "$as_me:$LINENO: result: no" >&5
10516 echo "${ECHO_T}no" >&6
10518 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10519 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10520 { (exit 1); exit 1; }; }
10521 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10522 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10523 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10524 echo $ECHO_N "(cached) $ECHO_C" >&6
10525 else
10526 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10527 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10528 acl_cv_prog_gnu_ld=yes
10529 else
10530 acl_cv_prog_gnu_ld=no
10533 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10534 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10535 with_gnu_ld=$acl_cv_prog_gnu_ld
10539 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10540 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10541 if test "${acl_cv_rpath+set}" = set; then
10542 echo $ECHO_N "(cached) $ECHO_C" >&6
10543 else
10545 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10546 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10547 . ./conftest.sh
10548 rm -f ./conftest.sh
10549 acl_cv_rpath=done
10552 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10553 echo "${ECHO_T}$acl_cv_rpath" >&6
10554 wl="$acl_cv_wl"
10555 libext="$acl_cv_libext"
10556 shlibext="$acl_cv_shlibext"
10557 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10558 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10559 hardcode_direct="$acl_cv_hardcode_direct"
10560 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10561 # Check whether --enable-rpath or --disable-rpath was given.
10562 if test "${enable_rpath+set}" = set; then
10563 enableval="$enable_rpath"
10565 else
10566 enable_rpath=yes
10575 use_additional=yes
10577 acl_save_prefix="$prefix"
10578 prefix="$acl_final_prefix"
10579 acl_save_exec_prefix="$exec_prefix"
10580 exec_prefix="$acl_final_exec_prefix"
10582 eval additional_includedir=\"$includedir\"
10583 eval additional_libdir=\"$libdir\"
10585 exec_prefix="$acl_save_exec_prefix"
10586 prefix="$acl_save_prefix"
10589 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10590 if test "${with_libiconv_prefix+set}" = set; then
10591 withval="$with_libiconv_prefix"
10593 if test "X$withval" = "Xno"; then
10594 use_additional=no
10595 else
10596 if test "X$withval" = "X"; then
10598 acl_save_prefix="$prefix"
10599 prefix="$acl_final_prefix"
10600 acl_save_exec_prefix="$exec_prefix"
10601 exec_prefix="$acl_final_exec_prefix"
10603 eval additional_includedir=\"$includedir\"
10604 eval additional_libdir=\"$libdir\"
10606 exec_prefix="$acl_save_exec_prefix"
10607 prefix="$acl_save_prefix"
10609 else
10610 additional_includedir="$withval/include"
10611 additional_libdir="$withval/lib"
10616 LIBICONV=
10617 LTLIBICONV=
10618 INCICONV=
10619 rpathdirs=
10620 ltrpathdirs=
10621 names_already_handled=
10622 names_next_round='iconv '
10623 while test -n "$names_next_round"; do
10624 names_this_round="$names_next_round"
10625 names_next_round=
10626 for name in $names_this_round; do
10627 already_handled=
10628 for n in $names_already_handled; do
10629 if test "$n" = "$name"; then
10630 already_handled=yes
10631 break
10633 done
10634 if test -z "$already_handled"; then
10635 names_already_handled="$names_already_handled $name"
10636 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10637 eval value=\"\$HAVE_LIB$uppername\"
10638 if test -n "$value"; then
10639 if test "$value" = yes; then
10640 eval value=\"\$LIB$uppername\"
10641 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10642 eval value=\"\$LTLIB$uppername\"
10643 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10644 else
10647 else
10648 found_dir=
10649 found_la=
10650 found_so=
10651 found_a=
10652 if test $use_additional = yes; then
10653 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10654 found_dir="$additional_libdir"
10655 found_so="$additional_libdir/lib$name.$shlibext"
10656 if test -f "$additional_libdir/lib$name.la"; then
10657 found_la="$additional_libdir/lib$name.la"
10659 else
10660 if test -f "$additional_libdir/lib$name.$libext"; then
10661 found_dir="$additional_libdir"
10662 found_a="$additional_libdir/lib$name.$libext"
10663 if test -f "$additional_libdir/lib$name.la"; then
10664 found_la="$additional_libdir/lib$name.la"
10669 if test "X$found_dir" = "X"; then
10670 for x in $LDFLAGS $LTLIBICONV; do
10672 acl_save_prefix="$prefix"
10673 prefix="$acl_final_prefix"
10674 acl_save_exec_prefix="$exec_prefix"
10675 exec_prefix="$acl_final_exec_prefix"
10676 eval x=\"$x\"
10677 exec_prefix="$acl_save_exec_prefix"
10678 prefix="$acl_save_prefix"
10680 case "$x" in
10681 -L*)
10682 dir=`echo "X$x" | sed -e 's/^X-L//'`
10683 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10684 found_dir="$dir"
10685 found_so="$dir/lib$name.$shlibext"
10686 if test -f "$dir/lib$name.la"; then
10687 found_la="$dir/lib$name.la"
10689 else
10690 if test -f "$dir/lib$name.$libext"; then
10691 found_dir="$dir"
10692 found_a="$dir/lib$name.$libext"
10693 if test -f "$dir/lib$name.la"; then
10694 found_la="$dir/lib$name.la"
10699 esac
10700 if test "X$found_dir" != "X"; then
10701 break
10703 done
10705 if test "X$found_dir" != "X"; then
10706 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10707 if test "X$found_so" != "X"; then
10708 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10709 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10710 else
10711 haveit=
10712 for x in $ltrpathdirs; do
10713 if test "X$x" = "X$found_dir"; then
10714 haveit=yes
10715 break
10717 done
10718 if test -z "$haveit"; then
10719 ltrpathdirs="$ltrpathdirs $found_dir"
10721 if test "$hardcode_direct" = yes; then
10722 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10723 else
10724 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10725 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10726 haveit=
10727 for x in $rpathdirs; do
10728 if test "X$x" = "X$found_dir"; then
10729 haveit=yes
10730 break
10732 done
10733 if test -z "$haveit"; then
10734 rpathdirs="$rpathdirs $found_dir"
10736 else
10737 haveit=
10738 for x in $LDFLAGS $LIBICONV; do
10740 acl_save_prefix="$prefix"
10741 prefix="$acl_final_prefix"
10742 acl_save_exec_prefix="$exec_prefix"
10743 exec_prefix="$acl_final_exec_prefix"
10744 eval x=\"$x\"
10745 exec_prefix="$acl_save_exec_prefix"
10746 prefix="$acl_save_prefix"
10748 if test "X$x" = "X-L$found_dir"; then
10749 haveit=yes
10750 break
10752 done
10753 if test -z "$haveit"; then
10754 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10756 if test "$hardcode_minus_L" != no; then
10757 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10758 else
10759 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10764 else
10765 if test "X$found_a" != "X"; then
10766 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10767 else
10768 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10771 additional_includedir=
10772 case "$found_dir" in
10773 */lib | */lib/)
10774 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10775 additional_includedir="$basedir/include"
10777 esac
10778 if test "X$additional_includedir" != "X"; then
10779 if test "X$additional_includedir" != "X/usr/include"; then
10780 haveit=
10781 if test "X$additional_includedir" = "X/usr/local/include"; then
10782 if test -n "$GCC"; then
10783 case $host_os in
10784 linux*) haveit=yes;;
10785 esac
10788 if test -z "$haveit"; then
10789 for x in $CPPFLAGS $INCICONV; do
10791 acl_save_prefix="$prefix"
10792 prefix="$acl_final_prefix"
10793 acl_save_exec_prefix="$exec_prefix"
10794 exec_prefix="$acl_final_exec_prefix"
10795 eval x=\"$x\"
10796 exec_prefix="$acl_save_exec_prefix"
10797 prefix="$acl_save_prefix"
10799 if test "X$x" = "X-I$additional_includedir"; then
10800 haveit=yes
10801 break
10803 done
10804 if test -z "$haveit"; then
10805 if test -d "$additional_includedir"; then
10806 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10812 if test -n "$found_la"; then
10813 save_libdir="$libdir"
10814 case "$found_la" in
10815 */* | *\\*) . "$found_la" ;;
10816 *) . "./$found_la" ;;
10817 esac
10818 libdir="$save_libdir"
10819 for dep in $dependency_libs; do
10820 case "$dep" in
10821 -L*)
10822 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10823 if test "X$additional_libdir" != "X/usr/lib"; then
10824 haveit=
10825 if test "X$additional_libdir" = "X/usr/local/lib"; then
10826 if test -n "$GCC"; then
10827 case $host_os in
10828 linux*) haveit=yes;;
10829 esac
10832 if test -z "$haveit"; then
10833 haveit=
10834 for x in $LDFLAGS $LIBICONV; do
10836 acl_save_prefix="$prefix"
10837 prefix="$acl_final_prefix"
10838 acl_save_exec_prefix="$exec_prefix"
10839 exec_prefix="$acl_final_exec_prefix"
10840 eval x=\"$x\"
10841 exec_prefix="$acl_save_exec_prefix"
10842 prefix="$acl_save_prefix"
10844 if test "X$x" = "X-L$additional_libdir"; then
10845 haveit=yes
10846 break
10848 done
10849 if test -z "$haveit"; then
10850 if test -d "$additional_libdir"; then
10851 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10854 haveit=
10855 for x in $LDFLAGS $LTLIBICONV; do
10857 acl_save_prefix="$prefix"
10858 prefix="$acl_final_prefix"
10859 acl_save_exec_prefix="$exec_prefix"
10860 exec_prefix="$acl_final_exec_prefix"
10861 eval x=\"$x\"
10862 exec_prefix="$acl_save_exec_prefix"
10863 prefix="$acl_save_prefix"
10865 if test "X$x" = "X-L$additional_libdir"; then
10866 haveit=yes
10867 break
10869 done
10870 if test -z "$haveit"; then
10871 if test -d "$additional_libdir"; then
10872 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10878 -R*)
10879 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10880 if test "$enable_rpath" != no; then
10881 haveit=
10882 for x in $rpathdirs; do
10883 if test "X$x" = "X$dir"; then
10884 haveit=yes
10885 break
10887 done
10888 if test -z "$haveit"; then
10889 rpathdirs="$rpathdirs $dir"
10891 haveit=
10892 for x in $ltrpathdirs; do
10893 if test "X$x" = "X$dir"; then
10894 haveit=yes
10895 break
10897 done
10898 if test -z "$haveit"; then
10899 ltrpathdirs="$ltrpathdirs $dir"
10903 -l*)
10904 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10906 *.la)
10907 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10910 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10911 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10913 esac
10914 done
10916 else
10917 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10918 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10922 done
10923 done
10924 if test "X$rpathdirs" != "X"; then
10925 if test -n "$hardcode_libdir_separator"; then
10926 alldirs=
10927 for found_dir in $rpathdirs; do
10928 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10929 done
10930 acl_save_libdir="$libdir"
10931 libdir="$alldirs"
10932 eval flag=\"$hardcode_libdir_flag_spec\"
10933 libdir="$acl_save_libdir"
10934 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10935 else
10936 for found_dir in $rpathdirs; do
10937 acl_save_libdir="$libdir"
10938 libdir="$found_dir"
10939 eval flag=\"$hardcode_libdir_flag_spec\"
10940 libdir="$acl_save_libdir"
10941 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10942 done
10945 if test "X$ltrpathdirs" != "X"; then
10946 for found_dir in $ltrpathdirs; do
10947 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10948 done
10957 am_save_CPPFLAGS="$CPPFLAGS"
10959 for element in $INCICONV; do
10960 haveit=
10961 for x in $CPPFLAGS; do
10963 acl_save_prefix="$prefix"
10964 prefix="$acl_final_prefix"
10965 acl_save_exec_prefix="$exec_prefix"
10966 exec_prefix="$acl_final_exec_prefix"
10967 eval x=\"$x\"
10968 exec_prefix="$acl_save_exec_prefix"
10969 prefix="$acl_save_prefix"
10971 if test "X$x" = "X$element"; then
10972 haveit=yes
10973 break
10975 done
10976 if test -z "$haveit"; then
10977 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10979 done
10982 echo "$as_me:$LINENO: checking for iconv" >&5
10983 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10984 if test "${am_cv_func_iconv+set}" = set; then
10985 echo $ECHO_N "(cached) $ECHO_C" >&6
10986 else
10988 am_cv_func_iconv="no, consider installing GNU libiconv"
10989 am_cv_lib_iconv=no
10990 if test x$gcc_no_link = xyes; then
10991 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10992 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10993 { (exit 1); exit 1; }; }
10995 cat >conftest.$ac_ext <<_ACEOF
10996 /* confdefs.h. */
10997 _ACEOF
10998 cat confdefs.h >>conftest.$ac_ext
10999 cat >>conftest.$ac_ext <<_ACEOF
11000 /* end confdefs.h. */
11001 #include <stdlib.h>
11002 #include <iconv.h>
11004 main ()
11006 iconv_t cd = iconv_open("","");
11007 iconv(cd,NULL,NULL,NULL,NULL);
11008 iconv_close(cd);
11010 return 0;
11012 _ACEOF
11013 rm -f conftest.$ac_objext conftest$ac_exeext
11014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11015 (eval $ac_link) 2>conftest.er1
11016 ac_status=$?
11017 grep -v '^ *+' conftest.er1 >conftest.err
11018 rm -f conftest.er1
11019 cat conftest.err >&5
11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); } &&
11022 { ac_try='test -z "$ac_c_werror_flag"
11023 || test ! -s conftest.err'
11024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11025 (eval $ac_try) 2>&5
11026 ac_status=$?
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); }; } &&
11029 { ac_try='test -s conftest$ac_exeext'
11030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11031 (eval $ac_try) 2>&5
11032 ac_status=$?
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); }; }; then
11035 am_cv_func_iconv=yes
11036 else
11037 echo "$as_me: failed program was:" >&5
11038 sed 's/^/| /' conftest.$ac_ext >&5
11041 rm -f conftest.err conftest.$ac_objext \
11042 conftest$ac_exeext conftest.$ac_ext
11043 if test "$am_cv_func_iconv" != yes; then
11044 am_save_LIBS="$LIBS"
11045 LIBS="$LIBS $LIBICONV"
11046 if test x$gcc_no_link = xyes; then
11047 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11048 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11049 { (exit 1); exit 1; }; }
11051 cat >conftest.$ac_ext <<_ACEOF
11052 /* confdefs.h. */
11053 _ACEOF
11054 cat confdefs.h >>conftest.$ac_ext
11055 cat >>conftest.$ac_ext <<_ACEOF
11056 /* end confdefs.h. */
11057 #include <stdlib.h>
11058 #include <iconv.h>
11060 main ()
11062 iconv_t cd = iconv_open("","");
11063 iconv(cd,NULL,NULL,NULL,NULL);
11064 iconv_close(cd);
11066 return 0;
11068 _ACEOF
11069 rm -f conftest.$ac_objext conftest$ac_exeext
11070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11071 (eval $ac_link) 2>conftest.er1
11072 ac_status=$?
11073 grep -v '^ *+' conftest.er1 >conftest.err
11074 rm -f conftest.er1
11075 cat conftest.err >&5
11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); } &&
11078 { ac_try='test -z "$ac_c_werror_flag"
11079 || test ! -s conftest.err'
11080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11081 (eval $ac_try) 2>&5
11082 ac_status=$?
11083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); }; } &&
11085 { ac_try='test -s conftest$ac_exeext'
11086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11087 (eval $ac_try) 2>&5
11088 ac_status=$?
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); }; }; then
11091 am_cv_lib_iconv=yes
11092 am_cv_func_iconv=yes
11093 else
11094 echo "$as_me: failed program was:" >&5
11095 sed 's/^/| /' conftest.$ac_ext >&5
11098 rm -f conftest.err conftest.$ac_objext \
11099 conftest$ac_exeext conftest.$ac_ext
11100 LIBS="$am_save_LIBS"
11104 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11105 echo "${ECHO_T}$am_cv_func_iconv" >&6
11106 if test "$am_cv_func_iconv" = yes; then
11108 cat >>confdefs.h <<\_ACEOF
11109 #define HAVE_ICONV 1
11110 _ACEOF
11113 if test "$am_cv_lib_iconv" = yes; then
11114 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11115 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11116 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11117 echo "${ECHO_T}$LIBICONV" >&6
11118 else
11119 CPPFLAGS="$am_save_CPPFLAGS"
11120 LIBICONV=
11121 LTLIBICONV=
11126 if test "$am_cv_func_iconv" = yes; then
11127 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11128 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11129 if test "${am_cv_proto_iconv+set}" = set; then
11130 echo $ECHO_N "(cached) $ECHO_C" >&6
11131 else
11133 cat >conftest.$ac_ext <<_ACEOF
11134 /* confdefs.h. */
11135 _ACEOF
11136 cat confdefs.h >>conftest.$ac_ext
11137 cat >>conftest.$ac_ext <<_ACEOF
11138 /* end confdefs.h. */
11140 #include <stdlib.h>
11141 #include <iconv.h>
11142 extern
11143 #ifdef __cplusplus
11145 #endif
11146 #if defined(__STDC__) || defined(__cplusplus)
11147 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11148 #else
11149 size_t iconv();
11150 #endif
11153 main ()
11157 return 0;
11159 _ACEOF
11160 rm -f conftest.$ac_objext
11161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11162 (eval $ac_compile) 2>conftest.er1
11163 ac_status=$?
11164 grep -v '^ *+' conftest.er1 >conftest.err
11165 rm -f conftest.er1
11166 cat conftest.err >&5
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); } &&
11169 { ac_try='test -z "$ac_c_werror_flag"
11170 || test ! -s conftest.err'
11171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11172 (eval $ac_try) 2>&5
11173 ac_status=$?
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); }; } &&
11176 { ac_try='test -s conftest.$ac_objext'
11177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11178 (eval $ac_try) 2>&5
11179 ac_status=$?
11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); }; }; then
11182 am_cv_proto_iconv_arg1=""
11183 else
11184 echo "$as_me: failed program was:" >&5
11185 sed 's/^/| /' conftest.$ac_ext >&5
11187 am_cv_proto_iconv_arg1="const"
11189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11190 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
11193 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11194 echo "$as_me:$LINENO: result: ${ac_t:-
11195 }$am_cv_proto_iconv" >&5
11196 echo "${ECHO_T}${ac_t:-
11197 }$am_cv_proto_iconv" >&6
11199 cat >>confdefs.h <<_ACEOF
11200 #define ICONV_CONST $am_cv_proto_iconv_arg1
11201 _ACEOF
11206 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11207 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11208 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11209 echo $ECHO_N "(cached) $ECHO_C" >&6
11210 else
11211 if test x$gcc_no_link = xyes; then
11212 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11213 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11214 { (exit 1); exit 1; }; }
11216 cat >conftest.$ac_ext <<_ACEOF
11217 /* confdefs.h. */
11218 _ACEOF
11219 cat confdefs.h >>conftest.$ac_ext
11220 cat >>conftest.$ac_ext <<_ACEOF
11221 /* end confdefs.h. */
11222 #include <locale.h>
11224 main ()
11226 return LC_MESSAGES
11228 return 0;
11230 _ACEOF
11231 rm -f conftest.$ac_objext conftest$ac_exeext
11232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11233 (eval $ac_link) 2>conftest.er1
11234 ac_status=$?
11235 grep -v '^ *+' conftest.er1 >conftest.err
11236 rm -f conftest.er1
11237 cat conftest.err >&5
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); } &&
11240 { ac_try='test -z "$ac_c_werror_flag"
11241 || test ! -s conftest.err'
11242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11243 (eval $ac_try) 2>&5
11244 ac_status=$?
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); }; } &&
11247 { ac_try='test -s conftest$ac_exeext'
11248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11249 (eval $ac_try) 2>&5
11250 ac_status=$?
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); }; }; then
11253 am_cv_val_LC_MESSAGES=yes
11254 else
11255 echo "$as_me: failed program was:" >&5
11256 sed 's/^/| /' conftest.$ac_ext >&5
11258 am_cv_val_LC_MESSAGES=no
11260 rm -f conftest.err conftest.$ac_objext \
11261 conftest$ac_exeext conftest.$ac_ext
11263 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11264 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11265 if test $am_cv_val_LC_MESSAGES = yes; then
11267 cat >>confdefs.h <<\_ACEOF
11268 #define HAVE_LC_MESSAGES 1
11269 _ACEOF
11273 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11274 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11275 if test "${ac_cv_struct_tm+set}" = set; then
11276 echo $ECHO_N "(cached) $ECHO_C" >&6
11277 else
11278 cat >conftest.$ac_ext <<_ACEOF
11279 /* confdefs.h. */
11280 _ACEOF
11281 cat confdefs.h >>conftest.$ac_ext
11282 cat >>conftest.$ac_ext <<_ACEOF
11283 /* end confdefs.h. */
11284 #include <sys/types.h>
11285 #include <time.h>
11288 main ()
11290 struct tm *tp; tp->tm_sec;
11292 return 0;
11294 _ACEOF
11295 rm -f conftest.$ac_objext
11296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11297 (eval $ac_compile) 2>conftest.er1
11298 ac_status=$?
11299 grep -v '^ *+' conftest.er1 >conftest.err
11300 rm -f conftest.er1
11301 cat conftest.err >&5
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); } &&
11304 { ac_try='test -z "$ac_c_werror_flag"
11305 || test ! -s conftest.err'
11306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11307 (eval $ac_try) 2>&5
11308 ac_status=$?
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); }; } &&
11311 { ac_try='test -s conftest.$ac_objext'
11312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11313 (eval $ac_try) 2>&5
11314 ac_status=$?
11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 (exit $ac_status); }; }; then
11317 ac_cv_struct_tm=time.h
11318 else
11319 echo "$as_me: failed program was:" >&5
11320 sed 's/^/| /' conftest.$ac_ext >&5
11322 ac_cv_struct_tm=sys/time.h
11324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11326 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11327 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11328 if test $ac_cv_struct_tm = sys/time.h; then
11330 cat >>confdefs.h <<\_ACEOF
11331 #define TM_IN_SYS_TIME 1
11332 _ACEOF
11336 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11337 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11338 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11339 echo $ECHO_N "(cached) $ECHO_C" >&6
11340 else
11341 cat >conftest.$ac_ext <<_ACEOF
11342 /* confdefs.h. */
11343 _ACEOF
11344 cat confdefs.h >>conftest.$ac_ext
11345 cat >>conftest.$ac_ext <<_ACEOF
11346 /* end confdefs.h. */
11347 #include <sys/types.h>
11348 #include <$ac_cv_struct_tm>
11352 main ()
11354 static struct tm ac_aggr;
11355 if (ac_aggr.tm_zone)
11356 return 0;
11358 return 0;
11360 _ACEOF
11361 rm -f conftest.$ac_objext
11362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11363 (eval $ac_compile) 2>conftest.er1
11364 ac_status=$?
11365 grep -v '^ *+' conftest.er1 >conftest.err
11366 rm -f conftest.er1
11367 cat conftest.err >&5
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); } &&
11370 { ac_try='test -z "$ac_c_werror_flag"
11371 || test ! -s conftest.err'
11372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11373 (eval $ac_try) 2>&5
11374 ac_status=$?
11375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376 (exit $ac_status); }; } &&
11377 { ac_try='test -s conftest.$ac_objext'
11378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11379 (eval $ac_try) 2>&5
11380 ac_status=$?
11381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382 (exit $ac_status); }; }; then
11383 ac_cv_member_struct_tm_tm_zone=yes
11384 else
11385 echo "$as_me: failed program was:" >&5
11386 sed 's/^/| /' conftest.$ac_ext >&5
11388 cat >conftest.$ac_ext <<_ACEOF
11389 /* confdefs.h. */
11390 _ACEOF
11391 cat confdefs.h >>conftest.$ac_ext
11392 cat >>conftest.$ac_ext <<_ACEOF
11393 /* end confdefs.h. */
11394 #include <sys/types.h>
11395 #include <$ac_cv_struct_tm>
11399 main ()
11401 static struct tm ac_aggr;
11402 if (sizeof ac_aggr.tm_zone)
11403 return 0;
11405 return 0;
11407 _ACEOF
11408 rm -f conftest.$ac_objext
11409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11410 (eval $ac_compile) 2>conftest.er1
11411 ac_status=$?
11412 grep -v '^ *+' conftest.er1 >conftest.err
11413 rm -f conftest.er1
11414 cat conftest.err >&5
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); } &&
11417 { ac_try='test -z "$ac_c_werror_flag"
11418 || test ! -s conftest.err'
11419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11420 (eval $ac_try) 2>&5
11421 ac_status=$?
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); }; } &&
11424 { ac_try='test -s conftest.$ac_objext'
11425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11426 (eval $ac_try) 2>&5
11427 ac_status=$?
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); }; }; then
11430 ac_cv_member_struct_tm_tm_zone=yes
11431 else
11432 echo "$as_me: failed program was:" >&5
11433 sed 's/^/| /' conftest.$ac_ext >&5
11435 ac_cv_member_struct_tm_tm_zone=no
11437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11441 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11442 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11443 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11445 cat >>confdefs.h <<_ACEOF
11446 #define HAVE_STRUCT_TM_TM_ZONE 1
11447 _ACEOF
11452 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11454 cat >>confdefs.h <<\_ACEOF
11455 #define HAVE_TM_ZONE 1
11456 _ACEOF
11458 else
11459 echo "$as_me:$LINENO: checking for tzname" >&5
11460 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11461 if test "${ac_cv_var_tzname+set}" = set; then
11462 echo $ECHO_N "(cached) $ECHO_C" >&6
11463 else
11464 if test x$gcc_no_link = xyes; then
11465 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11466 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11467 { (exit 1); exit 1; }; }
11469 cat >conftest.$ac_ext <<_ACEOF
11470 /* confdefs.h. */
11471 _ACEOF
11472 cat confdefs.h >>conftest.$ac_ext
11473 cat >>conftest.$ac_ext <<_ACEOF
11474 /* end confdefs.h. */
11475 #include <time.h>
11476 #ifndef tzname /* For SGI. */
11477 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11478 #endif
11481 main ()
11483 atoi(*tzname);
11485 return 0;
11487 _ACEOF
11488 rm -f conftest.$ac_objext conftest$ac_exeext
11489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11490 (eval $ac_link) 2>conftest.er1
11491 ac_status=$?
11492 grep -v '^ *+' conftest.er1 >conftest.err
11493 rm -f conftest.er1
11494 cat conftest.err >&5
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); } &&
11497 { ac_try='test -z "$ac_c_werror_flag"
11498 || test ! -s conftest.err'
11499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500 (eval $ac_try) 2>&5
11501 ac_status=$?
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; } &&
11504 { ac_try='test -s conftest$ac_exeext'
11505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506 (eval $ac_try) 2>&5
11507 ac_status=$?
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; }; then
11510 ac_cv_var_tzname=yes
11511 else
11512 echo "$as_me: failed program was:" >&5
11513 sed 's/^/| /' conftest.$ac_ext >&5
11515 ac_cv_var_tzname=no
11517 rm -f conftest.err conftest.$ac_objext \
11518 conftest$ac_exeext conftest.$ac_ext
11520 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11521 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11522 if test $ac_cv_var_tzname = yes; then
11524 cat >>confdefs.h <<\_ACEOF
11525 #define HAVE_TZNAME 1
11526 _ACEOF
11534 for ac_func in gethostbyname_r
11536 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11537 echo "$as_me:$LINENO: checking for $ac_func" >&5
11538 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11539 if eval "test \"\${$as_ac_var+set}\" = set"; then
11540 echo $ECHO_N "(cached) $ECHO_C" >&6
11541 else
11542 if test x$gcc_no_link = xyes; then
11543 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11544 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11545 { (exit 1); exit 1; }; }
11547 cat >conftest.$ac_ext <<_ACEOF
11548 /* confdefs.h. */
11549 _ACEOF
11550 cat confdefs.h >>conftest.$ac_ext
11551 cat >>conftest.$ac_ext <<_ACEOF
11552 /* end confdefs.h. */
11553 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11554 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11555 #define $ac_func innocuous_$ac_func
11557 /* System header to define __stub macros and hopefully few prototypes,
11558 which can conflict with char $ac_func (); below.
11559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11560 <limits.h> exists even on freestanding compilers. */
11562 #ifdef __STDC__
11563 # include <limits.h>
11564 #else
11565 # include <assert.h>
11566 #endif
11568 #undef $ac_func
11570 /* Override any gcc2 internal prototype to avoid an error. */
11571 #ifdef __cplusplus
11572 extern "C"
11574 #endif
11575 /* We use char because int might match the return type of a gcc2
11576 builtin and then its argument prototype would still apply. */
11577 char $ac_func ();
11578 /* The GNU C library defines this for functions which it implements
11579 to always fail with ENOSYS. Some functions are actually named
11580 something starting with __ and the normal name is an alias. */
11581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11582 choke me
11583 #else
11584 char (*f) () = $ac_func;
11585 #endif
11586 #ifdef __cplusplus
11588 #endif
11591 main ()
11593 return f != $ac_func;
11595 return 0;
11597 _ACEOF
11598 rm -f conftest.$ac_objext conftest$ac_exeext
11599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11600 (eval $ac_link) 2>conftest.er1
11601 ac_status=$?
11602 grep -v '^ *+' conftest.er1 >conftest.err
11603 rm -f conftest.er1
11604 cat conftest.err >&5
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); } &&
11607 { ac_try='test -z "$ac_c_werror_flag"
11608 || test ! -s conftest.err'
11609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11610 (eval $ac_try) 2>&5
11611 ac_status=$?
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); }; } &&
11614 { ac_try='test -s conftest$ac_exeext'
11615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11616 (eval $ac_try) 2>&5
11617 ac_status=$?
11618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); }; }; then
11620 eval "$as_ac_var=yes"
11621 else
11622 echo "$as_me: failed program was:" >&5
11623 sed 's/^/| /' conftest.$ac_ext >&5
11625 eval "$as_ac_var=no"
11627 rm -f conftest.err conftest.$ac_objext \
11628 conftest$ac_exeext conftest.$ac_ext
11630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11631 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11632 if test `eval echo '${'$as_ac_var'}'` = yes; then
11633 cat >>confdefs.h <<_ACEOF
11634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11635 _ACEOF
11638 cat >>confdefs.h <<\_ACEOF
11639 #define HAVE_GETHOSTBYNAME_R 1
11640 _ACEOF
11642 # There are two different kinds of gethostbyname_r.
11643 # We look for the one that returns `int'.
11644 # Hopefully this check is robust enough.
11645 cat >conftest.$ac_ext <<_ACEOF
11646 /* confdefs.h. */
11647 _ACEOF
11648 cat confdefs.h >>conftest.$ac_ext
11649 cat >>conftest.$ac_ext <<_ACEOF
11650 /* end confdefs.h. */
11651 #include <netdb.h>
11653 _ACEOF
11654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11655 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
11658 cat >>confdefs.h <<\_ACEOF
11659 #define GETHOSTBYNAME_R_RETURNS_INT 1
11660 _ACEOF
11663 rm -f conftest*
11666 case " $GCINCS " in
11667 *" -D_REENTRANT "*) ;;
11669 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
11670 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
11671 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
11672 echo $ECHO_N "(cached) $ECHO_C" >&6
11673 else
11674 ac_ext=cc
11675 ac_cpp='$CXXCPP $CPPFLAGS'
11676 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11677 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11678 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11680 cat >conftest.$ac_ext <<_ACEOF
11681 /* confdefs.h. */
11682 _ACEOF
11683 cat confdefs.h >>conftest.$ac_ext
11684 cat >>conftest.$ac_ext <<_ACEOF
11685 /* end confdefs.h. */
11686 #include <netdb.h>
11688 main ()
11690 gethostbyname_r("", 0, 0);
11692 return 0;
11694 _ACEOF
11695 rm -f conftest.$ac_objext
11696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11697 (eval $ac_compile) 2>conftest.er1
11698 ac_status=$?
11699 grep -v '^ *+' conftest.er1 >conftest.err
11700 rm -f conftest.er1
11701 cat conftest.err >&5
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); } &&
11704 { ac_try='test -z "$ac_cxx_werror_flag"
11705 || test ! -s conftest.err'
11706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11707 (eval $ac_try) 2>&5
11708 ac_status=$?
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); }; } &&
11711 { ac_try='test -s conftest.$ac_objext'
11712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11713 (eval $ac_try) 2>&5
11714 ac_status=$?
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); }; }; then
11717 libjava_cv_gethostbyname_r_needs_reentrant=no
11718 else
11719 echo "$as_me: failed program was:" >&5
11720 sed 's/^/| /' conftest.$ac_ext >&5
11722 CPPFLAGS_SAVE="$CPPFLAGS"
11723 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
11724 cat >conftest.$ac_ext <<_ACEOF
11725 /* confdefs.h. */
11726 _ACEOF
11727 cat confdefs.h >>conftest.$ac_ext
11728 cat >>conftest.$ac_ext <<_ACEOF
11729 /* end confdefs.h. */
11730 #include <netdb.h>
11732 main ()
11734 gethostbyname_r("", 0, 0);
11736 return 0;
11738 _ACEOF
11739 rm -f conftest.$ac_objext
11740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11741 (eval $ac_compile) 2>conftest.er1
11742 ac_status=$?
11743 grep -v '^ *+' conftest.er1 >conftest.err
11744 rm -f conftest.er1
11745 cat conftest.err >&5
11746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); } &&
11748 { ac_try='test -z "$ac_cxx_werror_flag"
11749 || test ! -s conftest.err'
11750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11751 (eval $ac_try) 2>&5
11752 ac_status=$?
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); }; } &&
11755 { ac_try='test -s conftest.$ac_objext'
11756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11757 (eval $ac_try) 2>&5
11758 ac_status=$?
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); }; }; then
11761 libjava_cv_gethostbyname_r_needs_reentrant=yes
11762 else
11763 echo "$as_me: failed program was:" >&5
11764 sed 's/^/| /' conftest.$ac_ext >&5
11766 libjava_cv_gethostbyname_r_needs_reentrant=fail
11768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11769 CPPFLAGS="$CPPFLAGS_SAVE"
11772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11773 ac_ext=c
11774 ac_cpp='$CPP $CPPFLAGS'
11775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11781 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
11782 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
11783 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
11785 cat >>confdefs.h <<\_ACEOF
11786 #define _REENTRANT 1
11787 _ACEOF
11791 esac
11793 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
11794 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
11795 if test "${libjava_cv_struct_hostent_data+set}" = set; then
11796 echo $ECHO_N "(cached) $ECHO_C" >&6
11797 else
11798 cat >conftest.$ac_ext <<_ACEOF
11799 /* confdefs.h. */
11800 _ACEOF
11801 cat confdefs.h >>conftest.$ac_ext
11802 cat >>conftest.$ac_ext <<_ACEOF
11803 /* end confdefs.h. */
11805 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
11806 # define _REENTRANT 1
11807 #endif
11808 #include <netdb.h>
11810 main ()
11812 struct hostent_data data;
11814 return 0;
11816 _ACEOF
11817 rm -f conftest.$ac_objext
11818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11819 (eval $ac_compile) 2>conftest.er1
11820 ac_status=$?
11821 grep -v '^ *+' conftest.er1 >conftest.err
11822 rm -f conftest.er1
11823 cat conftest.err >&5
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); } &&
11826 { ac_try='test -z "$ac_c_werror_flag"
11827 || test ! -s conftest.err'
11828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11829 (eval $ac_try) 2>&5
11830 ac_status=$?
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); }; } &&
11833 { ac_try='test -s conftest.$ac_objext'
11834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11835 (eval $ac_try) 2>&5
11836 ac_status=$?
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); }; }; then
11839 libjava_cv_struct_hostent_data=yes
11840 else
11841 echo "$as_me: failed program was:" >&5
11842 sed 's/^/| /' conftest.$ac_ext >&5
11844 libjava_cv_struct_hostent_data=no
11846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11848 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
11849 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
11850 if test "x$libjava_cv_struct_hostent_data" = xyes; then
11852 cat >>confdefs.h <<\_ACEOF
11853 #define HAVE_STRUCT_HOSTENT_DATA 1
11854 _ACEOF
11859 done
11862 # FIXME: libjava source code expects to find a prototype for
11863 # gethostbyaddr_r in netdb.h. The outer check ensures that
11864 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
11865 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
11866 # linkage check is enough, yet C++ code requires proper prototypes.)
11867 cat >conftest.$ac_ext <<_ACEOF
11868 /* confdefs.h. */
11869 _ACEOF
11870 cat confdefs.h >>conftest.$ac_ext
11871 cat >>conftest.$ac_ext <<_ACEOF
11872 /* end confdefs.h. */
11873 #include <netdb.h>
11875 _ACEOF
11876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11877 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
11880 for ac_func in gethostbyaddr_r
11882 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11883 echo "$as_me:$LINENO: checking for $ac_func" >&5
11884 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11885 if eval "test \"\${$as_ac_var+set}\" = set"; then
11886 echo $ECHO_N "(cached) $ECHO_C" >&6
11887 else
11888 if test x$gcc_no_link = xyes; then
11889 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11890 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11891 { (exit 1); exit 1; }; }
11893 cat >conftest.$ac_ext <<_ACEOF
11894 /* confdefs.h. */
11895 _ACEOF
11896 cat confdefs.h >>conftest.$ac_ext
11897 cat >>conftest.$ac_ext <<_ACEOF
11898 /* end confdefs.h. */
11899 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11901 #define $ac_func innocuous_$ac_func
11903 /* System header to define __stub macros and hopefully few prototypes,
11904 which can conflict with char $ac_func (); below.
11905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11906 <limits.h> exists even on freestanding compilers. */
11908 #ifdef __STDC__
11909 # include <limits.h>
11910 #else
11911 # include <assert.h>
11912 #endif
11914 #undef $ac_func
11916 /* Override any gcc2 internal prototype to avoid an error. */
11917 #ifdef __cplusplus
11918 extern "C"
11920 #endif
11921 /* We use char because int might match the return type of a gcc2
11922 builtin and then its argument prototype would still apply. */
11923 char $ac_func ();
11924 /* The GNU C library defines this for functions which it implements
11925 to always fail with ENOSYS. Some functions are actually named
11926 something starting with __ and the normal name is an alias. */
11927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11928 choke me
11929 #else
11930 char (*f) () = $ac_func;
11931 #endif
11932 #ifdef __cplusplus
11934 #endif
11937 main ()
11939 return f != $ac_func;
11941 return 0;
11943 _ACEOF
11944 rm -f conftest.$ac_objext conftest$ac_exeext
11945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11946 (eval $ac_link) 2>conftest.er1
11947 ac_status=$?
11948 grep -v '^ *+' conftest.er1 >conftest.err
11949 rm -f conftest.er1
11950 cat conftest.err >&5
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); } &&
11953 { ac_try='test -z "$ac_c_werror_flag"
11954 || test ! -s conftest.err'
11955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11956 (eval $ac_try) 2>&5
11957 ac_status=$?
11958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); }; } &&
11960 { ac_try='test -s conftest$ac_exeext'
11961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11962 (eval $ac_try) 2>&5
11963 ac_status=$?
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); }; }; then
11966 eval "$as_ac_var=yes"
11967 else
11968 echo "$as_me: failed program was:" >&5
11969 sed 's/^/| /' conftest.$ac_ext >&5
11971 eval "$as_ac_var=no"
11973 rm -f conftest.err conftest.$ac_objext \
11974 conftest$ac_exeext conftest.$ac_ext
11976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11977 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11978 if test `eval echo '${'$as_ac_var'}'` = yes; then
11979 cat >>confdefs.h <<_ACEOF
11980 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11981 _ACEOF
11984 cat >>confdefs.h <<\_ACEOF
11985 #define HAVE_GETHOSTBYADDR_R 1
11986 _ACEOF
11988 # There are two different kinds of gethostbyaddr_r.
11989 # We look for the one that returns `int'.
11990 # Hopefully this check is robust enough.
11991 cat >conftest.$ac_ext <<_ACEOF
11992 /* confdefs.h. */
11993 _ACEOF
11994 cat confdefs.h >>conftest.$ac_ext
11995 cat >>conftest.$ac_ext <<_ACEOF
11996 /* end confdefs.h. */
11997 #include <netdb.h>
11999 _ACEOF
12000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12001 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
12004 cat >>confdefs.h <<\_ACEOF
12005 #define GETHOSTBYADDR_R_RETURNS_INT 1
12006 _ACEOF
12009 rm -f conftest*
12012 done
12015 rm -f conftest*
12019 for ac_func in gethostname
12021 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12022 echo "$as_me:$LINENO: checking for $ac_func" >&5
12023 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12024 if eval "test \"\${$as_ac_var+set}\" = set"; then
12025 echo $ECHO_N "(cached) $ECHO_C" >&6
12026 else
12027 if test x$gcc_no_link = xyes; then
12028 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12029 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12030 { (exit 1); exit 1; }; }
12032 cat >conftest.$ac_ext <<_ACEOF
12033 /* confdefs.h. */
12034 _ACEOF
12035 cat confdefs.h >>conftest.$ac_ext
12036 cat >>conftest.$ac_ext <<_ACEOF
12037 /* end confdefs.h. */
12038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12040 #define $ac_func innocuous_$ac_func
12042 /* System header to define __stub macros and hopefully few prototypes,
12043 which can conflict with char $ac_func (); below.
12044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12045 <limits.h> exists even on freestanding compilers. */
12047 #ifdef __STDC__
12048 # include <limits.h>
12049 #else
12050 # include <assert.h>
12051 #endif
12053 #undef $ac_func
12055 /* Override any gcc2 internal prototype to avoid an error. */
12056 #ifdef __cplusplus
12057 extern "C"
12059 #endif
12060 /* We use char because int might match the return type of a gcc2
12061 builtin and then its argument prototype would still apply. */
12062 char $ac_func ();
12063 /* The GNU C library defines this for functions which it implements
12064 to always fail with ENOSYS. Some functions are actually named
12065 something starting with __ and the normal name is an alias. */
12066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12067 choke me
12068 #else
12069 char (*f) () = $ac_func;
12070 #endif
12071 #ifdef __cplusplus
12073 #endif
12076 main ()
12078 return f != $ac_func;
12080 return 0;
12082 _ACEOF
12083 rm -f conftest.$ac_objext conftest$ac_exeext
12084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12085 (eval $ac_link) 2>conftest.er1
12086 ac_status=$?
12087 grep -v '^ *+' conftest.er1 >conftest.err
12088 rm -f conftest.er1
12089 cat conftest.err >&5
12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); } &&
12092 { ac_try='test -z "$ac_c_werror_flag"
12093 || test ! -s conftest.err'
12094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12095 (eval $ac_try) 2>&5
12096 ac_status=$?
12097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098 (exit $ac_status); }; } &&
12099 { ac_try='test -s conftest$ac_exeext'
12100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12101 (eval $ac_try) 2>&5
12102 ac_status=$?
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); }; }; then
12105 eval "$as_ac_var=yes"
12106 else
12107 echo "$as_me: failed program was:" >&5
12108 sed 's/^/| /' conftest.$ac_ext >&5
12110 eval "$as_ac_var=no"
12112 rm -f conftest.err conftest.$ac_objext \
12113 conftest$ac_exeext conftest.$ac_ext
12115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12116 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12117 if test `eval echo '${'$as_ac_var'}'` = yes; then
12118 cat >>confdefs.h <<_ACEOF
12119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12120 _ACEOF
12123 cat >>confdefs.h <<\_ACEOF
12124 #define HAVE_GETHOSTNAME 1
12125 _ACEOF
12127 cat >conftest.$ac_ext <<_ACEOF
12128 /* confdefs.h. */
12129 _ACEOF
12130 cat confdefs.h >>conftest.$ac_ext
12131 cat >>conftest.$ac_ext <<_ACEOF
12132 /* end confdefs.h. */
12133 #include <unistd.h>
12135 _ACEOF
12136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12137 $EGREP "gethostname" >/dev/null 2>&1; then
12140 cat >>confdefs.h <<\_ACEOF
12141 #define HAVE_GETHOSTNAME_DECL 1
12142 _ACEOF
12145 rm -f conftest*
12148 done
12152 for ac_func in usleep
12154 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12155 echo "$as_me:$LINENO: checking for $ac_func" >&5
12156 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12157 if eval "test \"\${$as_ac_var+set}\" = set"; then
12158 echo $ECHO_N "(cached) $ECHO_C" >&6
12159 else
12160 if test x$gcc_no_link = xyes; then
12161 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12162 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12163 { (exit 1); exit 1; }; }
12165 cat >conftest.$ac_ext <<_ACEOF
12166 /* confdefs.h. */
12167 _ACEOF
12168 cat confdefs.h >>conftest.$ac_ext
12169 cat >>conftest.$ac_ext <<_ACEOF
12170 /* end confdefs.h. */
12171 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12173 #define $ac_func innocuous_$ac_func
12175 /* System header to define __stub macros and hopefully few prototypes,
12176 which can conflict with char $ac_func (); below.
12177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12178 <limits.h> exists even on freestanding compilers. */
12180 #ifdef __STDC__
12181 # include <limits.h>
12182 #else
12183 # include <assert.h>
12184 #endif
12186 #undef $ac_func
12188 /* Override any gcc2 internal prototype to avoid an error. */
12189 #ifdef __cplusplus
12190 extern "C"
12192 #endif
12193 /* We use char because int might match the return type of a gcc2
12194 builtin and then its argument prototype would still apply. */
12195 char $ac_func ();
12196 /* The GNU C library defines this for functions which it implements
12197 to always fail with ENOSYS. Some functions are actually named
12198 something starting with __ and the normal name is an alias. */
12199 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12200 choke me
12201 #else
12202 char (*f) () = $ac_func;
12203 #endif
12204 #ifdef __cplusplus
12206 #endif
12209 main ()
12211 return f != $ac_func;
12213 return 0;
12215 _ACEOF
12216 rm -f conftest.$ac_objext conftest$ac_exeext
12217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12218 (eval $ac_link) 2>conftest.er1
12219 ac_status=$?
12220 grep -v '^ *+' conftest.er1 >conftest.err
12221 rm -f conftest.er1
12222 cat conftest.err >&5
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); } &&
12225 { ac_try='test -z "$ac_c_werror_flag"
12226 || test ! -s conftest.err'
12227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12228 (eval $ac_try) 2>&5
12229 ac_status=$?
12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); }; } &&
12232 { ac_try='test -s conftest$ac_exeext'
12233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12234 (eval $ac_try) 2>&5
12235 ac_status=$?
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); }; }; then
12238 eval "$as_ac_var=yes"
12239 else
12240 echo "$as_me: failed program was:" >&5
12241 sed 's/^/| /' conftest.$ac_ext >&5
12243 eval "$as_ac_var=no"
12245 rm -f conftest.err conftest.$ac_objext \
12246 conftest$ac_exeext conftest.$ac_ext
12248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12249 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12250 if test `eval echo '${'$as_ac_var'}'` = yes; then
12251 cat >>confdefs.h <<_ACEOF
12252 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12253 _ACEOF
12255 cat >conftest.$ac_ext <<_ACEOF
12256 /* confdefs.h. */
12257 _ACEOF
12258 cat confdefs.h >>conftest.$ac_ext
12259 cat >>conftest.$ac_ext <<_ACEOF
12260 /* end confdefs.h. */
12261 #include <unistd.h>
12263 _ACEOF
12264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12265 $EGREP "usleep" >/dev/null 2>&1; then
12268 cat >>confdefs.h <<\_ACEOF
12269 #define HAVE_USLEEP_DECL 1
12270 _ACEOF
12273 rm -f conftest*
12276 done
12279 # Look for these functions in the thread library, but only bother
12280 # if using POSIX threads.
12281 if test "$THREADS" = posix; then
12282 save_LIBS="$LIBS"
12283 LIBS="$LIBS $THREADLIBS"
12284 # Some POSIX thread systems don't have pthread_mutexattr_settype.
12285 # E.g., Solaris.
12288 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
12290 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12291 echo "$as_me:$LINENO: checking for $ac_func" >&5
12292 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12293 if eval "test \"\${$as_ac_var+set}\" = set"; then
12294 echo $ECHO_N "(cached) $ECHO_C" >&6
12295 else
12296 if test x$gcc_no_link = xyes; then
12297 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12298 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12299 { (exit 1); exit 1; }; }
12301 cat >conftest.$ac_ext <<_ACEOF
12302 /* confdefs.h. */
12303 _ACEOF
12304 cat confdefs.h >>conftest.$ac_ext
12305 cat >>conftest.$ac_ext <<_ACEOF
12306 /* end confdefs.h. */
12307 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12309 #define $ac_func innocuous_$ac_func
12311 /* System header to define __stub macros and hopefully few prototypes,
12312 which can conflict with char $ac_func (); below.
12313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12314 <limits.h> exists even on freestanding compilers. */
12316 #ifdef __STDC__
12317 # include <limits.h>
12318 #else
12319 # include <assert.h>
12320 #endif
12322 #undef $ac_func
12324 /* Override any gcc2 internal prototype to avoid an error. */
12325 #ifdef __cplusplus
12326 extern "C"
12328 #endif
12329 /* We use char because int might match the return type of a gcc2
12330 builtin and then its argument prototype would still apply. */
12331 char $ac_func ();
12332 /* The GNU C library defines this for functions which it implements
12333 to always fail with ENOSYS. Some functions are actually named
12334 something starting with __ and the normal name is an alias. */
12335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12336 choke me
12337 #else
12338 char (*f) () = $ac_func;
12339 #endif
12340 #ifdef __cplusplus
12342 #endif
12345 main ()
12347 return f != $ac_func;
12349 return 0;
12351 _ACEOF
12352 rm -f conftest.$ac_objext conftest$ac_exeext
12353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12354 (eval $ac_link) 2>conftest.er1
12355 ac_status=$?
12356 grep -v '^ *+' conftest.er1 >conftest.err
12357 rm -f conftest.er1
12358 cat conftest.err >&5
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); } &&
12361 { ac_try='test -z "$ac_c_werror_flag"
12362 || test ! -s conftest.err'
12363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12364 (eval $ac_try) 2>&5
12365 ac_status=$?
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); }; } &&
12368 { ac_try='test -s conftest$ac_exeext'
12369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12370 (eval $ac_try) 2>&5
12371 ac_status=$?
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); }; }; then
12374 eval "$as_ac_var=yes"
12375 else
12376 echo "$as_me: failed program was:" >&5
12377 sed 's/^/| /' conftest.$ac_ext >&5
12379 eval "$as_ac_var=no"
12381 rm -f conftest.err conftest.$ac_objext \
12382 conftest$ac_exeext conftest.$ac_ext
12384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12385 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12386 if test `eval echo '${'$as_ac_var'}'` = yes; then
12387 cat >>confdefs.h <<_ACEOF
12388 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12389 _ACEOF
12392 done
12395 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
12396 # Solaris 7 the name librt is preferred.
12398 for ac_func in sched_yield
12400 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12401 echo "$as_me:$LINENO: checking for $ac_func" >&5
12402 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12403 if eval "test \"\${$as_ac_var+set}\" = set"; then
12404 echo $ECHO_N "(cached) $ECHO_C" >&6
12405 else
12406 if test x$gcc_no_link = xyes; then
12407 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12408 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12409 { (exit 1); exit 1; }; }
12411 cat >conftest.$ac_ext <<_ACEOF
12412 /* confdefs.h. */
12413 _ACEOF
12414 cat confdefs.h >>conftest.$ac_ext
12415 cat >>conftest.$ac_ext <<_ACEOF
12416 /* end confdefs.h. */
12417 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12419 #define $ac_func innocuous_$ac_func
12421 /* System header to define __stub macros and hopefully few prototypes,
12422 which can conflict with char $ac_func (); below.
12423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12424 <limits.h> exists even on freestanding compilers. */
12426 #ifdef __STDC__
12427 # include <limits.h>
12428 #else
12429 # include <assert.h>
12430 #endif
12432 #undef $ac_func
12434 /* Override any gcc2 internal prototype to avoid an error. */
12435 #ifdef __cplusplus
12436 extern "C"
12438 #endif
12439 /* We use char because int might match the return type of a gcc2
12440 builtin and then its argument prototype would still apply. */
12441 char $ac_func ();
12442 /* The GNU C library defines this for functions which it implements
12443 to always fail with ENOSYS. Some functions are actually named
12444 something starting with __ and the normal name is an alias. */
12445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12446 choke me
12447 #else
12448 char (*f) () = $ac_func;
12449 #endif
12450 #ifdef __cplusplus
12452 #endif
12455 main ()
12457 return f != $ac_func;
12459 return 0;
12461 _ACEOF
12462 rm -f conftest.$ac_objext conftest$ac_exeext
12463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12464 (eval $ac_link) 2>conftest.er1
12465 ac_status=$?
12466 grep -v '^ *+' conftest.er1 >conftest.err
12467 rm -f conftest.er1
12468 cat conftest.err >&5
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); } &&
12471 { ac_try='test -z "$ac_c_werror_flag"
12472 || test ! -s conftest.err'
12473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12474 (eval $ac_try) 2>&5
12475 ac_status=$?
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); }; } &&
12478 { ac_try='test -s conftest$ac_exeext'
12479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12480 (eval $ac_try) 2>&5
12481 ac_status=$?
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); }; }; then
12484 eval "$as_ac_var=yes"
12485 else
12486 echo "$as_me: failed program was:" >&5
12487 sed 's/^/| /' conftest.$ac_ext >&5
12489 eval "$as_ac_var=no"
12491 rm -f conftest.err conftest.$ac_objext \
12492 conftest$ac_exeext conftest.$ac_ext
12494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12495 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12496 if test `eval echo '${'$as_ac_var'}'` = yes; then
12497 cat >>confdefs.h <<_ACEOF
12498 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12499 _ACEOF
12501 else
12503 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
12504 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
12505 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
12506 echo $ECHO_N "(cached) $ECHO_C" >&6
12507 else
12508 ac_check_lib_save_LIBS=$LIBS
12509 LIBS="-lrt $LIBS"
12510 if test x$gcc_no_link = xyes; then
12511 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12512 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12513 { (exit 1); exit 1; }; }
12515 cat >conftest.$ac_ext <<_ACEOF
12516 /* confdefs.h. */
12517 _ACEOF
12518 cat confdefs.h >>conftest.$ac_ext
12519 cat >>conftest.$ac_ext <<_ACEOF
12520 /* end confdefs.h. */
12522 /* Override any gcc2 internal prototype to avoid an error. */
12523 #ifdef __cplusplus
12524 extern "C"
12525 #endif
12526 /* We use char because int might match the return type of a gcc2
12527 builtin and then its argument prototype would still apply. */
12528 char sched_yield ();
12530 main ()
12532 sched_yield ();
12534 return 0;
12536 _ACEOF
12537 rm -f conftest.$ac_objext conftest$ac_exeext
12538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12539 (eval $ac_link) 2>conftest.er1
12540 ac_status=$?
12541 grep -v '^ *+' conftest.er1 >conftest.err
12542 rm -f conftest.er1
12543 cat conftest.err >&5
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); } &&
12546 { ac_try='test -z "$ac_c_werror_flag"
12547 || test ! -s conftest.err'
12548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12549 (eval $ac_try) 2>&5
12550 ac_status=$?
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); }; } &&
12553 { ac_try='test -s conftest$ac_exeext'
12554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12555 (eval $ac_try) 2>&5
12556 ac_status=$?
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); }; }; then
12559 ac_cv_lib_rt_sched_yield=yes
12560 else
12561 echo "$as_me: failed program was:" >&5
12562 sed 's/^/| /' conftest.$ac_ext >&5
12564 ac_cv_lib_rt_sched_yield=no
12566 rm -f conftest.err conftest.$ac_objext \
12567 conftest$ac_exeext conftest.$ac_ext
12568 LIBS=$ac_check_lib_save_LIBS
12570 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
12571 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
12572 if test $ac_cv_lib_rt_sched_yield = yes; then
12574 cat >>confdefs.h <<\_ACEOF
12575 #define HAVE_SCHED_YIELD 1
12576 _ACEOF
12578 THREADLIBS="$THREADLIBS -lrt"
12579 THREADSPEC="$THREADSPEC -lrt"
12580 else
12582 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
12583 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
12584 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
12585 echo $ECHO_N "(cached) $ECHO_C" >&6
12586 else
12587 ac_check_lib_save_LIBS=$LIBS
12588 LIBS="-lposix4 $LIBS"
12589 if test x$gcc_no_link = xyes; then
12590 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12591 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12592 { (exit 1); exit 1; }; }
12594 cat >conftest.$ac_ext <<_ACEOF
12595 /* confdefs.h. */
12596 _ACEOF
12597 cat confdefs.h >>conftest.$ac_ext
12598 cat >>conftest.$ac_ext <<_ACEOF
12599 /* end confdefs.h. */
12601 /* Override any gcc2 internal prototype to avoid an error. */
12602 #ifdef __cplusplus
12603 extern "C"
12604 #endif
12605 /* We use char because int might match the return type of a gcc2
12606 builtin and then its argument prototype would still apply. */
12607 char sched_yield ();
12609 main ()
12611 sched_yield ();
12613 return 0;
12615 _ACEOF
12616 rm -f conftest.$ac_objext conftest$ac_exeext
12617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12618 (eval $ac_link) 2>conftest.er1
12619 ac_status=$?
12620 grep -v '^ *+' conftest.er1 >conftest.err
12621 rm -f conftest.er1
12622 cat conftest.err >&5
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); } &&
12625 { ac_try='test -z "$ac_c_werror_flag"
12626 || test ! -s conftest.err'
12627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12628 (eval $ac_try) 2>&5
12629 ac_status=$?
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); }; } &&
12632 { ac_try='test -s conftest$ac_exeext'
12633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12634 (eval $ac_try) 2>&5
12635 ac_status=$?
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); }; }; then
12638 ac_cv_lib_posix4_sched_yield=yes
12639 else
12640 echo "$as_me: failed program was:" >&5
12641 sed 's/^/| /' conftest.$ac_ext >&5
12643 ac_cv_lib_posix4_sched_yield=no
12645 rm -f conftest.err conftest.$ac_objext \
12646 conftest$ac_exeext conftest.$ac_ext
12647 LIBS=$ac_check_lib_save_LIBS
12649 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
12650 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
12651 if test $ac_cv_lib_posix4_sched_yield = yes; then
12653 cat >>confdefs.h <<\_ACEOF
12654 #define HAVE_SCHED_YIELD 1
12655 _ACEOF
12657 THREADLIBS="$THREADLIBS -lposix4"
12658 THREADSPEC="$THREADSPEC -lposix4"
12664 done
12667 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
12668 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
12669 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
12670 echo $ECHO_N "(cached) $ECHO_C" >&6
12671 else
12672 ac_check_lib_save_LIBS=$LIBS
12673 LIBS="-lrt $LIBS"
12674 if test x$gcc_no_link = xyes; then
12675 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12676 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12677 { (exit 1); exit 1; }; }
12679 cat >conftest.$ac_ext <<_ACEOF
12680 /* confdefs.h. */
12681 _ACEOF
12682 cat confdefs.h >>conftest.$ac_ext
12683 cat >>conftest.$ac_ext <<_ACEOF
12684 /* end confdefs.h. */
12686 /* Override any gcc2 internal prototype to avoid an error. */
12687 #ifdef __cplusplus
12688 extern "C"
12689 #endif
12690 /* We use char because int might match the return type of a gcc2
12691 builtin and then its argument prototype would still apply. */
12692 char clock_gettime ();
12694 main ()
12696 clock_gettime ();
12698 return 0;
12700 _ACEOF
12701 rm -f conftest.$ac_objext conftest$ac_exeext
12702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12703 (eval $ac_link) 2>conftest.er1
12704 ac_status=$?
12705 grep -v '^ *+' conftest.er1 >conftest.err
12706 rm -f conftest.er1
12707 cat conftest.err >&5
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); } &&
12710 { ac_try='test -z "$ac_c_werror_flag"
12711 || test ! -s conftest.err'
12712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12713 (eval $ac_try) 2>&5
12714 ac_status=$?
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); }; } &&
12717 { ac_try='test -s conftest$ac_exeext'
12718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12719 (eval $ac_try) 2>&5
12720 ac_status=$?
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); }; }; then
12723 ac_cv_lib_rt_clock_gettime=yes
12724 else
12725 echo "$as_me: failed program was:" >&5
12726 sed 's/^/| /' conftest.$ac_ext >&5
12728 ac_cv_lib_rt_clock_gettime=no
12730 rm -f conftest.err conftest.$ac_objext \
12731 conftest$ac_exeext conftest.$ac_ext
12732 LIBS=$ac_check_lib_save_LIBS
12734 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
12735 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
12736 if test $ac_cv_lib_rt_clock_gettime = yes; then
12739 cat >>confdefs.h <<\_ACEOF
12740 #define HAVE_CLOCK_GETTIME 1
12741 _ACEOF
12743 case "$THREADSPEC" in
12744 *-lrt*) ;;
12746 THREADSPEC="$THREADSPEC -lrt"
12747 THREADLIBS="$THREADLIBS -lrt"
12749 esac
12753 LIBS="$save_LIBS"
12755 # We can save a little space at runtime if the mutex has m_count
12756 # or __m_count. This is a nice hack for Linux.
12757 cat >conftest.$ac_ext <<_ACEOF
12758 /* confdefs.h. */
12759 _ACEOF
12760 cat confdefs.h >>conftest.$ac_ext
12761 cat >>conftest.$ac_ext <<_ACEOF
12762 /* end confdefs.h. */
12763 #include <pthread.h>
12765 main ()
12768 extern pthread_mutex_t *mutex; int q = mutex->m_count;
12771 return 0;
12773 _ACEOF
12774 rm -f conftest.$ac_objext
12775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12776 (eval $ac_compile) 2>conftest.er1
12777 ac_status=$?
12778 grep -v '^ *+' conftest.er1 >conftest.err
12779 rm -f conftest.er1
12780 cat conftest.err >&5
12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); } &&
12783 { ac_try='test -z "$ac_c_werror_flag"
12784 || test ! -s conftest.err'
12785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12786 (eval $ac_try) 2>&5
12787 ac_status=$?
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); }; } &&
12790 { ac_try='test -s conftest.$ac_objext'
12791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12792 (eval $ac_try) 2>&5
12793 ac_status=$?
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); }; }; then
12797 cat >>confdefs.h <<\_ACEOF
12798 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
12799 _ACEOF
12801 else
12802 echo "$as_me: failed program was:" >&5
12803 sed 's/^/| /' conftest.$ac_ext >&5
12806 cat >conftest.$ac_ext <<_ACEOF
12807 /* confdefs.h. */
12808 _ACEOF
12809 cat confdefs.h >>conftest.$ac_ext
12810 cat >>conftest.$ac_ext <<_ACEOF
12811 /* end confdefs.h. */
12812 #include <pthread.h>
12814 main ()
12817 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
12820 return 0;
12822 _ACEOF
12823 rm -f conftest.$ac_objext
12824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12825 (eval $ac_compile) 2>conftest.er1
12826 ac_status=$?
12827 grep -v '^ *+' conftest.er1 >conftest.err
12828 rm -f conftest.er1
12829 cat conftest.err >&5
12830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831 (exit $ac_status); } &&
12832 { ac_try='test -z "$ac_c_werror_flag"
12833 || test ! -s conftest.err'
12834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12835 (eval $ac_try) 2>&5
12836 ac_status=$?
12837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838 (exit $ac_status); }; } &&
12839 { ac_try='test -s conftest.$ac_objext'
12840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12841 (eval $ac_try) 2>&5
12842 ac_status=$?
12843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); }; }; then
12846 cat >>confdefs.h <<\_ACEOF
12847 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
12848 _ACEOF
12850 else
12851 echo "$as_me: failed program was:" >&5
12852 sed 's/^/| /' conftest.$ac_ext >&5
12855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12860 # We require a way to get the time.
12861 time_found=no
12865 for ac_func in gettimeofday time ftime
12867 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12868 echo "$as_me:$LINENO: checking for $ac_func" >&5
12869 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12870 if eval "test \"\${$as_ac_var+set}\" = set"; then
12871 echo $ECHO_N "(cached) $ECHO_C" >&6
12872 else
12873 if test x$gcc_no_link = xyes; then
12874 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12875 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12876 { (exit 1); exit 1; }; }
12878 cat >conftest.$ac_ext <<_ACEOF
12879 /* confdefs.h. */
12880 _ACEOF
12881 cat confdefs.h >>conftest.$ac_ext
12882 cat >>conftest.$ac_ext <<_ACEOF
12883 /* end confdefs.h. */
12884 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12886 #define $ac_func innocuous_$ac_func
12888 /* System header to define __stub macros and hopefully few prototypes,
12889 which can conflict with char $ac_func (); below.
12890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12891 <limits.h> exists even on freestanding compilers. */
12893 #ifdef __STDC__
12894 # include <limits.h>
12895 #else
12896 # include <assert.h>
12897 #endif
12899 #undef $ac_func
12901 /* Override any gcc2 internal prototype to avoid an error. */
12902 #ifdef __cplusplus
12903 extern "C"
12905 #endif
12906 /* We use char because int might match the return type of a gcc2
12907 builtin and then its argument prototype would still apply. */
12908 char $ac_func ();
12909 /* The GNU C library defines this for functions which it implements
12910 to always fail with ENOSYS. Some functions are actually named
12911 something starting with __ and the normal name is an alias. */
12912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12913 choke me
12914 #else
12915 char (*f) () = $ac_func;
12916 #endif
12917 #ifdef __cplusplus
12919 #endif
12922 main ()
12924 return f != $ac_func;
12926 return 0;
12928 _ACEOF
12929 rm -f conftest.$ac_objext conftest$ac_exeext
12930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12931 (eval $ac_link) 2>conftest.er1
12932 ac_status=$?
12933 grep -v '^ *+' conftest.er1 >conftest.err
12934 rm -f conftest.er1
12935 cat conftest.err >&5
12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937 (exit $ac_status); } &&
12938 { ac_try='test -z "$ac_c_werror_flag"
12939 || test ! -s conftest.err'
12940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12941 (eval $ac_try) 2>&5
12942 ac_status=$?
12943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944 (exit $ac_status); }; } &&
12945 { ac_try='test -s conftest$ac_exeext'
12946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12947 (eval $ac_try) 2>&5
12948 ac_status=$?
12949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950 (exit $ac_status); }; }; then
12951 eval "$as_ac_var=yes"
12952 else
12953 echo "$as_me: failed program was:" >&5
12954 sed 's/^/| /' conftest.$ac_ext >&5
12956 eval "$as_ac_var=no"
12958 rm -f conftest.err conftest.$ac_objext \
12959 conftest$ac_exeext conftest.$ac_ext
12961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12962 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12963 if test `eval echo '${'$as_ac_var'}'` = yes; then
12964 cat >>confdefs.h <<_ACEOF
12965 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12966 _ACEOF
12967 time_found=yes
12969 done
12971 if test "$time_found" = no; then
12972 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
12973 echo "$as_me: error: no function found to get the time" >&2;}
12974 { (exit 1); exit 1; }; }
12978 for ac_func in memmove
12980 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12981 echo "$as_me:$LINENO: checking for $ac_func" >&5
12982 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12983 if eval "test \"\${$as_ac_var+set}\" = set"; then
12984 echo $ECHO_N "(cached) $ECHO_C" >&6
12985 else
12986 if test x$gcc_no_link = xyes; then
12987 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12988 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12989 { (exit 1); exit 1; }; }
12991 cat >conftest.$ac_ext <<_ACEOF
12992 /* confdefs.h. */
12993 _ACEOF
12994 cat confdefs.h >>conftest.$ac_ext
12995 cat >>conftest.$ac_ext <<_ACEOF
12996 /* end confdefs.h. */
12997 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12999 #define $ac_func innocuous_$ac_func
13001 /* System header to define __stub macros and hopefully few prototypes,
13002 which can conflict with char $ac_func (); below.
13003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13004 <limits.h> exists even on freestanding compilers. */
13006 #ifdef __STDC__
13007 # include <limits.h>
13008 #else
13009 # include <assert.h>
13010 #endif
13012 #undef $ac_func
13014 /* Override any gcc2 internal prototype to avoid an error. */
13015 #ifdef __cplusplus
13016 extern "C"
13018 #endif
13019 /* We use char because int might match the return type of a gcc2
13020 builtin and then its argument prototype would still apply. */
13021 char $ac_func ();
13022 /* The GNU C library defines this for functions which it implements
13023 to always fail with ENOSYS. Some functions are actually named
13024 something starting with __ and the normal name is an alias. */
13025 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13026 choke me
13027 #else
13028 char (*f) () = $ac_func;
13029 #endif
13030 #ifdef __cplusplus
13032 #endif
13035 main ()
13037 return f != $ac_func;
13039 return 0;
13041 _ACEOF
13042 rm -f conftest.$ac_objext conftest$ac_exeext
13043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13044 (eval $ac_link) 2>conftest.er1
13045 ac_status=$?
13046 grep -v '^ *+' conftest.er1 >conftest.err
13047 rm -f conftest.er1
13048 cat conftest.err >&5
13049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050 (exit $ac_status); } &&
13051 { ac_try='test -z "$ac_c_werror_flag"
13052 || test ! -s conftest.err'
13053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13054 (eval $ac_try) 2>&5
13055 ac_status=$?
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); }; } &&
13058 { ac_try='test -s conftest$ac_exeext'
13059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13060 (eval $ac_try) 2>&5
13061 ac_status=$?
13062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); }; }; then
13064 eval "$as_ac_var=yes"
13065 else
13066 echo "$as_me: failed program was:" >&5
13067 sed 's/^/| /' conftest.$ac_ext >&5
13069 eval "$as_ac_var=no"
13071 rm -f conftest.err conftest.$ac_objext \
13072 conftest$ac_exeext conftest.$ac_ext
13074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13075 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13076 if test `eval echo '${'$as_ac_var'}'` = yes; then
13077 cat >>confdefs.h <<_ACEOF
13078 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13079 _ACEOF
13082 done
13085 # We require memcpy.
13086 memcpy_found=no
13088 for ac_func in memcpy
13090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13091 echo "$as_me:$LINENO: checking for $ac_func" >&5
13092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13093 if eval "test \"\${$as_ac_var+set}\" = set"; then
13094 echo $ECHO_N "(cached) $ECHO_C" >&6
13095 else
13096 if test x$gcc_no_link = xyes; then
13097 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13098 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13099 { (exit 1); exit 1; }; }
13101 cat >conftest.$ac_ext <<_ACEOF
13102 /* confdefs.h. */
13103 _ACEOF
13104 cat confdefs.h >>conftest.$ac_ext
13105 cat >>conftest.$ac_ext <<_ACEOF
13106 /* end confdefs.h. */
13107 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13109 #define $ac_func innocuous_$ac_func
13111 /* System header to define __stub macros and hopefully few prototypes,
13112 which can conflict with char $ac_func (); below.
13113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13114 <limits.h> exists even on freestanding compilers. */
13116 #ifdef __STDC__
13117 # include <limits.h>
13118 #else
13119 # include <assert.h>
13120 #endif
13122 #undef $ac_func
13124 /* Override any gcc2 internal prototype to avoid an error. */
13125 #ifdef __cplusplus
13126 extern "C"
13128 #endif
13129 /* We use char because int might match the return type of a gcc2
13130 builtin and then its argument prototype would still apply. */
13131 char $ac_func ();
13132 /* The GNU C library defines this for functions which it implements
13133 to always fail with ENOSYS. Some functions are actually named
13134 something starting with __ and the normal name is an alias. */
13135 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13136 choke me
13137 #else
13138 char (*f) () = $ac_func;
13139 #endif
13140 #ifdef __cplusplus
13142 #endif
13145 main ()
13147 return f != $ac_func;
13149 return 0;
13151 _ACEOF
13152 rm -f conftest.$ac_objext conftest$ac_exeext
13153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13154 (eval $ac_link) 2>conftest.er1
13155 ac_status=$?
13156 grep -v '^ *+' conftest.er1 >conftest.err
13157 rm -f conftest.er1
13158 cat conftest.err >&5
13159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160 (exit $ac_status); } &&
13161 { ac_try='test -z "$ac_c_werror_flag"
13162 || test ! -s conftest.err'
13163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13164 (eval $ac_try) 2>&5
13165 ac_status=$?
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); }; } &&
13168 { ac_try='test -s conftest$ac_exeext'
13169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13170 (eval $ac_try) 2>&5
13171 ac_status=$?
13172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173 (exit $ac_status); }; }; then
13174 eval "$as_ac_var=yes"
13175 else
13176 echo "$as_me: failed program was:" >&5
13177 sed 's/^/| /' conftest.$ac_ext >&5
13179 eval "$as_ac_var=no"
13181 rm -f conftest.err conftest.$ac_objext \
13182 conftest$ac_exeext conftest.$ac_ext
13184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13185 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13186 if test `eval echo '${'$as_ac_var'}'` = yes; then
13187 cat >>confdefs.h <<_ACEOF
13188 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13189 _ACEOF
13190 memcpy_found=yes
13192 done
13194 if test "$memcpy_found" = no; then
13195 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
13196 echo "$as_me: error: memcpy is required" >&2;}
13197 { (exit 1); exit 1; }; }
13199 # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
13200 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13201 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13202 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13203 echo $ECHO_N "(cached) $ECHO_C" >&6
13204 else
13205 ac_check_lib_save_LIBS=$LIBS
13206 LIBS="-ldl $LIBS"
13207 if test x$gcc_no_link = xyes; then
13208 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13209 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13210 { (exit 1); exit 1; }; }
13212 cat >conftest.$ac_ext <<_ACEOF
13213 /* confdefs.h. */
13214 _ACEOF
13215 cat confdefs.h >>conftest.$ac_ext
13216 cat >>conftest.$ac_ext <<_ACEOF
13217 /* end confdefs.h. */
13219 /* Override any gcc2 internal prototype to avoid an error. */
13220 #ifdef __cplusplus
13221 extern "C"
13222 #endif
13223 /* We use char because int might match the return type of a gcc2
13224 builtin and then its argument prototype would still apply. */
13225 char dlopen ();
13227 main ()
13229 dlopen ();
13231 return 0;
13233 _ACEOF
13234 rm -f conftest.$ac_objext conftest$ac_exeext
13235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13236 (eval $ac_link) 2>conftest.er1
13237 ac_status=$?
13238 grep -v '^ *+' conftest.er1 >conftest.err
13239 rm -f conftest.er1
13240 cat conftest.err >&5
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); } &&
13243 { ac_try='test -z "$ac_c_werror_flag"
13244 || test ! -s conftest.err'
13245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13246 (eval $ac_try) 2>&5
13247 ac_status=$?
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); }; } &&
13250 { ac_try='test -s conftest$ac_exeext'
13251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13252 (eval $ac_try) 2>&5
13253 ac_status=$?
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); }; }; then
13256 ac_cv_lib_dl_dlopen=yes
13257 else
13258 echo "$as_me: failed program was:" >&5
13259 sed 's/^/| /' conftest.$ac_ext >&5
13261 ac_cv_lib_dl_dlopen=no
13263 rm -f conftest.err conftest.$ac_objext \
13264 conftest$ac_exeext conftest.$ac_ext
13265 LIBS=$ac_check_lib_save_LIBS
13267 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13268 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13269 if test $ac_cv_lib_dl_dlopen = yes; then
13272 cat >>confdefs.h <<\_ACEOF
13273 #define HAVE_DLOPEN 1
13274 _ACEOF
13276 else
13278 echo "$as_me:$LINENO: checking for dlopen in -ldld" >&5
13279 echo $ECHO_N "checking for dlopen in -ldld... $ECHO_C" >&6
13280 if test "${ac_cv_lib_dld_dlopen+set}" = set; then
13281 echo $ECHO_N "(cached) $ECHO_C" >&6
13282 else
13283 ac_check_lib_save_LIBS=$LIBS
13284 LIBS="-ldld $LIBS"
13285 if test x$gcc_no_link = xyes; then
13286 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13287 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13288 { (exit 1); exit 1; }; }
13290 cat >conftest.$ac_ext <<_ACEOF
13291 /* confdefs.h. */
13292 _ACEOF
13293 cat confdefs.h >>conftest.$ac_ext
13294 cat >>conftest.$ac_ext <<_ACEOF
13295 /* end confdefs.h. */
13297 /* Override any gcc2 internal prototype to avoid an error. */
13298 #ifdef __cplusplus
13299 extern "C"
13300 #endif
13301 /* We use char because int might match the return type of a gcc2
13302 builtin and then its argument prototype would still apply. */
13303 char dlopen ();
13305 main ()
13307 dlopen ();
13309 return 0;
13311 _ACEOF
13312 rm -f conftest.$ac_objext conftest$ac_exeext
13313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13314 (eval $ac_link) 2>conftest.er1
13315 ac_status=$?
13316 grep -v '^ *+' conftest.er1 >conftest.err
13317 rm -f conftest.er1
13318 cat conftest.err >&5
13319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320 (exit $ac_status); } &&
13321 { ac_try='test -z "$ac_c_werror_flag"
13322 || test ! -s conftest.err'
13323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13324 (eval $ac_try) 2>&5
13325 ac_status=$?
13326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327 (exit $ac_status); }; } &&
13328 { ac_try='test -s conftest$ac_exeext'
13329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13330 (eval $ac_try) 2>&5
13331 ac_status=$?
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); }; }; then
13334 ac_cv_lib_dld_dlopen=yes
13335 else
13336 echo "$as_me: failed program was:" >&5
13337 sed 's/^/| /' conftest.$ac_ext >&5
13339 ac_cv_lib_dld_dlopen=no
13341 rm -f conftest.err conftest.$ac_objext \
13342 conftest$ac_exeext conftest.$ac_ext
13343 LIBS=$ac_check_lib_save_LIBS
13345 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dlopen" >&5
13346 echo "${ECHO_T}$ac_cv_lib_dld_dlopen" >&6
13347 if test $ac_cv_lib_dld_dlopen = yes; then
13350 cat >>confdefs.h <<\_ACEOF
13351 #define HAVE_DLOPEN 1
13352 _ACEOF
13359 # Some library-finding code we stole from Tcl.
13360 #--------------------------------------------------------------------
13361 # Check for the existence of the -lsocket and -lnsl libraries.
13362 # The order here is important, so that they end up in the right
13363 # order in the command line generated by make. Here are some
13364 # special considerations:
13365 # 1. Use "connect" and "accept" to check for -lsocket, and
13366 # "gethostbyname" to check for -lnsl.
13367 # 2. Use each function name only once: can't redo a check because
13368 # autoconf caches the results of the last check and won't redo it.
13369 # 3. Use -lnsl and -lsocket only if they supply procedures that
13370 # aren't already present in the normal libraries. This is because
13371 # IRIX 5.2 has libraries, but they aren't needed and they're
13372 # bogus: they goof up name resolution if used.
13373 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
13374 # To get around this problem, check for both libraries together
13375 # if -lsocket doesn't work by itself.
13376 #--------------------------------------------------------------------
13378 echo "$as_me:$LINENO: checking for socket libraries" >&5
13379 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
13380 if test "${gcj_cv_lib_sockets+set}" = set; then
13381 echo $ECHO_N "(cached) $ECHO_C" >&6
13382 else
13383 gcj_cv_lib_sockets=
13384 gcj_checkBoth=0
13385 unset ac_cv_func_connect
13386 echo "$as_me:$LINENO: checking for connect" >&5
13387 echo $ECHO_N "checking for connect... $ECHO_C" >&6
13388 if test "${ac_cv_func_connect+set}" = set; then
13389 echo $ECHO_N "(cached) $ECHO_C" >&6
13390 else
13391 if test x$gcc_no_link = xyes; then
13392 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13393 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13394 { (exit 1); exit 1; }; }
13396 cat >conftest.$ac_ext <<_ACEOF
13397 /* confdefs.h. */
13398 _ACEOF
13399 cat confdefs.h >>conftest.$ac_ext
13400 cat >>conftest.$ac_ext <<_ACEOF
13401 /* end confdefs.h. */
13402 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
13403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13404 #define connect innocuous_connect
13406 /* System header to define __stub macros and hopefully few prototypes,
13407 which can conflict with char connect (); below.
13408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13409 <limits.h> exists even on freestanding compilers. */
13411 #ifdef __STDC__
13412 # include <limits.h>
13413 #else
13414 # include <assert.h>
13415 #endif
13417 #undef connect
13419 /* Override any gcc2 internal prototype to avoid an error. */
13420 #ifdef __cplusplus
13421 extern "C"
13423 #endif
13424 /* We use char because int might match the return type of a gcc2
13425 builtin and then its argument prototype would still apply. */
13426 char connect ();
13427 /* The GNU C library defines this for functions which it implements
13428 to always fail with ENOSYS. Some functions are actually named
13429 something starting with __ and the normal name is an alias. */
13430 #if defined (__stub_connect) || defined (__stub___connect)
13431 choke me
13432 #else
13433 char (*f) () = connect;
13434 #endif
13435 #ifdef __cplusplus
13437 #endif
13440 main ()
13442 return f != connect;
13444 return 0;
13446 _ACEOF
13447 rm -f conftest.$ac_objext conftest$ac_exeext
13448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13449 (eval $ac_link) 2>conftest.er1
13450 ac_status=$?
13451 grep -v '^ *+' conftest.er1 >conftest.err
13452 rm -f conftest.er1
13453 cat conftest.err >&5
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); } &&
13456 { ac_try='test -z "$ac_c_werror_flag"
13457 || test ! -s conftest.err'
13458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13459 (eval $ac_try) 2>&5
13460 ac_status=$?
13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); }; } &&
13463 { ac_try='test -s conftest$ac_exeext'
13464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13465 (eval $ac_try) 2>&5
13466 ac_status=$?
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); }; }; then
13469 ac_cv_func_connect=yes
13470 else
13471 echo "$as_me: failed program was:" >&5
13472 sed 's/^/| /' conftest.$ac_ext >&5
13474 ac_cv_func_connect=no
13476 rm -f conftest.err conftest.$ac_objext \
13477 conftest$ac_exeext conftest.$ac_ext
13479 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
13480 echo "${ECHO_T}$ac_cv_func_connect" >&6
13481 if test $ac_cv_func_connect = yes; then
13482 gcj_checkSocket=0
13483 else
13484 gcj_checkSocket=1
13487 if test "$gcj_checkSocket" = 1; then
13488 unset ac_cv_func_connect
13489 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
13490 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
13491 if test "${ac_cv_lib_socket_main+set}" = set; then
13492 echo $ECHO_N "(cached) $ECHO_C" >&6
13493 else
13494 ac_check_lib_save_LIBS=$LIBS
13495 LIBS="-lsocket $LIBS"
13496 if test x$gcc_no_link = xyes; then
13497 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13498 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13499 { (exit 1); exit 1; }; }
13501 cat >conftest.$ac_ext <<_ACEOF
13502 /* confdefs.h. */
13503 _ACEOF
13504 cat confdefs.h >>conftest.$ac_ext
13505 cat >>conftest.$ac_ext <<_ACEOF
13506 /* end confdefs.h. */
13510 main ()
13512 main ();
13514 return 0;
13516 _ACEOF
13517 rm -f conftest.$ac_objext conftest$ac_exeext
13518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13519 (eval $ac_link) 2>conftest.er1
13520 ac_status=$?
13521 grep -v '^ *+' conftest.er1 >conftest.err
13522 rm -f conftest.er1
13523 cat conftest.err >&5
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); } &&
13526 { ac_try='test -z "$ac_c_werror_flag"
13527 || test ! -s conftest.err'
13528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13529 (eval $ac_try) 2>&5
13530 ac_status=$?
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); }; } &&
13533 { ac_try='test -s conftest$ac_exeext'
13534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13535 (eval $ac_try) 2>&5
13536 ac_status=$?
13537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538 (exit $ac_status); }; }; then
13539 ac_cv_lib_socket_main=yes
13540 else
13541 echo "$as_me: failed program was:" >&5
13542 sed 's/^/| /' conftest.$ac_ext >&5
13544 ac_cv_lib_socket_main=no
13546 rm -f conftest.err conftest.$ac_objext \
13547 conftest$ac_exeext conftest.$ac_ext
13548 LIBS=$ac_check_lib_save_LIBS
13550 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
13551 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
13552 if test $ac_cv_lib_socket_main = yes; then
13553 gcj_cv_lib_sockets="-lsocket"
13554 else
13555 gcj_checkBoth=1
13559 if test "$gcj_checkBoth" = 1; then
13560 gcj_oldLibs=$LIBS
13561 LIBS="$LIBS -lsocket -lnsl"
13562 unset ac_cv_func_accept
13563 echo "$as_me:$LINENO: checking for accept" >&5
13564 echo $ECHO_N "checking for accept... $ECHO_C" >&6
13565 if test "${ac_cv_func_accept+set}" = set; then
13566 echo $ECHO_N "(cached) $ECHO_C" >&6
13567 else
13568 if test x$gcc_no_link = xyes; then
13569 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13570 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13571 { (exit 1); exit 1; }; }
13573 cat >conftest.$ac_ext <<_ACEOF
13574 /* confdefs.h. */
13575 _ACEOF
13576 cat confdefs.h >>conftest.$ac_ext
13577 cat >>conftest.$ac_ext <<_ACEOF
13578 /* end confdefs.h. */
13579 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
13580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13581 #define accept innocuous_accept
13583 /* System header to define __stub macros and hopefully few prototypes,
13584 which can conflict with char accept (); below.
13585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13586 <limits.h> exists even on freestanding compilers. */
13588 #ifdef __STDC__
13589 # include <limits.h>
13590 #else
13591 # include <assert.h>
13592 #endif
13594 #undef accept
13596 /* Override any gcc2 internal prototype to avoid an error. */
13597 #ifdef __cplusplus
13598 extern "C"
13600 #endif
13601 /* We use char because int might match the return type of a gcc2
13602 builtin and then its argument prototype would still apply. */
13603 char accept ();
13604 /* The GNU C library defines this for functions which it implements
13605 to always fail with ENOSYS. Some functions are actually named
13606 something starting with __ and the normal name is an alias. */
13607 #if defined (__stub_accept) || defined (__stub___accept)
13608 choke me
13609 #else
13610 char (*f) () = accept;
13611 #endif
13612 #ifdef __cplusplus
13614 #endif
13617 main ()
13619 return f != accept;
13621 return 0;
13623 _ACEOF
13624 rm -f conftest.$ac_objext conftest$ac_exeext
13625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13626 (eval $ac_link) 2>conftest.er1
13627 ac_status=$?
13628 grep -v '^ *+' conftest.er1 >conftest.err
13629 rm -f conftest.er1
13630 cat conftest.err >&5
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); } &&
13633 { ac_try='test -z "$ac_c_werror_flag"
13634 || test ! -s conftest.err'
13635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13636 (eval $ac_try) 2>&5
13637 ac_status=$?
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); }; } &&
13640 { ac_try='test -s conftest$ac_exeext'
13641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13642 (eval $ac_try) 2>&5
13643 ac_status=$?
13644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645 (exit $ac_status); }; }; then
13646 ac_cv_func_accept=yes
13647 else
13648 echo "$as_me: failed program was:" >&5
13649 sed 's/^/| /' conftest.$ac_ext >&5
13651 ac_cv_func_accept=no
13653 rm -f conftest.err conftest.$ac_objext \
13654 conftest$ac_exeext conftest.$ac_ext
13656 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
13657 echo "${ECHO_T}$ac_cv_func_accept" >&6
13658 if test $ac_cv_func_accept = yes; then
13659 gcj_checkNsl=0
13660 gcj_cv_lib_sockets="-lsocket -lnsl"
13663 unset ac_cv_func_accept
13664 LIBS=$gcj_oldLibs
13666 unset ac_cv_func_gethostbyname
13667 gcj_oldLibs=$LIBS
13668 LIBS="$LIBS $gcj_cv_lib_sockets"
13669 echo "$as_me:$LINENO: checking for gethostbyname" >&5
13670 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
13671 if test "${ac_cv_func_gethostbyname+set}" = set; then
13672 echo $ECHO_N "(cached) $ECHO_C" >&6
13673 else
13674 if test x$gcc_no_link = xyes; then
13675 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13676 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13677 { (exit 1); exit 1; }; }
13679 cat >conftest.$ac_ext <<_ACEOF
13680 /* confdefs.h. */
13681 _ACEOF
13682 cat confdefs.h >>conftest.$ac_ext
13683 cat >>conftest.$ac_ext <<_ACEOF
13684 /* end confdefs.h. */
13685 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
13686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13687 #define gethostbyname innocuous_gethostbyname
13689 /* System header to define __stub macros and hopefully few prototypes,
13690 which can conflict with char gethostbyname (); below.
13691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13692 <limits.h> exists even on freestanding compilers. */
13694 #ifdef __STDC__
13695 # include <limits.h>
13696 #else
13697 # include <assert.h>
13698 #endif
13700 #undef gethostbyname
13702 /* Override any gcc2 internal prototype to avoid an error. */
13703 #ifdef __cplusplus
13704 extern "C"
13706 #endif
13707 /* We use char because int might match the return type of a gcc2
13708 builtin and then its argument prototype would still apply. */
13709 char gethostbyname ();
13710 /* The GNU C library defines this for functions which it implements
13711 to always fail with ENOSYS. Some functions are actually named
13712 something starting with __ and the normal name is an alias. */
13713 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13714 choke me
13715 #else
13716 char (*f) () = gethostbyname;
13717 #endif
13718 #ifdef __cplusplus
13720 #endif
13723 main ()
13725 return f != gethostbyname;
13727 return 0;
13729 _ACEOF
13730 rm -f conftest.$ac_objext conftest$ac_exeext
13731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13732 (eval $ac_link) 2>conftest.er1
13733 ac_status=$?
13734 grep -v '^ *+' conftest.er1 >conftest.err
13735 rm -f conftest.er1
13736 cat conftest.err >&5
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); } &&
13739 { ac_try='test -z "$ac_c_werror_flag"
13740 || test ! -s conftest.err'
13741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13742 (eval $ac_try) 2>&5
13743 ac_status=$?
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); }; } &&
13746 { ac_try='test -s conftest$ac_exeext'
13747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13748 (eval $ac_try) 2>&5
13749 ac_status=$?
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); }; }; then
13752 ac_cv_func_gethostbyname=yes
13753 else
13754 echo "$as_me: failed program was:" >&5
13755 sed 's/^/| /' conftest.$ac_ext >&5
13757 ac_cv_func_gethostbyname=no
13759 rm -f conftest.err conftest.$ac_objext \
13760 conftest$ac_exeext conftest.$ac_ext
13762 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
13763 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
13764 if test $ac_cv_func_gethostbyname = yes; then
13766 else
13767 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
13768 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
13769 if test "${ac_cv_lib_nsl_main+set}" = set; then
13770 echo $ECHO_N "(cached) $ECHO_C" >&6
13771 else
13772 ac_check_lib_save_LIBS=$LIBS
13773 LIBS="-lnsl $LIBS"
13774 if test x$gcc_no_link = xyes; then
13775 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13776 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13777 { (exit 1); exit 1; }; }
13779 cat >conftest.$ac_ext <<_ACEOF
13780 /* confdefs.h. */
13781 _ACEOF
13782 cat confdefs.h >>conftest.$ac_ext
13783 cat >>conftest.$ac_ext <<_ACEOF
13784 /* end confdefs.h. */
13788 main ()
13790 main ();
13792 return 0;
13794 _ACEOF
13795 rm -f conftest.$ac_objext conftest$ac_exeext
13796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13797 (eval $ac_link) 2>conftest.er1
13798 ac_status=$?
13799 grep -v '^ *+' conftest.er1 >conftest.err
13800 rm -f conftest.er1
13801 cat conftest.err >&5
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); } &&
13804 { ac_try='test -z "$ac_c_werror_flag"
13805 || test ! -s conftest.err'
13806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13807 (eval $ac_try) 2>&5
13808 ac_status=$?
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); }; } &&
13811 { ac_try='test -s conftest$ac_exeext'
13812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13813 (eval $ac_try) 2>&5
13814 ac_status=$?
13815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); }; }; then
13817 ac_cv_lib_nsl_main=yes
13818 else
13819 echo "$as_me: failed program was:" >&5
13820 sed 's/^/| /' conftest.$ac_ext >&5
13822 ac_cv_lib_nsl_main=no
13824 rm -f conftest.err conftest.$ac_objext \
13825 conftest$ac_exeext conftest.$ac_ext
13826 LIBS=$ac_check_lib_save_LIBS
13828 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
13829 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
13830 if test $ac_cv_lib_nsl_main = yes; then
13831 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
13836 unset ac_cv_func_gethostbyname
13837 LIBS=$gcj_oldLIBS
13840 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
13841 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
13842 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
13844 if test "$with_system_zlib" = yes; then
13845 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
13846 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
13847 if test "${ac_cv_lib_z_deflate+set}" = set; then
13848 echo $ECHO_N "(cached) $ECHO_C" >&6
13849 else
13850 ac_check_lib_save_LIBS=$LIBS
13851 LIBS="-lz $LIBS"
13852 if test x$gcc_no_link = xyes; then
13853 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13854 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13855 { (exit 1); exit 1; }; }
13857 cat >conftest.$ac_ext <<_ACEOF
13858 /* confdefs.h. */
13859 _ACEOF
13860 cat confdefs.h >>conftest.$ac_ext
13861 cat >>conftest.$ac_ext <<_ACEOF
13862 /* end confdefs.h. */
13864 /* Override any gcc2 internal prototype to avoid an error. */
13865 #ifdef __cplusplus
13866 extern "C"
13867 #endif
13868 /* We use char because int might match the return type of a gcc2
13869 builtin and then its argument prototype would still apply. */
13870 char deflate ();
13872 main ()
13874 deflate ();
13876 return 0;
13878 _ACEOF
13879 rm -f conftest.$ac_objext conftest$ac_exeext
13880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13881 (eval $ac_link) 2>conftest.er1
13882 ac_status=$?
13883 grep -v '^ *+' conftest.er1 >conftest.err
13884 rm -f conftest.er1
13885 cat conftest.err >&5
13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); } &&
13888 { ac_try='test -z "$ac_c_werror_flag"
13889 || test ! -s conftest.err'
13890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13891 (eval $ac_try) 2>&5
13892 ac_status=$?
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); }; } &&
13895 { ac_try='test -s conftest$ac_exeext'
13896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13897 (eval $ac_try) 2>&5
13898 ac_status=$?
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); }; }; then
13901 ac_cv_lib_z_deflate=yes
13902 else
13903 echo "$as_me: failed program was:" >&5
13904 sed 's/^/| /' conftest.$ac_ext >&5
13906 ac_cv_lib_z_deflate=no
13908 rm -f conftest.err conftest.$ac_objext \
13909 conftest$ac_exeext conftest.$ac_ext
13910 LIBS=$ac_check_lib_save_LIBS
13912 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
13913 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
13914 if test $ac_cv_lib_z_deflate = yes; then
13915 ZLIBSPEC=-lz
13916 else
13917 ZLIBSPEC=
13922 # Test for Gtk stuff, if asked for.
13923 if test "$use_gtk_awt" = yes; then
13925 succeeded=no
13927 if test -z "$PKG_CONFIG"; then
13928 # Extract the first word of "pkg-config", so it can be a program name with args.
13929 set dummy pkg-config; ac_word=$2
13930 echo "$as_me:$LINENO: checking for $ac_word" >&5
13931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13932 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13933 echo $ECHO_N "(cached) $ECHO_C" >&6
13934 else
13935 case $PKG_CONFIG in
13936 [\\/]* | ?:[\\/]*)
13937 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13941 for as_dir in $PATH
13943 IFS=$as_save_IFS
13944 test -z "$as_dir" && as_dir=.
13945 for ac_exec_ext in '' $ac_executable_extensions; do
13946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13947 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13949 break 2
13951 done
13952 done
13954 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13956 esac
13958 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13960 if test -n "$PKG_CONFIG"; then
13961 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13962 echo "${ECHO_T}$PKG_CONFIG" >&6
13963 else
13964 echo "$as_me:$LINENO: result: no" >&5
13965 echo "${ECHO_T}no" >&6
13970 if test "$PKG_CONFIG" = "no" ; then
13971 echo "*** The pkg-config script could not be found. Make sure it is"
13972 echo "*** in your path, or set the PKG_CONFIG environment variable"
13973 echo "*** to the full path to pkg-config."
13974 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13975 else
13976 PKG_CONFIG_MIN_VERSION=0.9.0
13977 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13978 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
13979 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
13981 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
13982 echo "$as_me:$LINENO: result: yes" >&5
13983 echo "${ECHO_T}yes" >&6
13984 succeeded=yes
13986 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
13987 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
13988 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
13989 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
13990 echo "${ECHO_T}$GTK_CFLAGS" >&6
13992 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
13993 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
13994 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
13995 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
13996 echo "${ECHO_T}$GTK_LIBS" >&6
13997 else
13998 GTK_CFLAGS=""
13999 GTK_LIBS=""
14000 ## If we have a custom action on failure, don't print errors, but
14001 ## do set a variable so people can do so.
14002 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
14003 echo $GTK_PKG_ERRORS
14008 else
14009 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14010 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14014 if test $succeeded = yes; then
14016 else
14017 { { echo "$as_me:$LINENO: error: Library requirements (gtk+-2.0 >= 2.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
14018 echo "$as_me: error: Library requirements (gtk+-2.0 >= 2.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
14019 { (exit 1); exit 1; }; }
14026 succeeded=no
14028 if test -z "$PKG_CONFIG"; then
14029 # Extract the first word of "pkg-config", so it can be a program name with args.
14030 set dummy pkg-config; ac_word=$2
14031 echo "$as_me:$LINENO: checking for $ac_word" >&5
14032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14033 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14034 echo $ECHO_N "(cached) $ECHO_C" >&6
14035 else
14036 case $PKG_CONFIG in
14037 [\\/]* | ?:[\\/]*)
14038 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14042 for as_dir in $PATH
14044 IFS=$as_save_IFS
14045 test -z "$as_dir" && as_dir=.
14046 for ac_exec_ext in '' $ac_executable_extensions; do
14047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14048 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14050 break 2
14052 done
14053 done
14055 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14057 esac
14059 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14061 if test -n "$PKG_CONFIG"; then
14062 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14063 echo "${ECHO_T}$PKG_CONFIG" >&6
14064 else
14065 echo "$as_me:$LINENO: result: no" >&5
14066 echo "${ECHO_T}no" >&6
14071 if test "$PKG_CONFIG" = "no" ; then
14072 echo "*** The pkg-config script could not be found. Make sure it is"
14073 echo "*** in your path, or set the PKG_CONFIG environment variable"
14074 echo "*** to the full path to pkg-config."
14075 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14076 else
14077 PKG_CONFIG_MIN_VERSION=0.9.0
14078 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14079 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
14080 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
14082 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
14083 echo "$as_me:$LINENO: result: yes" >&5
14084 echo "${ECHO_T}yes" >&6
14085 succeeded=yes
14087 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
14088 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
14089 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
14090 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
14091 echo "${ECHO_T}$GLIB_CFLAGS" >&6
14093 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
14094 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
14095 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
14096 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
14097 echo "${ECHO_T}$GLIB_LIBS" >&6
14098 else
14099 GLIB_CFLAGS=""
14100 GLIB_LIBS=""
14101 ## If we have a custom action on failure, don't print errors, but
14102 ## do set a variable so people can do so.
14103 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
14104 echo $GLIB_PKG_ERRORS
14109 else
14110 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14111 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14115 if test $succeeded = yes; then
14117 else
14118 { { echo "$as_me:$LINENO: error: Library requirements (glib-2.0 >= 2.4 gthread-2.0 >= 2.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
14119 echo "$as_me: error: Library requirements (glib-2.0 >= 2.4 gthread-2.0 >= 2.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
14120 { (exit 1); exit 1; }; }
14127 succeeded=no
14129 if test -z "$PKG_CONFIG"; then
14130 # Extract the first word of "pkg-config", so it can be a program name with args.
14131 set dummy pkg-config; ac_word=$2
14132 echo "$as_me:$LINENO: checking for $ac_word" >&5
14133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14134 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14135 echo $ECHO_N "(cached) $ECHO_C" >&6
14136 else
14137 case $PKG_CONFIG in
14138 [\\/]* | ?:[\\/]*)
14139 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14143 for as_dir in $PATH
14145 IFS=$as_save_IFS
14146 test -z "$as_dir" && as_dir=.
14147 for ac_exec_ext in '' $ac_executable_extensions; do
14148 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14149 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14151 break 2
14153 done
14154 done
14156 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14158 esac
14160 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14162 if test -n "$PKG_CONFIG"; then
14163 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14164 echo "${ECHO_T}$PKG_CONFIG" >&6
14165 else
14166 echo "$as_me:$LINENO: result: no" >&5
14167 echo "${ECHO_T}no" >&6
14172 if test "$PKG_CONFIG" = "no" ; then
14173 echo "*** The pkg-config script could not be found. Make sure it is"
14174 echo "*** in your path, or set the PKG_CONFIG environment variable"
14175 echo "*** to the full path to pkg-config."
14176 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14177 else
14178 PKG_CONFIG_MIN_VERSION=0.9.0
14179 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14180 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
14181 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
14183 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
14184 echo "$as_me:$LINENO: result: yes" >&5
14185 echo "${ECHO_T}yes" >&6
14186 succeeded=yes
14188 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
14189 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
14190 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
14191 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
14192 echo "${ECHO_T}$LIBART_CFLAGS" >&6
14194 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
14195 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
14196 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
14197 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
14198 echo "${ECHO_T}$LIBART_LIBS" >&6
14199 else
14200 LIBART_CFLAGS=""
14201 LIBART_LIBS=""
14202 ## If we have a custom action on failure, don't print errors, but
14203 ## do set a variable so people can do so.
14204 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
14205 echo $LIBART_PKG_ERRORS
14210 else
14211 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14212 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14216 if test $succeeded = yes; then
14218 else
14219 { { echo "$as_me:$LINENO: error: Library requirements (libart-2.0 >= 2.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
14220 echo "$as_me: error: Library requirements (libart-2.0 >= 2.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
14221 { (exit 1); exit 1; }; }
14227 # We require the XTest Extension to support java.awt.Robot.
14228 echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
14229 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
14230 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
14231 echo $ECHO_N "(cached) $ECHO_C" >&6
14232 else
14233 ac_check_lib_save_LIBS=$LIBS
14234 LIBS="-lXtst ${X_LIBS} $LIBS"
14235 if test x$gcc_no_link = xyes; then
14236 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14237 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14238 { (exit 1); exit 1; }; }
14240 cat >conftest.$ac_ext <<_ACEOF
14241 /* confdefs.h. */
14242 _ACEOF
14243 cat confdefs.h >>conftest.$ac_ext
14244 cat >>conftest.$ac_ext <<_ACEOF
14245 /* end confdefs.h. */
14247 /* Override any gcc2 internal prototype to avoid an error. */
14248 #ifdef __cplusplus
14249 extern "C"
14250 #endif
14251 /* We use char because int might match the return type of a gcc2
14252 builtin and then its argument prototype would still apply. */
14253 char XTestQueryExtension ();
14255 main ()
14257 XTestQueryExtension ();
14259 return 0;
14261 _ACEOF
14262 rm -f conftest.$ac_objext conftest$ac_exeext
14263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14264 (eval $ac_link) 2>conftest.er1
14265 ac_status=$?
14266 grep -v '^ *+' conftest.er1 >conftest.err
14267 rm -f conftest.er1
14268 cat conftest.err >&5
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); } &&
14271 { ac_try='test -z "$ac_c_werror_flag"
14272 || test ! -s conftest.err'
14273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14274 (eval $ac_try) 2>&5
14275 ac_status=$?
14276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); }; } &&
14278 { ac_try='test -s conftest$ac_exeext'
14279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14280 (eval $ac_try) 2>&5
14281 ac_status=$?
14282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283 (exit $ac_status); }; }; then
14284 ac_cv_lib_Xtst_XTestQueryExtension=yes
14285 else
14286 echo "$as_me: failed program was:" >&5
14287 sed 's/^/| /' conftest.$ac_ext >&5
14289 ac_cv_lib_Xtst_XTestQueryExtension=no
14291 rm -f conftest.err conftest.$ac_objext \
14292 conftest$ac_exeext conftest.$ac_ext
14293 LIBS=$ac_check_lib_save_LIBS
14295 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
14296 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
14297 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
14298 true
14299 else
14300 { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
14301 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
14302 { (exit 1); exit 1; }; }
14307 # On Solaris, and maybe other architectures, the Boehm collector
14308 # requires -ldl.
14309 if test "$GC" = boehm; then
14310 echo "$as_me:$LINENO: checking for main in -ldl" >&5
14311 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
14312 if test "${ac_cv_lib_dl_main+set}" = set; then
14313 echo $ECHO_N "(cached) $ECHO_C" >&6
14314 else
14315 ac_check_lib_save_LIBS=$LIBS
14316 LIBS="-ldl $LIBS"
14317 if test x$gcc_no_link = xyes; then
14318 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14319 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14320 { (exit 1); exit 1; }; }
14322 cat >conftest.$ac_ext <<_ACEOF
14323 /* confdefs.h. */
14324 _ACEOF
14325 cat confdefs.h >>conftest.$ac_ext
14326 cat >>conftest.$ac_ext <<_ACEOF
14327 /* end confdefs.h. */
14331 main ()
14333 main ();
14335 return 0;
14337 _ACEOF
14338 rm -f conftest.$ac_objext conftest$ac_exeext
14339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14340 (eval $ac_link) 2>conftest.er1
14341 ac_status=$?
14342 grep -v '^ *+' conftest.er1 >conftest.err
14343 rm -f conftest.er1
14344 cat conftest.err >&5
14345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346 (exit $ac_status); } &&
14347 { ac_try='test -z "$ac_c_werror_flag"
14348 || test ! -s conftest.err'
14349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14350 (eval $ac_try) 2>&5
14351 ac_status=$?
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); }; } &&
14354 { ac_try='test -s conftest$ac_exeext'
14355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14356 (eval $ac_try) 2>&5
14357 ac_status=$?
14358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 (exit $ac_status); }; }; then
14360 ac_cv_lib_dl_main=yes
14361 else
14362 echo "$as_me: failed program was:" >&5
14363 sed 's/^/| /' conftest.$ac_ext >&5
14365 ac_cv_lib_dl_main=no
14367 rm -f conftest.err conftest.$ac_objext \
14368 conftest$ac_exeext conftest.$ac_ext
14369 LIBS=$ac_check_lib_save_LIBS
14371 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
14372 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
14373 if test $ac_cv_lib_dl_main = yes; then
14374 SYSTEMSPEC="$SYSTEMSPEC -ldl"
14380 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
14381 case $build in
14382 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
14383 *) CLASSPATH_SEPARATOR=':' ;;
14384 esac
14387 # We must search the source tree for java.lang, since we still don't
14388 # have libgcj.jar nor java/lang/*.class
14389 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
14390 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
14392 # Since some classes depend on this one, we need its source available
14393 # before we can do any GCJ compilation test :-(
14394 if test ! -f gnu/classpath/Configuration.java; then
14395 test -d gnu || mkdir gnu
14396 test -d gnu/classpath || mkdir gnu/classpath
14397 # Note that it is not crucial that all the values here be correct.
14398 sed -e "s,@prefix@,$prefix," \
14399 -e "s,@VERSION@,$VERSION," \
14400 -e "s,@LIBDEBUG@,false," \
14401 -e "s,@INIT_LOAD_LIBRARY@,false," \
14402 -e "s,@@,$LIBGCJDEBUG," \
14403 -e "s,@default_toolkit@,$TOOLKIT," \
14404 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
14405 -e "s,@GTK_CAIRO_ENABLED@,false," \
14406 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
14407 > gnu/classpath/Configuration.java
14408 # We do not want to redirect the output of the grep below to /dev/null,
14409 # but we add /dev/null to the input list so that grep will print the
14410 # filename of Configuration.java in case it finds any matches.
14411 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
14412 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
14413 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
14414 { (exit 1); exit 1; }; }
14418 if test -n "$ac_tool_prefix"; then
14419 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
14420 set dummy ${ac_tool_prefix}gcj; ac_word=$2
14421 echo "$as_me:$LINENO: checking for $ac_word" >&5
14422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14423 if test "${ac_cv_prog_GCJ+set}" = set; then
14424 echo $ECHO_N "(cached) $ECHO_C" >&6
14425 else
14426 if test -n "$GCJ"; then
14427 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
14428 else
14429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14430 for as_dir in $PATH
14432 IFS=$as_save_IFS
14433 test -z "$as_dir" && as_dir=.
14434 for ac_exec_ext in '' $ac_executable_extensions; do
14435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14436 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
14437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14438 break 2
14440 done
14441 done
14445 GCJ=$ac_cv_prog_GCJ
14446 if test -n "$GCJ"; then
14447 echo "$as_me:$LINENO: result: $GCJ" >&5
14448 echo "${ECHO_T}$GCJ" >&6
14449 else
14450 echo "$as_me:$LINENO: result: no" >&5
14451 echo "${ECHO_T}no" >&6
14455 if test -z "$ac_cv_prog_GCJ"; then
14456 ac_ct_GCJ=$GCJ
14457 # Extract the first word of "gcj", so it can be a program name with args.
14458 set dummy gcj; ac_word=$2
14459 echo "$as_me:$LINENO: checking for $ac_word" >&5
14460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14461 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
14462 echo $ECHO_N "(cached) $ECHO_C" >&6
14463 else
14464 if test -n "$ac_ct_GCJ"; then
14465 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
14466 else
14467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14468 for as_dir in $PATH
14470 IFS=$as_save_IFS
14471 test -z "$as_dir" && as_dir=.
14472 for ac_exec_ext in '' $ac_executable_extensions; do
14473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14474 ac_cv_prog_ac_ct_GCJ="gcj"
14475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14476 break 2
14478 done
14479 done
14481 test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
14484 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
14485 if test -n "$ac_ct_GCJ"; then
14486 echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
14487 echo "${ECHO_T}$ac_ct_GCJ" >&6
14488 else
14489 echo "$as_me:$LINENO: result: no" >&5
14490 echo "${ECHO_T}no" >&6
14493 GCJ=$ac_ct_GCJ
14494 else
14495 GCJ="$ac_cv_prog_GCJ"
14498 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
14503 # Now remove it.
14504 rm -f gnu/classpath/Configuration.java
14506 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
14508 echo "$as_me:$LINENO: checking for void *" >&5
14509 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14510 if test "${ac_cv_type_void_p+set}" = set; then
14511 echo $ECHO_N "(cached) $ECHO_C" >&6
14512 else
14513 cat >conftest.$ac_ext <<_ACEOF
14514 /* confdefs.h. */
14515 _ACEOF
14516 cat confdefs.h >>conftest.$ac_ext
14517 cat >>conftest.$ac_ext <<_ACEOF
14518 /* end confdefs.h. */
14519 $ac_includes_default
14521 main ()
14523 if ((void * *) 0)
14524 return 0;
14525 if (sizeof (void *))
14526 return 0;
14528 return 0;
14530 _ACEOF
14531 rm -f conftest.$ac_objext
14532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14533 (eval $ac_compile) 2>conftest.er1
14534 ac_status=$?
14535 grep -v '^ *+' conftest.er1 >conftest.err
14536 rm -f conftest.er1
14537 cat conftest.err >&5
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); } &&
14540 { ac_try='test -z "$ac_c_werror_flag"
14541 || test ! -s conftest.err'
14542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14543 (eval $ac_try) 2>&5
14544 ac_status=$?
14545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546 (exit $ac_status); }; } &&
14547 { ac_try='test -s conftest.$ac_objext'
14548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14549 (eval $ac_try) 2>&5
14550 ac_status=$?
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); }; }; then
14553 ac_cv_type_void_p=yes
14554 else
14555 echo "$as_me: failed program was:" >&5
14556 sed 's/^/| /' conftest.$ac_ext >&5
14558 ac_cv_type_void_p=no
14560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14562 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14563 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14565 echo "$as_me:$LINENO: checking size of void *" >&5
14566 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14567 if test "${ac_cv_sizeof_void_p+set}" = set; then
14568 echo $ECHO_N "(cached) $ECHO_C" >&6
14569 else
14570 if test "$ac_cv_type_void_p" = yes; then
14571 # The cast to unsigned long works around a bug in the HP C Compiler
14572 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14573 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14574 # This bug is HP SR number 8606223364.
14575 if test "$cross_compiling" = yes; then
14576 # Depending upon the size, compute the lo and hi bounds.
14577 cat >conftest.$ac_ext <<_ACEOF
14578 /* confdefs.h. */
14579 _ACEOF
14580 cat confdefs.h >>conftest.$ac_ext
14581 cat >>conftest.$ac_ext <<_ACEOF
14582 /* end confdefs.h. */
14583 $ac_includes_default
14585 main ()
14587 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14588 test_array [0] = 0
14591 return 0;
14593 _ACEOF
14594 rm -f conftest.$ac_objext
14595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14596 (eval $ac_compile) 2>conftest.er1
14597 ac_status=$?
14598 grep -v '^ *+' conftest.er1 >conftest.err
14599 rm -f conftest.er1
14600 cat conftest.err >&5
14601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602 (exit $ac_status); } &&
14603 { ac_try='test -z "$ac_c_werror_flag"
14604 || test ! -s conftest.err'
14605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14606 (eval $ac_try) 2>&5
14607 ac_status=$?
14608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 (exit $ac_status); }; } &&
14610 { ac_try='test -s conftest.$ac_objext'
14611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14612 (eval $ac_try) 2>&5
14613 ac_status=$?
14614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615 (exit $ac_status); }; }; then
14616 ac_lo=0 ac_mid=0
14617 while :; do
14618 cat >conftest.$ac_ext <<_ACEOF
14619 /* confdefs.h. */
14620 _ACEOF
14621 cat confdefs.h >>conftest.$ac_ext
14622 cat >>conftest.$ac_ext <<_ACEOF
14623 /* end confdefs.h. */
14624 $ac_includes_default
14626 main ()
14628 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14629 test_array [0] = 0
14632 return 0;
14634 _ACEOF
14635 rm -f conftest.$ac_objext
14636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14637 (eval $ac_compile) 2>conftest.er1
14638 ac_status=$?
14639 grep -v '^ *+' conftest.er1 >conftest.err
14640 rm -f conftest.er1
14641 cat conftest.err >&5
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); } &&
14644 { ac_try='test -z "$ac_c_werror_flag"
14645 || test ! -s conftest.err'
14646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14647 (eval $ac_try) 2>&5
14648 ac_status=$?
14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); }; } &&
14651 { ac_try='test -s conftest.$ac_objext'
14652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14653 (eval $ac_try) 2>&5
14654 ac_status=$?
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); }; }; then
14657 ac_hi=$ac_mid; break
14658 else
14659 echo "$as_me: failed program was:" >&5
14660 sed 's/^/| /' conftest.$ac_ext >&5
14662 ac_lo=`expr $ac_mid + 1`
14663 if test $ac_lo -le $ac_mid; then
14664 ac_lo= ac_hi=
14665 break
14667 ac_mid=`expr 2 '*' $ac_mid + 1`
14669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14670 done
14671 else
14672 echo "$as_me: failed program was:" >&5
14673 sed 's/^/| /' conftest.$ac_ext >&5
14675 cat >conftest.$ac_ext <<_ACEOF
14676 /* confdefs.h. */
14677 _ACEOF
14678 cat confdefs.h >>conftest.$ac_ext
14679 cat >>conftest.$ac_ext <<_ACEOF
14680 /* end confdefs.h. */
14681 $ac_includes_default
14683 main ()
14685 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14686 test_array [0] = 0
14689 return 0;
14691 _ACEOF
14692 rm -f conftest.$ac_objext
14693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14694 (eval $ac_compile) 2>conftest.er1
14695 ac_status=$?
14696 grep -v '^ *+' conftest.er1 >conftest.err
14697 rm -f conftest.er1
14698 cat conftest.err >&5
14699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700 (exit $ac_status); } &&
14701 { ac_try='test -z "$ac_c_werror_flag"
14702 || test ! -s conftest.err'
14703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14704 (eval $ac_try) 2>&5
14705 ac_status=$?
14706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14707 (exit $ac_status); }; } &&
14708 { ac_try='test -s conftest.$ac_objext'
14709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14710 (eval $ac_try) 2>&5
14711 ac_status=$?
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 (exit $ac_status); }; }; then
14714 ac_hi=-1 ac_mid=-1
14715 while :; do
14716 cat >conftest.$ac_ext <<_ACEOF
14717 /* confdefs.h. */
14718 _ACEOF
14719 cat confdefs.h >>conftest.$ac_ext
14720 cat >>conftest.$ac_ext <<_ACEOF
14721 /* end confdefs.h. */
14722 $ac_includes_default
14724 main ()
14726 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14727 test_array [0] = 0
14730 return 0;
14732 _ACEOF
14733 rm -f conftest.$ac_objext
14734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14735 (eval $ac_compile) 2>conftest.er1
14736 ac_status=$?
14737 grep -v '^ *+' conftest.er1 >conftest.err
14738 rm -f conftest.er1
14739 cat conftest.err >&5
14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); } &&
14742 { ac_try='test -z "$ac_c_werror_flag"
14743 || test ! -s conftest.err'
14744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14745 (eval $ac_try) 2>&5
14746 ac_status=$?
14747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748 (exit $ac_status); }; } &&
14749 { ac_try='test -s conftest.$ac_objext'
14750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14751 (eval $ac_try) 2>&5
14752 ac_status=$?
14753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754 (exit $ac_status); }; }; then
14755 ac_lo=$ac_mid; break
14756 else
14757 echo "$as_me: failed program was:" >&5
14758 sed 's/^/| /' conftest.$ac_ext >&5
14760 ac_hi=`expr '(' $ac_mid ')' - 1`
14761 if test $ac_mid -le $ac_hi; then
14762 ac_lo= ac_hi=
14763 break
14765 ac_mid=`expr 2 '*' $ac_mid`
14767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14768 done
14769 else
14770 echo "$as_me: failed program was:" >&5
14771 sed 's/^/| /' conftest.$ac_ext >&5
14773 ac_lo= ac_hi=
14775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14778 # Binary search between lo and hi bounds.
14779 while test "x$ac_lo" != "x$ac_hi"; do
14780 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14781 cat >conftest.$ac_ext <<_ACEOF
14782 /* confdefs.h. */
14783 _ACEOF
14784 cat confdefs.h >>conftest.$ac_ext
14785 cat >>conftest.$ac_ext <<_ACEOF
14786 /* end confdefs.h. */
14787 $ac_includes_default
14789 main ()
14791 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14792 test_array [0] = 0
14795 return 0;
14797 _ACEOF
14798 rm -f conftest.$ac_objext
14799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14800 (eval $ac_compile) 2>conftest.er1
14801 ac_status=$?
14802 grep -v '^ *+' conftest.er1 >conftest.err
14803 rm -f conftest.er1
14804 cat conftest.err >&5
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); } &&
14807 { ac_try='test -z "$ac_c_werror_flag"
14808 || test ! -s conftest.err'
14809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14810 (eval $ac_try) 2>&5
14811 ac_status=$?
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); }; } &&
14814 { ac_try='test -s conftest.$ac_objext'
14815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14816 (eval $ac_try) 2>&5
14817 ac_status=$?
14818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 (exit $ac_status); }; }; then
14820 ac_hi=$ac_mid
14821 else
14822 echo "$as_me: failed program was:" >&5
14823 sed 's/^/| /' conftest.$ac_ext >&5
14825 ac_lo=`expr '(' $ac_mid ')' + 1`
14827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14828 done
14829 case $ac_lo in
14830 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14831 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14832 See \`config.log' for more details." >&5
14833 echo "$as_me: error: cannot compute sizeof (void *), 77
14834 See \`config.log' for more details." >&2;}
14835 { (exit 1); exit 1; }; } ;;
14836 esac
14837 else
14838 if test "$cross_compiling" = yes; then
14839 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14840 See \`config.log' for more details." >&5
14841 echo "$as_me: error: cannot run test program while cross compiling
14842 See \`config.log' for more details." >&2;}
14843 { (exit 1); exit 1; }; }
14844 else
14845 cat >conftest.$ac_ext <<_ACEOF
14846 /* confdefs.h. */
14847 _ACEOF
14848 cat confdefs.h >>conftest.$ac_ext
14849 cat >>conftest.$ac_ext <<_ACEOF
14850 /* end confdefs.h. */
14851 $ac_includes_default
14852 long longval () { return (long) (sizeof (void *)); }
14853 unsigned long ulongval () { return (long) (sizeof (void *)); }
14854 #include <stdio.h>
14855 #include <stdlib.h>
14857 main ()
14860 FILE *f = fopen ("conftest.val", "w");
14861 if (! f)
14862 exit (1);
14863 if (((long) (sizeof (void *))) < 0)
14865 long i = longval ();
14866 if (i != ((long) (sizeof (void *))))
14867 exit (1);
14868 fprintf (f, "%ld\n", i);
14870 else
14872 unsigned long i = ulongval ();
14873 if (i != ((long) (sizeof (void *))))
14874 exit (1);
14875 fprintf (f, "%lu\n", i);
14877 exit (ferror (f) || fclose (f) != 0);
14880 return 0;
14882 _ACEOF
14883 rm -f conftest$ac_exeext
14884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14885 (eval $ac_link) 2>&5
14886 ac_status=$?
14887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14890 (eval $ac_try) 2>&5
14891 ac_status=$?
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); }; }; then
14894 ac_cv_sizeof_void_p=`cat conftest.val`
14895 else
14896 echo "$as_me: program exited with status $ac_status" >&5
14897 echo "$as_me: failed program was:" >&5
14898 sed 's/^/| /' conftest.$ac_ext >&5
14900 ( exit $ac_status )
14901 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14902 See \`config.log' for more details." >&5
14903 echo "$as_me: error: cannot compute sizeof (void *), 77
14904 See \`config.log' for more details." >&2;}
14905 { (exit 1); exit 1; }; }
14907 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14910 rm -f conftest.val
14911 else
14912 ac_cv_sizeof_void_p=0
14915 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14916 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14917 cat >>confdefs.h <<_ACEOF
14918 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14919 _ACEOF
14923 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14924 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
14925 if test "${ac_cv_c_bigendian+set}" = set; then
14926 echo $ECHO_N "(cached) $ECHO_C" >&6
14927 else
14928 # See if sys/param.h defines the BYTE_ORDER macro.
14929 cat >conftest.$ac_ext <<_ACEOF
14930 /* confdefs.h. */
14931 _ACEOF
14932 cat confdefs.h >>conftest.$ac_ext
14933 cat >>conftest.$ac_ext <<_ACEOF
14934 /* end confdefs.h. */
14935 #include <sys/types.h>
14936 #include <sys/param.h>
14939 main ()
14941 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14942 bogus endian macros
14943 #endif
14946 return 0;
14948 _ACEOF
14949 rm -f conftest.$ac_objext
14950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14951 (eval $ac_compile) 2>conftest.er1
14952 ac_status=$?
14953 grep -v '^ *+' conftest.er1 >conftest.err
14954 rm -f conftest.er1
14955 cat conftest.err >&5
14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); } &&
14958 { ac_try='test -z "$ac_c_werror_flag"
14959 || test ! -s conftest.err'
14960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14961 (eval $ac_try) 2>&5
14962 ac_status=$?
14963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964 (exit $ac_status); }; } &&
14965 { ac_try='test -s conftest.$ac_objext'
14966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14967 (eval $ac_try) 2>&5
14968 ac_status=$?
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); }; }; then
14971 # It does; now see whether it defined to BIG_ENDIAN or not.
14972 cat >conftest.$ac_ext <<_ACEOF
14973 /* confdefs.h. */
14974 _ACEOF
14975 cat confdefs.h >>conftest.$ac_ext
14976 cat >>conftest.$ac_ext <<_ACEOF
14977 /* end confdefs.h. */
14978 #include <sys/types.h>
14979 #include <sys/param.h>
14982 main ()
14984 #if BYTE_ORDER != BIG_ENDIAN
14985 not big endian
14986 #endif
14989 return 0;
14991 _ACEOF
14992 rm -f conftest.$ac_objext
14993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14994 (eval $ac_compile) 2>conftest.er1
14995 ac_status=$?
14996 grep -v '^ *+' conftest.er1 >conftest.err
14997 rm -f conftest.er1
14998 cat conftest.err >&5
14999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 (exit $ac_status); } &&
15001 { ac_try='test -z "$ac_c_werror_flag"
15002 || test ! -s conftest.err'
15003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15004 (eval $ac_try) 2>&5
15005 ac_status=$?
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); }; } &&
15008 { ac_try='test -s conftest.$ac_objext'
15009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15010 (eval $ac_try) 2>&5
15011 ac_status=$?
15012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013 (exit $ac_status); }; }; then
15014 ac_cv_c_bigendian=yes
15015 else
15016 echo "$as_me: failed program was:" >&5
15017 sed 's/^/| /' conftest.$ac_ext >&5
15019 ac_cv_c_bigendian=no
15021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15022 else
15023 echo "$as_me: failed program was:" >&5
15024 sed 's/^/| /' conftest.$ac_ext >&5
15026 # It does not; compile a test program.
15027 if test "$cross_compiling" = yes; then
15028 # try to guess the endianness by grepping values into an object file
15029 ac_cv_c_bigendian=unknown
15030 cat >conftest.$ac_ext <<_ACEOF
15031 /* confdefs.h. */
15032 _ACEOF
15033 cat confdefs.h >>conftest.$ac_ext
15034 cat >>conftest.$ac_ext <<_ACEOF
15035 /* end confdefs.h. */
15036 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15037 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15038 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
15039 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15040 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15041 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
15043 main ()
15045 _ascii (); _ebcdic ();
15047 return 0;
15049 _ACEOF
15050 rm -f conftest.$ac_objext
15051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15052 (eval $ac_compile) 2>conftest.er1
15053 ac_status=$?
15054 grep -v '^ *+' conftest.er1 >conftest.err
15055 rm -f conftest.er1
15056 cat conftest.err >&5
15057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); } &&
15059 { ac_try='test -z "$ac_c_werror_flag"
15060 || test ! -s conftest.err'
15061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15062 (eval $ac_try) 2>&5
15063 ac_status=$?
15064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065 (exit $ac_status); }; } &&
15066 { ac_try='test -s conftest.$ac_objext'
15067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15068 (eval $ac_try) 2>&5
15069 ac_status=$?
15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071 (exit $ac_status); }; }; then
15072 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
15073 ac_cv_c_bigendian=yes
15075 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15076 if test "$ac_cv_c_bigendian" = unknown; then
15077 ac_cv_c_bigendian=no
15078 else
15079 # finding both strings is unlikely to happen, but who knows?
15080 ac_cv_c_bigendian=unknown
15083 else
15084 echo "$as_me: failed program was:" >&5
15085 sed 's/^/| /' conftest.$ac_ext >&5
15088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15089 else
15090 cat >conftest.$ac_ext <<_ACEOF
15091 /* confdefs.h. */
15092 _ACEOF
15093 cat confdefs.h >>conftest.$ac_ext
15094 cat >>conftest.$ac_ext <<_ACEOF
15095 /* end confdefs.h. */
15097 main ()
15099 /* Are we little or big endian? From Harbison&Steele. */
15100 union
15102 long l;
15103 char c[sizeof (long)];
15104 } u;
15105 u.l = 1;
15106 exit (u.c[sizeof (long) - 1] == 1);
15108 _ACEOF
15109 rm -f conftest$ac_exeext
15110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15111 (eval $ac_link) 2>&5
15112 ac_status=$?
15113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15116 (eval $ac_try) 2>&5
15117 ac_status=$?
15118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119 (exit $ac_status); }; }; then
15120 ac_cv_c_bigendian=no
15121 else
15122 echo "$as_me: program exited with status $ac_status" >&5
15123 echo "$as_me: failed program was:" >&5
15124 sed 's/^/| /' conftest.$ac_ext >&5
15126 ( exit $ac_status )
15127 ac_cv_c_bigendian=yes
15129 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15134 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
15135 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
15136 case $ac_cv_c_bigendian in
15137 yes)
15139 cat >>confdefs.h <<\_ACEOF
15140 #define WORDS_BIGENDIAN 1
15141 _ACEOF
15146 { { echo "$as_me:$LINENO: error: unknown endianness
15147 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
15148 echo "$as_me: error: unknown endianness
15149 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
15150 { (exit 1); exit 1; }; } ;;
15151 esac
15154 ZLIBS=
15155 SYS_ZLIBS=
15156 ZINCS=
15158 if test -z "$ZLIBSPEC"; then
15159 # Use zlib from the GCC tree.
15160 ZINCS='-I$(top_srcdir)/../zlib'
15161 ZLIBS=../zlib/libzgcj_convenience.la
15162 else
15163 # System's zlib.
15164 SYS_ZLIBS="$ZLIBSPEC"
15177 if test "$NATIVE" = yes; then
15178 NATIVE_TRUE=
15179 NATIVE_FALSE='#'
15180 else
15181 NATIVE_TRUE='#'
15182 NATIVE_FALSE=
15187 if test "$enable_shared" = yes; then
15188 ENABLE_SHARED_TRUE=
15189 ENABLE_SHARED_FALSE='#'
15190 else
15191 ENABLE_SHARED_TRUE='#'
15192 ENABLE_SHARED_FALSE=
15197 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
15198 NEEDS_DATA_START_TRUE=
15199 NEEDS_DATA_START_FALSE='#'
15200 else
15201 NEEDS_DATA_START_TRUE='#'
15202 NEEDS_DATA_START_FALSE=
15207 # Process the option "--enable-version-specific-runtime-libs"
15208 # Calculate toolexeclibdir
15209 case ${version_specific_libs} in
15210 yes)
15211 # Need the gcc compiler version to know where to install libraries
15212 # and header files if --enable-version-specific-runtime-libs option
15213 # is selected.
15214 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
15215 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
15216 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
15217 toolexeclibdir=$toolexecmainlibdir
15220 if test -n "$with_cross_host" &&
15221 test x"$with_cross_host" != x"no"; then
15222 # Install a library built with a cross compiler in tooldir, not libdir.
15223 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
15224 toolexecmainlibdir='$(toolexecdir)/lib'
15225 else
15226 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
15227 toolexecmainlibdir='$(libdir)'
15229 multi_os_directory=`$CC -print-multi-os-directory`
15230 case $multi_os_directory in
15231 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
15232 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
15233 esac
15235 esac
15240 # Determine where the standard .db file and GNU Classpath JNI
15241 # libraries are found.
15242 multi_os_directory=`$CC -print-multi-os-directory`
15243 case $multi_os_directory in
15245 dbexecdir='$(libdir)/gcj-$(gcc_version)' # Avoid /.
15248 dbexecdir='$(libdir)/'$multi_os_directory'/gcj-$(gcc_version)'
15250 esac
15253 # Determine gcj version number.
15254 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
15255 GCJVERSION=$gcjversion
15258 cat >>confdefs.h <<_ACEOF
15259 #define GCJVERSION "$GCJVERSION"
15260 _ACEOF
15264 cat >>confdefs.h <<\_ACEOF
15265 #define JV_VERSION "1.5.0"
15266 _ACEOF
15269 cat >>confdefs.h <<\_ACEOF
15270 #define JV_API_VERSION "1.5"
15271 _ACEOF
15275 case "${with_gxx_include_dir}" in
15276 yes)
15277 { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
15278 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
15279 { (exit 1); exit 1; }; }
15281 no | "")
15282 case "${enable_version_specific_runtime_libs}" in
15283 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
15285 libstdcxx_incdir='c++/$(gcc_version)'
15286 gxx_include_dir='include/$(libstdcxx_incdir)'
15287 if test -n "$with_cross_host" &&
15288 test x"$with_cross_host" != x"no"; then
15289 gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
15290 else
15291 gxx_include_dir='${prefix}/'"$gxx_include_dir"
15292 fi;;
15293 esac ;;
15294 *) gxx_include_dir=${with_gxx_include_dir} ;;
15295 esac
15300 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
15301 # On that system, sys/ioctl.h will not include sys/filio.h unless
15302 # BSD_COMP is defined; just including sys/filio.h is simpler.
15303 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
15304 # for now. If you change this, you also must update natFile.cc.
15328 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
15329 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
15330 sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
15331 pwd.h sys/config.h stdint.h langinfo.h locale.h \
15332 dirent.h sys/rw_lock.h magic.h ifaddrs.h
15334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15336 echo "$as_me:$LINENO: checking for $ac_header" >&5
15337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15339 echo $ECHO_N "(cached) $ECHO_C" >&6
15341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15343 else
15344 # Is the header compilable?
15345 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15346 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15347 cat >conftest.$ac_ext <<_ACEOF
15348 /* confdefs.h. */
15349 _ACEOF
15350 cat confdefs.h >>conftest.$ac_ext
15351 cat >>conftest.$ac_ext <<_ACEOF
15352 /* end confdefs.h. */
15353 $ac_includes_default
15354 #include <$ac_header>
15355 _ACEOF
15356 rm -f conftest.$ac_objext
15357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15358 (eval $ac_compile) 2>conftest.er1
15359 ac_status=$?
15360 grep -v '^ *+' conftest.er1 >conftest.err
15361 rm -f conftest.er1
15362 cat conftest.err >&5
15363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364 (exit $ac_status); } &&
15365 { ac_try='test -z "$ac_c_werror_flag"
15366 || test ! -s conftest.err'
15367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15368 (eval $ac_try) 2>&5
15369 ac_status=$?
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); }; } &&
15372 { ac_try='test -s conftest.$ac_objext'
15373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15374 (eval $ac_try) 2>&5
15375 ac_status=$?
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); }; }; then
15378 ac_header_compiler=yes
15379 else
15380 echo "$as_me: failed program was:" >&5
15381 sed 's/^/| /' conftest.$ac_ext >&5
15383 ac_header_compiler=no
15385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15386 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15387 echo "${ECHO_T}$ac_header_compiler" >&6
15389 # Is the header present?
15390 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15392 cat >conftest.$ac_ext <<_ACEOF
15393 /* confdefs.h. */
15394 _ACEOF
15395 cat confdefs.h >>conftest.$ac_ext
15396 cat >>conftest.$ac_ext <<_ACEOF
15397 /* end confdefs.h. */
15398 #include <$ac_header>
15399 _ACEOF
15400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15402 ac_status=$?
15403 grep -v '^ *+' conftest.er1 >conftest.err
15404 rm -f conftest.er1
15405 cat conftest.err >&5
15406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407 (exit $ac_status); } >/dev/null; then
15408 if test -s conftest.err; then
15409 ac_cpp_err=$ac_c_preproc_warn_flag
15410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15411 else
15412 ac_cpp_err=
15414 else
15415 ac_cpp_err=yes
15417 if test -z "$ac_cpp_err"; then
15418 ac_header_preproc=yes
15419 else
15420 echo "$as_me: failed program was:" >&5
15421 sed 's/^/| /' conftest.$ac_ext >&5
15423 ac_header_preproc=no
15425 rm -f conftest.err conftest.$ac_ext
15426 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15427 echo "${ECHO_T}$ac_header_preproc" >&6
15429 # So? What about this header?
15430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15431 yes:no: )
15432 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15433 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15435 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15436 ac_header_preproc=yes
15438 no:yes:* )
15439 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15440 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15441 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15442 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15443 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15444 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15445 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15446 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15448 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15449 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15450 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15452 cat <<\_ASBOX
15453 ## ---------------------------------- ##
15454 ## Report this to the libjava lists. ##
15455 ## ---------------------------------- ##
15456 _ASBOX
15458 sed "s/^/$as_me: WARNING: /" >&2
15460 esac
15461 echo "$as_me:$LINENO: checking for $ac_header" >&5
15462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15464 echo $ECHO_N "(cached) $ECHO_C" >&6
15465 else
15466 eval "$as_ac_Header=\$ac_header_preproc"
15468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15473 cat >>confdefs.h <<_ACEOF
15474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15475 _ACEOF
15479 done
15482 for ac_header in inttypes.h
15484 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15486 echo "$as_me:$LINENO: checking for $ac_header" >&5
15487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15489 echo $ECHO_N "(cached) $ECHO_C" >&6
15491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15492 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15493 else
15494 # Is the header compilable?
15495 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15496 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15497 cat >conftest.$ac_ext <<_ACEOF
15498 /* confdefs.h. */
15499 _ACEOF
15500 cat confdefs.h >>conftest.$ac_ext
15501 cat >>conftest.$ac_ext <<_ACEOF
15502 /* end confdefs.h. */
15503 $ac_includes_default
15504 #include <$ac_header>
15505 _ACEOF
15506 rm -f conftest.$ac_objext
15507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15508 (eval $ac_compile) 2>conftest.er1
15509 ac_status=$?
15510 grep -v '^ *+' conftest.er1 >conftest.err
15511 rm -f conftest.er1
15512 cat conftest.err >&5
15513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 (exit $ac_status); } &&
15515 { ac_try='test -z "$ac_c_werror_flag"
15516 || test ! -s conftest.err'
15517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15518 (eval $ac_try) 2>&5
15519 ac_status=$?
15520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521 (exit $ac_status); }; } &&
15522 { ac_try='test -s conftest.$ac_objext'
15523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15524 (eval $ac_try) 2>&5
15525 ac_status=$?
15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527 (exit $ac_status); }; }; then
15528 ac_header_compiler=yes
15529 else
15530 echo "$as_me: failed program was:" >&5
15531 sed 's/^/| /' conftest.$ac_ext >&5
15533 ac_header_compiler=no
15535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15536 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15537 echo "${ECHO_T}$ac_header_compiler" >&6
15539 # Is the header present?
15540 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15541 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15542 cat >conftest.$ac_ext <<_ACEOF
15543 /* confdefs.h. */
15544 _ACEOF
15545 cat confdefs.h >>conftest.$ac_ext
15546 cat >>conftest.$ac_ext <<_ACEOF
15547 /* end confdefs.h. */
15548 #include <$ac_header>
15549 _ACEOF
15550 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15551 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15552 ac_status=$?
15553 grep -v '^ *+' conftest.er1 >conftest.err
15554 rm -f conftest.er1
15555 cat conftest.err >&5
15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); } >/dev/null; then
15558 if test -s conftest.err; then
15559 ac_cpp_err=$ac_c_preproc_warn_flag
15560 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15561 else
15562 ac_cpp_err=
15564 else
15565 ac_cpp_err=yes
15567 if test -z "$ac_cpp_err"; then
15568 ac_header_preproc=yes
15569 else
15570 echo "$as_me: failed program was:" >&5
15571 sed 's/^/| /' conftest.$ac_ext >&5
15573 ac_header_preproc=no
15575 rm -f conftest.err conftest.$ac_ext
15576 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15577 echo "${ECHO_T}$ac_header_preproc" >&6
15579 # So? What about this header?
15580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15581 yes:no: )
15582 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15583 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15585 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15586 ac_header_preproc=yes
15588 no:yes:* )
15589 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15590 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15591 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15592 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15593 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15594 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15595 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15596 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15598 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15599 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15600 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15602 cat <<\_ASBOX
15603 ## ---------------------------------- ##
15604 ## Report this to the libjava lists. ##
15605 ## ---------------------------------- ##
15606 _ASBOX
15608 sed "s/^/$as_me: WARNING: /" >&2
15610 esac
15611 echo "$as_me:$LINENO: checking for $ac_header" >&5
15612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15614 echo $ECHO_N "(cached) $ECHO_C" >&6
15615 else
15616 eval "$as_ac_Header=\$ac_header_preproc"
15618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15623 cat >>confdefs.h <<_ACEOF
15624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15625 _ACEOF
15628 cat >>confdefs.h <<\_ACEOF
15629 #define HAVE_INTTYPES_H 1
15630 _ACEOF
15633 cat >>confdefs.h <<\_ACEOF
15634 #define JV_HAVE_INTTYPES_H 1
15635 _ACEOF
15640 done
15642 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15643 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
15644 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15645 echo $ECHO_N "(cached) $ECHO_C" >&6
15646 else
15647 cat >conftest.$ac_ext <<_ACEOF
15648 /* confdefs.h. */
15649 _ACEOF
15650 cat confdefs.h >>conftest.$ac_ext
15651 cat >>conftest.$ac_ext <<_ACEOF
15652 /* end confdefs.h. */
15653 #include <sys/types.h>
15654 #include <sys/wait.h>
15655 #ifndef WEXITSTATUS
15656 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
15657 #endif
15658 #ifndef WIFEXITED
15659 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15660 #endif
15663 main ()
15665 int s;
15666 wait (&s);
15667 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15669 return 0;
15671 _ACEOF
15672 rm -f conftest.$ac_objext
15673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15674 (eval $ac_compile) 2>conftest.er1
15675 ac_status=$?
15676 grep -v '^ *+' conftest.er1 >conftest.err
15677 rm -f conftest.er1
15678 cat conftest.err >&5
15679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680 (exit $ac_status); } &&
15681 { ac_try='test -z "$ac_c_werror_flag"
15682 || test ! -s conftest.err'
15683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15684 (eval $ac_try) 2>&5
15685 ac_status=$?
15686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687 (exit $ac_status); }; } &&
15688 { ac_try='test -s conftest.$ac_objext'
15689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15690 (eval $ac_try) 2>&5
15691 ac_status=$?
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); }; }; then
15694 ac_cv_header_sys_wait_h=yes
15695 else
15696 echo "$as_me: failed program was:" >&5
15697 sed 's/^/| /' conftest.$ac_ext >&5
15699 ac_cv_header_sys_wait_h=no
15701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15703 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15704 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
15705 if test $ac_cv_header_sys_wait_h = yes; then
15707 cat >>confdefs.h <<\_ACEOF
15708 #define HAVE_SYS_WAIT_H 1
15709 _ACEOF
15714 echo "$as_me:$LINENO: checking for ssize_t" >&5
15715 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15716 if test "${ac_cv_type_ssize_t+set}" = set; then
15717 echo $ECHO_N "(cached) $ECHO_C" >&6
15718 else
15719 cat >conftest.$ac_ext <<_ACEOF
15720 /* confdefs.h. */
15721 _ACEOF
15722 cat confdefs.h >>conftest.$ac_ext
15723 cat >>conftest.$ac_ext <<_ACEOF
15724 /* end confdefs.h. */
15725 $ac_includes_default
15727 main ()
15729 if ((ssize_t *) 0)
15730 return 0;
15731 if (sizeof (ssize_t))
15732 return 0;
15734 return 0;
15736 _ACEOF
15737 rm -f conftest.$ac_objext
15738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15739 (eval $ac_compile) 2>conftest.er1
15740 ac_status=$?
15741 grep -v '^ *+' conftest.er1 >conftest.err
15742 rm -f conftest.er1
15743 cat conftest.err >&5
15744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745 (exit $ac_status); } &&
15746 { ac_try='test -z "$ac_c_werror_flag"
15747 || test ! -s conftest.err'
15748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15749 (eval $ac_try) 2>&5
15750 ac_status=$?
15751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752 (exit $ac_status); }; } &&
15753 { ac_try='test -s conftest.$ac_objext'
15754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15755 (eval $ac_try) 2>&5
15756 ac_status=$?
15757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758 (exit $ac_status); }; }; then
15759 ac_cv_type_ssize_t=yes
15760 else
15761 echo "$as_me: failed program was:" >&5
15762 sed 's/^/| /' conftest.$ac_ext >&5
15764 ac_cv_type_ssize_t=no
15766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15768 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
15769 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
15770 if test $ac_cv_type_ssize_t = yes; then
15772 else
15774 cat >>confdefs.h <<_ACEOF
15775 #define ssize_t int
15776 _ACEOF
15781 echo "$as_me:$LINENO: checking for in_addr_t" >&5
15782 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
15783 cat >conftest.$ac_ext <<_ACEOF
15784 /* confdefs.h. */
15785 _ACEOF
15786 cat confdefs.h >>conftest.$ac_ext
15787 cat >>conftest.$ac_ext <<_ACEOF
15788 /* end confdefs.h. */
15789 #include <sys/types.h>
15790 #if STDC_HEADERS
15791 #include <stdlib.h>
15792 #include <stddef.h>
15793 #endif
15794 #if HAVE_NETINET_IN_H
15795 #include <netinet/in.h>
15796 #endif
15798 main ()
15800 in_addr_t foo;
15802 return 0;
15804 _ACEOF
15805 rm -f conftest.$ac_objext
15806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15807 (eval $ac_compile) 2>conftest.er1
15808 ac_status=$?
15809 grep -v '^ *+' conftest.er1 >conftest.err
15810 rm -f conftest.er1
15811 cat conftest.err >&5
15812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); } &&
15814 { ac_try='test -z "$ac_c_werror_flag"
15815 || test ! -s conftest.err'
15816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15817 (eval $ac_try) 2>&5
15818 ac_status=$?
15819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820 (exit $ac_status); }; } &&
15821 { ac_try='test -s conftest.$ac_objext'
15822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15823 (eval $ac_try) 2>&5
15824 ac_status=$?
15825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826 (exit $ac_status); }; }; then
15828 cat >>confdefs.h <<\_ACEOF
15829 #define HAVE_IN_ADDR_T 1
15830 _ACEOF
15832 echo "$as_me:$LINENO: result: yes" >&5
15833 echo "${ECHO_T}yes" >&6
15834 else
15835 echo "$as_me: failed program was:" >&5
15836 sed 's/^/| /' conftest.$ac_ext >&5
15838 echo "$as_me:$LINENO: result: no" >&5
15839 echo "${ECHO_T}no" >&6
15841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15843 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
15844 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
15845 cat >conftest.$ac_ext <<_ACEOF
15846 /* confdefs.h. */
15847 _ACEOF
15848 cat confdefs.h >>conftest.$ac_ext
15849 cat >>conftest.$ac_ext <<_ACEOF
15850 /* end confdefs.h. */
15851 #include <netinet/in.h>
15853 main ()
15855 struct ip_mreq mreq;
15857 return 0;
15859 _ACEOF
15860 rm -f conftest.$ac_objext
15861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15862 (eval $ac_compile) 2>conftest.er1
15863 ac_status=$?
15864 grep -v '^ *+' conftest.er1 >conftest.err
15865 rm -f conftest.er1
15866 cat conftest.err >&5
15867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868 (exit $ac_status); } &&
15869 { ac_try='test -z "$ac_c_werror_flag"
15870 || test ! -s conftest.err'
15871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15872 (eval $ac_try) 2>&5
15873 ac_status=$?
15874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875 (exit $ac_status); }; } &&
15876 { ac_try='test -s conftest.$ac_objext'
15877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15878 (eval $ac_try) 2>&5
15879 ac_status=$?
15880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881 (exit $ac_status); }; }; then
15883 cat >>confdefs.h <<\_ACEOF
15884 #define HAVE_STRUCT_IP_MREQ 1
15885 _ACEOF
15887 echo "$as_me:$LINENO: result: yes" >&5
15888 echo "${ECHO_T}yes" >&6
15889 else
15890 echo "$as_me: failed program was:" >&5
15891 sed 's/^/| /' conftest.$ac_ext >&5
15893 echo "$as_me:$LINENO: result: no" >&5
15894 echo "${ECHO_T}no" >&6
15896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15898 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
15899 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
15900 cat >conftest.$ac_ext <<_ACEOF
15901 /* confdefs.h. */
15902 _ACEOF
15903 cat confdefs.h >>conftest.$ac_ext
15904 cat >>conftest.$ac_ext <<_ACEOF
15905 /* end confdefs.h. */
15906 #include <netinet/in.h>
15908 main ()
15910 struct ipv6_mreq mreq6;
15912 return 0;
15914 _ACEOF
15915 rm -f conftest.$ac_objext
15916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15917 (eval $ac_compile) 2>conftest.er1
15918 ac_status=$?
15919 grep -v '^ *+' conftest.er1 >conftest.err
15920 rm -f conftest.er1
15921 cat conftest.err >&5
15922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15923 (exit $ac_status); } &&
15924 { ac_try='test -z "$ac_c_werror_flag"
15925 || test ! -s conftest.err'
15926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15927 (eval $ac_try) 2>&5
15928 ac_status=$?
15929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930 (exit $ac_status); }; } &&
15931 { ac_try='test -s conftest.$ac_objext'
15932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15933 (eval $ac_try) 2>&5
15934 ac_status=$?
15935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936 (exit $ac_status); }; }; then
15938 cat >>confdefs.h <<\_ACEOF
15939 #define HAVE_STRUCT_IPV6_MREQ 1
15940 _ACEOF
15942 echo "$as_me:$LINENO: result: yes" >&5
15943 echo "${ECHO_T}yes" >&6
15944 else
15945 echo "$as_me: failed program was:" >&5
15946 sed 's/^/| /' conftest.$ac_ext >&5
15948 echo "$as_me:$LINENO: result: no" >&5
15949 echo "${ECHO_T}no" >&6
15951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15953 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
15954 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
15955 cat >conftest.$ac_ext <<_ACEOF
15956 /* confdefs.h. */
15957 _ACEOF
15958 cat confdefs.h >>conftest.$ac_ext
15959 cat >>conftest.$ac_ext <<_ACEOF
15960 /* end confdefs.h. */
15961 #include <netinet/in.h>
15963 main ()
15965 struct sockaddr_in6 addr6;
15967 return 0;
15969 _ACEOF
15970 rm -f conftest.$ac_objext
15971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15972 (eval $ac_compile) 2>conftest.er1
15973 ac_status=$?
15974 grep -v '^ *+' conftest.er1 >conftest.err
15975 rm -f conftest.er1
15976 cat conftest.err >&5
15977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15978 (exit $ac_status); } &&
15979 { ac_try='test -z "$ac_c_werror_flag"
15980 || test ! -s conftest.err'
15981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15982 (eval $ac_try) 2>&5
15983 ac_status=$?
15984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985 (exit $ac_status); }; } &&
15986 { ac_try='test -s conftest.$ac_objext'
15987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15988 (eval $ac_try) 2>&5
15989 ac_status=$?
15990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991 (exit $ac_status); }; }; then
15993 cat >>confdefs.h <<\_ACEOF
15994 #define HAVE_INET6 1
15995 _ACEOF
15997 echo "$as_me:$LINENO: result: yes" >&5
15998 echo "${ECHO_T}yes" >&6
15999 else
16000 echo "$as_me: failed program was:" >&5
16001 sed 's/^/| /' conftest.$ac_ext >&5
16003 echo "$as_me:$LINENO: result: no" >&5
16004 echo "${ECHO_T}no" >&6
16006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16008 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
16009 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
16010 cat >conftest.$ac_ext <<_ACEOF
16011 /* confdefs.h. */
16012 _ACEOF
16013 cat confdefs.h >>conftest.$ac_ext
16014 cat >>conftest.$ac_ext <<_ACEOF
16015 /* end confdefs.h. */
16016 #define _POSIX_PII_SOCKET
16017 #include <sys/types.h>
16018 #include <sys/socket.h>
16020 main ()
16022 socklen_t x = 5;
16024 return 0;
16026 _ACEOF
16027 rm -f conftest.$ac_objext
16028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16029 (eval $ac_compile) 2>conftest.er1
16030 ac_status=$?
16031 grep -v '^ *+' conftest.er1 >conftest.err
16032 rm -f conftest.er1
16033 cat conftest.err >&5
16034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035 (exit $ac_status); } &&
16036 { ac_try='test -z "$ac_c_werror_flag"
16037 || test ! -s conftest.err'
16038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16039 (eval $ac_try) 2>&5
16040 ac_status=$?
16041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); }; } &&
16043 { ac_try='test -s conftest.$ac_objext'
16044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16045 (eval $ac_try) 2>&5
16046 ac_status=$?
16047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048 (exit $ac_status); }; }; then
16050 cat >>confdefs.h <<\_ACEOF
16051 #define HAVE_SOCKLEN_T 1
16052 _ACEOF
16054 echo "$as_me:$LINENO: result: yes" >&5
16055 echo "${ECHO_T}yes" >&6
16056 else
16057 echo "$as_me: failed program was:" >&5
16058 sed 's/^/| /' conftest.$ac_ext >&5
16060 echo "$as_me:$LINENO: result: no" >&5
16061 echo "${ECHO_T}no" >&6
16063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16065 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
16066 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
16067 cat >conftest.$ac_ext <<_ACEOF
16068 /* confdefs.h. */
16069 _ACEOF
16070 cat confdefs.h >>conftest.$ac_ext
16071 cat >>conftest.$ac_ext <<_ACEOF
16072 /* end confdefs.h. */
16073 #include <time.h>
16075 main ()
16077 struct tm tim; tim.tm_gmtoff = 0;
16079 return 0;
16081 _ACEOF
16082 rm -f conftest.$ac_objext
16083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16084 (eval $ac_compile) 2>conftest.er1
16085 ac_status=$?
16086 grep -v '^ *+' conftest.er1 >conftest.err
16087 rm -f conftest.er1
16088 cat conftest.err >&5
16089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090 (exit $ac_status); } &&
16091 { ac_try='test -z "$ac_c_werror_flag"
16092 || test ! -s conftest.err'
16093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16094 (eval $ac_try) 2>&5
16095 ac_status=$?
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); }; } &&
16098 { ac_try='test -s conftest.$ac_objext'
16099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16100 (eval $ac_try) 2>&5
16101 ac_status=$?
16102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103 (exit $ac_status); }; }; then
16105 cat >>confdefs.h <<\_ACEOF
16106 #define STRUCT_TM_HAS_GMTOFF 1
16107 _ACEOF
16109 echo "$as_me:$LINENO: result: yes" >&5
16110 echo "${ECHO_T}yes" >&6
16111 else
16112 echo "$as_me: failed program was:" >&5
16113 sed 's/^/| /' conftest.$ac_ext >&5
16115 echo "$as_me:$LINENO: result: no" >&5
16116 echo "${ECHO_T}no" >&6
16117 echo "$as_me:$LINENO: checking for global timezone variable" >&5
16118 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
16119 cat >conftest.$ac_ext <<_ACEOF
16120 /* confdefs.h. */
16121 _ACEOF
16122 cat confdefs.h >>conftest.$ac_ext
16123 cat >>conftest.$ac_ext <<_ACEOF
16124 /* end confdefs.h. */
16125 #include <time.h>
16127 main ()
16129 void i(){long z2 = 2*timezone;}
16131 return 0;
16133 _ACEOF
16134 rm -f conftest.$ac_objext
16135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16136 (eval $ac_compile) 2>conftest.er1
16137 ac_status=$?
16138 grep -v '^ *+' conftest.er1 >conftest.err
16139 rm -f conftest.er1
16140 cat conftest.err >&5
16141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16142 (exit $ac_status); } &&
16143 { ac_try='test -z "$ac_c_werror_flag"
16144 || test ! -s conftest.err'
16145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16146 (eval $ac_try) 2>&5
16147 ac_status=$?
16148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149 (exit $ac_status); }; } &&
16150 { ac_try='test -s conftest.$ac_objext'
16151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16152 (eval $ac_try) 2>&5
16153 ac_status=$?
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); }; }; then
16157 cat >>confdefs.h <<\_ACEOF
16158 #define HAVE_TIMEZONE 1
16159 _ACEOF
16161 echo "$as_me:$LINENO: result: yes" >&5
16162 echo "${ECHO_T}yes" >&6
16163 else
16164 echo "$as_me: failed program was:" >&5
16165 sed 's/^/| /' conftest.$ac_ext >&5
16167 echo "$as_me:$LINENO: result: no" >&5
16168 echo "${ECHO_T}no" >&6
16169 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
16170 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
16171 cat >conftest.$ac_ext <<_ACEOF
16172 /* confdefs.h. */
16173 _ACEOF
16174 cat confdefs.h >>conftest.$ac_ext
16175 cat >>conftest.$ac_ext <<_ACEOF
16176 /* end confdefs.h. */
16177 #include <time.h>
16179 main ()
16181 long z2 = _timezone;
16183 return 0;
16185 _ACEOF
16186 rm -f conftest.$ac_objext
16187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16188 (eval $ac_compile) 2>conftest.er1
16189 ac_status=$?
16190 grep -v '^ *+' conftest.er1 >conftest.err
16191 rm -f conftest.er1
16192 cat conftest.err >&5
16193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); } &&
16195 { ac_try='test -z "$ac_c_werror_flag"
16196 || test ! -s conftest.err'
16197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16198 (eval $ac_try) 2>&5
16199 ac_status=$?
16200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201 (exit $ac_status); }; } &&
16202 { ac_try='test -s conftest.$ac_objext'
16203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16204 (eval $ac_try) 2>&5
16205 ac_status=$?
16206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207 (exit $ac_status); }; }; then
16209 cat >>confdefs.h <<\_ACEOF
16210 #define HAVE_UNDERSCORE_TIMEZONE 1
16211 _ACEOF
16213 echo "$as_me:$LINENO: result: yes" >&5
16214 echo "${ECHO_T}yes" >&6
16215 else
16216 echo "$as_me: failed program was:" >&5
16217 sed 's/^/| /' conftest.$ac_ext >&5
16219 echo "$as_me:$LINENO: result: no" >&5
16220 echo "${ECHO_T}no" >&6
16222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16228 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16229 # for constant arguments. Useless!
16230 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16231 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16232 if test "${ac_cv_working_alloca_h+set}" = set; then
16233 echo $ECHO_N "(cached) $ECHO_C" >&6
16234 else
16235 if test x$gcc_no_link = xyes; then
16236 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16237 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16238 { (exit 1); exit 1; }; }
16240 cat >conftest.$ac_ext <<_ACEOF
16241 /* confdefs.h. */
16242 _ACEOF
16243 cat confdefs.h >>conftest.$ac_ext
16244 cat >>conftest.$ac_ext <<_ACEOF
16245 /* end confdefs.h. */
16246 #include <alloca.h>
16248 main ()
16250 char *p = (char *) alloca (2 * sizeof (int));
16252 return 0;
16254 _ACEOF
16255 rm -f conftest.$ac_objext conftest$ac_exeext
16256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16257 (eval $ac_link) 2>conftest.er1
16258 ac_status=$?
16259 grep -v '^ *+' conftest.er1 >conftest.err
16260 rm -f conftest.er1
16261 cat conftest.err >&5
16262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); } &&
16264 { ac_try='test -z "$ac_c_werror_flag"
16265 || test ! -s conftest.err'
16266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16267 (eval $ac_try) 2>&5
16268 ac_status=$?
16269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270 (exit $ac_status); }; } &&
16271 { ac_try='test -s conftest$ac_exeext'
16272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16273 (eval $ac_try) 2>&5
16274 ac_status=$?
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); }; }; then
16277 ac_cv_working_alloca_h=yes
16278 else
16279 echo "$as_me: failed program was:" >&5
16280 sed 's/^/| /' conftest.$ac_ext >&5
16282 ac_cv_working_alloca_h=no
16284 rm -f conftest.err conftest.$ac_objext \
16285 conftest$ac_exeext conftest.$ac_ext
16287 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16288 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16289 if test $ac_cv_working_alloca_h = yes; then
16291 cat >>confdefs.h <<\_ACEOF
16292 #define HAVE_ALLOCA_H 1
16293 _ACEOF
16297 echo "$as_me:$LINENO: checking for alloca" >&5
16298 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16299 if test "${ac_cv_func_alloca_works+set}" = set; then
16300 echo $ECHO_N "(cached) $ECHO_C" >&6
16301 else
16302 if test x$gcc_no_link = xyes; then
16303 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16304 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16305 { (exit 1); exit 1; }; }
16307 cat >conftest.$ac_ext <<_ACEOF
16308 /* confdefs.h. */
16309 _ACEOF
16310 cat confdefs.h >>conftest.$ac_ext
16311 cat >>conftest.$ac_ext <<_ACEOF
16312 /* end confdefs.h. */
16313 #ifdef __GNUC__
16314 # define alloca __builtin_alloca
16315 #else
16316 # ifdef _MSC_VER
16317 # include <malloc.h>
16318 # define alloca _alloca
16319 # else
16320 # if HAVE_ALLOCA_H
16321 # include <alloca.h>
16322 # else
16323 # ifdef _AIX
16324 #pragma alloca
16325 # else
16326 # ifndef alloca /* predefined by HP cc +Olibcalls */
16327 char *alloca ();
16328 # endif
16329 # endif
16330 # endif
16331 # endif
16332 #endif
16335 main ()
16337 char *p = (char *) alloca (1);
16339 return 0;
16341 _ACEOF
16342 rm -f conftest.$ac_objext conftest$ac_exeext
16343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16344 (eval $ac_link) 2>conftest.er1
16345 ac_status=$?
16346 grep -v '^ *+' conftest.er1 >conftest.err
16347 rm -f conftest.er1
16348 cat conftest.err >&5
16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); } &&
16351 { ac_try='test -z "$ac_c_werror_flag"
16352 || test ! -s conftest.err'
16353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16354 (eval $ac_try) 2>&5
16355 ac_status=$?
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); }; } &&
16358 { ac_try='test -s conftest$ac_exeext'
16359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16360 (eval $ac_try) 2>&5
16361 ac_status=$?
16362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363 (exit $ac_status); }; }; then
16364 ac_cv_func_alloca_works=yes
16365 else
16366 echo "$as_me: failed program was:" >&5
16367 sed 's/^/| /' conftest.$ac_ext >&5
16369 ac_cv_func_alloca_works=no
16371 rm -f conftest.err conftest.$ac_objext \
16372 conftest$ac_exeext conftest.$ac_ext
16374 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16375 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16377 if test $ac_cv_func_alloca_works = yes; then
16379 cat >>confdefs.h <<\_ACEOF
16380 #define HAVE_ALLOCA 1
16381 _ACEOF
16383 else
16384 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16385 # that cause trouble. Some versions do not even contain alloca or
16386 # contain a buggy version. If you still want to use their alloca,
16387 # use ar to extract alloca.o from them instead of compiling alloca.c.
16389 ALLOCA=alloca.$ac_objext
16391 cat >>confdefs.h <<\_ACEOF
16392 #define C_ALLOCA 1
16393 _ACEOF
16396 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16397 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16398 if test "${ac_cv_os_cray+set}" = set; then
16399 echo $ECHO_N "(cached) $ECHO_C" >&6
16400 else
16401 cat >conftest.$ac_ext <<_ACEOF
16402 /* confdefs.h. */
16403 _ACEOF
16404 cat confdefs.h >>conftest.$ac_ext
16405 cat >>conftest.$ac_ext <<_ACEOF
16406 /* end confdefs.h. */
16407 #if defined(CRAY) && ! defined(CRAY2)
16408 webecray
16409 #else
16410 wenotbecray
16411 #endif
16413 _ACEOF
16414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16415 $EGREP "webecray" >/dev/null 2>&1; then
16416 ac_cv_os_cray=yes
16417 else
16418 ac_cv_os_cray=no
16420 rm -f conftest*
16423 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16424 echo "${ECHO_T}$ac_cv_os_cray" >&6
16425 if test $ac_cv_os_cray = yes; then
16426 for ac_func in _getb67 GETB67 getb67; do
16427 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16428 echo "$as_me:$LINENO: checking for $ac_func" >&5
16429 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16430 if eval "test \"\${$as_ac_var+set}\" = set"; then
16431 echo $ECHO_N "(cached) $ECHO_C" >&6
16432 else
16433 if test x$gcc_no_link = xyes; then
16434 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16435 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16436 { (exit 1); exit 1; }; }
16438 cat >conftest.$ac_ext <<_ACEOF
16439 /* confdefs.h. */
16440 _ACEOF
16441 cat confdefs.h >>conftest.$ac_ext
16442 cat >>conftest.$ac_ext <<_ACEOF
16443 /* end confdefs.h. */
16444 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16445 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16446 #define $ac_func innocuous_$ac_func
16448 /* System header to define __stub macros and hopefully few prototypes,
16449 which can conflict with char $ac_func (); below.
16450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16451 <limits.h> exists even on freestanding compilers. */
16453 #ifdef __STDC__
16454 # include <limits.h>
16455 #else
16456 # include <assert.h>
16457 #endif
16459 #undef $ac_func
16461 /* Override any gcc2 internal prototype to avoid an error. */
16462 #ifdef __cplusplus
16463 extern "C"
16465 #endif
16466 /* We use char because int might match the return type of a gcc2
16467 builtin and then its argument prototype would still apply. */
16468 char $ac_func ();
16469 /* The GNU C library defines this for functions which it implements
16470 to always fail with ENOSYS. Some functions are actually named
16471 something starting with __ and the normal name is an alias. */
16472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16473 choke me
16474 #else
16475 char (*f) () = $ac_func;
16476 #endif
16477 #ifdef __cplusplus
16479 #endif
16482 main ()
16484 return f != $ac_func;
16486 return 0;
16488 _ACEOF
16489 rm -f conftest.$ac_objext conftest$ac_exeext
16490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16491 (eval $ac_link) 2>conftest.er1
16492 ac_status=$?
16493 grep -v '^ *+' conftest.er1 >conftest.err
16494 rm -f conftest.er1
16495 cat conftest.err >&5
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); } &&
16498 { ac_try='test -z "$ac_c_werror_flag"
16499 || test ! -s conftest.err'
16500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16501 (eval $ac_try) 2>&5
16502 ac_status=$?
16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); }; } &&
16505 { ac_try='test -s conftest$ac_exeext'
16506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16507 (eval $ac_try) 2>&5
16508 ac_status=$?
16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); }; }; then
16511 eval "$as_ac_var=yes"
16512 else
16513 echo "$as_me: failed program was:" >&5
16514 sed 's/^/| /' conftest.$ac_ext >&5
16516 eval "$as_ac_var=no"
16518 rm -f conftest.err conftest.$ac_objext \
16519 conftest$ac_exeext conftest.$ac_ext
16521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16522 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16523 if test `eval echo '${'$as_ac_var'}'` = yes; then
16525 cat >>confdefs.h <<_ACEOF
16526 #define CRAY_STACKSEG_END $ac_func
16527 _ACEOF
16529 break
16532 done
16535 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16536 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16537 if test "${ac_cv_c_stack_direction+set}" = set; then
16538 echo $ECHO_N "(cached) $ECHO_C" >&6
16539 else
16540 if test "$cross_compiling" = yes; then
16541 ac_cv_c_stack_direction=0
16542 else
16543 cat >conftest.$ac_ext <<_ACEOF
16544 /* confdefs.h. */
16545 _ACEOF
16546 cat confdefs.h >>conftest.$ac_ext
16547 cat >>conftest.$ac_ext <<_ACEOF
16548 /* end confdefs.h. */
16550 find_stack_direction ()
16552 static char *addr = 0;
16553 auto char dummy;
16554 if (addr == 0)
16556 addr = &dummy;
16557 return find_stack_direction ();
16559 else
16560 return (&dummy > addr) ? 1 : -1;
16564 main ()
16566 exit (find_stack_direction () < 0);
16568 _ACEOF
16569 rm -f conftest$ac_exeext
16570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16571 (eval $ac_link) 2>&5
16572 ac_status=$?
16573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16574 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16576 (eval $ac_try) 2>&5
16577 ac_status=$?
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); }; }; then
16580 ac_cv_c_stack_direction=1
16581 else
16582 echo "$as_me: program exited with status $ac_status" >&5
16583 echo "$as_me: failed program was:" >&5
16584 sed 's/^/| /' conftest.$ac_ext >&5
16586 ( exit $ac_status )
16587 ac_cv_c_stack_direction=-1
16589 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16592 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16593 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16595 cat >>confdefs.h <<_ACEOF
16596 #define STACK_DIRECTION $ac_cv_c_stack_direction
16597 _ACEOF
16603 for ac_prog in perl
16605 # Extract the first word of "$ac_prog", so it can be a program name with args.
16606 set dummy $ac_prog; ac_word=$2
16607 echo "$as_me:$LINENO: checking for $ac_word" >&5
16608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16609 if test "${ac_cv_prog_PERL+set}" = set; then
16610 echo $ECHO_N "(cached) $ECHO_C" >&6
16611 else
16612 if test -n "$PERL"; then
16613 ac_cv_prog_PERL="$PERL" # Let the user override the test.
16614 else
16615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16616 for as_dir in $PATH
16618 IFS=$as_save_IFS
16619 test -z "$as_dir" && as_dir=.
16620 for ac_exec_ext in '' $ac_executable_extensions; do
16621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16622 ac_cv_prog_PERL="$ac_prog"
16623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16624 break 2
16626 done
16627 done
16631 PERL=$ac_cv_prog_PERL
16632 if test -n "$PERL"; then
16633 echo "$as_me:$LINENO: result: $PERL" >&5
16634 echo "${ECHO_T}$PERL" >&6
16635 else
16636 echo "$as_me:$LINENO: result: no" >&5
16637 echo "${ECHO_T}no" >&6
16640 test -n "$PERL" && break
16641 done
16642 test -n "$PERL" || PERL="false"
16645 SYSDEP_SOURCES=
16646 SIGNAL_HANDLER_AUX=
16648 case "${host}" in
16649 i?86-*-linux*)
16650 SIGNAL_HANDLER=include/i386-signal.h
16652 sparc*-sun-solaris*)
16653 SIGNAL_HANDLER=include/sparc-signal.h
16655 # ia64-*)
16656 # SYSDEP_SOURCES=sysdep/ia64.c
16657 # test -d sysdep || mkdir sysdep
16658 # ;;
16659 hppa*-*-linux*)
16660 SIGNAL_HANDLER=include/pa-signal.h
16662 hppa*-hp-hpux*)
16663 SIGNAL_HANDLER=include/hppa-signal.h
16665 ia64-*-linux*)
16666 SIGNAL_HANDLER=include/dwarf2-signal.h
16668 powerpc*-*-linux*)
16669 SIGNAL_HANDLER=include/powerpc-signal.h
16671 alpha*-*-linux*)
16672 SIGNAL_HANDLER=include/dwarf2-signal.h
16674 s390*-*-linux*)
16675 SIGNAL_HANDLER=include/s390-signal.h
16677 x86_64*-*-linux*)
16678 SIGNAL_HANDLER=include/x86_64-signal.h
16679 SIGNAL_HANDLER_AUX=include/i386-signal.h
16681 sparc*-*-linux*)
16682 SIGNAL_HANDLER=include/dwarf2-signal.h
16684 sh*-*-linux*)
16685 SIGNAL_HANDLER=include/sh-signal.h
16687 *mingw*)
16688 SIGNAL_HANDLER=include/win32-signal.h
16690 mips*-*-linux*)
16691 SIGNAL_HANDLER=include/mips-signal.h
16693 powerpc*-*-darwin*)
16694 SIGNAL_HANDLER=include/darwin-signal.h
16697 SIGNAL_HANDLER=include/default-signal.h
16699 esac
16701 # If we're using sjlj exceptions, forget what we just learned.
16702 if test "$enable_sjlj_exceptions" = yes; then
16703 SIGNAL_HANDLER=include/default-signal.h
16704 SIGNAL_HANDLER_AUX=
16709 if test -z "$SIGNAL_HANDLER_AUX"; then
16710 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
16713 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
16716 if test "${multilib}" = "yes"; then
16717 multilib_arg="--enable-multilib"
16718 else
16719 multilib_arg=
16722 # See if we support thread-local storage.
16724 # Check whether --enable-tls or --disable-tls was given.
16725 if test "${enable_tls+set}" = set; then
16726 enableval="$enable_tls"
16728 case "$enableval" in
16729 yes|no) ;;
16730 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
16731 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
16732 { (exit 1); exit 1; }; } ;;
16733 esac
16735 else
16736 enable_tls=yes
16739 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
16740 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
16741 if test "${have_tls+set}" = set; then
16742 echo $ECHO_N "(cached) $ECHO_C" >&6
16743 else
16745 if test "$cross_compiling" = yes; then
16746 if test x$gcc_no_link = xyes; then
16747 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16748 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16749 { (exit 1); exit 1; }; }
16751 cat >conftest.$ac_ext <<_ACEOF
16752 __thread int a; int b; int main() { return a = b; }
16753 _ACEOF
16754 rm -f conftest.$ac_objext conftest$ac_exeext
16755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16756 (eval $ac_link) 2>conftest.er1
16757 ac_status=$?
16758 grep -v '^ *+' conftest.er1 >conftest.err
16759 rm -f conftest.er1
16760 cat conftest.err >&5
16761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762 (exit $ac_status); } &&
16763 { ac_try='test -z "$ac_c_werror_flag"
16764 || test ! -s conftest.err'
16765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16766 (eval $ac_try) 2>&5
16767 ac_status=$?
16768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769 (exit $ac_status); }; } &&
16770 { ac_try='test -s conftest$ac_exeext'
16771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16772 (eval $ac_try) 2>&5
16773 ac_status=$?
16774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775 (exit $ac_status); }; }; then
16776 have_tls=yes
16777 else
16778 echo "$as_me: failed program was:" >&5
16779 sed 's/^/| /' conftest.$ac_ext >&5
16781 have_tls=no
16783 rm -f conftest.err conftest.$ac_objext \
16784 conftest$ac_exeext conftest.$ac_ext
16786 else
16787 cat >conftest.$ac_ext <<_ACEOF
16788 __thread int a; int b; int main() { return a = b; }
16789 _ACEOF
16790 rm -f conftest$ac_exeext
16791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16792 (eval $ac_link) 2>&5
16793 ac_status=$?
16794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16797 (eval $ac_try) 2>&5
16798 ac_status=$?
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); }; }; then
16801 save_LDFLAGS="$LDFLAGS"
16802 LDFLAGS="-static $LDFLAGS"
16803 if test x$gcc_no_link = xyes; then
16804 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16805 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16806 { (exit 1); exit 1; }; }
16808 cat >conftest.$ac_ext <<_ACEOF
16809 int main() { return 0; }
16810 _ACEOF
16811 rm -f conftest.$ac_objext conftest$ac_exeext
16812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16813 (eval $ac_link) 2>conftest.er1
16814 ac_status=$?
16815 grep -v '^ *+' conftest.er1 >conftest.err
16816 rm -f conftest.er1
16817 cat conftest.err >&5
16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); } &&
16820 { ac_try='test -z "$ac_c_werror_flag"
16821 || test ! -s conftest.err'
16822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16823 (eval $ac_try) 2>&5
16824 ac_status=$?
16825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16826 (exit $ac_status); }; } &&
16827 { ac_try='test -s conftest$ac_exeext'
16828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16829 (eval $ac_try) 2>&5
16830 ac_status=$?
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); }; }; then
16833 if test "$cross_compiling" = yes; then
16834 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16835 See \`config.log' for more details." >&5
16836 echo "$as_me: error: cannot run test program while cross compiling
16837 See \`config.log' for more details." >&2;}
16838 { (exit 1); exit 1; }; }
16839 else
16840 cat >conftest.$ac_ext <<_ACEOF
16841 __thread int a; int b; int main() { return a = b; }
16842 _ACEOF
16843 rm -f conftest$ac_exeext
16844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16845 (eval $ac_link) 2>&5
16846 ac_status=$?
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16850 (eval $ac_try) 2>&5
16851 ac_status=$?
16852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); }; }; then
16854 have_tls=yes
16855 else
16856 echo "$as_me: program exited with status $ac_status" >&5
16857 echo "$as_me: failed program was:" >&5
16858 sed 's/^/| /' conftest.$ac_ext >&5
16860 ( exit $ac_status )
16861 have_tls=no
16863 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16865 else
16866 echo "$as_me: failed program was:" >&5
16867 sed 's/^/| /' conftest.$ac_ext >&5
16869 have_tls=yes
16871 rm -f conftest.err conftest.$ac_objext \
16872 conftest$ac_exeext conftest.$ac_ext
16873 LDFLAGS="$save_LDFLAGS"
16874 else
16875 echo "$as_me: program exited with status $ac_status" >&5
16876 echo "$as_me: failed program was:" >&5
16877 sed 's/^/| /' conftest.$ac_ext >&5
16879 ( exit $ac_status )
16880 have_tls=no
16882 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16885 echo "$as_me:$LINENO: result: $have_tls" >&5
16886 echo "${ECHO_T}$have_tls" >&6
16887 if test "$enable_tls $have_tls" = "yes yes"; then
16889 cat >>confdefs.h <<\_ACEOF
16890 #define HAVE_TLS 1
16891 _ACEOF
16895 # For _Unwind_GetIPInfo.
16899 ac_ext=cc
16900 ac_cpp='$CXXCPP $CPPFLAGS'
16901 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16902 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16903 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16905 ac_save_CXXFLAGS="$CXXFLAGS"
16906 CXXFLAGS="$CXXFLAGS -fno-exceptions"
16907 echo "$as_me:$LINENO: checking for _Unwind_GetIPInfo" >&5
16908 echo $ECHO_N "checking for _Unwind_GetIPInfo... $ECHO_C" >&6
16909 if test "${gcc_cv_getipinfo+set}" = set; then
16910 echo $ECHO_N "(cached) $ECHO_C" >&6
16911 else
16913 if test x$gcc_no_link = xyes; then
16914 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16915 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16916 { (exit 1); exit 1; }; }
16918 cat >conftest.$ac_ext <<_ACEOF
16919 /* confdefs.h. */
16920 _ACEOF
16921 cat confdefs.h >>conftest.$ac_ext
16922 cat >>conftest.$ac_ext <<_ACEOF
16923 /* end confdefs.h. */
16924 extern "C" { extern void _Unwind_GetIPInfo(); }
16926 main ()
16928 _Unwind_GetIPInfo();
16930 return 0;
16932 _ACEOF
16933 rm -f conftest.$ac_objext conftest$ac_exeext
16934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16935 (eval $ac_link) 2>conftest.er1
16936 ac_status=$?
16937 grep -v '^ *+' conftest.er1 >conftest.err
16938 rm -f conftest.er1
16939 cat conftest.err >&5
16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); } &&
16942 { ac_try='test -z "$ac_cxx_werror_flag"
16943 || test ! -s conftest.err'
16944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16945 (eval $ac_try) 2>&5
16946 ac_status=$?
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); }; } &&
16949 { ac_try='test -s conftest$ac_exeext'
16950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16951 (eval $ac_try) 2>&5
16952 ac_status=$?
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); }; }; then
16955 gcc_cv_getipinfo=yes
16956 else
16957 echo "$as_me: failed program was:" >&5
16958 sed 's/^/| /' conftest.$ac_ext >&5
16960 gcc_cv_getipinfo=no
16962 rm -f conftest.err conftest.$ac_objext \
16963 conftest$ac_exeext conftest.$ac_ext
16967 if test $gcc_cv_getipinfo = yes; then
16969 cat >>confdefs.h <<\_ACEOF
16970 #define HAVE_GETIPINFO 1
16971 _ACEOF
16974 echo "$as_me:$LINENO: result: $gcc_cv_getipinfo" >&5
16975 echo "${ECHO_T}$gcc_cv_getipinfo" >&6
16976 CXXFLAGS="$ac_save_CXXFLAGS"
16977 ac_ext=c
16978 ac_cpp='$CPP $CPPFLAGS'
16979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16985 # Check if linker supports static linking on a per library basis
16986 LD_START_STATIC_SPEC=
16987 LD_FINISH_STATIC_SPEC=
16988 if $LD --help 2>&1 | grep -q -e -call_shared ; then
16989 if $LD --help 2>&1 | grep -q -e -non_shared ; then
16990 LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
16991 LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
16997 here=`${PWDCMD-pwd}`
17000 # We get this from the environment.
17003 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"
17006 ac_config_files="$ac_config_files scripts/jar"
17009 ac_config_commands="$ac_config_commands default"
17012 cat >confcache <<\_ACEOF
17013 # This file is a shell script that caches the results of configure
17014 # tests run on this system so they can be shared between configure
17015 # scripts and configure runs, see configure's option --config-cache.
17016 # It is not useful on other systems. If it contains results you don't
17017 # want to keep, you may remove or edit it.
17019 # config.status only pays attention to the cache file if you give it
17020 # the --recheck option to rerun configure.
17022 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17023 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17024 # following values.
17026 _ACEOF
17028 # The following way of writing the cache mishandles newlines in values,
17029 # but we know of no workaround that is simple, portable, and efficient.
17030 # So, don't put newlines in cache variables' values.
17031 # Ultrix sh set writes to stderr and can't be redirected directly,
17032 # and sets the high bit in the cache file unless we assign to the vars.
17034 (set) 2>&1 |
17035 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17036 *ac_space=\ *)
17037 # `set' does not quote correctly, so add quotes (double-quote
17038 # substitution turns \\\\ into \\, and sed turns \\ into \).
17039 sed -n \
17040 "s/'/'\\\\''/g;
17041 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17044 # `set' quotes correctly as required by POSIX, so do not add quotes.
17045 sed -n \
17046 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17048 esac;
17050 sed '
17051 t clear
17052 : clear
17053 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17054 t end
17055 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17056 : end' >>confcache
17057 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17058 if test -w $cache_file; then
17059 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17060 cat confcache >$cache_file
17061 else
17062 echo "not updating unwritable cache $cache_file"
17065 rm -f confcache
17067 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17068 # Let make expand exec_prefix.
17069 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17071 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17072 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17073 # trailing colons and then remove the whole line if VPATH becomes empty
17074 # (actually we leave an empty line to preserve line numbers).
17075 if test "x$srcdir" = x.; then
17076 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17077 s/:*\$(srcdir):*/:/;
17078 s/:*\${srcdir}:*/:/;
17079 s/:*@srcdir@:*/:/;
17080 s/^\([^=]*=[ ]*\):*/\1/;
17081 s/:*$//;
17082 s/^[^=]*=[ ]*$//;
17086 DEFS=-DHAVE_CONFIG_H
17088 ac_libobjs=
17089 ac_ltlibobjs=
17090 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17091 # 1. Remove the extension, and $U if already installed.
17092 ac_i=`echo "$ac_i" |
17093 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17094 # 2. Add them.
17095 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17096 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17097 done
17098 LIBOBJS=$ac_libobjs
17100 LTLIBOBJS=$ac_ltlibobjs
17103 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
17104 { { echo "$as_me:$LINENO: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
17105 Usually this means the macro was only invoked conditionally." >&5
17106 echo "$as_me: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
17107 Usually this means the macro was only invoked conditionally." >&2;}
17108 { (exit 1); exit 1; }; }
17110 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17111 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17112 Usually this means the macro was only invoked conditionally." >&5
17113 echo "$as_me: error: conditional \"AMDEP\" was never defined.
17114 Usually this means the macro was only invoked conditionally." >&2;}
17115 { (exit 1); exit 1; }; }
17117 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17118 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17119 Usually this means the macro was only invoked conditionally." >&5
17120 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17121 Usually this means the macro was only invoked conditionally." >&2;}
17122 { (exit 1); exit 1; }; }
17124 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17125 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17126 Usually this means the macro was only invoked conditionally." >&5
17127 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17128 Usually this means the macro was only invoked conditionally." >&2;}
17129 { (exit 1); exit 1; }; }
17131 if test -z "${BASH_JAR_TRUE}" && test -z "${BASH_JAR_FALSE}"; then
17132 { { echo "$as_me:$LINENO: error: conditional \"BASH_JAR\" was never defined.
17133 Usually this means the macro was only invoked conditionally." >&5
17134 echo "$as_me: error: conditional \"BASH_JAR\" was never defined.
17135 Usually this means the macro was only invoked conditionally." >&2;}
17136 { (exit 1); exit 1; }; }
17138 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17139 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
17140 Usually this means the macro was only invoked conditionally." >&5
17141 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
17142 Usually this means the macro was only invoked conditionally." >&2;}
17143 { (exit 1); exit 1; }; }
17145 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
17146 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
17147 Usually this means the macro was only invoked conditionally." >&5
17148 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
17149 Usually this means the macro was only invoked conditionally." >&2;}
17150 { (exit 1); exit 1; }; }
17152 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
17153 { { echo "$as_me:$LINENO: error: conditional \"X_AWT\" was never defined.
17154 Usually this means the macro was only invoked conditionally." >&5
17155 echo "$as_me: error: conditional \"X_AWT\" was never defined.
17156 Usually this means the macro was only invoked conditionally." >&2;}
17157 { (exit 1); exit 1; }; }
17159 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
17160 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
17161 Usually this means the macro was only invoked conditionally." >&5
17162 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
17163 Usually this means the macro was only invoked conditionally." >&2;}
17164 { (exit 1); exit 1; }; }
17166 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
17167 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
17168 Usually this means the macro was only invoked conditionally." >&5
17169 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
17170 Usually this means the macro was only invoked conditionally." >&2;}
17171 { (exit 1); exit 1; }; }
17173 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
17174 { { echo "$as_me:$LINENO: error: conditional \"BUILD_ECJ1\" was never defined.
17175 Usually this means the macro was only invoked conditionally." >&5
17176 echo "$as_me: error: conditional \"BUILD_ECJ1\" was never defined.
17177 Usually this means the macro was only invoked conditionally." >&2;}
17178 { (exit 1); exit 1; }; }
17180 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
17181 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
17182 Usually this means the macro was only invoked conditionally." >&5
17183 echo "$as_me: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
17184 Usually this means the macro was only invoked conditionally." >&2;}
17185 { (exit 1); exit 1; }; }
17187 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
17188 { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
17189 Usually this means the macro was only invoked conditionally." >&5
17190 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
17191 Usually this means the macro was only invoked conditionally." >&2;}
17192 { (exit 1); exit 1; }; }
17194 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
17195 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
17196 Usually this means the macro was only invoked conditionally." >&5
17197 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
17198 Usually this means the macro was only invoked conditionally." >&2;}
17199 { (exit 1); exit 1; }; }
17201 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
17202 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
17203 Usually this means the macro was only invoked conditionally." >&5
17204 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
17205 Usually this means the macro was only invoked conditionally." >&2;}
17206 { (exit 1); exit 1; }; }
17208 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
17209 { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
17210 Usually this means the macro was only invoked conditionally." >&5
17211 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
17212 Usually this means the macro was only invoked conditionally." >&2;}
17213 { (exit 1); exit 1; }; }
17215 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
17216 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
17217 Usually this means the macro was only invoked conditionally." >&5
17218 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
17219 Usually this means the macro was only invoked conditionally." >&2;}
17220 { (exit 1); exit 1; }; }
17222 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
17223 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
17224 Usually this means the macro was only invoked conditionally." >&5
17225 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
17226 Usually this means the macro was only invoked conditionally." >&2;}
17227 { (exit 1); exit 1; }; }
17229 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
17230 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
17231 Usually this means the macro was only invoked conditionally." >&5
17232 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
17233 Usually this means the macro was only invoked conditionally." >&2;}
17234 { (exit 1); exit 1; }; }
17236 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
17237 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
17238 Usually this means the macro was only invoked conditionally." >&5
17239 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
17240 Usually this means the macro was only invoked conditionally." >&2;}
17241 { (exit 1); exit 1; }; }
17243 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
17244 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
17245 Usually this means the macro was only invoked conditionally." >&5
17246 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
17247 Usually this means the macro was only invoked conditionally." >&2;}
17248 { (exit 1); exit 1; }; }
17250 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
17251 { { echo "$as_me:$LINENO: error: conditional \"USE_LIBGCJ_BC\" was never defined.
17252 Usually this means the macro was only invoked conditionally." >&5
17253 echo "$as_me: error: conditional \"USE_LIBGCJ_BC\" was never defined.
17254 Usually this means the macro was only invoked conditionally." >&2;}
17255 { (exit 1); exit 1; }; }
17257 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
17258 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
17259 Usually this means the macro was only invoked conditionally." >&5
17260 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
17261 Usually this means the macro was only invoked conditionally." >&2;}
17262 { (exit 1); exit 1; }; }
17264 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
17265 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
17266 Usually this means the macro was only invoked conditionally." >&5
17267 echo "$as_me: error: conditional \"NATIVE\" was never defined.
17268 Usually this means the macro was only invoked conditionally." >&2;}
17269 { (exit 1); exit 1; }; }
17271 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
17272 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SHARED\" was never defined.
17273 Usually this means the macro was only invoked conditionally." >&5
17274 echo "$as_me: error: conditional \"ENABLE_SHARED\" was never defined.
17275 Usually this means the macro was only invoked conditionally." >&2;}
17276 { (exit 1); exit 1; }; }
17278 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
17279 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
17280 Usually this means the macro was only invoked conditionally." >&5
17281 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
17282 Usually this means the macro was only invoked conditionally." >&2;}
17283 { (exit 1); exit 1; }; }
17286 : ${CONFIG_STATUS=./config.status}
17287 ac_clean_files_save=$ac_clean_files
17288 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17289 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17290 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17291 cat >$CONFIG_STATUS <<_ACEOF
17292 #! $SHELL
17293 # Generated by $as_me.
17294 # Run this file to recreate the current configuration.
17295 # Compiler output produced by configure, useful for debugging
17296 # configure, is in config.log if it exists.
17298 debug=false
17299 ac_cs_recheck=false
17300 ac_cs_silent=false
17301 SHELL=\${CONFIG_SHELL-$SHELL}
17302 _ACEOF
17304 cat >>$CONFIG_STATUS <<\_ACEOF
17305 ## --------------------- ##
17306 ## M4sh Initialization. ##
17307 ## --------------------- ##
17309 # Be Bourne compatible
17310 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17311 emulate sh
17312 NULLCMD=:
17313 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17314 # is contrary to our usage. Disable this feature.
17315 alias -g '${1+"$@"}'='"$@"'
17316 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17317 set -o posix
17319 DUALCASE=1; export DUALCASE # for MKS sh
17321 # Support unset when possible.
17322 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17323 as_unset=unset
17324 else
17325 as_unset=false
17329 # Work around bugs in pre-3.0 UWIN ksh.
17330 $as_unset ENV MAIL MAILPATH
17331 PS1='$ '
17332 PS2='> '
17333 PS4='+ '
17335 # NLS nuisances.
17336 for as_var in \
17337 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17338 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17339 LC_TELEPHONE LC_TIME
17341 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17342 eval $as_var=C; export $as_var
17343 else
17344 $as_unset $as_var
17346 done
17348 # Required to use basename.
17349 if expr a : '\(a\)' >/dev/null 2>&1; then
17350 as_expr=expr
17351 else
17352 as_expr=false
17355 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17356 as_basename=basename
17357 else
17358 as_basename=false
17362 # Name of the executable.
17363 as_me=`$as_basename "$0" ||
17364 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17365 X"$0" : 'X\(//\)$' \| \
17366 X"$0" : 'X\(/\)$' \| \
17367 . : '\(.\)' 2>/dev/null ||
17368 echo X/"$0" |
17369 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17370 /^X\/\(\/\/\)$/{ s//\1/; q; }
17371 /^X\/\(\/\).*/{ s//\1/; q; }
17372 s/.*/./; q'`
17375 # PATH needs CR, and LINENO needs CR and PATH.
17376 # Avoid depending upon Character Ranges.
17377 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17378 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17379 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17380 as_cr_digits='0123456789'
17381 as_cr_alnum=$as_cr_Letters$as_cr_digits
17383 # The user is always right.
17384 if test "${PATH_SEPARATOR+set}" != set; then
17385 echo "#! /bin/sh" >conf$$.sh
17386 echo "exit 0" >>conf$$.sh
17387 chmod +x conf$$.sh
17388 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17389 PATH_SEPARATOR=';'
17390 else
17391 PATH_SEPARATOR=:
17393 rm -f conf$$.sh
17397 as_lineno_1=$LINENO
17398 as_lineno_2=$LINENO
17399 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17400 test "x$as_lineno_1" != "x$as_lineno_2" &&
17401 test "x$as_lineno_3" = "x$as_lineno_2" || {
17402 # Find who we are. Look in the path if we contain no path at all
17403 # relative or not.
17404 case $0 in
17405 *[\\/]* ) as_myself=$0 ;;
17406 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17407 for as_dir in $PATH
17409 IFS=$as_save_IFS
17410 test -z "$as_dir" && as_dir=.
17411 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17412 done
17415 esac
17416 # We did not find ourselves, most probably we were run as `sh COMMAND'
17417 # in which case we are not to be found in the path.
17418 if test "x$as_myself" = x; then
17419 as_myself=$0
17421 if test ! -f "$as_myself"; then
17422 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17423 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17424 { (exit 1); exit 1; }; }
17426 case $CONFIG_SHELL in
17428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17429 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17431 IFS=$as_save_IFS
17432 test -z "$as_dir" && as_dir=.
17433 for as_base in sh bash ksh sh5; do
17434 case $as_dir in
17436 if ("$as_dir/$as_base" -c '
17437 as_lineno_1=$LINENO
17438 as_lineno_2=$LINENO
17439 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17440 test "x$as_lineno_1" != "x$as_lineno_2" &&
17441 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17442 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17443 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17444 CONFIG_SHELL=$as_dir/$as_base
17445 export CONFIG_SHELL
17446 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17447 fi;;
17448 esac
17449 done
17450 done
17452 esac
17454 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17455 # uniformly replaced by the line number. The first 'sed' inserts a
17456 # line-number line before each line; the second 'sed' does the real
17457 # work. The second script uses 'N' to pair each line-number line
17458 # with the numbered line, and appends trailing '-' during
17459 # substitution so that $LINENO is not a special case at line end.
17460 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17461 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17462 sed '=' <$as_myself |
17463 sed '
17465 s,$,-,
17466 : loop
17467 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17468 t loop
17469 s,-$,,
17470 s,^['$as_cr_digits']*\n,,
17471 ' >$as_me.lineno &&
17472 chmod +x $as_me.lineno ||
17473 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17474 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17475 { (exit 1); exit 1; }; }
17477 # Don't try to exec as it changes $[0], causing all sort of problems
17478 # (the dirname of $[0] is not the place where we might find the
17479 # original and so on. Autoconf is especially sensible to this).
17480 . ./$as_me.lineno
17481 # Exit status is that of the last command.
17482 exit
17486 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17487 *c*,-n*) ECHO_N= ECHO_C='
17488 ' ECHO_T=' ' ;;
17489 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17490 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17491 esac
17493 if expr a : '\(a\)' >/dev/null 2>&1; then
17494 as_expr=expr
17495 else
17496 as_expr=false
17499 rm -f conf$$ conf$$.exe conf$$.file
17500 echo >conf$$.file
17501 if ln -s conf$$.file conf$$ 2>/dev/null; then
17502 # We could just check for DJGPP; but this test a) works b) is more generic
17503 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17504 if test -f conf$$.exe; then
17505 # Don't use ln at all; we don't have any links
17506 as_ln_s='cp -p'
17507 else
17508 as_ln_s='ln -s'
17510 elif ln conf$$.file conf$$ 2>/dev/null; then
17511 as_ln_s=ln
17512 else
17513 as_ln_s='cp -p'
17515 rm -f conf$$ conf$$.exe conf$$.file
17517 if mkdir -p . 2>/dev/null; then
17518 as_mkdir_p=:
17519 else
17520 test -d ./-p && rmdir ./-p
17521 as_mkdir_p=false
17524 as_executable_p="test -f"
17526 # Sed expression to map a string onto a valid CPP name.
17527 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17529 # Sed expression to map a string onto a valid variable name.
17530 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17533 # IFS
17534 # We need space, tab and new line, in precisely that order.
17535 as_nl='
17537 IFS=" $as_nl"
17539 # CDPATH.
17540 $as_unset CDPATH
17542 exec 6>&1
17544 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17545 # report actual input values of CONFIG_FILES etc. instead of their
17546 # values after options handling. Logging --version etc. is OK.
17547 exec 5>>config.log
17549 echo
17550 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17551 ## Running $as_me. ##
17552 _ASBOX
17553 } >&5
17554 cat >&5 <<_CSEOF
17556 This file was extended by libjava $as_me version-unused, which was
17557 generated by GNU Autoconf 2.59. Invocation command line was
17559 CONFIG_FILES = $CONFIG_FILES
17560 CONFIG_HEADERS = $CONFIG_HEADERS
17561 CONFIG_LINKS = $CONFIG_LINKS
17562 CONFIG_COMMANDS = $CONFIG_COMMANDS
17563 $ $0 $@
17565 _CSEOF
17566 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17567 echo >&5
17568 _ACEOF
17570 # Files that config.status was made for.
17571 if test -n "$ac_config_files"; then
17572 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17575 if test -n "$ac_config_headers"; then
17576 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17579 if test -n "$ac_config_links"; then
17580 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17583 if test -n "$ac_config_commands"; then
17584 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17587 cat >>$CONFIG_STATUS <<\_ACEOF
17589 ac_cs_usage="\
17590 \`$as_me' instantiates files from templates according to the
17591 current configuration.
17593 Usage: $0 [OPTIONS] [FILE]...
17595 -h, --help print this help, then exit
17596 -V, --version print version number, then exit
17597 -q, --quiet do not print progress messages
17598 -d, --debug don't remove temporary files
17599 --recheck update $as_me by reconfiguring in the same conditions
17600 --file=FILE[:TEMPLATE]
17601 instantiate the configuration file FILE
17602 --header=FILE[:TEMPLATE]
17603 instantiate the configuration header FILE
17605 Configuration files:
17606 $config_files
17608 Configuration headers:
17609 $config_headers
17611 Configuration links:
17612 $config_links
17614 Configuration commands:
17615 $config_commands
17617 Report bugs to <bug-autoconf@gnu.org>."
17618 _ACEOF
17620 cat >>$CONFIG_STATUS <<_ACEOF
17621 ac_cs_version="\\
17622 libjava config.status version-unused
17623 configured by $0, generated by GNU Autoconf 2.59,
17624 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17626 Copyright (C) 2003 Free Software Foundation, Inc.
17627 This config.status script is free software; the Free Software Foundation
17628 gives unlimited permission to copy, distribute and modify it."
17629 srcdir=$srcdir
17630 INSTALL="$INSTALL"
17631 _ACEOF
17633 cat >>$CONFIG_STATUS <<\_ACEOF
17634 # If no file are specified by the user, then we need to provide default
17635 # value. By we need to know if files were specified by the user.
17636 ac_need_defaults=:
17637 while test $# != 0
17639 case $1 in
17640 --*=*)
17641 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17642 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17643 ac_shift=:
17646 ac_option=$1
17647 ac_optarg=$2
17648 ac_shift=shift
17650 *) # This is not an option, so the user has probably given explicit
17651 # arguments.
17652 ac_option=$1
17653 ac_need_defaults=false;;
17654 esac
17656 case $ac_option in
17657 # Handling of the options.
17658 _ACEOF
17659 cat >>$CONFIG_STATUS <<\_ACEOF
17660 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17661 ac_cs_recheck=: ;;
17662 --version | --vers* | -V )
17663 echo "$ac_cs_version"; exit 0 ;;
17664 --he | --h)
17665 # Conflict between --help and --header
17666 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17667 Try \`$0 --help' for more information." >&5
17668 echo "$as_me: error: ambiguous option: $1
17669 Try \`$0 --help' for more information." >&2;}
17670 { (exit 1); exit 1; }; };;
17671 --help | --hel | -h )
17672 echo "$ac_cs_usage"; exit 0 ;;
17673 --debug | --d* | -d )
17674 debug=: ;;
17675 --file | --fil | --fi | --f )
17676 $ac_shift
17677 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17678 ac_need_defaults=false;;
17679 --header | --heade | --head | --hea )
17680 $ac_shift
17681 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17682 ac_need_defaults=false;;
17683 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17684 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17685 ac_cs_silent=: ;;
17687 # This is an error.
17688 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17689 Try \`$0 --help' for more information." >&5
17690 echo "$as_me: error: unrecognized option: $1
17691 Try \`$0 --help' for more information." >&2;}
17692 { (exit 1); exit 1; }; } ;;
17694 *) ac_config_targets="$ac_config_targets $1" ;;
17696 esac
17697 shift
17698 done
17700 ac_configure_extra_args=
17702 if $ac_cs_silent; then
17703 exec 6>/dev/null
17704 ac_configure_extra_args="$ac_configure_extra_args --silent"
17707 _ACEOF
17708 cat >>$CONFIG_STATUS <<_ACEOF
17709 if \$ac_cs_recheck; then
17710 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17711 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17714 _ACEOF
17716 cat >>$CONFIG_STATUS <<_ACEOF
17718 # INIT-COMMANDS section.
17722 srcdir="$srcdir"
17723 host="$host"
17724 target="$target"
17725 with_multisubdir="$with_multisubdir"
17726 with_multisrctop="$with_multisrctop"
17727 with_target_subdir="$with_target_subdir"
17728 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17729 multi_basedir="$multi_basedir"
17730 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17731 CC="$CC"
17732 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17733 srcdir=${srcdir}
17734 host=${host}
17735 target=${target}
17736 with_multisubdir=${with_multisubdir}
17737 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17738 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17739 multi_basedir=${multi_basedir}
17740 CC="${CC}"
17741 CXX="${CXX}"
17742 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
17745 _ACEOF
17749 cat >>$CONFIG_STATUS <<\_ACEOF
17750 for ac_config_target in $ac_config_targets
17752 case "$ac_config_target" in
17753 # Handling of arguments.
17754 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17755 "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
17756 "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
17757 "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
17758 "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
17759 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17760 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17761 "scripts/jar" ) CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
17762 "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
17763 "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
17764 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
17765 "java/net/natVMInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
17766 "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
17767 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
17768 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
17769 "gnu/java/nio/natVMPipe.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
17770 "gnu/java/nio/natVMSelector.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
17771 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
17772 "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
17773 "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
17774 "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
17775 "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
17776 "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
17777 "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
17778 "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
17779 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17780 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17781 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17782 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17783 "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
17784 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17785 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17786 { (exit 1); exit 1; }; };;
17787 esac
17788 done
17790 # If the user did not use the arguments to specify the items to instantiate,
17791 # then the envvar interface is used. Set only those that are not.
17792 # We use the long form for the default assignment because of an extremely
17793 # bizarre bug on SunOS 4.1.3.
17794 if $ac_need_defaults; then
17795 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17796 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17797 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17798 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17801 # Have a temporary directory for convenience. Make it in the build tree
17802 # simply because there is no reason to put it here, and in addition,
17803 # creating and moving files from /tmp can sometimes cause problems.
17804 # Create a temporary directory, and hook for its removal unless debugging.
17805 $debug ||
17807 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17808 trap '{ (exit 1); exit 1; }' 1 2 13 15
17811 # Create a (secure) tmp directory for tmp files.
17814 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17815 test -n "$tmp" && test -d "$tmp"
17816 } ||
17818 tmp=./confstat$$-$RANDOM
17819 (umask 077 && mkdir $tmp)
17820 } ||
17822 echo "$me: cannot create a temporary directory in ." >&2
17823 { (exit 1); exit 1; }
17826 _ACEOF
17828 cat >>$CONFIG_STATUS <<_ACEOF
17831 # CONFIG_FILES section.
17834 # No need to generate the scripts if there are no CONFIG_FILES.
17835 # This happens for instance when ./config.status config.h
17836 if test -n "\$CONFIG_FILES"; then
17837 # Protect against being on the right side of a sed subst in config.status.
17838 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17839 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17840 s,@SHELL@,$SHELL,;t t
17841 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17842 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17843 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17844 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17845 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17846 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17847 s,@exec_prefix@,$exec_prefix,;t t
17848 s,@prefix@,$prefix,;t t
17849 s,@program_transform_name@,$program_transform_name,;t t
17850 s,@bindir@,$bindir,;t t
17851 s,@sbindir@,$sbindir,;t t
17852 s,@libexecdir@,$libexecdir,;t t
17853 s,@datadir@,$datadir,;t t
17854 s,@sysconfdir@,$sysconfdir,;t t
17855 s,@sharedstatedir@,$sharedstatedir,;t t
17856 s,@localstatedir@,$localstatedir,;t t
17857 s,@libdir@,$libdir,;t t
17858 s,@includedir@,$includedir,;t t
17859 s,@oldincludedir@,$oldincludedir,;t t
17860 s,@infodir@,$infodir,;t t
17861 s,@mandir@,$mandir,;t t
17862 s,@build_alias@,$build_alias,;t t
17863 s,@host_alias@,$host_alias,;t t
17864 s,@target_alias@,$target_alias,;t t
17865 s,@DEFS@,$DEFS,;t t
17866 s,@ECHO_C@,$ECHO_C,;t t
17867 s,@ECHO_N@,$ECHO_N,;t t
17868 s,@ECHO_T@,$ECHO_T,;t t
17869 s,@LIBS@,$LIBS,;t t
17870 s,@build@,$build,;t t
17871 s,@build_cpu@,$build_cpu,;t t
17872 s,@build_vendor@,$build_vendor,;t t
17873 s,@build_os@,$build_os,;t t
17874 s,@build_libsubdir@,$build_libsubdir,;t t
17875 s,@build_subdir@,$build_subdir,;t t
17876 s,@host_subdir@,$host_subdir,;t t
17877 s,@target_subdir@,$target_subdir,;t t
17878 s,@multi_basedir@,$multi_basedir,;t t
17879 s,@host@,$host,;t t
17880 s,@host_cpu@,$host_cpu,;t t
17881 s,@host_vendor@,$host_vendor,;t t
17882 s,@host_os@,$host_os,;t t
17883 s,@target@,$target,;t t
17884 s,@target_cpu@,$target_cpu,;t t
17885 s,@target_vendor@,$target_vendor,;t t
17886 s,@target_os@,$target_os,;t t
17887 s,@target_noncanonical@,$target_noncanonical,;t t
17888 s,@LN_S@,$LN_S,;t t
17889 s,@mkinstalldirs@,$mkinstalldirs,;t t
17890 s,@JAVA_MAINTAINER_MODE_TRUE@,$JAVA_MAINTAINER_MODE_TRUE,;t t
17891 s,@JAVA_MAINTAINER_MODE_FALSE@,$JAVA_MAINTAINER_MODE_FALSE,;t t
17892 s,@CC@,$CC,;t t
17893 s,@ac_ct_CC@,$ac_ct_CC,;t t
17894 s,@EXEEXT@,$EXEEXT,;t t
17895 s,@OBJEXT@,$OBJEXT,;t t
17896 s,@CXX@,$CXX,;t t
17897 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17898 s,@CFLAGS@,$CFLAGS,;t t
17899 s,@CXXFLAGS@,$CXXFLAGS,;t t
17900 s,@LDFLAGS@,$LDFLAGS,;t t
17901 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17902 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17903 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17904 s,@CYGPATH_W@,$CYGPATH_W,;t t
17905 s,@PACKAGE@,$PACKAGE,;t t
17906 s,@VERSION@,$VERSION,;t t
17907 s,@ACLOCAL@,$ACLOCAL,;t t
17908 s,@AUTOCONF@,$AUTOCONF,;t t
17909 s,@AUTOMAKE@,$AUTOMAKE,;t t
17910 s,@AUTOHEADER@,$AUTOHEADER,;t t
17911 s,@MAKEINFO@,$MAKEINFO,;t t
17912 s,@install_sh@,$install_sh,;t t
17913 s,@STRIP@,$STRIP,;t t
17914 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17915 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17916 s,@mkdir_p@,$mkdir_p,;t t
17917 s,@AWK@,$AWK,;t t
17918 s,@SET_MAKE@,$SET_MAKE,;t t
17919 s,@am__leading_dot@,$am__leading_dot,;t t
17920 s,@AMTAR@,$AMTAR,;t t
17921 s,@am__tar@,$am__tar,;t t
17922 s,@am__untar@,$am__untar,;t t
17923 s,@DEPDIR@,$DEPDIR,;t t
17924 s,@am__include@,$am__include,;t t
17925 s,@am__quote@,$am__quote,;t t
17926 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17927 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17928 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17929 s,@CCDEPMODE@,$CCDEPMODE,;t t
17930 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17931 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17932 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17933 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17934 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17935 s,@AS@,$AS,;t t
17936 s,@ac_ct_AS@,$ac_ct_AS,;t t
17937 s,@LD@,$LD,;t t
17938 s,@ac_ct_LD@,$ac_ct_LD,;t t
17939 s,@AR@,$AR,;t t
17940 s,@ac_ct_AR@,$ac_ct_AR,;t t
17941 s,@RANLIB@,$RANLIB,;t t
17942 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17943 s,@JAR@,$JAR,;t t
17944 s,@ZIP@,$ZIP,;t t
17945 s,@UNZIP@,$UNZIP,;t t
17946 s,@BASH_JAR_TRUE@,$BASH_JAR_TRUE,;t t
17947 s,@BASH_JAR_FALSE@,$BASH_JAR_FALSE,;t t
17948 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17949 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17950 s,@MAINT@,$MAINT,;t t
17951 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
17952 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
17953 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
17954 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
17955 s,@LIBGCJ_LD_SYMBOLIC_FUNCTIONS@,$LIBGCJ_LD_SYMBOLIC_FUNCTIONS,;t t
17956 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
17957 s,@TOOLKIT@,$TOOLKIT,;t t
17958 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
17959 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
17960 s,@X_AWT_TRUE@,$X_AWT_TRUE,;t t
17961 s,@X_AWT_FALSE@,$X_AWT_FALSE,;t t
17962 s,@GCJ_FOR_ECJX@,$GCJ_FOR_ECJX,;t t
17963 s,@GCJH@,$GCJH,;t t
17964 s,@host_exeext@,$host_exeext,;t t
17965 s,@INCLTDL@,$INCLTDL,;t t
17966 s,@LIBLTDL@,$LIBLTDL,;t t
17967 s,@DIRLTDL@,$DIRLTDL,;t t
17968 s,@LIBTOOL@,$LIBTOOL,;t t
17969 s,@CXXCPP@,$CXXCPP,;t t
17970 s,@CPPFLAGS@,$CPPFLAGS,;t t
17971 s,@GCJ@,$GCJ,;t t
17972 s,@GCJFLAGS@,$GCJFLAGS,;t t
17973 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
17974 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
17975 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
17976 s,@subdirs@,$subdirs,;t t
17977 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
17978 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
17979 s,@ECJ_BUILD_JAR@,$ECJ_BUILD_JAR,;t t
17980 s,@ECJ_JAR@,$ECJ_JAR,;t t
17981 s,@BUILD_ECJ1_TRUE@,$BUILD_ECJ1_TRUE,;t t
17982 s,@BUILD_ECJ1_FALSE@,$BUILD_ECJ1_FALSE,;t t
17983 s,@INSTALL_ECJ_JAR_TRUE@,$INSTALL_ECJ_JAR_TRUE,;t t
17984 s,@INSTALL_ECJ_JAR_FALSE@,$INSTALL_ECJ_JAR_FALSE,;t t
17985 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
17986 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
17987 s,@JAVA_HOME@,$JAVA_HOME,;t t
17988 s,@INTERPRETER@,$INTERPRETER,;t t
17989 s,@LIBFFI@,$LIBFFI,;t t
17990 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
17991 s,@PLATFORM@,$PLATFORM,;t t
17992 s,@CPP@,$CPP,;t t
17993 s,@EGREP@,$EGREP,;t t
17994 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
17995 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
17996 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
17997 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
17998 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
17999 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
18000 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
18001 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
18002 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
18003 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
18004 s,@X_CFLAGS@,$X_CFLAGS,;t t
18005 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
18006 s,@X_LIBS@,$X_LIBS,;t t
18007 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
18008 s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
18009 s,@GCLIBS@,$GCLIBS,;t t
18010 s,@GCINCS@,$GCINCS,;t t
18011 s,@GCDEPS@,$GCDEPS,;t t
18012 s,@GCSPEC@,$GCSPEC,;t t
18013 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
18014 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
18015 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
18016 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
18017 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
18018 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
18019 s,@THREADLIBS@,$THREADLIBS,;t t
18020 s,@THREADINCS@,$THREADINCS,;t t
18021 s,@THREADDEPS@,$THREADDEPS,;t t
18022 s,@THREADSPEC@,$THREADSPEC,;t t
18023 s,@THREADSTARTFILESPEC@,$THREADSTARTFILESPEC,;t t
18024 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
18025 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
18026 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
18027 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
18028 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
18029 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
18030 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
18031 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
18032 s,@USE_LIBGCJ_BC_TRUE@,$USE_LIBGCJ_BC_TRUE,;t t
18033 s,@USE_LIBGCJ_BC_FALSE@,$USE_LIBGCJ_BC_FALSE,;t t
18034 s,@LIBGCJ_SPEC@,$LIBGCJ_SPEC,;t t
18035 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
18036 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
18037 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
18038 s,@LIBICONV@,$LIBICONV,;t t
18039 s,@LTLIBICONV@,$LTLIBICONV,;t t
18040 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
18041 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
18042 s,@GTK_LIBS@,$GTK_LIBS,;t t
18043 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
18044 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
18045 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
18046 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
18047 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
18048 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
18049 s,@ZLIBS@,$ZLIBS,;t t
18050 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
18051 s,@ZINCS@,$ZINCS,;t t
18052 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
18053 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
18054 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
18055 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
18056 s,@IEEESPEC@,$IEEESPEC,;t t
18057 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
18058 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
18059 s,@ENABLE_SHARED_TRUE@,$ENABLE_SHARED_TRUE,;t t
18060 s,@ENABLE_SHARED_FALSE@,$ENABLE_SHARED_FALSE,;t t
18061 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
18062 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
18063 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
18064 s,@toolexecdir@,$toolexecdir,;t t
18065 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
18066 s,@toolexeclibdir@,$toolexeclibdir,;t t
18067 s,@dbexecdir@,$dbexecdir,;t t
18068 s,@GCJVERSION@,$GCJVERSION,;t t
18069 s,@gxx_include_dir@,$gxx_include_dir,;t t
18070 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
18071 s,@ALLOCA@,$ALLOCA,;t t
18072 s,@PERL@,$PERL,;t t
18073 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
18074 s,@LD_START_STATIC_SPEC@,$LD_START_STATIC_SPEC,;t t
18075 s,@LD_FINISH_STATIC_SPEC@,$LD_FINISH_STATIC_SPEC,;t t
18076 s,@here@,$here,;t t
18077 s,@LIBOBJS@,$LIBOBJS,;t t
18078 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18079 CEOF
18081 _ACEOF
18083 cat >>$CONFIG_STATUS <<\_ACEOF
18084 # Split the substitutions into bite-sized pieces for seds with
18085 # small command number limits, like on Digital OSF/1 and HP-UX.
18086 ac_max_sed_lines=48
18087 ac_sed_frag=1 # Number of current file.
18088 ac_beg=1 # First line for current file.
18089 ac_end=$ac_max_sed_lines # Line after last line for current file.
18090 ac_more_lines=:
18091 ac_sed_cmds=
18092 while $ac_more_lines; do
18093 if test $ac_beg -gt 1; then
18094 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18095 else
18096 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18098 if test ! -s $tmp/subs.frag; then
18099 ac_more_lines=false
18100 else
18101 # The purpose of the label and of the branching condition is to
18102 # speed up the sed processing (if there are no `@' at all, there
18103 # is no need to browse any of the substitutions).
18104 # These are the two extra sed commands mentioned above.
18105 (echo ':t
18106 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18107 if test -z "$ac_sed_cmds"; then
18108 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18109 else
18110 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18112 ac_sed_frag=`expr $ac_sed_frag + 1`
18113 ac_beg=$ac_end
18114 ac_end=`expr $ac_end + $ac_max_sed_lines`
18116 done
18117 if test -z "$ac_sed_cmds"; then
18118 ac_sed_cmds=cat
18120 fi # test -n "$CONFIG_FILES"
18122 _ACEOF
18123 cat >>$CONFIG_STATUS <<\_ACEOF
18124 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18125 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18126 case $ac_file in
18127 - | *:- | *:-:* ) # input from stdin
18128 cat >$tmp/stdin
18129 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18130 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18131 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18132 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18133 * ) ac_file_in=$ac_file.in ;;
18134 esac
18136 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18137 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18138 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18139 X"$ac_file" : 'X\(//\)[^/]' \| \
18140 X"$ac_file" : 'X\(//\)$' \| \
18141 X"$ac_file" : 'X\(/\)' \| \
18142 . : '\(.\)' 2>/dev/null ||
18143 echo X"$ac_file" |
18144 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18145 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18146 /^X\(\/\/\)$/{ s//\1/; q; }
18147 /^X\(\/\).*/{ s//\1/; q; }
18148 s/.*/./; q'`
18149 { if $as_mkdir_p; then
18150 mkdir -p "$ac_dir"
18151 else
18152 as_dir="$ac_dir"
18153 as_dirs=
18154 while test ! -d "$as_dir"; do
18155 as_dirs="$as_dir $as_dirs"
18156 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18157 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18158 X"$as_dir" : 'X\(//\)[^/]' \| \
18159 X"$as_dir" : 'X\(//\)$' \| \
18160 X"$as_dir" : 'X\(/\)' \| \
18161 . : '\(.\)' 2>/dev/null ||
18162 echo X"$as_dir" |
18163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18164 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18165 /^X\(\/\/\)$/{ s//\1/; q; }
18166 /^X\(\/\).*/{ s//\1/; q; }
18167 s/.*/./; q'`
18168 done
18169 test ! -n "$as_dirs" || mkdir $as_dirs
18170 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18171 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18172 { (exit 1); exit 1; }; }; }
18174 ac_builddir=.
18176 if test "$ac_dir" != .; then
18177 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18178 # A "../" for each directory in $ac_dir_suffix.
18179 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18180 else
18181 ac_dir_suffix= ac_top_builddir=
18184 case $srcdir in
18185 .) # No --srcdir option. We are building in place.
18186 ac_srcdir=.
18187 if test -z "$ac_top_builddir"; then
18188 ac_top_srcdir=.
18189 else
18190 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18191 fi ;;
18192 [\\/]* | ?:[\\/]* ) # Absolute path.
18193 ac_srcdir=$srcdir$ac_dir_suffix;
18194 ac_top_srcdir=$srcdir ;;
18195 *) # Relative path.
18196 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18197 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18198 esac
18200 # Do not use `cd foo && pwd` to compute absolute paths, because
18201 # the directories may not exist.
18202 case `pwd` in
18203 .) ac_abs_builddir="$ac_dir";;
18205 case "$ac_dir" in
18206 .) ac_abs_builddir=`pwd`;;
18207 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18208 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18209 esac;;
18210 esac
18211 case $ac_abs_builddir in
18212 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18214 case ${ac_top_builddir}. in
18215 .) ac_abs_top_builddir=$ac_abs_builddir;;
18216 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18217 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18218 esac;;
18219 esac
18220 case $ac_abs_builddir in
18221 .) ac_abs_srcdir=$ac_srcdir;;
18223 case $ac_srcdir in
18224 .) ac_abs_srcdir=$ac_abs_builddir;;
18225 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18226 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18227 esac;;
18228 esac
18229 case $ac_abs_builddir in
18230 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18232 case $ac_top_srcdir in
18233 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18234 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18235 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18236 esac;;
18237 esac
18240 case $INSTALL in
18241 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18242 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18243 esac
18245 if test x"$ac_file" != x-; then
18246 { echo "$as_me:$LINENO: creating $ac_file" >&5
18247 echo "$as_me: creating $ac_file" >&6;}
18248 rm -f "$ac_file"
18250 # Let's still pretend it is `configure' which instantiates (i.e., don't
18251 # use $as_me), people would be surprised to read:
18252 # /* config.h. Generated by config.status. */
18253 if test x"$ac_file" = x-; then
18254 configure_input=
18255 else
18256 configure_input="$ac_file. "
18258 configure_input=$configure_input"Generated from `echo $ac_file_in |
18259 sed 's,.*/,,'` by configure."
18261 # First look for the input files in the build tree, otherwise in the
18262 # src tree.
18263 ac_file_inputs=`IFS=:
18264 for f in $ac_file_in; do
18265 case $f in
18266 -) echo $tmp/stdin ;;
18267 [\\/$]*)
18268 # Absolute (can't be DOS-style, as IFS=:)
18269 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18270 echo "$as_me: error: cannot find input file: $f" >&2;}
18271 { (exit 1); exit 1; }; }
18272 echo "$f";;
18273 *) # Relative
18274 if test -f "$f"; then
18275 # Build tree
18276 echo "$f"
18277 elif test -f "$srcdir/$f"; then
18278 # Source tree
18279 echo "$srcdir/$f"
18280 else
18281 # /dev/null tree
18282 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18283 echo "$as_me: error: cannot find input file: $f" >&2;}
18284 { (exit 1); exit 1; }; }
18285 fi;;
18286 esac
18287 done` || { (exit 1); exit 1; }
18288 _ACEOF
18289 cat >>$CONFIG_STATUS <<_ACEOF
18290 sed "$ac_vpsub
18291 $extrasub
18292 _ACEOF
18293 cat >>$CONFIG_STATUS <<\_ACEOF
18295 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18296 s,@configure_input@,$configure_input,;t t
18297 s,@srcdir@,$ac_srcdir,;t t
18298 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18299 s,@top_srcdir@,$ac_top_srcdir,;t t
18300 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18301 s,@builddir@,$ac_builddir,;t t
18302 s,@abs_builddir@,$ac_abs_builddir,;t t
18303 s,@top_builddir@,$ac_top_builddir,;t t
18304 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18305 s,@INSTALL@,$ac_INSTALL,;t t
18306 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18307 rm -f $tmp/stdin
18308 if test x"$ac_file" != x-; then
18309 mv $tmp/out $ac_file
18310 else
18311 cat $tmp/out
18312 rm -f $tmp/out
18315 # Run the commands associated with the file.
18316 case $ac_file in
18317 scripts/jar ) chmod +x scripts/jar ;;
18318 esac
18319 done
18320 _ACEOF
18321 cat >>$CONFIG_STATUS <<\_ACEOF
18324 # CONFIG_HEADER section.
18327 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18328 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18330 # ac_d sets the value in "#define NAME VALUE" lines.
18331 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18332 ac_dB='[ ].*$,\1#\2'
18333 ac_dC=' '
18334 ac_dD=',;t'
18335 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18336 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18337 ac_uB='$,\1#\2define\3'
18338 ac_uC=' '
18339 ac_uD=',;t'
18341 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18342 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18343 case $ac_file in
18344 - | *:- | *:-:* ) # input from stdin
18345 cat >$tmp/stdin
18346 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18347 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18348 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18349 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18350 * ) ac_file_in=$ac_file.in ;;
18351 esac
18353 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18354 echo "$as_me: creating $ac_file" >&6;}
18356 # First look for the input files in the build tree, otherwise in the
18357 # src tree.
18358 ac_file_inputs=`IFS=:
18359 for f in $ac_file_in; do
18360 case $f in
18361 -) echo $tmp/stdin ;;
18362 [\\/$]*)
18363 # Absolute (can't be DOS-style, as IFS=:)
18364 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18365 echo "$as_me: error: cannot find input file: $f" >&2;}
18366 { (exit 1); exit 1; }; }
18367 # Do quote $f, to prevent DOS paths from being IFS'd.
18368 echo "$f";;
18369 *) # Relative
18370 if test -f "$f"; then
18371 # Build tree
18372 echo "$f"
18373 elif test -f "$srcdir/$f"; then
18374 # Source tree
18375 echo "$srcdir/$f"
18376 else
18377 # /dev/null tree
18378 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18379 echo "$as_me: error: cannot find input file: $f" >&2;}
18380 { (exit 1); exit 1; }; }
18381 fi;;
18382 esac
18383 done` || { (exit 1); exit 1; }
18384 # Remove the trailing spaces.
18385 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18387 _ACEOF
18389 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18390 # `conftest.undefs', that substitutes the proper values into
18391 # config.h.in to produce config.h. The first handles `#define'
18392 # templates, and the second `#undef' templates.
18393 # And first: Protect against being on the right side of a sed subst in
18394 # config.status. Protect against being in an unquoted here document
18395 # in config.status.
18396 rm -f conftest.defines conftest.undefs
18397 # Using a here document instead of a string reduces the quoting nightmare.
18398 # Putting comments in sed scripts is not portable.
18400 # `end' is used to avoid that the second main sed command (meant for
18401 # 0-ary CPP macros) applies to n-ary macro definitions.
18402 # See the Autoconf documentation for `clear'.
18403 cat >confdef2sed.sed <<\_ACEOF
18404 s/[\\&,]/\\&/g
18405 s,[\\$`],\\&,g
18406 t clear
18407 : clear
18408 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18409 t end
18410 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18411 : end
18412 _ACEOF
18413 # If some macros were called several times there might be several times
18414 # the same #defines, which is useless. Nevertheless, we may not want to
18415 # sort them, since we want the *last* AC-DEFINE to be honored.
18416 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18417 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18418 rm -f confdef2sed.sed
18420 # This sed command replaces #undef with comments. This is necessary, for
18421 # example, in the case of _POSIX_SOURCE, which is predefined and required
18422 # on some systems where configure will not decide to define it.
18423 cat >>conftest.undefs <<\_ACEOF
18424 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18425 _ACEOF
18427 # Break up conftest.defines because some shells have a limit on the size
18428 # of here documents, and old seds have small limits too (100 cmds).
18429 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18430 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18431 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18432 echo ' :' >>$CONFIG_STATUS
18433 rm -f conftest.tail
18434 while grep . conftest.defines >/dev/null
18436 # Write a limited-size here document to $tmp/defines.sed.
18437 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18438 # Speed up: don't consider the non `#define' lines.
18439 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18440 # Work around the forget-to-reset-the-flag bug.
18441 echo 't clr' >>$CONFIG_STATUS
18442 echo ': clr' >>$CONFIG_STATUS
18443 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18444 echo 'CEOF
18445 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18446 rm -f $tmp/in
18447 mv $tmp/out $tmp/in
18448 ' >>$CONFIG_STATUS
18449 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18450 rm -f conftest.defines
18451 mv conftest.tail conftest.defines
18452 done
18453 rm -f conftest.defines
18454 echo ' fi # grep' >>$CONFIG_STATUS
18455 echo >>$CONFIG_STATUS
18457 # Break up conftest.undefs because some shells have a limit on the size
18458 # of here documents, and old seds have small limits too (100 cmds).
18459 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18460 rm -f conftest.tail
18461 while grep . conftest.undefs >/dev/null
18463 # Write a limited-size here document to $tmp/undefs.sed.
18464 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18465 # Speed up: don't consider the non `#undef'
18466 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18467 # Work around the forget-to-reset-the-flag bug.
18468 echo 't clr' >>$CONFIG_STATUS
18469 echo ': clr' >>$CONFIG_STATUS
18470 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18471 echo 'CEOF
18472 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18473 rm -f $tmp/in
18474 mv $tmp/out $tmp/in
18475 ' >>$CONFIG_STATUS
18476 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18477 rm -f conftest.undefs
18478 mv conftest.tail conftest.undefs
18479 done
18480 rm -f conftest.undefs
18482 cat >>$CONFIG_STATUS <<\_ACEOF
18483 # Let's still pretend it is `configure' which instantiates (i.e., don't
18484 # use $as_me), people would be surprised to read:
18485 # /* config.h. Generated by config.status. */
18486 if test x"$ac_file" = x-; then
18487 echo "/* Generated by configure. */" >$tmp/config.h
18488 else
18489 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18491 cat $tmp/in >>$tmp/config.h
18492 rm -f $tmp/in
18493 if test x"$ac_file" != x-; then
18494 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18495 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18496 echo "$as_me: $ac_file is unchanged" >&6;}
18497 else
18498 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18499 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18500 X"$ac_file" : 'X\(//\)[^/]' \| \
18501 X"$ac_file" : 'X\(//\)$' \| \
18502 X"$ac_file" : 'X\(/\)' \| \
18503 . : '\(.\)' 2>/dev/null ||
18504 echo X"$ac_file" |
18505 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18506 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18507 /^X\(\/\/\)$/{ s//\1/; q; }
18508 /^X\(\/\).*/{ s//\1/; q; }
18509 s/.*/./; q'`
18510 { if $as_mkdir_p; then
18511 mkdir -p "$ac_dir"
18512 else
18513 as_dir="$ac_dir"
18514 as_dirs=
18515 while test ! -d "$as_dir"; do
18516 as_dirs="$as_dir $as_dirs"
18517 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18518 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18519 X"$as_dir" : 'X\(//\)[^/]' \| \
18520 X"$as_dir" : 'X\(//\)$' \| \
18521 X"$as_dir" : 'X\(/\)' \| \
18522 . : '\(.\)' 2>/dev/null ||
18523 echo X"$as_dir" |
18524 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18525 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18526 /^X\(\/\/\)$/{ s//\1/; q; }
18527 /^X\(\/\).*/{ s//\1/; q; }
18528 s/.*/./; q'`
18529 done
18530 test ! -n "$as_dirs" || mkdir $as_dirs
18531 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18532 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18533 { (exit 1); exit 1; }; }; }
18535 rm -f $ac_file
18536 mv $tmp/config.h $ac_file
18538 else
18539 cat $tmp/config.h
18540 rm -f $tmp/config.h
18542 # Compute $ac_file's index in $config_headers.
18543 _am_stamp_count=1
18544 for _am_header in $config_headers :; do
18545 case $_am_header in
18546 $ac_file | $ac_file:* )
18547 break ;;
18549 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18550 esac
18551 done
18552 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
18553 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18554 X$ac_file : 'X\(//\)[^/]' \| \
18555 X$ac_file : 'X\(//\)$' \| \
18556 X$ac_file : 'X\(/\)' \| \
18557 . : '\(.\)' 2>/dev/null ||
18558 echo X$ac_file |
18559 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18560 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18561 /^X\(\/\/\)$/{ s//\1/; q; }
18562 /^X\(\/\).*/{ s//\1/; q; }
18563 s/.*/./; q'`/stamp-h$_am_stamp_count
18564 done
18565 _ACEOF
18566 cat >>$CONFIG_STATUS <<\_ACEOF
18569 # CONFIG_LINKS section.
18572 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18573 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18574 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18576 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18577 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18579 if test ! -r $srcdir/$ac_source; then
18580 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18581 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18582 { (exit 1); exit 1; }; }
18584 rm -f $ac_dest
18586 # Make relative symlinks.
18587 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18588 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18589 X"$ac_dest" : 'X\(//\)[^/]' \| \
18590 X"$ac_dest" : 'X\(//\)$' \| \
18591 X"$ac_dest" : 'X\(/\)' \| \
18592 . : '\(.\)' 2>/dev/null ||
18593 echo X"$ac_dest" |
18594 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18595 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18596 /^X\(\/\/\)$/{ s//\1/; q; }
18597 /^X\(\/\).*/{ s//\1/; q; }
18598 s/.*/./; q'`
18599 { if $as_mkdir_p; then
18600 mkdir -p "$ac_dest_dir"
18601 else
18602 as_dir="$ac_dest_dir"
18603 as_dirs=
18604 while test ! -d "$as_dir"; do
18605 as_dirs="$as_dir $as_dirs"
18606 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18607 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18608 X"$as_dir" : 'X\(//\)[^/]' \| \
18609 X"$as_dir" : 'X\(//\)$' \| \
18610 X"$as_dir" : 'X\(/\)' \| \
18611 . : '\(.\)' 2>/dev/null ||
18612 echo X"$as_dir" |
18613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18614 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18615 /^X\(\/\/\)$/{ s//\1/; q; }
18616 /^X\(\/\).*/{ s//\1/; q; }
18617 s/.*/./; q'`
18618 done
18619 test ! -n "$as_dirs" || mkdir $as_dirs
18620 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
18621 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
18622 { (exit 1); exit 1; }; }; }
18624 ac_builddir=.
18626 if test "$ac_dest_dir" != .; then
18627 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18628 # A "../" for each directory in $ac_dir_suffix.
18629 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18630 else
18631 ac_dir_suffix= ac_top_builddir=
18634 case $srcdir in
18635 .) # No --srcdir option. We are building in place.
18636 ac_srcdir=.
18637 if test -z "$ac_top_builddir"; then
18638 ac_top_srcdir=.
18639 else
18640 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18641 fi ;;
18642 [\\/]* | ?:[\\/]* ) # Absolute path.
18643 ac_srcdir=$srcdir$ac_dir_suffix;
18644 ac_top_srcdir=$srcdir ;;
18645 *) # Relative path.
18646 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18647 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18648 esac
18650 # Do not use `cd foo && pwd` to compute absolute paths, because
18651 # the directories may not exist.
18652 case `pwd` in
18653 .) ac_abs_builddir="$ac_dest_dir";;
18655 case "$ac_dest_dir" in
18656 .) ac_abs_builddir=`pwd`;;
18657 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
18658 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
18659 esac;;
18660 esac
18661 case $ac_abs_builddir in
18662 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18664 case ${ac_top_builddir}. in
18665 .) ac_abs_top_builddir=$ac_abs_builddir;;
18666 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18667 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18668 esac;;
18669 esac
18670 case $ac_abs_builddir in
18671 .) ac_abs_srcdir=$ac_srcdir;;
18673 case $ac_srcdir in
18674 .) ac_abs_srcdir=$ac_abs_builddir;;
18675 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18676 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18677 esac;;
18678 esac
18679 case $ac_abs_builddir in
18680 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18682 case $ac_top_srcdir in
18683 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18684 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18685 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18686 esac;;
18687 esac
18690 case $srcdir in
18691 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18692 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18693 esac
18695 # Try a symlink, then a hard link, then a copy.
18696 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18697 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
18698 cp -p $srcdir/$ac_source $ac_dest ||
18699 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
18700 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
18701 { (exit 1); exit 1; }; }
18702 done
18703 _ACEOF
18704 cat >>$CONFIG_STATUS <<\_ACEOF
18707 # CONFIG_COMMANDS section.
18709 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18710 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18711 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18712 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18713 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18714 X"$ac_dest" : 'X\(//\)[^/]' \| \
18715 X"$ac_dest" : 'X\(//\)$' \| \
18716 X"$ac_dest" : 'X\(/\)' \| \
18717 . : '\(.\)' 2>/dev/null ||
18718 echo X"$ac_dest" |
18719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18721 /^X\(\/\/\)$/{ s//\1/; q; }
18722 /^X\(\/\).*/{ s//\1/; q; }
18723 s/.*/./; q'`
18724 { if $as_mkdir_p; then
18725 mkdir -p "$ac_dir"
18726 else
18727 as_dir="$ac_dir"
18728 as_dirs=
18729 while test ! -d "$as_dir"; do
18730 as_dirs="$as_dir $as_dirs"
18731 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18732 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18733 X"$as_dir" : 'X\(//\)[^/]' \| \
18734 X"$as_dir" : 'X\(//\)$' \| \
18735 X"$as_dir" : 'X\(/\)' \| \
18736 . : '\(.\)' 2>/dev/null ||
18737 echo X"$as_dir" |
18738 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18739 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18740 /^X\(\/\/\)$/{ s//\1/; q; }
18741 /^X\(\/\).*/{ s//\1/; q; }
18742 s/.*/./; q'`
18743 done
18744 test ! -n "$as_dirs" || mkdir $as_dirs
18745 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18746 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18747 { (exit 1); exit 1; }; }; }
18749 ac_builddir=.
18751 if test "$ac_dir" != .; then
18752 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18753 # A "../" for each directory in $ac_dir_suffix.
18754 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18755 else
18756 ac_dir_suffix= ac_top_builddir=
18759 case $srcdir in
18760 .) # No --srcdir option. We are building in place.
18761 ac_srcdir=.
18762 if test -z "$ac_top_builddir"; then
18763 ac_top_srcdir=.
18764 else
18765 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18766 fi ;;
18767 [\\/]* | ?:[\\/]* ) # Absolute path.
18768 ac_srcdir=$srcdir$ac_dir_suffix;
18769 ac_top_srcdir=$srcdir ;;
18770 *) # Relative path.
18771 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18772 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18773 esac
18775 # Do not use `cd foo && pwd` to compute absolute paths, because
18776 # the directories may not exist.
18777 case `pwd` in
18778 .) ac_abs_builddir="$ac_dir";;
18780 case "$ac_dir" in
18781 .) ac_abs_builddir=`pwd`;;
18782 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18783 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18784 esac;;
18785 esac
18786 case $ac_abs_builddir in
18787 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18789 case ${ac_top_builddir}. in
18790 .) ac_abs_top_builddir=$ac_abs_builddir;;
18791 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18792 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18793 esac;;
18794 esac
18795 case $ac_abs_builddir in
18796 .) ac_abs_srcdir=$ac_srcdir;;
18798 case $ac_srcdir in
18799 .) ac_abs_srcdir=$ac_abs_builddir;;
18800 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18801 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18802 esac;;
18803 esac
18804 case $ac_abs_builddir in
18805 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18807 case $ac_top_srcdir in
18808 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18809 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18810 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18811 esac;;
18812 esac
18815 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18816 echo "$as_me: executing $ac_dest commands" >&6;}
18817 case $ac_dest in
18818 default-1 )
18819 # Only add multilib support code if we just rebuilt the top-level
18820 # Makefile.
18821 case " $CONFIG_FILES " in
18822 *" Makefile "*)
18823 ac_file=Makefile . ${multi_basedir}/config-ml.in
18825 esac ;;
18826 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18827 # Strip MF so we end up with the name of the file.
18828 mf=`echo "$mf" | sed -e 's/:.*$//'`
18829 # Check whether this is an Automake generated Makefile or not.
18830 # We used to match only the files named `Makefile.in', but
18831 # some people rename them; so instead we look at the file content.
18832 # Grep'ing the first line is not enough: some people post-process
18833 # each Makefile.in and add a new line on top of each file to say so.
18834 # So let's grep whole file.
18835 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18836 dirpart=`(dirname "$mf") 2>/dev/null ||
18837 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18838 X"$mf" : 'X\(//\)[^/]' \| \
18839 X"$mf" : 'X\(//\)$' \| \
18840 X"$mf" : 'X\(/\)' \| \
18841 . : '\(.\)' 2>/dev/null ||
18842 echo X"$mf" |
18843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18844 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18845 /^X\(\/\/\)$/{ s//\1/; q; }
18846 /^X\(\/\).*/{ s//\1/; q; }
18847 s/.*/./; q'`
18848 else
18849 continue
18851 # Extract the definition of DEPDIR, am__include, and am__quote
18852 # from the Makefile without running `make'.
18853 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18854 test -z "$DEPDIR" && continue
18855 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18856 test -z "am__include" && continue
18857 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18858 # When using ansi2knr, U may be empty or an underscore; expand it
18859 U=`sed -n 's/^U = //p' < "$mf"`
18860 # Find all dependency output files, they are included files with
18861 # $(DEPDIR) in their names. We invoke sed twice because it is the
18862 # simplest approach to changing $(DEPDIR) to its actual value in the
18863 # expansion.
18864 for file in `sed -n "
18865 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18866 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18867 # Make sure the directory exists.
18868 test -f "$dirpart/$file" && continue
18869 fdir=`(dirname "$file") 2>/dev/null ||
18870 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18871 X"$file" : 'X\(//\)[^/]' \| \
18872 X"$file" : 'X\(//\)$' \| \
18873 X"$file" : 'X\(/\)' \| \
18874 . : '\(.\)' 2>/dev/null ||
18875 echo X"$file" |
18876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18877 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18878 /^X\(\/\/\)$/{ s//\1/; q; }
18879 /^X\(\/\).*/{ s//\1/; q; }
18880 s/.*/./; q'`
18881 { if $as_mkdir_p; then
18882 mkdir -p $dirpart/$fdir
18883 else
18884 as_dir=$dirpart/$fdir
18885 as_dirs=
18886 while test ! -d "$as_dir"; do
18887 as_dirs="$as_dir $as_dirs"
18888 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18889 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18890 X"$as_dir" : 'X\(//\)[^/]' \| \
18891 X"$as_dir" : 'X\(//\)$' \| \
18892 X"$as_dir" : 'X\(/\)' \| \
18893 . : '\(.\)' 2>/dev/null ||
18894 echo X"$as_dir" |
18895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18896 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18897 /^X\(\/\/\)$/{ s//\1/; q; }
18898 /^X\(\/\).*/{ s//\1/; q; }
18899 s/.*/./; q'`
18900 done
18901 test ! -n "$as_dirs" || mkdir $as_dirs
18902 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18903 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18904 { (exit 1); exit 1; }; }; }
18906 # echo "creating $dirpart/$file"
18907 echo '# dummy' > "$dirpart/$file"
18908 done
18909 done
18911 default ) # Only add multilib support code if we just rebuilt top-level Makefile.
18912 case " $CONFIG_FILES " in
18913 *" Makefile "*)
18914 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
18915 ac_file=Makefile . ${multi_basedir}/./libjava/../config-ml.in
18917 esac
18918 for ac_multi_file in $CONFIG_FILES; do
18919 case $ac_multi_file in
18920 */Makefile)
18921 grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;;
18922 esac
18923 done
18925 esac
18926 done
18927 _ACEOF
18929 cat >>$CONFIG_STATUS <<\_ACEOF
18931 { (exit 0); exit 0; }
18932 _ACEOF
18933 chmod +x $CONFIG_STATUS
18934 ac_clean_files=$ac_clean_files_save
18937 # configure is writing to config.log, and then calls config.status.
18938 # config.status does its own redirection, appending to config.log.
18939 # Unfortunately, on DOS this fails, as config.log is still kept open
18940 # by configure, so config.status won't be able to write to it; its
18941 # output is simply discarded. So we exec the FD to /dev/null,
18942 # effectively closing config.log, so it can be properly (re)opened and
18943 # appended to by config.status. When coming back to configure, we
18944 # need to make the FD available again.
18945 if test "$no_create" != yes; then
18946 ac_cs_success=:
18947 ac_config_status_args=
18948 test "$silent" = yes &&
18949 ac_config_status_args="$ac_config_status_args --quiet"
18950 exec 5>/dev/null
18951 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18952 exec 5>>config.log
18953 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18954 # would make configure fail if this is the last instruction.
18955 $ac_cs_success || { (exit 1); exit 1; }
18959 # CONFIG_SUBDIRS section.
18961 if test "$no_recursion" != yes; then
18963 # Remove --cache-file and --srcdir arguments so they do not pile up.
18964 ac_sub_configure_args=
18965 ac_prev=
18966 for ac_arg in $ac_configure_args; do
18967 if test -n "$ac_prev"; then
18968 ac_prev=
18969 continue
18971 case $ac_arg in
18972 -cache-file | --cache-file | --cache-fil | --cache-fi \
18973 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18974 ac_prev=cache_file ;;
18975 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18976 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18977 | --c=*)
18979 --config-cache | -C)
18981 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18982 ac_prev=srcdir ;;
18983 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18985 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18986 ac_prev=prefix ;;
18987 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18989 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18990 esac
18991 done
18993 # Always prepend --prefix to ensure using the same prefix
18994 # in subdir configurations.
18995 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
18997 ac_popdir=`pwd`
18998 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19000 # Do not complain, so a configure script can configure whichever
19001 # parts of a large source tree are present.
19002 test -d $srcdir/$ac_dir || continue
19004 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
19005 echo "$as_me: configuring in $ac_dir" >&6;}
19006 { if $as_mkdir_p; then
19007 mkdir -p "$ac_dir"
19008 else
19009 as_dir="$ac_dir"
19010 as_dirs=
19011 while test ! -d "$as_dir"; do
19012 as_dirs="$as_dir $as_dirs"
19013 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19014 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19015 X"$as_dir" : 'X\(//\)[^/]' \| \
19016 X"$as_dir" : 'X\(//\)$' \| \
19017 X"$as_dir" : 'X\(/\)' \| \
19018 . : '\(.\)' 2>/dev/null ||
19019 echo X"$as_dir" |
19020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19021 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19022 /^X\(\/\/\)$/{ s//\1/; q; }
19023 /^X\(\/\).*/{ s//\1/; q; }
19024 s/.*/./; q'`
19025 done
19026 test ! -n "$as_dirs" || mkdir $as_dirs
19027 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19028 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19029 { (exit 1); exit 1; }; }; }
19031 ac_builddir=.
19033 if test "$ac_dir" != .; then
19034 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19035 # A "../" for each directory in $ac_dir_suffix.
19036 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19037 else
19038 ac_dir_suffix= ac_top_builddir=
19041 case $srcdir in
19042 .) # No --srcdir option. We are building in place.
19043 ac_srcdir=.
19044 if test -z "$ac_top_builddir"; then
19045 ac_top_srcdir=.
19046 else
19047 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19048 fi ;;
19049 [\\/]* | ?:[\\/]* ) # Absolute path.
19050 ac_srcdir=$srcdir$ac_dir_suffix;
19051 ac_top_srcdir=$srcdir ;;
19052 *) # Relative path.
19053 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19054 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19055 esac
19057 # Do not use `cd foo && pwd` to compute absolute paths, because
19058 # the directories may not exist.
19059 case `pwd` in
19060 .) ac_abs_builddir="$ac_dir";;
19062 case "$ac_dir" in
19063 .) ac_abs_builddir=`pwd`;;
19064 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19065 *) ac_abs_builddir=`pwd`/"$ac_dir";;
19066 esac;;
19067 esac
19068 case $ac_abs_builddir in
19069 .) ac_abs_top_builddir=${ac_top_builddir}.;;
19071 case ${ac_top_builddir}. in
19072 .) ac_abs_top_builddir=$ac_abs_builddir;;
19073 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19074 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19075 esac;;
19076 esac
19077 case $ac_abs_builddir in
19078 .) ac_abs_srcdir=$ac_srcdir;;
19080 case $ac_srcdir in
19081 .) ac_abs_srcdir=$ac_abs_builddir;;
19082 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19083 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19084 esac;;
19085 esac
19086 case $ac_abs_builddir in
19087 .) ac_abs_top_srcdir=$ac_top_srcdir;;
19089 case $ac_top_srcdir in
19090 .) ac_abs_top_srcdir=$ac_abs_builddir;;
19091 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19092 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19093 esac;;
19094 esac
19097 cd $ac_dir
19099 # Check for guested configure; otherwise get Cygnus style configure.
19100 if test -f $ac_srcdir/configure.gnu; then
19101 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
19102 elif test -f $ac_srcdir/configure; then
19103 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
19104 elif test -f $ac_srcdir/configure.in; then
19105 ac_sub_configure=$ac_configure
19106 else
19107 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
19108 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19109 ac_sub_configure=
19112 # The recursion is here.
19113 if test -n "$ac_sub_configure"; then
19114 # Make the cache file name correct relative to the subdirectory.
19115 case $cache_file in
19116 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19117 *) # Relative path.
19118 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
19119 esac
19121 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19122 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19123 # The eval makes quoting arguments work.
19124 eval $ac_sub_configure $ac_sub_configure_args \
19125 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
19126 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
19127 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
19128 { (exit 1); exit 1; }; }
19131 cd $ac_popdir
19132 done