* invoke.texi (mstringop-strategy): Add missing "byte_loop" value.
[official-gcc.git] / libjava / configure
blob4ee87df76f80e4cf9b804b12d1fd6c07daecb4c1
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 libgcj_basedir host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical LN_S mkinstalldirs CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LDFLAGS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE AS ac_ct_AS 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-version-specific-runtime-libs
853 specify that runtime libraries should be installed
854 in a compiler-specific directory
855 --enable-multilib build many library versions (default)
856 --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 # When building with srcdir == objdir, links to the source files will
1481 # be created in directories within the target_subdir. We have to
1482 # adjust toplevel_srcdir accordingly, so that configure finds
1483 # install-sh and other auxiliary files that live in the top-level
1484 # source directory.
1485 if test "${srcdir}" = "."; then
1486 if test -z "${with_target_subdir}"; then
1487 toprel=".."
1488 else
1489 if test "${with_target_subdir}" != "."; then
1490 toprel="${with_multisrctop}../.."
1491 else
1492 toprel="${with_multisrctop}.."
1495 else
1496 toprel=".."
1499 libgcj_basedir=$srcdir/$toprel/./libjava
1502 echo "$as_me:$LINENO: checking host system type" >&5
1503 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1504 if test "${ac_cv_host+set}" = set; then
1505 echo $ECHO_N "(cached) $ECHO_C" >&6
1506 else
1507 ac_cv_host_alias=$host_alias
1508 test -z "$ac_cv_host_alias" &&
1509 ac_cv_host_alias=$ac_cv_build_alias
1510 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1511 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1512 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1513 { (exit 1); exit 1; }; }
1516 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1517 echo "${ECHO_T}$ac_cv_host" >&6
1518 host=$ac_cv_host
1519 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1520 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1521 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1524 echo "$as_me:$LINENO: checking target system type" >&5
1525 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1526 if test "${ac_cv_target+set}" = set; then
1527 echo $ECHO_N "(cached) $ECHO_C" >&6
1528 else
1529 ac_cv_target_alias=$target_alias
1530 test "x$ac_cv_target_alias" = "x" &&
1531 ac_cv_target_alias=$ac_cv_host_alias
1532 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1533 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1534 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1535 { (exit 1); exit 1; }; }
1538 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1539 echo "${ECHO_T}$ac_cv_target" >&6
1540 target=$ac_cv_target
1541 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1542 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1543 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1546 # The aliases save the names the user supplied, while $host etc.
1547 # will get canonicalized.
1548 test -n "$target_alias" &&
1549 test "$program_prefix$program_suffix$program_transform_name" = \
1550 NONENONEs,x,x, &&
1551 program_prefix=${target_alias}-
1552 case ${build_alias} in
1553 "") build_noncanonical=${build} ;;
1554 *) build_noncanonical=${build_alias} ;;
1555 esac
1557 case ${target_alias} in
1558 "") target_noncanonical=${host_noncanonical} ;;
1559 *) target_noncanonical=${target_alias} ;;
1560 esac
1565 # This works around the fact that libtool configuration may change LD
1566 # for this particular configuration, but some shells, instead of
1567 # keeping the changes in LD private, export them just because LD is
1568 # exported.
1569 ORIGINAL_LD_FOR_MULTILIBS=$LD
1571 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1572 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1573 LN_S=$as_ln_s
1574 if test "$LN_S" = "ln -s"; then
1575 echo "$as_me:$LINENO: result: yes" >&5
1576 echo "${ECHO_T}yes" >&6
1577 else
1578 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1579 echo "${ECHO_T}no, using $LN_S" >&6
1583 # This works around an automake problem.
1584 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1588 # Check whether --with-cross-host or --without-cross-host was given.
1589 if test "${with_cross_host+set}" = set; then
1590 withval="$with_cross_host"
1595 # Check whether --with-newlib or --without-newlib was given.
1596 if test "${with_newlib+set}" = set; then
1597 withval="$with_newlib"
1601 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1602 if test "${enable_version_specific_runtime_libs+set}" = set; then
1603 enableval="$enable_version_specific_runtime_libs"
1604 case "$enableval" in
1605 yes) version_specific_libs=yes ;;
1606 no) version_specific_libs=no ;;
1607 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1608 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1609 { (exit 1); exit 1; }; };;
1610 esac
1611 else
1612 version_specific_libs=no
1616 # Default to --enable-multilib
1617 # Check whether --enable-multilib or --disable-multilib was given.
1618 if test "${enable_multilib+set}" = set; then
1619 enableval="$enable_multilib"
1620 case "${enableval}" in
1621 yes) multilib=yes ;;
1622 no) multilib=no ;;
1623 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1624 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1625 { (exit 1); exit 1; }; } ;;
1626 esac
1627 else
1628 multilib=yes
1630 # Check whether --enable-plugin or --disable-plugin was given.
1631 if test "${enable_plugin+set}" = set; then
1632 enableval="$enable_plugin"
1633 case "$enableval" in
1634 yes) plugin_enabled=yes ;;
1635 no) plugin_enabled=no ;;
1636 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable plugin" >&5
1637 echo "$as_me: error: Unknown argument to enable/disable plugin" >&2;}
1638 { (exit 1); exit 1; }; };;
1639 esac
1640 else
1641 plugin_enabled=no
1645 # Check whether --enable-gconf-peer or --disable-gconf-peer was given.
1646 if test "${enable_gconf_peer+set}" = set; then
1647 enableval="$enable_gconf_peer"
1648 case "$enableval" in
1649 yes) gconf_enabled=yes ;;
1650 no) gconf_enabled=no ;;
1651 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable gconf-peer" >&5
1652 echo "$as_me: error: Unknown argument to enable/disable gconf-peer" >&2;}
1653 { (exit 1); exit 1; }; };;
1654 esac
1655 else
1656 gconf_enabled=no
1660 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1663 # (1) We use an abnormal CXX (without library references), so we
1664 # must cache it under a different name.
1665 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1666 # the non-multilib-adjusted value will be used in multilibs.
1667 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1668 # (4) As another side effect, automake doesn't automatically include them
1669 # in Makefile.in.
1670 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1671 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1672 # used in later tests. This may not be necessary in libjava; I don't know.
1676 save_CXXFLAGS="$CXXFLAGS"
1677 CXXFLAGS="$CXXFLAGS -fno-builtin"
1678 ac_ext=c
1679 ac_cpp='$CPP $CPPFLAGS'
1680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1683 if test -n "$ac_tool_prefix"; then
1684 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1685 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1686 echo "$as_me:$LINENO: checking for $ac_word" >&5
1687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1688 if test "${ac_cv_prog_CC+set}" = set; then
1689 echo $ECHO_N "(cached) $ECHO_C" >&6
1690 else
1691 if test -n "$CC"; then
1692 ac_cv_prog_CC="$CC" # Let the user override the test.
1693 else
1694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1695 for as_dir in $PATH
1697 IFS=$as_save_IFS
1698 test -z "$as_dir" && as_dir=.
1699 for ac_exec_ext in '' $ac_executable_extensions; do
1700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1701 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1703 break 2
1705 done
1706 done
1710 CC=$ac_cv_prog_CC
1711 if test -n "$CC"; then
1712 echo "$as_me:$LINENO: result: $CC" >&5
1713 echo "${ECHO_T}$CC" >&6
1714 else
1715 echo "$as_me:$LINENO: result: no" >&5
1716 echo "${ECHO_T}no" >&6
1720 if test -z "$ac_cv_prog_CC"; then
1721 ac_ct_CC=$CC
1722 # Extract the first word of "gcc", so it can be a program name with args.
1723 set dummy gcc; ac_word=$2
1724 echo "$as_me:$LINENO: checking for $ac_word" >&5
1725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1726 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1727 echo $ECHO_N "(cached) $ECHO_C" >&6
1728 else
1729 if test -n "$ac_ct_CC"; then
1730 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1731 else
1732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1733 for as_dir in $PATH
1735 IFS=$as_save_IFS
1736 test -z "$as_dir" && as_dir=.
1737 for ac_exec_ext in '' $ac_executable_extensions; do
1738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1739 ac_cv_prog_ac_ct_CC="gcc"
1740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1741 break 2
1743 done
1744 done
1748 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1749 if test -n "$ac_ct_CC"; then
1750 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1751 echo "${ECHO_T}$ac_ct_CC" >&6
1752 else
1753 echo "$as_me:$LINENO: result: no" >&5
1754 echo "${ECHO_T}no" >&6
1757 CC=$ac_ct_CC
1758 else
1759 CC="$ac_cv_prog_CC"
1762 if test -z "$CC"; then
1763 if test -n "$ac_tool_prefix"; then
1764 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1765 set dummy ${ac_tool_prefix}cc; ac_word=$2
1766 echo "$as_me:$LINENO: checking for $ac_word" >&5
1767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1768 if test "${ac_cv_prog_CC+set}" = set; then
1769 echo $ECHO_N "(cached) $ECHO_C" >&6
1770 else
1771 if test -n "$CC"; then
1772 ac_cv_prog_CC="$CC" # Let the user override the test.
1773 else
1774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1775 for as_dir in $PATH
1777 IFS=$as_save_IFS
1778 test -z "$as_dir" && as_dir=.
1779 for ac_exec_ext in '' $ac_executable_extensions; do
1780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1781 ac_cv_prog_CC="${ac_tool_prefix}cc"
1782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1783 break 2
1785 done
1786 done
1790 CC=$ac_cv_prog_CC
1791 if test -n "$CC"; then
1792 echo "$as_me:$LINENO: result: $CC" >&5
1793 echo "${ECHO_T}$CC" >&6
1794 else
1795 echo "$as_me:$LINENO: result: no" >&5
1796 echo "${ECHO_T}no" >&6
1800 if test -z "$ac_cv_prog_CC"; then
1801 ac_ct_CC=$CC
1802 # Extract the first word of "cc", so it can be a program name with args.
1803 set dummy cc; ac_word=$2
1804 echo "$as_me:$LINENO: checking for $ac_word" >&5
1805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1806 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1807 echo $ECHO_N "(cached) $ECHO_C" >&6
1808 else
1809 if test -n "$ac_ct_CC"; then
1810 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1811 else
1812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1813 for as_dir in $PATH
1815 IFS=$as_save_IFS
1816 test -z "$as_dir" && as_dir=.
1817 for ac_exec_ext in '' $ac_executable_extensions; do
1818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1819 ac_cv_prog_ac_ct_CC="cc"
1820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1821 break 2
1823 done
1824 done
1828 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1829 if test -n "$ac_ct_CC"; then
1830 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1831 echo "${ECHO_T}$ac_ct_CC" >&6
1832 else
1833 echo "$as_me:$LINENO: result: no" >&5
1834 echo "${ECHO_T}no" >&6
1837 CC=$ac_ct_CC
1838 else
1839 CC="$ac_cv_prog_CC"
1843 if test -z "$CC"; then
1844 # Extract the first word of "cc", so it can be a program name with args.
1845 set dummy cc; ac_word=$2
1846 echo "$as_me:$LINENO: checking for $ac_word" >&5
1847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1848 if test "${ac_cv_prog_CC+set}" = set; then
1849 echo $ECHO_N "(cached) $ECHO_C" >&6
1850 else
1851 if test -n "$CC"; then
1852 ac_cv_prog_CC="$CC" # Let the user override the test.
1853 else
1854 ac_prog_rejected=no
1855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1856 for as_dir in $PATH
1858 IFS=$as_save_IFS
1859 test -z "$as_dir" && as_dir=.
1860 for ac_exec_ext in '' $ac_executable_extensions; do
1861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1862 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1863 ac_prog_rejected=yes
1864 continue
1866 ac_cv_prog_CC="cc"
1867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1868 break 2
1870 done
1871 done
1873 if test $ac_prog_rejected = yes; then
1874 # We found a bogon in the path, so make sure we never use it.
1875 set dummy $ac_cv_prog_CC
1876 shift
1877 if test $# != 0; then
1878 # We chose a different compiler from the bogus one.
1879 # However, it has the same basename, so the bogon will be chosen
1880 # first if we set CC to just the basename; use the full file name.
1881 shift
1882 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1887 CC=$ac_cv_prog_CC
1888 if test -n "$CC"; then
1889 echo "$as_me:$LINENO: result: $CC" >&5
1890 echo "${ECHO_T}$CC" >&6
1891 else
1892 echo "$as_me:$LINENO: result: no" >&5
1893 echo "${ECHO_T}no" >&6
1897 if test -z "$CC"; then
1898 if test -n "$ac_tool_prefix"; then
1899 for ac_prog in cl
1901 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1902 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1903 echo "$as_me:$LINENO: checking for $ac_word" >&5
1904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1905 if test "${ac_cv_prog_CC+set}" = set; then
1906 echo $ECHO_N "(cached) $ECHO_C" >&6
1907 else
1908 if test -n "$CC"; then
1909 ac_cv_prog_CC="$CC" # Let the user override the test.
1910 else
1911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1912 for as_dir in $PATH
1914 IFS=$as_save_IFS
1915 test -z "$as_dir" && as_dir=.
1916 for ac_exec_ext in '' $ac_executable_extensions; do
1917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1918 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1920 break 2
1922 done
1923 done
1927 CC=$ac_cv_prog_CC
1928 if test -n "$CC"; then
1929 echo "$as_me:$LINENO: result: $CC" >&5
1930 echo "${ECHO_T}$CC" >&6
1931 else
1932 echo "$as_me:$LINENO: result: no" >&5
1933 echo "${ECHO_T}no" >&6
1936 test -n "$CC" && break
1937 done
1939 if test -z "$CC"; then
1940 ac_ct_CC=$CC
1941 for ac_prog in cl
1943 # Extract the first word of "$ac_prog", so it can be a program name with args.
1944 set dummy $ac_prog; ac_word=$2
1945 echo "$as_me:$LINENO: checking for $ac_word" >&5
1946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1947 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1948 echo $ECHO_N "(cached) $ECHO_C" >&6
1949 else
1950 if test -n "$ac_ct_CC"; then
1951 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1952 else
1953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1954 for as_dir in $PATH
1956 IFS=$as_save_IFS
1957 test -z "$as_dir" && as_dir=.
1958 for ac_exec_ext in '' $ac_executable_extensions; do
1959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1960 ac_cv_prog_ac_ct_CC="$ac_prog"
1961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1962 break 2
1964 done
1965 done
1969 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1970 if test -n "$ac_ct_CC"; then
1971 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1972 echo "${ECHO_T}$ac_ct_CC" >&6
1973 else
1974 echo "$as_me:$LINENO: result: no" >&5
1975 echo "${ECHO_T}no" >&6
1978 test -n "$ac_ct_CC" && break
1979 done
1981 CC=$ac_ct_CC
1987 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1988 See \`config.log' for more details." >&5
1989 echo "$as_me: error: no acceptable C compiler found in \$PATH
1990 See \`config.log' for more details." >&2;}
1991 { (exit 1); exit 1; }; }
1993 # Provide some information about the compiler.
1994 echo "$as_me:$LINENO:" \
1995 "checking for C compiler version" >&5
1996 ac_compiler=`set X $ac_compile; echo $2`
1997 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1998 (eval $ac_compiler --version </dev/null >&5) 2>&5
1999 ac_status=$?
2000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001 (exit $ac_status); }
2002 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2003 (eval $ac_compiler -v </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); }
2013 cat >conftest.$ac_ext <<_ACEOF
2014 /* confdefs.h. */
2015 _ACEOF
2016 cat confdefs.h >>conftest.$ac_ext
2017 cat >>conftest.$ac_ext <<_ACEOF
2018 /* end confdefs.h. */
2021 main ()
2025 return 0;
2027 _ACEOF
2028 # FIXME: Cleanup?
2029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2030 (eval $ac_link) 2>&5
2031 ac_status=$?
2032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2033 (exit $ac_status); }; then
2034 gcc_no_link=no
2035 else
2036 gcc_no_link=yes
2039 if test x$gcc_no_link = xyes; then
2040 # Setting cross_compile will disable run tests; it will
2041 # also disable AC_CHECK_FILE but that's generally
2042 # correct if we can't link.
2043 cross_compiling=yes
2044 EXEEXT=
2045 else
2046 cat >conftest.$ac_ext <<_ACEOF
2047 /* confdefs.h. */
2048 _ACEOF
2049 cat confdefs.h >>conftest.$ac_ext
2050 cat >>conftest.$ac_ext <<_ACEOF
2051 /* end confdefs.h. */
2054 main ()
2058 return 0;
2060 _ACEOF
2061 ac_clean_files_save=$ac_clean_files
2062 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2063 # Try to create an executable without -o first, disregard a.out.
2064 # It will help us diagnose broken compilers, and finding out an intuition
2065 # of exeext.
2066 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2067 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2068 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2069 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2070 (eval $ac_link_default) 2>&5
2071 ac_status=$?
2072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073 (exit $ac_status); }; then
2074 # Find the output, starting from the most likely. This scheme is
2075 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2076 # resort.
2078 # Be careful to initialize this variable, since it used to be cached.
2079 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2080 ac_cv_exeext=
2081 # b.out is created by i960 compilers.
2082 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2084 test -f "$ac_file" || continue
2085 case $ac_file in
2086 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2088 conftest.$ac_ext )
2089 # This is the source file.
2091 [ab].out )
2092 # We found the default executable, but exeext='' is most
2093 # certainly right.
2094 break;;
2095 *.* )
2096 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2097 # FIXME: I believe we export ac_cv_exeext for Libtool,
2098 # but it would be cool to find out if it's true. Does anybody
2099 # maintain Libtool? --akim.
2100 export ac_cv_exeext
2101 break;;
2103 break;;
2104 esac
2105 done
2106 else
2107 echo "$as_me: failed program was:" >&5
2108 sed 's/^/| /' conftest.$ac_ext >&5
2110 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2111 See \`config.log' for more details." >&5
2112 echo "$as_me: error: C compiler cannot create executables
2113 See \`config.log' for more details." >&2;}
2114 { (exit 77); exit 77; }; }
2117 ac_exeext=$ac_cv_exeext
2118 echo "$as_me:$LINENO: result: $ac_file" >&5
2119 echo "${ECHO_T}$ac_file" >&6
2121 # Check the compiler produces executables we can run. If not, either
2122 # the compiler is broken, or we cross compile.
2123 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2124 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2125 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2126 # If not cross compiling, check that we can run a simple program.
2127 if test "$cross_compiling" != yes; then
2128 if { ac_try='./$ac_file'
2129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2130 (eval $ac_try) 2>&5
2131 ac_status=$?
2132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133 (exit $ac_status); }; }; then
2134 cross_compiling=no
2135 else
2136 if test "$cross_compiling" = maybe; then
2137 cross_compiling=yes
2138 else
2139 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2140 If you meant to cross compile, use \`--host'.
2141 See \`config.log' for more details." >&5
2142 echo "$as_me: error: cannot run C compiled programs.
2143 If you meant to cross compile, use \`--host'.
2144 See \`config.log' for more details." >&2;}
2145 { (exit 1); exit 1; }; }
2149 echo "$as_me:$LINENO: result: yes" >&5
2150 echo "${ECHO_T}yes" >&6
2152 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2153 ac_clean_files=$ac_clean_files_save
2154 # Check the compiler produces executables we can run. If not, either
2155 # the compiler is broken, or we cross compile.
2156 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2157 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2158 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2159 echo "${ECHO_T}$cross_compiling" >&6
2161 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2162 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2164 (eval $ac_link) 2>&5
2165 ac_status=$?
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); }; then
2168 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2169 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2170 # work properly (i.e., refer to `conftest.exe'), while it won't with
2171 # `rm'.
2172 for ac_file in conftest.exe conftest conftest.*; do
2173 test -f "$ac_file" || continue
2174 case $ac_file in
2175 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2176 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2177 export ac_cv_exeext
2178 break;;
2179 * ) break;;
2180 esac
2181 done
2182 else
2183 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2184 See \`config.log' for more details." >&5
2185 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2186 See \`config.log' for more details." >&2;}
2187 { (exit 1); exit 1; }; }
2190 rm -f conftest$ac_cv_exeext
2191 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2192 echo "${ECHO_T}$ac_cv_exeext" >&6
2194 rm -f conftest.$ac_ext
2195 EXEEXT=$ac_cv_exeext
2196 ac_exeext=$EXEEXT
2198 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2199 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2200 if test "${ac_cv_objext+set}" = set; then
2201 echo $ECHO_N "(cached) $ECHO_C" >&6
2202 else
2203 cat >conftest.$ac_ext <<_ACEOF
2204 /* confdefs.h. */
2205 _ACEOF
2206 cat confdefs.h >>conftest.$ac_ext
2207 cat >>conftest.$ac_ext <<_ACEOF
2208 /* end confdefs.h. */
2211 main ()
2215 return 0;
2217 _ACEOF
2218 rm -f conftest.o conftest.obj
2219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2220 (eval $ac_compile) 2>&5
2221 ac_status=$?
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); }; then
2224 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2225 case $ac_file in
2226 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2227 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2228 break;;
2229 esac
2230 done
2231 else
2232 echo "$as_me: failed program was:" >&5
2233 sed 's/^/| /' conftest.$ac_ext >&5
2235 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2236 See \`config.log' for more details." >&5
2237 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2238 See \`config.log' for more details." >&2;}
2239 { (exit 1); exit 1; }; }
2242 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2244 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2245 echo "${ECHO_T}$ac_cv_objext" >&6
2246 OBJEXT=$ac_cv_objext
2247 ac_objext=$OBJEXT
2248 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2249 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2250 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2251 echo $ECHO_N "(cached) $ECHO_C" >&6
2252 else
2253 cat >conftest.$ac_ext <<_ACEOF
2254 /* confdefs.h. */
2255 _ACEOF
2256 cat confdefs.h >>conftest.$ac_ext
2257 cat >>conftest.$ac_ext <<_ACEOF
2258 /* end confdefs.h. */
2261 main ()
2263 #ifndef __GNUC__
2264 choke me
2265 #endif
2268 return 0;
2270 _ACEOF
2271 rm -f conftest.$ac_objext
2272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2273 (eval $ac_compile) 2>conftest.er1
2274 ac_status=$?
2275 grep -v '^ *+' conftest.er1 >conftest.err
2276 rm -f conftest.er1
2277 cat conftest.err >&5
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); } &&
2280 { ac_try='test -z "$ac_c_werror_flag"
2281 || test ! -s conftest.err'
2282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283 (eval $ac_try) 2>&5
2284 ac_status=$?
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); }; } &&
2287 { ac_try='test -s conftest.$ac_objext'
2288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2289 (eval $ac_try) 2>&5
2290 ac_status=$?
2291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292 (exit $ac_status); }; }; then
2293 ac_compiler_gnu=yes
2294 else
2295 echo "$as_me: failed program was:" >&5
2296 sed 's/^/| /' conftest.$ac_ext >&5
2298 ac_compiler_gnu=no
2300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2301 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2304 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2305 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2306 GCC=`test $ac_compiler_gnu = yes && echo yes`
2307 ac_test_CFLAGS=${CFLAGS+set}
2308 ac_save_CFLAGS=$CFLAGS
2309 CFLAGS="-g"
2310 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2311 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2312 if test "${ac_cv_prog_cc_g+set}" = set; then
2313 echo $ECHO_N "(cached) $ECHO_C" >&6
2314 else
2315 cat >conftest.$ac_ext <<_ACEOF
2316 /* confdefs.h. */
2317 _ACEOF
2318 cat confdefs.h >>conftest.$ac_ext
2319 cat >>conftest.$ac_ext <<_ACEOF
2320 /* end confdefs.h. */
2323 main ()
2327 return 0;
2329 _ACEOF
2330 rm -f conftest.$ac_objext
2331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2332 (eval $ac_compile) 2>conftest.er1
2333 ac_status=$?
2334 grep -v '^ *+' conftest.er1 >conftest.err
2335 rm -f conftest.er1
2336 cat conftest.err >&5
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); } &&
2339 { ac_try='test -z "$ac_c_werror_flag"
2340 || test ! -s conftest.err'
2341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342 (eval $ac_try) 2>&5
2343 ac_status=$?
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }; } &&
2346 { ac_try='test -s conftest.$ac_objext'
2347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2348 (eval $ac_try) 2>&5
2349 ac_status=$?
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); }; }; then
2352 ac_cv_prog_cc_g=yes
2353 else
2354 echo "$as_me: failed program was:" >&5
2355 sed 's/^/| /' conftest.$ac_ext >&5
2357 ac_cv_prog_cc_g=no
2359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2361 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2362 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2363 if test "$ac_test_CFLAGS" = set; then
2364 CFLAGS=$ac_save_CFLAGS
2365 elif test $ac_cv_prog_cc_g = yes; then
2366 if test "$GCC" = yes; then
2367 CFLAGS="-g -O2"
2368 else
2369 CFLAGS="-g"
2371 else
2372 if test "$GCC" = yes; then
2373 CFLAGS="-O2"
2374 else
2375 CFLAGS=
2378 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2379 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2380 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2381 echo $ECHO_N "(cached) $ECHO_C" >&6
2382 else
2383 ac_cv_prog_cc_stdc=no
2384 ac_save_CC=$CC
2385 cat >conftest.$ac_ext <<_ACEOF
2386 /* confdefs.h. */
2387 _ACEOF
2388 cat confdefs.h >>conftest.$ac_ext
2389 cat >>conftest.$ac_ext <<_ACEOF
2390 /* end confdefs.h. */
2391 #include <stdarg.h>
2392 #include <stdio.h>
2393 #include <sys/types.h>
2394 #include <sys/stat.h>
2395 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2396 struct buf { int x; };
2397 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2398 static char *e (p, i)
2399 char **p;
2400 int i;
2402 return p[i];
2404 static char *f (char * (*g) (char **, int), char **p, ...)
2406 char *s;
2407 va_list v;
2408 va_start (v,p);
2409 s = g (p, va_arg (v,int));
2410 va_end (v);
2411 return s;
2414 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2415 function prototypes and stuff, but not '\xHH' hex character constants.
2416 These don't provoke an error unfortunately, instead are silently treated
2417 as 'x'. The following induces an error, until -std1 is added to get
2418 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2419 array size at least. It's necessary to write '\x00'==0 to get something
2420 that's true only with -std1. */
2421 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2423 int test (int i, double x);
2424 struct s1 {int (*f) (int a);};
2425 struct s2 {int (*f) (double a);};
2426 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2427 int argc;
2428 char **argv;
2430 main ()
2432 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2434 return 0;
2436 _ACEOF
2437 # Don't try gcc -ansi; that turns off useful extensions and
2438 # breaks some systems' header files.
2439 # AIX -qlanglvl=ansi
2440 # Ultrix and OSF/1 -std1
2441 # HP-UX 10.20 and later -Ae
2442 # HP-UX older versions -Aa -D_HPUX_SOURCE
2443 # SVR4 -Xc -D__EXTENSIONS__
2444 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2446 CC="$ac_save_CC $ac_arg"
2447 rm -f conftest.$ac_objext
2448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2449 (eval $ac_compile) 2>conftest.er1
2450 ac_status=$?
2451 grep -v '^ *+' conftest.er1 >conftest.err
2452 rm -f conftest.er1
2453 cat conftest.err >&5
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); } &&
2456 { ac_try='test -z "$ac_c_werror_flag"
2457 || test ! -s conftest.err'
2458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459 (eval $ac_try) 2>&5
2460 ac_status=$?
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); }; } &&
2463 { ac_try='test -s conftest.$ac_objext'
2464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465 (eval $ac_try) 2>&5
2466 ac_status=$?
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }; }; then
2469 ac_cv_prog_cc_stdc=$ac_arg
2470 break
2471 else
2472 echo "$as_me: failed program was:" >&5
2473 sed 's/^/| /' conftest.$ac_ext >&5
2476 rm -f conftest.err conftest.$ac_objext
2477 done
2478 rm -f conftest.$ac_ext conftest.$ac_objext
2479 CC=$ac_save_CC
2483 case "x$ac_cv_prog_cc_stdc" in
2484 x|xno)
2485 echo "$as_me:$LINENO: result: none needed" >&5
2486 echo "${ECHO_T}none needed" >&6 ;;
2488 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2489 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2490 CC="$CC $ac_cv_prog_cc_stdc" ;;
2491 esac
2493 # Some people use a C++ compiler to compile C. Since we use `exit',
2494 # in C++ we need to declare it. In case someone uses the same compiler
2495 # for both compiling C and C++ we need to have the C++ compiler decide
2496 # the declaration of exit, since it's the most demanding environment.
2497 cat >conftest.$ac_ext <<_ACEOF
2498 #ifndef __cplusplus
2499 choke me
2500 #endif
2501 _ACEOF
2502 rm -f conftest.$ac_objext
2503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2504 (eval $ac_compile) 2>conftest.er1
2505 ac_status=$?
2506 grep -v '^ *+' conftest.er1 >conftest.err
2507 rm -f conftest.er1
2508 cat conftest.err >&5
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); } &&
2511 { ac_try='test -z "$ac_c_werror_flag"
2512 || test ! -s conftest.err'
2513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2514 (eval $ac_try) 2>&5
2515 ac_status=$?
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); }; } &&
2518 { ac_try='test -s conftest.$ac_objext'
2519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2520 (eval $ac_try) 2>&5
2521 ac_status=$?
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); }; }; then
2524 for ac_declaration in \
2525 '' \
2526 'extern "C" void std::exit (int) throw (); using std::exit;' \
2527 'extern "C" void std::exit (int); using std::exit;' \
2528 'extern "C" void exit (int) throw ();' \
2529 'extern "C" void exit (int);' \
2530 'void exit (int);'
2532 cat >conftest.$ac_ext <<_ACEOF
2533 /* confdefs.h. */
2534 _ACEOF
2535 cat confdefs.h >>conftest.$ac_ext
2536 cat >>conftest.$ac_ext <<_ACEOF
2537 /* end confdefs.h. */
2538 $ac_declaration
2539 #include <stdlib.h>
2541 main ()
2543 exit (42);
2545 return 0;
2547 _ACEOF
2548 rm -f conftest.$ac_objext
2549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2550 (eval $ac_compile) 2>conftest.er1
2551 ac_status=$?
2552 grep -v '^ *+' conftest.er1 >conftest.err
2553 rm -f conftest.er1
2554 cat conftest.err >&5
2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556 (exit $ac_status); } &&
2557 { ac_try='test -z "$ac_c_werror_flag"
2558 || test ! -s conftest.err'
2559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560 (eval $ac_try) 2>&5
2561 ac_status=$?
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }; } &&
2564 { ac_try='test -s conftest.$ac_objext'
2565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566 (eval $ac_try) 2>&5
2567 ac_status=$?
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; }; then
2571 else
2572 echo "$as_me: failed program was:" >&5
2573 sed 's/^/| /' conftest.$ac_ext >&5
2575 continue
2577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2578 cat >conftest.$ac_ext <<_ACEOF
2579 /* confdefs.h. */
2580 _ACEOF
2581 cat confdefs.h >>conftest.$ac_ext
2582 cat >>conftest.$ac_ext <<_ACEOF
2583 /* end confdefs.h. */
2584 $ac_declaration
2586 main ()
2588 exit (42);
2590 return 0;
2592 _ACEOF
2593 rm -f conftest.$ac_objext
2594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2595 (eval $ac_compile) 2>conftest.er1
2596 ac_status=$?
2597 grep -v '^ *+' conftest.er1 >conftest.err
2598 rm -f conftest.er1
2599 cat conftest.err >&5
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); } &&
2602 { ac_try='test -z "$ac_c_werror_flag"
2603 || test ! -s conftest.err'
2604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605 (eval $ac_try) 2>&5
2606 ac_status=$?
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); }; } &&
2609 { ac_try='test -s conftest.$ac_objext'
2610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611 (eval $ac_try) 2>&5
2612 ac_status=$?
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; }; then
2615 break
2616 else
2617 echo "$as_me: failed program was:" >&5
2618 sed 's/^/| /' conftest.$ac_ext >&5
2621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2622 done
2623 rm -f conftest*
2624 if test -n "$ac_declaration"; then
2625 echo '#ifdef __cplusplus' >>confdefs.h
2626 echo $ac_declaration >>confdefs.h
2627 echo '#endif' >>confdefs.h
2630 else
2631 echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.$ac_ext >&5
2635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2636 ac_ext=c
2637 ac_cpp='$CPP $CPPFLAGS'
2638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2642 ac_ext=cc
2643 ac_cpp='$CXXCPP $CPPFLAGS'
2644 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2645 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2646 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2647 if test -n "$ac_tool_prefix"; then
2648 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2650 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2651 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2652 echo "$as_me:$LINENO: checking for $ac_word" >&5
2653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2654 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2655 echo $ECHO_N "(cached) $ECHO_C" >&6
2656 else
2657 if test -n "$CXX"; then
2658 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2659 else
2660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661 for as_dir in $PATH
2663 IFS=$as_save_IFS
2664 test -z "$as_dir" && as_dir=.
2665 for ac_exec_ext in '' $ac_executable_extensions; do
2666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2667 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2669 break 2
2671 done
2672 done
2676 CXX=$glibcxx_cv_prog_CXX
2677 if test -n "$CXX"; then
2678 echo "$as_me:$LINENO: result: $CXX" >&5
2679 echo "${ECHO_T}$CXX" >&6
2680 else
2681 echo "$as_me:$LINENO: result: no" >&5
2682 echo "${ECHO_T}no" >&6
2685 test -n "$CXX" && break
2686 done
2688 if test -z "$CXX"; then
2689 ac_ct_CXX=$CXX
2690 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2692 # Extract the first word of "$ac_prog", so it can be a program name with args.
2693 set dummy $ac_prog; ac_word=$2
2694 echo "$as_me:$LINENO: checking for $ac_word" >&5
2695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2696 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2697 echo $ECHO_N "(cached) $ECHO_C" >&6
2698 else
2699 if test -n "$ac_ct_CXX"; then
2700 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2701 else
2702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703 for as_dir in $PATH
2705 IFS=$as_save_IFS
2706 test -z "$as_dir" && as_dir=.
2707 for ac_exec_ext in '' $ac_executable_extensions; do
2708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2709 ac_cv_prog_ac_ct_CXX="$ac_prog"
2710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2711 break 2
2713 done
2714 done
2718 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2719 if test -n "$ac_ct_CXX"; then
2720 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2721 echo "${ECHO_T}$ac_ct_CXX" >&6
2722 else
2723 echo "$as_me:$LINENO: result: no" >&5
2724 echo "${ECHO_T}no" >&6
2727 test -n "$ac_ct_CXX" && break
2728 done
2729 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2731 CXX=$ac_ct_CXX
2735 # Provide some information about the compiler.
2736 echo "$as_me:$LINENO:" \
2737 "checking for C++ compiler version" >&5
2738 ac_compiler=`set X $ac_compile; echo $2`
2739 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2740 (eval $ac_compiler --version </dev/null >&5) 2>&5
2741 ac_status=$?
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); }
2744 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2745 (eval $ac_compiler -v </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); }
2755 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2756 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2757 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2758 echo $ECHO_N "(cached) $ECHO_C" >&6
2759 else
2760 cat >conftest.$ac_ext <<_ACEOF
2761 /* confdefs.h. */
2762 _ACEOF
2763 cat confdefs.h >>conftest.$ac_ext
2764 cat >>conftest.$ac_ext <<_ACEOF
2765 /* end confdefs.h. */
2768 main ()
2770 #ifndef __GNUC__
2771 choke me
2772 #endif
2775 return 0;
2777 _ACEOF
2778 rm -f conftest.$ac_objext
2779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2780 (eval $ac_compile) 2>conftest.er1
2781 ac_status=$?
2782 grep -v '^ *+' conftest.er1 >conftest.err
2783 rm -f conftest.er1
2784 cat conftest.err >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); } &&
2787 { ac_try='test -z "$ac_cxx_werror_flag"
2788 || test ! -s conftest.err'
2789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790 (eval $ac_try) 2>&5
2791 ac_status=$?
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }; } &&
2794 { ac_try='test -s conftest.$ac_objext'
2795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796 (eval $ac_try) 2>&5
2797 ac_status=$?
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); }; }; then
2800 ac_compiler_gnu=yes
2801 else
2802 echo "$as_me: failed program was:" >&5
2803 sed 's/^/| /' conftest.$ac_ext >&5
2805 ac_compiler_gnu=no
2807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2808 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2811 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2812 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2813 GXX=`test $ac_compiler_gnu = yes && echo yes`
2814 ac_test_CXXFLAGS=${CXXFLAGS+set}
2815 ac_save_CXXFLAGS=$CXXFLAGS
2816 CXXFLAGS="-g"
2817 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2818 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2819 if test "${ac_cv_prog_cxx_g+set}" = set; then
2820 echo $ECHO_N "(cached) $ECHO_C" >&6
2821 else
2822 cat >conftest.$ac_ext <<_ACEOF
2823 /* confdefs.h. */
2824 _ACEOF
2825 cat confdefs.h >>conftest.$ac_ext
2826 cat >>conftest.$ac_ext <<_ACEOF
2827 /* end confdefs.h. */
2830 main ()
2834 return 0;
2836 _ACEOF
2837 rm -f conftest.$ac_objext
2838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2839 (eval $ac_compile) 2>conftest.er1
2840 ac_status=$?
2841 grep -v '^ *+' conftest.er1 >conftest.err
2842 rm -f conftest.er1
2843 cat conftest.err >&5
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); } &&
2846 { ac_try='test -z "$ac_cxx_werror_flag"
2847 || test ! -s conftest.err'
2848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849 (eval $ac_try) 2>&5
2850 ac_status=$?
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }; } &&
2853 { ac_try='test -s conftest.$ac_objext'
2854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855 (eval $ac_try) 2>&5
2856 ac_status=$?
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }; }; then
2859 ac_cv_prog_cxx_g=yes
2860 else
2861 echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2864 ac_cv_prog_cxx_g=no
2866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2868 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2869 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2870 if test "$ac_test_CXXFLAGS" = set; then
2871 CXXFLAGS=$ac_save_CXXFLAGS
2872 elif test $ac_cv_prog_cxx_g = yes; then
2873 if test "$GXX" = yes; then
2874 CXXFLAGS="-g -O2"
2875 else
2876 CXXFLAGS="-g"
2878 else
2879 if test "$GXX" = yes; then
2880 CXXFLAGS="-O2"
2881 else
2882 CXXFLAGS=
2885 for ac_declaration in \
2886 '' \
2887 'extern "C" void std::exit (int) throw (); using std::exit;' \
2888 'extern "C" void std::exit (int); using std::exit;' \
2889 'extern "C" void exit (int) throw ();' \
2890 'extern "C" void exit (int);' \
2891 'void exit (int);'
2893 cat >conftest.$ac_ext <<_ACEOF
2894 /* confdefs.h. */
2895 _ACEOF
2896 cat confdefs.h >>conftest.$ac_ext
2897 cat >>conftest.$ac_ext <<_ACEOF
2898 /* end confdefs.h. */
2899 $ac_declaration
2900 #include <stdlib.h>
2902 main ()
2904 exit (42);
2906 return 0;
2908 _ACEOF
2909 rm -f conftest.$ac_objext
2910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2911 (eval $ac_compile) 2>conftest.er1
2912 ac_status=$?
2913 grep -v '^ *+' conftest.er1 >conftest.err
2914 rm -f conftest.er1
2915 cat conftest.err >&5
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); } &&
2918 { ac_try='test -z "$ac_cxx_werror_flag"
2919 || test ! -s conftest.err'
2920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921 (eval $ac_try) 2>&5
2922 ac_status=$?
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }; } &&
2925 { ac_try='test -s conftest.$ac_objext'
2926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2927 (eval $ac_try) 2>&5
2928 ac_status=$?
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }; }; then
2932 else
2933 echo "$as_me: failed program was:" >&5
2934 sed 's/^/| /' conftest.$ac_ext >&5
2936 continue
2938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2939 cat >conftest.$ac_ext <<_ACEOF
2940 /* confdefs.h. */
2941 _ACEOF
2942 cat confdefs.h >>conftest.$ac_ext
2943 cat >>conftest.$ac_ext <<_ACEOF
2944 /* end confdefs.h. */
2945 $ac_declaration
2947 main ()
2949 exit (42);
2951 return 0;
2953 _ACEOF
2954 rm -f conftest.$ac_objext
2955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2956 (eval $ac_compile) 2>conftest.er1
2957 ac_status=$?
2958 grep -v '^ *+' conftest.er1 >conftest.err
2959 rm -f conftest.er1
2960 cat conftest.err >&5
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); } &&
2963 { ac_try='test -z "$ac_cxx_werror_flag"
2964 || test ! -s conftest.err'
2965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2966 (eval $ac_try) 2>&5
2967 ac_status=$?
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); }; } &&
2970 { ac_try='test -s conftest.$ac_objext'
2971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2972 (eval $ac_try) 2>&5
2973 ac_status=$?
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); }; }; then
2976 break
2977 else
2978 echo "$as_me: failed program was:" >&5
2979 sed 's/^/| /' conftest.$ac_ext >&5
2982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2983 done
2984 rm -f conftest*
2985 if test -n "$ac_declaration"; then
2986 echo '#ifdef __cplusplus' >>confdefs.h
2987 echo $ac_declaration >>confdefs.h
2988 echo '#endif' >>confdefs.h
2991 ac_ext=c
2992 ac_cpp='$CPP $CPPFLAGS'
2993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2997 CXXFLAGS="$save_CXXFLAGS"
3003 am__api_version="1.9"
3004 # Find a good install program. We prefer a C program (faster),
3005 # so one script is as good as another. But avoid the broken or
3006 # incompatible versions:
3007 # SysV /etc/install, /usr/sbin/install
3008 # SunOS /usr/etc/install
3009 # IRIX /sbin/install
3010 # AIX /bin/install
3011 # AmigaOS /C/install, which installs bootblocks on floppy discs
3012 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3013 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3014 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3015 # OS/2's system install, which has a completely different semantic
3016 # ./install, which can be erroneously created by make from ./install.sh.
3017 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3018 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3019 if test -z "$INSTALL"; then
3020 if test "${ac_cv_path_install+set}" = set; then
3021 echo $ECHO_N "(cached) $ECHO_C" >&6
3022 else
3023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3024 for as_dir in $PATH
3026 IFS=$as_save_IFS
3027 test -z "$as_dir" && as_dir=.
3028 # Account for people who put trailing slashes in PATH elements.
3029 case $as_dir/ in
3030 ./ | .// | /cC/* | \
3031 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3032 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3033 /usr/ucb/* ) ;;
3035 # OSF1 and SCO ODT 3.0 have their own names for install.
3036 # Don't use installbsd from OSF since it installs stuff as root
3037 # by default.
3038 for ac_prog in ginstall scoinst install; do
3039 for ac_exec_ext in '' $ac_executable_extensions; do
3040 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3041 if test $ac_prog = install &&
3042 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3043 # AIX install. It has an incompatible calling convention.
3045 elif test $ac_prog = install &&
3046 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3047 # program-specific install script used by HP pwplus--don't use.
3049 else
3050 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3051 break 3
3054 done
3055 done
3057 esac
3058 done
3062 if test "${ac_cv_path_install+set}" = set; then
3063 INSTALL=$ac_cv_path_install
3064 else
3065 # As a last resort, use the slow shell script. We don't cache a
3066 # path for INSTALL within a source directory, because that will
3067 # break other packages using the cache if that directory is
3068 # removed, or if the path is relative.
3069 INSTALL=$ac_install_sh
3072 echo "$as_me:$LINENO: result: $INSTALL" >&5
3073 echo "${ECHO_T}$INSTALL" >&6
3075 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3076 # It thinks the first close brace ends the variable substitution.
3077 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3079 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3081 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3083 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3084 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3085 # Just in case
3086 sleep 1
3087 echo timestamp > conftest.file
3088 # Do `set' in a subshell so we don't clobber the current shell's
3089 # arguments. Must try -L first in case configure is actually a
3090 # symlink; some systems play weird games with the mod time of symlinks
3091 # (eg FreeBSD returns the mod time of the symlink's containing
3092 # directory).
3093 if (
3094 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3095 if test "$*" = "X"; then
3096 # -L didn't work.
3097 set X `ls -t $srcdir/configure conftest.file`
3099 rm -f conftest.file
3100 if test "$*" != "X $srcdir/configure conftest.file" \
3101 && test "$*" != "X conftest.file $srcdir/configure"; then
3103 # If neither matched, then we have a broken ls. This can happen
3104 # if, for instance, CONFIG_SHELL is bash and it inherits a
3105 # broken ls alias from the environment. This has actually
3106 # happened. Such a system could not be considered "sane".
3107 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3108 alias in your environment" >&5
3109 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3110 alias in your environment" >&2;}
3111 { (exit 1); exit 1; }; }
3114 test "$2" = conftest.file
3116 then
3117 # Ok.
3119 else
3120 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3121 Check your system clock" >&5
3122 echo "$as_me: error: newly created file is older than distributed files!
3123 Check your system clock" >&2;}
3124 { (exit 1); exit 1; }; }
3126 echo "$as_me:$LINENO: result: yes" >&5
3127 echo "${ECHO_T}yes" >&6
3128 test "$program_prefix" != NONE &&
3129 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3130 # Use a double $ so make ignores it.
3131 test "$program_suffix" != NONE &&
3132 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3133 # Double any \ or $. echo might interpret backslashes.
3134 # By default was `s,x,x', remove it if useless.
3135 cat <<\_ACEOF >conftest.sed
3136 s/[\\$]/&&/g;s/;s,x,x,$//
3137 _ACEOF
3138 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3139 rm conftest.sed
3141 # expand $ac_aux_dir to an absolute path
3142 am_aux_dir=`cd $ac_aux_dir && pwd`
3144 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3145 # Use eval to expand $SHELL
3146 if eval "$MISSING --run true"; then
3147 am_missing_run="$MISSING --run "
3148 else
3149 am_missing_run=
3150 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3151 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3154 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3155 # We used to keeping the `.' as first argument, in order to
3156 # allow $(mkdir_p) to be used without argument. As in
3157 # $(mkdir_p) $(somedir)
3158 # where $(somedir) is conditionally defined. However this is wrong
3159 # for two reasons:
3160 # 1. if the package is installed by a user who cannot write `.'
3161 # make install will fail,
3162 # 2. the above comment should most certainly read
3163 # $(mkdir_p) $(DESTDIR)$(somedir)
3164 # so it does not work when $(somedir) is undefined and
3165 # $(DESTDIR) is not.
3166 # To support the latter case, we have to write
3167 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3168 # so the `.' trick is pointless.
3169 mkdir_p='mkdir -p --'
3170 else
3171 # On NextStep and OpenStep, the `mkdir' command does not
3172 # recognize any option. It will interpret all options as
3173 # directories to create, and then abort because `.' already
3174 # exists.
3175 for d in ./-p ./--version;
3177 test -d $d && rmdir $d
3178 done
3179 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3180 if test -f "$ac_aux_dir/mkinstalldirs"; then
3181 mkdir_p='$(mkinstalldirs)'
3182 else
3183 mkdir_p='$(install_sh) -d'
3187 for ac_prog in gawk mawk nawk awk
3189 # Extract the first word of "$ac_prog", so it can be a program name with args.
3190 set dummy $ac_prog; ac_word=$2
3191 echo "$as_me:$LINENO: checking for $ac_word" >&5
3192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3193 if test "${ac_cv_prog_AWK+set}" = set; then
3194 echo $ECHO_N "(cached) $ECHO_C" >&6
3195 else
3196 if test -n "$AWK"; then
3197 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3198 else
3199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 for as_dir in $PATH
3202 IFS=$as_save_IFS
3203 test -z "$as_dir" && as_dir=.
3204 for ac_exec_ext in '' $ac_executable_extensions; do
3205 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3206 ac_cv_prog_AWK="$ac_prog"
3207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3208 break 2
3210 done
3211 done
3215 AWK=$ac_cv_prog_AWK
3216 if test -n "$AWK"; then
3217 echo "$as_me:$LINENO: result: $AWK" >&5
3218 echo "${ECHO_T}$AWK" >&6
3219 else
3220 echo "$as_me:$LINENO: result: no" >&5
3221 echo "${ECHO_T}no" >&6
3224 test -n "$AWK" && break
3225 done
3227 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3228 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3229 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3230 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3231 echo $ECHO_N "(cached) $ECHO_C" >&6
3232 else
3233 cat >conftest.make <<\_ACEOF
3234 all:
3235 @echo 'ac_maketemp="$(MAKE)"'
3236 _ACEOF
3237 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3238 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3239 if test -n "$ac_maketemp"; then
3240 eval ac_cv_prog_make_${ac_make}_set=yes
3241 else
3242 eval ac_cv_prog_make_${ac_make}_set=no
3244 rm -f conftest.make
3246 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3247 echo "$as_me:$LINENO: result: yes" >&5
3248 echo "${ECHO_T}yes" >&6
3249 SET_MAKE=
3250 else
3251 echo "$as_me:$LINENO: result: no" >&5
3252 echo "${ECHO_T}no" >&6
3253 SET_MAKE="MAKE=${MAKE-make}"
3256 rm -rf .tst 2>/dev/null
3257 mkdir .tst 2>/dev/null
3258 if test -d .tst; then
3259 am__leading_dot=.
3260 else
3261 am__leading_dot=_
3263 rmdir .tst 2>/dev/null
3265 DEPDIR="${am__leading_dot}deps"
3267 ac_config_commands="$ac_config_commands depfiles"
3270 am_make=${MAKE-make}
3271 cat > confinc << 'END'
3272 am__doit:
3273 @echo done
3274 .PHONY: am__doit
3276 # If we don't find an include directive, just comment out the code.
3277 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3278 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3279 am__include="#"
3280 am__quote=
3281 _am_result=none
3282 # First try GNU make style include.
3283 echo "include confinc" > confmf
3284 # We grep out `Entering directory' and `Leaving directory'
3285 # messages which can occur if `w' ends up in MAKEFLAGS.
3286 # In particular we don't look at `^make:' because GNU make might
3287 # be invoked under some other name (usually "gmake"), in which
3288 # case it prints its new name instead of `make'.
3289 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3290 am__include=include
3291 am__quote=
3292 _am_result=GNU
3294 # Now try BSD make style include.
3295 if test "$am__include" = "#"; then
3296 echo '.include "confinc"' > confmf
3297 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3298 am__include=.include
3299 am__quote="\""
3300 _am_result=BSD
3305 echo "$as_me:$LINENO: result: $_am_result" >&5
3306 echo "${ECHO_T}$_am_result" >&6
3307 rm -f confinc confmf
3309 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3310 if test "${enable_dependency_tracking+set}" = set; then
3311 enableval="$enable_dependency_tracking"
3314 if test "x$enable_dependency_tracking" != xno; then
3315 am_depcomp="$ac_aux_dir/depcomp"
3316 AMDEPBACKSLASH='\'
3320 if test "x$enable_dependency_tracking" != xno; then
3321 AMDEP_TRUE=
3322 AMDEP_FALSE='#'
3323 else
3324 AMDEP_TRUE='#'
3325 AMDEP_FALSE=
3330 # test to see if srcdir already configured
3331 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3332 test -f $srcdir/config.status; then
3333 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3334 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3335 { (exit 1); exit 1; }; }
3338 # test whether we have cygpath
3339 if test -z "$CYGPATH_W"; then
3340 if (cygpath --version) >/dev/null 2>/dev/null; then
3341 CYGPATH_W='cygpath -w'
3342 else
3343 CYGPATH_W=echo
3348 # Define the identity of the package.
3349 PACKAGE='libjava'
3350 VERSION='version-unused'
3353 cat >>confdefs.h <<_ACEOF
3354 #define PACKAGE "$PACKAGE"
3355 _ACEOF
3358 cat >>confdefs.h <<_ACEOF
3359 #define VERSION "$VERSION"
3360 _ACEOF
3362 # Some tools Automake needs.
3364 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3367 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3370 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3373 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3376 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3378 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3380 # Installed binaries are usually stripped using `strip' when the user
3381 # run `make install-strip'. However `strip' might not be the right
3382 # tool to use in cross-compilation environments, therefore Automake
3383 # will honor the `STRIP' environment variable to overrule this program.
3384 if test "$cross_compiling" != no; then
3385 if test -n "$ac_tool_prefix"; then
3386 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3387 set dummy ${ac_tool_prefix}strip; ac_word=$2
3388 echo "$as_me:$LINENO: checking for $ac_word" >&5
3389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3390 if test "${ac_cv_prog_STRIP+set}" = set; then
3391 echo $ECHO_N "(cached) $ECHO_C" >&6
3392 else
3393 if test -n "$STRIP"; then
3394 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3395 else
3396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3397 for as_dir in $PATH
3399 IFS=$as_save_IFS
3400 test -z "$as_dir" && as_dir=.
3401 for ac_exec_ext in '' $ac_executable_extensions; do
3402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3403 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3405 break 2
3407 done
3408 done
3412 STRIP=$ac_cv_prog_STRIP
3413 if test -n "$STRIP"; then
3414 echo "$as_me:$LINENO: result: $STRIP" >&5
3415 echo "${ECHO_T}$STRIP" >&6
3416 else
3417 echo "$as_me:$LINENO: result: no" >&5
3418 echo "${ECHO_T}no" >&6
3422 if test -z "$ac_cv_prog_STRIP"; then
3423 ac_ct_STRIP=$STRIP
3424 # Extract the first word of "strip", so it can be a program name with args.
3425 set dummy strip; ac_word=$2
3426 echo "$as_me:$LINENO: checking for $ac_word" >&5
3427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3428 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3429 echo $ECHO_N "(cached) $ECHO_C" >&6
3430 else
3431 if test -n "$ac_ct_STRIP"; then
3432 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3433 else
3434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3435 for as_dir in $PATH
3437 IFS=$as_save_IFS
3438 test -z "$as_dir" && as_dir=.
3439 for ac_exec_ext in '' $ac_executable_extensions; do
3440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3441 ac_cv_prog_ac_ct_STRIP="strip"
3442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3443 break 2
3445 done
3446 done
3448 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3451 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3452 if test -n "$ac_ct_STRIP"; then
3453 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3454 echo "${ECHO_T}$ac_ct_STRIP" >&6
3455 else
3456 echo "$as_me:$LINENO: result: no" >&5
3457 echo "${ECHO_T}no" >&6
3460 STRIP=$ac_ct_STRIP
3461 else
3462 STRIP="$ac_cv_prog_STRIP"
3466 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3468 # We need awk for the "check" target. The system "awk" is bad on
3469 # some platforms.
3470 # Always define AMTAR for backward compatibility.
3472 AMTAR=${AMTAR-"${am_missing_run}tar"}
3474 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3479 depcc="$CC" am_compiler_list=
3481 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3482 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3483 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3484 echo $ECHO_N "(cached) $ECHO_C" >&6
3485 else
3486 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3487 # We make a subdir and do the tests there. Otherwise we can end up
3488 # making bogus files that we don't know about and never remove. For
3489 # instance it was reported that on HP-UX the gcc test will end up
3490 # making a dummy file named `D' -- because `-MD' means `put the output
3491 # in D'.
3492 mkdir conftest.dir
3493 # Copy depcomp to subdir because otherwise we won't find it if we're
3494 # using a relative directory.
3495 cp "$am_depcomp" conftest.dir
3496 cd conftest.dir
3497 # We will build objects and dependencies in a subdirectory because
3498 # it helps to detect inapplicable dependency modes. For instance
3499 # both Tru64's cc and ICC support -MD to output dependencies as a
3500 # side effect of compilation, but ICC will put the dependencies in
3501 # the current directory while Tru64 will put them in the object
3502 # directory.
3503 mkdir sub
3505 am_cv_CC_dependencies_compiler_type=none
3506 if test "$am_compiler_list" = ""; then
3507 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3509 for depmode in $am_compiler_list; do
3510 # Setup a source with many dependencies, because some compilers
3511 # like to wrap large dependency lists on column 80 (with \), and
3512 # we should not choose a depcomp mode which is confused by this.
3514 # We need to recreate these files for each test, as the compiler may
3515 # overwrite some of them when testing with obscure command lines.
3516 # This happens at least with the AIX C compiler.
3517 : > sub/conftest.c
3518 for i in 1 2 3 4 5 6; do
3519 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3520 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3521 # Solaris 8's {/usr,}/bin/sh.
3522 touch sub/conftst$i.h
3523 done
3524 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3526 case $depmode in
3527 nosideeffect)
3528 # after this tag, mechanisms are not by side-effect, so they'll
3529 # only be used when explicitly requested
3530 if test "x$enable_dependency_tracking" = xyes; then
3531 continue
3532 else
3533 break
3536 none) break ;;
3537 esac
3538 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3539 # mode. It turns out that the SunPro C++ compiler does not properly
3540 # handle `-M -o', and we need to detect this.
3541 if depmode=$depmode \
3542 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3543 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3544 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3545 >/dev/null 2>conftest.err &&
3546 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3547 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3548 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3549 # icc doesn't choke on unknown options, it will just issue warnings
3550 # or remarks (even with -Werror). So we grep stderr for any message
3551 # that says an option was ignored or not supported.
3552 # When given -MP, icc 7.0 and 7.1 complain thusly:
3553 # icc: Command line warning: ignoring option '-M'; no argument required
3554 # The diagnosis changed in icc 8.0:
3555 # icc: Command line remark: option '-MP' not supported
3556 if (grep 'ignoring option' conftest.err ||
3557 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3558 am_cv_CC_dependencies_compiler_type=$depmode
3559 break
3562 done
3564 cd ..
3565 rm -rf conftest.dir
3566 else
3567 am_cv_CC_dependencies_compiler_type=none
3571 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3572 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3573 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3578 test "x$enable_dependency_tracking" != xno \
3579 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3580 am__fastdepCC_TRUE=
3581 am__fastdepCC_FALSE='#'
3582 else
3583 am__fastdepCC_TRUE='#'
3584 am__fastdepCC_FALSE=
3588 depcc="$CXX" am_compiler_list=
3590 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3591 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3592 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3593 echo $ECHO_N "(cached) $ECHO_C" >&6
3594 else
3595 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3596 # We make a subdir and do the tests there. Otherwise we can end up
3597 # making bogus files that we don't know about and never remove. For
3598 # instance it was reported that on HP-UX the gcc test will end up
3599 # making a dummy file named `D' -- because `-MD' means `put the output
3600 # in D'.
3601 mkdir conftest.dir
3602 # Copy depcomp to subdir because otherwise we won't find it if we're
3603 # using a relative directory.
3604 cp "$am_depcomp" conftest.dir
3605 cd conftest.dir
3606 # We will build objects and dependencies in a subdirectory because
3607 # it helps to detect inapplicable dependency modes. For instance
3608 # both Tru64's cc and ICC support -MD to output dependencies as a
3609 # side effect of compilation, but ICC will put the dependencies in
3610 # the current directory while Tru64 will put them in the object
3611 # directory.
3612 mkdir sub
3614 am_cv_CXX_dependencies_compiler_type=none
3615 if test "$am_compiler_list" = ""; then
3616 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3618 for depmode in $am_compiler_list; do
3619 # Setup a source with many dependencies, because some compilers
3620 # like to wrap large dependency lists on column 80 (with \), and
3621 # we should not choose a depcomp mode which is confused by this.
3623 # We need to recreate these files for each test, as the compiler may
3624 # overwrite some of them when testing with obscure command lines.
3625 # This happens at least with the AIX C compiler.
3626 : > sub/conftest.c
3627 for i in 1 2 3 4 5 6; do
3628 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3629 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3630 # Solaris 8's {/usr,}/bin/sh.
3631 touch sub/conftst$i.h
3632 done
3633 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3635 case $depmode in
3636 nosideeffect)
3637 # after this tag, mechanisms are not by side-effect, so they'll
3638 # only be used when explicitly requested
3639 if test "x$enable_dependency_tracking" = xyes; then
3640 continue
3641 else
3642 break
3645 none) break ;;
3646 esac
3647 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3648 # mode. It turns out that the SunPro C++ compiler does not properly
3649 # handle `-M -o', and we need to detect this.
3650 if depmode=$depmode \
3651 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3652 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3653 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3654 >/dev/null 2>conftest.err &&
3655 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3656 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3657 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3658 # icc doesn't choke on unknown options, it will just issue warnings
3659 # or remarks (even with -Werror). So we grep stderr for any message
3660 # that says an option was ignored or not supported.
3661 # When given -MP, icc 7.0 and 7.1 complain thusly:
3662 # icc: Command line warning: ignoring option '-M'; no argument required
3663 # The diagnosis changed in icc 8.0:
3664 # icc: Command line remark: option '-MP' not supported
3665 if (grep 'ignoring option' conftest.err ||
3666 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3667 am_cv_CXX_dependencies_compiler_type=$depmode
3668 break
3671 done
3673 cd ..
3674 rm -rf conftest.dir
3675 else
3676 am_cv_CXX_dependencies_compiler_type=none
3680 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3681 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3682 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3687 test "x$enable_dependency_tracking" != xno \
3688 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3689 am__fastdepCXX_TRUE=
3690 am__fastdepCXX_FALSE='#'
3691 else
3692 am__fastdepCXX_TRUE='#'
3693 am__fastdepCXX_FALSE=
3699 if test -n "$ac_tool_prefix"; then
3700 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3701 set dummy ${ac_tool_prefix}as; ac_word=$2
3702 echo "$as_me:$LINENO: checking for $ac_word" >&5
3703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3704 if test "${ac_cv_prog_AS+set}" = set; then
3705 echo $ECHO_N "(cached) $ECHO_C" >&6
3706 else
3707 if test -n "$AS"; then
3708 ac_cv_prog_AS="$AS" # Let the user override the test.
3709 else
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 for as_dir in $PATH
3713 IFS=$as_save_IFS
3714 test -z "$as_dir" && as_dir=.
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3717 ac_cv_prog_AS="${ac_tool_prefix}as"
3718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3719 break 2
3721 done
3722 done
3726 AS=$ac_cv_prog_AS
3727 if test -n "$AS"; then
3728 echo "$as_me:$LINENO: result: $AS" >&5
3729 echo "${ECHO_T}$AS" >&6
3730 else
3731 echo "$as_me:$LINENO: result: no" >&5
3732 echo "${ECHO_T}no" >&6
3736 if test -z "$ac_cv_prog_AS"; then
3737 ac_ct_AS=$AS
3738 # Extract the first word of "as", so it can be a program name with args.
3739 set dummy as; ac_word=$2
3740 echo "$as_me:$LINENO: checking for $ac_word" >&5
3741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3742 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3744 else
3745 if test -n "$ac_ct_AS"; then
3746 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3747 else
3748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3749 for as_dir in $PATH
3751 IFS=$as_save_IFS
3752 test -z "$as_dir" && as_dir=.
3753 for ac_exec_ext in '' $ac_executable_extensions; do
3754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3755 ac_cv_prog_ac_ct_AS="as"
3756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3757 break 2
3759 done
3760 done
3764 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3765 if test -n "$ac_ct_AS"; then
3766 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3767 echo "${ECHO_T}$ac_ct_AS" >&6
3768 else
3769 echo "$as_me:$LINENO: result: no" >&5
3770 echo "${ECHO_T}no" >&6
3773 AS=$ac_ct_AS
3774 else
3775 AS="$ac_cv_prog_AS"
3778 if test -n "$ac_tool_prefix"; then
3779 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3780 set dummy ${ac_tool_prefix}ld; ac_word=$2
3781 echo "$as_me:$LINENO: checking for $ac_word" >&5
3782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3783 if test "${ac_cv_prog_LD+set}" = set; then
3784 echo $ECHO_N "(cached) $ECHO_C" >&6
3785 else
3786 if test -n "$LD"; then
3787 ac_cv_prog_LD="$LD" # Let the user override the test.
3788 else
3789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790 for as_dir in $PATH
3792 IFS=$as_save_IFS
3793 test -z "$as_dir" && as_dir=.
3794 for ac_exec_ext in '' $ac_executable_extensions; do
3795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3796 ac_cv_prog_LD="${ac_tool_prefix}ld"
3797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3798 break 2
3800 done
3801 done
3805 LD=$ac_cv_prog_LD
3806 if test -n "$LD"; then
3807 echo "$as_me:$LINENO: result: $LD" >&5
3808 echo "${ECHO_T}$LD" >&6
3809 else
3810 echo "$as_me:$LINENO: result: no" >&5
3811 echo "${ECHO_T}no" >&6
3815 if test -z "$ac_cv_prog_LD"; then
3816 ac_ct_LD=$LD
3817 # Extract the first word of "ld", so it can be a program name with args.
3818 set dummy ld; ac_word=$2
3819 echo "$as_me:$LINENO: checking for $ac_word" >&5
3820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3821 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3822 echo $ECHO_N "(cached) $ECHO_C" >&6
3823 else
3824 if test -n "$ac_ct_LD"; then
3825 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3826 else
3827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3828 for as_dir in $PATH
3830 IFS=$as_save_IFS
3831 test -z "$as_dir" && as_dir=.
3832 for ac_exec_ext in '' $ac_executable_extensions; do
3833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3834 ac_cv_prog_ac_ct_LD="ld"
3835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3836 break 2
3838 done
3839 done
3843 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3844 if test -n "$ac_ct_LD"; then
3845 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
3846 echo "${ECHO_T}$ac_ct_LD" >&6
3847 else
3848 echo "$as_me:$LINENO: result: no" >&5
3849 echo "${ECHO_T}no" >&6
3852 LD=$ac_ct_LD
3853 else
3854 LD="$ac_cv_prog_LD"
3857 if test -n "$ac_tool_prefix"; then
3858 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3859 set dummy ${ac_tool_prefix}ar; ac_word=$2
3860 echo "$as_me:$LINENO: checking for $ac_word" >&5
3861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3862 if test "${ac_cv_prog_AR+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
3864 else
3865 if test -n "$AR"; then
3866 ac_cv_prog_AR="$AR" # Let the user override the test.
3867 else
3868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3869 for as_dir in $PATH
3871 IFS=$as_save_IFS
3872 test -z "$as_dir" && as_dir=.
3873 for ac_exec_ext in '' $ac_executable_extensions; do
3874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3875 ac_cv_prog_AR="${ac_tool_prefix}ar"
3876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3877 break 2
3879 done
3880 done
3884 AR=$ac_cv_prog_AR
3885 if test -n "$AR"; then
3886 echo "$as_me:$LINENO: result: $AR" >&5
3887 echo "${ECHO_T}$AR" >&6
3888 else
3889 echo "$as_me:$LINENO: result: no" >&5
3890 echo "${ECHO_T}no" >&6
3894 if test -z "$ac_cv_prog_AR"; then
3895 ac_ct_AR=$AR
3896 # Extract the first word of "ar", so it can be a program name with args.
3897 set dummy ar; ac_word=$2
3898 echo "$as_me:$LINENO: checking for $ac_word" >&5
3899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3900 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3901 echo $ECHO_N "(cached) $ECHO_C" >&6
3902 else
3903 if test -n "$ac_ct_AR"; then
3904 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3905 else
3906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907 for as_dir in $PATH
3909 IFS=$as_save_IFS
3910 test -z "$as_dir" && as_dir=.
3911 for ac_exec_ext in '' $ac_executable_extensions; do
3912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3913 ac_cv_prog_ac_ct_AR="ar"
3914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3915 break 2
3917 done
3918 done
3922 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3923 if test -n "$ac_ct_AR"; then
3924 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3925 echo "${ECHO_T}$ac_ct_AR" >&6
3926 else
3927 echo "$as_me:$LINENO: result: no" >&5
3928 echo "${ECHO_T}no" >&6
3931 AR=$ac_ct_AR
3932 else
3933 AR="$ac_cv_prog_AR"
3936 if test -n "$ac_tool_prefix"; then
3937 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3938 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3939 echo "$as_me:$LINENO: checking for $ac_word" >&5
3940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3941 if test "${ac_cv_prog_RANLIB+set}" = set; then
3942 echo $ECHO_N "(cached) $ECHO_C" >&6
3943 else
3944 if test -n "$RANLIB"; then
3945 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3946 else
3947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3948 for as_dir in $PATH
3950 IFS=$as_save_IFS
3951 test -z "$as_dir" && as_dir=.
3952 for ac_exec_ext in '' $ac_executable_extensions; do
3953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3954 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3956 break 2
3958 done
3959 done
3963 RANLIB=$ac_cv_prog_RANLIB
3964 if test -n "$RANLIB"; then
3965 echo "$as_me:$LINENO: result: $RANLIB" >&5
3966 echo "${ECHO_T}$RANLIB" >&6
3967 else
3968 echo "$as_me:$LINENO: result: no" >&5
3969 echo "${ECHO_T}no" >&6
3973 if test -z "$ac_cv_prog_RANLIB"; then
3974 ac_ct_RANLIB=$RANLIB
3975 # Extract the first word of "ranlib", so it can be a program name with args.
3976 set dummy ranlib; ac_word=$2
3977 echo "$as_me:$LINENO: checking for $ac_word" >&5
3978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3979 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3980 echo $ECHO_N "(cached) $ECHO_C" >&6
3981 else
3982 if test -n "$ac_ct_RANLIB"; then
3983 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3984 else
3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986 for as_dir in $PATH
3988 IFS=$as_save_IFS
3989 test -z "$as_dir" && as_dir=.
3990 for ac_exec_ext in '' $ac_executable_extensions; do
3991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3992 ac_cv_prog_ac_ct_RANLIB="ranlib"
3993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3994 break 2
3996 done
3997 done
3999 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4002 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4003 if test -n "$ac_ct_RANLIB"; then
4004 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4005 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4006 else
4007 echo "$as_me:$LINENO: result: no" >&5
4008 echo "${ECHO_T}no" >&6
4011 RANLIB=$ac_ct_RANLIB
4012 else
4013 RANLIB="$ac_cv_prog_RANLIB"
4016 for ac_prog in gawk mawk nawk awk
4018 # Extract the first word of "$ac_prog", so it can be a program name with args.
4019 set dummy $ac_prog; ac_word=$2
4020 echo "$as_me:$LINENO: checking for $ac_word" >&5
4021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4022 if test "${ac_cv_prog_AWK+set}" = set; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4024 else
4025 if test -n "$AWK"; then
4026 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4027 else
4028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029 for as_dir in $PATH
4031 IFS=$as_save_IFS
4032 test -z "$as_dir" && as_dir=.
4033 for ac_exec_ext in '' $ac_executable_extensions; do
4034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4035 ac_cv_prog_AWK="$ac_prog"
4036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4037 break 2
4039 done
4040 done
4044 AWK=$ac_cv_prog_AWK
4045 if test -n "$AWK"; then
4046 echo "$as_me:$LINENO: result: $AWK" >&5
4047 echo "${ECHO_T}$AWK" >&6
4048 else
4049 echo "$as_me:$LINENO: result: no" >&5
4050 echo "${ECHO_T}no" >&6
4053 test -n "$AWK" && break
4054 done
4056 for ac_prog in jar fastjar
4058 # Extract the first word of "$ac_prog", so it can be a program name with args.
4059 set dummy $ac_prog; ac_word=$2
4060 echo "$as_me:$LINENO: checking for $ac_word" >&5
4061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4062 if test "${ac_cv_prog_JAR+set}" = set; then
4063 echo $ECHO_N "(cached) $ECHO_C" >&6
4064 else
4065 if test -n "$JAR"; then
4066 ac_cv_prog_JAR="$JAR" # Let the user override the test.
4067 else
4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069 for as_dir in $PATH
4071 IFS=$as_save_IFS
4072 test -z "$as_dir" && as_dir=.
4073 for ac_exec_ext in '' $ac_executable_extensions; do
4074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4075 ac_cv_prog_JAR="$ac_prog"
4076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4077 break 2
4079 done
4080 done
4084 JAR=$ac_cv_prog_JAR
4085 if test -n "$JAR"; then
4086 echo "$as_me:$LINENO: result: $JAR" >&5
4087 echo "${ECHO_T}$JAR" >&6
4088 else
4089 echo "$as_me:$LINENO: result: no" >&5
4090 echo "${ECHO_T}no" >&6
4093 test -n "$JAR" && break
4094 done
4095 test -n "$JAR" || JAR="no"
4097 # Extract the first word of "zip", so it can be a program name with args.
4098 set dummy zip; ac_word=$2
4099 echo "$as_me:$LINENO: checking for $ac_word" >&5
4100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4101 if test "${ac_cv_path_ZIP+set}" = set; then
4102 echo $ECHO_N "(cached) $ECHO_C" >&6
4103 else
4104 case $ZIP in
4105 [\\/]* | ?:[\\/]*)
4106 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
4109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110 for as_dir in $PATH
4112 IFS=$as_save_IFS
4113 test -z "$as_dir" && as_dir=.
4114 for ac_exec_ext in '' $ac_executable_extensions; do
4115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4116 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
4117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4118 break 2
4120 done
4121 done
4123 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
4125 esac
4127 ZIP=$ac_cv_path_ZIP
4129 if test -n "$ZIP"; then
4130 echo "$as_me:$LINENO: result: $ZIP" >&5
4131 echo "${ECHO_T}$ZIP" >&6
4132 else
4133 echo "$as_me:$LINENO: result: no" >&5
4134 echo "${ECHO_T}no" >&6
4137 # Extract the first word of "unzip", so it can be a program name with args.
4138 set dummy unzip; ac_word=$2
4139 echo "$as_me:$LINENO: checking for $ac_word" >&5
4140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4141 if test "${ac_cv_path_UNZIP+set}" = set; then
4142 echo $ECHO_N "(cached) $ECHO_C" >&6
4143 else
4144 case $UNZIP in
4145 [\\/]* | ?:[\\/]*)
4146 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
4149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150 for as_dir in $PATH
4152 IFS=$as_save_IFS
4153 test -z "$as_dir" && as_dir=.
4154 for ac_exec_ext in '' $ac_executable_extensions; do
4155 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4156 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
4157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4158 break 2
4160 done
4161 done
4163 test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
4165 esac
4167 UNZIP=$ac_cv_path_UNZIP
4169 if test -n "$UNZIP"; then
4170 echo "$as_me:$LINENO: result: $UNZIP" >&5
4171 echo "${ECHO_T}$UNZIP" >&6
4172 else
4173 echo "$as_me:$LINENO: result: no" >&5
4174 echo "${ECHO_T}no" >&6
4179 if test "$JAR" = no; then
4180 BASH_JAR_TRUE=
4181 BASH_JAR_FALSE='#'
4182 else
4183 BASH_JAR_TRUE='#'
4184 BASH_JAR_FALSE=
4187 if test "$ZIP" = no; then
4188 if test "$JAR" = no; then
4189 { { echo "$as_me:$LINENO: error: cannot find neither zip nor jar, cannot continue" >&5
4190 echo "$as_me: error: cannot find neither zip nor jar, cannot continue" >&2;}
4191 { (exit 1); exit 1; }; }
4193 else
4194 # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
4195 JAR=`pwd`/scripts/jar
4198 # Find a good install program. We prefer a C program (faster),
4199 # so one script is as good as another. But avoid the broken or
4200 # incompatible versions:
4201 # SysV /etc/install, /usr/sbin/install
4202 # SunOS /usr/etc/install
4203 # IRIX /sbin/install
4204 # AIX /bin/install
4205 # AmigaOS /C/install, which installs bootblocks on floppy discs
4206 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4207 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4208 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4209 # OS/2's system install, which has a completely different semantic
4210 # ./install, which can be erroneously created by make from ./install.sh.
4211 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4212 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4213 if test -z "$INSTALL"; then
4214 if test "${ac_cv_path_install+set}" = set; then
4215 echo $ECHO_N "(cached) $ECHO_C" >&6
4216 else
4217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218 for as_dir in $PATH
4220 IFS=$as_save_IFS
4221 test -z "$as_dir" && as_dir=.
4222 # Account for people who put trailing slashes in PATH elements.
4223 case $as_dir/ in
4224 ./ | .// | /cC/* | \
4225 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4226 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4227 /usr/ucb/* ) ;;
4229 # OSF1 and SCO ODT 3.0 have their own names for install.
4230 # Don't use installbsd from OSF since it installs stuff as root
4231 # by default.
4232 for ac_prog in ginstall scoinst install; do
4233 for ac_exec_ext in '' $ac_executable_extensions; do
4234 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4235 if test $ac_prog = install &&
4236 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4237 # AIX install. It has an incompatible calling convention.
4239 elif test $ac_prog = install &&
4240 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4241 # program-specific install script used by HP pwplus--don't use.
4243 else
4244 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4245 break 3
4248 done
4249 done
4251 esac
4252 done
4256 if test "${ac_cv_path_install+set}" = set; then
4257 INSTALL=$ac_cv_path_install
4258 else
4259 # As a last resort, use the slow shell script. We don't cache a
4260 # path for INSTALL within a source directory, because that will
4261 # break other packages using the cache if that directory is
4262 # removed, or if the path is relative.
4263 INSTALL=$ac_install_sh
4266 echo "$as_me:$LINENO: result: $INSTALL" >&5
4267 echo "${ECHO_T}$INSTALL" >&6
4269 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4270 # It thinks the first close brace ends the variable substitution.
4271 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4273 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4275 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4278 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4279 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4280 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4281 if test "${enable_maintainer_mode+set}" = set; then
4282 enableval="$enable_maintainer_mode"
4283 USE_MAINTAINER_MODE=$enableval
4284 else
4285 USE_MAINTAINER_MODE=no
4287 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4288 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4291 if test $USE_MAINTAINER_MODE = yes; then
4292 MAINTAINER_MODE_TRUE=
4293 MAINTAINER_MODE_FALSE='#'
4294 else
4295 MAINTAINER_MODE_TRUE='#'
4296 MAINTAINER_MODE_FALSE=
4299 MAINT=$MAINTAINER_MODE_TRUE
4305 # configure.host sets the following important variables
4306 # libgcj_cflags - host specific C compiler flags
4307 # libgcj_cxxflags - host specific C++ compiler flags
4308 # libgcj_javaflags - host specific Java compiler flags
4310 libgcj_cflags=
4311 libgcj_cxxflags=
4312 libgcj_javaflags=
4314 . ${srcdir}/configure.host
4316 LIBGCJ_CFLAGS="${libgcj_cflags}"
4317 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4318 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4319 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4325 # Only use libltdl for non-newlib builds.
4326 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4327 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
4328 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4329 library_names_spec=
4330 libname_spec='lib$name'
4331 soname_spec=
4332 shrext=".so"
4333 postinstall_cmds=
4334 postuninstall_cmds=
4335 finish_cmds=
4336 finish_eval=
4337 shlibpath_var=
4338 shlibpath_overrides_runpath=unknown
4339 version_type=none
4340 dynamic_linker="$host_os ld.so"
4341 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4342 if test "$GCC" = yes; then
4343 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4344 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
4345 # if the path contains ";" then we assume it to be the separator
4346 # otherwise default to the standard path separator (i.e. ":") - it is
4347 # assumed that no part of a normal pathname contains ";" but that should
4348 # okay in the real world where ";" in dirpaths is itself problematic.
4349 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4350 else
4351 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4353 else
4354 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4356 need_lib_prefix=unknown
4357 hardcode_into_libs=no
4359 # when you set need_version to no, make sure it does not cause -set_version
4360 # flags to be left without arguments
4361 need_version=unknown
4363 case $host_os in
4364 aix3*)
4365 version_type=linux
4366 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4367 shlibpath_var=LIBPATH
4369 # AIX 3 has no versioning support, so we append a major version to the name.
4370 soname_spec='${libname}${release}${shared_ext}$major'
4373 aix4* | aix5*)
4374 version_type=linux
4375 need_lib_prefix=no
4376 need_version=no
4377 hardcode_into_libs=yes
4378 if test "$host_cpu" = ia64; then
4379 # AIX 5 supports IA64
4380 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4381 shlibpath_var=LD_LIBRARY_PATH
4382 else
4383 # With GCC up to 2.95.x, collect2 would create an import file
4384 # for dependence libraries. The import file would start with
4385 # the line `#! .'. This would cause the generated library to
4386 # depend on `.', always an invalid library. This was fixed in
4387 # development snapshots of GCC prior to 3.0.
4388 case $host_os in
4389 aix4 | aix4.[01] | aix4.[01].*)
4390 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4391 echo ' yes '
4392 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4394 else
4395 can_build_shared=no
4398 esac
4399 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4400 # soname into executable. Probably we can add versioning support to
4401 # collect2, so additional links can be useful in future.
4402 if test "$aix_use_runtimelinking" = yes; then
4403 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4404 # instead of lib<name>.a to let people know that these are not
4405 # typical AIX shared libraries.
4406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4407 else
4408 # We preserve .a as extension for shared libraries through AIX4.2
4409 # and later when we are not doing run time linking.
4410 library_names_spec='${libname}${release}.a $libname.a'
4411 soname_spec='${libname}${release}${shared_ext}$major'
4413 shlibpath_var=LIBPATH
4417 amigaos*)
4418 library_names_spec='$libname.ixlibrary $libname.a'
4419 # Create ${libname}_ixlibrary.a entries in /sys/libs.
4420 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'
4423 beos*)
4424 library_names_spec='${libname}${shared_ext}'
4425 dynamic_linker="$host_os ld.so"
4426 shlibpath_var=LIBRARY_PATH
4429 bsdi4*)
4430 version_type=linux
4431 need_version=no
4432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4433 soname_spec='${libname}${release}${shared_ext}$major'
4434 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4435 shlibpath_var=LD_LIBRARY_PATH
4436 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4437 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4438 # the default ld.so.conf also contains /usr/contrib/lib and
4439 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4440 # libtool to hard-code these into programs
4443 cygwin* | mingw* | pw32*)
4444 version_type=windows
4445 shrext=".dll"
4446 need_version=no
4447 need_lib_prefix=no
4449 case $GCC,$host_os in
4450 yes,cygwin* | yes,mingw* | yes,pw32*)
4451 library_names_spec='$libname.dll.a'
4452 # DLL is installed to $(libdir)/../bin by postinstall_cmds
4453 postinstall_cmds='base_file=`basename \${file}`~
4454 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
4455 dldir=$destdir/`dirname \$dlpath`~
4456 test -d \$dldir || mkdir -p \$dldir~
4457 $install_prog $dir/$dlname \$dldir/$dlname'
4458 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4459 dlpath=$dir/\$dldll~
4460 $rm \$dlpath'
4461 shlibpath_overrides_runpath=yes
4463 case $host_os in
4464 cygwin*)
4465 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4466 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4467 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
4469 mingw*)
4470 # MinGW DLLs use traditional 'lib' prefix
4471 soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4472 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4473 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
4474 # It is most probably a Windows format PATH printed by
4475 # mingw gcc, but we are running on Cygwin. Gcc prints its search
4476 # path with ; separators, and with drive letters. We can handle the
4477 # drive letters (cygwin fileutils understands them), so leave them,
4478 # especially as we might pass files found there to a mingw objdump,
4479 # which wouldn't understand a cygwinified path. Ahh.
4480 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4481 else
4482 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4485 pw32*)
4486 # pw32 DLLs use 'pw' prefix rather than 'lib'
4487 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
4489 esac
4493 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
4495 esac
4496 dynamic_linker='Win32 ld.exe'
4497 # FIXME: first we should search . and the directory the executable is in
4498 shlibpath_var=PATH
4501 darwin* | rhapsody*)
4502 dynamic_linker="$host_os dyld"
4503 version_type=darwin
4504 need_lib_prefix=no
4505 need_version=no
4506 # FIXME: Relying on posixy $() will cause problems for
4507 # cross-compilation, but unfortunately the echo tests do not
4508 # yet detect zsh echo's removal of \ escapes.
4509 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4510 soname_spec='${libname}${release}${major}$shared_ext'
4511 shlibpath_overrides_runpath=yes
4512 shlibpath_var=DYLD_LIBRARY_PATH
4513 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
4514 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
4515 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
4516 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"`
4518 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4521 dgux*)
4522 version_type=linux
4523 need_lib_prefix=no
4524 need_version=no
4525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4526 soname_spec='${libname}${release}${shared_ext}$major'
4527 shlibpath_var=LD_LIBRARY_PATH
4530 freebsd1*)
4531 dynamic_linker=no
4534 freebsd*)
4535 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4536 version_type=freebsd-$objformat
4537 case $version_type in
4538 freebsd-elf*)
4539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4540 need_version=no
4541 need_lib_prefix=no
4543 freebsd-*)
4544 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4545 need_version=yes
4547 esac
4548 shlibpath_var=LD_LIBRARY_PATH
4549 case $host_os in
4550 freebsd2*)
4551 shlibpath_overrides_runpath=yes
4553 freebsd3.01* | freebsdelf3.01*)
4554 shlibpath_overrides_runpath=yes
4555 hardcode_into_libs=yes
4557 *) # from 3.2 on
4558 shlibpath_overrides_runpath=no
4559 hardcode_into_libs=yes
4561 esac
4564 gnu*)
4565 version_type=linux
4566 need_lib_prefix=no
4567 need_version=no
4568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4569 soname_spec='${libname}${release}${shared_ext}$major'
4570 shlibpath_var=LD_LIBRARY_PATH
4571 hardcode_into_libs=yes
4574 hpux9* | hpux10* | hpux11*)
4575 # Give a soname corresponding to the major version so that dld.sl refuses to
4576 # link against other versions.
4577 version_type=sunos
4578 need_lib_prefix=no
4579 need_version=no
4580 case "$host_cpu" in
4581 ia64*)
4582 shrext='.so'
4583 hardcode_into_libs=yes
4584 dynamic_linker="$host_os dld.so"
4585 shlibpath_var=LD_LIBRARY_PATH
4586 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4588 soname_spec='${libname}${release}${shared_ext}$major'
4589 if test "X$HPUX_IA64_MODE" = X32; then
4590 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4591 else
4592 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4594 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4596 hppa*64*)
4597 shrext='.sl'
4598 hardcode_into_libs=yes
4599 dynamic_linker="$host_os dld.sl"
4600 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4601 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4603 soname_spec='${libname}${release}${shared_ext}$major'
4604 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
4605 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4608 shrext='.sl'
4609 dynamic_linker="$host_os dld.sl"
4610 shlibpath_var=SHLIB_PATH
4611 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4613 soname_spec='${libname}${release}${shared_ext}$major'
4615 esac
4616 # HP-UX runs *really* slowly unless shared libraries are mode 555.
4617 postinstall_cmds='chmod 555 $lib'
4620 irix5* | irix6* | nonstopux*)
4621 case $host_os in
4622 nonstopux*) version_type=nonstopux ;;
4624 if test "$lt_cv_prog_gnu_ld" = yes; then
4625 version_type=linux
4626 else
4627 version_type=irix
4628 fi ;;
4629 esac
4630 need_lib_prefix=no
4631 need_version=no
4632 soname_spec='${libname}${release}${shared_ext}$major'
4633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4634 case $host_os in
4635 irix5* | nonstopux*)
4636 libsuff= shlibsuff=
4639 case $LD in # libtool.m4 will add one of these switches to LD
4640 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
4641 libsuff= shlibsuff= libmagic=32-bit;;
4642 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
4643 libsuff=32 shlibsuff=N32 libmagic=N32;;
4644 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
4645 libsuff=64 shlibsuff=64 libmagic=64-bit;;
4646 *) libsuff= shlibsuff= libmagic=never-match;;
4647 esac
4649 esac
4650 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4651 shlibpath_overrides_runpath=no
4652 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4653 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4654 hardcode_into_libs=yes
4657 # No shared lib support for Linux oldld, aout, or coff.
4658 linux*oldld* | linux*aout* | linux*coff*)
4659 dynamic_linker=no
4662 # This must be Linux ELF.
4663 linux*|k*bsd*-gnu)
4664 version_type=linux
4665 need_lib_prefix=no
4666 need_version=no
4667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4668 soname_spec='${libname}${release}${shared_ext}$major'
4669 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4670 shlibpath_var=LD_LIBRARY_PATH
4671 shlibpath_overrides_runpath=no
4672 # This implies no fast_install, which is unacceptable.
4673 # Some rework will be needed to allow for fast_install
4674 # before this can be enabled.
4675 hardcode_into_libs=yes
4677 # We used to test for /lib/ld.so.1 and disable shared libraries on
4678 # powerpc, because MkLinux only supported shared libraries with the
4679 # GNU dynamic linker. Since this was broken with cross compilers,
4680 # most powerpc-linux boxes support dynamic linking these days and
4681 # people can always --disable-shared, the test was removed, and we
4682 # assume the GNU/Linux dynamic linker is in use.
4683 dynamic_linker='GNU/Linux ld.so'
4686 netbsd*)
4687 version_type=sunos
4688 need_lib_prefix=no
4689 need_version=no
4690 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4692 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4693 dynamic_linker='NetBSD (a.out) ld.so'
4694 else
4695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
4696 soname_spec='${libname}${release}${shared_ext}$major'
4697 dynamic_linker='NetBSD ld.elf_so'
4699 shlibpath_var=LD_LIBRARY_PATH
4700 shlibpath_overrides_runpath=yes
4701 hardcode_into_libs=yes
4704 newsos6)
4705 version_type=linux
4706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4707 shlibpath_var=LD_LIBRARY_PATH
4708 shlibpath_overrides_runpath=yes
4711 nto-qnx)
4712 version_type=linux
4713 need_lib_prefix=no
4714 need_version=no
4715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4716 soname_spec='${libname}${release}${shared_ext}$major'
4717 shlibpath_var=LD_LIBRARY_PATH
4718 shlibpath_overrides_runpath=yes
4721 openbsd*)
4722 version_type=sunos
4723 need_lib_prefix=no
4724 need_version=no
4725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4726 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4727 shlibpath_var=LD_LIBRARY_PATH
4728 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4729 case $host_os in
4730 openbsd2.[89] | openbsd2.[89].*)
4731 shlibpath_overrides_runpath=no
4734 shlibpath_overrides_runpath=yes
4736 esac
4737 else
4738 shlibpath_overrides_runpath=yes
4742 os2*)
4743 libname_spec='$name'
4744 shrext=".dll"
4745 need_lib_prefix=no
4746 library_names_spec='$libname${shared_ext} $libname.a'
4747 dynamic_linker='OS/2 ld.exe'
4748 shlibpath_var=LIBPATH
4751 osf3* | osf4* | osf5*)
4752 version_type=osf
4753 need_lib_prefix=no
4754 need_version=no
4755 soname_spec='${libname}${release}${shared_ext}$major'
4756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4757 shlibpath_var=LD_LIBRARY_PATH
4758 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4759 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4762 sco3.2v5*)
4763 version_type=osf
4764 soname_spec='${libname}${release}${shared_ext}$major'
4765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4766 shlibpath_var=LD_LIBRARY_PATH
4769 solaris*)
4770 version_type=linux
4771 need_lib_prefix=no
4772 need_version=no
4773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4774 soname_spec='${libname}${release}${shared_ext}$major'
4775 shlibpath_var=LD_LIBRARY_PATH
4776 shlibpath_overrides_runpath=yes
4777 hardcode_into_libs=yes
4778 # ldd complains unless libraries are executable
4779 postinstall_cmds='chmod +x $lib'
4782 sunos4*)
4783 version_type=sunos
4784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4785 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4786 shlibpath_var=LD_LIBRARY_PATH
4787 shlibpath_overrides_runpath=yes
4788 if test "$with_gnu_ld" = yes; then
4789 need_lib_prefix=no
4791 need_version=yes
4794 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4795 version_type=linux
4796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4797 soname_spec='${libname}${release}${shared_ext}$major'
4798 shlibpath_var=LD_LIBRARY_PATH
4799 case $host_vendor in
4800 sni)
4801 shlibpath_overrides_runpath=no
4802 need_lib_prefix=no
4803 export_dynamic_flag_spec='${wl}-Blargedynsym'
4804 runpath_var=LD_RUN_PATH
4806 siemens)
4807 need_lib_prefix=no
4809 motorola)
4810 need_lib_prefix=no
4811 need_version=no
4812 shlibpath_overrides_runpath=no
4813 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4815 esac
4818 sysv4*MP*)
4819 if test -d /usr/nec ;then
4820 version_type=linux
4821 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
4822 soname_spec='$libname${shared_ext}.$major'
4823 shlibpath_var=LD_LIBRARY_PATH
4827 uts4*)
4828 version_type=linux
4829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4830 soname_spec='${libname}${release}${shared_ext}$major'
4831 shlibpath_var=LD_LIBRARY_PATH
4835 dynamic_linker=no
4837 esac
4838 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
4839 echo "${ECHO_T}$dynamic_linker" >&6
4840 test "$dynamic_linker" = no && can_build_shared=no
4843 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
4844 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
4845 if test "${libltdl_cv_shlibpath_var+set}" = set; then
4846 echo $ECHO_N "(cached) $ECHO_C" >&6
4847 else
4848 libltdl_cv_shlibpath_var="$shlibpath_var"
4850 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
4851 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
4852 if test -n "$libltdl_cv_shlibpath_var"; then
4854 cat >>confdefs.h <<_ACEOF
4855 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
4856 _ACEOF
4862 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
4865 # See if the user has requested runtime debugging.
4866 LIBGCJDEBUG="disable"
4868 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
4869 if test "${enable_libgcj_debug+set}" = set; then
4870 enableval="$enable_libgcj_debug"
4871 if test "$enable_libgcj_debug" = yes; then
4873 cat >>confdefs.h <<\_ACEOF
4874 #define DEBUG 1
4875 _ACEOF
4877 LIBGCJDEBUG="enable"
4881 # Determine which AWT peer libraries to build
4882 # Check whether --enable-java-awt or --disable-java-awt was given.
4883 if test "${enable_java_awt+set}" = set; then
4884 enableval="$enable_java_awt"
4888 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
4889 use_xlib_awt=""
4890 use_gtk_awt=""
4891 use_qt_awt=""
4892 # The default toolkit to use is the first one specified.
4893 TOOLKIT=
4896 for peer in $peerlibs ; do
4897 case $peer in
4898 xlib)
4899 if test "$no_x" = yes; then
4900 echo "*** xlib peers requested but no X library available" 1>&2
4901 exit 1
4902 else
4903 use_xlib_awt="yes"
4904 if test -z "$TOOLKIT"; then
4905 TOOLKIT=gnu.awt.xlib.XToolkit
4909 gtk)
4910 if test "$no_x" = yes; then
4911 echo "*** gtk peers requested but no X library available" 1>&2
4912 exit 1
4913 else
4914 use_gtk_awt=yes
4915 if test -z "$TOOLKIT"; then
4916 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
4921 if test "$no_x" = yes; then
4922 # Perhaps we should admit the possibility of embedded Qt.
4923 echo "*** Qt peers requested but no X library available" 1>&2
4924 exit 1
4925 else
4926 use_qt_awt=yes
4927 if test -z "$TOOLKIT"; then
4928 TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
4933 use_xlib_awt=
4934 use_gtk_awt=
4935 use_qt_awt=
4936 break
4939 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
4940 exit 1
4941 esac
4942 done
4946 if test "$use_xlib_awt" = yes; then
4947 XLIB_AWT_TRUE=
4948 XLIB_AWT_FALSE='#'
4949 else
4950 XLIB_AWT_TRUE='#'
4951 XLIB_AWT_FALSE=
4955 # Create standard.omit based on decisions we just made.
4956 cp $srcdir/standard.omit.in standard.omit
4957 if test "$use_xlib_awt" != yes; then
4958 echo gnu/awt/xlib >> standard.omit
4959 echo gnu/gcj/xlib >> standard.omit
4962 if test -z "${with_multisubdir}"; then
4963 builddotdot=.
4964 else
4965 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
4968 NATIVE=yes
4970 # Which gcj do we use?
4971 which_gcj=default
4972 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
4973 if test -n "${with_cross_host}"; then
4974 # We are being configured with a cross compiler. We can't
4975 # use ac_exeext, because that is for the target platform.
4976 NATIVE=no
4977 cross_host_exeext=
4978 case "${with_cross_host}" in
4979 *mingw* | *cygwin*)
4980 cross_host_exeext=.exe
4982 esac
4983 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
4984 if test x"$build_noncanonical" = x"$with_cross_host"; then
4985 # Ordinary cross (host!=target and host=build)
4986 which_gcj=built
4987 else
4988 # Canadian cross (host!=target and host!=build)
4989 which_gcj=cross
4991 else
4992 which_gcj=cross
4994 else
4995 # We are being configured with a native or crossed-native compiler
4996 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
4997 if test x"$build" = x"$host"; then
4998 # True native build (host=target and host=build)
4999 which_gcj=built
5000 else
5001 # Crossed-native build (host=target and host!=build)
5002 which_gcj=cross
5004 else
5005 which_gcj=path
5008 case "${which_gcj}" in
5009 built)
5010 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
5011 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
5013 cross)
5014 if test "x${with_newlib}" = "xyes"; then
5015 # FIXME (comment): Why is this needed?
5016 GCC_UNWIND_INCLUDE=
5017 GCJ="${target_noncanonical}-gcj"
5018 else
5019 GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
5021 GCJH='$(target_noncanonical)-gcjh'
5023 path)
5024 GCJ="gcj -B`${PWDCMD-pwd}`/"
5025 GCJH=gcjh
5027 esac
5031 # Create it, so that compile/link tests don't fail
5032 test -f libgcj.spec || touch libgcj.spec
5036 # Set up to configure Classpath.
5037 # FIXME: no supported way to pass args in autoconf.
5038 ac_configure_args="$ac_configure_args --with-fastjar=$JAR"
5039 ac_configure_args="$ac_configure_args --enable-tool-wrappers"
5040 ac_configure_args="$ac_configure_args --disable-load-library"
5041 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
5042 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
5043 dir1=`cd $srcdir && pwd`
5044 dir2=`pwd`
5045 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
5046 ac_configure_args="$ac_configure_args --disable-core-jni"
5047 ac_configure_args="$ac_configure_args --disable-examples"
5048 ac_configure_args="$ac_configure_args --with-glibj=build"
5049 if test "$plugin_enabled" != yes; then
5050 ac_configure_args="$ac_configure_args --disable-plugin"
5052 if test "$gconf_enabled" != yes; then
5053 ac_configure_args="$ac_configure_args --disable-gconf-peer"
5054 ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
5056 if test "$use_gtk_awt" != yes; then
5057 ac_configure_args="$ac_configure_args --disable-gtk-peer"
5059 if test "$use_qt_awt" != yes; then
5060 ac_configure_args="$ac_configure_args --disable-qt-peer"
5061 else
5062 # We need this as qt is disabled by default in classpath.
5063 ac_configure_args="$ac_configure_args --enable-qt-peer"
5066 # Only use libltdl for non-newlib builds.
5067 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5068 case $enable_ltdl_convenience in
5069 no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
5070 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
5071 { (exit 1); exit 1; }; } ;;
5072 "") enable_ltdl_convenience=yes
5073 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
5074 esac
5075 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
5076 INCLTDL='-I${top_srcdir}/''libltdl'
5079 DIRLTDL=libltdl
5081 cat >>confdefs.h <<\_ACEOF
5082 #define USE_LTDL 1
5083 _ACEOF
5085 # Sigh. Libtool's macro doesn't do the right thing.
5086 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
5087 # FIXME: this is a hack.
5088 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
5089 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
5094 # Check whether --enable-shared or --disable-shared was given.
5095 if test "${enable_shared+set}" = set; then
5096 enableval="$enable_shared"
5097 p=${PACKAGE-default}
5098 case $enableval in
5099 yes) enable_shared=yes ;;
5100 no) enable_shared=no ;;
5102 enable_shared=no
5103 # Look at the argument we got. We use all the common list separators.
5104 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5105 for pkg in $enableval; do
5106 if test "X$pkg" = "X$p"; then
5107 enable_shared=yes
5109 done
5110 IFS="$ac_save_ifs"
5112 esac
5113 else
5114 enable_shared=yes
5116 # Check whether --enable-static or --disable-static was given.
5117 if test "${enable_static+set}" = set; then
5118 enableval="$enable_static"
5119 p=${PACKAGE-default}
5120 case $enableval in
5121 yes) enable_static=yes ;;
5122 no) enable_static=no ;;
5124 enable_static=no
5125 # Look at the argument we got. We use all the common list separators.
5126 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5127 for pkg in $enableval; do
5128 if test "X$pkg" = "X$p"; then
5129 enable_static=yes
5131 done
5132 IFS="$ac_save_ifs"
5134 esac
5135 else
5136 enable_static=yes
5138 # Check whether --enable-fast-install or --disable-fast-install was given.
5139 if test "${enable_fast_install+set}" = set; then
5140 enableval="$enable_fast_install"
5141 p=${PACKAGE-default}
5142 case $enableval in
5143 yes) enable_fast_install=yes ;;
5144 no) enable_fast_install=no ;;
5146 enable_fast_install=no
5147 # Look at the argument we got. We use all the common list separators.
5148 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5149 for pkg in $enableval; do
5150 if test "X$pkg" = "X$p"; then
5151 enable_fast_install=yes
5153 done
5154 IFS="$ac_save_ifs"
5156 esac
5157 else
5158 enable_fast_install=yes
5161 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5162 if test "${with_gnu_ld+set}" = set; then
5163 withval="$with_gnu_ld"
5164 test "$withval" = no || with_gnu_ld=yes
5165 else
5166 with_gnu_ld=no
5168 ac_prog=ld
5169 if test "$GCC" = yes; then
5170 # Check if gcc -print-prog-name=ld gives a path.
5171 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5172 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5173 case $host in
5174 *-*-mingw*)
5175 # gcc leaves a trailing carriage return which upsets mingw
5176 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5178 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5179 esac
5180 case $ac_prog in
5181 # Accept absolute paths.
5182 [\\/]* | [A-Za-z]:[\\/]*)
5183 re_direlt='/[^/][^/]*/\.\./'
5184 # Canonicalize the path of ld
5185 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5186 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5187 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5188 done
5189 test -z "$LD" && LD="$ac_prog"
5192 # If it fails, then pretend we aren't using GCC.
5193 ac_prog=ld
5196 # If it is relative, then search for the first ld in PATH.
5197 with_gnu_ld=unknown
5199 esac
5200 elif test "$with_gnu_ld" = yes; then
5201 echo "$as_me:$LINENO: checking for GNU ld" >&5
5202 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5203 else
5204 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5205 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5207 if test "${lt_cv_path_LD+set}" = set; then
5208 echo $ECHO_N "(cached) $ECHO_C" >&6
5209 else
5210 if test -z "$LD"; then
5211 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5212 for ac_dir in $PATH; do
5213 test -z "$ac_dir" && ac_dir=.
5214 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5215 lt_cv_path_LD="$ac_dir/$ac_prog"
5216 # Check to see if the program is GNU ld. I'd rather use --version,
5217 # but apparently some GNU ld's only accept -v.
5218 # Break only if it was the GNU/non-GNU ld that we prefer.
5219 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5220 test "$with_gnu_ld" != no && break
5221 else
5222 test "$with_gnu_ld" != yes && break
5225 done
5226 IFS="$ac_save_ifs"
5227 else
5228 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5232 LD="$lt_cv_path_LD"
5233 if test -n "$LD"; then
5234 echo "$as_me:$LINENO: result: $LD" >&5
5235 echo "${ECHO_T}$LD" >&6
5236 else
5237 echo "$as_me:$LINENO: result: no" >&5
5238 echo "${ECHO_T}no" >&6
5240 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5241 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5242 { (exit 1); exit 1; }; }
5243 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5244 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5245 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5246 echo $ECHO_N "(cached) $ECHO_C" >&6
5247 else
5248 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5249 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5250 lt_cv_prog_gnu_ld=yes
5251 else
5252 lt_cv_prog_gnu_ld=no
5255 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5256 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5257 with_gnu_ld=$lt_cv_prog_gnu_ld
5260 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5261 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5262 if test "${lt_cv_ld_reload_flag+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5264 else
5265 lt_cv_ld_reload_flag='-r'
5267 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5268 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5269 reload_flag=$lt_cv_ld_reload_flag
5270 test -n "$reload_flag" && reload_flag=" $reload_flag"
5272 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5273 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5274 if test "${lt_cv_path_NM+set}" = set; then
5275 echo $ECHO_N "(cached) $ECHO_C" >&6
5276 else
5277 if test -n "$NM"; then
5278 # Let the user override the test.
5279 lt_cv_path_NM="$NM"
5280 else
5281 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5282 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5283 test -z "$ac_dir" && ac_dir=.
5284 tmp_nm=$ac_dir/${ac_tool_prefix}nm
5285 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
5286 # Check to see if the nm accepts a BSD-compat flag.
5287 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5288 # nm: unknown option "B" ignored
5289 # Tru64's nm complains that /dev/null is an invalid object file
5290 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
5291 lt_cv_path_NM="$tmp_nm -B"
5292 break
5293 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
5294 lt_cv_path_NM="$tmp_nm -p"
5295 break
5296 else
5297 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5298 continue # so that we can try to find one that supports BSD flags
5301 done
5302 IFS="$ac_save_ifs"
5303 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5307 NM="$lt_cv_path_NM"
5308 echo "$as_me:$LINENO: result: $NM" >&5
5309 echo "${ECHO_T}$NM" >&6
5311 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
5312 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
5313 if test "${lt_cv_deplibs_check_method+set}" = set; then
5314 echo $ECHO_N "(cached) $ECHO_C" >&6
5315 else
5316 lt_cv_file_magic_cmd='$MAGIC_CMD'
5317 lt_cv_file_magic_test_file=
5318 lt_cv_deplibs_check_method='unknown'
5319 # Need to set the preceding variable on all platforms that support
5320 # interlibrary dependencies.
5321 # 'none' -- dependencies not supported.
5322 # `unknown' -- same as none, but documents that we really don't know.
5323 # 'pass_all' -- all dependencies passed with no checks.
5324 # 'test_compile' -- check by making test program.
5325 # 'file_magic [regex]' -- check by looking for files in library path
5326 # which responds to the $file_magic_cmd with a given egrep regex.
5327 # If you have `file' or equivalent on your system and you're not sure
5328 # whether `pass_all' will *always* work, you probably want this one.
5330 case $host_os in
5331 aix*)
5332 lt_cv_deplibs_check_method=pass_all
5335 beos*)
5336 lt_cv_deplibs_check_method=pass_all
5339 bsdi4*)
5340 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5341 lt_cv_file_magic_cmd='/usr/bin/file -L'
5342 lt_cv_file_magic_test_file=/shlib/libc.so
5345 cygwin* | mingw* |pw32*)
5346 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5347 lt_cv_file_magic_cmd='$OBJDUMP -f'
5350 darwin* | rhapsody*)
5351 # this will be overwritten by pass_all, but leave it in just in case
5352 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5353 lt_cv_file_magic_cmd='/usr/bin/file -L'
5354 case "$host_os" in
5355 rhapsody* | darwin1.012)
5356 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
5358 *) # Darwin 1.3 on
5359 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5361 esac
5362 lt_cv_deplibs_check_method=pass_all
5365 freebsd* | kfreebsd*-gnu)
5366 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5367 case $host_cpu in
5368 i*86 )
5369 # Not sure whether the presence of OpenBSD here was a mistake.
5370 # Let's accept both of them until this is cleared up.
5371 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5372 lt_cv_file_magic_cmd=/usr/bin/file
5373 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5375 esac
5376 else
5377 lt_cv_deplibs_check_method=pass_all
5381 gnu*)
5382 lt_cv_deplibs_check_method=pass_all
5385 hpux10.20*|hpux11*)
5386 case $host_cpu in
5387 hppa*)
5388 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5389 lt_cv_file_magic_cmd=/usr/bin/file
5390 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5392 ia64*)
5393 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5394 lt_cv_file_magic_cmd=/usr/bin/file
5395 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5397 esac
5400 irix5* | irix6*)
5401 case $host_os in
5402 irix5*)
5403 # this will be overridden with pass_all, but let us keep it just in case
5404 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5407 case $LD in
5408 *-32|*"-32 ") libmagic=32-bit;;
5409 *-n32|*"-n32 ") libmagic=N32;;
5410 *-64|*"-64 ") libmagic=64-bit;;
5411 *) libmagic=never-match;;
5412 esac
5413 # this will be overridden with pass_all, but let us keep it just in case
5414 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5416 esac
5417 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5418 lt_cv_deplibs_check_method=pass_all
5421 # This must be Linux ELF.
5422 linux-gnu*)
5423 lt_cv_deplibs_check_method=pass_all
5426 netbsd* | knetbsd*-gnu)
5427 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5428 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
5429 else
5430 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
5434 newsos6)
5435 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5436 lt_cv_file_magic_cmd=/usr/bin/file
5437 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5440 osf3* | osf4* | osf5*)
5441 # this will be overridden with pass_all, but let us keep it just in case
5442 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5443 lt_cv_file_magic_test_file=/shlib/libc.so
5444 lt_cv_deplibs_check_method=pass_all
5447 sco3.2v5*)
5448 lt_cv_deplibs_check_method=pass_all
5451 solaris*)
5452 lt_cv_deplibs_check_method=pass_all
5453 lt_cv_file_magic_test_file=/lib/libc.so
5456 sysv5uw[78]* | sysv4*uw2*)
5457 lt_cv_deplibs_check_method=pass_all
5460 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5461 case $host_vendor in
5462 ncr)
5463 lt_cv_deplibs_check_method=pass_all
5465 motorola)
5466 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]'
5467 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5469 esac
5471 esac
5474 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5475 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5476 file_magic_cmd=$lt_cv_file_magic_cmd
5477 deplibs_check_method=$lt_cv_deplibs_check_method
5482 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5484 # find the maximum length of command line arguments
5485 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5486 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5487 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5488 echo $ECHO_N "(cached) $ECHO_C" >&6
5489 else
5491 teststring="ABCD"
5493 case $build_os in
5494 msdosdjgpp*)
5495 # On DJGPP, this test can blow up pretty badly due to problems in libc
5496 # (any single argument exceeding 2000 bytes causes a buffer overrun
5497 # during glob expansion). Even if it were fixed, the result of this
5498 # check would be larger than it should be.
5499 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5502 cygwin* | mingw*)
5503 # On Win9x/ME, this test blows up -- it succeeds, but takes
5504 # about 5 minutes as the teststring grows exponentially.
5505 # Worse, since 9x/ME are not pre-emptively multitasking,
5506 # you end up with a "frozen" computer, even though with patience
5507 # the test eventually succeeds (with a max line length of 256k).
5508 # Instead, let's just punt: use the minimum linelength reported by
5509 # all of the supported platforms: 8192 (on NT/2K/XP).
5510 lt_cv_sys_max_cmd_len=8192;
5513 amigaos*)
5514 # On AmigaOS with pdksh, this test takes hours, literally.
5515 # So we just punt and use a minimum line length of 8192.
5516 lt_cv_sys_max_cmd_len=8192;
5519 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5520 # This has been around since 386BSD, at least. Likely further.
5521 if test -x /sbin/sysctl; then
5522 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5523 elif test -x /usr/sbin/sysctl; then
5524 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5525 else
5526 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5528 # And add a safety zone
5529 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5530 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5532 esac
5536 if test -n "$lt_cv_sys_max_cmd_len" ; then
5537 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5538 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5539 else
5540 echo "$as_me:$LINENO: result: none" >&5
5541 echo "${ECHO_T}none" >&6
5545 # Only perform the check for file, if the check method requires it
5546 case $deplibs_check_method in
5547 file_magic*)
5548 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5549 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5550 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5551 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5552 echo $ECHO_N "(cached) $ECHO_C" >&6
5553 else
5554 case $MAGIC_CMD in
5556 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5558 ?:/*)
5559 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5562 ac_save_MAGIC_CMD="$MAGIC_CMD"
5563 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5564 ac_dummy="/usr/bin:$PATH"
5565 for ac_dir in $ac_dummy; do
5566 test -z "$ac_dir" && ac_dir=.
5567 if test -f $ac_dir/${ac_tool_prefix}file; then
5568 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5569 if test -n "$file_magic_test_file"; then
5570 case $deplibs_check_method in
5571 "file_magic "*)
5572 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5573 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5574 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5575 egrep "$file_magic_regex" > /dev/null; then
5577 else
5578 cat <<EOF 1>&2
5580 *** Warning: the command libtool uses to detect shared libraries,
5581 *** $file_magic_cmd, produces output that libtool cannot recognize.
5582 *** The result is that libtool may fail to recognize shared libraries
5583 *** as such. This will affect the creation of libtool libraries that
5584 *** depend on shared libraries, but programs linked with such libtool
5585 *** libraries will work regardless of this problem. Nevertheless, you
5586 *** may want to report the problem to your system manager and/or to
5587 *** bug-libtool@gnu.org
5590 fi ;;
5591 esac
5593 break
5595 done
5596 IFS="$ac_save_ifs"
5597 MAGIC_CMD="$ac_save_MAGIC_CMD"
5599 esac
5602 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5603 if test -n "$MAGIC_CMD"; then
5604 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5605 echo "${ECHO_T}$MAGIC_CMD" >&6
5606 else
5607 echo "$as_me:$LINENO: result: no" >&5
5608 echo "${ECHO_T}no" >&6
5611 if test -z "$lt_cv_path_MAGIC_CMD"; then
5612 if test -n "$ac_tool_prefix"; then
5613 echo "$as_me:$LINENO: checking for file" >&5
5614 echo $ECHO_N "checking for file... $ECHO_C" >&6
5615 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5616 echo $ECHO_N "(cached) $ECHO_C" >&6
5617 else
5618 case $MAGIC_CMD in
5620 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5622 ?:/*)
5623 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5626 ac_save_MAGIC_CMD="$MAGIC_CMD"
5627 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5628 ac_dummy="/usr/bin:$PATH"
5629 for ac_dir in $ac_dummy; do
5630 test -z "$ac_dir" && ac_dir=.
5631 if test -f $ac_dir/file; then
5632 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5633 if test -n "$file_magic_test_file"; then
5634 case $deplibs_check_method in
5635 "file_magic "*)
5636 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5637 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5638 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5639 egrep "$file_magic_regex" > /dev/null; then
5641 else
5642 cat <<EOF 1>&2
5644 *** Warning: the command libtool uses to detect shared libraries,
5645 *** $file_magic_cmd, produces output that libtool cannot recognize.
5646 *** The result is that libtool may fail to recognize shared libraries
5647 *** as such. This will affect the creation of libtool libraries that
5648 *** depend on shared libraries, but programs linked with such libtool
5649 *** libraries will work regardless of this problem. Nevertheless, you
5650 *** may want to report the problem to your system manager and/or to
5651 *** bug-libtool@gnu.org
5654 fi ;;
5655 esac
5657 break
5659 done
5660 IFS="$ac_save_ifs"
5661 MAGIC_CMD="$ac_save_MAGIC_CMD"
5663 esac
5666 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5667 if test -n "$MAGIC_CMD"; then
5668 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5669 echo "${ECHO_T}$MAGIC_CMD" >&6
5670 else
5671 echo "$as_me:$LINENO: result: no" >&5
5672 echo "${ECHO_T}no" >&6
5675 else
5676 MAGIC_CMD=:
5682 esac
5684 if test -n "$ac_tool_prefix"; then
5685 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5686 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5687 echo "$as_me:$LINENO: checking for $ac_word" >&5
5688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5689 if test "${ac_cv_prog_RANLIB+set}" = set; then
5690 echo $ECHO_N "(cached) $ECHO_C" >&6
5691 else
5692 if test -n "$RANLIB"; then
5693 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5694 else
5695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696 for as_dir in $PATH
5698 IFS=$as_save_IFS
5699 test -z "$as_dir" && as_dir=.
5700 for ac_exec_ext in '' $ac_executable_extensions; do
5701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5702 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5704 break 2
5706 done
5707 done
5711 RANLIB=$ac_cv_prog_RANLIB
5712 if test -n "$RANLIB"; then
5713 echo "$as_me:$LINENO: result: $RANLIB" >&5
5714 echo "${ECHO_T}$RANLIB" >&6
5715 else
5716 echo "$as_me:$LINENO: result: no" >&5
5717 echo "${ECHO_T}no" >&6
5721 if test -z "$ac_cv_prog_RANLIB"; then
5722 ac_ct_RANLIB=$RANLIB
5723 # Extract the first word of "ranlib", so it can be a program name with args.
5724 set dummy ranlib; ac_word=$2
5725 echo "$as_me:$LINENO: checking for $ac_word" >&5
5726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5727 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5728 echo $ECHO_N "(cached) $ECHO_C" >&6
5729 else
5730 if test -n "$ac_ct_RANLIB"; then
5731 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5732 else
5733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5734 for as_dir in $PATH
5736 IFS=$as_save_IFS
5737 test -z "$as_dir" && as_dir=.
5738 for ac_exec_ext in '' $ac_executable_extensions; do
5739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5740 ac_cv_prog_ac_ct_RANLIB="ranlib"
5741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5742 break 2
5744 done
5745 done
5747 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5750 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5751 if test -n "$ac_ct_RANLIB"; then
5752 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5753 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5754 else
5755 echo "$as_me:$LINENO: result: no" >&5
5756 echo "${ECHO_T}no" >&6
5759 RANLIB=$ac_ct_RANLIB
5760 else
5761 RANLIB="$ac_cv_prog_RANLIB"
5764 if test -n "$ac_tool_prefix"; then
5765 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5766 set dummy ${ac_tool_prefix}strip; ac_word=$2
5767 echo "$as_me:$LINENO: checking for $ac_word" >&5
5768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5769 if test "${ac_cv_prog_STRIP+set}" = set; then
5770 echo $ECHO_N "(cached) $ECHO_C" >&6
5771 else
5772 if test -n "$STRIP"; then
5773 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5774 else
5775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776 for as_dir in $PATH
5778 IFS=$as_save_IFS
5779 test -z "$as_dir" && as_dir=.
5780 for ac_exec_ext in '' $ac_executable_extensions; do
5781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5782 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5784 break 2
5786 done
5787 done
5791 STRIP=$ac_cv_prog_STRIP
5792 if test -n "$STRIP"; then
5793 echo "$as_me:$LINENO: result: $STRIP" >&5
5794 echo "${ECHO_T}$STRIP" >&6
5795 else
5796 echo "$as_me:$LINENO: result: no" >&5
5797 echo "${ECHO_T}no" >&6
5801 if test -z "$ac_cv_prog_STRIP"; then
5802 ac_ct_STRIP=$STRIP
5803 # Extract the first word of "strip", so it can be a program name with args.
5804 set dummy strip; ac_word=$2
5805 echo "$as_me:$LINENO: checking for $ac_word" >&5
5806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5807 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5808 echo $ECHO_N "(cached) $ECHO_C" >&6
5809 else
5810 if test -n "$ac_ct_STRIP"; then
5811 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5812 else
5813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5814 for as_dir in $PATH
5816 IFS=$as_save_IFS
5817 test -z "$as_dir" && as_dir=.
5818 for ac_exec_ext in '' $ac_executable_extensions; do
5819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5820 ac_cv_prog_ac_ct_STRIP="strip"
5821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5822 break 2
5824 done
5825 done
5827 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5830 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5831 if test -n "$ac_ct_STRIP"; then
5832 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5833 echo "${ECHO_T}$ac_ct_STRIP" >&6
5834 else
5835 echo "$as_me:$LINENO: result: no" >&5
5836 echo "${ECHO_T}no" >&6
5839 STRIP=$ac_ct_STRIP
5840 else
5841 STRIP="$ac_cv_prog_STRIP"
5845 # Check for any special flags to pass to ltconfig.
5846 libtool_flags="--cache-file=$cache_file"
5847 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
5848 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
5849 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
5850 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
5851 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
5854 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5855 if test "${enable_libtool_lock+set}" = set; then
5856 enableval="$enable_libtool_lock"
5859 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
5860 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
5863 # Check whether --with-pic or --without-pic was given.
5864 if test "${with_pic+set}" = set; then
5865 withval="$with_pic"
5866 pic_mode="$withval"
5867 else
5868 pic_mode=default
5870 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
5871 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
5873 # Some flags need to be propagated to the compiler or linker for good
5874 # libtool support.
5875 case $host in
5876 *-*-irix6*)
5877 # Find out which ABI we are using.
5878 echo '#line 5878 "configure"' > conftest.$ac_ext
5879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5880 (eval $ac_compile) 2>&5
5881 ac_status=$?
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); }; then
5884 if test "$lt_cv_prog_gnu_ld" = yes; then
5885 case `/usr/bin/file conftest.$ac_objext` in
5886 *32-bit*)
5887 LD="${LD-ld} -melf32bsmip"
5889 *N32*)
5890 LD="${LD-ld} -melf32bmipn32"
5892 *64-bit*)
5893 LD="${LD-ld} -melf64bmip"
5895 esac
5896 else
5897 case `/usr/bin/file conftest.$ac_objext` in
5898 *32-bit*)
5899 LD="${LD-ld} -32"
5901 *N32*)
5902 LD="${LD-ld} -n32"
5904 *64-bit*)
5905 LD="${LD-ld} -64"
5907 esac
5910 rm -rf conftest*
5913 ia64-*-hpux*)
5914 # Find out which ABI we are using.
5915 echo 'int i;' > conftest.$ac_ext
5916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5917 (eval $ac_compile) 2>&5
5918 ac_status=$?
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); }; then
5921 case "`/usr/bin/file conftest.o`" in
5922 *ELF-32*)
5923 HPUX_IA64_MODE="32"
5925 *ELF-64*)
5926 HPUX_IA64_MODE="64"
5928 esac
5930 rm -rf conftest*
5933 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5934 # Find out which ABI we are using.
5935 echo 'int i;' > conftest.$ac_ext
5936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5937 (eval $ac_compile) 2>&5
5938 ac_status=$?
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); }; then
5941 case "`/usr/bin/file conftest.o`" in
5942 *32-bit*)
5943 case $host in
5944 x86_64-*linux*)
5945 LD="${LD-ld} -m elf_i386"
5947 ppc64-*linux*|powerpc64-*linux*)
5948 LD="${LD-ld} -m elf32ppclinux"
5950 s390x-*linux*)
5951 LD="${LD-ld} -m elf_s390"
5953 sparc64-*linux*)
5954 LD="${LD-ld} -m elf32_sparc"
5956 esac
5958 *64-bit*)
5959 case $host in
5960 x86_64-*linux*)
5961 LD="${LD-ld} -m elf_x86_64"
5963 ppc*-*linux*|powerpc*-*linux*)
5964 LD="${LD-ld} -m elf64ppc"
5966 s390*-*linux*)
5967 LD="${LD-ld} -m elf64_s390"
5969 sparc*-*linux*)
5970 LD="${LD-ld} -m elf64_sparc"
5972 esac
5974 esac
5976 rm -rf conftest*
5979 *-*-sco3.2v5*)
5980 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5981 SAVE_CFLAGS="$CFLAGS"
5982 CFLAGS="$CFLAGS -belf"
5983 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5984 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5985 if test "${lt_cv_cc_needs_belf+set}" = set; then
5986 echo $ECHO_N "(cached) $ECHO_C" >&6
5987 else
5990 ac_ext=c
5991 ac_cpp='$CPP $CPPFLAGS'
5992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5996 if test x$gcc_no_link = xyes; then
5997 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5998 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5999 { (exit 1); exit 1; }; }
6001 cat >conftest.$ac_ext <<_ACEOF
6002 /* confdefs.h. */
6003 _ACEOF
6004 cat confdefs.h >>conftest.$ac_ext
6005 cat >>conftest.$ac_ext <<_ACEOF
6006 /* end confdefs.h. */
6009 main ()
6013 return 0;
6015 _ACEOF
6016 rm -f conftest.$ac_objext conftest$ac_exeext
6017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6018 (eval $ac_link) 2>conftest.er1
6019 ac_status=$?
6020 grep -v '^ *+' conftest.er1 >conftest.err
6021 rm -f conftest.er1
6022 cat conftest.err >&5
6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); } &&
6025 { ac_try='test -z "$ac_c_werror_flag"
6026 || test ! -s conftest.err'
6027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6028 (eval $ac_try) 2>&5
6029 ac_status=$?
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); }; } &&
6032 { ac_try='test -s conftest$ac_exeext'
6033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6034 (eval $ac_try) 2>&5
6035 ac_status=$?
6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); }; }; then
6038 lt_cv_cc_needs_belf=yes
6039 else
6040 echo "$as_me: failed program was:" >&5
6041 sed 's/^/| /' conftest.$ac_ext >&5
6043 lt_cv_cc_needs_belf=no
6045 rm -f conftest.err conftest.$ac_objext \
6046 conftest$ac_exeext conftest.$ac_ext
6047 ac_ext=c
6048 ac_cpp='$CPP $CPPFLAGS'
6049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6054 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6055 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6056 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6057 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6058 CFLAGS="$SAVE_CFLAGS"
6063 esac
6066 # Save cache, so that ltconfig can load it
6067 cat >confcache <<\_ACEOF
6068 # This file is a shell script that caches the results of configure
6069 # tests run on this system so they can be shared between configure
6070 # scripts and configure runs, see configure's option --config-cache.
6071 # It is not useful on other systems. If it contains results you don't
6072 # want to keep, you may remove or edit it.
6074 # config.status only pays attention to the cache file if you give it
6075 # the --recheck option to rerun configure.
6077 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6078 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6079 # following values.
6081 _ACEOF
6083 # The following way of writing the cache mishandles newlines in values,
6084 # but we know of no workaround that is simple, portable, and efficient.
6085 # So, don't put newlines in cache variables' values.
6086 # Ultrix sh set writes to stderr and can't be redirected directly,
6087 # and sets the high bit in the cache file unless we assign to the vars.
6089 (set) 2>&1 |
6090 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6091 *ac_space=\ *)
6092 # `set' does not quote correctly, so add quotes (double-quote
6093 # substitution turns \\\\ into \\, and sed turns \\ into \).
6094 sed -n \
6095 "s/'/'\\\\''/g;
6096 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6099 # `set' quotes correctly as required by POSIX, so do not add quotes.
6100 sed -n \
6101 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6103 esac;
6105 sed '
6106 t clear
6107 : clear
6108 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6109 t end
6110 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6111 : end' >>confcache
6112 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6113 if test -w $cache_file; then
6114 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6115 cat confcache >$cache_file
6116 else
6117 echo "not updating unwritable cache $cache_file"
6120 rm -f confcache
6122 # Actually configure libtool. ac_aux_dir is where install-sh is found.
6123 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
6124 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6125 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6126 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6127 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6128 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
6129 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
6130 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
6131 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
6132 echo "$as_me: error: libtool configure failed" >&2;}
6133 { (exit 1); exit 1; }; }
6135 # Reload cache, that may have been modified by ltconfig
6136 if test -r "$cache_file"; then
6137 # Some versions of bash will fail to source /dev/null (special
6138 # files actually), so we avoid doing that.
6139 if test -f "$cache_file"; then
6140 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
6141 echo "$as_me: loading cache $cache_file" >&6;}
6142 case $cache_file in
6143 [\\/]* | ?:[\\/]* ) . $cache_file;;
6144 *) . ./$cache_file;;
6145 esac
6147 else
6148 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
6149 echo "$as_me: creating cache $cache_file" >&6;}
6150 >$cache_file
6154 # This can be used to rebuild libtool when needed
6155 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
6157 # Always use our own libtool.
6158 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6160 # Redirect the config.log output again, so that the ltconfig log is not
6161 # clobbered by the next message.
6162 exec 5>>./config.log
6164 ac_ext=cc
6165 ac_cpp='$CXXCPP $CPPFLAGS'
6166 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6167 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6168 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6169 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6170 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6171 if test -z "$CXXCPP"; then
6172 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6173 echo $ECHO_N "(cached) $ECHO_C" >&6
6174 else
6175 # Double quotes because CXXCPP needs to be expanded
6176 for CXXCPP in "$CXX -E" "/lib/cpp"
6178 ac_preproc_ok=false
6179 for ac_cxx_preproc_warn_flag in '' yes
6181 # Use a header file that comes with gcc, so configuring glibc
6182 # with a fresh cross-compiler works.
6183 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6184 # <limits.h> exists even on freestanding compilers.
6185 # On the NeXT, cc -E runs the code through the compiler's parser,
6186 # not just through cpp. "Syntax error" is here to catch this case.
6187 cat >conftest.$ac_ext <<_ACEOF
6188 /* confdefs.h. */
6189 _ACEOF
6190 cat confdefs.h >>conftest.$ac_ext
6191 cat >>conftest.$ac_ext <<_ACEOF
6192 /* end confdefs.h. */
6193 #ifdef __STDC__
6194 # include <limits.h>
6195 #else
6196 # include <assert.h>
6197 #endif
6198 Syntax error
6199 _ACEOF
6200 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6201 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6202 ac_status=$?
6203 grep -v '^ *+' conftest.er1 >conftest.err
6204 rm -f conftest.er1
6205 cat conftest.err >&5
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); } >/dev/null; then
6208 if test -s conftest.err; then
6209 ac_cpp_err=$ac_cxx_preproc_warn_flag
6210 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6211 else
6212 ac_cpp_err=
6214 else
6215 ac_cpp_err=yes
6217 if test -z "$ac_cpp_err"; then
6219 else
6220 echo "$as_me: failed program was:" >&5
6221 sed 's/^/| /' conftest.$ac_ext >&5
6223 # Broken: fails on valid input.
6224 continue
6226 rm -f conftest.err conftest.$ac_ext
6228 # OK, works on sane cases. Now check whether non-existent headers
6229 # can be detected and how.
6230 cat >conftest.$ac_ext <<_ACEOF
6231 /* confdefs.h. */
6232 _ACEOF
6233 cat confdefs.h >>conftest.$ac_ext
6234 cat >>conftest.$ac_ext <<_ACEOF
6235 /* end confdefs.h. */
6236 #include <ac_nonexistent.h>
6237 _ACEOF
6238 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6239 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6240 ac_status=$?
6241 grep -v '^ *+' conftest.er1 >conftest.err
6242 rm -f conftest.er1
6243 cat conftest.err >&5
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); } >/dev/null; then
6246 if test -s conftest.err; then
6247 ac_cpp_err=$ac_cxx_preproc_warn_flag
6248 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6249 else
6250 ac_cpp_err=
6252 else
6253 ac_cpp_err=yes
6255 if test -z "$ac_cpp_err"; then
6256 # Broken: success on invalid input.
6257 continue
6258 else
6259 echo "$as_me: failed program was:" >&5
6260 sed 's/^/| /' conftest.$ac_ext >&5
6262 # Passes both tests.
6263 ac_preproc_ok=:
6264 break
6266 rm -f conftest.err conftest.$ac_ext
6268 done
6269 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6270 rm -f conftest.err conftest.$ac_ext
6271 if $ac_preproc_ok; then
6272 break
6275 done
6276 ac_cv_prog_CXXCPP=$CXXCPP
6279 CXXCPP=$ac_cv_prog_CXXCPP
6280 else
6281 ac_cv_prog_CXXCPP=$CXXCPP
6283 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6284 echo "${ECHO_T}$CXXCPP" >&6
6285 ac_preproc_ok=false
6286 for ac_cxx_preproc_warn_flag in '' yes
6288 # Use a header file that comes with gcc, so configuring glibc
6289 # with a fresh cross-compiler works.
6290 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6291 # <limits.h> exists even on freestanding compilers.
6292 # On the NeXT, cc -E runs the code through the compiler's parser,
6293 # not just through cpp. "Syntax error" is here to catch this case.
6294 cat >conftest.$ac_ext <<_ACEOF
6295 /* confdefs.h. */
6296 _ACEOF
6297 cat confdefs.h >>conftest.$ac_ext
6298 cat >>conftest.$ac_ext <<_ACEOF
6299 /* end confdefs.h. */
6300 #ifdef __STDC__
6301 # include <limits.h>
6302 #else
6303 # include <assert.h>
6304 #endif
6305 Syntax error
6306 _ACEOF
6307 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6308 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6309 ac_status=$?
6310 grep -v '^ *+' conftest.er1 >conftest.err
6311 rm -f conftest.er1
6312 cat conftest.err >&5
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); } >/dev/null; then
6315 if test -s conftest.err; then
6316 ac_cpp_err=$ac_cxx_preproc_warn_flag
6317 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6318 else
6319 ac_cpp_err=
6321 else
6322 ac_cpp_err=yes
6324 if test -z "$ac_cpp_err"; then
6326 else
6327 echo "$as_me: failed program was:" >&5
6328 sed 's/^/| /' conftest.$ac_ext >&5
6330 # Broken: fails on valid input.
6331 continue
6333 rm -f conftest.err conftest.$ac_ext
6335 # OK, works on sane cases. Now check whether non-existent headers
6336 # can be detected and how.
6337 cat >conftest.$ac_ext <<_ACEOF
6338 /* confdefs.h. */
6339 _ACEOF
6340 cat confdefs.h >>conftest.$ac_ext
6341 cat >>conftest.$ac_ext <<_ACEOF
6342 /* end confdefs.h. */
6343 #include <ac_nonexistent.h>
6344 _ACEOF
6345 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6347 ac_status=$?
6348 grep -v '^ *+' conftest.er1 >conftest.err
6349 rm -f conftest.er1
6350 cat conftest.err >&5
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); } >/dev/null; then
6353 if test -s conftest.err; then
6354 ac_cpp_err=$ac_cxx_preproc_warn_flag
6355 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6356 else
6357 ac_cpp_err=
6359 else
6360 ac_cpp_err=yes
6362 if test -z "$ac_cpp_err"; then
6363 # Broken: success on invalid input.
6364 continue
6365 else
6366 echo "$as_me: failed program was:" >&5
6367 sed 's/^/| /' conftest.$ac_ext >&5
6369 # Passes both tests.
6370 ac_preproc_ok=:
6371 break
6373 rm -f conftest.err conftest.$ac_ext
6375 done
6376 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6377 rm -f conftest.err conftest.$ac_ext
6378 if $ac_preproc_ok; then
6380 else
6381 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6382 See \`config.log' for more details." >&5
6383 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6384 See \`config.log' for more details." >&2;}
6385 { (exit 1); exit 1; }; }
6388 ac_ext=c
6389 ac_cpp='$CPP $CPPFLAGS'
6390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6396 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
6397 lt_save_CC="$CC"
6398 lt_save_CFLAGS="$CFLAGS"
6399 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
6400 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6401 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6402 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6403 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6404 deplibs_check_method="$deplibs_check_method" \
6405 file_magic_cmd="$file_magic_cmd" \
6406 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6407 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
6408 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6409 echo "$as_me: error: libtool tag configuration failed" >&2;}
6410 { (exit 1); exit 1; }; }
6411 CC="$lt_save_CC"
6412 CFLAGS="$lt_save_CFLAGS"
6414 # Redirect the config.log output again, so that the ltconfig log is not
6415 # clobbered by the next message.
6416 exec 5>>./config.log
6424 for ac_prog in gcj
6426 # Extract the first word of "$ac_prog", so it can be a program name with args.
6427 set dummy $ac_prog; ac_word=$2
6428 echo "$as_me:$LINENO: checking for $ac_word" >&5
6429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6430 if test "${ac_cv_prog_GCJ+set}" = set; then
6431 echo $ECHO_N "(cached) $ECHO_C" >&6
6432 else
6433 if test -n "$GCJ"; then
6434 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
6435 else
6436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6437 for as_dir in $PATH
6439 IFS=$as_save_IFS
6440 test -z "$as_dir" && as_dir=.
6441 for ac_exec_ext in '' $ac_executable_extensions; do
6442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6443 ac_cv_prog_GCJ="$ac_prog"
6444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6445 break 2
6447 done
6448 done
6452 GCJ=$ac_cv_prog_GCJ
6453 if test -n "$GCJ"; then
6454 echo "$as_me:$LINENO: result: $GCJ" >&5
6455 echo "${ECHO_T}$GCJ" >&6
6456 else
6457 echo "$as_me:$LINENO: result: no" >&5
6458 echo "${ECHO_T}no" >&6
6461 test -n "$GCJ" && break
6462 done
6463 test -n "$GCJ" || GCJ="gcj"
6465 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
6466 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
6467 { (exit 1); exit 1; }; }
6468 if test "x${GCJFLAGS-unset}" = xunset; then
6469 GCJFLAGS="-g -O2"
6473 depcc="$GCJ" am_compiler_list='gcc3 gcc'
6475 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6476 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6477 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
6478 echo $ECHO_N "(cached) $ECHO_C" >&6
6479 else
6480 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6481 # We make a subdir and do the tests there. Otherwise we can end up
6482 # making bogus files that we don't know about and never remove. For
6483 # instance it was reported that on HP-UX the gcc test will end up
6484 # making a dummy file named `D' -- because `-MD' means `put the output
6485 # in D'.
6486 mkdir conftest.dir
6487 # Copy depcomp to subdir because otherwise we won't find it if we're
6488 # using a relative directory.
6489 cp "$am_depcomp" conftest.dir
6490 cd conftest.dir
6491 # We will build objects and dependencies in a subdirectory because
6492 # it helps to detect inapplicable dependency modes. For instance
6493 # both Tru64's cc and ICC support -MD to output dependencies as a
6494 # side effect of compilation, but ICC will put the dependencies in
6495 # the current directory while Tru64 will put them in the object
6496 # directory.
6497 mkdir sub
6499 am_cv_GCJ_dependencies_compiler_type=none
6500 if test "$am_compiler_list" = ""; then
6501 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6503 for depmode in $am_compiler_list; do
6504 # Setup a source with many dependencies, because some compilers
6505 # like to wrap large dependency lists on column 80 (with \), and
6506 # we should not choose a depcomp mode which is confused by this.
6508 # We need to recreate these files for each test, as the compiler may
6509 # overwrite some of them when testing with obscure command lines.
6510 # This happens at least with the AIX C compiler.
6511 : > sub/conftest.c
6512 for i in 1 2 3 4 5 6; do
6513 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6514 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6515 # Solaris 8's {/usr,}/bin/sh.
6516 touch sub/conftst$i.h
6517 done
6518 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6520 case $depmode in
6521 nosideeffect)
6522 # after this tag, mechanisms are not by side-effect, so they'll
6523 # only be used when explicitly requested
6524 if test "x$enable_dependency_tracking" = xyes; then
6525 continue
6526 else
6527 break
6530 none) break ;;
6531 esac
6532 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6533 # mode. It turns out that the SunPro C++ compiler does not properly
6534 # handle `-M -o', and we need to detect this.
6535 if depmode=$depmode \
6536 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6537 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6538 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6539 >/dev/null 2>conftest.err &&
6540 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6541 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6542 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6543 # icc doesn't choke on unknown options, it will just issue warnings
6544 # or remarks (even with -Werror). So we grep stderr for any message
6545 # that says an option was ignored or not supported.
6546 # When given -MP, icc 7.0 and 7.1 complain thusly:
6547 # icc: Command line warning: ignoring option '-M'; no argument required
6548 # The diagnosis changed in icc 8.0:
6549 # icc: Command line remark: option '-MP' not supported
6550 if (grep 'ignoring option' conftest.err ||
6551 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6552 am_cv_GCJ_dependencies_compiler_type=$depmode
6553 break
6556 done
6558 cd ..
6559 rm -rf conftest.dir
6560 else
6561 am_cv_GCJ_dependencies_compiler_type=none
6565 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
6566 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
6567 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
6572 test "x$enable_dependency_tracking" != xno \
6573 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
6574 am__fastdepGCJ_TRUE=
6575 am__fastdepGCJ_FALSE='#'
6576 else
6577 am__fastdepGCJ_TRUE='#'
6578 am__fastdepGCJ_FALSE=
6584 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
6585 lt_save_CC="$CC"
6586 lt_save_CFLAGS="$CFLAGS"
6587 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
6588 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6589 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6590 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6591 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6592 deplibs_check_method="$deplibs_check_method" \
6593 file_magic_cmd="$file_magic_cmd" \
6594 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6595 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
6596 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6597 echo "$as_me: error: libtool tag configuration failed" >&2;}
6598 { (exit 1); exit 1; }; }
6599 CC="$lt_save_CC"
6600 CFLAGS="$lt_save_CFLAGS"
6602 # Redirect the config.log output again, so that the ltconfig log is not
6603 # clobbered by the next message.
6604 exec 5>>./config.log
6608 if test "x$CC" != xcc; then
6609 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
6610 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
6611 else
6612 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
6613 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
6615 set dummy $CC; ac_cc=`echo $2 |
6616 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6617 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
6618 echo $ECHO_N "(cached) $ECHO_C" >&6
6619 else
6620 cat >conftest.$ac_ext <<_ACEOF
6621 /* confdefs.h. */
6622 _ACEOF
6623 cat confdefs.h >>conftest.$ac_ext
6624 cat >>conftest.$ac_ext <<_ACEOF
6625 /* end confdefs.h. */
6628 main ()
6632 return 0;
6634 _ACEOF
6635 # Make sure it works both with $CC and with simple cc.
6636 # We do the test twice because some compilers refuse to overwrite an
6637 # existing .o file with -o, though they will create one.
6638 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6639 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6640 (eval $ac_try) 2>&5
6641 ac_status=$?
6642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643 (exit $ac_status); } &&
6644 test -f conftest.$ac_objext && { (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 then
6650 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6651 if test "x$CC" != xcc; then
6652 # Test first that cc exists at all.
6653 if { ac_try='cc -c conftest.$ac_ext >&5'
6654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6655 (eval $ac_try) 2>&5
6656 ac_status=$?
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); }; }; then
6659 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6660 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6661 (eval $ac_try) 2>&5
6662 ac_status=$?
6663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664 (exit $ac_status); } &&
6665 test -f conftest.$ac_objext && { (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 then
6671 # cc works too.
6673 else
6674 # cc exists but doesn't like -o.
6675 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6679 else
6680 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6682 rm -f conftest*
6685 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
6686 echo "$as_me:$LINENO: result: yes" >&5
6687 echo "${ECHO_T}yes" >&6
6688 else
6689 echo "$as_me:$LINENO: result: no" >&5
6690 echo "${ECHO_T}no" >&6
6692 cat >>confdefs.h <<\_ACEOF
6693 #define NO_MINUS_C_MINUS_O 1
6694 _ACEOF
6698 # FIXME: we rely on the cache variable name because
6699 # there is no other way.
6700 set dummy $CC
6701 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6702 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
6703 # Losing compiler, so override with the script.
6704 # FIXME: It is wrong to rewrite CC.
6705 # But if we don't then we get into trouble of one sort or another.
6706 # A longer-term fix would be to have automake use am__CC in this case,
6707 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6708 CC="$am_aux_dir/compile $CC"
6714 subdirs="$subdirs classpath libltdl"
6717 # The -no-testsuite modules omit the test subdir.
6720 if test -d $srcdir/testsuite; then
6721 TESTSUBDIR_TRUE=
6722 TESTSUBDIR_FALSE='#'
6723 else
6724 TESTSUBDIR_TRUE='#'
6725 TESTSUBDIR_FALSE=
6729 # Should the runtime set system properties by examining the
6730 # environment variable GCJ_PROPERTIES?
6731 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
6732 if test "${enable_getenv_properties+set}" = set; then
6733 enableval="$enable_getenv_properties"
6737 # Whether GCJ_PROPERTIES is used depends on the target.
6738 if test -z "$enable_getenv_properties"; then
6739 enable_getenv_properties=${enable_getenv_properties_default-yes}
6741 if test "$enable_getenv_properties" = no; then
6743 cat >>confdefs.h <<\_ACEOF
6744 #define DISABLE_GETENV_PROPERTIES 1
6745 _ACEOF
6749 # Whether we should use arguments to main()
6750 if test -z "$enable_main_args"; then
6751 enable_main_args=${enable_main_args_default-yes}
6753 if test "$enable_main_args" = no; then
6755 cat >>confdefs.h <<\_ACEOF
6756 #define DISABLE_MAIN_ARGS 1
6757 _ACEOF
6762 # Should we use hashtable-based synchronization?
6763 # Currently works only for Linux X86/ia64
6764 # Typically faster and more space-efficient
6765 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
6766 if test "${enable_hash_synchronization+set}" = set; then
6767 enableval="$enable_hash_synchronization"
6771 if test -z "$enable_hash_synchronization"; then
6772 enable_hash_synchronization=$enable_hash_synchronization_default
6776 # Check whether --with-java-home or --without-java-home was given.
6777 if test "${with_java_home+set}" = set; then
6778 withval="$with_java_home"
6779 JAVA_HOME="${withval}"
6780 else
6781 JAVA_HOME=""
6785 if test ! -z "$JAVA_HOME"; then
6786 JAVA_HOME_SET_TRUE=
6787 JAVA_HOME_SET_FALSE='#'
6788 else
6789 JAVA_HOME_SET_TRUE='#'
6790 JAVA_HOME_SET_FALSE=
6795 # What is the native OS API for MinGW?
6797 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
6798 if test "${with_win32_nlsapi+set}" = set; then
6799 withval="$with_win32_nlsapi"
6800 case "${withval}" in
6801 ansi) with_win32_nlsapi=ansi ;;
6802 unicows) with_win32_nlsapi=unicows ;;
6803 unicode) with_win32_nlsapi=unicode ;;
6804 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
6805 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
6806 { (exit 1); exit 1; }; } ;;
6807 esac
6808 else
6809 with_win32_nlsapi=ansi
6812 case "${with_win32_nlsapi}" in
6813 unicows | unicode)
6815 cat >>confdefs.h <<\_ACEOF
6816 #define MINGW_LIBGCJ_UNICODE 1
6817 _ACEOF
6820 esac
6822 # configure.host sets slow_pthread_self if the synchronization code should
6823 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
6824 if test "${slow_pthread_self}" = "yes"; then
6826 cat >>confdefs.h <<\_ACEOF
6827 #define SLOW_PTHREAD_SELF 1
6828 _ACEOF
6832 # Check for gc debugging. This option is handled both here and in the GC.
6833 # Check whether --enable-gc-debug or --disable-gc-debug was given.
6834 if test "${enable_gc_debug+set}" = set; then
6835 enableval="$enable_gc_debug"
6836 if test "$enable_gc_debug" = "yes"; then
6838 cat >>confdefs.h <<\_ACEOF
6839 #define LIBGCJ_GC_DEBUG 1
6840 _ACEOF
6845 # See if the user has the interpreter included.
6846 # Check whether --enable-interpreter or --disable-interpreter was given.
6847 if test "${enable_interpreter+set}" = set; then
6848 enableval="$enable_interpreter"
6849 if test "$enable_interpreter" = yes; then
6850 # This can also be set in configure.host.
6851 libgcj_interpreter=yes
6852 elif test "$enable_interpreter" = no; then
6853 libgcj_interpreter=no
6857 if test "$libgcj_interpreter" = yes; then
6859 cat >>confdefs.h <<\_ACEOF
6860 #define INTERPRETER 1
6861 _ACEOF
6864 INTERPRETER="$libgcj_interpreter"
6867 echo "$as_me:$LINENO: checking for exception model to use" >&5
6868 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
6869 ac_ext=cc
6870 ac_cpp='$CXXCPP $CPPFLAGS'
6871 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6872 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6873 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6875 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
6876 if test "${enable_sjlj_exceptions+set}" = set; then
6877 enableval="$enable_sjlj_exceptions"
6879 else
6880 cat > conftest.$ac_ext << EOF
6881 #line 6881 "configure"
6882 struct S { ~S(); };
6883 void bar();
6884 void foo()
6886 S s;
6887 bar();
6890 old_CXXFLAGS="$CXXFLAGS"
6891 CXXFLAGS=-S
6892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6893 (eval $ac_compile) 2>&5
6894 ac_status=$?
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); }; then
6897 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
6898 enable_sjlj_exceptions=yes
6899 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
6900 enable_sjlj_exceptions=no
6903 CXXFLAGS="$old_CXXFLAGS"
6904 rm -f conftest*
6906 if test x$enable_sjlj_exceptions = xyes; then
6908 cat >>confdefs.h <<\_ACEOF
6909 #define SJLJ_EXCEPTIONS 1
6910 _ACEOF
6912 ac_exception_model_name=sjlj
6913 elif test x$enable_sjlj_exceptions = xno; then
6914 ac_exception_model_name="call frame"
6915 else
6916 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
6917 echo "$as_me: error: unable to detect exception model" >&2;}
6918 { (exit 1); exit 1; }; }
6920 ac_ext=c
6921 ac_cpp='$CPP $CPPFLAGS'
6922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6926 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
6927 echo "${ECHO_T}$ac_exception_model_name" >&6
6929 # If we are non using SJLJ exceptions, and this host does not have support
6930 # for unwinding from a signal handler, enable checked dereferences and divides.
6931 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
6932 CHECKREFSPEC=-fcheck-references
6933 DIVIDESPEC=-fuse-divide-subroutine
6934 EXCEPTIONSPEC=
6937 # See if the user wants to disable java.net. This is the mildly
6938 # ugly way that we admit that target-side configuration sucks.
6939 # Check whether --enable-java-net or --disable-java-net was given.
6940 if test "${enable_java_net+set}" = set; then
6941 enableval="$enable_java_net"
6945 # Whether java.net is built by default can depend on the target.
6946 if test -z "$enable_java_net"; then
6947 enable_java_net=${enable_java_net_default-yes}
6949 if test "$enable_java_net" = no; then
6951 cat >>confdefs.h <<\_ACEOF
6952 #define DISABLE_JAVA_NET 1
6953 _ACEOF
6957 # See if the user wants to configure without libffi. Some
6958 # architectures don't support it, and default values are set in
6959 # configure.host.
6961 # Check whether --with-libffi or --without-libffi was given.
6962 if test "${with_libffi+set}" = set; then
6963 withval="$with_libffi"
6965 else
6966 with_libffi=${with_libffi_default-yes}
6969 LIBFFI=
6970 LIBFFIINCS=
6971 if test "$with_libffi" != no; then
6973 cat >>confdefs.h <<\_ACEOF
6974 #define USE_LIBFFI 1
6975 _ACEOF
6977 LIBFFI=../libffi/libffi_convenience.la
6978 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
6983 # See if the user wants to disable JVMPI support.
6984 # Check whether --enable-jvmpi or --disable-jvmpi was given.
6985 if test "${enable_jvmpi+set}" = set; then
6986 enableval="$enable_jvmpi"
6990 if test "$enable_jvmpi" != no; then
6992 cat >>confdefs.h <<\_ACEOF
6993 #define ENABLE_JVMPI 1
6994 _ACEOF
6998 # If the target is an eCos system, use the appropriate eCos
6999 # I/O routines.
7000 # FIXME: this should not be a local option but a global target
7001 # system; at present there is no eCos target.
7002 TARGET_ECOS=${PROCESS-"no"}
7004 # Check whether --with-ecos or --without-ecos was given.
7005 if test "${with_ecos+set}" = set; then
7006 withval="$with_ecos"
7007 TARGET_ECOS="$with_ecos"
7011 PLATFORM_INNER_NAT_HDRS=
7012 case "$TARGET_ECOS" in
7013 no) case "$host" in
7014 *mingw*)
7015 PLATFORM=Win32
7016 PLATFORMNET=Win32
7017 PLATFORMH=win32.h
7019 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
7020 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
7021 LD_PROG=`$CC --print-prog-name=ld`
7022 LD_VERSION=`$LD_PROG --version`
7023 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
7024 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
7025 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
7026 LD_OK="ok"
7027 else
7028 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
7029 LD_OK="ok"
7032 if test "x$LD_OK" != x; then
7033 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
7034 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
7035 else
7036 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
7037 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
7038 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
7039 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
7041 cat >>confdefs.h <<\_ACEOF
7042 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
7043 _ACEOF
7048 PLATFORM=Posix
7049 PLATFORMNET=Posix
7050 PLATFORMH=posix.h
7051 PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
7053 esac
7056 PLATFORM=Ecos
7057 PLATFORMNET=NoNet
7059 cat >>confdefs.h <<\_ACEOF
7060 #define ECOS 1
7061 _ACEOF
7063 PLATFORMH=posix.h
7065 esac
7067 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
7070 ac_ext=c
7071 ac_cpp='$CPP $CPPFLAGS'
7072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7075 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7076 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7077 # On Suns, sometimes $CPP names a directory.
7078 if test -n "$CPP" && test -d "$CPP"; then
7079 CPP=
7081 if test -z "$CPP"; then
7082 if test "${ac_cv_prog_CPP+set}" = set; then
7083 echo $ECHO_N "(cached) $ECHO_C" >&6
7084 else
7085 # Double quotes because CPP needs to be expanded
7086 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7088 ac_preproc_ok=false
7089 for ac_c_preproc_warn_flag in '' yes
7091 # Use a header file that comes with gcc, so configuring glibc
7092 # with a fresh cross-compiler works.
7093 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7094 # <limits.h> exists even on freestanding compilers.
7095 # On the NeXT, cc -E runs the code through the compiler's parser,
7096 # not just through cpp. "Syntax error" is here to catch this case.
7097 cat >conftest.$ac_ext <<_ACEOF
7098 /* confdefs.h. */
7099 _ACEOF
7100 cat confdefs.h >>conftest.$ac_ext
7101 cat >>conftest.$ac_ext <<_ACEOF
7102 /* end confdefs.h. */
7103 #ifdef __STDC__
7104 # include <limits.h>
7105 #else
7106 # include <assert.h>
7107 #endif
7108 Syntax error
7109 _ACEOF
7110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7112 ac_status=$?
7113 grep -v '^ *+' conftest.er1 >conftest.err
7114 rm -f conftest.er1
7115 cat conftest.err >&5
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); } >/dev/null; then
7118 if test -s conftest.err; then
7119 ac_cpp_err=$ac_c_preproc_warn_flag
7120 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7121 else
7122 ac_cpp_err=
7124 else
7125 ac_cpp_err=yes
7127 if test -z "$ac_cpp_err"; then
7129 else
7130 echo "$as_me: failed program was:" >&5
7131 sed 's/^/| /' conftest.$ac_ext >&5
7133 # Broken: fails on valid input.
7134 continue
7136 rm -f conftest.err conftest.$ac_ext
7138 # OK, works on sane cases. Now check whether non-existent headers
7139 # can be detected and how.
7140 cat >conftest.$ac_ext <<_ACEOF
7141 /* confdefs.h. */
7142 _ACEOF
7143 cat confdefs.h >>conftest.$ac_ext
7144 cat >>conftest.$ac_ext <<_ACEOF
7145 /* end confdefs.h. */
7146 #include <ac_nonexistent.h>
7147 _ACEOF
7148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7149 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7150 ac_status=$?
7151 grep -v '^ *+' conftest.er1 >conftest.err
7152 rm -f conftest.er1
7153 cat conftest.err >&5
7154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); } >/dev/null; then
7156 if test -s conftest.err; then
7157 ac_cpp_err=$ac_c_preproc_warn_flag
7158 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7159 else
7160 ac_cpp_err=
7162 else
7163 ac_cpp_err=yes
7165 if test -z "$ac_cpp_err"; then
7166 # Broken: success on invalid input.
7167 continue
7168 else
7169 echo "$as_me: failed program was:" >&5
7170 sed 's/^/| /' conftest.$ac_ext >&5
7172 # Passes both tests.
7173 ac_preproc_ok=:
7174 break
7176 rm -f conftest.err conftest.$ac_ext
7178 done
7179 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7180 rm -f conftest.err conftest.$ac_ext
7181 if $ac_preproc_ok; then
7182 break
7185 done
7186 ac_cv_prog_CPP=$CPP
7189 CPP=$ac_cv_prog_CPP
7190 else
7191 ac_cv_prog_CPP=$CPP
7193 echo "$as_me:$LINENO: result: $CPP" >&5
7194 echo "${ECHO_T}$CPP" >&6
7195 ac_preproc_ok=false
7196 for ac_c_preproc_warn_flag in '' yes
7198 # Use a header file that comes with gcc, so configuring glibc
7199 # with a fresh cross-compiler works.
7200 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7201 # <limits.h> exists even on freestanding compilers.
7202 # On the NeXT, cc -E runs the code through the compiler's parser,
7203 # not just through cpp. "Syntax error" is here to catch this case.
7204 cat >conftest.$ac_ext <<_ACEOF
7205 /* confdefs.h. */
7206 _ACEOF
7207 cat confdefs.h >>conftest.$ac_ext
7208 cat >>conftest.$ac_ext <<_ACEOF
7209 /* end confdefs.h. */
7210 #ifdef __STDC__
7211 # include <limits.h>
7212 #else
7213 # include <assert.h>
7214 #endif
7215 Syntax error
7216 _ACEOF
7217 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7218 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7219 ac_status=$?
7220 grep -v '^ *+' conftest.er1 >conftest.err
7221 rm -f conftest.er1
7222 cat conftest.err >&5
7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); } >/dev/null; then
7225 if test -s conftest.err; then
7226 ac_cpp_err=$ac_c_preproc_warn_flag
7227 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7228 else
7229 ac_cpp_err=
7231 else
7232 ac_cpp_err=yes
7234 if test -z "$ac_cpp_err"; then
7236 else
7237 echo "$as_me: failed program was:" >&5
7238 sed 's/^/| /' conftest.$ac_ext >&5
7240 # Broken: fails on valid input.
7241 continue
7243 rm -f conftest.err conftest.$ac_ext
7245 # OK, works on sane cases. Now check whether non-existent headers
7246 # can be detected and how.
7247 cat >conftest.$ac_ext <<_ACEOF
7248 /* confdefs.h. */
7249 _ACEOF
7250 cat confdefs.h >>conftest.$ac_ext
7251 cat >>conftest.$ac_ext <<_ACEOF
7252 /* end confdefs.h. */
7253 #include <ac_nonexistent.h>
7254 _ACEOF
7255 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7256 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7257 ac_status=$?
7258 grep -v '^ *+' conftest.er1 >conftest.err
7259 rm -f conftest.er1
7260 cat conftest.err >&5
7261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262 (exit $ac_status); } >/dev/null; then
7263 if test -s conftest.err; then
7264 ac_cpp_err=$ac_c_preproc_warn_flag
7265 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7266 else
7267 ac_cpp_err=
7269 else
7270 ac_cpp_err=yes
7272 if test -z "$ac_cpp_err"; then
7273 # Broken: success on invalid input.
7274 continue
7275 else
7276 echo "$as_me: failed program was:" >&5
7277 sed 's/^/| /' conftest.$ac_ext >&5
7279 # Passes both tests.
7280 ac_preproc_ok=:
7281 break
7283 rm -f conftest.err conftest.$ac_ext
7285 done
7286 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7287 rm -f conftest.err conftest.$ac_ext
7288 if $ac_preproc_ok; then
7290 else
7291 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7292 See \`config.log' for more details." >&5
7293 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7294 See \`config.log' for more details." >&2;}
7295 { (exit 1); exit 1; }; }
7298 ac_ext=c
7299 ac_cpp='$CPP $CPPFLAGS'
7300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7305 echo "$as_me:$LINENO: checking for egrep" >&5
7306 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
7307 if test "${ac_cv_prog_egrep+set}" = set; then
7308 echo $ECHO_N "(cached) $ECHO_C" >&6
7309 else
7310 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
7311 then ac_cv_prog_egrep='grep -E'
7312 else ac_cv_prog_egrep='egrep'
7315 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
7316 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
7317 EGREP=$ac_cv_prog_egrep
7320 cat >conftest.$ac_ext <<_ACEOF
7321 /* confdefs.h. */
7322 _ACEOF
7323 cat confdefs.h >>conftest.$ac_ext
7324 cat >>conftest.$ac_ext <<_ACEOF
7325 /* end confdefs.h. */
7326 #include <stdint.h>
7328 _ACEOF
7329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7330 $EGREP "uint32_t" >/dev/null 2>&1; then
7332 cat >>confdefs.h <<\_ACEOF
7333 #define HAVE_INT32_DEFINED 1
7334 _ACEOF
7337 rm -f conftest*
7339 cat >conftest.$ac_ext <<_ACEOF
7340 /* confdefs.h. */
7341 _ACEOF
7342 cat confdefs.h >>conftest.$ac_ext
7343 cat >>conftest.$ac_ext <<_ACEOF
7344 /* end confdefs.h. */
7345 #include <inttypes.h>
7347 _ACEOF
7348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7349 $EGREP "uint32_t" >/dev/null 2>&1; then
7351 cat >>confdefs.h <<\_ACEOF
7352 #define HAVE_INT32_DEFINED 1
7353 _ACEOF
7356 rm -f conftest*
7358 cat >conftest.$ac_ext <<_ACEOF
7359 /* confdefs.h. */
7360 _ACEOF
7361 cat confdefs.h >>conftest.$ac_ext
7362 cat >>conftest.$ac_ext <<_ACEOF
7363 /* end confdefs.h. */
7364 #include <sys/types.h>
7366 _ACEOF
7367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7368 $EGREP "u_int32_t" >/dev/null 2>&1; then
7370 cat >>confdefs.h <<\_ACEOF
7371 #define HAVE_BSD_INT32_DEFINED 1
7372 _ACEOF
7375 rm -f conftest*
7377 cat >conftest.$ac_ext <<_ACEOF
7378 /* confdefs.h. */
7379 _ACEOF
7380 cat confdefs.h >>conftest.$ac_ext
7381 cat >>conftest.$ac_ext <<_ACEOF
7382 /* end confdefs.h. */
7383 #include <sys/config.h>
7385 _ACEOF
7386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7387 $EGREP "u_int32_t" >/dev/null 2>&1; then
7389 cat >>confdefs.h <<\_ACEOF
7390 #define HAVE_BSD_INT32_DEFINED 1
7391 _ACEOF
7394 rm -f conftest*
7399 if test "$PLATFORM" = Win32; then
7400 USING_WIN32_PLATFORM_TRUE=
7401 USING_WIN32_PLATFORM_FALSE='#'
7402 else
7403 USING_WIN32_PLATFORM_TRUE='#'
7404 USING_WIN32_PLATFORM_FALSE=
7409 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
7410 USING_POSIX_PLATFORM_TRUE=
7411 USING_POSIX_PLATFORM_FALSE='#'
7412 else
7413 USING_POSIX_PLATFORM_TRUE='#'
7414 USING_POSIX_PLATFORM_FALSE=
7418 case "$host" in
7419 *-darwin*) DARWIN_CRT=true ;;
7420 *) DARWIN_CRT=false ;;
7421 esac
7424 if $DARWIN_CRT; then
7425 USING_DARWIN_CRT_TRUE=
7426 USING_DARWIN_CRT_FALSE='#'
7427 else
7428 USING_DARWIN_CRT_TRUE='#'
7429 USING_DARWIN_CRT_FALSE=
7433 # These may not be defined in a non-ANS conformant embedded system.
7434 # FIXME: Should these case a runtime exception in that case?
7435 cat >conftest.$ac_ext <<_ACEOF
7436 /* confdefs.h. */
7437 _ACEOF
7438 cat confdefs.h >>conftest.$ac_ext
7439 cat >>conftest.$ac_ext <<_ACEOF
7440 /* end confdefs.h. */
7441 #include <time.h>
7443 _ACEOF
7444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7445 $EGREP "mktime" >/dev/null 2>&1; then
7447 cat >>confdefs.h <<\_ACEOF
7448 #define HAVE_MKTIME 1
7449 _ACEOF
7452 rm -f conftest*
7454 cat >conftest.$ac_ext <<_ACEOF
7455 /* confdefs.h. */
7456 _ACEOF
7457 cat confdefs.h >>conftest.$ac_ext
7458 cat >>conftest.$ac_ext <<_ACEOF
7459 /* end confdefs.h. */
7460 #include <time.h>
7462 _ACEOF
7463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7464 $EGREP "localtime" >/dev/null 2>&1; then
7466 cat >>confdefs.h <<\_ACEOF
7467 #define HAVE_LOCALTIME 1
7468 _ACEOF
7471 rm -f conftest*
7474 # Create the subdirectory for natFile.cc, or the attempt
7475 # to create the link will fail.
7476 test -d java || mkdir java
7477 test -d java/io || mkdir java/io
7478 test -d gnu || mkdir gnu
7479 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
7482 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
7483 test -d java/lang || mkdir java/lang
7484 ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
7486 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
7489 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
7490 test -d java/net || mkdir java/net
7491 ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
7493 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
7496 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
7497 test -d gnu/java || mkdir gnu/java
7498 test -d gnu/java/net || mkdir gnu/java/net
7499 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
7501 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
7504 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
7505 test -d gnu/java/nio || mkdir gnu/java/nio
7506 ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
7508 ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
7510 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
7511 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
7514 case "${host}" in
7515 *mingw*)
7516 SYSTEMSPEC="-lgdi32 -lws2_32"
7517 if test "${with_win32_nlsapi}" = "unicows"; then
7518 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
7522 SYSTEMSPEC=
7524 esac
7527 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
7531 # Check whether --with-system-zlib or --without-system-zlib was given.
7532 if test "${with_system_zlib+set}" = set; then
7533 withval="$with_system_zlib"
7536 ZLIBSPEC=
7538 ZLIBTESTSPEC=
7541 echo "$as_me:$LINENO: checking for X" >&5
7542 echo $ECHO_N "checking for X... $ECHO_C" >&6
7545 # Check whether --with-x or --without-x was given.
7546 if test "${with_x+set}" = set; then
7547 withval="$with_x"
7550 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7551 if test "x$with_x" = xno; then
7552 # The user explicitly disabled X.
7553 have_x=disabled
7554 else
7555 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7556 # Both variables are already set.
7557 have_x=yes
7558 else
7559 if test "${ac_cv_have_x+set}" = set; then
7560 echo $ECHO_N "(cached) $ECHO_C" >&6
7561 else
7562 # One or both of the vars are not set, and there is no cached value.
7563 ac_x_includes=no ac_x_libraries=no
7564 rm -fr conftest.dir
7565 if mkdir conftest.dir; then
7566 cd conftest.dir
7567 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7568 cat >Imakefile <<'_ACEOF'
7569 acfindx:
7570 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7571 _ACEOF
7572 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7573 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7574 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7575 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7576 for ac_extension in a so sl; do
7577 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7578 test -f $ac_im_libdir/libX11.$ac_extension; then
7579 ac_im_usrlibdir=$ac_im_libdir; break
7581 done
7582 # Screen out bogus values from the imake configuration. They are
7583 # bogus both because they are the default anyway, and because
7584 # using them would break gcc on systems where it needs fixed includes.
7585 case $ac_im_incroot in
7586 /usr/include) ;;
7587 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7588 esac
7589 case $ac_im_usrlibdir in
7590 /usr/lib | /lib) ;;
7591 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7592 esac
7594 cd ..
7595 rm -fr conftest.dir
7598 # Standard set of common directories for X headers.
7599 # Check X11 before X11Rn because it is often a symlink to the current release.
7600 ac_x_header_dirs='
7601 /usr/X11/include
7602 /usr/X11R6/include
7603 /usr/X11R5/include
7604 /usr/X11R4/include
7606 /usr/include/X11
7607 /usr/include/X11R6
7608 /usr/include/X11R5
7609 /usr/include/X11R4
7611 /usr/local/X11/include
7612 /usr/local/X11R6/include
7613 /usr/local/X11R5/include
7614 /usr/local/X11R4/include
7616 /usr/local/include/X11
7617 /usr/local/include/X11R6
7618 /usr/local/include/X11R5
7619 /usr/local/include/X11R4
7621 /usr/X386/include
7622 /usr/x386/include
7623 /usr/XFree86/include/X11
7625 /usr/include
7626 /usr/local/include
7627 /usr/unsupported/include
7628 /usr/athena/include
7629 /usr/local/x11r5/include
7630 /usr/lpp/Xamples/include
7632 /usr/openwin/include
7633 /usr/openwin/share/include'
7635 if test "$ac_x_includes" = no; then
7636 # Guess where to find include files, by looking for Intrinsic.h.
7637 # First, try using that file with no special directory specified.
7638 cat >conftest.$ac_ext <<_ACEOF
7639 /* confdefs.h. */
7640 _ACEOF
7641 cat confdefs.h >>conftest.$ac_ext
7642 cat >>conftest.$ac_ext <<_ACEOF
7643 /* end confdefs.h. */
7644 #include <X11/Intrinsic.h>
7645 _ACEOF
7646 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7647 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7648 ac_status=$?
7649 grep -v '^ *+' conftest.er1 >conftest.err
7650 rm -f conftest.er1
7651 cat conftest.err >&5
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); } >/dev/null; then
7654 if test -s conftest.err; then
7655 ac_cpp_err=$ac_c_preproc_warn_flag
7656 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7657 else
7658 ac_cpp_err=
7660 else
7661 ac_cpp_err=yes
7663 if test -z "$ac_cpp_err"; then
7664 # We can compile using X headers with no special include directory.
7665 ac_x_includes=
7666 else
7667 echo "$as_me: failed program was:" >&5
7668 sed 's/^/| /' conftest.$ac_ext >&5
7670 for ac_dir in $ac_x_header_dirs; do
7671 if test -r "$ac_dir/X11/Intrinsic.h"; then
7672 ac_x_includes=$ac_dir
7673 break
7675 done
7677 rm -f conftest.err conftest.$ac_ext
7678 fi # $ac_x_includes = no
7680 if test "$ac_x_libraries" = no; then
7681 # Check for the libraries.
7682 # See if we find them without any special options.
7683 # Don't add to $LIBS permanently.
7684 ac_save_LIBS=$LIBS
7685 LIBS="-lXt $LIBS"
7686 if test x$gcc_no_link = xyes; then
7687 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7688 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7689 { (exit 1); exit 1; }; }
7691 cat >conftest.$ac_ext <<_ACEOF
7692 /* confdefs.h. */
7693 _ACEOF
7694 cat confdefs.h >>conftest.$ac_ext
7695 cat >>conftest.$ac_ext <<_ACEOF
7696 /* end confdefs.h. */
7697 #include <X11/Intrinsic.h>
7699 main ()
7701 XtMalloc (0)
7703 return 0;
7705 _ACEOF
7706 rm -f conftest.$ac_objext conftest$ac_exeext
7707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7708 (eval $ac_link) 2>conftest.er1
7709 ac_status=$?
7710 grep -v '^ *+' conftest.er1 >conftest.err
7711 rm -f conftest.er1
7712 cat conftest.err >&5
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); } &&
7715 { ac_try='test -z "$ac_c_werror_flag"
7716 || test ! -s conftest.err'
7717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7718 (eval $ac_try) 2>&5
7719 ac_status=$?
7720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721 (exit $ac_status); }; } &&
7722 { ac_try='test -s conftest$ac_exeext'
7723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7724 (eval $ac_try) 2>&5
7725 ac_status=$?
7726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); }; }; then
7728 LIBS=$ac_save_LIBS
7729 # We can link X programs with no special library path.
7730 ac_x_libraries=
7731 else
7732 echo "$as_me: failed program was:" >&5
7733 sed 's/^/| /' conftest.$ac_ext >&5
7735 LIBS=$ac_save_LIBS
7736 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7738 # Don't even attempt the hair of trying to link an X program!
7739 for ac_extension in a so sl; do
7740 if test -r $ac_dir/libXt.$ac_extension; then
7741 ac_x_libraries=$ac_dir
7742 break 2
7744 done
7745 done
7747 rm -f conftest.err conftest.$ac_objext \
7748 conftest$ac_exeext conftest.$ac_ext
7749 fi # $ac_x_libraries = no
7751 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7752 # Didn't find X anywhere. Cache the known absence of X.
7753 ac_cv_have_x="have_x=no"
7754 else
7755 # Record where we found X for the cache.
7756 ac_cv_have_x="have_x=yes \
7757 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7762 eval "$ac_cv_have_x"
7763 fi # $with_x != no
7765 if test "$have_x" != yes; then
7766 echo "$as_me:$LINENO: result: $have_x" >&5
7767 echo "${ECHO_T}$have_x" >&6
7768 no_x=yes
7769 else
7770 # If each of the values was on the command line, it overrides each guess.
7771 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7772 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7773 # Update the cache value to reflect the command line values.
7774 ac_cv_have_x="have_x=yes \
7775 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7776 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7777 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7780 if test "$no_x" = yes; then
7781 # Not all programs may use this symbol, but it does not hurt to define it.
7783 cat >>confdefs.h <<\_ACEOF
7784 #define X_DISPLAY_MISSING 1
7785 _ACEOF
7787 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7788 else
7789 if test -n "$x_includes"; then
7790 X_CFLAGS="$X_CFLAGS -I$x_includes"
7793 # It would also be nice to do this for all -L options, not just this one.
7794 if test -n "$x_libraries"; then
7795 X_LIBS="$X_LIBS -L$x_libraries"
7796 # For Solaris; some versions of Sun CC require a space after -R and
7797 # others require no space. Words are not sufficient . . . .
7798 case `(uname -sr) 2>/dev/null` in
7799 "SunOS 5"*)
7800 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7801 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7802 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7803 if test x$gcc_no_link = xyes; then
7804 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7805 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7806 { (exit 1); exit 1; }; }
7808 cat >conftest.$ac_ext <<_ACEOF
7809 /* confdefs.h. */
7810 _ACEOF
7811 cat confdefs.h >>conftest.$ac_ext
7812 cat >>conftest.$ac_ext <<_ACEOF
7813 /* end confdefs.h. */
7816 main ()
7820 return 0;
7822 _ACEOF
7823 rm -f conftest.$ac_objext conftest$ac_exeext
7824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7825 (eval $ac_link) 2>conftest.er1
7826 ac_status=$?
7827 grep -v '^ *+' conftest.er1 >conftest.err
7828 rm -f conftest.er1
7829 cat conftest.err >&5
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); } &&
7832 { ac_try='test -z "$ac_c_werror_flag"
7833 || test ! -s conftest.err'
7834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7835 (eval $ac_try) 2>&5
7836 ac_status=$?
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); }; } &&
7839 { ac_try='test -s conftest$ac_exeext'
7840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7841 (eval $ac_try) 2>&5
7842 ac_status=$?
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); }; }; then
7845 ac_R_nospace=yes
7846 else
7847 echo "$as_me: failed program was:" >&5
7848 sed 's/^/| /' conftest.$ac_ext >&5
7850 ac_R_nospace=no
7852 rm -f conftest.err conftest.$ac_objext \
7853 conftest$ac_exeext conftest.$ac_ext
7854 if test $ac_R_nospace = yes; then
7855 echo "$as_me:$LINENO: result: no" >&5
7856 echo "${ECHO_T}no" >&6
7857 X_LIBS="$X_LIBS -R$x_libraries"
7858 else
7859 LIBS="$ac_xsave_LIBS -R $x_libraries"
7860 if test x$gcc_no_link = xyes; then
7861 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7862 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7863 { (exit 1); exit 1; }; }
7865 cat >conftest.$ac_ext <<_ACEOF
7866 /* confdefs.h. */
7867 _ACEOF
7868 cat confdefs.h >>conftest.$ac_ext
7869 cat >>conftest.$ac_ext <<_ACEOF
7870 /* end confdefs.h. */
7873 main ()
7877 return 0;
7879 _ACEOF
7880 rm -f conftest.$ac_objext conftest$ac_exeext
7881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7882 (eval $ac_link) 2>conftest.er1
7883 ac_status=$?
7884 grep -v '^ *+' conftest.er1 >conftest.err
7885 rm -f conftest.er1
7886 cat conftest.err >&5
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); } &&
7889 { ac_try='test -z "$ac_c_werror_flag"
7890 || test ! -s conftest.err'
7891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7892 (eval $ac_try) 2>&5
7893 ac_status=$?
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); }; } &&
7896 { ac_try='test -s conftest$ac_exeext'
7897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7898 (eval $ac_try) 2>&5
7899 ac_status=$?
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); }; }; then
7902 ac_R_space=yes
7903 else
7904 echo "$as_me: failed program was:" >&5
7905 sed 's/^/| /' conftest.$ac_ext >&5
7907 ac_R_space=no
7909 rm -f conftest.err conftest.$ac_objext \
7910 conftest$ac_exeext conftest.$ac_ext
7911 if test $ac_R_space = yes; then
7912 echo "$as_me:$LINENO: result: yes" >&5
7913 echo "${ECHO_T}yes" >&6
7914 X_LIBS="$X_LIBS -R $x_libraries"
7915 else
7916 echo "$as_me:$LINENO: result: neither works" >&5
7917 echo "${ECHO_T}neither works" >&6
7920 LIBS=$ac_xsave_LIBS
7921 esac
7924 # Check for system-dependent libraries X programs must link with.
7925 # Do this before checking for the system-independent R6 libraries
7926 # (-lICE), since we may need -lsocket or whatever for X linking.
7928 if test "$ISC" = yes; then
7929 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7930 else
7931 # Martyn Johnson says this is needed for Ultrix, if the X
7932 # libraries were built with DECnet support. And Karl Berry says
7933 # the Alpha needs dnet_stub (dnet does not exist).
7934 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7935 if test x$gcc_no_link = xyes; then
7936 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7937 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7938 { (exit 1); exit 1; }; }
7940 cat >conftest.$ac_ext <<_ACEOF
7941 /* confdefs.h. */
7942 _ACEOF
7943 cat confdefs.h >>conftest.$ac_ext
7944 cat >>conftest.$ac_ext <<_ACEOF
7945 /* end confdefs.h. */
7947 /* Override any gcc2 internal prototype to avoid an error. */
7948 #ifdef __cplusplus
7949 extern "C"
7950 #endif
7951 /* We use char because int might match the return type of a gcc2
7952 builtin and then its argument prototype would still apply. */
7953 char XOpenDisplay ();
7955 main ()
7957 XOpenDisplay ();
7959 return 0;
7961 _ACEOF
7962 rm -f conftest.$ac_objext conftest$ac_exeext
7963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7964 (eval $ac_link) 2>conftest.er1
7965 ac_status=$?
7966 grep -v '^ *+' conftest.er1 >conftest.err
7967 rm -f conftest.er1
7968 cat conftest.err >&5
7969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970 (exit $ac_status); } &&
7971 { ac_try='test -z "$ac_c_werror_flag"
7972 || test ! -s conftest.err'
7973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7974 (eval $ac_try) 2>&5
7975 ac_status=$?
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); }; } &&
7978 { ac_try='test -s conftest$ac_exeext'
7979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7980 (eval $ac_try) 2>&5
7981 ac_status=$?
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); }; }; then
7985 else
7986 echo "$as_me: failed program was:" >&5
7987 sed 's/^/| /' conftest.$ac_ext >&5
7989 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7990 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7991 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7992 echo $ECHO_N "(cached) $ECHO_C" >&6
7993 else
7994 ac_check_lib_save_LIBS=$LIBS
7995 LIBS="-ldnet $LIBS"
7996 if test x$gcc_no_link = xyes; then
7997 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7998 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7999 { (exit 1); exit 1; }; }
8001 cat >conftest.$ac_ext <<_ACEOF
8002 /* confdefs.h. */
8003 _ACEOF
8004 cat confdefs.h >>conftest.$ac_ext
8005 cat >>conftest.$ac_ext <<_ACEOF
8006 /* end confdefs.h. */
8008 /* Override any gcc2 internal prototype to avoid an error. */
8009 #ifdef __cplusplus
8010 extern "C"
8011 #endif
8012 /* We use char because int might match the return type of a gcc2
8013 builtin and then its argument prototype would still apply. */
8014 char dnet_ntoa ();
8016 main ()
8018 dnet_ntoa ();
8020 return 0;
8022 _ACEOF
8023 rm -f conftest.$ac_objext conftest$ac_exeext
8024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8025 (eval $ac_link) 2>conftest.er1
8026 ac_status=$?
8027 grep -v '^ *+' conftest.er1 >conftest.err
8028 rm -f conftest.er1
8029 cat conftest.err >&5
8030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031 (exit $ac_status); } &&
8032 { ac_try='test -z "$ac_c_werror_flag"
8033 || test ! -s conftest.err'
8034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8035 (eval $ac_try) 2>&5
8036 ac_status=$?
8037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038 (exit $ac_status); }; } &&
8039 { ac_try='test -s conftest$ac_exeext'
8040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8041 (eval $ac_try) 2>&5
8042 ac_status=$?
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); }; }; then
8045 ac_cv_lib_dnet_dnet_ntoa=yes
8046 else
8047 echo "$as_me: failed program was:" >&5
8048 sed 's/^/| /' conftest.$ac_ext >&5
8050 ac_cv_lib_dnet_dnet_ntoa=no
8052 rm -f conftest.err conftest.$ac_objext \
8053 conftest$ac_exeext conftest.$ac_ext
8054 LIBS=$ac_check_lib_save_LIBS
8056 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8057 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8058 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8059 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8062 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8063 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8064 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8065 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8066 echo $ECHO_N "(cached) $ECHO_C" >&6
8067 else
8068 ac_check_lib_save_LIBS=$LIBS
8069 LIBS="-ldnet_stub $LIBS"
8070 if test x$gcc_no_link = xyes; then
8071 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8072 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8073 { (exit 1); exit 1; }; }
8075 cat >conftest.$ac_ext <<_ACEOF
8076 /* confdefs.h. */
8077 _ACEOF
8078 cat confdefs.h >>conftest.$ac_ext
8079 cat >>conftest.$ac_ext <<_ACEOF
8080 /* end confdefs.h. */
8082 /* Override any gcc2 internal prototype to avoid an error. */
8083 #ifdef __cplusplus
8084 extern "C"
8085 #endif
8086 /* We use char because int might match the return type of a gcc2
8087 builtin and then its argument prototype would still apply. */
8088 char dnet_ntoa ();
8090 main ()
8092 dnet_ntoa ();
8094 return 0;
8096 _ACEOF
8097 rm -f conftest.$ac_objext conftest$ac_exeext
8098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8099 (eval $ac_link) 2>conftest.er1
8100 ac_status=$?
8101 grep -v '^ *+' conftest.er1 >conftest.err
8102 rm -f conftest.er1
8103 cat conftest.err >&5
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); } &&
8106 { ac_try='test -z "$ac_c_werror_flag"
8107 || test ! -s conftest.err'
8108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8109 (eval $ac_try) 2>&5
8110 ac_status=$?
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); }; } &&
8113 { ac_try='test -s conftest$ac_exeext'
8114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8115 (eval $ac_try) 2>&5
8116 ac_status=$?
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); }; }; then
8119 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8120 else
8121 echo "$as_me: failed program was:" >&5
8122 sed 's/^/| /' conftest.$ac_ext >&5
8124 ac_cv_lib_dnet_stub_dnet_ntoa=no
8126 rm -f conftest.err conftest.$ac_objext \
8127 conftest$ac_exeext conftest.$ac_ext
8128 LIBS=$ac_check_lib_save_LIBS
8130 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8131 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8132 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8133 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8138 rm -f conftest.err conftest.$ac_objext \
8139 conftest$ac_exeext conftest.$ac_ext
8140 LIBS="$ac_xsave_LIBS"
8142 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8143 # to get the SysV transport functions.
8144 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8145 # needs -lnsl.
8146 # The nsl library prevents programs from opening the X display
8147 # on Irix 5.2, according to T.E. Dickey.
8148 # The functions gethostbyname, getservbyname, and inet_addr are
8149 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8150 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8151 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8152 if test "${ac_cv_func_gethostbyname+set}" = set; then
8153 echo $ECHO_N "(cached) $ECHO_C" >&6
8154 else
8155 if test x$gcc_no_link = xyes; then
8156 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8157 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8158 { (exit 1); exit 1; }; }
8160 cat >conftest.$ac_ext <<_ACEOF
8161 /* confdefs.h. */
8162 _ACEOF
8163 cat confdefs.h >>conftest.$ac_ext
8164 cat >>conftest.$ac_ext <<_ACEOF
8165 /* end confdefs.h. */
8166 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
8167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8168 #define gethostbyname innocuous_gethostbyname
8170 /* System header to define __stub macros and hopefully few prototypes,
8171 which can conflict with char gethostbyname (); below.
8172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8173 <limits.h> exists even on freestanding compilers. */
8175 #ifdef __STDC__
8176 # include <limits.h>
8177 #else
8178 # include <assert.h>
8179 #endif
8181 #undef gethostbyname
8183 /* Override any gcc2 internal prototype to avoid an error. */
8184 #ifdef __cplusplus
8185 extern "C"
8187 #endif
8188 /* We use char because int might match the return type of a gcc2
8189 builtin and then its argument prototype would still apply. */
8190 char gethostbyname ();
8191 /* The GNU C library defines this for functions which it implements
8192 to always fail with ENOSYS. Some functions are actually named
8193 something starting with __ and the normal name is an alias. */
8194 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8195 choke me
8196 #else
8197 char (*f) () = gethostbyname;
8198 #endif
8199 #ifdef __cplusplus
8201 #endif
8204 main ()
8206 return f != gethostbyname;
8208 return 0;
8210 _ACEOF
8211 rm -f conftest.$ac_objext conftest$ac_exeext
8212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8213 (eval $ac_link) 2>conftest.er1
8214 ac_status=$?
8215 grep -v '^ *+' conftest.er1 >conftest.err
8216 rm -f conftest.er1
8217 cat conftest.err >&5
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); } &&
8220 { ac_try='test -z "$ac_c_werror_flag"
8221 || test ! -s conftest.err'
8222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8223 (eval $ac_try) 2>&5
8224 ac_status=$?
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); }; } &&
8227 { ac_try='test -s conftest$ac_exeext'
8228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8229 (eval $ac_try) 2>&5
8230 ac_status=$?
8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); }; }; then
8233 ac_cv_func_gethostbyname=yes
8234 else
8235 echo "$as_me: failed program was:" >&5
8236 sed 's/^/| /' conftest.$ac_ext >&5
8238 ac_cv_func_gethostbyname=no
8240 rm -f conftest.err conftest.$ac_objext \
8241 conftest$ac_exeext conftest.$ac_ext
8243 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8244 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8246 if test $ac_cv_func_gethostbyname = no; then
8247 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8248 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8249 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8250 echo $ECHO_N "(cached) $ECHO_C" >&6
8251 else
8252 ac_check_lib_save_LIBS=$LIBS
8253 LIBS="-lnsl $LIBS"
8254 if test x$gcc_no_link = xyes; then
8255 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8256 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8257 { (exit 1); exit 1; }; }
8259 cat >conftest.$ac_ext <<_ACEOF
8260 /* confdefs.h. */
8261 _ACEOF
8262 cat confdefs.h >>conftest.$ac_ext
8263 cat >>conftest.$ac_ext <<_ACEOF
8264 /* end confdefs.h. */
8266 /* Override any gcc2 internal prototype to avoid an error. */
8267 #ifdef __cplusplus
8268 extern "C"
8269 #endif
8270 /* We use char because int might match the return type of a gcc2
8271 builtin and then its argument prototype would still apply. */
8272 char gethostbyname ();
8274 main ()
8276 gethostbyname ();
8278 return 0;
8280 _ACEOF
8281 rm -f conftest.$ac_objext conftest$ac_exeext
8282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8283 (eval $ac_link) 2>conftest.er1
8284 ac_status=$?
8285 grep -v '^ *+' conftest.er1 >conftest.err
8286 rm -f conftest.er1
8287 cat conftest.err >&5
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); } &&
8290 { ac_try='test -z "$ac_c_werror_flag"
8291 || test ! -s conftest.err'
8292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8293 (eval $ac_try) 2>&5
8294 ac_status=$?
8295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296 (exit $ac_status); }; } &&
8297 { ac_try='test -s conftest$ac_exeext'
8298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8299 (eval $ac_try) 2>&5
8300 ac_status=$?
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); }; }; then
8303 ac_cv_lib_nsl_gethostbyname=yes
8304 else
8305 echo "$as_me: failed program was:" >&5
8306 sed 's/^/| /' conftest.$ac_ext >&5
8308 ac_cv_lib_nsl_gethostbyname=no
8310 rm -f conftest.err conftest.$ac_objext \
8311 conftest$ac_exeext conftest.$ac_ext
8312 LIBS=$ac_check_lib_save_LIBS
8314 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8315 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8316 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8317 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8320 if test $ac_cv_lib_nsl_gethostbyname = no; then
8321 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8322 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8323 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8324 echo $ECHO_N "(cached) $ECHO_C" >&6
8325 else
8326 ac_check_lib_save_LIBS=$LIBS
8327 LIBS="-lbsd $LIBS"
8328 if test x$gcc_no_link = xyes; then
8329 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8330 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8331 { (exit 1); exit 1; }; }
8333 cat >conftest.$ac_ext <<_ACEOF
8334 /* confdefs.h. */
8335 _ACEOF
8336 cat confdefs.h >>conftest.$ac_ext
8337 cat >>conftest.$ac_ext <<_ACEOF
8338 /* end confdefs.h. */
8340 /* Override any gcc2 internal prototype to avoid an error. */
8341 #ifdef __cplusplus
8342 extern "C"
8343 #endif
8344 /* We use char because int might match the return type of a gcc2
8345 builtin and then its argument prototype would still apply. */
8346 char gethostbyname ();
8348 main ()
8350 gethostbyname ();
8352 return 0;
8354 _ACEOF
8355 rm -f conftest.$ac_objext conftest$ac_exeext
8356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8357 (eval $ac_link) 2>conftest.er1
8358 ac_status=$?
8359 grep -v '^ *+' conftest.er1 >conftest.err
8360 rm -f conftest.er1
8361 cat conftest.err >&5
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); } &&
8364 { ac_try='test -z "$ac_c_werror_flag"
8365 || test ! -s conftest.err'
8366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8367 (eval $ac_try) 2>&5
8368 ac_status=$?
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); }; } &&
8371 { ac_try='test -s conftest$ac_exeext'
8372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8373 (eval $ac_try) 2>&5
8374 ac_status=$?
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); }; }; then
8377 ac_cv_lib_bsd_gethostbyname=yes
8378 else
8379 echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.$ac_ext >&5
8382 ac_cv_lib_bsd_gethostbyname=no
8384 rm -f conftest.err conftest.$ac_objext \
8385 conftest$ac_exeext conftest.$ac_ext
8386 LIBS=$ac_check_lib_save_LIBS
8388 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8389 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8390 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8391 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8397 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8398 # socket/setsockopt and other routines are undefined under SCO ODT
8399 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8400 # on later versions), says Simon Leinen: it contains gethostby*
8401 # variants that don't use the name server (or something). -lsocket
8402 # must be given before -lnsl if both are needed. We assume that
8403 # if connect needs -lnsl, so does gethostbyname.
8404 echo "$as_me:$LINENO: checking for connect" >&5
8405 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8406 if test "${ac_cv_func_connect+set}" = set; then
8407 echo $ECHO_N "(cached) $ECHO_C" >&6
8408 else
8409 if test x$gcc_no_link = xyes; then
8410 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8411 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8412 { (exit 1); exit 1; }; }
8414 cat >conftest.$ac_ext <<_ACEOF
8415 /* confdefs.h. */
8416 _ACEOF
8417 cat confdefs.h >>conftest.$ac_ext
8418 cat >>conftest.$ac_ext <<_ACEOF
8419 /* end confdefs.h. */
8420 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
8421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8422 #define connect innocuous_connect
8424 /* System header to define __stub macros and hopefully few prototypes,
8425 which can conflict with char connect (); below.
8426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8427 <limits.h> exists even on freestanding compilers. */
8429 #ifdef __STDC__
8430 # include <limits.h>
8431 #else
8432 # include <assert.h>
8433 #endif
8435 #undef connect
8437 /* Override any gcc2 internal prototype to avoid an error. */
8438 #ifdef __cplusplus
8439 extern "C"
8441 #endif
8442 /* We use char because int might match the return type of a gcc2
8443 builtin and then its argument prototype would still apply. */
8444 char connect ();
8445 /* The GNU C library defines this for functions which it implements
8446 to always fail with ENOSYS. Some functions are actually named
8447 something starting with __ and the normal name is an alias. */
8448 #if defined (__stub_connect) || defined (__stub___connect)
8449 choke me
8450 #else
8451 char (*f) () = connect;
8452 #endif
8453 #ifdef __cplusplus
8455 #endif
8458 main ()
8460 return f != connect;
8462 return 0;
8464 _ACEOF
8465 rm -f conftest.$ac_objext conftest$ac_exeext
8466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8467 (eval $ac_link) 2>conftest.er1
8468 ac_status=$?
8469 grep -v '^ *+' conftest.er1 >conftest.err
8470 rm -f conftest.er1
8471 cat conftest.err >&5
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); } &&
8474 { ac_try='test -z "$ac_c_werror_flag"
8475 || test ! -s conftest.err'
8476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8477 (eval $ac_try) 2>&5
8478 ac_status=$?
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); }; } &&
8481 { ac_try='test -s conftest$ac_exeext'
8482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8483 (eval $ac_try) 2>&5
8484 ac_status=$?
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); }; }; then
8487 ac_cv_func_connect=yes
8488 else
8489 echo "$as_me: failed program was:" >&5
8490 sed 's/^/| /' conftest.$ac_ext >&5
8492 ac_cv_func_connect=no
8494 rm -f conftest.err conftest.$ac_objext \
8495 conftest$ac_exeext conftest.$ac_ext
8497 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8498 echo "${ECHO_T}$ac_cv_func_connect" >&6
8500 if test $ac_cv_func_connect = no; then
8501 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8502 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8503 if test "${ac_cv_lib_socket_connect+set}" = set; then
8504 echo $ECHO_N "(cached) $ECHO_C" >&6
8505 else
8506 ac_check_lib_save_LIBS=$LIBS
8507 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8508 if test x$gcc_no_link = xyes; then
8509 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8510 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8511 { (exit 1); exit 1; }; }
8513 cat >conftest.$ac_ext <<_ACEOF
8514 /* confdefs.h. */
8515 _ACEOF
8516 cat confdefs.h >>conftest.$ac_ext
8517 cat >>conftest.$ac_ext <<_ACEOF
8518 /* end confdefs.h. */
8520 /* Override any gcc2 internal prototype to avoid an error. */
8521 #ifdef __cplusplus
8522 extern "C"
8523 #endif
8524 /* We use char because int might match the return type of a gcc2
8525 builtin and then its argument prototype would still apply. */
8526 char connect ();
8528 main ()
8530 connect ();
8532 return 0;
8534 _ACEOF
8535 rm -f conftest.$ac_objext conftest$ac_exeext
8536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8537 (eval $ac_link) 2>conftest.er1
8538 ac_status=$?
8539 grep -v '^ *+' conftest.er1 >conftest.err
8540 rm -f conftest.er1
8541 cat conftest.err >&5
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); } &&
8544 { ac_try='test -z "$ac_c_werror_flag"
8545 || test ! -s conftest.err'
8546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547 (eval $ac_try) 2>&5
8548 ac_status=$?
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); }; } &&
8551 { ac_try='test -s conftest$ac_exeext'
8552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8553 (eval $ac_try) 2>&5
8554 ac_status=$?
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); }; }; then
8557 ac_cv_lib_socket_connect=yes
8558 else
8559 echo "$as_me: failed program was:" >&5
8560 sed 's/^/| /' conftest.$ac_ext >&5
8562 ac_cv_lib_socket_connect=no
8564 rm -f conftest.err conftest.$ac_objext \
8565 conftest$ac_exeext conftest.$ac_ext
8566 LIBS=$ac_check_lib_save_LIBS
8568 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8569 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8570 if test $ac_cv_lib_socket_connect = yes; then
8571 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8576 # Guillermo Gomez says -lposix is necessary on A/UX.
8577 echo "$as_me:$LINENO: checking for remove" >&5
8578 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8579 if test "${ac_cv_func_remove+set}" = set; then
8580 echo $ECHO_N "(cached) $ECHO_C" >&6
8581 else
8582 if test x$gcc_no_link = xyes; then
8583 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8584 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8585 { (exit 1); exit 1; }; }
8587 cat >conftest.$ac_ext <<_ACEOF
8588 /* confdefs.h. */
8589 _ACEOF
8590 cat confdefs.h >>conftest.$ac_ext
8591 cat >>conftest.$ac_ext <<_ACEOF
8592 /* end confdefs.h. */
8593 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
8594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8595 #define remove innocuous_remove
8597 /* System header to define __stub macros and hopefully few prototypes,
8598 which can conflict with char remove (); below.
8599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8600 <limits.h> exists even on freestanding compilers. */
8602 #ifdef __STDC__
8603 # include <limits.h>
8604 #else
8605 # include <assert.h>
8606 #endif
8608 #undef remove
8610 /* Override any gcc2 internal prototype to avoid an error. */
8611 #ifdef __cplusplus
8612 extern "C"
8614 #endif
8615 /* We use char because int might match the return type of a gcc2
8616 builtin and then its argument prototype would still apply. */
8617 char remove ();
8618 /* The GNU C library defines this for functions which it implements
8619 to always fail with ENOSYS. Some functions are actually named
8620 something starting with __ and the normal name is an alias. */
8621 #if defined (__stub_remove) || defined (__stub___remove)
8622 choke me
8623 #else
8624 char (*f) () = remove;
8625 #endif
8626 #ifdef __cplusplus
8628 #endif
8631 main ()
8633 return f != remove;
8635 return 0;
8637 _ACEOF
8638 rm -f conftest.$ac_objext conftest$ac_exeext
8639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8640 (eval $ac_link) 2>conftest.er1
8641 ac_status=$?
8642 grep -v '^ *+' conftest.er1 >conftest.err
8643 rm -f conftest.er1
8644 cat conftest.err >&5
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); } &&
8647 { ac_try='test -z "$ac_c_werror_flag"
8648 || test ! -s conftest.err'
8649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8650 (eval $ac_try) 2>&5
8651 ac_status=$?
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); }; } &&
8654 { ac_try='test -s conftest$ac_exeext'
8655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8656 (eval $ac_try) 2>&5
8657 ac_status=$?
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); }; }; then
8660 ac_cv_func_remove=yes
8661 else
8662 echo "$as_me: failed program was:" >&5
8663 sed 's/^/| /' conftest.$ac_ext >&5
8665 ac_cv_func_remove=no
8667 rm -f conftest.err conftest.$ac_objext \
8668 conftest$ac_exeext conftest.$ac_ext
8670 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8671 echo "${ECHO_T}$ac_cv_func_remove" >&6
8673 if test $ac_cv_func_remove = no; then
8674 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8675 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8676 if test "${ac_cv_lib_posix_remove+set}" = set; then
8677 echo $ECHO_N "(cached) $ECHO_C" >&6
8678 else
8679 ac_check_lib_save_LIBS=$LIBS
8680 LIBS="-lposix $LIBS"
8681 if test x$gcc_no_link = xyes; then
8682 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8683 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8684 { (exit 1); exit 1; }; }
8686 cat >conftest.$ac_ext <<_ACEOF
8687 /* confdefs.h. */
8688 _ACEOF
8689 cat confdefs.h >>conftest.$ac_ext
8690 cat >>conftest.$ac_ext <<_ACEOF
8691 /* end confdefs.h. */
8693 /* Override any gcc2 internal prototype to avoid an error. */
8694 #ifdef __cplusplus
8695 extern "C"
8696 #endif
8697 /* We use char because int might match the return type of a gcc2
8698 builtin and then its argument prototype would still apply. */
8699 char remove ();
8701 main ()
8703 remove ();
8705 return 0;
8707 _ACEOF
8708 rm -f conftest.$ac_objext conftest$ac_exeext
8709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8710 (eval $ac_link) 2>conftest.er1
8711 ac_status=$?
8712 grep -v '^ *+' conftest.er1 >conftest.err
8713 rm -f conftest.er1
8714 cat conftest.err >&5
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); } &&
8717 { ac_try='test -z "$ac_c_werror_flag"
8718 || test ! -s conftest.err'
8719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8720 (eval $ac_try) 2>&5
8721 ac_status=$?
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); }; } &&
8724 { ac_try='test -s conftest$ac_exeext'
8725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8726 (eval $ac_try) 2>&5
8727 ac_status=$?
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); }; }; then
8730 ac_cv_lib_posix_remove=yes
8731 else
8732 echo "$as_me: failed program was:" >&5
8733 sed 's/^/| /' conftest.$ac_ext >&5
8735 ac_cv_lib_posix_remove=no
8737 rm -f conftest.err conftest.$ac_objext \
8738 conftest$ac_exeext conftest.$ac_ext
8739 LIBS=$ac_check_lib_save_LIBS
8741 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8742 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8743 if test $ac_cv_lib_posix_remove = yes; then
8744 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8749 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8750 echo "$as_me:$LINENO: checking for shmat" >&5
8751 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8752 if test "${ac_cv_func_shmat+set}" = set; then
8753 echo $ECHO_N "(cached) $ECHO_C" >&6
8754 else
8755 if test x$gcc_no_link = xyes; then
8756 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8757 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8758 { (exit 1); exit 1; }; }
8760 cat >conftest.$ac_ext <<_ACEOF
8761 /* confdefs.h. */
8762 _ACEOF
8763 cat confdefs.h >>conftest.$ac_ext
8764 cat >>conftest.$ac_ext <<_ACEOF
8765 /* end confdefs.h. */
8766 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
8767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8768 #define shmat innocuous_shmat
8770 /* System header to define __stub macros and hopefully few prototypes,
8771 which can conflict with char shmat (); below.
8772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8773 <limits.h> exists even on freestanding compilers. */
8775 #ifdef __STDC__
8776 # include <limits.h>
8777 #else
8778 # include <assert.h>
8779 #endif
8781 #undef shmat
8783 /* Override any gcc2 internal prototype to avoid an error. */
8784 #ifdef __cplusplus
8785 extern "C"
8787 #endif
8788 /* We use char because int might match the return type of a gcc2
8789 builtin and then its argument prototype would still apply. */
8790 char shmat ();
8791 /* The GNU C library defines this for functions which it implements
8792 to always fail with ENOSYS. Some functions are actually named
8793 something starting with __ and the normal name is an alias. */
8794 #if defined (__stub_shmat) || defined (__stub___shmat)
8795 choke me
8796 #else
8797 char (*f) () = shmat;
8798 #endif
8799 #ifdef __cplusplus
8801 #endif
8804 main ()
8806 return f != shmat;
8808 return 0;
8810 _ACEOF
8811 rm -f conftest.$ac_objext conftest$ac_exeext
8812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8813 (eval $ac_link) 2>conftest.er1
8814 ac_status=$?
8815 grep -v '^ *+' conftest.er1 >conftest.err
8816 rm -f conftest.er1
8817 cat conftest.err >&5
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); } &&
8820 { ac_try='test -z "$ac_c_werror_flag"
8821 || test ! -s conftest.err'
8822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8823 (eval $ac_try) 2>&5
8824 ac_status=$?
8825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826 (exit $ac_status); }; } &&
8827 { ac_try='test -s conftest$ac_exeext'
8828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8829 (eval $ac_try) 2>&5
8830 ac_status=$?
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); }; }; then
8833 ac_cv_func_shmat=yes
8834 else
8835 echo "$as_me: failed program was:" >&5
8836 sed 's/^/| /' conftest.$ac_ext >&5
8838 ac_cv_func_shmat=no
8840 rm -f conftest.err conftest.$ac_objext \
8841 conftest$ac_exeext conftest.$ac_ext
8843 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8844 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8846 if test $ac_cv_func_shmat = no; then
8847 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8848 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8849 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8850 echo $ECHO_N "(cached) $ECHO_C" >&6
8851 else
8852 ac_check_lib_save_LIBS=$LIBS
8853 LIBS="-lipc $LIBS"
8854 if test x$gcc_no_link = xyes; then
8855 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8856 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8857 { (exit 1); exit 1; }; }
8859 cat >conftest.$ac_ext <<_ACEOF
8860 /* confdefs.h. */
8861 _ACEOF
8862 cat confdefs.h >>conftest.$ac_ext
8863 cat >>conftest.$ac_ext <<_ACEOF
8864 /* end confdefs.h. */
8866 /* Override any gcc2 internal prototype to avoid an error. */
8867 #ifdef __cplusplus
8868 extern "C"
8869 #endif
8870 /* We use char because int might match the return type of a gcc2
8871 builtin and then its argument prototype would still apply. */
8872 char shmat ();
8874 main ()
8876 shmat ();
8878 return 0;
8880 _ACEOF
8881 rm -f conftest.$ac_objext conftest$ac_exeext
8882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8883 (eval $ac_link) 2>conftest.er1
8884 ac_status=$?
8885 grep -v '^ *+' conftest.er1 >conftest.err
8886 rm -f conftest.er1
8887 cat conftest.err >&5
8888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889 (exit $ac_status); } &&
8890 { ac_try='test -z "$ac_c_werror_flag"
8891 || test ! -s conftest.err'
8892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8893 (eval $ac_try) 2>&5
8894 ac_status=$?
8895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896 (exit $ac_status); }; } &&
8897 { ac_try='test -s conftest$ac_exeext'
8898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8899 (eval $ac_try) 2>&5
8900 ac_status=$?
8901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902 (exit $ac_status); }; }; then
8903 ac_cv_lib_ipc_shmat=yes
8904 else
8905 echo "$as_me: failed program was:" >&5
8906 sed 's/^/| /' conftest.$ac_ext >&5
8908 ac_cv_lib_ipc_shmat=no
8910 rm -f conftest.err conftest.$ac_objext \
8911 conftest$ac_exeext conftest.$ac_ext
8912 LIBS=$ac_check_lib_save_LIBS
8914 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8915 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8916 if test $ac_cv_lib_ipc_shmat = yes; then
8917 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8923 # Check for libraries that X11R6 Xt/Xaw programs need.
8924 ac_save_LDFLAGS=$LDFLAGS
8925 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8926 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8927 # check for ICE first), but we must link in the order -lSM -lICE or
8928 # we get undefined symbols. So assume we have SM if we have ICE.
8929 # These have to be linked with before -lX11, unlike the other
8930 # libraries we check for below, so use a different variable.
8931 # John Interrante, Karl Berry
8932 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8933 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8934 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8935 echo $ECHO_N "(cached) $ECHO_C" >&6
8936 else
8937 ac_check_lib_save_LIBS=$LIBS
8938 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8939 if test x$gcc_no_link = xyes; then
8940 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8941 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8942 { (exit 1); exit 1; }; }
8944 cat >conftest.$ac_ext <<_ACEOF
8945 /* confdefs.h. */
8946 _ACEOF
8947 cat confdefs.h >>conftest.$ac_ext
8948 cat >>conftest.$ac_ext <<_ACEOF
8949 /* end confdefs.h. */
8951 /* Override any gcc2 internal prototype to avoid an error. */
8952 #ifdef __cplusplus
8953 extern "C"
8954 #endif
8955 /* We use char because int might match the return type of a gcc2
8956 builtin and then its argument prototype would still apply. */
8957 char IceConnectionNumber ();
8959 main ()
8961 IceConnectionNumber ();
8963 return 0;
8965 _ACEOF
8966 rm -f conftest.$ac_objext conftest$ac_exeext
8967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8968 (eval $ac_link) 2>conftest.er1
8969 ac_status=$?
8970 grep -v '^ *+' conftest.er1 >conftest.err
8971 rm -f conftest.er1
8972 cat conftest.err >&5
8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); } &&
8975 { ac_try='test -z "$ac_c_werror_flag"
8976 || test ! -s conftest.err'
8977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8978 (eval $ac_try) 2>&5
8979 ac_status=$?
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); }; } &&
8982 { ac_try='test -s conftest$ac_exeext'
8983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8984 (eval $ac_try) 2>&5
8985 ac_status=$?
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); }; }; then
8988 ac_cv_lib_ICE_IceConnectionNumber=yes
8989 else
8990 echo "$as_me: failed program was:" >&5
8991 sed 's/^/| /' conftest.$ac_ext >&5
8993 ac_cv_lib_ICE_IceConnectionNumber=no
8995 rm -f conftest.err conftest.$ac_objext \
8996 conftest$ac_exeext conftest.$ac_ext
8997 LIBS=$ac_check_lib_save_LIBS
8999 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9000 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9001 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9002 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9005 LDFLAGS=$ac_save_LDFLAGS
9010 # FIXME: this should be _libs on some hosts.
9011 libsubdir=.libs
9013 # extra LD Flags which are required for targets
9014 case "${host}" in
9015 *-*-darwin[0-7].*)
9016 # For now we have to disable it on darwin[8-9] because it slows down
9017 # the linking phase. A possible bug in ld?
9018 # on Darwin -single_module speeds up loading of the dynamic libraries.
9019 extra_ldflags_libjava=-Wl,-single_module
9021 esac
9024 # Allow the GC to be disabled. Can be useful when debugging.
9025 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
9026 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
9027 # Check whether --enable-java-gc or --disable-java-gc was given.
9028 if test "${enable_java_gc+set}" = set; then
9029 enableval="$enable_java_gc"
9030 GC=$enableval
9031 else
9032 GC=boehm
9034 GCLIBS=
9035 GCINCS=
9036 GCDEPS=
9037 GCSPEC=
9038 JC1GCSPEC=
9039 GCTESTSPEC=
9040 case "$GC" in
9041 boehm)
9042 echo "$as_me:$LINENO: result: boehm" >&5
9043 echo "${ECHO_T}boehm" >&6
9044 GCLIBS=../boehm-gc/libgcjgc_convenience.la
9045 JC1GCSPEC='-fuse-boehm-gc'
9046 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
9047 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
9048 GCOBJS=boehm.lo
9049 GCHDR=boehm-gc.h
9050 # The POSIX thread support needs to know this.
9052 cat >>confdefs.h <<\_ACEOF
9053 #define HAVE_BOEHM_GC 1
9054 _ACEOF
9058 echo "$as_me:$LINENO: result: none" >&5
9059 echo "${ECHO_T}none" >&6
9060 GCHDR=no-gc.h
9063 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
9064 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
9065 { (exit 1); exit 1; }; }
9067 esac
9074 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
9078 if test "$GC" = boehm; then
9079 USING_BOEHMGC_TRUE=
9080 USING_BOEHMGC_FALSE='#'
9081 else
9082 USING_BOEHMGC_TRUE='#'
9083 USING_BOEHMGC_FALSE=
9088 if test "$GC" = no; then
9089 USING_NOGC_TRUE=
9090 USING_NOGC_FALSE='#'
9091 else
9092 USING_NOGC_TRUE='#'
9093 USING_NOGC_FALSE=
9098 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
9099 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
9100 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
9101 echo "$as_me:$LINENO: result: $THREADS" >&5
9102 echo "${ECHO_T}$THREADS" >&6
9104 case "$THREADS" in
9105 no | none | single)
9106 THREADS=none
9108 posix | posix95 | pthreads)
9109 THREADS=posix
9110 case "$host" in
9111 *-*-linux*)
9113 cat >>confdefs.h <<\_ACEOF
9114 #define LINUX_THREADS 1
9115 _ACEOF
9118 esac
9120 win32)
9122 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
9123 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
9124 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
9125 { (exit 1); exit 1; }; }
9128 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
9129 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
9130 { (exit 1); exit 1; }; }
9132 esac
9134 THREADCXXFLAGS=
9135 THREADLDFLAGS=
9136 THREADLIBS=
9137 THREADINCS=
9138 THREADDEPS=
9139 THREADH=
9140 THREADSPEC=
9141 THREADSTARTFILESPEC=
9142 case "$THREADS" in
9143 posix)
9144 case "$host" in
9145 *-*-cygwin*)
9146 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
9148 *-*-freebsd[1234]*)
9149 # Before FreeBSD 5, it didn't have -lpthread (or any library which
9150 # merely adds pthread_* functions) but it does have a -pthread switch
9151 # which is required at link-time to select -lc_r *instead* of -lc.
9152 THREADLDFLAGS=-pthread
9153 # Don't set THREADSPEC here as might be expected since -pthread is
9154 # not processed when found within a spec file, it must come from
9155 # the command line. For now, the user must provide the -pthread
9156 # switch to link code compiled with gcj. In future, consider adding
9157 # support for weak references to pthread_* functions ala gthr.h API.
9158 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
9160 *-*-freebsd*)
9161 # FreeBSD >=5.3 implements a model much closer to other modern UNIX
9162 # systems which support threads and -lpthread.
9163 THREADLDFLAGS=-pthread
9164 THREADSPEC=-lpthread
9166 alpha*-dec-osf* | hppa*-hp-hpux*)
9167 THREADCXXFLAGS=-pthread
9168 # boehm-gc needs some functions from librt, so link that too.
9169 THREADLIBS='-lpthread -lrt'
9170 THREADSPEC='-lpthread -lrt'
9173 THREADLIBS=-lpthread
9174 THREADSPEC=-lpthread
9176 esac
9177 THREADH=posix-threads.h
9178 # MIT pthreads doesn't seem to have the mutexattr functions.
9179 # But for now we don't check for it. We just assume you aren't
9180 # using MIT pthreads.
9182 cat >>confdefs.h <<\_ACEOF
9183 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9184 _ACEOF
9187 # If we're using the Boehm GC, then we happen to know that it
9188 # defines _REENTRANT, so we don't bother. Eww.
9189 if test "$GC" != boehm; then
9191 cat >>confdefs.h <<\_ACEOF
9192 #define _REENTRANT 1
9193 _ACEOF
9197 cat >>confdefs.h <<\_ACEOF
9198 #define _POSIX_PTHREAD_SEMANTICS 1
9199 _ACEOF
9203 win32)
9204 THREADH=win32-threads.h
9205 THREADCXXFLAGS=-mthreads
9206 # We need thread-safe exception handling so _CRT_MT should be set to 1.
9207 # But we do not want the executables created to be dependent on
9208 # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
9209 # exception handling contexts. The following kludge achieves this effect
9210 # and causes a dummy __mingwthr_key_dtor() to be linked in from
9211 # libmingw32.a. This causes a memory leak of about 24 bytes per thread.
9212 # A workaround is to explicitly use -mthreads while linking Java programs.
9213 # See PR libgcj/28263.
9215 # FIXME: In Java we are able to detect thread death at the end of
9216 # Thread.run() so we should be able to clean up the exception handling
9217 # contexts ourselves.
9218 THREADSTARTFILESPEC='crtmt%O%s'
9221 none)
9222 THREADH=no-threads.h
9224 esac
9225 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
9236 if test "$THREADS" = posix; then
9237 USING_POSIX_THREADS_TRUE=
9238 USING_POSIX_THREADS_FALSE='#'
9239 else
9240 USING_POSIX_THREADS_TRUE='#'
9241 USING_POSIX_THREADS_FALSE=
9246 if test "$THREADS" = win32; then
9247 USING_WIN32_THREADS_TRUE=
9248 USING_WIN32_THREADS_FALSE='#'
9249 else
9250 USING_WIN32_THREADS_TRUE='#'
9251 USING_WIN32_THREADS_FALSE=
9256 if test "$THREADS" = none; then
9257 USING_NO_THREADS_TRUE=
9258 USING_NO_THREADS_FALSE='#'
9259 else
9260 USING_NO_THREADS_TRUE='#'
9261 USING_NO_THREADS_FALSE=
9266 if test "$use_libgcj_bc" = yes; then
9267 USE_LIBGCJ_BC_TRUE=
9268 USE_LIBGCJ_BC_FALSE='#'
9269 else
9270 USE_LIBGCJ_BC_TRUE='#'
9271 USE_LIBGCJ_BC_FALSE=
9275 if test -d sysdep; then true; else mkdir sysdep; fi
9276 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
9278 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
9280 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
9283 LIBGCJ_SPEC="%{s-bc-abi:} -lgcj"
9284 if test "$use_libgcj_bc" = yes; then
9285 LIBGCJ_SPEC="%{s-bc-abi:-lgcj_bc;:-lgcj}"
9289 HASH_SYNC_SPEC=
9290 # Hash synchronization is only useful with posix threads right now.
9291 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
9292 HASH_SYNC_SPEC=-fhash-synchronization
9294 cat >>confdefs.h <<\_ACEOF
9295 #define JV_HASH_SYNCHRONIZATION 1
9296 _ACEOF
9303 if test "$GCC" = yes; then
9304 USING_GCC_TRUE=
9305 USING_GCC_FALSE='#'
9306 else
9307 USING_GCC_TRUE='#'
9308 USING_GCC_FALSE=
9312 # We're in the tree with gcc, and need to include some of its headers.
9313 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
9315 if test "x${with_newlib}" = "xyes"; then
9316 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
9317 # may not work correctly, because the compiler may not be able to
9318 # link executables.
9320 # We assume newlib. This lets us hard-code the functions we know
9321 # we'll have.
9323 cat >>confdefs.h <<\_ACEOF
9324 #define HAVE_MEMMOVE 1
9325 _ACEOF
9328 cat >>confdefs.h <<\_ACEOF
9329 #define HAVE_MEMCPY 1
9330 _ACEOF
9333 cat >>confdefs.h <<\_ACEOF
9334 #define HAVE_STRERROR 1
9335 _ACEOF
9338 cat >>confdefs.h <<\_ACEOF
9339 #define HAVE_TIME 1
9340 _ACEOF
9343 cat >>confdefs.h <<\_ACEOF
9344 #define HAVE_GMTIME_R 1
9345 _ACEOF
9348 cat >>confdefs.h <<\_ACEOF
9349 #define HAVE_LOCALTIME_R 1
9350 _ACEOF
9353 cat >>confdefs.h <<\_ACEOF
9354 #define HAVE_USLEEP_DECL 1
9355 _ACEOF
9357 # This is only for POSIX threads.
9359 cat >>confdefs.h <<\_ACEOF
9360 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9361 _ACEOF
9363 # We also assume we are using gcc, which provides alloca.
9364 cat >>confdefs.h <<\_ACEOF
9365 #define HAVE_ALLOCA 1
9366 _ACEOF
9369 # Assume we do not have getuid and friends.
9371 cat >>confdefs.h <<\_ACEOF
9372 #define NO_GETUID 1
9373 _ACEOF
9375 PLATFORMNET=NoNet
9376 else
9412 for ac_func in strerror ioctl select fstat open fsync sleep opendir \
9413 gmtime_r localtime_r readdir_r getpwuid_r getcwd \
9414 access stat lstat mkdir rename rmdir unlink utime chmod readlink \
9415 nl_langinfo setlocale \
9416 inet_pton uname inet_ntoa \
9417 fork execvp pipe sigaction ftruncate mmap \
9418 getifaddrs
9420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9421 echo "$as_me:$LINENO: checking for $ac_func" >&5
9422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9423 if eval "test \"\${$as_ac_var+set}\" = set"; then
9424 echo $ECHO_N "(cached) $ECHO_C" >&6
9425 else
9426 if test x$gcc_no_link = xyes; then
9427 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9428 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9429 { (exit 1); exit 1; }; }
9431 cat >conftest.$ac_ext <<_ACEOF
9432 /* confdefs.h. */
9433 _ACEOF
9434 cat confdefs.h >>conftest.$ac_ext
9435 cat >>conftest.$ac_ext <<_ACEOF
9436 /* end confdefs.h. */
9437 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9438 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9439 #define $ac_func innocuous_$ac_func
9441 /* System header to define __stub macros and hopefully few prototypes,
9442 which can conflict with char $ac_func (); below.
9443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9444 <limits.h> exists even on freestanding compilers. */
9446 #ifdef __STDC__
9447 # include <limits.h>
9448 #else
9449 # include <assert.h>
9450 #endif
9452 #undef $ac_func
9454 /* Override any gcc2 internal prototype to avoid an error. */
9455 #ifdef __cplusplus
9456 extern "C"
9458 #endif
9459 /* We use char because int might match the return type of a gcc2
9460 builtin and then its argument prototype would still apply. */
9461 char $ac_func ();
9462 /* The GNU C library defines this for functions which it implements
9463 to always fail with ENOSYS. Some functions are actually named
9464 something starting with __ and the normal name is an alias. */
9465 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9466 choke me
9467 #else
9468 char (*f) () = $ac_func;
9469 #endif
9470 #ifdef __cplusplus
9472 #endif
9475 main ()
9477 return f != $ac_func;
9479 return 0;
9481 _ACEOF
9482 rm -f conftest.$ac_objext conftest$ac_exeext
9483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9484 (eval $ac_link) 2>conftest.er1
9485 ac_status=$?
9486 grep -v '^ *+' conftest.er1 >conftest.err
9487 rm -f conftest.er1
9488 cat conftest.err >&5
9489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490 (exit $ac_status); } &&
9491 { ac_try='test -z "$ac_c_werror_flag"
9492 || test ! -s conftest.err'
9493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9494 (eval $ac_try) 2>&5
9495 ac_status=$?
9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497 (exit $ac_status); }; } &&
9498 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9504 eval "$as_ac_var=yes"
9505 else
9506 echo "$as_me: failed program was:" >&5
9507 sed 's/^/| /' conftest.$ac_ext >&5
9509 eval "$as_ac_var=no"
9511 rm -f conftest.err conftest.$ac_objext \
9512 conftest$ac_exeext conftest.$ac_ext
9514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9515 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9516 if test `eval echo '${'$as_ac_var'}'` = yes; then
9517 cat >>confdefs.h <<_ACEOF
9518 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9519 _ACEOF
9522 done
9526 for ac_func in inet_aton inet_addr
9528 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9529 echo "$as_me:$LINENO: checking for $ac_func" >&5
9530 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9531 if eval "test \"\${$as_ac_var+set}\" = set"; then
9532 echo $ECHO_N "(cached) $ECHO_C" >&6
9533 else
9534 if test x$gcc_no_link = xyes; then
9535 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9536 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9537 { (exit 1); exit 1; }; }
9539 cat >conftest.$ac_ext <<_ACEOF
9540 /* confdefs.h. */
9541 _ACEOF
9542 cat confdefs.h >>conftest.$ac_ext
9543 cat >>conftest.$ac_ext <<_ACEOF
9544 /* end confdefs.h. */
9545 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9547 #define $ac_func innocuous_$ac_func
9549 /* System header to define __stub macros and hopefully few prototypes,
9550 which can conflict with char $ac_func (); below.
9551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9552 <limits.h> exists even on freestanding compilers. */
9554 #ifdef __STDC__
9555 # include <limits.h>
9556 #else
9557 # include <assert.h>
9558 #endif
9560 #undef $ac_func
9562 /* Override any gcc2 internal prototype to avoid an error. */
9563 #ifdef __cplusplus
9564 extern "C"
9566 #endif
9567 /* We use char because int might match the return type of a gcc2
9568 builtin and then its argument prototype would still apply. */
9569 char $ac_func ();
9570 /* The GNU C library defines this for functions which it implements
9571 to always fail with ENOSYS. Some functions are actually named
9572 something starting with __ and the normal name is an alias. */
9573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9574 choke me
9575 #else
9576 char (*f) () = $ac_func;
9577 #endif
9578 #ifdef __cplusplus
9580 #endif
9583 main ()
9585 return f != $ac_func;
9587 return 0;
9589 _ACEOF
9590 rm -f conftest.$ac_objext conftest$ac_exeext
9591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9592 (eval $ac_link) 2>conftest.er1
9593 ac_status=$?
9594 grep -v '^ *+' conftest.er1 >conftest.err
9595 rm -f conftest.er1
9596 cat conftest.err >&5
9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598 (exit $ac_status); } &&
9599 { ac_try='test -z "$ac_c_werror_flag"
9600 || test ! -s conftest.err'
9601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9602 (eval $ac_try) 2>&5
9603 ac_status=$?
9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605 (exit $ac_status); }; } &&
9606 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9612 eval "$as_ac_var=yes"
9613 else
9614 echo "$as_me: failed program was:" >&5
9615 sed 's/^/| /' conftest.$ac_ext >&5
9617 eval "$as_ac_var=no"
9619 rm -f conftest.err conftest.$ac_objext \
9620 conftest$ac_exeext conftest.$ac_ext
9622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9623 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9624 if test `eval echo '${'$as_ac_var'}'` = yes; then
9625 cat >>confdefs.h <<_ACEOF
9626 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9627 _ACEOF
9628 break
9630 done
9632 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9633 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9634 if test "${ac_cv_header_stdc+set}" = set; then
9635 echo $ECHO_N "(cached) $ECHO_C" >&6
9636 else
9637 cat >conftest.$ac_ext <<_ACEOF
9638 /* confdefs.h. */
9639 _ACEOF
9640 cat confdefs.h >>conftest.$ac_ext
9641 cat >>conftest.$ac_ext <<_ACEOF
9642 /* end confdefs.h. */
9643 #include <stdlib.h>
9644 #include <stdarg.h>
9645 #include <string.h>
9646 #include <float.h>
9649 main ()
9653 return 0;
9655 _ACEOF
9656 rm -f conftest.$ac_objext
9657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9658 (eval $ac_compile) 2>conftest.er1
9659 ac_status=$?
9660 grep -v '^ *+' conftest.er1 >conftest.err
9661 rm -f conftest.er1
9662 cat conftest.err >&5
9663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664 (exit $ac_status); } &&
9665 { ac_try='test -z "$ac_c_werror_flag"
9666 || test ! -s conftest.err'
9667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9668 (eval $ac_try) 2>&5
9669 ac_status=$?
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); }; } &&
9672 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
9678 ac_cv_header_stdc=yes
9679 else
9680 echo "$as_me: failed program was:" >&5
9681 sed 's/^/| /' conftest.$ac_ext >&5
9683 ac_cv_header_stdc=no
9685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9687 if test $ac_cv_header_stdc = yes; then
9688 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9689 cat >conftest.$ac_ext <<_ACEOF
9690 /* confdefs.h. */
9691 _ACEOF
9692 cat confdefs.h >>conftest.$ac_ext
9693 cat >>conftest.$ac_ext <<_ACEOF
9694 /* end confdefs.h. */
9695 #include <string.h>
9697 _ACEOF
9698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9699 $EGREP "memchr" >/dev/null 2>&1; then
9701 else
9702 ac_cv_header_stdc=no
9704 rm -f conftest*
9708 if test $ac_cv_header_stdc = yes; then
9709 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9710 cat >conftest.$ac_ext <<_ACEOF
9711 /* confdefs.h. */
9712 _ACEOF
9713 cat confdefs.h >>conftest.$ac_ext
9714 cat >>conftest.$ac_ext <<_ACEOF
9715 /* end confdefs.h. */
9716 #include <stdlib.h>
9718 _ACEOF
9719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9720 $EGREP "free" >/dev/null 2>&1; then
9722 else
9723 ac_cv_header_stdc=no
9725 rm -f conftest*
9729 if test $ac_cv_header_stdc = yes; then
9730 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9731 if test "$cross_compiling" = yes; then
9733 else
9734 cat >conftest.$ac_ext <<_ACEOF
9735 /* confdefs.h. */
9736 _ACEOF
9737 cat confdefs.h >>conftest.$ac_ext
9738 cat >>conftest.$ac_ext <<_ACEOF
9739 /* end confdefs.h. */
9740 #include <ctype.h>
9741 #if ((' ' & 0x0FF) == 0x020)
9742 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9743 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9744 #else
9745 # define ISLOWER(c) \
9746 (('a' <= (c) && (c) <= 'i') \
9747 || ('j' <= (c) && (c) <= 'r') \
9748 || ('s' <= (c) && (c) <= 'z'))
9749 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9750 #endif
9752 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9754 main ()
9756 int i;
9757 for (i = 0; i < 256; i++)
9758 if (XOR (islower (i), ISLOWER (i))
9759 || toupper (i) != TOUPPER (i))
9760 exit(2);
9761 exit (0);
9763 _ACEOF
9764 rm -f conftest$ac_exeext
9765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9766 (eval $ac_link) 2>&5
9767 ac_status=$?
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9771 (eval $ac_try) 2>&5
9772 ac_status=$?
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); }; }; then
9776 else
9777 echo "$as_me: program exited with status $ac_status" >&5
9778 echo "$as_me: failed program was:" >&5
9779 sed 's/^/| /' conftest.$ac_ext >&5
9781 ( exit $ac_status )
9782 ac_cv_header_stdc=no
9784 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9788 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9789 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9790 if test $ac_cv_header_stdc = yes; then
9792 cat >>confdefs.h <<\_ACEOF
9793 #define STDC_HEADERS 1
9794 _ACEOF
9798 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9808 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9809 inttypes.h stdint.h unistd.h
9811 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9812 echo "$as_me:$LINENO: checking for $ac_header" >&5
9813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9815 echo $ECHO_N "(cached) $ECHO_C" >&6
9816 else
9817 cat >conftest.$ac_ext <<_ACEOF
9818 /* confdefs.h. */
9819 _ACEOF
9820 cat confdefs.h >>conftest.$ac_ext
9821 cat >>conftest.$ac_ext <<_ACEOF
9822 /* end confdefs.h. */
9823 $ac_includes_default
9825 #include <$ac_header>
9826 _ACEOF
9827 rm -f conftest.$ac_objext
9828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9829 (eval $ac_compile) 2>conftest.er1
9830 ac_status=$?
9831 grep -v '^ *+' conftest.er1 >conftest.err
9832 rm -f conftest.er1
9833 cat conftest.err >&5
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); } &&
9836 { ac_try='test -z "$ac_c_werror_flag"
9837 || test ! -s conftest.err'
9838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9839 (eval $ac_try) 2>&5
9840 ac_status=$?
9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); }; } &&
9843 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
9849 eval "$as_ac_Header=yes"
9850 else
9851 echo "$as_me: failed program was:" >&5
9852 sed 's/^/| /' conftest.$ac_ext >&5
9854 eval "$as_ac_Header=no"
9856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9859 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9860 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9861 cat >>confdefs.h <<_ACEOF
9862 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9863 _ACEOF
9867 done
9873 for ac_header in execinfo.h unistd.h dlfcn.h
9875 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9877 echo "$as_me:$LINENO: checking for $ac_header" >&5
9878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9880 echo $ECHO_N "(cached) $ECHO_C" >&6
9882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9883 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9884 else
9885 # Is the header compilable?
9886 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9887 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9888 cat >conftest.$ac_ext <<_ACEOF
9889 /* confdefs.h. */
9890 _ACEOF
9891 cat confdefs.h >>conftest.$ac_ext
9892 cat >>conftest.$ac_ext <<_ACEOF
9893 /* end confdefs.h. */
9894 $ac_includes_default
9895 #include <$ac_header>
9896 _ACEOF
9897 rm -f conftest.$ac_objext
9898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9899 (eval $ac_compile) 2>conftest.er1
9900 ac_status=$?
9901 grep -v '^ *+' conftest.er1 >conftest.err
9902 rm -f conftest.er1
9903 cat conftest.err >&5
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); } &&
9906 { ac_try='test -z "$ac_c_werror_flag"
9907 || test ! -s conftest.err'
9908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9909 (eval $ac_try) 2>&5
9910 ac_status=$?
9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912 (exit $ac_status); }; } &&
9913 { ac_try='test -s conftest.$ac_objext'
9914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9915 (eval $ac_try) 2>&5
9916 ac_status=$?
9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918 (exit $ac_status); }; }; then
9919 ac_header_compiler=yes
9920 else
9921 echo "$as_me: failed program was:" >&5
9922 sed 's/^/| /' conftest.$ac_ext >&5
9924 ac_header_compiler=no
9926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9927 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9928 echo "${ECHO_T}$ac_header_compiler" >&6
9930 # Is the header present?
9931 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9932 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9933 cat >conftest.$ac_ext <<_ACEOF
9934 /* confdefs.h. */
9935 _ACEOF
9936 cat confdefs.h >>conftest.$ac_ext
9937 cat >>conftest.$ac_ext <<_ACEOF
9938 /* end confdefs.h. */
9939 #include <$ac_header>
9940 _ACEOF
9941 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9942 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9943 ac_status=$?
9944 grep -v '^ *+' conftest.er1 >conftest.err
9945 rm -f conftest.er1
9946 cat conftest.err >&5
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); } >/dev/null; then
9949 if test -s conftest.err; then
9950 ac_cpp_err=$ac_c_preproc_warn_flag
9951 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9952 else
9953 ac_cpp_err=
9955 else
9956 ac_cpp_err=yes
9958 if test -z "$ac_cpp_err"; then
9959 ac_header_preproc=yes
9960 else
9961 echo "$as_me: failed program was:" >&5
9962 sed 's/^/| /' conftest.$ac_ext >&5
9964 ac_header_preproc=no
9966 rm -f conftest.err conftest.$ac_ext
9967 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9968 echo "${ECHO_T}$ac_header_preproc" >&6
9970 # So? What about this header?
9971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9972 yes:no: )
9973 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9974 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9976 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9977 ac_header_preproc=yes
9979 no:yes:* )
9980 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9981 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9982 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9983 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9984 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9985 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9986 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9987 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9989 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9990 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9991 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9993 cat <<\_ASBOX
9994 ## ---------------------------------- ##
9995 ## Report this to the libjava lists. ##
9996 ## ---------------------------------- ##
9997 _ASBOX
9999 sed "s/^/$as_me: WARNING: /" >&2
10001 esac
10002 echo "$as_me:$LINENO: checking for $ac_header" >&5
10003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10005 echo $ECHO_N "(cached) $ECHO_C" >&6
10006 else
10007 eval "$as_ac_Header=\$ac_header_preproc"
10009 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10010 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10013 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10014 cat >>confdefs.h <<_ACEOF
10015 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10016 _ACEOF
10020 done
10022 # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
10023 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
10024 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
10025 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
10026 echo $ECHO_N "(cached) $ECHO_C" >&6
10027 else
10028 ac_check_lib_save_LIBS=$LIBS
10029 LIBS="-ldl $LIBS"
10030 if test x$gcc_no_link = xyes; then
10031 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10032 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10033 { (exit 1); exit 1; }; }
10035 cat >conftest.$ac_ext <<_ACEOF
10036 /* confdefs.h. */
10037 _ACEOF
10038 cat confdefs.h >>conftest.$ac_ext
10039 cat >>conftest.$ac_ext <<_ACEOF
10040 /* end confdefs.h. */
10042 /* Override any gcc2 internal prototype to avoid an error. */
10043 #ifdef __cplusplus
10044 extern "C"
10045 #endif
10046 /* We use char because int might match the return type of a gcc2
10047 builtin and then its argument prototype would still apply. */
10048 char dladdr ();
10050 main ()
10052 dladdr ();
10054 return 0;
10056 _ACEOF
10057 rm -f conftest.$ac_objext conftest$ac_exeext
10058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10059 (eval $ac_link) 2>conftest.er1
10060 ac_status=$?
10061 grep -v '^ *+' conftest.er1 >conftest.err
10062 rm -f conftest.er1
10063 cat conftest.err >&5
10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 (exit $ac_status); } &&
10066 { ac_try='test -z "$ac_c_werror_flag"
10067 || test ! -s conftest.err'
10068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10069 (eval $ac_try) 2>&5
10070 ac_status=$?
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); }; } &&
10073 { ac_try='test -s conftest$ac_exeext'
10074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10075 (eval $ac_try) 2>&5
10076 ac_status=$?
10077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078 (exit $ac_status); }; }; then
10079 ac_cv_lib_dl_dladdr=yes
10080 else
10081 echo "$as_me: failed program was:" >&5
10082 sed 's/^/| /' conftest.$ac_ext >&5
10084 ac_cv_lib_dl_dladdr=no
10086 rm -f conftest.err conftest.$ac_objext \
10087 conftest$ac_exeext conftest.$ac_ext
10088 LIBS=$ac_check_lib_save_LIBS
10090 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
10091 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
10092 if test $ac_cv_lib_dl_dladdr = yes; then
10095 cat >>confdefs.h <<\_ACEOF
10096 #define HAVE_DLADDR 1
10097 _ACEOF
10099 else
10101 echo "$as_me:$LINENO: checking for dladdr in -ldld" >&5
10102 echo $ECHO_N "checking for dladdr in -ldld... $ECHO_C" >&6
10103 if test "${ac_cv_lib_dld_dladdr+set}" = set; then
10104 echo $ECHO_N "(cached) $ECHO_C" >&6
10105 else
10106 ac_check_lib_save_LIBS=$LIBS
10107 LIBS="-ldld $LIBS"
10108 if test x$gcc_no_link = xyes; then
10109 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10110 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10111 { (exit 1); exit 1; }; }
10113 cat >conftest.$ac_ext <<_ACEOF
10114 /* confdefs.h. */
10115 _ACEOF
10116 cat confdefs.h >>conftest.$ac_ext
10117 cat >>conftest.$ac_ext <<_ACEOF
10118 /* end confdefs.h. */
10120 /* Override any gcc2 internal prototype to avoid an error. */
10121 #ifdef __cplusplus
10122 extern "C"
10123 #endif
10124 /* We use char because int might match the return type of a gcc2
10125 builtin and then its argument prototype would still apply. */
10126 char dladdr ();
10128 main ()
10130 dladdr ();
10132 return 0;
10134 _ACEOF
10135 rm -f conftest.$ac_objext conftest$ac_exeext
10136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10137 (eval $ac_link) 2>conftest.er1
10138 ac_status=$?
10139 grep -v '^ *+' conftest.er1 >conftest.err
10140 rm -f conftest.er1
10141 cat conftest.err >&5
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); } &&
10144 { ac_try='test -z "$ac_c_werror_flag"
10145 || test ! -s conftest.err'
10146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10147 (eval $ac_try) 2>&5
10148 ac_status=$?
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); }; } &&
10151 { ac_try='test -s conftest$ac_exeext'
10152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10153 (eval $ac_try) 2>&5
10154 ac_status=$?
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); }; }; then
10157 ac_cv_lib_dld_dladdr=yes
10158 else
10159 echo "$as_me: failed program was:" >&5
10160 sed 's/^/| /' conftest.$ac_ext >&5
10162 ac_cv_lib_dld_dladdr=no
10164 rm -f conftest.err conftest.$ac_objext \
10165 conftest$ac_exeext conftest.$ac_ext
10166 LIBS=$ac_check_lib_save_LIBS
10168 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dladdr" >&5
10169 echo "${ECHO_T}$ac_cv_lib_dld_dladdr" >&6
10170 if test $ac_cv_lib_dld_dladdr = yes; then
10173 cat >>confdefs.h <<\_ACEOF
10174 #define HAVE_DLADDR 1
10175 _ACEOF
10182 if test x"$build" = x"$host"; then
10183 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
10184 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
10185 if test "${ac_cv_file__proc_self_exe+set}" = set; then
10186 echo $ECHO_N "(cached) $ECHO_C" >&6
10187 else
10188 test "$cross_compiling" = yes &&
10189 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10190 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10191 { (exit 1); exit 1; }; }
10192 if test -r "/proc/self/exe"; then
10193 ac_cv_file__proc_self_exe=yes
10194 else
10195 ac_cv_file__proc_self_exe=no
10198 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
10199 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
10200 if test $ac_cv_file__proc_self_exe = yes; then
10202 cat >>confdefs.h <<_ACEOF
10203 #define HAVE__PROC_SELF_EXE 1
10204 _ACEOF
10208 cat >>confdefs.h <<\_ACEOF
10209 #define HAVE_PROC_SELF_EXE 1
10210 _ACEOF
10214 else
10215 case $host in
10216 *-linux*)
10218 cat >>confdefs.h <<\_ACEOF
10219 #define HAVE_PROC_SELF_EXE 1
10220 _ACEOF
10223 esac
10227 if test "X$prefix" = "XNONE"; then
10228 acl_final_prefix="$ac_default_prefix"
10229 else
10230 acl_final_prefix="$prefix"
10232 if test "X$exec_prefix" = "XNONE"; then
10233 acl_final_exec_prefix='${prefix}'
10234 else
10235 acl_final_exec_prefix="$exec_prefix"
10237 acl_save_prefix="$prefix"
10238 prefix="$acl_final_prefix"
10239 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10240 prefix="$acl_save_prefix"
10243 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10244 if test "${with_gnu_ld+set}" = set; then
10245 withval="$with_gnu_ld"
10246 test "$withval" = no || with_gnu_ld=yes
10247 else
10248 with_gnu_ld=no
10250 # Prepare PATH_SEPARATOR.
10251 # The user is always right.
10252 if test "${PATH_SEPARATOR+set}" != set; then
10253 echo "#! /bin/sh" >conf$$.sh
10254 echo "exit 0" >>conf$$.sh
10255 chmod +x conf$$.sh
10256 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10257 PATH_SEPARATOR=';'
10258 else
10259 PATH_SEPARATOR=:
10261 rm -f conf$$.sh
10263 ac_prog=ld
10264 if test "$GCC" = yes; then
10265 # Check if gcc -print-prog-name=ld gives a path.
10266 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10267 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10268 case $host in
10269 *-*-mingw*)
10270 # gcc leaves a trailing carriage return which upsets mingw
10271 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10273 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10274 esac
10275 case $ac_prog in
10276 # Accept absolute paths.
10277 [\\/]* | [A-Za-z]:[\\/]*)
10278 re_direlt='/[^/][^/]*/\.\./'
10279 # Canonicalize the path of ld
10280 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10281 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10282 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10283 done
10284 test -z "$LD" && LD="$ac_prog"
10287 # If it fails, then pretend we aren't using GCC.
10288 ac_prog=ld
10291 # If it is relative, then search for the first ld in PATH.
10292 with_gnu_ld=unknown
10294 esac
10295 elif test "$with_gnu_ld" = yes; then
10296 echo "$as_me:$LINENO: checking for GNU ld" >&5
10297 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10298 else
10299 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10300 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10302 if test "${acl_cv_path_LD+set}" = set; then
10303 echo $ECHO_N "(cached) $ECHO_C" >&6
10304 else
10305 if test -z "$LD"; then
10306 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10307 for ac_dir in $PATH; do
10308 test -z "$ac_dir" && ac_dir=.
10309 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10310 acl_cv_path_LD="$ac_dir/$ac_prog"
10311 # Check to see if the program is GNU ld. I'd rather use --version,
10312 # but apparently some GNU ld's only accept -v.
10313 # Break only if it was the GNU/non-GNU ld that we prefer.
10314 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10315 test "$with_gnu_ld" != no && break
10316 else
10317 test "$with_gnu_ld" != yes && break
10320 done
10321 IFS="$ac_save_ifs"
10322 else
10323 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10327 LD="$acl_cv_path_LD"
10328 if test -n "$LD"; then
10329 echo "$as_me:$LINENO: result: $LD" >&5
10330 echo "${ECHO_T}$LD" >&6
10331 else
10332 echo "$as_me:$LINENO: result: no" >&5
10333 echo "${ECHO_T}no" >&6
10335 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10336 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10337 { (exit 1); exit 1; }; }
10338 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10339 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10340 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10341 echo $ECHO_N "(cached) $ECHO_C" >&6
10342 else
10343 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10344 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10345 acl_cv_prog_gnu_ld=yes
10346 else
10347 acl_cv_prog_gnu_ld=no
10350 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10351 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10352 with_gnu_ld=$acl_cv_prog_gnu_ld
10356 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10357 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10358 if test "${acl_cv_rpath+set}" = set; then
10359 echo $ECHO_N "(cached) $ECHO_C" >&6
10360 else
10362 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10363 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10364 . ./conftest.sh
10365 rm -f ./conftest.sh
10366 acl_cv_rpath=done
10369 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10370 echo "${ECHO_T}$acl_cv_rpath" >&6
10371 wl="$acl_cv_wl"
10372 libext="$acl_cv_libext"
10373 shlibext="$acl_cv_shlibext"
10374 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10375 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10376 hardcode_direct="$acl_cv_hardcode_direct"
10377 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10378 # Check whether --enable-rpath or --disable-rpath was given.
10379 if test "${enable_rpath+set}" = set; then
10380 enableval="$enable_rpath"
10382 else
10383 enable_rpath=yes
10392 use_additional=yes
10394 acl_save_prefix="$prefix"
10395 prefix="$acl_final_prefix"
10396 acl_save_exec_prefix="$exec_prefix"
10397 exec_prefix="$acl_final_exec_prefix"
10399 eval additional_includedir=\"$includedir\"
10400 eval additional_libdir=\"$libdir\"
10402 exec_prefix="$acl_save_exec_prefix"
10403 prefix="$acl_save_prefix"
10406 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10407 if test "${with_libiconv_prefix+set}" = set; then
10408 withval="$with_libiconv_prefix"
10410 if test "X$withval" = "Xno"; then
10411 use_additional=no
10412 else
10413 if test "X$withval" = "X"; then
10415 acl_save_prefix="$prefix"
10416 prefix="$acl_final_prefix"
10417 acl_save_exec_prefix="$exec_prefix"
10418 exec_prefix="$acl_final_exec_prefix"
10420 eval additional_includedir=\"$includedir\"
10421 eval additional_libdir=\"$libdir\"
10423 exec_prefix="$acl_save_exec_prefix"
10424 prefix="$acl_save_prefix"
10426 else
10427 additional_includedir="$withval/include"
10428 additional_libdir="$withval/lib"
10433 LIBICONV=
10434 LTLIBICONV=
10435 INCICONV=
10436 rpathdirs=
10437 ltrpathdirs=
10438 names_already_handled=
10439 names_next_round='iconv '
10440 while test -n "$names_next_round"; do
10441 names_this_round="$names_next_round"
10442 names_next_round=
10443 for name in $names_this_round; do
10444 already_handled=
10445 for n in $names_already_handled; do
10446 if test "$n" = "$name"; then
10447 already_handled=yes
10448 break
10450 done
10451 if test -z "$already_handled"; then
10452 names_already_handled="$names_already_handled $name"
10453 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10454 eval value=\"\$HAVE_LIB$uppername\"
10455 if test -n "$value"; then
10456 if test "$value" = yes; then
10457 eval value=\"\$LIB$uppername\"
10458 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10459 eval value=\"\$LTLIB$uppername\"
10460 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10461 else
10464 else
10465 found_dir=
10466 found_la=
10467 found_so=
10468 found_a=
10469 if test $use_additional = yes; then
10470 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10471 found_dir="$additional_libdir"
10472 found_so="$additional_libdir/lib$name.$shlibext"
10473 if test -f "$additional_libdir/lib$name.la"; then
10474 found_la="$additional_libdir/lib$name.la"
10476 else
10477 if test -f "$additional_libdir/lib$name.$libext"; then
10478 found_dir="$additional_libdir"
10479 found_a="$additional_libdir/lib$name.$libext"
10480 if test -f "$additional_libdir/lib$name.la"; then
10481 found_la="$additional_libdir/lib$name.la"
10486 if test "X$found_dir" = "X"; then
10487 for x in $LDFLAGS $LTLIBICONV; do
10489 acl_save_prefix="$prefix"
10490 prefix="$acl_final_prefix"
10491 acl_save_exec_prefix="$exec_prefix"
10492 exec_prefix="$acl_final_exec_prefix"
10493 eval x=\"$x\"
10494 exec_prefix="$acl_save_exec_prefix"
10495 prefix="$acl_save_prefix"
10497 case "$x" in
10498 -L*)
10499 dir=`echo "X$x" | sed -e 's/^X-L//'`
10500 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10501 found_dir="$dir"
10502 found_so="$dir/lib$name.$shlibext"
10503 if test -f "$dir/lib$name.la"; then
10504 found_la="$dir/lib$name.la"
10506 else
10507 if test -f "$dir/lib$name.$libext"; then
10508 found_dir="$dir"
10509 found_a="$dir/lib$name.$libext"
10510 if test -f "$dir/lib$name.la"; then
10511 found_la="$dir/lib$name.la"
10516 esac
10517 if test "X$found_dir" != "X"; then
10518 break
10520 done
10522 if test "X$found_dir" != "X"; then
10523 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10524 if test "X$found_so" != "X"; then
10525 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10526 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10527 else
10528 haveit=
10529 for x in $ltrpathdirs; do
10530 if test "X$x" = "X$found_dir"; then
10531 haveit=yes
10532 break
10534 done
10535 if test -z "$haveit"; then
10536 ltrpathdirs="$ltrpathdirs $found_dir"
10538 if test "$hardcode_direct" = yes; then
10539 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10540 else
10541 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10542 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10543 haveit=
10544 for x in $rpathdirs; do
10545 if test "X$x" = "X$found_dir"; then
10546 haveit=yes
10547 break
10549 done
10550 if test -z "$haveit"; then
10551 rpathdirs="$rpathdirs $found_dir"
10553 else
10554 haveit=
10555 for x in $LDFLAGS $LIBICONV; do
10557 acl_save_prefix="$prefix"
10558 prefix="$acl_final_prefix"
10559 acl_save_exec_prefix="$exec_prefix"
10560 exec_prefix="$acl_final_exec_prefix"
10561 eval x=\"$x\"
10562 exec_prefix="$acl_save_exec_prefix"
10563 prefix="$acl_save_prefix"
10565 if test "X$x" = "X-L$found_dir"; then
10566 haveit=yes
10567 break
10569 done
10570 if test -z "$haveit"; then
10571 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10573 if test "$hardcode_minus_L" != no; then
10574 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10575 else
10576 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10581 else
10582 if test "X$found_a" != "X"; then
10583 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10584 else
10585 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10588 additional_includedir=
10589 case "$found_dir" in
10590 */lib | */lib/)
10591 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10592 additional_includedir="$basedir/include"
10594 esac
10595 if test "X$additional_includedir" != "X"; then
10596 if test "X$additional_includedir" != "X/usr/include"; then
10597 haveit=
10598 if test "X$additional_includedir" = "X/usr/local/include"; then
10599 if test -n "$GCC"; then
10600 case $host_os in
10601 linux*) haveit=yes;;
10602 esac
10605 if test -z "$haveit"; then
10606 for x in $CPPFLAGS $INCICONV; do
10608 acl_save_prefix="$prefix"
10609 prefix="$acl_final_prefix"
10610 acl_save_exec_prefix="$exec_prefix"
10611 exec_prefix="$acl_final_exec_prefix"
10612 eval x=\"$x\"
10613 exec_prefix="$acl_save_exec_prefix"
10614 prefix="$acl_save_prefix"
10616 if test "X$x" = "X-I$additional_includedir"; then
10617 haveit=yes
10618 break
10620 done
10621 if test -z "$haveit"; then
10622 if test -d "$additional_includedir"; then
10623 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10629 if test -n "$found_la"; then
10630 save_libdir="$libdir"
10631 case "$found_la" in
10632 */* | *\\*) . "$found_la" ;;
10633 *) . "./$found_la" ;;
10634 esac
10635 libdir="$save_libdir"
10636 for dep in $dependency_libs; do
10637 case "$dep" in
10638 -L*)
10639 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10640 if test "X$additional_libdir" != "X/usr/lib"; then
10641 haveit=
10642 if test "X$additional_libdir" = "X/usr/local/lib"; then
10643 if test -n "$GCC"; then
10644 case $host_os in
10645 linux*) haveit=yes;;
10646 esac
10649 if test -z "$haveit"; then
10650 haveit=
10651 for x in $LDFLAGS $LIBICONV; do
10653 acl_save_prefix="$prefix"
10654 prefix="$acl_final_prefix"
10655 acl_save_exec_prefix="$exec_prefix"
10656 exec_prefix="$acl_final_exec_prefix"
10657 eval x=\"$x\"
10658 exec_prefix="$acl_save_exec_prefix"
10659 prefix="$acl_save_prefix"
10661 if test "X$x" = "X-L$additional_libdir"; then
10662 haveit=yes
10663 break
10665 done
10666 if test -z "$haveit"; then
10667 if test -d "$additional_libdir"; then
10668 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10671 haveit=
10672 for x in $LDFLAGS $LTLIBICONV; do
10674 acl_save_prefix="$prefix"
10675 prefix="$acl_final_prefix"
10676 acl_save_exec_prefix="$exec_prefix"
10677 exec_prefix="$acl_final_exec_prefix"
10678 eval x=\"$x\"
10679 exec_prefix="$acl_save_exec_prefix"
10680 prefix="$acl_save_prefix"
10682 if test "X$x" = "X-L$additional_libdir"; then
10683 haveit=yes
10684 break
10686 done
10687 if test -z "$haveit"; then
10688 if test -d "$additional_libdir"; then
10689 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10695 -R*)
10696 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10697 if test "$enable_rpath" != no; then
10698 haveit=
10699 for x in $rpathdirs; do
10700 if test "X$x" = "X$dir"; then
10701 haveit=yes
10702 break
10704 done
10705 if test -z "$haveit"; then
10706 rpathdirs="$rpathdirs $dir"
10708 haveit=
10709 for x in $ltrpathdirs; do
10710 if test "X$x" = "X$dir"; then
10711 haveit=yes
10712 break
10714 done
10715 if test -z "$haveit"; then
10716 ltrpathdirs="$ltrpathdirs $dir"
10720 -l*)
10721 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10723 *.la)
10724 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10727 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10728 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10730 esac
10731 done
10733 else
10734 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10735 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10739 done
10740 done
10741 if test "X$rpathdirs" != "X"; then
10742 if test -n "$hardcode_libdir_separator"; then
10743 alldirs=
10744 for found_dir in $rpathdirs; do
10745 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10746 done
10747 acl_save_libdir="$libdir"
10748 libdir="$alldirs"
10749 eval flag=\"$hardcode_libdir_flag_spec\"
10750 libdir="$acl_save_libdir"
10751 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10752 else
10753 for found_dir in $rpathdirs; do
10754 acl_save_libdir="$libdir"
10755 libdir="$found_dir"
10756 eval flag=\"$hardcode_libdir_flag_spec\"
10757 libdir="$acl_save_libdir"
10758 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10759 done
10762 if test "X$ltrpathdirs" != "X"; then
10763 for found_dir in $ltrpathdirs; do
10764 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10765 done
10774 am_save_CPPFLAGS="$CPPFLAGS"
10776 for element in $INCICONV; do
10777 haveit=
10778 for x in $CPPFLAGS; do
10780 acl_save_prefix="$prefix"
10781 prefix="$acl_final_prefix"
10782 acl_save_exec_prefix="$exec_prefix"
10783 exec_prefix="$acl_final_exec_prefix"
10784 eval x=\"$x\"
10785 exec_prefix="$acl_save_exec_prefix"
10786 prefix="$acl_save_prefix"
10788 if test "X$x" = "X$element"; then
10789 haveit=yes
10790 break
10792 done
10793 if test -z "$haveit"; then
10794 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10796 done
10799 echo "$as_me:$LINENO: checking for iconv" >&5
10800 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10801 if test "${am_cv_func_iconv+set}" = set; then
10802 echo $ECHO_N "(cached) $ECHO_C" >&6
10803 else
10805 am_cv_func_iconv="no, consider installing GNU libiconv"
10806 am_cv_lib_iconv=no
10807 if test x$gcc_no_link = xyes; then
10808 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10809 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10810 { (exit 1); exit 1; }; }
10812 cat >conftest.$ac_ext <<_ACEOF
10813 /* confdefs.h. */
10814 _ACEOF
10815 cat confdefs.h >>conftest.$ac_ext
10816 cat >>conftest.$ac_ext <<_ACEOF
10817 /* end confdefs.h. */
10818 #include <stdlib.h>
10819 #include <iconv.h>
10821 main ()
10823 iconv_t cd = iconv_open("","");
10824 iconv(cd,NULL,NULL,NULL,NULL);
10825 iconv_close(cd);
10827 return 0;
10829 _ACEOF
10830 rm -f conftest.$ac_objext conftest$ac_exeext
10831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10832 (eval $ac_link) 2>conftest.er1
10833 ac_status=$?
10834 grep -v '^ *+' conftest.er1 >conftest.err
10835 rm -f conftest.er1
10836 cat conftest.err >&5
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); } &&
10839 { ac_try='test -z "$ac_c_werror_flag"
10840 || test ! -s conftest.err'
10841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10842 (eval $ac_try) 2>&5
10843 ac_status=$?
10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); }; } &&
10846 { ac_try='test -s conftest$ac_exeext'
10847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10848 (eval $ac_try) 2>&5
10849 ac_status=$?
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); }; }; then
10852 am_cv_func_iconv=yes
10853 else
10854 echo "$as_me: failed program was:" >&5
10855 sed 's/^/| /' conftest.$ac_ext >&5
10858 rm -f conftest.err conftest.$ac_objext \
10859 conftest$ac_exeext conftest.$ac_ext
10860 if test "$am_cv_func_iconv" != yes; then
10861 am_save_LIBS="$LIBS"
10862 LIBS="$LIBS $LIBICONV"
10863 if test x$gcc_no_link = xyes; then
10864 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10865 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10866 { (exit 1); exit 1; }; }
10868 cat >conftest.$ac_ext <<_ACEOF
10869 /* confdefs.h. */
10870 _ACEOF
10871 cat confdefs.h >>conftest.$ac_ext
10872 cat >>conftest.$ac_ext <<_ACEOF
10873 /* end confdefs.h. */
10874 #include <stdlib.h>
10875 #include <iconv.h>
10877 main ()
10879 iconv_t cd = iconv_open("","");
10880 iconv(cd,NULL,NULL,NULL,NULL);
10881 iconv_close(cd);
10883 return 0;
10885 _ACEOF
10886 rm -f conftest.$ac_objext conftest$ac_exeext
10887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10888 (eval $ac_link) 2>conftest.er1
10889 ac_status=$?
10890 grep -v '^ *+' conftest.er1 >conftest.err
10891 rm -f conftest.er1
10892 cat conftest.err >&5
10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); } &&
10895 { ac_try='test -z "$ac_c_werror_flag"
10896 || test ! -s conftest.err'
10897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10898 (eval $ac_try) 2>&5
10899 ac_status=$?
10900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); }; } &&
10902 { ac_try='test -s conftest$ac_exeext'
10903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10904 (eval $ac_try) 2>&5
10905 ac_status=$?
10906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907 (exit $ac_status); }; }; then
10908 am_cv_lib_iconv=yes
10909 am_cv_func_iconv=yes
10910 else
10911 echo "$as_me: failed program was:" >&5
10912 sed 's/^/| /' conftest.$ac_ext >&5
10915 rm -f conftest.err conftest.$ac_objext \
10916 conftest$ac_exeext conftest.$ac_ext
10917 LIBS="$am_save_LIBS"
10921 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10922 echo "${ECHO_T}$am_cv_func_iconv" >&6
10923 if test "$am_cv_func_iconv" = yes; then
10925 cat >>confdefs.h <<\_ACEOF
10926 #define HAVE_ICONV 1
10927 _ACEOF
10930 if test "$am_cv_lib_iconv" = yes; then
10931 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10932 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10933 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10934 echo "${ECHO_T}$LIBICONV" >&6
10935 else
10936 CPPFLAGS="$am_save_CPPFLAGS"
10937 LIBICONV=
10938 LTLIBICONV=
10943 if test "$am_cv_func_iconv" = yes; then
10944 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10945 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10946 if test "${am_cv_proto_iconv+set}" = set; then
10947 echo $ECHO_N "(cached) $ECHO_C" >&6
10948 else
10950 cat >conftest.$ac_ext <<_ACEOF
10951 /* confdefs.h. */
10952 _ACEOF
10953 cat confdefs.h >>conftest.$ac_ext
10954 cat >>conftest.$ac_ext <<_ACEOF
10955 /* end confdefs.h. */
10957 #include <stdlib.h>
10958 #include <iconv.h>
10959 extern
10960 #ifdef __cplusplus
10962 #endif
10963 #if defined(__STDC__) || defined(__cplusplus)
10964 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10965 #else
10966 size_t iconv();
10967 #endif
10970 main ()
10974 return 0;
10976 _ACEOF
10977 rm -f conftest.$ac_objext
10978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10979 (eval $ac_compile) 2>conftest.er1
10980 ac_status=$?
10981 grep -v '^ *+' conftest.er1 >conftest.err
10982 rm -f conftest.er1
10983 cat conftest.err >&5
10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); } &&
10986 { ac_try='test -z "$ac_c_werror_flag"
10987 || test ! -s conftest.err'
10988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10989 (eval $ac_try) 2>&5
10990 ac_status=$?
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); }; } &&
10993 { ac_try='test -s conftest.$ac_objext'
10994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10995 (eval $ac_try) 2>&5
10996 ac_status=$?
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); }; }; then
10999 am_cv_proto_iconv_arg1=""
11000 else
11001 echo "$as_me: failed program was:" >&5
11002 sed 's/^/| /' conftest.$ac_ext >&5
11004 am_cv_proto_iconv_arg1="const"
11006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11007 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);"
11010 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11011 echo "$as_me:$LINENO: result: ${ac_t:-
11012 }$am_cv_proto_iconv" >&5
11013 echo "${ECHO_T}${ac_t:-
11014 }$am_cv_proto_iconv" >&6
11016 cat >>confdefs.h <<_ACEOF
11017 #define ICONV_CONST $am_cv_proto_iconv_arg1
11018 _ACEOF
11023 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11024 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11025 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11026 echo $ECHO_N "(cached) $ECHO_C" >&6
11027 else
11028 if test x$gcc_no_link = xyes; then
11029 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11030 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11031 { (exit 1); exit 1; }; }
11033 cat >conftest.$ac_ext <<_ACEOF
11034 /* confdefs.h. */
11035 _ACEOF
11036 cat confdefs.h >>conftest.$ac_ext
11037 cat >>conftest.$ac_ext <<_ACEOF
11038 /* end confdefs.h. */
11039 #include <locale.h>
11041 main ()
11043 return LC_MESSAGES
11045 return 0;
11047 _ACEOF
11048 rm -f conftest.$ac_objext conftest$ac_exeext
11049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11050 (eval $ac_link) 2>conftest.er1
11051 ac_status=$?
11052 grep -v '^ *+' conftest.er1 >conftest.err
11053 rm -f conftest.er1
11054 cat conftest.err >&5
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); } &&
11057 { ac_try='test -z "$ac_c_werror_flag"
11058 || test ! -s conftest.err'
11059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11060 (eval $ac_try) 2>&5
11061 ac_status=$?
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); }; } &&
11064 { ac_try='test -s conftest$ac_exeext'
11065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11066 (eval $ac_try) 2>&5
11067 ac_status=$?
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); }; }; then
11070 am_cv_val_LC_MESSAGES=yes
11071 else
11072 echo "$as_me: failed program was:" >&5
11073 sed 's/^/| /' conftest.$ac_ext >&5
11075 am_cv_val_LC_MESSAGES=no
11077 rm -f conftest.err conftest.$ac_objext \
11078 conftest$ac_exeext conftest.$ac_ext
11080 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11081 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11082 if test $am_cv_val_LC_MESSAGES = yes; then
11084 cat >>confdefs.h <<\_ACEOF
11085 #define HAVE_LC_MESSAGES 1
11086 _ACEOF
11090 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11091 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11092 if test "${ac_cv_struct_tm+set}" = set; then
11093 echo $ECHO_N "(cached) $ECHO_C" >&6
11094 else
11095 cat >conftest.$ac_ext <<_ACEOF
11096 /* confdefs.h. */
11097 _ACEOF
11098 cat confdefs.h >>conftest.$ac_ext
11099 cat >>conftest.$ac_ext <<_ACEOF
11100 /* end confdefs.h. */
11101 #include <sys/types.h>
11102 #include <time.h>
11105 main ()
11107 struct tm *tp; tp->tm_sec;
11109 return 0;
11111 _ACEOF
11112 rm -f conftest.$ac_objext
11113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11114 (eval $ac_compile) 2>conftest.er1
11115 ac_status=$?
11116 grep -v '^ *+' conftest.er1 >conftest.err
11117 rm -f conftest.er1
11118 cat conftest.err >&5
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); } &&
11121 { ac_try='test -z "$ac_c_werror_flag"
11122 || test ! -s conftest.err'
11123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11124 (eval $ac_try) 2>&5
11125 ac_status=$?
11126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127 (exit $ac_status); }; } &&
11128 { ac_try='test -s conftest.$ac_objext'
11129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11130 (eval $ac_try) 2>&5
11131 ac_status=$?
11132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133 (exit $ac_status); }; }; then
11134 ac_cv_struct_tm=time.h
11135 else
11136 echo "$as_me: failed program was:" >&5
11137 sed 's/^/| /' conftest.$ac_ext >&5
11139 ac_cv_struct_tm=sys/time.h
11141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11143 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11144 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11145 if test $ac_cv_struct_tm = sys/time.h; then
11147 cat >>confdefs.h <<\_ACEOF
11148 #define TM_IN_SYS_TIME 1
11149 _ACEOF
11153 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11154 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11155 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11156 echo $ECHO_N "(cached) $ECHO_C" >&6
11157 else
11158 cat >conftest.$ac_ext <<_ACEOF
11159 /* confdefs.h. */
11160 _ACEOF
11161 cat confdefs.h >>conftest.$ac_ext
11162 cat >>conftest.$ac_ext <<_ACEOF
11163 /* end confdefs.h. */
11164 #include <sys/types.h>
11165 #include <$ac_cv_struct_tm>
11169 main ()
11171 static struct tm ac_aggr;
11172 if (ac_aggr.tm_zone)
11173 return 0;
11175 return 0;
11177 _ACEOF
11178 rm -f conftest.$ac_objext
11179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11180 (eval $ac_compile) 2>conftest.er1
11181 ac_status=$?
11182 grep -v '^ *+' conftest.er1 >conftest.err
11183 rm -f conftest.er1
11184 cat conftest.err >&5
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); } &&
11187 { ac_try='test -z "$ac_c_werror_flag"
11188 || test ! -s conftest.err'
11189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11190 (eval $ac_try) 2>&5
11191 ac_status=$?
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); }; } &&
11194 { ac_try='test -s conftest.$ac_objext'
11195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11196 (eval $ac_try) 2>&5
11197 ac_status=$?
11198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); }; }; then
11200 ac_cv_member_struct_tm_tm_zone=yes
11201 else
11202 echo "$as_me: failed program was:" >&5
11203 sed 's/^/| /' conftest.$ac_ext >&5
11205 cat >conftest.$ac_ext <<_ACEOF
11206 /* confdefs.h. */
11207 _ACEOF
11208 cat confdefs.h >>conftest.$ac_ext
11209 cat >>conftest.$ac_ext <<_ACEOF
11210 /* end confdefs.h. */
11211 #include <sys/types.h>
11212 #include <$ac_cv_struct_tm>
11216 main ()
11218 static struct tm ac_aggr;
11219 if (sizeof ac_aggr.tm_zone)
11220 return 0;
11222 return 0;
11224 _ACEOF
11225 rm -f conftest.$ac_objext
11226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11227 (eval $ac_compile) 2>conftest.er1
11228 ac_status=$?
11229 grep -v '^ *+' conftest.er1 >conftest.err
11230 rm -f conftest.er1
11231 cat conftest.err >&5
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); } &&
11234 { ac_try='test -z "$ac_c_werror_flag"
11235 || test ! -s conftest.err'
11236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11237 (eval $ac_try) 2>&5
11238 ac_status=$?
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); }; } &&
11241 { ac_try='test -s conftest.$ac_objext'
11242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11243 (eval $ac_try) 2>&5
11244 ac_status=$?
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); }; }; then
11247 ac_cv_member_struct_tm_tm_zone=yes
11248 else
11249 echo "$as_me: failed program was:" >&5
11250 sed 's/^/| /' conftest.$ac_ext >&5
11252 ac_cv_member_struct_tm_tm_zone=no
11254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11258 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11259 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11260 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11262 cat >>confdefs.h <<_ACEOF
11263 #define HAVE_STRUCT_TM_TM_ZONE 1
11264 _ACEOF
11269 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11271 cat >>confdefs.h <<\_ACEOF
11272 #define HAVE_TM_ZONE 1
11273 _ACEOF
11275 else
11276 echo "$as_me:$LINENO: checking for tzname" >&5
11277 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11278 if test "${ac_cv_var_tzname+set}" = set; then
11279 echo $ECHO_N "(cached) $ECHO_C" >&6
11280 else
11281 if test x$gcc_no_link = xyes; then
11282 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11283 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11284 { (exit 1); exit 1; }; }
11286 cat >conftest.$ac_ext <<_ACEOF
11287 /* confdefs.h. */
11288 _ACEOF
11289 cat confdefs.h >>conftest.$ac_ext
11290 cat >>conftest.$ac_ext <<_ACEOF
11291 /* end confdefs.h. */
11292 #include <time.h>
11293 #ifndef tzname /* For SGI. */
11294 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11295 #endif
11298 main ()
11300 atoi(*tzname);
11302 return 0;
11304 _ACEOF
11305 rm -f conftest.$ac_objext conftest$ac_exeext
11306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11307 (eval $ac_link) 2>conftest.er1
11308 ac_status=$?
11309 grep -v '^ *+' conftest.er1 >conftest.err
11310 rm -f conftest.er1
11311 cat conftest.err >&5
11312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313 (exit $ac_status); } &&
11314 { ac_try='test -z "$ac_c_werror_flag"
11315 || test ! -s conftest.err'
11316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11317 (eval $ac_try) 2>&5
11318 ac_status=$?
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); }; } &&
11321 { ac_try='test -s conftest$ac_exeext'
11322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11323 (eval $ac_try) 2>&5
11324 ac_status=$?
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); }; }; then
11327 ac_cv_var_tzname=yes
11328 else
11329 echo "$as_me: failed program was:" >&5
11330 sed 's/^/| /' conftest.$ac_ext >&5
11332 ac_cv_var_tzname=no
11334 rm -f conftest.err conftest.$ac_objext \
11335 conftest$ac_exeext conftest.$ac_ext
11337 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11338 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11339 if test $ac_cv_var_tzname = yes; then
11341 cat >>confdefs.h <<\_ACEOF
11342 #define HAVE_TZNAME 1
11343 _ACEOF
11351 for ac_func in gethostbyname_r
11353 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11354 echo "$as_me:$LINENO: checking for $ac_func" >&5
11355 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11356 if eval "test \"\${$as_ac_var+set}\" = set"; then
11357 echo $ECHO_N "(cached) $ECHO_C" >&6
11358 else
11359 if test x$gcc_no_link = xyes; then
11360 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11361 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11362 { (exit 1); exit 1; }; }
11364 cat >conftest.$ac_ext <<_ACEOF
11365 /* confdefs.h. */
11366 _ACEOF
11367 cat confdefs.h >>conftest.$ac_ext
11368 cat >>conftest.$ac_ext <<_ACEOF
11369 /* end confdefs.h. */
11370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11372 #define $ac_func innocuous_$ac_func
11374 /* System header to define __stub macros and hopefully few prototypes,
11375 which can conflict with char $ac_func (); below.
11376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11377 <limits.h> exists even on freestanding compilers. */
11379 #ifdef __STDC__
11380 # include <limits.h>
11381 #else
11382 # include <assert.h>
11383 #endif
11385 #undef $ac_func
11387 /* Override any gcc2 internal prototype to avoid an error. */
11388 #ifdef __cplusplus
11389 extern "C"
11391 #endif
11392 /* We use char because int might match the return type of a gcc2
11393 builtin and then its argument prototype would still apply. */
11394 char $ac_func ();
11395 /* The GNU C library defines this for functions which it implements
11396 to always fail with ENOSYS. Some functions are actually named
11397 something starting with __ and the normal name is an alias. */
11398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11399 choke me
11400 #else
11401 char (*f) () = $ac_func;
11402 #endif
11403 #ifdef __cplusplus
11405 #endif
11408 main ()
11410 return f != $ac_func;
11412 return 0;
11414 _ACEOF
11415 rm -f conftest.$ac_objext conftest$ac_exeext
11416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11417 (eval $ac_link) 2>conftest.er1
11418 ac_status=$?
11419 grep -v '^ *+' conftest.er1 >conftest.err
11420 rm -f conftest.er1
11421 cat conftest.err >&5
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); } &&
11424 { ac_try='test -z "$ac_c_werror_flag"
11425 || test ! -s conftest.err'
11426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11427 (eval $ac_try) 2>&5
11428 ac_status=$?
11429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430 (exit $ac_status); }; } &&
11431 { ac_try='test -s conftest$ac_exeext'
11432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11433 (eval $ac_try) 2>&5
11434 ac_status=$?
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); }; }; then
11437 eval "$as_ac_var=yes"
11438 else
11439 echo "$as_me: failed program was:" >&5
11440 sed 's/^/| /' conftest.$ac_ext >&5
11442 eval "$as_ac_var=no"
11444 rm -f conftest.err conftest.$ac_objext \
11445 conftest$ac_exeext conftest.$ac_ext
11447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11448 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11449 if test `eval echo '${'$as_ac_var'}'` = yes; then
11450 cat >>confdefs.h <<_ACEOF
11451 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11452 _ACEOF
11455 cat >>confdefs.h <<\_ACEOF
11456 #define HAVE_GETHOSTBYNAME_R 1
11457 _ACEOF
11459 # There are two different kinds of gethostbyname_r.
11460 # We look for the one that returns `int'.
11461 # Hopefully this check is robust enough.
11462 cat >conftest.$ac_ext <<_ACEOF
11463 /* confdefs.h. */
11464 _ACEOF
11465 cat confdefs.h >>conftest.$ac_ext
11466 cat >>conftest.$ac_ext <<_ACEOF
11467 /* end confdefs.h. */
11468 #include <netdb.h>
11470 _ACEOF
11471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11472 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
11475 cat >>confdefs.h <<\_ACEOF
11476 #define GETHOSTBYNAME_R_RETURNS_INT 1
11477 _ACEOF
11480 rm -f conftest*
11483 case " $GCINCS " in
11484 *" -D_REENTRANT "*) ;;
11486 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
11487 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
11488 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
11489 echo $ECHO_N "(cached) $ECHO_C" >&6
11490 else
11491 ac_ext=cc
11492 ac_cpp='$CXXCPP $CPPFLAGS'
11493 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11494 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11495 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11497 cat >conftest.$ac_ext <<_ACEOF
11498 /* confdefs.h. */
11499 _ACEOF
11500 cat confdefs.h >>conftest.$ac_ext
11501 cat >>conftest.$ac_ext <<_ACEOF
11502 /* end confdefs.h. */
11503 #include <netdb.h>
11505 main ()
11507 gethostbyname_r("", 0, 0);
11509 return 0;
11511 _ACEOF
11512 rm -f conftest.$ac_objext
11513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11514 (eval $ac_compile) 2>conftest.er1
11515 ac_status=$?
11516 grep -v '^ *+' conftest.er1 >conftest.err
11517 rm -f conftest.er1
11518 cat conftest.err >&5
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); } &&
11521 { ac_try='test -z "$ac_cxx_werror_flag"
11522 || test ! -s conftest.err'
11523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11524 (eval $ac_try) 2>&5
11525 ac_status=$?
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); }; } &&
11528 { ac_try='test -s conftest.$ac_objext'
11529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11530 (eval $ac_try) 2>&5
11531 ac_status=$?
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); }; }; then
11534 libjava_cv_gethostbyname_r_needs_reentrant=no
11535 else
11536 echo "$as_me: failed program was:" >&5
11537 sed 's/^/| /' conftest.$ac_ext >&5
11539 CPPFLAGS_SAVE="$CPPFLAGS"
11540 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
11541 cat >conftest.$ac_ext <<_ACEOF
11542 /* confdefs.h. */
11543 _ACEOF
11544 cat confdefs.h >>conftest.$ac_ext
11545 cat >>conftest.$ac_ext <<_ACEOF
11546 /* end confdefs.h. */
11547 #include <netdb.h>
11549 main ()
11551 gethostbyname_r("", 0, 0);
11553 return 0;
11555 _ACEOF
11556 rm -f conftest.$ac_objext
11557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11558 (eval $ac_compile) 2>conftest.er1
11559 ac_status=$?
11560 grep -v '^ *+' conftest.er1 >conftest.err
11561 rm -f conftest.er1
11562 cat conftest.err >&5
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); } &&
11565 { ac_try='test -z "$ac_cxx_werror_flag"
11566 || test ! -s conftest.err'
11567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11568 (eval $ac_try) 2>&5
11569 ac_status=$?
11570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571 (exit $ac_status); }; } &&
11572 { ac_try='test -s conftest.$ac_objext'
11573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11574 (eval $ac_try) 2>&5
11575 ac_status=$?
11576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577 (exit $ac_status); }; }; then
11578 libjava_cv_gethostbyname_r_needs_reentrant=yes
11579 else
11580 echo "$as_me: failed program was:" >&5
11581 sed 's/^/| /' conftest.$ac_ext >&5
11583 libjava_cv_gethostbyname_r_needs_reentrant=fail
11585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11586 CPPFLAGS="$CPPFLAGS_SAVE"
11589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11590 ac_ext=c
11591 ac_cpp='$CPP $CPPFLAGS'
11592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11598 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
11599 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
11600 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
11602 cat >>confdefs.h <<\_ACEOF
11603 #define _REENTRANT 1
11604 _ACEOF
11608 esac
11610 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
11611 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
11612 if test "${libjava_cv_struct_hostent_data+set}" = set; then
11613 echo $ECHO_N "(cached) $ECHO_C" >&6
11614 else
11615 cat >conftest.$ac_ext <<_ACEOF
11616 /* confdefs.h. */
11617 _ACEOF
11618 cat confdefs.h >>conftest.$ac_ext
11619 cat >>conftest.$ac_ext <<_ACEOF
11620 /* end confdefs.h. */
11622 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
11623 # define _REENTRANT 1
11624 #endif
11625 #include <netdb.h>
11627 main ()
11629 struct hostent_data data;
11631 return 0;
11633 _ACEOF
11634 rm -f conftest.$ac_objext
11635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11636 (eval $ac_compile) 2>conftest.er1
11637 ac_status=$?
11638 grep -v '^ *+' conftest.er1 >conftest.err
11639 rm -f conftest.er1
11640 cat conftest.err >&5
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); } &&
11643 { ac_try='test -z "$ac_c_werror_flag"
11644 || test ! -s conftest.err'
11645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11646 (eval $ac_try) 2>&5
11647 ac_status=$?
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); }; } &&
11650 { ac_try='test -s conftest.$ac_objext'
11651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11652 (eval $ac_try) 2>&5
11653 ac_status=$?
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); }; }; then
11656 libjava_cv_struct_hostent_data=yes
11657 else
11658 echo "$as_me: failed program was:" >&5
11659 sed 's/^/| /' conftest.$ac_ext >&5
11661 libjava_cv_struct_hostent_data=no
11663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11665 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
11666 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
11667 if test "x$libjava_cv_struct_hostent_data" = xyes; then
11669 cat >>confdefs.h <<\_ACEOF
11670 #define HAVE_STRUCT_HOSTENT_DATA 1
11671 _ACEOF
11676 done
11679 # FIXME: libjava source code expects to find a prototype for
11680 # gethostbyaddr_r in netdb.h. The outer check ensures that
11681 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
11682 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
11683 # linkage check is enough, yet C++ code requires proper prototypes.)
11684 cat >conftest.$ac_ext <<_ACEOF
11685 /* confdefs.h. */
11686 _ACEOF
11687 cat confdefs.h >>conftest.$ac_ext
11688 cat >>conftest.$ac_ext <<_ACEOF
11689 /* end confdefs.h. */
11690 #include <netdb.h>
11692 _ACEOF
11693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11694 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
11697 for ac_func in gethostbyaddr_r
11699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11700 echo "$as_me:$LINENO: checking for $ac_func" >&5
11701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11702 if eval "test \"\${$as_ac_var+set}\" = set"; then
11703 echo $ECHO_N "(cached) $ECHO_C" >&6
11704 else
11705 if test x$gcc_no_link = xyes; then
11706 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11707 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11708 { (exit 1); exit 1; }; }
11710 cat >conftest.$ac_ext <<_ACEOF
11711 /* confdefs.h. */
11712 _ACEOF
11713 cat confdefs.h >>conftest.$ac_ext
11714 cat >>conftest.$ac_ext <<_ACEOF
11715 /* end confdefs.h. */
11716 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11717 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11718 #define $ac_func innocuous_$ac_func
11720 /* System header to define __stub macros and hopefully few prototypes,
11721 which can conflict with char $ac_func (); below.
11722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11723 <limits.h> exists even on freestanding compilers. */
11725 #ifdef __STDC__
11726 # include <limits.h>
11727 #else
11728 # include <assert.h>
11729 #endif
11731 #undef $ac_func
11733 /* Override any gcc2 internal prototype to avoid an error. */
11734 #ifdef __cplusplus
11735 extern "C"
11737 #endif
11738 /* We use char because int might match the return type of a gcc2
11739 builtin and then its argument prototype would still apply. */
11740 char $ac_func ();
11741 /* The GNU C library defines this for functions which it implements
11742 to always fail with ENOSYS. Some functions are actually named
11743 something starting with __ and the normal name is an alias. */
11744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11745 choke me
11746 #else
11747 char (*f) () = $ac_func;
11748 #endif
11749 #ifdef __cplusplus
11751 #endif
11754 main ()
11756 return f != $ac_func;
11758 return 0;
11760 _ACEOF
11761 rm -f conftest.$ac_objext conftest$ac_exeext
11762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11763 (eval $ac_link) 2>conftest.er1
11764 ac_status=$?
11765 grep -v '^ *+' conftest.er1 >conftest.err
11766 rm -f conftest.er1
11767 cat conftest.err >&5
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); } &&
11770 { ac_try='test -z "$ac_c_werror_flag"
11771 || test ! -s conftest.err'
11772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11773 (eval $ac_try) 2>&5
11774 ac_status=$?
11775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776 (exit $ac_status); }; } &&
11777 { ac_try='test -s conftest$ac_exeext'
11778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11779 (eval $ac_try) 2>&5
11780 ac_status=$?
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); }; }; then
11783 eval "$as_ac_var=yes"
11784 else
11785 echo "$as_me: failed program was:" >&5
11786 sed 's/^/| /' conftest.$ac_ext >&5
11788 eval "$as_ac_var=no"
11790 rm -f conftest.err conftest.$ac_objext \
11791 conftest$ac_exeext conftest.$ac_ext
11793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11794 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11795 if test `eval echo '${'$as_ac_var'}'` = yes; then
11796 cat >>confdefs.h <<_ACEOF
11797 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11798 _ACEOF
11801 cat >>confdefs.h <<\_ACEOF
11802 #define HAVE_GETHOSTBYADDR_R 1
11803 _ACEOF
11805 # There are two different kinds of gethostbyaddr_r.
11806 # We look for the one that returns `int'.
11807 # Hopefully this check is robust enough.
11808 cat >conftest.$ac_ext <<_ACEOF
11809 /* confdefs.h. */
11810 _ACEOF
11811 cat confdefs.h >>conftest.$ac_ext
11812 cat >>conftest.$ac_ext <<_ACEOF
11813 /* end confdefs.h. */
11814 #include <netdb.h>
11816 _ACEOF
11817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11818 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11821 cat >>confdefs.h <<\_ACEOF
11822 #define GETHOSTBYADDR_R_RETURNS_INT 1
11823 _ACEOF
11826 rm -f conftest*
11829 done
11832 rm -f conftest*
11836 for ac_func in gethostname
11838 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11839 echo "$as_me:$LINENO: checking for $ac_func" >&5
11840 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11841 if eval "test \"\${$as_ac_var+set}\" = set"; then
11842 echo $ECHO_N "(cached) $ECHO_C" >&6
11843 else
11844 if test x$gcc_no_link = xyes; then
11845 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11846 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11847 { (exit 1); exit 1; }; }
11849 cat >conftest.$ac_ext <<_ACEOF
11850 /* confdefs.h. */
11851 _ACEOF
11852 cat confdefs.h >>conftest.$ac_ext
11853 cat >>conftest.$ac_ext <<_ACEOF
11854 /* end confdefs.h. */
11855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11857 #define $ac_func innocuous_$ac_func
11859 /* System header to define __stub macros and hopefully few prototypes,
11860 which can conflict with char $ac_func (); below.
11861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11862 <limits.h> exists even on freestanding compilers. */
11864 #ifdef __STDC__
11865 # include <limits.h>
11866 #else
11867 # include <assert.h>
11868 #endif
11870 #undef $ac_func
11872 /* Override any gcc2 internal prototype to avoid an error. */
11873 #ifdef __cplusplus
11874 extern "C"
11876 #endif
11877 /* We use char because int might match the return type of a gcc2
11878 builtin and then its argument prototype would still apply. */
11879 char $ac_func ();
11880 /* The GNU C library defines this for functions which it implements
11881 to always fail with ENOSYS. Some functions are actually named
11882 something starting with __ and the normal name is an alias. */
11883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11884 choke me
11885 #else
11886 char (*f) () = $ac_func;
11887 #endif
11888 #ifdef __cplusplus
11890 #endif
11893 main ()
11895 return f != $ac_func;
11897 return 0;
11899 _ACEOF
11900 rm -f conftest.$ac_objext conftest$ac_exeext
11901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11902 (eval $ac_link) 2>conftest.er1
11903 ac_status=$?
11904 grep -v '^ *+' conftest.er1 >conftest.err
11905 rm -f conftest.er1
11906 cat conftest.err >&5
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); } &&
11909 { ac_try='test -z "$ac_c_werror_flag"
11910 || test ! -s conftest.err'
11911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912 (eval $ac_try) 2>&5
11913 ac_status=$?
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); }; } &&
11916 { ac_try='test -s conftest$ac_exeext'
11917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11918 (eval $ac_try) 2>&5
11919 ac_status=$?
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); }; }; then
11922 eval "$as_ac_var=yes"
11923 else
11924 echo "$as_me: failed program was:" >&5
11925 sed 's/^/| /' conftest.$ac_ext >&5
11927 eval "$as_ac_var=no"
11929 rm -f conftest.err conftest.$ac_objext \
11930 conftest$ac_exeext conftest.$ac_ext
11932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11933 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11934 if test `eval echo '${'$as_ac_var'}'` = yes; then
11935 cat >>confdefs.h <<_ACEOF
11936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11937 _ACEOF
11940 cat >>confdefs.h <<\_ACEOF
11941 #define HAVE_GETHOSTNAME 1
11942 _ACEOF
11944 cat >conftest.$ac_ext <<_ACEOF
11945 /* confdefs.h. */
11946 _ACEOF
11947 cat confdefs.h >>conftest.$ac_ext
11948 cat >>conftest.$ac_ext <<_ACEOF
11949 /* end confdefs.h. */
11950 #include <unistd.h>
11952 _ACEOF
11953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11954 $EGREP "gethostname" >/dev/null 2>&1; then
11957 cat >>confdefs.h <<\_ACEOF
11958 #define HAVE_GETHOSTNAME_DECL 1
11959 _ACEOF
11962 rm -f conftest*
11965 done
11969 for ac_func in usleep
11971 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11972 echo "$as_me:$LINENO: checking for $ac_func" >&5
11973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11974 if eval "test \"\${$as_ac_var+set}\" = set"; then
11975 echo $ECHO_N "(cached) $ECHO_C" >&6
11976 else
11977 if test x$gcc_no_link = xyes; then
11978 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11979 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11980 { (exit 1); exit 1; }; }
11982 cat >conftest.$ac_ext <<_ACEOF
11983 /* confdefs.h. */
11984 _ACEOF
11985 cat confdefs.h >>conftest.$ac_ext
11986 cat >>conftest.$ac_ext <<_ACEOF
11987 /* end confdefs.h. */
11988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11990 #define $ac_func innocuous_$ac_func
11992 /* System header to define __stub macros and hopefully few prototypes,
11993 which can conflict with char $ac_func (); below.
11994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11995 <limits.h> exists even on freestanding compilers. */
11997 #ifdef __STDC__
11998 # include <limits.h>
11999 #else
12000 # include <assert.h>
12001 #endif
12003 #undef $ac_func
12005 /* Override any gcc2 internal prototype to avoid an error. */
12006 #ifdef __cplusplus
12007 extern "C"
12009 #endif
12010 /* We use char because int might match the return type of a gcc2
12011 builtin and then its argument prototype would still apply. */
12012 char $ac_func ();
12013 /* The GNU C library defines this for functions which it implements
12014 to always fail with ENOSYS. Some functions are actually named
12015 something starting with __ and the normal name is an alias. */
12016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12017 choke me
12018 #else
12019 char (*f) () = $ac_func;
12020 #endif
12021 #ifdef __cplusplus
12023 #endif
12026 main ()
12028 return f != $ac_func;
12030 return 0;
12032 _ACEOF
12033 rm -f conftest.$ac_objext conftest$ac_exeext
12034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12035 (eval $ac_link) 2>conftest.er1
12036 ac_status=$?
12037 grep -v '^ *+' conftest.er1 >conftest.err
12038 rm -f conftest.er1
12039 cat conftest.err >&5
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); } &&
12042 { ac_try='test -z "$ac_c_werror_flag"
12043 || test ! -s conftest.err'
12044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12045 (eval $ac_try) 2>&5
12046 ac_status=$?
12047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); }; } &&
12049 { ac_try='test -s conftest$ac_exeext'
12050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12051 (eval $ac_try) 2>&5
12052 ac_status=$?
12053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054 (exit $ac_status); }; }; then
12055 eval "$as_ac_var=yes"
12056 else
12057 echo "$as_me: failed program was:" >&5
12058 sed 's/^/| /' conftest.$ac_ext >&5
12060 eval "$as_ac_var=no"
12062 rm -f conftest.err conftest.$ac_objext \
12063 conftest$ac_exeext conftest.$ac_ext
12065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12066 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12067 if test `eval echo '${'$as_ac_var'}'` = yes; then
12068 cat >>confdefs.h <<_ACEOF
12069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12070 _ACEOF
12072 cat >conftest.$ac_ext <<_ACEOF
12073 /* confdefs.h. */
12074 _ACEOF
12075 cat confdefs.h >>conftest.$ac_ext
12076 cat >>conftest.$ac_ext <<_ACEOF
12077 /* end confdefs.h. */
12078 #include <unistd.h>
12080 _ACEOF
12081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12082 $EGREP "usleep" >/dev/null 2>&1; then
12085 cat >>confdefs.h <<\_ACEOF
12086 #define HAVE_USLEEP_DECL 1
12087 _ACEOF
12090 rm -f conftest*
12093 done
12096 # Look for these functions in the thread library, but only bother
12097 # if using POSIX threads.
12098 if test "$THREADS" = posix; then
12099 save_LIBS="$LIBS"
12100 LIBS="$LIBS $THREADLIBS"
12101 # Some POSIX thread systems don't have pthread_mutexattr_settype.
12102 # E.g., Solaris.
12105 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
12107 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12108 echo "$as_me:$LINENO: checking for $ac_func" >&5
12109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12110 if eval "test \"\${$as_ac_var+set}\" = set"; then
12111 echo $ECHO_N "(cached) $ECHO_C" >&6
12112 else
12113 if test x$gcc_no_link = xyes; then
12114 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12115 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12116 { (exit 1); exit 1; }; }
12118 cat >conftest.$ac_ext <<_ACEOF
12119 /* confdefs.h. */
12120 _ACEOF
12121 cat confdefs.h >>conftest.$ac_ext
12122 cat >>conftest.$ac_ext <<_ACEOF
12123 /* end confdefs.h. */
12124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12126 #define $ac_func innocuous_$ac_func
12128 /* System header to define __stub macros and hopefully few prototypes,
12129 which can conflict with char $ac_func (); below.
12130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12131 <limits.h> exists even on freestanding compilers. */
12133 #ifdef __STDC__
12134 # include <limits.h>
12135 #else
12136 # include <assert.h>
12137 #endif
12139 #undef $ac_func
12141 /* Override any gcc2 internal prototype to avoid an error. */
12142 #ifdef __cplusplus
12143 extern "C"
12145 #endif
12146 /* We use char because int might match the return type of a gcc2
12147 builtin and then its argument prototype would still apply. */
12148 char $ac_func ();
12149 /* The GNU C library defines this for functions which it implements
12150 to always fail with ENOSYS. Some functions are actually named
12151 something starting with __ and the normal name is an alias. */
12152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12153 choke me
12154 #else
12155 char (*f) () = $ac_func;
12156 #endif
12157 #ifdef __cplusplus
12159 #endif
12162 main ()
12164 return f != $ac_func;
12166 return 0;
12168 _ACEOF
12169 rm -f conftest.$ac_objext conftest$ac_exeext
12170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12171 (eval $ac_link) 2>conftest.er1
12172 ac_status=$?
12173 grep -v '^ *+' conftest.er1 >conftest.err
12174 rm -f conftest.er1
12175 cat conftest.err >&5
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); } &&
12178 { ac_try='test -z "$ac_c_werror_flag"
12179 || test ! -s conftest.err'
12180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12181 (eval $ac_try) 2>&5
12182 ac_status=$?
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); }; } &&
12185 { ac_try='test -s conftest$ac_exeext'
12186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12187 (eval $ac_try) 2>&5
12188 ac_status=$?
12189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190 (exit $ac_status); }; }; then
12191 eval "$as_ac_var=yes"
12192 else
12193 echo "$as_me: failed program was:" >&5
12194 sed 's/^/| /' conftest.$ac_ext >&5
12196 eval "$as_ac_var=no"
12198 rm -f conftest.err conftest.$ac_objext \
12199 conftest$ac_exeext conftest.$ac_ext
12201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12202 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12203 if test `eval echo '${'$as_ac_var'}'` = yes; then
12204 cat >>confdefs.h <<_ACEOF
12205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12206 _ACEOF
12209 done
12212 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
12213 # Solaris 7 the name librt is preferred.
12215 for ac_func in sched_yield
12217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12218 echo "$as_me:$LINENO: checking for $ac_func" >&5
12219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12220 if eval "test \"\${$as_ac_var+set}\" = set"; then
12221 echo $ECHO_N "(cached) $ECHO_C" >&6
12222 else
12223 if test x$gcc_no_link = xyes; then
12224 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12225 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12226 { (exit 1); exit 1; }; }
12228 cat >conftest.$ac_ext <<_ACEOF
12229 /* confdefs.h. */
12230 _ACEOF
12231 cat confdefs.h >>conftest.$ac_ext
12232 cat >>conftest.$ac_ext <<_ACEOF
12233 /* end confdefs.h. */
12234 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12235 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12236 #define $ac_func innocuous_$ac_func
12238 /* System header to define __stub macros and hopefully few prototypes,
12239 which can conflict with char $ac_func (); below.
12240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12241 <limits.h> exists even on freestanding compilers. */
12243 #ifdef __STDC__
12244 # include <limits.h>
12245 #else
12246 # include <assert.h>
12247 #endif
12249 #undef $ac_func
12251 /* Override any gcc2 internal prototype to avoid an error. */
12252 #ifdef __cplusplus
12253 extern "C"
12255 #endif
12256 /* We use char because int might match the return type of a gcc2
12257 builtin and then its argument prototype would still apply. */
12258 char $ac_func ();
12259 /* The GNU C library defines this for functions which it implements
12260 to always fail with ENOSYS. Some functions are actually named
12261 something starting with __ and the normal name is an alias. */
12262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12263 choke me
12264 #else
12265 char (*f) () = $ac_func;
12266 #endif
12267 #ifdef __cplusplus
12269 #endif
12272 main ()
12274 return f != $ac_func;
12276 return 0;
12278 _ACEOF
12279 rm -f conftest.$ac_objext conftest$ac_exeext
12280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12281 (eval $ac_link) 2>conftest.er1
12282 ac_status=$?
12283 grep -v '^ *+' conftest.er1 >conftest.err
12284 rm -f conftest.er1
12285 cat conftest.err >&5
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); } &&
12288 { ac_try='test -z "$ac_c_werror_flag"
12289 || test ! -s conftest.err'
12290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12291 (eval $ac_try) 2>&5
12292 ac_status=$?
12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294 (exit $ac_status); }; } &&
12295 { ac_try='test -s conftest$ac_exeext'
12296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12297 (eval $ac_try) 2>&5
12298 ac_status=$?
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); }; }; then
12301 eval "$as_ac_var=yes"
12302 else
12303 echo "$as_me: failed program was:" >&5
12304 sed 's/^/| /' conftest.$ac_ext >&5
12306 eval "$as_ac_var=no"
12308 rm -f conftest.err conftest.$ac_objext \
12309 conftest$ac_exeext conftest.$ac_ext
12311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12312 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12313 if test `eval echo '${'$as_ac_var'}'` = yes; then
12314 cat >>confdefs.h <<_ACEOF
12315 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12316 _ACEOF
12318 else
12320 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
12321 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
12322 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
12323 echo $ECHO_N "(cached) $ECHO_C" >&6
12324 else
12325 ac_check_lib_save_LIBS=$LIBS
12326 LIBS="-lrt $LIBS"
12327 if test x$gcc_no_link = xyes; then
12328 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12329 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12330 { (exit 1); exit 1; }; }
12332 cat >conftest.$ac_ext <<_ACEOF
12333 /* confdefs.h. */
12334 _ACEOF
12335 cat confdefs.h >>conftest.$ac_ext
12336 cat >>conftest.$ac_ext <<_ACEOF
12337 /* end confdefs.h. */
12339 /* Override any gcc2 internal prototype to avoid an error. */
12340 #ifdef __cplusplus
12341 extern "C"
12342 #endif
12343 /* We use char because int might match the return type of a gcc2
12344 builtin and then its argument prototype would still apply. */
12345 char sched_yield ();
12347 main ()
12349 sched_yield ();
12351 return 0;
12353 _ACEOF
12354 rm -f conftest.$ac_objext conftest$ac_exeext
12355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12356 (eval $ac_link) 2>conftest.er1
12357 ac_status=$?
12358 grep -v '^ *+' conftest.er1 >conftest.err
12359 rm -f conftest.er1
12360 cat conftest.err >&5
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); } &&
12363 { ac_try='test -z "$ac_c_werror_flag"
12364 || test ! -s conftest.err'
12365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12366 (eval $ac_try) 2>&5
12367 ac_status=$?
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); }; } &&
12370 { ac_try='test -s conftest$ac_exeext'
12371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12372 (eval $ac_try) 2>&5
12373 ac_status=$?
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); }; }; then
12376 ac_cv_lib_rt_sched_yield=yes
12377 else
12378 echo "$as_me: failed program was:" >&5
12379 sed 's/^/| /' conftest.$ac_ext >&5
12381 ac_cv_lib_rt_sched_yield=no
12383 rm -f conftest.err conftest.$ac_objext \
12384 conftest$ac_exeext conftest.$ac_ext
12385 LIBS=$ac_check_lib_save_LIBS
12387 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
12388 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
12389 if test $ac_cv_lib_rt_sched_yield = yes; then
12391 cat >>confdefs.h <<\_ACEOF
12392 #define HAVE_SCHED_YIELD 1
12393 _ACEOF
12395 THREADLIBS="$THREADLIBS -lrt"
12396 THREADSPEC="$THREADSPEC -lrt"
12397 else
12399 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
12400 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
12401 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
12402 echo $ECHO_N "(cached) $ECHO_C" >&6
12403 else
12404 ac_check_lib_save_LIBS=$LIBS
12405 LIBS="-lposix4 $LIBS"
12406 if test x$gcc_no_link = xyes; then
12407 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12408 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12409 { (exit 1); exit 1; }; }
12411 cat >conftest.$ac_ext <<_ACEOF
12412 /* confdefs.h. */
12413 _ACEOF
12414 cat confdefs.h >>conftest.$ac_ext
12415 cat >>conftest.$ac_ext <<_ACEOF
12416 /* end confdefs.h. */
12418 /* Override any gcc2 internal prototype to avoid an error. */
12419 #ifdef __cplusplus
12420 extern "C"
12421 #endif
12422 /* We use char because int might match the return type of a gcc2
12423 builtin and then its argument prototype would still apply. */
12424 char sched_yield ();
12426 main ()
12428 sched_yield ();
12430 return 0;
12432 _ACEOF
12433 rm -f conftest.$ac_objext conftest$ac_exeext
12434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12435 (eval $ac_link) 2>conftest.er1
12436 ac_status=$?
12437 grep -v '^ *+' conftest.er1 >conftest.err
12438 rm -f conftest.er1
12439 cat conftest.err >&5
12440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); } &&
12442 { ac_try='test -z "$ac_c_werror_flag"
12443 || test ! -s conftest.err'
12444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12445 (eval $ac_try) 2>&5
12446 ac_status=$?
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); }; } &&
12449 { ac_try='test -s conftest$ac_exeext'
12450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12451 (eval $ac_try) 2>&5
12452 ac_status=$?
12453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454 (exit $ac_status); }; }; then
12455 ac_cv_lib_posix4_sched_yield=yes
12456 else
12457 echo "$as_me: failed program was:" >&5
12458 sed 's/^/| /' conftest.$ac_ext >&5
12460 ac_cv_lib_posix4_sched_yield=no
12462 rm -f conftest.err conftest.$ac_objext \
12463 conftest$ac_exeext conftest.$ac_ext
12464 LIBS=$ac_check_lib_save_LIBS
12466 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
12467 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
12468 if test $ac_cv_lib_posix4_sched_yield = yes; then
12470 cat >>confdefs.h <<\_ACEOF
12471 #define HAVE_SCHED_YIELD 1
12472 _ACEOF
12474 THREADLIBS="$THREADLIBS -lposix4"
12475 THREADSPEC="$THREADSPEC -lposix4"
12481 done
12484 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
12485 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
12486 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
12487 echo $ECHO_N "(cached) $ECHO_C" >&6
12488 else
12489 ac_check_lib_save_LIBS=$LIBS
12490 LIBS="-lrt $LIBS"
12491 if test x$gcc_no_link = xyes; then
12492 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12493 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12494 { (exit 1); exit 1; }; }
12496 cat >conftest.$ac_ext <<_ACEOF
12497 /* confdefs.h. */
12498 _ACEOF
12499 cat confdefs.h >>conftest.$ac_ext
12500 cat >>conftest.$ac_ext <<_ACEOF
12501 /* end confdefs.h. */
12503 /* Override any gcc2 internal prototype to avoid an error. */
12504 #ifdef __cplusplus
12505 extern "C"
12506 #endif
12507 /* We use char because int might match the return type of a gcc2
12508 builtin and then its argument prototype would still apply. */
12509 char clock_gettime ();
12511 main ()
12513 clock_gettime ();
12515 return 0;
12517 _ACEOF
12518 rm -f conftest.$ac_objext conftest$ac_exeext
12519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12520 (eval $ac_link) 2>conftest.er1
12521 ac_status=$?
12522 grep -v '^ *+' conftest.er1 >conftest.err
12523 rm -f conftest.er1
12524 cat conftest.err >&5
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); } &&
12527 { ac_try='test -z "$ac_c_werror_flag"
12528 || test ! -s conftest.err'
12529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12530 (eval $ac_try) 2>&5
12531 ac_status=$?
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); }; } &&
12534 { ac_try='test -s conftest$ac_exeext'
12535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12536 (eval $ac_try) 2>&5
12537 ac_status=$?
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); }; }; then
12540 ac_cv_lib_rt_clock_gettime=yes
12541 else
12542 echo "$as_me: failed program was:" >&5
12543 sed 's/^/| /' conftest.$ac_ext >&5
12545 ac_cv_lib_rt_clock_gettime=no
12547 rm -f conftest.err conftest.$ac_objext \
12548 conftest$ac_exeext conftest.$ac_ext
12549 LIBS=$ac_check_lib_save_LIBS
12551 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
12552 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
12553 if test $ac_cv_lib_rt_clock_gettime = yes; then
12556 cat >>confdefs.h <<\_ACEOF
12557 #define HAVE_CLOCK_GETTIME 1
12558 _ACEOF
12560 case "$THREADSPEC" in
12561 *-lrt*) ;;
12563 THREADSPEC="$THREADSPEC -lrt"
12564 THREADLIBS="$THREADLIBS -lrt"
12566 esac
12570 LIBS="$save_LIBS"
12572 # We can save a little space at runtime if the mutex has m_count
12573 # or __m_count. This is a nice hack for Linux.
12574 cat >conftest.$ac_ext <<_ACEOF
12575 /* confdefs.h. */
12576 _ACEOF
12577 cat confdefs.h >>conftest.$ac_ext
12578 cat >>conftest.$ac_ext <<_ACEOF
12579 /* end confdefs.h. */
12580 #include <pthread.h>
12582 main ()
12585 extern pthread_mutex_t *mutex; int q = mutex->m_count;
12588 return 0;
12590 _ACEOF
12591 rm -f conftest.$ac_objext
12592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12593 (eval $ac_compile) 2>conftest.er1
12594 ac_status=$?
12595 grep -v '^ *+' conftest.er1 >conftest.err
12596 rm -f conftest.er1
12597 cat conftest.err >&5
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); } &&
12600 { ac_try='test -z "$ac_c_werror_flag"
12601 || test ! -s conftest.err'
12602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12603 (eval $ac_try) 2>&5
12604 ac_status=$?
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); }; } &&
12607 { ac_try='test -s conftest.$ac_objext'
12608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12609 (eval $ac_try) 2>&5
12610 ac_status=$?
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); }; }; then
12614 cat >>confdefs.h <<\_ACEOF
12615 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
12616 _ACEOF
12618 else
12619 echo "$as_me: failed program was:" >&5
12620 sed 's/^/| /' conftest.$ac_ext >&5
12623 cat >conftest.$ac_ext <<_ACEOF
12624 /* confdefs.h. */
12625 _ACEOF
12626 cat confdefs.h >>conftest.$ac_ext
12627 cat >>conftest.$ac_ext <<_ACEOF
12628 /* end confdefs.h. */
12629 #include <pthread.h>
12631 main ()
12634 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
12637 return 0;
12639 _ACEOF
12640 rm -f conftest.$ac_objext
12641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12642 (eval $ac_compile) 2>conftest.er1
12643 ac_status=$?
12644 grep -v '^ *+' conftest.er1 >conftest.err
12645 rm -f conftest.er1
12646 cat conftest.err >&5
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); } &&
12649 { ac_try='test -z "$ac_c_werror_flag"
12650 || test ! -s conftest.err'
12651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12652 (eval $ac_try) 2>&5
12653 ac_status=$?
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); }; } &&
12656 { ac_try='test -s conftest.$ac_objext'
12657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12658 (eval $ac_try) 2>&5
12659 ac_status=$?
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); }; }; then
12663 cat >>confdefs.h <<\_ACEOF
12664 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
12665 _ACEOF
12667 else
12668 echo "$as_me: failed program was:" >&5
12669 sed 's/^/| /' conftest.$ac_ext >&5
12672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12677 # We require a way to get the time.
12678 time_found=no
12682 for ac_func in gettimeofday time ftime
12684 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12685 echo "$as_me:$LINENO: checking for $ac_func" >&5
12686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12687 if eval "test \"\${$as_ac_var+set}\" = set"; then
12688 echo $ECHO_N "(cached) $ECHO_C" >&6
12689 else
12690 if test x$gcc_no_link = xyes; then
12691 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12692 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12693 { (exit 1); exit 1; }; }
12695 cat >conftest.$ac_ext <<_ACEOF
12696 /* confdefs.h. */
12697 _ACEOF
12698 cat confdefs.h >>conftest.$ac_ext
12699 cat >>conftest.$ac_ext <<_ACEOF
12700 /* end confdefs.h. */
12701 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12703 #define $ac_func innocuous_$ac_func
12705 /* System header to define __stub macros and hopefully few prototypes,
12706 which can conflict with char $ac_func (); below.
12707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12708 <limits.h> exists even on freestanding compilers. */
12710 #ifdef __STDC__
12711 # include <limits.h>
12712 #else
12713 # include <assert.h>
12714 #endif
12716 #undef $ac_func
12718 /* Override any gcc2 internal prototype to avoid an error. */
12719 #ifdef __cplusplus
12720 extern "C"
12722 #endif
12723 /* We use char because int might match the return type of a gcc2
12724 builtin and then its argument prototype would still apply. */
12725 char $ac_func ();
12726 /* The GNU C library defines this for functions which it implements
12727 to always fail with ENOSYS. Some functions are actually named
12728 something starting with __ and the normal name is an alias. */
12729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12730 choke me
12731 #else
12732 char (*f) () = $ac_func;
12733 #endif
12734 #ifdef __cplusplus
12736 #endif
12739 main ()
12741 return f != $ac_func;
12743 return 0;
12745 _ACEOF
12746 rm -f conftest.$ac_objext conftest$ac_exeext
12747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12748 (eval $ac_link) 2>conftest.er1
12749 ac_status=$?
12750 grep -v '^ *+' conftest.er1 >conftest.err
12751 rm -f conftest.er1
12752 cat conftest.err >&5
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); } &&
12755 { ac_try='test -z "$ac_c_werror_flag"
12756 || test ! -s conftest.err'
12757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12758 (eval $ac_try) 2>&5
12759 ac_status=$?
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); }; } &&
12762 { ac_try='test -s conftest$ac_exeext'
12763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12764 (eval $ac_try) 2>&5
12765 ac_status=$?
12766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767 (exit $ac_status); }; }; then
12768 eval "$as_ac_var=yes"
12769 else
12770 echo "$as_me: failed program was:" >&5
12771 sed 's/^/| /' conftest.$ac_ext >&5
12773 eval "$as_ac_var=no"
12775 rm -f conftest.err conftest.$ac_objext \
12776 conftest$ac_exeext conftest.$ac_ext
12778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12779 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12780 if test `eval echo '${'$as_ac_var'}'` = yes; then
12781 cat >>confdefs.h <<_ACEOF
12782 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12783 _ACEOF
12784 time_found=yes
12786 done
12788 if test "$time_found" = no; then
12789 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
12790 echo "$as_me: error: no function found to get the time" >&2;}
12791 { (exit 1); exit 1; }; }
12795 for ac_func in memmove
12797 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12798 echo "$as_me:$LINENO: checking for $ac_func" >&5
12799 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12800 if eval "test \"\${$as_ac_var+set}\" = set"; then
12801 echo $ECHO_N "(cached) $ECHO_C" >&6
12802 else
12803 if test x$gcc_no_link = xyes; then
12804 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12805 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12806 { (exit 1); exit 1; }; }
12808 cat >conftest.$ac_ext <<_ACEOF
12809 /* confdefs.h. */
12810 _ACEOF
12811 cat confdefs.h >>conftest.$ac_ext
12812 cat >>conftest.$ac_ext <<_ACEOF
12813 /* end confdefs.h. */
12814 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12816 #define $ac_func innocuous_$ac_func
12818 /* System header to define __stub macros and hopefully few prototypes,
12819 which can conflict with char $ac_func (); below.
12820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12821 <limits.h> exists even on freestanding compilers. */
12823 #ifdef __STDC__
12824 # include <limits.h>
12825 #else
12826 # include <assert.h>
12827 #endif
12829 #undef $ac_func
12831 /* Override any gcc2 internal prototype to avoid an error. */
12832 #ifdef __cplusplus
12833 extern "C"
12835 #endif
12836 /* We use char because int might match the return type of a gcc2
12837 builtin and then its argument prototype would still apply. */
12838 char $ac_func ();
12839 /* The GNU C library defines this for functions which it implements
12840 to always fail with ENOSYS. Some functions are actually named
12841 something starting with __ and the normal name is an alias. */
12842 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12843 choke me
12844 #else
12845 char (*f) () = $ac_func;
12846 #endif
12847 #ifdef __cplusplus
12849 #endif
12852 main ()
12854 return f != $ac_func;
12856 return 0;
12858 _ACEOF
12859 rm -f conftest.$ac_objext conftest$ac_exeext
12860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12861 (eval $ac_link) 2>conftest.er1
12862 ac_status=$?
12863 grep -v '^ *+' conftest.er1 >conftest.err
12864 rm -f conftest.er1
12865 cat conftest.err >&5
12866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867 (exit $ac_status); } &&
12868 { ac_try='test -z "$ac_c_werror_flag"
12869 || test ! -s conftest.err'
12870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12871 (eval $ac_try) 2>&5
12872 ac_status=$?
12873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874 (exit $ac_status); }; } &&
12875 { ac_try='test -s conftest$ac_exeext'
12876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12877 (eval $ac_try) 2>&5
12878 ac_status=$?
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); }; }; then
12881 eval "$as_ac_var=yes"
12882 else
12883 echo "$as_me: failed program was:" >&5
12884 sed 's/^/| /' conftest.$ac_ext >&5
12886 eval "$as_ac_var=no"
12888 rm -f conftest.err conftest.$ac_objext \
12889 conftest$ac_exeext conftest.$ac_ext
12891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12892 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12893 if test `eval echo '${'$as_ac_var'}'` = yes; then
12894 cat >>confdefs.h <<_ACEOF
12895 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12896 _ACEOF
12899 done
12902 # We require memcpy.
12903 memcpy_found=no
12905 for ac_func in memcpy
12907 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12908 echo "$as_me:$LINENO: checking for $ac_func" >&5
12909 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12910 if eval "test \"\${$as_ac_var+set}\" = set"; then
12911 echo $ECHO_N "(cached) $ECHO_C" >&6
12912 else
12913 if test x$gcc_no_link = xyes; then
12914 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12915 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12916 { (exit 1); exit 1; }; }
12918 cat >conftest.$ac_ext <<_ACEOF
12919 /* confdefs.h. */
12920 _ACEOF
12921 cat confdefs.h >>conftest.$ac_ext
12922 cat >>conftest.$ac_ext <<_ACEOF
12923 /* end confdefs.h. */
12924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12926 #define $ac_func innocuous_$ac_func
12928 /* System header to define __stub macros and hopefully few prototypes,
12929 which can conflict with char $ac_func (); below.
12930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12931 <limits.h> exists even on freestanding compilers. */
12933 #ifdef __STDC__
12934 # include <limits.h>
12935 #else
12936 # include <assert.h>
12937 #endif
12939 #undef $ac_func
12941 /* Override any gcc2 internal prototype to avoid an error. */
12942 #ifdef __cplusplus
12943 extern "C"
12945 #endif
12946 /* We use char because int might match the return type of a gcc2
12947 builtin and then its argument prototype would still apply. */
12948 char $ac_func ();
12949 /* The GNU C library defines this for functions which it implements
12950 to always fail with ENOSYS. Some functions are actually named
12951 something starting with __ and the normal name is an alias. */
12952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12953 choke me
12954 #else
12955 char (*f) () = $ac_func;
12956 #endif
12957 #ifdef __cplusplus
12959 #endif
12962 main ()
12964 return f != $ac_func;
12966 return 0;
12968 _ACEOF
12969 rm -f conftest.$ac_objext conftest$ac_exeext
12970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12971 (eval $ac_link) 2>conftest.er1
12972 ac_status=$?
12973 grep -v '^ *+' conftest.er1 >conftest.err
12974 rm -f conftest.er1
12975 cat conftest.err >&5
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); } &&
12978 { ac_try='test -z "$ac_c_werror_flag"
12979 || test ! -s conftest.err'
12980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12981 (eval $ac_try) 2>&5
12982 ac_status=$?
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); }; } &&
12985 { ac_try='test -s conftest$ac_exeext'
12986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12987 (eval $ac_try) 2>&5
12988 ac_status=$?
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); }; }; then
12991 eval "$as_ac_var=yes"
12992 else
12993 echo "$as_me: failed program was:" >&5
12994 sed 's/^/| /' conftest.$ac_ext >&5
12996 eval "$as_ac_var=no"
12998 rm -f conftest.err conftest.$ac_objext \
12999 conftest$ac_exeext conftest.$ac_ext
13001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13002 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13003 if test `eval echo '${'$as_ac_var'}'` = yes; then
13004 cat >>confdefs.h <<_ACEOF
13005 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13006 _ACEOF
13007 memcpy_found=yes
13009 done
13011 if test "$memcpy_found" = no; then
13012 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
13013 echo "$as_me: error: memcpy is required" >&2;}
13014 { (exit 1); exit 1; }; }
13016 # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
13017 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13018 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13019 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13020 echo $ECHO_N "(cached) $ECHO_C" >&6
13021 else
13022 ac_check_lib_save_LIBS=$LIBS
13023 LIBS="-ldl $LIBS"
13024 if test x$gcc_no_link = xyes; then
13025 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13026 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13027 { (exit 1); exit 1; }; }
13029 cat >conftest.$ac_ext <<_ACEOF
13030 /* confdefs.h. */
13031 _ACEOF
13032 cat confdefs.h >>conftest.$ac_ext
13033 cat >>conftest.$ac_ext <<_ACEOF
13034 /* end confdefs.h. */
13036 /* Override any gcc2 internal prototype to avoid an error. */
13037 #ifdef __cplusplus
13038 extern "C"
13039 #endif
13040 /* We use char because int might match the return type of a gcc2
13041 builtin and then its argument prototype would still apply. */
13042 char dlopen ();
13044 main ()
13046 dlopen ();
13048 return 0;
13050 _ACEOF
13051 rm -f conftest.$ac_objext conftest$ac_exeext
13052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13053 (eval $ac_link) 2>conftest.er1
13054 ac_status=$?
13055 grep -v '^ *+' conftest.er1 >conftest.err
13056 rm -f conftest.er1
13057 cat conftest.err >&5
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); } &&
13060 { ac_try='test -z "$ac_c_werror_flag"
13061 || test ! -s conftest.err'
13062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13063 (eval $ac_try) 2>&5
13064 ac_status=$?
13065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066 (exit $ac_status); }; } &&
13067 { ac_try='test -s conftest$ac_exeext'
13068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13069 (eval $ac_try) 2>&5
13070 ac_status=$?
13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072 (exit $ac_status); }; }; then
13073 ac_cv_lib_dl_dlopen=yes
13074 else
13075 echo "$as_me: failed program was:" >&5
13076 sed 's/^/| /' conftest.$ac_ext >&5
13078 ac_cv_lib_dl_dlopen=no
13080 rm -f conftest.err conftest.$ac_objext \
13081 conftest$ac_exeext conftest.$ac_ext
13082 LIBS=$ac_check_lib_save_LIBS
13084 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13085 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13086 if test $ac_cv_lib_dl_dlopen = yes; then
13089 cat >>confdefs.h <<\_ACEOF
13090 #define HAVE_DLOPEN 1
13091 _ACEOF
13093 else
13095 echo "$as_me:$LINENO: checking for dlopen in -ldld" >&5
13096 echo $ECHO_N "checking for dlopen in -ldld... $ECHO_C" >&6
13097 if test "${ac_cv_lib_dld_dlopen+set}" = set; then
13098 echo $ECHO_N "(cached) $ECHO_C" >&6
13099 else
13100 ac_check_lib_save_LIBS=$LIBS
13101 LIBS="-ldld $LIBS"
13102 if test x$gcc_no_link = xyes; then
13103 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13104 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13105 { (exit 1); exit 1; }; }
13107 cat >conftest.$ac_ext <<_ACEOF
13108 /* confdefs.h. */
13109 _ACEOF
13110 cat confdefs.h >>conftest.$ac_ext
13111 cat >>conftest.$ac_ext <<_ACEOF
13112 /* end confdefs.h. */
13114 /* Override any gcc2 internal prototype to avoid an error. */
13115 #ifdef __cplusplus
13116 extern "C"
13117 #endif
13118 /* We use char because int might match the return type of a gcc2
13119 builtin and then its argument prototype would still apply. */
13120 char dlopen ();
13122 main ()
13124 dlopen ();
13126 return 0;
13128 _ACEOF
13129 rm -f conftest.$ac_objext conftest$ac_exeext
13130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13131 (eval $ac_link) 2>conftest.er1
13132 ac_status=$?
13133 grep -v '^ *+' conftest.er1 >conftest.err
13134 rm -f conftest.er1
13135 cat conftest.err >&5
13136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); } &&
13138 { ac_try='test -z "$ac_c_werror_flag"
13139 || test ! -s conftest.err'
13140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13141 (eval $ac_try) 2>&5
13142 ac_status=$?
13143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 (exit $ac_status); }; } &&
13145 { ac_try='test -s conftest$ac_exeext'
13146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13147 (eval $ac_try) 2>&5
13148 ac_status=$?
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); }; }; then
13151 ac_cv_lib_dld_dlopen=yes
13152 else
13153 echo "$as_me: failed program was:" >&5
13154 sed 's/^/| /' conftest.$ac_ext >&5
13156 ac_cv_lib_dld_dlopen=no
13158 rm -f conftest.err conftest.$ac_objext \
13159 conftest$ac_exeext conftest.$ac_ext
13160 LIBS=$ac_check_lib_save_LIBS
13162 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dlopen" >&5
13163 echo "${ECHO_T}$ac_cv_lib_dld_dlopen" >&6
13164 if test $ac_cv_lib_dld_dlopen = yes; then
13167 cat >>confdefs.h <<\_ACEOF
13168 #define HAVE_DLOPEN 1
13169 _ACEOF
13176 # Some library-finding code we stole from Tcl.
13177 #--------------------------------------------------------------------
13178 # Check for the existence of the -lsocket and -lnsl libraries.
13179 # The order here is important, so that they end up in the right
13180 # order in the command line generated by make. Here are some
13181 # special considerations:
13182 # 1. Use "connect" and "accept" to check for -lsocket, and
13183 # "gethostbyname" to check for -lnsl.
13184 # 2. Use each function name only once: can't redo a check because
13185 # autoconf caches the results of the last check and won't redo it.
13186 # 3. Use -lnsl and -lsocket only if they supply procedures that
13187 # aren't already present in the normal libraries. This is because
13188 # IRIX 5.2 has libraries, but they aren't needed and they're
13189 # bogus: they goof up name resolution if used.
13190 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
13191 # To get around this problem, check for both libraries together
13192 # if -lsocket doesn't work by itself.
13193 #--------------------------------------------------------------------
13195 echo "$as_me:$LINENO: checking for socket libraries" >&5
13196 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
13197 if test "${gcj_cv_lib_sockets+set}" = set; then
13198 echo $ECHO_N "(cached) $ECHO_C" >&6
13199 else
13200 gcj_cv_lib_sockets=
13201 gcj_checkBoth=0
13202 unset ac_cv_func_connect
13203 echo "$as_me:$LINENO: checking for connect" >&5
13204 echo $ECHO_N "checking for connect... $ECHO_C" >&6
13205 if test "${ac_cv_func_connect+set}" = set; then
13206 echo $ECHO_N "(cached) $ECHO_C" >&6
13207 else
13208 if test x$gcc_no_link = xyes; then
13209 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13210 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13211 { (exit 1); exit 1; }; }
13213 cat >conftest.$ac_ext <<_ACEOF
13214 /* confdefs.h. */
13215 _ACEOF
13216 cat confdefs.h >>conftest.$ac_ext
13217 cat >>conftest.$ac_ext <<_ACEOF
13218 /* end confdefs.h. */
13219 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
13220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13221 #define connect innocuous_connect
13223 /* System header to define __stub macros and hopefully few prototypes,
13224 which can conflict with char connect (); below.
13225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13226 <limits.h> exists even on freestanding compilers. */
13228 #ifdef __STDC__
13229 # include <limits.h>
13230 #else
13231 # include <assert.h>
13232 #endif
13234 #undef connect
13236 /* Override any gcc2 internal prototype to avoid an error. */
13237 #ifdef __cplusplus
13238 extern "C"
13240 #endif
13241 /* We use char because int might match the return type of a gcc2
13242 builtin and then its argument prototype would still apply. */
13243 char connect ();
13244 /* The GNU C library defines this for functions which it implements
13245 to always fail with ENOSYS. Some functions are actually named
13246 something starting with __ and the normal name is an alias. */
13247 #if defined (__stub_connect) || defined (__stub___connect)
13248 choke me
13249 #else
13250 char (*f) () = connect;
13251 #endif
13252 #ifdef __cplusplus
13254 #endif
13257 main ()
13259 return f != connect;
13261 return 0;
13263 _ACEOF
13264 rm -f conftest.$ac_objext conftest$ac_exeext
13265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13266 (eval $ac_link) 2>conftest.er1
13267 ac_status=$?
13268 grep -v '^ *+' conftest.er1 >conftest.err
13269 rm -f conftest.er1
13270 cat conftest.err >&5
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); } &&
13273 { ac_try='test -z "$ac_c_werror_flag"
13274 || test ! -s conftest.err'
13275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13276 (eval $ac_try) 2>&5
13277 ac_status=$?
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); }; } &&
13280 { ac_try='test -s conftest$ac_exeext'
13281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13282 (eval $ac_try) 2>&5
13283 ac_status=$?
13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); }; }; then
13286 ac_cv_func_connect=yes
13287 else
13288 echo "$as_me: failed program was:" >&5
13289 sed 's/^/| /' conftest.$ac_ext >&5
13291 ac_cv_func_connect=no
13293 rm -f conftest.err conftest.$ac_objext \
13294 conftest$ac_exeext conftest.$ac_ext
13296 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
13297 echo "${ECHO_T}$ac_cv_func_connect" >&6
13298 if test $ac_cv_func_connect = yes; then
13299 gcj_checkSocket=0
13300 else
13301 gcj_checkSocket=1
13304 if test "$gcj_checkSocket" = 1; then
13305 unset ac_cv_func_connect
13306 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
13307 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
13308 if test "${ac_cv_lib_socket_main+set}" = set; then
13309 echo $ECHO_N "(cached) $ECHO_C" >&6
13310 else
13311 ac_check_lib_save_LIBS=$LIBS
13312 LIBS="-lsocket $LIBS"
13313 if test x$gcc_no_link = xyes; then
13314 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13315 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13316 { (exit 1); exit 1; }; }
13318 cat >conftest.$ac_ext <<_ACEOF
13319 /* confdefs.h. */
13320 _ACEOF
13321 cat confdefs.h >>conftest.$ac_ext
13322 cat >>conftest.$ac_ext <<_ACEOF
13323 /* end confdefs.h. */
13327 main ()
13329 main ();
13331 return 0;
13333 _ACEOF
13334 rm -f conftest.$ac_objext conftest$ac_exeext
13335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13336 (eval $ac_link) 2>conftest.er1
13337 ac_status=$?
13338 grep -v '^ *+' conftest.er1 >conftest.err
13339 rm -f conftest.er1
13340 cat conftest.err >&5
13341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13342 (exit $ac_status); } &&
13343 { ac_try='test -z "$ac_c_werror_flag"
13344 || test ! -s conftest.err'
13345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13346 (eval $ac_try) 2>&5
13347 ac_status=$?
13348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349 (exit $ac_status); }; } &&
13350 { ac_try='test -s conftest$ac_exeext'
13351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13352 (eval $ac_try) 2>&5
13353 ac_status=$?
13354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355 (exit $ac_status); }; }; then
13356 ac_cv_lib_socket_main=yes
13357 else
13358 echo "$as_me: failed program was:" >&5
13359 sed 's/^/| /' conftest.$ac_ext >&5
13361 ac_cv_lib_socket_main=no
13363 rm -f conftest.err conftest.$ac_objext \
13364 conftest$ac_exeext conftest.$ac_ext
13365 LIBS=$ac_check_lib_save_LIBS
13367 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
13368 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
13369 if test $ac_cv_lib_socket_main = yes; then
13370 gcj_cv_lib_sockets="-lsocket"
13371 else
13372 gcj_checkBoth=1
13376 if test "$gcj_checkBoth" = 1; then
13377 gcj_oldLibs=$LIBS
13378 LIBS="$LIBS -lsocket -lnsl"
13379 unset ac_cv_func_accept
13380 echo "$as_me:$LINENO: checking for accept" >&5
13381 echo $ECHO_N "checking for accept... $ECHO_C" >&6
13382 if test "${ac_cv_func_accept+set}" = set; then
13383 echo $ECHO_N "(cached) $ECHO_C" >&6
13384 else
13385 if test x$gcc_no_link = xyes; then
13386 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13387 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13388 { (exit 1); exit 1; }; }
13390 cat >conftest.$ac_ext <<_ACEOF
13391 /* confdefs.h. */
13392 _ACEOF
13393 cat confdefs.h >>conftest.$ac_ext
13394 cat >>conftest.$ac_ext <<_ACEOF
13395 /* end confdefs.h. */
13396 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
13397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13398 #define accept innocuous_accept
13400 /* System header to define __stub macros and hopefully few prototypes,
13401 which can conflict with char accept (); below.
13402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13403 <limits.h> exists even on freestanding compilers. */
13405 #ifdef __STDC__
13406 # include <limits.h>
13407 #else
13408 # include <assert.h>
13409 #endif
13411 #undef accept
13413 /* Override any gcc2 internal prototype to avoid an error. */
13414 #ifdef __cplusplus
13415 extern "C"
13417 #endif
13418 /* We use char because int might match the return type of a gcc2
13419 builtin and then its argument prototype would still apply. */
13420 char accept ();
13421 /* The GNU C library defines this for functions which it implements
13422 to always fail with ENOSYS. Some functions are actually named
13423 something starting with __ and the normal name is an alias. */
13424 #if defined (__stub_accept) || defined (__stub___accept)
13425 choke me
13426 #else
13427 char (*f) () = accept;
13428 #endif
13429 #ifdef __cplusplus
13431 #endif
13434 main ()
13436 return f != accept;
13438 return 0;
13440 _ACEOF
13441 rm -f conftest.$ac_objext conftest$ac_exeext
13442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13443 (eval $ac_link) 2>conftest.er1
13444 ac_status=$?
13445 grep -v '^ *+' conftest.er1 >conftest.err
13446 rm -f conftest.er1
13447 cat conftest.err >&5
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); } &&
13450 { ac_try='test -z "$ac_c_werror_flag"
13451 || test ! -s conftest.err'
13452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13453 (eval $ac_try) 2>&5
13454 ac_status=$?
13455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456 (exit $ac_status); }; } &&
13457 { ac_try='test -s conftest$ac_exeext'
13458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13459 (eval $ac_try) 2>&5
13460 ac_status=$?
13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); }; }; then
13463 ac_cv_func_accept=yes
13464 else
13465 echo "$as_me: failed program was:" >&5
13466 sed 's/^/| /' conftest.$ac_ext >&5
13468 ac_cv_func_accept=no
13470 rm -f conftest.err conftest.$ac_objext \
13471 conftest$ac_exeext conftest.$ac_ext
13473 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
13474 echo "${ECHO_T}$ac_cv_func_accept" >&6
13475 if test $ac_cv_func_accept = yes; then
13476 gcj_checkNsl=0
13477 gcj_cv_lib_sockets="-lsocket -lnsl"
13480 unset ac_cv_func_accept
13481 LIBS=$gcj_oldLibs
13483 unset ac_cv_func_gethostbyname
13484 gcj_oldLibs=$LIBS
13485 LIBS="$LIBS $gcj_cv_lib_sockets"
13486 echo "$as_me:$LINENO: checking for gethostbyname" >&5
13487 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
13488 if test "${ac_cv_func_gethostbyname+set}" = set; then
13489 echo $ECHO_N "(cached) $ECHO_C" >&6
13490 else
13491 if test x$gcc_no_link = xyes; then
13492 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13493 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13494 { (exit 1); exit 1; }; }
13496 cat >conftest.$ac_ext <<_ACEOF
13497 /* confdefs.h. */
13498 _ACEOF
13499 cat confdefs.h >>conftest.$ac_ext
13500 cat >>conftest.$ac_ext <<_ACEOF
13501 /* end confdefs.h. */
13502 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
13503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13504 #define gethostbyname innocuous_gethostbyname
13506 /* System header to define __stub macros and hopefully few prototypes,
13507 which can conflict with char gethostbyname (); below.
13508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13509 <limits.h> exists even on freestanding compilers. */
13511 #ifdef __STDC__
13512 # include <limits.h>
13513 #else
13514 # include <assert.h>
13515 #endif
13517 #undef gethostbyname
13519 /* Override any gcc2 internal prototype to avoid an error. */
13520 #ifdef __cplusplus
13521 extern "C"
13523 #endif
13524 /* We use char because int might match the return type of a gcc2
13525 builtin and then its argument prototype would still apply. */
13526 char gethostbyname ();
13527 /* The GNU C library defines this for functions which it implements
13528 to always fail with ENOSYS. Some functions are actually named
13529 something starting with __ and the normal name is an alias. */
13530 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13531 choke me
13532 #else
13533 char (*f) () = gethostbyname;
13534 #endif
13535 #ifdef __cplusplus
13537 #endif
13540 main ()
13542 return f != gethostbyname;
13544 return 0;
13546 _ACEOF
13547 rm -f conftest.$ac_objext conftest$ac_exeext
13548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13549 (eval $ac_link) 2>conftest.er1
13550 ac_status=$?
13551 grep -v '^ *+' conftest.er1 >conftest.err
13552 rm -f conftest.er1
13553 cat conftest.err >&5
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); } &&
13556 { ac_try='test -z "$ac_c_werror_flag"
13557 || test ! -s conftest.err'
13558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13559 (eval $ac_try) 2>&5
13560 ac_status=$?
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); }; } &&
13563 { ac_try='test -s conftest$ac_exeext'
13564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13565 (eval $ac_try) 2>&5
13566 ac_status=$?
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); }; }; then
13569 ac_cv_func_gethostbyname=yes
13570 else
13571 echo "$as_me: failed program was:" >&5
13572 sed 's/^/| /' conftest.$ac_ext >&5
13574 ac_cv_func_gethostbyname=no
13576 rm -f conftest.err conftest.$ac_objext \
13577 conftest$ac_exeext conftest.$ac_ext
13579 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
13580 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
13581 if test $ac_cv_func_gethostbyname = yes; then
13583 else
13584 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
13585 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
13586 if test "${ac_cv_lib_nsl_main+set}" = set; then
13587 echo $ECHO_N "(cached) $ECHO_C" >&6
13588 else
13589 ac_check_lib_save_LIBS=$LIBS
13590 LIBS="-lnsl $LIBS"
13591 if test x$gcc_no_link = xyes; then
13592 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13593 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13594 { (exit 1); exit 1; }; }
13596 cat >conftest.$ac_ext <<_ACEOF
13597 /* confdefs.h. */
13598 _ACEOF
13599 cat confdefs.h >>conftest.$ac_ext
13600 cat >>conftest.$ac_ext <<_ACEOF
13601 /* end confdefs.h. */
13605 main ()
13607 main ();
13609 return 0;
13611 _ACEOF
13612 rm -f conftest.$ac_objext conftest$ac_exeext
13613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13614 (eval $ac_link) 2>conftest.er1
13615 ac_status=$?
13616 grep -v '^ *+' conftest.er1 >conftest.err
13617 rm -f conftest.er1
13618 cat conftest.err >&5
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); } &&
13621 { ac_try='test -z "$ac_c_werror_flag"
13622 || test ! -s conftest.err'
13623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13624 (eval $ac_try) 2>&5
13625 ac_status=$?
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); }; } &&
13628 { ac_try='test -s conftest$ac_exeext'
13629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13630 (eval $ac_try) 2>&5
13631 ac_status=$?
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); }; }; then
13634 ac_cv_lib_nsl_main=yes
13635 else
13636 echo "$as_me: failed program was:" >&5
13637 sed 's/^/| /' conftest.$ac_ext >&5
13639 ac_cv_lib_nsl_main=no
13641 rm -f conftest.err conftest.$ac_objext \
13642 conftest$ac_exeext conftest.$ac_ext
13643 LIBS=$ac_check_lib_save_LIBS
13645 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
13646 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
13647 if test $ac_cv_lib_nsl_main = yes; then
13648 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
13653 unset ac_cv_func_gethostbyname
13654 LIBS=$gcj_oldLIBS
13657 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
13658 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
13659 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
13661 if test "$with_system_zlib" = yes; then
13662 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
13663 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
13664 if test "${ac_cv_lib_z_deflate+set}" = set; then
13665 echo $ECHO_N "(cached) $ECHO_C" >&6
13666 else
13667 ac_check_lib_save_LIBS=$LIBS
13668 LIBS="-lz $LIBS"
13669 if test x$gcc_no_link = xyes; then
13670 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13671 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13672 { (exit 1); exit 1; }; }
13674 cat >conftest.$ac_ext <<_ACEOF
13675 /* confdefs.h. */
13676 _ACEOF
13677 cat confdefs.h >>conftest.$ac_ext
13678 cat >>conftest.$ac_ext <<_ACEOF
13679 /* end confdefs.h. */
13681 /* Override any gcc2 internal prototype to avoid an error. */
13682 #ifdef __cplusplus
13683 extern "C"
13684 #endif
13685 /* We use char because int might match the return type of a gcc2
13686 builtin and then its argument prototype would still apply. */
13687 char deflate ();
13689 main ()
13691 deflate ();
13693 return 0;
13695 _ACEOF
13696 rm -f conftest.$ac_objext conftest$ac_exeext
13697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13698 (eval $ac_link) 2>conftest.er1
13699 ac_status=$?
13700 grep -v '^ *+' conftest.er1 >conftest.err
13701 rm -f conftest.er1
13702 cat conftest.err >&5
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); } &&
13705 { ac_try='test -z "$ac_c_werror_flag"
13706 || test ! -s conftest.err'
13707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13708 (eval $ac_try) 2>&5
13709 ac_status=$?
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); }; } &&
13712 { ac_try='test -s conftest$ac_exeext'
13713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13714 (eval $ac_try) 2>&5
13715 ac_status=$?
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); }; }; then
13718 ac_cv_lib_z_deflate=yes
13719 else
13720 echo "$as_me: failed program was:" >&5
13721 sed 's/^/| /' conftest.$ac_ext >&5
13723 ac_cv_lib_z_deflate=no
13725 rm -f conftest.err conftest.$ac_objext \
13726 conftest$ac_exeext conftest.$ac_ext
13727 LIBS=$ac_check_lib_save_LIBS
13729 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
13730 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
13731 if test $ac_cv_lib_z_deflate = yes; then
13732 ZLIBSPEC=-lz
13733 else
13734 ZLIBSPEC=
13739 # Test for Gtk stuff, if asked for.
13740 if test "$use_gtk_awt" = yes; then
13742 succeeded=no
13744 if test -z "$PKG_CONFIG"; then
13745 # Extract the first word of "pkg-config", so it can be a program name with args.
13746 set dummy pkg-config; ac_word=$2
13747 echo "$as_me:$LINENO: checking for $ac_word" >&5
13748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13749 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13750 echo $ECHO_N "(cached) $ECHO_C" >&6
13751 else
13752 case $PKG_CONFIG in
13753 [\\/]* | ?:[\\/]*)
13754 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13758 for as_dir in $PATH
13760 IFS=$as_save_IFS
13761 test -z "$as_dir" && as_dir=.
13762 for ac_exec_ext in '' $ac_executable_extensions; do
13763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13764 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13766 break 2
13768 done
13769 done
13771 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13773 esac
13775 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13777 if test -n "$PKG_CONFIG"; then
13778 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13779 echo "${ECHO_T}$PKG_CONFIG" >&6
13780 else
13781 echo "$as_me:$LINENO: result: no" >&5
13782 echo "${ECHO_T}no" >&6
13787 if test "$PKG_CONFIG" = "no" ; then
13788 echo "*** The pkg-config script could not be found. Make sure it is"
13789 echo "*** in your path, or set the PKG_CONFIG environment variable"
13790 echo "*** to the full path to pkg-config."
13791 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13792 else
13793 PKG_CONFIG_MIN_VERSION=0.9.0
13794 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13795 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
13796 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
13798 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
13799 echo "$as_me:$LINENO: result: yes" >&5
13800 echo "${ECHO_T}yes" >&6
13801 succeeded=yes
13803 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
13804 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
13805 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
13806 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
13807 echo "${ECHO_T}$GTK_CFLAGS" >&6
13809 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
13810 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
13811 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
13812 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
13813 echo "${ECHO_T}$GTK_LIBS" >&6
13814 else
13815 GTK_CFLAGS=""
13816 GTK_LIBS=""
13817 ## If we have a custom action on failure, don't print errors, but
13818 ## do set a variable so people can do so.
13819 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
13820 echo $GTK_PKG_ERRORS
13825 else
13826 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13827 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13831 if test $succeeded = yes; then
13833 else
13834 { { 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
13835 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;}
13836 { (exit 1); exit 1; }; }
13843 succeeded=no
13845 if test -z "$PKG_CONFIG"; then
13846 # Extract the first word of "pkg-config", so it can be a program name with args.
13847 set dummy pkg-config; ac_word=$2
13848 echo "$as_me:$LINENO: checking for $ac_word" >&5
13849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13850 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13851 echo $ECHO_N "(cached) $ECHO_C" >&6
13852 else
13853 case $PKG_CONFIG in
13854 [\\/]* | ?:[\\/]*)
13855 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13859 for as_dir in $PATH
13861 IFS=$as_save_IFS
13862 test -z "$as_dir" && as_dir=.
13863 for ac_exec_ext in '' $ac_executable_extensions; do
13864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13865 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13867 break 2
13869 done
13870 done
13872 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13874 esac
13876 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13878 if test -n "$PKG_CONFIG"; then
13879 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13880 echo "${ECHO_T}$PKG_CONFIG" >&6
13881 else
13882 echo "$as_me:$LINENO: result: no" >&5
13883 echo "${ECHO_T}no" >&6
13888 if test "$PKG_CONFIG" = "no" ; then
13889 echo "*** The pkg-config script could not be found. Make sure it is"
13890 echo "*** in your path, or set the PKG_CONFIG environment variable"
13891 echo "*** to the full path to pkg-config."
13892 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13893 else
13894 PKG_CONFIG_MIN_VERSION=0.9.0
13895 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13896 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
13897 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
13899 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
13900 echo "$as_me:$LINENO: result: yes" >&5
13901 echo "${ECHO_T}yes" >&6
13902 succeeded=yes
13904 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
13905 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
13906 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13907 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
13908 echo "${ECHO_T}$GLIB_CFLAGS" >&6
13910 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
13911 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
13912 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13913 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
13914 echo "${ECHO_T}$GLIB_LIBS" >&6
13915 else
13916 GLIB_CFLAGS=""
13917 GLIB_LIBS=""
13918 ## If we have a custom action on failure, don't print errors, but
13919 ## do set a variable so people can do so.
13920 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13921 echo $GLIB_PKG_ERRORS
13926 else
13927 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13928 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13932 if test $succeeded = yes; then
13934 else
13935 { { 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
13936 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;}
13937 { (exit 1); exit 1; }; }
13944 succeeded=no
13946 if test -z "$PKG_CONFIG"; then
13947 # Extract the first word of "pkg-config", so it can be a program name with args.
13948 set dummy pkg-config; ac_word=$2
13949 echo "$as_me:$LINENO: checking for $ac_word" >&5
13950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13951 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13952 echo $ECHO_N "(cached) $ECHO_C" >&6
13953 else
13954 case $PKG_CONFIG in
13955 [\\/]* | ?:[\\/]*)
13956 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13960 for as_dir in $PATH
13962 IFS=$as_save_IFS
13963 test -z "$as_dir" && as_dir=.
13964 for ac_exec_ext in '' $ac_executable_extensions; do
13965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13966 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13968 break 2
13970 done
13971 done
13973 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13975 esac
13977 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13979 if test -n "$PKG_CONFIG"; then
13980 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13981 echo "${ECHO_T}$PKG_CONFIG" >&6
13982 else
13983 echo "$as_me:$LINENO: result: no" >&5
13984 echo "${ECHO_T}no" >&6
13989 if test "$PKG_CONFIG" = "no" ; then
13990 echo "*** The pkg-config script could not be found. Make sure it is"
13991 echo "*** in your path, or set the PKG_CONFIG environment variable"
13992 echo "*** to the full path to pkg-config."
13993 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13994 else
13995 PKG_CONFIG_MIN_VERSION=0.9.0
13996 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13997 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
13998 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
14000 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
14001 echo "$as_me:$LINENO: result: yes" >&5
14002 echo "${ECHO_T}yes" >&6
14003 succeeded=yes
14005 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
14006 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
14007 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
14008 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
14009 echo "${ECHO_T}$LIBART_CFLAGS" >&6
14011 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
14012 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
14013 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
14014 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
14015 echo "${ECHO_T}$LIBART_LIBS" >&6
14016 else
14017 LIBART_CFLAGS=""
14018 LIBART_LIBS=""
14019 ## If we have a custom action on failure, don't print errors, but
14020 ## do set a variable so people can do so.
14021 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
14022 echo $LIBART_PKG_ERRORS
14027 else
14028 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14029 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14033 if test $succeeded = yes; then
14035 else
14036 { { 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
14037 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;}
14038 { (exit 1); exit 1; }; }
14044 # We require the XTest Extension to support java.awt.Robot.
14045 echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
14046 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
14047 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
14048 echo $ECHO_N "(cached) $ECHO_C" >&6
14049 else
14050 ac_check_lib_save_LIBS=$LIBS
14051 LIBS="-lXtst ${X_LIBS} $LIBS"
14052 if test x$gcc_no_link = xyes; then
14053 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14054 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14055 { (exit 1); exit 1; }; }
14057 cat >conftest.$ac_ext <<_ACEOF
14058 /* confdefs.h. */
14059 _ACEOF
14060 cat confdefs.h >>conftest.$ac_ext
14061 cat >>conftest.$ac_ext <<_ACEOF
14062 /* end confdefs.h. */
14064 /* Override any gcc2 internal prototype to avoid an error. */
14065 #ifdef __cplusplus
14066 extern "C"
14067 #endif
14068 /* We use char because int might match the return type of a gcc2
14069 builtin and then its argument prototype would still apply. */
14070 char XTestQueryExtension ();
14072 main ()
14074 XTestQueryExtension ();
14076 return 0;
14078 _ACEOF
14079 rm -f conftest.$ac_objext conftest$ac_exeext
14080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14081 (eval $ac_link) 2>conftest.er1
14082 ac_status=$?
14083 grep -v '^ *+' conftest.er1 >conftest.err
14084 rm -f conftest.er1
14085 cat conftest.err >&5
14086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087 (exit $ac_status); } &&
14088 { ac_try='test -z "$ac_c_werror_flag"
14089 || test ! -s conftest.err'
14090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14091 (eval $ac_try) 2>&5
14092 ac_status=$?
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); }; } &&
14095 { ac_try='test -s conftest$ac_exeext'
14096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14097 (eval $ac_try) 2>&5
14098 ac_status=$?
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); }; }; then
14101 ac_cv_lib_Xtst_XTestQueryExtension=yes
14102 else
14103 echo "$as_me: failed program was:" >&5
14104 sed 's/^/| /' conftest.$ac_ext >&5
14106 ac_cv_lib_Xtst_XTestQueryExtension=no
14108 rm -f conftest.err conftest.$ac_objext \
14109 conftest$ac_exeext conftest.$ac_ext
14110 LIBS=$ac_check_lib_save_LIBS
14112 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
14113 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
14114 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
14115 true
14116 else
14117 { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
14118 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
14119 { (exit 1); exit 1; }; }
14124 # On Solaris, and maybe other architectures, the Boehm collector
14125 # requires -ldl.
14126 if test "$GC" = boehm; then
14127 echo "$as_me:$LINENO: checking for main in -ldl" >&5
14128 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
14129 if test "${ac_cv_lib_dl_main+set}" = set; then
14130 echo $ECHO_N "(cached) $ECHO_C" >&6
14131 else
14132 ac_check_lib_save_LIBS=$LIBS
14133 LIBS="-ldl $LIBS"
14134 if test x$gcc_no_link = xyes; then
14135 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14136 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14137 { (exit 1); exit 1; }; }
14139 cat >conftest.$ac_ext <<_ACEOF
14140 /* confdefs.h. */
14141 _ACEOF
14142 cat confdefs.h >>conftest.$ac_ext
14143 cat >>conftest.$ac_ext <<_ACEOF
14144 /* end confdefs.h. */
14148 main ()
14150 main ();
14152 return 0;
14154 _ACEOF
14155 rm -f conftest.$ac_objext conftest$ac_exeext
14156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14157 (eval $ac_link) 2>conftest.er1
14158 ac_status=$?
14159 grep -v '^ *+' conftest.er1 >conftest.err
14160 rm -f conftest.er1
14161 cat conftest.err >&5
14162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 (exit $ac_status); } &&
14164 { ac_try='test -z "$ac_c_werror_flag"
14165 || test ! -s conftest.err'
14166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14167 (eval $ac_try) 2>&5
14168 ac_status=$?
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); }; } &&
14171 { ac_try='test -s conftest$ac_exeext'
14172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14173 (eval $ac_try) 2>&5
14174 ac_status=$?
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); }; }; then
14177 ac_cv_lib_dl_main=yes
14178 else
14179 echo "$as_me: failed program was:" >&5
14180 sed 's/^/| /' conftest.$ac_ext >&5
14182 ac_cv_lib_dl_main=no
14184 rm -f conftest.err conftest.$ac_objext \
14185 conftest$ac_exeext conftest.$ac_ext
14186 LIBS=$ac_check_lib_save_LIBS
14188 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
14189 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
14190 if test $ac_cv_lib_dl_main = yes; then
14191 SYSTEMSPEC="$SYSTEMSPEC -ldl"
14197 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
14198 case $build in
14199 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
14200 *) CLASSPATH_SEPARATOR=':' ;;
14201 esac
14204 # We must search the source tree for java.lang, since we still don't
14205 # have libgcj.jar nor java/lang/*.class
14206 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
14207 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
14209 # Since some classes depend on this one, we need its source available
14210 # before we can do any GCJ compilation test :-(
14211 if test ! -f gnu/classpath/Configuration.java; then
14212 test -d gnu || mkdir gnu
14213 test -d gnu/classpath || mkdir gnu/classpath
14214 # Note that it is not crucial that all the values here be correct.
14215 sed -e "s,@prefix@,$prefix," \
14216 -e "s,@VERSION@,$VERSION," \
14217 -e "s,@LIBDEBUG@,false," \
14218 -e "s,@INIT_LOAD_LIBRARY@,false," \
14219 -e "s,@@,$LIBGCJDEBUG," \
14220 -e "s,@default_toolkit@,$TOOLKIT," \
14221 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
14222 -e "s,@GTK_CAIRO_ENABLED@,false," \
14223 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
14224 > gnu/classpath/Configuration.java
14225 # We do not want to redirect the output of the grep below to /dev/null,
14226 # but we add /dev/null to the input list so that grep will print the
14227 # filename of Configuration.java in case it finds any matches.
14228 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
14229 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
14230 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
14231 { (exit 1); exit 1; }; }
14235 if test -n "$ac_tool_prefix"; then
14236 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
14237 set dummy ${ac_tool_prefix}gcj; ac_word=$2
14238 echo "$as_me:$LINENO: checking for $ac_word" >&5
14239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14240 if test "${ac_cv_prog_GCJ+set}" = set; then
14241 echo $ECHO_N "(cached) $ECHO_C" >&6
14242 else
14243 if test -n "$GCJ"; then
14244 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
14245 else
14246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14247 for as_dir in $PATH
14249 IFS=$as_save_IFS
14250 test -z "$as_dir" && as_dir=.
14251 for ac_exec_ext in '' $ac_executable_extensions; do
14252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14253 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
14254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14255 break 2
14257 done
14258 done
14262 GCJ=$ac_cv_prog_GCJ
14263 if test -n "$GCJ"; then
14264 echo "$as_me:$LINENO: result: $GCJ" >&5
14265 echo "${ECHO_T}$GCJ" >&6
14266 else
14267 echo "$as_me:$LINENO: result: no" >&5
14268 echo "${ECHO_T}no" >&6
14272 if test -z "$ac_cv_prog_GCJ"; then
14273 ac_ct_GCJ=$GCJ
14274 # Extract the first word of "gcj", so it can be a program name with args.
14275 set dummy gcj; ac_word=$2
14276 echo "$as_me:$LINENO: checking for $ac_word" >&5
14277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14278 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
14279 echo $ECHO_N "(cached) $ECHO_C" >&6
14280 else
14281 if test -n "$ac_ct_GCJ"; then
14282 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
14283 else
14284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14285 for as_dir in $PATH
14287 IFS=$as_save_IFS
14288 test -z "$as_dir" && as_dir=.
14289 for ac_exec_ext in '' $ac_executable_extensions; do
14290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14291 ac_cv_prog_ac_ct_GCJ="gcj"
14292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14293 break 2
14295 done
14296 done
14298 test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
14301 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
14302 if test -n "$ac_ct_GCJ"; then
14303 echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
14304 echo "${ECHO_T}$ac_ct_GCJ" >&6
14305 else
14306 echo "$as_me:$LINENO: result: no" >&5
14307 echo "${ECHO_T}no" >&6
14310 GCJ=$ac_ct_GCJ
14311 else
14312 GCJ="$ac_cv_prog_GCJ"
14315 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
14320 # Now remove it.
14321 rm -f gnu/classpath/Configuration.java
14323 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
14325 echo "$as_me:$LINENO: checking for void *" >&5
14326 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14327 if test "${ac_cv_type_void_p+set}" = set; then
14328 echo $ECHO_N "(cached) $ECHO_C" >&6
14329 else
14330 cat >conftest.$ac_ext <<_ACEOF
14331 /* confdefs.h. */
14332 _ACEOF
14333 cat confdefs.h >>conftest.$ac_ext
14334 cat >>conftest.$ac_ext <<_ACEOF
14335 /* end confdefs.h. */
14336 $ac_includes_default
14338 main ()
14340 if ((void * *) 0)
14341 return 0;
14342 if (sizeof (void *))
14343 return 0;
14345 return 0;
14347 _ACEOF
14348 rm -f conftest.$ac_objext
14349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14350 (eval $ac_compile) 2>conftest.er1
14351 ac_status=$?
14352 grep -v '^ *+' conftest.er1 >conftest.err
14353 rm -f conftest.er1
14354 cat conftest.err >&5
14355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356 (exit $ac_status); } &&
14357 { ac_try='test -z "$ac_c_werror_flag"
14358 || test ! -s conftest.err'
14359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14360 (eval $ac_try) 2>&5
14361 ac_status=$?
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); }; } &&
14364 { ac_try='test -s conftest.$ac_objext'
14365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14366 (eval $ac_try) 2>&5
14367 ac_status=$?
14368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); }; }; then
14370 ac_cv_type_void_p=yes
14371 else
14372 echo "$as_me: failed program was:" >&5
14373 sed 's/^/| /' conftest.$ac_ext >&5
14375 ac_cv_type_void_p=no
14377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14379 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14380 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14382 echo "$as_me:$LINENO: checking size of void *" >&5
14383 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14384 if test "${ac_cv_sizeof_void_p+set}" = set; then
14385 echo $ECHO_N "(cached) $ECHO_C" >&6
14386 else
14387 if test "$ac_cv_type_void_p" = yes; then
14388 # The cast to unsigned long works around a bug in the HP C Compiler
14389 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14390 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14391 # This bug is HP SR number 8606223364.
14392 if test "$cross_compiling" = yes; then
14393 # Depending upon the size, compute the lo and hi bounds.
14394 cat >conftest.$ac_ext <<_ACEOF
14395 /* confdefs.h. */
14396 _ACEOF
14397 cat confdefs.h >>conftest.$ac_ext
14398 cat >>conftest.$ac_ext <<_ACEOF
14399 /* end confdefs.h. */
14400 $ac_includes_default
14402 main ()
14404 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14405 test_array [0] = 0
14408 return 0;
14410 _ACEOF
14411 rm -f conftest.$ac_objext
14412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14413 (eval $ac_compile) 2>conftest.er1
14414 ac_status=$?
14415 grep -v '^ *+' conftest.er1 >conftest.err
14416 rm -f conftest.er1
14417 cat conftest.err >&5
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); } &&
14420 { ac_try='test -z "$ac_c_werror_flag"
14421 || test ! -s conftest.err'
14422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14423 (eval $ac_try) 2>&5
14424 ac_status=$?
14425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426 (exit $ac_status); }; } &&
14427 { ac_try='test -s conftest.$ac_objext'
14428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14429 (eval $ac_try) 2>&5
14430 ac_status=$?
14431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432 (exit $ac_status); }; }; then
14433 ac_lo=0 ac_mid=0
14434 while :; do
14435 cat >conftest.$ac_ext <<_ACEOF
14436 /* confdefs.h. */
14437 _ACEOF
14438 cat confdefs.h >>conftest.$ac_ext
14439 cat >>conftest.$ac_ext <<_ACEOF
14440 /* end confdefs.h. */
14441 $ac_includes_default
14443 main ()
14445 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14446 test_array [0] = 0
14449 return 0;
14451 _ACEOF
14452 rm -f conftest.$ac_objext
14453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14454 (eval $ac_compile) 2>conftest.er1
14455 ac_status=$?
14456 grep -v '^ *+' conftest.er1 >conftest.err
14457 rm -f conftest.er1
14458 cat conftest.err >&5
14459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460 (exit $ac_status); } &&
14461 { ac_try='test -z "$ac_c_werror_flag"
14462 || test ! -s conftest.err'
14463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14464 (eval $ac_try) 2>&5
14465 ac_status=$?
14466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467 (exit $ac_status); }; } &&
14468 { ac_try='test -s conftest.$ac_objext'
14469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14470 (eval $ac_try) 2>&5
14471 ac_status=$?
14472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473 (exit $ac_status); }; }; then
14474 ac_hi=$ac_mid; break
14475 else
14476 echo "$as_me: failed program was:" >&5
14477 sed 's/^/| /' conftest.$ac_ext >&5
14479 ac_lo=`expr $ac_mid + 1`
14480 if test $ac_lo -le $ac_mid; then
14481 ac_lo= ac_hi=
14482 break
14484 ac_mid=`expr 2 '*' $ac_mid + 1`
14486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14487 done
14488 else
14489 echo "$as_me: failed program was:" >&5
14490 sed 's/^/| /' conftest.$ac_ext >&5
14492 cat >conftest.$ac_ext <<_ACEOF
14493 /* confdefs.h. */
14494 _ACEOF
14495 cat confdefs.h >>conftest.$ac_ext
14496 cat >>conftest.$ac_ext <<_ACEOF
14497 /* end confdefs.h. */
14498 $ac_includes_default
14500 main ()
14502 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14503 test_array [0] = 0
14506 return 0;
14508 _ACEOF
14509 rm -f conftest.$ac_objext
14510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14511 (eval $ac_compile) 2>conftest.er1
14512 ac_status=$?
14513 grep -v '^ *+' conftest.er1 >conftest.err
14514 rm -f conftest.er1
14515 cat conftest.err >&5
14516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517 (exit $ac_status); } &&
14518 { ac_try='test -z "$ac_c_werror_flag"
14519 || test ! -s conftest.err'
14520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14521 (eval $ac_try) 2>&5
14522 ac_status=$?
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); }; } &&
14525 { ac_try='test -s conftest.$ac_objext'
14526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14527 (eval $ac_try) 2>&5
14528 ac_status=$?
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); }; }; then
14531 ac_hi=-1 ac_mid=-1
14532 while :; do
14533 cat >conftest.$ac_ext <<_ACEOF
14534 /* confdefs.h. */
14535 _ACEOF
14536 cat confdefs.h >>conftest.$ac_ext
14537 cat >>conftest.$ac_ext <<_ACEOF
14538 /* end confdefs.h. */
14539 $ac_includes_default
14541 main ()
14543 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14544 test_array [0] = 0
14547 return 0;
14549 _ACEOF
14550 rm -f conftest.$ac_objext
14551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14552 (eval $ac_compile) 2>conftest.er1
14553 ac_status=$?
14554 grep -v '^ *+' conftest.er1 >conftest.err
14555 rm -f conftest.er1
14556 cat conftest.err >&5
14557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558 (exit $ac_status); } &&
14559 { ac_try='test -z "$ac_c_werror_flag"
14560 || test ! -s conftest.err'
14561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14562 (eval $ac_try) 2>&5
14563 ac_status=$?
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); }; } &&
14566 { ac_try='test -s conftest.$ac_objext'
14567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14568 (eval $ac_try) 2>&5
14569 ac_status=$?
14570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571 (exit $ac_status); }; }; then
14572 ac_lo=$ac_mid; break
14573 else
14574 echo "$as_me: failed program was:" >&5
14575 sed 's/^/| /' conftest.$ac_ext >&5
14577 ac_hi=`expr '(' $ac_mid ')' - 1`
14578 if test $ac_mid -le $ac_hi; then
14579 ac_lo= ac_hi=
14580 break
14582 ac_mid=`expr 2 '*' $ac_mid`
14584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14585 done
14586 else
14587 echo "$as_me: failed program was:" >&5
14588 sed 's/^/| /' conftest.$ac_ext >&5
14590 ac_lo= ac_hi=
14592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14595 # Binary search between lo and hi bounds.
14596 while test "x$ac_lo" != "x$ac_hi"; do
14597 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14598 cat >conftest.$ac_ext <<_ACEOF
14599 /* confdefs.h. */
14600 _ACEOF
14601 cat confdefs.h >>conftest.$ac_ext
14602 cat >>conftest.$ac_ext <<_ACEOF
14603 /* end confdefs.h. */
14604 $ac_includes_default
14606 main ()
14608 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14609 test_array [0] = 0
14612 return 0;
14614 _ACEOF
14615 rm -f conftest.$ac_objext
14616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14617 (eval $ac_compile) 2>conftest.er1
14618 ac_status=$?
14619 grep -v '^ *+' conftest.er1 >conftest.err
14620 rm -f conftest.er1
14621 cat conftest.err >&5
14622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623 (exit $ac_status); } &&
14624 { ac_try='test -z "$ac_c_werror_flag"
14625 || test ! -s conftest.err'
14626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14627 (eval $ac_try) 2>&5
14628 ac_status=$?
14629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630 (exit $ac_status); }; } &&
14631 { ac_try='test -s conftest.$ac_objext'
14632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14633 (eval $ac_try) 2>&5
14634 ac_status=$?
14635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636 (exit $ac_status); }; }; then
14637 ac_hi=$ac_mid
14638 else
14639 echo "$as_me: failed program was:" >&5
14640 sed 's/^/| /' conftest.$ac_ext >&5
14642 ac_lo=`expr '(' $ac_mid ')' + 1`
14644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14645 done
14646 case $ac_lo in
14647 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14648 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14649 See \`config.log' for more details." >&5
14650 echo "$as_me: error: cannot compute sizeof (void *), 77
14651 See \`config.log' for more details." >&2;}
14652 { (exit 1); exit 1; }; } ;;
14653 esac
14654 else
14655 if test "$cross_compiling" = yes; then
14656 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14657 See \`config.log' for more details." >&5
14658 echo "$as_me: error: cannot run test program while cross compiling
14659 See \`config.log' for more details." >&2;}
14660 { (exit 1); exit 1; }; }
14661 else
14662 cat >conftest.$ac_ext <<_ACEOF
14663 /* confdefs.h. */
14664 _ACEOF
14665 cat confdefs.h >>conftest.$ac_ext
14666 cat >>conftest.$ac_ext <<_ACEOF
14667 /* end confdefs.h. */
14668 $ac_includes_default
14669 long longval () { return (long) (sizeof (void *)); }
14670 unsigned long ulongval () { return (long) (sizeof (void *)); }
14671 #include <stdio.h>
14672 #include <stdlib.h>
14674 main ()
14677 FILE *f = fopen ("conftest.val", "w");
14678 if (! f)
14679 exit (1);
14680 if (((long) (sizeof (void *))) < 0)
14682 long i = longval ();
14683 if (i != ((long) (sizeof (void *))))
14684 exit (1);
14685 fprintf (f, "%ld\n", i);
14687 else
14689 unsigned long i = ulongval ();
14690 if (i != ((long) (sizeof (void *))))
14691 exit (1);
14692 fprintf (f, "%lu\n", i);
14694 exit (ferror (f) || fclose (f) != 0);
14697 return 0;
14699 _ACEOF
14700 rm -f conftest$ac_exeext
14701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14702 (eval $ac_link) 2>&5
14703 ac_status=$?
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14707 (eval $ac_try) 2>&5
14708 ac_status=$?
14709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710 (exit $ac_status); }; }; then
14711 ac_cv_sizeof_void_p=`cat conftest.val`
14712 else
14713 echo "$as_me: program exited with status $ac_status" >&5
14714 echo "$as_me: failed program was:" >&5
14715 sed 's/^/| /' conftest.$ac_ext >&5
14717 ( exit $ac_status )
14718 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14719 See \`config.log' for more details." >&5
14720 echo "$as_me: error: cannot compute sizeof (void *), 77
14721 See \`config.log' for more details." >&2;}
14722 { (exit 1); exit 1; }; }
14724 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14727 rm -f conftest.val
14728 else
14729 ac_cv_sizeof_void_p=0
14732 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14733 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14734 cat >>confdefs.h <<_ACEOF
14735 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14736 _ACEOF
14740 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14741 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
14742 if test "${ac_cv_c_bigendian+set}" = set; then
14743 echo $ECHO_N "(cached) $ECHO_C" >&6
14744 else
14745 # See if sys/param.h defines the BYTE_ORDER macro.
14746 cat >conftest.$ac_ext <<_ACEOF
14747 /* confdefs.h. */
14748 _ACEOF
14749 cat confdefs.h >>conftest.$ac_ext
14750 cat >>conftest.$ac_ext <<_ACEOF
14751 /* end confdefs.h. */
14752 #include <sys/types.h>
14753 #include <sys/param.h>
14756 main ()
14758 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14759 bogus endian macros
14760 #endif
14763 return 0;
14765 _ACEOF
14766 rm -f conftest.$ac_objext
14767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14768 (eval $ac_compile) 2>conftest.er1
14769 ac_status=$?
14770 grep -v '^ *+' conftest.er1 >conftest.err
14771 rm -f conftest.er1
14772 cat conftest.err >&5
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); } &&
14775 { ac_try='test -z "$ac_c_werror_flag"
14776 || test ! -s conftest.err'
14777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14778 (eval $ac_try) 2>&5
14779 ac_status=$?
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); }; } &&
14782 { ac_try='test -s conftest.$ac_objext'
14783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14784 (eval $ac_try) 2>&5
14785 ac_status=$?
14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); }; }; then
14788 # It does; now see whether it defined to BIG_ENDIAN or not.
14789 cat >conftest.$ac_ext <<_ACEOF
14790 /* confdefs.h. */
14791 _ACEOF
14792 cat confdefs.h >>conftest.$ac_ext
14793 cat >>conftest.$ac_ext <<_ACEOF
14794 /* end confdefs.h. */
14795 #include <sys/types.h>
14796 #include <sys/param.h>
14799 main ()
14801 #if BYTE_ORDER != BIG_ENDIAN
14802 not big endian
14803 #endif
14806 return 0;
14808 _ACEOF
14809 rm -f conftest.$ac_objext
14810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14811 (eval $ac_compile) 2>conftest.er1
14812 ac_status=$?
14813 grep -v '^ *+' conftest.er1 >conftest.err
14814 rm -f conftest.er1
14815 cat conftest.err >&5
14816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817 (exit $ac_status); } &&
14818 { ac_try='test -z "$ac_c_werror_flag"
14819 || test ! -s conftest.err'
14820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14821 (eval $ac_try) 2>&5
14822 ac_status=$?
14823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824 (exit $ac_status); }; } &&
14825 { ac_try='test -s conftest.$ac_objext'
14826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14827 (eval $ac_try) 2>&5
14828 ac_status=$?
14829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830 (exit $ac_status); }; }; then
14831 ac_cv_c_bigendian=yes
14832 else
14833 echo "$as_me: failed program was:" >&5
14834 sed 's/^/| /' conftest.$ac_ext >&5
14836 ac_cv_c_bigendian=no
14838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14839 else
14840 echo "$as_me: failed program was:" >&5
14841 sed 's/^/| /' conftest.$ac_ext >&5
14843 # It does not; compile a test program.
14844 if test "$cross_compiling" = yes; then
14845 # try to guess the endianness by grepping values into an object file
14846 ac_cv_c_bigendian=unknown
14847 cat >conftest.$ac_ext <<_ACEOF
14848 /* confdefs.h. */
14849 _ACEOF
14850 cat confdefs.h >>conftest.$ac_ext
14851 cat >>conftest.$ac_ext <<_ACEOF
14852 /* end confdefs.h. */
14853 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14854 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14855 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14856 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14857 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14858 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14860 main ()
14862 _ascii (); _ebcdic ();
14864 return 0;
14866 _ACEOF
14867 rm -f conftest.$ac_objext
14868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14869 (eval $ac_compile) 2>conftest.er1
14870 ac_status=$?
14871 grep -v '^ *+' conftest.er1 >conftest.err
14872 rm -f conftest.er1
14873 cat conftest.err >&5
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); } &&
14876 { ac_try='test -z "$ac_c_werror_flag"
14877 || test ! -s conftest.err'
14878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14879 (eval $ac_try) 2>&5
14880 ac_status=$?
14881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882 (exit $ac_status); }; } &&
14883 { ac_try='test -s conftest.$ac_objext'
14884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14885 (eval $ac_try) 2>&5
14886 ac_status=$?
14887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 (exit $ac_status); }; }; then
14889 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14890 ac_cv_c_bigendian=yes
14892 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14893 if test "$ac_cv_c_bigendian" = unknown; then
14894 ac_cv_c_bigendian=no
14895 else
14896 # finding both strings is unlikely to happen, but who knows?
14897 ac_cv_c_bigendian=unknown
14900 else
14901 echo "$as_me: failed program was:" >&5
14902 sed 's/^/| /' conftest.$ac_ext >&5
14905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14906 else
14907 cat >conftest.$ac_ext <<_ACEOF
14908 /* confdefs.h. */
14909 _ACEOF
14910 cat confdefs.h >>conftest.$ac_ext
14911 cat >>conftest.$ac_ext <<_ACEOF
14912 /* end confdefs.h. */
14914 main ()
14916 /* Are we little or big endian? From Harbison&Steele. */
14917 union
14919 long l;
14920 char c[sizeof (long)];
14921 } u;
14922 u.l = 1;
14923 exit (u.c[sizeof (long) - 1] == 1);
14925 _ACEOF
14926 rm -f conftest$ac_exeext
14927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14928 (eval $ac_link) 2>&5
14929 ac_status=$?
14930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14931 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14933 (eval $ac_try) 2>&5
14934 ac_status=$?
14935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936 (exit $ac_status); }; }; then
14937 ac_cv_c_bigendian=no
14938 else
14939 echo "$as_me: program exited with status $ac_status" >&5
14940 echo "$as_me: failed program was:" >&5
14941 sed 's/^/| /' conftest.$ac_ext >&5
14943 ( exit $ac_status )
14944 ac_cv_c_bigendian=yes
14946 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14951 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14952 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14953 case $ac_cv_c_bigendian in
14954 yes)
14956 cat >>confdefs.h <<\_ACEOF
14957 #define WORDS_BIGENDIAN 1
14958 _ACEOF
14963 { { echo "$as_me:$LINENO: error: unknown endianness
14964 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14965 echo "$as_me: error: unknown endianness
14966 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14967 { (exit 1); exit 1; }; } ;;
14968 esac
14971 ZLIBS=
14972 SYS_ZLIBS=
14973 ZINCS=
14975 if test -z "$ZLIBSPEC"; then
14976 # Use zlib from the GCC tree.
14977 ZINCS='-I$(top_srcdir)/../zlib'
14978 ZLIBS=../zlib/libzgcj_convenience.la
14979 else
14980 # System's zlib.
14981 SYS_ZLIBS="$ZLIBSPEC"
14994 if test "$NATIVE" = yes; then
14995 NATIVE_TRUE=
14996 NATIVE_FALSE='#'
14997 else
14998 NATIVE_TRUE='#'
14999 NATIVE_FALSE=
15004 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
15005 NEEDS_DATA_START_TRUE=
15006 NEEDS_DATA_START_FALSE='#'
15007 else
15008 NEEDS_DATA_START_TRUE='#'
15009 NEEDS_DATA_START_FALSE=
15014 # Process the option "--enable-version-specific-runtime-libs"
15015 # Calculate toolexeclibdir
15016 case ${version_specific_libs} in
15017 yes)
15018 # Need the gcc compiler version to know where to install libraries
15019 # and header files if --enable-version-specific-runtime-libs option
15020 # is selected.
15021 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
15022 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
15023 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
15024 toolexeclibdir=$toolexecmainlibdir
15027 if test -n "$with_cross_host" &&
15028 test x"$with_cross_host" != x"no"; then
15029 # Install a library built with a cross compiler in tooldir, not libdir.
15030 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
15031 toolexecmainlibdir='$(toolexecdir)/lib'
15032 else
15033 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
15034 toolexecmainlibdir='$(libdir)'
15036 multi_os_directory=`$CC -print-multi-os-directory`
15037 case $multi_os_directory in
15038 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
15039 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
15040 esac
15042 esac
15047 # Determine where the standard .db file and GNU Classpath JNI
15048 # libraries are found.
15049 multi_os_directory=`$CC -print-multi-os-directory`
15050 case $multi_os_directory in
15052 dbexecdir='$(libdir)/gcj-$(gcc_version)' # Avoid /.
15055 dbexecdir='$(libdir)/'$multi_os_directory'/gcj-$(gcc_version)'
15057 esac
15060 # Determine gcj version number.
15061 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
15062 GCJVERSION=$gcjversion
15065 cat >>confdefs.h <<_ACEOF
15066 #define GCJVERSION "$GCJVERSION"
15067 _ACEOF
15071 cat >>confdefs.h <<\_ACEOF
15072 #define JV_VERSION "1.4.2"
15073 _ACEOF
15076 cat >>confdefs.h <<\_ACEOF
15077 #define JV_API_VERSION "1.4"
15078 _ACEOF
15082 case "${with_gxx_include_dir}" in
15083 yes)
15084 { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
15085 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
15086 { (exit 1); exit 1; }; }
15088 no | "")
15089 case "${enable_version_specific_runtime_libs}" in
15090 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
15092 libstdcxx_incdir='c++/$(gcc_version)'
15093 gxx_include_dir='include/$(libstdcxx_incdir)'
15094 if test -n "$with_cross_host" &&
15095 test x"$with_cross_host" != x"no"; then
15096 gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
15097 else
15098 gxx_include_dir='${prefix}/'"$gxx_include_dir"
15099 fi;;
15100 esac ;;
15101 *) gxx_include_dir=${with_gxx_include_dir} ;;
15102 esac
15107 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
15108 # On that system, sys/ioctl.h will not include sys/filio.h unless
15109 # BSD_COMP is defined; just including sys/filio.h is simpler.
15110 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
15111 # for now. If you change this, you also must update natFile.cc.
15134 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
15135 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
15136 sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
15137 pwd.h sys/config.h stdint.h langinfo.h locale.h \
15138 dirent.h sys/rw_lock.h ifaddrs.h
15140 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15141 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15142 echo "$as_me:$LINENO: checking for $ac_header" >&5
15143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15145 echo $ECHO_N "(cached) $ECHO_C" >&6
15147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15148 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15149 else
15150 # Is the header compilable?
15151 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15152 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15153 cat >conftest.$ac_ext <<_ACEOF
15154 /* confdefs.h. */
15155 _ACEOF
15156 cat confdefs.h >>conftest.$ac_ext
15157 cat >>conftest.$ac_ext <<_ACEOF
15158 /* end confdefs.h. */
15159 $ac_includes_default
15160 #include <$ac_header>
15161 _ACEOF
15162 rm -f conftest.$ac_objext
15163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15164 (eval $ac_compile) 2>conftest.er1
15165 ac_status=$?
15166 grep -v '^ *+' conftest.er1 >conftest.err
15167 rm -f conftest.er1
15168 cat conftest.err >&5
15169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); } &&
15171 { ac_try='test -z "$ac_c_werror_flag"
15172 || test ! -s conftest.err'
15173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15174 (eval $ac_try) 2>&5
15175 ac_status=$?
15176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 (exit $ac_status); }; } &&
15178 { ac_try='test -s conftest.$ac_objext'
15179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15180 (eval $ac_try) 2>&5
15181 ac_status=$?
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); }; }; then
15184 ac_header_compiler=yes
15185 else
15186 echo "$as_me: failed program was:" >&5
15187 sed 's/^/| /' conftest.$ac_ext >&5
15189 ac_header_compiler=no
15191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15192 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15193 echo "${ECHO_T}$ac_header_compiler" >&6
15195 # Is the header present?
15196 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15197 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15198 cat >conftest.$ac_ext <<_ACEOF
15199 /* confdefs.h. */
15200 _ACEOF
15201 cat confdefs.h >>conftest.$ac_ext
15202 cat >>conftest.$ac_ext <<_ACEOF
15203 /* end confdefs.h. */
15204 #include <$ac_header>
15205 _ACEOF
15206 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15207 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15208 ac_status=$?
15209 grep -v '^ *+' conftest.er1 >conftest.err
15210 rm -f conftest.er1
15211 cat conftest.err >&5
15212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213 (exit $ac_status); } >/dev/null; then
15214 if test -s conftest.err; then
15215 ac_cpp_err=$ac_c_preproc_warn_flag
15216 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15217 else
15218 ac_cpp_err=
15220 else
15221 ac_cpp_err=yes
15223 if test -z "$ac_cpp_err"; then
15224 ac_header_preproc=yes
15225 else
15226 echo "$as_me: failed program was:" >&5
15227 sed 's/^/| /' conftest.$ac_ext >&5
15229 ac_header_preproc=no
15231 rm -f conftest.err conftest.$ac_ext
15232 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15233 echo "${ECHO_T}$ac_header_preproc" >&6
15235 # So? What about this header?
15236 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15237 yes:no: )
15238 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15239 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15241 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15242 ac_header_preproc=yes
15244 no:yes:* )
15245 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15246 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15247 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15248 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15249 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15250 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15251 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15252 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15254 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15255 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15256 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15258 cat <<\_ASBOX
15259 ## ---------------------------------- ##
15260 ## Report this to the libjava lists. ##
15261 ## ---------------------------------- ##
15262 _ASBOX
15264 sed "s/^/$as_me: WARNING: /" >&2
15266 esac
15267 echo "$as_me:$LINENO: checking for $ac_header" >&5
15268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15270 echo $ECHO_N "(cached) $ECHO_C" >&6
15271 else
15272 eval "$as_ac_Header=\$ac_header_preproc"
15274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15279 cat >>confdefs.h <<_ACEOF
15280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15281 _ACEOF
15285 done
15288 for ac_header in inttypes.h
15290 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15292 echo "$as_me:$LINENO: checking for $ac_header" >&5
15293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15295 echo $ECHO_N "(cached) $ECHO_C" >&6
15297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15298 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15299 else
15300 # Is the header compilable?
15301 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15302 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15303 cat >conftest.$ac_ext <<_ACEOF
15304 /* confdefs.h. */
15305 _ACEOF
15306 cat confdefs.h >>conftest.$ac_ext
15307 cat >>conftest.$ac_ext <<_ACEOF
15308 /* end confdefs.h. */
15309 $ac_includes_default
15310 #include <$ac_header>
15311 _ACEOF
15312 rm -f conftest.$ac_objext
15313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15314 (eval $ac_compile) 2>conftest.er1
15315 ac_status=$?
15316 grep -v '^ *+' conftest.er1 >conftest.err
15317 rm -f conftest.er1
15318 cat conftest.err >&5
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); } &&
15321 { ac_try='test -z "$ac_c_werror_flag"
15322 || test ! -s conftest.err'
15323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15324 (eval $ac_try) 2>&5
15325 ac_status=$?
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); }; } &&
15328 { ac_try='test -s conftest.$ac_objext'
15329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15330 (eval $ac_try) 2>&5
15331 ac_status=$?
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); }; }; then
15334 ac_header_compiler=yes
15335 else
15336 echo "$as_me: failed program was:" >&5
15337 sed 's/^/| /' conftest.$ac_ext >&5
15339 ac_header_compiler=no
15341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15342 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15343 echo "${ECHO_T}$ac_header_compiler" >&6
15345 # Is the header present?
15346 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15347 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15348 cat >conftest.$ac_ext <<_ACEOF
15349 /* confdefs.h. */
15350 _ACEOF
15351 cat confdefs.h >>conftest.$ac_ext
15352 cat >>conftest.$ac_ext <<_ACEOF
15353 /* end confdefs.h. */
15354 #include <$ac_header>
15355 _ACEOF
15356 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15357 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15358 ac_status=$?
15359 grep -v '^ *+' conftest.er1 >conftest.err
15360 rm -f conftest.er1
15361 cat conftest.err >&5
15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363 (exit $ac_status); } >/dev/null; then
15364 if test -s conftest.err; then
15365 ac_cpp_err=$ac_c_preproc_warn_flag
15366 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15367 else
15368 ac_cpp_err=
15370 else
15371 ac_cpp_err=yes
15373 if test -z "$ac_cpp_err"; then
15374 ac_header_preproc=yes
15375 else
15376 echo "$as_me: failed program was:" >&5
15377 sed 's/^/| /' conftest.$ac_ext >&5
15379 ac_header_preproc=no
15381 rm -f conftest.err conftest.$ac_ext
15382 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15383 echo "${ECHO_T}$ac_header_preproc" >&6
15385 # So? What about this header?
15386 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15387 yes:no: )
15388 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15389 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15391 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15392 ac_header_preproc=yes
15394 no:yes:* )
15395 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15396 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15397 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15398 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15399 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15400 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15401 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15402 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15404 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15405 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15406 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15408 cat <<\_ASBOX
15409 ## ---------------------------------- ##
15410 ## Report this to the libjava lists. ##
15411 ## ---------------------------------- ##
15412 _ASBOX
15414 sed "s/^/$as_me: WARNING: /" >&2
15416 esac
15417 echo "$as_me:$LINENO: checking for $ac_header" >&5
15418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15420 echo $ECHO_N "(cached) $ECHO_C" >&6
15421 else
15422 eval "$as_ac_Header=\$ac_header_preproc"
15424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15429 cat >>confdefs.h <<_ACEOF
15430 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15431 _ACEOF
15434 cat >>confdefs.h <<\_ACEOF
15435 #define HAVE_INTTYPES_H 1
15436 _ACEOF
15439 cat >>confdefs.h <<\_ACEOF
15440 #define JV_HAVE_INTTYPES_H 1
15441 _ACEOF
15446 done
15448 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15449 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
15450 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15451 echo $ECHO_N "(cached) $ECHO_C" >&6
15452 else
15453 cat >conftest.$ac_ext <<_ACEOF
15454 /* confdefs.h. */
15455 _ACEOF
15456 cat confdefs.h >>conftest.$ac_ext
15457 cat >>conftest.$ac_ext <<_ACEOF
15458 /* end confdefs.h. */
15459 #include <sys/types.h>
15460 #include <sys/wait.h>
15461 #ifndef WEXITSTATUS
15462 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
15463 #endif
15464 #ifndef WIFEXITED
15465 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15466 #endif
15469 main ()
15471 int s;
15472 wait (&s);
15473 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15475 return 0;
15477 _ACEOF
15478 rm -f conftest.$ac_objext
15479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15480 (eval $ac_compile) 2>conftest.er1
15481 ac_status=$?
15482 grep -v '^ *+' conftest.er1 >conftest.err
15483 rm -f conftest.er1
15484 cat conftest.err >&5
15485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486 (exit $ac_status); } &&
15487 { ac_try='test -z "$ac_c_werror_flag"
15488 || test ! -s conftest.err'
15489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15490 (eval $ac_try) 2>&5
15491 ac_status=$?
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); }; } &&
15494 { ac_try='test -s conftest.$ac_objext'
15495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15496 (eval $ac_try) 2>&5
15497 ac_status=$?
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); }; }; then
15500 ac_cv_header_sys_wait_h=yes
15501 else
15502 echo "$as_me: failed program was:" >&5
15503 sed 's/^/| /' conftest.$ac_ext >&5
15505 ac_cv_header_sys_wait_h=no
15507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15509 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15510 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
15511 if test $ac_cv_header_sys_wait_h = yes; then
15513 cat >>confdefs.h <<\_ACEOF
15514 #define HAVE_SYS_WAIT_H 1
15515 _ACEOF
15520 echo "$as_me:$LINENO: checking for ssize_t" >&5
15521 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15522 if test "${ac_cv_type_ssize_t+set}" = set; then
15523 echo $ECHO_N "(cached) $ECHO_C" >&6
15524 else
15525 cat >conftest.$ac_ext <<_ACEOF
15526 /* confdefs.h. */
15527 _ACEOF
15528 cat confdefs.h >>conftest.$ac_ext
15529 cat >>conftest.$ac_ext <<_ACEOF
15530 /* end confdefs.h. */
15531 $ac_includes_default
15533 main ()
15535 if ((ssize_t *) 0)
15536 return 0;
15537 if (sizeof (ssize_t))
15538 return 0;
15540 return 0;
15542 _ACEOF
15543 rm -f conftest.$ac_objext
15544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15545 (eval $ac_compile) 2>conftest.er1
15546 ac_status=$?
15547 grep -v '^ *+' conftest.er1 >conftest.err
15548 rm -f conftest.er1
15549 cat conftest.err >&5
15550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551 (exit $ac_status); } &&
15552 { ac_try='test -z "$ac_c_werror_flag"
15553 || test ! -s conftest.err'
15554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15555 (eval $ac_try) 2>&5
15556 ac_status=$?
15557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558 (exit $ac_status); }; } &&
15559 { ac_try='test -s conftest.$ac_objext'
15560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15561 (eval $ac_try) 2>&5
15562 ac_status=$?
15563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564 (exit $ac_status); }; }; then
15565 ac_cv_type_ssize_t=yes
15566 else
15567 echo "$as_me: failed program was:" >&5
15568 sed 's/^/| /' conftest.$ac_ext >&5
15570 ac_cv_type_ssize_t=no
15572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15574 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
15575 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
15576 if test $ac_cv_type_ssize_t = yes; then
15578 else
15580 cat >>confdefs.h <<_ACEOF
15581 #define ssize_t int
15582 _ACEOF
15587 echo "$as_me:$LINENO: checking for in_addr_t" >&5
15588 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
15589 cat >conftest.$ac_ext <<_ACEOF
15590 /* confdefs.h. */
15591 _ACEOF
15592 cat confdefs.h >>conftest.$ac_ext
15593 cat >>conftest.$ac_ext <<_ACEOF
15594 /* end confdefs.h. */
15595 #include <sys/types.h>
15596 #if STDC_HEADERS
15597 #include <stdlib.h>
15598 #include <stddef.h>
15599 #endif
15600 #if HAVE_NETINET_IN_H
15601 #include <netinet/in.h>
15602 #endif
15604 main ()
15606 in_addr_t foo;
15608 return 0;
15610 _ACEOF
15611 rm -f conftest.$ac_objext
15612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15613 (eval $ac_compile) 2>conftest.er1
15614 ac_status=$?
15615 grep -v '^ *+' conftest.er1 >conftest.err
15616 rm -f conftest.er1
15617 cat conftest.err >&5
15618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619 (exit $ac_status); } &&
15620 { ac_try='test -z "$ac_c_werror_flag"
15621 || test ! -s conftest.err'
15622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15623 (eval $ac_try) 2>&5
15624 ac_status=$?
15625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); }; } &&
15627 { ac_try='test -s conftest.$ac_objext'
15628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15629 (eval $ac_try) 2>&5
15630 ac_status=$?
15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); }; }; then
15634 cat >>confdefs.h <<\_ACEOF
15635 #define HAVE_IN_ADDR_T 1
15636 _ACEOF
15638 echo "$as_me:$LINENO: result: yes" >&5
15639 echo "${ECHO_T}yes" >&6
15640 else
15641 echo "$as_me: failed program was:" >&5
15642 sed 's/^/| /' conftest.$ac_ext >&5
15644 echo "$as_me:$LINENO: result: no" >&5
15645 echo "${ECHO_T}no" >&6
15647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15649 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
15650 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
15651 cat >conftest.$ac_ext <<_ACEOF
15652 /* confdefs.h. */
15653 _ACEOF
15654 cat confdefs.h >>conftest.$ac_ext
15655 cat >>conftest.$ac_ext <<_ACEOF
15656 /* end confdefs.h. */
15657 #include <netinet/in.h>
15659 main ()
15661 struct ip_mreq mreq;
15663 return 0;
15665 _ACEOF
15666 rm -f conftest.$ac_objext
15667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15668 (eval $ac_compile) 2>conftest.er1
15669 ac_status=$?
15670 grep -v '^ *+' conftest.er1 >conftest.err
15671 rm -f conftest.er1
15672 cat conftest.err >&5
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); } &&
15675 { ac_try='test -z "$ac_c_werror_flag"
15676 || test ! -s conftest.err'
15677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15678 (eval $ac_try) 2>&5
15679 ac_status=$?
15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681 (exit $ac_status); }; } &&
15682 { ac_try='test -s conftest.$ac_objext'
15683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15684 (eval $ac_try) 2>&5
15685 ac_status=$?
15686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687 (exit $ac_status); }; }; then
15689 cat >>confdefs.h <<\_ACEOF
15690 #define HAVE_STRUCT_IP_MREQ 1
15691 _ACEOF
15693 echo "$as_me:$LINENO: result: yes" >&5
15694 echo "${ECHO_T}yes" >&6
15695 else
15696 echo "$as_me: failed program was:" >&5
15697 sed 's/^/| /' conftest.$ac_ext >&5
15699 echo "$as_me:$LINENO: result: no" >&5
15700 echo "${ECHO_T}no" >&6
15702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15704 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
15705 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
15706 cat >conftest.$ac_ext <<_ACEOF
15707 /* confdefs.h. */
15708 _ACEOF
15709 cat confdefs.h >>conftest.$ac_ext
15710 cat >>conftest.$ac_ext <<_ACEOF
15711 /* end confdefs.h. */
15712 #include <netinet/in.h>
15714 main ()
15716 struct ipv6_mreq mreq6;
15718 return 0;
15720 _ACEOF
15721 rm -f conftest.$ac_objext
15722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15723 (eval $ac_compile) 2>conftest.er1
15724 ac_status=$?
15725 grep -v '^ *+' conftest.er1 >conftest.err
15726 rm -f conftest.er1
15727 cat conftest.err >&5
15728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); } &&
15730 { ac_try='test -z "$ac_c_werror_flag"
15731 || test ! -s conftest.err'
15732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15733 (eval $ac_try) 2>&5
15734 ac_status=$?
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); }; } &&
15737 { ac_try='test -s conftest.$ac_objext'
15738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15739 (eval $ac_try) 2>&5
15740 ac_status=$?
15741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742 (exit $ac_status); }; }; then
15744 cat >>confdefs.h <<\_ACEOF
15745 #define HAVE_STRUCT_IPV6_MREQ 1
15746 _ACEOF
15748 echo "$as_me:$LINENO: result: yes" >&5
15749 echo "${ECHO_T}yes" >&6
15750 else
15751 echo "$as_me: failed program was:" >&5
15752 sed 's/^/| /' conftest.$ac_ext >&5
15754 echo "$as_me:$LINENO: result: no" >&5
15755 echo "${ECHO_T}no" >&6
15757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15759 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
15760 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
15761 cat >conftest.$ac_ext <<_ACEOF
15762 /* confdefs.h. */
15763 _ACEOF
15764 cat confdefs.h >>conftest.$ac_ext
15765 cat >>conftest.$ac_ext <<_ACEOF
15766 /* end confdefs.h. */
15767 #include <netinet/in.h>
15769 main ()
15771 struct sockaddr_in6 addr6;
15773 return 0;
15775 _ACEOF
15776 rm -f conftest.$ac_objext
15777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15778 (eval $ac_compile) 2>conftest.er1
15779 ac_status=$?
15780 grep -v '^ *+' conftest.er1 >conftest.err
15781 rm -f conftest.er1
15782 cat conftest.err >&5
15783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784 (exit $ac_status); } &&
15785 { ac_try='test -z "$ac_c_werror_flag"
15786 || test ! -s conftest.err'
15787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15788 (eval $ac_try) 2>&5
15789 ac_status=$?
15790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791 (exit $ac_status); }; } &&
15792 { ac_try='test -s conftest.$ac_objext'
15793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15794 (eval $ac_try) 2>&5
15795 ac_status=$?
15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); }; }; then
15799 cat >>confdefs.h <<\_ACEOF
15800 #define HAVE_INET6 1
15801 _ACEOF
15803 echo "$as_me:$LINENO: result: yes" >&5
15804 echo "${ECHO_T}yes" >&6
15805 else
15806 echo "$as_me: failed program was:" >&5
15807 sed 's/^/| /' conftest.$ac_ext >&5
15809 echo "$as_me:$LINENO: result: no" >&5
15810 echo "${ECHO_T}no" >&6
15812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15814 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
15815 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
15816 cat >conftest.$ac_ext <<_ACEOF
15817 /* confdefs.h. */
15818 _ACEOF
15819 cat confdefs.h >>conftest.$ac_ext
15820 cat >>conftest.$ac_ext <<_ACEOF
15821 /* end confdefs.h. */
15822 #define _POSIX_PII_SOCKET
15823 #include <sys/types.h>
15824 #include <sys/socket.h>
15826 main ()
15828 socklen_t x = 5;
15830 return 0;
15832 _ACEOF
15833 rm -f conftest.$ac_objext
15834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15835 (eval $ac_compile) 2>conftest.er1
15836 ac_status=$?
15837 grep -v '^ *+' conftest.er1 >conftest.err
15838 rm -f conftest.er1
15839 cat conftest.err >&5
15840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841 (exit $ac_status); } &&
15842 { ac_try='test -z "$ac_c_werror_flag"
15843 || test ! -s conftest.err'
15844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15845 (eval $ac_try) 2>&5
15846 ac_status=$?
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); }; } &&
15849 { ac_try='test -s conftest.$ac_objext'
15850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15851 (eval $ac_try) 2>&5
15852 ac_status=$?
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); }; }; then
15856 cat >>confdefs.h <<\_ACEOF
15857 #define HAVE_SOCKLEN_T 1
15858 _ACEOF
15860 echo "$as_me:$LINENO: result: yes" >&5
15861 echo "${ECHO_T}yes" >&6
15862 else
15863 echo "$as_me: failed program was:" >&5
15864 sed 's/^/| /' conftest.$ac_ext >&5
15866 echo "$as_me:$LINENO: result: no" >&5
15867 echo "${ECHO_T}no" >&6
15869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15871 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
15872 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
15873 cat >conftest.$ac_ext <<_ACEOF
15874 /* confdefs.h. */
15875 _ACEOF
15876 cat confdefs.h >>conftest.$ac_ext
15877 cat >>conftest.$ac_ext <<_ACEOF
15878 /* end confdefs.h. */
15879 #include <time.h>
15881 main ()
15883 struct tm tim; tim.tm_gmtoff = 0;
15885 return 0;
15887 _ACEOF
15888 rm -f conftest.$ac_objext
15889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15890 (eval $ac_compile) 2>conftest.er1
15891 ac_status=$?
15892 grep -v '^ *+' conftest.er1 >conftest.err
15893 rm -f conftest.er1
15894 cat conftest.err >&5
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); } &&
15897 { ac_try='test -z "$ac_c_werror_flag"
15898 || test ! -s conftest.err'
15899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15900 (eval $ac_try) 2>&5
15901 ac_status=$?
15902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903 (exit $ac_status); }; } &&
15904 { ac_try='test -s conftest.$ac_objext'
15905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15906 (eval $ac_try) 2>&5
15907 ac_status=$?
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); }; }; then
15911 cat >>confdefs.h <<\_ACEOF
15912 #define STRUCT_TM_HAS_GMTOFF 1
15913 _ACEOF
15915 echo "$as_me:$LINENO: result: yes" >&5
15916 echo "${ECHO_T}yes" >&6
15917 else
15918 echo "$as_me: failed program was:" >&5
15919 sed 's/^/| /' conftest.$ac_ext >&5
15921 echo "$as_me:$LINENO: result: no" >&5
15922 echo "${ECHO_T}no" >&6
15923 echo "$as_me:$LINENO: checking for global timezone variable" >&5
15924 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
15925 cat >conftest.$ac_ext <<_ACEOF
15926 /* confdefs.h. */
15927 _ACEOF
15928 cat confdefs.h >>conftest.$ac_ext
15929 cat >>conftest.$ac_ext <<_ACEOF
15930 /* end confdefs.h. */
15931 #include <time.h>
15933 main ()
15935 void i(){long z2 = 2*timezone;}
15937 return 0;
15939 _ACEOF
15940 rm -f conftest.$ac_objext
15941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15942 (eval $ac_compile) 2>conftest.er1
15943 ac_status=$?
15944 grep -v '^ *+' conftest.er1 >conftest.err
15945 rm -f conftest.er1
15946 cat conftest.err >&5
15947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948 (exit $ac_status); } &&
15949 { ac_try='test -z "$ac_c_werror_flag"
15950 || test ! -s conftest.err'
15951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15952 (eval $ac_try) 2>&5
15953 ac_status=$?
15954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955 (exit $ac_status); }; } &&
15956 { ac_try='test -s conftest.$ac_objext'
15957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15958 (eval $ac_try) 2>&5
15959 ac_status=$?
15960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 (exit $ac_status); }; }; then
15963 cat >>confdefs.h <<\_ACEOF
15964 #define HAVE_TIMEZONE 1
15965 _ACEOF
15967 echo "$as_me:$LINENO: result: yes" >&5
15968 echo "${ECHO_T}yes" >&6
15969 else
15970 echo "$as_me: failed program was:" >&5
15971 sed 's/^/| /' conftest.$ac_ext >&5
15973 echo "$as_me:$LINENO: result: no" >&5
15974 echo "${ECHO_T}no" >&6
15975 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
15976 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
15977 cat >conftest.$ac_ext <<_ACEOF
15978 /* confdefs.h. */
15979 _ACEOF
15980 cat confdefs.h >>conftest.$ac_ext
15981 cat >>conftest.$ac_ext <<_ACEOF
15982 /* end confdefs.h. */
15983 #include <time.h>
15985 main ()
15987 long z2 = _timezone;
15989 return 0;
15991 _ACEOF
15992 rm -f conftest.$ac_objext
15993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15994 (eval $ac_compile) 2>conftest.er1
15995 ac_status=$?
15996 grep -v '^ *+' conftest.er1 >conftest.err
15997 rm -f conftest.er1
15998 cat conftest.err >&5
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); } &&
16001 { ac_try='test -z "$ac_c_werror_flag"
16002 || test ! -s conftest.err'
16003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16004 (eval $ac_try) 2>&5
16005 ac_status=$?
16006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); }; } &&
16008 { ac_try='test -s conftest.$ac_objext'
16009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16010 (eval $ac_try) 2>&5
16011 ac_status=$?
16012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013 (exit $ac_status); }; }; then
16015 cat >>confdefs.h <<\_ACEOF
16016 #define HAVE_UNDERSCORE_TIMEZONE 1
16017 _ACEOF
16019 echo "$as_me:$LINENO: result: yes" >&5
16020 echo "${ECHO_T}yes" >&6
16021 else
16022 echo "$as_me: failed program was:" >&5
16023 sed 's/^/| /' conftest.$ac_ext >&5
16025 echo "$as_me:$LINENO: result: no" >&5
16026 echo "${ECHO_T}no" >&6
16028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16034 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16035 # for constant arguments. Useless!
16036 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16037 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16038 if test "${ac_cv_working_alloca_h+set}" = set; then
16039 echo $ECHO_N "(cached) $ECHO_C" >&6
16040 else
16041 if test x$gcc_no_link = xyes; then
16042 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16043 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16044 { (exit 1); exit 1; }; }
16046 cat >conftest.$ac_ext <<_ACEOF
16047 /* confdefs.h. */
16048 _ACEOF
16049 cat confdefs.h >>conftest.$ac_ext
16050 cat >>conftest.$ac_ext <<_ACEOF
16051 /* end confdefs.h. */
16052 #include <alloca.h>
16054 main ()
16056 char *p = (char *) alloca (2 * sizeof (int));
16058 return 0;
16060 _ACEOF
16061 rm -f conftest.$ac_objext conftest$ac_exeext
16062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16063 (eval $ac_link) 2>conftest.er1
16064 ac_status=$?
16065 grep -v '^ *+' conftest.er1 >conftest.err
16066 rm -f conftest.er1
16067 cat conftest.err >&5
16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); } &&
16070 { ac_try='test -z "$ac_c_werror_flag"
16071 || test ! -s conftest.err'
16072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16073 (eval $ac_try) 2>&5
16074 ac_status=$?
16075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076 (exit $ac_status); }; } &&
16077 { ac_try='test -s conftest$ac_exeext'
16078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16079 (eval $ac_try) 2>&5
16080 ac_status=$?
16081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082 (exit $ac_status); }; }; then
16083 ac_cv_working_alloca_h=yes
16084 else
16085 echo "$as_me: failed program was:" >&5
16086 sed 's/^/| /' conftest.$ac_ext >&5
16088 ac_cv_working_alloca_h=no
16090 rm -f conftest.err conftest.$ac_objext \
16091 conftest$ac_exeext conftest.$ac_ext
16093 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16094 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16095 if test $ac_cv_working_alloca_h = yes; then
16097 cat >>confdefs.h <<\_ACEOF
16098 #define HAVE_ALLOCA_H 1
16099 _ACEOF
16103 echo "$as_me:$LINENO: checking for alloca" >&5
16104 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16105 if test "${ac_cv_func_alloca_works+set}" = set; then
16106 echo $ECHO_N "(cached) $ECHO_C" >&6
16107 else
16108 if test x$gcc_no_link = xyes; then
16109 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16110 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16111 { (exit 1); exit 1; }; }
16113 cat >conftest.$ac_ext <<_ACEOF
16114 /* confdefs.h. */
16115 _ACEOF
16116 cat confdefs.h >>conftest.$ac_ext
16117 cat >>conftest.$ac_ext <<_ACEOF
16118 /* end confdefs.h. */
16119 #ifdef __GNUC__
16120 # define alloca __builtin_alloca
16121 #else
16122 # ifdef _MSC_VER
16123 # include <malloc.h>
16124 # define alloca _alloca
16125 # else
16126 # if HAVE_ALLOCA_H
16127 # include <alloca.h>
16128 # else
16129 # ifdef _AIX
16130 #pragma alloca
16131 # else
16132 # ifndef alloca /* predefined by HP cc +Olibcalls */
16133 char *alloca ();
16134 # endif
16135 # endif
16136 # endif
16137 # endif
16138 #endif
16141 main ()
16143 char *p = (char *) alloca (1);
16145 return 0;
16147 _ACEOF
16148 rm -f conftest.$ac_objext conftest$ac_exeext
16149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16150 (eval $ac_link) 2>conftest.er1
16151 ac_status=$?
16152 grep -v '^ *+' conftest.er1 >conftest.err
16153 rm -f conftest.er1
16154 cat conftest.err >&5
16155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156 (exit $ac_status); } &&
16157 { ac_try='test -z "$ac_c_werror_flag"
16158 || test ! -s conftest.err'
16159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16160 (eval $ac_try) 2>&5
16161 ac_status=$?
16162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163 (exit $ac_status); }; } &&
16164 { ac_try='test -s conftest$ac_exeext'
16165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16166 (eval $ac_try) 2>&5
16167 ac_status=$?
16168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169 (exit $ac_status); }; }; then
16170 ac_cv_func_alloca_works=yes
16171 else
16172 echo "$as_me: failed program was:" >&5
16173 sed 's/^/| /' conftest.$ac_ext >&5
16175 ac_cv_func_alloca_works=no
16177 rm -f conftest.err conftest.$ac_objext \
16178 conftest$ac_exeext conftest.$ac_ext
16180 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16181 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16183 if test $ac_cv_func_alloca_works = yes; then
16185 cat >>confdefs.h <<\_ACEOF
16186 #define HAVE_ALLOCA 1
16187 _ACEOF
16189 else
16190 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16191 # that cause trouble. Some versions do not even contain alloca or
16192 # contain a buggy version. If you still want to use their alloca,
16193 # use ar to extract alloca.o from them instead of compiling alloca.c.
16195 ALLOCA=alloca.$ac_objext
16197 cat >>confdefs.h <<\_ACEOF
16198 #define C_ALLOCA 1
16199 _ACEOF
16202 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16203 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16204 if test "${ac_cv_os_cray+set}" = set; then
16205 echo $ECHO_N "(cached) $ECHO_C" >&6
16206 else
16207 cat >conftest.$ac_ext <<_ACEOF
16208 /* confdefs.h. */
16209 _ACEOF
16210 cat confdefs.h >>conftest.$ac_ext
16211 cat >>conftest.$ac_ext <<_ACEOF
16212 /* end confdefs.h. */
16213 #if defined(CRAY) && ! defined(CRAY2)
16214 webecray
16215 #else
16216 wenotbecray
16217 #endif
16219 _ACEOF
16220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16221 $EGREP "webecray" >/dev/null 2>&1; then
16222 ac_cv_os_cray=yes
16223 else
16224 ac_cv_os_cray=no
16226 rm -f conftest*
16229 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16230 echo "${ECHO_T}$ac_cv_os_cray" >&6
16231 if test $ac_cv_os_cray = yes; then
16232 for ac_func in _getb67 GETB67 getb67; do
16233 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16234 echo "$as_me:$LINENO: checking for $ac_func" >&5
16235 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16236 if eval "test \"\${$as_ac_var+set}\" = set"; then
16237 echo $ECHO_N "(cached) $ECHO_C" >&6
16238 else
16239 if test x$gcc_no_link = xyes; then
16240 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16241 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16242 { (exit 1); exit 1; }; }
16244 cat >conftest.$ac_ext <<_ACEOF
16245 /* confdefs.h. */
16246 _ACEOF
16247 cat confdefs.h >>conftest.$ac_ext
16248 cat >>conftest.$ac_ext <<_ACEOF
16249 /* end confdefs.h. */
16250 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16252 #define $ac_func innocuous_$ac_func
16254 /* System header to define __stub macros and hopefully few prototypes,
16255 which can conflict with char $ac_func (); below.
16256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16257 <limits.h> exists even on freestanding compilers. */
16259 #ifdef __STDC__
16260 # include <limits.h>
16261 #else
16262 # include <assert.h>
16263 #endif
16265 #undef $ac_func
16267 /* Override any gcc2 internal prototype to avoid an error. */
16268 #ifdef __cplusplus
16269 extern "C"
16271 #endif
16272 /* We use char because int might match the return type of a gcc2
16273 builtin and then its argument prototype would still apply. */
16274 char $ac_func ();
16275 /* The GNU C library defines this for functions which it implements
16276 to always fail with ENOSYS. Some functions are actually named
16277 something starting with __ and the normal name is an alias. */
16278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16279 choke me
16280 #else
16281 char (*f) () = $ac_func;
16282 #endif
16283 #ifdef __cplusplus
16285 #endif
16288 main ()
16290 return f != $ac_func;
16292 return 0;
16294 _ACEOF
16295 rm -f conftest.$ac_objext conftest$ac_exeext
16296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16297 (eval $ac_link) 2>conftest.er1
16298 ac_status=$?
16299 grep -v '^ *+' conftest.er1 >conftest.err
16300 rm -f conftest.er1
16301 cat conftest.err >&5
16302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303 (exit $ac_status); } &&
16304 { ac_try='test -z "$ac_c_werror_flag"
16305 || test ! -s conftest.err'
16306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16307 (eval $ac_try) 2>&5
16308 ac_status=$?
16309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16310 (exit $ac_status); }; } &&
16311 { ac_try='test -s conftest$ac_exeext'
16312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16313 (eval $ac_try) 2>&5
16314 ac_status=$?
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); }; }; then
16317 eval "$as_ac_var=yes"
16318 else
16319 echo "$as_me: failed program was:" >&5
16320 sed 's/^/| /' conftest.$ac_ext >&5
16322 eval "$as_ac_var=no"
16324 rm -f conftest.err conftest.$ac_objext \
16325 conftest$ac_exeext conftest.$ac_ext
16327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16328 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16329 if test `eval echo '${'$as_ac_var'}'` = yes; then
16331 cat >>confdefs.h <<_ACEOF
16332 #define CRAY_STACKSEG_END $ac_func
16333 _ACEOF
16335 break
16338 done
16341 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16342 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16343 if test "${ac_cv_c_stack_direction+set}" = set; then
16344 echo $ECHO_N "(cached) $ECHO_C" >&6
16345 else
16346 if test "$cross_compiling" = yes; then
16347 ac_cv_c_stack_direction=0
16348 else
16349 cat >conftest.$ac_ext <<_ACEOF
16350 /* confdefs.h. */
16351 _ACEOF
16352 cat confdefs.h >>conftest.$ac_ext
16353 cat >>conftest.$ac_ext <<_ACEOF
16354 /* end confdefs.h. */
16356 find_stack_direction ()
16358 static char *addr = 0;
16359 auto char dummy;
16360 if (addr == 0)
16362 addr = &dummy;
16363 return find_stack_direction ();
16365 else
16366 return (&dummy > addr) ? 1 : -1;
16370 main ()
16372 exit (find_stack_direction () < 0);
16374 _ACEOF
16375 rm -f conftest$ac_exeext
16376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16377 (eval $ac_link) 2>&5
16378 ac_status=$?
16379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16382 (eval $ac_try) 2>&5
16383 ac_status=$?
16384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385 (exit $ac_status); }; }; then
16386 ac_cv_c_stack_direction=1
16387 else
16388 echo "$as_me: program exited with status $ac_status" >&5
16389 echo "$as_me: failed program was:" >&5
16390 sed 's/^/| /' conftest.$ac_ext >&5
16392 ( exit $ac_status )
16393 ac_cv_c_stack_direction=-1
16395 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16398 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16399 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16401 cat >>confdefs.h <<_ACEOF
16402 #define STACK_DIRECTION $ac_cv_c_stack_direction
16403 _ACEOF
16409 for ac_prog in perl
16411 # Extract the first word of "$ac_prog", so it can be a program name with args.
16412 set dummy $ac_prog; ac_word=$2
16413 echo "$as_me:$LINENO: checking for $ac_word" >&5
16414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16415 if test "${ac_cv_prog_PERL+set}" = set; then
16416 echo $ECHO_N "(cached) $ECHO_C" >&6
16417 else
16418 if test -n "$PERL"; then
16419 ac_cv_prog_PERL="$PERL" # Let the user override the test.
16420 else
16421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16422 for as_dir in $PATH
16424 IFS=$as_save_IFS
16425 test -z "$as_dir" && as_dir=.
16426 for ac_exec_ext in '' $ac_executable_extensions; do
16427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16428 ac_cv_prog_PERL="$ac_prog"
16429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16430 break 2
16432 done
16433 done
16437 PERL=$ac_cv_prog_PERL
16438 if test -n "$PERL"; then
16439 echo "$as_me:$LINENO: result: $PERL" >&5
16440 echo "${ECHO_T}$PERL" >&6
16441 else
16442 echo "$as_me:$LINENO: result: no" >&5
16443 echo "${ECHO_T}no" >&6
16446 test -n "$PERL" && break
16447 done
16448 test -n "$PERL" || PERL="false"
16451 SYSDEP_SOURCES=
16452 SIGNAL_HANDLER_AUX=
16454 case "${host}" in
16455 i?86-*-linux*)
16456 SIGNAL_HANDLER=include/i386-signal.h
16458 sparc*-sun-solaris*)
16459 SIGNAL_HANDLER=include/sparc-signal.h
16461 # ia64-*)
16462 # SYSDEP_SOURCES=sysdep/ia64.c
16463 # test -d sysdep || mkdir sysdep
16464 # ;;
16465 hppa*-*-linux*)
16466 SIGNAL_HANDLER=include/pa-signal.h
16468 hppa*-hp-hpux*)
16469 SIGNAL_HANDLER=include/hppa-signal.h
16471 ia64-*-linux*)
16472 SIGNAL_HANDLER=include/dwarf2-signal.h
16474 powerpc*-*-linux*)
16475 SIGNAL_HANDLER=include/powerpc-signal.h
16477 alpha*-*-linux*)
16478 SIGNAL_HANDLER=include/dwarf2-signal.h
16480 s390*-*-linux*)
16481 SIGNAL_HANDLER=include/s390-signal.h
16483 x86_64*-*-linux*)
16484 SIGNAL_HANDLER=include/x86_64-signal.h
16485 SIGNAL_HANDLER_AUX=include/i386-signal.h
16487 sparc*-*-linux*)
16488 SIGNAL_HANDLER=include/dwarf2-signal.h
16490 sh*-*-linux*)
16491 SIGNAL_HANDLER=include/sh-signal.h
16493 *mingw*)
16494 SIGNAL_HANDLER=include/win32-signal.h
16496 mips*-*-linux*)
16497 SIGNAL_HANDLER=include/mips-signal.h
16499 powerpc*-*-darwin*)
16500 SIGNAL_HANDLER=include/darwin-signal.h
16503 SIGNAL_HANDLER=include/default-signal.h
16505 esac
16507 # If we're using sjlj exceptions, forget what we just learned.
16508 if test "$enable_sjlj_exceptions" = yes; then
16509 SIGNAL_HANDLER=include/default-signal.h
16510 SIGNAL_HANDLER_AUX=
16515 if test -z "$SIGNAL_HANDLER_AUX"; then
16516 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
16519 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
16522 if test "${multilib}" = "yes"; then
16523 multilib_arg="--enable-multilib"
16524 else
16525 multilib_arg=
16528 # See if we support thread-local storage.
16530 # Check whether --enable-tls or --disable-tls was given.
16531 if test "${enable_tls+set}" = set; then
16532 enableval="$enable_tls"
16534 case "$enableval" in
16535 yes|no) ;;
16536 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
16537 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
16538 { (exit 1); exit 1; }; } ;;
16539 esac
16541 else
16542 enable_tls=yes
16545 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
16546 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
16547 if test "${have_tls+set}" = set; then
16548 echo $ECHO_N "(cached) $ECHO_C" >&6
16549 else
16551 if test "$cross_compiling" = yes; then
16552 if test x$gcc_no_link = xyes; then
16553 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16554 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16555 { (exit 1); exit 1; }; }
16557 cat >conftest.$ac_ext <<_ACEOF
16558 __thread int a; int b; int main() { return a = b; }
16559 _ACEOF
16560 rm -f conftest.$ac_objext conftest$ac_exeext
16561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16562 (eval $ac_link) 2>conftest.er1
16563 ac_status=$?
16564 grep -v '^ *+' conftest.er1 >conftest.err
16565 rm -f conftest.er1
16566 cat conftest.err >&5
16567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568 (exit $ac_status); } &&
16569 { ac_try='test -z "$ac_c_werror_flag"
16570 || test ! -s conftest.err'
16571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16572 (eval $ac_try) 2>&5
16573 ac_status=$?
16574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575 (exit $ac_status); }; } &&
16576 { ac_try='test -s conftest$ac_exeext'
16577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16578 (eval $ac_try) 2>&5
16579 ac_status=$?
16580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581 (exit $ac_status); }; }; then
16582 have_tls=yes
16583 else
16584 echo "$as_me: failed program was:" >&5
16585 sed 's/^/| /' conftest.$ac_ext >&5
16587 have_tls=no
16589 rm -f conftest.err conftest.$ac_objext \
16590 conftest$ac_exeext conftest.$ac_ext
16592 else
16593 cat >conftest.$ac_ext <<_ACEOF
16594 __thread int a; int b; int main() { return a = b; }
16595 _ACEOF
16596 rm -f conftest$ac_exeext
16597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16598 (eval $ac_link) 2>&5
16599 ac_status=$?
16600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16601 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16603 (eval $ac_try) 2>&5
16604 ac_status=$?
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); }; }; then
16607 save_LDFLAGS="$LDFLAGS"
16608 LDFLAGS="-static $LDFLAGS"
16609 if test x$gcc_no_link = xyes; then
16610 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16611 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16612 { (exit 1); exit 1; }; }
16614 cat >conftest.$ac_ext <<_ACEOF
16615 int main() { return 0; }
16616 _ACEOF
16617 rm -f conftest.$ac_objext conftest$ac_exeext
16618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16619 (eval $ac_link) 2>conftest.er1
16620 ac_status=$?
16621 grep -v '^ *+' conftest.er1 >conftest.err
16622 rm -f conftest.er1
16623 cat conftest.err >&5
16624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); } &&
16626 { ac_try='test -z "$ac_c_werror_flag"
16627 || test ! -s conftest.err'
16628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16629 (eval $ac_try) 2>&5
16630 ac_status=$?
16631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632 (exit $ac_status); }; } &&
16633 { ac_try='test -s conftest$ac_exeext'
16634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16635 (eval $ac_try) 2>&5
16636 ac_status=$?
16637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638 (exit $ac_status); }; }; then
16639 if test "$cross_compiling" = yes; then
16640 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16641 See \`config.log' for more details." >&5
16642 echo "$as_me: error: cannot run test program while cross compiling
16643 See \`config.log' for more details." >&2;}
16644 { (exit 1); exit 1; }; }
16645 else
16646 cat >conftest.$ac_ext <<_ACEOF
16647 __thread int a; int b; int main() { return a = b; }
16648 _ACEOF
16649 rm -f conftest$ac_exeext
16650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16651 (eval $ac_link) 2>&5
16652 ac_status=$?
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16656 (eval $ac_try) 2>&5
16657 ac_status=$?
16658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659 (exit $ac_status); }; }; then
16660 have_tls=yes
16661 else
16662 echo "$as_me: program exited with status $ac_status" >&5
16663 echo "$as_me: failed program was:" >&5
16664 sed 's/^/| /' conftest.$ac_ext >&5
16666 ( exit $ac_status )
16667 have_tls=no
16669 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16671 else
16672 echo "$as_me: failed program was:" >&5
16673 sed 's/^/| /' conftest.$ac_ext >&5
16675 have_tls=yes
16677 rm -f conftest.err conftest.$ac_objext \
16678 conftest$ac_exeext conftest.$ac_ext
16679 LDFLAGS="$save_LDFLAGS"
16680 else
16681 echo "$as_me: program exited with status $ac_status" >&5
16682 echo "$as_me: failed program was:" >&5
16683 sed 's/^/| /' conftest.$ac_ext >&5
16685 ( exit $ac_status )
16686 have_tls=no
16688 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16691 echo "$as_me:$LINENO: result: $have_tls" >&5
16692 echo "${ECHO_T}$have_tls" >&6
16693 if test "$enable_tls $have_tls" = "yes yes"; then
16695 cat >>confdefs.h <<\_ACEOF
16696 #define HAVE_TLS 1
16697 _ACEOF
16701 # For _Unwind_GetIPInfo.
16705 ac_ext=cc
16706 ac_cpp='$CXXCPP $CPPFLAGS'
16707 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16708 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16709 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16711 ac_save_CXXFLAGS="$CXXFLAGS"
16712 CXXFLAGS="$CXXFLAGS -fno-exceptions"
16713 echo "$as_me:$LINENO: checking for _Unwind_GetIPInfo" >&5
16714 echo $ECHO_N "checking for _Unwind_GetIPInfo... $ECHO_C" >&6
16715 if test "${gcc_cv_getipinfo+set}" = set; then
16716 echo $ECHO_N "(cached) $ECHO_C" >&6
16717 else
16719 if test x$gcc_no_link = xyes; then
16720 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16721 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16722 { (exit 1); exit 1; }; }
16724 cat >conftest.$ac_ext <<_ACEOF
16725 /* confdefs.h. */
16726 _ACEOF
16727 cat confdefs.h >>conftest.$ac_ext
16728 cat >>conftest.$ac_ext <<_ACEOF
16729 /* end confdefs.h. */
16730 extern "C" { extern void _Unwind_GetIPInfo(); }
16732 main ()
16734 _Unwind_GetIPInfo();
16736 return 0;
16738 _ACEOF
16739 rm -f conftest.$ac_objext conftest$ac_exeext
16740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16741 (eval $ac_link) 2>conftest.er1
16742 ac_status=$?
16743 grep -v '^ *+' conftest.er1 >conftest.err
16744 rm -f conftest.er1
16745 cat conftest.err >&5
16746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747 (exit $ac_status); } &&
16748 { ac_try='test -z "$ac_cxx_werror_flag"
16749 || test ! -s conftest.err'
16750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16751 (eval $ac_try) 2>&5
16752 ac_status=$?
16753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754 (exit $ac_status); }; } &&
16755 { ac_try='test -s conftest$ac_exeext'
16756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16757 (eval $ac_try) 2>&5
16758 ac_status=$?
16759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760 (exit $ac_status); }; }; then
16761 gcc_cv_getipinfo=yes
16762 else
16763 echo "$as_me: failed program was:" >&5
16764 sed 's/^/| /' conftest.$ac_ext >&5
16766 gcc_cv_getipinfo=no
16768 rm -f conftest.err conftest.$ac_objext \
16769 conftest$ac_exeext conftest.$ac_ext
16773 if test $gcc_cv_getipinfo = yes; then
16775 cat >>confdefs.h <<\_ACEOF
16776 #define HAVE_GETIPINFO 1
16777 _ACEOF
16780 echo "$as_me:$LINENO: result: $gcc_cv_getipinfo" >&5
16781 echo "${ECHO_T}$gcc_cv_getipinfo" >&6
16782 CXXFLAGS="$ac_save_CXXFLAGS"
16783 ac_ext=c
16784 ac_cpp='$CPP $CPPFLAGS'
16785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16791 # Check if linker supports static linking on a per library basis
16792 LD_START_STATIC_SPEC=
16793 LD_FINISH_STATIC_SPEC=
16794 if $LD --help 2>&1 | grep -q -e -call_shared ; then
16795 if $LD --help 2>&1 | grep -q -e -non_shared ; then
16796 LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
16797 LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
16803 here=`${PWDCMD-pwd}`
16806 # We get this from the environment.
16809 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"
16812 ac_config_files="$ac_config_files scripts/jar"
16815 ac_config_commands="$ac_config_commands default"
16818 cat >confcache <<\_ACEOF
16819 # This file is a shell script that caches the results of configure
16820 # tests run on this system so they can be shared between configure
16821 # scripts and configure runs, see configure's option --config-cache.
16822 # It is not useful on other systems. If it contains results you don't
16823 # want to keep, you may remove or edit it.
16825 # config.status only pays attention to the cache file if you give it
16826 # the --recheck option to rerun configure.
16828 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16829 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16830 # following values.
16832 _ACEOF
16834 # The following way of writing the cache mishandles newlines in values,
16835 # but we know of no workaround that is simple, portable, and efficient.
16836 # So, don't put newlines in cache variables' values.
16837 # Ultrix sh set writes to stderr and can't be redirected directly,
16838 # and sets the high bit in the cache file unless we assign to the vars.
16840 (set) 2>&1 |
16841 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16842 *ac_space=\ *)
16843 # `set' does not quote correctly, so add quotes (double-quote
16844 # substitution turns \\\\ into \\, and sed turns \\ into \).
16845 sed -n \
16846 "s/'/'\\\\''/g;
16847 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16850 # `set' quotes correctly as required by POSIX, so do not add quotes.
16851 sed -n \
16852 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16854 esac;
16856 sed '
16857 t clear
16858 : clear
16859 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16860 t end
16861 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16862 : end' >>confcache
16863 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16864 if test -w $cache_file; then
16865 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16866 cat confcache >$cache_file
16867 else
16868 echo "not updating unwritable cache $cache_file"
16871 rm -f confcache
16873 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16874 # Let make expand exec_prefix.
16875 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16877 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16878 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16879 # trailing colons and then remove the whole line if VPATH becomes empty
16880 # (actually we leave an empty line to preserve line numbers).
16881 if test "x$srcdir" = x.; then
16882 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16883 s/:*\$(srcdir):*/:/;
16884 s/:*\${srcdir}:*/:/;
16885 s/:*@srcdir@:*/:/;
16886 s/^\([^=]*=[ ]*\):*/\1/;
16887 s/:*$//;
16888 s/^[^=]*=[ ]*$//;
16892 DEFS=-DHAVE_CONFIG_H
16894 ac_libobjs=
16895 ac_ltlibobjs=
16896 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16897 # 1. Remove the extension, and $U if already installed.
16898 ac_i=`echo "$ac_i" |
16899 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16900 # 2. Add them.
16901 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16902 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16903 done
16904 LIBOBJS=$ac_libobjs
16906 LTLIBOBJS=$ac_ltlibobjs
16909 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16910 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16911 Usually this means the macro was only invoked conditionally." >&5
16912 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16913 Usually this means the macro was only invoked conditionally." >&2;}
16914 { (exit 1); exit 1; }; }
16916 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16917 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16918 Usually this means the macro was only invoked conditionally." >&5
16919 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16920 Usually this means the macro was only invoked conditionally." >&2;}
16921 { (exit 1); exit 1; }; }
16923 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16924 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16925 Usually this means the macro was only invoked conditionally." >&5
16926 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16927 Usually this means the macro was only invoked conditionally." >&2;}
16928 { (exit 1); exit 1; }; }
16930 if test -z "${BASH_JAR_TRUE}" && test -z "${BASH_JAR_FALSE}"; then
16931 { { echo "$as_me:$LINENO: error: conditional \"BASH_JAR\" was never defined.
16932 Usually this means the macro was only invoked conditionally." >&5
16933 echo "$as_me: error: conditional \"BASH_JAR\" was never defined.
16934 Usually this means the macro was only invoked conditionally." >&2;}
16935 { (exit 1); exit 1; }; }
16937 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16938 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16939 Usually this means the macro was only invoked conditionally." >&5
16940 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16941 Usually this means the macro was only invoked conditionally." >&2;}
16942 { (exit 1); exit 1; }; }
16944 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
16945 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
16946 Usually this means the macro was only invoked conditionally." >&5
16947 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
16948 Usually this means the macro was only invoked conditionally." >&2;}
16949 { (exit 1); exit 1; }; }
16951 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
16952 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
16953 Usually this means the macro was only invoked conditionally." >&5
16954 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
16955 Usually this means the macro was only invoked conditionally." >&2;}
16956 { (exit 1); exit 1; }; }
16958 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
16959 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
16960 Usually this means the macro was only invoked conditionally." >&5
16961 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
16962 Usually this means the macro was only invoked conditionally." >&2;}
16963 { (exit 1); exit 1; }; }
16965 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
16966 { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
16967 Usually this means the macro was only invoked conditionally." >&5
16968 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
16969 Usually this means the macro was only invoked conditionally." >&2;}
16970 { (exit 1); exit 1; }; }
16972 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
16973 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16974 Usually this means the macro was only invoked conditionally." >&5
16975 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16976 Usually this means the macro was only invoked conditionally." >&2;}
16977 { (exit 1); exit 1; }; }
16979 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
16980 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16981 Usually this means the macro was only invoked conditionally." >&5
16982 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16983 Usually this means the macro was only invoked conditionally." >&2;}
16984 { (exit 1); exit 1; }; }
16986 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
16987 { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
16988 Usually this means the macro was only invoked conditionally." >&5
16989 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
16990 Usually this means the macro was only invoked conditionally." >&2;}
16991 { (exit 1); exit 1; }; }
16993 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
16994 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
16995 Usually this means the macro was only invoked conditionally." >&5
16996 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
16997 Usually this means the macro was only invoked conditionally." >&2;}
16998 { (exit 1); exit 1; }; }
17000 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
17001 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
17002 Usually this means the macro was only invoked conditionally." >&5
17003 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
17004 Usually this means the macro was only invoked conditionally." >&2;}
17005 { (exit 1); exit 1; }; }
17007 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
17008 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
17009 Usually this means the macro was only invoked conditionally." >&5
17010 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
17011 Usually this means the macro was only invoked conditionally." >&2;}
17012 { (exit 1); exit 1; }; }
17014 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
17015 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
17016 Usually this means the macro was only invoked conditionally." >&5
17017 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
17018 Usually this means the macro was only invoked conditionally." >&2;}
17019 { (exit 1); exit 1; }; }
17021 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
17022 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
17023 Usually this means the macro was only invoked conditionally." >&5
17024 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
17025 Usually this means the macro was only invoked conditionally." >&2;}
17026 { (exit 1); exit 1; }; }
17028 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
17029 { { echo "$as_me:$LINENO: error: conditional \"USE_LIBGCJ_BC\" was never defined.
17030 Usually this means the macro was only invoked conditionally." >&5
17031 echo "$as_me: error: conditional \"USE_LIBGCJ_BC\" was never defined.
17032 Usually this means the macro was only invoked conditionally." >&2;}
17033 { (exit 1); exit 1; }; }
17035 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
17036 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
17037 Usually this means the macro was only invoked conditionally." >&5
17038 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
17039 Usually this means the macro was only invoked conditionally." >&2;}
17040 { (exit 1); exit 1; }; }
17042 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
17043 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
17044 Usually this means the macro was only invoked conditionally." >&5
17045 echo "$as_me: error: conditional \"NATIVE\" was never defined.
17046 Usually this means the macro was only invoked conditionally." >&2;}
17047 { (exit 1); exit 1; }; }
17049 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
17050 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
17051 Usually this means the macro was only invoked conditionally." >&5
17052 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
17053 Usually this means the macro was only invoked conditionally." >&2;}
17054 { (exit 1); exit 1; }; }
17057 : ${CONFIG_STATUS=./config.status}
17058 ac_clean_files_save=$ac_clean_files
17059 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17060 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17061 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17062 cat >$CONFIG_STATUS <<_ACEOF
17063 #! $SHELL
17064 # Generated by $as_me.
17065 # Run this file to recreate the current configuration.
17066 # Compiler output produced by configure, useful for debugging
17067 # configure, is in config.log if it exists.
17069 debug=false
17070 ac_cs_recheck=false
17071 ac_cs_silent=false
17072 SHELL=\${CONFIG_SHELL-$SHELL}
17073 _ACEOF
17075 cat >>$CONFIG_STATUS <<\_ACEOF
17076 ## --------------------- ##
17077 ## M4sh Initialization. ##
17078 ## --------------------- ##
17080 # Be Bourne compatible
17081 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17082 emulate sh
17083 NULLCMD=:
17084 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17085 # is contrary to our usage. Disable this feature.
17086 alias -g '${1+"$@"}'='"$@"'
17087 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17088 set -o posix
17090 DUALCASE=1; export DUALCASE # for MKS sh
17092 # Support unset when possible.
17093 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17094 as_unset=unset
17095 else
17096 as_unset=false
17100 # Work around bugs in pre-3.0 UWIN ksh.
17101 $as_unset ENV MAIL MAILPATH
17102 PS1='$ '
17103 PS2='> '
17104 PS4='+ '
17106 # NLS nuisances.
17107 for as_var in \
17108 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17109 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17110 LC_TELEPHONE LC_TIME
17112 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17113 eval $as_var=C; export $as_var
17114 else
17115 $as_unset $as_var
17117 done
17119 # Required to use basename.
17120 if expr a : '\(a\)' >/dev/null 2>&1; then
17121 as_expr=expr
17122 else
17123 as_expr=false
17126 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17127 as_basename=basename
17128 else
17129 as_basename=false
17133 # Name of the executable.
17134 as_me=`$as_basename "$0" ||
17135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17136 X"$0" : 'X\(//\)$' \| \
17137 X"$0" : 'X\(/\)$' \| \
17138 . : '\(.\)' 2>/dev/null ||
17139 echo X/"$0" |
17140 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17141 /^X\/\(\/\/\)$/{ s//\1/; q; }
17142 /^X\/\(\/\).*/{ s//\1/; q; }
17143 s/.*/./; q'`
17146 # PATH needs CR, and LINENO needs CR and PATH.
17147 # Avoid depending upon Character Ranges.
17148 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17149 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17150 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17151 as_cr_digits='0123456789'
17152 as_cr_alnum=$as_cr_Letters$as_cr_digits
17154 # The user is always right.
17155 if test "${PATH_SEPARATOR+set}" != set; then
17156 echo "#! /bin/sh" >conf$$.sh
17157 echo "exit 0" >>conf$$.sh
17158 chmod +x conf$$.sh
17159 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17160 PATH_SEPARATOR=';'
17161 else
17162 PATH_SEPARATOR=:
17164 rm -f conf$$.sh
17168 as_lineno_1=$LINENO
17169 as_lineno_2=$LINENO
17170 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17171 test "x$as_lineno_1" != "x$as_lineno_2" &&
17172 test "x$as_lineno_3" = "x$as_lineno_2" || {
17173 # Find who we are. Look in the path if we contain no path at all
17174 # relative or not.
17175 case $0 in
17176 *[\\/]* ) as_myself=$0 ;;
17177 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17178 for as_dir in $PATH
17180 IFS=$as_save_IFS
17181 test -z "$as_dir" && as_dir=.
17182 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17183 done
17186 esac
17187 # We did not find ourselves, most probably we were run as `sh COMMAND'
17188 # in which case we are not to be found in the path.
17189 if test "x$as_myself" = x; then
17190 as_myself=$0
17192 if test ! -f "$as_myself"; then
17193 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17194 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17195 { (exit 1); exit 1; }; }
17197 case $CONFIG_SHELL in
17199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17200 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17202 IFS=$as_save_IFS
17203 test -z "$as_dir" && as_dir=.
17204 for as_base in sh bash ksh sh5; do
17205 case $as_dir in
17207 if ("$as_dir/$as_base" -c '
17208 as_lineno_1=$LINENO
17209 as_lineno_2=$LINENO
17210 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17211 test "x$as_lineno_1" != "x$as_lineno_2" &&
17212 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17213 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17214 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17215 CONFIG_SHELL=$as_dir/$as_base
17216 export CONFIG_SHELL
17217 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17218 fi;;
17219 esac
17220 done
17221 done
17223 esac
17225 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17226 # uniformly replaced by the line number. The first 'sed' inserts a
17227 # line-number line before each line; the second 'sed' does the real
17228 # work. The second script uses 'N' to pair each line-number line
17229 # with the numbered line, and appends trailing '-' during
17230 # substitution so that $LINENO is not a special case at line end.
17231 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17232 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17233 sed '=' <$as_myself |
17234 sed '
17236 s,$,-,
17237 : loop
17238 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17239 t loop
17240 s,-$,,
17241 s,^['$as_cr_digits']*\n,,
17242 ' >$as_me.lineno &&
17243 chmod +x $as_me.lineno ||
17244 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17245 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17246 { (exit 1); exit 1; }; }
17248 # Don't try to exec as it changes $[0], causing all sort of problems
17249 # (the dirname of $[0] is not the place where we might find the
17250 # original and so on. Autoconf is especially sensible to this).
17251 . ./$as_me.lineno
17252 # Exit status is that of the last command.
17253 exit
17257 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17258 *c*,-n*) ECHO_N= ECHO_C='
17259 ' ECHO_T=' ' ;;
17260 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17261 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17262 esac
17264 if expr a : '\(a\)' >/dev/null 2>&1; then
17265 as_expr=expr
17266 else
17267 as_expr=false
17270 rm -f conf$$ conf$$.exe conf$$.file
17271 echo >conf$$.file
17272 if ln -s conf$$.file conf$$ 2>/dev/null; then
17273 # We could just check for DJGPP; but this test a) works b) is more generic
17274 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17275 if test -f conf$$.exe; then
17276 # Don't use ln at all; we don't have any links
17277 as_ln_s='cp -p'
17278 else
17279 as_ln_s='ln -s'
17281 elif ln conf$$.file conf$$ 2>/dev/null; then
17282 as_ln_s=ln
17283 else
17284 as_ln_s='cp -p'
17286 rm -f conf$$ conf$$.exe conf$$.file
17288 if mkdir -p . 2>/dev/null; then
17289 as_mkdir_p=:
17290 else
17291 test -d ./-p && rmdir ./-p
17292 as_mkdir_p=false
17295 as_executable_p="test -f"
17297 # Sed expression to map a string onto a valid CPP name.
17298 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17300 # Sed expression to map a string onto a valid variable name.
17301 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17304 # IFS
17305 # We need space, tab and new line, in precisely that order.
17306 as_nl='
17308 IFS=" $as_nl"
17310 # CDPATH.
17311 $as_unset CDPATH
17313 exec 6>&1
17315 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17316 # report actual input values of CONFIG_FILES etc. instead of their
17317 # values after options handling. Logging --version etc. is OK.
17318 exec 5>>config.log
17320 echo
17321 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17322 ## Running $as_me. ##
17323 _ASBOX
17324 } >&5
17325 cat >&5 <<_CSEOF
17327 This file was extended by libjava $as_me version-unused, which was
17328 generated by GNU Autoconf 2.59. Invocation command line was
17330 CONFIG_FILES = $CONFIG_FILES
17331 CONFIG_HEADERS = $CONFIG_HEADERS
17332 CONFIG_LINKS = $CONFIG_LINKS
17333 CONFIG_COMMANDS = $CONFIG_COMMANDS
17334 $ $0 $@
17336 _CSEOF
17337 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17338 echo >&5
17339 _ACEOF
17341 # Files that config.status was made for.
17342 if test -n "$ac_config_files"; then
17343 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17346 if test -n "$ac_config_headers"; then
17347 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17350 if test -n "$ac_config_links"; then
17351 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17354 if test -n "$ac_config_commands"; then
17355 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17358 cat >>$CONFIG_STATUS <<\_ACEOF
17360 ac_cs_usage="\
17361 \`$as_me' instantiates files from templates according to the
17362 current configuration.
17364 Usage: $0 [OPTIONS] [FILE]...
17366 -h, --help print this help, then exit
17367 -V, --version print version number, then exit
17368 -q, --quiet do not print progress messages
17369 -d, --debug don't remove temporary files
17370 --recheck update $as_me by reconfiguring in the same conditions
17371 --file=FILE[:TEMPLATE]
17372 instantiate the configuration file FILE
17373 --header=FILE[:TEMPLATE]
17374 instantiate the configuration header FILE
17376 Configuration files:
17377 $config_files
17379 Configuration headers:
17380 $config_headers
17382 Configuration links:
17383 $config_links
17385 Configuration commands:
17386 $config_commands
17388 Report bugs to <bug-autoconf@gnu.org>."
17389 _ACEOF
17391 cat >>$CONFIG_STATUS <<_ACEOF
17392 ac_cs_version="\\
17393 libjava config.status version-unused
17394 configured by $0, generated by GNU Autoconf 2.59,
17395 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17397 Copyright (C) 2003 Free Software Foundation, Inc.
17398 This config.status script is free software; the Free Software Foundation
17399 gives unlimited permission to copy, distribute and modify it."
17400 srcdir=$srcdir
17401 INSTALL="$INSTALL"
17402 _ACEOF
17404 cat >>$CONFIG_STATUS <<\_ACEOF
17405 # If no file are specified by the user, then we need to provide default
17406 # value. By we need to know if files were specified by the user.
17407 ac_need_defaults=:
17408 while test $# != 0
17410 case $1 in
17411 --*=*)
17412 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17413 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17414 ac_shift=:
17417 ac_option=$1
17418 ac_optarg=$2
17419 ac_shift=shift
17421 *) # This is not an option, so the user has probably given explicit
17422 # arguments.
17423 ac_option=$1
17424 ac_need_defaults=false;;
17425 esac
17427 case $ac_option in
17428 # Handling of the options.
17429 _ACEOF
17430 cat >>$CONFIG_STATUS <<\_ACEOF
17431 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17432 ac_cs_recheck=: ;;
17433 --version | --vers* | -V )
17434 echo "$ac_cs_version"; exit 0 ;;
17435 --he | --h)
17436 # Conflict between --help and --header
17437 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17438 Try \`$0 --help' for more information." >&5
17439 echo "$as_me: error: ambiguous option: $1
17440 Try \`$0 --help' for more information." >&2;}
17441 { (exit 1); exit 1; }; };;
17442 --help | --hel | -h )
17443 echo "$ac_cs_usage"; exit 0 ;;
17444 --debug | --d* | -d )
17445 debug=: ;;
17446 --file | --fil | --fi | --f )
17447 $ac_shift
17448 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17449 ac_need_defaults=false;;
17450 --header | --heade | --head | --hea )
17451 $ac_shift
17452 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17453 ac_need_defaults=false;;
17454 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17455 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17456 ac_cs_silent=: ;;
17458 # This is an error.
17459 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17460 Try \`$0 --help' for more information." >&5
17461 echo "$as_me: error: unrecognized option: $1
17462 Try \`$0 --help' for more information." >&2;}
17463 { (exit 1); exit 1; }; } ;;
17465 *) ac_config_targets="$ac_config_targets $1" ;;
17467 esac
17468 shift
17469 done
17471 ac_configure_extra_args=
17473 if $ac_cs_silent; then
17474 exec 6>/dev/null
17475 ac_configure_extra_args="$ac_configure_extra_args --silent"
17478 _ACEOF
17479 cat >>$CONFIG_STATUS <<_ACEOF
17480 if \$ac_cs_recheck; then
17481 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17482 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17485 _ACEOF
17487 cat >>$CONFIG_STATUS <<_ACEOF
17489 # INIT-COMMANDS section.
17492 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17493 srcdir=${srcdir}
17494 host=${host}
17495 target=${target}
17496 with_multisubdir=${with_multisubdir}
17497 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17498 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17499 libgcj_basedir=${libgcj_basedir}
17500 CC="${CC}"
17501 CXX="${CXX}"
17502 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
17505 _ACEOF
17509 cat >>$CONFIG_STATUS <<\_ACEOF
17510 for ac_config_target in $ac_config_targets
17512 case "$ac_config_target" in
17513 # Handling of arguments.
17514 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17515 "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
17516 "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
17517 "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
17518 "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
17519 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17520 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17521 "scripts/jar" ) CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
17522 "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
17523 "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
17524 "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
17525 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
17526 "java/net/natVMInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
17527 "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
17528 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
17529 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
17530 "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
17531 "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
17532 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
17533 "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
17534 "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
17535 "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
17536 "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
17537 "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
17538 "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
17539 "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
17540 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17541 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17542 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17543 "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
17544 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17545 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17546 { (exit 1); exit 1; }; };;
17547 esac
17548 done
17550 # If the user did not use the arguments to specify the items to instantiate,
17551 # then the envvar interface is used. Set only those that are not.
17552 # We use the long form for the default assignment because of an extremely
17553 # bizarre bug on SunOS 4.1.3.
17554 if $ac_need_defaults; then
17555 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17556 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17557 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17558 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17561 # Have a temporary directory for convenience. Make it in the build tree
17562 # simply because there is no reason to put it here, and in addition,
17563 # creating and moving files from /tmp can sometimes cause problems.
17564 # Create a temporary directory, and hook for its removal unless debugging.
17565 $debug ||
17567 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17568 trap '{ (exit 1); exit 1; }' 1 2 13 15
17571 # Create a (secure) tmp directory for tmp files.
17574 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17575 test -n "$tmp" && test -d "$tmp"
17576 } ||
17578 tmp=./confstat$$-$RANDOM
17579 (umask 077 && mkdir $tmp)
17580 } ||
17582 echo "$me: cannot create a temporary directory in ." >&2
17583 { (exit 1); exit 1; }
17586 _ACEOF
17588 cat >>$CONFIG_STATUS <<_ACEOF
17591 # CONFIG_FILES section.
17594 # No need to generate the scripts if there are no CONFIG_FILES.
17595 # This happens for instance when ./config.status config.h
17596 if test -n "\$CONFIG_FILES"; then
17597 # Protect against being on the right side of a sed subst in config.status.
17598 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17599 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17600 s,@SHELL@,$SHELL,;t t
17601 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17602 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17603 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17604 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17605 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17606 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17607 s,@exec_prefix@,$exec_prefix,;t t
17608 s,@prefix@,$prefix,;t t
17609 s,@program_transform_name@,$program_transform_name,;t t
17610 s,@bindir@,$bindir,;t t
17611 s,@sbindir@,$sbindir,;t t
17612 s,@libexecdir@,$libexecdir,;t t
17613 s,@datadir@,$datadir,;t t
17614 s,@sysconfdir@,$sysconfdir,;t t
17615 s,@sharedstatedir@,$sharedstatedir,;t t
17616 s,@localstatedir@,$localstatedir,;t t
17617 s,@libdir@,$libdir,;t t
17618 s,@includedir@,$includedir,;t t
17619 s,@oldincludedir@,$oldincludedir,;t t
17620 s,@infodir@,$infodir,;t t
17621 s,@mandir@,$mandir,;t t
17622 s,@build_alias@,$build_alias,;t t
17623 s,@host_alias@,$host_alias,;t t
17624 s,@target_alias@,$target_alias,;t t
17625 s,@DEFS@,$DEFS,;t t
17626 s,@ECHO_C@,$ECHO_C,;t t
17627 s,@ECHO_N@,$ECHO_N,;t t
17628 s,@ECHO_T@,$ECHO_T,;t t
17629 s,@LIBS@,$LIBS,;t t
17630 s,@build@,$build,;t t
17631 s,@build_cpu@,$build_cpu,;t t
17632 s,@build_vendor@,$build_vendor,;t t
17633 s,@build_os@,$build_os,;t t
17634 s,@build_libsubdir@,$build_libsubdir,;t t
17635 s,@build_subdir@,$build_subdir,;t t
17636 s,@host_subdir@,$host_subdir,;t t
17637 s,@target_subdir@,$target_subdir,;t t
17638 s,@libgcj_basedir@,$libgcj_basedir,;t t
17639 s,@host@,$host,;t t
17640 s,@host_cpu@,$host_cpu,;t t
17641 s,@host_vendor@,$host_vendor,;t t
17642 s,@host_os@,$host_os,;t t
17643 s,@target@,$target,;t t
17644 s,@target_cpu@,$target_cpu,;t t
17645 s,@target_vendor@,$target_vendor,;t t
17646 s,@target_os@,$target_os,;t t
17647 s,@target_noncanonical@,$target_noncanonical,;t t
17648 s,@LN_S@,$LN_S,;t t
17649 s,@mkinstalldirs@,$mkinstalldirs,;t t
17650 s,@CC@,$CC,;t t
17651 s,@ac_ct_CC@,$ac_ct_CC,;t t
17652 s,@EXEEXT@,$EXEEXT,;t t
17653 s,@OBJEXT@,$OBJEXT,;t t
17654 s,@CXX@,$CXX,;t t
17655 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17656 s,@CFLAGS@,$CFLAGS,;t t
17657 s,@CXXFLAGS@,$CXXFLAGS,;t t
17658 s,@LDFLAGS@,$LDFLAGS,;t t
17659 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17660 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17661 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17662 s,@CYGPATH_W@,$CYGPATH_W,;t t
17663 s,@PACKAGE@,$PACKAGE,;t t
17664 s,@VERSION@,$VERSION,;t t
17665 s,@ACLOCAL@,$ACLOCAL,;t t
17666 s,@AUTOCONF@,$AUTOCONF,;t t
17667 s,@AUTOMAKE@,$AUTOMAKE,;t t
17668 s,@AUTOHEADER@,$AUTOHEADER,;t t
17669 s,@MAKEINFO@,$MAKEINFO,;t t
17670 s,@install_sh@,$install_sh,;t t
17671 s,@STRIP@,$STRIP,;t t
17672 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17673 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17674 s,@mkdir_p@,$mkdir_p,;t t
17675 s,@AWK@,$AWK,;t t
17676 s,@SET_MAKE@,$SET_MAKE,;t t
17677 s,@am__leading_dot@,$am__leading_dot,;t t
17678 s,@AMTAR@,$AMTAR,;t t
17679 s,@am__tar@,$am__tar,;t t
17680 s,@am__untar@,$am__untar,;t t
17681 s,@DEPDIR@,$DEPDIR,;t t
17682 s,@am__include@,$am__include,;t t
17683 s,@am__quote@,$am__quote,;t t
17684 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17685 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17686 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17687 s,@CCDEPMODE@,$CCDEPMODE,;t t
17688 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17689 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17690 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17691 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17692 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17693 s,@AS@,$AS,;t t
17694 s,@ac_ct_AS@,$ac_ct_AS,;t t
17695 s,@LD@,$LD,;t t
17696 s,@ac_ct_LD@,$ac_ct_LD,;t t
17697 s,@AR@,$AR,;t t
17698 s,@ac_ct_AR@,$ac_ct_AR,;t t
17699 s,@RANLIB@,$RANLIB,;t t
17700 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17701 s,@JAR@,$JAR,;t t
17702 s,@ZIP@,$ZIP,;t t
17703 s,@UNZIP@,$UNZIP,;t t
17704 s,@BASH_JAR_TRUE@,$BASH_JAR_TRUE,;t t
17705 s,@BASH_JAR_FALSE@,$BASH_JAR_FALSE,;t t
17706 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17707 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17708 s,@MAINT@,$MAINT,;t t
17709 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
17710 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
17711 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
17712 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
17713 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
17714 s,@TOOLKIT@,$TOOLKIT,;t t
17715 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
17716 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
17717 s,@GCJH@,$GCJH,;t t
17718 s,@INCLTDL@,$INCLTDL,;t t
17719 s,@LIBLTDL@,$LIBLTDL,;t t
17720 s,@DIRLTDL@,$DIRLTDL,;t t
17721 s,@LIBTOOL@,$LIBTOOL,;t t
17722 s,@CXXCPP@,$CXXCPP,;t t
17723 s,@CPPFLAGS@,$CPPFLAGS,;t t
17724 s,@GCJ@,$GCJ,;t t
17725 s,@GCJFLAGS@,$GCJFLAGS,;t t
17726 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
17727 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
17728 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
17729 s,@subdirs@,$subdirs,;t t
17730 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
17731 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
17732 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
17733 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
17734 s,@JAVA_HOME@,$JAVA_HOME,;t t
17735 s,@INTERPRETER@,$INTERPRETER,;t t
17736 s,@LIBFFI@,$LIBFFI,;t t
17737 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
17738 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
17739 s,@CPP@,$CPP,;t t
17740 s,@EGREP@,$EGREP,;t t
17741 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
17742 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
17743 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
17744 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
17745 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
17746 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
17747 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
17748 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
17749 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
17750 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
17751 s,@X_CFLAGS@,$X_CFLAGS,;t t
17752 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17753 s,@X_LIBS@,$X_LIBS,;t t
17754 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17755 s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
17756 s,@GCLIBS@,$GCLIBS,;t t
17757 s,@GCINCS@,$GCINCS,;t t
17758 s,@GCDEPS@,$GCDEPS,;t t
17759 s,@GCSPEC@,$GCSPEC,;t t
17760 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
17761 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
17762 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
17763 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
17764 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
17765 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
17766 s,@THREADLIBS@,$THREADLIBS,;t t
17767 s,@THREADINCS@,$THREADINCS,;t t
17768 s,@THREADDEPS@,$THREADDEPS,;t t
17769 s,@THREADSPEC@,$THREADSPEC,;t t
17770 s,@THREADSTARTFILESPEC@,$THREADSTARTFILESPEC,;t t
17771 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
17772 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
17773 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
17774 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
17775 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
17776 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
17777 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
17778 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
17779 s,@USE_LIBGCJ_BC_TRUE@,$USE_LIBGCJ_BC_TRUE,;t t
17780 s,@USE_LIBGCJ_BC_FALSE@,$USE_LIBGCJ_BC_FALSE,;t t
17781 s,@LIBGCJ_SPEC@,$LIBGCJ_SPEC,;t t
17782 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
17783 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
17784 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
17785 s,@LIBICONV@,$LIBICONV,;t t
17786 s,@LTLIBICONV@,$LTLIBICONV,;t t
17787 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
17788 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
17789 s,@GTK_LIBS@,$GTK_LIBS,;t t
17790 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
17791 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
17792 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
17793 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
17794 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
17795 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
17796 s,@ZLIBS@,$ZLIBS,;t t
17797 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
17798 s,@ZINCS@,$ZINCS,;t t
17799 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
17800 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
17801 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
17802 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
17803 s,@IEEESPEC@,$IEEESPEC,;t t
17804 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
17805 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
17806 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
17807 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
17808 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
17809 s,@toolexecdir@,$toolexecdir,;t t
17810 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
17811 s,@toolexeclibdir@,$toolexeclibdir,;t t
17812 s,@dbexecdir@,$dbexecdir,;t t
17813 s,@GCJVERSION@,$GCJVERSION,;t t
17814 s,@gxx_include_dir@,$gxx_include_dir,;t t
17815 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
17816 s,@ALLOCA@,$ALLOCA,;t t
17817 s,@PERL@,$PERL,;t t
17818 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
17819 s,@LD_START_STATIC_SPEC@,$LD_START_STATIC_SPEC,;t t
17820 s,@LD_FINISH_STATIC_SPEC@,$LD_FINISH_STATIC_SPEC,;t t
17821 s,@here@,$here,;t t
17822 s,@LIBOBJS@,$LIBOBJS,;t t
17823 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17824 CEOF
17826 _ACEOF
17828 cat >>$CONFIG_STATUS <<\_ACEOF
17829 # Split the substitutions into bite-sized pieces for seds with
17830 # small command number limits, like on Digital OSF/1 and HP-UX.
17831 ac_max_sed_lines=48
17832 ac_sed_frag=1 # Number of current file.
17833 ac_beg=1 # First line for current file.
17834 ac_end=$ac_max_sed_lines # Line after last line for current file.
17835 ac_more_lines=:
17836 ac_sed_cmds=
17837 while $ac_more_lines; do
17838 if test $ac_beg -gt 1; then
17839 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17840 else
17841 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17843 if test ! -s $tmp/subs.frag; then
17844 ac_more_lines=false
17845 else
17846 # The purpose of the label and of the branching condition is to
17847 # speed up the sed processing (if there are no `@' at all, there
17848 # is no need to browse any of the substitutions).
17849 # These are the two extra sed commands mentioned above.
17850 (echo ':t
17851 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17852 if test -z "$ac_sed_cmds"; then
17853 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17854 else
17855 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17857 ac_sed_frag=`expr $ac_sed_frag + 1`
17858 ac_beg=$ac_end
17859 ac_end=`expr $ac_end + $ac_max_sed_lines`
17861 done
17862 if test -z "$ac_sed_cmds"; then
17863 ac_sed_cmds=cat
17865 fi # test -n "$CONFIG_FILES"
17867 _ACEOF
17868 cat >>$CONFIG_STATUS <<\_ACEOF
17869 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17870 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17871 case $ac_file in
17872 - | *:- | *:-:* ) # input from stdin
17873 cat >$tmp/stdin
17874 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17875 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17876 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17877 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17878 * ) ac_file_in=$ac_file.in ;;
17879 esac
17881 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17882 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17883 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17884 X"$ac_file" : 'X\(//\)[^/]' \| \
17885 X"$ac_file" : 'X\(//\)$' \| \
17886 X"$ac_file" : 'X\(/\)' \| \
17887 . : '\(.\)' 2>/dev/null ||
17888 echo X"$ac_file" |
17889 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17890 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17891 /^X\(\/\/\)$/{ s//\1/; q; }
17892 /^X\(\/\).*/{ s//\1/; q; }
17893 s/.*/./; q'`
17894 { if $as_mkdir_p; then
17895 mkdir -p "$ac_dir"
17896 else
17897 as_dir="$ac_dir"
17898 as_dirs=
17899 while test ! -d "$as_dir"; do
17900 as_dirs="$as_dir $as_dirs"
17901 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17902 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17903 X"$as_dir" : 'X\(//\)[^/]' \| \
17904 X"$as_dir" : 'X\(//\)$' \| \
17905 X"$as_dir" : 'X\(/\)' \| \
17906 . : '\(.\)' 2>/dev/null ||
17907 echo X"$as_dir" |
17908 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17909 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17910 /^X\(\/\/\)$/{ s//\1/; q; }
17911 /^X\(\/\).*/{ s//\1/; q; }
17912 s/.*/./; q'`
17913 done
17914 test ! -n "$as_dirs" || mkdir $as_dirs
17915 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17916 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17917 { (exit 1); exit 1; }; }; }
17919 ac_builddir=.
17921 if test "$ac_dir" != .; then
17922 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17923 # A "../" for each directory in $ac_dir_suffix.
17924 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17925 else
17926 ac_dir_suffix= ac_top_builddir=
17929 case $srcdir in
17930 .) # No --srcdir option. We are building in place.
17931 ac_srcdir=.
17932 if test -z "$ac_top_builddir"; then
17933 ac_top_srcdir=.
17934 else
17935 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17936 fi ;;
17937 [\\/]* | ?:[\\/]* ) # Absolute path.
17938 ac_srcdir=$srcdir$ac_dir_suffix;
17939 ac_top_srcdir=$srcdir ;;
17940 *) # Relative path.
17941 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17942 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17943 esac
17945 # Do not use `cd foo && pwd` to compute absolute paths, because
17946 # the directories may not exist.
17947 case `pwd` in
17948 .) ac_abs_builddir="$ac_dir";;
17950 case "$ac_dir" in
17951 .) ac_abs_builddir=`pwd`;;
17952 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17953 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17954 esac;;
17955 esac
17956 case $ac_abs_builddir in
17957 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17959 case ${ac_top_builddir}. in
17960 .) ac_abs_top_builddir=$ac_abs_builddir;;
17961 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17962 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17963 esac;;
17964 esac
17965 case $ac_abs_builddir in
17966 .) ac_abs_srcdir=$ac_srcdir;;
17968 case $ac_srcdir in
17969 .) ac_abs_srcdir=$ac_abs_builddir;;
17970 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17971 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17972 esac;;
17973 esac
17974 case $ac_abs_builddir in
17975 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17977 case $ac_top_srcdir in
17978 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17979 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17980 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17981 esac;;
17982 esac
17985 case $INSTALL in
17986 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17987 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17988 esac
17990 if test x"$ac_file" != x-; then
17991 { echo "$as_me:$LINENO: creating $ac_file" >&5
17992 echo "$as_me: creating $ac_file" >&6;}
17993 rm -f "$ac_file"
17995 # Let's still pretend it is `configure' which instantiates (i.e., don't
17996 # use $as_me), people would be surprised to read:
17997 # /* config.h. Generated by config.status. */
17998 if test x"$ac_file" = x-; then
17999 configure_input=
18000 else
18001 configure_input="$ac_file. "
18003 configure_input=$configure_input"Generated from `echo $ac_file_in |
18004 sed 's,.*/,,'` by configure."
18006 # First look for the input files in the build tree, otherwise in the
18007 # src tree.
18008 ac_file_inputs=`IFS=:
18009 for f in $ac_file_in; do
18010 case $f in
18011 -) echo $tmp/stdin ;;
18012 [\\/$]*)
18013 # Absolute (can't be DOS-style, as IFS=:)
18014 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18015 echo "$as_me: error: cannot find input file: $f" >&2;}
18016 { (exit 1); exit 1; }; }
18017 echo "$f";;
18018 *) # Relative
18019 if test -f "$f"; then
18020 # Build tree
18021 echo "$f"
18022 elif test -f "$srcdir/$f"; then
18023 # Source tree
18024 echo "$srcdir/$f"
18025 else
18026 # /dev/null tree
18027 { { 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 fi;;
18031 esac
18032 done` || { (exit 1); exit 1; }
18033 _ACEOF
18034 cat >>$CONFIG_STATUS <<_ACEOF
18035 sed "$ac_vpsub
18036 $extrasub
18037 _ACEOF
18038 cat >>$CONFIG_STATUS <<\_ACEOF
18040 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18041 s,@configure_input@,$configure_input,;t t
18042 s,@srcdir@,$ac_srcdir,;t t
18043 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18044 s,@top_srcdir@,$ac_top_srcdir,;t t
18045 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18046 s,@builddir@,$ac_builddir,;t t
18047 s,@abs_builddir@,$ac_abs_builddir,;t t
18048 s,@top_builddir@,$ac_top_builddir,;t t
18049 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18050 s,@INSTALL@,$ac_INSTALL,;t t
18051 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18052 rm -f $tmp/stdin
18053 if test x"$ac_file" != x-; then
18054 mv $tmp/out $ac_file
18055 else
18056 cat $tmp/out
18057 rm -f $tmp/out
18060 # Run the commands associated with the file.
18061 case $ac_file in
18062 scripts/jar ) chmod +x scripts/jar ;;
18063 esac
18064 done
18065 _ACEOF
18066 cat >>$CONFIG_STATUS <<\_ACEOF
18069 # CONFIG_HEADER section.
18072 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18073 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18075 # ac_d sets the value in "#define NAME VALUE" lines.
18076 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18077 ac_dB='[ ].*$,\1#\2'
18078 ac_dC=' '
18079 ac_dD=',;t'
18080 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18081 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18082 ac_uB='$,\1#\2define\3'
18083 ac_uC=' '
18084 ac_uD=',;t'
18086 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18087 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18088 case $ac_file in
18089 - | *:- | *:-:* ) # input from stdin
18090 cat >$tmp/stdin
18091 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18092 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18093 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18094 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18095 * ) ac_file_in=$ac_file.in ;;
18096 esac
18098 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18099 echo "$as_me: creating $ac_file" >&6;}
18101 # First look for the input files in the build tree, otherwise in the
18102 # src tree.
18103 ac_file_inputs=`IFS=:
18104 for f in $ac_file_in; do
18105 case $f in
18106 -) echo $tmp/stdin ;;
18107 [\\/$]*)
18108 # Absolute (can't be DOS-style, as IFS=:)
18109 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18110 echo "$as_me: error: cannot find input file: $f" >&2;}
18111 { (exit 1); exit 1; }; }
18112 # Do quote $f, to prevent DOS paths from being IFS'd.
18113 echo "$f";;
18114 *) # Relative
18115 if test -f "$f"; then
18116 # Build tree
18117 echo "$f"
18118 elif test -f "$srcdir/$f"; then
18119 # Source tree
18120 echo "$srcdir/$f"
18121 else
18122 # /dev/null tree
18123 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18124 echo "$as_me: error: cannot find input file: $f" >&2;}
18125 { (exit 1); exit 1; }; }
18126 fi;;
18127 esac
18128 done` || { (exit 1); exit 1; }
18129 # Remove the trailing spaces.
18130 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18132 _ACEOF
18134 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18135 # `conftest.undefs', that substitutes the proper values into
18136 # config.h.in to produce config.h. The first handles `#define'
18137 # templates, and the second `#undef' templates.
18138 # And first: Protect against being on the right side of a sed subst in
18139 # config.status. Protect against being in an unquoted here document
18140 # in config.status.
18141 rm -f conftest.defines conftest.undefs
18142 # Using a here document instead of a string reduces the quoting nightmare.
18143 # Putting comments in sed scripts is not portable.
18145 # `end' is used to avoid that the second main sed command (meant for
18146 # 0-ary CPP macros) applies to n-ary macro definitions.
18147 # See the Autoconf documentation for `clear'.
18148 cat >confdef2sed.sed <<\_ACEOF
18149 s/[\\&,]/\\&/g
18150 s,[\\$`],\\&,g
18151 t clear
18152 : clear
18153 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18154 t end
18155 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18156 : end
18157 _ACEOF
18158 # If some macros were called several times there might be several times
18159 # the same #defines, which is useless. Nevertheless, we may not want to
18160 # sort them, since we want the *last* AC-DEFINE to be honored.
18161 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18162 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18163 rm -f confdef2sed.sed
18165 # This sed command replaces #undef with comments. This is necessary, for
18166 # example, in the case of _POSIX_SOURCE, which is predefined and required
18167 # on some systems where configure will not decide to define it.
18168 cat >>conftest.undefs <<\_ACEOF
18169 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18170 _ACEOF
18172 # Break up conftest.defines because some shells have a limit on the size
18173 # of here documents, and old seds have small limits too (100 cmds).
18174 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18175 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18176 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18177 echo ' :' >>$CONFIG_STATUS
18178 rm -f conftest.tail
18179 while grep . conftest.defines >/dev/null
18181 # Write a limited-size here document to $tmp/defines.sed.
18182 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18183 # Speed up: don't consider the non `#define' lines.
18184 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18185 # Work around the forget-to-reset-the-flag bug.
18186 echo 't clr' >>$CONFIG_STATUS
18187 echo ': clr' >>$CONFIG_STATUS
18188 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18189 echo 'CEOF
18190 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18191 rm -f $tmp/in
18192 mv $tmp/out $tmp/in
18193 ' >>$CONFIG_STATUS
18194 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18195 rm -f conftest.defines
18196 mv conftest.tail conftest.defines
18197 done
18198 rm -f conftest.defines
18199 echo ' fi # grep' >>$CONFIG_STATUS
18200 echo >>$CONFIG_STATUS
18202 # Break up conftest.undefs because some shells have a limit on the size
18203 # of here documents, and old seds have small limits too (100 cmds).
18204 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18205 rm -f conftest.tail
18206 while grep . conftest.undefs >/dev/null
18208 # Write a limited-size here document to $tmp/undefs.sed.
18209 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18210 # Speed up: don't consider the non `#undef'
18211 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18212 # Work around the forget-to-reset-the-flag bug.
18213 echo 't clr' >>$CONFIG_STATUS
18214 echo ': clr' >>$CONFIG_STATUS
18215 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18216 echo 'CEOF
18217 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18218 rm -f $tmp/in
18219 mv $tmp/out $tmp/in
18220 ' >>$CONFIG_STATUS
18221 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18222 rm -f conftest.undefs
18223 mv conftest.tail conftest.undefs
18224 done
18225 rm -f conftest.undefs
18227 cat >>$CONFIG_STATUS <<\_ACEOF
18228 # Let's still pretend it is `configure' which instantiates (i.e., don't
18229 # use $as_me), people would be surprised to read:
18230 # /* config.h. Generated by config.status. */
18231 if test x"$ac_file" = x-; then
18232 echo "/* Generated by configure. */" >$tmp/config.h
18233 else
18234 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18236 cat $tmp/in >>$tmp/config.h
18237 rm -f $tmp/in
18238 if test x"$ac_file" != x-; then
18239 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18240 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18241 echo "$as_me: $ac_file is unchanged" >&6;}
18242 else
18243 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18244 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18245 X"$ac_file" : 'X\(//\)[^/]' \| \
18246 X"$ac_file" : 'X\(//\)$' \| \
18247 X"$ac_file" : 'X\(/\)' \| \
18248 . : '\(.\)' 2>/dev/null ||
18249 echo X"$ac_file" |
18250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18251 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18252 /^X\(\/\/\)$/{ s//\1/; q; }
18253 /^X\(\/\).*/{ s//\1/; q; }
18254 s/.*/./; q'`
18255 { if $as_mkdir_p; then
18256 mkdir -p "$ac_dir"
18257 else
18258 as_dir="$ac_dir"
18259 as_dirs=
18260 while test ! -d "$as_dir"; do
18261 as_dirs="$as_dir $as_dirs"
18262 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18263 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18264 X"$as_dir" : 'X\(//\)[^/]' \| \
18265 X"$as_dir" : 'X\(//\)$' \| \
18266 X"$as_dir" : 'X\(/\)' \| \
18267 . : '\(.\)' 2>/dev/null ||
18268 echo X"$as_dir" |
18269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18270 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18271 /^X\(\/\/\)$/{ s//\1/; q; }
18272 /^X\(\/\).*/{ s//\1/; q; }
18273 s/.*/./; q'`
18274 done
18275 test ! -n "$as_dirs" || mkdir $as_dirs
18276 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18277 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18278 { (exit 1); exit 1; }; }; }
18280 rm -f $ac_file
18281 mv $tmp/config.h $ac_file
18283 else
18284 cat $tmp/config.h
18285 rm -f $tmp/config.h
18287 # Compute $ac_file's index in $config_headers.
18288 _am_stamp_count=1
18289 for _am_header in $config_headers :; do
18290 case $_am_header in
18291 $ac_file | $ac_file:* )
18292 break ;;
18294 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18295 esac
18296 done
18297 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
18298 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18299 X$ac_file : 'X\(//\)[^/]' \| \
18300 X$ac_file : 'X\(//\)$' \| \
18301 X$ac_file : 'X\(/\)' \| \
18302 . : '\(.\)' 2>/dev/null ||
18303 echo X$ac_file |
18304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18305 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18306 /^X\(\/\/\)$/{ s//\1/; q; }
18307 /^X\(\/\).*/{ s//\1/; q; }
18308 s/.*/./; q'`/stamp-h$_am_stamp_count
18309 done
18310 _ACEOF
18311 cat >>$CONFIG_STATUS <<\_ACEOF
18314 # CONFIG_LINKS section.
18317 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18318 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18319 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18321 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18322 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18324 if test ! -r $srcdir/$ac_source; then
18325 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18326 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18327 { (exit 1); exit 1; }; }
18329 rm -f $ac_dest
18331 # Make relative symlinks.
18332 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18333 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18334 X"$ac_dest" : 'X\(//\)[^/]' \| \
18335 X"$ac_dest" : 'X\(//\)$' \| \
18336 X"$ac_dest" : 'X\(/\)' \| \
18337 . : '\(.\)' 2>/dev/null ||
18338 echo X"$ac_dest" |
18339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18340 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18341 /^X\(\/\/\)$/{ s//\1/; q; }
18342 /^X\(\/\).*/{ s//\1/; q; }
18343 s/.*/./; q'`
18344 { if $as_mkdir_p; then
18345 mkdir -p "$ac_dest_dir"
18346 else
18347 as_dir="$ac_dest_dir"
18348 as_dirs=
18349 while test ! -d "$as_dir"; do
18350 as_dirs="$as_dir $as_dirs"
18351 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18352 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18353 X"$as_dir" : 'X\(//\)[^/]' \| \
18354 X"$as_dir" : 'X\(//\)$' \| \
18355 X"$as_dir" : 'X\(/\)' \| \
18356 . : '\(.\)' 2>/dev/null ||
18357 echo X"$as_dir" |
18358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18359 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18360 /^X\(\/\/\)$/{ s//\1/; q; }
18361 /^X\(\/\).*/{ s//\1/; q; }
18362 s/.*/./; q'`
18363 done
18364 test ! -n "$as_dirs" || mkdir $as_dirs
18365 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
18366 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
18367 { (exit 1); exit 1; }; }; }
18369 ac_builddir=.
18371 if test "$ac_dest_dir" != .; then
18372 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18373 # A "../" for each directory in $ac_dir_suffix.
18374 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18375 else
18376 ac_dir_suffix= ac_top_builddir=
18379 case $srcdir in
18380 .) # No --srcdir option. We are building in place.
18381 ac_srcdir=.
18382 if test -z "$ac_top_builddir"; then
18383 ac_top_srcdir=.
18384 else
18385 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18386 fi ;;
18387 [\\/]* | ?:[\\/]* ) # Absolute path.
18388 ac_srcdir=$srcdir$ac_dir_suffix;
18389 ac_top_srcdir=$srcdir ;;
18390 *) # Relative path.
18391 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18392 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18393 esac
18395 # Do not use `cd foo && pwd` to compute absolute paths, because
18396 # the directories may not exist.
18397 case `pwd` in
18398 .) ac_abs_builddir="$ac_dest_dir";;
18400 case "$ac_dest_dir" in
18401 .) ac_abs_builddir=`pwd`;;
18402 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
18403 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
18404 esac;;
18405 esac
18406 case $ac_abs_builddir in
18407 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18409 case ${ac_top_builddir}. in
18410 .) ac_abs_top_builddir=$ac_abs_builddir;;
18411 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18412 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18413 esac;;
18414 esac
18415 case $ac_abs_builddir in
18416 .) ac_abs_srcdir=$ac_srcdir;;
18418 case $ac_srcdir in
18419 .) ac_abs_srcdir=$ac_abs_builddir;;
18420 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18421 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18422 esac;;
18423 esac
18424 case $ac_abs_builddir in
18425 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18427 case $ac_top_srcdir in
18428 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18429 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18430 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18431 esac;;
18432 esac
18435 case $srcdir in
18436 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18437 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18438 esac
18440 # Try a symlink, then a hard link, then a copy.
18441 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18442 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
18443 cp -p $srcdir/$ac_source $ac_dest ||
18444 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
18445 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
18446 { (exit 1); exit 1; }; }
18447 done
18448 _ACEOF
18449 cat >>$CONFIG_STATUS <<\_ACEOF
18452 # CONFIG_COMMANDS section.
18454 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18455 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18456 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18457 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18458 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18459 X"$ac_dest" : 'X\(//\)[^/]' \| \
18460 X"$ac_dest" : 'X\(//\)$' \| \
18461 X"$ac_dest" : 'X\(/\)' \| \
18462 . : '\(.\)' 2>/dev/null ||
18463 echo X"$ac_dest" |
18464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18465 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18466 /^X\(\/\/\)$/{ s//\1/; q; }
18467 /^X\(\/\).*/{ s//\1/; q; }
18468 s/.*/./; q'`
18469 { if $as_mkdir_p; then
18470 mkdir -p "$ac_dir"
18471 else
18472 as_dir="$ac_dir"
18473 as_dirs=
18474 while test ! -d "$as_dir"; do
18475 as_dirs="$as_dir $as_dirs"
18476 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18477 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18478 X"$as_dir" : 'X\(//\)[^/]' \| \
18479 X"$as_dir" : 'X\(//\)$' \| \
18480 X"$as_dir" : 'X\(/\)' \| \
18481 . : '\(.\)' 2>/dev/null ||
18482 echo X"$as_dir" |
18483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18484 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18485 /^X\(\/\/\)$/{ s//\1/; q; }
18486 /^X\(\/\).*/{ s//\1/; q; }
18487 s/.*/./; q'`
18488 done
18489 test ! -n "$as_dirs" || mkdir $as_dirs
18490 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18491 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18492 { (exit 1); exit 1; }; }; }
18494 ac_builddir=.
18496 if test "$ac_dir" != .; then
18497 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18498 # A "../" for each directory in $ac_dir_suffix.
18499 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18500 else
18501 ac_dir_suffix= ac_top_builddir=
18504 case $srcdir in
18505 .) # No --srcdir option. We are building in place.
18506 ac_srcdir=.
18507 if test -z "$ac_top_builddir"; then
18508 ac_top_srcdir=.
18509 else
18510 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18511 fi ;;
18512 [\\/]* | ?:[\\/]* ) # Absolute path.
18513 ac_srcdir=$srcdir$ac_dir_suffix;
18514 ac_top_srcdir=$srcdir ;;
18515 *) # Relative path.
18516 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18517 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18518 esac
18520 # Do not use `cd foo && pwd` to compute absolute paths, because
18521 # the directories may not exist.
18522 case `pwd` in
18523 .) ac_abs_builddir="$ac_dir";;
18525 case "$ac_dir" in
18526 .) ac_abs_builddir=`pwd`;;
18527 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18528 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18529 esac;;
18530 esac
18531 case $ac_abs_builddir in
18532 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18534 case ${ac_top_builddir}. in
18535 .) ac_abs_top_builddir=$ac_abs_builddir;;
18536 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18537 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18538 esac;;
18539 esac
18540 case $ac_abs_builddir in
18541 .) ac_abs_srcdir=$ac_srcdir;;
18543 case $ac_srcdir in
18544 .) ac_abs_srcdir=$ac_abs_builddir;;
18545 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18546 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18547 esac;;
18548 esac
18549 case $ac_abs_builddir in
18550 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18552 case $ac_top_srcdir in
18553 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18554 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18555 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18556 esac;;
18557 esac
18560 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18561 echo "$as_me: executing $ac_dest commands" >&6;}
18562 case $ac_dest in
18563 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18564 # Strip MF so we end up with the name of the file.
18565 mf=`echo "$mf" | sed -e 's/:.*$//'`
18566 # Check whether this is an Automake generated Makefile or not.
18567 # We used to match only the files named `Makefile.in', but
18568 # some people rename them; so instead we look at the file content.
18569 # Grep'ing the first line is not enough: some people post-process
18570 # each Makefile.in and add a new line on top of each file to say so.
18571 # So let's grep whole file.
18572 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18573 dirpart=`(dirname "$mf") 2>/dev/null ||
18574 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18575 X"$mf" : 'X\(//\)[^/]' \| \
18576 X"$mf" : 'X\(//\)$' \| \
18577 X"$mf" : 'X\(/\)' \| \
18578 . : '\(.\)' 2>/dev/null ||
18579 echo X"$mf" |
18580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18581 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18582 /^X\(\/\/\)$/{ s//\1/; q; }
18583 /^X\(\/\).*/{ s//\1/; q; }
18584 s/.*/./; q'`
18585 else
18586 continue
18588 # Extract the definition of DEPDIR, am__include, and am__quote
18589 # from the Makefile without running `make'.
18590 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18591 test -z "$DEPDIR" && continue
18592 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18593 test -z "am__include" && continue
18594 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18595 # When using ansi2knr, U may be empty or an underscore; expand it
18596 U=`sed -n 's/^U = //p' < "$mf"`
18597 # Find all dependency output files, they are included files with
18598 # $(DEPDIR) in their names. We invoke sed twice because it is the
18599 # simplest approach to changing $(DEPDIR) to its actual value in the
18600 # expansion.
18601 for file in `sed -n "
18602 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18603 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18604 # Make sure the directory exists.
18605 test -f "$dirpart/$file" && continue
18606 fdir=`(dirname "$file") 2>/dev/null ||
18607 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18608 X"$file" : 'X\(//\)[^/]' \| \
18609 X"$file" : 'X\(//\)$' \| \
18610 X"$file" : 'X\(/\)' \| \
18611 . : '\(.\)' 2>/dev/null ||
18612 echo X"$file" |
18613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18614 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18615 /^X\(\/\/\)$/{ s//\1/; q; }
18616 /^X\(\/\).*/{ s//\1/; q; }
18617 s/.*/./; q'`
18618 { if $as_mkdir_p; then
18619 mkdir -p $dirpart/$fdir
18620 else
18621 as_dir=$dirpart/$fdir
18622 as_dirs=
18623 while test ! -d "$as_dir"; do
18624 as_dirs="$as_dir $as_dirs"
18625 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18626 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18627 X"$as_dir" : 'X\(//\)[^/]' \| \
18628 X"$as_dir" : 'X\(//\)$' \| \
18629 X"$as_dir" : 'X\(/\)' \| \
18630 . : '\(.\)' 2>/dev/null ||
18631 echo X"$as_dir" |
18632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18633 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18634 /^X\(\/\/\)$/{ s//\1/; q; }
18635 /^X\(\/\).*/{ s//\1/; q; }
18636 s/.*/./; q'`
18637 done
18638 test ! -n "$as_dirs" || mkdir $as_dirs
18639 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18640 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18641 { (exit 1); exit 1; }; }; }
18643 # echo "creating $dirpart/$file"
18644 echo '# dummy' > "$dirpart/$file"
18645 done
18646 done
18648 default ) # Only add multilib support code if we just rebuilt top-level Makefile.
18649 case " $CONFIG_FILES " in
18650 *" Makefile "*)
18651 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
18652 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
18654 esac
18655 for ac_multi_file in $CONFIG_FILES; do
18656 case $ac_multi_file in
18657 */Makefile)
18658 grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;;
18659 esac
18660 done
18662 esac
18663 done
18664 _ACEOF
18666 cat >>$CONFIG_STATUS <<\_ACEOF
18668 { (exit 0); exit 0; }
18669 _ACEOF
18670 chmod +x $CONFIG_STATUS
18671 ac_clean_files=$ac_clean_files_save
18674 # configure is writing to config.log, and then calls config.status.
18675 # config.status does its own redirection, appending to config.log.
18676 # Unfortunately, on DOS this fails, as config.log is still kept open
18677 # by configure, so config.status won't be able to write to it; its
18678 # output is simply discarded. So we exec the FD to /dev/null,
18679 # effectively closing config.log, so it can be properly (re)opened and
18680 # appended to by config.status. When coming back to configure, we
18681 # need to make the FD available again.
18682 if test "$no_create" != yes; then
18683 ac_cs_success=:
18684 ac_config_status_args=
18685 test "$silent" = yes &&
18686 ac_config_status_args="$ac_config_status_args --quiet"
18687 exec 5>/dev/null
18688 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18689 exec 5>>config.log
18690 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18691 # would make configure fail if this is the last instruction.
18692 $ac_cs_success || { (exit 1); exit 1; }
18696 # CONFIG_SUBDIRS section.
18698 if test "$no_recursion" != yes; then
18700 # Remove --cache-file and --srcdir arguments so they do not pile up.
18701 ac_sub_configure_args=
18702 ac_prev=
18703 for ac_arg in $ac_configure_args; do
18704 if test -n "$ac_prev"; then
18705 ac_prev=
18706 continue
18708 case $ac_arg in
18709 -cache-file | --cache-file | --cache-fil | --cache-fi \
18710 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18711 ac_prev=cache_file ;;
18712 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18713 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18714 | --c=*)
18716 --config-cache | -C)
18718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18719 ac_prev=srcdir ;;
18720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18722 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18723 ac_prev=prefix ;;
18724 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18726 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18727 esac
18728 done
18730 # Always prepend --prefix to ensure using the same prefix
18731 # in subdir configurations.
18732 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
18734 ac_popdir=`pwd`
18735 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18737 # Do not complain, so a configure script can configure whichever
18738 # parts of a large source tree are present.
18739 test -d $srcdir/$ac_dir || continue
18741 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
18742 echo "$as_me: configuring in $ac_dir" >&6;}
18743 { if $as_mkdir_p; then
18744 mkdir -p "$ac_dir"
18745 else
18746 as_dir="$ac_dir"
18747 as_dirs=
18748 while test ! -d "$as_dir"; do
18749 as_dirs="$as_dir $as_dirs"
18750 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18751 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18752 X"$as_dir" : 'X\(//\)[^/]' \| \
18753 X"$as_dir" : 'X\(//\)$' \| \
18754 X"$as_dir" : 'X\(/\)' \| \
18755 . : '\(.\)' 2>/dev/null ||
18756 echo X"$as_dir" |
18757 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18758 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18759 /^X\(\/\/\)$/{ s//\1/; q; }
18760 /^X\(\/\).*/{ s//\1/; q; }
18761 s/.*/./; q'`
18762 done
18763 test ! -n "$as_dirs" || mkdir $as_dirs
18764 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18765 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18766 { (exit 1); exit 1; }; }; }
18768 ac_builddir=.
18770 if test "$ac_dir" != .; then
18771 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18772 # A "../" for each directory in $ac_dir_suffix.
18773 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18774 else
18775 ac_dir_suffix= ac_top_builddir=
18778 case $srcdir in
18779 .) # No --srcdir option. We are building in place.
18780 ac_srcdir=.
18781 if test -z "$ac_top_builddir"; then
18782 ac_top_srcdir=.
18783 else
18784 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18785 fi ;;
18786 [\\/]* | ?:[\\/]* ) # Absolute path.
18787 ac_srcdir=$srcdir$ac_dir_suffix;
18788 ac_top_srcdir=$srcdir ;;
18789 *) # Relative path.
18790 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18791 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18792 esac
18794 # Do not use `cd foo && pwd` to compute absolute paths, because
18795 # the directories may not exist.
18796 case `pwd` in
18797 .) ac_abs_builddir="$ac_dir";;
18799 case "$ac_dir" in
18800 .) ac_abs_builddir=`pwd`;;
18801 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18802 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18803 esac;;
18804 esac
18805 case $ac_abs_builddir in
18806 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18808 case ${ac_top_builddir}. in
18809 .) ac_abs_top_builddir=$ac_abs_builddir;;
18810 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18811 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18812 esac;;
18813 esac
18814 case $ac_abs_builddir in
18815 .) ac_abs_srcdir=$ac_srcdir;;
18817 case $ac_srcdir in
18818 .) ac_abs_srcdir=$ac_abs_builddir;;
18819 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18820 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18821 esac;;
18822 esac
18823 case $ac_abs_builddir in
18824 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18826 case $ac_top_srcdir in
18827 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18828 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18829 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18830 esac;;
18831 esac
18834 cd $ac_dir
18836 # Check for guested configure; otherwise get Cygnus style configure.
18837 if test -f $ac_srcdir/configure.gnu; then
18838 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
18839 elif test -f $ac_srcdir/configure; then
18840 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
18841 elif test -f $ac_srcdir/configure.in; then
18842 ac_sub_configure=$ac_configure
18843 else
18844 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
18845 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18846 ac_sub_configure=
18849 # The recursion is here.
18850 if test -n "$ac_sub_configure"; then
18851 # Make the cache file name correct relative to the subdirectory.
18852 case $cache_file in
18853 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18854 *) # Relative path.
18855 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
18856 esac
18858 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
18859 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18860 # The eval makes quoting arguments work.
18861 eval $ac_sub_configure $ac_sub_configure_args \
18862 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
18863 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
18864 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
18865 { (exit 1); exit 1; }; }
18868 cd $ac_popdir
18869 done