Mark ChangeLog
[official-gcc.git] / libjava / configure
blob050fee62f88af4dcb24e82b668fcb0cd223b752c
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 CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LDFLAGS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB JAR ZIP UNZIP BASH_JAR_TRUE BASH_JAR_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBGCJ_CFLAGS LIBGCJ_CXXFLAGS LIBGCJ_JAVAFLAGS LIBGCJ_LD_SYMBOLIC LIBGCJDEBUG TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE GCJH INCLTDL LIBLTDL DIRLTDL LIBTOOL CXXCPP CPPFLAGS GCJ GCJFLAGS GCJDEPMODE am__fastdepGCJ_TRUE am__fastdepGCJ_FALSE subdirs TESTSUBDIR_TRUE TESTSUBDIR_FALSE JAVA_HOME_SET_TRUE JAVA_HOME_SET_FALSE JAVA_HOME INTERPRETER LIBFFI LIBFFIINCS PLATFORM_INNER_NAT_HDRS CPP EGREP USING_WIN32_PLATFORM_TRUE USING_WIN32_PLATFORM_FALSE USING_POSIX_PLATFORM_TRUE USING_POSIX_PLATFORM_FALSE USING_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 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 --disable-dependency-tracking speeds up one-time build
859 --enable-dependency-tracking do not reject slow dependency extractors
860 --enable-maintainer-mode enable make rules and dependencies not useful
861 (and sometimes confusing) to the casual installer
862 --enable-libgcj-debug enable runtime debugging code
863 --enable-java-awt list of AWT peer implementations to be built
864 --enable-shared=PKGS build shared libraries default=yes
865 --enable-static=PKGS build static libraries default=yes
866 --enable-fast-install=PKGS optimize for fast installation default=yes
867 --disable-libtool-lock avoid locking (might break parallel builds)
868 --disable-getenv-properties
869 don't set system properties from GCJ_PROPERTIES
870 --enable-hash-synchronization
871 use global hash table for monitor locks
872 --enable-gc-debug include full support for pointer backtracing etc.
873 --enable-interpreter enable interpreter
874 --enable-sjlj-exceptions
875 force use of builtin_setjmp for exceptions
876 --disable-java-net disable java.net
877 --disable-jvmpi disable JVMPI support
878 --enable-java-gc=TYPE choose garbage collector (default is boehm)
879 --disable-rpath do not hardcode runtime library paths
880 --enable-tls Use thread-local storage [default=yes]
882 Optional Packages:
883 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
884 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
885 --with-build-libsubdir=DIR Directory where to find libraries for build system
886 --with-target-subdir=SUBDIR
887 configure in a subdirectory
888 --with-cross-host=HOST configure with a cross compiler from HOST
889 --with-newlib configure with newlib
890 --with-gnu-ld assume the C compiler uses GNU ld default=no
891 --with-pic try to use only PIC/non-PIC objects default=use both
892 --with-java-home=DIRECTORY
893 value of java.home system property
894 --with-win32-nlsapi=ansi or unicows or unicode
895 native MinGW libgcj Win32 OS API (default is ansi)
896 --without-libffi don't use libffi
897 --with-ecos enable runtime eCos target support
898 --with-system-zlib use installed libz
899 --with-x use the X Window System
900 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
901 --without-libiconv-prefix don't search for libiconv in includedir and libdir
903 Some influential environment variables:
904 CC C compiler command
905 CFLAGS C compiler flags
906 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
907 nonstandard directory <lib dir>
908 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
909 headers in a nonstandard directory <include dir>
910 CXX C++ compiler command
911 CXXFLAGS C++ compiler flags
912 CXXCPP C++ preprocessor
913 CPP C preprocessor
915 Use these variables to override the choices made by `configure' or to help
916 it to find libraries and programs with nonstandard names/locations.
918 _ACEOF
921 if test "$ac_init_help" = "recursive"; then
922 # If there are subdirs, report their specific --help.
923 ac_popdir=`pwd`
924 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
925 test -d $ac_dir || continue
926 ac_builddir=.
928 if test "$ac_dir" != .; then
929 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
930 # A "../" for each directory in $ac_dir_suffix.
931 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
932 else
933 ac_dir_suffix= ac_top_builddir=
936 case $srcdir in
937 .) # No --srcdir option. We are building in place.
938 ac_srcdir=.
939 if test -z "$ac_top_builddir"; then
940 ac_top_srcdir=.
941 else
942 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
943 fi ;;
944 [\\/]* | ?:[\\/]* ) # Absolute path.
945 ac_srcdir=$srcdir$ac_dir_suffix;
946 ac_top_srcdir=$srcdir ;;
947 *) # Relative path.
948 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
949 ac_top_srcdir=$ac_top_builddir$srcdir ;;
950 esac
952 # Do not use `cd foo && pwd` to compute absolute paths, because
953 # the directories may not exist.
954 case `pwd` in
955 .) ac_abs_builddir="$ac_dir";;
957 case "$ac_dir" in
958 .) ac_abs_builddir=`pwd`;;
959 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
960 *) ac_abs_builddir=`pwd`/"$ac_dir";;
961 esac;;
962 esac
963 case $ac_abs_builddir in
964 .) ac_abs_top_builddir=${ac_top_builddir}.;;
966 case ${ac_top_builddir}. in
967 .) ac_abs_top_builddir=$ac_abs_builddir;;
968 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
969 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
970 esac;;
971 esac
972 case $ac_abs_builddir in
973 .) ac_abs_srcdir=$ac_srcdir;;
975 case $ac_srcdir in
976 .) ac_abs_srcdir=$ac_abs_builddir;;
977 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
978 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
979 esac;;
980 esac
981 case $ac_abs_builddir in
982 .) ac_abs_top_srcdir=$ac_top_srcdir;;
984 case $ac_top_srcdir in
985 .) ac_abs_top_srcdir=$ac_abs_builddir;;
986 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
987 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
988 esac;;
989 esac
991 cd $ac_dir
992 # Check for guested configure; otherwise get Cygnus style configure.
993 if test -f $ac_srcdir/configure.gnu; then
994 echo
995 $SHELL $ac_srcdir/configure.gnu --help=recursive
996 elif test -f $ac_srcdir/configure; then
997 echo
998 $SHELL $ac_srcdir/configure --help=recursive
999 elif test -f $ac_srcdir/configure.ac ||
1000 test -f $ac_srcdir/configure.in; then
1001 echo
1002 $ac_configure --help
1003 else
1004 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1006 cd $ac_popdir
1007 done
1010 test -n "$ac_init_help" && exit 0
1011 if $ac_init_version; then
1012 cat <<\_ACEOF
1013 libjava configure version-unused
1014 generated by GNU Autoconf 2.59
1016 Copyright (C) 2003 Free Software Foundation, Inc.
1017 This configure script is free software; the Free Software Foundation
1018 gives unlimited permission to copy, distribute and modify it.
1019 _ACEOF
1020 exit 0
1022 exec 5>config.log
1023 cat >&5 <<_ACEOF
1024 This file contains any messages produced by compilers while
1025 running configure, to aid debugging if configure makes a mistake.
1027 It was created by libjava $as_me version-unused, which was
1028 generated by GNU Autoconf 2.59. Invocation command line was
1030 $ $0 $@
1032 _ACEOF
1034 cat <<_ASUNAME
1035 ## --------- ##
1036 ## Platform. ##
1037 ## --------- ##
1039 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1040 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1041 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1042 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1043 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1045 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1046 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1048 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1049 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1050 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1051 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1052 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1053 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1054 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1056 _ASUNAME
1058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1059 for as_dir in $PATH
1061 IFS=$as_save_IFS
1062 test -z "$as_dir" && as_dir=.
1063 echo "PATH: $as_dir"
1064 done
1066 } >&5
1068 cat >&5 <<_ACEOF
1071 ## ----------- ##
1072 ## Core tests. ##
1073 ## ----------- ##
1075 _ACEOF
1078 # Keep a trace of the command line.
1079 # Strip out --no-create and --no-recursion so they do not pile up.
1080 # Strip out --silent because we don't want to record it for future runs.
1081 # Also quote any args containing shell meta-characters.
1082 # Make two passes to allow for proper duplicate-argument suppression.
1083 ac_configure_args=
1084 ac_configure_args0=
1085 ac_configure_args1=
1086 ac_sep=
1087 ac_must_keep_next=false
1088 for ac_pass in 1 2
1090 for ac_arg
1092 case $ac_arg in
1093 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095 | -silent | --silent | --silen | --sile | --sil)
1096 continue ;;
1097 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1098 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1099 esac
1100 case $ac_pass in
1101 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1103 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1104 if test $ac_must_keep_next = true; then
1105 ac_must_keep_next=false # Got value, back to normal.
1106 else
1107 case $ac_arg in
1108 *=* | --config-cache | -C | -disable-* | --disable-* \
1109 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1110 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1111 | -with-* | --with-* | -without-* | --without-* | --x)
1112 case "$ac_configure_args0 " in
1113 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1114 esac
1116 -* ) ac_must_keep_next=true ;;
1117 esac
1119 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1120 # Get rid of the leading space.
1121 ac_sep=" "
1123 esac
1124 done
1125 done
1126 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1127 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1129 # When interrupted or exit'd, cleanup temporary files, and complete
1130 # config.log. We remove comments because anyway the quotes in there
1131 # would cause problems or look ugly.
1132 # WARNING: Be sure not to use single quotes in there, as some shells,
1133 # such as our DU 5.0 friend, will then `close' the trap.
1134 trap 'exit_status=$?
1135 # Save into config.log some information that might help in debugging.
1137 echo
1139 cat <<\_ASBOX
1140 ## ---------------- ##
1141 ## Cache variables. ##
1142 ## ---------------- ##
1143 _ASBOX
1144 echo
1145 # The following way of writing the cache mishandles newlines in values,
1147 (set) 2>&1 |
1148 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1149 *ac_space=\ *)
1150 sed -n \
1151 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1152 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1155 sed -n \
1156 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1158 esac;
1160 echo
1162 cat <<\_ASBOX
1163 ## ----------------- ##
1164 ## Output variables. ##
1165 ## ----------------- ##
1166 _ASBOX
1167 echo
1168 for ac_var in $ac_subst_vars
1170 eval ac_val=$`echo $ac_var`
1171 echo "$ac_var='"'"'$ac_val'"'"'"
1172 done | sort
1173 echo
1175 if test -n "$ac_subst_files"; then
1176 cat <<\_ASBOX
1177 ## ------------- ##
1178 ## Output files. ##
1179 ## ------------- ##
1180 _ASBOX
1181 echo
1182 for ac_var in $ac_subst_files
1184 eval ac_val=$`echo $ac_var`
1185 echo "$ac_var='"'"'$ac_val'"'"'"
1186 done | sort
1187 echo
1190 if test -s confdefs.h; then
1191 cat <<\_ASBOX
1192 ## ----------- ##
1193 ## confdefs.h. ##
1194 ## ----------- ##
1195 _ASBOX
1196 echo
1197 sed "/^$/d" confdefs.h | sort
1198 echo
1200 test "$ac_signal" != 0 &&
1201 echo "$as_me: caught signal $ac_signal"
1202 echo "$as_me: exit $exit_status"
1203 } >&5
1204 rm -f core *.core &&
1205 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1206 exit $exit_status
1208 for ac_signal in 1 2 13 15; do
1209 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1210 done
1211 ac_signal=0
1213 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1214 rm -rf conftest* confdefs.h
1215 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1216 echo >confdefs.h
1218 # Predefined preprocessor variables.
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_NAME "$PACKAGE_NAME"
1222 _ACEOF
1225 cat >>confdefs.h <<_ACEOF
1226 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1227 _ACEOF
1230 cat >>confdefs.h <<_ACEOF
1231 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1232 _ACEOF
1235 cat >>confdefs.h <<_ACEOF
1236 #define PACKAGE_STRING "$PACKAGE_STRING"
1237 _ACEOF
1240 cat >>confdefs.h <<_ACEOF
1241 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1242 _ACEOF
1245 # Let the site file select an alternate cache file if it wants to.
1246 # Prefer explicitly selected file to automatically selected ones.
1247 if test -z "$CONFIG_SITE"; then
1248 if test "x$prefix" != xNONE; then
1249 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1250 else
1251 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1254 for ac_site_file in $CONFIG_SITE; do
1255 if test -r "$ac_site_file"; then
1256 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1257 echo "$as_me: loading site script $ac_site_file" >&6;}
1258 sed 's/^/| /' "$ac_site_file" >&5
1259 . "$ac_site_file"
1261 done
1263 if test -r "$cache_file"; then
1264 # Some versions of bash will fail to source /dev/null (special
1265 # files actually), so we avoid doing that.
1266 if test -f "$cache_file"; then
1267 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1268 echo "$as_me: loading cache $cache_file" >&6;}
1269 case $cache_file in
1270 [\\/]* | ?:[\\/]* ) . $cache_file;;
1271 *) . ./$cache_file;;
1272 esac
1274 else
1275 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1276 echo "$as_me: creating cache $cache_file" >&6;}
1277 >$cache_file
1280 # Check that the precious variables saved in the cache have kept the same
1281 # value.
1282 ac_cache_corrupted=false
1283 for ac_var in `(set) 2>&1 |
1284 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1285 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1286 eval ac_new_set=\$ac_env_${ac_var}_set
1287 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1288 eval ac_new_val="\$ac_env_${ac_var}_value"
1289 case $ac_old_set,$ac_new_set in
1290 set,)
1291 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1292 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1293 ac_cache_corrupted=: ;;
1294 ,set)
1295 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1296 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1297 ac_cache_corrupted=: ;;
1298 ,);;
1300 if test "x$ac_old_val" != "x$ac_new_val"; then
1301 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1302 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1303 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1304 echo "$as_me: former value: $ac_old_val" >&2;}
1305 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1306 echo "$as_me: current value: $ac_new_val" >&2;}
1307 ac_cache_corrupted=:
1308 fi;;
1309 esac
1310 # Pass precious variables to config.status.
1311 if test "$ac_new_set" = set; then
1312 case $ac_new_val in
1313 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1314 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1315 *) ac_arg=$ac_var=$ac_new_val ;;
1316 esac
1317 case " $ac_configure_args " in
1318 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1319 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1320 esac
1322 done
1323 if $ac_cache_corrupted; then
1324 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1325 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1326 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1327 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1328 { (exit 1); exit 1; }; }
1331 ac_ext=c
1332 ac_cpp='$CPP $CPPFLAGS'
1333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1366 ac_aux_dir=
1367 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1368 if test -f $ac_dir/install-sh; then
1369 ac_aux_dir=$ac_dir
1370 ac_install_sh="$ac_aux_dir/install-sh -c"
1371 break
1372 elif 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/shtool; then
1377 ac_aux_dir=$ac_dir
1378 ac_install_sh="$ac_aux_dir/shtool install -c"
1379 break
1381 done
1382 if test -z "$ac_aux_dir"; then
1383 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1384 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1385 { (exit 1); exit 1; }; }
1387 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1388 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1389 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1391 # Make sure we can run config.sub.
1392 $ac_config_sub sun4 >/dev/null 2>&1 ||
1393 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1394 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1395 { (exit 1); exit 1; }; }
1397 echo "$as_me:$LINENO: checking build system type" >&5
1398 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1399 if test "${ac_cv_build+set}" = set; then
1400 echo $ECHO_N "(cached) $ECHO_C" >&6
1401 else
1402 ac_cv_build_alias=$build_alias
1403 test -z "$ac_cv_build_alias" &&
1404 ac_cv_build_alias=`$ac_config_guess`
1405 test -z "$ac_cv_build_alias" &&
1406 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1407 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1408 { (exit 1); exit 1; }; }
1409 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1410 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1411 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1412 { (exit 1); exit 1; }; }
1415 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1416 echo "${ECHO_T}$ac_cv_build" >&6
1417 build=$ac_cv_build
1418 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1419 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1420 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1423 case ${build_alias} in
1424 "") build_noncanonical=${build} ;;
1425 *) build_noncanonical=${build_alias} ;;
1426 esac
1428 case ${host_alias} in
1429 "") host_noncanonical=${build_noncanonical} ;;
1430 *) host_noncanonical=${host_alias} ;;
1431 esac
1433 case ${target_alias} in
1434 "") target_noncanonical=${host_noncanonical} ;;
1435 *) target_noncanonical=${target_alias} ;;
1436 esac
1439 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1440 # have matching libraries, they should use host libraries: Makefile.tpl
1441 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1442 # However, they still use the build modules, because the corresponding
1443 # host modules (e.g. bison) are only built for the host when bootstrap
1444 # finishes. So:
1445 # - build_subdir is where we find build modules, and never changes.
1446 # - build_libsubdir is where we find build libraries, and can be overridden.
1448 # Prefix 'build-' so this never conflicts with target_subdir.
1449 build_subdir="build-${build_noncanonical}"
1451 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1452 if test "${with_build_libsubdir+set}" = set; then
1453 withval="$with_build_libsubdir"
1454 build_libsubdir="$withval"
1455 else
1456 build_libsubdir="$build_subdir"
1458 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1459 if ( test $srcdir = . && test -d gcc ) \
1460 || test -d $srcdir/../host-${host_noncanonical}; then
1461 host_subdir="host-${host_noncanonical}"
1462 else
1463 host_subdir=.
1465 # No prefix.
1466 target_subdir=${target_noncanonical}
1469 # We use these options to decide which functions to include.
1471 # Check whether --with-target-subdir or --without-target-subdir was given.
1472 if test "${with_target_subdir+set}" = set; then
1473 withval="$with_target_subdir"
1477 # We may get other options which we don't document:
1478 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1480 # Find the rest of the source tree framework.
1481 # Default to --enable-multilib
1482 # Check whether --enable-multilib or --disable-multilib was given.
1483 if test "${enable_multilib+set}" = set; then
1484 enableval="$enable_multilib"
1485 case "$enableval" in
1486 yes) multilib=yes ;;
1487 no) multilib=no ;;
1488 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1489 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1490 { (exit 1); exit 1; }; } ;;
1491 esac
1492 else
1493 multilib=yes
1496 # We may get other options which we leave undocumented:
1497 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1498 # See config-ml.in if you want the gory details.
1500 if test "$srcdir" = "."; then
1501 if test "$with_target_subdir" != "."; then
1502 multi_basedir="$srcdir/$with_multisrctop../.."
1503 else
1504 multi_basedir="$srcdir/$with_multisrctop.."
1506 else
1507 multi_basedir="$srcdir/.."
1511 # Even if the default multilib is not a cross compilation,
1512 # it may be that some of the other multilibs are.
1513 if test $cross_compiling = no && test $multilib = yes \
1514 && test "x${with_multisubdir}" != x ; then
1515 cross_compiling=maybe
1518 ac_config_commands="$ac_config_commands default-1"
1521 echo "$as_me:$LINENO: checking host system type" >&5
1522 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1523 if test "${ac_cv_host+set}" = set; then
1524 echo $ECHO_N "(cached) $ECHO_C" >&6
1525 else
1526 ac_cv_host_alias=$host_alias
1527 test -z "$ac_cv_host_alias" &&
1528 ac_cv_host_alias=$ac_cv_build_alias
1529 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1530 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1531 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1532 { (exit 1); exit 1; }; }
1535 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1536 echo "${ECHO_T}$ac_cv_host" >&6
1537 host=$ac_cv_host
1538 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1539 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1540 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1543 echo "$as_me:$LINENO: checking target system type" >&5
1544 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1545 if test "${ac_cv_target+set}" = set; then
1546 echo $ECHO_N "(cached) $ECHO_C" >&6
1547 else
1548 ac_cv_target_alias=$target_alias
1549 test "x$ac_cv_target_alias" = "x" &&
1550 ac_cv_target_alias=$ac_cv_host_alias
1551 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1552 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1553 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1554 { (exit 1); exit 1; }; }
1557 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1558 echo "${ECHO_T}$ac_cv_target" >&6
1559 target=$ac_cv_target
1560 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1561 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1562 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1565 # The aliases save the names the user supplied, while $host etc.
1566 # will get canonicalized.
1567 test -n "$target_alias" &&
1568 test "$program_prefix$program_suffix$program_transform_name" = \
1569 NONENONEs,x,x, &&
1570 program_prefix=${target_alias}-
1571 case ${build_alias} in
1572 "") build_noncanonical=${build} ;;
1573 *) build_noncanonical=${build_alias} ;;
1574 esac
1576 case ${target_alias} in
1577 "") target_noncanonical=${host_noncanonical} ;;
1578 *) target_noncanonical=${target_alias} ;;
1579 esac
1584 # This works around the fact that libtool configuration may change LD
1585 # for this particular configuration, but some shells, instead of
1586 # keeping the changes in LD private, export them just because LD is
1587 # exported.
1588 ORIGINAL_LD_FOR_MULTILIBS=$LD
1590 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1591 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1592 LN_S=$as_ln_s
1593 if test "$LN_S" = "ln -s"; then
1594 echo "$as_me:$LINENO: result: yes" >&5
1595 echo "${ECHO_T}yes" >&6
1596 else
1597 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1598 echo "${ECHO_T}no, using $LN_S" >&6
1602 # This works around an automake problem.
1603 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1607 # Check whether --with-cross-host or --without-cross-host was given.
1608 if test "${with_cross_host+set}" = set; then
1609 withval="$with_cross_host"
1614 # Check whether --with-newlib or --without-newlib was given.
1615 if test "${with_newlib+set}" = set; then
1616 withval="$with_newlib"
1620 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1621 if test "${enable_version_specific_runtime_libs+set}" = set; then
1622 enableval="$enable_version_specific_runtime_libs"
1623 case "$enableval" in
1624 yes) version_specific_libs=yes ;;
1625 no) version_specific_libs=no ;;
1626 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1627 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1628 { (exit 1); exit 1; }; };;
1629 esac
1630 else
1631 version_specific_libs=no
1635 # Check whether --enable-plugin or --disable-plugin was given.
1636 if test "${enable_plugin+set}" = set; then
1637 enableval="$enable_plugin"
1638 case "$enableval" in
1639 yes) plugin_enabled=yes ;;
1640 no) plugin_enabled=no ;;
1641 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable plugin" >&5
1642 echo "$as_me: error: Unknown argument to enable/disable plugin" >&2;}
1643 { (exit 1); exit 1; }; };;
1644 esac
1645 else
1646 plugin_enabled=no
1650 # Check whether --enable-gconf-peer or --disable-gconf-peer was given.
1651 if test "${enable_gconf_peer+set}" = set; then
1652 enableval="$enable_gconf_peer"
1653 case "$enableval" in
1654 yes) gconf_enabled=yes ;;
1655 no) gconf_enabled=no ;;
1656 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable gconf-peer" >&5
1657 echo "$as_me: error: Unknown argument to enable/disable gconf-peer" >&2;}
1658 { (exit 1); exit 1; }; };;
1659 esac
1660 else
1661 gconf_enabled=no
1665 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1668 # (1) We use an abnormal CXX (without library references), so we
1669 # must cache it under a different name.
1670 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1671 # the non-multilib-adjusted value will be used in multilibs.
1672 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1673 # (4) As another side effect, automake doesn't automatically include them
1674 # in Makefile.in.
1675 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1676 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1677 # used in later tests. This may not be necessary in libjava; I don't know.
1681 save_CXXFLAGS="$CXXFLAGS"
1682 CXXFLAGS="$CXXFLAGS -fno-builtin"
1683 ac_ext=c
1684 ac_cpp='$CPP $CPPFLAGS'
1685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1688 if test -n "$ac_tool_prefix"; then
1689 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1690 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1691 echo "$as_me:$LINENO: checking for $ac_word" >&5
1692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1693 if test "${ac_cv_prog_CC+set}" = set; then
1694 echo $ECHO_N "(cached) $ECHO_C" >&6
1695 else
1696 if test -n "$CC"; then
1697 ac_cv_prog_CC="$CC" # Let the user override the test.
1698 else
1699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1700 for as_dir in $PATH
1702 IFS=$as_save_IFS
1703 test -z "$as_dir" && as_dir=.
1704 for ac_exec_ext in '' $ac_executable_extensions; do
1705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1706 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1708 break 2
1710 done
1711 done
1715 CC=$ac_cv_prog_CC
1716 if test -n "$CC"; then
1717 echo "$as_me:$LINENO: result: $CC" >&5
1718 echo "${ECHO_T}$CC" >&6
1719 else
1720 echo "$as_me:$LINENO: result: no" >&5
1721 echo "${ECHO_T}no" >&6
1725 if test -z "$ac_cv_prog_CC"; then
1726 ac_ct_CC=$CC
1727 # Extract the first word of "gcc", so it can be a program name with args.
1728 set dummy gcc; ac_word=$2
1729 echo "$as_me:$LINENO: checking for $ac_word" >&5
1730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1731 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1732 echo $ECHO_N "(cached) $ECHO_C" >&6
1733 else
1734 if test -n "$ac_ct_CC"; then
1735 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1736 else
1737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1738 for as_dir in $PATH
1740 IFS=$as_save_IFS
1741 test -z "$as_dir" && as_dir=.
1742 for ac_exec_ext in '' $ac_executable_extensions; do
1743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1744 ac_cv_prog_ac_ct_CC="gcc"
1745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1746 break 2
1748 done
1749 done
1753 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1754 if test -n "$ac_ct_CC"; then
1755 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1756 echo "${ECHO_T}$ac_ct_CC" >&6
1757 else
1758 echo "$as_me:$LINENO: result: no" >&5
1759 echo "${ECHO_T}no" >&6
1762 CC=$ac_ct_CC
1763 else
1764 CC="$ac_cv_prog_CC"
1767 if test -z "$CC"; then
1768 if test -n "$ac_tool_prefix"; then
1769 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1770 set dummy ${ac_tool_prefix}cc; ac_word=$2
1771 echo "$as_me:$LINENO: checking for $ac_word" >&5
1772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1773 if test "${ac_cv_prog_CC+set}" = set; then
1774 echo $ECHO_N "(cached) $ECHO_C" >&6
1775 else
1776 if test -n "$CC"; then
1777 ac_cv_prog_CC="$CC" # Let the user override the test.
1778 else
1779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1780 for as_dir in $PATH
1782 IFS=$as_save_IFS
1783 test -z "$as_dir" && as_dir=.
1784 for ac_exec_ext in '' $ac_executable_extensions; do
1785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1786 ac_cv_prog_CC="${ac_tool_prefix}cc"
1787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1788 break 2
1790 done
1791 done
1795 CC=$ac_cv_prog_CC
1796 if test -n "$CC"; then
1797 echo "$as_me:$LINENO: result: $CC" >&5
1798 echo "${ECHO_T}$CC" >&6
1799 else
1800 echo "$as_me:$LINENO: result: no" >&5
1801 echo "${ECHO_T}no" >&6
1805 if test -z "$ac_cv_prog_CC"; then
1806 ac_ct_CC=$CC
1807 # Extract the first word of "cc", so it can be a program name with args.
1808 set dummy cc; ac_word=$2
1809 echo "$as_me:$LINENO: checking for $ac_word" >&5
1810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1811 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1812 echo $ECHO_N "(cached) $ECHO_C" >&6
1813 else
1814 if test -n "$ac_ct_CC"; then
1815 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1816 else
1817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1818 for as_dir in $PATH
1820 IFS=$as_save_IFS
1821 test -z "$as_dir" && as_dir=.
1822 for ac_exec_ext in '' $ac_executable_extensions; do
1823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1824 ac_cv_prog_ac_ct_CC="cc"
1825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1826 break 2
1828 done
1829 done
1833 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1834 if test -n "$ac_ct_CC"; then
1835 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1836 echo "${ECHO_T}$ac_ct_CC" >&6
1837 else
1838 echo "$as_me:$LINENO: result: no" >&5
1839 echo "${ECHO_T}no" >&6
1842 CC=$ac_ct_CC
1843 else
1844 CC="$ac_cv_prog_CC"
1848 if test -z "$CC"; then
1849 # Extract the first word of "cc", so it can be a program name with args.
1850 set dummy cc; ac_word=$2
1851 echo "$as_me:$LINENO: checking for $ac_word" >&5
1852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1853 if test "${ac_cv_prog_CC+set}" = set; then
1854 echo $ECHO_N "(cached) $ECHO_C" >&6
1855 else
1856 if test -n "$CC"; then
1857 ac_cv_prog_CC="$CC" # Let the user override the test.
1858 else
1859 ac_prog_rejected=no
1860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1861 for as_dir in $PATH
1863 IFS=$as_save_IFS
1864 test -z "$as_dir" && as_dir=.
1865 for ac_exec_ext in '' $ac_executable_extensions; do
1866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1867 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1868 ac_prog_rejected=yes
1869 continue
1871 ac_cv_prog_CC="cc"
1872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1873 break 2
1875 done
1876 done
1878 if test $ac_prog_rejected = yes; then
1879 # We found a bogon in the path, so make sure we never use it.
1880 set dummy $ac_cv_prog_CC
1881 shift
1882 if test $# != 0; then
1883 # We chose a different compiler from the bogus one.
1884 # However, it has the same basename, so the bogon will be chosen
1885 # first if we set CC to just the basename; use the full file name.
1886 shift
1887 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1892 CC=$ac_cv_prog_CC
1893 if test -n "$CC"; then
1894 echo "$as_me:$LINENO: result: $CC" >&5
1895 echo "${ECHO_T}$CC" >&6
1896 else
1897 echo "$as_me:$LINENO: result: no" >&5
1898 echo "${ECHO_T}no" >&6
1902 if test -z "$CC"; then
1903 if test -n "$ac_tool_prefix"; then
1904 for ac_prog in cl
1906 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1907 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1908 echo "$as_me:$LINENO: checking for $ac_word" >&5
1909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1910 if test "${ac_cv_prog_CC+set}" = set; then
1911 echo $ECHO_N "(cached) $ECHO_C" >&6
1912 else
1913 if test -n "$CC"; then
1914 ac_cv_prog_CC="$CC" # Let the user override the test.
1915 else
1916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1917 for as_dir in $PATH
1919 IFS=$as_save_IFS
1920 test -z "$as_dir" && as_dir=.
1921 for ac_exec_ext in '' $ac_executable_extensions; do
1922 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1923 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1925 break 2
1927 done
1928 done
1932 CC=$ac_cv_prog_CC
1933 if test -n "$CC"; then
1934 echo "$as_me:$LINENO: result: $CC" >&5
1935 echo "${ECHO_T}$CC" >&6
1936 else
1937 echo "$as_me:$LINENO: result: no" >&5
1938 echo "${ECHO_T}no" >&6
1941 test -n "$CC" && break
1942 done
1944 if test -z "$CC"; then
1945 ac_ct_CC=$CC
1946 for ac_prog in cl
1948 # Extract the first word of "$ac_prog", so it can be a program name with args.
1949 set dummy $ac_prog; ac_word=$2
1950 echo "$as_me:$LINENO: checking for $ac_word" >&5
1951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1952 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1953 echo $ECHO_N "(cached) $ECHO_C" >&6
1954 else
1955 if test -n "$ac_ct_CC"; then
1956 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1957 else
1958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1959 for as_dir in $PATH
1961 IFS=$as_save_IFS
1962 test -z "$as_dir" && as_dir=.
1963 for ac_exec_ext in '' $ac_executable_extensions; do
1964 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1965 ac_cv_prog_ac_ct_CC="$ac_prog"
1966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1967 break 2
1969 done
1970 done
1974 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1975 if test -n "$ac_ct_CC"; then
1976 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1977 echo "${ECHO_T}$ac_ct_CC" >&6
1978 else
1979 echo "$as_me:$LINENO: result: no" >&5
1980 echo "${ECHO_T}no" >&6
1983 test -n "$ac_ct_CC" && break
1984 done
1986 CC=$ac_ct_CC
1992 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1993 See \`config.log' for more details." >&5
1994 echo "$as_me: error: no acceptable C compiler found in \$PATH
1995 See \`config.log' for more details." >&2;}
1996 { (exit 1); exit 1; }; }
1998 # Provide some information about the compiler.
1999 echo "$as_me:$LINENO:" \
2000 "checking for C compiler version" >&5
2001 ac_compiler=`set X $ac_compile; echo $2`
2002 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2003 (eval $ac_compiler --version </dev/null >&5) 2>&5
2004 ac_status=$?
2005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006 (exit $ac_status); }
2007 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2008 (eval $ac_compiler -v </dev/null >&5) 2>&5
2009 ac_status=$?
2010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011 (exit $ac_status); }
2012 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2013 (eval $ac_compiler -V </dev/null >&5) 2>&5
2014 ac_status=$?
2015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2016 (exit $ac_status); }
2018 cat >conftest.$ac_ext <<_ACEOF
2019 /* confdefs.h. */
2020 _ACEOF
2021 cat confdefs.h >>conftest.$ac_ext
2022 cat >>conftest.$ac_ext <<_ACEOF
2023 /* end confdefs.h. */
2026 main ()
2030 return 0;
2032 _ACEOF
2033 # FIXME: Cleanup?
2034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2035 (eval $ac_link) 2>&5
2036 ac_status=$?
2037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038 (exit $ac_status); }; then
2039 gcc_no_link=no
2040 else
2041 gcc_no_link=yes
2044 if test x$gcc_no_link = xyes; then
2045 # Setting cross_compile will disable run tests; it will
2046 # also disable AC_CHECK_FILE but that's generally
2047 # correct if we can't link.
2048 cross_compiling=yes
2049 EXEEXT=
2050 else
2051 cat >conftest.$ac_ext <<_ACEOF
2052 /* confdefs.h. */
2053 _ACEOF
2054 cat confdefs.h >>conftest.$ac_ext
2055 cat >>conftest.$ac_ext <<_ACEOF
2056 /* end confdefs.h. */
2059 main ()
2063 return 0;
2065 _ACEOF
2066 ac_clean_files_save=$ac_clean_files
2067 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2068 # Try to create an executable without -o first, disregard a.out.
2069 # It will help us diagnose broken compilers, and finding out an intuition
2070 # of exeext.
2071 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2072 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2073 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2074 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2075 (eval $ac_link_default) 2>&5
2076 ac_status=$?
2077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2078 (exit $ac_status); }; then
2079 # Find the output, starting from the most likely. This scheme is
2080 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2081 # resort.
2083 # Be careful to initialize this variable, since it used to be cached.
2084 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2085 ac_cv_exeext=
2086 # b.out is created by i960 compilers.
2087 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2089 test -f "$ac_file" || continue
2090 case $ac_file in
2091 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2093 conftest.$ac_ext )
2094 # This is the source file.
2096 [ab].out )
2097 # We found the default executable, but exeext='' is most
2098 # certainly right.
2099 break;;
2100 *.* )
2101 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2102 # FIXME: I believe we export ac_cv_exeext for Libtool,
2103 # but it would be cool to find out if it's true. Does anybody
2104 # maintain Libtool? --akim.
2105 export ac_cv_exeext
2106 break;;
2108 break;;
2109 esac
2110 done
2111 else
2112 echo "$as_me: failed program was:" >&5
2113 sed 's/^/| /' conftest.$ac_ext >&5
2115 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2116 See \`config.log' for more details." >&5
2117 echo "$as_me: error: C compiler cannot create executables
2118 See \`config.log' for more details." >&2;}
2119 { (exit 77); exit 77; }; }
2122 ac_exeext=$ac_cv_exeext
2123 echo "$as_me:$LINENO: result: $ac_file" >&5
2124 echo "${ECHO_T}$ac_file" >&6
2126 # Check the compiler produces executables we can run. If not, either
2127 # the compiler is broken, or we cross compile.
2128 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2129 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2130 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2131 # If not cross compiling, check that we can run a simple program.
2132 if test "$cross_compiling" != yes; then
2133 if { ac_try='./$ac_file'
2134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2135 (eval $ac_try) 2>&5
2136 ac_status=$?
2137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138 (exit $ac_status); }; }; then
2139 cross_compiling=no
2140 else
2141 if test "$cross_compiling" = maybe; then
2142 cross_compiling=yes
2143 else
2144 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2145 If you meant to cross compile, use \`--host'.
2146 See \`config.log' for more details." >&5
2147 echo "$as_me: error: cannot run C compiled programs.
2148 If you meant to cross compile, use \`--host'.
2149 See \`config.log' for more details." >&2;}
2150 { (exit 1); exit 1; }; }
2154 echo "$as_me:$LINENO: result: yes" >&5
2155 echo "${ECHO_T}yes" >&6
2157 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2158 ac_clean_files=$ac_clean_files_save
2159 # Check the compiler produces executables we can run. If not, either
2160 # the compiler is broken, or we cross compile.
2161 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2162 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2163 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2164 echo "${ECHO_T}$cross_compiling" >&6
2166 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2167 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2169 (eval $ac_link) 2>&5
2170 ac_status=$?
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); }; then
2173 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2174 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2175 # work properly (i.e., refer to `conftest.exe'), while it won't with
2176 # `rm'.
2177 for ac_file in conftest.exe conftest conftest.*; do
2178 test -f "$ac_file" || continue
2179 case $ac_file in
2180 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2181 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2182 export ac_cv_exeext
2183 break;;
2184 * ) break;;
2185 esac
2186 done
2187 else
2188 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2189 See \`config.log' for more details." >&5
2190 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2191 See \`config.log' for more details." >&2;}
2192 { (exit 1); exit 1; }; }
2195 rm -f conftest$ac_cv_exeext
2196 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2197 echo "${ECHO_T}$ac_cv_exeext" >&6
2199 rm -f conftest.$ac_ext
2200 EXEEXT=$ac_cv_exeext
2201 ac_exeext=$EXEEXT
2203 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2204 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2205 if test "${ac_cv_objext+set}" = set; then
2206 echo $ECHO_N "(cached) $ECHO_C" >&6
2207 else
2208 cat >conftest.$ac_ext <<_ACEOF
2209 /* confdefs.h. */
2210 _ACEOF
2211 cat confdefs.h >>conftest.$ac_ext
2212 cat >>conftest.$ac_ext <<_ACEOF
2213 /* end confdefs.h. */
2216 main ()
2220 return 0;
2222 _ACEOF
2223 rm -f conftest.o conftest.obj
2224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225 (eval $ac_compile) 2>&5
2226 ac_status=$?
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); }; then
2229 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2230 case $ac_file in
2231 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2232 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2233 break;;
2234 esac
2235 done
2236 else
2237 echo "$as_me: failed program was:" >&5
2238 sed 's/^/| /' conftest.$ac_ext >&5
2240 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2241 See \`config.log' for more details." >&5
2242 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2243 See \`config.log' for more details." >&2;}
2244 { (exit 1); exit 1; }; }
2247 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2249 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2250 echo "${ECHO_T}$ac_cv_objext" >&6
2251 OBJEXT=$ac_cv_objext
2252 ac_objext=$OBJEXT
2253 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2254 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2255 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2256 echo $ECHO_N "(cached) $ECHO_C" >&6
2257 else
2258 cat >conftest.$ac_ext <<_ACEOF
2259 /* confdefs.h. */
2260 _ACEOF
2261 cat confdefs.h >>conftest.$ac_ext
2262 cat >>conftest.$ac_ext <<_ACEOF
2263 /* end confdefs.h. */
2266 main ()
2268 #ifndef __GNUC__
2269 choke me
2270 #endif
2273 return 0;
2275 _ACEOF
2276 rm -f conftest.$ac_objext
2277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2278 (eval $ac_compile) 2>conftest.er1
2279 ac_status=$?
2280 grep -v '^ *+' conftest.er1 >conftest.err
2281 rm -f conftest.er1
2282 cat conftest.err >&5
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); } &&
2285 { ac_try='test -z "$ac_c_werror_flag"
2286 || test ! -s conftest.err'
2287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2288 (eval $ac_try) 2>&5
2289 ac_status=$?
2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291 (exit $ac_status); }; } &&
2292 { ac_try='test -s conftest.$ac_objext'
2293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2294 (eval $ac_try) 2>&5
2295 ac_status=$?
2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); }; }; then
2298 ac_compiler_gnu=yes
2299 else
2300 echo "$as_me: failed program was:" >&5
2301 sed 's/^/| /' conftest.$ac_ext >&5
2303 ac_compiler_gnu=no
2305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2306 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2309 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2310 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2311 GCC=`test $ac_compiler_gnu = yes && echo yes`
2312 ac_test_CFLAGS=${CFLAGS+set}
2313 ac_save_CFLAGS=$CFLAGS
2314 CFLAGS="-g"
2315 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2316 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2317 if test "${ac_cv_prog_cc_g+set}" = set; then
2318 echo $ECHO_N "(cached) $ECHO_C" >&6
2319 else
2320 cat >conftest.$ac_ext <<_ACEOF
2321 /* confdefs.h. */
2322 _ACEOF
2323 cat confdefs.h >>conftest.$ac_ext
2324 cat >>conftest.$ac_ext <<_ACEOF
2325 /* end confdefs.h. */
2328 main ()
2332 return 0;
2334 _ACEOF
2335 rm -f conftest.$ac_objext
2336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2337 (eval $ac_compile) 2>conftest.er1
2338 ac_status=$?
2339 grep -v '^ *+' conftest.er1 >conftest.err
2340 rm -f conftest.er1
2341 cat conftest.err >&5
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); } &&
2344 { ac_try='test -z "$ac_c_werror_flag"
2345 || test ! -s conftest.err'
2346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2347 (eval $ac_try) 2>&5
2348 ac_status=$?
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); }; } &&
2351 { ac_try='test -s conftest.$ac_objext'
2352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2353 (eval $ac_try) 2>&5
2354 ac_status=$?
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }; }; then
2357 ac_cv_prog_cc_g=yes
2358 else
2359 echo "$as_me: failed program was:" >&5
2360 sed 's/^/| /' conftest.$ac_ext >&5
2362 ac_cv_prog_cc_g=no
2364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2366 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2367 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2368 if test "$ac_test_CFLAGS" = set; then
2369 CFLAGS=$ac_save_CFLAGS
2370 elif test $ac_cv_prog_cc_g = yes; then
2371 if test "$GCC" = yes; then
2372 CFLAGS="-g -O2"
2373 else
2374 CFLAGS="-g"
2376 else
2377 if test "$GCC" = yes; then
2378 CFLAGS="-O2"
2379 else
2380 CFLAGS=
2383 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2384 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2385 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2386 echo $ECHO_N "(cached) $ECHO_C" >&6
2387 else
2388 ac_cv_prog_cc_stdc=no
2389 ac_save_CC=$CC
2390 cat >conftest.$ac_ext <<_ACEOF
2391 /* confdefs.h. */
2392 _ACEOF
2393 cat confdefs.h >>conftest.$ac_ext
2394 cat >>conftest.$ac_ext <<_ACEOF
2395 /* end confdefs.h. */
2396 #include <stdarg.h>
2397 #include <stdio.h>
2398 #include <sys/types.h>
2399 #include <sys/stat.h>
2400 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2401 struct buf { int x; };
2402 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2403 static char *e (p, i)
2404 char **p;
2405 int i;
2407 return p[i];
2409 static char *f (char * (*g) (char **, int), char **p, ...)
2411 char *s;
2412 va_list v;
2413 va_start (v,p);
2414 s = g (p, va_arg (v,int));
2415 va_end (v);
2416 return s;
2419 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2420 function prototypes and stuff, but not '\xHH' hex character constants.
2421 These don't provoke an error unfortunately, instead are silently treated
2422 as 'x'. The following induces an error, until -std1 is added to get
2423 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2424 array size at least. It's necessary to write '\x00'==0 to get something
2425 that's true only with -std1. */
2426 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2428 int test (int i, double x);
2429 struct s1 {int (*f) (int a);};
2430 struct s2 {int (*f) (double a);};
2431 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2432 int argc;
2433 char **argv;
2435 main ()
2437 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2439 return 0;
2441 _ACEOF
2442 # Don't try gcc -ansi; that turns off useful extensions and
2443 # breaks some systems' header files.
2444 # AIX -qlanglvl=ansi
2445 # Ultrix and OSF/1 -std1
2446 # HP-UX 10.20 and later -Ae
2447 # HP-UX older versions -Aa -D_HPUX_SOURCE
2448 # SVR4 -Xc -D__EXTENSIONS__
2449 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2451 CC="$ac_save_CC $ac_arg"
2452 rm -f conftest.$ac_objext
2453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2454 (eval $ac_compile) 2>conftest.er1
2455 ac_status=$?
2456 grep -v '^ *+' conftest.er1 >conftest.err
2457 rm -f conftest.er1
2458 cat conftest.err >&5
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); } &&
2461 { ac_try='test -z "$ac_c_werror_flag"
2462 || test ! -s conftest.err'
2463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464 (eval $ac_try) 2>&5
2465 ac_status=$?
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }; } &&
2468 { ac_try='test -s conftest.$ac_objext'
2469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2470 (eval $ac_try) 2>&5
2471 ac_status=$?
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); }; }; then
2474 ac_cv_prog_cc_stdc=$ac_arg
2475 break
2476 else
2477 echo "$as_me: failed program was:" >&5
2478 sed 's/^/| /' conftest.$ac_ext >&5
2481 rm -f conftest.err conftest.$ac_objext
2482 done
2483 rm -f conftest.$ac_ext conftest.$ac_objext
2484 CC=$ac_save_CC
2488 case "x$ac_cv_prog_cc_stdc" in
2489 x|xno)
2490 echo "$as_me:$LINENO: result: none needed" >&5
2491 echo "${ECHO_T}none needed" >&6 ;;
2493 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2494 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2495 CC="$CC $ac_cv_prog_cc_stdc" ;;
2496 esac
2498 # Some people use a C++ compiler to compile C. Since we use `exit',
2499 # in C++ we need to declare it. In case someone uses the same compiler
2500 # for both compiling C and C++ we need to have the C++ compiler decide
2501 # the declaration of exit, since it's the most demanding environment.
2502 cat >conftest.$ac_ext <<_ACEOF
2503 #ifndef __cplusplus
2504 choke me
2505 #endif
2506 _ACEOF
2507 rm -f conftest.$ac_objext
2508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2509 (eval $ac_compile) 2>conftest.er1
2510 ac_status=$?
2511 grep -v '^ *+' conftest.er1 >conftest.err
2512 rm -f conftest.er1
2513 cat conftest.err >&5
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); } &&
2516 { ac_try='test -z "$ac_c_werror_flag"
2517 || test ! -s conftest.err'
2518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2519 (eval $ac_try) 2>&5
2520 ac_status=$?
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); }; } &&
2523 { ac_try='test -s conftest.$ac_objext'
2524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2525 (eval $ac_try) 2>&5
2526 ac_status=$?
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); }; }; then
2529 for ac_declaration in \
2530 '' \
2531 'extern "C" void std::exit (int) throw (); using std::exit;' \
2532 'extern "C" void std::exit (int); using std::exit;' \
2533 'extern "C" void exit (int) throw ();' \
2534 'extern "C" void exit (int);' \
2535 'void exit (int);'
2537 cat >conftest.$ac_ext <<_ACEOF
2538 /* confdefs.h. */
2539 _ACEOF
2540 cat confdefs.h >>conftest.$ac_ext
2541 cat >>conftest.$ac_ext <<_ACEOF
2542 /* end confdefs.h. */
2543 $ac_declaration
2544 #include <stdlib.h>
2546 main ()
2548 exit (42);
2550 return 0;
2552 _ACEOF
2553 rm -f conftest.$ac_objext
2554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2555 (eval $ac_compile) 2>conftest.er1
2556 ac_status=$?
2557 grep -v '^ *+' conftest.er1 >conftest.err
2558 rm -f conftest.er1
2559 cat conftest.err >&5
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); } &&
2562 { ac_try='test -z "$ac_c_werror_flag"
2563 || test ! -s conftest.err'
2564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565 (eval $ac_try) 2>&5
2566 ac_status=$?
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; } &&
2569 { ac_try='test -s conftest.$ac_objext'
2570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571 (eval $ac_try) 2>&5
2572 ac_status=$?
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); }; }; then
2576 else
2577 echo "$as_me: failed program was:" >&5
2578 sed 's/^/| /' conftest.$ac_ext >&5
2580 continue
2582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2583 cat >conftest.$ac_ext <<_ACEOF
2584 /* confdefs.h. */
2585 _ACEOF
2586 cat confdefs.h >>conftest.$ac_ext
2587 cat >>conftest.$ac_ext <<_ACEOF
2588 /* end confdefs.h. */
2589 $ac_declaration
2591 main ()
2593 exit (42);
2595 return 0;
2597 _ACEOF
2598 rm -f conftest.$ac_objext
2599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2600 (eval $ac_compile) 2>conftest.er1
2601 ac_status=$?
2602 grep -v '^ *+' conftest.er1 >conftest.err
2603 rm -f conftest.er1
2604 cat conftest.err >&5
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); } &&
2607 { ac_try='test -z "$ac_c_werror_flag"
2608 || test ! -s conftest.err'
2609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610 (eval $ac_try) 2>&5
2611 ac_status=$?
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); }; } &&
2614 { ac_try='test -s conftest.$ac_objext'
2615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616 (eval $ac_try) 2>&5
2617 ac_status=$?
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }; }; then
2620 break
2621 else
2622 echo "$as_me: failed program was:" >&5
2623 sed 's/^/| /' conftest.$ac_ext >&5
2626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2627 done
2628 rm -f conftest*
2629 if test -n "$ac_declaration"; then
2630 echo '#ifdef __cplusplus' >>confdefs.h
2631 echo $ac_declaration >>confdefs.h
2632 echo '#endif' >>confdefs.h
2635 else
2636 echo "$as_me: failed program was:" >&5
2637 sed 's/^/| /' conftest.$ac_ext >&5
2640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2641 ac_ext=c
2642 ac_cpp='$CPP $CPPFLAGS'
2643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2647 ac_ext=cc
2648 ac_cpp='$CXXCPP $CPPFLAGS'
2649 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2650 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2651 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2652 if test -n "$ac_tool_prefix"; then
2653 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2655 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2656 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2657 echo "$as_me:$LINENO: checking for $ac_word" >&5
2658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2659 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2660 echo $ECHO_N "(cached) $ECHO_C" >&6
2661 else
2662 if test -n "$CXX"; then
2663 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2664 else
2665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666 for as_dir in $PATH
2668 IFS=$as_save_IFS
2669 test -z "$as_dir" && as_dir=.
2670 for ac_exec_ext in '' $ac_executable_extensions; do
2671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2672 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2674 break 2
2676 done
2677 done
2681 CXX=$glibcxx_cv_prog_CXX
2682 if test -n "$CXX"; then
2683 echo "$as_me:$LINENO: result: $CXX" >&5
2684 echo "${ECHO_T}$CXX" >&6
2685 else
2686 echo "$as_me:$LINENO: result: no" >&5
2687 echo "${ECHO_T}no" >&6
2690 test -n "$CXX" && break
2691 done
2693 if test -z "$CXX"; then
2694 ac_ct_CXX=$CXX
2695 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2697 # Extract the first word of "$ac_prog", so it can be a program name with args.
2698 set dummy $ac_prog; ac_word=$2
2699 echo "$as_me:$LINENO: checking for $ac_word" >&5
2700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2701 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2702 echo $ECHO_N "(cached) $ECHO_C" >&6
2703 else
2704 if test -n "$ac_ct_CXX"; then
2705 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2706 else
2707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708 for as_dir in $PATH
2710 IFS=$as_save_IFS
2711 test -z "$as_dir" && as_dir=.
2712 for ac_exec_ext in '' $ac_executable_extensions; do
2713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2714 ac_cv_prog_ac_ct_CXX="$ac_prog"
2715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2716 break 2
2718 done
2719 done
2723 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2724 if test -n "$ac_ct_CXX"; then
2725 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2726 echo "${ECHO_T}$ac_ct_CXX" >&6
2727 else
2728 echo "$as_me:$LINENO: result: no" >&5
2729 echo "${ECHO_T}no" >&6
2732 test -n "$ac_ct_CXX" && break
2733 done
2734 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2736 CXX=$ac_ct_CXX
2740 # Provide some information about the compiler.
2741 echo "$as_me:$LINENO:" \
2742 "checking for C++ compiler version" >&5
2743 ac_compiler=`set X $ac_compile; echo $2`
2744 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2745 (eval $ac_compiler --version </dev/null >&5) 2>&5
2746 ac_status=$?
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }
2749 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2750 (eval $ac_compiler -v </dev/null >&5) 2>&5
2751 ac_status=$?
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); }
2754 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2755 (eval $ac_compiler -V </dev/null >&5) 2>&5
2756 ac_status=$?
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }
2760 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2761 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2762 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2763 echo $ECHO_N "(cached) $ECHO_C" >&6
2764 else
2765 cat >conftest.$ac_ext <<_ACEOF
2766 /* confdefs.h. */
2767 _ACEOF
2768 cat confdefs.h >>conftest.$ac_ext
2769 cat >>conftest.$ac_ext <<_ACEOF
2770 /* end confdefs.h. */
2773 main ()
2775 #ifndef __GNUC__
2776 choke me
2777 #endif
2780 return 0;
2782 _ACEOF
2783 rm -f conftest.$ac_objext
2784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2785 (eval $ac_compile) 2>conftest.er1
2786 ac_status=$?
2787 grep -v '^ *+' conftest.er1 >conftest.err
2788 rm -f conftest.er1
2789 cat conftest.err >&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); } &&
2792 { ac_try='test -z "$ac_cxx_werror_flag"
2793 || test ! -s conftest.err'
2794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795 (eval $ac_try) 2>&5
2796 ac_status=$?
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }; } &&
2799 { ac_try='test -s conftest.$ac_objext'
2800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801 (eval $ac_try) 2>&5
2802 ac_status=$?
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); }; }; then
2805 ac_compiler_gnu=yes
2806 else
2807 echo "$as_me: failed program was:" >&5
2808 sed 's/^/| /' conftest.$ac_ext >&5
2810 ac_compiler_gnu=no
2812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2813 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2816 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2817 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2818 GXX=`test $ac_compiler_gnu = yes && echo yes`
2819 ac_test_CXXFLAGS=${CXXFLAGS+set}
2820 ac_save_CXXFLAGS=$CXXFLAGS
2821 CXXFLAGS="-g"
2822 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2823 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2824 if test "${ac_cv_prog_cxx_g+set}" = set; then
2825 echo $ECHO_N "(cached) $ECHO_C" >&6
2826 else
2827 cat >conftest.$ac_ext <<_ACEOF
2828 /* confdefs.h. */
2829 _ACEOF
2830 cat confdefs.h >>conftest.$ac_ext
2831 cat >>conftest.$ac_ext <<_ACEOF
2832 /* end confdefs.h. */
2835 main ()
2839 return 0;
2841 _ACEOF
2842 rm -f conftest.$ac_objext
2843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2844 (eval $ac_compile) 2>conftest.er1
2845 ac_status=$?
2846 grep -v '^ *+' conftest.er1 >conftest.err
2847 rm -f conftest.er1
2848 cat conftest.err >&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); } &&
2851 { ac_try='test -z "$ac_cxx_werror_flag"
2852 || test ! -s conftest.err'
2853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854 (eval $ac_try) 2>&5
2855 ac_status=$?
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); }; } &&
2858 { ac_try='test -s conftest.$ac_objext'
2859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2860 (eval $ac_try) 2>&5
2861 ac_status=$?
2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); }; }; then
2864 ac_cv_prog_cxx_g=yes
2865 else
2866 echo "$as_me: failed program was:" >&5
2867 sed 's/^/| /' conftest.$ac_ext >&5
2869 ac_cv_prog_cxx_g=no
2871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2873 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2874 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2875 if test "$ac_test_CXXFLAGS" = set; then
2876 CXXFLAGS=$ac_save_CXXFLAGS
2877 elif test $ac_cv_prog_cxx_g = yes; then
2878 if test "$GXX" = yes; then
2879 CXXFLAGS="-g -O2"
2880 else
2881 CXXFLAGS="-g"
2883 else
2884 if test "$GXX" = yes; then
2885 CXXFLAGS="-O2"
2886 else
2887 CXXFLAGS=
2890 for ac_declaration in \
2891 '' \
2892 'extern "C" void std::exit (int) throw (); using std::exit;' \
2893 'extern "C" void std::exit (int); using std::exit;' \
2894 'extern "C" void exit (int) throw ();' \
2895 'extern "C" void exit (int);' \
2896 'void exit (int);'
2898 cat >conftest.$ac_ext <<_ACEOF
2899 /* confdefs.h. */
2900 _ACEOF
2901 cat confdefs.h >>conftest.$ac_ext
2902 cat >>conftest.$ac_ext <<_ACEOF
2903 /* end confdefs.h. */
2904 $ac_declaration
2905 #include <stdlib.h>
2907 main ()
2909 exit (42);
2911 return 0;
2913 _ACEOF
2914 rm -f conftest.$ac_objext
2915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2916 (eval $ac_compile) 2>conftest.er1
2917 ac_status=$?
2918 grep -v '^ *+' conftest.er1 >conftest.err
2919 rm -f conftest.er1
2920 cat conftest.err >&5
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); } &&
2923 { ac_try='test -z "$ac_cxx_werror_flag"
2924 || test ! -s conftest.err'
2925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2926 (eval $ac_try) 2>&5
2927 ac_status=$?
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); }; } &&
2930 { ac_try='test -s conftest.$ac_objext'
2931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2932 (eval $ac_try) 2>&5
2933 ac_status=$?
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }; }; then
2937 else
2938 echo "$as_me: failed program was:" >&5
2939 sed 's/^/| /' conftest.$ac_ext >&5
2941 continue
2943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2944 cat >conftest.$ac_ext <<_ACEOF
2945 /* confdefs.h. */
2946 _ACEOF
2947 cat confdefs.h >>conftest.$ac_ext
2948 cat >>conftest.$ac_ext <<_ACEOF
2949 /* end confdefs.h. */
2950 $ac_declaration
2952 main ()
2954 exit (42);
2956 return 0;
2958 _ACEOF
2959 rm -f conftest.$ac_objext
2960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2961 (eval $ac_compile) 2>conftest.er1
2962 ac_status=$?
2963 grep -v '^ *+' conftest.er1 >conftest.err
2964 rm -f conftest.er1
2965 cat conftest.err >&5
2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967 (exit $ac_status); } &&
2968 { ac_try='test -z "$ac_cxx_werror_flag"
2969 || test ! -s conftest.err'
2970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2971 (eval $ac_try) 2>&5
2972 ac_status=$?
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); }; } &&
2975 { ac_try='test -s conftest.$ac_objext'
2976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2977 (eval $ac_try) 2>&5
2978 ac_status=$?
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }; }; then
2981 break
2982 else
2983 echo "$as_me: failed program was:" >&5
2984 sed 's/^/| /' conftest.$ac_ext >&5
2987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2988 done
2989 rm -f conftest*
2990 if test -n "$ac_declaration"; then
2991 echo '#ifdef __cplusplus' >>confdefs.h
2992 echo $ac_declaration >>confdefs.h
2993 echo '#endif' >>confdefs.h
2996 ac_ext=c
2997 ac_cpp='$CPP $CPPFLAGS'
2998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3002 CXXFLAGS="$save_CXXFLAGS"
3008 am__api_version="1.9"
3009 # Find a good install program. We prefer a C program (faster),
3010 # so one script is as good as another. But avoid the broken or
3011 # incompatible versions:
3012 # SysV /etc/install, /usr/sbin/install
3013 # SunOS /usr/etc/install
3014 # IRIX /sbin/install
3015 # AIX /bin/install
3016 # AmigaOS /C/install, which installs bootblocks on floppy discs
3017 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3018 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3019 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3020 # OS/2's system install, which has a completely different semantic
3021 # ./install, which can be erroneously created by make from ./install.sh.
3022 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3023 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3024 if test -z "$INSTALL"; then
3025 if test "${ac_cv_path_install+set}" = set; then
3026 echo $ECHO_N "(cached) $ECHO_C" >&6
3027 else
3028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029 for as_dir in $PATH
3031 IFS=$as_save_IFS
3032 test -z "$as_dir" && as_dir=.
3033 # Account for people who put trailing slashes in PATH elements.
3034 case $as_dir/ in
3035 ./ | .// | /cC/* | \
3036 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3037 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3038 /usr/ucb/* ) ;;
3040 # OSF1 and SCO ODT 3.0 have their own names for install.
3041 # Don't use installbsd from OSF since it installs stuff as root
3042 # by default.
3043 for ac_prog in ginstall scoinst install; do
3044 for ac_exec_ext in '' $ac_executable_extensions; do
3045 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3046 if test $ac_prog = install &&
3047 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3048 # AIX install. It has an incompatible calling convention.
3050 elif test $ac_prog = install &&
3051 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3052 # program-specific install script used by HP pwplus--don't use.
3054 else
3055 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3056 break 3
3059 done
3060 done
3062 esac
3063 done
3067 if test "${ac_cv_path_install+set}" = set; then
3068 INSTALL=$ac_cv_path_install
3069 else
3070 # As a last resort, use the slow shell script. We don't cache a
3071 # path for INSTALL within a source directory, because that will
3072 # break other packages using the cache if that directory is
3073 # removed, or if the path is relative.
3074 INSTALL=$ac_install_sh
3077 echo "$as_me:$LINENO: result: $INSTALL" >&5
3078 echo "${ECHO_T}$INSTALL" >&6
3080 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3081 # It thinks the first close brace ends the variable substitution.
3082 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3084 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3086 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3088 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3089 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3090 # Just in case
3091 sleep 1
3092 echo timestamp > conftest.file
3093 # Do `set' in a subshell so we don't clobber the current shell's
3094 # arguments. Must try -L first in case configure is actually a
3095 # symlink; some systems play weird games with the mod time of symlinks
3096 # (eg FreeBSD returns the mod time of the symlink's containing
3097 # directory).
3098 if (
3099 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3100 if test "$*" = "X"; then
3101 # -L didn't work.
3102 set X `ls -t $srcdir/configure conftest.file`
3104 rm -f conftest.file
3105 if test "$*" != "X $srcdir/configure conftest.file" \
3106 && test "$*" != "X conftest.file $srcdir/configure"; then
3108 # If neither matched, then we have a broken ls. This can happen
3109 # if, for instance, CONFIG_SHELL is bash and it inherits a
3110 # broken ls alias from the environment. This has actually
3111 # happened. Such a system could not be considered "sane".
3112 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3113 alias in your environment" >&5
3114 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3115 alias in your environment" >&2;}
3116 { (exit 1); exit 1; }; }
3119 test "$2" = conftest.file
3121 then
3122 # Ok.
3124 else
3125 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3126 Check your system clock" >&5
3127 echo "$as_me: error: newly created file is older than distributed files!
3128 Check your system clock" >&2;}
3129 { (exit 1); exit 1; }; }
3131 echo "$as_me:$LINENO: result: yes" >&5
3132 echo "${ECHO_T}yes" >&6
3133 test "$program_prefix" != NONE &&
3134 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3135 # Use a double $ so make ignores it.
3136 test "$program_suffix" != NONE &&
3137 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3138 # Double any \ or $. echo might interpret backslashes.
3139 # By default was `s,x,x', remove it if useless.
3140 cat <<\_ACEOF >conftest.sed
3141 s/[\\$]/&&/g;s/;s,x,x,$//
3142 _ACEOF
3143 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3144 rm conftest.sed
3146 # expand $ac_aux_dir to an absolute path
3147 am_aux_dir=`cd $ac_aux_dir && pwd`
3149 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3150 # Use eval to expand $SHELL
3151 if eval "$MISSING --run true"; then
3152 am_missing_run="$MISSING --run "
3153 else
3154 am_missing_run=
3155 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3156 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3159 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3160 # We used to keeping the `.' as first argument, in order to
3161 # allow $(mkdir_p) to be used without argument. As in
3162 # $(mkdir_p) $(somedir)
3163 # where $(somedir) is conditionally defined. However this is wrong
3164 # for two reasons:
3165 # 1. if the package is installed by a user who cannot write `.'
3166 # make install will fail,
3167 # 2. the above comment should most certainly read
3168 # $(mkdir_p) $(DESTDIR)$(somedir)
3169 # so it does not work when $(somedir) is undefined and
3170 # $(DESTDIR) is not.
3171 # To support the latter case, we have to write
3172 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3173 # so the `.' trick is pointless.
3174 mkdir_p='mkdir -p --'
3175 else
3176 # On NextStep and OpenStep, the `mkdir' command does not
3177 # recognize any option. It will interpret all options as
3178 # directories to create, and then abort because `.' already
3179 # exists.
3180 for d in ./-p ./--version;
3182 test -d $d && rmdir $d
3183 done
3184 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3185 if test -f "$ac_aux_dir/mkinstalldirs"; then
3186 mkdir_p='$(mkinstalldirs)'
3187 else
3188 mkdir_p='$(install_sh) -d'
3192 for ac_prog in gawk mawk nawk awk
3194 # Extract the first word of "$ac_prog", so it can be a program name with args.
3195 set dummy $ac_prog; ac_word=$2
3196 echo "$as_me:$LINENO: checking for $ac_word" >&5
3197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3198 if test "${ac_cv_prog_AWK+set}" = set; then
3199 echo $ECHO_N "(cached) $ECHO_C" >&6
3200 else
3201 if test -n "$AWK"; then
3202 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3203 else
3204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3205 for as_dir in $PATH
3207 IFS=$as_save_IFS
3208 test -z "$as_dir" && as_dir=.
3209 for ac_exec_ext in '' $ac_executable_extensions; do
3210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3211 ac_cv_prog_AWK="$ac_prog"
3212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3213 break 2
3215 done
3216 done
3220 AWK=$ac_cv_prog_AWK
3221 if test -n "$AWK"; then
3222 echo "$as_me:$LINENO: result: $AWK" >&5
3223 echo "${ECHO_T}$AWK" >&6
3224 else
3225 echo "$as_me:$LINENO: result: no" >&5
3226 echo "${ECHO_T}no" >&6
3229 test -n "$AWK" && break
3230 done
3232 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3233 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3234 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3235 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3236 echo $ECHO_N "(cached) $ECHO_C" >&6
3237 else
3238 cat >conftest.make <<\_ACEOF
3239 all:
3240 @echo 'ac_maketemp="$(MAKE)"'
3241 _ACEOF
3242 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3243 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3244 if test -n "$ac_maketemp"; then
3245 eval ac_cv_prog_make_${ac_make}_set=yes
3246 else
3247 eval ac_cv_prog_make_${ac_make}_set=no
3249 rm -f conftest.make
3251 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3252 echo "$as_me:$LINENO: result: yes" >&5
3253 echo "${ECHO_T}yes" >&6
3254 SET_MAKE=
3255 else
3256 echo "$as_me:$LINENO: result: no" >&5
3257 echo "${ECHO_T}no" >&6
3258 SET_MAKE="MAKE=${MAKE-make}"
3261 rm -rf .tst 2>/dev/null
3262 mkdir .tst 2>/dev/null
3263 if test -d .tst; then
3264 am__leading_dot=.
3265 else
3266 am__leading_dot=_
3268 rmdir .tst 2>/dev/null
3270 DEPDIR="${am__leading_dot}deps"
3272 ac_config_commands="$ac_config_commands depfiles"
3275 am_make=${MAKE-make}
3276 cat > confinc << 'END'
3277 am__doit:
3278 @echo done
3279 .PHONY: am__doit
3281 # If we don't find an include directive, just comment out the code.
3282 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3283 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3284 am__include="#"
3285 am__quote=
3286 _am_result=none
3287 # First try GNU make style include.
3288 echo "include confinc" > confmf
3289 # We grep out `Entering directory' and `Leaving directory'
3290 # messages which can occur if `w' ends up in MAKEFLAGS.
3291 # In particular we don't look at `^make:' because GNU make might
3292 # be invoked under some other name (usually "gmake"), in which
3293 # case it prints its new name instead of `make'.
3294 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3295 am__include=include
3296 am__quote=
3297 _am_result=GNU
3299 # Now try BSD make style include.
3300 if test "$am__include" = "#"; then
3301 echo '.include "confinc"' > confmf
3302 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3303 am__include=.include
3304 am__quote="\""
3305 _am_result=BSD
3310 echo "$as_me:$LINENO: result: $_am_result" >&5
3311 echo "${ECHO_T}$_am_result" >&6
3312 rm -f confinc confmf
3314 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3315 if test "${enable_dependency_tracking+set}" = set; then
3316 enableval="$enable_dependency_tracking"
3319 if test "x$enable_dependency_tracking" != xno; then
3320 am_depcomp="$ac_aux_dir/depcomp"
3321 AMDEPBACKSLASH='\'
3325 if test "x$enable_dependency_tracking" != xno; then
3326 AMDEP_TRUE=
3327 AMDEP_FALSE='#'
3328 else
3329 AMDEP_TRUE='#'
3330 AMDEP_FALSE=
3335 # test to see if srcdir already configured
3336 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3337 test -f $srcdir/config.status; then
3338 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3339 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3340 { (exit 1); exit 1; }; }
3343 # test whether we have cygpath
3344 if test -z "$CYGPATH_W"; then
3345 if (cygpath --version) >/dev/null 2>/dev/null; then
3346 CYGPATH_W='cygpath -w'
3347 else
3348 CYGPATH_W=echo
3353 # Define the identity of the package.
3354 PACKAGE='libjava'
3355 VERSION='version-unused'
3358 cat >>confdefs.h <<_ACEOF
3359 #define PACKAGE "$PACKAGE"
3360 _ACEOF
3363 cat >>confdefs.h <<_ACEOF
3364 #define VERSION "$VERSION"
3365 _ACEOF
3367 # Some tools Automake needs.
3369 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3372 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3375 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3378 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3381 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3383 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3385 # Installed binaries are usually stripped using `strip' when the user
3386 # run `make install-strip'. However `strip' might not be the right
3387 # tool to use in cross-compilation environments, therefore Automake
3388 # will honor the `STRIP' environment variable to overrule this program.
3389 if test "$cross_compiling" != no; then
3390 if test -n "$ac_tool_prefix"; then
3391 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3392 set dummy ${ac_tool_prefix}strip; ac_word=$2
3393 echo "$as_me:$LINENO: checking for $ac_word" >&5
3394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3395 if test "${ac_cv_prog_STRIP+set}" = set; then
3396 echo $ECHO_N "(cached) $ECHO_C" >&6
3397 else
3398 if test -n "$STRIP"; then
3399 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3400 else
3401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402 for as_dir in $PATH
3404 IFS=$as_save_IFS
3405 test -z "$as_dir" && as_dir=.
3406 for ac_exec_ext in '' $ac_executable_extensions; do
3407 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3408 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3410 break 2
3412 done
3413 done
3417 STRIP=$ac_cv_prog_STRIP
3418 if test -n "$STRIP"; then
3419 echo "$as_me:$LINENO: result: $STRIP" >&5
3420 echo "${ECHO_T}$STRIP" >&6
3421 else
3422 echo "$as_me:$LINENO: result: no" >&5
3423 echo "${ECHO_T}no" >&6
3427 if test -z "$ac_cv_prog_STRIP"; then
3428 ac_ct_STRIP=$STRIP
3429 # Extract the first word of "strip", so it can be a program name with args.
3430 set dummy strip; ac_word=$2
3431 echo "$as_me:$LINENO: checking for $ac_word" >&5
3432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3433 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3434 echo $ECHO_N "(cached) $ECHO_C" >&6
3435 else
3436 if test -n "$ac_ct_STRIP"; then
3437 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3438 else
3439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3440 for as_dir in $PATH
3442 IFS=$as_save_IFS
3443 test -z "$as_dir" && as_dir=.
3444 for ac_exec_ext in '' $ac_executable_extensions; do
3445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3446 ac_cv_prog_ac_ct_STRIP="strip"
3447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3448 break 2
3450 done
3451 done
3453 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3456 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3457 if test -n "$ac_ct_STRIP"; then
3458 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3459 echo "${ECHO_T}$ac_ct_STRIP" >&6
3460 else
3461 echo "$as_me:$LINENO: result: no" >&5
3462 echo "${ECHO_T}no" >&6
3465 STRIP=$ac_ct_STRIP
3466 else
3467 STRIP="$ac_cv_prog_STRIP"
3471 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3473 # We need awk for the "check" target. The system "awk" is bad on
3474 # some platforms.
3475 # Always define AMTAR for backward compatibility.
3477 AMTAR=${AMTAR-"${am_missing_run}tar"}
3479 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3484 depcc="$CC" am_compiler_list=
3486 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3487 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3488 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3489 echo $ECHO_N "(cached) $ECHO_C" >&6
3490 else
3491 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3492 # We make a subdir and do the tests there. Otherwise we can end up
3493 # making bogus files that we don't know about and never remove. For
3494 # instance it was reported that on HP-UX the gcc test will end up
3495 # making a dummy file named `D' -- because `-MD' means `put the output
3496 # in D'.
3497 mkdir conftest.dir
3498 # Copy depcomp to subdir because otherwise we won't find it if we're
3499 # using a relative directory.
3500 cp "$am_depcomp" conftest.dir
3501 cd conftest.dir
3502 # We will build objects and dependencies in a subdirectory because
3503 # it helps to detect inapplicable dependency modes. For instance
3504 # both Tru64's cc and ICC support -MD to output dependencies as a
3505 # side effect of compilation, but ICC will put the dependencies in
3506 # the current directory while Tru64 will put them in the object
3507 # directory.
3508 mkdir sub
3510 am_cv_CC_dependencies_compiler_type=none
3511 if test "$am_compiler_list" = ""; then
3512 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3514 for depmode in $am_compiler_list; do
3515 # Setup a source with many dependencies, because some compilers
3516 # like to wrap large dependency lists on column 80 (with \), and
3517 # we should not choose a depcomp mode which is confused by this.
3519 # We need to recreate these files for each test, as the compiler may
3520 # overwrite some of them when testing with obscure command lines.
3521 # This happens at least with the AIX C compiler.
3522 : > sub/conftest.c
3523 for i in 1 2 3 4 5 6; do
3524 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3525 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3526 # Solaris 8's {/usr,}/bin/sh.
3527 touch sub/conftst$i.h
3528 done
3529 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3531 case $depmode in
3532 nosideeffect)
3533 # after this tag, mechanisms are not by side-effect, so they'll
3534 # only be used when explicitly requested
3535 if test "x$enable_dependency_tracking" = xyes; then
3536 continue
3537 else
3538 break
3541 none) break ;;
3542 esac
3543 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3544 # mode. It turns out that the SunPro C++ compiler does not properly
3545 # handle `-M -o', and we need to detect this.
3546 if depmode=$depmode \
3547 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3548 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3549 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3550 >/dev/null 2>conftest.err &&
3551 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3552 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3553 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3554 # icc doesn't choke on unknown options, it will just issue warnings
3555 # or remarks (even with -Werror). So we grep stderr for any message
3556 # that says an option was ignored or not supported.
3557 # When given -MP, icc 7.0 and 7.1 complain thusly:
3558 # icc: Command line warning: ignoring option '-M'; no argument required
3559 # The diagnosis changed in icc 8.0:
3560 # icc: Command line remark: option '-MP' not supported
3561 if (grep 'ignoring option' conftest.err ||
3562 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3563 am_cv_CC_dependencies_compiler_type=$depmode
3564 break
3567 done
3569 cd ..
3570 rm -rf conftest.dir
3571 else
3572 am_cv_CC_dependencies_compiler_type=none
3576 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3577 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3578 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3583 test "x$enable_dependency_tracking" != xno \
3584 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3585 am__fastdepCC_TRUE=
3586 am__fastdepCC_FALSE='#'
3587 else
3588 am__fastdepCC_TRUE='#'
3589 am__fastdepCC_FALSE=
3593 depcc="$CXX" am_compiler_list=
3595 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3596 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3597 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3598 echo $ECHO_N "(cached) $ECHO_C" >&6
3599 else
3600 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3601 # We make a subdir and do the tests there. Otherwise we can end up
3602 # making bogus files that we don't know about and never remove. For
3603 # instance it was reported that on HP-UX the gcc test will end up
3604 # making a dummy file named `D' -- because `-MD' means `put the output
3605 # in D'.
3606 mkdir conftest.dir
3607 # Copy depcomp to subdir because otherwise we won't find it if we're
3608 # using a relative directory.
3609 cp "$am_depcomp" conftest.dir
3610 cd conftest.dir
3611 # We will build objects and dependencies in a subdirectory because
3612 # it helps to detect inapplicable dependency modes. For instance
3613 # both Tru64's cc and ICC support -MD to output dependencies as a
3614 # side effect of compilation, but ICC will put the dependencies in
3615 # the current directory while Tru64 will put them in the object
3616 # directory.
3617 mkdir sub
3619 am_cv_CXX_dependencies_compiler_type=none
3620 if test "$am_compiler_list" = ""; then
3621 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3623 for depmode in $am_compiler_list; do
3624 # Setup a source with many dependencies, because some compilers
3625 # like to wrap large dependency lists on column 80 (with \), and
3626 # we should not choose a depcomp mode which is confused by this.
3628 # We need to recreate these files for each test, as the compiler may
3629 # overwrite some of them when testing with obscure command lines.
3630 # This happens at least with the AIX C compiler.
3631 : > sub/conftest.c
3632 for i in 1 2 3 4 5 6; do
3633 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3634 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3635 # Solaris 8's {/usr,}/bin/sh.
3636 touch sub/conftst$i.h
3637 done
3638 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3640 case $depmode in
3641 nosideeffect)
3642 # after this tag, mechanisms are not by side-effect, so they'll
3643 # only be used when explicitly requested
3644 if test "x$enable_dependency_tracking" = xyes; then
3645 continue
3646 else
3647 break
3650 none) break ;;
3651 esac
3652 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3653 # mode. It turns out that the SunPro C++ compiler does not properly
3654 # handle `-M -o', and we need to detect this.
3655 if depmode=$depmode \
3656 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3657 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3658 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3659 >/dev/null 2>conftest.err &&
3660 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3661 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3662 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3663 # icc doesn't choke on unknown options, it will just issue warnings
3664 # or remarks (even with -Werror). So we grep stderr for any message
3665 # that says an option was ignored or not supported.
3666 # When given -MP, icc 7.0 and 7.1 complain thusly:
3667 # icc: Command line warning: ignoring option '-M'; no argument required
3668 # The diagnosis changed in icc 8.0:
3669 # icc: Command line remark: option '-MP' not supported
3670 if (grep 'ignoring option' conftest.err ||
3671 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3672 am_cv_CXX_dependencies_compiler_type=$depmode
3673 break
3676 done
3678 cd ..
3679 rm -rf conftest.dir
3680 else
3681 am_cv_CXX_dependencies_compiler_type=none
3685 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3686 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3687 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3692 test "x$enable_dependency_tracking" != xno \
3693 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3694 am__fastdepCXX_TRUE=
3695 am__fastdepCXX_FALSE='#'
3696 else
3697 am__fastdepCXX_TRUE='#'
3698 am__fastdepCXX_FALSE=
3704 if test -n "$ac_tool_prefix"; then
3705 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3706 set dummy ${ac_tool_prefix}as; ac_word=$2
3707 echo "$as_me:$LINENO: checking for $ac_word" >&5
3708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3709 if test "${ac_cv_prog_AS+set}" = set; then
3710 echo $ECHO_N "(cached) $ECHO_C" >&6
3711 else
3712 if test -n "$AS"; then
3713 ac_cv_prog_AS="$AS" # Let the user override the test.
3714 else
3715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3716 for as_dir in $PATH
3718 IFS=$as_save_IFS
3719 test -z "$as_dir" && as_dir=.
3720 for ac_exec_ext in '' $ac_executable_extensions; do
3721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3722 ac_cv_prog_AS="${ac_tool_prefix}as"
3723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3724 break 2
3726 done
3727 done
3731 AS=$ac_cv_prog_AS
3732 if test -n "$AS"; then
3733 echo "$as_me:$LINENO: result: $AS" >&5
3734 echo "${ECHO_T}$AS" >&6
3735 else
3736 echo "$as_me:$LINENO: result: no" >&5
3737 echo "${ECHO_T}no" >&6
3741 if test -z "$ac_cv_prog_AS"; then
3742 ac_ct_AS=$AS
3743 # Extract the first word of "as", so it can be a program name with args.
3744 set dummy as; ac_word=$2
3745 echo "$as_me:$LINENO: checking for $ac_word" >&5
3746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3747 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3748 echo $ECHO_N "(cached) $ECHO_C" >&6
3749 else
3750 if test -n "$ac_ct_AS"; then
3751 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3752 else
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 for as_dir in $PATH
3756 IFS=$as_save_IFS
3757 test -z "$as_dir" && as_dir=.
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3760 ac_cv_prog_ac_ct_AS="as"
3761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3762 break 2
3764 done
3765 done
3769 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3770 if test -n "$ac_ct_AS"; then
3771 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3772 echo "${ECHO_T}$ac_ct_AS" >&6
3773 else
3774 echo "$as_me:$LINENO: result: no" >&5
3775 echo "${ECHO_T}no" >&6
3778 AS=$ac_ct_AS
3779 else
3780 AS="$ac_cv_prog_AS"
3783 if test -n "$ac_tool_prefix"; then
3784 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3785 set dummy ${ac_tool_prefix}ld; ac_word=$2
3786 echo "$as_me:$LINENO: checking for $ac_word" >&5
3787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3788 if test "${ac_cv_prog_LD+set}" = set; then
3789 echo $ECHO_N "(cached) $ECHO_C" >&6
3790 else
3791 if test -n "$LD"; then
3792 ac_cv_prog_LD="$LD" # Let the user override the test.
3793 else
3794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795 for as_dir in $PATH
3797 IFS=$as_save_IFS
3798 test -z "$as_dir" && as_dir=.
3799 for ac_exec_ext in '' $ac_executable_extensions; do
3800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3801 ac_cv_prog_LD="${ac_tool_prefix}ld"
3802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3803 break 2
3805 done
3806 done
3810 LD=$ac_cv_prog_LD
3811 if test -n "$LD"; then
3812 echo "$as_me:$LINENO: result: $LD" >&5
3813 echo "${ECHO_T}$LD" >&6
3814 else
3815 echo "$as_me:$LINENO: result: no" >&5
3816 echo "${ECHO_T}no" >&6
3820 if test -z "$ac_cv_prog_LD"; then
3821 ac_ct_LD=$LD
3822 # Extract the first word of "ld", so it can be a program name with args.
3823 set dummy ld; ac_word=$2
3824 echo "$as_me:$LINENO: checking for $ac_word" >&5
3825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3826 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3827 echo $ECHO_N "(cached) $ECHO_C" >&6
3828 else
3829 if test -n "$ac_ct_LD"; then
3830 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3831 else
3832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833 for as_dir in $PATH
3835 IFS=$as_save_IFS
3836 test -z "$as_dir" && as_dir=.
3837 for ac_exec_ext in '' $ac_executable_extensions; do
3838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3839 ac_cv_prog_ac_ct_LD="ld"
3840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3841 break 2
3843 done
3844 done
3848 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3849 if test -n "$ac_ct_LD"; then
3850 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
3851 echo "${ECHO_T}$ac_ct_LD" >&6
3852 else
3853 echo "$as_me:$LINENO: result: no" >&5
3854 echo "${ECHO_T}no" >&6
3857 LD=$ac_ct_LD
3858 else
3859 LD="$ac_cv_prog_LD"
3862 if test -n "$ac_tool_prefix"; then
3863 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3864 set dummy ${ac_tool_prefix}ar; ac_word=$2
3865 echo "$as_me:$LINENO: checking for $ac_word" >&5
3866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3867 if test "${ac_cv_prog_AR+set}" = set; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3869 else
3870 if test -n "$AR"; then
3871 ac_cv_prog_AR="$AR" # Let the user override the test.
3872 else
3873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3874 for as_dir in $PATH
3876 IFS=$as_save_IFS
3877 test -z "$as_dir" && as_dir=.
3878 for ac_exec_ext in '' $ac_executable_extensions; do
3879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3880 ac_cv_prog_AR="${ac_tool_prefix}ar"
3881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3882 break 2
3884 done
3885 done
3889 AR=$ac_cv_prog_AR
3890 if test -n "$AR"; then
3891 echo "$as_me:$LINENO: result: $AR" >&5
3892 echo "${ECHO_T}$AR" >&6
3893 else
3894 echo "$as_me:$LINENO: result: no" >&5
3895 echo "${ECHO_T}no" >&6
3899 if test -z "$ac_cv_prog_AR"; then
3900 ac_ct_AR=$AR
3901 # Extract the first word of "ar", so it can be a program name with args.
3902 set dummy ar; ac_word=$2
3903 echo "$as_me:$LINENO: checking for $ac_word" >&5
3904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3905 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3906 echo $ECHO_N "(cached) $ECHO_C" >&6
3907 else
3908 if test -n "$ac_ct_AR"; then
3909 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3910 else
3911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912 for as_dir in $PATH
3914 IFS=$as_save_IFS
3915 test -z "$as_dir" && as_dir=.
3916 for ac_exec_ext in '' $ac_executable_extensions; do
3917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3918 ac_cv_prog_ac_ct_AR="ar"
3919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3920 break 2
3922 done
3923 done
3927 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3928 if test -n "$ac_ct_AR"; then
3929 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3930 echo "${ECHO_T}$ac_ct_AR" >&6
3931 else
3932 echo "$as_me:$LINENO: result: no" >&5
3933 echo "${ECHO_T}no" >&6
3936 AR=$ac_ct_AR
3937 else
3938 AR="$ac_cv_prog_AR"
3941 if test -n "$ac_tool_prefix"; then
3942 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3943 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3944 echo "$as_me:$LINENO: checking for $ac_word" >&5
3945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3946 if test "${ac_cv_prog_RANLIB+set}" = set; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3948 else
3949 if test -n "$RANLIB"; then
3950 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3951 else
3952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953 for as_dir in $PATH
3955 IFS=$as_save_IFS
3956 test -z "$as_dir" && as_dir=.
3957 for ac_exec_ext in '' $ac_executable_extensions; do
3958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3959 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3961 break 2
3963 done
3964 done
3968 RANLIB=$ac_cv_prog_RANLIB
3969 if test -n "$RANLIB"; then
3970 echo "$as_me:$LINENO: result: $RANLIB" >&5
3971 echo "${ECHO_T}$RANLIB" >&6
3972 else
3973 echo "$as_me:$LINENO: result: no" >&5
3974 echo "${ECHO_T}no" >&6
3978 if test -z "$ac_cv_prog_RANLIB"; then
3979 ac_ct_RANLIB=$RANLIB
3980 # Extract the first word of "ranlib", so it can be a program name with args.
3981 set dummy ranlib; ac_word=$2
3982 echo "$as_me:$LINENO: checking for $ac_word" >&5
3983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3984 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3986 else
3987 if test -n "$ac_ct_RANLIB"; then
3988 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3989 else
3990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991 for as_dir in $PATH
3993 IFS=$as_save_IFS
3994 test -z "$as_dir" && as_dir=.
3995 for ac_exec_ext in '' $ac_executable_extensions; do
3996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3997 ac_cv_prog_ac_ct_RANLIB="ranlib"
3998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3999 break 2
4001 done
4002 done
4004 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4007 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4008 if test -n "$ac_ct_RANLIB"; then
4009 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4010 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4011 else
4012 echo "$as_me:$LINENO: result: no" >&5
4013 echo "${ECHO_T}no" >&6
4016 RANLIB=$ac_ct_RANLIB
4017 else
4018 RANLIB="$ac_cv_prog_RANLIB"
4021 for ac_prog in gawk mawk nawk awk
4023 # Extract the first word of "$ac_prog", so it can be a program name with args.
4024 set dummy $ac_prog; ac_word=$2
4025 echo "$as_me:$LINENO: checking for $ac_word" >&5
4026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4027 if test "${ac_cv_prog_AWK+set}" = set; then
4028 echo $ECHO_N "(cached) $ECHO_C" >&6
4029 else
4030 if test -n "$AWK"; then
4031 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4032 else
4033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034 for as_dir in $PATH
4036 IFS=$as_save_IFS
4037 test -z "$as_dir" && as_dir=.
4038 for ac_exec_ext in '' $ac_executable_extensions; do
4039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4040 ac_cv_prog_AWK="$ac_prog"
4041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4042 break 2
4044 done
4045 done
4049 AWK=$ac_cv_prog_AWK
4050 if test -n "$AWK"; then
4051 echo "$as_me:$LINENO: result: $AWK" >&5
4052 echo "${ECHO_T}$AWK" >&6
4053 else
4054 echo "$as_me:$LINENO: result: no" >&5
4055 echo "${ECHO_T}no" >&6
4058 test -n "$AWK" && break
4059 done
4061 for ac_prog in jar fastjar
4063 # Extract the first word of "$ac_prog", so it can be a program name with args.
4064 set dummy $ac_prog; ac_word=$2
4065 echo "$as_me:$LINENO: checking for $ac_word" >&5
4066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4067 if test "${ac_cv_prog_JAR+set}" = set; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4069 else
4070 if test -n "$JAR"; then
4071 ac_cv_prog_JAR="$JAR" # Let the user override the test.
4072 else
4073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4074 for as_dir in $PATH
4076 IFS=$as_save_IFS
4077 test -z "$as_dir" && as_dir=.
4078 for ac_exec_ext in '' $ac_executable_extensions; do
4079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4080 ac_cv_prog_JAR="$ac_prog"
4081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4082 break 2
4084 done
4085 done
4089 JAR=$ac_cv_prog_JAR
4090 if test -n "$JAR"; then
4091 echo "$as_me:$LINENO: result: $JAR" >&5
4092 echo "${ECHO_T}$JAR" >&6
4093 else
4094 echo "$as_me:$LINENO: result: no" >&5
4095 echo "${ECHO_T}no" >&6
4098 test -n "$JAR" && break
4099 done
4100 test -n "$JAR" || JAR="no"
4102 # Extract the first word of "zip", so it can be a program name with args.
4103 set dummy zip; ac_word=$2
4104 echo "$as_me:$LINENO: checking for $ac_word" >&5
4105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4106 if test "${ac_cv_path_ZIP+set}" = set; then
4107 echo $ECHO_N "(cached) $ECHO_C" >&6
4108 else
4109 case $ZIP in
4110 [\\/]* | ?:[\\/]*)
4111 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
4114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4115 for as_dir in $PATH
4117 IFS=$as_save_IFS
4118 test -z "$as_dir" && as_dir=.
4119 for ac_exec_ext in '' $ac_executable_extensions; do
4120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4121 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
4122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4123 break 2
4125 done
4126 done
4128 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
4130 esac
4132 ZIP=$ac_cv_path_ZIP
4134 if test -n "$ZIP"; then
4135 echo "$as_me:$LINENO: result: $ZIP" >&5
4136 echo "${ECHO_T}$ZIP" >&6
4137 else
4138 echo "$as_me:$LINENO: result: no" >&5
4139 echo "${ECHO_T}no" >&6
4142 # Extract the first word of "unzip", so it can be a program name with args.
4143 set dummy unzip; ac_word=$2
4144 echo "$as_me:$LINENO: checking for $ac_word" >&5
4145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4146 if test "${ac_cv_path_UNZIP+set}" = set; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4148 else
4149 case $UNZIP in
4150 [\\/]* | ?:[\\/]*)
4151 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
4154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155 for as_dir in $PATH
4157 IFS=$as_save_IFS
4158 test -z "$as_dir" && as_dir=.
4159 for ac_exec_ext in '' $ac_executable_extensions; do
4160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4161 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
4162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4163 break 2
4165 done
4166 done
4168 test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
4170 esac
4172 UNZIP=$ac_cv_path_UNZIP
4174 if test -n "$UNZIP"; then
4175 echo "$as_me:$LINENO: result: $UNZIP" >&5
4176 echo "${ECHO_T}$UNZIP" >&6
4177 else
4178 echo "$as_me:$LINENO: result: no" >&5
4179 echo "${ECHO_T}no" >&6
4184 if test "$JAR" = no; then
4185 BASH_JAR_TRUE=
4186 BASH_JAR_FALSE='#'
4187 else
4188 BASH_JAR_TRUE='#'
4189 BASH_JAR_FALSE=
4192 if test "$ZIP" = no; then
4193 if test "$JAR" = no; then
4194 { { echo "$as_me:$LINENO: error: cannot find neither zip nor jar, cannot continue" >&5
4195 echo "$as_me: error: cannot find neither zip nor jar, cannot continue" >&2;}
4196 { (exit 1); exit 1; }; }
4198 else
4199 # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
4200 JAR=`pwd`/scripts/jar
4203 # Find a good install program. We prefer a C program (faster),
4204 # so one script is as good as another. But avoid the broken or
4205 # incompatible versions:
4206 # SysV /etc/install, /usr/sbin/install
4207 # SunOS /usr/etc/install
4208 # IRIX /sbin/install
4209 # AIX /bin/install
4210 # AmigaOS /C/install, which installs bootblocks on floppy discs
4211 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4212 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4213 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4214 # OS/2's system install, which has a completely different semantic
4215 # ./install, which can be erroneously created by make from ./install.sh.
4216 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4217 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4218 if test -z "$INSTALL"; then
4219 if test "${ac_cv_path_install+set}" = set; then
4220 echo $ECHO_N "(cached) $ECHO_C" >&6
4221 else
4222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4223 for as_dir in $PATH
4225 IFS=$as_save_IFS
4226 test -z "$as_dir" && as_dir=.
4227 # Account for people who put trailing slashes in PATH elements.
4228 case $as_dir/ in
4229 ./ | .// | /cC/* | \
4230 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4231 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4232 /usr/ucb/* ) ;;
4234 # OSF1 and SCO ODT 3.0 have their own names for install.
4235 # Don't use installbsd from OSF since it installs stuff as root
4236 # by default.
4237 for ac_prog in ginstall scoinst install; do
4238 for ac_exec_ext in '' $ac_executable_extensions; do
4239 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4240 if test $ac_prog = install &&
4241 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4242 # AIX install. It has an incompatible calling convention.
4244 elif test $ac_prog = install &&
4245 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4246 # program-specific install script used by HP pwplus--don't use.
4248 else
4249 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4250 break 3
4253 done
4254 done
4256 esac
4257 done
4261 if test "${ac_cv_path_install+set}" = set; then
4262 INSTALL=$ac_cv_path_install
4263 else
4264 # As a last resort, use the slow shell script. We don't cache a
4265 # path for INSTALL within a source directory, because that will
4266 # break other packages using the cache if that directory is
4267 # removed, or if the path is relative.
4268 INSTALL=$ac_install_sh
4271 echo "$as_me:$LINENO: result: $INSTALL" >&5
4272 echo "${ECHO_T}$INSTALL" >&6
4274 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4275 # It thinks the first close brace ends the variable substitution.
4276 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4278 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4280 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4283 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4284 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4285 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4286 if test "${enable_maintainer_mode+set}" = set; then
4287 enableval="$enable_maintainer_mode"
4288 USE_MAINTAINER_MODE=$enableval
4289 else
4290 USE_MAINTAINER_MODE=no
4292 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4293 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4296 if test $USE_MAINTAINER_MODE = yes; then
4297 MAINTAINER_MODE_TRUE=
4298 MAINTAINER_MODE_FALSE='#'
4299 else
4300 MAINTAINER_MODE_TRUE='#'
4301 MAINTAINER_MODE_FALSE=
4304 MAINT=$MAINTAINER_MODE_TRUE
4310 # configure.host sets the following important variables
4311 # libgcj_cflags - host specific C compiler flags
4312 # libgcj_cxxflags - host specific C++ compiler flags
4313 # libgcj_javaflags - host specific Java compiler flags
4315 libgcj_cflags=
4316 libgcj_cxxflags=
4317 libgcj_javaflags=
4319 . ${srcdir}/configure.host
4321 LIBGCJ_CFLAGS="${libgcj_cflags}"
4322 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4323 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4324 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4330 # Only use libltdl for non-newlib builds.
4331 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4332 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
4333 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4334 library_names_spec=
4335 libname_spec='lib$name'
4336 soname_spec=
4337 shrext=".so"
4338 postinstall_cmds=
4339 postuninstall_cmds=
4340 finish_cmds=
4341 finish_eval=
4342 shlibpath_var=
4343 shlibpath_overrides_runpath=unknown
4344 version_type=none
4345 dynamic_linker="$host_os ld.so"
4346 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4347 if test "$GCC" = yes; then
4348 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4349 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
4350 # if the path contains ";" then we assume it to be the separator
4351 # otherwise default to the standard path separator (i.e. ":") - it is
4352 # assumed that no part of a normal pathname contains ";" but that should
4353 # okay in the real world where ";" in dirpaths is itself problematic.
4354 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4355 else
4356 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4358 else
4359 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4361 need_lib_prefix=unknown
4362 hardcode_into_libs=no
4364 # when you set need_version to no, make sure it does not cause -set_version
4365 # flags to be left without arguments
4366 need_version=unknown
4368 case $host_os in
4369 aix3*)
4370 version_type=linux
4371 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4372 shlibpath_var=LIBPATH
4374 # AIX 3 has no versioning support, so we append a major version to the name.
4375 soname_spec='${libname}${release}${shared_ext}$major'
4378 aix4* | aix5*)
4379 version_type=linux
4380 need_lib_prefix=no
4381 need_version=no
4382 hardcode_into_libs=yes
4383 if test "$host_cpu" = ia64; then
4384 # AIX 5 supports IA64
4385 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4386 shlibpath_var=LD_LIBRARY_PATH
4387 else
4388 # With GCC up to 2.95.x, collect2 would create an import file
4389 # for dependence libraries. The import file would start with
4390 # the line `#! .'. This would cause the generated library to
4391 # depend on `.', always an invalid library. This was fixed in
4392 # development snapshots of GCC prior to 3.0.
4393 case $host_os in
4394 aix4 | aix4.[01] | aix4.[01].*)
4395 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4396 echo ' yes '
4397 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4399 else
4400 can_build_shared=no
4403 esac
4404 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4405 # soname into executable. Probably we can add versioning support to
4406 # collect2, so additional links can be useful in future.
4407 if test "$aix_use_runtimelinking" = yes; then
4408 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4409 # instead of lib<name>.a to let people know that these are not
4410 # typical AIX shared libraries.
4411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4412 else
4413 # We preserve .a as extension for shared libraries through AIX4.2
4414 # and later when we are not doing run time linking.
4415 library_names_spec='${libname}${release}.a $libname.a'
4416 soname_spec='${libname}${release}${shared_ext}$major'
4418 shlibpath_var=LIBPATH
4422 amigaos*)
4423 library_names_spec='$libname.ixlibrary $libname.a'
4424 # Create ${libname}_ixlibrary.a entries in /sys/libs.
4425 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'
4428 beos*)
4429 library_names_spec='${libname}${shared_ext}'
4430 dynamic_linker="$host_os ld.so"
4431 shlibpath_var=LIBRARY_PATH
4434 bsdi4*)
4435 version_type=linux
4436 need_version=no
4437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4438 soname_spec='${libname}${release}${shared_ext}$major'
4439 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4440 shlibpath_var=LD_LIBRARY_PATH
4441 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4442 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4443 # the default ld.so.conf also contains /usr/contrib/lib and
4444 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4445 # libtool to hard-code these into programs
4448 cygwin* | mingw* | pw32*)
4449 version_type=windows
4450 shrext=".dll"
4451 need_version=no
4452 need_lib_prefix=no
4454 case $GCC,$host_os in
4455 yes,cygwin* | yes,mingw* | yes,pw32*)
4456 library_names_spec='$libname.dll.a'
4457 # DLL is installed to $(libdir)/../bin by postinstall_cmds
4458 postinstall_cmds='base_file=`basename \${file}`~
4459 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
4460 dldir=$destdir/`dirname \$dlpath`~
4461 test -d \$dldir || mkdir -p \$dldir~
4462 $install_prog $dir/$dlname \$dldir/$dlname'
4463 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4464 dlpath=$dir/\$dldll~
4465 $rm \$dlpath'
4466 shlibpath_overrides_runpath=yes
4468 case $host_os in
4469 cygwin*)
4470 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4471 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4472 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
4474 mingw*)
4475 # MinGW DLLs use traditional 'lib' prefix
4476 soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4477 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4478 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
4479 # It is most probably a Windows format PATH printed by
4480 # mingw gcc, but we are running on Cygwin. Gcc prints its search
4481 # path with ; separators, and with drive letters. We can handle the
4482 # drive letters (cygwin fileutils understands them), so leave them,
4483 # especially as we might pass files found there to a mingw objdump,
4484 # which wouldn't understand a cygwinified path. Ahh.
4485 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4486 else
4487 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4490 pw32*)
4491 # pw32 DLLs use 'pw' prefix rather than 'lib'
4492 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
4494 esac
4498 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
4500 esac
4501 dynamic_linker='Win32 ld.exe'
4502 # FIXME: first we should search . and the directory the executable is in
4503 shlibpath_var=PATH
4506 darwin* | rhapsody*)
4507 dynamic_linker="$host_os dyld"
4508 version_type=darwin
4509 need_lib_prefix=no
4510 need_version=no
4511 # FIXME: Relying on posixy $() will cause problems for
4512 # cross-compilation, but unfortunately the echo tests do not
4513 # yet detect zsh echo's removal of \ escapes.
4514 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4515 soname_spec='${libname}${release}${major}$shared_ext'
4516 shlibpath_overrides_runpath=yes
4517 shlibpath_var=DYLD_LIBRARY_PATH
4518 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
4519 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
4520 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
4521 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"`
4523 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4526 dgux*)
4527 version_type=linux
4528 need_lib_prefix=no
4529 need_version=no
4530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4531 soname_spec='${libname}${release}${shared_ext}$major'
4532 shlibpath_var=LD_LIBRARY_PATH
4535 freebsd1*)
4536 dynamic_linker=no
4539 freebsd*)
4540 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4541 version_type=freebsd-$objformat
4542 case $version_type in
4543 freebsd-elf*)
4544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4545 need_version=no
4546 need_lib_prefix=no
4548 freebsd-*)
4549 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4550 need_version=yes
4552 esac
4553 shlibpath_var=LD_LIBRARY_PATH
4554 case $host_os in
4555 freebsd2*)
4556 shlibpath_overrides_runpath=yes
4558 freebsd3.01* | freebsdelf3.01*)
4559 shlibpath_overrides_runpath=yes
4560 hardcode_into_libs=yes
4562 *) # from 3.2 on
4563 shlibpath_overrides_runpath=no
4564 hardcode_into_libs=yes
4566 esac
4569 gnu*)
4570 version_type=linux
4571 need_lib_prefix=no
4572 need_version=no
4573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4574 soname_spec='${libname}${release}${shared_ext}$major'
4575 shlibpath_var=LD_LIBRARY_PATH
4576 hardcode_into_libs=yes
4579 hpux9* | hpux10* | hpux11*)
4580 # Give a soname corresponding to the major version so that dld.sl refuses to
4581 # link against other versions.
4582 version_type=sunos
4583 need_lib_prefix=no
4584 need_version=no
4585 case "$host_cpu" in
4586 ia64*)
4587 shrext='.so'
4588 hardcode_into_libs=yes
4589 dynamic_linker="$host_os dld.so"
4590 shlibpath_var=LD_LIBRARY_PATH
4591 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4593 soname_spec='${libname}${release}${shared_ext}$major'
4594 if test "X$HPUX_IA64_MODE" = X32; then
4595 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4596 else
4597 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4599 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4601 hppa*64*)
4602 shrext='.sl'
4603 hardcode_into_libs=yes
4604 dynamic_linker="$host_os dld.sl"
4605 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4606 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4608 soname_spec='${libname}${release}${shared_ext}$major'
4609 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
4610 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4613 shrext='.sl'
4614 dynamic_linker="$host_os dld.sl"
4615 shlibpath_var=SHLIB_PATH
4616 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4618 soname_spec='${libname}${release}${shared_ext}$major'
4620 esac
4621 # HP-UX runs *really* slowly unless shared libraries are mode 555.
4622 postinstall_cmds='chmod 555 $lib'
4625 irix5* | irix6* | nonstopux*)
4626 case $host_os in
4627 nonstopux*) version_type=nonstopux ;;
4629 if test "$lt_cv_prog_gnu_ld" = yes; then
4630 version_type=linux
4631 else
4632 version_type=irix
4633 fi ;;
4634 esac
4635 need_lib_prefix=no
4636 need_version=no
4637 soname_spec='${libname}${release}${shared_ext}$major'
4638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4639 case $host_os in
4640 irix5* | nonstopux*)
4641 libsuff= shlibsuff=
4644 case $LD in # libtool.m4 will add one of these switches to LD
4645 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
4646 libsuff= shlibsuff= libmagic=32-bit;;
4647 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
4648 libsuff=32 shlibsuff=N32 libmagic=N32;;
4649 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
4650 libsuff=64 shlibsuff=64 libmagic=64-bit;;
4651 *) libsuff= shlibsuff= libmagic=never-match;;
4652 esac
4654 esac
4655 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4656 shlibpath_overrides_runpath=no
4657 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4658 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4659 hardcode_into_libs=yes
4662 # No shared lib support for Linux oldld, aout, or coff.
4663 linux*oldld* | linux*aout* | linux*coff*)
4664 dynamic_linker=no
4667 # This must be Linux ELF.
4668 linux*|k*bsd*-gnu)
4669 version_type=linux
4670 need_lib_prefix=no
4671 need_version=no
4672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4673 soname_spec='${libname}${release}${shared_ext}$major'
4674 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4675 shlibpath_var=LD_LIBRARY_PATH
4676 shlibpath_overrides_runpath=no
4677 # This implies no fast_install, which is unacceptable.
4678 # Some rework will be needed to allow for fast_install
4679 # before this can be enabled.
4680 hardcode_into_libs=yes
4682 # We used to test for /lib/ld.so.1 and disable shared libraries on
4683 # powerpc, because MkLinux only supported shared libraries with the
4684 # GNU dynamic linker. Since this was broken with cross compilers,
4685 # most powerpc-linux boxes support dynamic linking these days and
4686 # people can always --disable-shared, the test was removed, and we
4687 # assume the GNU/Linux dynamic linker is in use.
4688 dynamic_linker='GNU/Linux ld.so'
4691 netbsd*)
4692 version_type=sunos
4693 need_lib_prefix=no
4694 need_version=no
4695 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4697 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4698 dynamic_linker='NetBSD (a.out) ld.so'
4699 else
4700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
4701 soname_spec='${libname}${release}${shared_ext}$major'
4702 dynamic_linker='NetBSD ld.elf_so'
4704 shlibpath_var=LD_LIBRARY_PATH
4705 shlibpath_overrides_runpath=yes
4706 hardcode_into_libs=yes
4709 newsos6)
4710 version_type=linux
4711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4712 shlibpath_var=LD_LIBRARY_PATH
4713 shlibpath_overrides_runpath=yes
4716 nto-qnx)
4717 version_type=linux
4718 need_lib_prefix=no
4719 need_version=no
4720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4721 soname_spec='${libname}${release}${shared_ext}$major'
4722 shlibpath_var=LD_LIBRARY_PATH
4723 shlibpath_overrides_runpath=yes
4726 openbsd*)
4727 version_type=sunos
4728 need_lib_prefix=no
4729 need_version=no
4730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4731 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4732 shlibpath_var=LD_LIBRARY_PATH
4733 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4734 case $host_os in
4735 openbsd2.[89] | openbsd2.[89].*)
4736 shlibpath_overrides_runpath=no
4739 shlibpath_overrides_runpath=yes
4741 esac
4742 else
4743 shlibpath_overrides_runpath=yes
4747 os2*)
4748 libname_spec='$name'
4749 shrext=".dll"
4750 need_lib_prefix=no
4751 library_names_spec='$libname${shared_ext} $libname.a'
4752 dynamic_linker='OS/2 ld.exe'
4753 shlibpath_var=LIBPATH
4756 osf3* | osf4* | osf5*)
4757 version_type=osf
4758 need_lib_prefix=no
4759 need_version=no
4760 soname_spec='${libname}${release}${shared_ext}$major'
4761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4762 shlibpath_var=LD_LIBRARY_PATH
4763 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4764 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4767 sco3.2v5*)
4768 version_type=osf
4769 soname_spec='${libname}${release}${shared_ext}$major'
4770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4771 shlibpath_var=LD_LIBRARY_PATH
4774 solaris*)
4775 version_type=linux
4776 need_lib_prefix=no
4777 need_version=no
4778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4779 soname_spec='${libname}${release}${shared_ext}$major'
4780 shlibpath_var=LD_LIBRARY_PATH
4781 shlibpath_overrides_runpath=yes
4782 hardcode_into_libs=yes
4783 # ldd complains unless libraries are executable
4784 postinstall_cmds='chmod +x $lib'
4787 sunos4*)
4788 version_type=sunos
4789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4790 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4791 shlibpath_var=LD_LIBRARY_PATH
4792 shlibpath_overrides_runpath=yes
4793 if test "$with_gnu_ld" = yes; then
4794 need_lib_prefix=no
4796 need_version=yes
4799 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4800 version_type=linux
4801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4802 soname_spec='${libname}${release}${shared_ext}$major'
4803 shlibpath_var=LD_LIBRARY_PATH
4804 case $host_vendor in
4805 sni)
4806 shlibpath_overrides_runpath=no
4807 need_lib_prefix=no
4808 export_dynamic_flag_spec='${wl}-Blargedynsym'
4809 runpath_var=LD_RUN_PATH
4811 siemens)
4812 need_lib_prefix=no
4814 motorola)
4815 need_lib_prefix=no
4816 need_version=no
4817 shlibpath_overrides_runpath=no
4818 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4820 esac
4823 sysv4*MP*)
4824 if test -d /usr/nec ;then
4825 version_type=linux
4826 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
4827 soname_spec='$libname${shared_ext}.$major'
4828 shlibpath_var=LD_LIBRARY_PATH
4832 uts4*)
4833 version_type=linux
4834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4835 soname_spec='${libname}${release}${shared_ext}$major'
4836 shlibpath_var=LD_LIBRARY_PATH
4840 dynamic_linker=no
4842 esac
4843 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
4844 echo "${ECHO_T}$dynamic_linker" >&6
4845 test "$dynamic_linker" = no && can_build_shared=no
4848 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
4849 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
4850 if test "${libltdl_cv_shlibpath_var+set}" = set; then
4851 echo $ECHO_N "(cached) $ECHO_C" >&6
4852 else
4853 libltdl_cv_shlibpath_var="$shlibpath_var"
4855 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
4856 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
4857 if test -n "$libltdl_cv_shlibpath_var"; then
4859 cat >>confdefs.h <<_ACEOF
4860 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
4861 _ACEOF
4867 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
4870 # See if the user has requested runtime debugging.
4871 LIBGCJDEBUG="disable"
4873 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
4874 if test "${enable_libgcj_debug+set}" = set; then
4875 enableval="$enable_libgcj_debug"
4876 if test "$enable_libgcj_debug" = yes; then
4878 cat >>confdefs.h <<\_ACEOF
4879 #define DEBUG 1
4880 _ACEOF
4882 LIBGCJDEBUG="enable"
4886 # Determine which AWT peer libraries to build
4887 # Check whether --enable-java-awt or --disable-java-awt was given.
4888 if test "${enable_java_awt+set}" = set; then
4889 enableval="$enable_java_awt"
4893 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
4894 use_xlib_awt=""
4895 use_gtk_awt=""
4896 use_qt_awt=""
4897 # The default toolkit to use is the first one specified.
4898 TOOLKIT=
4901 for peer in $peerlibs ; do
4902 case $peer in
4903 xlib)
4904 if test "$no_x" = yes; then
4905 echo "*** xlib peers requested but no X library available" 1>&2
4906 exit 1
4907 else
4908 use_xlib_awt="yes"
4909 if test -z "$TOOLKIT"; then
4910 TOOLKIT=gnu.awt.xlib.XToolkit
4914 gtk)
4915 if test "$no_x" = yes; then
4916 echo "*** gtk peers requested but no X library available" 1>&2
4917 exit 1
4918 else
4919 use_gtk_awt=yes
4920 if test -z "$TOOLKIT"; then
4921 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
4926 if test "$no_x" = yes; then
4927 # Perhaps we should admit the possibility of embedded Qt.
4928 echo "*** Qt peers requested but no X library available" 1>&2
4929 exit 1
4930 else
4931 use_qt_awt=yes
4932 if test -z "$TOOLKIT"; then
4933 TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
4938 use_xlib_awt=
4939 use_gtk_awt=
4940 use_qt_awt=
4941 break
4944 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
4945 exit 1
4946 esac
4947 done
4951 if test "$use_xlib_awt" = yes; then
4952 XLIB_AWT_TRUE=
4953 XLIB_AWT_FALSE='#'
4954 else
4955 XLIB_AWT_TRUE='#'
4956 XLIB_AWT_FALSE=
4960 # Create standard.omit based on decisions we just made.
4961 cp $srcdir/standard.omit.in standard.omit
4962 if test "$use_xlib_awt" != yes; then
4963 echo gnu/awt/xlib >> standard.omit
4964 echo gnu/gcj/xlib >> standard.omit
4967 if test -z "${with_multisubdir}"; then
4968 builddotdot=.
4969 else
4970 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
4973 NATIVE=yes
4975 # Which gcj do we use?
4976 which_gcj=default
4977 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
4978 if test -n "${with_cross_host}"; then
4979 # We are being configured with a cross compiler. We can't
4980 # use ac_exeext, because that is for the target platform.
4981 NATIVE=no
4982 cross_host_exeext=
4983 case "${with_cross_host}" in
4984 *mingw* | *cygwin*)
4985 cross_host_exeext=.exe
4987 esac
4988 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
4989 if test x"$build_noncanonical" = x"$with_cross_host"; then
4990 # Ordinary cross (host!=target and host=build)
4991 which_gcj=built
4992 else
4993 # Canadian cross (host!=target and host!=build)
4994 which_gcj=cross
4996 else
4997 which_gcj=cross
4999 else
5000 # We are being configured with a native or crossed-native compiler
5001 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
5002 if test x"$build" = x"$host"; then
5003 # True native build (host=target and host=build)
5004 which_gcj=built
5005 else
5006 # Crossed-native build (host=target and host!=build)
5007 which_gcj=cross
5009 else
5010 which_gcj=path
5013 case "${which_gcj}" in
5014 built)
5015 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
5016 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
5018 cross)
5019 if test "x${with_newlib}" = "xyes"; then
5020 # FIXME (comment): Why is this needed?
5021 GCC_UNWIND_INCLUDE=
5022 GCJ="${target_noncanonical}-gcj"
5023 else
5024 GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
5026 GCJH='$(target_noncanonical)-gcjh'
5028 path)
5029 GCJ="gcj -B`${PWDCMD-pwd}`/"
5030 GCJH=gcjh
5032 esac
5036 # Create it, so that compile/link tests don't fail
5037 test -f libgcj.spec || touch libgcj.spec
5041 # Set up to configure Classpath.
5042 # FIXME: no supported way to pass args in autoconf.
5043 ac_configure_args="$ac_configure_args --with-fastjar=$JAR"
5044 ac_configure_args="$ac_configure_args --enable-tool-wrappers"
5045 ac_configure_args="$ac_configure_args --disable-load-library"
5046 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
5047 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
5048 dir1=`cd $srcdir && pwd`
5049 dir2=`pwd`
5050 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
5051 ac_configure_args="$ac_configure_args --disable-core-jni"
5052 ac_configure_args="$ac_configure_args --disable-examples"
5053 ac_configure_args="$ac_configure_args --with-glibj=build"
5054 if test "$plugin_enabled" != yes; then
5055 ac_configure_args="$ac_configure_args --disable-plugin"
5057 if test "$gconf_enabled" != yes; then
5058 ac_configure_args="$ac_configure_args --disable-gconf-peer"
5059 ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
5061 if test "$use_gtk_awt" != yes; then
5062 ac_configure_args="$ac_configure_args --disable-gtk-peer"
5064 if test "$use_qt_awt" != yes; then
5065 ac_configure_args="$ac_configure_args --disable-qt-peer"
5066 else
5067 # We need this as qt is disabled by default in classpath.
5068 ac_configure_args="$ac_configure_args --enable-qt-peer"
5071 # Only use libltdl for non-newlib builds.
5072 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5073 case $enable_ltdl_convenience in
5074 no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
5075 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
5076 { (exit 1); exit 1; }; } ;;
5077 "") enable_ltdl_convenience=yes
5078 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
5079 esac
5080 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
5081 INCLTDL='-I${top_srcdir}/''libltdl'
5084 DIRLTDL=libltdl
5086 cat >>confdefs.h <<\_ACEOF
5087 #define USE_LTDL 1
5088 _ACEOF
5090 # Sigh. Libtool's macro doesn't do the right thing.
5091 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
5092 # FIXME: this is a hack.
5093 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
5094 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
5099 # Check whether --enable-shared or --disable-shared was given.
5100 if test "${enable_shared+set}" = set; then
5101 enableval="$enable_shared"
5102 p=${PACKAGE-default}
5103 case $enableval in
5104 yes) enable_shared=yes ;;
5105 no) enable_shared=no ;;
5107 enable_shared=no
5108 # Look at the argument we got. We use all the common list separators.
5109 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5110 for pkg in $enableval; do
5111 if test "X$pkg" = "X$p"; then
5112 enable_shared=yes
5114 done
5115 IFS="$ac_save_ifs"
5117 esac
5118 else
5119 enable_shared=yes
5121 # Check whether --enable-static or --disable-static was given.
5122 if test "${enable_static+set}" = set; then
5123 enableval="$enable_static"
5124 p=${PACKAGE-default}
5125 case $enableval in
5126 yes) enable_static=yes ;;
5127 no) enable_static=no ;;
5129 enable_static=no
5130 # Look at the argument we got. We use all the common list separators.
5131 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5132 for pkg in $enableval; do
5133 if test "X$pkg" = "X$p"; then
5134 enable_static=yes
5136 done
5137 IFS="$ac_save_ifs"
5139 esac
5140 else
5141 enable_static=yes
5143 # Check whether --enable-fast-install or --disable-fast-install was given.
5144 if test "${enable_fast_install+set}" = set; then
5145 enableval="$enable_fast_install"
5146 p=${PACKAGE-default}
5147 case $enableval in
5148 yes) enable_fast_install=yes ;;
5149 no) enable_fast_install=no ;;
5151 enable_fast_install=no
5152 # Look at the argument we got. We use all the common list separators.
5153 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5154 for pkg in $enableval; do
5155 if test "X$pkg" = "X$p"; then
5156 enable_fast_install=yes
5158 done
5159 IFS="$ac_save_ifs"
5161 esac
5162 else
5163 enable_fast_install=yes
5166 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5167 if test "${with_gnu_ld+set}" = set; then
5168 withval="$with_gnu_ld"
5169 test "$withval" = no || with_gnu_ld=yes
5170 else
5171 with_gnu_ld=no
5173 ac_prog=ld
5174 if test "$GCC" = yes; then
5175 # Check if gcc -print-prog-name=ld gives a path.
5176 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5177 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5178 case $host in
5179 *-*-mingw*)
5180 # gcc leaves a trailing carriage return which upsets mingw
5181 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5183 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5184 esac
5185 case $ac_prog in
5186 # Accept absolute paths.
5187 [\\/]* | [A-Za-z]:[\\/]*)
5188 re_direlt='/[^/][^/]*/\.\./'
5189 # Canonicalize the path of ld
5190 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5191 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5192 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5193 done
5194 test -z "$LD" && LD="$ac_prog"
5197 # If it fails, then pretend we aren't using GCC.
5198 ac_prog=ld
5201 # If it is relative, then search for the first ld in PATH.
5202 with_gnu_ld=unknown
5204 esac
5205 elif test "$with_gnu_ld" = yes; then
5206 echo "$as_me:$LINENO: checking for GNU ld" >&5
5207 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5208 else
5209 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5210 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5212 if test "${lt_cv_path_LD+set}" = set; then
5213 echo $ECHO_N "(cached) $ECHO_C" >&6
5214 else
5215 if test -z "$LD"; then
5216 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5217 for ac_dir in $PATH; do
5218 test -z "$ac_dir" && ac_dir=.
5219 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5220 lt_cv_path_LD="$ac_dir/$ac_prog"
5221 # Check to see if the program is GNU ld. I'd rather use --version,
5222 # but apparently some GNU ld's only accept -v.
5223 # Break only if it was the GNU/non-GNU ld that we prefer.
5224 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5225 test "$with_gnu_ld" != no && break
5226 else
5227 test "$with_gnu_ld" != yes && break
5230 done
5231 IFS="$ac_save_ifs"
5232 else
5233 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5237 LD="$lt_cv_path_LD"
5238 if test -n "$LD"; then
5239 echo "$as_me:$LINENO: result: $LD" >&5
5240 echo "${ECHO_T}$LD" >&6
5241 else
5242 echo "$as_me:$LINENO: result: no" >&5
5243 echo "${ECHO_T}no" >&6
5245 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5246 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5247 { (exit 1); exit 1; }; }
5248 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5249 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5250 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5251 echo $ECHO_N "(cached) $ECHO_C" >&6
5252 else
5253 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5254 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5255 lt_cv_prog_gnu_ld=yes
5256 else
5257 lt_cv_prog_gnu_ld=no
5260 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5261 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5262 with_gnu_ld=$lt_cv_prog_gnu_ld
5265 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5266 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5267 if test "${lt_cv_ld_reload_flag+set}" = set; then
5268 echo $ECHO_N "(cached) $ECHO_C" >&6
5269 else
5270 lt_cv_ld_reload_flag='-r'
5272 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5273 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5274 reload_flag=$lt_cv_ld_reload_flag
5275 test -n "$reload_flag" && reload_flag=" $reload_flag"
5277 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5278 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5279 if test "${lt_cv_path_NM+set}" = set; then
5280 echo $ECHO_N "(cached) $ECHO_C" >&6
5281 else
5282 if test -n "$NM"; then
5283 # Let the user override the test.
5284 lt_cv_path_NM="$NM"
5285 else
5286 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5287 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5288 test -z "$ac_dir" && ac_dir=.
5289 tmp_nm=$ac_dir/${ac_tool_prefix}nm
5290 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
5291 # Check to see if the nm accepts a BSD-compat flag.
5292 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5293 # nm: unknown option "B" ignored
5294 # Tru64's nm complains that /dev/null is an invalid object file
5295 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
5296 lt_cv_path_NM="$tmp_nm -B"
5297 break
5298 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
5299 lt_cv_path_NM="$tmp_nm -p"
5300 break
5301 else
5302 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5303 continue # so that we can try to find one that supports BSD flags
5306 done
5307 IFS="$ac_save_ifs"
5308 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5312 NM="$lt_cv_path_NM"
5313 echo "$as_me:$LINENO: result: $NM" >&5
5314 echo "${ECHO_T}$NM" >&6
5316 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
5317 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
5318 if test "${lt_cv_deplibs_check_method+set}" = set; then
5319 echo $ECHO_N "(cached) $ECHO_C" >&6
5320 else
5321 lt_cv_file_magic_cmd='$MAGIC_CMD'
5322 lt_cv_file_magic_test_file=
5323 lt_cv_deplibs_check_method='unknown'
5324 # Need to set the preceding variable on all platforms that support
5325 # interlibrary dependencies.
5326 # 'none' -- dependencies not supported.
5327 # `unknown' -- same as none, but documents that we really don't know.
5328 # 'pass_all' -- all dependencies passed with no checks.
5329 # 'test_compile' -- check by making test program.
5330 # 'file_magic [regex]' -- check by looking for files in library path
5331 # which responds to the $file_magic_cmd with a given egrep regex.
5332 # If you have `file' or equivalent on your system and you're not sure
5333 # whether `pass_all' will *always* work, you probably want this one.
5335 case $host_os in
5336 aix*)
5337 lt_cv_deplibs_check_method=pass_all
5340 beos*)
5341 lt_cv_deplibs_check_method=pass_all
5344 bsdi4*)
5345 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5346 lt_cv_file_magic_cmd='/usr/bin/file -L'
5347 lt_cv_file_magic_test_file=/shlib/libc.so
5350 cygwin* | mingw* |pw32*)
5351 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5352 lt_cv_file_magic_cmd='$OBJDUMP -f'
5355 darwin* | rhapsody*)
5356 # this will be overwritten by pass_all, but leave it in just in case
5357 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5358 lt_cv_file_magic_cmd='/usr/bin/file -L'
5359 case "$host_os" in
5360 rhapsody* | darwin1.012)
5361 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
5363 *) # Darwin 1.3 on
5364 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5366 esac
5367 lt_cv_deplibs_check_method=pass_all
5370 freebsd* | kfreebsd*-gnu)
5371 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5372 case $host_cpu in
5373 i*86 )
5374 # Not sure whether the presence of OpenBSD here was a mistake.
5375 # Let's accept both of them until this is cleared up.
5376 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5377 lt_cv_file_magic_cmd=/usr/bin/file
5378 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5380 esac
5381 else
5382 lt_cv_deplibs_check_method=pass_all
5386 gnu*)
5387 lt_cv_deplibs_check_method=pass_all
5390 hpux10.20*|hpux11*)
5391 case $host_cpu in
5392 hppa*)
5393 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5394 lt_cv_file_magic_cmd=/usr/bin/file
5395 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5397 ia64*)
5398 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5399 lt_cv_file_magic_cmd=/usr/bin/file
5400 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5402 esac
5405 irix5* | irix6*)
5406 case $host_os in
5407 irix5*)
5408 # this will be overridden with pass_all, but let us keep it just in case
5409 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5412 case $LD in
5413 *-32|*"-32 ") libmagic=32-bit;;
5414 *-n32|*"-n32 ") libmagic=N32;;
5415 *-64|*"-64 ") libmagic=64-bit;;
5416 *) libmagic=never-match;;
5417 esac
5418 # this will be overridden with pass_all, but let us keep it just in case
5419 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5421 esac
5422 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5423 lt_cv_deplibs_check_method=pass_all
5426 # This must be Linux ELF.
5427 linux-gnu*)
5428 lt_cv_deplibs_check_method=pass_all
5431 netbsd* | knetbsd*-gnu)
5432 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5433 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
5434 else
5435 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
5439 newsos6)
5440 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5441 lt_cv_file_magic_cmd=/usr/bin/file
5442 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5445 osf3* | osf4* | osf5*)
5446 # this will be overridden with pass_all, but let us keep it just in case
5447 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5448 lt_cv_file_magic_test_file=/shlib/libc.so
5449 lt_cv_deplibs_check_method=pass_all
5452 sco3.2v5*)
5453 lt_cv_deplibs_check_method=pass_all
5456 solaris*)
5457 lt_cv_deplibs_check_method=pass_all
5458 lt_cv_file_magic_test_file=/lib/libc.so
5461 sysv5uw[78]* | sysv4*uw2*)
5462 lt_cv_deplibs_check_method=pass_all
5465 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5466 case $host_vendor in
5467 ncr)
5468 lt_cv_deplibs_check_method=pass_all
5470 motorola)
5471 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]'
5472 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5474 esac
5476 esac
5479 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5480 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5481 file_magic_cmd=$lt_cv_file_magic_cmd
5482 deplibs_check_method=$lt_cv_deplibs_check_method
5487 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5489 # find the maximum length of command line arguments
5490 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5491 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5492 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5493 echo $ECHO_N "(cached) $ECHO_C" >&6
5494 else
5496 teststring="ABCD"
5498 case $build_os in
5499 msdosdjgpp*)
5500 # On DJGPP, this test can blow up pretty badly due to problems in libc
5501 # (any single argument exceeding 2000 bytes causes a buffer overrun
5502 # during glob expansion). Even if it were fixed, the result of this
5503 # check would be larger than it should be.
5504 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5507 cygwin* | mingw*)
5508 # On Win9x/ME, this test blows up -- it succeeds, but takes
5509 # about 5 minutes as the teststring grows exponentially.
5510 # Worse, since 9x/ME are not pre-emptively multitasking,
5511 # you end up with a "frozen" computer, even though with patience
5512 # the test eventually succeeds (with a max line length of 256k).
5513 # Instead, let's just punt: use the minimum linelength reported by
5514 # all of the supported platforms: 8192 (on NT/2K/XP).
5515 lt_cv_sys_max_cmd_len=8192;
5518 amigaos*)
5519 # On AmigaOS with pdksh, this test takes hours, literally.
5520 # So we just punt and use a minimum line length of 8192.
5521 lt_cv_sys_max_cmd_len=8192;
5524 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5525 # This has been around since 386BSD, at least. Likely further.
5526 if test -x /sbin/sysctl; then
5527 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5528 elif test -x /usr/sbin/sysctl; then
5529 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5530 else
5531 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5533 # And add a safety zone
5534 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5535 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5537 esac
5541 if test -n "$lt_cv_sys_max_cmd_len" ; then
5542 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5543 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5544 else
5545 echo "$as_me:$LINENO: result: none" >&5
5546 echo "${ECHO_T}none" >&6
5550 # Only perform the check for file, if the check method requires it
5551 case $deplibs_check_method in
5552 file_magic*)
5553 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5554 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5555 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5556 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5557 echo $ECHO_N "(cached) $ECHO_C" >&6
5558 else
5559 case $MAGIC_CMD in
5561 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5563 ?:/*)
5564 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5567 ac_save_MAGIC_CMD="$MAGIC_CMD"
5568 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5569 ac_dummy="/usr/bin:$PATH"
5570 for ac_dir in $ac_dummy; do
5571 test -z "$ac_dir" && ac_dir=.
5572 if test -f $ac_dir/${ac_tool_prefix}file; then
5573 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5574 if test -n "$file_magic_test_file"; then
5575 case $deplibs_check_method in
5576 "file_magic "*)
5577 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5578 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5579 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5580 egrep "$file_magic_regex" > /dev/null; then
5582 else
5583 cat <<EOF 1>&2
5585 *** Warning: the command libtool uses to detect shared libraries,
5586 *** $file_magic_cmd, produces output that libtool cannot recognize.
5587 *** The result is that libtool may fail to recognize shared libraries
5588 *** as such. This will affect the creation of libtool libraries that
5589 *** depend on shared libraries, but programs linked with such libtool
5590 *** libraries will work regardless of this problem. Nevertheless, you
5591 *** may want to report the problem to your system manager and/or to
5592 *** bug-libtool@gnu.org
5595 fi ;;
5596 esac
5598 break
5600 done
5601 IFS="$ac_save_ifs"
5602 MAGIC_CMD="$ac_save_MAGIC_CMD"
5604 esac
5607 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5608 if test -n "$MAGIC_CMD"; then
5609 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5610 echo "${ECHO_T}$MAGIC_CMD" >&6
5611 else
5612 echo "$as_me:$LINENO: result: no" >&5
5613 echo "${ECHO_T}no" >&6
5616 if test -z "$lt_cv_path_MAGIC_CMD"; then
5617 if test -n "$ac_tool_prefix"; then
5618 echo "$as_me:$LINENO: checking for file" >&5
5619 echo $ECHO_N "checking for file... $ECHO_C" >&6
5620 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5621 echo $ECHO_N "(cached) $ECHO_C" >&6
5622 else
5623 case $MAGIC_CMD in
5625 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5627 ?:/*)
5628 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5631 ac_save_MAGIC_CMD="$MAGIC_CMD"
5632 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5633 ac_dummy="/usr/bin:$PATH"
5634 for ac_dir in $ac_dummy; do
5635 test -z "$ac_dir" && ac_dir=.
5636 if test -f $ac_dir/file; then
5637 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5638 if test -n "$file_magic_test_file"; then
5639 case $deplibs_check_method in
5640 "file_magic "*)
5641 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5642 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5643 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5644 egrep "$file_magic_regex" > /dev/null; then
5646 else
5647 cat <<EOF 1>&2
5649 *** Warning: the command libtool uses to detect shared libraries,
5650 *** $file_magic_cmd, produces output that libtool cannot recognize.
5651 *** The result is that libtool may fail to recognize shared libraries
5652 *** as such. This will affect the creation of libtool libraries that
5653 *** depend on shared libraries, but programs linked with such libtool
5654 *** libraries will work regardless of this problem. Nevertheless, you
5655 *** may want to report the problem to your system manager and/or to
5656 *** bug-libtool@gnu.org
5659 fi ;;
5660 esac
5662 break
5664 done
5665 IFS="$ac_save_ifs"
5666 MAGIC_CMD="$ac_save_MAGIC_CMD"
5668 esac
5671 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5672 if test -n "$MAGIC_CMD"; then
5673 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5674 echo "${ECHO_T}$MAGIC_CMD" >&6
5675 else
5676 echo "$as_me:$LINENO: result: no" >&5
5677 echo "${ECHO_T}no" >&6
5680 else
5681 MAGIC_CMD=:
5687 esac
5689 if test -n "$ac_tool_prefix"; then
5690 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5691 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5692 echo "$as_me:$LINENO: checking for $ac_word" >&5
5693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5694 if test "${ac_cv_prog_RANLIB+set}" = set; then
5695 echo $ECHO_N "(cached) $ECHO_C" >&6
5696 else
5697 if test -n "$RANLIB"; then
5698 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5699 else
5700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5701 for as_dir in $PATH
5703 IFS=$as_save_IFS
5704 test -z "$as_dir" && as_dir=.
5705 for ac_exec_ext in '' $ac_executable_extensions; do
5706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5707 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5709 break 2
5711 done
5712 done
5716 RANLIB=$ac_cv_prog_RANLIB
5717 if test -n "$RANLIB"; then
5718 echo "$as_me:$LINENO: result: $RANLIB" >&5
5719 echo "${ECHO_T}$RANLIB" >&6
5720 else
5721 echo "$as_me:$LINENO: result: no" >&5
5722 echo "${ECHO_T}no" >&6
5726 if test -z "$ac_cv_prog_RANLIB"; then
5727 ac_ct_RANLIB=$RANLIB
5728 # Extract the first word of "ranlib", so it can be a program name with args.
5729 set dummy ranlib; ac_word=$2
5730 echo "$as_me:$LINENO: checking for $ac_word" >&5
5731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5732 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5733 echo $ECHO_N "(cached) $ECHO_C" >&6
5734 else
5735 if test -n "$ac_ct_RANLIB"; then
5736 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5737 else
5738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739 for as_dir in $PATH
5741 IFS=$as_save_IFS
5742 test -z "$as_dir" && as_dir=.
5743 for ac_exec_ext in '' $ac_executable_extensions; do
5744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5745 ac_cv_prog_ac_ct_RANLIB="ranlib"
5746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5747 break 2
5749 done
5750 done
5752 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5755 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5756 if test -n "$ac_ct_RANLIB"; then
5757 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5758 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5759 else
5760 echo "$as_me:$LINENO: result: no" >&5
5761 echo "${ECHO_T}no" >&6
5764 RANLIB=$ac_ct_RANLIB
5765 else
5766 RANLIB="$ac_cv_prog_RANLIB"
5769 if test -n "$ac_tool_prefix"; then
5770 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5771 set dummy ${ac_tool_prefix}strip; ac_word=$2
5772 echo "$as_me:$LINENO: checking for $ac_word" >&5
5773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5774 if test "${ac_cv_prog_STRIP+set}" = set; then
5775 echo $ECHO_N "(cached) $ECHO_C" >&6
5776 else
5777 if test -n "$STRIP"; then
5778 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5779 else
5780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781 for as_dir in $PATH
5783 IFS=$as_save_IFS
5784 test -z "$as_dir" && as_dir=.
5785 for ac_exec_ext in '' $ac_executable_extensions; do
5786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5787 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5789 break 2
5791 done
5792 done
5796 STRIP=$ac_cv_prog_STRIP
5797 if test -n "$STRIP"; then
5798 echo "$as_me:$LINENO: result: $STRIP" >&5
5799 echo "${ECHO_T}$STRIP" >&6
5800 else
5801 echo "$as_me:$LINENO: result: no" >&5
5802 echo "${ECHO_T}no" >&6
5806 if test -z "$ac_cv_prog_STRIP"; then
5807 ac_ct_STRIP=$STRIP
5808 # Extract the first word of "strip", so it can be a program name with args.
5809 set dummy strip; ac_word=$2
5810 echo "$as_me:$LINENO: checking for $ac_word" >&5
5811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5812 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5813 echo $ECHO_N "(cached) $ECHO_C" >&6
5814 else
5815 if test -n "$ac_ct_STRIP"; then
5816 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5817 else
5818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819 for as_dir in $PATH
5821 IFS=$as_save_IFS
5822 test -z "$as_dir" && as_dir=.
5823 for ac_exec_ext in '' $ac_executable_extensions; do
5824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5825 ac_cv_prog_ac_ct_STRIP="strip"
5826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5827 break 2
5829 done
5830 done
5832 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5835 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5836 if test -n "$ac_ct_STRIP"; then
5837 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5838 echo "${ECHO_T}$ac_ct_STRIP" >&6
5839 else
5840 echo "$as_me:$LINENO: result: no" >&5
5841 echo "${ECHO_T}no" >&6
5844 STRIP=$ac_ct_STRIP
5845 else
5846 STRIP="$ac_cv_prog_STRIP"
5850 # Check for any special flags to pass to ltconfig.
5851 libtool_flags="--cache-file=$cache_file"
5852 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
5853 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
5854 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
5855 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
5856 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
5859 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5860 if test "${enable_libtool_lock+set}" = set; then
5861 enableval="$enable_libtool_lock"
5864 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
5865 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
5868 # Check whether --with-pic or --without-pic was given.
5869 if test "${with_pic+set}" = set; then
5870 withval="$with_pic"
5871 pic_mode="$withval"
5872 else
5873 pic_mode=default
5875 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
5876 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
5878 # Some flags need to be propagated to the compiler or linker for good
5879 # libtool support.
5880 case $host in
5881 *-*-irix6*)
5882 # Find out which ABI we are using.
5883 echo '#line 5883 "configure"' > conftest.$ac_ext
5884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5885 (eval $ac_compile) 2>&5
5886 ac_status=$?
5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); }; then
5889 if test "$lt_cv_prog_gnu_ld" = yes; then
5890 case `/usr/bin/file conftest.$ac_objext` in
5891 *32-bit*)
5892 LD="${LD-ld} -melf32bsmip"
5894 *N32*)
5895 LD="${LD-ld} -melf32bmipn32"
5897 *64-bit*)
5898 LD="${LD-ld} -melf64bmip"
5900 esac
5901 else
5902 case `/usr/bin/file conftest.$ac_objext` in
5903 *32-bit*)
5904 LD="${LD-ld} -32"
5906 *N32*)
5907 LD="${LD-ld} -n32"
5909 *64-bit*)
5910 LD="${LD-ld} -64"
5912 esac
5915 rm -rf conftest*
5918 ia64-*-hpux*)
5919 # Find out which ABI we are using.
5920 echo 'int i;' > conftest.$ac_ext
5921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5922 (eval $ac_compile) 2>&5
5923 ac_status=$?
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); }; then
5926 case "`/usr/bin/file conftest.o`" in
5927 *ELF-32*)
5928 HPUX_IA64_MODE="32"
5930 *ELF-64*)
5931 HPUX_IA64_MODE="64"
5933 esac
5935 rm -rf conftest*
5938 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5939 # Find out which ABI we are using.
5940 echo 'int i;' > conftest.$ac_ext
5941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5942 (eval $ac_compile) 2>&5
5943 ac_status=$?
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); }; then
5946 case "`/usr/bin/file conftest.o`" in
5947 *32-bit*)
5948 case $host in
5949 x86_64-*linux*)
5950 LD="${LD-ld} -m elf_i386"
5952 ppc64-*linux*|powerpc64-*linux*)
5953 LD="${LD-ld} -m elf32ppclinux"
5955 s390x-*linux*)
5956 LD="${LD-ld} -m elf_s390"
5958 sparc64-*linux*)
5959 LD="${LD-ld} -m elf32_sparc"
5961 esac
5963 *64-bit*)
5964 case $host in
5965 x86_64-*linux*)
5966 LD="${LD-ld} -m elf_x86_64"
5968 ppc*-*linux*|powerpc*-*linux*)
5969 LD="${LD-ld} -m elf64ppc"
5971 s390*-*linux*)
5972 LD="${LD-ld} -m elf64_s390"
5974 sparc*-*linux*)
5975 LD="${LD-ld} -m elf64_sparc"
5977 esac
5979 esac
5981 rm -rf conftest*
5984 *-*-sco3.2v5*)
5985 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5986 SAVE_CFLAGS="$CFLAGS"
5987 CFLAGS="$CFLAGS -belf"
5988 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5989 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5990 if test "${lt_cv_cc_needs_belf+set}" = set; then
5991 echo $ECHO_N "(cached) $ECHO_C" >&6
5992 else
5995 ac_ext=c
5996 ac_cpp='$CPP $CPPFLAGS'
5997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6001 if test x$gcc_no_link = xyes; then
6002 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6003 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6004 { (exit 1); exit 1; }; }
6006 cat >conftest.$ac_ext <<_ACEOF
6007 /* confdefs.h. */
6008 _ACEOF
6009 cat confdefs.h >>conftest.$ac_ext
6010 cat >>conftest.$ac_ext <<_ACEOF
6011 /* end confdefs.h. */
6014 main ()
6018 return 0;
6020 _ACEOF
6021 rm -f conftest.$ac_objext conftest$ac_exeext
6022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6023 (eval $ac_link) 2>conftest.er1
6024 ac_status=$?
6025 grep -v '^ *+' conftest.er1 >conftest.err
6026 rm -f conftest.er1
6027 cat conftest.err >&5
6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029 (exit $ac_status); } &&
6030 { ac_try='test -z "$ac_c_werror_flag"
6031 || test ! -s conftest.err'
6032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6033 (eval $ac_try) 2>&5
6034 ac_status=$?
6035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036 (exit $ac_status); }; } &&
6037 { ac_try='test -s conftest$ac_exeext'
6038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6039 (eval $ac_try) 2>&5
6040 ac_status=$?
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); }; }; then
6043 lt_cv_cc_needs_belf=yes
6044 else
6045 echo "$as_me: failed program was:" >&5
6046 sed 's/^/| /' conftest.$ac_ext >&5
6048 lt_cv_cc_needs_belf=no
6050 rm -f conftest.err conftest.$ac_objext \
6051 conftest$ac_exeext conftest.$ac_ext
6052 ac_ext=c
6053 ac_cpp='$CPP $CPPFLAGS'
6054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6059 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6060 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6061 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6062 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6063 CFLAGS="$SAVE_CFLAGS"
6068 esac
6071 # Save cache, so that ltconfig can load it
6072 cat >confcache <<\_ACEOF
6073 # This file is a shell script that caches the results of configure
6074 # tests run on this system so they can be shared between configure
6075 # scripts and configure runs, see configure's option --config-cache.
6076 # It is not useful on other systems. If it contains results you don't
6077 # want to keep, you may remove or edit it.
6079 # config.status only pays attention to the cache file if you give it
6080 # the --recheck option to rerun configure.
6082 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6083 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6084 # following values.
6086 _ACEOF
6088 # The following way of writing the cache mishandles newlines in values,
6089 # but we know of no workaround that is simple, portable, and efficient.
6090 # So, don't put newlines in cache variables' values.
6091 # Ultrix sh set writes to stderr and can't be redirected directly,
6092 # and sets the high bit in the cache file unless we assign to the vars.
6094 (set) 2>&1 |
6095 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6096 *ac_space=\ *)
6097 # `set' does not quote correctly, so add quotes (double-quote
6098 # substitution turns \\\\ into \\, and sed turns \\ into \).
6099 sed -n \
6100 "s/'/'\\\\''/g;
6101 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6104 # `set' quotes correctly as required by POSIX, so do not add quotes.
6105 sed -n \
6106 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6108 esac;
6110 sed '
6111 t clear
6112 : clear
6113 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6114 t end
6115 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6116 : end' >>confcache
6117 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6118 if test -w $cache_file; then
6119 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6120 cat confcache >$cache_file
6121 else
6122 echo "not updating unwritable cache $cache_file"
6125 rm -f confcache
6127 # Actually configure libtool. ac_aux_dir is where install-sh is found.
6128 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
6129 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6130 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6131 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6132 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6133 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
6134 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
6135 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
6136 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
6137 echo "$as_me: error: libtool configure failed" >&2;}
6138 { (exit 1); exit 1; }; }
6140 # Reload cache, that may have been modified by ltconfig
6141 if test -r "$cache_file"; then
6142 # Some versions of bash will fail to source /dev/null (special
6143 # files actually), so we avoid doing that.
6144 if test -f "$cache_file"; then
6145 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
6146 echo "$as_me: loading cache $cache_file" >&6;}
6147 case $cache_file in
6148 [\\/]* | ?:[\\/]* ) . $cache_file;;
6149 *) . ./$cache_file;;
6150 esac
6152 else
6153 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
6154 echo "$as_me: creating cache $cache_file" >&6;}
6155 >$cache_file
6159 # This can be used to rebuild libtool when needed
6160 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
6162 # Always use our own libtool.
6163 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6165 # Redirect the config.log output again, so that the ltconfig log is not
6166 # clobbered by the next message.
6167 exec 5>>./config.log
6169 ac_ext=cc
6170 ac_cpp='$CXXCPP $CPPFLAGS'
6171 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6172 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6173 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6174 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6175 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6176 if test -z "$CXXCPP"; then
6177 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6178 echo $ECHO_N "(cached) $ECHO_C" >&6
6179 else
6180 # Double quotes because CXXCPP needs to be expanded
6181 for CXXCPP in "$CXX -E" "/lib/cpp"
6183 ac_preproc_ok=false
6184 for ac_cxx_preproc_warn_flag in '' yes
6186 # Use a header file that comes with gcc, so configuring glibc
6187 # with a fresh cross-compiler works.
6188 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6189 # <limits.h> exists even on freestanding compilers.
6190 # On the NeXT, cc -E runs the code through the compiler's parser,
6191 # not just through cpp. "Syntax error" is here to catch this case.
6192 cat >conftest.$ac_ext <<_ACEOF
6193 /* confdefs.h. */
6194 _ACEOF
6195 cat confdefs.h >>conftest.$ac_ext
6196 cat >>conftest.$ac_ext <<_ACEOF
6197 /* end confdefs.h. */
6198 #ifdef __STDC__
6199 # include <limits.h>
6200 #else
6201 # include <assert.h>
6202 #endif
6203 Syntax error
6204 _ACEOF
6205 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6206 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6207 ac_status=$?
6208 grep -v '^ *+' conftest.er1 >conftest.err
6209 rm -f conftest.er1
6210 cat conftest.err >&5
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); } >/dev/null; then
6213 if test -s conftest.err; then
6214 ac_cpp_err=$ac_cxx_preproc_warn_flag
6215 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6216 else
6217 ac_cpp_err=
6219 else
6220 ac_cpp_err=yes
6222 if test -z "$ac_cpp_err"; then
6224 else
6225 echo "$as_me: failed program was:" >&5
6226 sed 's/^/| /' conftest.$ac_ext >&5
6228 # Broken: fails on valid input.
6229 continue
6231 rm -f conftest.err conftest.$ac_ext
6233 # OK, works on sane cases. Now check whether non-existent headers
6234 # can be detected and how.
6235 cat >conftest.$ac_ext <<_ACEOF
6236 /* confdefs.h. */
6237 _ACEOF
6238 cat confdefs.h >>conftest.$ac_ext
6239 cat >>conftest.$ac_ext <<_ACEOF
6240 /* end confdefs.h. */
6241 #include <ac_nonexistent.h>
6242 _ACEOF
6243 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6245 ac_status=$?
6246 grep -v '^ *+' conftest.er1 >conftest.err
6247 rm -f conftest.er1
6248 cat conftest.err >&5
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); } >/dev/null; then
6251 if test -s conftest.err; then
6252 ac_cpp_err=$ac_cxx_preproc_warn_flag
6253 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6254 else
6255 ac_cpp_err=
6257 else
6258 ac_cpp_err=yes
6260 if test -z "$ac_cpp_err"; then
6261 # Broken: success on invalid input.
6262 continue
6263 else
6264 echo "$as_me: failed program was:" >&5
6265 sed 's/^/| /' conftest.$ac_ext >&5
6267 # Passes both tests.
6268 ac_preproc_ok=:
6269 break
6271 rm -f conftest.err conftest.$ac_ext
6273 done
6274 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6275 rm -f conftest.err conftest.$ac_ext
6276 if $ac_preproc_ok; then
6277 break
6280 done
6281 ac_cv_prog_CXXCPP=$CXXCPP
6284 CXXCPP=$ac_cv_prog_CXXCPP
6285 else
6286 ac_cv_prog_CXXCPP=$CXXCPP
6288 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6289 echo "${ECHO_T}$CXXCPP" >&6
6290 ac_preproc_ok=false
6291 for ac_cxx_preproc_warn_flag in '' yes
6293 # Use a header file that comes with gcc, so configuring glibc
6294 # with a fresh cross-compiler works.
6295 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6296 # <limits.h> exists even on freestanding compilers.
6297 # On the NeXT, cc -E runs the code through the compiler's parser,
6298 # not just through cpp. "Syntax error" is here to catch this case.
6299 cat >conftest.$ac_ext <<_ACEOF
6300 /* confdefs.h. */
6301 _ACEOF
6302 cat confdefs.h >>conftest.$ac_ext
6303 cat >>conftest.$ac_ext <<_ACEOF
6304 /* end confdefs.h. */
6305 #ifdef __STDC__
6306 # include <limits.h>
6307 #else
6308 # include <assert.h>
6309 #endif
6310 Syntax error
6311 _ACEOF
6312 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6313 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6314 ac_status=$?
6315 grep -v '^ *+' conftest.er1 >conftest.err
6316 rm -f conftest.er1
6317 cat conftest.err >&5
6318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); } >/dev/null; then
6320 if test -s conftest.err; then
6321 ac_cpp_err=$ac_cxx_preproc_warn_flag
6322 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6323 else
6324 ac_cpp_err=
6326 else
6327 ac_cpp_err=yes
6329 if test -z "$ac_cpp_err"; then
6331 else
6332 echo "$as_me: failed program was:" >&5
6333 sed 's/^/| /' conftest.$ac_ext >&5
6335 # Broken: fails on valid input.
6336 continue
6338 rm -f conftest.err conftest.$ac_ext
6340 # OK, works on sane cases. Now check whether non-existent headers
6341 # can be detected and how.
6342 cat >conftest.$ac_ext <<_ACEOF
6343 /* confdefs.h. */
6344 _ACEOF
6345 cat confdefs.h >>conftest.$ac_ext
6346 cat >>conftest.$ac_ext <<_ACEOF
6347 /* end confdefs.h. */
6348 #include <ac_nonexistent.h>
6349 _ACEOF
6350 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6351 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6352 ac_status=$?
6353 grep -v '^ *+' conftest.er1 >conftest.err
6354 rm -f conftest.er1
6355 cat conftest.err >&5
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); } >/dev/null; then
6358 if test -s conftest.err; then
6359 ac_cpp_err=$ac_cxx_preproc_warn_flag
6360 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6361 else
6362 ac_cpp_err=
6364 else
6365 ac_cpp_err=yes
6367 if test -z "$ac_cpp_err"; then
6368 # Broken: success on invalid input.
6369 continue
6370 else
6371 echo "$as_me: failed program was:" >&5
6372 sed 's/^/| /' conftest.$ac_ext >&5
6374 # Passes both tests.
6375 ac_preproc_ok=:
6376 break
6378 rm -f conftest.err conftest.$ac_ext
6380 done
6381 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6382 rm -f conftest.err conftest.$ac_ext
6383 if $ac_preproc_ok; then
6385 else
6386 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6387 See \`config.log' for more details." >&5
6388 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6389 See \`config.log' for more details." >&2;}
6390 { (exit 1); exit 1; }; }
6393 ac_ext=c
6394 ac_cpp='$CPP $CPPFLAGS'
6395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6401 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
6402 lt_save_CC="$CC"
6403 lt_save_CFLAGS="$CFLAGS"
6404 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
6405 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6406 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6407 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6408 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6409 deplibs_check_method="$deplibs_check_method" \
6410 file_magic_cmd="$file_magic_cmd" \
6411 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6412 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
6413 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6414 echo "$as_me: error: libtool tag configuration failed" >&2;}
6415 { (exit 1); exit 1; }; }
6416 CC="$lt_save_CC"
6417 CFLAGS="$lt_save_CFLAGS"
6419 # Redirect the config.log output again, so that the ltconfig log is not
6420 # clobbered by the next message.
6421 exec 5>>./config.log
6429 for ac_prog in gcj
6431 # Extract the first word of "$ac_prog", so it can be a program name with args.
6432 set dummy $ac_prog; ac_word=$2
6433 echo "$as_me:$LINENO: checking for $ac_word" >&5
6434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6435 if test "${ac_cv_prog_GCJ+set}" = set; then
6436 echo $ECHO_N "(cached) $ECHO_C" >&6
6437 else
6438 if test -n "$GCJ"; then
6439 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
6440 else
6441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442 for as_dir in $PATH
6444 IFS=$as_save_IFS
6445 test -z "$as_dir" && as_dir=.
6446 for ac_exec_ext in '' $ac_executable_extensions; do
6447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6448 ac_cv_prog_GCJ="$ac_prog"
6449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6450 break 2
6452 done
6453 done
6457 GCJ=$ac_cv_prog_GCJ
6458 if test -n "$GCJ"; then
6459 echo "$as_me:$LINENO: result: $GCJ" >&5
6460 echo "${ECHO_T}$GCJ" >&6
6461 else
6462 echo "$as_me:$LINENO: result: no" >&5
6463 echo "${ECHO_T}no" >&6
6466 test -n "$GCJ" && break
6467 done
6468 test -n "$GCJ" || GCJ="gcj"
6470 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
6471 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
6472 { (exit 1); exit 1; }; }
6473 if test "x${GCJFLAGS-unset}" = xunset; then
6474 GCJFLAGS="-g -O2"
6478 depcc="$GCJ" am_compiler_list='gcc3 gcc'
6480 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6481 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6482 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
6484 else
6485 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6486 # We make a subdir and do the tests there. Otherwise we can end up
6487 # making bogus files that we don't know about and never remove. For
6488 # instance it was reported that on HP-UX the gcc test will end up
6489 # making a dummy file named `D' -- because `-MD' means `put the output
6490 # in D'.
6491 mkdir conftest.dir
6492 # Copy depcomp to subdir because otherwise we won't find it if we're
6493 # using a relative directory.
6494 cp "$am_depcomp" conftest.dir
6495 cd conftest.dir
6496 # We will build objects and dependencies in a subdirectory because
6497 # it helps to detect inapplicable dependency modes. For instance
6498 # both Tru64's cc and ICC support -MD to output dependencies as a
6499 # side effect of compilation, but ICC will put the dependencies in
6500 # the current directory while Tru64 will put them in the object
6501 # directory.
6502 mkdir sub
6504 am_cv_GCJ_dependencies_compiler_type=none
6505 if test "$am_compiler_list" = ""; then
6506 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6508 for depmode in $am_compiler_list; do
6509 # Setup a source with many dependencies, because some compilers
6510 # like to wrap large dependency lists on column 80 (with \), and
6511 # we should not choose a depcomp mode which is confused by this.
6513 # We need to recreate these files for each test, as the compiler may
6514 # overwrite some of them when testing with obscure command lines.
6515 # This happens at least with the AIX C compiler.
6516 : > sub/conftest.c
6517 for i in 1 2 3 4 5 6; do
6518 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6519 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6520 # Solaris 8's {/usr,}/bin/sh.
6521 touch sub/conftst$i.h
6522 done
6523 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6525 case $depmode in
6526 nosideeffect)
6527 # after this tag, mechanisms are not by side-effect, so they'll
6528 # only be used when explicitly requested
6529 if test "x$enable_dependency_tracking" = xyes; then
6530 continue
6531 else
6532 break
6535 none) break ;;
6536 esac
6537 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6538 # mode. It turns out that the SunPro C++ compiler does not properly
6539 # handle `-M -o', and we need to detect this.
6540 if depmode=$depmode \
6541 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6542 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6543 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6544 >/dev/null 2>conftest.err &&
6545 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6546 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6547 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6548 # icc doesn't choke on unknown options, it will just issue warnings
6549 # or remarks (even with -Werror). So we grep stderr for any message
6550 # that says an option was ignored or not supported.
6551 # When given -MP, icc 7.0 and 7.1 complain thusly:
6552 # icc: Command line warning: ignoring option '-M'; no argument required
6553 # The diagnosis changed in icc 8.0:
6554 # icc: Command line remark: option '-MP' not supported
6555 if (grep 'ignoring option' conftest.err ||
6556 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6557 am_cv_GCJ_dependencies_compiler_type=$depmode
6558 break
6561 done
6563 cd ..
6564 rm -rf conftest.dir
6565 else
6566 am_cv_GCJ_dependencies_compiler_type=none
6570 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
6571 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
6572 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
6577 test "x$enable_dependency_tracking" != xno \
6578 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
6579 am__fastdepGCJ_TRUE=
6580 am__fastdepGCJ_FALSE='#'
6581 else
6582 am__fastdepGCJ_TRUE='#'
6583 am__fastdepGCJ_FALSE=
6589 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
6590 lt_save_CC="$CC"
6591 lt_save_CFLAGS="$CFLAGS"
6592 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
6593 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6594 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6595 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6596 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6597 deplibs_check_method="$deplibs_check_method" \
6598 file_magic_cmd="$file_magic_cmd" \
6599 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6600 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
6601 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6602 echo "$as_me: error: libtool tag configuration failed" >&2;}
6603 { (exit 1); exit 1; }; }
6604 CC="$lt_save_CC"
6605 CFLAGS="$lt_save_CFLAGS"
6607 # Redirect the config.log output again, so that the ltconfig log is not
6608 # clobbered by the next message.
6609 exec 5>>./config.log
6613 if test "x$CC" != xcc; then
6614 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
6615 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
6616 else
6617 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
6618 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
6620 set dummy $CC; ac_cc=`echo $2 |
6621 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6622 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
6623 echo $ECHO_N "(cached) $ECHO_C" >&6
6624 else
6625 cat >conftest.$ac_ext <<_ACEOF
6626 /* confdefs.h. */
6627 _ACEOF
6628 cat confdefs.h >>conftest.$ac_ext
6629 cat >>conftest.$ac_ext <<_ACEOF
6630 /* end confdefs.h. */
6633 main ()
6637 return 0;
6639 _ACEOF
6640 # Make sure it works both with $CC and with simple cc.
6641 # We do the test twice because some compilers refuse to overwrite an
6642 # existing .o file with -o, though they will create one.
6643 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6644 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6645 (eval $ac_try) 2>&5
6646 ac_status=$?
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); } &&
6649 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6650 (eval $ac_try) 2>&5
6651 ac_status=$?
6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); };
6654 then
6655 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6656 if test "x$CC" != xcc; then
6657 # Test first that cc exists at all.
6658 if { ac_try='cc -c conftest.$ac_ext >&5'
6659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6660 (eval $ac_try) 2>&5
6661 ac_status=$?
6662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663 (exit $ac_status); }; }; then
6664 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6665 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6666 (eval $ac_try) 2>&5
6667 ac_status=$?
6668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669 (exit $ac_status); } &&
6670 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6671 (eval $ac_try) 2>&5
6672 ac_status=$?
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); };
6675 then
6676 # cc works too.
6678 else
6679 # cc exists but doesn't like -o.
6680 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6684 else
6685 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6687 rm -f conftest*
6690 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
6691 echo "$as_me:$LINENO: result: yes" >&5
6692 echo "${ECHO_T}yes" >&6
6693 else
6694 echo "$as_me:$LINENO: result: no" >&5
6695 echo "${ECHO_T}no" >&6
6697 cat >>confdefs.h <<\_ACEOF
6698 #define NO_MINUS_C_MINUS_O 1
6699 _ACEOF
6703 # FIXME: we rely on the cache variable name because
6704 # there is no other way.
6705 set dummy $CC
6706 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6707 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
6708 # Losing compiler, so override with the script.
6709 # FIXME: It is wrong to rewrite CC.
6710 # But if we don't then we get into trouble of one sort or another.
6711 # A longer-term fix would be to have automake use am__CC in this case,
6712 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6713 CC="$am_aux_dir/compile $CC"
6719 subdirs="$subdirs classpath libltdl"
6722 # The -no-testsuite modules omit the test subdir.
6725 if test -d $srcdir/testsuite; then
6726 TESTSUBDIR_TRUE=
6727 TESTSUBDIR_FALSE='#'
6728 else
6729 TESTSUBDIR_TRUE='#'
6730 TESTSUBDIR_FALSE=
6734 # Should the runtime set system properties by examining the
6735 # environment variable GCJ_PROPERTIES?
6736 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
6737 if test "${enable_getenv_properties+set}" = set; then
6738 enableval="$enable_getenv_properties"
6742 # Whether GCJ_PROPERTIES is used depends on the target.
6743 if test -z "$enable_getenv_properties"; then
6744 enable_getenv_properties=${enable_getenv_properties_default-yes}
6746 if test "$enable_getenv_properties" = no; then
6748 cat >>confdefs.h <<\_ACEOF
6749 #define DISABLE_GETENV_PROPERTIES 1
6750 _ACEOF
6754 # Whether we should use arguments to main()
6755 if test -z "$enable_main_args"; then
6756 enable_main_args=${enable_main_args_default-yes}
6758 if test "$enable_main_args" = no; then
6760 cat >>confdefs.h <<\_ACEOF
6761 #define DISABLE_MAIN_ARGS 1
6762 _ACEOF
6767 # Should we use hashtable-based synchronization?
6768 # Currently works only for Linux X86/ia64
6769 # Typically faster and more space-efficient
6770 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
6771 if test "${enable_hash_synchronization+set}" = set; then
6772 enableval="$enable_hash_synchronization"
6776 if test -z "$enable_hash_synchronization"; then
6777 enable_hash_synchronization=$enable_hash_synchronization_default
6781 # Check whether --with-java-home or --without-java-home was given.
6782 if test "${with_java_home+set}" = set; then
6783 withval="$with_java_home"
6784 JAVA_HOME="${withval}"
6785 else
6786 JAVA_HOME=""
6790 if test ! -z "$JAVA_HOME"; then
6791 JAVA_HOME_SET_TRUE=
6792 JAVA_HOME_SET_FALSE='#'
6793 else
6794 JAVA_HOME_SET_TRUE='#'
6795 JAVA_HOME_SET_FALSE=
6800 # What is the native OS API for MinGW?
6802 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
6803 if test "${with_win32_nlsapi+set}" = set; then
6804 withval="$with_win32_nlsapi"
6805 case "${withval}" in
6806 ansi) with_win32_nlsapi=ansi ;;
6807 unicows) with_win32_nlsapi=unicows ;;
6808 unicode) with_win32_nlsapi=unicode ;;
6809 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
6810 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
6811 { (exit 1); exit 1; }; } ;;
6812 esac
6813 else
6814 with_win32_nlsapi=ansi
6817 case "${with_win32_nlsapi}" in
6818 unicows | unicode)
6820 cat >>confdefs.h <<\_ACEOF
6821 #define MINGW_LIBGCJ_UNICODE 1
6822 _ACEOF
6825 esac
6827 # configure.host sets slow_pthread_self if the synchronization code should
6828 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
6829 if test "${slow_pthread_self}" = "yes"; then
6831 cat >>confdefs.h <<\_ACEOF
6832 #define SLOW_PTHREAD_SELF 1
6833 _ACEOF
6837 # Check for gc debugging. This option is handled both here and in the GC.
6838 # Check whether --enable-gc-debug or --disable-gc-debug was given.
6839 if test "${enable_gc_debug+set}" = set; then
6840 enableval="$enable_gc_debug"
6841 if test "$enable_gc_debug" = "yes"; then
6843 cat >>confdefs.h <<\_ACEOF
6844 #define LIBGCJ_GC_DEBUG 1
6845 _ACEOF
6850 # See if the user has the interpreter included.
6851 # Check whether --enable-interpreter or --disable-interpreter was given.
6852 if test "${enable_interpreter+set}" = set; then
6853 enableval="$enable_interpreter"
6854 if test "$enable_interpreter" = yes; then
6855 # This can also be set in configure.host.
6856 libgcj_interpreter=yes
6857 elif test "$enable_interpreter" = no; then
6858 libgcj_interpreter=no
6862 if test "$libgcj_interpreter" = yes; then
6864 cat >>confdefs.h <<\_ACEOF
6865 #define INTERPRETER 1
6866 _ACEOF
6869 INTERPRETER="$libgcj_interpreter"
6872 echo "$as_me:$LINENO: checking for exception model to use" >&5
6873 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
6874 ac_ext=cc
6875 ac_cpp='$CXXCPP $CPPFLAGS'
6876 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6877 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6878 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6880 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
6881 if test "${enable_sjlj_exceptions+set}" = set; then
6882 enableval="$enable_sjlj_exceptions"
6884 else
6885 cat > conftest.$ac_ext << EOF
6886 #line 6886 "configure"
6887 struct S { ~S(); };
6888 void bar();
6889 void foo()
6891 S s;
6892 bar();
6895 old_CXXFLAGS="$CXXFLAGS"
6896 CXXFLAGS=-S
6897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6898 (eval $ac_compile) 2>&5
6899 ac_status=$?
6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); }; then
6902 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
6903 enable_sjlj_exceptions=yes
6904 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
6905 enable_sjlj_exceptions=no
6908 CXXFLAGS="$old_CXXFLAGS"
6909 rm -f conftest*
6911 if test x$enable_sjlj_exceptions = xyes; then
6913 cat >>confdefs.h <<\_ACEOF
6914 #define SJLJ_EXCEPTIONS 1
6915 _ACEOF
6917 ac_exception_model_name=sjlj
6918 elif test x$enable_sjlj_exceptions = xno; then
6919 ac_exception_model_name="call frame"
6920 else
6921 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
6922 echo "$as_me: error: unable to detect exception model" >&2;}
6923 { (exit 1); exit 1; }; }
6925 ac_ext=c
6926 ac_cpp='$CPP $CPPFLAGS'
6927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6931 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
6932 echo "${ECHO_T}$ac_exception_model_name" >&6
6934 # If we are non using SJLJ exceptions, and this host does not have support
6935 # for unwinding from a signal handler, enable checked dereferences and divides.
6936 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
6937 CHECKREFSPEC=-fcheck-references
6938 DIVIDESPEC=-fuse-divide-subroutine
6939 EXCEPTIONSPEC=
6942 # See if the user wants to disable java.net. This is the mildly
6943 # ugly way that we admit that target-side configuration sucks.
6944 # Check whether --enable-java-net or --disable-java-net was given.
6945 if test "${enable_java_net+set}" = set; then
6946 enableval="$enable_java_net"
6950 # Whether java.net is built by default can depend on the target.
6951 if test -z "$enable_java_net"; then
6952 enable_java_net=${enable_java_net_default-yes}
6954 if test "$enable_java_net" = no; then
6956 cat >>confdefs.h <<\_ACEOF
6957 #define DISABLE_JAVA_NET 1
6958 _ACEOF
6962 # See if the user wants to configure without libffi. Some
6963 # architectures don't support it, and default values are set in
6964 # configure.host.
6966 # Check whether --with-libffi or --without-libffi was given.
6967 if test "${with_libffi+set}" = set; then
6968 withval="$with_libffi"
6970 else
6971 with_libffi=${with_libffi_default-yes}
6974 LIBFFI=
6975 LIBFFIINCS=
6976 if test "$with_libffi" != no; then
6978 cat >>confdefs.h <<\_ACEOF
6979 #define USE_LIBFFI 1
6980 _ACEOF
6982 LIBFFI=../libffi/libffi_convenience.la
6983 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
6988 # See if the user wants to disable JVMPI support.
6989 # Check whether --enable-jvmpi or --disable-jvmpi was given.
6990 if test "${enable_jvmpi+set}" = set; then
6991 enableval="$enable_jvmpi"
6995 if test "$enable_jvmpi" != no; then
6997 cat >>confdefs.h <<\_ACEOF
6998 #define ENABLE_JVMPI 1
6999 _ACEOF
7003 # If the target is an eCos system, use the appropriate eCos
7004 # I/O routines.
7005 # FIXME: this should not be a local option but a global target
7006 # system; at present there is no eCos target.
7007 TARGET_ECOS=${PROCESS-"no"}
7009 # Check whether --with-ecos or --without-ecos was given.
7010 if test "${with_ecos+set}" = set; then
7011 withval="$with_ecos"
7012 TARGET_ECOS="$with_ecos"
7016 PLATFORM_INNER_NAT_HDRS=
7017 case "$TARGET_ECOS" in
7018 no) case "$host" in
7019 *mingw*)
7020 PLATFORM=Win32
7021 PLATFORMNET=Win32
7022 PLATFORMH=win32.h
7024 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
7025 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
7026 LD_PROG=`$CC --print-prog-name=ld`
7027 LD_VERSION=`$LD_PROG --version`
7028 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
7029 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
7030 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
7031 LD_OK="ok"
7032 else
7033 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
7034 LD_OK="ok"
7037 if test "x$LD_OK" != x; then
7038 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
7039 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
7040 else
7041 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
7042 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
7043 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
7044 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
7046 cat >>confdefs.h <<\_ACEOF
7047 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
7048 _ACEOF
7053 PLATFORM=Posix
7054 PLATFORMNET=Posix
7055 PLATFORMH=posix.h
7056 PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
7058 esac
7061 PLATFORM=Ecos
7062 PLATFORMNET=NoNet
7064 cat >>confdefs.h <<\_ACEOF
7065 #define ECOS 1
7066 _ACEOF
7068 PLATFORMH=posix.h
7070 esac
7072 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
7075 ac_ext=c
7076 ac_cpp='$CPP $CPPFLAGS'
7077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7080 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7081 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7082 # On Suns, sometimes $CPP names a directory.
7083 if test -n "$CPP" && test -d "$CPP"; then
7084 CPP=
7086 if test -z "$CPP"; then
7087 if test "${ac_cv_prog_CPP+set}" = set; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
7089 else
7090 # Double quotes because CPP needs to be expanded
7091 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7093 ac_preproc_ok=false
7094 for ac_c_preproc_warn_flag in '' yes
7096 # Use a header file that comes with gcc, so configuring glibc
7097 # with a fresh cross-compiler works.
7098 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7099 # <limits.h> exists even on freestanding compilers.
7100 # On the NeXT, cc -E runs the code through the compiler's parser,
7101 # not just through cpp. "Syntax error" is here to catch this case.
7102 cat >conftest.$ac_ext <<_ACEOF
7103 /* confdefs.h. */
7104 _ACEOF
7105 cat confdefs.h >>conftest.$ac_ext
7106 cat >>conftest.$ac_ext <<_ACEOF
7107 /* end confdefs.h. */
7108 #ifdef __STDC__
7109 # include <limits.h>
7110 #else
7111 # include <assert.h>
7112 #endif
7113 Syntax error
7114 _ACEOF
7115 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7116 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7117 ac_status=$?
7118 grep -v '^ *+' conftest.er1 >conftest.err
7119 rm -f conftest.er1
7120 cat conftest.err >&5
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); } >/dev/null; then
7123 if test -s conftest.err; then
7124 ac_cpp_err=$ac_c_preproc_warn_flag
7125 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7126 else
7127 ac_cpp_err=
7129 else
7130 ac_cpp_err=yes
7132 if test -z "$ac_cpp_err"; then
7134 else
7135 echo "$as_me: failed program was:" >&5
7136 sed 's/^/| /' conftest.$ac_ext >&5
7138 # Broken: fails on valid input.
7139 continue
7141 rm -f conftest.err conftest.$ac_ext
7143 # OK, works on sane cases. Now check whether non-existent headers
7144 # can be detected and how.
7145 cat >conftest.$ac_ext <<_ACEOF
7146 /* confdefs.h. */
7147 _ACEOF
7148 cat confdefs.h >>conftest.$ac_ext
7149 cat >>conftest.$ac_ext <<_ACEOF
7150 /* end confdefs.h. */
7151 #include <ac_nonexistent.h>
7152 _ACEOF
7153 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7154 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7155 ac_status=$?
7156 grep -v '^ *+' conftest.er1 >conftest.err
7157 rm -f conftest.er1
7158 cat conftest.err >&5
7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); } >/dev/null; then
7161 if test -s conftest.err; then
7162 ac_cpp_err=$ac_c_preproc_warn_flag
7163 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7164 else
7165 ac_cpp_err=
7167 else
7168 ac_cpp_err=yes
7170 if test -z "$ac_cpp_err"; then
7171 # Broken: success on invalid input.
7172 continue
7173 else
7174 echo "$as_me: failed program was:" >&5
7175 sed 's/^/| /' conftest.$ac_ext >&5
7177 # Passes both tests.
7178 ac_preproc_ok=:
7179 break
7181 rm -f conftest.err conftest.$ac_ext
7183 done
7184 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7185 rm -f conftest.err conftest.$ac_ext
7186 if $ac_preproc_ok; then
7187 break
7190 done
7191 ac_cv_prog_CPP=$CPP
7194 CPP=$ac_cv_prog_CPP
7195 else
7196 ac_cv_prog_CPP=$CPP
7198 echo "$as_me:$LINENO: result: $CPP" >&5
7199 echo "${ECHO_T}$CPP" >&6
7200 ac_preproc_ok=false
7201 for ac_c_preproc_warn_flag in '' yes
7203 # Use a header file that comes with gcc, so configuring glibc
7204 # with a fresh cross-compiler works.
7205 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7206 # <limits.h> exists even on freestanding compilers.
7207 # On the NeXT, cc -E runs the code through the compiler's parser,
7208 # not just through cpp. "Syntax error" is here to catch this case.
7209 cat >conftest.$ac_ext <<_ACEOF
7210 /* confdefs.h. */
7211 _ACEOF
7212 cat confdefs.h >>conftest.$ac_ext
7213 cat >>conftest.$ac_ext <<_ACEOF
7214 /* end confdefs.h. */
7215 #ifdef __STDC__
7216 # include <limits.h>
7217 #else
7218 # include <assert.h>
7219 #endif
7220 Syntax error
7221 _ACEOF
7222 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7223 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7224 ac_status=$?
7225 grep -v '^ *+' conftest.er1 >conftest.err
7226 rm -f conftest.er1
7227 cat conftest.err >&5
7228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229 (exit $ac_status); } >/dev/null; then
7230 if test -s conftest.err; then
7231 ac_cpp_err=$ac_c_preproc_warn_flag
7232 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7233 else
7234 ac_cpp_err=
7236 else
7237 ac_cpp_err=yes
7239 if test -z "$ac_cpp_err"; then
7241 else
7242 echo "$as_me: failed program was:" >&5
7243 sed 's/^/| /' conftest.$ac_ext >&5
7245 # Broken: fails on valid input.
7246 continue
7248 rm -f conftest.err conftest.$ac_ext
7250 # OK, works on sane cases. Now check whether non-existent headers
7251 # can be detected and how.
7252 cat >conftest.$ac_ext <<_ACEOF
7253 /* confdefs.h. */
7254 _ACEOF
7255 cat confdefs.h >>conftest.$ac_ext
7256 cat >>conftest.$ac_ext <<_ACEOF
7257 /* end confdefs.h. */
7258 #include <ac_nonexistent.h>
7259 _ACEOF
7260 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7261 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7262 ac_status=$?
7263 grep -v '^ *+' conftest.er1 >conftest.err
7264 rm -f conftest.er1
7265 cat conftest.err >&5
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); } >/dev/null; then
7268 if test -s conftest.err; then
7269 ac_cpp_err=$ac_c_preproc_warn_flag
7270 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7271 else
7272 ac_cpp_err=
7274 else
7275 ac_cpp_err=yes
7277 if test -z "$ac_cpp_err"; then
7278 # Broken: success on invalid input.
7279 continue
7280 else
7281 echo "$as_me: failed program was:" >&5
7282 sed 's/^/| /' conftest.$ac_ext >&5
7284 # Passes both tests.
7285 ac_preproc_ok=:
7286 break
7288 rm -f conftest.err conftest.$ac_ext
7290 done
7291 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7292 rm -f conftest.err conftest.$ac_ext
7293 if $ac_preproc_ok; then
7295 else
7296 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7297 See \`config.log' for more details." >&5
7298 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7299 See \`config.log' for more details." >&2;}
7300 { (exit 1); exit 1; }; }
7303 ac_ext=c
7304 ac_cpp='$CPP $CPPFLAGS'
7305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7310 echo "$as_me:$LINENO: checking for egrep" >&5
7311 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
7312 if test "${ac_cv_prog_egrep+set}" = set; then
7313 echo $ECHO_N "(cached) $ECHO_C" >&6
7314 else
7315 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
7316 then ac_cv_prog_egrep='grep -E'
7317 else ac_cv_prog_egrep='egrep'
7320 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
7321 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
7322 EGREP=$ac_cv_prog_egrep
7325 cat >conftest.$ac_ext <<_ACEOF
7326 /* confdefs.h. */
7327 _ACEOF
7328 cat confdefs.h >>conftest.$ac_ext
7329 cat >>conftest.$ac_ext <<_ACEOF
7330 /* end confdefs.h. */
7331 #include <stdint.h>
7333 _ACEOF
7334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7335 $EGREP "uint32_t" >/dev/null 2>&1; then
7337 cat >>confdefs.h <<\_ACEOF
7338 #define HAVE_INT32_DEFINED 1
7339 _ACEOF
7342 rm -f conftest*
7344 cat >conftest.$ac_ext <<_ACEOF
7345 /* confdefs.h. */
7346 _ACEOF
7347 cat confdefs.h >>conftest.$ac_ext
7348 cat >>conftest.$ac_ext <<_ACEOF
7349 /* end confdefs.h. */
7350 #include <inttypes.h>
7352 _ACEOF
7353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7354 $EGREP "uint32_t" >/dev/null 2>&1; then
7356 cat >>confdefs.h <<\_ACEOF
7357 #define HAVE_INT32_DEFINED 1
7358 _ACEOF
7361 rm -f conftest*
7363 cat >conftest.$ac_ext <<_ACEOF
7364 /* confdefs.h. */
7365 _ACEOF
7366 cat confdefs.h >>conftest.$ac_ext
7367 cat >>conftest.$ac_ext <<_ACEOF
7368 /* end confdefs.h. */
7369 #include <sys/types.h>
7371 _ACEOF
7372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7373 $EGREP "u_int32_t" >/dev/null 2>&1; then
7375 cat >>confdefs.h <<\_ACEOF
7376 #define HAVE_BSD_INT32_DEFINED 1
7377 _ACEOF
7380 rm -f conftest*
7382 cat >conftest.$ac_ext <<_ACEOF
7383 /* confdefs.h. */
7384 _ACEOF
7385 cat confdefs.h >>conftest.$ac_ext
7386 cat >>conftest.$ac_ext <<_ACEOF
7387 /* end confdefs.h. */
7388 #include <sys/config.h>
7390 _ACEOF
7391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7392 $EGREP "u_int32_t" >/dev/null 2>&1; then
7394 cat >>confdefs.h <<\_ACEOF
7395 #define HAVE_BSD_INT32_DEFINED 1
7396 _ACEOF
7399 rm -f conftest*
7404 if test "$PLATFORM" = Win32; then
7405 USING_WIN32_PLATFORM_TRUE=
7406 USING_WIN32_PLATFORM_FALSE='#'
7407 else
7408 USING_WIN32_PLATFORM_TRUE='#'
7409 USING_WIN32_PLATFORM_FALSE=
7414 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
7415 USING_POSIX_PLATFORM_TRUE=
7416 USING_POSIX_PLATFORM_FALSE='#'
7417 else
7418 USING_POSIX_PLATFORM_TRUE='#'
7419 USING_POSIX_PLATFORM_FALSE=
7423 case "$host" in
7424 *-darwin*) DARWIN_CRT=true ;;
7425 *) DARWIN_CRT=false ;;
7426 esac
7429 if $DARWIN_CRT; then
7430 USING_DARWIN_CRT_TRUE=
7431 USING_DARWIN_CRT_FALSE='#'
7432 else
7433 USING_DARWIN_CRT_TRUE='#'
7434 USING_DARWIN_CRT_FALSE=
7438 # These may not be defined in a non-ANS conformant embedded system.
7439 # FIXME: Should these case a runtime exception in that case?
7440 cat >conftest.$ac_ext <<_ACEOF
7441 /* confdefs.h. */
7442 _ACEOF
7443 cat confdefs.h >>conftest.$ac_ext
7444 cat >>conftest.$ac_ext <<_ACEOF
7445 /* end confdefs.h. */
7446 #include <time.h>
7448 _ACEOF
7449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7450 $EGREP "mktime" >/dev/null 2>&1; then
7452 cat >>confdefs.h <<\_ACEOF
7453 #define HAVE_MKTIME 1
7454 _ACEOF
7457 rm -f conftest*
7459 cat >conftest.$ac_ext <<_ACEOF
7460 /* confdefs.h. */
7461 _ACEOF
7462 cat confdefs.h >>conftest.$ac_ext
7463 cat >>conftest.$ac_ext <<_ACEOF
7464 /* end confdefs.h. */
7465 #include <time.h>
7467 _ACEOF
7468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7469 $EGREP "localtime" >/dev/null 2>&1; then
7471 cat >>confdefs.h <<\_ACEOF
7472 #define HAVE_LOCALTIME 1
7473 _ACEOF
7476 rm -f conftest*
7479 # Create the subdirectory for natFile.cc, or the attempt
7480 # to create the link will fail.
7481 test -d java || mkdir java
7482 test -d java/io || mkdir java/io
7483 test -d gnu || mkdir gnu
7484 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
7487 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
7488 test -d java/lang || mkdir java/lang
7489 ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
7491 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
7494 # Likewise for natInetAddress.cc and natVMNetworkInterface.cc.
7495 test -d java/net || mkdir java/net
7496 ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
7498 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
7501 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
7502 test -d gnu/java || mkdir gnu/java
7503 test -d gnu/java/net || mkdir gnu/java/net
7504 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
7506 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
7509 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
7510 test -d gnu/java/nio || mkdir gnu/java/nio
7511 ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
7513 ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
7515 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
7516 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
7519 case "${host}" in
7520 *mingw*)
7521 SYSTEMSPEC="-lgdi32 -lws2_32"
7522 if test "${with_win32_nlsapi}" = "unicows"; then
7523 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
7527 SYSTEMSPEC=
7529 esac
7532 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
7536 # Check whether --with-system-zlib or --without-system-zlib was given.
7537 if test "${with_system_zlib+set}" = set; then
7538 withval="$with_system_zlib"
7541 ZLIBSPEC=
7543 ZLIBTESTSPEC=
7546 echo "$as_me:$LINENO: checking for X" >&5
7547 echo $ECHO_N "checking for X... $ECHO_C" >&6
7550 # Check whether --with-x or --without-x was given.
7551 if test "${with_x+set}" = set; then
7552 withval="$with_x"
7555 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7556 if test "x$with_x" = xno; then
7557 # The user explicitly disabled X.
7558 have_x=disabled
7559 else
7560 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7561 # Both variables are already set.
7562 have_x=yes
7563 else
7564 if test "${ac_cv_have_x+set}" = set; then
7565 echo $ECHO_N "(cached) $ECHO_C" >&6
7566 else
7567 # One or both of the vars are not set, and there is no cached value.
7568 ac_x_includes=no ac_x_libraries=no
7569 rm -fr conftest.dir
7570 if mkdir conftest.dir; then
7571 cd conftest.dir
7572 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7573 cat >Imakefile <<'_ACEOF'
7574 acfindx:
7575 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7576 _ACEOF
7577 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7578 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7579 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7580 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7581 for ac_extension in a so sl; do
7582 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7583 test -f $ac_im_libdir/libX11.$ac_extension; then
7584 ac_im_usrlibdir=$ac_im_libdir; break
7586 done
7587 # Screen out bogus values from the imake configuration. They are
7588 # bogus both because they are the default anyway, and because
7589 # using them would break gcc on systems where it needs fixed includes.
7590 case $ac_im_incroot in
7591 /usr/include) ;;
7592 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7593 esac
7594 case $ac_im_usrlibdir in
7595 /usr/lib | /lib) ;;
7596 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7597 esac
7599 cd ..
7600 rm -fr conftest.dir
7603 # Standard set of common directories for X headers.
7604 # Check X11 before X11Rn because it is often a symlink to the current release.
7605 ac_x_header_dirs='
7606 /usr/X11/include
7607 /usr/X11R6/include
7608 /usr/X11R5/include
7609 /usr/X11R4/include
7611 /usr/include/X11
7612 /usr/include/X11R6
7613 /usr/include/X11R5
7614 /usr/include/X11R4
7616 /usr/local/X11/include
7617 /usr/local/X11R6/include
7618 /usr/local/X11R5/include
7619 /usr/local/X11R4/include
7621 /usr/local/include/X11
7622 /usr/local/include/X11R6
7623 /usr/local/include/X11R5
7624 /usr/local/include/X11R4
7626 /usr/X386/include
7627 /usr/x386/include
7628 /usr/XFree86/include/X11
7630 /usr/include
7631 /usr/local/include
7632 /usr/unsupported/include
7633 /usr/athena/include
7634 /usr/local/x11r5/include
7635 /usr/lpp/Xamples/include
7637 /usr/openwin/include
7638 /usr/openwin/share/include'
7640 if test "$ac_x_includes" = no; then
7641 # Guess where to find include files, by looking for Xlib.h.
7642 # First, try using that file with no special directory specified.
7643 cat >conftest.$ac_ext <<_ACEOF
7644 /* confdefs.h. */
7645 _ACEOF
7646 cat confdefs.h >>conftest.$ac_ext
7647 cat >>conftest.$ac_ext <<_ACEOF
7648 /* end confdefs.h. */
7649 #include <X11/Xlib.h>
7650 _ACEOF
7651 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7652 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7653 ac_status=$?
7654 grep -v '^ *+' conftest.er1 >conftest.err
7655 rm -f conftest.er1
7656 cat conftest.err >&5
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); } >/dev/null; then
7659 if test -s conftest.err; then
7660 ac_cpp_err=$ac_c_preproc_warn_flag
7661 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7662 else
7663 ac_cpp_err=
7665 else
7666 ac_cpp_err=yes
7668 if test -z "$ac_cpp_err"; then
7669 # We can compile using X headers with no special include directory.
7670 ac_x_includes=
7671 else
7672 echo "$as_me: failed program was:" >&5
7673 sed 's/^/| /' conftest.$ac_ext >&5
7675 for ac_dir in $ac_x_header_dirs; do
7676 if test -r "$ac_dir/X11/Xlib.h"; then
7677 ac_x_includes=$ac_dir
7678 break
7680 done
7682 rm -f conftest.err conftest.$ac_ext
7683 fi # $ac_x_includes = no
7685 if test "$ac_x_libraries" = no; then
7686 # Check for the libraries.
7687 # See if we find them without any special options.
7688 # Don't add to $LIBS permanently.
7689 ac_save_LIBS=$LIBS
7690 LIBS="-lX11 $LIBS"
7691 if test x$gcc_no_link = xyes; then
7692 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7693 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7694 { (exit 1); exit 1; }; }
7696 cat >conftest.$ac_ext <<_ACEOF
7697 /* confdefs.h. */
7698 _ACEOF
7699 cat confdefs.h >>conftest.$ac_ext
7700 cat >>conftest.$ac_ext <<_ACEOF
7701 /* end confdefs.h. */
7702 #include <X11/Xlib.h>
7704 main ()
7706 XrmInitialize ()
7708 return 0;
7710 _ACEOF
7711 rm -f conftest.$ac_objext conftest$ac_exeext
7712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7713 (eval $ac_link) 2>conftest.er1
7714 ac_status=$?
7715 grep -v '^ *+' conftest.er1 >conftest.err
7716 rm -f conftest.er1
7717 cat conftest.err >&5
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); } &&
7720 { ac_try='test -z "$ac_c_werror_flag"
7721 || test ! -s conftest.err'
7722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7723 (eval $ac_try) 2>&5
7724 ac_status=$?
7725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726 (exit $ac_status); }; } &&
7727 { ac_try='test -s conftest$ac_exeext'
7728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7729 (eval $ac_try) 2>&5
7730 ac_status=$?
7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 (exit $ac_status); }; }; then
7733 LIBS=$ac_save_LIBS
7734 # We can link X programs with no special library path.
7735 ac_x_libraries=
7736 else
7737 echo "$as_me: failed program was:" >&5
7738 sed 's/^/| /' conftest.$ac_ext >&5
7740 LIBS=$ac_save_LIBS
7741 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7743 # Don't even attempt the hair of trying to link an X program!
7744 for ac_extension in a so sl; do
7745 if test -r $ac_dir/libXt.$ac_extension; then
7746 ac_x_libraries=$ac_dir
7747 break 2
7749 done
7750 done
7752 rm -f conftest.err conftest.$ac_objext \
7753 conftest$ac_exeext conftest.$ac_ext
7754 fi # $ac_x_libraries = no
7756 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7757 # Didn't find X anywhere. Cache the known absence of X.
7758 ac_cv_have_x="have_x=no"
7759 else
7760 # Record where we found X for the cache.
7761 ac_cv_have_x="have_x=yes \
7762 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7767 eval "$ac_cv_have_x"
7768 fi # $with_x != no
7770 if test "$have_x" != yes; then
7771 echo "$as_me:$LINENO: result: $have_x" >&5
7772 echo "${ECHO_T}$have_x" >&6
7773 no_x=yes
7774 else
7775 # If each of the values was on the command line, it overrides each guess.
7776 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7777 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7778 # Update the cache value to reflect the command line values.
7779 ac_cv_have_x="have_x=yes \
7780 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7781 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7782 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7785 if test "$no_x" = yes; then
7786 # Not all programs may use this symbol, but it does not hurt to define it.
7788 cat >>confdefs.h <<\_ACEOF
7789 #define X_DISPLAY_MISSING 1
7790 _ACEOF
7792 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7793 else
7794 if test -n "$x_includes"; then
7795 X_CFLAGS="$X_CFLAGS -I$x_includes"
7798 # It would also be nice to do this for all -L options, not just this one.
7799 if test -n "$x_libraries"; then
7800 X_LIBS="$X_LIBS -L$x_libraries"
7801 # For Solaris; some versions of Sun CC require a space after -R and
7802 # others require no space. Words are not sufficient . . . .
7803 case `(uname -sr) 2>/dev/null` in
7804 "SunOS 5"*)
7805 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7806 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7807 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7808 if test x$gcc_no_link = xyes; then
7809 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7810 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7811 { (exit 1); exit 1; }; }
7813 cat >conftest.$ac_ext <<_ACEOF
7814 /* confdefs.h. */
7815 _ACEOF
7816 cat confdefs.h >>conftest.$ac_ext
7817 cat >>conftest.$ac_ext <<_ACEOF
7818 /* end confdefs.h. */
7821 main ()
7825 return 0;
7827 _ACEOF
7828 rm -f conftest.$ac_objext conftest$ac_exeext
7829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7830 (eval $ac_link) 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); } &&
7837 { ac_try='test -z "$ac_c_werror_flag"
7838 || test ! -s conftest.err'
7839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840 (eval $ac_try) 2>&5
7841 ac_status=$?
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); }; } &&
7844 { ac_try='test -s conftest$ac_exeext'
7845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7846 (eval $ac_try) 2>&5
7847 ac_status=$?
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); }; }; then
7850 ac_R_nospace=yes
7851 else
7852 echo "$as_me: failed program was:" >&5
7853 sed 's/^/| /' conftest.$ac_ext >&5
7855 ac_R_nospace=no
7857 rm -f conftest.err conftest.$ac_objext \
7858 conftest$ac_exeext conftest.$ac_ext
7859 if test $ac_R_nospace = yes; then
7860 echo "$as_me:$LINENO: result: no" >&5
7861 echo "${ECHO_T}no" >&6
7862 X_LIBS="$X_LIBS -R$x_libraries"
7863 else
7864 LIBS="$ac_xsave_LIBS -R $x_libraries"
7865 if test x$gcc_no_link = xyes; then
7866 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7867 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7868 { (exit 1); exit 1; }; }
7870 cat >conftest.$ac_ext <<_ACEOF
7871 /* confdefs.h. */
7872 _ACEOF
7873 cat confdefs.h >>conftest.$ac_ext
7874 cat >>conftest.$ac_ext <<_ACEOF
7875 /* end confdefs.h. */
7878 main ()
7882 return 0;
7884 _ACEOF
7885 rm -f conftest.$ac_objext conftest$ac_exeext
7886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7887 (eval $ac_link) 2>conftest.er1
7888 ac_status=$?
7889 grep -v '^ *+' conftest.er1 >conftest.err
7890 rm -f conftest.er1
7891 cat conftest.err >&5
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); } &&
7894 { ac_try='test -z "$ac_c_werror_flag"
7895 || test ! -s conftest.err'
7896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7897 (eval $ac_try) 2>&5
7898 ac_status=$?
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); }; } &&
7901 { ac_try='test -s conftest$ac_exeext'
7902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7903 (eval $ac_try) 2>&5
7904 ac_status=$?
7905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906 (exit $ac_status); }; }; then
7907 ac_R_space=yes
7908 else
7909 echo "$as_me: failed program was:" >&5
7910 sed 's/^/| /' conftest.$ac_ext >&5
7912 ac_R_space=no
7914 rm -f conftest.err conftest.$ac_objext \
7915 conftest$ac_exeext conftest.$ac_ext
7916 if test $ac_R_space = yes; then
7917 echo "$as_me:$LINENO: result: yes" >&5
7918 echo "${ECHO_T}yes" >&6
7919 X_LIBS="$X_LIBS -R $x_libraries"
7920 else
7921 echo "$as_me:$LINENO: result: neither works" >&5
7922 echo "${ECHO_T}neither works" >&6
7925 LIBS=$ac_xsave_LIBS
7926 esac
7929 # Check for system-dependent libraries X programs must link with.
7930 # Do this before checking for the system-independent R6 libraries
7931 # (-lICE), since we may need -lsocket or whatever for X linking.
7933 if test "$ISC" = yes; then
7934 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7935 else
7936 # Martyn Johnson says this is needed for Ultrix, if the X
7937 # libraries were built with DECnet support. And Karl Berry says
7938 # the Alpha needs dnet_stub (dnet does not exist).
7939 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7940 if test x$gcc_no_link = xyes; then
7941 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7942 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7943 { (exit 1); exit 1; }; }
7945 cat >conftest.$ac_ext <<_ACEOF
7946 /* confdefs.h. */
7947 _ACEOF
7948 cat confdefs.h >>conftest.$ac_ext
7949 cat >>conftest.$ac_ext <<_ACEOF
7950 /* end confdefs.h. */
7952 /* Override any gcc2 internal prototype to avoid an error. */
7953 #ifdef __cplusplus
7954 extern "C"
7955 #endif
7956 /* We use char because int might match the return type of a gcc2
7957 builtin and then its argument prototype would still apply. */
7958 char XOpenDisplay ();
7960 main ()
7962 XOpenDisplay ();
7964 return 0;
7966 _ACEOF
7967 rm -f conftest.$ac_objext conftest$ac_exeext
7968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7969 (eval $ac_link) 2>conftest.er1
7970 ac_status=$?
7971 grep -v '^ *+' conftest.er1 >conftest.err
7972 rm -f conftest.er1
7973 cat conftest.err >&5
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); } &&
7976 { ac_try='test -z "$ac_c_werror_flag"
7977 || test ! -s conftest.err'
7978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7979 (eval $ac_try) 2>&5
7980 ac_status=$?
7981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982 (exit $ac_status); }; } &&
7983 { ac_try='test -s conftest$ac_exeext'
7984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7985 (eval $ac_try) 2>&5
7986 ac_status=$?
7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 (exit $ac_status); }; }; then
7990 else
7991 echo "$as_me: failed program was:" >&5
7992 sed 's/^/| /' conftest.$ac_ext >&5
7994 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7995 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7996 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7997 echo $ECHO_N "(cached) $ECHO_C" >&6
7998 else
7999 ac_check_lib_save_LIBS=$LIBS
8000 LIBS="-ldnet $LIBS"
8001 if test x$gcc_no_link = xyes; then
8002 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8003 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8004 { (exit 1); exit 1; }; }
8006 cat >conftest.$ac_ext <<_ACEOF
8007 /* confdefs.h. */
8008 _ACEOF
8009 cat confdefs.h >>conftest.$ac_ext
8010 cat >>conftest.$ac_ext <<_ACEOF
8011 /* end confdefs.h. */
8013 /* Override any gcc2 internal prototype to avoid an error. */
8014 #ifdef __cplusplus
8015 extern "C"
8016 #endif
8017 /* We use char because int might match the return type of a gcc2
8018 builtin and then its argument prototype would still apply. */
8019 char dnet_ntoa ();
8021 main ()
8023 dnet_ntoa ();
8025 return 0;
8027 _ACEOF
8028 rm -f conftest.$ac_objext conftest$ac_exeext
8029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8030 (eval $ac_link) 2>conftest.er1
8031 ac_status=$?
8032 grep -v '^ *+' conftest.er1 >conftest.err
8033 rm -f conftest.er1
8034 cat conftest.err >&5
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); } &&
8037 { ac_try='test -z "$ac_c_werror_flag"
8038 || test ! -s conftest.err'
8039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8040 (eval $ac_try) 2>&5
8041 ac_status=$?
8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043 (exit $ac_status); }; } &&
8044 { ac_try='test -s conftest$ac_exeext'
8045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8046 (eval $ac_try) 2>&5
8047 ac_status=$?
8048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049 (exit $ac_status); }; }; then
8050 ac_cv_lib_dnet_dnet_ntoa=yes
8051 else
8052 echo "$as_me: failed program was:" >&5
8053 sed 's/^/| /' conftest.$ac_ext >&5
8055 ac_cv_lib_dnet_dnet_ntoa=no
8057 rm -f conftest.err conftest.$ac_objext \
8058 conftest$ac_exeext conftest.$ac_ext
8059 LIBS=$ac_check_lib_save_LIBS
8061 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8062 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8063 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8064 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8067 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8068 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8069 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8070 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8071 echo $ECHO_N "(cached) $ECHO_C" >&6
8072 else
8073 ac_check_lib_save_LIBS=$LIBS
8074 LIBS="-ldnet_stub $LIBS"
8075 if test x$gcc_no_link = xyes; then
8076 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8077 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8078 { (exit 1); exit 1; }; }
8080 cat >conftest.$ac_ext <<_ACEOF
8081 /* confdefs.h. */
8082 _ACEOF
8083 cat confdefs.h >>conftest.$ac_ext
8084 cat >>conftest.$ac_ext <<_ACEOF
8085 /* end confdefs.h. */
8087 /* Override any gcc2 internal prototype to avoid an error. */
8088 #ifdef __cplusplus
8089 extern "C"
8090 #endif
8091 /* We use char because int might match the return type of a gcc2
8092 builtin and then its argument prototype would still apply. */
8093 char dnet_ntoa ();
8095 main ()
8097 dnet_ntoa ();
8099 return 0;
8101 _ACEOF
8102 rm -f conftest.$ac_objext conftest$ac_exeext
8103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8104 (eval $ac_link) 2>conftest.er1
8105 ac_status=$?
8106 grep -v '^ *+' conftest.er1 >conftest.err
8107 rm -f conftest.er1
8108 cat conftest.err >&5
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); } &&
8111 { ac_try='test -z "$ac_c_werror_flag"
8112 || test ! -s conftest.err'
8113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8114 (eval $ac_try) 2>&5
8115 ac_status=$?
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); }; } &&
8118 { ac_try='test -s conftest$ac_exeext'
8119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8120 (eval $ac_try) 2>&5
8121 ac_status=$?
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); }; }; then
8124 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8125 else
8126 echo "$as_me: failed program was:" >&5
8127 sed 's/^/| /' conftest.$ac_ext >&5
8129 ac_cv_lib_dnet_stub_dnet_ntoa=no
8131 rm -f conftest.err conftest.$ac_objext \
8132 conftest$ac_exeext conftest.$ac_ext
8133 LIBS=$ac_check_lib_save_LIBS
8135 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8136 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8137 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8138 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8143 rm -f conftest.err conftest.$ac_objext \
8144 conftest$ac_exeext conftest.$ac_ext
8145 LIBS="$ac_xsave_LIBS"
8147 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8148 # to get the SysV transport functions.
8149 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8150 # needs -lnsl.
8151 # The nsl library prevents programs from opening the X display
8152 # on Irix 5.2, according to T.E. Dickey.
8153 # The functions gethostbyname, getservbyname, and inet_addr are
8154 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8155 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8156 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8157 if test "${ac_cv_func_gethostbyname+set}" = set; then
8158 echo $ECHO_N "(cached) $ECHO_C" >&6
8159 else
8160 if test x$gcc_no_link = xyes; then
8161 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8162 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8163 { (exit 1); exit 1; }; }
8165 cat >conftest.$ac_ext <<_ACEOF
8166 /* confdefs.h. */
8167 _ACEOF
8168 cat confdefs.h >>conftest.$ac_ext
8169 cat >>conftest.$ac_ext <<_ACEOF
8170 /* end confdefs.h. */
8171 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
8172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8173 #define gethostbyname innocuous_gethostbyname
8175 /* System header to define __stub macros and hopefully few prototypes,
8176 which can conflict with char gethostbyname (); below.
8177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8178 <limits.h> exists even on freestanding compilers. */
8180 #ifdef __STDC__
8181 # include <limits.h>
8182 #else
8183 # include <assert.h>
8184 #endif
8186 #undef gethostbyname
8188 /* Override any gcc2 internal prototype to avoid an error. */
8189 #ifdef __cplusplus
8190 extern "C"
8192 #endif
8193 /* We use char because int might match the return type of a gcc2
8194 builtin and then its argument prototype would still apply. */
8195 char gethostbyname ();
8196 /* The GNU C library defines this for functions which it implements
8197 to always fail with ENOSYS. Some functions are actually named
8198 something starting with __ and the normal name is an alias. */
8199 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8200 choke me
8201 #else
8202 char (*f) () = gethostbyname;
8203 #endif
8204 #ifdef __cplusplus
8206 #endif
8209 main ()
8211 return f != gethostbyname;
8213 return 0;
8215 _ACEOF
8216 rm -f conftest.$ac_objext conftest$ac_exeext
8217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8218 (eval $ac_link) 2>conftest.er1
8219 ac_status=$?
8220 grep -v '^ *+' conftest.er1 >conftest.err
8221 rm -f conftest.er1
8222 cat conftest.err >&5
8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224 (exit $ac_status); } &&
8225 { ac_try='test -z "$ac_c_werror_flag"
8226 || test ! -s conftest.err'
8227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8228 (eval $ac_try) 2>&5
8229 ac_status=$?
8230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231 (exit $ac_status); }; } &&
8232 { ac_try='test -s conftest$ac_exeext'
8233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8234 (eval $ac_try) 2>&5
8235 ac_status=$?
8236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237 (exit $ac_status); }; }; then
8238 ac_cv_func_gethostbyname=yes
8239 else
8240 echo "$as_me: failed program was:" >&5
8241 sed 's/^/| /' conftest.$ac_ext >&5
8243 ac_cv_func_gethostbyname=no
8245 rm -f conftest.err conftest.$ac_objext \
8246 conftest$ac_exeext conftest.$ac_ext
8248 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8249 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8251 if test $ac_cv_func_gethostbyname = no; then
8252 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8253 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8254 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8255 echo $ECHO_N "(cached) $ECHO_C" >&6
8256 else
8257 ac_check_lib_save_LIBS=$LIBS
8258 LIBS="-lnsl $LIBS"
8259 if test x$gcc_no_link = xyes; then
8260 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8261 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8262 { (exit 1); exit 1; }; }
8264 cat >conftest.$ac_ext <<_ACEOF
8265 /* confdefs.h. */
8266 _ACEOF
8267 cat confdefs.h >>conftest.$ac_ext
8268 cat >>conftest.$ac_ext <<_ACEOF
8269 /* end confdefs.h. */
8271 /* Override any gcc2 internal prototype to avoid an error. */
8272 #ifdef __cplusplus
8273 extern "C"
8274 #endif
8275 /* We use char because int might match the return type of a gcc2
8276 builtin and then its argument prototype would still apply. */
8277 char gethostbyname ();
8279 main ()
8281 gethostbyname ();
8283 return 0;
8285 _ACEOF
8286 rm -f conftest.$ac_objext conftest$ac_exeext
8287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8288 (eval $ac_link) 2>conftest.er1
8289 ac_status=$?
8290 grep -v '^ *+' conftest.er1 >conftest.err
8291 rm -f conftest.er1
8292 cat conftest.err >&5
8293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294 (exit $ac_status); } &&
8295 { ac_try='test -z "$ac_c_werror_flag"
8296 || test ! -s conftest.err'
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); }; } &&
8302 { ac_try='test -s conftest$ac_exeext'
8303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8304 (eval $ac_try) 2>&5
8305 ac_status=$?
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); }; }; then
8308 ac_cv_lib_nsl_gethostbyname=yes
8309 else
8310 echo "$as_me: failed program was:" >&5
8311 sed 's/^/| /' conftest.$ac_ext >&5
8313 ac_cv_lib_nsl_gethostbyname=no
8315 rm -f conftest.err conftest.$ac_objext \
8316 conftest$ac_exeext conftest.$ac_ext
8317 LIBS=$ac_check_lib_save_LIBS
8319 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8320 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8321 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8322 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8325 if test $ac_cv_lib_nsl_gethostbyname = no; then
8326 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8327 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8328 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8329 echo $ECHO_N "(cached) $ECHO_C" >&6
8330 else
8331 ac_check_lib_save_LIBS=$LIBS
8332 LIBS="-lbsd $LIBS"
8333 if test x$gcc_no_link = xyes; then
8334 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8335 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8336 { (exit 1); exit 1; }; }
8338 cat >conftest.$ac_ext <<_ACEOF
8339 /* confdefs.h. */
8340 _ACEOF
8341 cat confdefs.h >>conftest.$ac_ext
8342 cat >>conftest.$ac_ext <<_ACEOF
8343 /* end confdefs.h. */
8345 /* Override any gcc2 internal prototype to avoid an error. */
8346 #ifdef __cplusplus
8347 extern "C"
8348 #endif
8349 /* We use char because int might match the return type of a gcc2
8350 builtin and then its argument prototype would still apply. */
8351 char gethostbyname ();
8353 main ()
8355 gethostbyname ();
8357 return 0;
8359 _ACEOF
8360 rm -f conftest.$ac_objext conftest$ac_exeext
8361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8362 (eval $ac_link) 2>conftest.er1
8363 ac_status=$?
8364 grep -v '^ *+' conftest.er1 >conftest.err
8365 rm -f conftest.er1
8366 cat conftest.err >&5
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); } &&
8369 { ac_try='test -z "$ac_c_werror_flag"
8370 || test ! -s conftest.err'
8371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8372 (eval $ac_try) 2>&5
8373 ac_status=$?
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); }; } &&
8376 { ac_try='test -s conftest$ac_exeext'
8377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8378 (eval $ac_try) 2>&5
8379 ac_status=$?
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); }; }; then
8382 ac_cv_lib_bsd_gethostbyname=yes
8383 else
8384 echo "$as_me: failed program was:" >&5
8385 sed 's/^/| /' conftest.$ac_ext >&5
8387 ac_cv_lib_bsd_gethostbyname=no
8389 rm -f conftest.err conftest.$ac_objext \
8390 conftest$ac_exeext conftest.$ac_ext
8391 LIBS=$ac_check_lib_save_LIBS
8393 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8394 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8395 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8396 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8402 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8403 # socket/setsockopt and other routines are undefined under SCO ODT
8404 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8405 # on later versions), says Simon Leinen: it contains gethostby*
8406 # variants that don't use the name server (or something). -lsocket
8407 # must be given before -lnsl if both are needed. We assume that
8408 # if connect needs -lnsl, so does gethostbyname.
8409 echo "$as_me:$LINENO: checking for connect" >&5
8410 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8411 if test "${ac_cv_func_connect+set}" = set; then
8412 echo $ECHO_N "(cached) $ECHO_C" >&6
8413 else
8414 if test x$gcc_no_link = xyes; then
8415 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8416 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8417 { (exit 1); exit 1; }; }
8419 cat >conftest.$ac_ext <<_ACEOF
8420 /* confdefs.h. */
8421 _ACEOF
8422 cat confdefs.h >>conftest.$ac_ext
8423 cat >>conftest.$ac_ext <<_ACEOF
8424 /* end confdefs.h. */
8425 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
8426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8427 #define connect innocuous_connect
8429 /* System header to define __stub macros and hopefully few prototypes,
8430 which can conflict with char connect (); below.
8431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8432 <limits.h> exists even on freestanding compilers. */
8434 #ifdef __STDC__
8435 # include <limits.h>
8436 #else
8437 # include <assert.h>
8438 #endif
8440 #undef connect
8442 /* Override any gcc2 internal prototype to avoid an error. */
8443 #ifdef __cplusplus
8444 extern "C"
8446 #endif
8447 /* We use char because int might match the return type of a gcc2
8448 builtin and then its argument prototype would still apply. */
8449 char connect ();
8450 /* The GNU C library defines this for functions which it implements
8451 to always fail with ENOSYS. Some functions are actually named
8452 something starting with __ and the normal name is an alias. */
8453 #if defined (__stub_connect) || defined (__stub___connect)
8454 choke me
8455 #else
8456 char (*f) () = connect;
8457 #endif
8458 #ifdef __cplusplus
8460 #endif
8463 main ()
8465 return f != connect;
8467 return 0;
8469 _ACEOF
8470 rm -f conftest.$ac_objext conftest$ac_exeext
8471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8472 (eval $ac_link) 2>conftest.er1
8473 ac_status=$?
8474 grep -v '^ *+' conftest.er1 >conftest.err
8475 rm -f conftest.er1
8476 cat conftest.err >&5
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); } &&
8479 { ac_try='test -z "$ac_c_werror_flag"
8480 || test ! -s conftest.err'
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); }; } &&
8486 { ac_try='test -s conftest$ac_exeext'
8487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8488 (eval $ac_try) 2>&5
8489 ac_status=$?
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); }; }; then
8492 ac_cv_func_connect=yes
8493 else
8494 echo "$as_me: failed program was:" >&5
8495 sed 's/^/| /' conftest.$ac_ext >&5
8497 ac_cv_func_connect=no
8499 rm -f conftest.err conftest.$ac_objext \
8500 conftest$ac_exeext conftest.$ac_ext
8502 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8503 echo "${ECHO_T}$ac_cv_func_connect" >&6
8505 if test $ac_cv_func_connect = no; then
8506 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8507 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8508 if test "${ac_cv_lib_socket_connect+set}" = set; then
8509 echo $ECHO_N "(cached) $ECHO_C" >&6
8510 else
8511 ac_check_lib_save_LIBS=$LIBS
8512 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8513 if test x$gcc_no_link = xyes; then
8514 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8515 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8516 { (exit 1); exit 1; }; }
8518 cat >conftest.$ac_ext <<_ACEOF
8519 /* confdefs.h. */
8520 _ACEOF
8521 cat confdefs.h >>conftest.$ac_ext
8522 cat >>conftest.$ac_ext <<_ACEOF
8523 /* end confdefs.h. */
8525 /* Override any gcc2 internal prototype to avoid an error. */
8526 #ifdef __cplusplus
8527 extern "C"
8528 #endif
8529 /* We use char because int might match the return type of a gcc2
8530 builtin and then its argument prototype would still apply. */
8531 char connect ();
8533 main ()
8535 connect ();
8537 return 0;
8539 _ACEOF
8540 rm -f conftest.$ac_objext conftest$ac_exeext
8541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8542 (eval $ac_link) 2>conftest.er1
8543 ac_status=$?
8544 grep -v '^ *+' conftest.er1 >conftest.err
8545 rm -f conftest.er1
8546 cat conftest.err >&5
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); } &&
8549 { ac_try='test -z "$ac_c_werror_flag"
8550 || test ! -s conftest.err'
8551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8552 (eval $ac_try) 2>&5
8553 ac_status=$?
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); }; } &&
8556 { ac_try='test -s conftest$ac_exeext'
8557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8558 (eval $ac_try) 2>&5
8559 ac_status=$?
8560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 (exit $ac_status); }; }; then
8562 ac_cv_lib_socket_connect=yes
8563 else
8564 echo "$as_me: failed program was:" >&5
8565 sed 's/^/| /' conftest.$ac_ext >&5
8567 ac_cv_lib_socket_connect=no
8569 rm -f conftest.err conftest.$ac_objext \
8570 conftest$ac_exeext conftest.$ac_ext
8571 LIBS=$ac_check_lib_save_LIBS
8573 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8574 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8575 if test $ac_cv_lib_socket_connect = yes; then
8576 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8581 # Guillermo Gomez says -lposix is necessary on A/UX.
8582 echo "$as_me:$LINENO: checking for remove" >&5
8583 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8584 if test "${ac_cv_func_remove+set}" = set; then
8585 echo $ECHO_N "(cached) $ECHO_C" >&6
8586 else
8587 if test x$gcc_no_link = xyes; then
8588 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8589 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8590 { (exit 1); exit 1; }; }
8592 cat >conftest.$ac_ext <<_ACEOF
8593 /* confdefs.h. */
8594 _ACEOF
8595 cat confdefs.h >>conftest.$ac_ext
8596 cat >>conftest.$ac_ext <<_ACEOF
8597 /* end confdefs.h. */
8598 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
8599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8600 #define remove innocuous_remove
8602 /* System header to define __stub macros and hopefully few prototypes,
8603 which can conflict with char remove (); below.
8604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8605 <limits.h> exists even on freestanding compilers. */
8607 #ifdef __STDC__
8608 # include <limits.h>
8609 #else
8610 # include <assert.h>
8611 #endif
8613 #undef remove
8615 /* Override any gcc2 internal prototype to avoid an error. */
8616 #ifdef __cplusplus
8617 extern "C"
8619 #endif
8620 /* We use char because int might match the return type of a gcc2
8621 builtin and then its argument prototype would still apply. */
8622 char remove ();
8623 /* The GNU C library defines this for functions which it implements
8624 to always fail with ENOSYS. Some functions are actually named
8625 something starting with __ and the normal name is an alias. */
8626 #if defined (__stub_remove) || defined (__stub___remove)
8627 choke me
8628 #else
8629 char (*f) () = remove;
8630 #endif
8631 #ifdef __cplusplus
8633 #endif
8636 main ()
8638 return f != remove;
8640 return 0;
8642 _ACEOF
8643 rm -f conftest.$ac_objext conftest$ac_exeext
8644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8645 (eval $ac_link) 2>conftest.er1
8646 ac_status=$?
8647 grep -v '^ *+' conftest.er1 >conftest.err
8648 rm -f conftest.er1
8649 cat conftest.err >&5
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); } &&
8652 { ac_try='test -z "$ac_c_werror_flag"
8653 || test ! -s conftest.err'
8654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8655 (eval $ac_try) 2>&5
8656 ac_status=$?
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); }; } &&
8659 { ac_try='test -s conftest$ac_exeext'
8660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8661 (eval $ac_try) 2>&5
8662 ac_status=$?
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); }; }; then
8665 ac_cv_func_remove=yes
8666 else
8667 echo "$as_me: failed program was:" >&5
8668 sed 's/^/| /' conftest.$ac_ext >&5
8670 ac_cv_func_remove=no
8672 rm -f conftest.err conftest.$ac_objext \
8673 conftest$ac_exeext conftest.$ac_ext
8675 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8676 echo "${ECHO_T}$ac_cv_func_remove" >&6
8678 if test $ac_cv_func_remove = no; then
8679 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8680 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8681 if test "${ac_cv_lib_posix_remove+set}" = set; then
8682 echo $ECHO_N "(cached) $ECHO_C" >&6
8683 else
8684 ac_check_lib_save_LIBS=$LIBS
8685 LIBS="-lposix $LIBS"
8686 if test x$gcc_no_link = xyes; then
8687 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8688 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8689 { (exit 1); exit 1; }; }
8691 cat >conftest.$ac_ext <<_ACEOF
8692 /* confdefs.h. */
8693 _ACEOF
8694 cat confdefs.h >>conftest.$ac_ext
8695 cat >>conftest.$ac_ext <<_ACEOF
8696 /* end confdefs.h. */
8698 /* Override any gcc2 internal prototype to avoid an error. */
8699 #ifdef __cplusplus
8700 extern "C"
8701 #endif
8702 /* We use char because int might match the return type of a gcc2
8703 builtin and then its argument prototype would still apply. */
8704 char remove ();
8706 main ()
8708 remove ();
8710 return 0;
8712 _ACEOF
8713 rm -f conftest.$ac_objext conftest$ac_exeext
8714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8715 (eval $ac_link) 2>conftest.er1
8716 ac_status=$?
8717 grep -v '^ *+' conftest.er1 >conftest.err
8718 rm -f conftest.er1
8719 cat conftest.err >&5
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); } &&
8722 { ac_try='test -z "$ac_c_werror_flag"
8723 || test ! -s conftest.err'
8724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8725 (eval $ac_try) 2>&5
8726 ac_status=$?
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); }; } &&
8729 { ac_try='test -s conftest$ac_exeext'
8730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8731 (eval $ac_try) 2>&5
8732 ac_status=$?
8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734 (exit $ac_status); }; }; then
8735 ac_cv_lib_posix_remove=yes
8736 else
8737 echo "$as_me: failed program was:" >&5
8738 sed 's/^/| /' conftest.$ac_ext >&5
8740 ac_cv_lib_posix_remove=no
8742 rm -f conftest.err conftest.$ac_objext \
8743 conftest$ac_exeext conftest.$ac_ext
8744 LIBS=$ac_check_lib_save_LIBS
8746 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8747 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8748 if test $ac_cv_lib_posix_remove = yes; then
8749 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8754 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8755 echo "$as_me:$LINENO: checking for shmat" >&5
8756 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8757 if test "${ac_cv_func_shmat+set}" = set; then
8758 echo $ECHO_N "(cached) $ECHO_C" >&6
8759 else
8760 if test x$gcc_no_link = xyes; then
8761 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8762 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8763 { (exit 1); exit 1; }; }
8765 cat >conftest.$ac_ext <<_ACEOF
8766 /* confdefs.h. */
8767 _ACEOF
8768 cat confdefs.h >>conftest.$ac_ext
8769 cat >>conftest.$ac_ext <<_ACEOF
8770 /* end confdefs.h. */
8771 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
8772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8773 #define shmat innocuous_shmat
8775 /* System header to define __stub macros and hopefully few prototypes,
8776 which can conflict with char shmat (); below.
8777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8778 <limits.h> exists even on freestanding compilers. */
8780 #ifdef __STDC__
8781 # include <limits.h>
8782 #else
8783 # include <assert.h>
8784 #endif
8786 #undef shmat
8788 /* Override any gcc2 internal prototype to avoid an error. */
8789 #ifdef __cplusplus
8790 extern "C"
8792 #endif
8793 /* We use char because int might match the return type of a gcc2
8794 builtin and then its argument prototype would still apply. */
8795 char shmat ();
8796 /* The GNU C library defines this for functions which it implements
8797 to always fail with ENOSYS. Some functions are actually named
8798 something starting with __ and the normal name is an alias. */
8799 #if defined (__stub_shmat) || defined (__stub___shmat)
8800 choke me
8801 #else
8802 char (*f) () = shmat;
8803 #endif
8804 #ifdef __cplusplus
8806 #endif
8809 main ()
8811 return f != shmat;
8813 return 0;
8815 _ACEOF
8816 rm -f conftest.$ac_objext conftest$ac_exeext
8817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8818 (eval $ac_link) 2>conftest.er1
8819 ac_status=$?
8820 grep -v '^ *+' conftest.er1 >conftest.err
8821 rm -f conftest.er1
8822 cat conftest.err >&5
8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); } &&
8825 { ac_try='test -z "$ac_c_werror_flag"
8826 || test ! -s conftest.err'
8827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8828 (eval $ac_try) 2>&5
8829 ac_status=$?
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); }; } &&
8832 { ac_try='test -s conftest$ac_exeext'
8833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8834 (eval $ac_try) 2>&5
8835 ac_status=$?
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); }; }; then
8838 ac_cv_func_shmat=yes
8839 else
8840 echo "$as_me: failed program was:" >&5
8841 sed 's/^/| /' conftest.$ac_ext >&5
8843 ac_cv_func_shmat=no
8845 rm -f conftest.err conftest.$ac_objext \
8846 conftest$ac_exeext conftest.$ac_ext
8848 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8849 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8851 if test $ac_cv_func_shmat = no; then
8852 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8853 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8854 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8855 echo $ECHO_N "(cached) $ECHO_C" >&6
8856 else
8857 ac_check_lib_save_LIBS=$LIBS
8858 LIBS="-lipc $LIBS"
8859 if test x$gcc_no_link = xyes; then
8860 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8861 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8862 { (exit 1); exit 1; }; }
8864 cat >conftest.$ac_ext <<_ACEOF
8865 /* confdefs.h. */
8866 _ACEOF
8867 cat confdefs.h >>conftest.$ac_ext
8868 cat >>conftest.$ac_ext <<_ACEOF
8869 /* end confdefs.h. */
8871 /* Override any gcc2 internal prototype to avoid an error. */
8872 #ifdef __cplusplus
8873 extern "C"
8874 #endif
8875 /* We use char because int might match the return type of a gcc2
8876 builtin and then its argument prototype would still apply. */
8877 char shmat ();
8879 main ()
8881 shmat ();
8883 return 0;
8885 _ACEOF
8886 rm -f conftest.$ac_objext conftest$ac_exeext
8887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8888 (eval $ac_link) 2>conftest.er1
8889 ac_status=$?
8890 grep -v '^ *+' conftest.er1 >conftest.err
8891 rm -f conftest.er1
8892 cat conftest.err >&5
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); } &&
8895 { ac_try='test -z "$ac_c_werror_flag"
8896 || test ! -s conftest.err'
8897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8898 (eval $ac_try) 2>&5
8899 ac_status=$?
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); }; } &&
8902 { ac_try='test -s conftest$ac_exeext'
8903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8904 (eval $ac_try) 2>&5
8905 ac_status=$?
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); }; }; then
8908 ac_cv_lib_ipc_shmat=yes
8909 else
8910 echo "$as_me: failed program was:" >&5
8911 sed 's/^/| /' conftest.$ac_ext >&5
8913 ac_cv_lib_ipc_shmat=no
8915 rm -f conftest.err conftest.$ac_objext \
8916 conftest$ac_exeext conftest.$ac_ext
8917 LIBS=$ac_check_lib_save_LIBS
8919 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8920 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8921 if test $ac_cv_lib_ipc_shmat = yes; then
8922 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8928 # Check for libraries that X11R6 Xt/Xaw programs need.
8929 ac_save_LDFLAGS=$LDFLAGS
8930 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8931 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8932 # check for ICE first), but we must link in the order -lSM -lICE or
8933 # we get undefined symbols. So assume we have SM if we have ICE.
8934 # These have to be linked with before -lX11, unlike the other
8935 # libraries we check for below, so use a different variable.
8936 # John Interrante, Karl Berry
8937 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8938 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8939 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8940 echo $ECHO_N "(cached) $ECHO_C" >&6
8941 else
8942 ac_check_lib_save_LIBS=$LIBS
8943 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8944 if test x$gcc_no_link = xyes; then
8945 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8946 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8947 { (exit 1); exit 1; }; }
8949 cat >conftest.$ac_ext <<_ACEOF
8950 /* confdefs.h. */
8951 _ACEOF
8952 cat confdefs.h >>conftest.$ac_ext
8953 cat >>conftest.$ac_ext <<_ACEOF
8954 /* end confdefs.h. */
8956 /* Override any gcc2 internal prototype to avoid an error. */
8957 #ifdef __cplusplus
8958 extern "C"
8959 #endif
8960 /* We use char because int might match the return type of a gcc2
8961 builtin and then its argument prototype would still apply. */
8962 char IceConnectionNumber ();
8964 main ()
8966 IceConnectionNumber ();
8968 return 0;
8970 _ACEOF
8971 rm -f conftest.$ac_objext conftest$ac_exeext
8972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8973 (eval $ac_link) 2>conftest.er1
8974 ac_status=$?
8975 grep -v '^ *+' conftest.er1 >conftest.err
8976 rm -f conftest.er1
8977 cat conftest.err >&5
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); } &&
8980 { ac_try='test -z "$ac_c_werror_flag"
8981 || test ! -s conftest.err'
8982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8983 (eval $ac_try) 2>&5
8984 ac_status=$?
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); }; } &&
8987 { ac_try='test -s conftest$ac_exeext'
8988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8989 (eval $ac_try) 2>&5
8990 ac_status=$?
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); }; }; then
8993 ac_cv_lib_ICE_IceConnectionNumber=yes
8994 else
8995 echo "$as_me: failed program was:" >&5
8996 sed 's/^/| /' conftest.$ac_ext >&5
8998 ac_cv_lib_ICE_IceConnectionNumber=no
9000 rm -f conftest.err conftest.$ac_objext \
9001 conftest$ac_exeext conftest.$ac_ext
9002 LIBS=$ac_check_lib_save_LIBS
9004 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9005 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9006 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9007 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9010 LDFLAGS=$ac_save_LDFLAGS
9015 # FIXME: this should be _libs on some hosts.
9016 libsubdir=.libs
9018 # extra LD Flags which are required for targets
9019 case "${host}" in
9020 *-*-darwin[0-7].*)
9021 # For now we have to disable it on darwin[8-9] because it slows down
9022 # the linking phase. A possible bug in ld?
9023 # on Darwin -single_module speeds up loading of the dynamic libraries.
9024 extra_ldflags_libjava=-Wl,-single_module
9026 esac
9029 # Allow the GC to be disabled. Can be useful when debugging.
9030 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
9031 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
9032 # Check whether --enable-java-gc or --disable-java-gc was given.
9033 if test "${enable_java_gc+set}" = set; then
9034 enableval="$enable_java_gc"
9035 GC=$enableval
9036 else
9037 GC=boehm
9039 GCLIBS=
9040 GCINCS=
9041 GCDEPS=
9042 GCSPEC=
9043 JC1GCSPEC=
9044 GCTESTSPEC=
9045 case "$GC" in
9046 boehm)
9047 echo "$as_me:$LINENO: result: boehm" >&5
9048 echo "${ECHO_T}boehm" >&6
9049 GCLIBS=../boehm-gc/libgcjgc_convenience.la
9050 JC1GCSPEC='-fuse-boehm-gc'
9051 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
9052 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
9053 GCOBJS=boehm.lo
9054 GCHDR=boehm-gc.h
9055 # The POSIX thread support needs to know this.
9057 cat >>confdefs.h <<\_ACEOF
9058 #define HAVE_BOEHM_GC 1
9059 _ACEOF
9063 echo "$as_me:$LINENO: result: none" >&5
9064 echo "${ECHO_T}none" >&6
9065 GCHDR=no-gc.h
9068 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
9069 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
9070 { (exit 1); exit 1; }; }
9072 esac
9079 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
9083 if test "$GC" = boehm; then
9084 USING_BOEHMGC_TRUE=
9085 USING_BOEHMGC_FALSE='#'
9086 else
9087 USING_BOEHMGC_TRUE='#'
9088 USING_BOEHMGC_FALSE=
9093 if test "$GC" = no; then
9094 USING_NOGC_TRUE=
9095 USING_NOGC_FALSE='#'
9096 else
9097 USING_NOGC_TRUE='#'
9098 USING_NOGC_FALSE=
9103 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
9104 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
9105 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
9106 echo "$as_me:$LINENO: result: $THREADS" >&5
9107 echo "${ECHO_T}$THREADS" >&6
9109 case "$THREADS" in
9110 no | none | single)
9111 THREADS=none
9113 posix | posix95 | pthreads)
9114 THREADS=posix
9115 case "$host" in
9116 *-*-linux*)
9118 cat >>confdefs.h <<\_ACEOF
9119 #define LINUX_THREADS 1
9120 _ACEOF
9123 esac
9125 win32)
9127 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
9128 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
9129 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
9130 { (exit 1); exit 1; }; }
9133 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
9134 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
9135 { (exit 1); exit 1; }; }
9137 esac
9139 THREADCXXFLAGS=
9140 THREADLDFLAGS=
9141 THREADLIBS=
9142 THREADINCS=
9143 THREADDEPS=
9144 THREADH=
9145 THREADSPEC=
9146 THREADSTARTFILESPEC=
9147 case "$THREADS" in
9148 posix)
9149 case "$host" in
9150 *-*-cygwin*)
9151 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
9153 *-*-freebsd[1234]*)
9154 # Before FreeBSD 5, it didn't have -lpthread (or any library which
9155 # merely adds pthread_* functions) but it does have a -pthread switch
9156 # which is required at link-time to select -lc_r *instead* of -lc.
9157 THREADLDFLAGS=-pthread
9158 # Don't set THREADSPEC here as might be expected since -pthread is
9159 # not processed when found within a spec file, it must come from
9160 # the command line. For now, the user must provide the -pthread
9161 # switch to link code compiled with gcj. In future, consider adding
9162 # support for weak references to pthread_* functions ala gthr.h API.
9163 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
9165 *-*-freebsd*)
9166 # FreeBSD >=5.3 implements a model much closer to other modern UNIX
9167 # systems which support threads and -lpthread.
9168 THREADLDFLAGS=-pthread
9169 THREADSPEC=-lpthread
9171 alpha*-dec-osf* | hppa*-hp-hpux*)
9172 THREADCXXFLAGS=-pthread
9173 # boehm-gc needs some functions from librt, so link that too.
9174 THREADLIBS='-lpthread -lrt'
9175 THREADSPEC='-lpthread -lrt'
9178 THREADLIBS=-lpthread
9179 THREADSPEC=-lpthread
9181 esac
9182 THREADH=posix-threads.h
9183 # MIT pthreads doesn't seem to have the mutexattr functions.
9184 # But for now we don't check for it. We just assume you aren't
9185 # using MIT pthreads.
9187 cat >>confdefs.h <<\_ACEOF
9188 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9189 _ACEOF
9192 # If we're using the Boehm GC, then we happen to know that it
9193 # defines _REENTRANT, so we don't bother. Eww.
9194 if test "$GC" != boehm; then
9196 cat >>confdefs.h <<\_ACEOF
9197 #define _REENTRANT 1
9198 _ACEOF
9202 cat >>confdefs.h <<\_ACEOF
9203 #define _POSIX_PTHREAD_SEMANTICS 1
9204 _ACEOF
9208 win32)
9209 THREADH=win32-threads.h
9210 THREADCXXFLAGS=-mthreads
9211 # We need thread-safe exception handling so _CRT_MT should be set to 1.
9212 # But we do not want the executables created to be dependent on
9213 # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
9214 # exception handling contexts. The following kludge achieves this effect
9215 # and causes a dummy __mingwthr_key_dtor() to be linked in from
9216 # libmingw32.a. This causes a memory leak of about 24 bytes per thread.
9217 # A workaround is to explicitly use -mthreads while linking Java programs.
9218 # See PR libgcj/28263.
9220 # FIXME: In Java we are able to detect thread death at the end of
9221 # Thread.run() so we should be able to clean up the exception handling
9222 # contexts ourselves.
9223 THREADSTARTFILESPEC='crtmt%O%s'
9226 none)
9227 THREADH=no-threads.h
9229 esac
9230 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
9241 if test "$THREADS" = posix; then
9242 USING_POSIX_THREADS_TRUE=
9243 USING_POSIX_THREADS_FALSE='#'
9244 else
9245 USING_POSIX_THREADS_TRUE='#'
9246 USING_POSIX_THREADS_FALSE=
9251 if test "$THREADS" = win32; then
9252 USING_WIN32_THREADS_TRUE=
9253 USING_WIN32_THREADS_FALSE='#'
9254 else
9255 USING_WIN32_THREADS_TRUE='#'
9256 USING_WIN32_THREADS_FALSE=
9261 if test "$THREADS" = none; then
9262 USING_NO_THREADS_TRUE=
9263 USING_NO_THREADS_FALSE='#'
9264 else
9265 USING_NO_THREADS_TRUE='#'
9266 USING_NO_THREADS_FALSE=
9271 if test "$use_libgcj_bc" = yes; then
9272 USE_LIBGCJ_BC_TRUE=
9273 USE_LIBGCJ_BC_FALSE='#'
9274 else
9275 USE_LIBGCJ_BC_TRUE='#'
9276 USE_LIBGCJ_BC_FALSE=
9280 if test -d sysdep; then true; else mkdir sysdep; fi
9281 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
9283 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
9285 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
9288 LIBGCJ_SPEC="%{s-bc-abi:} -lgcj"
9289 if test "$use_libgcj_bc" = yes; then
9290 LIBGCJ_SPEC="%{s-bc-abi:-lgcj_bc;:-lgcj}"
9294 HASH_SYNC_SPEC=
9295 # Hash synchronization is only useful with posix threads right now.
9296 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
9297 HASH_SYNC_SPEC=-fhash-synchronization
9299 cat >>confdefs.h <<\_ACEOF
9300 #define JV_HASH_SYNCHRONIZATION 1
9301 _ACEOF
9308 if test "$GCC" = yes; then
9309 USING_GCC_TRUE=
9310 USING_GCC_FALSE='#'
9311 else
9312 USING_GCC_TRUE='#'
9313 USING_GCC_FALSE=
9317 # We're in the tree with gcc, and need to include some of its headers.
9318 GCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../gcc'
9320 if test "x${with_newlib}" = "xyes"; then
9321 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
9322 # may not work correctly, because the compiler may not be able to
9323 # link executables.
9325 # We assume newlib. This lets us hard-code the functions we know
9326 # we'll have.
9328 cat >>confdefs.h <<\_ACEOF
9329 #define HAVE_MEMMOVE 1
9330 _ACEOF
9333 cat >>confdefs.h <<\_ACEOF
9334 #define HAVE_MEMCPY 1
9335 _ACEOF
9338 cat >>confdefs.h <<\_ACEOF
9339 #define HAVE_STRERROR 1
9340 _ACEOF
9343 cat >>confdefs.h <<\_ACEOF
9344 #define HAVE_TIME 1
9345 _ACEOF
9348 cat >>confdefs.h <<\_ACEOF
9349 #define HAVE_GMTIME_R 1
9350 _ACEOF
9353 cat >>confdefs.h <<\_ACEOF
9354 #define HAVE_LOCALTIME_R 1
9355 _ACEOF
9358 cat >>confdefs.h <<\_ACEOF
9359 #define HAVE_USLEEP_DECL 1
9360 _ACEOF
9362 # This is only for POSIX threads.
9364 cat >>confdefs.h <<\_ACEOF
9365 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9366 _ACEOF
9368 # We also assume we are using gcc, which provides alloca.
9369 cat >>confdefs.h <<\_ACEOF
9370 #define HAVE_ALLOCA 1
9371 _ACEOF
9374 # Assume we do not have getuid and friends.
9376 cat >>confdefs.h <<\_ACEOF
9377 #define NO_GETUID 1
9378 _ACEOF
9380 PLATFORMNET=NoNet
9381 else
9418 for ac_func in strerror ioctl select fstat open fsync sleep opendir \
9419 gmtime_r localtime_r readdir_r getpwuid_r getcwd \
9420 access stat lstat mkdir rename rmdir unlink utime chmod readlink \
9421 nl_langinfo setlocale \
9422 inet_pton uname inet_ntoa \
9423 fork execvp getrlimit pipe sigaction ftruncate mmap \
9424 getifaddrs
9426 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9427 echo "$as_me:$LINENO: checking for $ac_func" >&5
9428 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9429 if eval "test \"\${$as_ac_var+set}\" = set"; then
9430 echo $ECHO_N "(cached) $ECHO_C" >&6
9431 else
9432 if test x$gcc_no_link = xyes; then
9433 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9434 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9435 { (exit 1); exit 1; }; }
9437 cat >conftest.$ac_ext <<_ACEOF
9438 /* confdefs.h. */
9439 _ACEOF
9440 cat confdefs.h >>conftest.$ac_ext
9441 cat >>conftest.$ac_ext <<_ACEOF
9442 /* end confdefs.h. */
9443 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9444 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9445 #define $ac_func innocuous_$ac_func
9447 /* System header to define __stub macros and hopefully few prototypes,
9448 which can conflict with char $ac_func (); below.
9449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9450 <limits.h> exists even on freestanding compilers. */
9452 #ifdef __STDC__
9453 # include <limits.h>
9454 #else
9455 # include <assert.h>
9456 #endif
9458 #undef $ac_func
9460 /* Override any gcc2 internal prototype to avoid an error. */
9461 #ifdef __cplusplus
9462 extern "C"
9464 #endif
9465 /* We use char because int might match the return type of a gcc2
9466 builtin and then its argument prototype would still apply. */
9467 char $ac_func ();
9468 /* The GNU C library defines this for functions which it implements
9469 to always fail with ENOSYS. Some functions are actually named
9470 something starting with __ and the normal name is an alias. */
9471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9472 choke me
9473 #else
9474 char (*f) () = $ac_func;
9475 #endif
9476 #ifdef __cplusplus
9478 #endif
9481 main ()
9483 return f != $ac_func;
9485 return 0;
9487 _ACEOF
9488 rm -f conftest.$ac_objext conftest$ac_exeext
9489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9490 (eval $ac_link) 2>conftest.er1
9491 ac_status=$?
9492 grep -v '^ *+' conftest.er1 >conftest.err
9493 rm -f conftest.er1
9494 cat conftest.err >&5
9495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496 (exit $ac_status); } &&
9497 { ac_try='test -z "$ac_c_werror_flag"
9498 || test ! -s conftest.err'
9499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9500 (eval $ac_try) 2>&5
9501 ac_status=$?
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); }; } &&
9504 { ac_try='test -s conftest$ac_exeext'
9505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9506 (eval $ac_try) 2>&5
9507 ac_status=$?
9508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509 (exit $ac_status); }; }; then
9510 eval "$as_ac_var=yes"
9511 else
9512 echo "$as_me: failed program was:" >&5
9513 sed 's/^/| /' conftest.$ac_ext >&5
9515 eval "$as_ac_var=no"
9517 rm -f conftest.err conftest.$ac_objext \
9518 conftest$ac_exeext conftest.$ac_ext
9520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9521 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9522 if test `eval echo '${'$as_ac_var'}'` = yes; then
9523 cat >>confdefs.h <<_ACEOF
9524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9525 _ACEOF
9528 done
9532 for ac_func in inet_aton inet_addr
9534 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9535 echo "$as_me:$LINENO: checking for $ac_func" >&5
9536 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9537 if eval "test \"\${$as_ac_var+set}\" = set"; then
9538 echo $ECHO_N "(cached) $ECHO_C" >&6
9539 else
9540 if test x$gcc_no_link = xyes; then
9541 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9542 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9543 { (exit 1); exit 1; }; }
9545 cat >conftest.$ac_ext <<_ACEOF
9546 /* confdefs.h. */
9547 _ACEOF
9548 cat confdefs.h >>conftest.$ac_ext
9549 cat >>conftest.$ac_ext <<_ACEOF
9550 /* end confdefs.h. */
9551 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9553 #define $ac_func innocuous_$ac_func
9555 /* System header to define __stub macros and hopefully few prototypes,
9556 which can conflict with char $ac_func (); below.
9557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9558 <limits.h> exists even on freestanding compilers. */
9560 #ifdef __STDC__
9561 # include <limits.h>
9562 #else
9563 # include <assert.h>
9564 #endif
9566 #undef $ac_func
9568 /* Override any gcc2 internal prototype to avoid an error. */
9569 #ifdef __cplusplus
9570 extern "C"
9572 #endif
9573 /* We use char because int might match the return type of a gcc2
9574 builtin and then its argument prototype would still apply. */
9575 char $ac_func ();
9576 /* The GNU C library defines this for functions which it implements
9577 to always fail with ENOSYS. Some functions are actually named
9578 something starting with __ and the normal name is an alias. */
9579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9580 choke me
9581 #else
9582 char (*f) () = $ac_func;
9583 #endif
9584 #ifdef __cplusplus
9586 #endif
9589 main ()
9591 return f != $ac_func;
9593 return 0;
9595 _ACEOF
9596 rm -f conftest.$ac_objext conftest$ac_exeext
9597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9598 (eval $ac_link) 2>conftest.er1
9599 ac_status=$?
9600 grep -v '^ *+' conftest.er1 >conftest.err
9601 rm -f conftest.er1
9602 cat conftest.err >&5
9603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604 (exit $ac_status); } &&
9605 { ac_try='test -z "$ac_c_werror_flag"
9606 || test ! -s conftest.err'
9607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9608 (eval $ac_try) 2>&5
9609 ac_status=$?
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); }; } &&
9612 { ac_try='test -s conftest$ac_exeext'
9613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9614 (eval $ac_try) 2>&5
9615 ac_status=$?
9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617 (exit $ac_status); }; }; then
9618 eval "$as_ac_var=yes"
9619 else
9620 echo "$as_me: failed program was:" >&5
9621 sed 's/^/| /' conftest.$ac_ext >&5
9623 eval "$as_ac_var=no"
9625 rm -f conftest.err conftest.$ac_objext \
9626 conftest$ac_exeext conftest.$ac_ext
9628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9629 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9630 if test `eval echo '${'$as_ac_var'}'` = yes; then
9631 cat >>confdefs.h <<_ACEOF
9632 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9633 _ACEOF
9634 break
9636 done
9638 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9639 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9640 if test "${ac_cv_header_stdc+set}" = set; then
9641 echo $ECHO_N "(cached) $ECHO_C" >&6
9642 else
9643 cat >conftest.$ac_ext <<_ACEOF
9644 /* confdefs.h. */
9645 _ACEOF
9646 cat confdefs.h >>conftest.$ac_ext
9647 cat >>conftest.$ac_ext <<_ACEOF
9648 /* end confdefs.h. */
9649 #include <stdlib.h>
9650 #include <stdarg.h>
9651 #include <string.h>
9652 #include <float.h>
9655 main ()
9659 return 0;
9661 _ACEOF
9662 rm -f conftest.$ac_objext
9663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9664 (eval $ac_compile) 2>conftest.er1
9665 ac_status=$?
9666 grep -v '^ *+' conftest.er1 >conftest.err
9667 rm -f conftest.er1
9668 cat conftest.err >&5
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); } &&
9671 { ac_try='test -z "$ac_c_werror_flag"
9672 || test ! -s conftest.err'
9673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9674 (eval $ac_try) 2>&5
9675 ac_status=$?
9676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677 (exit $ac_status); }; } &&
9678 { ac_try='test -s conftest.$ac_objext'
9679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9680 (eval $ac_try) 2>&5
9681 ac_status=$?
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); }; }; then
9684 ac_cv_header_stdc=yes
9685 else
9686 echo "$as_me: failed program was:" >&5
9687 sed 's/^/| /' conftest.$ac_ext >&5
9689 ac_cv_header_stdc=no
9691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9693 if test $ac_cv_header_stdc = yes; then
9694 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9695 cat >conftest.$ac_ext <<_ACEOF
9696 /* confdefs.h. */
9697 _ACEOF
9698 cat confdefs.h >>conftest.$ac_ext
9699 cat >>conftest.$ac_ext <<_ACEOF
9700 /* end confdefs.h. */
9701 #include <string.h>
9703 _ACEOF
9704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9705 $EGREP "memchr" >/dev/null 2>&1; then
9707 else
9708 ac_cv_header_stdc=no
9710 rm -f conftest*
9714 if test $ac_cv_header_stdc = yes; then
9715 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9716 cat >conftest.$ac_ext <<_ACEOF
9717 /* confdefs.h. */
9718 _ACEOF
9719 cat confdefs.h >>conftest.$ac_ext
9720 cat >>conftest.$ac_ext <<_ACEOF
9721 /* end confdefs.h. */
9722 #include <stdlib.h>
9724 _ACEOF
9725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9726 $EGREP "free" >/dev/null 2>&1; then
9728 else
9729 ac_cv_header_stdc=no
9731 rm -f conftest*
9735 if test $ac_cv_header_stdc = yes; then
9736 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9737 if test "$cross_compiling" = yes; then
9739 else
9740 cat >conftest.$ac_ext <<_ACEOF
9741 /* confdefs.h. */
9742 _ACEOF
9743 cat confdefs.h >>conftest.$ac_ext
9744 cat >>conftest.$ac_ext <<_ACEOF
9745 /* end confdefs.h. */
9746 #include <ctype.h>
9747 #if ((' ' & 0x0FF) == 0x020)
9748 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9749 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9750 #else
9751 # define ISLOWER(c) \
9752 (('a' <= (c) && (c) <= 'i') \
9753 || ('j' <= (c) && (c) <= 'r') \
9754 || ('s' <= (c) && (c) <= 'z'))
9755 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9756 #endif
9758 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9760 main ()
9762 int i;
9763 for (i = 0; i < 256; i++)
9764 if (XOR (islower (i), ISLOWER (i))
9765 || toupper (i) != TOUPPER (i))
9766 exit(2);
9767 exit (0);
9769 _ACEOF
9770 rm -f conftest$ac_exeext
9771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9772 (eval $ac_link) 2>&5
9773 ac_status=$?
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9777 (eval $ac_try) 2>&5
9778 ac_status=$?
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); }; }; then
9782 else
9783 echo "$as_me: program exited with status $ac_status" >&5
9784 echo "$as_me: failed program was:" >&5
9785 sed 's/^/| /' conftest.$ac_ext >&5
9787 ( exit $ac_status )
9788 ac_cv_header_stdc=no
9790 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9794 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9795 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9796 if test $ac_cv_header_stdc = yes; then
9798 cat >>confdefs.h <<\_ACEOF
9799 #define STDC_HEADERS 1
9800 _ACEOF
9804 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9814 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9815 inttypes.h stdint.h unistd.h
9817 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9818 echo "$as_me:$LINENO: checking for $ac_header" >&5
9819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9821 echo $ECHO_N "(cached) $ECHO_C" >&6
9822 else
9823 cat >conftest.$ac_ext <<_ACEOF
9824 /* confdefs.h. */
9825 _ACEOF
9826 cat confdefs.h >>conftest.$ac_ext
9827 cat >>conftest.$ac_ext <<_ACEOF
9828 /* end confdefs.h. */
9829 $ac_includes_default
9831 #include <$ac_header>
9832 _ACEOF
9833 rm -f conftest.$ac_objext
9834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9835 (eval $ac_compile) 2>conftest.er1
9836 ac_status=$?
9837 grep -v '^ *+' conftest.er1 >conftest.err
9838 rm -f conftest.er1
9839 cat conftest.err >&5
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); } &&
9842 { ac_try='test -z "$ac_c_werror_flag"
9843 || test ! -s conftest.err'
9844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9845 (eval $ac_try) 2>&5
9846 ac_status=$?
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); }; } &&
9849 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
9855 eval "$as_ac_Header=yes"
9856 else
9857 echo "$as_me: failed program was:" >&5
9858 sed 's/^/| /' conftest.$ac_ext >&5
9860 eval "$as_ac_Header=no"
9862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9866 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9867 cat >>confdefs.h <<_ACEOF
9868 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9869 _ACEOF
9873 done
9880 for ac_header in execinfo.h unistd.h dlfcn.h sys/resource.h
9882 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9884 echo "$as_me:$LINENO: checking for $ac_header" >&5
9885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9887 echo $ECHO_N "(cached) $ECHO_C" >&6
9889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9890 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9891 else
9892 # Is the header compilable?
9893 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9894 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9895 cat >conftest.$ac_ext <<_ACEOF
9896 /* confdefs.h. */
9897 _ACEOF
9898 cat confdefs.h >>conftest.$ac_ext
9899 cat >>conftest.$ac_ext <<_ACEOF
9900 /* end confdefs.h. */
9901 $ac_includes_default
9902 #include <$ac_header>
9903 _ACEOF
9904 rm -f conftest.$ac_objext
9905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9906 (eval $ac_compile) 2>conftest.er1
9907 ac_status=$?
9908 grep -v '^ *+' conftest.er1 >conftest.err
9909 rm -f conftest.er1
9910 cat conftest.err >&5
9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912 (exit $ac_status); } &&
9913 { ac_try='test -z "$ac_c_werror_flag"
9914 || test ! -s conftest.err'
9915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9916 (eval $ac_try) 2>&5
9917 ac_status=$?
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); }; } &&
9920 { ac_try='test -s conftest.$ac_objext'
9921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9922 (eval $ac_try) 2>&5
9923 ac_status=$?
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); }; }; then
9926 ac_header_compiler=yes
9927 else
9928 echo "$as_me: failed program was:" >&5
9929 sed 's/^/| /' conftest.$ac_ext >&5
9931 ac_header_compiler=no
9933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9934 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9935 echo "${ECHO_T}$ac_header_compiler" >&6
9937 # Is the header present?
9938 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9939 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9940 cat >conftest.$ac_ext <<_ACEOF
9941 /* confdefs.h. */
9942 _ACEOF
9943 cat confdefs.h >>conftest.$ac_ext
9944 cat >>conftest.$ac_ext <<_ACEOF
9945 /* end confdefs.h. */
9946 #include <$ac_header>
9947 _ACEOF
9948 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9949 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9950 ac_status=$?
9951 grep -v '^ *+' conftest.er1 >conftest.err
9952 rm -f conftest.er1
9953 cat conftest.err >&5
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); } >/dev/null; then
9956 if test -s conftest.err; then
9957 ac_cpp_err=$ac_c_preproc_warn_flag
9958 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9959 else
9960 ac_cpp_err=
9962 else
9963 ac_cpp_err=yes
9965 if test -z "$ac_cpp_err"; then
9966 ac_header_preproc=yes
9967 else
9968 echo "$as_me: failed program was:" >&5
9969 sed 's/^/| /' conftest.$ac_ext >&5
9971 ac_header_preproc=no
9973 rm -f conftest.err conftest.$ac_ext
9974 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9975 echo "${ECHO_T}$ac_header_preproc" >&6
9977 # So? What about this header?
9978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9979 yes:no: )
9980 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9981 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9983 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9984 ac_header_preproc=yes
9986 no:yes:* )
9987 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9988 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9989 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9990 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9991 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9992 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9993 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9994 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9996 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9997 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9998 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10000 cat <<\_ASBOX
10001 ## ---------------------------------- ##
10002 ## Report this to the libjava lists. ##
10003 ## ---------------------------------- ##
10004 _ASBOX
10006 sed "s/^/$as_me: WARNING: /" >&2
10008 esac
10009 echo "$as_me:$LINENO: checking for $ac_header" >&5
10010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10012 echo $ECHO_N "(cached) $ECHO_C" >&6
10013 else
10014 eval "$as_ac_Header=\$ac_header_preproc"
10016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10017 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10021 cat >>confdefs.h <<_ACEOF
10022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10023 _ACEOF
10027 done
10029 # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
10030 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
10031 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
10032 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
10033 echo $ECHO_N "(cached) $ECHO_C" >&6
10034 else
10035 ac_check_lib_save_LIBS=$LIBS
10036 LIBS="-ldl $LIBS"
10037 if test x$gcc_no_link = xyes; then
10038 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10039 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10040 { (exit 1); exit 1; }; }
10042 cat >conftest.$ac_ext <<_ACEOF
10043 /* confdefs.h. */
10044 _ACEOF
10045 cat confdefs.h >>conftest.$ac_ext
10046 cat >>conftest.$ac_ext <<_ACEOF
10047 /* end confdefs.h. */
10049 /* Override any gcc2 internal prototype to avoid an error. */
10050 #ifdef __cplusplus
10051 extern "C"
10052 #endif
10053 /* We use char because int might match the return type of a gcc2
10054 builtin and then its argument prototype would still apply. */
10055 char dladdr ();
10057 main ()
10059 dladdr ();
10061 return 0;
10063 _ACEOF
10064 rm -f conftest.$ac_objext conftest$ac_exeext
10065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10066 (eval $ac_link) 2>conftest.er1
10067 ac_status=$?
10068 grep -v '^ *+' conftest.er1 >conftest.err
10069 rm -f conftest.er1
10070 cat conftest.err >&5
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); } &&
10073 { ac_try='test -z "$ac_c_werror_flag"
10074 || test ! -s conftest.err'
10075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10076 (eval $ac_try) 2>&5
10077 ac_status=$?
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); }; } &&
10080 { ac_try='test -s conftest$ac_exeext'
10081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10082 (eval $ac_try) 2>&5
10083 ac_status=$?
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 (exit $ac_status); }; }; then
10086 ac_cv_lib_dl_dladdr=yes
10087 else
10088 echo "$as_me: failed program was:" >&5
10089 sed 's/^/| /' conftest.$ac_ext >&5
10091 ac_cv_lib_dl_dladdr=no
10093 rm -f conftest.err conftest.$ac_objext \
10094 conftest$ac_exeext conftest.$ac_ext
10095 LIBS=$ac_check_lib_save_LIBS
10097 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
10098 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
10099 if test $ac_cv_lib_dl_dladdr = yes; then
10102 cat >>confdefs.h <<\_ACEOF
10103 #define HAVE_DLADDR 1
10104 _ACEOF
10106 else
10108 echo "$as_me:$LINENO: checking for dladdr in -ldld" >&5
10109 echo $ECHO_N "checking for dladdr in -ldld... $ECHO_C" >&6
10110 if test "${ac_cv_lib_dld_dladdr+set}" = set; then
10111 echo $ECHO_N "(cached) $ECHO_C" >&6
10112 else
10113 ac_check_lib_save_LIBS=$LIBS
10114 LIBS="-ldld $LIBS"
10115 if test x$gcc_no_link = xyes; then
10116 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10117 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10118 { (exit 1); exit 1; }; }
10120 cat >conftest.$ac_ext <<_ACEOF
10121 /* confdefs.h. */
10122 _ACEOF
10123 cat confdefs.h >>conftest.$ac_ext
10124 cat >>conftest.$ac_ext <<_ACEOF
10125 /* end confdefs.h. */
10127 /* Override any gcc2 internal prototype to avoid an error. */
10128 #ifdef __cplusplus
10129 extern "C"
10130 #endif
10131 /* We use char because int might match the return type of a gcc2
10132 builtin and then its argument prototype would still apply. */
10133 char dladdr ();
10135 main ()
10137 dladdr ();
10139 return 0;
10141 _ACEOF
10142 rm -f conftest.$ac_objext conftest$ac_exeext
10143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10144 (eval $ac_link) 2>conftest.er1
10145 ac_status=$?
10146 grep -v '^ *+' conftest.er1 >conftest.err
10147 rm -f conftest.er1
10148 cat conftest.err >&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); } &&
10151 { ac_try='test -z "$ac_c_werror_flag"
10152 || test ! -s conftest.err'
10153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10154 (eval $ac_try) 2>&5
10155 ac_status=$?
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); }; } &&
10158 { ac_try='test -s conftest$ac_exeext'
10159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10160 (eval $ac_try) 2>&5
10161 ac_status=$?
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); }; }; then
10164 ac_cv_lib_dld_dladdr=yes
10165 else
10166 echo "$as_me: failed program was:" >&5
10167 sed 's/^/| /' conftest.$ac_ext >&5
10169 ac_cv_lib_dld_dladdr=no
10171 rm -f conftest.err conftest.$ac_objext \
10172 conftest$ac_exeext conftest.$ac_ext
10173 LIBS=$ac_check_lib_save_LIBS
10175 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dladdr" >&5
10176 echo "${ECHO_T}$ac_cv_lib_dld_dladdr" >&6
10177 if test $ac_cv_lib_dld_dladdr = yes; then
10180 cat >>confdefs.h <<\_ACEOF
10181 #define HAVE_DLADDR 1
10182 _ACEOF
10189 if test x"$cross_compiling" = x"no"; then
10190 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
10191 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
10192 if test "${ac_cv_file__proc_self_exe+set}" = set; then
10193 echo $ECHO_N "(cached) $ECHO_C" >&6
10194 else
10195 test "$cross_compiling" = yes &&
10196 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10197 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10198 { (exit 1); exit 1; }; }
10199 if test -r "/proc/self/exe"; then
10200 ac_cv_file__proc_self_exe=yes
10201 else
10202 ac_cv_file__proc_self_exe=no
10205 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
10206 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
10207 if test $ac_cv_file__proc_self_exe = yes; then
10209 cat >>confdefs.h <<_ACEOF
10210 #define HAVE__PROC_SELF_EXE 1
10211 _ACEOF
10215 cat >>confdefs.h <<\_ACEOF
10216 #define HAVE_PROC_SELF_EXE 1
10217 _ACEOF
10221 else
10222 case $host in
10223 *-linux*)
10225 cat >>confdefs.h <<\_ACEOF
10226 #define HAVE_PROC_SELF_EXE 1
10227 _ACEOF
10230 esac
10234 if test "X$prefix" = "XNONE"; then
10235 acl_final_prefix="$ac_default_prefix"
10236 else
10237 acl_final_prefix="$prefix"
10239 if test "X$exec_prefix" = "XNONE"; then
10240 acl_final_exec_prefix='${prefix}'
10241 else
10242 acl_final_exec_prefix="$exec_prefix"
10244 acl_save_prefix="$prefix"
10245 prefix="$acl_final_prefix"
10246 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10247 prefix="$acl_save_prefix"
10250 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10251 if test "${with_gnu_ld+set}" = set; then
10252 withval="$with_gnu_ld"
10253 test "$withval" = no || with_gnu_ld=yes
10254 else
10255 with_gnu_ld=no
10257 # Prepare PATH_SEPARATOR.
10258 # The user is always right.
10259 if test "${PATH_SEPARATOR+set}" != set; then
10260 echo "#! /bin/sh" >conf$$.sh
10261 echo "exit 0" >>conf$$.sh
10262 chmod +x conf$$.sh
10263 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10264 PATH_SEPARATOR=';'
10265 else
10266 PATH_SEPARATOR=:
10268 rm -f conf$$.sh
10270 ac_prog=ld
10271 if test "$GCC" = yes; then
10272 # Check if gcc -print-prog-name=ld gives a path.
10273 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10274 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10275 case $host in
10276 *-*-mingw*)
10277 # gcc leaves a trailing carriage return which upsets mingw
10278 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10280 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10281 esac
10282 case $ac_prog in
10283 # Accept absolute paths.
10284 [\\/]* | [A-Za-z]:[\\/]*)
10285 re_direlt='/[^/][^/]*/\.\./'
10286 # Canonicalize the path of ld
10287 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10288 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10289 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10290 done
10291 test -z "$LD" && LD="$ac_prog"
10294 # If it fails, then pretend we aren't using GCC.
10295 ac_prog=ld
10298 # If it is relative, then search for the first ld in PATH.
10299 with_gnu_ld=unknown
10301 esac
10302 elif test "$with_gnu_ld" = yes; then
10303 echo "$as_me:$LINENO: checking for GNU ld" >&5
10304 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10305 else
10306 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10307 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10309 if test "${acl_cv_path_LD+set}" = set; then
10310 echo $ECHO_N "(cached) $ECHO_C" >&6
10311 else
10312 if test -z "$LD"; then
10313 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10314 for ac_dir in $PATH; do
10315 test -z "$ac_dir" && ac_dir=.
10316 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10317 acl_cv_path_LD="$ac_dir/$ac_prog"
10318 # Check to see if the program is GNU ld. I'd rather use --version,
10319 # but apparently some GNU ld's only accept -v.
10320 # Break only if it was the GNU/non-GNU ld that we prefer.
10321 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10322 test "$with_gnu_ld" != no && break
10323 else
10324 test "$with_gnu_ld" != yes && break
10327 done
10328 IFS="$ac_save_ifs"
10329 else
10330 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10334 LD="$acl_cv_path_LD"
10335 if test -n "$LD"; then
10336 echo "$as_me:$LINENO: result: $LD" >&5
10337 echo "${ECHO_T}$LD" >&6
10338 else
10339 echo "$as_me:$LINENO: result: no" >&5
10340 echo "${ECHO_T}no" >&6
10342 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10343 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10344 { (exit 1); exit 1; }; }
10345 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10346 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10347 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10348 echo $ECHO_N "(cached) $ECHO_C" >&6
10349 else
10350 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10351 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10352 acl_cv_prog_gnu_ld=yes
10353 else
10354 acl_cv_prog_gnu_ld=no
10357 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10358 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10359 with_gnu_ld=$acl_cv_prog_gnu_ld
10363 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10364 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10365 if test "${acl_cv_rpath+set}" = set; then
10366 echo $ECHO_N "(cached) $ECHO_C" >&6
10367 else
10369 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10370 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10371 . ./conftest.sh
10372 rm -f ./conftest.sh
10373 acl_cv_rpath=done
10376 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10377 echo "${ECHO_T}$acl_cv_rpath" >&6
10378 wl="$acl_cv_wl"
10379 libext="$acl_cv_libext"
10380 shlibext="$acl_cv_shlibext"
10381 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10382 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10383 hardcode_direct="$acl_cv_hardcode_direct"
10384 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10385 # Check whether --enable-rpath or --disable-rpath was given.
10386 if test "${enable_rpath+set}" = set; then
10387 enableval="$enable_rpath"
10389 else
10390 enable_rpath=yes
10399 use_additional=yes
10401 acl_save_prefix="$prefix"
10402 prefix="$acl_final_prefix"
10403 acl_save_exec_prefix="$exec_prefix"
10404 exec_prefix="$acl_final_exec_prefix"
10406 eval additional_includedir=\"$includedir\"
10407 eval additional_libdir=\"$libdir\"
10409 exec_prefix="$acl_save_exec_prefix"
10410 prefix="$acl_save_prefix"
10413 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10414 if test "${with_libiconv_prefix+set}" = set; then
10415 withval="$with_libiconv_prefix"
10417 if test "X$withval" = "Xno"; then
10418 use_additional=no
10419 else
10420 if test "X$withval" = "X"; then
10422 acl_save_prefix="$prefix"
10423 prefix="$acl_final_prefix"
10424 acl_save_exec_prefix="$exec_prefix"
10425 exec_prefix="$acl_final_exec_prefix"
10427 eval additional_includedir=\"$includedir\"
10428 eval additional_libdir=\"$libdir\"
10430 exec_prefix="$acl_save_exec_prefix"
10431 prefix="$acl_save_prefix"
10433 else
10434 additional_includedir="$withval/include"
10435 additional_libdir="$withval/lib"
10440 LIBICONV=
10441 LTLIBICONV=
10442 INCICONV=
10443 rpathdirs=
10444 ltrpathdirs=
10445 names_already_handled=
10446 names_next_round='iconv '
10447 while test -n "$names_next_round"; do
10448 names_this_round="$names_next_round"
10449 names_next_round=
10450 for name in $names_this_round; do
10451 already_handled=
10452 for n in $names_already_handled; do
10453 if test "$n" = "$name"; then
10454 already_handled=yes
10455 break
10457 done
10458 if test -z "$already_handled"; then
10459 names_already_handled="$names_already_handled $name"
10460 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10461 eval value=\"\$HAVE_LIB$uppername\"
10462 if test -n "$value"; then
10463 if test "$value" = yes; then
10464 eval value=\"\$LIB$uppername\"
10465 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10466 eval value=\"\$LTLIB$uppername\"
10467 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10468 else
10471 else
10472 found_dir=
10473 found_la=
10474 found_so=
10475 found_a=
10476 if test $use_additional = yes; then
10477 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10478 found_dir="$additional_libdir"
10479 found_so="$additional_libdir/lib$name.$shlibext"
10480 if test -f "$additional_libdir/lib$name.la"; then
10481 found_la="$additional_libdir/lib$name.la"
10483 else
10484 if test -f "$additional_libdir/lib$name.$libext"; then
10485 found_dir="$additional_libdir"
10486 found_a="$additional_libdir/lib$name.$libext"
10487 if test -f "$additional_libdir/lib$name.la"; then
10488 found_la="$additional_libdir/lib$name.la"
10493 if test "X$found_dir" = "X"; then
10494 for x in $LDFLAGS $LTLIBICONV; do
10496 acl_save_prefix="$prefix"
10497 prefix="$acl_final_prefix"
10498 acl_save_exec_prefix="$exec_prefix"
10499 exec_prefix="$acl_final_exec_prefix"
10500 eval x=\"$x\"
10501 exec_prefix="$acl_save_exec_prefix"
10502 prefix="$acl_save_prefix"
10504 case "$x" in
10505 -L*)
10506 dir=`echo "X$x" | sed -e 's/^X-L//'`
10507 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10508 found_dir="$dir"
10509 found_so="$dir/lib$name.$shlibext"
10510 if test -f "$dir/lib$name.la"; then
10511 found_la="$dir/lib$name.la"
10513 else
10514 if test -f "$dir/lib$name.$libext"; then
10515 found_dir="$dir"
10516 found_a="$dir/lib$name.$libext"
10517 if test -f "$dir/lib$name.la"; then
10518 found_la="$dir/lib$name.la"
10523 esac
10524 if test "X$found_dir" != "X"; then
10525 break
10527 done
10529 if test "X$found_dir" != "X"; then
10530 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10531 if test "X$found_so" != "X"; then
10532 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10533 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10534 else
10535 haveit=
10536 for x in $ltrpathdirs; do
10537 if test "X$x" = "X$found_dir"; then
10538 haveit=yes
10539 break
10541 done
10542 if test -z "$haveit"; then
10543 ltrpathdirs="$ltrpathdirs $found_dir"
10545 if test "$hardcode_direct" = yes; then
10546 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10547 else
10548 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10549 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10550 haveit=
10551 for x in $rpathdirs; do
10552 if test "X$x" = "X$found_dir"; then
10553 haveit=yes
10554 break
10556 done
10557 if test -z "$haveit"; then
10558 rpathdirs="$rpathdirs $found_dir"
10560 else
10561 haveit=
10562 for x in $LDFLAGS $LIBICONV; do
10564 acl_save_prefix="$prefix"
10565 prefix="$acl_final_prefix"
10566 acl_save_exec_prefix="$exec_prefix"
10567 exec_prefix="$acl_final_exec_prefix"
10568 eval x=\"$x\"
10569 exec_prefix="$acl_save_exec_prefix"
10570 prefix="$acl_save_prefix"
10572 if test "X$x" = "X-L$found_dir"; then
10573 haveit=yes
10574 break
10576 done
10577 if test -z "$haveit"; then
10578 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10580 if test "$hardcode_minus_L" != no; then
10581 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10582 else
10583 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10588 else
10589 if test "X$found_a" != "X"; then
10590 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10591 else
10592 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10595 additional_includedir=
10596 case "$found_dir" in
10597 */lib | */lib/)
10598 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10599 additional_includedir="$basedir/include"
10601 esac
10602 if test "X$additional_includedir" != "X"; then
10603 if test "X$additional_includedir" != "X/usr/include"; then
10604 haveit=
10605 if test "X$additional_includedir" = "X/usr/local/include"; then
10606 if test -n "$GCC"; then
10607 case $host_os in
10608 linux*) haveit=yes;;
10609 esac
10612 if test -z "$haveit"; then
10613 for x in $CPPFLAGS $INCICONV; do
10615 acl_save_prefix="$prefix"
10616 prefix="$acl_final_prefix"
10617 acl_save_exec_prefix="$exec_prefix"
10618 exec_prefix="$acl_final_exec_prefix"
10619 eval x=\"$x\"
10620 exec_prefix="$acl_save_exec_prefix"
10621 prefix="$acl_save_prefix"
10623 if test "X$x" = "X-I$additional_includedir"; then
10624 haveit=yes
10625 break
10627 done
10628 if test -z "$haveit"; then
10629 if test -d "$additional_includedir"; then
10630 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10636 if test -n "$found_la"; then
10637 save_libdir="$libdir"
10638 case "$found_la" in
10639 */* | *\\*) . "$found_la" ;;
10640 *) . "./$found_la" ;;
10641 esac
10642 libdir="$save_libdir"
10643 for dep in $dependency_libs; do
10644 case "$dep" in
10645 -L*)
10646 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10647 if test "X$additional_libdir" != "X/usr/lib"; then
10648 haveit=
10649 if test "X$additional_libdir" = "X/usr/local/lib"; then
10650 if test -n "$GCC"; then
10651 case $host_os in
10652 linux*) haveit=yes;;
10653 esac
10656 if test -z "$haveit"; then
10657 haveit=
10658 for x in $LDFLAGS $LIBICONV; do
10660 acl_save_prefix="$prefix"
10661 prefix="$acl_final_prefix"
10662 acl_save_exec_prefix="$exec_prefix"
10663 exec_prefix="$acl_final_exec_prefix"
10664 eval x=\"$x\"
10665 exec_prefix="$acl_save_exec_prefix"
10666 prefix="$acl_save_prefix"
10668 if test "X$x" = "X-L$additional_libdir"; then
10669 haveit=yes
10670 break
10672 done
10673 if test -z "$haveit"; then
10674 if test -d "$additional_libdir"; then
10675 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10678 haveit=
10679 for x in $LDFLAGS $LTLIBICONV; do
10681 acl_save_prefix="$prefix"
10682 prefix="$acl_final_prefix"
10683 acl_save_exec_prefix="$exec_prefix"
10684 exec_prefix="$acl_final_exec_prefix"
10685 eval x=\"$x\"
10686 exec_prefix="$acl_save_exec_prefix"
10687 prefix="$acl_save_prefix"
10689 if test "X$x" = "X-L$additional_libdir"; then
10690 haveit=yes
10691 break
10693 done
10694 if test -z "$haveit"; then
10695 if test -d "$additional_libdir"; then
10696 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10702 -R*)
10703 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10704 if test "$enable_rpath" != no; then
10705 haveit=
10706 for x in $rpathdirs; do
10707 if test "X$x" = "X$dir"; then
10708 haveit=yes
10709 break
10711 done
10712 if test -z "$haveit"; then
10713 rpathdirs="$rpathdirs $dir"
10715 haveit=
10716 for x in $ltrpathdirs; do
10717 if test "X$x" = "X$dir"; then
10718 haveit=yes
10719 break
10721 done
10722 if test -z "$haveit"; then
10723 ltrpathdirs="$ltrpathdirs $dir"
10727 -l*)
10728 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10730 *.la)
10731 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10734 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10735 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10737 esac
10738 done
10740 else
10741 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10742 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10746 done
10747 done
10748 if test "X$rpathdirs" != "X"; then
10749 if test -n "$hardcode_libdir_separator"; then
10750 alldirs=
10751 for found_dir in $rpathdirs; do
10752 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10753 done
10754 acl_save_libdir="$libdir"
10755 libdir="$alldirs"
10756 eval flag=\"$hardcode_libdir_flag_spec\"
10757 libdir="$acl_save_libdir"
10758 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10759 else
10760 for found_dir in $rpathdirs; do
10761 acl_save_libdir="$libdir"
10762 libdir="$found_dir"
10763 eval flag=\"$hardcode_libdir_flag_spec\"
10764 libdir="$acl_save_libdir"
10765 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10766 done
10769 if test "X$ltrpathdirs" != "X"; then
10770 for found_dir in $ltrpathdirs; do
10771 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10772 done
10781 am_save_CPPFLAGS="$CPPFLAGS"
10783 for element in $INCICONV; do
10784 haveit=
10785 for x in $CPPFLAGS; do
10787 acl_save_prefix="$prefix"
10788 prefix="$acl_final_prefix"
10789 acl_save_exec_prefix="$exec_prefix"
10790 exec_prefix="$acl_final_exec_prefix"
10791 eval x=\"$x\"
10792 exec_prefix="$acl_save_exec_prefix"
10793 prefix="$acl_save_prefix"
10795 if test "X$x" = "X$element"; then
10796 haveit=yes
10797 break
10799 done
10800 if test -z "$haveit"; then
10801 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10803 done
10806 echo "$as_me:$LINENO: checking for iconv" >&5
10807 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10808 if test "${am_cv_func_iconv+set}" = set; then
10809 echo $ECHO_N "(cached) $ECHO_C" >&6
10810 else
10812 am_cv_func_iconv="no, consider installing GNU libiconv"
10813 am_cv_lib_iconv=no
10814 if test x$gcc_no_link = xyes; then
10815 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10816 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10817 { (exit 1); exit 1; }; }
10819 cat >conftest.$ac_ext <<_ACEOF
10820 /* confdefs.h. */
10821 _ACEOF
10822 cat confdefs.h >>conftest.$ac_ext
10823 cat >>conftest.$ac_ext <<_ACEOF
10824 /* end confdefs.h. */
10825 #include <stdlib.h>
10826 #include <iconv.h>
10828 main ()
10830 iconv_t cd = iconv_open("","");
10831 iconv(cd,NULL,NULL,NULL,NULL);
10832 iconv_close(cd);
10834 return 0;
10836 _ACEOF
10837 rm -f conftest.$ac_objext conftest$ac_exeext
10838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10839 (eval $ac_link) 2>conftest.er1
10840 ac_status=$?
10841 grep -v '^ *+' conftest.er1 >conftest.err
10842 rm -f conftest.er1
10843 cat conftest.err >&5
10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); } &&
10846 { ac_try='test -z "$ac_c_werror_flag"
10847 || test ! -s conftest.err'
10848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10849 (eval $ac_try) 2>&5
10850 ac_status=$?
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); }; } &&
10853 { ac_try='test -s conftest$ac_exeext'
10854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10855 (eval $ac_try) 2>&5
10856 ac_status=$?
10857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858 (exit $ac_status); }; }; then
10859 am_cv_func_iconv=yes
10860 else
10861 echo "$as_me: failed program was:" >&5
10862 sed 's/^/| /' conftest.$ac_ext >&5
10865 rm -f conftest.err conftest.$ac_objext \
10866 conftest$ac_exeext conftest.$ac_ext
10867 if test "$am_cv_func_iconv" != yes; then
10868 am_save_LIBS="$LIBS"
10869 LIBS="$LIBS $LIBICONV"
10870 if test x$gcc_no_link = xyes; then
10871 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10872 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10873 { (exit 1); exit 1; }; }
10875 cat >conftest.$ac_ext <<_ACEOF
10876 /* confdefs.h. */
10877 _ACEOF
10878 cat confdefs.h >>conftest.$ac_ext
10879 cat >>conftest.$ac_ext <<_ACEOF
10880 /* end confdefs.h. */
10881 #include <stdlib.h>
10882 #include <iconv.h>
10884 main ()
10886 iconv_t cd = iconv_open("","");
10887 iconv(cd,NULL,NULL,NULL,NULL);
10888 iconv_close(cd);
10890 return 0;
10892 _ACEOF
10893 rm -f conftest.$ac_objext conftest$ac_exeext
10894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10895 (eval $ac_link) 2>conftest.er1
10896 ac_status=$?
10897 grep -v '^ *+' conftest.er1 >conftest.err
10898 rm -f conftest.er1
10899 cat conftest.err >&5
10900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); } &&
10902 { ac_try='test -z "$ac_c_werror_flag"
10903 || test ! -s conftest.err'
10904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10905 (eval $ac_try) 2>&5
10906 ac_status=$?
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); }; } &&
10909 { ac_try='test -s conftest$ac_exeext'
10910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10911 (eval $ac_try) 2>&5
10912 ac_status=$?
10913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914 (exit $ac_status); }; }; then
10915 am_cv_lib_iconv=yes
10916 am_cv_func_iconv=yes
10917 else
10918 echo "$as_me: failed program was:" >&5
10919 sed 's/^/| /' conftest.$ac_ext >&5
10922 rm -f conftest.err conftest.$ac_objext \
10923 conftest$ac_exeext conftest.$ac_ext
10924 LIBS="$am_save_LIBS"
10928 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10929 echo "${ECHO_T}$am_cv_func_iconv" >&6
10930 if test "$am_cv_func_iconv" = yes; then
10932 cat >>confdefs.h <<\_ACEOF
10933 #define HAVE_ICONV 1
10934 _ACEOF
10937 if test "$am_cv_lib_iconv" = yes; then
10938 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10939 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10940 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10941 echo "${ECHO_T}$LIBICONV" >&6
10942 else
10943 CPPFLAGS="$am_save_CPPFLAGS"
10944 LIBICONV=
10945 LTLIBICONV=
10950 if test "$am_cv_func_iconv" = yes; then
10951 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10952 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10953 if test "${am_cv_proto_iconv+set}" = set; then
10954 echo $ECHO_N "(cached) $ECHO_C" >&6
10955 else
10957 cat >conftest.$ac_ext <<_ACEOF
10958 /* confdefs.h. */
10959 _ACEOF
10960 cat confdefs.h >>conftest.$ac_ext
10961 cat >>conftest.$ac_ext <<_ACEOF
10962 /* end confdefs.h. */
10964 #include <stdlib.h>
10965 #include <iconv.h>
10966 extern
10967 #ifdef __cplusplus
10969 #endif
10970 #if defined(__STDC__) || defined(__cplusplus)
10971 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10972 #else
10973 size_t iconv();
10974 #endif
10977 main ()
10981 return 0;
10983 _ACEOF
10984 rm -f conftest.$ac_objext
10985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10986 (eval $ac_compile) 2>conftest.er1
10987 ac_status=$?
10988 grep -v '^ *+' conftest.er1 >conftest.err
10989 rm -f conftest.er1
10990 cat conftest.err >&5
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); } &&
10993 { ac_try='test -z "$ac_c_werror_flag"
10994 || test ! -s conftest.err'
10995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10996 (eval $ac_try) 2>&5
10997 ac_status=$?
10998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); }; } &&
11000 { ac_try='test -s conftest.$ac_objext'
11001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11002 (eval $ac_try) 2>&5
11003 ac_status=$?
11004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005 (exit $ac_status); }; }; then
11006 am_cv_proto_iconv_arg1=""
11007 else
11008 echo "$as_me: failed program was:" >&5
11009 sed 's/^/| /' conftest.$ac_ext >&5
11011 am_cv_proto_iconv_arg1="const"
11013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11014 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);"
11017 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11018 echo "$as_me:$LINENO: result: ${ac_t:-
11019 }$am_cv_proto_iconv" >&5
11020 echo "${ECHO_T}${ac_t:-
11021 }$am_cv_proto_iconv" >&6
11023 cat >>confdefs.h <<_ACEOF
11024 #define ICONV_CONST $am_cv_proto_iconv_arg1
11025 _ACEOF
11030 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11031 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11032 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11033 echo $ECHO_N "(cached) $ECHO_C" >&6
11034 else
11035 if test x$gcc_no_link = xyes; then
11036 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11037 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11038 { (exit 1); exit 1; }; }
11040 cat >conftest.$ac_ext <<_ACEOF
11041 /* confdefs.h. */
11042 _ACEOF
11043 cat confdefs.h >>conftest.$ac_ext
11044 cat >>conftest.$ac_ext <<_ACEOF
11045 /* end confdefs.h. */
11046 #include <locale.h>
11048 main ()
11050 return LC_MESSAGES
11052 return 0;
11054 _ACEOF
11055 rm -f conftest.$ac_objext conftest$ac_exeext
11056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11057 (eval $ac_link) 2>conftest.er1
11058 ac_status=$?
11059 grep -v '^ *+' conftest.er1 >conftest.err
11060 rm -f conftest.er1
11061 cat conftest.err >&5
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); } &&
11064 { ac_try='test -z "$ac_c_werror_flag"
11065 || test ! -s conftest.err'
11066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11067 (eval $ac_try) 2>&5
11068 ac_status=$?
11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070 (exit $ac_status); }; } &&
11071 { ac_try='test -s conftest$ac_exeext'
11072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11073 (eval $ac_try) 2>&5
11074 ac_status=$?
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); }; }; then
11077 am_cv_val_LC_MESSAGES=yes
11078 else
11079 echo "$as_me: failed program was:" >&5
11080 sed 's/^/| /' conftest.$ac_ext >&5
11082 am_cv_val_LC_MESSAGES=no
11084 rm -f conftest.err conftest.$ac_objext \
11085 conftest$ac_exeext conftest.$ac_ext
11087 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11088 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11089 if test $am_cv_val_LC_MESSAGES = yes; then
11091 cat >>confdefs.h <<\_ACEOF
11092 #define HAVE_LC_MESSAGES 1
11093 _ACEOF
11097 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11098 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11099 if test "${ac_cv_struct_tm+set}" = set; then
11100 echo $ECHO_N "(cached) $ECHO_C" >&6
11101 else
11102 cat >conftest.$ac_ext <<_ACEOF
11103 /* confdefs.h. */
11104 _ACEOF
11105 cat confdefs.h >>conftest.$ac_ext
11106 cat >>conftest.$ac_ext <<_ACEOF
11107 /* end confdefs.h. */
11108 #include <sys/types.h>
11109 #include <time.h>
11112 main ()
11114 struct tm *tp; tp->tm_sec;
11116 return 0;
11118 _ACEOF
11119 rm -f conftest.$ac_objext
11120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11121 (eval $ac_compile) 2>conftest.er1
11122 ac_status=$?
11123 grep -v '^ *+' conftest.er1 >conftest.err
11124 rm -f conftest.er1
11125 cat conftest.err >&5
11126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127 (exit $ac_status); } &&
11128 { ac_try='test -z "$ac_c_werror_flag"
11129 || test ! -s conftest.err'
11130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11131 (eval $ac_try) 2>&5
11132 ac_status=$?
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); }; } &&
11135 { ac_try='test -s conftest.$ac_objext'
11136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11137 (eval $ac_try) 2>&5
11138 ac_status=$?
11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 (exit $ac_status); }; }; then
11141 ac_cv_struct_tm=time.h
11142 else
11143 echo "$as_me: failed program was:" >&5
11144 sed 's/^/| /' conftest.$ac_ext >&5
11146 ac_cv_struct_tm=sys/time.h
11148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11150 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11151 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11152 if test $ac_cv_struct_tm = sys/time.h; then
11154 cat >>confdefs.h <<\_ACEOF
11155 #define TM_IN_SYS_TIME 1
11156 _ACEOF
11160 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11161 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11162 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11163 echo $ECHO_N "(cached) $ECHO_C" >&6
11164 else
11165 cat >conftest.$ac_ext <<_ACEOF
11166 /* confdefs.h. */
11167 _ACEOF
11168 cat confdefs.h >>conftest.$ac_ext
11169 cat >>conftest.$ac_ext <<_ACEOF
11170 /* end confdefs.h. */
11171 #include <sys/types.h>
11172 #include <$ac_cv_struct_tm>
11176 main ()
11178 static struct tm ac_aggr;
11179 if (ac_aggr.tm_zone)
11180 return 0;
11182 return 0;
11184 _ACEOF
11185 rm -f conftest.$ac_objext
11186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11187 (eval $ac_compile) 2>conftest.er1
11188 ac_status=$?
11189 grep -v '^ *+' conftest.er1 >conftest.err
11190 rm -f conftest.er1
11191 cat conftest.err >&5
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); } &&
11194 { ac_try='test -z "$ac_c_werror_flag"
11195 || test ! -s conftest.err'
11196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11197 (eval $ac_try) 2>&5
11198 ac_status=$?
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); }; } &&
11201 { ac_try='test -s conftest.$ac_objext'
11202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11203 (eval $ac_try) 2>&5
11204 ac_status=$?
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); }; }; then
11207 ac_cv_member_struct_tm_tm_zone=yes
11208 else
11209 echo "$as_me: failed program was:" >&5
11210 sed 's/^/| /' conftest.$ac_ext >&5
11212 cat >conftest.$ac_ext <<_ACEOF
11213 /* confdefs.h. */
11214 _ACEOF
11215 cat confdefs.h >>conftest.$ac_ext
11216 cat >>conftest.$ac_ext <<_ACEOF
11217 /* end confdefs.h. */
11218 #include <sys/types.h>
11219 #include <$ac_cv_struct_tm>
11223 main ()
11225 static struct tm ac_aggr;
11226 if (sizeof ac_aggr.tm_zone)
11227 return 0;
11229 return 0;
11231 _ACEOF
11232 rm -f conftest.$ac_objext
11233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11234 (eval $ac_compile) 2>conftest.er1
11235 ac_status=$?
11236 grep -v '^ *+' conftest.er1 >conftest.err
11237 rm -f conftest.er1
11238 cat conftest.err >&5
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); } &&
11241 { ac_try='test -z "$ac_c_werror_flag"
11242 || test ! -s conftest.err'
11243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11244 (eval $ac_try) 2>&5
11245 ac_status=$?
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); }; } &&
11248 { ac_try='test -s conftest.$ac_objext'
11249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11250 (eval $ac_try) 2>&5
11251 ac_status=$?
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); }; }; then
11254 ac_cv_member_struct_tm_tm_zone=yes
11255 else
11256 echo "$as_me: failed program was:" >&5
11257 sed 's/^/| /' conftest.$ac_ext >&5
11259 ac_cv_member_struct_tm_tm_zone=no
11261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11265 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11266 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11267 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11269 cat >>confdefs.h <<_ACEOF
11270 #define HAVE_STRUCT_TM_TM_ZONE 1
11271 _ACEOF
11276 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11278 cat >>confdefs.h <<\_ACEOF
11279 #define HAVE_TM_ZONE 1
11280 _ACEOF
11282 else
11283 echo "$as_me:$LINENO: checking for tzname" >&5
11284 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11285 if test "${ac_cv_var_tzname+set}" = set; then
11286 echo $ECHO_N "(cached) $ECHO_C" >&6
11287 else
11288 if test x$gcc_no_link = xyes; then
11289 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11290 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11291 { (exit 1); exit 1; }; }
11293 cat >conftest.$ac_ext <<_ACEOF
11294 /* confdefs.h. */
11295 _ACEOF
11296 cat confdefs.h >>conftest.$ac_ext
11297 cat >>conftest.$ac_ext <<_ACEOF
11298 /* end confdefs.h. */
11299 #include <time.h>
11300 #ifndef tzname /* For SGI. */
11301 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11302 #endif
11305 main ()
11307 atoi(*tzname);
11309 return 0;
11311 _ACEOF
11312 rm -f conftest.$ac_objext conftest$ac_exeext
11313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11314 (eval $ac_link) 2>conftest.er1
11315 ac_status=$?
11316 grep -v '^ *+' conftest.er1 >conftest.err
11317 rm -f conftest.er1
11318 cat conftest.err >&5
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); } &&
11321 { ac_try='test -z "$ac_c_werror_flag"
11322 || test ! -s conftest.err'
11323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11324 (eval $ac_try) 2>&5
11325 ac_status=$?
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); }; } &&
11328 { ac_try='test -s conftest$ac_exeext'
11329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11330 (eval $ac_try) 2>&5
11331 ac_status=$?
11332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333 (exit $ac_status); }; }; then
11334 ac_cv_var_tzname=yes
11335 else
11336 echo "$as_me: failed program was:" >&5
11337 sed 's/^/| /' conftest.$ac_ext >&5
11339 ac_cv_var_tzname=no
11341 rm -f conftest.err conftest.$ac_objext \
11342 conftest$ac_exeext conftest.$ac_ext
11344 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11345 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11346 if test $ac_cv_var_tzname = yes; then
11348 cat >>confdefs.h <<\_ACEOF
11349 #define HAVE_TZNAME 1
11350 _ACEOF
11358 for ac_func in gethostbyname_r
11360 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11361 echo "$as_me:$LINENO: checking for $ac_func" >&5
11362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11363 if eval "test \"\${$as_ac_var+set}\" = set"; then
11364 echo $ECHO_N "(cached) $ECHO_C" >&6
11365 else
11366 if test x$gcc_no_link = xyes; then
11367 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11368 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11369 { (exit 1); exit 1; }; }
11371 cat >conftest.$ac_ext <<_ACEOF
11372 /* confdefs.h. */
11373 _ACEOF
11374 cat confdefs.h >>conftest.$ac_ext
11375 cat >>conftest.$ac_ext <<_ACEOF
11376 /* end confdefs.h. */
11377 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11379 #define $ac_func innocuous_$ac_func
11381 /* System header to define __stub macros and hopefully few prototypes,
11382 which can conflict with char $ac_func (); below.
11383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11384 <limits.h> exists even on freestanding compilers. */
11386 #ifdef __STDC__
11387 # include <limits.h>
11388 #else
11389 # include <assert.h>
11390 #endif
11392 #undef $ac_func
11394 /* Override any gcc2 internal prototype to avoid an error. */
11395 #ifdef __cplusplus
11396 extern "C"
11398 #endif
11399 /* We use char because int might match the return type of a gcc2
11400 builtin and then its argument prototype would still apply. */
11401 char $ac_func ();
11402 /* The GNU C library defines this for functions which it implements
11403 to always fail with ENOSYS. Some functions are actually named
11404 something starting with __ and the normal name is an alias. */
11405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11406 choke me
11407 #else
11408 char (*f) () = $ac_func;
11409 #endif
11410 #ifdef __cplusplus
11412 #endif
11415 main ()
11417 return f != $ac_func;
11419 return 0;
11421 _ACEOF
11422 rm -f conftest.$ac_objext conftest$ac_exeext
11423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11424 (eval $ac_link) 2>conftest.er1
11425 ac_status=$?
11426 grep -v '^ *+' conftest.er1 >conftest.err
11427 rm -f conftest.er1
11428 cat conftest.err >&5
11429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430 (exit $ac_status); } &&
11431 { ac_try='test -z "$ac_c_werror_flag"
11432 || test ! -s conftest.err'
11433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11434 (eval $ac_try) 2>&5
11435 ac_status=$?
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); }; } &&
11438 { ac_try='test -s conftest$ac_exeext'
11439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11440 (eval $ac_try) 2>&5
11441 ac_status=$?
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); }; }; then
11444 eval "$as_ac_var=yes"
11445 else
11446 echo "$as_me: failed program was:" >&5
11447 sed 's/^/| /' conftest.$ac_ext >&5
11449 eval "$as_ac_var=no"
11451 rm -f conftest.err conftest.$ac_objext \
11452 conftest$ac_exeext conftest.$ac_ext
11454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11455 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11456 if test `eval echo '${'$as_ac_var'}'` = yes; then
11457 cat >>confdefs.h <<_ACEOF
11458 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11459 _ACEOF
11462 cat >>confdefs.h <<\_ACEOF
11463 #define HAVE_GETHOSTBYNAME_R 1
11464 _ACEOF
11466 # There are two different kinds of gethostbyname_r.
11467 # We look for the one that returns `int'.
11468 # Hopefully this check is robust enough.
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 <netdb.h>
11477 _ACEOF
11478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11479 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
11482 cat >>confdefs.h <<\_ACEOF
11483 #define GETHOSTBYNAME_R_RETURNS_INT 1
11484 _ACEOF
11487 rm -f conftest*
11490 case " $GCINCS " in
11491 *" -D_REENTRANT "*) ;;
11493 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
11494 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
11495 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
11496 echo $ECHO_N "(cached) $ECHO_C" >&6
11497 else
11498 ac_ext=cc
11499 ac_cpp='$CXXCPP $CPPFLAGS'
11500 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11501 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11502 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11504 cat >conftest.$ac_ext <<_ACEOF
11505 /* confdefs.h. */
11506 _ACEOF
11507 cat confdefs.h >>conftest.$ac_ext
11508 cat >>conftest.$ac_ext <<_ACEOF
11509 /* end confdefs.h. */
11510 #include <netdb.h>
11512 main ()
11514 gethostbyname_r("", 0, 0);
11516 return 0;
11518 _ACEOF
11519 rm -f conftest.$ac_objext
11520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11521 (eval $ac_compile) 2>conftest.er1
11522 ac_status=$?
11523 grep -v '^ *+' conftest.er1 >conftest.err
11524 rm -f conftest.er1
11525 cat conftest.err >&5
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); } &&
11528 { ac_try='test -z "$ac_cxx_werror_flag"
11529 || test ! -s conftest.err'
11530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11531 (eval $ac_try) 2>&5
11532 ac_status=$?
11533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); }; } &&
11535 { ac_try='test -s conftest.$ac_objext'
11536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11537 (eval $ac_try) 2>&5
11538 ac_status=$?
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); }; }; then
11541 libjava_cv_gethostbyname_r_needs_reentrant=no
11542 else
11543 echo "$as_me: failed program was:" >&5
11544 sed 's/^/| /' conftest.$ac_ext >&5
11546 CPPFLAGS_SAVE="$CPPFLAGS"
11547 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
11548 cat >conftest.$ac_ext <<_ACEOF
11549 /* confdefs.h. */
11550 _ACEOF
11551 cat confdefs.h >>conftest.$ac_ext
11552 cat >>conftest.$ac_ext <<_ACEOF
11553 /* end confdefs.h. */
11554 #include <netdb.h>
11556 main ()
11558 gethostbyname_r("", 0, 0);
11560 return 0;
11562 _ACEOF
11563 rm -f conftest.$ac_objext
11564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11565 (eval $ac_compile) 2>conftest.er1
11566 ac_status=$?
11567 grep -v '^ *+' conftest.er1 >conftest.err
11568 rm -f conftest.er1
11569 cat conftest.err >&5
11570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571 (exit $ac_status); } &&
11572 { ac_try='test -z "$ac_cxx_werror_flag"
11573 || test ! -s conftest.err'
11574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11575 (eval $ac_try) 2>&5
11576 ac_status=$?
11577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); }; } &&
11579 { ac_try='test -s conftest.$ac_objext'
11580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11581 (eval $ac_try) 2>&5
11582 ac_status=$?
11583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584 (exit $ac_status); }; }; then
11585 libjava_cv_gethostbyname_r_needs_reentrant=yes
11586 else
11587 echo "$as_me: failed program was:" >&5
11588 sed 's/^/| /' conftest.$ac_ext >&5
11590 libjava_cv_gethostbyname_r_needs_reentrant=fail
11592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11593 CPPFLAGS="$CPPFLAGS_SAVE"
11596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11597 ac_ext=c
11598 ac_cpp='$CPP $CPPFLAGS'
11599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11605 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
11606 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
11607 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
11609 cat >>confdefs.h <<\_ACEOF
11610 #define _REENTRANT 1
11611 _ACEOF
11615 esac
11617 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
11618 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
11619 if test "${libjava_cv_struct_hostent_data+set}" = set; then
11620 echo $ECHO_N "(cached) $ECHO_C" >&6
11621 else
11622 cat >conftest.$ac_ext <<_ACEOF
11623 /* confdefs.h. */
11624 _ACEOF
11625 cat confdefs.h >>conftest.$ac_ext
11626 cat >>conftest.$ac_ext <<_ACEOF
11627 /* end confdefs.h. */
11629 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
11630 # define _REENTRANT 1
11631 #endif
11632 #include <netdb.h>
11634 main ()
11636 struct hostent_data data;
11638 return 0;
11640 _ACEOF
11641 rm -f conftest.$ac_objext
11642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11643 (eval $ac_compile) 2>conftest.er1
11644 ac_status=$?
11645 grep -v '^ *+' conftest.er1 >conftest.err
11646 rm -f conftest.er1
11647 cat conftest.err >&5
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); } &&
11650 { ac_try='test -z "$ac_c_werror_flag"
11651 || test ! -s conftest.err'
11652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11653 (eval $ac_try) 2>&5
11654 ac_status=$?
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); }; } &&
11657 { ac_try='test -s conftest.$ac_objext'
11658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11659 (eval $ac_try) 2>&5
11660 ac_status=$?
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); }; }; then
11663 libjava_cv_struct_hostent_data=yes
11664 else
11665 echo "$as_me: failed program was:" >&5
11666 sed 's/^/| /' conftest.$ac_ext >&5
11668 libjava_cv_struct_hostent_data=no
11670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11672 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
11673 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
11674 if test "x$libjava_cv_struct_hostent_data" = xyes; then
11676 cat >>confdefs.h <<\_ACEOF
11677 #define HAVE_STRUCT_HOSTENT_DATA 1
11678 _ACEOF
11683 done
11686 # FIXME: libjava source code expects to find a prototype for
11687 # gethostbyaddr_r in netdb.h. The outer check ensures that
11688 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
11689 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
11690 # linkage check is enough, yet C++ code requires proper prototypes.)
11691 cat >conftest.$ac_ext <<_ACEOF
11692 /* confdefs.h. */
11693 _ACEOF
11694 cat confdefs.h >>conftest.$ac_ext
11695 cat >>conftest.$ac_ext <<_ACEOF
11696 /* end confdefs.h. */
11697 #include <netdb.h>
11699 _ACEOF
11700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11701 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
11704 for ac_func in gethostbyaddr_r
11706 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11707 echo "$as_me:$LINENO: checking for $ac_func" >&5
11708 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11709 if eval "test \"\${$as_ac_var+set}\" = set"; then
11710 echo $ECHO_N "(cached) $ECHO_C" >&6
11711 else
11712 if test x$gcc_no_link = xyes; then
11713 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11714 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11715 { (exit 1); exit 1; }; }
11717 cat >conftest.$ac_ext <<_ACEOF
11718 /* confdefs.h. */
11719 _ACEOF
11720 cat confdefs.h >>conftest.$ac_ext
11721 cat >>conftest.$ac_ext <<_ACEOF
11722 /* end confdefs.h. */
11723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11725 #define $ac_func innocuous_$ac_func
11727 /* System header to define __stub macros and hopefully few prototypes,
11728 which can conflict with char $ac_func (); below.
11729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11730 <limits.h> exists even on freestanding compilers. */
11732 #ifdef __STDC__
11733 # include <limits.h>
11734 #else
11735 # include <assert.h>
11736 #endif
11738 #undef $ac_func
11740 /* Override any gcc2 internal prototype to avoid an error. */
11741 #ifdef __cplusplus
11742 extern "C"
11744 #endif
11745 /* We use char because int might match the return type of a gcc2
11746 builtin and then its argument prototype would still apply. */
11747 char $ac_func ();
11748 /* The GNU C library defines this for functions which it implements
11749 to always fail with ENOSYS. Some functions are actually named
11750 something starting with __ and the normal name is an alias. */
11751 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11752 choke me
11753 #else
11754 char (*f) () = $ac_func;
11755 #endif
11756 #ifdef __cplusplus
11758 #endif
11761 main ()
11763 return f != $ac_func;
11765 return 0;
11767 _ACEOF
11768 rm -f conftest.$ac_objext conftest$ac_exeext
11769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11770 (eval $ac_link) 2>conftest.er1
11771 ac_status=$?
11772 grep -v '^ *+' conftest.er1 >conftest.err
11773 rm -f conftest.er1
11774 cat conftest.err >&5
11775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776 (exit $ac_status); } &&
11777 { ac_try='test -z "$ac_c_werror_flag"
11778 || test ! -s conftest.err'
11779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11780 (eval $ac_try) 2>&5
11781 ac_status=$?
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); }; } &&
11784 { ac_try='test -s conftest$ac_exeext'
11785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11786 (eval $ac_try) 2>&5
11787 ac_status=$?
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); }; }; then
11790 eval "$as_ac_var=yes"
11791 else
11792 echo "$as_me: failed program was:" >&5
11793 sed 's/^/| /' conftest.$ac_ext >&5
11795 eval "$as_ac_var=no"
11797 rm -f conftest.err conftest.$ac_objext \
11798 conftest$ac_exeext conftest.$ac_ext
11800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11801 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11802 if test `eval echo '${'$as_ac_var'}'` = yes; then
11803 cat >>confdefs.h <<_ACEOF
11804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11805 _ACEOF
11808 cat >>confdefs.h <<\_ACEOF
11809 #define HAVE_GETHOSTBYADDR_R 1
11810 _ACEOF
11812 # There are two different kinds of gethostbyaddr_r.
11813 # We look for the one that returns `int'.
11814 # Hopefully this check is robust enough.
11815 cat >conftest.$ac_ext <<_ACEOF
11816 /* confdefs.h. */
11817 _ACEOF
11818 cat confdefs.h >>conftest.$ac_ext
11819 cat >>conftest.$ac_ext <<_ACEOF
11820 /* end confdefs.h. */
11821 #include <netdb.h>
11823 _ACEOF
11824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11825 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11828 cat >>confdefs.h <<\_ACEOF
11829 #define GETHOSTBYADDR_R_RETURNS_INT 1
11830 _ACEOF
11833 rm -f conftest*
11836 done
11839 rm -f conftest*
11843 for ac_func in gethostname
11845 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11846 echo "$as_me:$LINENO: checking for $ac_func" >&5
11847 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11848 if eval "test \"\${$as_ac_var+set}\" = set"; then
11849 echo $ECHO_N "(cached) $ECHO_C" >&6
11850 else
11851 if test x$gcc_no_link = xyes; then
11852 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11853 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11854 { (exit 1); exit 1; }; }
11856 cat >conftest.$ac_ext <<_ACEOF
11857 /* confdefs.h. */
11858 _ACEOF
11859 cat confdefs.h >>conftest.$ac_ext
11860 cat >>conftest.$ac_ext <<_ACEOF
11861 /* end confdefs.h. */
11862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11864 #define $ac_func innocuous_$ac_func
11866 /* System header to define __stub macros and hopefully few prototypes,
11867 which can conflict with char $ac_func (); below.
11868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11869 <limits.h> exists even on freestanding compilers. */
11871 #ifdef __STDC__
11872 # include <limits.h>
11873 #else
11874 # include <assert.h>
11875 #endif
11877 #undef $ac_func
11879 /* Override any gcc2 internal prototype to avoid an error. */
11880 #ifdef __cplusplus
11881 extern "C"
11883 #endif
11884 /* We use char because int might match the return type of a gcc2
11885 builtin and then its argument prototype would still apply. */
11886 char $ac_func ();
11887 /* The GNU C library defines this for functions which it implements
11888 to always fail with ENOSYS. Some functions are actually named
11889 something starting with __ and the normal name is an alias. */
11890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11891 choke me
11892 #else
11893 char (*f) () = $ac_func;
11894 #endif
11895 #ifdef __cplusplus
11897 #endif
11900 main ()
11902 return f != $ac_func;
11904 return 0;
11906 _ACEOF
11907 rm -f conftest.$ac_objext conftest$ac_exeext
11908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11909 (eval $ac_link) 2>conftest.er1
11910 ac_status=$?
11911 grep -v '^ *+' conftest.er1 >conftest.err
11912 rm -f conftest.er1
11913 cat conftest.err >&5
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); } &&
11916 { ac_try='test -z "$ac_c_werror_flag"
11917 || test ! -s conftest.err'
11918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11919 (eval $ac_try) 2>&5
11920 ac_status=$?
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); }; } &&
11923 { ac_try='test -s conftest$ac_exeext'
11924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11925 (eval $ac_try) 2>&5
11926 ac_status=$?
11927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928 (exit $ac_status); }; }; then
11929 eval "$as_ac_var=yes"
11930 else
11931 echo "$as_me: failed program was:" >&5
11932 sed 's/^/| /' conftest.$ac_ext >&5
11934 eval "$as_ac_var=no"
11936 rm -f conftest.err conftest.$ac_objext \
11937 conftest$ac_exeext conftest.$ac_ext
11939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11940 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11941 if test `eval echo '${'$as_ac_var'}'` = yes; then
11942 cat >>confdefs.h <<_ACEOF
11943 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11944 _ACEOF
11947 cat >>confdefs.h <<\_ACEOF
11948 #define HAVE_GETHOSTNAME 1
11949 _ACEOF
11951 cat >conftest.$ac_ext <<_ACEOF
11952 /* confdefs.h. */
11953 _ACEOF
11954 cat confdefs.h >>conftest.$ac_ext
11955 cat >>conftest.$ac_ext <<_ACEOF
11956 /* end confdefs.h. */
11957 #include <unistd.h>
11959 _ACEOF
11960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11961 $EGREP "gethostname" >/dev/null 2>&1; then
11964 cat >>confdefs.h <<\_ACEOF
11965 #define HAVE_GETHOSTNAME_DECL 1
11966 _ACEOF
11969 rm -f conftest*
11972 done
11976 for ac_func in usleep
11978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11979 echo "$as_me:$LINENO: checking for $ac_func" >&5
11980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11981 if eval "test \"\${$as_ac_var+set}\" = set"; then
11982 echo $ECHO_N "(cached) $ECHO_C" >&6
11983 else
11984 if test x$gcc_no_link = xyes; then
11985 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11986 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11987 { (exit 1); exit 1; }; }
11989 cat >conftest.$ac_ext <<_ACEOF
11990 /* confdefs.h. */
11991 _ACEOF
11992 cat confdefs.h >>conftest.$ac_ext
11993 cat >>conftest.$ac_ext <<_ACEOF
11994 /* end confdefs.h. */
11995 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11997 #define $ac_func innocuous_$ac_func
11999 /* System header to define __stub macros and hopefully few prototypes,
12000 which can conflict with char $ac_func (); below.
12001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12002 <limits.h> exists even on freestanding compilers. */
12004 #ifdef __STDC__
12005 # include <limits.h>
12006 #else
12007 # include <assert.h>
12008 #endif
12010 #undef $ac_func
12012 /* Override any gcc2 internal prototype to avoid an error. */
12013 #ifdef __cplusplus
12014 extern "C"
12016 #endif
12017 /* We use char because int might match the return type of a gcc2
12018 builtin and then its argument prototype would still apply. */
12019 char $ac_func ();
12020 /* The GNU C library defines this for functions which it implements
12021 to always fail with ENOSYS. Some functions are actually named
12022 something starting with __ and the normal name is an alias. */
12023 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12024 choke me
12025 #else
12026 char (*f) () = $ac_func;
12027 #endif
12028 #ifdef __cplusplus
12030 #endif
12033 main ()
12035 return f != $ac_func;
12037 return 0;
12039 _ACEOF
12040 rm -f conftest.$ac_objext conftest$ac_exeext
12041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12042 (eval $ac_link) 2>conftest.er1
12043 ac_status=$?
12044 grep -v '^ *+' conftest.er1 >conftest.err
12045 rm -f conftest.er1
12046 cat conftest.err >&5
12047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); } &&
12049 { ac_try='test -z "$ac_c_werror_flag"
12050 || test ! -s conftest.err'
12051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12052 (eval $ac_try) 2>&5
12053 ac_status=$?
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); }; } &&
12056 { ac_try='test -s conftest$ac_exeext'
12057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12058 (eval $ac_try) 2>&5
12059 ac_status=$?
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); }; }; then
12062 eval "$as_ac_var=yes"
12063 else
12064 echo "$as_me: failed program was:" >&5
12065 sed 's/^/| /' conftest.$ac_ext >&5
12067 eval "$as_ac_var=no"
12069 rm -f conftest.err conftest.$ac_objext \
12070 conftest$ac_exeext conftest.$ac_ext
12072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12073 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12074 if test `eval echo '${'$as_ac_var'}'` = yes; then
12075 cat >>confdefs.h <<_ACEOF
12076 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12077 _ACEOF
12079 cat >conftest.$ac_ext <<_ACEOF
12080 /* confdefs.h. */
12081 _ACEOF
12082 cat confdefs.h >>conftest.$ac_ext
12083 cat >>conftest.$ac_ext <<_ACEOF
12084 /* end confdefs.h. */
12085 #include <unistd.h>
12087 _ACEOF
12088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12089 $EGREP "usleep" >/dev/null 2>&1; then
12092 cat >>confdefs.h <<\_ACEOF
12093 #define HAVE_USLEEP_DECL 1
12094 _ACEOF
12097 rm -f conftest*
12100 done
12103 # Look for these functions in the thread library, but only bother
12104 # if using POSIX threads.
12105 if test "$THREADS" = posix; then
12106 save_LIBS="$LIBS"
12107 LIBS="$LIBS $THREADLIBS"
12108 # Some POSIX thread systems don't have pthread_mutexattr_settype.
12109 # E.g., Solaris.
12112 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
12114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12115 echo "$as_me:$LINENO: checking for $ac_func" >&5
12116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12117 if eval "test \"\${$as_ac_var+set}\" = set"; then
12118 echo $ECHO_N "(cached) $ECHO_C" >&6
12119 else
12120 if test x$gcc_no_link = xyes; then
12121 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12122 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12123 { (exit 1); exit 1; }; }
12125 cat >conftest.$ac_ext <<_ACEOF
12126 /* confdefs.h. */
12127 _ACEOF
12128 cat confdefs.h >>conftest.$ac_ext
12129 cat >>conftest.$ac_ext <<_ACEOF
12130 /* end confdefs.h. */
12131 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12133 #define $ac_func innocuous_$ac_func
12135 /* System header to define __stub macros and hopefully few prototypes,
12136 which can conflict with char $ac_func (); below.
12137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12138 <limits.h> exists even on freestanding compilers. */
12140 #ifdef __STDC__
12141 # include <limits.h>
12142 #else
12143 # include <assert.h>
12144 #endif
12146 #undef $ac_func
12148 /* Override any gcc2 internal prototype to avoid an error. */
12149 #ifdef __cplusplus
12150 extern "C"
12152 #endif
12153 /* We use char because int might match the return type of a gcc2
12154 builtin and then its argument prototype would still apply. */
12155 char $ac_func ();
12156 /* The GNU C library defines this for functions which it implements
12157 to always fail with ENOSYS. Some functions are actually named
12158 something starting with __ and the normal name is an alias. */
12159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12160 choke me
12161 #else
12162 char (*f) () = $ac_func;
12163 #endif
12164 #ifdef __cplusplus
12166 #endif
12169 main ()
12171 return f != $ac_func;
12173 return 0;
12175 _ACEOF
12176 rm -f conftest.$ac_objext conftest$ac_exeext
12177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12178 (eval $ac_link) 2>conftest.er1
12179 ac_status=$?
12180 grep -v '^ *+' conftest.er1 >conftest.err
12181 rm -f conftest.er1
12182 cat conftest.err >&5
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); } &&
12185 { ac_try='test -z "$ac_c_werror_flag"
12186 || test ! -s conftest.err'
12187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12188 (eval $ac_try) 2>&5
12189 ac_status=$?
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); }; } &&
12192 { ac_try='test -s conftest$ac_exeext'
12193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12194 (eval $ac_try) 2>&5
12195 ac_status=$?
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); }; }; then
12198 eval "$as_ac_var=yes"
12199 else
12200 echo "$as_me: failed program was:" >&5
12201 sed 's/^/| /' conftest.$ac_ext >&5
12203 eval "$as_ac_var=no"
12205 rm -f conftest.err conftest.$ac_objext \
12206 conftest$ac_exeext conftest.$ac_ext
12208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12209 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12210 if test `eval echo '${'$as_ac_var'}'` = yes; then
12211 cat >>confdefs.h <<_ACEOF
12212 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12213 _ACEOF
12216 done
12219 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
12220 # Solaris 7 the name librt is preferred.
12222 for ac_func in sched_yield
12224 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12225 echo "$as_me:$LINENO: checking for $ac_func" >&5
12226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12227 if eval "test \"\${$as_ac_var+set}\" = set"; then
12228 echo $ECHO_N "(cached) $ECHO_C" >&6
12229 else
12230 if test x$gcc_no_link = xyes; then
12231 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12232 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12233 { (exit 1); exit 1; }; }
12235 cat >conftest.$ac_ext <<_ACEOF
12236 /* confdefs.h. */
12237 _ACEOF
12238 cat confdefs.h >>conftest.$ac_ext
12239 cat >>conftest.$ac_ext <<_ACEOF
12240 /* end confdefs.h. */
12241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12243 #define $ac_func innocuous_$ac_func
12245 /* System header to define __stub macros and hopefully few prototypes,
12246 which can conflict with char $ac_func (); below.
12247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12248 <limits.h> exists even on freestanding compilers. */
12250 #ifdef __STDC__
12251 # include <limits.h>
12252 #else
12253 # include <assert.h>
12254 #endif
12256 #undef $ac_func
12258 /* Override any gcc2 internal prototype to avoid an error. */
12259 #ifdef __cplusplus
12260 extern "C"
12262 #endif
12263 /* We use char because int might match the return type of a gcc2
12264 builtin and then its argument prototype would still apply. */
12265 char $ac_func ();
12266 /* The GNU C library defines this for functions which it implements
12267 to always fail with ENOSYS. Some functions are actually named
12268 something starting with __ and the normal name is an alias. */
12269 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12270 choke me
12271 #else
12272 char (*f) () = $ac_func;
12273 #endif
12274 #ifdef __cplusplus
12276 #endif
12279 main ()
12281 return f != $ac_func;
12283 return 0;
12285 _ACEOF
12286 rm -f conftest.$ac_objext conftest$ac_exeext
12287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12288 (eval $ac_link) 2>conftest.er1
12289 ac_status=$?
12290 grep -v '^ *+' conftest.er1 >conftest.err
12291 rm -f conftest.er1
12292 cat conftest.err >&5
12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294 (exit $ac_status); } &&
12295 { ac_try='test -z "$ac_c_werror_flag"
12296 || test ! -s conftest.err'
12297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12298 (eval $ac_try) 2>&5
12299 ac_status=$?
12300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301 (exit $ac_status); }; } &&
12302 { ac_try='test -s conftest$ac_exeext'
12303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12304 (eval $ac_try) 2>&5
12305 ac_status=$?
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); }; }; then
12308 eval "$as_ac_var=yes"
12309 else
12310 echo "$as_me: failed program was:" >&5
12311 sed 's/^/| /' conftest.$ac_ext >&5
12313 eval "$as_ac_var=no"
12315 rm -f conftest.err conftest.$ac_objext \
12316 conftest$ac_exeext conftest.$ac_ext
12318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12319 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12320 if test `eval echo '${'$as_ac_var'}'` = yes; then
12321 cat >>confdefs.h <<_ACEOF
12322 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12323 _ACEOF
12325 else
12327 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
12328 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
12329 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
12330 echo $ECHO_N "(cached) $ECHO_C" >&6
12331 else
12332 ac_check_lib_save_LIBS=$LIBS
12333 LIBS="-lrt $LIBS"
12334 if test x$gcc_no_link = xyes; then
12335 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12336 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12337 { (exit 1); exit 1; }; }
12339 cat >conftest.$ac_ext <<_ACEOF
12340 /* confdefs.h. */
12341 _ACEOF
12342 cat confdefs.h >>conftest.$ac_ext
12343 cat >>conftest.$ac_ext <<_ACEOF
12344 /* end confdefs.h. */
12346 /* Override any gcc2 internal prototype to avoid an error. */
12347 #ifdef __cplusplus
12348 extern "C"
12349 #endif
12350 /* We use char because int might match the return type of a gcc2
12351 builtin and then its argument prototype would still apply. */
12352 char sched_yield ();
12354 main ()
12356 sched_yield ();
12358 return 0;
12360 _ACEOF
12361 rm -f conftest.$ac_objext conftest$ac_exeext
12362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12363 (eval $ac_link) 2>conftest.er1
12364 ac_status=$?
12365 grep -v '^ *+' conftest.er1 >conftest.err
12366 rm -f conftest.er1
12367 cat conftest.err >&5
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); } &&
12370 { ac_try='test -z "$ac_c_werror_flag"
12371 || test ! -s conftest.err'
12372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12373 (eval $ac_try) 2>&5
12374 ac_status=$?
12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); }; } &&
12377 { ac_try='test -s conftest$ac_exeext'
12378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12379 (eval $ac_try) 2>&5
12380 ac_status=$?
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); }; }; then
12383 ac_cv_lib_rt_sched_yield=yes
12384 else
12385 echo "$as_me: failed program was:" >&5
12386 sed 's/^/| /' conftest.$ac_ext >&5
12388 ac_cv_lib_rt_sched_yield=no
12390 rm -f conftest.err conftest.$ac_objext \
12391 conftest$ac_exeext conftest.$ac_ext
12392 LIBS=$ac_check_lib_save_LIBS
12394 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
12395 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
12396 if test $ac_cv_lib_rt_sched_yield = yes; then
12398 cat >>confdefs.h <<\_ACEOF
12399 #define HAVE_SCHED_YIELD 1
12400 _ACEOF
12402 THREADLIBS="$THREADLIBS -lrt"
12403 THREADSPEC="$THREADSPEC -lrt"
12404 else
12406 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
12407 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
12408 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
12409 echo $ECHO_N "(cached) $ECHO_C" >&6
12410 else
12411 ac_check_lib_save_LIBS=$LIBS
12412 LIBS="-lposix4 $LIBS"
12413 if test x$gcc_no_link = xyes; then
12414 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12415 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12416 { (exit 1); exit 1; }; }
12418 cat >conftest.$ac_ext <<_ACEOF
12419 /* confdefs.h. */
12420 _ACEOF
12421 cat confdefs.h >>conftest.$ac_ext
12422 cat >>conftest.$ac_ext <<_ACEOF
12423 /* end confdefs.h. */
12425 /* Override any gcc2 internal prototype to avoid an error. */
12426 #ifdef __cplusplus
12427 extern "C"
12428 #endif
12429 /* We use char because int might match the return type of a gcc2
12430 builtin and then its argument prototype would still apply. */
12431 char sched_yield ();
12433 main ()
12435 sched_yield ();
12437 return 0;
12439 _ACEOF
12440 rm -f conftest.$ac_objext conftest$ac_exeext
12441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12442 (eval $ac_link) 2>conftest.er1
12443 ac_status=$?
12444 grep -v '^ *+' conftest.er1 >conftest.err
12445 rm -f conftest.er1
12446 cat conftest.err >&5
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); } &&
12449 { ac_try='test -z "$ac_c_werror_flag"
12450 || test ! -s conftest.err'
12451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12452 (eval $ac_try) 2>&5
12453 ac_status=$?
12454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 (exit $ac_status); }; } &&
12456 { ac_try='test -s conftest$ac_exeext'
12457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12458 (eval $ac_try) 2>&5
12459 ac_status=$?
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 (exit $ac_status); }; }; then
12462 ac_cv_lib_posix4_sched_yield=yes
12463 else
12464 echo "$as_me: failed program was:" >&5
12465 sed 's/^/| /' conftest.$ac_ext >&5
12467 ac_cv_lib_posix4_sched_yield=no
12469 rm -f conftest.err conftest.$ac_objext \
12470 conftest$ac_exeext conftest.$ac_ext
12471 LIBS=$ac_check_lib_save_LIBS
12473 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
12474 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
12475 if test $ac_cv_lib_posix4_sched_yield = yes; then
12477 cat >>confdefs.h <<\_ACEOF
12478 #define HAVE_SCHED_YIELD 1
12479 _ACEOF
12481 THREADLIBS="$THREADLIBS -lposix4"
12482 THREADSPEC="$THREADSPEC -lposix4"
12488 done
12491 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
12492 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
12493 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
12494 echo $ECHO_N "(cached) $ECHO_C" >&6
12495 else
12496 ac_check_lib_save_LIBS=$LIBS
12497 LIBS="-lrt $LIBS"
12498 if test x$gcc_no_link = xyes; then
12499 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12500 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12501 { (exit 1); exit 1; }; }
12503 cat >conftest.$ac_ext <<_ACEOF
12504 /* confdefs.h. */
12505 _ACEOF
12506 cat confdefs.h >>conftest.$ac_ext
12507 cat >>conftest.$ac_ext <<_ACEOF
12508 /* end confdefs.h. */
12510 /* Override any gcc2 internal prototype to avoid an error. */
12511 #ifdef __cplusplus
12512 extern "C"
12513 #endif
12514 /* We use char because int might match the return type of a gcc2
12515 builtin and then its argument prototype would still apply. */
12516 char clock_gettime ();
12518 main ()
12520 clock_gettime ();
12522 return 0;
12524 _ACEOF
12525 rm -f conftest.$ac_objext conftest$ac_exeext
12526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12527 (eval $ac_link) 2>conftest.er1
12528 ac_status=$?
12529 grep -v '^ *+' conftest.er1 >conftest.err
12530 rm -f conftest.er1
12531 cat conftest.err >&5
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); } &&
12534 { ac_try='test -z "$ac_c_werror_flag"
12535 || test ! -s conftest.err'
12536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12537 (eval $ac_try) 2>&5
12538 ac_status=$?
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); }; } &&
12541 { ac_try='test -s conftest$ac_exeext'
12542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12543 (eval $ac_try) 2>&5
12544 ac_status=$?
12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); }; }; then
12547 ac_cv_lib_rt_clock_gettime=yes
12548 else
12549 echo "$as_me: failed program was:" >&5
12550 sed 's/^/| /' conftest.$ac_ext >&5
12552 ac_cv_lib_rt_clock_gettime=no
12554 rm -f conftest.err conftest.$ac_objext \
12555 conftest$ac_exeext conftest.$ac_ext
12556 LIBS=$ac_check_lib_save_LIBS
12558 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
12559 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
12560 if test $ac_cv_lib_rt_clock_gettime = yes; then
12563 cat >>confdefs.h <<\_ACEOF
12564 #define HAVE_CLOCK_GETTIME 1
12565 _ACEOF
12567 case "$THREADSPEC" in
12568 *-lrt*) ;;
12570 THREADSPEC="$THREADSPEC -lrt"
12571 THREADLIBS="$THREADLIBS -lrt"
12573 esac
12577 LIBS="$save_LIBS"
12579 # We can save a little space at runtime if the mutex has m_count
12580 # or __m_count. This is a nice hack for Linux.
12581 cat >conftest.$ac_ext <<_ACEOF
12582 /* confdefs.h. */
12583 _ACEOF
12584 cat confdefs.h >>conftest.$ac_ext
12585 cat >>conftest.$ac_ext <<_ACEOF
12586 /* end confdefs.h. */
12587 #include <pthread.h>
12589 main ()
12592 extern pthread_mutex_t *mutex; int q = mutex->m_count;
12595 return 0;
12597 _ACEOF
12598 rm -f conftest.$ac_objext
12599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12600 (eval $ac_compile) 2>conftest.er1
12601 ac_status=$?
12602 grep -v '^ *+' conftest.er1 >conftest.err
12603 rm -f conftest.er1
12604 cat conftest.err >&5
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); } &&
12607 { ac_try='test -z "$ac_c_werror_flag"
12608 || test ! -s conftest.err'
12609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12610 (eval $ac_try) 2>&5
12611 ac_status=$?
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); }; } &&
12614 { ac_try='test -s conftest.$ac_objext'
12615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12616 (eval $ac_try) 2>&5
12617 ac_status=$?
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); }; }; then
12621 cat >>confdefs.h <<\_ACEOF
12622 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
12623 _ACEOF
12625 else
12626 echo "$as_me: failed program was:" >&5
12627 sed 's/^/| /' conftest.$ac_ext >&5
12630 cat >conftest.$ac_ext <<_ACEOF
12631 /* confdefs.h. */
12632 _ACEOF
12633 cat confdefs.h >>conftest.$ac_ext
12634 cat >>conftest.$ac_ext <<_ACEOF
12635 /* end confdefs.h. */
12636 #include <pthread.h>
12638 main ()
12641 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
12644 return 0;
12646 _ACEOF
12647 rm -f conftest.$ac_objext
12648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12649 (eval $ac_compile) 2>conftest.er1
12650 ac_status=$?
12651 grep -v '^ *+' conftest.er1 >conftest.err
12652 rm -f conftest.er1
12653 cat conftest.err >&5
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); } &&
12656 { ac_try='test -z "$ac_c_werror_flag"
12657 || test ! -s conftest.err'
12658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12659 (eval $ac_try) 2>&5
12660 ac_status=$?
12661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 (exit $ac_status); }; } &&
12663 { ac_try='test -s conftest.$ac_objext'
12664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12665 (eval $ac_try) 2>&5
12666 ac_status=$?
12667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668 (exit $ac_status); }; }; then
12670 cat >>confdefs.h <<\_ACEOF
12671 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
12672 _ACEOF
12674 else
12675 echo "$as_me: failed program was:" >&5
12676 sed 's/^/| /' conftest.$ac_ext >&5
12679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12684 # We require a way to get the time.
12685 time_found=no
12689 for ac_func in gettimeofday time ftime
12691 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12692 echo "$as_me:$LINENO: checking for $ac_func" >&5
12693 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12694 if eval "test \"\${$as_ac_var+set}\" = set"; then
12695 echo $ECHO_N "(cached) $ECHO_C" >&6
12696 else
12697 if test x$gcc_no_link = xyes; then
12698 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12699 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12700 { (exit 1); exit 1; }; }
12702 cat >conftest.$ac_ext <<_ACEOF
12703 /* confdefs.h. */
12704 _ACEOF
12705 cat confdefs.h >>conftest.$ac_ext
12706 cat >>conftest.$ac_ext <<_ACEOF
12707 /* end confdefs.h. */
12708 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12709 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12710 #define $ac_func innocuous_$ac_func
12712 /* System header to define __stub macros and hopefully few prototypes,
12713 which can conflict with char $ac_func (); below.
12714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12715 <limits.h> exists even on freestanding compilers. */
12717 #ifdef __STDC__
12718 # include <limits.h>
12719 #else
12720 # include <assert.h>
12721 #endif
12723 #undef $ac_func
12725 /* Override any gcc2 internal prototype to avoid an error. */
12726 #ifdef __cplusplus
12727 extern "C"
12729 #endif
12730 /* We use char because int might match the return type of a gcc2
12731 builtin and then its argument prototype would still apply. */
12732 char $ac_func ();
12733 /* The GNU C library defines this for functions which it implements
12734 to always fail with ENOSYS. Some functions are actually named
12735 something starting with __ and the normal name is an alias. */
12736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12737 choke me
12738 #else
12739 char (*f) () = $ac_func;
12740 #endif
12741 #ifdef __cplusplus
12743 #endif
12746 main ()
12748 return f != $ac_func;
12750 return 0;
12752 _ACEOF
12753 rm -f conftest.$ac_objext conftest$ac_exeext
12754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12755 (eval $ac_link) 2>conftest.er1
12756 ac_status=$?
12757 grep -v '^ *+' conftest.er1 >conftest.err
12758 rm -f conftest.er1
12759 cat conftest.err >&5
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); } &&
12762 { ac_try='test -z "$ac_c_werror_flag"
12763 || test ! -s conftest.err'
12764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12765 (eval $ac_try) 2>&5
12766 ac_status=$?
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); }; } &&
12769 { ac_try='test -s conftest$ac_exeext'
12770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12771 (eval $ac_try) 2>&5
12772 ac_status=$?
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); }; }; then
12775 eval "$as_ac_var=yes"
12776 else
12777 echo "$as_me: failed program was:" >&5
12778 sed 's/^/| /' conftest.$ac_ext >&5
12780 eval "$as_ac_var=no"
12782 rm -f conftest.err conftest.$ac_objext \
12783 conftest$ac_exeext conftest.$ac_ext
12785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12786 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12787 if test `eval echo '${'$as_ac_var'}'` = yes; then
12788 cat >>confdefs.h <<_ACEOF
12789 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12790 _ACEOF
12791 time_found=yes
12793 done
12795 if test "$time_found" = no; then
12796 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
12797 echo "$as_me: error: no function found to get the time" >&2;}
12798 { (exit 1); exit 1; }; }
12802 for ac_func in memmove
12804 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12805 echo "$as_me:$LINENO: checking for $ac_func" >&5
12806 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12807 if eval "test \"\${$as_ac_var+set}\" = set"; then
12808 echo $ECHO_N "(cached) $ECHO_C" >&6
12809 else
12810 if test x$gcc_no_link = xyes; then
12811 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12812 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12813 { (exit 1); exit 1; }; }
12815 cat >conftest.$ac_ext <<_ACEOF
12816 /* confdefs.h. */
12817 _ACEOF
12818 cat confdefs.h >>conftest.$ac_ext
12819 cat >>conftest.$ac_ext <<_ACEOF
12820 /* end confdefs.h. */
12821 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12823 #define $ac_func innocuous_$ac_func
12825 /* System header to define __stub macros and hopefully few prototypes,
12826 which can conflict with char $ac_func (); below.
12827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12828 <limits.h> exists even on freestanding compilers. */
12830 #ifdef __STDC__
12831 # include <limits.h>
12832 #else
12833 # include <assert.h>
12834 #endif
12836 #undef $ac_func
12838 /* Override any gcc2 internal prototype to avoid an error. */
12839 #ifdef __cplusplus
12840 extern "C"
12842 #endif
12843 /* We use char because int might match the return type of a gcc2
12844 builtin and then its argument prototype would still apply. */
12845 char $ac_func ();
12846 /* The GNU C library defines this for functions which it implements
12847 to always fail with ENOSYS. Some functions are actually named
12848 something starting with __ and the normal name is an alias. */
12849 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12850 choke me
12851 #else
12852 char (*f) () = $ac_func;
12853 #endif
12854 #ifdef __cplusplus
12856 #endif
12859 main ()
12861 return f != $ac_func;
12863 return 0;
12865 _ACEOF
12866 rm -f conftest.$ac_objext conftest$ac_exeext
12867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12868 (eval $ac_link) 2>conftest.er1
12869 ac_status=$?
12870 grep -v '^ *+' conftest.er1 >conftest.err
12871 rm -f conftest.er1
12872 cat conftest.err >&5
12873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874 (exit $ac_status); } &&
12875 { ac_try='test -z "$ac_c_werror_flag"
12876 || test ! -s conftest.err'
12877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12878 (eval $ac_try) 2>&5
12879 ac_status=$?
12880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881 (exit $ac_status); }; } &&
12882 { ac_try='test -s conftest$ac_exeext'
12883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12884 (eval $ac_try) 2>&5
12885 ac_status=$?
12886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); }; }; then
12888 eval "$as_ac_var=yes"
12889 else
12890 echo "$as_me: failed program was:" >&5
12891 sed 's/^/| /' conftest.$ac_ext >&5
12893 eval "$as_ac_var=no"
12895 rm -f conftest.err conftest.$ac_objext \
12896 conftest$ac_exeext conftest.$ac_ext
12898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12899 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12900 if test `eval echo '${'$as_ac_var'}'` = yes; then
12901 cat >>confdefs.h <<_ACEOF
12902 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12903 _ACEOF
12906 done
12909 # We require memcpy.
12910 memcpy_found=no
12912 for ac_func in memcpy
12914 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12915 echo "$as_me:$LINENO: checking for $ac_func" >&5
12916 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12917 if eval "test \"\${$as_ac_var+set}\" = set"; then
12918 echo $ECHO_N "(cached) $ECHO_C" >&6
12919 else
12920 if test x$gcc_no_link = xyes; then
12921 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12922 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12923 { (exit 1); exit 1; }; }
12925 cat >conftest.$ac_ext <<_ACEOF
12926 /* confdefs.h. */
12927 _ACEOF
12928 cat confdefs.h >>conftest.$ac_ext
12929 cat >>conftest.$ac_ext <<_ACEOF
12930 /* end confdefs.h. */
12931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12933 #define $ac_func innocuous_$ac_func
12935 /* System header to define __stub macros and hopefully few prototypes,
12936 which can conflict with char $ac_func (); below.
12937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12938 <limits.h> exists even on freestanding compilers. */
12940 #ifdef __STDC__
12941 # include <limits.h>
12942 #else
12943 # include <assert.h>
12944 #endif
12946 #undef $ac_func
12948 /* Override any gcc2 internal prototype to avoid an error. */
12949 #ifdef __cplusplus
12950 extern "C"
12952 #endif
12953 /* We use char because int might match the return type of a gcc2
12954 builtin and then its argument prototype would still apply. */
12955 char $ac_func ();
12956 /* The GNU C library defines this for functions which it implements
12957 to always fail with ENOSYS. Some functions are actually named
12958 something starting with __ and the normal name is an alias. */
12959 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12960 choke me
12961 #else
12962 char (*f) () = $ac_func;
12963 #endif
12964 #ifdef __cplusplus
12966 #endif
12969 main ()
12971 return f != $ac_func;
12973 return 0;
12975 _ACEOF
12976 rm -f conftest.$ac_objext conftest$ac_exeext
12977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12978 (eval $ac_link) 2>conftest.er1
12979 ac_status=$?
12980 grep -v '^ *+' conftest.er1 >conftest.err
12981 rm -f conftest.er1
12982 cat conftest.err >&5
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); } &&
12985 { ac_try='test -z "$ac_c_werror_flag"
12986 || test ! -s conftest.err'
12987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12988 (eval $ac_try) 2>&5
12989 ac_status=$?
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); }; } &&
12992 { ac_try='test -s conftest$ac_exeext'
12993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12994 (eval $ac_try) 2>&5
12995 ac_status=$?
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); }; }; then
12998 eval "$as_ac_var=yes"
12999 else
13000 echo "$as_me: failed program was:" >&5
13001 sed 's/^/| /' conftest.$ac_ext >&5
13003 eval "$as_ac_var=no"
13005 rm -f conftest.err conftest.$ac_objext \
13006 conftest$ac_exeext conftest.$ac_ext
13008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13009 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13010 if test `eval echo '${'$as_ac_var'}'` = yes; then
13011 cat >>confdefs.h <<_ACEOF
13012 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13013 _ACEOF
13014 memcpy_found=yes
13016 done
13018 if test "$memcpy_found" = no; then
13019 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
13020 echo "$as_me: error: memcpy is required" >&2;}
13021 { (exit 1); exit 1; }; }
13023 # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
13024 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13025 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13026 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13027 echo $ECHO_N "(cached) $ECHO_C" >&6
13028 else
13029 ac_check_lib_save_LIBS=$LIBS
13030 LIBS="-ldl $LIBS"
13031 if test x$gcc_no_link = xyes; then
13032 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13033 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13034 { (exit 1); exit 1; }; }
13036 cat >conftest.$ac_ext <<_ACEOF
13037 /* confdefs.h. */
13038 _ACEOF
13039 cat confdefs.h >>conftest.$ac_ext
13040 cat >>conftest.$ac_ext <<_ACEOF
13041 /* end confdefs.h. */
13043 /* Override any gcc2 internal prototype to avoid an error. */
13044 #ifdef __cplusplus
13045 extern "C"
13046 #endif
13047 /* We use char because int might match the return type of a gcc2
13048 builtin and then its argument prototype would still apply. */
13049 char dlopen ();
13051 main ()
13053 dlopen ();
13055 return 0;
13057 _ACEOF
13058 rm -f conftest.$ac_objext conftest$ac_exeext
13059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13060 (eval $ac_link) 2>conftest.er1
13061 ac_status=$?
13062 grep -v '^ *+' conftest.er1 >conftest.err
13063 rm -f conftest.er1
13064 cat conftest.err >&5
13065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066 (exit $ac_status); } &&
13067 { ac_try='test -z "$ac_c_werror_flag"
13068 || test ! -s conftest.err'
13069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13070 (eval $ac_try) 2>&5
13071 ac_status=$?
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); }; } &&
13074 { ac_try='test -s conftest$ac_exeext'
13075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13076 (eval $ac_try) 2>&5
13077 ac_status=$?
13078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); }; }; then
13080 ac_cv_lib_dl_dlopen=yes
13081 else
13082 echo "$as_me: failed program was:" >&5
13083 sed 's/^/| /' conftest.$ac_ext >&5
13085 ac_cv_lib_dl_dlopen=no
13087 rm -f conftest.err conftest.$ac_objext \
13088 conftest$ac_exeext conftest.$ac_ext
13089 LIBS=$ac_check_lib_save_LIBS
13091 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13092 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13093 if test $ac_cv_lib_dl_dlopen = yes; then
13096 cat >>confdefs.h <<\_ACEOF
13097 #define HAVE_DLOPEN 1
13098 _ACEOF
13100 else
13102 echo "$as_me:$LINENO: checking for dlopen in -ldld" >&5
13103 echo $ECHO_N "checking for dlopen in -ldld... $ECHO_C" >&6
13104 if test "${ac_cv_lib_dld_dlopen+set}" = set; then
13105 echo $ECHO_N "(cached) $ECHO_C" >&6
13106 else
13107 ac_check_lib_save_LIBS=$LIBS
13108 LIBS="-ldld $LIBS"
13109 if test x$gcc_no_link = xyes; then
13110 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13111 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13112 { (exit 1); exit 1; }; }
13114 cat >conftest.$ac_ext <<_ACEOF
13115 /* confdefs.h. */
13116 _ACEOF
13117 cat confdefs.h >>conftest.$ac_ext
13118 cat >>conftest.$ac_ext <<_ACEOF
13119 /* end confdefs.h. */
13121 /* Override any gcc2 internal prototype to avoid an error. */
13122 #ifdef __cplusplus
13123 extern "C"
13124 #endif
13125 /* We use char because int might match the return type of a gcc2
13126 builtin and then its argument prototype would still apply. */
13127 char dlopen ();
13129 main ()
13131 dlopen ();
13133 return 0;
13135 _ACEOF
13136 rm -f conftest.$ac_objext conftest$ac_exeext
13137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13138 (eval $ac_link) 2>conftest.er1
13139 ac_status=$?
13140 grep -v '^ *+' conftest.er1 >conftest.err
13141 rm -f conftest.er1
13142 cat conftest.err >&5
13143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 (exit $ac_status); } &&
13145 { ac_try='test -z "$ac_c_werror_flag"
13146 || test ! -s conftest.err'
13147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13148 (eval $ac_try) 2>&5
13149 ac_status=$?
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); }; } &&
13152 { ac_try='test -s conftest$ac_exeext'
13153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13154 (eval $ac_try) 2>&5
13155 ac_status=$?
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); }; }; then
13158 ac_cv_lib_dld_dlopen=yes
13159 else
13160 echo "$as_me: failed program was:" >&5
13161 sed 's/^/| /' conftest.$ac_ext >&5
13163 ac_cv_lib_dld_dlopen=no
13165 rm -f conftest.err conftest.$ac_objext \
13166 conftest$ac_exeext conftest.$ac_ext
13167 LIBS=$ac_check_lib_save_LIBS
13169 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dlopen" >&5
13170 echo "${ECHO_T}$ac_cv_lib_dld_dlopen" >&6
13171 if test $ac_cv_lib_dld_dlopen = yes; then
13174 cat >>confdefs.h <<\_ACEOF
13175 #define HAVE_DLOPEN 1
13176 _ACEOF
13183 # Some library-finding code we stole from Tcl.
13184 #--------------------------------------------------------------------
13185 # Check for the existence of the -lsocket and -lnsl libraries.
13186 # The order here is important, so that they end up in the right
13187 # order in the command line generated by make. Here are some
13188 # special considerations:
13189 # 1. Use "connect" and "accept" to check for -lsocket, and
13190 # "gethostbyname" to check for -lnsl.
13191 # 2. Use each function name only once: can't redo a check because
13192 # autoconf caches the results of the last check and won't redo it.
13193 # 3. Use -lnsl and -lsocket only if they supply procedures that
13194 # aren't already present in the normal libraries. This is because
13195 # IRIX 5.2 has libraries, but they aren't needed and they're
13196 # bogus: they goof up name resolution if used.
13197 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
13198 # To get around this problem, check for both libraries together
13199 # if -lsocket doesn't work by itself.
13200 #--------------------------------------------------------------------
13202 echo "$as_me:$LINENO: checking for socket libraries" >&5
13203 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
13204 if test "${gcj_cv_lib_sockets+set}" = set; then
13205 echo $ECHO_N "(cached) $ECHO_C" >&6
13206 else
13207 gcj_cv_lib_sockets=
13208 gcj_checkBoth=0
13209 unset ac_cv_func_connect
13210 echo "$as_me:$LINENO: checking for connect" >&5
13211 echo $ECHO_N "checking for connect... $ECHO_C" >&6
13212 if test "${ac_cv_func_connect+set}" = set; then
13213 echo $ECHO_N "(cached) $ECHO_C" >&6
13214 else
13215 if test x$gcc_no_link = xyes; then
13216 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13217 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13218 { (exit 1); exit 1; }; }
13220 cat >conftest.$ac_ext <<_ACEOF
13221 /* confdefs.h. */
13222 _ACEOF
13223 cat confdefs.h >>conftest.$ac_ext
13224 cat >>conftest.$ac_ext <<_ACEOF
13225 /* end confdefs.h. */
13226 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
13227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13228 #define connect innocuous_connect
13230 /* System header to define __stub macros and hopefully few prototypes,
13231 which can conflict with char connect (); below.
13232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13233 <limits.h> exists even on freestanding compilers. */
13235 #ifdef __STDC__
13236 # include <limits.h>
13237 #else
13238 # include <assert.h>
13239 #endif
13241 #undef connect
13243 /* Override any gcc2 internal prototype to avoid an error. */
13244 #ifdef __cplusplus
13245 extern "C"
13247 #endif
13248 /* We use char because int might match the return type of a gcc2
13249 builtin and then its argument prototype would still apply. */
13250 char connect ();
13251 /* The GNU C library defines this for functions which it implements
13252 to always fail with ENOSYS. Some functions are actually named
13253 something starting with __ and the normal name is an alias. */
13254 #if defined (__stub_connect) || defined (__stub___connect)
13255 choke me
13256 #else
13257 char (*f) () = connect;
13258 #endif
13259 #ifdef __cplusplus
13261 #endif
13264 main ()
13266 return f != connect;
13268 return 0;
13270 _ACEOF
13271 rm -f conftest.$ac_objext conftest$ac_exeext
13272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13273 (eval $ac_link) 2>conftest.er1
13274 ac_status=$?
13275 grep -v '^ *+' conftest.er1 >conftest.err
13276 rm -f conftest.er1
13277 cat conftest.err >&5
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); } &&
13280 { ac_try='test -z "$ac_c_werror_flag"
13281 || test ! -s conftest.err'
13282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13283 (eval $ac_try) 2>&5
13284 ac_status=$?
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); }; } &&
13287 { ac_try='test -s conftest$ac_exeext'
13288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13289 (eval $ac_try) 2>&5
13290 ac_status=$?
13291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); }; }; then
13293 ac_cv_func_connect=yes
13294 else
13295 echo "$as_me: failed program was:" >&5
13296 sed 's/^/| /' conftest.$ac_ext >&5
13298 ac_cv_func_connect=no
13300 rm -f conftest.err conftest.$ac_objext \
13301 conftest$ac_exeext conftest.$ac_ext
13303 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
13304 echo "${ECHO_T}$ac_cv_func_connect" >&6
13305 if test $ac_cv_func_connect = yes; then
13306 gcj_checkSocket=0
13307 else
13308 gcj_checkSocket=1
13311 if test "$gcj_checkSocket" = 1; then
13312 unset ac_cv_func_connect
13313 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
13314 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
13315 if test "${ac_cv_lib_socket_main+set}" = set; then
13316 echo $ECHO_N "(cached) $ECHO_C" >&6
13317 else
13318 ac_check_lib_save_LIBS=$LIBS
13319 LIBS="-lsocket $LIBS"
13320 if test x$gcc_no_link = xyes; then
13321 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13322 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13323 { (exit 1); exit 1; }; }
13325 cat >conftest.$ac_ext <<_ACEOF
13326 /* confdefs.h. */
13327 _ACEOF
13328 cat confdefs.h >>conftest.$ac_ext
13329 cat >>conftest.$ac_ext <<_ACEOF
13330 /* end confdefs.h. */
13334 main ()
13336 main ();
13338 return 0;
13340 _ACEOF
13341 rm -f conftest.$ac_objext conftest$ac_exeext
13342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13343 (eval $ac_link) 2>conftest.er1
13344 ac_status=$?
13345 grep -v '^ *+' conftest.er1 >conftest.err
13346 rm -f conftest.er1
13347 cat conftest.err >&5
13348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349 (exit $ac_status); } &&
13350 { ac_try='test -z "$ac_c_werror_flag"
13351 || test ! -s conftest.err'
13352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13353 (eval $ac_try) 2>&5
13354 ac_status=$?
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); }; } &&
13357 { ac_try='test -s conftest$ac_exeext'
13358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13359 (eval $ac_try) 2>&5
13360 ac_status=$?
13361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 (exit $ac_status); }; }; then
13363 ac_cv_lib_socket_main=yes
13364 else
13365 echo "$as_me: failed program was:" >&5
13366 sed 's/^/| /' conftest.$ac_ext >&5
13368 ac_cv_lib_socket_main=no
13370 rm -f conftest.err conftest.$ac_objext \
13371 conftest$ac_exeext conftest.$ac_ext
13372 LIBS=$ac_check_lib_save_LIBS
13374 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
13375 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
13376 if test $ac_cv_lib_socket_main = yes; then
13377 gcj_cv_lib_sockets="-lsocket"
13378 else
13379 gcj_checkBoth=1
13383 if test "$gcj_checkBoth" = 1; then
13384 gcj_oldLibs=$LIBS
13385 LIBS="$LIBS -lsocket -lnsl"
13386 unset ac_cv_func_accept
13387 echo "$as_me:$LINENO: checking for accept" >&5
13388 echo $ECHO_N "checking for accept... $ECHO_C" >&6
13389 if test "${ac_cv_func_accept+set}" = set; then
13390 echo $ECHO_N "(cached) $ECHO_C" >&6
13391 else
13392 if test x$gcc_no_link = xyes; then
13393 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13394 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13395 { (exit 1); exit 1; }; }
13397 cat >conftest.$ac_ext <<_ACEOF
13398 /* confdefs.h. */
13399 _ACEOF
13400 cat confdefs.h >>conftest.$ac_ext
13401 cat >>conftest.$ac_ext <<_ACEOF
13402 /* end confdefs.h. */
13403 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
13404 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13405 #define accept innocuous_accept
13407 /* System header to define __stub macros and hopefully few prototypes,
13408 which can conflict with char accept (); below.
13409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13410 <limits.h> exists even on freestanding compilers. */
13412 #ifdef __STDC__
13413 # include <limits.h>
13414 #else
13415 # include <assert.h>
13416 #endif
13418 #undef accept
13420 /* Override any gcc2 internal prototype to avoid an error. */
13421 #ifdef __cplusplus
13422 extern "C"
13424 #endif
13425 /* We use char because int might match the return type of a gcc2
13426 builtin and then its argument prototype would still apply. */
13427 char accept ();
13428 /* The GNU C library defines this for functions which it implements
13429 to always fail with ENOSYS. Some functions are actually named
13430 something starting with __ and the normal name is an alias. */
13431 #if defined (__stub_accept) || defined (__stub___accept)
13432 choke me
13433 #else
13434 char (*f) () = accept;
13435 #endif
13436 #ifdef __cplusplus
13438 #endif
13441 main ()
13443 return f != accept;
13445 return 0;
13447 _ACEOF
13448 rm -f conftest.$ac_objext conftest$ac_exeext
13449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13450 (eval $ac_link) 2>conftest.er1
13451 ac_status=$?
13452 grep -v '^ *+' conftest.er1 >conftest.err
13453 rm -f conftest.er1
13454 cat conftest.err >&5
13455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456 (exit $ac_status); } &&
13457 { ac_try='test -z "$ac_c_werror_flag"
13458 || test ! -s conftest.err'
13459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13460 (eval $ac_try) 2>&5
13461 ac_status=$?
13462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463 (exit $ac_status); }; } &&
13464 { ac_try='test -s conftest$ac_exeext'
13465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13466 (eval $ac_try) 2>&5
13467 ac_status=$?
13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); }; }; then
13470 ac_cv_func_accept=yes
13471 else
13472 echo "$as_me: failed program was:" >&5
13473 sed 's/^/| /' conftest.$ac_ext >&5
13475 ac_cv_func_accept=no
13477 rm -f conftest.err conftest.$ac_objext \
13478 conftest$ac_exeext conftest.$ac_ext
13480 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
13481 echo "${ECHO_T}$ac_cv_func_accept" >&6
13482 if test $ac_cv_func_accept = yes; then
13483 gcj_checkNsl=0
13484 gcj_cv_lib_sockets="-lsocket -lnsl"
13487 unset ac_cv_func_accept
13488 LIBS=$gcj_oldLibs
13490 unset ac_cv_func_gethostbyname
13491 gcj_oldLibs=$LIBS
13492 LIBS="$LIBS $gcj_cv_lib_sockets"
13493 echo "$as_me:$LINENO: checking for gethostbyname" >&5
13494 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
13495 if test "${ac_cv_func_gethostbyname+set}" = set; then
13496 echo $ECHO_N "(cached) $ECHO_C" >&6
13497 else
13498 if test x$gcc_no_link = xyes; then
13499 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13500 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13501 { (exit 1); exit 1; }; }
13503 cat >conftest.$ac_ext <<_ACEOF
13504 /* confdefs.h. */
13505 _ACEOF
13506 cat confdefs.h >>conftest.$ac_ext
13507 cat >>conftest.$ac_ext <<_ACEOF
13508 /* end confdefs.h. */
13509 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
13510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13511 #define gethostbyname innocuous_gethostbyname
13513 /* System header to define __stub macros and hopefully few prototypes,
13514 which can conflict with char gethostbyname (); below.
13515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13516 <limits.h> exists even on freestanding compilers. */
13518 #ifdef __STDC__
13519 # include <limits.h>
13520 #else
13521 # include <assert.h>
13522 #endif
13524 #undef gethostbyname
13526 /* Override any gcc2 internal prototype to avoid an error. */
13527 #ifdef __cplusplus
13528 extern "C"
13530 #endif
13531 /* We use char because int might match the return type of a gcc2
13532 builtin and then its argument prototype would still apply. */
13533 char gethostbyname ();
13534 /* The GNU C library defines this for functions which it implements
13535 to always fail with ENOSYS. Some functions are actually named
13536 something starting with __ and the normal name is an alias. */
13537 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13538 choke me
13539 #else
13540 char (*f) () = gethostbyname;
13541 #endif
13542 #ifdef __cplusplus
13544 #endif
13547 main ()
13549 return f != gethostbyname;
13551 return 0;
13553 _ACEOF
13554 rm -f conftest.$ac_objext conftest$ac_exeext
13555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13556 (eval $ac_link) 2>conftest.er1
13557 ac_status=$?
13558 grep -v '^ *+' conftest.er1 >conftest.err
13559 rm -f conftest.er1
13560 cat conftest.err >&5
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); } &&
13563 { ac_try='test -z "$ac_c_werror_flag"
13564 || test ! -s conftest.err'
13565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13566 (eval $ac_try) 2>&5
13567 ac_status=$?
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); }; } &&
13570 { ac_try='test -s conftest$ac_exeext'
13571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13572 (eval $ac_try) 2>&5
13573 ac_status=$?
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); }; }; then
13576 ac_cv_func_gethostbyname=yes
13577 else
13578 echo "$as_me: failed program was:" >&5
13579 sed 's/^/| /' conftest.$ac_ext >&5
13581 ac_cv_func_gethostbyname=no
13583 rm -f conftest.err conftest.$ac_objext \
13584 conftest$ac_exeext conftest.$ac_ext
13586 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
13587 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
13588 if test $ac_cv_func_gethostbyname = yes; then
13590 else
13591 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
13592 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
13593 if test "${ac_cv_lib_nsl_main+set}" = set; then
13594 echo $ECHO_N "(cached) $ECHO_C" >&6
13595 else
13596 ac_check_lib_save_LIBS=$LIBS
13597 LIBS="-lnsl $LIBS"
13598 if test x$gcc_no_link = xyes; then
13599 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13600 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13601 { (exit 1); exit 1; }; }
13603 cat >conftest.$ac_ext <<_ACEOF
13604 /* confdefs.h. */
13605 _ACEOF
13606 cat confdefs.h >>conftest.$ac_ext
13607 cat >>conftest.$ac_ext <<_ACEOF
13608 /* end confdefs.h. */
13612 main ()
13614 main ();
13616 return 0;
13618 _ACEOF
13619 rm -f conftest.$ac_objext conftest$ac_exeext
13620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13621 (eval $ac_link) 2>conftest.er1
13622 ac_status=$?
13623 grep -v '^ *+' conftest.er1 >conftest.err
13624 rm -f conftest.er1
13625 cat conftest.err >&5
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); } &&
13628 { ac_try='test -z "$ac_c_werror_flag"
13629 || test ! -s conftest.err'
13630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13631 (eval $ac_try) 2>&5
13632 ac_status=$?
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); }; } &&
13635 { ac_try='test -s conftest$ac_exeext'
13636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13637 (eval $ac_try) 2>&5
13638 ac_status=$?
13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); }; }; then
13641 ac_cv_lib_nsl_main=yes
13642 else
13643 echo "$as_me: failed program was:" >&5
13644 sed 's/^/| /' conftest.$ac_ext >&5
13646 ac_cv_lib_nsl_main=no
13648 rm -f conftest.err conftest.$ac_objext \
13649 conftest$ac_exeext conftest.$ac_ext
13650 LIBS=$ac_check_lib_save_LIBS
13652 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
13653 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
13654 if test $ac_cv_lib_nsl_main = yes; then
13655 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
13660 unset ac_cv_func_gethostbyname
13661 LIBS=$gcj_oldLIBS
13664 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
13665 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
13666 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
13668 if test "$with_system_zlib" = yes; then
13669 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
13670 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
13671 if test "${ac_cv_lib_z_deflate+set}" = set; then
13672 echo $ECHO_N "(cached) $ECHO_C" >&6
13673 else
13674 ac_check_lib_save_LIBS=$LIBS
13675 LIBS="-lz $LIBS"
13676 if test x$gcc_no_link = xyes; then
13677 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13678 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13679 { (exit 1); exit 1; }; }
13681 cat >conftest.$ac_ext <<_ACEOF
13682 /* confdefs.h. */
13683 _ACEOF
13684 cat confdefs.h >>conftest.$ac_ext
13685 cat >>conftest.$ac_ext <<_ACEOF
13686 /* end confdefs.h. */
13688 /* Override any gcc2 internal prototype to avoid an error. */
13689 #ifdef __cplusplus
13690 extern "C"
13691 #endif
13692 /* We use char because int might match the return type of a gcc2
13693 builtin and then its argument prototype would still apply. */
13694 char deflate ();
13696 main ()
13698 deflate ();
13700 return 0;
13702 _ACEOF
13703 rm -f conftest.$ac_objext conftest$ac_exeext
13704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13705 (eval $ac_link) 2>conftest.er1
13706 ac_status=$?
13707 grep -v '^ *+' conftest.er1 >conftest.err
13708 rm -f conftest.er1
13709 cat conftest.err >&5
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); } &&
13712 { ac_try='test -z "$ac_c_werror_flag"
13713 || test ! -s conftest.err'
13714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13715 (eval $ac_try) 2>&5
13716 ac_status=$?
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); }; } &&
13719 { ac_try='test -s conftest$ac_exeext'
13720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13721 (eval $ac_try) 2>&5
13722 ac_status=$?
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); }; }; then
13725 ac_cv_lib_z_deflate=yes
13726 else
13727 echo "$as_me: failed program was:" >&5
13728 sed 's/^/| /' conftest.$ac_ext >&5
13730 ac_cv_lib_z_deflate=no
13732 rm -f conftest.err conftest.$ac_objext \
13733 conftest$ac_exeext conftest.$ac_ext
13734 LIBS=$ac_check_lib_save_LIBS
13736 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
13737 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
13738 if test $ac_cv_lib_z_deflate = yes; then
13739 ZLIBSPEC=-lz
13740 else
13741 ZLIBSPEC=
13746 # Test for Gtk stuff, if asked for.
13747 if test "$use_gtk_awt" = yes; then
13749 succeeded=no
13751 if test -z "$PKG_CONFIG"; then
13752 # Extract the first word of "pkg-config", so it can be a program name with args.
13753 set dummy pkg-config; ac_word=$2
13754 echo "$as_me:$LINENO: checking for $ac_word" >&5
13755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13756 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13757 echo $ECHO_N "(cached) $ECHO_C" >&6
13758 else
13759 case $PKG_CONFIG in
13760 [\\/]* | ?:[\\/]*)
13761 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13765 for as_dir in $PATH
13767 IFS=$as_save_IFS
13768 test -z "$as_dir" && as_dir=.
13769 for ac_exec_ext in '' $ac_executable_extensions; do
13770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13771 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13773 break 2
13775 done
13776 done
13778 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13780 esac
13782 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13784 if test -n "$PKG_CONFIG"; then
13785 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13786 echo "${ECHO_T}$PKG_CONFIG" >&6
13787 else
13788 echo "$as_me:$LINENO: result: no" >&5
13789 echo "${ECHO_T}no" >&6
13794 if test "$PKG_CONFIG" = "no" ; then
13795 echo "*** The pkg-config script could not be found. Make sure it is"
13796 echo "*** in your path, or set the PKG_CONFIG environment variable"
13797 echo "*** to the full path to pkg-config."
13798 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13799 else
13800 PKG_CONFIG_MIN_VERSION=0.9.0
13801 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13802 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
13803 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
13805 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
13806 echo "$as_me:$LINENO: result: yes" >&5
13807 echo "${ECHO_T}yes" >&6
13808 succeeded=yes
13810 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
13811 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
13812 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
13813 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
13814 echo "${ECHO_T}$GTK_CFLAGS" >&6
13816 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
13817 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
13818 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
13819 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
13820 echo "${ECHO_T}$GTK_LIBS" >&6
13821 else
13822 GTK_CFLAGS=""
13823 GTK_LIBS=""
13824 ## If we have a custom action on failure, don't print errors, but
13825 ## do set a variable so people can do so.
13826 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
13827 echo $GTK_PKG_ERRORS
13832 else
13833 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13834 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13838 if test $succeeded = yes; then
13840 else
13841 { { 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
13842 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;}
13843 { (exit 1); exit 1; }; }
13850 succeeded=no
13852 if test -z "$PKG_CONFIG"; then
13853 # Extract the first word of "pkg-config", so it can be a program name with args.
13854 set dummy pkg-config; ac_word=$2
13855 echo "$as_me:$LINENO: checking for $ac_word" >&5
13856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13857 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13858 echo $ECHO_N "(cached) $ECHO_C" >&6
13859 else
13860 case $PKG_CONFIG in
13861 [\\/]* | ?:[\\/]*)
13862 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13866 for as_dir in $PATH
13868 IFS=$as_save_IFS
13869 test -z "$as_dir" && as_dir=.
13870 for ac_exec_ext in '' $ac_executable_extensions; do
13871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13872 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13874 break 2
13876 done
13877 done
13879 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13881 esac
13883 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13885 if test -n "$PKG_CONFIG"; then
13886 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13887 echo "${ECHO_T}$PKG_CONFIG" >&6
13888 else
13889 echo "$as_me:$LINENO: result: no" >&5
13890 echo "${ECHO_T}no" >&6
13895 if test "$PKG_CONFIG" = "no" ; then
13896 echo "*** The pkg-config script could not be found. Make sure it is"
13897 echo "*** in your path, or set the PKG_CONFIG environment variable"
13898 echo "*** to the full path to pkg-config."
13899 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13900 else
13901 PKG_CONFIG_MIN_VERSION=0.9.0
13902 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13903 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
13904 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
13906 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
13907 echo "$as_me:$LINENO: result: yes" >&5
13908 echo "${ECHO_T}yes" >&6
13909 succeeded=yes
13911 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
13912 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
13913 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13914 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
13915 echo "${ECHO_T}$GLIB_CFLAGS" >&6
13917 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
13918 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
13919 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13920 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
13921 echo "${ECHO_T}$GLIB_LIBS" >&6
13922 else
13923 GLIB_CFLAGS=""
13924 GLIB_LIBS=""
13925 ## If we have a custom action on failure, don't print errors, but
13926 ## do set a variable so people can do so.
13927 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13928 echo $GLIB_PKG_ERRORS
13933 else
13934 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13935 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13939 if test $succeeded = yes; then
13941 else
13942 { { 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
13943 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;}
13944 { (exit 1); exit 1; }; }
13951 succeeded=no
13953 if test -z "$PKG_CONFIG"; then
13954 # Extract the first word of "pkg-config", so it can be a program name with args.
13955 set dummy pkg-config; ac_word=$2
13956 echo "$as_me:$LINENO: checking for $ac_word" >&5
13957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13958 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13959 echo $ECHO_N "(cached) $ECHO_C" >&6
13960 else
13961 case $PKG_CONFIG in
13962 [\\/]* | ?:[\\/]*)
13963 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13967 for as_dir in $PATH
13969 IFS=$as_save_IFS
13970 test -z "$as_dir" && as_dir=.
13971 for ac_exec_ext in '' $ac_executable_extensions; do
13972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13973 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13975 break 2
13977 done
13978 done
13980 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13982 esac
13984 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13986 if test -n "$PKG_CONFIG"; then
13987 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13988 echo "${ECHO_T}$PKG_CONFIG" >&6
13989 else
13990 echo "$as_me:$LINENO: result: no" >&5
13991 echo "${ECHO_T}no" >&6
13996 if test "$PKG_CONFIG" = "no" ; then
13997 echo "*** The pkg-config script could not be found. Make sure it is"
13998 echo "*** in your path, or set the PKG_CONFIG environment variable"
13999 echo "*** to the full path to pkg-config."
14000 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14001 else
14002 PKG_CONFIG_MIN_VERSION=0.9.0
14003 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14004 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
14005 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
14007 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
14008 echo "$as_me:$LINENO: result: yes" >&5
14009 echo "${ECHO_T}yes" >&6
14010 succeeded=yes
14012 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
14013 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
14014 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
14015 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
14016 echo "${ECHO_T}$LIBART_CFLAGS" >&6
14018 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
14019 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
14020 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
14021 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
14022 echo "${ECHO_T}$LIBART_LIBS" >&6
14023 else
14024 LIBART_CFLAGS=""
14025 LIBART_LIBS=""
14026 ## If we have a custom action on failure, don't print errors, but
14027 ## do set a variable so people can do so.
14028 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
14029 echo $LIBART_PKG_ERRORS
14034 else
14035 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14036 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14040 if test $succeeded = yes; then
14042 else
14043 { { 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
14044 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;}
14045 { (exit 1); exit 1; }; }
14051 # We require the XTest Extension to support java.awt.Robot.
14052 echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
14053 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
14054 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
14055 echo $ECHO_N "(cached) $ECHO_C" >&6
14056 else
14057 ac_check_lib_save_LIBS=$LIBS
14058 LIBS="-lXtst ${X_LIBS} $LIBS"
14059 if test x$gcc_no_link = xyes; then
14060 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14061 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14062 { (exit 1); exit 1; }; }
14064 cat >conftest.$ac_ext <<_ACEOF
14065 /* confdefs.h. */
14066 _ACEOF
14067 cat confdefs.h >>conftest.$ac_ext
14068 cat >>conftest.$ac_ext <<_ACEOF
14069 /* end confdefs.h. */
14071 /* Override any gcc2 internal prototype to avoid an error. */
14072 #ifdef __cplusplus
14073 extern "C"
14074 #endif
14075 /* We use char because int might match the return type of a gcc2
14076 builtin and then its argument prototype would still apply. */
14077 char XTestQueryExtension ();
14079 main ()
14081 XTestQueryExtension ();
14083 return 0;
14085 _ACEOF
14086 rm -f conftest.$ac_objext conftest$ac_exeext
14087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14088 (eval $ac_link) 2>conftest.er1
14089 ac_status=$?
14090 grep -v '^ *+' conftest.er1 >conftest.err
14091 rm -f conftest.er1
14092 cat conftest.err >&5
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); } &&
14095 { ac_try='test -z "$ac_c_werror_flag"
14096 || test ! -s conftest.err'
14097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14098 (eval $ac_try) 2>&5
14099 ac_status=$?
14100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); }; } &&
14102 { ac_try='test -s conftest$ac_exeext'
14103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14104 (eval $ac_try) 2>&5
14105 ac_status=$?
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); }; }; then
14108 ac_cv_lib_Xtst_XTestQueryExtension=yes
14109 else
14110 echo "$as_me: failed program was:" >&5
14111 sed 's/^/| /' conftest.$ac_ext >&5
14113 ac_cv_lib_Xtst_XTestQueryExtension=no
14115 rm -f conftest.err conftest.$ac_objext \
14116 conftest$ac_exeext conftest.$ac_ext
14117 LIBS=$ac_check_lib_save_LIBS
14119 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
14120 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
14121 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
14122 true
14123 else
14124 { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
14125 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
14126 { (exit 1); exit 1; }; }
14131 # On Solaris, and maybe other architectures, the Boehm collector
14132 # requires -ldl.
14133 if test "$GC" = boehm; then
14134 echo "$as_me:$LINENO: checking for main in -ldl" >&5
14135 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
14136 if test "${ac_cv_lib_dl_main+set}" = set; then
14137 echo $ECHO_N "(cached) $ECHO_C" >&6
14138 else
14139 ac_check_lib_save_LIBS=$LIBS
14140 LIBS="-ldl $LIBS"
14141 if test x$gcc_no_link = xyes; then
14142 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14143 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14144 { (exit 1); exit 1; }; }
14146 cat >conftest.$ac_ext <<_ACEOF
14147 /* confdefs.h. */
14148 _ACEOF
14149 cat confdefs.h >>conftest.$ac_ext
14150 cat >>conftest.$ac_ext <<_ACEOF
14151 /* end confdefs.h. */
14155 main ()
14157 main ();
14159 return 0;
14161 _ACEOF
14162 rm -f conftest.$ac_objext conftest$ac_exeext
14163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14164 (eval $ac_link) 2>conftest.er1
14165 ac_status=$?
14166 grep -v '^ *+' conftest.er1 >conftest.err
14167 rm -f conftest.er1
14168 cat conftest.err >&5
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); } &&
14171 { ac_try='test -z "$ac_c_werror_flag"
14172 || test ! -s conftest.err'
14173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14174 (eval $ac_try) 2>&5
14175 ac_status=$?
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); }; } &&
14178 { ac_try='test -s conftest$ac_exeext'
14179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14180 (eval $ac_try) 2>&5
14181 ac_status=$?
14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183 (exit $ac_status); }; }; then
14184 ac_cv_lib_dl_main=yes
14185 else
14186 echo "$as_me: failed program was:" >&5
14187 sed 's/^/| /' conftest.$ac_ext >&5
14189 ac_cv_lib_dl_main=no
14191 rm -f conftest.err conftest.$ac_objext \
14192 conftest$ac_exeext conftest.$ac_ext
14193 LIBS=$ac_check_lib_save_LIBS
14195 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
14196 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
14197 if test $ac_cv_lib_dl_main = yes; then
14198 SYSTEMSPEC="$SYSTEMSPEC -ldl"
14204 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
14205 case $build in
14206 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
14207 *) CLASSPATH_SEPARATOR=':' ;;
14208 esac
14211 # We must search the source tree for java.lang, since we still don't
14212 # have libgcj.jar nor java/lang/*.class
14213 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
14214 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
14216 # Since some classes depend on this one, we need its source available
14217 # before we can do any GCJ compilation test :-(
14218 if test ! -f gnu/classpath/Configuration.java; then
14219 test -d gnu || mkdir gnu
14220 test -d gnu/classpath || mkdir gnu/classpath
14221 # Note that it is not crucial that all the values here be correct.
14222 sed -e "s,@prefix@,$prefix," \
14223 -e "s,@VERSION@,$VERSION," \
14224 -e "s,@LIBDEBUG@,false," \
14225 -e "s,@INIT_LOAD_LIBRARY@,false," \
14226 -e "s,@@,$LIBGCJDEBUG," \
14227 -e "s,@default_toolkit@,$TOOLKIT," \
14228 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
14229 -e "s,@GTK_CAIRO_ENABLED@,false," \
14230 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
14231 > gnu/classpath/Configuration.java
14232 # We do not want to redirect the output of the grep below to /dev/null,
14233 # but we add /dev/null to the input list so that grep will print the
14234 # filename of Configuration.java in case it finds any matches.
14235 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
14236 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
14237 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
14238 { (exit 1); exit 1; }; }
14242 if test -n "$ac_tool_prefix"; then
14243 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
14244 set dummy ${ac_tool_prefix}gcj; ac_word=$2
14245 echo "$as_me:$LINENO: checking for $ac_word" >&5
14246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14247 if test "${ac_cv_prog_GCJ+set}" = set; then
14248 echo $ECHO_N "(cached) $ECHO_C" >&6
14249 else
14250 if test -n "$GCJ"; then
14251 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
14252 else
14253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14254 for as_dir in $PATH
14256 IFS=$as_save_IFS
14257 test -z "$as_dir" && as_dir=.
14258 for ac_exec_ext in '' $ac_executable_extensions; do
14259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14260 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
14261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14262 break 2
14264 done
14265 done
14269 GCJ=$ac_cv_prog_GCJ
14270 if test -n "$GCJ"; then
14271 echo "$as_me:$LINENO: result: $GCJ" >&5
14272 echo "${ECHO_T}$GCJ" >&6
14273 else
14274 echo "$as_me:$LINENO: result: no" >&5
14275 echo "${ECHO_T}no" >&6
14279 if test -z "$ac_cv_prog_GCJ"; then
14280 ac_ct_GCJ=$GCJ
14281 # Extract the first word of "gcj", so it can be a program name with args.
14282 set dummy gcj; ac_word=$2
14283 echo "$as_me:$LINENO: checking for $ac_word" >&5
14284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14285 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
14286 echo $ECHO_N "(cached) $ECHO_C" >&6
14287 else
14288 if test -n "$ac_ct_GCJ"; then
14289 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
14290 else
14291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14292 for as_dir in $PATH
14294 IFS=$as_save_IFS
14295 test -z "$as_dir" && as_dir=.
14296 for ac_exec_ext in '' $ac_executable_extensions; do
14297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14298 ac_cv_prog_ac_ct_GCJ="gcj"
14299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14300 break 2
14302 done
14303 done
14305 test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
14308 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
14309 if test -n "$ac_ct_GCJ"; then
14310 echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
14311 echo "${ECHO_T}$ac_ct_GCJ" >&6
14312 else
14313 echo "$as_me:$LINENO: result: no" >&5
14314 echo "${ECHO_T}no" >&6
14317 GCJ=$ac_ct_GCJ
14318 else
14319 GCJ="$ac_cv_prog_GCJ"
14322 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
14327 # Now remove it.
14328 rm -f gnu/classpath/Configuration.java
14330 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
14332 echo "$as_me:$LINENO: checking for void *" >&5
14333 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14334 if test "${ac_cv_type_void_p+set}" = set; then
14335 echo $ECHO_N "(cached) $ECHO_C" >&6
14336 else
14337 cat >conftest.$ac_ext <<_ACEOF
14338 /* confdefs.h. */
14339 _ACEOF
14340 cat confdefs.h >>conftest.$ac_ext
14341 cat >>conftest.$ac_ext <<_ACEOF
14342 /* end confdefs.h. */
14343 $ac_includes_default
14345 main ()
14347 if ((void * *) 0)
14348 return 0;
14349 if (sizeof (void *))
14350 return 0;
14352 return 0;
14354 _ACEOF
14355 rm -f conftest.$ac_objext
14356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14357 (eval $ac_compile) 2>conftest.er1
14358 ac_status=$?
14359 grep -v '^ *+' conftest.er1 >conftest.err
14360 rm -f conftest.er1
14361 cat conftest.err >&5
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); } &&
14364 { ac_try='test -z "$ac_c_werror_flag"
14365 || test ! -s conftest.err'
14366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14367 (eval $ac_try) 2>&5
14368 ac_status=$?
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); }; } &&
14371 { ac_try='test -s conftest.$ac_objext'
14372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14373 (eval $ac_try) 2>&5
14374 ac_status=$?
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); }; }; then
14377 ac_cv_type_void_p=yes
14378 else
14379 echo "$as_me: failed program was:" >&5
14380 sed 's/^/| /' conftest.$ac_ext >&5
14382 ac_cv_type_void_p=no
14384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14386 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14387 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14389 echo "$as_me:$LINENO: checking size of void *" >&5
14390 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14391 if test "${ac_cv_sizeof_void_p+set}" = set; then
14392 echo $ECHO_N "(cached) $ECHO_C" >&6
14393 else
14394 if test "$ac_cv_type_void_p" = yes; then
14395 # The cast to unsigned long works around a bug in the HP C Compiler
14396 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14397 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14398 # This bug is HP SR number 8606223364.
14399 if test "$cross_compiling" = yes; then
14400 # Depending upon the size, compute the lo and hi bounds.
14401 cat >conftest.$ac_ext <<_ACEOF
14402 /* confdefs.h. */
14403 _ACEOF
14404 cat confdefs.h >>conftest.$ac_ext
14405 cat >>conftest.$ac_ext <<_ACEOF
14406 /* end confdefs.h. */
14407 $ac_includes_default
14409 main ()
14411 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14412 test_array [0] = 0
14415 return 0;
14417 _ACEOF
14418 rm -f conftest.$ac_objext
14419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14420 (eval $ac_compile) 2>conftest.er1
14421 ac_status=$?
14422 grep -v '^ *+' conftest.er1 >conftest.err
14423 rm -f conftest.er1
14424 cat conftest.err >&5
14425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426 (exit $ac_status); } &&
14427 { ac_try='test -z "$ac_c_werror_flag"
14428 || test ! -s conftest.err'
14429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14430 (eval $ac_try) 2>&5
14431 ac_status=$?
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); }; } &&
14434 { ac_try='test -s conftest.$ac_objext'
14435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14436 (eval $ac_try) 2>&5
14437 ac_status=$?
14438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439 (exit $ac_status); }; }; then
14440 ac_lo=0 ac_mid=0
14441 while :; do
14442 cat >conftest.$ac_ext <<_ACEOF
14443 /* confdefs.h. */
14444 _ACEOF
14445 cat confdefs.h >>conftest.$ac_ext
14446 cat >>conftest.$ac_ext <<_ACEOF
14447 /* end confdefs.h. */
14448 $ac_includes_default
14450 main ()
14452 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14453 test_array [0] = 0
14456 return 0;
14458 _ACEOF
14459 rm -f conftest.$ac_objext
14460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14461 (eval $ac_compile) 2>conftest.er1
14462 ac_status=$?
14463 grep -v '^ *+' conftest.er1 >conftest.err
14464 rm -f conftest.er1
14465 cat conftest.err >&5
14466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467 (exit $ac_status); } &&
14468 { ac_try='test -z "$ac_c_werror_flag"
14469 || test ! -s conftest.err'
14470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14471 (eval $ac_try) 2>&5
14472 ac_status=$?
14473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474 (exit $ac_status); }; } &&
14475 { ac_try='test -s conftest.$ac_objext'
14476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14477 (eval $ac_try) 2>&5
14478 ac_status=$?
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); }; }; then
14481 ac_hi=$ac_mid; break
14482 else
14483 echo "$as_me: failed program was:" >&5
14484 sed 's/^/| /' conftest.$ac_ext >&5
14486 ac_lo=`expr $ac_mid + 1`
14487 if test $ac_lo -le $ac_mid; then
14488 ac_lo= ac_hi=
14489 break
14491 ac_mid=`expr 2 '*' $ac_mid + 1`
14493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14494 done
14495 else
14496 echo "$as_me: failed program was:" >&5
14497 sed 's/^/| /' conftest.$ac_ext >&5
14499 cat >conftest.$ac_ext <<_ACEOF
14500 /* confdefs.h. */
14501 _ACEOF
14502 cat confdefs.h >>conftest.$ac_ext
14503 cat >>conftest.$ac_ext <<_ACEOF
14504 /* end confdefs.h. */
14505 $ac_includes_default
14507 main ()
14509 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14510 test_array [0] = 0
14513 return 0;
14515 _ACEOF
14516 rm -f conftest.$ac_objext
14517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14518 (eval $ac_compile) 2>conftest.er1
14519 ac_status=$?
14520 grep -v '^ *+' conftest.er1 >conftest.err
14521 rm -f conftest.er1
14522 cat conftest.err >&5
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); } &&
14525 { ac_try='test -z "$ac_c_werror_flag"
14526 || test ! -s conftest.err'
14527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14528 (eval $ac_try) 2>&5
14529 ac_status=$?
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); }; } &&
14532 { ac_try='test -s conftest.$ac_objext'
14533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14534 (eval $ac_try) 2>&5
14535 ac_status=$?
14536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537 (exit $ac_status); }; }; then
14538 ac_hi=-1 ac_mid=-1
14539 while :; do
14540 cat >conftest.$ac_ext <<_ACEOF
14541 /* confdefs.h. */
14542 _ACEOF
14543 cat confdefs.h >>conftest.$ac_ext
14544 cat >>conftest.$ac_ext <<_ACEOF
14545 /* end confdefs.h. */
14546 $ac_includes_default
14548 main ()
14550 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14551 test_array [0] = 0
14554 return 0;
14556 _ACEOF
14557 rm -f conftest.$ac_objext
14558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14559 (eval $ac_compile) 2>conftest.er1
14560 ac_status=$?
14561 grep -v '^ *+' conftest.er1 >conftest.err
14562 rm -f conftest.er1
14563 cat conftest.err >&5
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); } &&
14566 { ac_try='test -z "$ac_c_werror_flag"
14567 || test ! -s conftest.err'
14568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14569 (eval $ac_try) 2>&5
14570 ac_status=$?
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); }; } &&
14573 { ac_try='test -s conftest.$ac_objext'
14574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14575 (eval $ac_try) 2>&5
14576 ac_status=$?
14577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578 (exit $ac_status); }; }; then
14579 ac_lo=$ac_mid; break
14580 else
14581 echo "$as_me: failed program was:" >&5
14582 sed 's/^/| /' conftest.$ac_ext >&5
14584 ac_hi=`expr '(' $ac_mid ')' - 1`
14585 if test $ac_mid -le $ac_hi; then
14586 ac_lo= ac_hi=
14587 break
14589 ac_mid=`expr 2 '*' $ac_mid`
14591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14592 done
14593 else
14594 echo "$as_me: failed program was:" >&5
14595 sed 's/^/| /' conftest.$ac_ext >&5
14597 ac_lo= ac_hi=
14599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14602 # Binary search between lo and hi bounds.
14603 while test "x$ac_lo" != "x$ac_hi"; do
14604 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14605 cat >conftest.$ac_ext <<_ACEOF
14606 /* confdefs.h. */
14607 _ACEOF
14608 cat confdefs.h >>conftest.$ac_ext
14609 cat >>conftest.$ac_ext <<_ACEOF
14610 /* end confdefs.h. */
14611 $ac_includes_default
14613 main ()
14615 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14616 test_array [0] = 0
14619 return 0;
14621 _ACEOF
14622 rm -f conftest.$ac_objext
14623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14624 (eval $ac_compile) 2>conftest.er1
14625 ac_status=$?
14626 grep -v '^ *+' conftest.er1 >conftest.err
14627 rm -f conftest.er1
14628 cat conftest.err >&5
14629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630 (exit $ac_status); } &&
14631 { ac_try='test -z "$ac_c_werror_flag"
14632 || test ! -s conftest.err'
14633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14634 (eval $ac_try) 2>&5
14635 ac_status=$?
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); }; } &&
14638 { ac_try='test -s conftest.$ac_objext'
14639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14640 (eval $ac_try) 2>&5
14641 ac_status=$?
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); }; }; then
14644 ac_hi=$ac_mid
14645 else
14646 echo "$as_me: failed program was:" >&5
14647 sed 's/^/| /' conftest.$ac_ext >&5
14649 ac_lo=`expr '(' $ac_mid ')' + 1`
14651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14652 done
14653 case $ac_lo in
14654 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14655 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14656 See \`config.log' for more details." >&5
14657 echo "$as_me: error: cannot compute sizeof (void *), 77
14658 See \`config.log' for more details." >&2;}
14659 { (exit 1); exit 1; }; } ;;
14660 esac
14661 else
14662 if test "$cross_compiling" = yes; then
14663 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14664 See \`config.log' for more details." >&5
14665 echo "$as_me: error: cannot run test program while cross compiling
14666 See \`config.log' for more details." >&2;}
14667 { (exit 1); exit 1; }; }
14668 else
14669 cat >conftest.$ac_ext <<_ACEOF
14670 /* confdefs.h. */
14671 _ACEOF
14672 cat confdefs.h >>conftest.$ac_ext
14673 cat >>conftest.$ac_ext <<_ACEOF
14674 /* end confdefs.h. */
14675 $ac_includes_default
14676 long longval () { return (long) (sizeof (void *)); }
14677 unsigned long ulongval () { return (long) (sizeof (void *)); }
14678 #include <stdio.h>
14679 #include <stdlib.h>
14681 main ()
14684 FILE *f = fopen ("conftest.val", "w");
14685 if (! f)
14686 exit (1);
14687 if (((long) (sizeof (void *))) < 0)
14689 long i = longval ();
14690 if (i != ((long) (sizeof (void *))))
14691 exit (1);
14692 fprintf (f, "%ld\n", i);
14694 else
14696 unsigned long i = ulongval ();
14697 if (i != ((long) (sizeof (void *))))
14698 exit (1);
14699 fprintf (f, "%lu\n", i);
14701 exit (ferror (f) || fclose (f) != 0);
14704 return 0;
14706 _ACEOF
14707 rm -f conftest$ac_exeext
14708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14709 (eval $ac_link) 2>&5
14710 ac_status=$?
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14714 (eval $ac_try) 2>&5
14715 ac_status=$?
14716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); }; }; then
14718 ac_cv_sizeof_void_p=`cat conftest.val`
14719 else
14720 echo "$as_me: program exited with status $ac_status" >&5
14721 echo "$as_me: failed program was:" >&5
14722 sed 's/^/| /' conftest.$ac_ext >&5
14724 ( exit $ac_status )
14725 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14726 See \`config.log' for more details." >&5
14727 echo "$as_me: error: cannot compute sizeof (void *), 77
14728 See \`config.log' for more details." >&2;}
14729 { (exit 1); exit 1; }; }
14731 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14734 rm -f conftest.val
14735 else
14736 ac_cv_sizeof_void_p=0
14739 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14740 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14741 cat >>confdefs.h <<_ACEOF
14742 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14743 _ACEOF
14747 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14748 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
14749 if test "${ac_cv_c_bigendian+set}" = set; then
14750 echo $ECHO_N "(cached) $ECHO_C" >&6
14751 else
14752 # See if sys/param.h defines the BYTE_ORDER macro.
14753 cat >conftest.$ac_ext <<_ACEOF
14754 /* confdefs.h. */
14755 _ACEOF
14756 cat confdefs.h >>conftest.$ac_ext
14757 cat >>conftest.$ac_ext <<_ACEOF
14758 /* end confdefs.h. */
14759 #include <sys/types.h>
14760 #include <sys/param.h>
14763 main ()
14765 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14766 bogus endian macros
14767 #endif
14770 return 0;
14772 _ACEOF
14773 rm -f conftest.$ac_objext
14774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14775 (eval $ac_compile) 2>conftest.er1
14776 ac_status=$?
14777 grep -v '^ *+' conftest.er1 >conftest.err
14778 rm -f conftest.er1
14779 cat conftest.err >&5
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); } &&
14782 { ac_try='test -z "$ac_c_werror_flag"
14783 || test ! -s conftest.err'
14784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14785 (eval $ac_try) 2>&5
14786 ac_status=$?
14787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); }; } &&
14789 { ac_try='test -s conftest.$ac_objext'
14790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14791 (eval $ac_try) 2>&5
14792 ac_status=$?
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); }; }; then
14795 # It does; now see whether it defined to BIG_ENDIAN or not.
14796 cat >conftest.$ac_ext <<_ACEOF
14797 /* confdefs.h. */
14798 _ACEOF
14799 cat confdefs.h >>conftest.$ac_ext
14800 cat >>conftest.$ac_ext <<_ACEOF
14801 /* end confdefs.h. */
14802 #include <sys/types.h>
14803 #include <sys/param.h>
14806 main ()
14808 #if BYTE_ORDER != BIG_ENDIAN
14809 not big endian
14810 #endif
14813 return 0;
14815 _ACEOF
14816 rm -f conftest.$ac_objext
14817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14818 (eval $ac_compile) 2>conftest.er1
14819 ac_status=$?
14820 grep -v '^ *+' conftest.er1 >conftest.err
14821 rm -f conftest.er1
14822 cat conftest.err >&5
14823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824 (exit $ac_status); } &&
14825 { ac_try='test -z "$ac_c_werror_flag"
14826 || test ! -s conftest.err'
14827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14828 (eval $ac_try) 2>&5
14829 ac_status=$?
14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831 (exit $ac_status); }; } &&
14832 { ac_try='test -s conftest.$ac_objext'
14833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14834 (eval $ac_try) 2>&5
14835 ac_status=$?
14836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14837 (exit $ac_status); }; }; then
14838 ac_cv_c_bigendian=yes
14839 else
14840 echo "$as_me: failed program was:" >&5
14841 sed 's/^/| /' conftest.$ac_ext >&5
14843 ac_cv_c_bigendian=no
14845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14846 else
14847 echo "$as_me: failed program was:" >&5
14848 sed 's/^/| /' conftest.$ac_ext >&5
14850 # It does not; compile a test program.
14851 if test "$cross_compiling" = yes; then
14852 # try to guess the endianness by grepping values into an object file
14853 ac_cv_c_bigendian=unknown
14854 cat >conftest.$ac_ext <<_ACEOF
14855 /* confdefs.h. */
14856 _ACEOF
14857 cat confdefs.h >>conftest.$ac_ext
14858 cat >>conftest.$ac_ext <<_ACEOF
14859 /* end confdefs.h. */
14860 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14861 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14862 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14863 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14864 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14865 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14867 main ()
14869 _ascii (); _ebcdic ();
14871 return 0;
14873 _ACEOF
14874 rm -f conftest.$ac_objext
14875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14876 (eval $ac_compile) 2>conftest.er1
14877 ac_status=$?
14878 grep -v '^ *+' conftest.er1 >conftest.err
14879 rm -f conftest.er1
14880 cat conftest.err >&5
14881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882 (exit $ac_status); } &&
14883 { ac_try='test -z "$ac_c_werror_flag"
14884 || test ! -s conftest.err'
14885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14886 (eval $ac_try) 2>&5
14887 ac_status=$?
14888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 (exit $ac_status); }; } &&
14890 { ac_try='test -s conftest.$ac_objext'
14891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14892 (eval $ac_try) 2>&5
14893 ac_status=$?
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); }; }; then
14896 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14897 ac_cv_c_bigendian=yes
14899 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14900 if test "$ac_cv_c_bigendian" = unknown; then
14901 ac_cv_c_bigendian=no
14902 else
14903 # finding both strings is unlikely to happen, but who knows?
14904 ac_cv_c_bigendian=unknown
14907 else
14908 echo "$as_me: failed program was:" >&5
14909 sed 's/^/| /' conftest.$ac_ext >&5
14912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14913 else
14914 cat >conftest.$ac_ext <<_ACEOF
14915 /* confdefs.h. */
14916 _ACEOF
14917 cat confdefs.h >>conftest.$ac_ext
14918 cat >>conftest.$ac_ext <<_ACEOF
14919 /* end confdefs.h. */
14921 main ()
14923 /* Are we little or big endian? From Harbison&Steele. */
14924 union
14926 long l;
14927 char c[sizeof (long)];
14928 } u;
14929 u.l = 1;
14930 exit (u.c[sizeof (long) - 1] == 1);
14932 _ACEOF
14933 rm -f conftest$ac_exeext
14934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14935 (eval $ac_link) 2>&5
14936 ac_status=$?
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14940 (eval $ac_try) 2>&5
14941 ac_status=$?
14942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943 (exit $ac_status); }; }; then
14944 ac_cv_c_bigendian=no
14945 else
14946 echo "$as_me: program exited with status $ac_status" >&5
14947 echo "$as_me: failed program was:" >&5
14948 sed 's/^/| /' conftest.$ac_ext >&5
14950 ( exit $ac_status )
14951 ac_cv_c_bigendian=yes
14953 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14958 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14959 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14960 case $ac_cv_c_bigendian in
14961 yes)
14963 cat >>confdefs.h <<\_ACEOF
14964 #define WORDS_BIGENDIAN 1
14965 _ACEOF
14970 { { echo "$as_me:$LINENO: error: unknown endianness
14971 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14972 echo "$as_me: error: unknown endianness
14973 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14974 { (exit 1); exit 1; }; } ;;
14975 esac
14978 ZLIBS=
14979 SYS_ZLIBS=
14980 ZINCS=
14982 if test -z "$ZLIBSPEC"; then
14983 # Use zlib from the GCC tree.
14984 ZINCS='-I$(top_srcdir)/../zlib'
14985 ZLIBS=../zlib/libzgcj_convenience.la
14986 else
14987 # System's zlib.
14988 SYS_ZLIBS="$ZLIBSPEC"
15001 if test "$NATIVE" = yes; then
15002 NATIVE_TRUE=
15003 NATIVE_FALSE='#'
15004 else
15005 NATIVE_TRUE='#'
15006 NATIVE_FALSE=
15011 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
15012 NEEDS_DATA_START_TRUE=
15013 NEEDS_DATA_START_FALSE='#'
15014 else
15015 NEEDS_DATA_START_TRUE='#'
15016 NEEDS_DATA_START_FALSE=
15021 # Process the option "--enable-version-specific-runtime-libs"
15022 # Calculate toolexeclibdir
15023 case ${version_specific_libs} in
15024 yes)
15025 # Need the gcc compiler version to know where to install libraries
15026 # and header files if --enable-version-specific-runtime-libs option
15027 # is selected.
15028 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
15029 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
15030 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
15031 toolexeclibdir=$toolexecmainlibdir
15034 if test -n "$with_cross_host" &&
15035 test x"$with_cross_host" != x"no"; then
15036 # Install a library built with a cross compiler in tooldir, not libdir.
15037 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
15038 toolexecmainlibdir='$(toolexecdir)/lib'
15039 else
15040 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
15041 toolexecmainlibdir='$(libdir)'
15043 multi_os_directory=`$CC -print-multi-os-directory`
15044 case $multi_os_directory in
15045 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
15046 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
15047 esac
15049 esac
15054 # Determine where the standard .db file and GNU Classpath JNI
15055 # libraries are found.
15056 multi_os_directory=`$CC -print-multi-os-directory`
15057 case $multi_os_directory in
15059 dbexecdir='$(libdir)/gcj-$(gcc_version)' # Avoid /.
15062 dbexecdir='$(libdir)/'$multi_os_directory'/gcj-$(gcc_version)'
15064 esac
15067 # Determine gcj version number.
15068 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
15069 GCJVERSION=$gcjversion
15072 cat >>confdefs.h <<_ACEOF
15073 #define GCJVERSION "$GCJVERSION"
15074 _ACEOF
15078 cat >>confdefs.h <<\_ACEOF
15079 #define JV_VERSION "1.4.2"
15080 _ACEOF
15083 cat >>confdefs.h <<\_ACEOF
15084 #define JV_API_VERSION "1.4"
15085 _ACEOF
15089 case "${with_gxx_include_dir}" in
15090 yes)
15091 { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
15092 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
15093 { (exit 1); exit 1; }; }
15095 no | "")
15096 case "${enable_version_specific_runtime_libs}" in
15097 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
15099 libstdcxx_incdir='c++/$(gcc_version)'
15100 gxx_include_dir='include/$(libstdcxx_incdir)'
15101 if test -n "$with_cross_host" &&
15102 test x"$with_cross_host" != x"no"; then
15103 gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
15104 else
15105 gxx_include_dir='${prefix}/'"$gxx_include_dir"
15106 fi;;
15107 esac ;;
15108 *) gxx_include_dir=${with_gxx_include_dir} ;;
15109 esac
15114 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
15115 # On that system, sys/ioctl.h will not include sys/filio.h unless
15116 # BSD_COMP is defined; just including sys/filio.h is simpler.
15117 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
15118 # for now. If you change this, you also must update natFile.cc.
15141 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
15142 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
15143 sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
15144 pwd.h sys/config.h stdint.h langinfo.h locale.h \
15145 dirent.h sys/rw_lock.h ifaddrs.h
15147 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15149 echo "$as_me:$LINENO: checking for $ac_header" >&5
15150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15152 echo $ECHO_N "(cached) $ECHO_C" >&6
15154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15155 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15156 else
15157 # Is the header compilable?
15158 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15159 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15160 cat >conftest.$ac_ext <<_ACEOF
15161 /* confdefs.h. */
15162 _ACEOF
15163 cat confdefs.h >>conftest.$ac_ext
15164 cat >>conftest.$ac_ext <<_ACEOF
15165 /* end confdefs.h. */
15166 $ac_includes_default
15167 #include <$ac_header>
15168 _ACEOF
15169 rm -f conftest.$ac_objext
15170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15171 (eval $ac_compile) 2>conftest.er1
15172 ac_status=$?
15173 grep -v '^ *+' conftest.er1 >conftest.err
15174 rm -f conftest.er1
15175 cat conftest.err >&5
15176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 (exit $ac_status); } &&
15178 { ac_try='test -z "$ac_c_werror_flag"
15179 || test ! -s conftest.err'
15180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15181 (eval $ac_try) 2>&5
15182 ac_status=$?
15183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184 (exit $ac_status); }; } &&
15185 { ac_try='test -s conftest.$ac_objext'
15186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15187 (eval $ac_try) 2>&5
15188 ac_status=$?
15189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15190 (exit $ac_status); }; }; then
15191 ac_header_compiler=yes
15192 else
15193 echo "$as_me: failed program was:" >&5
15194 sed 's/^/| /' conftest.$ac_ext >&5
15196 ac_header_compiler=no
15198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15199 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15200 echo "${ECHO_T}$ac_header_compiler" >&6
15202 # Is the header present?
15203 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15204 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15205 cat >conftest.$ac_ext <<_ACEOF
15206 /* confdefs.h. */
15207 _ACEOF
15208 cat confdefs.h >>conftest.$ac_ext
15209 cat >>conftest.$ac_ext <<_ACEOF
15210 /* end confdefs.h. */
15211 #include <$ac_header>
15212 _ACEOF
15213 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15214 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15215 ac_status=$?
15216 grep -v '^ *+' conftest.er1 >conftest.err
15217 rm -f conftest.er1
15218 cat conftest.err >&5
15219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220 (exit $ac_status); } >/dev/null; then
15221 if test -s conftest.err; then
15222 ac_cpp_err=$ac_c_preproc_warn_flag
15223 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15224 else
15225 ac_cpp_err=
15227 else
15228 ac_cpp_err=yes
15230 if test -z "$ac_cpp_err"; then
15231 ac_header_preproc=yes
15232 else
15233 echo "$as_me: failed program was:" >&5
15234 sed 's/^/| /' conftest.$ac_ext >&5
15236 ac_header_preproc=no
15238 rm -f conftest.err conftest.$ac_ext
15239 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15240 echo "${ECHO_T}$ac_header_preproc" >&6
15242 # So? What about this header?
15243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15244 yes:no: )
15245 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15246 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15248 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15249 ac_header_preproc=yes
15251 no:yes:* )
15252 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15253 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15254 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15255 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15256 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15257 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15258 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15259 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15262 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15263 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15265 cat <<\_ASBOX
15266 ## ---------------------------------- ##
15267 ## Report this to the libjava lists. ##
15268 ## ---------------------------------- ##
15269 _ASBOX
15271 sed "s/^/$as_me: WARNING: /" >&2
15273 esac
15274 echo "$as_me:$LINENO: checking for $ac_header" >&5
15275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15276 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15277 echo $ECHO_N "(cached) $ECHO_C" >&6
15278 else
15279 eval "$as_ac_Header=\$ac_header_preproc"
15281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15282 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15285 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15286 cat >>confdefs.h <<_ACEOF
15287 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15288 _ACEOF
15292 done
15295 for ac_header in inttypes.h
15297 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15299 echo "$as_me:$LINENO: checking for $ac_header" >&5
15300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15302 echo $ECHO_N "(cached) $ECHO_C" >&6
15304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15305 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15306 else
15307 # Is the header compilable?
15308 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15309 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15310 cat >conftest.$ac_ext <<_ACEOF
15311 /* confdefs.h. */
15312 _ACEOF
15313 cat confdefs.h >>conftest.$ac_ext
15314 cat >>conftest.$ac_ext <<_ACEOF
15315 /* end confdefs.h. */
15316 $ac_includes_default
15317 #include <$ac_header>
15318 _ACEOF
15319 rm -f conftest.$ac_objext
15320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15321 (eval $ac_compile) 2>conftest.er1
15322 ac_status=$?
15323 grep -v '^ *+' conftest.er1 >conftest.err
15324 rm -f conftest.er1
15325 cat conftest.err >&5
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); } &&
15328 { ac_try='test -z "$ac_c_werror_flag"
15329 || test ! -s conftest.err'
15330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15331 (eval $ac_try) 2>&5
15332 ac_status=$?
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); }; } &&
15335 { ac_try='test -s conftest.$ac_objext'
15336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15337 (eval $ac_try) 2>&5
15338 ac_status=$?
15339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340 (exit $ac_status); }; }; then
15341 ac_header_compiler=yes
15342 else
15343 echo "$as_me: failed program was:" >&5
15344 sed 's/^/| /' conftest.$ac_ext >&5
15346 ac_header_compiler=no
15348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15349 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15350 echo "${ECHO_T}$ac_header_compiler" >&6
15352 # Is the header present?
15353 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15354 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15355 cat >conftest.$ac_ext <<_ACEOF
15356 /* confdefs.h. */
15357 _ACEOF
15358 cat confdefs.h >>conftest.$ac_ext
15359 cat >>conftest.$ac_ext <<_ACEOF
15360 /* end confdefs.h. */
15361 #include <$ac_header>
15362 _ACEOF
15363 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15364 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15365 ac_status=$?
15366 grep -v '^ *+' conftest.er1 >conftest.err
15367 rm -f conftest.er1
15368 cat conftest.err >&5
15369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370 (exit $ac_status); } >/dev/null; then
15371 if test -s conftest.err; then
15372 ac_cpp_err=$ac_c_preproc_warn_flag
15373 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15374 else
15375 ac_cpp_err=
15377 else
15378 ac_cpp_err=yes
15380 if test -z "$ac_cpp_err"; then
15381 ac_header_preproc=yes
15382 else
15383 echo "$as_me: failed program was:" >&5
15384 sed 's/^/| /' conftest.$ac_ext >&5
15386 ac_header_preproc=no
15388 rm -f conftest.err conftest.$ac_ext
15389 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15390 echo "${ECHO_T}$ac_header_preproc" >&6
15392 # So? What about this header?
15393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15394 yes:no: )
15395 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15396 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15398 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15399 ac_header_preproc=yes
15401 no:yes:* )
15402 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15403 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15404 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15405 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15406 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15407 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15408 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15409 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15411 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15412 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15413 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15415 cat <<\_ASBOX
15416 ## ---------------------------------- ##
15417 ## Report this to the libjava lists. ##
15418 ## ---------------------------------- ##
15419 _ASBOX
15421 sed "s/^/$as_me: WARNING: /" >&2
15423 esac
15424 echo "$as_me:$LINENO: checking for $ac_header" >&5
15425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15427 echo $ECHO_N "(cached) $ECHO_C" >&6
15428 else
15429 eval "$as_ac_Header=\$ac_header_preproc"
15431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15432 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15436 cat >>confdefs.h <<_ACEOF
15437 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15438 _ACEOF
15441 cat >>confdefs.h <<\_ACEOF
15442 #define HAVE_INTTYPES_H 1
15443 _ACEOF
15446 cat >>confdefs.h <<\_ACEOF
15447 #define JV_HAVE_INTTYPES_H 1
15448 _ACEOF
15453 done
15455 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15456 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
15457 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15458 echo $ECHO_N "(cached) $ECHO_C" >&6
15459 else
15460 cat >conftest.$ac_ext <<_ACEOF
15461 /* confdefs.h. */
15462 _ACEOF
15463 cat confdefs.h >>conftest.$ac_ext
15464 cat >>conftest.$ac_ext <<_ACEOF
15465 /* end confdefs.h. */
15466 #include <sys/types.h>
15467 #include <sys/wait.h>
15468 #ifndef WEXITSTATUS
15469 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
15470 #endif
15471 #ifndef WIFEXITED
15472 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15473 #endif
15476 main ()
15478 int s;
15479 wait (&s);
15480 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15482 return 0;
15484 _ACEOF
15485 rm -f conftest.$ac_objext
15486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15487 (eval $ac_compile) 2>conftest.er1
15488 ac_status=$?
15489 grep -v '^ *+' conftest.er1 >conftest.err
15490 rm -f conftest.er1
15491 cat conftest.err >&5
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); } &&
15494 { ac_try='test -z "$ac_c_werror_flag"
15495 || test ! -s conftest.err'
15496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15497 (eval $ac_try) 2>&5
15498 ac_status=$?
15499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500 (exit $ac_status); }; } &&
15501 { ac_try='test -s conftest.$ac_objext'
15502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15503 (eval $ac_try) 2>&5
15504 ac_status=$?
15505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506 (exit $ac_status); }; }; then
15507 ac_cv_header_sys_wait_h=yes
15508 else
15509 echo "$as_me: failed program was:" >&5
15510 sed 's/^/| /' conftest.$ac_ext >&5
15512 ac_cv_header_sys_wait_h=no
15514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15516 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15517 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
15518 if test $ac_cv_header_sys_wait_h = yes; then
15520 cat >>confdefs.h <<\_ACEOF
15521 #define HAVE_SYS_WAIT_H 1
15522 _ACEOF
15527 echo "$as_me:$LINENO: checking for ssize_t" >&5
15528 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15529 if test "${ac_cv_type_ssize_t+set}" = set; then
15530 echo $ECHO_N "(cached) $ECHO_C" >&6
15531 else
15532 cat >conftest.$ac_ext <<_ACEOF
15533 /* confdefs.h. */
15534 _ACEOF
15535 cat confdefs.h >>conftest.$ac_ext
15536 cat >>conftest.$ac_ext <<_ACEOF
15537 /* end confdefs.h. */
15538 $ac_includes_default
15540 main ()
15542 if ((ssize_t *) 0)
15543 return 0;
15544 if (sizeof (ssize_t))
15545 return 0;
15547 return 0;
15549 _ACEOF
15550 rm -f conftest.$ac_objext
15551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15552 (eval $ac_compile) 2>conftest.er1
15553 ac_status=$?
15554 grep -v '^ *+' conftest.er1 >conftest.err
15555 rm -f conftest.er1
15556 cat conftest.err >&5
15557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558 (exit $ac_status); } &&
15559 { ac_try='test -z "$ac_c_werror_flag"
15560 || test ! -s conftest.err'
15561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15562 (eval $ac_try) 2>&5
15563 ac_status=$?
15564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565 (exit $ac_status); }; } &&
15566 { ac_try='test -s conftest.$ac_objext'
15567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15568 (eval $ac_try) 2>&5
15569 ac_status=$?
15570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571 (exit $ac_status); }; }; then
15572 ac_cv_type_ssize_t=yes
15573 else
15574 echo "$as_me: failed program was:" >&5
15575 sed 's/^/| /' conftest.$ac_ext >&5
15577 ac_cv_type_ssize_t=no
15579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15581 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
15582 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
15583 if test $ac_cv_type_ssize_t = yes; then
15585 else
15587 cat >>confdefs.h <<_ACEOF
15588 #define ssize_t int
15589 _ACEOF
15594 echo "$as_me:$LINENO: checking for in_addr_t" >&5
15595 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
15596 cat >conftest.$ac_ext <<_ACEOF
15597 /* confdefs.h. */
15598 _ACEOF
15599 cat confdefs.h >>conftest.$ac_ext
15600 cat >>conftest.$ac_ext <<_ACEOF
15601 /* end confdefs.h. */
15602 #include <sys/types.h>
15603 #if STDC_HEADERS
15604 #include <stdlib.h>
15605 #include <stddef.h>
15606 #endif
15607 #if HAVE_NETINET_IN_H
15608 #include <netinet/in.h>
15609 #endif
15611 main ()
15613 in_addr_t foo;
15615 return 0;
15617 _ACEOF
15618 rm -f conftest.$ac_objext
15619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15620 (eval $ac_compile) 2>conftest.er1
15621 ac_status=$?
15622 grep -v '^ *+' conftest.er1 >conftest.err
15623 rm -f conftest.er1
15624 cat conftest.err >&5
15625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); } &&
15627 { ac_try='test -z "$ac_c_werror_flag"
15628 || test ! -s conftest.err'
15629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15630 (eval $ac_try) 2>&5
15631 ac_status=$?
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); }; } &&
15634 { ac_try='test -s conftest.$ac_objext'
15635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15636 (eval $ac_try) 2>&5
15637 ac_status=$?
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); }; }; then
15641 cat >>confdefs.h <<\_ACEOF
15642 #define HAVE_IN_ADDR_T 1
15643 _ACEOF
15645 echo "$as_me:$LINENO: result: yes" >&5
15646 echo "${ECHO_T}yes" >&6
15647 else
15648 echo "$as_me: failed program was:" >&5
15649 sed 's/^/| /' conftest.$ac_ext >&5
15651 echo "$as_me:$LINENO: result: no" >&5
15652 echo "${ECHO_T}no" >&6
15654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15656 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
15657 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
15658 cat >conftest.$ac_ext <<_ACEOF
15659 /* confdefs.h. */
15660 _ACEOF
15661 cat confdefs.h >>conftest.$ac_ext
15662 cat >>conftest.$ac_ext <<_ACEOF
15663 /* end confdefs.h. */
15664 #include <netinet/in.h>
15666 main ()
15668 struct ip_mreq mreq;
15670 return 0;
15672 _ACEOF
15673 rm -f conftest.$ac_objext
15674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15675 (eval $ac_compile) 2>conftest.er1
15676 ac_status=$?
15677 grep -v '^ *+' conftest.er1 >conftest.err
15678 rm -f conftest.er1
15679 cat conftest.err >&5
15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681 (exit $ac_status); } &&
15682 { ac_try='test -z "$ac_c_werror_flag"
15683 || test ! -s conftest.err'
15684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15685 (eval $ac_try) 2>&5
15686 ac_status=$?
15687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688 (exit $ac_status); }; } &&
15689 { ac_try='test -s conftest.$ac_objext'
15690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15691 (eval $ac_try) 2>&5
15692 ac_status=$?
15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); }; }; then
15696 cat >>confdefs.h <<\_ACEOF
15697 #define HAVE_STRUCT_IP_MREQ 1
15698 _ACEOF
15700 echo "$as_me:$LINENO: result: yes" >&5
15701 echo "${ECHO_T}yes" >&6
15702 else
15703 echo "$as_me: failed program was:" >&5
15704 sed 's/^/| /' conftest.$ac_ext >&5
15706 echo "$as_me:$LINENO: result: no" >&5
15707 echo "${ECHO_T}no" >&6
15709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15711 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
15712 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
15713 cat >conftest.$ac_ext <<_ACEOF
15714 /* confdefs.h. */
15715 _ACEOF
15716 cat confdefs.h >>conftest.$ac_ext
15717 cat >>conftest.$ac_ext <<_ACEOF
15718 /* end confdefs.h. */
15719 #include <netinet/in.h>
15721 main ()
15723 struct ipv6_mreq mreq6;
15725 return 0;
15727 _ACEOF
15728 rm -f conftest.$ac_objext
15729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15730 (eval $ac_compile) 2>conftest.er1
15731 ac_status=$?
15732 grep -v '^ *+' conftest.er1 >conftest.err
15733 rm -f conftest.er1
15734 cat conftest.err >&5
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); } &&
15737 { ac_try='test -z "$ac_c_werror_flag"
15738 || test ! -s conftest.err'
15739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15740 (eval $ac_try) 2>&5
15741 ac_status=$?
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); }; } &&
15744 { ac_try='test -s conftest.$ac_objext'
15745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15746 (eval $ac_try) 2>&5
15747 ac_status=$?
15748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749 (exit $ac_status); }; }; then
15751 cat >>confdefs.h <<\_ACEOF
15752 #define HAVE_STRUCT_IPV6_MREQ 1
15753 _ACEOF
15755 echo "$as_me:$LINENO: result: yes" >&5
15756 echo "${ECHO_T}yes" >&6
15757 else
15758 echo "$as_me: failed program was:" >&5
15759 sed 's/^/| /' conftest.$ac_ext >&5
15761 echo "$as_me:$LINENO: result: no" >&5
15762 echo "${ECHO_T}no" >&6
15764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15766 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
15767 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
15768 cat >conftest.$ac_ext <<_ACEOF
15769 /* confdefs.h. */
15770 _ACEOF
15771 cat confdefs.h >>conftest.$ac_ext
15772 cat >>conftest.$ac_ext <<_ACEOF
15773 /* end confdefs.h. */
15774 #include <netinet/in.h>
15776 main ()
15778 struct sockaddr_in6 addr6;
15780 return 0;
15782 _ACEOF
15783 rm -f conftest.$ac_objext
15784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15785 (eval $ac_compile) 2>conftest.er1
15786 ac_status=$?
15787 grep -v '^ *+' conftest.er1 >conftest.err
15788 rm -f conftest.er1
15789 cat conftest.err >&5
15790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791 (exit $ac_status); } &&
15792 { ac_try='test -z "$ac_c_werror_flag"
15793 || test ! -s conftest.err'
15794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15795 (eval $ac_try) 2>&5
15796 ac_status=$?
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 (exit $ac_status); }; } &&
15799 { ac_try='test -s conftest.$ac_objext'
15800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15801 (eval $ac_try) 2>&5
15802 ac_status=$?
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); }; }; then
15806 cat >>confdefs.h <<\_ACEOF
15807 #define HAVE_INET6 1
15808 _ACEOF
15810 echo "$as_me:$LINENO: result: yes" >&5
15811 echo "${ECHO_T}yes" >&6
15812 else
15813 echo "$as_me: failed program was:" >&5
15814 sed 's/^/| /' conftest.$ac_ext >&5
15816 echo "$as_me:$LINENO: result: no" >&5
15817 echo "${ECHO_T}no" >&6
15819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15821 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
15822 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
15823 cat >conftest.$ac_ext <<_ACEOF
15824 /* confdefs.h. */
15825 _ACEOF
15826 cat confdefs.h >>conftest.$ac_ext
15827 cat >>conftest.$ac_ext <<_ACEOF
15828 /* end confdefs.h. */
15829 #define _POSIX_PII_SOCKET
15830 #include <sys/types.h>
15831 #include <sys/socket.h>
15833 main ()
15835 socklen_t x = 5;
15837 return 0;
15839 _ACEOF
15840 rm -f conftest.$ac_objext
15841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15842 (eval $ac_compile) 2>conftest.er1
15843 ac_status=$?
15844 grep -v '^ *+' conftest.er1 >conftest.err
15845 rm -f conftest.er1
15846 cat conftest.err >&5
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); } &&
15849 { ac_try='test -z "$ac_c_werror_flag"
15850 || test ! -s conftest.err'
15851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15852 (eval $ac_try) 2>&5
15853 ac_status=$?
15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); }; } &&
15856 { ac_try='test -s conftest.$ac_objext'
15857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15858 (eval $ac_try) 2>&5
15859 ac_status=$?
15860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861 (exit $ac_status); }; }; then
15863 cat >>confdefs.h <<\_ACEOF
15864 #define HAVE_SOCKLEN_T 1
15865 _ACEOF
15867 echo "$as_me:$LINENO: result: yes" >&5
15868 echo "${ECHO_T}yes" >&6
15869 else
15870 echo "$as_me: failed program was:" >&5
15871 sed 's/^/| /' conftest.$ac_ext >&5
15873 echo "$as_me:$LINENO: result: no" >&5
15874 echo "${ECHO_T}no" >&6
15876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15878 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
15879 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
15880 cat >conftest.$ac_ext <<_ACEOF
15881 /* confdefs.h. */
15882 _ACEOF
15883 cat confdefs.h >>conftest.$ac_ext
15884 cat >>conftest.$ac_ext <<_ACEOF
15885 /* end confdefs.h. */
15886 #include <time.h>
15888 main ()
15890 struct tm tim; tim.tm_gmtoff = 0;
15892 return 0;
15894 _ACEOF
15895 rm -f conftest.$ac_objext
15896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15897 (eval $ac_compile) 2>conftest.er1
15898 ac_status=$?
15899 grep -v '^ *+' conftest.er1 >conftest.err
15900 rm -f conftest.er1
15901 cat conftest.err >&5
15902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903 (exit $ac_status); } &&
15904 { ac_try='test -z "$ac_c_werror_flag"
15905 || test ! -s conftest.err'
15906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15907 (eval $ac_try) 2>&5
15908 ac_status=$?
15909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910 (exit $ac_status); }; } &&
15911 { ac_try='test -s conftest.$ac_objext'
15912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15913 (eval $ac_try) 2>&5
15914 ac_status=$?
15915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916 (exit $ac_status); }; }; then
15918 cat >>confdefs.h <<\_ACEOF
15919 #define STRUCT_TM_HAS_GMTOFF 1
15920 _ACEOF
15922 echo "$as_me:$LINENO: result: yes" >&5
15923 echo "${ECHO_T}yes" >&6
15924 else
15925 echo "$as_me: failed program was:" >&5
15926 sed 's/^/| /' conftest.$ac_ext >&5
15928 echo "$as_me:$LINENO: result: no" >&5
15929 echo "${ECHO_T}no" >&6
15930 echo "$as_me:$LINENO: checking for global timezone variable" >&5
15931 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
15932 cat >conftest.$ac_ext <<_ACEOF
15933 /* confdefs.h. */
15934 _ACEOF
15935 cat confdefs.h >>conftest.$ac_ext
15936 cat >>conftest.$ac_ext <<_ACEOF
15937 /* end confdefs.h. */
15938 #include <time.h>
15940 main ()
15942 void i(){long z2 = 2*timezone;}
15944 return 0;
15946 _ACEOF
15947 rm -f conftest.$ac_objext
15948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15949 (eval $ac_compile) 2>conftest.er1
15950 ac_status=$?
15951 grep -v '^ *+' conftest.er1 >conftest.err
15952 rm -f conftest.er1
15953 cat conftest.err >&5
15954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955 (exit $ac_status); } &&
15956 { ac_try='test -z "$ac_c_werror_flag"
15957 || test ! -s conftest.err'
15958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15959 (eval $ac_try) 2>&5
15960 ac_status=$?
15961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962 (exit $ac_status); }; } &&
15963 { ac_try='test -s conftest.$ac_objext'
15964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15965 (eval $ac_try) 2>&5
15966 ac_status=$?
15967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968 (exit $ac_status); }; }; then
15970 cat >>confdefs.h <<\_ACEOF
15971 #define HAVE_TIMEZONE 1
15972 _ACEOF
15974 echo "$as_me:$LINENO: result: yes" >&5
15975 echo "${ECHO_T}yes" >&6
15976 else
15977 echo "$as_me: failed program was:" >&5
15978 sed 's/^/| /' conftest.$ac_ext >&5
15980 echo "$as_me:$LINENO: result: no" >&5
15981 echo "${ECHO_T}no" >&6
15982 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
15983 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
15984 cat >conftest.$ac_ext <<_ACEOF
15985 /* confdefs.h. */
15986 _ACEOF
15987 cat confdefs.h >>conftest.$ac_ext
15988 cat >>conftest.$ac_ext <<_ACEOF
15989 /* end confdefs.h. */
15990 #include <time.h>
15992 main ()
15994 long z2 = _timezone;
15996 return 0;
15998 _ACEOF
15999 rm -f conftest.$ac_objext
16000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16001 (eval $ac_compile) 2>conftest.er1
16002 ac_status=$?
16003 grep -v '^ *+' conftest.er1 >conftest.err
16004 rm -f conftest.er1
16005 cat conftest.err >&5
16006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); } &&
16008 { ac_try='test -z "$ac_c_werror_flag"
16009 || test ! -s conftest.err'
16010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16011 (eval $ac_try) 2>&5
16012 ac_status=$?
16013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014 (exit $ac_status); }; } &&
16015 { ac_try='test -s conftest.$ac_objext'
16016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16017 (eval $ac_try) 2>&5
16018 ac_status=$?
16019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020 (exit $ac_status); }; }; then
16022 cat >>confdefs.h <<\_ACEOF
16023 #define HAVE_UNDERSCORE_TIMEZONE 1
16024 _ACEOF
16026 echo "$as_me:$LINENO: result: yes" >&5
16027 echo "${ECHO_T}yes" >&6
16028 else
16029 echo "$as_me: failed program was:" >&5
16030 sed 's/^/| /' conftest.$ac_ext >&5
16032 echo "$as_me:$LINENO: result: no" >&5
16033 echo "${ECHO_T}no" >&6
16035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16041 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16042 # for constant arguments. Useless!
16043 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16044 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16045 if test "${ac_cv_working_alloca_h+set}" = set; then
16046 echo $ECHO_N "(cached) $ECHO_C" >&6
16047 else
16048 if test x$gcc_no_link = xyes; then
16049 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16050 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16051 { (exit 1); exit 1; }; }
16053 cat >conftest.$ac_ext <<_ACEOF
16054 /* confdefs.h. */
16055 _ACEOF
16056 cat confdefs.h >>conftest.$ac_ext
16057 cat >>conftest.$ac_ext <<_ACEOF
16058 /* end confdefs.h. */
16059 #include <alloca.h>
16061 main ()
16063 char *p = (char *) alloca (2 * sizeof (int));
16065 return 0;
16067 _ACEOF
16068 rm -f conftest.$ac_objext conftest$ac_exeext
16069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16070 (eval $ac_link) 2>conftest.er1
16071 ac_status=$?
16072 grep -v '^ *+' conftest.er1 >conftest.err
16073 rm -f conftest.er1
16074 cat conftest.err >&5
16075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076 (exit $ac_status); } &&
16077 { ac_try='test -z "$ac_c_werror_flag"
16078 || test ! -s conftest.err'
16079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16080 (eval $ac_try) 2>&5
16081 ac_status=$?
16082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); }; } &&
16084 { ac_try='test -s conftest$ac_exeext'
16085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16086 (eval $ac_try) 2>&5
16087 ac_status=$?
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); }; }; then
16090 ac_cv_working_alloca_h=yes
16091 else
16092 echo "$as_me: failed program was:" >&5
16093 sed 's/^/| /' conftest.$ac_ext >&5
16095 ac_cv_working_alloca_h=no
16097 rm -f conftest.err conftest.$ac_objext \
16098 conftest$ac_exeext conftest.$ac_ext
16100 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16101 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16102 if test $ac_cv_working_alloca_h = yes; then
16104 cat >>confdefs.h <<\_ACEOF
16105 #define HAVE_ALLOCA_H 1
16106 _ACEOF
16110 echo "$as_me:$LINENO: checking for alloca" >&5
16111 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16112 if test "${ac_cv_func_alloca_works+set}" = set; then
16113 echo $ECHO_N "(cached) $ECHO_C" >&6
16114 else
16115 if test x$gcc_no_link = xyes; then
16116 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16117 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16118 { (exit 1); exit 1; }; }
16120 cat >conftest.$ac_ext <<_ACEOF
16121 /* confdefs.h. */
16122 _ACEOF
16123 cat confdefs.h >>conftest.$ac_ext
16124 cat >>conftest.$ac_ext <<_ACEOF
16125 /* end confdefs.h. */
16126 #ifdef __GNUC__
16127 # define alloca __builtin_alloca
16128 #else
16129 # ifdef _MSC_VER
16130 # include <malloc.h>
16131 # define alloca _alloca
16132 # else
16133 # if HAVE_ALLOCA_H
16134 # include <alloca.h>
16135 # else
16136 # ifdef _AIX
16137 #pragma alloca
16138 # else
16139 # ifndef alloca /* predefined by HP cc +Olibcalls */
16140 char *alloca ();
16141 # endif
16142 # endif
16143 # endif
16144 # endif
16145 #endif
16148 main ()
16150 char *p = (char *) alloca (1);
16152 return 0;
16154 _ACEOF
16155 rm -f conftest.$ac_objext conftest$ac_exeext
16156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16157 (eval $ac_link) 2>conftest.er1
16158 ac_status=$?
16159 grep -v '^ *+' conftest.er1 >conftest.err
16160 rm -f conftest.er1
16161 cat conftest.err >&5
16162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163 (exit $ac_status); } &&
16164 { ac_try='test -z "$ac_c_werror_flag"
16165 || test ! -s conftest.err'
16166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16167 (eval $ac_try) 2>&5
16168 ac_status=$?
16169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170 (exit $ac_status); }; } &&
16171 { ac_try='test -s conftest$ac_exeext'
16172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16173 (eval $ac_try) 2>&5
16174 ac_status=$?
16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); }; }; then
16177 ac_cv_func_alloca_works=yes
16178 else
16179 echo "$as_me: failed program was:" >&5
16180 sed 's/^/| /' conftest.$ac_ext >&5
16182 ac_cv_func_alloca_works=no
16184 rm -f conftest.err conftest.$ac_objext \
16185 conftest$ac_exeext conftest.$ac_ext
16187 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16188 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16190 if test $ac_cv_func_alloca_works = yes; then
16192 cat >>confdefs.h <<\_ACEOF
16193 #define HAVE_ALLOCA 1
16194 _ACEOF
16196 else
16197 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16198 # that cause trouble. Some versions do not even contain alloca or
16199 # contain a buggy version. If you still want to use their alloca,
16200 # use ar to extract alloca.o from them instead of compiling alloca.c.
16202 ALLOCA=alloca.$ac_objext
16204 cat >>confdefs.h <<\_ACEOF
16205 #define C_ALLOCA 1
16206 _ACEOF
16209 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16210 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16211 if test "${ac_cv_os_cray+set}" = set; then
16212 echo $ECHO_N "(cached) $ECHO_C" >&6
16213 else
16214 cat >conftest.$ac_ext <<_ACEOF
16215 /* confdefs.h. */
16216 _ACEOF
16217 cat confdefs.h >>conftest.$ac_ext
16218 cat >>conftest.$ac_ext <<_ACEOF
16219 /* end confdefs.h. */
16220 #if defined(CRAY) && ! defined(CRAY2)
16221 webecray
16222 #else
16223 wenotbecray
16224 #endif
16226 _ACEOF
16227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16228 $EGREP "webecray" >/dev/null 2>&1; then
16229 ac_cv_os_cray=yes
16230 else
16231 ac_cv_os_cray=no
16233 rm -f conftest*
16236 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16237 echo "${ECHO_T}$ac_cv_os_cray" >&6
16238 if test $ac_cv_os_cray = yes; then
16239 for ac_func in _getb67 GETB67 getb67; do
16240 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16241 echo "$as_me:$LINENO: checking for $ac_func" >&5
16242 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16243 if eval "test \"\${$as_ac_var+set}\" = set"; then
16244 echo $ECHO_N "(cached) $ECHO_C" >&6
16245 else
16246 if test x$gcc_no_link = xyes; then
16247 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16248 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16249 { (exit 1); exit 1; }; }
16251 cat >conftest.$ac_ext <<_ACEOF
16252 /* confdefs.h. */
16253 _ACEOF
16254 cat confdefs.h >>conftest.$ac_ext
16255 cat >>conftest.$ac_ext <<_ACEOF
16256 /* end confdefs.h. */
16257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16259 #define $ac_func innocuous_$ac_func
16261 /* System header to define __stub macros and hopefully few prototypes,
16262 which can conflict with char $ac_func (); below.
16263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16264 <limits.h> exists even on freestanding compilers. */
16266 #ifdef __STDC__
16267 # include <limits.h>
16268 #else
16269 # include <assert.h>
16270 #endif
16272 #undef $ac_func
16274 /* Override any gcc2 internal prototype to avoid an error. */
16275 #ifdef __cplusplus
16276 extern "C"
16278 #endif
16279 /* We use char because int might match the return type of a gcc2
16280 builtin and then its argument prototype would still apply. */
16281 char $ac_func ();
16282 /* The GNU C library defines this for functions which it implements
16283 to always fail with ENOSYS. Some functions are actually named
16284 something starting with __ and the normal name is an alias. */
16285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16286 choke me
16287 #else
16288 char (*f) () = $ac_func;
16289 #endif
16290 #ifdef __cplusplus
16292 #endif
16295 main ()
16297 return f != $ac_func;
16299 return 0;
16301 _ACEOF
16302 rm -f conftest.$ac_objext conftest$ac_exeext
16303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16304 (eval $ac_link) 2>conftest.er1
16305 ac_status=$?
16306 grep -v '^ *+' conftest.er1 >conftest.err
16307 rm -f conftest.er1
16308 cat conftest.err >&5
16309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16310 (exit $ac_status); } &&
16311 { ac_try='test -z "$ac_c_werror_flag"
16312 || test ! -s conftest.err'
16313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16314 (eval $ac_try) 2>&5
16315 ac_status=$?
16316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317 (exit $ac_status); }; } &&
16318 { ac_try='test -s conftest$ac_exeext'
16319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16320 (eval $ac_try) 2>&5
16321 ac_status=$?
16322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323 (exit $ac_status); }; }; then
16324 eval "$as_ac_var=yes"
16325 else
16326 echo "$as_me: failed program was:" >&5
16327 sed 's/^/| /' conftest.$ac_ext >&5
16329 eval "$as_ac_var=no"
16331 rm -f conftest.err conftest.$ac_objext \
16332 conftest$ac_exeext conftest.$ac_ext
16334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16335 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16336 if test `eval echo '${'$as_ac_var'}'` = yes; then
16338 cat >>confdefs.h <<_ACEOF
16339 #define CRAY_STACKSEG_END $ac_func
16340 _ACEOF
16342 break
16345 done
16348 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16349 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16350 if test "${ac_cv_c_stack_direction+set}" = set; then
16351 echo $ECHO_N "(cached) $ECHO_C" >&6
16352 else
16353 if test "$cross_compiling" = yes; then
16354 ac_cv_c_stack_direction=0
16355 else
16356 cat >conftest.$ac_ext <<_ACEOF
16357 /* confdefs.h. */
16358 _ACEOF
16359 cat confdefs.h >>conftest.$ac_ext
16360 cat >>conftest.$ac_ext <<_ACEOF
16361 /* end confdefs.h. */
16363 find_stack_direction ()
16365 static char *addr = 0;
16366 auto char dummy;
16367 if (addr == 0)
16369 addr = &dummy;
16370 return find_stack_direction ();
16372 else
16373 return (&dummy > addr) ? 1 : -1;
16377 main ()
16379 exit (find_stack_direction () < 0);
16381 _ACEOF
16382 rm -f conftest$ac_exeext
16383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16384 (eval $ac_link) 2>&5
16385 ac_status=$?
16386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16387 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16389 (eval $ac_try) 2>&5
16390 ac_status=$?
16391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392 (exit $ac_status); }; }; then
16393 ac_cv_c_stack_direction=1
16394 else
16395 echo "$as_me: program exited with status $ac_status" >&5
16396 echo "$as_me: failed program was:" >&5
16397 sed 's/^/| /' conftest.$ac_ext >&5
16399 ( exit $ac_status )
16400 ac_cv_c_stack_direction=-1
16402 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16405 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16406 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16408 cat >>confdefs.h <<_ACEOF
16409 #define STACK_DIRECTION $ac_cv_c_stack_direction
16410 _ACEOF
16416 for ac_prog in perl
16418 # Extract the first word of "$ac_prog", so it can be a program name with args.
16419 set dummy $ac_prog; ac_word=$2
16420 echo "$as_me:$LINENO: checking for $ac_word" >&5
16421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16422 if test "${ac_cv_prog_PERL+set}" = set; then
16423 echo $ECHO_N "(cached) $ECHO_C" >&6
16424 else
16425 if test -n "$PERL"; then
16426 ac_cv_prog_PERL="$PERL" # Let the user override the test.
16427 else
16428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16429 for as_dir in $PATH
16431 IFS=$as_save_IFS
16432 test -z "$as_dir" && as_dir=.
16433 for ac_exec_ext in '' $ac_executable_extensions; do
16434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16435 ac_cv_prog_PERL="$ac_prog"
16436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16437 break 2
16439 done
16440 done
16444 PERL=$ac_cv_prog_PERL
16445 if test -n "$PERL"; then
16446 echo "$as_me:$LINENO: result: $PERL" >&5
16447 echo "${ECHO_T}$PERL" >&6
16448 else
16449 echo "$as_me:$LINENO: result: no" >&5
16450 echo "${ECHO_T}no" >&6
16453 test -n "$PERL" && break
16454 done
16455 test -n "$PERL" || PERL="false"
16458 SYSDEP_SOURCES=
16459 SIGNAL_HANDLER_AUX=
16461 case "${host}" in
16462 i?86-*-linux*)
16463 SIGNAL_HANDLER=include/i386-signal.h
16465 sparc*-sun-solaris*)
16466 SIGNAL_HANDLER=include/sparc-signal.h
16468 # ia64-*)
16469 # SYSDEP_SOURCES=sysdep/ia64.c
16470 # test -d sysdep || mkdir sysdep
16471 # ;;
16472 hppa*-*-linux*)
16473 SIGNAL_HANDLER=include/pa-signal.h
16475 hppa*-hp-hpux*)
16476 SIGNAL_HANDLER=include/hppa-signal.h
16478 ia64-*-linux*)
16479 SIGNAL_HANDLER=include/dwarf2-signal.h
16481 powerpc*-*-linux*)
16482 SIGNAL_HANDLER=include/powerpc-signal.h
16484 alpha*-*-linux*)
16485 SIGNAL_HANDLER=include/dwarf2-signal.h
16487 s390*-*-linux*)
16488 SIGNAL_HANDLER=include/s390-signal.h
16490 x86_64*-*-linux*)
16491 SIGNAL_HANDLER=include/x86_64-signal.h
16492 SIGNAL_HANDLER_AUX=include/i386-signal.h
16494 sparc*-*-linux*)
16495 SIGNAL_HANDLER=include/dwarf2-signal.h
16497 sh*-*-linux*)
16498 SIGNAL_HANDLER=include/sh-signal.h
16500 *mingw*)
16501 SIGNAL_HANDLER=include/win32-signal.h
16503 mips*-*-linux*)
16504 SIGNAL_HANDLER=include/mips-signal.h
16506 powerpc*-*-darwin*)
16507 SIGNAL_HANDLER=include/darwin-signal.h
16510 SIGNAL_HANDLER=include/default-signal.h
16512 esac
16514 # If we're using sjlj exceptions, forget what we just learned.
16515 if test "$enable_sjlj_exceptions" = yes; then
16516 SIGNAL_HANDLER=include/default-signal.h
16517 SIGNAL_HANDLER_AUX=
16522 if test -z "$SIGNAL_HANDLER_AUX"; then
16523 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
16526 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
16529 if test "${multilib}" = "yes"; then
16530 multilib_arg="--enable-multilib"
16531 else
16532 multilib_arg=
16535 # See if we support thread-local storage.
16537 # Check whether --enable-tls or --disable-tls was given.
16538 if test "${enable_tls+set}" = set; then
16539 enableval="$enable_tls"
16541 case "$enableval" in
16542 yes|no) ;;
16543 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
16544 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
16545 { (exit 1); exit 1; }; } ;;
16546 esac
16548 else
16549 enable_tls=yes
16552 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
16553 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
16554 if test "${have_tls+set}" = set; then
16555 echo $ECHO_N "(cached) $ECHO_C" >&6
16556 else
16558 if test "$cross_compiling" = yes; then
16559 cat >conftest.$ac_ext <<_ACEOF
16560 __thread int foo;
16561 _ACEOF
16562 rm -f conftest.$ac_objext
16563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16564 (eval $ac_compile) 2>conftest.er1
16565 ac_status=$?
16566 grep -v '^ *+' conftest.er1 >conftest.err
16567 rm -f conftest.er1
16568 cat conftest.err >&5
16569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570 (exit $ac_status); } &&
16571 { ac_try='test -z "$ac_c_werror_flag"
16572 || test ! -s conftest.err'
16573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16574 (eval $ac_try) 2>&5
16575 ac_status=$?
16576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577 (exit $ac_status); }; } &&
16578 { ac_try='test -s conftest.$ac_objext'
16579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16580 (eval $ac_try) 2>&5
16581 ac_status=$?
16582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583 (exit $ac_status); }; }; then
16584 have_tls=yes
16585 else
16586 echo "$as_me: failed program was:" >&5
16587 sed 's/^/| /' conftest.$ac_ext >&5
16589 have_tls=no
16591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16593 else
16594 cat >conftest.$ac_ext <<_ACEOF
16595 __thread int a; int b; int main() { return a = b; }
16596 _ACEOF
16597 rm -f conftest$ac_exeext
16598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16599 (eval $ac_link) 2>&5
16600 ac_status=$?
16601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16604 (eval $ac_try) 2>&5
16605 ac_status=$?
16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); }; }; then
16608 save_LDFLAGS="$LDFLAGS"
16609 LDFLAGS="-static $LDFLAGS"
16610 if test x$gcc_no_link = xyes; then
16611 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16612 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16613 { (exit 1); exit 1; }; }
16615 cat >conftest.$ac_ext <<_ACEOF
16616 int main() { return 0; }
16617 _ACEOF
16618 rm -f conftest.$ac_objext conftest$ac_exeext
16619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16620 (eval $ac_link) 2>conftest.er1
16621 ac_status=$?
16622 grep -v '^ *+' conftest.er1 >conftest.err
16623 rm -f conftest.er1
16624 cat conftest.err >&5
16625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626 (exit $ac_status); } &&
16627 { ac_try='test -z "$ac_c_werror_flag"
16628 || test ! -s conftest.err'
16629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16630 (eval $ac_try) 2>&5
16631 ac_status=$?
16632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633 (exit $ac_status); }; } &&
16634 { ac_try='test -s conftest$ac_exeext'
16635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16636 (eval $ac_try) 2>&5
16637 ac_status=$?
16638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639 (exit $ac_status); }; }; then
16640 if test "$cross_compiling" = yes; then
16641 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16642 See \`config.log' for more details." >&5
16643 echo "$as_me: error: cannot run test program while cross compiling
16644 See \`config.log' for more details." >&2;}
16645 { (exit 1); exit 1; }; }
16646 else
16647 cat >conftest.$ac_ext <<_ACEOF
16648 __thread int a; int b; int main() { return a = b; }
16649 _ACEOF
16650 rm -f conftest$ac_exeext
16651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16652 (eval $ac_link) 2>&5
16653 ac_status=$?
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16657 (eval $ac_try) 2>&5
16658 ac_status=$?
16659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660 (exit $ac_status); }; }; then
16661 have_tls=yes
16662 else
16663 echo "$as_me: program exited with status $ac_status" >&5
16664 echo "$as_me: failed program was:" >&5
16665 sed 's/^/| /' conftest.$ac_ext >&5
16667 ( exit $ac_status )
16668 have_tls=no
16670 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16672 else
16673 echo "$as_me: failed program was:" >&5
16674 sed 's/^/| /' conftest.$ac_ext >&5
16676 have_tls=yes
16678 rm -f conftest.err conftest.$ac_objext \
16679 conftest$ac_exeext conftest.$ac_ext
16680 LDFLAGS="$save_LDFLAGS"
16681 else
16682 echo "$as_me: program exited with status $ac_status" >&5
16683 echo "$as_me: failed program was:" >&5
16684 sed 's/^/| /' conftest.$ac_ext >&5
16686 ( exit $ac_status )
16687 have_tls=no
16689 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16692 echo "$as_me:$LINENO: result: $have_tls" >&5
16693 echo "${ECHO_T}$have_tls" >&6
16694 if test "$enable_tls $have_tls" = "yes yes"; then
16696 cat >>confdefs.h <<\_ACEOF
16697 #define HAVE_TLS 1
16698 _ACEOF
16702 # For _Unwind_GetIPInfo.
16706 ac_ext=cc
16707 ac_cpp='$CXXCPP $CPPFLAGS'
16708 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16709 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16710 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16712 ac_save_CXXFLAGS="$CXXFLAGS"
16713 CXXFLAGS="$CXXFLAGS -fno-exceptions"
16714 echo "$as_me:$LINENO: checking for _Unwind_GetIPInfo" >&5
16715 echo $ECHO_N "checking for _Unwind_GetIPInfo... $ECHO_C" >&6
16716 if test "${gcc_cv_getipinfo+set}" = set; then
16717 echo $ECHO_N "(cached) $ECHO_C" >&6
16718 else
16720 if test x$gcc_no_link = xyes; then
16721 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16722 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16723 { (exit 1); exit 1; }; }
16725 cat >conftest.$ac_ext <<_ACEOF
16726 /* confdefs.h. */
16727 _ACEOF
16728 cat confdefs.h >>conftest.$ac_ext
16729 cat >>conftest.$ac_ext <<_ACEOF
16730 /* end confdefs.h. */
16731 extern "C" { extern void _Unwind_GetIPInfo(); }
16733 main ()
16735 _Unwind_GetIPInfo();
16737 return 0;
16739 _ACEOF
16740 rm -f conftest.$ac_objext conftest$ac_exeext
16741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16742 (eval $ac_link) 2>conftest.er1
16743 ac_status=$?
16744 grep -v '^ *+' conftest.er1 >conftest.err
16745 rm -f conftest.er1
16746 cat conftest.err >&5
16747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748 (exit $ac_status); } &&
16749 { ac_try='test -z "$ac_cxx_werror_flag"
16750 || test ! -s conftest.err'
16751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16752 (eval $ac_try) 2>&5
16753 ac_status=$?
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); }; } &&
16756 { ac_try='test -s conftest$ac_exeext'
16757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16758 (eval $ac_try) 2>&5
16759 ac_status=$?
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); }; }; then
16762 gcc_cv_getipinfo=yes
16763 else
16764 echo "$as_me: failed program was:" >&5
16765 sed 's/^/| /' conftest.$ac_ext >&5
16767 gcc_cv_getipinfo=no
16769 rm -f conftest.err conftest.$ac_objext \
16770 conftest$ac_exeext conftest.$ac_ext
16774 if test $gcc_cv_getipinfo = yes; then
16776 cat >>confdefs.h <<\_ACEOF
16777 #define HAVE_GETIPINFO 1
16778 _ACEOF
16781 echo "$as_me:$LINENO: result: $gcc_cv_getipinfo" >&5
16782 echo "${ECHO_T}$gcc_cv_getipinfo" >&6
16783 CXXFLAGS="$ac_save_CXXFLAGS"
16784 ac_ext=c
16785 ac_cpp='$CPP $CPPFLAGS'
16786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16792 # Check if linker supports static linking on a per library basis
16793 LD_START_STATIC_SPEC=
16794 LD_FINISH_STATIC_SPEC=
16795 if $LD --help 2>&1 | grep -q -e -call_shared ; then
16796 if $LD --help 2>&1 | grep -q -e -non_shared ; then
16797 LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
16798 LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
16804 here=`${PWDCMD-pwd}`
16807 # We get this from the environment.
16810 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"
16813 ac_config_files="$ac_config_files scripts/jar"
16816 ac_config_commands="$ac_config_commands default"
16819 cat >confcache <<\_ACEOF
16820 # This file is a shell script that caches the results of configure
16821 # tests run on this system so they can be shared between configure
16822 # scripts and configure runs, see configure's option --config-cache.
16823 # It is not useful on other systems. If it contains results you don't
16824 # want to keep, you may remove or edit it.
16826 # config.status only pays attention to the cache file if you give it
16827 # the --recheck option to rerun configure.
16829 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16830 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16831 # following values.
16833 _ACEOF
16835 # The following way of writing the cache mishandles newlines in values,
16836 # but we know of no workaround that is simple, portable, and efficient.
16837 # So, don't put newlines in cache variables' values.
16838 # Ultrix sh set writes to stderr and can't be redirected directly,
16839 # and sets the high bit in the cache file unless we assign to the vars.
16841 (set) 2>&1 |
16842 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16843 *ac_space=\ *)
16844 # `set' does not quote correctly, so add quotes (double-quote
16845 # substitution turns \\\\ into \\, and sed turns \\ into \).
16846 sed -n \
16847 "s/'/'\\\\''/g;
16848 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16851 # `set' quotes correctly as required by POSIX, so do not add quotes.
16852 sed -n \
16853 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16855 esac;
16857 sed '
16858 t clear
16859 : clear
16860 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16861 t end
16862 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16863 : end' >>confcache
16864 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16865 if test -w $cache_file; then
16866 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16867 cat confcache >$cache_file
16868 else
16869 echo "not updating unwritable cache $cache_file"
16872 rm -f confcache
16874 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16875 # Let make expand exec_prefix.
16876 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16878 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16879 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16880 # trailing colons and then remove the whole line if VPATH becomes empty
16881 # (actually we leave an empty line to preserve line numbers).
16882 if test "x$srcdir" = x.; then
16883 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16884 s/:*\$(srcdir):*/:/;
16885 s/:*\${srcdir}:*/:/;
16886 s/:*@srcdir@:*/:/;
16887 s/^\([^=]*=[ ]*\):*/\1/;
16888 s/:*$//;
16889 s/^[^=]*=[ ]*$//;
16893 DEFS=-DHAVE_CONFIG_H
16895 ac_libobjs=
16896 ac_ltlibobjs=
16897 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16898 # 1. Remove the extension, and $U if already installed.
16899 ac_i=`echo "$ac_i" |
16900 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16901 # 2. Add them.
16902 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16903 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16904 done
16905 LIBOBJS=$ac_libobjs
16907 LTLIBOBJS=$ac_ltlibobjs
16910 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16911 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16912 Usually this means the macro was only invoked conditionally." >&5
16913 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16914 Usually this means the macro was only invoked conditionally." >&2;}
16915 { (exit 1); exit 1; }; }
16917 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16918 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16919 Usually this means the macro was only invoked conditionally." >&5
16920 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16921 Usually this means the macro was only invoked conditionally." >&2;}
16922 { (exit 1); exit 1; }; }
16924 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16925 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16926 Usually this means the macro was only invoked conditionally." >&5
16927 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16928 Usually this means the macro was only invoked conditionally." >&2;}
16929 { (exit 1); exit 1; }; }
16931 if test -z "${BASH_JAR_TRUE}" && test -z "${BASH_JAR_FALSE}"; then
16932 { { echo "$as_me:$LINENO: error: conditional \"BASH_JAR\" was never defined.
16933 Usually this means the macro was only invoked conditionally." >&5
16934 echo "$as_me: error: conditional \"BASH_JAR\" was never defined.
16935 Usually this means the macro was only invoked conditionally." >&2;}
16936 { (exit 1); exit 1; }; }
16938 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16939 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16940 Usually this means the macro was only invoked conditionally." >&5
16941 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16942 Usually this means the macro was only invoked conditionally." >&2;}
16943 { (exit 1); exit 1; }; }
16945 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
16946 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
16947 Usually this means the macro was only invoked conditionally." >&5
16948 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
16949 Usually this means the macro was only invoked conditionally." >&2;}
16950 { (exit 1); exit 1; }; }
16952 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
16953 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
16954 Usually this means the macro was only invoked conditionally." >&5
16955 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
16956 Usually this means the macro was only invoked conditionally." >&2;}
16957 { (exit 1); exit 1; }; }
16959 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
16960 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
16961 Usually this means the macro was only invoked conditionally." >&5
16962 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
16963 Usually this means the macro was only invoked conditionally." >&2;}
16964 { (exit 1); exit 1; }; }
16966 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
16967 { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
16968 Usually this means the macro was only invoked conditionally." >&5
16969 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
16970 Usually this means the macro was only invoked conditionally." >&2;}
16971 { (exit 1); exit 1; }; }
16973 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
16974 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16975 Usually this means the macro was only invoked conditionally." >&5
16976 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16977 Usually this means the macro was only invoked conditionally." >&2;}
16978 { (exit 1); exit 1; }; }
16980 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
16981 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16982 Usually this means the macro was only invoked conditionally." >&5
16983 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16984 Usually this means the macro was only invoked conditionally." >&2;}
16985 { (exit 1); exit 1; }; }
16987 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
16988 { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
16989 Usually this means the macro was only invoked conditionally." >&5
16990 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
16991 Usually this means the macro was only invoked conditionally." >&2;}
16992 { (exit 1); exit 1; }; }
16994 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
16995 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
16996 Usually this means the macro was only invoked conditionally." >&5
16997 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
16998 Usually this means the macro was only invoked conditionally." >&2;}
16999 { (exit 1); exit 1; }; }
17001 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
17002 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
17003 Usually this means the macro was only invoked conditionally." >&5
17004 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
17005 Usually this means the macro was only invoked conditionally." >&2;}
17006 { (exit 1); exit 1; }; }
17008 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
17009 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
17010 Usually this means the macro was only invoked conditionally." >&5
17011 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
17012 Usually this means the macro was only invoked conditionally." >&2;}
17013 { (exit 1); exit 1; }; }
17015 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
17016 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
17017 Usually this means the macro was only invoked conditionally." >&5
17018 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
17019 Usually this means the macro was only invoked conditionally." >&2;}
17020 { (exit 1); exit 1; }; }
17022 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
17023 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
17024 Usually this means the macro was only invoked conditionally." >&5
17025 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
17026 Usually this means the macro was only invoked conditionally." >&2;}
17027 { (exit 1); exit 1; }; }
17029 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
17030 { { echo "$as_me:$LINENO: error: conditional \"USE_LIBGCJ_BC\" was never defined.
17031 Usually this means the macro was only invoked conditionally." >&5
17032 echo "$as_me: error: conditional \"USE_LIBGCJ_BC\" was never defined.
17033 Usually this means the macro was only invoked conditionally." >&2;}
17034 { (exit 1); exit 1; }; }
17036 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
17037 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
17038 Usually this means the macro was only invoked conditionally." >&5
17039 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
17040 Usually this means the macro was only invoked conditionally." >&2;}
17041 { (exit 1); exit 1; }; }
17043 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
17044 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
17045 Usually this means the macro was only invoked conditionally." >&5
17046 echo "$as_me: error: conditional \"NATIVE\" was never defined.
17047 Usually this means the macro was only invoked conditionally." >&2;}
17048 { (exit 1); exit 1; }; }
17050 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
17051 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
17052 Usually this means the macro was only invoked conditionally." >&5
17053 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
17054 Usually this means the macro was only invoked conditionally." >&2;}
17055 { (exit 1); exit 1; }; }
17058 : ${CONFIG_STATUS=./config.status}
17059 ac_clean_files_save=$ac_clean_files
17060 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17061 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17062 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17063 cat >$CONFIG_STATUS <<_ACEOF
17064 #! $SHELL
17065 # Generated by $as_me.
17066 # Run this file to recreate the current configuration.
17067 # Compiler output produced by configure, useful for debugging
17068 # configure, is in config.log if it exists.
17070 debug=false
17071 ac_cs_recheck=false
17072 ac_cs_silent=false
17073 SHELL=\${CONFIG_SHELL-$SHELL}
17074 _ACEOF
17076 cat >>$CONFIG_STATUS <<\_ACEOF
17077 ## --------------------- ##
17078 ## M4sh Initialization. ##
17079 ## --------------------- ##
17081 # Be Bourne compatible
17082 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17083 emulate sh
17084 NULLCMD=:
17085 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17086 # is contrary to our usage. Disable this feature.
17087 alias -g '${1+"$@"}'='"$@"'
17088 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17089 set -o posix
17091 DUALCASE=1; export DUALCASE # for MKS sh
17093 # Support unset when possible.
17094 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17095 as_unset=unset
17096 else
17097 as_unset=false
17101 # Work around bugs in pre-3.0 UWIN ksh.
17102 $as_unset ENV MAIL MAILPATH
17103 PS1='$ '
17104 PS2='> '
17105 PS4='+ '
17107 # NLS nuisances.
17108 for as_var in \
17109 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17110 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17111 LC_TELEPHONE LC_TIME
17113 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17114 eval $as_var=C; export $as_var
17115 else
17116 $as_unset $as_var
17118 done
17120 # Required to use basename.
17121 if expr a : '\(a\)' >/dev/null 2>&1; then
17122 as_expr=expr
17123 else
17124 as_expr=false
17127 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17128 as_basename=basename
17129 else
17130 as_basename=false
17134 # Name of the executable.
17135 as_me=`$as_basename "$0" ||
17136 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17137 X"$0" : 'X\(//\)$' \| \
17138 X"$0" : 'X\(/\)$' \| \
17139 . : '\(.\)' 2>/dev/null ||
17140 echo X/"$0" |
17141 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17142 /^X\/\(\/\/\)$/{ s//\1/; q; }
17143 /^X\/\(\/\).*/{ s//\1/; q; }
17144 s/.*/./; q'`
17147 # PATH needs CR, and LINENO needs CR and PATH.
17148 # Avoid depending upon Character Ranges.
17149 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17150 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17151 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17152 as_cr_digits='0123456789'
17153 as_cr_alnum=$as_cr_Letters$as_cr_digits
17155 # The user is always right.
17156 if test "${PATH_SEPARATOR+set}" != set; then
17157 echo "#! /bin/sh" >conf$$.sh
17158 echo "exit 0" >>conf$$.sh
17159 chmod +x conf$$.sh
17160 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17161 PATH_SEPARATOR=';'
17162 else
17163 PATH_SEPARATOR=:
17165 rm -f conf$$.sh
17169 as_lineno_1=$LINENO
17170 as_lineno_2=$LINENO
17171 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17172 test "x$as_lineno_1" != "x$as_lineno_2" &&
17173 test "x$as_lineno_3" = "x$as_lineno_2" || {
17174 # Find who we are. Look in the path if we contain no path at all
17175 # relative or not.
17176 case $0 in
17177 *[\\/]* ) as_myself=$0 ;;
17178 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17179 for as_dir in $PATH
17181 IFS=$as_save_IFS
17182 test -z "$as_dir" && as_dir=.
17183 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17184 done
17187 esac
17188 # We did not find ourselves, most probably we were run as `sh COMMAND'
17189 # in which case we are not to be found in the path.
17190 if test "x$as_myself" = x; then
17191 as_myself=$0
17193 if test ! -f "$as_myself"; then
17194 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17195 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17196 { (exit 1); exit 1; }; }
17198 case $CONFIG_SHELL in
17200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17201 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17203 IFS=$as_save_IFS
17204 test -z "$as_dir" && as_dir=.
17205 for as_base in sh bash ksh sh5; do
17206 case $as_dir in
17208 if ("$as_dir/$as_base" -c '
17209 as_lineno_1=$LINENO
17210 as_lineno_2=$LINENO
17211 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17212 test "x$as_lineno_1" != "x$as_lineno_2" &&
17213 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17214 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17215 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17216 CONFIG_SHELL=$as_dir/$as_base
17217 export CONFIG_SHELL
17218 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17219 fi;;
17220 esac
17221 done
17222 done
17224 esac
17226 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17227 # uniformly replaced by the line number. The first 'sed' inserts a
17228 # line-number line before each line; the second 'sed' does the real
17229 # work. The second script uses 'N' to pair each line-number line
17230 # with the numbered line, and appends trailing '-' during
17231 # substitution so that $LINENO is not a special case at line end.
17232 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17233 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17234 sed '=' <$as_myself |
17235 sed '
17237 s,$,-,
17238 : loop
17239 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17240 t loop
17241 s,-$,,
17242 s,^['$as_cr_digits']*\n,,
17243 ' >$as_me.lineno &&
17244 chmod +x $as_me.lineno ||
17245 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17246 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17247 { (exit 1); exit 1; }; }
17249 # Don't try to exec as it changes $[0], causing all sort of problems
17250 # (the dirname of $[0] is not the place where we might find the
17251 # original and so on. Autoconf is especially sensible to this).
17252 . ./$as_me.lineno
17253 # Exit status is that of the last command.
17254 exit
17258 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17259 *c*,-n*) ECHO_N= ECHO_C='
17260 ' ECHO_T=' ' ;;
17261 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17262 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17263 esac
17265 if expr a : '\(a\)' >/dev/null 2>&1; then
17266 as_expr=expr
17267 else
17268 as_expr=false
17271 rm -f conf$$ conf$$.exe conf$$.file
17272 echo >conf$$.file
17273 if ln -s conf$$.file conf$$ 2>/dev/null; then
17274 # We could just check for DJGPP; but this test a) works b) is more generic
17275 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17276 if test -f conf$$.exe; then
17277 # Don't use ln at all; we don't have any links
17278 as_ln_s='cp -p'
17279 else
17280 as_ln_s='ln -s'
17282 elif ln conf$$.file conf$$ 2>/dev/null; then
17283 as_ln_s=ln
17284 else
17285 as_ln_s='cp -p'
17287 rm -f conf$$ conf$$.exe conf$$.file
17289 if mkdir -p . 2>/dev/null; then
17290 as_mkdir_p=:
17291 else
17292 test -d ./-p && rmdir ./-p
17293 as_mkdir_p=false
17296 as_executable_p="test -f"
17298 # Sed expression to map a string onto a valid CPP name.
17299 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17301 # Sed expression to map a string onto a valid variable name.
17302 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17305 # IFS
17306 # We need space, tab and new line, in precisely that order.
17307 as_nl='
17309 IFS=" $as_nl"
17311 # CDPATH.
17312 $as_unset CDPATH
17314 exec 6>&1
17316 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17317 # report actual input values of CONFIG_FILES etc. instead of their
17318 # values after options handling. Logging --version etc. is OK.
17319 exec 5>>config.log
17321 echo
17322 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17323 ## Running $as_me. ##
17324 _ASBOX
17325 } >&5
17326 cat >&5 <<_CSEOF
17328 This file was extended by libjava $as_me version-unused, which was
17329 generated by GNU Autoconf 2.59. Invocation command line was
17331 CONFIG_FILES = $CONFIG_FILES
17332 CONFIG_HEADERS = $CONFIG_HEADERS
17333 CONFIG_LINKS = $CONFIG_LINKS
17334 CONFIG_COMMANDS = $CONFIG_COMMANDS
17335 $ $0 $@
17337 _CSEOF
17338 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17339 echo >&5
17340 _ACEOF
17342 # Files that config.status was made for.
17343 if test -n "$ac_config_files"; then
17344 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17347 if test -n "$ac_config_headers"; then
17348 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17351 if test -n "$ac_config_links"; then
17352 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17355 if test -n "$ac_config_commands"; then
17356 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17359 cat >>$CONFIG_STATUS <<\_ACEOF
17361 ac_cs_usage="\
17362 \`$as_me' instantiates files from templates according to the
17363 current configuration.
17365 Usage: $0 [OPTIONS] [FILE]...
17367 -h, --help print this help, then exit
17368 -V, --version print version number, then exit
17369 -q, --quiet do not print progress messages
17370 -d, --debug don't remove temporary files
17371 --recheck update $as_me by reconfiguring in the same conditions
17372 --file=FILE[:TEMPLATE]
17373 instantiate the configuration file FILE
17374 --header=FILE[:TEMPLATE]
17375 instantiate the configuration header FILE
17377 Configuration files:
17378 $config_files
17380 Configuration headers:
17381 $config_headers
17383 Configuration links:
17384 $config_links
17386 Configuration commands:
17387 $config_commands
17389 Report bugs to <bug-autoconf@gnu.org>."
17390 _ACEOF
17392 cat >>$CONFIG_STATUS <<_ACEOF
17393 ac_cs_version="\\
17394 libjava config.status version-unused
17395 configured by $0, generated by GNU Autoconf 2.59,
17396 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17398 Copyright (C) 2003 Free Software Foundation, Inc.
17399 This config.status script is free software; the Free Software Foundation
17400 gives unlimited permission to copy, distribute and modify it."
17401 srcdir=$srcdir
17402 INSTALL="$INSTALL"
17403 _ACEOF
17405 cat >>$CONFIG_STATUS <<\_ACEOF
17406 # If no file are specified by the user, then we need to provide default
17407 # value. By we need to know if files were specified by the user.
17408 ac_need_defaults=:
17409 while test $# != 0
17411 case $1 in
17412 --*=*)
17413 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17414 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17415 ac_shift=:
17418 ac_option=$1
17419 ac_optarg=$2
17420 ac_shift=shift
17422 *) # This is not an option, so the user has probably given explicit
17423 # arguments.
17424 ac_option=$1
17425 ac_need_defaults=false;;
17426 esac
17428 case $ac_option in
17429 # Handling of the options.
17430 _ACEOF
17431 cat >>$CONFIG_STATUS <<\_ACEOF
17432 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17433 ac_cs_recheck=: ;;
17434 --version | --vers* | -V )
17435 echo "$ac_cs_version"; exit 0 ;;
17436 --he | --h)
17437 # Conflict between --help and --header
17438 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17439 Try \`$0 --help' for more information." >&5
17440 echo "$as_me: error: ambiguous option: $1
17441 Try \`$0 --help' for more information." >&2;}
17442 { (exit 1); exit 1; }; };;
17443 --help | --hel | -h )
17444 echo "$ac_cs_usage"; exit 0 ;;
17445 --debug | --d* | -d )
17446 debug=: ;;
17447 --file | --fil | --fi | --f )
17448 $ac_shift
17449 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17450 ac_need_defaults=false;;
17451 --header | --heade | --head | --hea )
17452 $ac_shift
17453 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17454 ac_need_defaults=false;;
17455 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17456 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17457 ac_cs_silent=: ;;
17459 # This is an error.
17460 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17461 Try \`$0 --help' for more information." >&5
17462 echo "$as_me: error: unrecognized option: $1
17463 Try \`$0 --help' for more information." >&2;}
17464 { (exit 1); exit 1; }; } ;;
17466 *) ac_config_targets="$ac_config_targets $1" ;;
17468 esac
17469 shift
17470 done
17472 ac_configure_extra_args=
17474 if $ac_cs_silent; then
17475 exec 6>/dev/null
17476 ac_configure_extra_args="$ac_configure_extra_args --silent"
17479 _ACEOF
17480 cat >>$CONFIG_STATUS <<_ACEOF
17481 if \$ac_cs_recheck; then
17482 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17483 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17486 _ACEOF
17488 cat >>$CONFIG_STATUS <<_ACEOF
17490 # INIT-COMMANDS section.
17494 srcdir="$srcdir"
17495 host="$host"
17496 target="$target"
17497 with_multisubdir="$with_multisubdir"
17498 with_multisrctop="$with_multisrctop"
17499 with_target_subdir="$with_target_subdir"
17500 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17501 multi_basedir="$multi_basedir"
17502 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17503 CC="$CC"
17504 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17505 srcdir=${srcdir}
17506 host=${host}
17507 target=${target}
17508 with_multisubdir=${with_multisubdir}
17509 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17510 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17511 multi_basedir=${multi_basedir}
17512 CC="${CC}"
17513 CXX="${CXX}"
17514 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
17517 _ACEOF
17521 cat >>$CONFIG_STATUS <<\_ACEOF
17522 for ac_config_target in $ac_config_targets
17524 case "$ac_config_target" in
17525 # Handling of arguments.
17526 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17527 "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
17528 "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
17529 "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
17530 "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
17531 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17532 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17533 "scripts/jar" ) CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
17534 "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
17535 "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
17536 "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
17537 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
17538 "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
17539 "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
17540 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
17541 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
17542 "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
17543 "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
17544 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
17545 "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
17546 "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
17547 "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
17548 "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
17549 "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
17550 "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
17551 "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
17552 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17553 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17554 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17555 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17556 "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
17557 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17558 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17559 { (exit 1); exit 1; }; };;
17560 esac
17561 done
17563 # If the user did not use the arguments to specify the items to instantiate,
17564 # then the envvar interface is used. Set only those that are not.
17565 # We use the long form for the default assignment because of an extremely
17566 # bizarre bug on SunOS 4.1.3.
17567 if $ac_need_defaults; then
17568 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17569 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17570 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17571 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17574 # Have a temporary directory for convenience. Make it in the build tree
17575 # simply because there is no reason to put it here, and in addition,
17576 # creating and moving files from /tmp can sometimes cause problems.
17577 # Create a temporary directory, and hook for its removal unless debugging.
17578 $debug ||
17580 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17581 trap '{ (exit 1); exit 1; }' 1 2 13 15
17584 # Create a (secure) tmp directory for tmp files.
17587 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17588 test -n "$tmp" && test -d "$tmp"
17589 } ||
17591 tmp=./confstat$$-$RANDOM
17592 (umask 077 && mkdir $tmp)
17593 } ||
17595 echo "$me: cannot create a temporary directory in ." >&2
17596 { (exit 1); exit 1; }
17599 _ACEOF
17601 cat >>$CONFIG_STATUS <<_ACEOF
17604 # CONFIG_FILES section.
17607 # No need to generate the scripts if there are no CONFIG_FILES.
17608 # This happens for instance when ./config.status config.h
17609 if test -n "\$CONFIG_FILES"; then
17610 # Protect against being on the right side of a sed subst in config.status.
17611 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17612 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17613 s,@SHELL@,$SHELL,;t t
17614 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17615 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17616 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17617 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17618 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17619 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17620 s,@exec_prefix@,$exec_prefix,;t t
17621 s,@prefix@,$prefix,;t t
17622 s,@program_transform_name@,$program_transform_name,;t t
17623 s,@bindir@,$bindir,;t t
17624 s,@sbindir@,$sbindir,;t t
17625 s,@libexecdir@,$libexecdir,;t t
17626 s,@datadir@,$datadir,;t t
17627 s,@sysconfdir@,$sysconfdir,;t t
17628 s,@sharedstatedir@,$sharedstatedir,;t t
17629 s,@localstatedir@,$localstatedir,;t t
17630 s,@libdir@,$libdir,;t t
17631 s,@includedir@,$includedir,;t t
17632 s,@oldincludedir@,$oldincludedir,;t t
17633 s,@infodir@,$infodir,;t t
17634 s,@mandir@,$mandir,;t t
17635 s,@build_alias@,$build_alias,;t t
17636 s,@host_alias@,$host_alias,;t t
17637 s,@target_alias@,$target_alias,;t t
17638 s,@DEFS@,$DEFS,;t t
17639 s,@ECHO_C@,$ECHO_C,;t t
17640 s,@ECHO_N@,$ECHO_N,;t t
17641 s,@ECHO_T@,$ECHO_T,;t t
17642 s,@LIBS@,$LIBS,;t t
17643 s,@build@,$build,;t t
17644 s,@build_cpu@,$build_cpu,;t t
17645 s,@build_vendor@,$build_vendor,;t t
17646 s,@build_os@,$build_os,;t t
17647 s,@build_libsubdir@,$build_libsubdir,;t t
17648 s,@build_subdir@,$build_subdir,;t t
17649 s,@host_subdir@,$host_subdir,;t t
17650 s,@target_subdir@,$target_subdir,;t t
17651 s,@multi_basedir@,$multi_basedir,;t t
17652 s,@host@,$host,;t t
17653 s,@host_cpu@,$host_cpu,;t t
17654 s,@host_vendor@,$host_vendor,;t t
17655 s,@host_os@,$host_os,;t t
17656 s,@target@,$target,;t t
17657 s,@target_cpu@,$target_cpu,;t t
17658 s,@target_vendor@,$target_vendor,;t t
17659 s,@target_os@,$target_os,;t t
17660 s,@target_noncanonical@,$target_noncanonical,;t t
17661 s,@LN_S@,$LN_S,;t t
17662 s,@mkinstalldirs@,$mkinstalldirs,;t t
17663 s,@CC@,$CC,;t t
17664 s,@ac_ct_CC@,$ac_ct_CC,;t t
17665 s,@EXEEXT@,$EXEEXT,;t t
17666 s,@OBJEXT@,$OBJEXT,;t t
17667 s,@CXX@,$CXX,;t t
17668 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17669 s,@CFLAGS@,$CFLAGS,;t t
17670 s,@CXXFLAGS@,$CXXFLAGS,;t t
17671 s,@LDFLAGS@,$LDFLAGS,;t t
17672 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17673 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17674 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17675 s,@CYGPATH_W@,$CYGPATH_W,;t t
17676 s,@PACKAGE@,$PACKAGE,;t t
17677 s,@VERSION@,$VERSION,;t t
17678 s,@ACLOCAL@,$ACLOCAL,;t t
17679 s,@AUTOCONF@,$AUTOCONF,;t t
17680 s,@AUTOMAKE@,$AUTOMAKE,;t t
17681 s,@AUTOHEADER@,$AUTOHEADER,;t t
17682 s,@MAKEINFO@,$MAKEINFO,;t t
17683 s,@install_sh@,$install_sh,;t t
17684 s,@STRIP@,$STRIP,;t t
17685 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17686 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17687 s,@mkdir_p@,$mkdir_p,;t t
17688 s,@AWK@,$AWK,;t t
17689 s,@SET_MAKE@,$SET_MAKE,;t t
17690 s,@am__leading_dot@,$am__leading_dot,;t t
17691 s,@AMTAR@,$AMTAR,;t t
17692 s,@am__tar@,$am__tar,;t t
17693 s,@am__untar@,$am__untar,;t t
17694 s,@DEPDIR@,$DEPDIR,;t t
17695 s,@am__include@,$am__include,;t t
17696 s,@am__quote@,$am__quote,;t t
17697 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17698 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17699 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17700 s,@CCDEPMODE@,$CCDEPMODE,;t t
17701 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17702 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17703 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17704 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17705 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17706 s,@AS@,$AS,;t t
17707 s,@ac_ct_AS@,$ac_ct_AS,;t t
17708 s,@LD@,$LD,;t t
17709 s,@ac_ct_LD@,$ac_ct_LD,;t t
17710 s,@AR@,$AR,;t t
17711 s,@ac_ct_AR@,$ac_ct_AR,;t t
17712 s,@RANLIB@,$RANLIB,;t t
17713 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17714 s,@JAR@,$JAR,;t t
17715 s,@ZIP@,$ZIP,;t t
17716 s,@UNZIP@,$UNZIP,;t t
17717 s,@BASH_JAR_TRUE@,$BASH_JAR_TRUE,;t t
17718 s,@BASH_JAR_FALSE@,$BASH_JAR_FALSE,;t t
17719 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17720 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17721 s,@MAINT@,$MAINT,;t t
17722 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
17723 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
17724 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
17725 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
17726 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
17727 s,@TOOLKIT@,$TOOLKIT,;t t
17728 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
17729 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
17730 s,@GCJH@,$GCJH,;t t
17731 s,@INCLTDL@,$INCLTDL,;t t
17732 s,@LIBLTDL@,$LIBLTDL,;t t
17733 s,@DIRLTDL@,$DIRLTDL,;t t
17734 s,@LIBTOOL@,$LIBTOOL,;t t
17735 s,@CXXCPP@,$CXXCPP,;t t
17736 s,@CPPFLAGS@,$CPPFLAGS,;t t
17737 s,@GCJ@,$GCJ,;t t
17738 s,@GCJFLAGS@,$GCJFLAGS,;t t
17739 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
17740 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
17741 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
17742 s,@subdirs@,$subdirs,;t t
17743 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
17744 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
17745 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
17746 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
17747 s,@JAVA_HOME@,$JAVA_HOME,;t t
17748 s,@INTERPRETER@,$INTERPRETER,;t t
17749 s,@LIBFFI@,$LIBFFI,;t t
17750 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
17751 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
17752 s,@CPP@,$CPP,;t t
17753 s,@EGREP@,$EGREP,;t t
17754 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
17755 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
17756 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
17757 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
17758 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
17759 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
17760 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
17761 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
17762 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
17763 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
17764 s,@X_CFLAGS@,$X_CFLAGS,;t t
17765 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17766 s,@X_LIBS@,$X_LIBS,;t t
17767 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17768 s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
17769 s,@GCLIBS@,$GCLIBS,;t t
17770 s,@GCINCS@,$GCINCS,;t t
17771 s,@GCDEPS@,$GCDEPS,;t t
17772 s,@GCSPEC@,$GCSPEC,;t t
17773 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
17774 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
17775 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
17776 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
17777 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
17778 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
17779 s,@THREADLIBS@,$THREADLIBS,;t t
17780 s,@THREADINCS@,$THREADINCS,;t t
17781 s,@THREADDEPS@,$THREADDEPS,;t t
17782 s,@THREADSPEC@,$THREADSPEC,;t t
17783 s,@THREADSTARTFILESPEC@,$THREADSTARTFILESPEC,;t t
17784 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
17785 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
17786 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
17787 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
17788 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
17789 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
17790 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
17791 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
17792 s,@USE_LIBGCJ_BC_TRUE@,$USE_LIBGCJ_BC_TRUE,;t t
17793 s,@USE_LIBGCJ_BC_FALSE@,$USE_LIBGCJ_BC_FALSE,;t t
17794 s,@LIBGCJ_SPEC@,$LIBGCJ_SPEC,;t t
17795 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
17796 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
17797 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
17798 s,@LIBICONV@,$LIBICONV,;t t
17799 s,@LTLIBICONV@,$LTLIBICONV,;t t
17800 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
17801 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
17802 s,@GTK_LIBS@,$GTK_LIBS,;t t
17803 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
17804 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
17805 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
17806 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
17807 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
17808 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
17809 s,@ZLIBS@,$ZLIBS,;t t
17810 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
17811 s,@ZINCS@,$ZINCS,;t t
17812 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
17813 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
17814 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
17815 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
17816 s,@IEEESPEC@,$IEEESPEC,;t t
17817 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
17818 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
17819 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
17820 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
17821 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
17822 s,@toolexecdir@,$toolexecdir,;t t
17823 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
17824 s,@toolexeclibdir@,$toolexeclibdir,;t t
17825 s,@dbexecdir@,$dbexecdir,;t t
17826 s,@GCJVERSION@,$GCJVERSION,;t t
17827 s,@gxx_include_dir@,$gxx_include_dir,;t t
17828 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
17829 s,@ALLOCA@,$ALLOCA,;t t
17830 s,@PERL@,$PERL,;t t
17831 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
17832 s,@LD_START_STATIC_SPEC@,$LD_START_STATIC_SPEC,;t t
17833 s,@LD_FINISH_STATIC_SPEC@,$LD_FINISH_STATIC_SPEC,;t t
17834 s,@here@,$here,;t t
17835 s,@LIBOBJS@,$LIBOBJS,;t t
17836 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17837 CEOF
17839 _ACEOF
17841 cat >>$CONFIG_STATUS <<\_ACEOF
17842 # Split the substitutions into bite-sized pieces for seds with
17843 # small command number limits, like on Digital OSF/1 and HP-UX.
17844 ac_max_sed_lines=48
17845 ac_sed_frag=1 # Number of current file.
17846 ac_beg=1 # First line for current file.
17847 ac_end=$ac_max_sed_lines # Line after last line for current file.
17848 ac_more_lines=:
17849 ac_sed_cmds=
17850 while $ac_more_lines; do
17851 if test $ac_beg -gt 1; then
17852 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17853 else
17854 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17856 if test ! -s $tmp/subs.frag; then
17857 ac_more_lines=false
17858 else
17859 # The purpose of the label and of the branching condition is to
17860 # speed up the sed processing (if there are no `@' at all, there
17861 # is no need to browse any of the substitutions).
17862 # These are the two extra sed commands mentioned above.
17863 (echo ':t
17864 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17865 if test -z "$ac_sed_cmds"; then
17866 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17867 else
17868 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17870 ac_sed_frag=`expr $ac_sed_frag + 1`
17871 ac_beg=$ac_end
17872 ac_end=`expr $ac_end + $ac_max_sed_lines`
17874 done
17875 if test -z "$ac_sed_cmds"; then
17876 ac_sed_cmds=cat
17878 fi # test -n "$CONFIG_FILES"
17880 _ACEOF
17881 cat >>$CONFIG_STATUS <<\_ACEOF
17882 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17883 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17884 case $ac_file in
17885 - | *:- | *:-:* ) # input from stdin
17886 cat >$tmp/stdin
17887 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17888 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17889 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17890 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17891 * ) ac_file_in=$ac_file.in ;;
17892 esac
17894 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17895 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17896 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17897 X"$ac_file" : 'X\(//\)[^/]' \| \
17898 X"$ac_file" : 'X\(//\)$' \| \
17899 X"$ac_file" : 'X\(/\)' \| \
17900 . : '\(.\)' 2>/dev/null ||
17901 echo X"$ac_file" |
17902 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17903 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17904 /^X\(\/\/\)$/{ s//\1/; q; }
17905 /^X\(\/\).*/{ s//\1/; q; }
17906 s/.*/./; q'`
17907 { if $as_mkdir_p; then
17908 mkdir -p "$ac_dir"
17909 else
17910 as_dir="$ac_dir"
17911 as_dirs=
17912 while test ! -d "$as_dir"; do
17913 as_dirs="$as_dir $as_dirs"
17914 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17915 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17916 X"$as_dir" : 'X\(//\)[^/]' \| \
17917 X"$as_dir" : 'X\(//\)$' \| \
17918 X"$as_dir" : 'X\(/\)' \| \
17919 . : '\(.\)' 2>/dev/null ||
17920 echo X"$as_dir" |
17921 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17922 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17923 /^X\(\/\/\)$/{ s//\1/; q; }
17924 /^X\(\/\).*/{ s//\1/; q; }
17925 s/.*/./; q'`
17926 done
17927 test ! -n "$as_dirs" || mkdir $as_dirs
17928 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17929 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17930 { (exit 1); exit 1; }; }; }
17932 ac_builddir=.
17934 if test "$ac_dir" != .; then
17935 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17936 # A "../" for each directory in $ac_dir_suffix.
17937 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17938 else
17939 ac_dir_suffix= ac_top_builddir=
17942 case $srcdir in
17943 .) # No --srcdir option. We are building in place.
17944 ac_srcdir=.
17945 if test -z "$ac_top_builddir"; then
17946 ac_top_srcdir=.
17947 else
17948 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17949 fi ;;
17950 [\\/]* | ?:[\\/]* ) # Absolute path.
17951 ac_srcdir=$srcdir$ac_dir_suffix;
17952 ac_top_srcdir=$srcdir ;;
17953 *) # Relative path.
17954 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17955 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17956 esac
17958 # Do not use `cd foo && pwd` to compute absolute paths, because
17959 # the directories may not exist.
17960 case `pwd` in
17961 .) ac_abs_builddir="$ac_dir";;
17963 case "$ac_dir" in
17964 .) ac_abs_builddir=`pwd`;;
17965 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17966 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17967 esac;;
17968 esac
17969 case $ac_abs_builddir in
17970 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17972 case ${ac_top_builddir}. in
17973 .) ac_abs_top_builddir=$ac_abs_builddir;;
17974 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17975 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17976 esac;;
17977 esac
17978 case $ac_abs_builddir in
17979 .) ac_abs_srcdir=$ac_srcdir;;
17981 case $ac_srcdir in
17982 .) ac_abs_srcdir=$ac_abs_builddir;;
17983 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17984 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17985 esac;;
17986 esac
17987 case $ac_abs_builddir in
17988 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17990 case $ac_top_srcdir in
17991 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17992 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17993 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17994 esac;;
17995 esac
17998 case $INSTALL in
17999 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18000 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18001 esac
18003 if test x"$ac_file" != x-; then
18004 { echo "$as_me:$LINENO: creating $ac_file" >&5
18005 echo "$as_me: creating $ac_file" >&6;}
18006 rm -f "$ac_file"
18008 # Let's still pretend it is `configure' which instantiates (i.e., don't
18009 # use $as_me), people would be surprised to read:
18010 # /* config.h. Generated by config.status. */
18011 if test x"$ac_file" = x-; then
18012 configure_input=
18013 else
18014 configure_input="$ac_file. "
18016 configure_input=$configure_input"Generated from `echo $ac_file_in |
18017 sed 's,.*/,,'` by configure."
18019 # First look for the input files in the build tree, otherwise in the
18020 # src tree.
18021 ac_file_inputs=`IFS=:
18022 for f in $ac_file_in; do
18023 case $f in
18024 -) echo $tmp/stdin ;;
18025 [\\/$]*)
18026 # Absolute (can't be DOS-style, as IFS=:)
18027 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18028 echo "$as_me: error: cannot find input file: $f" >&2;}
18029 { (exit 1); exit 1; }; }
18030 echo "$f";;
18031 *) # Relative
18032 if test -f "$f"; then
18033 # Build tree
18034 echo "$f"
18035 elif test -f "$srcdir/$f"; then
18036 # Source tree
18037 echo "$srcdir/$f"
18038 else
18039 # /dev/null tree
18040 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18041 echo "$as_me: error: cannot find input file: $f" >&2;}
18042 { (exit 1); exit 1; }; }
18043 fi;;
18044 esac
18045 done` || { (exit 1); exit 1; }
18046 _ACEOF
18047 cat >>$CONFIG_STATUS <<_ACEOF
18048 sed "$ac_vpsub
18049 $extrasub
18050 _ACEOF
18051 cat >>$CONFIG_STATUS <<\_ACEOF
18053 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18054 s,@configure_input@,$configure_input,;t t
18055 s,@srcdir@,$ac_srcdir,;t t
18056 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18057 s,@top_srcdir@,$ac_top_srcdir,;t t
18058 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18059 s,@builddir@,$ac_builddir,;t t
18060 s,@abs_builddir@,$ac_abs_builddir,;t t
18061 s,@top_builddir@,$ac_top_builddir,;t t
18062 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18063 s,@INSTALL@,$ac_INSTALL,;t t
18064 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18065 rm -f $tmp/stdin
18066 if test x"$ac_file" != x-; then
18067 mv $tmp/out $ac_file
18068 else
18069 cat $tmp/out
18070 rm -f $tmp/out
18073 # Run the commands associated with the file.
18074 case $ac_file in
18075 scripts/jar ) chmod +x scripts/jar ;;
18076 esac
18077 done
18078 _ACEOF
18079 cat >>$CONFIG_STATUS <<\_ACEOF
18082 # CONFIG_HEADER section.
18085 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18086 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18088 # ac_d sets the value in "#define NAME VALUE" lines.
18089 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18090 ac_dB='[ ].*$,\1#\2'
18091 ac_dC=' '
18092 ac_dD=',;t'
18093 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18094 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18095 ac_uB='$,\1#\2define\3'
18096 ac_uC=' '
18097 ac_uD=',;t'
18099 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18100 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18101 case $ac_file in
18102 - | *:- | *:-:* ) # input from stdin
18103 cat >$tmp/stdin
18104 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18105 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18106 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18107 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18108 * ) ac_file_in=$ac_file.in ;;
18109 esac
18111 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18112 echo "$as_me: creating $ac_file" >&6;}
18114 # First look for the input files in the build tree, otherwise in the
18115 # src tree.
18116 ac_file_inputs=`IFS=:
18117 for f in $ac_file_in; do
18118 case $f in
18119 -) echo $tmp/stdin ;;
18120 [\\/$]*)
18121 # Absolute (can't be DOS-style, as IFS=:)
18122 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18123 echo "$as_me: error: cannot find input file: $f" >&2;}
18124 { (exit 1); exit 1; }; }
18125 # Do quote $f, to prevent DOS paths from being IFS'd.
18126 echo "$f";;
18127 *) # Relative
18128 if test -f "$f"; then
18129 # Build tree
18130 echo "$f"
18131 elif test -f "$srcdir/$f"; then
18132 # Source tree
18133 echo "$srcdir/$f"
18134 else
18135 # /dev/null tree
18136 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18137 echo "$as_me: error: cannot find input file: $f" >&2;}
18138 { (exit 1); exit 1; }; }
18139 fi;;
18140 esac
18141 done` || { (exit 1); exit 1; }
18142 # Remove the trailing spaces.
18143 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18145 _ACEOF
18147 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18148 # `conftest.undefs', that substitutes the proper values into
18149 # config.h.in to produce config.h. The first handles `#define'
18150 # templates, and the second `#undef' templates.
18151 # And first: Protect against being on the right side of a sed subst in
18152 # config.status. Protect against being in an unquoted here document
18153 # in config.status.
18154 rm -f conftest.defines conftest.undefs
18155 # Using a here document instead of a string reduces the quoting nightmare.
18156 # Putting comments in sed scripts is not portable.
18158 # `end' is used to avoid that the second main sed command (meant for
18159 # 0-ary CPP macros) applies to n-ary macro definitions.
18160 # See the Autoconf documentation for `clear'.
18161 cat >confdef2sed.sed <<\_ACEOF
18162 s/[\\&,]/\\&/g
18163 s,[\\$`],\\&,g
18164 t clear
18165 : clear
18166 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18167 t end
18168 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18169 : end
18170 _ACEOF
18171 # If some macros were called several times there might be several times
18172 # the same #defines, which is useless. Nevertheless, we may not want to
18173 # sort them, since we want the *last* AC-DEFINE to be honored.
18174 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18175 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18176 rm -f confdef2sed.sed
18178 # This sed command replaces #undef with comments. This is necessary, for
18179 # example, in the case of _POSIX_SOURCE, which is predefined and required
18180 # on some systems where configure will not decide to define it.
18181 cat >>conftest.undefs <<\_ACEOF
18182 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18183 _ACEOF
18185 # Break up conftest.defines because some shells have a limit on the size
18186 # of here documents, and old seds have small limits too (100 cmds).
18187 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18188 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18189 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18190 echo ' :' >>$CONFIG_STATUS
18191 rm -f conftest.tail
18192 while grep . conftest.defines >/dev/null
18194 # Write a limited-size here document to $tmp/defines.sed.
18195 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18196 # Speed up: don't consider the non `#define' lines.
18197 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18198 # Work around the forget-to-reset-the-flag bug.
18199 echo 't clr' >>$CONFIG_STATUS
18200 echo ': clr' >>$CONFIG_STATUS
18201 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18202 echo 'CEOF
18203 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18204 rm -f $tmp/in
18205 mv $tmp/out $tmp/in
18206 ' >>$CONFIG_STATUS
18207 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18208 rm -f conftest.defines
18209 mv conftest.tail conftest.defines
18210 done
18211 rm -f conftest.defines
18212 echo ' fi # grep' >>$CONFIG_STATUS
18213 echo >>$CONFIG_STATUS
18215 # Break up conftest.undefs because some shells have a limit on the size
18216 # of here documents, and old seds have small limits too (100 cmds).
18217 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18218 rm -f conftest.tail
18219 while grep . conftest.undefs >/dev/null
18221 # Write a limited-size here document to $tmp/undefs.sed.
18222 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18223 # Speed up: don't consider the non `#undef'
18224 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18225 # Work around the forget-to-reset-the-flag bug.
18226 echo 't clr' >>$CONFIG_STATUS
18227 echo ': clr' >>$CONFIG_STATUS
18228 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18229 echo 'CEOF
18230 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18231 rm -f $tmp/in
18232 mv $tmp/out $tmp/in
18233 ' >>$CONFIG_STATUS
18234 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18235 rm -f conftest.undefs
18236 mv conftest.tail conftest.undefs
18237 done
18238 rm -f conftest.undefs
18240 cat >>$CONFIG_STATUS <<\_ACEOF
18241 # Let's still pretend it is `configure' which instantiates (i.e., don't
18242 # use $as_me), people would be surprised to read:
18243 # /* config.h. Generated by config.status. */
18244 if test x"$ac_file" = x-; then
18245 echo "/* Generated by configure. */" >$tmp/config.h
18246 else
18247 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18249 cat $tmp/in >>$tmp/config.h
18250 rm -f $tmp/in
18251 if test x"$ac_file" != x-; then
18252 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18253 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18254 echo "$as_me: $ac_file is unchanged" >&6;}
18255 else
18256 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18257 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18258 X"$ac_file" : 'X\(//\)[^/]' \| \
18259 X"$ac_file" : 'X\(//\)$' \| \
18260 X"$ac_file" : 'X\(/\)' \| \
18261 . : '\(.\)' 2>/dev/null ||
18262 echo X"$ac_file" |
18263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18264 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18265 /^X\(\/\/\)$/{ s//\1/; q; }
18266 /^X\(\/\).*/{ s//\1/; q; }
18267 s/.*/./; q'`
18268 { if $as_mkdir_p; then
18269 mkdir -p "$ac_dir"
18270 else
18271 as_dir="$ac_dir"
18272 as_dirs=
18273 while test ! -d "$as_dir"; do
18274 as_dirs="$as_dir $as_dirs"
18275 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18276 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18277 X"$as_dir" : 'X\(//\)[^/]' \| \
18278 X"$as_dir" : 'X\(//\)$' \| \
18279 X"$as_dir" : 'X\(/\)' \| \
18280 . : '\(.\)' 2>/dev/null ||
18281 echo X"$as_dir" |
18282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18283 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18284 /^X\(\/\/\)$/{ s//\1/; q; }
18285 /^X\(\/\).*/{ s//\1/; q; }
18286 s/.*/./; q'`
18287 done
18288 test ! -n "$as_dirs" || mkdir $as_dirs
18289 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18290 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18291 { (exit 1); exit 1; }; }; }
18293 rm -f $ac_file
18294 mv $tmp/config.h $ac_file
18296 else
18297 cat $tmp/config.h
18298 rm -f $tmp/config.h
18300 # Compute $ac_file's index in $config_headers.
18301 _am_stamp_count=1
18302 for _am_header in $config_headers :; do
18303 case $_am_header in
18304 $ac_file | $ac_file:* )
18305 break ;;
18307 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18308 esac
18309 done
18310 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
18311 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18312 X$ac_file : 'X\(//\)[^/]' \| \
18313 X$ac_file : 'X\(//\)$' \| \
18314 X$ac_file : 'X\(/\)' \| \
18315 . : '\(.\)' 2>/dev/null ||
18316 echo X$ac_file |
18317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18318 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18319 /^X\(\/\/\)$/{ s//\1/; q; }
18320 /^X\(\/\).*/{ s//\1/; q; }
18321 s/.*/./; q'`/stamp-h$_am_stamp_count
18322 done
18323 _ACEOF
18324 cat >>$CONFIG_STATUS <<\_ACEOF
18327 # CONFIG_LINKS section.
18330 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18331 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18332 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18334 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18335 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18337 if test ! -r $srcdir/$ac_source; then
18338 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18339 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18340 { (exit 1); exit 1; }; }
18342 rm -f $ac_dest
18344 # Make relative symlinks.
18345 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18346 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18347 X"$ac_dest" : 'X\(//\)[^/]' \| \
18348 X"$ac_dest" : 'X\(//\)$' \| \
18349 X"$ac_dest" : 'X\(/\)' \| \
18350 . : '\(.\)' 2>/dev/null ||
18351 echo X"$ac_dest" |
18352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18353 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18354 /^X\(\/\/\)$/{ s//\1/; q; }
18355 /^X\(\/\).*/{ s//\1/; q; }
18356 s/.*/./; q'`
18357 { if $as_mkdir_p; then
18358 mkdir -p "$ac_dest_dir"
18359 else
18360 as_dir="$ac_dest_dir"
18361 as_dirs=
18362 while test ! -d "$as_dir"; do
18363 as_dirs="$as_dir $as_dirs"
18364 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18365 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18366 X"$as_dir" : 'X\(//\)[^/]' \| \
18367 X"$as_dir" : 'X\(//\)$' \| \
18368 X"$as_dir" : 'X\(/\)' \| \
18369 . : '\(.\)' 2>/dev/null ||
18370 echo X"$as_dir" |
18371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18372 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18373 /^X\(\/\/\)$/{ s//\1/; q; }
18374 /^X\(\/\).*/{ s//\1/; q; }
18375 s/.*/./; q'`
18376 done
18377 test ! -n "$as_dirs" || mkdir $as_dirs
18378 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
18379 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
18380 { (exit 1); exit 1; }; }; }
18382 ac_builddir=.
18384 if test "$ac_dest_dir" != .; then
18385 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18386 # A "../" for each directory in $ac_dir_suffix.
18387 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18388 else
18389 ac_dir_suffix= ac_top_builddir=
18392 case $srcdir in
18393 .) # No --srcdir option. We are building in place.
18394 ac_srcdir=.
18395 if test -z "$ac_top_builddir"; then
18396 ac_top_srcdir=.
18397 else
18398 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18399 fi ;;
18400 [\\/]* | ?:[\\/]* ) # Absolute path.
18401 ac_srcdir=$srcdir$ac_dir_suffix;
18402 ac_top_srcdir=$srcdir ;;
18403 *) # Relative path.
18404 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18405 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18406 esac
18408 # Do not use `cd foo && pwd` to compute absolute paths, because
18409 # the directories may not exist.
18410 case `pwd` in
18411 .) ac_abs_builddir="$ac_dest_dir";;
18413 case "$ac_dest_dir" in
18414 .) ac_abs_builddir=`pwd`;;
18415 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
18416 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
18417 esac;;
18418 esac
18419 case $ac_abs_builddir in
18420 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18422 case ${ac_top_builddir}. in
18423 .) ac_abs_top_builddir=$ac_abs_builddir;;
18424 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18425 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18426 esac;;
18427 esac
18428 case $ac_abs_builddir in
18429 .) ac_abs_srcdir=$ac_srcdir;;
18431 case $ac_srcdir in
18432 .) ac_abs_srcdir=$ac_abs_builddir;;
18433 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18434 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18435 esac;;
18436 esac
18437 case $ac_abs_builddir in
18438 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18440 case $ac_top_srcdir in
18441 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18442 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18443 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18444 esac;;
18445 esac
18448 case $srcdir in
18449 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18450 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18451 esac
18453 # Try a symlink, then a hard link, then a copy.
18454 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18455 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
18456 cp -p $srcdir/$ac_source $ac_dest ||
18457 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
18458 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
18459 { (exit 1); exit 1; }; }
18460 done
18461 _ACEOF
18462 cat >>$CONFIG_STATUS <<\_ACEOF
18465 # CONFIG_COMMANDS section.
18467 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18468 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18469 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18470 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18471 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18472 X"$ac_dest" : 'X\(//\)[^/]' \| \
18473 X"$ac_dest" : 'X\(//\)$' \| \
18474 X"$ac_dest" : 'X\(/\)' \| \
18475 . : '\(.\)' 2>/dev/null ||
18476 echo X"$ac_dest" |
18477 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18478 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18479 /^X\(\/\/\)$/{ s//\1/; q; }
18480 /^X\(\/\).*/{ s//\1/; q; }
18481 s/.*/./; q'`
18482 { if $as_mkdir_p; then
18483 mkdir -p "$ac_dir"
18484 else
18485 as_dir="$ac_dir"
18486 as_dirs=
18487 while test ! -d "$as_dir"; do
18488 as_dirs="$as_dir $as_dirs"
18489 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18490 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18491 X"$as_dir" : 'X\(//\)[^/]' \| \
18492 X"$as_dir" : 'X\(//\)$' \| \
18493 X"$as_dir" : 'X\(/\)' \| \
18494 . : '\(.\)' 2>/dev/null ||
18495 echo X"$as_dir" |
18496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18497 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18498 /^X\(\/\/\)$/{ s//\1/; q; }
18499 /^X\(\/\).*/{ s//\1/; q; }
18500 s/.*/./; q'`
18501 done
18502 test ! -n "$as_dirs" || mkdir $as_dirs
18503 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18504 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18505 { (exit 1); exit 1; }; }; }
18507 ac_builddir=.
18509 if test "$ac_dir" != .; then
18510 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18511 # A "../" for each directory in $ac_dir_suffix.
18512 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18513 else
18514 ac_dir_suffix= ac_top_builddir=
18517 case $srcdir in
18518 .) # No --srcdir option. We are building in place.
18519 ac_srcdir=.
18520 if test -z "$ac_top_builddir"; then
18521 ac_top_srcdir=.
18522 else
18523 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18524 fi ;;
18525 [\\/]* | ?:[\\/]* ) # Absolute path.
18526 ac_srcdir=$srcdir$ac_dir_suffix;
18527 ac_top_srcdir=$srcdir ;;
18528 *) # Relative path.
18529 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18530 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18531 esac
18533 # Do not use `cd foo && pwd` to compute absolute paths, because
18534 # the directories may not exist.
18535 case `pwd` in
18536 .) ac_abs_builddir="$ac_dir";;
18538 case "$ac_dir" in
18539 .) ac_abs_builddir=`pwd`;;
18540 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18541 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18542 esac;;
18543 esac
18544 case $ac_abs_builddir in
18545 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18547 case ${ac_top_builddir}. in
18548 .) ac_abs_top_builddir=$ac_abs_builddir;;
18549 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18550 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18551 esac;;
18552 esac
18553 case $ac_abs_builddir in
18554 .) ac_abs_srcdir=$ac_srcdir;;
18556 case $ac_srcdir in
18557 .) ac_abs_srcdir=$ac_abs_builddir;;
18558 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18559 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18560 esac;;
18561 esac
18562 case $ac_abs_builddir in
18563 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18565 case $ac_top_srcdir in
18566 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18567 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18568 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18569 esac;;
18570 esac
18573 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18574 echo "$as_me: executing $ac_dest commands" >&6;}
18575 case $ac_dest in
18576 default-1 )
18577 # Only add multilib support code if we just rebuilt the top-level
18578 # Makefile.
18579 case " $CONFIG_FILES " in
18580 *" Makefile "*)
18581 ac_file=Makefile . ${multi_basedir}/config-ml.in
18583 esac ;;
18584 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18585 # Strip MF so we end up with the name of the file.
18586 mf=`echo "$mf" | sed -e 's/:.*$//'`
18587 # Check whether this is an Automake generated Makefile or not.
18588 # We used to match only the files named `Makefile.in', but
18589 # some people rename them; so instead we look at the file content.
18590 # Grep'ing the first line is not enough: some people post-process
18591 # each Makefile.in and add a new line on top of each file to say so.
18592 # So let's grep whole file.
18593 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18594 dirpart=`(dirname "$mf") 2>/dev/null ||
18595 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18596 X"$mf" : 'X\(//\)[^/]' \| \
18597 X"$mf" : 'X\(//\)$' \| \
18598 X"$mf" : 'X\(/\)' \| \
18599 . : '\(.\)' 2>/dev/null ||
18600 echo X"$mf" |
18601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18602 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18603 /^X\(\/\/\)$/{ s//\1/; q; }
18604 /^X\(\/\).*/{ s//\1/; q; }
18605 s/.*/./; q'`
18606 else
18607 continue
18609 # Extract the definition of DEPDIR, am__include, and am__quote
18610 # from the Makefile without running `make'.
18611 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18612 test -z "$DEPDIR" && continue
18613 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18614 test -z "am__include" && continue
18615 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18616 # When using ansi2knr, U may be empty or an underscore; expand it
18617 U=`sed -n 's/^U = //p' < "$mf"`
18618 # Find all dependency output files, they are included files with
18619 # $(DEPDIR) in their names. We invoke sed twice because it is the
18620 # simplest approach to changing $(DEPDIR) to its actual value in the
18621 # expansion.
18622 for file in `sed -n "
18623 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18624 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18625 # Make sure the directory exists.
18626 test -f "$dirpart/$file" && continue
18627 fdir=`(dirname "$file") 2>/dev/null ||
18628 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18629 X"$file" : 'X\(//\)[^/]' \| \
18630 X"$file" : 'X\(//\)$' \| \
18631 X"$file" : 'X\(/\)' \| \
18632 . : '\(.\)' 2>/dev/null ||
18633 echo X"$file" |
18634 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18635 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18636 /^X\(\/\/\)$/{ s//\1/; q; }
18637 /^X\(\/\).*/{ s//\1/; q; }
18638 s/.*/./; q'`
18639 { if $as_mkdir_p; then
18640 mkdir -p $dirpart/$fdir
18641 else
18642 as_dir=$dirpart/$fdir
18643 as_dirs=
18644 while test ! -d "$as_dir"; do
18645 as_dirs="$as_dir $as_dirs"
18646 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18647 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18648 X"$as_dir" : 'X\(//\)[^/]' \| \
18649 X"$as_dir" : 'X\(//\)$' \| \
18650 X"$as_dir" : 'X\(/\)' \| \
18651 . : '\(.\)' 2>/dev/null ||
18652 echo X"$as_dir" |
18653 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18654 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18655 /^X\(\/\/\)$/{ s//\1/; q; }
18656 /^X\(\/\).*/{ s//\1/; q; }
18657 s/.*/./; q'`
18658 done
18659 test ! -n "$as_dirs" || mkdir $as_dirs
18660 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18661 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18662 { (exit 1); exit 1; }; }; }
18664 # echo "creating $dirpart/$file"
18665 echo '# dummy' > "$dirpart/$file"
18666 done
18667 done
18669 default ) # Only add multilib support code if we just rebuilt top-level Makefile.
18670 case " $CONFIG_FILES " in
18671 *" Makefile "*)
18672 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
18673 ac_file=Makefile . ${multi_basedir}/./libjava/../config-ml.in
18675 esac
18676 for ac_multi_file in $CONFIG_FILES; do
18677 case $ac_multi_file in
18678 */Makefile)
18679 grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;;
18680 esac
18681 done
18683 esac
18684 done
18685 _ACEOF
18687 cat >>$CONFIG_STATUS <<\_ACEOF
18689 { (exit 0); exit 0; }
18690 _ACEOF
18691 chmod +x $CONFIG_STATUS
18692 ac_clean_files=$ac_clean_files_save
18695 # configure is writing to config.log, and then calls config.status.
18696 # config.status does its own redirection, appending to config.log.
18697 # Unfortunately, on DOS this fails, as config.log is still kept open
18698 # by configure, so config.status won't be able to write to it; its
18699 # output is simply discarded. So we exec the FD to /dev/null,
18700 # effectively closing config.log, so it can be properly (re)opened and
18701 # appended to by config.status. When coming back to configure, we
18702 # need to make the FD available again.
18703 if test "$no_create" != yes; then
18704 ac_cs_success=:
18705 ac_config_status_args=
18706 test "$silent" = yes &&
18707 ac_config_status_args="$ac_config_status_args --quiet"
18708 exec 5>/dev/null
18709 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18710 exec 5>>config.log
18711 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18712 # would make configure fail if this is the last instruction.
18713 $ac_cs_success || { (exit 1); exit 1; }
18717 # CONFIG_SUBDIRS section.
18719 if test "$no_recursion" != yes; then
18721 # Remove --cache-file and --srcdir arguments so they do not pile up.
18722 ac_sub_configure_args=
18723 ac_prev=
18724 for ac_arg in $ac_configure_args; do
18725 if test -n "$ac_prev"; then
18726 ac_prev=
18727 continue
18729 case $ac_arg in
18730 -cache-file | --cache-file | --cache-fil | --cache-fi \
18731 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18732 ac_prev=cache_file ;;
18733 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18734 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18735 | --c=*)
18737 --config-cache | -C)
18739 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18740 ac_prev=srcdir ;;
18741 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18743 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18744 ac_prev=prefix ;;
18745 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18747 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18748 esac
18749 done
18751 # Always prepend --prefix to ensure using the same prefix
18752 # in subdir configurations.
18753 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
18755 ac_popdir=`pwd`
18756 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18758 # Do not complain, so a configure script can configure whichever
18759 # parts of a large source tree are present.
18760 test -d $srcdir/$ac_dir || continue
18762 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
18763 echo "$as_me: configuring in $ac_dir" >&6;}
18764 { if $as_mkdir_p; then
18765 mkdir -p "$ac_dir"
18766 else
18767 as_dir="$ac_dir"
18768 as_dirs=
18769 while test ! -d "$as_dir"; do
18770 as_dirs="$as_dir $as_dirs"
18771 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18772 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18773 X"$as_dir" : 'X\(//\)[^/]' \| \
18774 X"$as_dir" : 'X\(//\)$' \| \
18775 X"$as_dir" : 'X\(/\)' \| \
18776 . : '\(.\)' 2>/dev/null ||
18777 echo X"$as_dir" |
18778 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18779 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18780 /^X\(\/\/\)$/{ s//\1/; q; }
18781 /^X\(\/\).*/{ s//\1/; q; }
18782 s/.*/./; q'`
18783 done
18784 test ! -n "$as_dirs" || mkdir $as_dirs
18785 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18786 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18787 { (exit 1); exit 1; }; }; }
18789 ac_builddir=.
18791 if test "$ac_dir" != .; then
18792 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18793 # A "../" for each directory in $ac_dir_suffix.
18794 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18795 else
18796 ac_dir_suffix= ac_top_builddir=
18799 case $srcdir in
18800 .) # No --srcdir option. We are building in place.
18801 ac_srcdir=.
18802 if test -z "$ac_top_builddir"; then
18803 ac_top_srcdir=.
18804 else
18805 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18806 fi ;;
18807 [\\/]* | ?:[\\/]* ) # Absolute path.
18808 ac_srcdir=$srcdir$ac_dir_suffix;
18809 ac_top_srcdir=$srcdir ;;
18810 *) # Relative path.
18811 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18812 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18813 esac
18815 # Do not use `cd foo && pwd` to compute absolute paths, because
18816 # the directories may not exist.
18817 case `pwd` in
18818 .) ac_abs_builddir="$ac_dir";;
18820 case "$ac_dir" in
18821 .) ac_abs_builddir=`pwd`;;
18822 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18823 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18824 esac;;
18825 esac
18826 case $ac_abs_builddir in
18827 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18829 case ${ac_top_builddir}. in
18830 .) ac_abs_top_builddir=$ac_abs_builddir;;
18831 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18832 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18833 esac;;
18834 esac
18835 case $ac_abs_builddir in
18836 .) ac_abs_srcdir=$ac_srcdir;;
18838 case $ac_srcdir in
18839 .) ac_abs_srcdir=$ac_abs_builddir;;
18840 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18841 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18842 esac;;
18843 esac
18844 case $ac_abs_builddir in
18845 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18847 case $ac_top_srcdir in
18848 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18849 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18850 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18851 esac;;
18852 esac
18855 cd $ac_dir
18857 # Check for guested configure; otherwise get Cygnus style configure.
18858 if test -f $ac_srcdir/configure.gnu; then
18859 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
18860 elif test -f $ac_srcdir/configure; then
18861 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
18862 elif test -f $ac_srcdir/configure.in; then
18863 ac_sub_configure=$ac_configure
18864 else
18865 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
18866 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18867 ac_sub_configure=
18870 # The recursion is here.
18871 if test -n "$ac_sub_configure"; then
18872 # Make the cache file name correct relative to the subdirectory.
18873 case $cache_file in
18874 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18875 *) # Relative path.
18876 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
18877 esac
18879 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
18880 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18881 # The eval makes quoting arguments work.
18882 eval $ac_sub_configure $ac_sub_configure_args \
18883 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
18884 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
18885 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
18886 { (exit 1); exit 1; }; }
18889 cd $ac_popdir
18890 done