* libsupc++/eh_personality.cc: Wrap extern C function
[official-gcc.git] / libjava / configure
blobc2c5ddc8e61a8465245a1e98ee43eeacbadf8f90
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 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 --disable-dependency-tracking speeds up one-time build
858 --enable-dependency-tracking do not reject slow dependency extractors
859 --enable-maintainer-mode enable make rules and dependencies not useful
860 (and sometimes confusing) to the casual installer
861 --enable-libgcj-debug enable runtime debugging code
862 --enable-java-awt list of AWT peer implementations to be built
863 --enable-shared=PKGS build shared libraries default=yes
864 --enable-static=PKGS build static libraries default=yes
865 --enable-fast-install=PKGS optimize for fast installation default=yes
866 --disable-libtool-lock avoid locking (might break parallel builds)
867 --disable-getenv-properties
868 don't set system properties from GCJ_PROPERTIES
869 --enable-hash-synchronization
870 use global hash table for monitor locks
871 --enable-gc-debug include full support for pointer backtracing etc.
872 --enable-interpreter enable interpreter
873 --enable-sjlj-exceptions
874 force use of builtin_setjmp for exceptions
875 --disable-java-net disable java.net
876 --disable-jvmpi disable JVMPI support
877 --enable-java-gc=TYPE choose garbage collector (default is boehm)
878 --disable-rpath do not hardcode runtime library paths
879 _g_switchUse thread-local storage
880 [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 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1648 # (1) We use an abnormal CXX (without library references), so we
1649 # must cache it under a different name.
1650 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1651 # the non-multilib-adjusted value will be used in multilibs.
1652 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1653 # (4) As another side effect, automake doesn't automatically include them
1654 # in Makefile.in.
1655 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1656 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1657 # used in later tests. This may not be necessary in libjava; I don't know.
1661 save_CXXFLAGS="$CXXFLAGS"
1662 CXXFLAGS="$CXXFLAGS -fno-builtin"
1663 ac_ext=c
1664 ac_cpp='$CPP $CPPFLAGS'
1665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1668 if test -n "$ac_tool_prefix"; then
1669 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1670 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1671 echo "$as_me:$LINENO: checking for $ac_word" >&5
1672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1673 if test "${ac_cv_prog_CC+set}" = set; then
1674 echo $ECHO_N "(cached) $ECHO_C" >&6
1675 else
1676 if test -n "$CC"; then
1677 ac_cv_prog_CC="$CC" # Let the user override the test.
1678 else
1679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1680 for as_dir in $PATH
1682 IFS=$as_save_IFS
1683 test -z "$as_dir" && as_dir=.
1684 for ac_exec_ext in '' $ac_executable_extensions; do
1685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1686 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1688 break 2
1690 done
1691 done
1695 CC=$ac_cv_prog_CC
1696 if test -n "$CC"; then
1697 echo "$as_me:$LINENO: result: $CC" >&5
1698 echo "${ECHO_T}$CC" >&6
1699 else
1700 echo "$as_me:$LINENO: result: no" >&5
1701 echo "${ECHO_T}no" >&6
1705 if test -z "$ac_cv_prog_CC"; then
1706 ac_ct_CC=$CC
1707 # Extract the first word of "gcc", so it can be a program name with args.
1708 set dummy gcc; ac_word=$2
1709 echo "$as_me:$LINENO: checking for $ac_word" >&5
1710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1711 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1712 echo $ECHO_N "(cached) $ECHO_C" >&6
1713 else
1714 if test -n "$ac_ct_CC"; then
1715 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1716 else
1717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1718 for as_dir in $PATH
1720 IFS=$as_save_IFS
1721 test -z "$as_dir" && as_dir=.
1722 for ac_exec_ext in '' $ac_executable_extensions; do
1723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1724 ac_cv_prog_ac_ct_CC="gcc"
1725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1726 break 2
1728 done
1729 done
1733 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1734 if test -n "$ac_ct_CC"; then
1735 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1736 echo "${ECHO_T}$ac_ct_CC" >&6
1737 else
1738 echo "$as_me:$LINENO: result: no" >&5
1739 echo "${ECHO_T}no" >&6
1742 CC=$ac_ct_CC
1743 else
1744 CC="$ac_cv_prog_CC"
1747 if test -z "$CC"; then
1748 if test -n "$ac_tool_prefix"; then
1749 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1750 set dummy ${ac_tool_prefix}cc; ac_word=$2
1751 echo "$as_me:$LINENO: checking for $ac_word" >&5
1752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1753 if test "${ac_cv_prog_CC+set}" = set; then
1754 echo $ECHO_N "(cached) $ECHO_C" >&6
1755 else
1756 if test -n "$CC"; then
1757 ac_cv_prog_CC="$CC" # Let the user override the test.
1758 else
1759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1760 for as_dir in $PATH
1762 IFS=$as_save_IFS
1763 test -z "$as_dir" && as_dir=.
1764 for ac_exec_ext in '' $ac_executable_extensions; do
1765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1766 ac_cv_prog_CC="${ac_tool_prefix}cc"
1767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1768 break 2
1770 done
1771 done
1775 CC=$ac_cv_prog_CC
1776 if test -n "$CC"; then
1777 echo "$as_me:$LINENO: result: $CC" >&5
1778 echo "${ECHO_T}$CC" >&6
1779 else
1780 echo "$as_me:$LINENO: result: no" >&5
1781 echo "${ECHO_T}no" >&6
1785 if test -z "$ac_cv_prog_CC"; then
1786 ac_ct_CC=$CC
1787 # Extract the first word of "cc", so it can be a program name with args.
1788 set dummy cc; ac_word=$2
1789 echo "$as_me:$LINENO: checking for $ac_word" >&5
1790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1791 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1792 echo $ECHO_N "(cached) $ECHO_C" >&6
1793 else
1794 if test -n "$ac_ct_CC"; then
1795 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1796 else
1797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1798 for as_dir in $PATH
1800 IFS=$as_save_IFS
1801 test -z "$as_dir" && as_dir=.
1802 for ac_exec_ext in '' $ac_executable_extensions; do
1803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1804 ac_cv_prog_ac_ct_CC="cc"
1805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1806 break 2
1808 done
1809 done
1813 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1814 if test -n "$ac_ct_CC"; then
1815 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1816 echo "${ECHO_T}$ac_ct_CC" >&6
1817 else
1818 echo "$as_me:$LINENO: result: no" >&5
1819 echo "${ECHO_T}no" >&6
1822 CC=$ac_ct_CC
1823 else
1824 CC="$ac_cv_prog_CC"
1828 if test -z "$CC"; then
1829 # Extract the first word of "cc", so it can be a program name with args.
1830 set dummy cc; ac_word=$2
1831 echo "$as_me:$LINENO: checking for $ac_word" >&5
1832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1833 if test "${ac_cv_prog_CC+set}" = set; then
1834 echo $ECHO_N "(cached) $ECHO_C" >&6
1835 else
1836 if test -n "$CC"; then
1837 ac_cv_prog_CC="$CC" # Let the user override the test.
1838 else
1839 ac_prog_rejected=no
1840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1841 for as_dir in $PATH
1843 IFS=$as_save_IFS
1844 test -z "$as_dir" && as_dir=.
1845 for ac_exec_ext in '' $ac_executable_extensions; do
1846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1847 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1848 ac_prog_rejected=yes
1849 continue
1851 ac_cv_prog_CC="cc"
1852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1853 break 2
1855 done
1856 done
1858 if test $ac_prog_rejected = yes; then
1859 # We found a bogon in the path, so make sure we never use it.
1860 set dummy $ac_cv_prog_CC
1861 shift
1862 if test $# != 0; then
1863 # We chose a different compiler from the bogus one.
1864 # However, it has the same basename, so the bogon will be chosen
1865 # first if we set CC to just the basename; use the full file name.
1866 shift
1867 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1872 CC=$ac_cv_prog_CC
1873 if test -n "$CC"; then
1874 echo "$as_me:$LINENO: result: $CC" >&5
1875 echo "${ECHO_T}$CC" >&6
1876 else
1877 echo "$as_me:$LINENO: result: no" >&5
1878 echo "${ECHO_T}no" >&6
1882 if test -z "$CC"; then
1883 if test -n "$ac_tool_prefix"; then
1884 for ac_prog in cl
1886 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1887 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1888 echo "$as_me:$LINENO: checking for $ac_word" >&5
1889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1890 if test "${ac_cv_prog_CC+set}" = set; then
1891 echo $ECHO_N "(cached) $ECHO_C" >&6
1892 else
1893 if test -n "$CC"; then
1894 ac_cv_prog_CC="$CC" # Let the user override the test.
1895 else
1896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1897 for as_dir in $PATH
1899 IFS=$as_save_IFS
1900 test -z "$as_dir" && as_dir=.
1901 for ac_exec_ext in '' $ac_executable_extensions; do
1902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1903 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1905 break 2
1907 done
1908 done
1912 CC=$ac_cv_prog_CC
1913 if test -n "$CC"; then
1914 echo "$as_me:$LINENO: result: $CC" >&5
1915 echo "${ECHO_T}$CC" >&6
1916 else
1917 echo "$as_me:$LINENO: result: no" >&5
1918 echo "${ECHO_T}no" >&6
1921 test -n "$CC" && break
1922 done
1924 if test -z "$CC"; then
1925 ac_ct_CC=$CC
1926 for ac_prog in cl
1928 # Extract the first word of "$ac_prog", so it can be a program name with args.
1929 set dummy $ac_prog; ac_word=$2
1930 echo "$as_me:$LINENO: checking for $ac_word" >&5
1931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1932 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1933 echo $ECHO_N "(cached) $ECHO_C" >&6
1934 else
1935 if test -n "$ac_ct_CC"; then
1936 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1937 else
1938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1939 for as_dir in $PATH
1941 IFS=$as_save_IFS
1942 test -z "$as_dir" && as_dir=.
1943 for ac_exec_ext in '' $ac_executable_extensions; do
1944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1945 ac_cv_prog_ac_ct_CC="$ac_prog"
1946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1947 break 2
1949 done
1950 done
1954 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1955 if test -n "$ac_ct_CC"; then
1956 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1957 echo "${ECHO_T}$ac_ct_CC" >&6
1958 else
1959 echo "$as_me:$LINENO: result: no" >&5
1960 echo "${ECHO_T}no" >&6
1963 test -n "$ac_ct_CC" && break
1964 done
1966 CC=$ac_ct_CC
1972 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1973 See \`config.log' for more details." >&5
1974 echo "$as_me: error: no acceptable C compiler found in \$PATH
1975 See \`config.log' for more details." >&2;}
1976 { (exit 1); exit 1; }; }
1978 # Provide some information about the compiler.
1979 echo "$as_me:$LINENO:" \
1980 "checking for C compiler version" >&5
1981 ac_compiler=`set X $ac_compile; echo $2`
1982 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1983 (eval $ac_compiler --version </dev/null >&5) 2>&5
1984 ac_status=$?
1985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1986 (exit $ac_status); }
1987 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1988 (eval $ac_compiler -v </dev/null >&5) 2>&5
1989 ac_status=$?
1990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1991 (exit $ac_status); }
1992 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1993 (eval $ac_compiler -V </dev/null >&5) 2>&5
1994 ac_status=$?
1995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996 (exit $ac_status); }
1998 cat >conftest.$ac_ext <<_ACEOF
1999 /* confdefs.h. */
2000 _ACEOF
2001 cat confdefs.h >>conftest.$ac_ext
2002 cat >>conftest.$ac_ext <<_ACEOF
2003 /* end confdefs.h. */
2006 main ()
2010 return 0;
2012 _ACEOF
2013 # FIXME: Cleanup?
2014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2015 (eval $ac_link) 2>&5
2016 ac_status=$?
2017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2018 (exit $ac_status); }; then
2019 gcc_no_link=no
2020 else
2021 gcc_no_link=yes
2024 if test x$gcc_no_link = xyes; then
2025 # Setting cross_compile will disable run tests; it will
2026 # also disable AC_CHECK_FILE but that's generally
2027 # correct if we can't link.
2028 cross_compiling=yes
2029 EXEEXT=
2030 else
2031 cat >conftest.$ac_ext <<_ACEOF
2032 /* confdefs.h. */
2033 _ACEOF
2034 cat confdefs.h >>conftest.$ac_ext
2035 cat >>conftest.$ac_ext <<_ACEOF
2036 /* end confdefs.h. */
2039 main ()
2043 return 0;
2045 _ACEOF
2046 ac_clean_files_save=$ac_clean_files
2047 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2048 # Try to create an executable without -o first, disregard a.out.
2049 # It will help us diagnose broken compilers, and finding out an intuition
2050 # of exeext.
2051 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2052 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2053 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2054 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2055 (eval $ac_link_default) 2>&5
2056 ac_status=$?
2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 (exit $ac_status); }; then
2059 # Find the output, starting from the most likely. This scheme is
2060 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2061 # resort.
2063 # Be careful to initialize this variable, since it used to be cached.
2064 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2065 ac_cv_exeext=
2066 # b.out is created by i960 compilers.
2067 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2069 test -f "$ac_file" || continue
2070 case $ac_file in
2071 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2073 conftest.$ac_ext )
2074 # This is the source file.
2076 [ab].out )
2077 # We found the default executable, but exeext='' is most
2078 # certainly right.
2079 break;;
2080 *.* )
2081 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2082 # FIXME: I believe we export ac_cv_exeext for Libtool,
2083 # but it would be cool to find out if it's true. Does anybody
2084 # maintain Libtool? --akim.
2085 export ac_cv_exeext
2086 break;;
2088 break;;
2089 esac
2090 done
2091 else
2092 echo "$as_me: failed program was:" >&5
2093 sed 's/^/| /' conftest.$ac_ext >&5
2095 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2096 See \`config.log' for more details." >&5
2097 echo "$as_me: error: C compiler cannot create executables
2098 See \`config.log' for more details." >&2;}
2099 { (exit 77); exit 77; }; }
2102 ac_exeext=$ac_cv_exeext
2103 echo "$as_me:$LINENO: result: $ac_file" >&5
2104 echo "${ECHO_T}$ac_file" >&6
2106 # Check the compiler produces executables we can run. If not, either
2107 # the compiler is broken, or we cross compile.
2108 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2109 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2110 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2111 # If not cross compiling, check that we can run a simple program.
2112 if test "$cross_compiling" != yes; then
2113 if { ac_try='./$ac_file'
2114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2115 (eval $ac_try) 2>&5
2116 ac_status=$?
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }; }; then
2119 cross_compiling=no
2120 else
2121 if test "$cross_compiling" = maybe; then
2122 cross_compiling=yes
2123 else
2124 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2125 If you meant to cross compile, use \`--host'.
2126 See \`config.log' for more details." >&5
2127 echo "$as_me: error: cannot run C compiled programs.
2128 If you meant to cross compile, use \`--host'.
2129 See \`config.log' for more details." >&2;}
2130 { (exit 1); exit 1; }; }
2134 echo "$as_me:$LINENO: result: yes" >&5
2135 echo "${ECHO_T}yes" >&6
2137 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2138 ac_clean_files=$ac_clean_files_save
2139 # Check the compiler produces executables we can run. If not, either
2140 # the compiler is broken, or we cross compile.
2141 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2142 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2143 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2144 echo "${ECHO_T}$cross_compiling" >&6
2146 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2147 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2149 (eval $ac_link) 2>&5
2150 ac_status=$?
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); }; then
2153 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2154 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2155 # work properly (i.e., refer to `conftest.exe'), while it won't with
2156 # `rm'.
2157 for ac_file in conftest.exe conftest conftest.*; do
2158 test -f "$ac_file" || continue
2159 case $ac_file in
2160 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2161 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2162 export ac_cv_exeext
2163 break;;
2164 * ) break;;
2165 esac
2166 done
2167 else
2168 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2169 See \`config.log' for more details." >&5
2170 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2171 See \`config.log' for more details." >&2;}
2172 { (exit 1); exit 1; }; }
2175 rm -f conftest$ac_cv_exeext
2176 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2177 echo "${ECHO_T}$ac_cv_exeext" >&6
2179 rm -f conftest.$ac_ext
2180 EXEEXT=$ac_cv_exeext
2181 ac_exeext=$EXEEXT
2183 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2184 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2185 if test "${ac_cv_objext+set}" = set; then
2186 echo $ECHO_N "(cached) $ECHO_C" >&6
2187 else
2188 cat >conftest.$ac_ext <<_ACEOF
2189 /* confdefs.h. */
2190 _ACEOF
2191 cat confdefs.h >>conftest.$ac_ext
2192 cat >>conftest.$ac_ext <<_ACEOF
2193 /* end confdefs.h. */
2196 main ()
2200 return 0;
2202 _ACEOF
2203 rm -f conftest.o conftest.obj
2204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2205 (eval $ac_compile) 2>&5
2206 ac_status=$?
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); }; then
2209 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2210 case $ac_file in
2211 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2212 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2213 break;;
2214 esac
2215 done
2216 else
2217 echo "$as_me: failed program was:" >&5
2218 sed 's/^/| /' conftest.$ac_ext >&5
2220 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2221 See \`config.log' for more details." >&5
2222 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2223 See \`config.log' for more details." >&2;}
2224 { (exit 1); exit 1; }; }
2227 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2229 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2230 echo "${ECHO_T}$ac_cv_objext" >&6
2231 OBJEXT=$ac_cv_objext
2232 ac_objext=$OBJEXT
2233 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2234 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2235 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2236 echo $ECHO_N "(cached) $ECHO_C" >&6
2237 else
2238 cat >conftest.$ac_ext <<_ACEOF
2239 /* confdefs.h. */
2240 _ACEOF
2241 cat confdefs.h >>conftest.$ac_ext
2242 cat >>conftest.$ac_ext <<_ACEOF
2243 /* end confdefs.h. */
2246 main ()
2248 #ifndef __GNUC__
2249 choke me
2250 #endif
2253 return 0;
2255 _ACEOF
2256 rm -f conftest.$ac_objext
2257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2258 (eval $ac_compile) 2>conftest.er1
2259 ac_status=$?
2260 grep -v '^ *+' conftest.er1 >conftest.err
2261 rm -f conftest.er1
2262 cat conftest.err >&5
2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); } &&
2265 { ac_try='test -z "$ac_c_werror_flag"
2266 || test ! -s conftest.err'
2267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268 (eval $ac_try) 2>&5
2269 ac_status=$?
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }; } &&
2272 { ac_try='test -s conftest.$ac_objext'
2273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2274 (eval $ac_try) 2>&5
2275 ac_status=$?
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); }; }; then
2278 ac_compiler_gnu=yes
2279 else
2280 echo "$as_me: failed program was:" >&5
2281 sed 's/^/| /' conftest.$ac_ext >&5
2283 ac_compiler_gnu=no
2285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2286 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2289 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2290 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2291 GCC=`test $ac_compiler_gnu = yes && echo yes`
2292 ac_test_CFLAGS=${CFLAGS+set}
2293 ac_save_CFLAGS=$CFLAGS
2294 CFLAGS="-g"
2295 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2296 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2297 if test "${ac_cv_prog_cc_g+set}" = set; then
2298 echo $ECHO_N "(cached) $ECHO_C" >&6
2299 else
2300 cat >conftest.$ac_ext <<_ACEOF
2301 /* confdefs.h. */
2302 _ACEOF
2303 cat confdefs.h >>conftest.$ac_ext
2304 cat >>conftest.$ac_ext <<_ACEOF
2305 /* end confdefs.h. */
2308 main ()
2312 return 0;
2314 _ACEOF
2315 rm -f conftest.$ac_objext
2316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2317 (eval $ac_compile) 2>conftest.er1
2318 ac_status=$?
2319 grep -v '^ *+' conftest.er1 >conftest.err
2320 rm -f conftest.er1
2321 cat conftest.err >&5
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); } &&
2324 { ac_try='test -z "$ac_c_werror_flag"
2325 || test ! -s conftest.err'
2326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327 (eval $ac_try) 2>&5
2328 ac_status=$?
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; } &&
2331 { ac_try='test -s conftest.$ac_objext'
2332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2333 (eval $ac_try) 2>&5
2334 ac_status=$?
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); }; }; then
2337 ac_cv_prog_cc_g=yes
2338 else
2339 echo "$as_me: failed program was:" >&5
2340 sed 's/^/| /' conftest.$ac_ext >&5
2342 ac_cv_prog_cc_g=no
2344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2346 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2347 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2348 if test "$ac_test_CFLAGS" = set; then
2349 CFLAGS=$ac_save_CFLAGS
2350 elif test $ac_cv_prog_cc_g = yes; then
2351 if test "$GCC" = yes; then
2352 CFLAGS="-g -O2"
2353 else
2354 CFLAGS="-g"
2356 else
2357 if test "$GCC" = yes; then
2358 CFLAGS="-O2"
2359 else
2360 CFLAGS=
2363 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2364 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2365 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2367 else
2368 ac_cv_prog_cc_stdc=no
2369 ac_save_CC=$CC
2370 cat >conftest.$ac_ext <<_ACEOF
2371 /* confdefs.h. */
2372 _ACEOF
2373 cat confdefs.h >>conftest.$ac_ext
2374 cat >>conftest.$ac_ext <<_ACEOF
2375 /* end confdefs.h. */
2376 #include <stdarg.h>
2377 #include <stdio.h>
2378 #include <sys/types.h>
2379 #include <sys/stat.h>
2380 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2381 struct buf { int x; };
2382 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2383 static char *e (p, i)
2384 char **p;
2385 int i;
2387 return p[i];
2389 static char *f (char * (*g) (char **, int), char **p, ...)
2391 char *s;
2392 va_list v;
2393 va_start (v,p);
2394 s = g (p, va_arg (v,int));
2395 va_end (v);
2396 return s;
2399 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2400 function prototypes and stuff, but not '\xHH' hex character constants.
2401 These don't provoke an error unfortunately, instead are silently treated
2402 as 'x'. The following induces an error, until -std1 is added to get
2403 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2404 array size at least. It's necessary to write '\x00'==0 to get something
2405 that's true only with -std1. */
2406 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2408 int test (int i, double x);
2409 struct s1 {int (*f) (int a);};
2410 struct s2 {int (*f) (double a);};
2411 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2412 int argc;
2413 char **argv;
2415 main ()
2417 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2419 return 0;
2421 _ACEOF
2422 # Don't try gcc -ansi; that turns off useful extensions and
2423 # breaks some systems' header files.
2424 # AIX -qlanglvl=ansi
2425 # Ultrix and OSF/1 -std1
2426 # HP-UX 10.20 and later -Ae
2427 # HP-UX older versions -Aa -D_HPUX_SOURCE
2428 # SVR4 -Xc -D__EXTENSIONS__
2429 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2431 CC="$ac_save_CC $ac_arg"
2432 rm -f conftest.$ac_objext
2433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2434 (eval $ac_compile) 2>conftest.er1
2435 ac_status=$?
2436 grep -v '^ *+' conftest.er1 >conftest.err
2437 rm -f conftest.er1
2438 cat conftest.err >&5
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); } &&
2441 { ac_try='test -z "$ac_c_werror_flag"
2442 || test ! -s conftest.err'
2443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444 (eval $ac_try) 2>&5
2445 ac_status=$?
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); }; } &&
2448 { ac_try='test -s conftest.$ac_objext'
2449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450 (eval $ac_try) 2>&5
2451 ac_status=$?
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }; }; then
2454 ac_cv_prog_cc_stdc=$ac_arg
2455 break
2456 else
2457 echo "$as_me: failed program was:" >&5
2458 sed 's/^/| /' conftest.$ac_ext >&5
2461 rm -f conftest.err conftest.$ac_objext
2462 done
2463 rm -f conftest.$ac_ext conftest.$ac_objext
2464 CC=$ac_save_CC
2468 case "x$ac_cv_prog_cc_stdc" in
2469 x|xno)
2470 echo "$as_me:$LINENO: result: none needed" >&5
2471 echo "${ECHO_T}none needed" >&6 ;;
2473 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2474 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2475 CC="$CC $ac_cv_prog_cc_stdc" ;;
2476 esac
2478 # Some people use a C++ compiler to compile C. Since we use `exit',
2479 # in C++ we need to declare it. In case someone uses the same compiler
2480 # for both compiling C and C++ we need to have the C++ compiler decide
2481 # the declaration of exit, since it's the most demanding environment.
2482 cat >conftest.$ac_ext <<_ACEOF
2483 #ifndef __cplusplus
2484 choke me
2485 #endif
2486 _ACEOF
2487 rm -f conftest.$ac_objext
2488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2489 (eval $ac_compile) 2>conftest.er1
2490 ac_status=$?
2491 grep -v '^ *+' conftest.er1 >conftest.err
2492 rm -f conftest.er1
2493 cat conftest.err >&5
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); } &&
2496 { ac_try='test -z "$ac_c_werror_flag"
2497 || test ! -s conftest.err'
2498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2499 (eval $ac_try) 2>&5
2500 ac_status=$?
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); }; } &&
2503 { ac_try='test -s conftest.$ac_objext'
2504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2505 (eval $ac_try) 2>&5
2506 ac_status=$?
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); }; }; then
2509 for ac_declaration in \
2510 '' \
2511 'extern "C" void std::exit (int) throw (); using std::exit;' \
2512 'extern "C" void std::exit (int); using std::exit;' \
2513 'extern "C" void exit (int) throw ();' \
2514 'extern "C" void exit (int);' \
2515 'void exit (int);'
2517 cat >conftest.$ac_ext <<_ACEOF
2518 /* confdefs.h. */
2519 _ACEOF
2520 cat confdefs.h >>conftest.$ac_ext
2521 cat >>conftest.$ac_ext <<_ACEOF
2522 /* end confdefs.h. */
2523 $ac_declaration
2524 #include <stdlib.h>
2526 main ()
2528 exit (42);
2530 return 0;
2532 _ACEOF
2533 rm -f conftest.$ac_objext
2534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2535 (eval $ac_compile) 2>conftest.er1
2536 ac_status=$?
2537 grep -v '^ *+' conftest.er1 >conftest.err
2538 rm -f conftest.er1
2539 cat conftest.err >&5
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); } &&
2542 { ac_try='test -z "$ac_c_werror_flag"
2543 || test ! -s conftest.err'
2544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2545 (eval $ac_try) 2>&5
2546 ac_status=$?
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; } &&
2549 { ac_try='test -s conftest.$ac_objext'
2550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2551 (eval $ac_try) 2>&5
2552 ac_status=$?
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }; }; then
2556 else
2557 echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2560 continue
2562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2563 cat >conftest.$ac_ext <<_ACEOF
2564 /* confdefs.h. */
2565 _ACEOF
2566 cat confdefs.h >>conftest.$ac_ext
2567 cat >>conftest.$ac_ext <<_ACEOF
2568 /* end confdefs.h. */
2569 $ac_declaration
2571 main ()
2573 exit (42);
2575 return 0;
2577 _ACEOF
2578 rm -f conftest.$ac_objext
2579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2580 (eval $ac_compile) 2>conftest.er1
2581 ac_status=$?
2582 grep -v '^ *+' conftest.er1 >conftest.err
2583 rm -f conftest.er1
2584 cat conftest.err >&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); } &&
2587 { ac_try='test -z "$ac_c_werror_flag"
2588 || test ! -s conftest.err'
2589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590 (eval $ac_try) 2>&5
2591 ac_status=$?
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; } &&
2594 { ac_try='test -s conftest.$ac_objext'
2595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596 (eval $ac_try) 2>&5
2597 ac_status=$?
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; }; then
2600 break
2601 else
2602 echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2607 done
2608 rm -f conftest*
2609 if test -n "$ac_declaration"; then
2610 echo '#ifdef __cplusplus' >>confdefs.h
2611 echo $ac_declaration >>confdefs.h
2612 echo '#endif' >>confdefs.h
2615 else
2616 echo "$as_me: failed program was:" >&5
2617 sed 's/^/| /' conftest.$ac_ext >&5
2620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2621 ac_ext=c
2622 ac_cpp='$CPP $CPPFLAGS'
2623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2627 ac_ext=cc
2628 ac_cpp='$CXXCPP $CPPFLAGS'
2629 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2630 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2631 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2632 if test -n "$ac_tool_prefix"; then
2633 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2635 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2636 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2637 echo "$as_me:$LINENO: checking for $ac_word" >&5
2638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2639 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2640 echo $ECHO_N "(cached) $ECHO_C" >&6
2641 else
2642 if test -n "$CXX"; then
2643 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2644 else
2645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 for as_dir in $PATH
2648 IFS=$as_save_IFS
2649 test -z "$as_dir" && as_dir=.
2650 for ac_exec_ext in '' $ac_executable_extensions; do
2651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2652 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2654 break 2
2656 done
2657 done
2661 CXX=$glibcxx_cv_prog_CXX
2662 if test -n "$CXX"; then
2663 echo "$as_me:$LINENO: result: $CXX" >&5
2664 echo "${ECHO_T}$CXX" >&6
2665 else
2666 echo "$as_me:$LINENO: result: no" >&5
2667 echo "${ECHO_T}no" >&6
2670 test -n "$CXX" && break
2671 done
2673 if test -z "$CXX"; then
2674 ac_ct_CXX=$CXX
2675 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2677 # Extract the first word of "$ac_prog", so it can be a program name with args.
2678 set dummy $ac_prog; ac_word=$2
2679 echo "$as_me:$LINENO: checking for $ac_word" >&5
2680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2681 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2682 echo $ECHO_N "(cached) $ECHO_C" >&6
2683 else
2684 if test -n "$ac_ct_CXX"; then
2685 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2686 else
2687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688 for as_dir in $PATH
2690 IFS=$as_save_IFS
2691 test -z "$as_dir" && as_dir=.
2692 for ac_exec_ext in '' $ac_executable_extensions; do
2693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2694 ac_cv_prog_ac_ct_CXX="$ac_prog"
2695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2696 break 2
2698 done
2699 done
2703 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2704 if test -n "$ac_ct_CXX"; then
2705 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2706 echo "${ECHO_T}$ac_ct_CXX" >&6
2707 else
2708 echo "$as_me:$LINENO: result: no" >&5
2709 echo "${ECHO_T}no" >&6
2712 test -n "$ac_ct_CXX" && break
2713 done
2714 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2716 CXX=$ac_ct_CXX
2720 # Provide some information about the compiler.
2721 echo "$as_me:$LINENO:" \
2722 "checking for C++ compiler version" >&5
2723 ac_compiler=`set X $ac_compile; echo $2`
2724 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2725 (eval $ac_compiler --version </dev/null >&5) 2>&5
2726 ac_status=$?
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); }
2729 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2730 (eval $ac_compiler -v </dev/null >&5) 2>&5
2731 ac_status=$?
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }
2734 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2735 (eval $ac_compiler -V </dev/null >&5) 2>&5
2736 ac_status=$?
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); }
2740 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2741 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2742 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2743 echo $ECHO_N "(cached) $ECHO_C" >&6
2744 else
2745 cat >conftest.$ac_ext <<_ACEOF
2746 /* confdefs.h. */
2747 _ACEOF
2748 cat confdefs.h >>conftest.$ac_ext
2749 cat >>conftest.$ac_ext <<_ACEOF
2750 /* end confdefs.h. */
2753 main ()
2755 #ifndef __GNUC__
2756 choke me
2757 #endif
2760 return 0;
2762 _ACEOF
2763 rm -f conftest.$ac_objext
2764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2765 (eval $ac_compile) 2>conftest.er1
2766 ac_status=$?
2767 grep -v '^ *+' conftest.er1 >conftest.err
2768 rm -f conftest.er1
2769 cat conftest.err >&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); } &&
2772 { ac_try='test -z "$ac_cxx_werror_flag"
2773 || test ! -s conftest.err'
2774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775 (eval $ac_try) 2>&5
2776 ac_status=$?
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }; } &&
2779 { ac_try='test -s conftest.$ac_objext'
2780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781 (eval $ac_try) 2>&5
2782 ac_status=$?
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; }; then
2785 ac_compiler_gnu=yes
2786 else
2787 echo "$as_me: failed program was:" >&5
2788 sed 's/^/| /' conftest.$ac_ext >&5
2790 ac_compiler_gnu=no
2792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2793 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2796 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2797 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2798 GXX=`test $ac_compiler_gnu = yes && echo yes`
2799 ac_test_CXXFLAGS=${CXXFLAGS+set}
2800 ac_save_CXXFLAGS=$CXXFLAGS
2801 CXXFLAGS="-g"
2802 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2803 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2804 if test "${ac_cv_prog_cxx_g+set}" = set; then
2805 echo $ECHO_N "(cached) $ECHO_C" >&6
2806 else
2807 cat >conftest.$ac_ext <<_ACEOF
2808 /* confdefs.h. */
2809 _ACEOF
2810 cat confdefs.h >>conftest.$ac_ext
2811 cat >>conftest.$ac_ext <<_ACEOF
2812 /* end confdefs.h. */
2815 main ()
2819 return 0;
2821 _ACEOF
2822 rm -f conftest.$ac_objext
2823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2824 (eval $ac_compile) 2>conftest.er1
2825 ac_status=$?
2826 grep -v '^ *+' conftest.er1 >conftest.err
2827 rm -f conftest.er1
2828 cat conftest.err >&5
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); } &&
2831 { ac_try='test -z "$ac_cxx_werror_flag"
2832 || test ! -s conftest.err'
2833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2834 (eval $ac_try) 2>&5
2835 ac_status=$?
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); }; } &&
2838 { ac_try='test -s conftest.$ac_objext'
2839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840 (eval $ac_try) 2>&5
2841 ac_status=$?
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); }; }; then
2844 ac_cv_prog_cxx_g=yes
2845 else
2846 echo "$as_me: failed program was:" >&5
2847 sed 's/^/| /' conftest.$ac_ext >&5
2849 ac_cv_prog_cxx_g=no
2851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2853 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2854 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2855 if test "$ac_test_CXXFLAGS" = set; then
2856 CXXFLAGS=$ac_save_CXXFLAGS
2857 elif test $ac_cv_prog_cxx_g = yes; then
2858 if test "$GXX" = yes; then
2859 CXXFLAGS="-g -O2"
2860 else
2861 CXXFLAGS="-g"
2863 else
2864 if test "$GXX" = yes; then
2865 CXXFLAGS="-O2"
2866 else
2867 CXXFLAGS=
2870 for ac_declaration in \
2871 '' \
2872 'extern "C" void std::exit (int) throw (); using std::exit;' \
2873 'extern "C" void std::exit (int); using std::exit;' \
2874 'extern "C" void exit (int) throw ();' \
2875 'extern "C" void exit (int);' \
2876 'void exit (int);'
2878 cat >conftest.$ac_ext <<_ACEOF
2879 /* confdefs.h. */
2880 _ACEOF
2881 cat confdefs.h >>conftest.$ac_ext
2882 cat >>conftest.$ac_ext <<_ACEOF
2883 /* end confdefs.h. */
2884 $ac_declaration
2885 #include <stdlib.h>
2887 main ()
2889 exit (42);
2891 return 0;
2893 _ACEOF
2894 rm -f conftest.$ac_objext
2895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2896 (eval $ac_compile) 2>conftest.er1
2897 ac_status=$?
2898 grep -v '^ *+' conftest.er1 >conftest.err
2899 rm -f conftest.er1
2900 cat conftest.err >&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); } &&
2903 { ac_try='test -z "$ac_cxx_werror_flag"
2904 || test ! -s conftest.err'
2905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2906 (eval $ac_try) 2>&5
2907 ac_status=$?
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); }; } &&
2910 { ac_try='test -s conftest.$ac_objext'
2911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2912 (eval $ac_try) 2>&5
2913 ac_status=$?
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }; }; then
2917 else
2918 echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
2921 continue
2923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2924 cat >conftest.$ac_ext <<_ACEOF
2925 /* confdefs.h. */
2926 _ACEOF
2927 cat confdefs.h >>conftest.$ac_ext
2928 cat >>conftest.$ac_ext <<_ACEOF
2929 /* end confdefs.h. */
2930 $ac_declaration
2932 main ()
2934 exit (42);
2936 return 0;
2938 _ACEOF
2939 rm -f conftest.$ac_objext
2940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2941 (eval $ac_compile) 2>conftest.er1
2942 ac_status=$?
2943 grep -v '^ *+' conftest.er1 >conftest.err
2944 rm -f conftest.er1
2945 cat conftest.err >&5
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); } &&
2948 { ac_try='test -z "$ac_cxx_werror_flag"
2949 || test ! -s conftest.err'
2950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2951 (eval $ac_try) 2>&5
2952 ac_status=$?
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); }; } &&
2955 { ac_try='test -s conftest.$ac_objext'
2956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2957 (eval $ac_try) 2>&5
2958 ac_status=$?
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); }; }; then
2961 break
2962 else
2963 echo "$as_me: failed program was:" >&5
2964 sed 's/^/| /' conftest.$ac_ext >&5
2967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2968 done
2969 rm -f conftest*
2970 if test -n "$ac_declaration"; then
2971 echo '#ifdef __cplusplus' >>confdefs.h
2972 echo $ac_declaration >>confdefs.h
2973 echo '#endif' >>confdefs.h
2976 ac_ext=c
2977 ac_cpp='$CPP $CPPFLAGS'
2978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2982 CXXFLAGS="$save_CXXFLAGS"
2988 am__api_version="1.9"
2989 # Find a good install program. We prefer a C program (faster),
2990 # so one script is as good as another. But avoid the broken or
2991 # incompatible versions:
2992 # SysV /etc/install, /usr/sbin/install
2993 # SunOS /usr/etc/install
2994 # IRIX /sbin/install
2995 # AIX /bin/install
2996 # AmigaOS /C/install, which installs bootblocks on floppy discs
2997 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2998 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2999 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3000 # OS/2's system install, which has a completely different semantic
3001 # ./install, which can be erroneously created by make from ./install.sh.
3002 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3003 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3004 if test -z "$INSTALL"; then
3005 if test "${ac_cv_path_install+set}" = set; then
3006 echo $ECHO_N "(cached) $ECHO_C" >&6
3007 else
3008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009 for as_dir in $PATH
3011 IFS=$as_save_IFS
3012 test -z "$as_dir" && as_dir=.
3013 # Account for people who put trailing slashes in PATH elements.
3014 case $as_dir/ in
3015 ./ | .// | /cC/* | \
3016 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3017 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3018 /usr/ucb/* ) ;;
3020 # OSF1 and SCO ODT 3.0 have their own names for install.
3021 # Don't use installbsd from OSF since it installs stuff as root
3022 # by default.
3023 for ac_prog in ginstall scoinst install; do
3024 for ac_exec_ext in '' $ac_executable_extensions; do
3025 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3026 if test $ac_prog = install &&
3027 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3028 # AIX install. It has an incompatible calling convention.
3030 elif test $ac_prog = install &&
3031 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3032 # program-specific install script used by HP pwplus--don't use.
3034 else
3035 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3036 break 3
3039 done
3040 done
3042 esac
3043 done
3047 if test "${ac_cv_path_install+set}" = set; then
3048 INSTALL=$ac_cv_path_install
3049 else
3050 # As a last resort, use the slow shell script. We don't cache a
3051 # path for INSTALL within a source directory, because that will
3052 # break other packages using the cache if that directory is
3053 # removed, or if the path is relative.
3054 INSTALL=$ac_install_sh
3057 echo "$as_me:$LINENO: result: $INSTALL" >&5
3058 echo "${ECHO_T}$INSTALL" >&6
3060 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3061 # It thinks the first close brace ends the variable substitution.
3062 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3064 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3066 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3068 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3069 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3070 # Just in case
3071 sleep 1
3072 echo timestamp > conftest.file
3073 # Do `set' in a subshell so we don't clobber the current shell's
3074 # arguments. Must try -L first in case configure is actually a
3075 # symlink; some systems play weird games with the mod time of symlinks
3076 # (eg FreeBSD returns the mod time of the symlink's containing
3077 # directory).
3078 if (
3079 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3080 if test "$*" = "X"; then
3081 # -L didn't work.
3082 set X `ls -t $srcdir/configure conftest.file`
3084 rm -f conftest.file
3085 if test "$*" != "X $srcdir/configure conftest.file" \
3086 && test "$*" != "X conftest.file $srcdir/configure"; then
3088 # If neither matched, then we have a broken ls. This can happen
3089 # if, for instance, CONFIG_SHELL is bash and it inherits a
3090 # broken ls alias from the environment. This has actually
3091 # happened. Such a system could not be considered "sane".
3092 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3093 alias in your environment" >&5
3094 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3095 alias in your environment" >&2;}
3096 { (exit 1); exit 1; }; }
3099 test "$2" = conftest.file
3101 then
3102 # Ok.
3104 else
3105 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3106 Check your system clock" >&5
3107 echo "$as_me: error: newly created file is older than distributed files!
3108 Check your system clock" >&2;}
3109 { (exit 1); exit 1; }; }
3111 echo "$as_me:$LINENO: result: yes" >&5
3112 echo "${ECHO_T}yes" >&6
3113 test "$program_prefix" != NONE &&
3114 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3115 # Use a double $ so make ignores it.
3116 test "$program_suffix" != NONE &&
3117 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3118 # Double any \ or $. echo might interpret backslashes.
3119 # By default was `s,x,x', remove it if useless.
3120 cat <<\_ACEOF >conftest.sed
3121 s/[\\$]/&&/g;s/;s,x,x,$//
3122 _ACEOF
3123 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3124 rm conftest.sed
3126 # expand $ac_aux_dir to an absolute path
3127 am_aux_dir=`cd $ac_aux_dir && pwd`
3129 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3130 # Use eval to expand $SHELL
3131 if eval "$MISSING --run true"; then
3132 am_missing_run="$MISSING --run "
3133 else
3134 am_missing_run=
3135 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3136 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3139 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3140 # We used to keeping the `.' as first argument, in order to
3141 # allow $(mkdir_p) to be used without argument. As in
3142 # $(mkdir_p) $(somedir)
3143 # where $(somedir) is conditionally defined. However this is wrong
3144 # for two reasons:
3145 # 1. if the package is installed by a user who cannot write `.'
3146 # make install will fail,
3147 # 2. the above comment should most certainly read
3148 # $(mkdir_p) $(DESTDIR)$(somedir)
3149 # so it does not work when $(somedir) is undefined and
3150 # $(DESTDIR) is not.
3151 # To support the latter case, we have to write
3152 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3153 # so the `.' trick is pointless.
3154 mkdir_p='mkdir -p --'
3155 else
3156 # On NextStep and OpenStep, the `mkdir' command does not
3157 # recognize any option. It will interpret all options as
3158 # directories to create, and then abort because `.' already
3159 # exists.
3160 for d in ./-p ./--version;
3162 test -d $d && rmdir $d
3163 done
3164 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3165 if test -f "$ac_aux_dir/mkinstalldirs"; then
3166 mkdir_p='$(mkinstalldirs)'
3167 else
3168 mkdir_p='$(install_sh) -d'
3172 for ac_prog in gawk mawk nawk awk
3174 # Extract the first word of "$ac_prog", so it can be a program name with args.
3175 set dummy $ac_prog; ac_word=$2
3176 echo "$as_me:$LINENO: checking for $ac_word" >&5
3177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3178 if test "${ac_cv_prog_AWK+set}" = set; then
3179 echo $ECHO_N "(cached) $ECHO_C" >&6
3180 else
3181 if test -n "$AWK"; then
3182 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3183 else
3184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185 for as_dir in $PATH
3187 IFS=$as_save_IFS
3188 test -z "$as_dir" && as_dir=.
3189 for ac_exec_ext in '' $ac_executable_extensions; do
3190 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3191 ac_cv_prog_AWK="$ac_prog"
3192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3193 break 2
3195 done
3196 done
3200 AWK=$ac_cv_prog_AWK
3201 if test -n "$AWK"; then
3202 echo "$as_me:$LINENO: result: $AWK" >&5
3203 echo "${ECHO_T}$AWK" >&6
3204 else
3205 echo "$as_me:$LINENO: result: no" >&5
3206 echo "${ECHO_T}no" >&6
3209 test -n "$AWK" && break
3210 done
3212 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3213 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3214 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3215 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3216 echo $ECHO_N "(cached) $ECHO_C" >&6
3217 else
3218 cat >conftest.make <<\_ACEOF
3219 all:
3220 @echo 'ac_maketemp="$(MAKE)"'
3221 _ACEOF
3222 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3223 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3224 if test -n "$ac_maketemp"; then
3225 eval ac_cv_prog_make_${ac_make}_set=yes
3226 else
3227 eval ac_cv_prog_make_${ac_make}_set=no
3229 rm -f conftest.make
3231 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3232 echo "$as_me:$LINENO: result: yes" >&5
3233 echo "${ECHO_T}yes" >&6
3234 SET_MAKE=
3235 else
3236 echo "$as_me:$LINENO: result: no" >&5
3237 echo "${ECHO_T}no" >&6
3238 SET_MAKE="MAKE=${MAKE-make}"
3241 rm -rf .tst 2>/dev/null
3242 mkdir .tst 2>/dev/null
3243 if test -d .tst; then
3244 am__leading_dot=.
3245 else
3246 am__leading_dot=_
3248 rmdir .tst 2>/dev/null
3250 DEPDIR="${am__leading_dot}deps"
3252 ac_config_commands="$ac_config_commands depfiles"
3255 am_make=${MAKE-make}
3256 cat > confinc << 'END'
3257 am__doit:
3258 @echo done
3259 .PHONY: am__doit
3261 # If we don't find an include directive, just comment out the code.
3262 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3263 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3264 am__include="#"
3265 am__quote=
3266 _am_result=none
3267 # First try GNU make style include.
3268 echo "include confinc" > confmf
3269 # We grep out `Entering directory' and `Leaving directory'
3270 # messages which can occur if `w' ends up in MAKEFLAGS.
3271 # In particular we don't look at `^make:' because GNU make might
3272 # be invoked under some other name (usually "gmake"), in which
3273 # case it prints its new name instead of `make'.
3274 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3275 am__include=include
3276 am__quote=
3277 _am_result=GNU
3279 # Now try BSD make style include.
3280 if test "$am__include" = "#"; then
3281 echo '.include "confinc"' > confmf
3282 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3283 am__include=.include
3284 am__quote="\""
3285 _am_result=BSD
3290 echo "$as_me:$LINENO: result: $_am_result" >&5
3291 echo "${ECHO_T}$_am_result" >&6
3292 rm -f confinc confmf
3294 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3295 if test "${enable_dependency_tracking+set}" = set; then
3296 enableval="$enable_dependency_tracking"
3299 if test "x$enable_dependency_tracking" != xno; then
3300 am_depcomp="$ac_aux_dir/depcomp"
3301 AMDEPBACKSLASH='\'
3305 if test "x$enable_dependency_tracking" != xno; then
3306 AMDEP_TRUE=
3307 AMDEP_FALSE='#'
3308 else
3309 AMDEP_TRUE='#'
3310 AMDEP_FALSE=
3315 # test to see if srcdir already configured
3316 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3317 test -f $srcdir/config.status; then
3318 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3319 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3320 { (exit 1); exit 1; }; }
3323 # test whether we have cygpath
3324 if test -z "$CYGPATH_W"; then
3325 if (cygpath --version) >/dev/null 2>/dev/null; then
3326 CYGPATH_W='cygpath -w'
3327 else
3328 CYGPATH_W=echo
3333 # Define the identity of the package.
3334 PACKAGE='libjava'
3335 VERSION='version-unused'
3338 cat >>confdefs.h <<_ACEOF
3339 #define PACKAGE "$PACKAGE"
3340 _ACEOF
3343 cat >>confdefs.h <<_ACEOF
3344 #define VERSION "$VERSION"
3345 _ACEOF
3347 # Some tools Automake needs.
3349 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3352 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3355 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3358 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3361 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3363 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3365 # Installed binaries are usually stripped using `strip' when the user
3366 # run `make install-strip'. However `strip' might not be the right
3367 # tool to use in cross-compilation environments, therefore Automake
3368 # will honor the `STRIP' environment variable to overrule this program.
3369 if test "$cross_compiling" != no; then
3370 if test -n "$ac_tool_prefix"; then
3371 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3372 set dummy ${ac_tool_prefix}strip; ac_word=$2
3373 echo "$as_me:$LINENO: checking for $ac_word" >&5
3374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3375 if test "${ac_cv_prog_STRIP+set}" = set; then
3376 echo $ECHO_N "(cached) $ECHO_C" >&6
3377 else
3378 if test -n "$STRIP"; then
3379 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3380 else
3381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3382 for as_dir in $PATH
3384 IFS=$as_save_IFS
3385 test -z "$as_dir" && as_dir=.
3386 for ac_exec_ext in '' $ac_executable_extensions; do
3387 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3388 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3390 break 2
3392 done
3393 done
3397 STRIP=$ac_cv_prog_STRIP
3398 if test -n "$STRIP"; then
3399 echo "$as_me:$LINENO: result: $STRIP" >&5
3400 echo "${ECHO_T}$STRIP" >&6
3401 else
3402 echo "$as_me:$LINENO: result: no" >&5
3403 echo "${ECHO_T}no" >&6
3407 if test -z "$ac_cv_prog_STRIP"; then
3408 ac_ct_STRIP=$STRIP
3409 # Extract the first word of "strip", so it can be a program name with args.
3410 set dummy strip; ac_word=$2
3411 echo "$as_me:$LINENO: checking for $ac_word" >&5
3412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3413 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3415 else
3416 if test -n "$ac_ct_STRIP"; then
3417 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3418 else
3419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3420 for as_dir in $PATH
3422 IFS=$as_save_IFS
3423 test -z "$as_dir" && as_dir=.
3424 for ac_exec_ext in '' $ac_executable_extensions; do
3425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3426 ac_cv_prog_ac_ct_STRIP="strip"
3427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3428 break 2
3430 done
3431 done
3433 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3436 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3437 if test -n "$ac_ct_STRIP"; then
3438 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3439 echo "${ECHO_T}$ac_ct_STRIP" >&6
3440 else
3441 echo "$as_me:$LINENO: result: no" >&5
3442 echo "${ECHO_T}no" >&6
3445 STRIP=$ac_ct_STRIP
3446 else
3447 STRIP="$ac_cv_prog_STRIP"
3451 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3453 # We need awk for the "check" target. The system "awk" is bad on
3454 # some platforms.
3455 # Always define AMTAR for backward compatibility.
3457 AMTAR=${AMTAR-"${am_missing_run}tar"}
3459 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3464 depcc="$CC" am_compiler_list=
3466 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3467 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3468 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3469 echo $ECHO_N "(cached) $ECHO_C" >&6
3470 else
3471 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3472 # We make a subdir and do the tests there. Otherwise we can end up
3473 # making bogus files that we don't know about and never remove. For
3474 # instance it was reported that on HP-UX the gcc test will end up
3475 # making a dummy file named `D' -- because `-MD' means `put the output
3476 # in D'.
3477 mkdir conftest.dir
3478 # Copy depcomp to subdir because otherwise we won't find it if we're
3479 # using a relative directory.
3480 cp "$am_depcomp" conftest.dir
3481 cd conftest.dir
3482 # We will build objects and dependencies in a subdirectory because
3483 # it helps to detect inapplicable dependency modes. For instance
3484 # both Tru64's cc and ICC support -MD to output dependencies as a
3485 # side effect of compilation, but ICC will put the dependencies in
3486 # the current directory while Tru64 will put them in the object
3487 # directory.
3488 mkdir sub
3490 am_cv_CC_dependencies_compiler_type=none
3491 if test "$am_compiler_list" = ""; then
3492 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3494 for depmode in $am_compiler_list; do
3495 # Setup a source with many dependencies, because some compilers
3496 # like to wrap large dependency lists on column 80 (with \), and
3497 # we should not choose a depcomp mode which is confused by this.
3499 # We need to recreate these files for each test, as the compiler may
3500 # overwrite some of them when testing with obscure command lines.
3501 # This happens at least with the AIX C compiler.
3502 : > sub/conftest.c
3503 for i in 1 2 3 4 5 6; do
3504 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3505 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3506 # Solaris 8's {/usr,}/bin/sh.
3507 touch sub/conftst$i.h
3508 done
3509 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3511 case $depmode in
3512 nosideeffect)
3513 # after this tag, mechanisms are not by side-effect, so they'll
3514 # only be used when explicitly requested
3515 if test "x$enable_dependency_tracking" = xyes; then
3516 continue
3517 else
3518 break
3521 none) break ;;
3522 esac
3523 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3524 # mode. It turns out that the SunPro C++ compiler does not properly
3525 # handle `-M -o', and we need to detect this.
3526 if depmode=$depmode \
3527 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3528 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3529 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3530 >/dev/null 2>conftest.err &&
3531 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3532 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3533 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3534 # icc doesn't choke on unknown options, it will just issue warnings
3535 # or remarks (even with -Werror). So we grep stderr for any message
3536 # that says an option was ignored or not supported.
3537 # When given -MP, icc 7.0 and 7.1 complain thusly:
3538 # icc: Command line warning: ignoring option '-M'; no argument required
3539 # The diagnosis changed in icc 8.0:
3540 # icc: Command line remark: option '-MP' not supported
3541 if (grep 'ignoring option' conftest.err ||
3542 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3543 am_cv_CC_dependencies_compiler_type=$depmode
3544 break
3547 done
3549 cd ..
3550 rm -rf conftest.dir
3551 else
3552 am_cv_CC_dependencies_compiler_type=none
3556 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3557 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3558 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3563 test "x$enable_dependency_tracking" != xno \
3564 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3565 am__fastdepCC_TRUE=
3566 am__fastdepCC_FALSE='#'
3567 else
3568 am__fastdepCC_TRUE='#'
3569 am__fastdepCC_FALSE=
3573 depcc="$CXX" am_compiler_list=
3575 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3576 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3577 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3578 echo $ECHO_N "(cached) $ECHO_C" >&6
3579 else
3580 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3581 # We make a subdir and do the tests there. Otherwise we can end up
3582 # making bogus files that we don't know about and never remove. For
3583 # instance it was reported that on HP-UX the gcc test will end up
3584 # making a dummy file named `D' -- because `-MD' means `put the output
3585 # in D'.
3586 mkdir conftest.dir
3587 # Copy depcomp to subdir because otherwise we won't find it if we're
3588 # using a relative directory.
3589 cp "$am_depcomp" conftest.dir
3590 cd conftest.dir
3591 # We will build objects and dependencies in a subdirectory because
3592 # it helps to detect inapplicable dependency modes. For instance
3593 # both Tru64's cc and ICC support -MD to output dependencies as a
3594 # side effect of compilation, but ICC will put the dependencies in
3595 # the current directory while Tru64 will put them in the object
3596 # directory.
3597 mkdir sub
3599 am_cv_CXX_dependencies_compiler_type=none
3600 if test "$am_compiler_list" = ""; then
3601 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3603 for depmode in $am_compiler_list; do
3604 # Setup a source with many dependencies, because some compilers
3605 # like to wrap large dependency lists on column 80 (with \), and
3606 # we should not choose a depcomp mode which is confused by this.
3608 # We need to recreate these files for each test, as the compiler may
3609 # overwrite some of them when testing with obscure command lines.
3610 # This happens at least with the AIX C compiler.
3611 : > sub/conftest.c
3612 for i in 1 2 3 4 5 6; do
3613 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3614 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3615 # Solaris 8's {/usr,}/bin/sh.
3616 touch sub/conftst$i.h
3617 done
3618 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3620 case $depmode in
3621 nosideeffect)
3622 # after this tag, mechanisms are not by side-effect, so they'll
3623 # only be used when explicitly requested
3624 if test "x$enable_dependency_tracking" = xyes; then
3625 continue
3626 else
3627 break
3630 none) break ;;
3631 esac
3632 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3633 # mode. It turns out that the SunPro C++ compiler does not properly
3634 # handle `-M -o', and we need to detect this.
3635 if depmode=$depmode \
3636 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3637 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3638 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3639 >/dev/null 2>conftest.err &&
3640 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3641 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3642 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3643 # icc doesn't choke on unknown options, it will just issue warnings
3644 # or remarks (even with -Werror). So we grep stderr for any message
3645 # that says an option was ignored or not supported.
3646 # When given -MP, icc 7.0 and 7.1 complain thusly:
3647 # icc: Command line warning: ignoring option '-M'; no argument required
3648 # The diagnosis changed in icc 8.0:
3649 # icc: Command line remark: option '-MP' not supported
3650 if (grep 'ignoring option' conftest.err ||
3651 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3652 am_cv_CXX_dependencies_compiler_type=$depmode
3653 break
3656 done
3658 cd ..
3659 rm -rf conftest.dir
3660 else
3661 am_cv_CXX_dependencies_compiler_type=none
3665 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3666 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3667 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3672 test "x$enable_dependency_tracking" != xno \
3673 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3674 am__fastdepCXX_TRUE=
3675 am__fastdepCXX_FALSE='#'
3676 else
3677 am__fastdepCXX_TRUE='#'
3678 am__fastdepCXX_FALSE=
3684 if test -n "$ac_tool_prefix"; then
3685 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3686 set dummy ${ac_tool_prefix}as; ac_word=$2
3687 echo "$as_me:$LINENO: checking for $ac_word" >&5
3688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3689 if test "${ac_cv_prog_AS+set}" = set; then
3690 echo $ECHO_N "(cached) $ECHO_C" >&6
3691 else
3692 if test -n "$AS"; then
3693 ac_cv_prog_AS="$AS" # Let the user override the test.
3694 else
3695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3696 for as_dir in $PATH
3698 IFS=$as_save_IFS
3699 test -z "$as_dir" && as_dir=.
3700 for ac_exec_ext in '' $ac_executable_extensions; do
3701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3702 ac_cv_prog_AS="${ac_tool_prefix}as"
3703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3704 break 2
3706 done
3707 done
3711 AS=$ac_cv_prog_AS
3712 if test -n "$AS"; then
3713 echo "$as_me:$LINENO: result: $AS" >&5
3714 echo "${ECHO_T}$AS" >&6
3715 else
3716 echo "$as_me:$LINENO: result: no" >&5
3717 echo "${ECHO_T}no" >&6
3721 if test -z "$ac_cv_prog_AS"; then
3722 ac_ct_AS=$AS
3723 # Extract the first word of "as", so it can be a program name with args.
3724 set dummy as; ac_word=$2
3725 echo "$as_me:$LINENO: checking for $ac_word" >&5
3726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3727 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
3729 else
3730 if test -n "$ac_ct_AS"; then
3731 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3732 else
3733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3734 for as_dir in $PATH
3736 IFS=$as_save_IFS
3737 test -z "$as_dir" && as_dir=.
3738 for ac_exec_ext in '' $ac_executable_extensions; do
3739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3740 ac_cv_prog_ac_ct_AS="as"
3741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3742 break 2
3744 done
3745 done
3749 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3750 if test -n "$ac_ct_AS"; then
3751 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3752 echo "${ECHO_T}$ac_ct_AS" >&6
3753 else
3754 echo "$as_me:$LINENO: result: no" >&5
3755 echo "${ECHO_T}no" >&6
3758 AS=$ac_ct_AS
3759 else
3760 AS="$ac_cv_prog_AS"
3763 if test -n "$ac_tool_prefix"; then
3764 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3765 set dummy ${ac_tool_prefix}ld; ac_word=$2
3766 echo "$as_me:$LINENO: checking for $ac_word" >&5
3767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3768 if test "${ac_cv_prog_LD+set}" = set; then
3769 echo $ECHO_N "(cached) $ECHO_C" >&6
3770 else
3771 if test -n "$LD"; then
3772 ac_cv_prog_LD="$LD" # Let the user override the test.
3773 else
3774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775 for as_dir in $PATH
3777 IFS=$as_save_IFS
3778 test -z "$as_dir" && as_dir=.
3779 for ac_exec_ext in '' $ac_executable_extensions; do
3780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3781 ac_cv_prog_LD="${ac_tool_prefix}ld"
3782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3783 break 2
3785 done
3786 done
3790 LD=$ac_cv_prog_LD
3791 if test -n "$LD"; then
3792 echo "$as_me:$LINENO: result: $LD" >&5
3793 echo "${ECHO_T}$LD" >&6
3794 else
3795 echo "$as_me:$LINENO: result: no" >&5
3796 echo "${ECHO_T}no" >&6
3800 if test -z "$ac_cv_prog_LD"; then
3801 ac_ct_LD=$LD
3802 # Extract the first word of "ld", so it can be a program name with args.
3803 set dummy ld; ac_word=$2
3804 echo "$as_me:$LINENO: checking for $ac_word" >&5
3805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3806 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3807 echo $ECHO_N "(cached) $ECHO_C" >&6
3808 else
3809 if test -n "$ac_ct_LD"; then
3810 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3811 else
3812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813 for as_dir in $PATH
3815 IFS=$as_save_IFS
3816 test -z "$as_dir" && as_dir=.
3817 for ac_exec_ext in '' $ac_executable_extensions; do
3818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3819 ac_cv_prog_ac_ct_LD="ld"
3820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3821 break 2
3823 done
3824 done
3828 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3829 if test -n "$ac_ct_LD"; then
3830 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
3831 echo "${ECHO_T}$ac_ct_LD" >&6
3832 else
3833 echo "$as_me:$LINENO: result: no" >&5
3834 echo "${ECHO_T}no" >&6
3837 LD=$ac_ct_LD
3838 else
3839 LD="$ac_cv_prog_LD"
3842 if test -n "$ac_tool_prefix"; then
3843 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3844 set dummy ${ac_tool_prefix}ar; ac_word=$2
3845 echo "$as_me:$LINENO: checking for $ac_word" >&5
3846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3847 if test "${ac_cv_prog_AR+set}" = set; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3849 else
3850 if test -n "$AR"; then
3851 ac_cv_prog_AR="$AR" # Let the user override the test.
3852 else
3853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854 for as_dir in $PATH
3856 IFS=$as_save_IFS
3857 test -z "$as_dir" && as_dir=.
3858 for ac_exec_ext in '' $ac_executable_extensions; do
3859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3860 ac_cv_prog_AR="${ac_tool_prefix}ar"
3861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3862 break 2
3864 done
3865 done
3869 AR=$ac_cv_prog_AR
3870 if test -n "$AR"; then
3871 echo "$as_me:$LINENO: result: $AR" >&5
3872 echo "${ECHO_T}$AR" >&6
3873 else
3874 echo "$as_me:$LINENO: result: no" >&5
3875 echo "${ECHO_T}no" >&6
3879 if test -z "$ac_cv_prog_AR"; then
3880 ac_ct_AR=$AR
3881 # Extract the first word of "ar", so it can be a program name with args.
3882 set dummy ar; ac_word=$2
3883 echo "$as_me:$LINENO: checking for $ac_word" >&5
3884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3885 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3887 else
3888 if test -n "$ac_ct_AR"; then
3889 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3890 else
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892 for as_dir in $PATH
3894 IFS=$as_save_IFS
3895 test -z "$as_dir" && as_dir=.
3896 for ac_exec_ext in '' $ac_executable_extensions; do
3897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3898 ac_cv_prog_ac_ct_AR="ar"
3899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3900 break 2
3902 done
3903 done
3907 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3908 if test -n "$ac_ct_AR"; then
3909 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3910 echo "${ECHO_T}$ac_ct_AR" >&6
3911 else
3912 echo "$as_me:$LINENO: result: no" >&5
3913 echo "${ECHO_T}no" >&6
3916 AR=$ac_ct_AR
3917 else
3918 AR="$ac_cv_prog_AR"
3921 if test -n "$ac_tool_prefix"; then
3922 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3923 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3924 echo "$as_me:$LINENO: checking for $ac_word" >&5
3925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3926 if test "${ac_cv_prog_RANLIB+set}" = set; then
3927 echo $ECHO_N "(cached) $ECHO_C" >&6
3928 else
3929 if test -n "$RANLIB"; then
3930 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3931 else
3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933 for as_dir in $PATH
3935 IFS=$as_save_IFS
3936 test -z "$as_dir" && as_dir=.
3937 for ac_exec_ext in '' $ac_executable_extensions; do
3938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3939 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3941 break 2
3943 done
3944 done
3948 RANLIB=$ac_cv_prog_RANLIB
3949 if test -n "$RANLIB"; then
3950 echo "$as_me:$LINENO: result: $RANLIB" >&5
3951 echo "${ECHO_T}$RANLIB" >&6
3952 else
3953 echo "$as_me:$LINENO: result: no" >&5
3954 echo "${ECHO_T}no" >&6
3958 if test -z "$ac_cv_prog_RANLIB"; then
3959 ac_ct_RANLIB=$RANLIB
3960 # Extract the first word of "ranlib", so it can be a program name with args.
3961 set dummy ranlib; ac_word=$2
3962 echo "$as_me:$LINENO: checking for $ac_word" >&5
3963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3964 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
3966 else
3967 if test -n "$ac_ct_RANLIB"; then
3968 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3969 else
3970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 for as_dir in $PATH
3973 IFS=$as_save_IFS
3974 test -z "$as_dir" && as_dir=.
3975 for ac_exec_ext in '' $ac_executable_extensions; do
3976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3977 ac_cv_prog_ac_ct_RANLIB="ranlib"
3978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3979 break 2
3981 done
3982 done
3984 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3987 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3988 if test -n "$ac_ct_RANLIB"; then
3989 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3990 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3991 else
3992 echo "$as_me:$LINENO: result: no" >&5
3993 echo "${ECHO_T}no" >&6
3996 RANLIB=$ac_ct_RANLIB
3997 else
3998 RANLIB="$ac_cv_prog_RANLIB"
4001 for ac_prog in gawk mawk nawk awk
4003 # Extract the first word of "$ac_prog", so it can be a program name with args.
4004 set dummy $ac_prog; ac_word=$2
4005 echo "$as_me:$LINENO: checking for $ac_word" >&5
4006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4007 if test "${ac_cv_prog_AWK+set}" = set; then
4008 echo $ECHO_N "(cached) $ECHO_C" >&6
4009 else
4010 if test -n "$AWK"; then
4011 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4012 else
4013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4014 for as_dir in $PATH
4016 IFS=$as_save_IFS
4017 test -z "$as_dir" && as_dir=.
4018 for ac_exec_ext in '' $ac_executable_extensions; do
4019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4020 ac_cv_prog_AWK="$ac_prog"
4021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4022 break 2
4024 done
4025 done
4029 AWK=$ac_cv_prog_AWK
4030 if test -n "$AWK"; then
4031 echo "$as_me:$LINENO: result: $AWK" >&5
4032 echo "${ECHO_T}$AWK" >&6
4033 else
4034 echo "$as_me:$LINENO: result: no" >&5
4035 echo "${ECHO_T}no" >&6
4038 test -n "$AWK" && break
4039 done
4041 for ac_prog in jar fastjar
4043 # Extract the first word of "$ac_prog", so it can be a program name with args.
4044 set dummy $ac_prog; ac_word=$2
4045 echo "$as_me:$LINENO: checking for $ac_word" >&5
4046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4047 if test "${ac_cv_prog_JAR+set}" = set; then
4048 echo $ECHO_N "(cached) $ECHO_C" >&6
4049 else
4050 if test -n "$JAR"; then
4051 ac_cv_prog_JAR="$JAR" # Let the user override the test.
4052 else
4053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4054 for as_dir in $PATH
4056 IFS=$as_save_IFS
4057 test -z "$as_dir" && as_dir=.
4058 for ac_exec_ext in '' $ac_executable_extensions; do
4059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4060 ac_cv_prog_JAR="$ac_prog"
4061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4062 break 2
4064 done
4065 done
4069 JAR=$ac_cv_prog_JAR
4070 if test -n "$JAR"; then
4071 echo "$as_me:$LINENO: result: $JAR" >&5
4072 echo "${ECHO_T}$JAR" >&6
4073 else
4074 echo "$as_me:$LINENO: result: no" >&5
4075 echo "${ECHO_T}no" >&6
4078 test -n "$JAR" && break
4079 done
4080 test -n "$JAR" || JAR="no"
4082 # Extract the first word of "zip", so it can be a program name with args.
4083 set dummy zip; ac_word=$2
4084 echo "$as_me:$LINENO: checking for $ac_word" >&5
4085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4086 if test "${ac_cv_path_ZIP+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4088 else
4089 case $ZIP in
4090 [\\/]* | ?:[\\/]*)
4091 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
4094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4095 for as_dir in $PATH
4097 IFS=$as_save_IFS
4098 test -z "$as_dir" && as_dir=.
4099 for ac_exec_ext in '' $ac_executable_extensions; do
4100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4101 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
4102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4103 break 2
4105 done
4106 done
4108 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
4110 esac
4112 ZIP=$ac_cv_path_ZIP
4114 if test -n "$ZIP"; then
4115 echo "$as_me:$LINENO: result: $ZIP" >&5
4116 echo "${ECHO_T}$ZIP" >&6
4117 else
4118 echo "$as_me:$LINENO: result: no" >&5
4119 echo "${ECHO_T}no" >&6
4122 # Extract the first word of "unzip", so it can be a program name with args.
4123 set dummy unzip; ac_word=$2
4124 echo "$as_me:$LINENO: checking for $ac_word" >&5
4125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4126 if test "${ac_cv_path_UNZIP+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4128 else
4129 case $UNZIP in
4130 [\\/]* | ?:[\\/]*)
4131 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
4134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135 for as_dir in $PATH
4137 IFS=$as_save_IFS
4138 test -z "$as_dir" && as_dir=.
4139 for ac_exec_ext in '' $ac_executable_extensions; do
4140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4141 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
4142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4143 break 2
4145 done
4146 done
4148 test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
4150 esac
4152 UNZIP=$ac_cv_path_UNZIP
4154 if test -n "$UNZIP"; then
4155 echo "$as_me:$LINENO: result: $UNZIP" >&5
4156 echo "${ECHO_T}$UNZIP" >&6
4157 else
4158 echo "$as_me:$LINENO: result: no" >&5
4159 echo "${ECHO_T}no" >&6
4164 if test "$JAR" = no; then
4165 BASH_JAR_TRUE=
4166 BASH_JAR_FALSE='#'
4167 else
4168 BASH_JAR_TRUE='#'
4169 BASH_JAR_FALSE=
4172 if test "$ZIP" = no; then
4173 if test "$JAR" = no; then
4174 { { echo "$as_me:$LINENO: error: cannot find neither zip nor jar, cannot continue" >&5
4175 echo "$as_me: error: cannot find neither zip nor jar, cannot continue" >&2;}
4176 { (exit 1); exit 1; }; }
4178 else
4179 # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
4180 JAR=`pwd`/scripts/jar
4183 # Find a good install program. We prefer a C program (faster),
4184 # so one script is as good as another. But avoid the broken or
4185 # incompatible versions:
4186 # SysV /etc/install, /usr/sbin/install
4187 # SunOS /usr/etc/install
4188 # IRIX /sbin/install
4189 # AIX /bin/install
4190 # AmigaOS /C/install, which installs bootblocks on floppy discs
4191 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4192 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4193 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4194 # OS/2's system install, which has a completely different semantic
4195 # ./install, which can be erroneously created by make from ./install.sh.
4196 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4197 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4198 if test -z "$INSTALL"; then
4199 if test "${ac_cv_path_install+set}" = set; then
4200 echo $ECHO_N "(cached) $ECHO_C" >&6
4201 else
4202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4203 for as_dir in $PATH
4205 IFS=$as_save_IFS
4206 test -z "$as_dir" && as_dir=.
4207 # Account for people who put trailing slashes in PATH elements.
4208 case $as_dir/ in
4209 ./ | .// | /cC/* | \
4210 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4211 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4212 /usr/ucb/* ) ;;
4214 # OSF1 and SCO ODT 3.0 have their own names for install.
4215 # Don't use installbsd from OSF since it installs stuff as root
4216 # by default.
4217 for ac_prog in ginstall scoinst install; do
4218 for ac_exec_ext in '' $ac_executable_extensions; do
4219 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4220 if test $ac_prog = install &&
4221 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4222 # AIX install. It has an incompatible calling convention.
4224 elif test $ac_prog = install &&
4225 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4226 # program-specific install script used by HP pwplus--don't use.
4228 else
4229 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4230 break 3
4233 done
4234 done
4236 esac
4237 done
4241 if test "${ac_cv_path_install+set}" = set; then
4242 INSTALL=$ac_cv_path_install
4243 else
4244 # As a last resort, use the slow shell script. We don't cache a
4245 # path for INSTALL within a source directory, because that will
4246 # break other packages using the cache if that directory is
4247 # removed, or if the path is relative.
4248 INSTALL=$ac_install_sh
4251 echo "$as_me:$LINENO: result: $INSTALL" >&5
4252 echo "${ECHO_T}$INSTALL" >&6
4254 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4255 # It thinks the first close brace ends the variable substitution.
4256 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4258 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4260 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4263 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4264 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4265 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4266 if test "${enable_maintainer_mode+set}" = set; then
4267 enableval="$enable_maintainer_mode"
4268 USE_MAINTAINER_MODE=$enableval
4269 else
4270 USE_MAINTAINER_MODE=no
4272 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4273 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4276 if test $USE_MAINTAINER_MODE = yes; then
4277 MAINTAINER_MODE_TRUE=
4278 MAINTAINER_MODE_FALSE='#'
4279 else
4280 MAINTAINER_MODE_TRUE='#'
4281 MAINTAINER_MODE_FALSE=
4284 MAINT=$MAINTAINER_MODE_TRUE
4290 # configure.host sets the following important variables
4291 # libgcj_cflags - host specific C compiler flags
4292 # libgcj_cxxflags - host specific C++ compiler flags
4293 # libgcj_javaflags - host specific Java compiler flags
4295 libgcj_cflags=
4296 libgcj_cxxflags=
4297 libgcj_javaflags=
4299 . ${srcdir}/configure.host
4301 LIBGCJ_CFLAGS="${libgcj_cflags}"
4302 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4303 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4304 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4310 # Only use libltdl for non-newlib builds.
4311 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4312 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
4313 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4314 library_names_spec=
4315 libname_spec='lib$name'
4316 soname_spec=
4317 shrext=".so"
4318 postinstall_cmds=
4319 postuninstall_cmds=
4320 finish_cmds=
4321 finish_eval=
4322 shlibpath_var=
4323 shlibpath_overrides_runpath=unknown
4324 version_type=none
4325 dynamic_linker="$host_os ld.so"
4326 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4327 if test "$GCC" = yes; then
4328 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4329 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
4330 # if the path contains ";" then we assume it to be the separator
4331 # otherwise default to the standard path separator (i.e. ":") - it is
4332 # assumed that no part of a normal pathname contains ";" but that should
4333 # okay in the real world where ";" in dirpaths is itself problematic.
4334 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4335 else
4336 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4338 else
4339 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4341 need_lib_prefix=unknown
4342 hardcode_into_libs=no
4344 # when you set need_version to no, make sure it does not cause -set_version
4345 # flags to be left without arguments
4346 need_version=unknown
4348 case $host_os in
4349 aix3*)
4350 version_type=linux
4351 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4352 shlibpath_var=LIBPATH
4354 # AIX 3 has no versioning support, so we append a major version to the name.
4355 soname_spec='${libname}${release}${shared_ext}$major'
4358 aix4* | aix5*)
4359 version_type=linux
4360 need_lib_prefix=no
4361 need_version=no
4362 hardcode_into_libs=yes
4363 if test "$host_cpu" = ia64; then
4364 # AIX 5 supports IA64
4365 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4366 shlibpath_var=LD_LIBRARY_PATH
4367 else
4368 # With GCC up to 2.95.x, collect2 would create an import file
4369 # for dependence libraries. The import file would start with
4370 # the line `#! .'. This would cause the generated library to
4371 # depend on `.', always an invalid library. This was fixed in
4372 # development snapshots of GCC prior to 3.0.
4373 case $host_os in
4374 aix4 | aix4.[01] | aix4.[01].*)
4375 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4376 echo ' yes '
4377 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4379 else
4380 can_build_shared=no
4383 esac
4384 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4385 # soname into executable. Probably we can add versioning support to
4386 # collect2, so additional links can be useful in future.
4387 if test "$aix_use_runtimelinking" = yes; then
4388 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4389 # instead of lib<name>.a to let people know that these are not
4390 # typical AIX shared libraries.
4391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4392 else
4393 # We preserve .a as extension for shared libraries through AIX4.2
4394 # and later when we are not doing run time linking.
4395 library_names_spec='${libname}${release}.a $libname.a'
4396 soname_spec='${libname}${release}${shared_ext}$major'
4398 shlibpath_var=LIBPATH
4402 amigaos*)
4403 library_names_spec='$libname.ixlibrary $libname.a'
4404 # Create ${libname}_ixlibrary.a entries in /sys/libs.
4405 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'
4408 beos*)
4409 library_names_spec='${libname}${shared_ext}'
4410 dynamic_linker="$host_os ld.so"
4411 shlibpath_var=LIBRARY_PATH
4414 bsdi4*)
4415 version_type=linux
4416 need_version=no
4417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4418 soname_spec='${libname}${release}${shared_ext}$major'
4419 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4420 shlibpath_var=LD_LIBRARY_PATH
4421 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4422 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4423 # the default ld.so.conf also contains /usr/contrib/lib and
4424 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4425 # libtool to hard-code these into programs
4428 cygwin* | mingw* | pw32*)
4429 version_type=windows
4430 shrext=".dll"
4431 need_version=no
4432 need_lib_prefix=no
4434 case $GCC,$host_os in
4435 yes,cygwin* | yes,mingw* | yes,pw32*)
4436 library_names_spec='$libname.dll.a'
4437 # DLL is installed to $(libdir)/../bin by postinstall_cmds
4438 postinstall_cmds='base_file=`basename \${file}`~
4439 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
4440 dldir=$destdir/`dirname \$dlpath`~
4441 test -d \$dldir || mkdir -p \$dldir~
4442 $install_prog $dir/$dlname \$dldir/$dlname'
4443 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4444 dlpath=$dir/\$dldll~
4445 $rm \$dlpath'
4446 shlibpath_overrides_runpath=yes
4448 case $host_os in
4449 cygwin*)
4450 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4451 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4452 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
4454 mingw*)
4455 # MinGW DLLs use traditional 'lib' prefix
4456 soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4457 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4458 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
4459 # It is most probably a Windows format PATH printed by
4460 # mingw gcc, but we are running on Cygwin. Gcc prints its search
4461 # path with ; separators, and with drive letters. We can handle the
4462 # drive letters (cygwin fileutils understands them), so leave them,
4463 # especially as we might pass files found there to a mingw objdump,
4464 # which wouldn't understand a cygwinified path. Ahh.
4465 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4466 else
4467 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4470 pw32*)
4471 # pw32 DLLs use 'pw' prefix rather than 'lib'
4472 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
4474 esac
4478 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
4480 esac
4481 dynamic_linker='Win32 ld.exe'
4482 # FIXME: first we should search . and the directory the executable is in
4483 shlibpath_var=PATH
4486 darwin* | rhapsody*)
4487 dynamic_linker="$host_os dyld"
4488 version_type=darwin
4489 need_lib_prefix=no
4490 need_version=no
4491 # FIXME: Relying on posixy $() will cause problems for
4492 # cross-compilation, but unfortunately the echo tests do not
4493 # yet detect zsh echo's removal of \ escapes.
4494 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4495 soname_spec='${libname}${release}${major}$shared_ext'
4496 shlibpath_overrides_runpath=yes
4497 shlibpath_var=DYLD_LIBRARY_PATH
4498 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
4499 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
4500 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
4501 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"`
4503 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4506 dgux*)
4507 version_type=linux
4508 need_lib_prefix=no
4509 need_version=no
4510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4511 soname_spec='${libname}${release}${shared_ext}$major'
4512 shlibpath_var=LD_LIBRARY_PATH
4515 freebsd1*)
4516 dynamic_linker=no
4519 freebsd*)
4520 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4521 version_type=freebsd-$objformat
4522 case $version_type in
4523 freebsd-elf*)
4524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4525 need_version=no
4526 need_lib_prefix=no
4528 freebsd-*)
4529 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4530 need_version=yes
4532 esac
4533 shlibpath_var=LD_LIBRARY_PATH
4534 case $host_os in
4535 freebsd2*)
4536 shlibpath_overrides_runpath=yes
4538 freebsd3.01* | freebsdelf3.01*)
4539 shlibpath_overrides_runpath=yes
4540 hardcode_into_libs=yes
4542 *) # from 3.2 on
4543 shlibpath_overrides_runpath=no
4544 hardcode_into_libs=yes
4546 esac
4549 gnu*)
4550 version_type=linux
4551 need_lib_prefix=no
4552 need_version=no
4553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4554 soname_spec='${libname}${release}${shared_ext}$major'
4555 shlibpath_var=LD_LIBRARY_PATH
4556 hardcode_into_libs=yes
4559 hpux9* | hpux10* | hpux11*)
4560 # Give a soname corresponding to the major version so that dld.sl refuses to
4561 # link against other versions.
4562 version_type=sunos
4563 need_lib_prefix=no
4564 need_version=no
4565 case "$host_cpu" in
4566 ia64*)
4567 shrext='.so'
4568 hardcode_into_libs=yes
4569 dynamic_linker="$host_os dld.so"
4570 shlibpath_var=LD_LIBRARY_PATH
4571 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4573 soname_spec='${libname}${release}${shared_ext}$major'
4574 if test "X$HPUX_IA64_MODE" = X32; then
4575 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4576 else
4577 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4579 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4581 hppa*64*)
4582 shrext='.sl'
4583 hardcode_into_libs=yes
4584 dynamic_linker="$host_os dld.sl"
4585 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
4590 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4593 shrext='.sl'
4594 dynamic_linker="$host_os dld.sl"
4595 shlibpath_var=SHLIB_PATH
4596 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4598 soname_spec='${libname}${release}${shared_ext}$major'
4600 esac
4601 # HP-UX runs *really* slowly unless shared libraries are mode 555.
4602 postinstall_cmds='chmod 555 $lib'
4605 irix5* | irix6* | nonstopux*)
4606 case $host_os in
4607 nonstopux*) version_type=nonstopux ;;
4609 if test "$lt_cv_prog_gnu_ld" = yes; then
4610 version_type=linux
4611 else
4612 version_type=irix
4613 fi ;;
4614 esac
4615 need_lib_prefix=no
4616 need_version=no
4617 soname_spec='${libname}${release}${shared_ext}$major'
4618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4619 case $host_os in
4620 irix5* | nonstopux*)
4621 libsuff= shlibsuff=
4624 case $LD in # libtool.m4 will add one of these switches to LD
4625 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
4626 libsuff= shlibsuff= libmagic=32-bit;;
4627 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
4628 libsuff=32 shlibsuff=N32 libmagic=N32;;
4629 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
4630 libsuff=64 shlibsuff=64 libmagic=64-bit;;
4631 *) libsuff= shlibsuff= libmagic=never-match;;
4632 esac
4634 esac
4635 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4636 shlibpath_overrides_runpath=no
4637 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4638 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4639 hardcode_into_libs=yes
4642 # No shared lib support for Linux oldld, aout, or coff.
4643 linux*oldld* | linux*aout* | linux*coff*)
4644 dynamic_linker=no
4647 # This must be Linux ELF.
4648 linux*)
4649 version_type=linux
4650 need_lib_prefix=no
4651 need_version=no
4652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4653 soname_spec='${libname}${release}${shared_ext}$major'
4654 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4655 shlibpath_var=LD_LIBRARY_PATH
4656 shlibpath_overrides_runpath=no
4657 # This implies no fast_install, which is unacceptable.
4658 # Some rework will be needed to allow for fast_install
4659 # before this can be enabled.
4660 hardcode_into_libs=yes
4662 # We used to test for /lib/ld.so.1 and disable shared libraries on
4663 # powerpc, because MkLinux only supported shared libraries with the
4664 # GNU dynamic linker. Since this was broken with cross compilers,
4665 # most powerpc-linux boxes support dynamic linking these days and
4666 # people can always --disable-shared, the test was removed, and we
4667 # assume the GNU/Linux dynamic linker is in use.
4668 dynamic_linker='GNU/Linux ld.so'
4671 netbsd*)
4672 version_type=sunos
4673 need_lib_prefix=no
4674 need_version=no
4675 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4677 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4678 dynamic_linker='NetBSD (a.out) ld.so'
4679 else
4680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
4681 soname_spec='${libname}${release}${shared_ext}$major'
4682 dynamic_linker='NetBSD ld.elf_so'
4684 shlibpath_var=LD_LIBRARY_PATH
4685 shlibpath_overrides_runpath=yes
4686 hardcode_into_libs=yes
4689 newsos6)
4690 version_type=linux
4691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4692 shlibpath_var=LD_LIBRARY_PATH
4693 shlibpath_overrides_runpath=yes
4696 nto-qnx)
4697 version_type=linux
4698 need_lib_prefix=no
4699 need_version=no
4700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4701 soname_spec='${libname}${release}${shared_ext}$major'
4702 shlibpath_var=LD_LIBRARY_PATH
4703 shlibpath_overrides_runpath=yes
4706 openbsd*)
4707 version_type=sunos
4708 need_lib_prefix=no
4709 need_version=no
4710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4711 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4712 shlibpath_var=LD_LIBRARY_PATH
4713 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4714 case $host_os in
4715 openbsd2.[89] | openbsd2.[89].*)
4716 shlibpath_overrides_runpath=no
4719 shlibpath_overrides_runpath=yes
4721 esac
4722 else
4723 shlibpath_overrides_runpath=yes
4727 os2*)
4728 libname_spec='$name'
4729 shrext=".dll"
4730 need_lib_prefix=no
4731 library_names_spec='$libname${shared_ext} $libname.a'
4732 dynamic_linker='OS/2 ld.exe'
4733 shlibpath_var=LIBPATH
4736 osf3* | osf4* | osf5*)
4737 version_type=osf
4738 need_lib_prefix=no
4739 need_version=no
4740 soname_spec='${libname}${release}${shared_ext}$major'
4741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4742 shlibpath_var=LD_LIBRARY_PATH
4743 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4744 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4747 sco3.2v5*)
4748 version_type=osf
4749 soname_spec='${libname}${release}${shared_ext}$major'
4750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4751 shlibpath_var=LD_LIBRARY_PATH
4754 solaris*)
4755 version_type=linux
4756 need_lib_prefix=no
4757 need_version=no
4758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4759 soname_spec='${libname}${release}${shared_ext}$major'
4760 shlibpath_var=LD_LIBRARY_PATH
4761 shlibpath_overrides_runpath=yes
4762 hardcode_into_libs=yes
4763 # ldd complains unless libraries are executable
4764 postinstall_cmds='chmod +x $lib'
4767 sunos4*)
4768 version_type=sunos
4769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4770 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4771 shlibpath_var=LD_LIBRARY_PATH
4772 shlibpath_overrides_runpath=yes
4773 if test "$with_gnu_ld" = yes; then
4774 need_lib_prefix=no
4776 need_version=yes
4779 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4780 version_type=linux
4781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4782 soname_spec='${libname}${release}${shared_ext}$major'
4783 shlibpath_var=LD_LIBRARY_PATH
4784 case $host_vendor in
4785 sni)
4786 shlibpath_overrides_runpath=no
4787 need_lib_prefix=no
4788 export_dynamic_flag_spec='${wl}-Blargedynsym'
4789 runpath_var=LD_RUN_PATH
4791 siemens)
4792 need_lib_prefix=no
4794 motorola)
4795 need_lib_prefix=no
4796 need_version=no
4797 shlibpath_overrides_runpath=no
4798 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4800 esac
4803 sysv4*MP*)
4804 if test -d /usr/nec ;then
4805 version_type=linux
4806 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
4807 soname_spec='$libname${shared_ext}.$major'
4808 shlibpath_var=LD_LIBRARY_PATH
4812 uts4*)
4813 version_type=linux
4814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4815 soname_spec='${libname}${release}${shared_ext}$major'
4816 shlibpath_var=LD_LIBRARY_PATH
4820 dynamic_linker=no
4822 esac
4823 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
4824 echo "${ECHO_T}$dynamic_linker" >&6
4825 test "$dynamic_linker" = no && can_build_shared=no
4828 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
4829 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
4830 if test "${libltdl_cv_shlibpath_var+set}" = set; then
4831 echo $ECHO_N "(cached) $ECHO_C" >&6
4832 else
4833 libltdl_cv_shlibpath_var="$shlibpath_var"
4835 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
4836 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
4837 if test -n "$libltdl_cv_shlibpath_var"; then
4839 cat >>confdefs.h <<_ACEOF
4840 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
4841 _ACEOF
4847 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
4850 # See if the user has requested runtime debugging.
4851 LIBGCJDEBUG="disable"
4853 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
4854 if test "${enable_libgcj_debug+set}" = set; then
4855 enableval="$enable_libgcj_debug"
4856 if test "$enable_libgcj_debug" = yes; then
4858 cat >>confdefs.h <<\_ACEOF
4859 #define DEBUG 1
4860 _ACEOF
4862 LIBGCJDEBUG="enable"
4866 # Determine which AWT peer libraries to build
4867 # Check whether --enable-java-awt or --disable-java-awt was given.
4868 if test "${enable_java_awt+set}" = set; then
4869 enableval="$enable_java_awt"
4873 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
4874 use_xlib_awt=""
4875 use_gtk_awt=""
4876 use_qt_awt=""
4877 # The default toolkit to use is the first one specified.
4878 TOOLKIT=
4881 for peer in $peerlibs ; do
4882 case $peer in
4883 xlib)
4884 if test "$no_x" = yes; then
4885 echo "*** xlib peers requested but no X library available" 1>&2
4886 exit 1
4887 else
4888 use_xlib_awt="yes"
4889 if test -z "$TOOLKIT"; then
4890 TOOLKIT=gnu.awt.xlib.XToolkit
4894 gtk)
4895 if test "$no_x" = yes; then
4896 echo "*** gtk peers requested but no X library available" 1>&2
4897 exit 1
4898 else
4899 use_gtk_awt=yes
4900 if test -z "$TOOLKIT"; then
4901 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
4906 if test "$no_x" = yes; then
4907 # Perhaps we should admit the possibility of embedded Qt.
4908 echo "*** Qt peers requested but no X library available" 1>&2
4909 exit 1
4910 else
4911 use_qt_awt=yes
4912 if test -z "$TOOLKIT"; then
4913 TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
4918 use_xlib_awt=
4919 use_gtk_awt=
4920 use_qt_awt=
4921 break
4924 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
4925 exit 1
4926 esac
4927 done
4931 if test "$use_xlib_awt" = yes; then
4932 XLIB_AWT_TRUE=
4933 XLIB_AWT_FALSE='#'
4934 else
4935 XLIB_AWT_TRUE='#'
4936 XLIB_AWT_FALSE=
4940 # Create standard.omit based on decisions we just made.
4941 cp $srcdir/standard.omit.in standard.omit
4942 if test "$use_xlib_awt" != yes; then
4943 echo gnu/awt/xlib >> standard.omit
4944 echo gnu/gcj/xlib >> standard.omit
4947 if test -z "${with_multisubdir}"; then
4948 builddotdot=.
4949 else
4950 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
4953 NATIVE=yes
4955 # Which gcj do we use?
4956 which_gcj=default
4957 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
4958 if test -n "${with_cross_host}"; then
4959 # We are being configured with a cross compiler. We can't
4960 # use ac_exeext, because that is for the target platform.
4961 NATIVE=no
4962 cross_host_exeext=
4963 case "${with_cross_host}" in
4964 *mingw* | *cygwin*)
4965 cross_host_exeext=.exe
4967 esac
4968 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
4969 if test x"$build_noncanonical" = x"$with_cross_host"; then
4970 # Ordinary cross (host!=target and host=build)
4971 which_gcj=built
4972 else
4973 # Canadian cross (host!=target and host!=build)
4974 which_gcj=cross
4976 else
4977 which_gcj=cross
4979 else
4980 # We are being configured with a native or crossed-native compiler
4981 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
4982 if test x"$build" = x"$host"; then
4983 # True native build (host=target and host=build)
4984 which_gcj=built
4985 else
4986 # Crossed-native build (host=target and host!=build)
4987 which_gcj=cross
4989 else
4990 which_gcj=path
4993 case "${which_gcj}" in
4994 built)
4995 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
4996 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
4998 cross)
4999 if test "x${with_newlib}" = "xyes"; then
5000 # FIXME (comment): Why is this needed?
5001 GCC_UNWIND_INCLUDE=
5002 GCJ="${target_noncanonical}-gcj"
5003 else
5004 GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
5006 GCJH='$(target_noncanonical)-gcjh'
5008 path)
5009 GCJ="gcj -B`${PWDCMD-pwd}`/"
5010 GCJH=gcjh
5012 esac
5016 # Create it, so that compile/link tests don't fail
5017 test -f libgcj.spec || touch libgcj.spec
5021 # Set up to configure Classpath.
5022 # FIXME: no supported way to pass args in autoconf.
5023 ac_configure_args="$ac_configure_args --with-fastjar=$JAR"
5024 ac_configure_args="$ac_configure_args --enable-tool-wrappers"
5025 ac_configure_args="$ac_configure_args --disable-load-library"
5026 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
5027 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
5028 dir1=`cd $srcdir && pwd`
5029 dir2=`pwd`
5030 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
5031 ac_configure_args="$ac_configure_args --disable-core-jni"
5032 ac_configure_args="$ac_configure_args --disable-examples"
5033 ac_configure_args="$ac_configure_args --with-glibj=build"
5034 if test "$plugin_enabled" != yes; then
5035 ac_configure_args="$ac_configure_args --disable-plugin"
5037 if test "$use_gtk_awt" != yes; then
5038 ac_configure_args="$ac_configure_args --disable-gtk-peer"
5040 if test "$use_qt_awt" != yes; then
5041 ac_configure_args="$ac_configure_args --disable-qt-peer"
5042 else
5043 # We need this as qt is disabled by default in classpath.
5044 ac_configure_args="$ac_configure_args --enable-qt-peer"
5047 # Only use libltdl for non-newlib builds.
5048 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5049 case $enable_ltdl_convenience in
5050 no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
5051 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
5052 { (exit 1); exit 1; }; } ;;
5053 "") enable_ltdl_convenience=yes
5054 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
5055 esac
5056 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
5057 INCLTDL='-I${top_srcdir}/''libltdl'
5060 DIRLTDL=libltdl
5062 cat >>confdefs.h <<\_ACEOF
5063 #define USE_LTDL 1
5064 _ACEOF
5066 # Sigh. Libtool's macro doesn't do the right thing.
5067 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
5068 # FIXME: this is a hack.
5069 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
5070 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
5075 # Check whether --enable-shared or --disable-shared was given.
5076 if test "${enable_shared+set}" = set; then
5077 enableval="$enable_shared"
5078 p=${PACKAGE-default}
5079 case $enableval in
5080 yes) enable_shared=yes ;;
5081 no) enable_shared=no ;;
5083 enable_shared=no
5084 # Look at the argument we got. We use all the common list separators.
5085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5086 for pkg in $enableval; do
5087 if test "X$pkg" = "X$p"; then
5088 enable_shared=yes
5090 done
5091 IFS="$ac_save_ifs"
5093 esac
5094 else
5095 enable_shared=yes
5097 # Check whether --enable-static or --disable-static was given.
5098 if test "${enable_static+set}" = set; then
5099 enableval="$enable_static"
5100 p=${PACKAGE-default}
5101 case $enableval in
5102 yes) enable_static=yes ;;
5103 no) enable_static=no ;;
5105 enable_static=no
5106 # Look at the argument we got. We use all the common list separators.
5107 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5108 for pkg in $enableval; do
5109 if test "X$pkg" = "X$p"; then
5110 enable_static=yes
5112 done
5113 IFS="$ac_save_ifs"
5115 esac
5116 else
5117 enable_static=yes
5119 # Check whether --enable-fast-install or --disable-fast-install was given.
5120 if test "${enable_fast_install+set}" = set; then
5121 enableval="$enable_fast_install"
5122 p=${PACKAGE-default}
5123 case $enableval in
5124 yes) enable_fast_install=yes ;;
5125 no) enable_fast_install=no ;;
5127 enable_fast_install=no
5128 # Look at the argument we got. We use all the common list separators.
5129 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5130 for pkg in $enableval; do
5131 if test "X$pkg" = "X$p"; then
5132 enable_fast_install=yes
5134 done
5135 IFS="$ac_save_ifs"
5137 esac
5138 else
5139 enable_fast_install=yes
5142 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5143 if test "${with_gnu_ld+set}" = set; then
5144 withval="$with_gnu_ld"
5145 test "$withval" = no || with_gnu_ld=yes
5146 else
5147 with_gnu_ld=no
5149 ac_prog=ld
5150 if test "$GCC" = yes; then
5151 # Check if gcc -print-prog-name=ld gives a path.
5152 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5153 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5154 case $host in
5155 *-*-mingw*)
5156 # gcc leaves a trailing carriage return which upsets mingw
5157 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5159 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5160 esac
5161 case $ac_prog in
5162 # Accept absolute paths.
5163 [\\/]* | [A-Za-z]:[\\/]*)
5164 re_direlt='/[^/][^/]*/\.\./'
5165 # Canonicalize the path of ld
5166 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5167 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5168 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5169 done
5170 test -z "$LD" && LD="$ac_prog"
5173 # If it fails, then pretend we aren't using GCC.
5174 ac_prog=ld
5177 # If it is relative, then search for the first ld in PATH.
5178 with_gnu_ld=unknown
5180 esac
5181 elif test "$with_gnu_ld" = yes; then
5182 echo "$as_me:$LINENO: checking for GNU ld" >&5
5183 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5184 else
5185 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5186 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5188 if test "${lt_cv_path_LD+set}" = set; then
5189 echo $ECHO_N "(cached) $ECHO_C" >&6
5190 else
5191 if test -z "$LD"; then
5192 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5193 for ac_dir in $PATH; do
5194 test -z "$ac_dir" && ac_dir=.
5195 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5196 lt_cv_path_LD="$ac_dir/$ac_prog"
5197 # Check to see if the program is GNU ld. I'd rather use --version,
5198 # but apparently some GNU ld's only accept -v.
5199 # Break only if it was the GNU/non-GNU ld that we prefer.
5200 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5201 test "$with_gnu_ld" != no && break
5202 else
5203 test "$with_gnu_ld" != yes && break
5206 done
5207 IFS="$ac_save_ifs"
5208 else
5209 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5213 LD="$lt_cv_path_LD"
5214 if test -n "$LD"; then
5215 echo "$as_me:$LINENO: result: $LD" >&5
5216 echo "${ECHO_T}$LD" >&6
5217 else
5218 echo "$as_me:$LINENO: result: no" >&5
5219 echo "${ECHO_T}no" >&6
5221 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5222 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5223 { (exit 1); exit 1; }; }
5224 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5225 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5226 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5228 else
5229 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5230 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5231 lt_cv_prog_gnu_ld=yes
5232 else
5233 lt_cv_prog_gnu_ld=no
5236 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5237 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5238 with_gnu_ld=$lt_cv_prog_gnu_ld
5241 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5242 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5243 if test "${lt_cv_ld_reload_flag+set}" = set; then
5244 echo $ECHO_N "(cached) $ECHO_C" >&6
5245 else
5246 lt_cv_ld_reload_flag='-r'
5248 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5249 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5250 reload_flag=$lt_cv_ld_reload_flag
5251 test -n "$reload_flag" && reload_flag=" $reload_flag"
5253 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5254 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5255 if test "${lt_cv_path_NM+set}" = set; then
5256 echo $ECHO_N "(cached) $ECHO_C" >&6
5257 else
5258 if test -n "$NM"; then
5259 # Let the user override the test.
5260 lt_cv_path_NM="$NM"
5261 else
5262 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5263 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5264 test -z "$ac_dir" && ac_dir=.
5265 tmp_nm=$ac_dir/${ac_tool_prefix}nm
5266 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
5267 # Check to see if the nm accepts a BSD-compat flag.
5268 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5269 # nm: unknown option "B" ignored
5270 # Tru64's nm complains that /dev/null is an invalid object file
5271 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
5272 lt_cv_path_NM="$tmp_nm -B"
5273 break
5274 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
5275 lt_cv_path_NM="$tmp_nm -p"
5276 break
5277 else
5278 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5279 continue # so that we can try to find one that supports BSD flags
5282 done
5283 IFS="$ac_save_ifs"
5284 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5288 NM="$lt_cv_path_NM"
5289 echo "$as_me:$LINENO: result: $NM" >&5
5290 echo "${ECHO_T}$NM" >&6
5292 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
5293 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
5294 if test "${lt_cv_deplibs_check_method+set}" = set; then
5295 echo $ECHO_N "(cached) $ECHO_C" >&6
5296 else
5297 lt_cv_file_magic_cmd='$MAGIC_CMD'
5298 lt_cv_file_magic_test_file=
5299 lt_cv_deplibs_check_method='unknown'
5300 # Need to set the preceding variable on all platforms that support
5301 # interlibrary dependencies.
5302 # 'none' -- dependencies not supported.
5303 # `unknown' -- same as none, but documents that we really don't know.
5304 # 'pass_all' -- all dependencies passed with no checks.
5305 # 'test_compile' -- check by making test program.
5306 # 'file_magic [regex]' -- check by looking for files in library path
5307 # which responds to the $file_magic_cmd with a given egrep regex.
5308 # If you have `file' or equivalent on your system and you're not sure
5309 # whether `pass_all' will *always* work, you probably want this one.
5311 case $host_os in
5312 aix*)
5313 lt_cv_deplibs_check_method=pass_all
5316 beos*)
5317 lt_cv_deplibs_check_method=pass_all
5320 bsdi4*)
5321 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5322 lt_cv_file_magic_cmd='/usr/bin/file -L'
5323 lt_cv_file_magic_test_file=/shlib/libc.so
5326 cygwin* | mingw* |pw32*)
5327 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5328 lt_cv_file_magic_cmd='$OBJDUMP -f'
5331 darwin* | rhapsody*)
5332 # this will be overwritten by pass_all, but leave it in just in case
5333 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5334 lt_cv_file_magic_cmd='/usr/bin/file -L'
5335 case "$host_os" in
5336 rhapsody* | darwin1.012)
5337 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
5339 *) # Darwin 1.3 on
5340 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5342 esac
5343 lt_cv_deplibs_check_method=pass_all
5346 freebsd* | kfreebsd*-gnu)
5347 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5348 case $host_cpu in
5349 i*86 )
5350 # Not sure whether the presence of OpenBSD here was a mistake.
5351 # Let's accept both of them until this is cleared up.
5352 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5353 lt_cv_file_magic_cmd=/usr/bin/file
5354 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5356 esac
5357 else
5358 lt_cv_deplibs_check_method=pass_all
5362 gnu*)
5363 lt_cv_deplibs_check_method=pass_all
5366 hpux10.20*|hpux11*)
5367 case $host_cpu in
5368 hppa*)
5369 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5370 lt_cv_file_magic_cmd=/usr/bin/file
5371 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5373 ia64*)
5374 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5375 lt_cv_file_magic_cmd=/usr/bin/file
5376 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5378 esac
5381 irix5* | irix6*)
5382 case $host_os in
5383 irix5*)
5384 # this will be overridden with pass_all, but let us keep it just in case
5385 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5388 case $LD in
5389 *-32|*"-32 ") libmagic=32-bit;;
5390 *-n32|*"-n32 ") libmagic=N32;;
5391 *-64|*"-64 ") libmagic=64-bit;;
5392 *) libmagic=never-match;;
5393 esac
5394 # this will be overridden with pass_all, but let us keep it just in case
5395 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5397 esac
5398 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5399 lt_cv_deplibs_check_method=pass_all
5402 # This must be Linux ELF.
5403 linux-gnu*)
5404 lt_cv_deplibs_check_method=pass_all
5407 netbsd* | knetbsd*-gnu)
5408 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5409 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
5410 else
5411 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
5415 newsos6)
5416 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5417 lt_cv_file_magic_cmd=/usr/bin/file
5418 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5421 osf3* | osf4* | osf5*)
5422 # this will be overridden with pass_all, but let us keep it just in case
5423 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5424 lt_cv_file_magic_test_file=/shlib/libc.so
5425 lt_cv_deplibs_check_method=pass_all
5428 sco3.2v5*)
5429 lt_cv_deplibs_check_method=pass_all
5432 solaris*)
5433 lt_cv_deplibs_check_method=pass_all
5434 lt_cv_file_magic_test_file=/lib/libc.so
5437 sysv5uw[78]* | sysv4*uw2*)
5438 lt_cv_deplibs_check_method=pass_all
5441 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5442 case $host_vendor in
5443 ncr)
5444 lt_cv_deplibs_check_method=pass_all
5446 motorola)
5447 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]'
5448 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5450 esac
5452 esac
5455 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5456 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5457 file_magic_cmd=$lt_cv_file_magic_cmd
5458 deplibs_check_method=$lt_cv_deplibs_check_method
5463 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5465 # find the maximum length of command line arguments
5466 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5467 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5468 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5469 echo $ECHO_N "(cached) $ECHO_C" >&6
5470 else
5472 teststring="ABCD"
5474 case $build_os in
5475 msdosdjgpp*)
5476 # On DJGPP, this test can blow up pretty badly due to problems in libc
5477 # (any single argument exceeding 2000 bytes causes a buffer overrun
5478 # during glob expansion). Even if it were fixed, the result of this
5479 # check would be larger than it should be.
5480 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5483 cygwin* | mingw*)
5484 # On Win9x/ME, this test blows up -- it succeeds, but takes
5485 # about 5 minutes as the teststring grows exponentially.
5486 # Worse, since 9x/ME are not pre-emptively multitasking,
5487 # you end up with a "frozen" computer, even though with patience
5488 # the test eventually succeeds (with a max line length of 256k).
5489 # Instead, let's just punt: use the minimum linelength reported by
5490 # all of the supported platforms: 8192 (on NT/2K/XP).
5491 lt_cv_sys_max_cmd_len=8192;
5494 amigaos*)
5495 # On AmigaOS with pdksh, this test takes hours, literally.
5496 # So we just punt and use a minimum line length of 8192.
5497 lt_cv_sys_max_cmd_len=8192;
5500 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5501 # This has been around since 386BSD, at least. Likely further.
5502 if test -x /sbin/sysctl; then
5503 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5504 elif test -x /usr/sbin/sysctl; then
5505 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5506 else
5507 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5509 # And add a safety zone
5510 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5511 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5513 esac
5517 if test -n "$lt_cv_sys_max_cmd_len" ; then
5518 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5519 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5520 else
5521 echo "$as_me:$LINENO: result: none" >&5
5522 echo "${ECHO_T}none" >&6
5526 # Only perform the check for file, if the check method requires it
5527 case $deplibs_check_method in
5528 file_magic*)
5529 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5530 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5531 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5532 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5533 echo $ECHO_N "(cached) $ECHO_C" >&6
5534 else
5535 case $MAGIC_CMD in
5537 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5539 ?:/*)
5540 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5543 ac_save_MAGIC_CMD="$MAGIC_CMD"
5544 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5545 ac_dummy="/usr/bin:$PATH"
5546 for ac_dir in $ac_dummy; do
5547 test -z "$ac_dir" && ac_dir=.
5548 if test -f $ac_dir/${ac_tool_prefix}file; then
5549 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5550 if test -n "$file_magic_test_file"; then
5551 case $deplibs_check_method in
5552 "file_magic "*)
5553 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5554 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5555 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5556 egrep "$file_magic_regex" > /dev/null; then
5558 else
5559 cat <<EOF 1>&2
5561 *** Warning: the command libtool uses to detect shared libraries,
5562 *** $file_magic_cmd, produces output that libtool cannot recognize.
5563 *** The result is that libtool may fail to recognize shared libraries
5564 *** as such. This will affect the creation of libtool libraries that
5565 *** depend on shared libraries, but programs linked with such libtool
5566 *** libraries will work regardless of this problem. Nevertheless, you
5567 *** may want to report the problem to your system manager and/or to
5568 *** bug-libtool@gnu.org
5571 fi ;;
5572 esac
5574 break
5576 done
5577 IFS="$ac_save_ifs"
5578 MAGIC_CMD="$ac_save_MAGIC_CMD"
5580 esac
5583 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5584 if test -n "$MAGIC_CMD"; then
5585 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5586 echo "${ECHO_T}$MAGIC_CMD" >&6
5587 else
5588 echo "$as_me:$LINENO: result: no" >&5
5589 echo "${ECHO_T}no" >&6
5592 if test -z "$lt_cv_path_MAGIC_CMD"; then
5593 if test -n "$ac_tool_prefix"; then
5594 echo "$as_me:$LINENO: checking for file" >&5
5595 echo $ECHO_N "checking for file... $ECHO_C" >&6
5596 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5597 echo $ECHO_N "(cached) $ECHO_C" >&6
5598 else
5599 case $MAGIC_CMD in
5601 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5603 ?:/*)
5604 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5607 ac_save_MAGIC_CMD="$MAGIC_CMD"
5608 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5609 ac_dummy="/usr/bin:$PATH"
5610 for ac_dir in $ac_dummy; do
5611 test -z "$ac_dir" && ac_dir=.
5612 if test -f $ac_dir/file; then
5613 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5614 if test -n "$file_magic_test_file"; then
5615 case $deplibs_check_method in
5616 "file_magic "*)
5617 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5618 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5619 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5620 egrep "$file_magic_regex" > /dev/null; then
5622 else
5623 cat <<EOF 1>&2
5625 *** Warning: the command libtool uses to detect shared libraries,
5626 *** $file_magic_cmd, produces output that libtool cannot recognize.
5627 *** The result is that libtool may fail to recognize shared libraries
5628 *** as such. This will affect the creation of libtool libraries that
5629 *** depend on shared libraries, but programs linked with such libtool
5630 *** libraries will work regardless of this problem. Nevertheless, you
5631 *** may want to report the problem to your system manager and/or to
5632 *** bug-libtool@gnu.org
5635 fi ;;
5636 esac
5638 break
5640 done
5641 IFS="$ac_save_ifs"
5642 MAGIC_CMD="$ac_save_MAGIC_CMD"
5644 esac
5647 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5648 if test -n "$MAGIC_CMD"; then
5649 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5650 echo "${ECHO_T}$MAGIC_CMD" >&6
5651 else
5652 echo "$as_me:$LINENO: result: no" >&5
5653 echo "${ECHO_T}no" >&6
5656 else
5657 MAGIC_CMD=:
5663 esac
5665 if test -n "$ac_tool_prefix"; then
5666 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5667 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5668 echo "$as_me:$LINENO: checking for $ac_word" >&5
5669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5670 if test "${ac_cv_prog_RANLIB+set}" = set; then
5671 echo $ECHO_N "(cached) $ECHO_C" >&6
5672 else
5673 if test -n "$RANLIB"; then
5674 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5675 else
5676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677 for as_dir in $PATH
5679 IFS=$as_save_IFS
5680 test -z "$as_dir" && as_dir=.
5681 for ac_exec_ext in '' $ac_executable_extensions; do
5682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5683 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5685 break 2
5687 done
5688 done
5692 RANLIB=$ac_cv_prog_RANLIB
5693 if test -n "$RANLIB"; then
5694 echo "$as_me:$LINENO: result: $RANLIB" >&5
5695 echo "${ECHO_T}$RANLIB" >&6
5696 else
5697 echo "$as_me:$LINENO: result: no" >&5
5698 echo "${ECHO_T}no" >&6
5702 if test -z "$ac_cv_prog_RANLIB"; then
5703 ac_ct_RANLIB=$RANLIB
5704 # Extract the first word of "ranlib", so it can be a program name with args.
5705 set dummy ranlib; ac_word=$2
5706 echo "$as_me:$LINENO: checking for $ac_word" >&5
5707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5708 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5709 echo $ECHO_N "(cached) $ECHO_C" >&6
5710 else
5711 if test -n "$ac_ct_RANLIB"; then
5712 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5713 else
5714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715 for as_dir in $PATH
5717 IFS=$as_save_IFS
5718 test -z "$as_dir" && as_dir=.
5719 for ac_exec_ext in '' $ac_executable_extensions; do
5720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5721 ac_cv_prog_ac_ct_RANLIB="ranlib"
5722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5723 break 2
5725 done
5726 done
5728 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5731 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5732 if test -n "$ac_ct_RANLIB"; then
5733 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5734 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5735 else
5736 echo "$as_me:$LINENO: result: no" >&5
5737 echo "${ECHO_T}no" >&6
5740 RANLIB=$ac_ct_RANLIB
5741 else
5742 RANLIB="$ac_cv_prog_RANLIB"
5745 if test -n "$ac_tool_prefix"; then
5746 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5747 set dummy ${ac_tool_prefix}strip; ac_word=$2
5748 echo "$as_me:$LINENO: checking for $ac_word" >&5
5749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5750 if test "${ac_cv_prog_STRIP+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5752 else
5753 if test -n "$STRIP"; then
5754 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5755 else
5756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757 for as_dir in $PATH
5759 IFS=$as_save_IFS
5760 test -z "$as_dir" && as_dir=.
5761 for ac_exec_ext in '' $ac_executable_extensions; do
5762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5763 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5765 break 2
5767 done
5768 done
5772 STRIP=$ac_cv_prog_STRIP
5773 if test -n "$STRIP"; then
5774 echo "$as_me:$LINENO: result: $STRIP" >&5
5775 echo "${ECHO_T}$STRIP" >&6
5776 else
5777 echo "$as_me:$LINENO: result: no" >&5
5778 echo "${ECHO_T}no" >&6
5782 if test -z "$ac_cv_prog_STRIP"; then
5783 ac_ct_STRIP=$STRIP
5784 # Extract the first word of "strip", so it can be a program name with args.
5785 set dummy strip; ac_word=$2
5786 echo "$as_me:$LINENO: checking for $ac_word" >&5
5787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5788 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5790 else
5791 if test -n "$ac_ct_STRIP"; then
5792 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5793 else
5794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5795 for as_dir in $PATH
5797 IFS=$as_save_IFS
5798 test -z "$as_dir" && as_dir=.
5799 for ac_exec_ext in '' $ac_executable_extensions; do
5800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5801 ac_cv_prog_ac_ct_STRIP="strip"
5802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5803 break 2
5805 done
5806 done
5808 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5811 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5812 if test -n "$ac_ct_STRIP"; then
5813 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5814 echo "${ECHO_T}$ac_ct_STRIP" >&6
5815 else
5816 echo "$as_me:$LINENO: result: no" >&5
5817 echo "${ECHO_T}no" >&6
5820 STRIP=$ac_ct_STRIP
5821 else
5822 STRIP="$ac_cv_prog_STRIP"
5826 # Check for any special flags to pass to ltconfig.
5827 libtool_flags="--cache-file=$cache_file"
5828 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
5829 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
5830 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
5831 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
5832 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
5835 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5836 if test "${enable_libtool_lock+set}" = set; then
5837 enableval="$enable_libtool_lock"
5840 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
5841 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
5844 # Check whether --with-pic or --without-pic was given.
5845 if test "${with_pic+set}" = set; then
5846 withval="$with_pic"
5847 pic_mode="$withval"
5848 else
5849 pic_mode=default
5851 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
5852 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
5854 # Some flags need to be propagated to the compiler or linker for good
5855 # libtool support.
5856 case $host in
5857 *-*-irix6*)
5858 # Find out which ABI we are using.
5859 echo '#line 5859 "configure"' > conftest.$ac_ext
5860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5861 (eval $ac_compile) 2>&5
5862 ac_status=$?
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); }; then
5865 if test "$lt_cv_prog_gnu_ld" = yes; then
5866 case `/usr/bin/file conftest.$ac_objext` in
5867 *32-bit*)
5868 LD="${LD-ld} -melf32bsmip"
5870 *N32*)
5871 LD="${LD-ld} -melf32bmipn32"
5873 *64-bit*)
5874 LD="${LD-ld} -melf64bmip"
5876 esac
5877 else
5878 case `/usr/bin/file conftest.$ac_objext` in
5879 *32-bit*)
5880 LD="${LD-ld} -32"
5882 *N32*)
5883 LD="${LD-ld} -n32"
5885 *64-bit*)
5886 LD="${LD-ld} -64"
5888 esac
5891 rm -rf conftest*
5894 ia64-*-hpux*)
5895 # Find out which ABI we are using.
5896 echo 'int i;' > conftest.$ac_ext
5897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5898 (eval $ac_compile) 2>&5
5899 ac_status=$?
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); }; then
5902 case "`/usr/bin/file conftest.o`" in
5903 *ELF-32*)
5904 HPUX_IA64_MODE="32"
5906 *ELF-64*)
5907 HPUX_IA64_MODE="64"
5909 esac
5911 rm -rf conftest*
5914 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5915 # Find out which ABI we are using.
5916 echo 'int i;' > conftest.$ac_ext
5917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5918 (eval $ac_compile) 2>&5
5919 ac_status=$?
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); }; then
5922 case "`/usr/bin/file conftest.o`" in
5923 *32-bit*)
5924 case $host in
5925 x86_64-*linux*)
5926 LD="${LD-ld} -m elf_i386"
5928 ppc64-*linux*|powerpc64-*linux*)
5929 LD="${LD-ld} -m elf32ppclinux"
5931 s390x-*linux*)
5932 LD="${LD-ld} -m elf_s390"
5934 sparc64-*linux*)
5935 LD="${LD-ld} -m elf32_sparc"
5937 esac
5939 *64-bit*)
5940 case $host in
5941 x86_64-*linux*)
5942 LD="${LD-ld} -m elf_x86_64"
5944 ppc*-*linux*|powerpc*-*linux*)
5945 LD="${LD-ld} -m elf64ppc"
5947 s390*-*linux*)
5948 LD="${LD-ld} -m elf64_s390"
5950 sparc*-*linux*)
5951 LD="${LD-ld} -m elf64_sparc"
5953 esac
5955 esac
5957 rm -rf conftest*
5960 *-*-sco3.2v5*)
5961 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5962 SAVE_CFLAGS="$CFLAGS"
5963 CFLAGS="$CFLAGS -belf"
5964 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5965 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5966 if test "${lt_cv_cc_needs_belf+set}" = set; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
5968 else
5971 ac_ext=c
5972 ac_cpp='$CPP $CPPFLAGS'
5973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5977 if test x$gcc_no_link = xyes; then
5978 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5979 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5980 { (exit 1); exit 1; }; }
5982 cat >conftest.$ac_ext <<_ACEOF
5983 /* confdefs.h. */
5984 _ACEOF
5985 cat confdefs.h >>conftest.$ac_ext
5986 cat >>conftest.$ac_ext <<_ACEOF
5987 /* end confdefs.h. */
5990 main ()
5994 return 0;
5996 _ACEOF
5997 rm -f conftest.$ac_objext conftest$ac_exeext
5998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5999 (eval $ac_link) 2>conftest.er1
6000 ac_status=$?
6001 grep -v '^ *+' conftest.er1 >conftest.err
6002 rm -f conftest.er1
6003 cat conftest.err >&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); } &&
6006 { ac_try='test -z "$ac_c_werror_flag"
6007 || test ! -s conftest.err'
6008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6009 (eval $ac_try) 2>&5
6010 ac_status=$?
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }; } &&
6013 { ac_try='test -s conftest$ac_exeext'
6014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6015 (eval $ac_try) 2>&5
6016 ac_status=$?
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); }; }; then
6019 lt_cv_cc_needs_belf=yes
6020 else
6021 echo "$as_me: failed program was:" >&5
6022 sed 's/^/| /' conftest.$ac_ext >&5
6024 lt_cv_cc_needs_belf=no
6026 rm -f conftest.err conftest.$ac_objext \
6027 conftest$ac_exeext conftest.$ac_ext
6028 ac_ext=c
6029 ac_cpp='$CPP $CPPFLAGS'
6030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6035 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6036 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6037 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6038 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6039 CFLAGS="$SAVE_CFLAGS"
6044 esac
6047 # Save cache, so that ltconfig can load it
6048 cat >confcache <<\_ACEOF
6049 # This file is a shell script that caches the results of configure
6050 # tests run on this system so they can be shared between configure
6051 # scripts and configure runs, see configure's option --config-cache.
6052 # It is not useful on other systems. If it contains results you don't
6053 # want to keep, you may remove or edit it.
6055 # config.status only pays attention to the cache file if you give it
6056 # the --recheck option to rerun configure.
6058 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6059 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6060 # following values.
6062 _ACEOF
6064 # The following way of writing the cache mishandles newlines in values,
6065 # but we know of no workaround that is simple, portable, and efficient.
6066 # So, don't put newlines in cache variables' values.
6067 # Ultrix sh set writes to stderr and can't be redirected directly,
6068 # and sets the high bit in the cache file unless we assign to the vars.
6070 (set) 2>&1 |
6071 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6072 *ac_space=\ *)
6073 # `set' does not quote correctly, so add quotes (double-quote
6074 # substitution turns \\\\ into \\, and sed turns \\ into \).
6075 sed -n \
6076 "s/'/'\\\\''/g;
6077 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6080 # `set' quotes correctly as required by POSIX, so do not add quotes.
6081 sed -n \
6082 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6084 esac;
6086 sed '
6087 t clear
6088 : clear
6089 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6090 t end
6091 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6092 : end' >>confcache
6093 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6094 if test -w $cache_file; then
6095 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6096 cat confcache >$cache_file
6097 else
6098 echo "not updating unwritable cache $cache_file"
6101 rm -f confcache
6103 # Actually configure libtool. ac_aux_dir is where install-sh is found.
6104 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
6105 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6106 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6107 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6108 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6109 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
6110 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
6111 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
6112 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
6113 echo "$as_me: error: libtool configure failed" >&2;}
6114 { (exit 1); exit 1; }; }
6116 # Reload cache, that may have been modified by ltconfig
6117 if test -r "$cache_file"; then
6118 # Some versions of bash will fail to source /dev/null (special
6119 # files actually), so we avoid doing that.
6120 if test -f "$cache_file"; then
6121 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
6122 echo "$as_me: loading cache $cache_file" >&6;}
6123 case $cache_file in
6124 [\\/]* | ?:[\\/]* ) . $cache_file;;
6125 *) . ./$cache_file;;
6126 esac
6128 else
6129 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
6130 echo "$as_me: creating cache $cache_file" >&6;}
6131 >$cache_file
6135 # This can be used to rebuild libtool when needed
6136 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
6138 # Always use our own libtool.
6139 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6141 # Redirect the config.log output again, so that the ltconfig log is not
6142 # clobbered by the next message.
6143 exec 5>>./config.log
6145 ac_ext=cc
6146 ac_cpp='$CXXCPP $CPPFLAGS'
6147 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6148 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6149 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6150 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6151 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6152 if test -z "$CXXCPP"; then
6153 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6154 echo $ECHO_N "(cached) $ECHO_C" >&6
6155 else
6156 # Double quotes because CXXCPP needs to be expanded
6157 for CXXCPP in "$CXX -E" "/lib/cpp"
6159 ac_preproc_ok=false
6160 for ac_cxx_preproc_warn_flag in '' yes
6162 # Use a header file that comes with gcc, so configuring glibc
6163 # with a fresh cross-compiler works.
6164 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6165 # <limits.h> exists even on freestanding compilers.
6166 # On the NeXT, cc -E runs the code through the compiler's parser,
6167 # not just through cpp. "Syntax error" is here to catch this case.
6168 cat >conftest.$ac_ext <<_ACEOF
6169 /* confdefs.h. */
6170 _ACEOF
6171 cat confdefs.h >>conftest.$ac_ext
6172 cat >>conftest.$ac_ext <<_ACEOF
6173 /* end confdefs.h. */
6174 #ifdef __STDC__
6175 # include <limits.h>
6176 #else
6177 # include <assert.h>
6178 #endif
6179 Syntax error
6180 _ACEOF
6181 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6182 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6183 ac_status=$?
6184 grep -v '^ *+' conftest.er1 >conftest.err
6185 rm -f conftest.er1
6186 cat conftest.err >&5
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); } >/dev/null; then
6189 if test -s conftest.err; then
6190 ac_cpp_err=$ac_cxx_preproc_warn_flag
6191 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6192 else
6193 ac_cpp_err=
6195 else
6196 ac_cpp_err=yes
6198 if test -z "$ac_cpp_err"; then
6200 else
6201 echo "$as_me: failed program was:" >&5
6202 sed 's/^/| /' conftest.$ac_ext >&5
6204 # Broken: fails on valid input.
6205 continue
6207 rm -f conftest.err conftest.$ac_ext
6209 # OK, works on sane cases. Now check whether non-existent headers
6210 # can be detected and how.
6211 cat >conftest.$ac_ext <<_ACEOF
6212 /* confdefs.h. */
6213 _ACEOF
6214 cat confdefs.h >>conftest.$ac_ext
6215 cat >>conftest.$ac_ext <<_ACEOF
6216 /* end confdefs.h. */
6217 #include <ac_nonexistent.h>
6218 _ACEOF
6219 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6220 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6221 ac_status=$?
6222 grep -v '^ *+' conftest.er1 >conftest.err
6223 rm -f conftest.er1
6224 cat conftest.err >&5
6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); } >/dev/null; then
6227 if test -s conftest.err; then
6228 ac_cpp_err=$ac_cxx_preproc_warn_flag
6229 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6230 else
6231 ac_cpp_err=
6233 else
6234 ac_cpp_err=yes
6236 if test -z "$ac_cpp_err"; then
6237 # Broken: success on invalid input.
6238 continue
6239 else
6240 echo "$as_me: failed program was:" >&5
6241 sed 's/^/| /' conftest.$ac_ext >&5
6243 # Passes both tests.
6244 ac_preproc_ok=:
6245 break
6247 rm -f conftest.err conftest.$ac_ext
6249 done
6250 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6251 rm -f conftest.err conftest.$ac_ext
6252 if $ac_preproc_ok; then
6253 break
6256 done
6257 ac_cv_prog_CXXCPP=$CXXCPP
6260 CXXCPP=$ac_cv_prog_CXXCPP
6261 else
6262 ac_cv_prog_CXXCPP=$CXXCPP
6264 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6265 echo "${ECHO_T}$CXXCPP" >&6
6266 ac_preproc_ok=false
6267 for ac_cxx_preproc_warn_flag in '' yes
6269 # Use a header file that comes with gcc, so configuring glibc
6270 # with a fresh cross-compiler works.
6271 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6272 # <limits.h> exists even on freestanding compilers.
6273 # On the NeXT, cc -E runs the code through the compiler's parser,
6274 # not just through cpp. "Syntax error" is here to catch this case.
6275 cat >conftest.$ac_ext <<_ACEOF
6276 /* confdefs.h. */
6277 _ACEOF
6278 cat confdefs.h >>conftest.$ac_ext
6279 cat >>conftest.$ac_ext <<_ACEOF
6280 /* end confdefs.h. */
6281 #ifdef __STDC__
6282 # include <limits.h>
6283 #else
6284 # include <assert.h>
6285 #endif
6286 Syntax error
6287 _ACEOF
6288 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6289 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6290 ac_status=$?
6291 grep -v '^ *+' conftest.er1 >conftest.err
6292 rm -f conftest.er1
6293 cat conftest.err >&5
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); } >/dev/null; then
6296 if test -s conftest.err; then
6297 ac_cpp_err=$ac_cxx_preproc_warn_flag
6298 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6299 else
6300 ac_cpp_err=
6302 else
6303 ac_cpp_err=yes
6305 if test -z "$ac_cpp_err"; then
6307 else
6308 echo "$as_me: failed program was:" >&5
6309 sed 's/^/| /' conftest.$ac_ext >&5
6311 # Broken: fails on valid input.
6312 continue
6314 rm -f conftest.err conftest.$ac_ext
6316 # OK, works on sane cases. Now check whether non-existent headers
6317 # can be detected and how.
6318 cat >conftest.$ac_ext <<_ACEOF
6319 /* confdefs.h. */
6320 _ACEOF
6321 cat confdefs.h >>conftest.$ac_ext
6322 cat >>conftest.$ac_ext <<_ACEOF
6323 /* end confdefs.h. */
6324 #include <ac_nonexistent.h>
6325 _ACEOF
6326 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6327 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6328 ac_status=$?
6329 grep -v '^ *+' conftest.er1 >conftest.err
6330 rm -f conftest.er1
6331 cat conftest.err >&5
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); } >/dev/null; then
6334 if test -s conftest.err; then
6335 ac_cpp_err=$ac_cxx_preproc_warn_flag
6336 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6337 else
6338 ac_cpp_err=
6340 else
6341 ac_cpp_err=yes
6343 if test -z "$ac_cpp_err"; then
6344 # Broken: success on invalid input.
6345 continue
6346 else
6347 echo "$as_me: failed program was:" >&5
6348 sed 's/^/| /' conftest.$ac_ext >&5
6350 # Passes both tests.
6351 ac_preproc_ok=:
6352 break
6354 rm -f conftest.err conftest.$ac_ext
6356 done
6357 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6358 rm -f conftest.err conftest.$ac_ext
6359 if $ac_preproc_ok; then
6361 else
6362 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6363 See \`config.log' for more details." >&5
6364 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6365 See \`config.log' for more details." >&2;}
6366 { (exit 1); exit 1; }; }
6369 ac_ext=c
6370 ac_cpp='$CPP $CPPFLAGS'
6371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6377 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
6378 lt_save_CC="$CC"
6379 lt_save_CFLAGS="$CFLAGS"
6380 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
6381 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6382 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6383 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6384 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6385 deplibs_check_method="$deplibs_check_method" \
6386 file_magic_cmd="$file_magic_cmd" \
6387 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6388 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
6389 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6390 echo "$as_me: error: libtool tag configuration failed" >&2;}
6391 { (exit 1); exit 1; }; }
6392 CC="$lt_save_CC"
6393 CFLAGS="$lt_save_CFLAGS"
6395 # Redirect the config.log output again, so that the ltconfig log is not
6396 # clobbered by the next message.
6397 exec 5>>./config.log
6405 for ac_prog in gcj gcj-3.2 gcj-3.1 gcj-3.0 gcj-2.95
6407 # Extract the first word of "$ac_prog", so it can be a program name with args.
6408 set dummy $ac_prog; ac_word=$2
6409 echo "$as_me:$LINENO: checking for $ac_word" >&5
6410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6411 if test "${ac_cv_prog_GCJ+set}" = set; then
6412 echo $ECHO_N "(cached) $ECHO_C" >&6
6413 else
6414 if test -n "$GCJ"; then
6415 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
6416 else
6417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6418 for as_dir in $PATH
6420 IFS=$as_save_IFS
6421 test -z "$as_dir" && as_dir=.
6422 for ac_exec_ext in '' $ac_executable_extensions; do
6423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6424 ac_cv_prog_GCJ="$ac_prog"
6425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6426 break 2
6428 done
6429 done
6433 GCJ=$ac_cv_prog_GCJ
6434 if test -n "$GCJ"; then
6435 echo "$as_me:$LINENO: result: $GCJ" >&5
6436 echo "${ECHO_T}$GCJ" >&6
6437 else
6438 echo "$as_me:$LINENO: result: no" >&5
6439 echo "${ECHO_T}no" >&6
6442 test -n "$GCJ" && break
6443 done
6444 test -n "$GCJ" || GCJ="gcj"
6446 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
6447 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
6448 { (exit 1); exit 1; }; }
6449 if test "x${GCJFLAGS-unset}" = xunset; then
6450 GCJFLAGS="-g -O2"
6454 depcc="$GCJ" am_compiler_list='gcc3 gcc'
6456 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6457 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6458 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
6459 echo $ECHO_N "(cached) $ECHO_C" >&6
6460 else
6461 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6462 # We make a subdir and do the tests there. Otherwise we can end up
6463 # making bogus files that we don't know about and never remove. For
6464 # instance it was reported that on HP-UX the gcc test will end up
6465 # making a dummy file named `D' -- because `-MD' means `put the output
6466 # in D'.
6467 mkdir conftest.dir
6468 # Copy depcomp to subdir because otherwise we won't find it if we're
6469 # using a relative directory.
6470 cp "$am_depcomp" conftest.dir
6471 cd conftest.dir
6472 # We will build objects and dependencies in a subdirectory because
6473 # it helps to detect inapplicable dependency modes. For instance
6474 # both Tru64's cc and ICC support -MD to output dependencies as a
6475 # side effect of compilation, but ICC will put the dependencies in
6476 # the current directory while Tru64 will put them in the object
6477 # directory.
6478 mkdir sub
6480 am_cv_GCJ_dependencies_compiler_type=none
6481 if test "$am_compiler_list" = ""; then
6482 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6484 for depmode in $am_compiler_list; do
6485 # Setup a source with many dependencies, because some compilers
6486 # like to wrap large dependency lists on column 80 (with \), and
6487 # we should not choose a depcomp mode which is confused by this.
6489 # We need to recreate these files for each test, as the compiler may
6490 # overwrite some of them when testing with obscure command lines.
6491 # This happens at least with the AIX C compiler.
6492 : > sub/conftest.c
6493 for i in 1 2 3 4 5 6; do
6494 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6495 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6496 # Solaris 8's {/usr,}/bin/sh.
6497 touch sub/conftst$i.h
6498 done
6499 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6501 case $depmode in
6502 nosideeffect)
6503 # after this tag, mechanisms are not by side-effect, so they'll
6504 # only be used when explicitly requested
6505 if test "x$enable_dependency_tracking" = xyes; then
6506 continue
6507 else
6508 break
6511 none) break ;;
6512 esac
6513 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6514 # mode. It turns out that the SunPro C++ compiler does not properly
6515 # handle `-M -o', and we need to detect this.
6516 if depmode=$depmode \
6517 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6518 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6519 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6520 >/dev/null 2>conftest.err &&
6521 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6522 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6523 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6524 # icc doesn't choke on unknown options, it will just issue warnings
6525 # or remarks (even with -Werror). So we grep stderr for any message
6526 # that says an option was ignored or not supported.
6527 # When given -MP, icc 7.0 and 7.1 complain thusly:
6528 # icc: Command line warning: ignoring option '-M'; no argument required
6529 # The diagnosis changed in icc 8.0:
6530 # icc: Command line remark: option '-MP' not supported
6531 if (grep 'ignoring option' conftest.err ||
6532 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6533 am_cv_GCJ_dependencies_compiler_type=$depmode
6534 break
6537 done
6539 cd ..
6540 rm -rf conftest.dir
6541 else
6542 am_cv_GCJ_dependencies_compiler_type=none
6546 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
6547 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
6548 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
6553 test "x$enable_dependency_tracking" != xno \
6554 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
6555 am__fastdepGCJ_TRUE=
6556 am__fastdepGCJ_FALSE='#'
6557 else
6558 am__fastdepGCJ_TRUE='#'
6559 am__fastdepGCJ_FALSE=
6565 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
6566 lt_save_CC="$CC"
6567 lt_save_CFLAGS="$CFLAGS"
6568 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
6569 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6570 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6571 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6572 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6573 deplibs_check_method="$deplibs_check_method" \
6574 file_magic_cmd="$file_magic_cmd" \
6575 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6576 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
6577 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6578 echo "$as_me: error: libtool tag configuration failed" >&2;}
6579 { (exit 1); exit 1; }; }
6580 CC="$lt_save_CC"
6581 CFLAGS="$lt_save_CFLAGS"
6583 # Redirect the config.log output again, so that the ltconfig log is not
6584 # clobbered by the next message.
6585 exec 5>>./config.log
6589 if test "x$CC" != xcc; then
6590 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
6591 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
6592 else
6593 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
6594 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
6596 set dummy $CC; ac_cc=`echo $2 |
6597 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6598 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
6599 echo $ECHO_N "(cached) $ECHO_C" >&6
6600 else
6601 cat >conftest.$ac_ext <<_ACEOF
6602 /* confdefs.h. */
6603 _ACEOF
6604 cat confdefs.h >>conftest.$ac_ext
6605 cat >>conftest.$ac_ext <<_ACEOF
6606 /* end confdefs.h. */
6609 main ()
6613 return 0;
6615 _ACEOF
6616 # Make sure it works both with $CC and with simple cc.
6617 # We do the test twice because some compilers refuse to overwrite an
6618 # existing .o file with -o, though they will create one.
6619 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6620 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6621 (eval $ac_try) 2>&5
6622 ac_status=$?
6623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624 (exit $ac_status); } &&
6625 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6626 (eval $ac_try) 2>&5
6627 ac_status=$?
6628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629 (exit $ac_status); };
6630 then
6631 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6632 if test "x$CC" != xcc; then
6633 # Test first that cc exists at all.
6634 if { ac_try='cc -c conftest.$ac_ext >&5'
6635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6636 (eval $ac_try) 2>&5
6637 ac_status=$?
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); }; }; then
6640 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6641 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6642 (eval $ac_try) 2>&5
6643 ac_status=$?
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); } &&
6646 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6647 (eval $ac_try) 2>&5
6648 ac_status=$?
6649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650 (exit $ac_status); };
6651 then
6652 # cc works too.
6654 else
6655 # cc exists but doesn't like -o.
6656 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6660 else
6661 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6663 rm -f conftest*
6666 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
6667 echo "$as_me:$LINENO: result: yes" >&5
6668 echo "${ECHO_T}yes" >&6
6669 else
6670 echo "$as_me:$LINENO: result: no" >&5
6671 echo "${ECHO_T}no" >&6
6673 cat >>confdefs.h <<\_ACEOF
6674 #define NO_MINUS_C_MINUS_O 1
6675 _ACEOF
6679 # FIXME: we rely on the cache variable name because
6680 # there is no other way.
6681 set dummy $CC
6682 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6683 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
6684 # Losing compiler, so override with the script.
6685 # FIXME: It is wrong to rewrite CC.
6686 # But if we don't then we get into trouble of one sort or another.
6687 # A longer-term fix would be to have automake use am__CC in this case,
6688 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6689 CC="$am_aux_dir/compile $CC"
6695 subdirs="$subdirs classpath libltdl"
6698 # The -no-testsuite modules omit the test subdir.
6701 if test -d $srcdir/testsuite; then
6702 TESTSUBDIR_TRUE=
6703 TESTSUBDIR_FALSE='#'
6704 else
6705 TESTSUBDIR_TRUE='#'
6706 TESTSUBDIR_FALSE=
6710 # Should the runtime set system properties by examining the
6711 # environment variable GCJ_PROPERTIES?
6712 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
6713 if test "${enable_getenv_properties+set}" = set; then
6714 enableval="$enable_getenv_properties"
6718 # Whether GCJ_PROPERTIES is used depends on the target.
6719 if test -z "$enable_getenv_properties"; then
6720 enable_getenv_properties=${enable_getenv_properties_default-yes}
6722 if test "$enable_getenv_properties" = no; then
6724 cat >>confdefs.h <<\_ACEOF
6725 #define DISABLE_GETENV_PROPERTIES 1
6726 _ACEOF
6730 # Whether we should use arguments to main()
6731 if test -z "$enable_main_args"; then
6732 enable_main_args=${enable_main_args_default-yes}
6734 if test "$enable_main_args" = no; then
6736 cat >>confdefs.h <<\_ACEOF
6737 #define DISABLE_MAIN_ARGS 1
6738 _ACEOF
6743 # Should we use hashtable-based synchronization?
6744 # Currently works only for Linux X86/ia64
6745 # Typically faster and more space-efficient
6746 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
6747 if test "${enable_hash_synchronization+set}" = set; then
6748 enableval="$enable_hash_synchronization"
6752 if test -z "$enable_hash_synchronization"; then
6753 enable_hash_synchronization=$enable_hash_synchronization_default
6757 # Check whether --with-java-home or --without-java-home was given.
6758 if test "${with_java_home+set}" = set; then
6759 withval="$with_java_home"
6760 JAVA_HOME="${withval}"
6761 else
6762 JAVA_HOME=""
6766 if test ! -z "$JAVA_HOME"; then
6767 JAVA_HOME_SET_TRUE=
6768 JAVA_HOME_SET_FALSE='#'
6769 else
6770 JAVA_HOME_SET_TRUE='#'
6771 JAVA_HOME_SET_FALSE=
6776 # What is the native OS API for MinGW?
6778 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
6779 if test "${with_win32_nlsapi+set}" = set; then
6780 withval="$with_win32_nlsapi"
6781 case "${withval}" in
6782 ansi) with_win32_nlsapi=ansi ;;
6783 unicows) with_win32_nlsapi=unicows ;;
6784 unicode) with_win32_nlsapi=unicode ;;
6785 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
6786 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
6787 { (exit 1); exit 1; }; } ;;
6788 esac
6789 else
6790 with_win32_nlsapi=ansi
6793 case "${with_win32_nlsapi}" in
6794 unicows | unicode)
6796 cat >>confdefs.h <<\_ACEOF
6797 #define MINGW_LIBGCJ_UNICODE 1
6798 _ACEOF
6801 esac
6803 # configure.host sets slow_pthread_self if the synchronization code should
6804 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
6805 if test "${slow_pthread_self}" = "yes"; then
6807 cat >>confdefs.h <<\_ACEOF
6808 #define SLOW_PTHREAD_SELF 1
6809 _ACEOF
6813 # Check for gc debugging. This option is handled both here and in the GC.
6814 # Check whether --enable-gc-debug or --disable-gc-debug was given.
6815 if test "${enable_gc_debug+set}" = set; then
6816 enableval="$enable_gc_debug"
6817 if test "$enable_gc_debug" = "yes"; then
6819 cat >>confdefs.h <<\_ACEOF
6820 #define LIBGCJ_GC_DEBUG 1
6821 _ACEOF
6826 # See if the user has the interpreter included.
6827 # Check whether --enable-interpreter or --disable-interpreter was given.
6828 if test "${enable_interpreter+set}" = set; then
6829 enableval="$enable_interpreter"
6830 if test "$enable_interpreter" = yes; then
6831 # This can also be set in configure.host.
6832 libgcj_interpreter=yes
6833 elif test "$enable_interpreter" = no; then
6834 libgcj_interpreter=no
6838 if test "$libgcj_interpreter" = yes; then
6840 cat >>confdefs.h <<\_ACEOF
6841 #define INTERPRETER 1
6842 _ACEOF
6845 INTERPRETER="$libgcj_interpreter"
6848 echo "$as_me:$LINENO: checking for exception model to use" >&5
6849 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
6850 ac_ext=cc
6851 ac_cpp='$CXXCPP $CPPFLAGS'
6852 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6853 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6854 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6856 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
6857 if test "${enable_sjlj_exceptions+set}" = set; then
6858 enableval="$enable_sjlj_exceptions"
6860 else
6861 cat > conftest.$ac_ext << EOF
6862 #line 6862 "configure"
6863 struct S { ~S(); };
6864 void bar();
6865 void foo()
6867 S s;
6868 bar();
6871 old_CXXFLAGS="$CXXFLAGS"
6872 CXXFLAGS=-S
6873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6874 (eval $ac_compile) 2>&5
6875 ac_status=$?
6876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877 (exit $ac_status); }; then
6878 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
6879 enable_sjlj_exceptions=yes
6880 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
6881 enable_sjlj_exceptions=no
6884 CXXFLAGS="$old_CXXFLAGS"
6885 rm -f conftest*
6887 if test x$enable_sjlj_exceptions = xyes; then
6889 cat >>confdefs.h <<\_ACEOF
6890 #define SJLJ_EXCEPTIONS 1
6891 _ACEOF
6893 ac_exception_model_name=sjlj
6894 elif test x$enable_sjlj_exceptions = xno; then
6895 ac_exception_model_name="call frame"
6896 else
6897 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
6898 echo "$as_me: error: unable to detect exception model" >&2;}
6899 { (exit 1); exit 1; }; }
6901 ac_ext=c
6902 ac_cpp='$CPP $CPPFLAGS'
6903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6907 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
6908 echo "${ECHO_T}$ac_exception_model_name" >&6
6910 # If we are non using SJLJ exceptions, and this host does not have support
6911 # for unwinding from a signal handler, enable checked dereferences and divides.
6912 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
6913 CHECKREFSPEC=-fcheck-references
6914 DIVIDESPEC=-fuse-divide-subroutine
6915 EXCEPTIONSPEC=
6918 # See if the user wants to disable java.net. This is the mildly
6919 # ugly way that we admit that target-side configuration sucks.
6920 # Check whether --enable-java-net or --disable-java-net was given.
6921 if test "${enable_java_net+set}" = set; then
6922 enableval="$enable_java_net"
6926 # Whether java.net is built by default can depend on the target.
6927 if test -z "$enable_java_net"; then
6928 enable_java_net=${enable_java_net_default-yes}
6930 if test "$enable_java_net" = no; then
6932 cat >>confdefs.h <<\_ACEOF
6933 #define DISABLE_JAVA_NET 1
6934 _ACEOF
6938 # See if the user wants to configure without libffi. Some
6939 # architectures don't support it, and default values are set in
6940 # configure.host.
6942 # Check whether --with-libffi or --without-libffi was given.
6943 if test "${with_libffi+set}" = set; then
6944 withval="$with_libffi"
6946 else
6947 with_libffi=${with_libffi_default-yes}
6950 LIBFFI=
6951 LIBFFIINCS=
6952 if test "$with_libffi" != no; then
6954 cat >>confdefs.h <<\_ACEOF
6955 #define USE_LIBFFI 1
6956 _ACEOF
6958 LIBFFI=../libffi/libffi_convenience.la
6959 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
6964 # See if the user wants to disable JVMPI support.
6965 # Check whether --enable-jvmpi or --disable-jvmpi was given.
6966 if test "${enable_jvmpi+set}" = set; then
6967 enableval="$enable_jvmpi"
6971 if test "$enable_jvmpi" != no; then
6973 cat >>confdefs.h <<\_ACEOF
6974 #define ENABLE_JVMPI 1
6975 _ACEOF
6979 # If the target is an eCos system, use the appropriate eCos
6980 # I/O routines.
6981 # FIXME: this should not be a local option but a global target
6982 # system; at present there is no eCos target.
6983 TARGET_ECOS=${PROCESS-"no"}
6985 # Check whether --with-ecos or --without-ecos was given.
6986 if test "${with_ecos+set}" = set; then
6987 withval="$with_ecos"
6988 TARGET_ECOS="$with_ecos"
6992 PLATFORM_INNER_NAT_HDRS=
6993 case "$TARGET_ECOS" in
6994 no) case "$host" in
6995 *mingw*)
6996 PLATFORM=Win32
6997 PLATFORMNET=Win32
6998 PLATFORMH=win32.h
7000 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
7001 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
7002 LD_PROG=`$CC --print-prog-name=ld`
7003 LD_VERSION=`$LD_PROG --version`
7004 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
7005 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
7006 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
7007 LD_OK="ok"
7008 else
7009 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
7010 LD_OK="ok"
7013 if test "x$LD_OK" != x; then
7014 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
7015 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
7016 else
7017 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
7018 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
7019 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
7020 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
7022 cat >>confdefs.h <<\_ACEOF
7023 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
7024 _ACEOF
7029 PLATFORM=Posix
7030 PLATFORMNET=Posix
7031 PLATFORMH=posix.h
7032 PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
7034 esac
7037 PLATFORM=Ecos
7038 PLATFORMNET=NoNet
7040 cat >>confdefs.h <<\_ACEOF
7041 #define ECOS 1
7042 _ACEOF
7044 PLATFORMH=posix.h
7046 esac
7048 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
7051 ac_ext=c
7052 ac_cpp='$CPP $CPPFLAGS'
7053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7056 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7057 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7058 # On Suns, sometimes $CPP names a directory.
7059 if test -n "$CPP" && test -d "$CPP"; then
7060 CPP=
7062 if test -z "$CPP"; then
7063 if test "${ac_cv_prog_CPP+set}" = set; then
7064 echo $ECHO_N "(cached) $ECHO_C" >&6
7065 else
7066 # Double quotes because CPP needs to be expanded
7067 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7069 ac_preproc_ok=false
7070 for ac_c_preproc_warn_flag in '' yes
7072 # Use a header file that comes with gcc, so configuring glibc
7073 # with a fresh cross-compiler works.
7074 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7075 # <limits.h> exists even on freestanding compilers.
7076 # On the NeXT, cc -E runs the code through the compiler's parser,
7077 # not just through cpp. "Syntax error" is here to catch this case.
7078 cat >conftest.$ac_ext <<_ACEOF
7079 /* confdefs.h. */
7080 _ACEOF
7081 cat confdefs.h >>conftest.$ac_ext
7082 cat >>conftest.$ac_ext <<_ACEOF
7083 /* end confdefs.h. */
7084 #ifdef __STDC__
7085 # include <limits.h>
7086 #else
7087 # include <assert.h>
7088 #endif
7089 Syntax error
7090 _ACEOF
7091 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7092 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7093 ac_status=$?
7094 grep -v '^ *+' conftest.er1 >conftest.err
7095 rm -f conftest.er1
7096 cat conftest.err >&5
7097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098 (exit $ac_status); } >/dev/null; then
7099 if test -s conftest.err; then
7100 ac_cpp_err=$ac_c_preproc_warn_flag
7101 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7102 else
7103 ac_cpp_err=
7105 else
7106 ac_cpp_err=yes
7108 if test -z "$ac_cpp_err"; then
7110 else
7111 echo "$as_me: failed program was:" >&5
7112 sed 's/^/| /' conftest.$ac_ext >&5
7114 # Broken: fails on valid input.
7115 continue
7117 rm -f conftest.err conftest.$ac_ext
7119 # OK, works on sane cases. Now check whether non-existent headers
7120 # can be detected and how.
7121 cat >conftest.$ac_ext <<_ACEOF
7122 /* confdefs.h. */
7123 _ACEOF
7124 cat confdefs.h >>conftest.$ac_ext
7125 cat >>conftest.$ac_ext <<_ACEOF
7126 /* end confdefs.h. */
7127 #include <ac_nonexistent.h>
7128 _ACEOF
7129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7131 ac_status=$?
7132 grep -v '^ *+' conftest.er1 >conftest.err
7133 rm -f conftest.er1
7134 cat conftest.err >&5
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); } >/dev/null; then
7137 if test -s conftest.err; then
7138 ac_cpp_err=$ac_c_preproc_warn_flag
7139 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7140 else
7141 ac_cpp_err=
7143 else
7144 ac_cpp_err=yes
7146 if test -z "$ac_cpp_err"; then
7147 # Broken: success on invalid input.
7148 continue
7149 else
7150 echo "$as_me: failed program was:" >&5
7151 sed 's/^/| /' conftest.$ac_ext >&5
7153 # Passes both tests.
7154 ac_preproc_ok=:
7155 break
7157 rm -f conftest.err conftest.$ac_ext
7159 done
7160 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7161 rm -f conftest.err conftest.$ac_ext
7162 if $ac_preproc_ok; then
7163 break
7166 done
7167 ac_cv_prog_CPP=$CPP
7170 CPP=$ac_cv_prog_CPP
7171 else
7172 ac_cv_prog_CPP=$CPP
7174 echo "$as_me:$LINENO: result: $CPP" >&5
7175 echo "${ECHO_T}$CPP" >&6
7176 ac_preproc_ok=false
7177 for ac_c_preproc_warn_flag in '' yes
7179 # Use a header file that comes with gcc, so configuring glibc
7180 # with a fresh cross-compiler works.
7181 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7182 # <limits.h> exists even on freestanding compilers.
7183 # On the NeXT, cc -E runs the code through the compiler's parser,
7184 # not just through cpp. "Syntax error" is here to catch this case.
7185 cat >conftest.$ac_ext <<_ACEOF
7186 /* confdefs.h. */
7187 _ACEOF
7188 cat confdefs.h >>conftest.$ac_ext
7189 cat >>conftest.$ac_ext <<_ACEOF
7190 /* end confdefs.h. */
7191 #ifdef __STDC__
7192 # include <limits.h>
7193 #else
7194 # include <assert.h>
7195 #endif
7196 Syntax error
7197 _ACEOF
7198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7200 ac_status=$?
7201 grep -v '^ *+' conftest.er1 >conftest.err
7202 rm -f conftest.er1
7203 cat conftest.err >&5
7204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205 (exit $ac_status); } >/dev/null; then
7206 if test -s conftest.err; then
7207 ac_cpp_err=$ac_c_preproc_warn_flag
7208 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7209 else
7210 ac_cpp_err=
7212 else
7213 ac_cpp_err=yes
7215 if test -z "$ac_cpp_err"; then
7217 else
7218 echo "$as_me: failed program was:" >&5
7219 sed 's/^/| /' conftest.$ac_ext >&5
7221 # Broken: fails on valid input.
7222 continue
7224 rm -f conftest.err conftest.$ac_ext
7226 # OK, works on sane cases. Now check whether non-existent headers
7227 # can be detected and how.
7228 cat >conftest.$ac_ext <<_ACEOF
7229 /* confdefs.h. */
7230 _ACEOF
7231 cat confdefs.h >>conftest.$ac_ext
7232 cat >>conftest.$ac_ext <<_ACEOF
7233 /* end confdefs.h. */
7234 #include <ac_nonexistent.h>
7235 _ACEOF
7236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7237 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7238 ac_status=$?
7239 grep -v '^ *+' conftest.er1 >conftest.err
7240 rm -f conftest.er1
7241 cat conftest.err >&5
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); } >/dev/null; then
7244 if test -s conftest.err; then
7245 ac_cpp_err=$ac_c_preproc_warn_flag
7246 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7247 else
7248 ac_cpp_err=
7250 else
7251 ac_cpp_err=yes
7253 if test -z "$ac_cpp_err"; then
7254 # Broken: success on invalid input.
7255 continue
7256 else
7257 echo "$as_me: failed program was:" >&5
7258 sed 's/^/| /' conftest.$ac_ext >&5
7260 # Passes both tests.
7261 ac_preproc_ok=:
7262 break
7264 rm -f conftest.err conftest.$ac_ext
7266 done
7267 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7268 rm -f conftest.err conftest.$ac_ext
7269 if $ac_preproc_ok; then
7271 else
7272 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7273 See \`config.log' for more details." >&5
7274 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7275 See \`config.log' for more details." >&2;}
7276 { (exit 1); exit 1; }; }
7279 ac_ext=c
7280 ac_cpp='$CPP $CPPFLAGS'
7281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7286 echo "$as_me:$LINENO: checking for egrep" >&5
7287 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
7288 if test "${ac_cv_prog_egrep+set}" = set; then
7289 echo $ECHO_N "(cached) $ECHO_C" >&6
7290 else
7291 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
7292 then ac_cv_prog_egrep='grep -E'
7293 else ac_cv_prog_egrep='egrep'
7296 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
7297 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
7298 EGREP=$ac_cv_prog_egrep
7301 cat >conftest.$ac_ext <<_ACEOF
7302 /* confdefs.h. */
7303 _ACEOF
7304 cat confdefs.h >>conftest.$ac_ext
7305 cat >>conftest.$ac_ext <<_ACEOF
7306 /* end confdefs.h. */
7307 #include <stdint.h>
7309 _ACEOF
7310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7311 $EGREP "uint32_t" >/dev/null 2>&1; then
7313 cat >>confdefs.h <<\_ACEOF
7314 #define HAVE_INT32_DEFINED 1
7315 _ACEOF
7318 rm -f conftest*
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 <inttypes.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 <sys/types.h>
7347 _ACEOF
7348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7349 $EGREP "u_int32_t" >/dev/null 2>&1; then
7351 cat >>confdefs.h <<\_ACEOF
7352 #define HAVE_BSD_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/config.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*
7380 if test "$PLATFORM" = Win32; then
7381 USING_WIN32_PLATFORM_TRUE=
7382 USING_WIN32_PLATFORM_FALSE='#'
7383 else
7384 USING_WIN32_PLATFORM_TRUE='#'
7385 USING_WIN32_PLATFORM_FALSE=
7390 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
7391 USING_POSIX_PLATFORM_TRUE=
7392 USING_POSIX_PLATFORM_FALSE='#'
7393 else
7394 USING_POSIX_PLATFORM_TRUE='#'
7395 USING_POSIX_PLATFORM_FALSE=
7399 case "$host" in
7400 *-darwin*) DARWIN_CRT=true ;;
7401 *) DARWIN_CRT=false ;;
7402 esac
7405 if $DARWIN_CRT; then
7406 USING_DARWIN_CRT_TRUE=
7407 USING_DARWIN_CRT_FALSE='#'
7408 else
7409 USING_DARWIN_CRT_TRUE='#'
7410 USING_DARWIN_CRT_FALSE=
7414 # These may not be defined in a non-ANS conformant embedded system.
7415 # FIXME: Should these case a runtime exception in that case?
7416 cat >conftest.$ac_ext <<_ACEOF
7417 /* confdefs.h. */
7418 _ACEOF
7419 cat confdefs.h >>conftest.$ac_ext
7420 cat >>conftest.$ac_ext <<_ACEOF
7421 /* end confdefs.h. */
7422 #include <time.h>
7424 _ACEOF
7425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7426 $EGREP "mktime" >/dev/null 2>&1; then
7428 cat >>confdefs.h <<\_ACEOF
7429 #define HAVE_MKTIME 1
7430 _ACEOF
7433 rm -f conftest*
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 "localtime" >/dev/null 2>&1; then
7447 cat >>confdefs.h <<\_ACEOF
7448 #define HAVE_LOCALTIME 1
7449 _ACEOF
7452 rm -f conftest*
7455 # Create the subdirectory for natFile.cc, or the attempt
7456 # to create the link will fail.
7457 test -d java || mkdir java
7458 test -d java/io || mkdir java/io
7459 test -d gnu || mkdir gnu
7460 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
7463 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
7464 test -d java/lang || mkdir java/lang
7465 ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
7467 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
7470 # Likewise for natInetAddress.cc and natVMNetworkInterface.cc.
7471 test -d java/net || mkdir java/net
7472 ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
7474 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
7477 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
7478 test -d gnu/java || mkdir gnu/java
7479 test -d gnu/java/net || mkdir gnu/java/net
7480 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
7482 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
7485 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
7486 test -d gnu/java/nio || mkdir gnu/java/nio
7487 ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
7489 ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
7491 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
7492 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
7495 case "${host}" in
7496 *mingw*)
7497 SYSTEMSPEC="-lgdi32 -lws2_32"
7498 if test "${with_win32_nlsapi}" = "unicows"; then
7499 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
7503 SYSTEMSPEC=
7505 esac
7508 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
7512 # Check whether --with-system-zlib or --without-system-zlib was given.
7513 if test "${with_system_zlib+set}" = set; then
7514 withval="$with_system_zlib"
7517 ZLIBSPEC=
7519 ZLIBTESTSPEC=
7522 echo "$as_me:$LINENO: checking for X" >&5
7523 echo $ECHO_N "checking for X... $ECHO_C" >&6
7526 # Check whether --with-x or --without-x was given.
7527 if test "${with_x+set}" = set; then
7528 withval="$with_x"
7531 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7532 if test "x$with_x" = xno; then
7533 # The user explicitly disabled X.
7534 have_x=disabled
7535 else
7536 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7537 # Both variables are already set.
7538 have_x=yes
7539 else
7540 if test "${ac_cv_have_x+set}" = set; then
7541 echo $ECHO_N "(cached) $ECHO_C" >&6
7542 else
7543 # One or both of the vars are not set, and there is no cached value.
7544 ac_x_includes=no ac_x_libraries=no
7545 rm -fr conftest.dir
7546 if mkdir conftest.dir; then
7547 cd conftest.dir
7548 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7549 cat >Imakefile <<'_ACEOF'
7550 acfindx:
7551 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7552 _ACEOF
7553 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7554 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7555 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7556 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7557 for ac_extension in a so sl; do
7558 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7559 test -f $ac_im_libdir/libX11.$ac_extension; then
7560 ac_im_usrlibdir=$ac_im_libdir; break
7562 done
7563 # Screen out bogus values from the imake configuration. They are
7564 # bogus both because they are the default anyway, and because
7565 # using them would break gcc on systems where it needs fixed includes.
7566 case $ac_im_incroot in
7567 /usr/include) ;;
7568 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7569 esac
7570 case $ac_im_usrlibdir in
7571 /usr/lib | /lib) ;;
7572 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7573 esac
7575 cd ..
7576 rm -fr conftest.dir
7579 # Standard set of common directories for X headers.
7580 # Check X11 before X11Rn because it is often a symlink to the current release.
7581 ac_x_header_dirs='
7582 /usr/X11/include
7583 /usr/X11R6/include
7584 /usr/X11R5/include
7585 /usr/X11R4/include
7587 /usr/include/X11
7588 /usr/include/X11R6
7589 /usr/include/X11R5
7590 /usr/include/X11R4
7592 /usr/local/X11/include
7593 /usr/local/X11R6/include
7594 /usr/local/X11R5/include
7595 /usr/local/X11R4/include
7597 /usr/local/include/X11
7598 /usr/local/include/X11R6
7599 /usr/local/include/X11R5
7600 /usr/local/include/X11R4
7602 /usr/X386/include
7603 /usr/x386/include
7604 /usr/XFree86/include/X11
7606 /usr/include
7607 /usr/local/include
7608 /usr/unsupported/include
7609 /usr/athena/include
7610 /usr/local/x11r5/include
7611 /usr/lpp/Xamples/include
7613 /usr/openwin/include
7614 /usr/openwin/share/include'
7616 if test "$ac_x_includes" = no; then
7617 # Guess where to find include files, by looking for Intrinsic.h.
7618 # First, try using that file with no special directory specified.
7619 cat >conftest.$ac_ext <<_ACEOF
7620 /* confdefs.h. */
7621 _ACEOF
7622 cat confdefs.h >>conftest.$ac_ext
7623 cat >>conftest.$ac_ext <<_ACEOF
7624 /* end confdefs.h. */
7625 #include <X11/Intrinsic.h>
7626 _ACEOF
7627 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7628 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7629 ac_status=$?
7630 grep -v '^ *+' conftest.er1 >conftest.err
7631 rm -f conftest.er1
7632 cat conftest.err >&5
7633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634 (exit $ac_status); } >/dev/null; then
7635 if test -s conftest.err; then
7636 ac_cpp_err=$ac_c_preproc_warn_flag
7637 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7638 else
7639 ac_cpp_err=
7641 else
7642 ac_cpp_err=yes
7644 if test -z "$ac_cpp_err"; then
7645 # We can compile using X headers with no special include directory.
7646 ac_x_includes=
7647 else
7648 echo "$as_me: failed program was:" >&5
7649 sed 's/^/| /' conftest.$ac_ext >&5
7651 for ac_dir in $ac_x_header_dirs; do
7652 if test -r "$ac_dir/X11/Intrinsic.h"; then
7653 ac_x_includes=$ac_dir
7654 break
7656 done
7658 rm -f conftest.err conftest.$ac_ext
7659 fi # $ac_x_includes = no
7661 if test "$ac_x_libraries" = no; then
7662 # Check for the libraries.
7663 # See if we find them without any special options.
7664 # Don't add to $LIBS permanently.
7665 ac_save_LIBS=$LIBS
7666 LIBS="-lXt $LIBS"
7667 if test x$gcc_no_link = xyes; then
7668 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7669 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7670 { (exit 1); exit 1; }; }
7672 cat >conftest.$ac_ext <<_ACEOF
7673 /* confdefs.h. */
7674 _ACEOF
7675 cat confdefs.h >>conftest.$ac_ext
7676 cat >>conftest.$ac_ext <<_ACEOF
7677 /* end confdefs.h. */
7678 #include <X11/Intrinsic.h>
7680 main ()
7682 XtMalloc (0)
7684 return 0;
7686 _ACEOF
7687 rm -f conftest.$ac_objext conftest$ac_exeext
7688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7689 (eval $ac_link) 2>conftest.er1
7690 ac_status=$?
7691 grep -v '^ *+' conftest.er1 >conftest.err
7692 rm -f conftest.er1
7693 cat conftest.err >&5
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); } &&
7696 { ac_try='test -z "$ac_c_werror_flag"
7697 || test ! -s conftest.err'
7698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7699 (eval $ac_try) 2>&5
7700 ac_status=$?
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); }; } &&
7703 { ac_try='test -s conftest$ac_exeext'
7704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7705 (eval $ac_try) 2>&5
7706 ac_status=$?
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); }; }; then
7709 LIBS=$ac_save_LIBS
7710 # We can link X programs with no special library path.
7711 ac_x_libraries=
7712 else
7713 echo "$as_me: failed program was:" >&5
7714 sed 's/^/| /' conftest.$ac_ext >&5
7716 LIBS=$ac_save_LIBS
7717 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7719 # Don't even attempt the hair of trying to link an X program!
7720 for ac_extension in a so sl; do
7721 if test -r $ac_dir/libXt.$ac_extension; then
7722 ac_x_libraries=$ac_dir
7723 break 2
7725 done
7726 done
7728 rm -f conftest.err conftest.$ac_objext \
7729 conftest$ac_exeext conftest.$ac_ext
7730 fi # $ac_x_libraries = no
7732 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7733 # Didn't find X anywhere. Cache the known absence of X.
7734 ac_cv_have_x="have_x=no"
7735 else
7736 # Record where we found X for the cache.
7737 ac_cv_have_x="have_x=yes \
7738 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7743 eval "$ac_cv_have_x"
7744 fi # $with_x != no
7746 if test "$have_x" != yes; then
7747 echo "$as_me:$LINENO: result: $have_x" >&5
7748 echo "${ECHO_T}$have_x" >&6
7749 no_x=yes
7750 else
7751 # If each of the values was on the command line, it overrides each guess.
7752 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7753 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7754 # Update the cache value to reflect the command line values.
7755 ac_cv_have_x="have_x=yes \
7756 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7757 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7758 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7761 if test "$no_x" = yes; then
7762 # Not all programs may use this symbol, but it does not hurt to define it.
7764 cat >>confdefs.h <<\_ACEOF
7765 #define X_DISPLAY_MISSING 1
7766 _ACEOF
7768 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7769 else
7770 if test -n "$x_includes"; then
7771 X_CFLAGS="$X_CFLAGS -I$x_includes"
7774 # It would also be nice to do this for all -L options, not just this one.
7775 if test -n "$x_libraries"; then
7776 X_LIBS="$X_LIBS -L$x_libraries"
7777 # For Solaris; some versions of Sun CC require a space after -R and
7778 # others require no space. Words are not sufficient . . . .
7779 case `(uname -sr) 2>/dev/null` in
7780 "SunOS 5"*)
7781 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7782 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7783 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7784 if test x$gcc_no_link = xyes; then
7785 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7786 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7787 { (exit 1); exit 1; }; }
7789 cat >conftest.$ac_ext <<_ACEOF
7790 /* confdefs.h. */
7791 _ACEOF
7792 cat confdefs.h >>conftest.$ac_ext
7793 cat >>conftest.$ac_ext <<_ACEOF
7794 /* end confdefs.h. */
7797 main ()
7801 return 0;
7803 _ACEOF
7804 rm -f conftest.$ac_objext conftest$ac_exeext
7805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7806 (eval $ac_link) 2>conftest.er1
7807 ac_status=$?
7808 grep -v '^ *+' conftest.er1 >conftest.err
7809 rm -f conftest.er1
7810 cat conftest.err >&5
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 (exit $ac_status); } &&
7813 { ac_try='test -z "$ac_c_werror_flag"
7814 || test ! -s conftest.err'
7815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7816 (eval $ac_try) 2>&5
7817 ac_status=$?
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); }; } &&
7820 { ac_try='test -s conftest$ac_exeext'
7821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7822 (eval $ac_try) 2>&5
7823 ac_status=$?
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); }; }; then
7826 ac_R_nospace=yes
7827 else
7828 echo "$as_me: failed program was:" >&5
7829 sed 's/^/| /' conftest.$ac_ext >&5
7831 ac_R_nospace=no
7833 rm -f conftest.err conftest.$ac_objext \
7834 conftest$ac_exeext conftest.$ac_ext
7835 if test $ac_R_nospace = yes; then
7836 echo "$as_me:$LINENO: result: no" >&5
7837 echo "${ECHO_T}no" >&6
7838 X_LIBS="$X_LIBS -R$x_libraries"
7839 else
7840 LIBS="$ac_xsave_LIBS -R $x_libraries"
7841 if test x$gcc_no_link = xyes; then
7842 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7843 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7844 { (exit 1); exit 1; }; }
7846 cat >conftest.$ac_ext <<_ACEOF
7847 /* confdefs.h. */
7848 _ACEOF
7849 cat confdefs.h >>conftest.$ac_ext
7850 cat >>conftest.$ac_ext <<_ACEOF
7851 /* end confdefs.h. */
7854 main ()
7858 return 0;
7860 _ACEOF
7861 rm -f conftest.$ac_objext conftest$ac_exeext
7862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7863 (eval $ac_link) 2>conftest.er1
7864 ac_status=$?
7865 grep -v '^ *+' conftest.er1 >conftest.err
7866 rm -f conftest.er1
7867 cat conftest.err >&5
7868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869 (exit $ac_status); } &&
7870 { ac_try='test -z "$ac_c_werror_flag"
7871 || test ! -s conftest.err'
7872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7873 (eval $ac_try) 2>&5
7874 ac_status=$?
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); }; } &&
7877 { ac_try='test -s conftest$ac_exeext'
7878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7879 (eval $ac_try) 2>&5
7880 ac_status=$?
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); }; }; then
7883 ac_R_space=yes
7884 else
7885 echo "$as_me: failed program was:" >&5
7886 sed 's/^/| /' conftest.$ac_ext >&5
7888 ac_R_space=no
7890 rm -f conftest.err conftest.$ac_objext \
7891 conftest$ac_exeext conftest.$ac_ext
7892 if test $ac_R_space = yes; then
7893 echo "$as_me:$LINENO: result: yes" >&5
7894 echo "${ECHO_T}yes" >&6
7895 X_LIBS="$X_LIBS -R $x_libraries"
7896 else
7897 echo "$as_me:$LINENO: result: neither works" >&5
7898 echo "${ECHO_T}neither works" >&6
7901 LIBS=$ac_xsave_LIBS
7902 esac
7905 # Check for system-dependent libraries X programs must link with.
7906 # Do this before checking for the system-independent R6 libraries
7907 # (-lICE), since we may need -lsocket or whatever for X linking.
7909 if test "$ISC" = yes; then
7910 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7911 else
7912 # Martyn Johnson says this is needed for Ultrix, if the X
7913 # libraries were built with DECnet support. And Karl Berry says
7914 # the Alpha needs dnet_stub (dnet does not exist).
7915 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7916 if test x$gcc_no_link = xyes; then
7917 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7918 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7919 { (exit 1); exit 1; }; }
7921 cat >conftest.$ac_ext <<_ACEOF
7922 /* confdefs.h. */
7923 _ACEOF
7924 cat confdefs.h >>conftest.$ac_ext
7925 cat >>conftest.$ac_ext <<_ACEOF
7926 /* end confdefs.h. */
7928 /* Override any gcc2 internal prototype to avoid an error. */
7929 #ifdef __cplusplus
7930 extern "C"
7931 #endif
7932 /* We use char because int might match the return type of a gcc2
7933 builtin and then its argument prototype would still apply. */
7934 char XOpenDisplay ();
7936 main ()
7938 XOpenDisplay ();
7940 return 0;
7942 _ACEOF
7943 rm -f conftest.$ac_objext conftest$ac_exeext
7944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7945 (eval $ac_link) 2>conftest.er1
7946 ac_status=$?
7947 grep -v '^ *+' conftest.er1 >conftest.err
7948 rm -f conftest.er1
7949 cat conftest.err >&5
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); } &&
7952 { ac_try='test -z "$ac_c_werror_flag"
7953 || test ! -s conftest.err'
7954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7955 (eval $ac_try) 2>&5
7956 ac_status=$?
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); }; } &&
7959 { ac_try='test -s conftest$ac_exeext'
7960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7961 (eval $ac_try) 2>&5
7962 ac_status=$?
7963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964 (exit $ac_status); }; }; then
7966 else
7967 echo "$as_me: failed program was:" >&5
7968 sed 's/^/| /' conftest.$ac_ext >&5
7970 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7971 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7972 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7973 echo $ECHO_N "(cached) $ECHO_C" >&6
7974 else
7975 ac_check_lib_save_LIBS=$LIBS
7976 LIBS="-ldnet $LIBS"
7977 if test x$gcc_no_link = xyes; then
7978 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7979 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7980 { (exit 1); exit 1; }; }
7982 cat >conftest.$ac_ext <<_ACEOF
7983 /* confdefs.h. */
7984 _ACEOF
7985 cat confdefs.h >>conftest.$ac_ext
7986 cat >>conftest.$ac_ext <<_ACEOF
7987 /* end confdefs.h. */
7989 /* Override any gcc2 internal prototype to avoid an error. */
7990 #ifdef __cplusplus
7991 extern "C"
7992 #endif
7993 /* We use char because int might match the return type of a gcc2
7994 builtin and then its argument prototype would still apply. */
7995 char dnet_ntoa ();
7997 main ()
7999 dnet_ntoa ();
8001 return 0;
8003 _ACEOF
8004 rm -f conftest.$ac_objext conftest$ac_exeext
8005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8006 (eval $ac_link) 2>conftest.er1
8007 ac_status=$?
8008 grep -v '^ *+' conftest.er1 >conftest.err
8009 rm -f conftest.er1
8010 cat conftest.err >&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); } &&
8013 { ac_try='test -z "$ac_c_werror_flag"
8014 || test ! -s conftest.err'
8015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8016 (eval $ac_try) 2>&5
8017 ac_status=$?
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); }; } &&
8020 { ac_try='test -s conftest$ac_exeext'
8021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8022 (eval $ac_try) 2>&5
8023 ac_status=$?
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); }; }; then
8026 ac_cv_lib_dnet_dnet_ntoa=yes
8027 else
8028 echo "$as_me: failed program was:" >&5
8029 sed 's/^/| /' conftest.$ac_ext >&5
8031 ac_cv_lib_dnet_dnet_ntoa=no
8033 rm -f conftest.err conftest.$ac_objext \
8034 conftest$ac_exeext conftest.$ac_ext
8035 LIBS=$ac_check_lib_save_LIBS
8037 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8038 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8039 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8040 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8043 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8044 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8045 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8046 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8047 echo $ECHO_N "(cached) $ECHO_C" >&6
8048 else
8049 ac_check_lib_save_LIBS=$LIBS
8050 LIBS="-ldnet_stub $LIBS"
8051 if test x$gcc_no_link = xyes; then
8052 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8053 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8054 { (exit 1); exit 1; }; }
8056 cat >conftest.$ac_ext <<_ACEOF
8057 /* confdefs.h. */
8058 _ACEOF
8059 cat confdefs.h >>conftest.$ac_ext
8060 cat >>conftest.$ac_ext <<_ACEOF
8061 /* end confdefs.h. */
8063 /* Override any gcc2 internal prototype to avoid an error. */
8064 #ifdef __cplusplus
8065 extern "C"
8066 #endif
8067 /* We use char because int might match the return type of a gcc2
8068 builtin and then its argument prototype would still apply. */
8069 char dnet_ntoa ();
8071 main ()
8073 dnet_ntoa ();
8075 return 0;
8077 _ACEOF
8078 rm -f conftest.$ac_objext conftest$ac_exeext
8079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8080 (eval $ac_link) 2>conftest.er1
8081 ac_status=$?
8082 grep -v '^ *+' conftest.er1 >conftest.err
8083 rm -f conftest.er1
8084 cat conftest.err >&5
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); } &&
8087 { ac_try='test -z "$ac_c_werror_flag"
8088 || test ! -s conftest.err'
8089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8090 (eval $ac_try) 2>&5
8091 ac_status=$?
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); }; } &&
8094 { ac_try='test -s conftest$ac_exeext'
8095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8096 (eval $ac_try) 2>&5
8097 ac_status=$?
8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); }; }; then
8100 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8101 else
8102 echo "$as_me: failed program was:" >&5
8103 sed 's/^/| /' conftest.$ac_ext >&5
8105 ac_cv_lib_dnet_stub_dnet_ntoa=no
8107 rm -f conftest.err conftest.$ac_objext \
8108 conftest$ac_exeext conftest.$ac_ext
8109 LIBS=$ac_check_lib_save_LIBS
8111 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8112 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8113 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8114 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8119 rm -f conftest.err conftest.$ac_objext \
8120 conftest$ac_exeext conftest.$ac_ext
8121 LIBS="$ac_xsave_LIBS"
8123 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8124 # to get the SysV transport functions.
8125 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8126 # needs -lnsl.
8127 # The nsl library prevents programs from opening the X display
8128 # on Irix 5.2, according to T.E. Dickey.
8129 # The functions gethostbyname, getservbyname, and inet_addr are
8130 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8131 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8132 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8133 if test "${ac_cv_func_gethostbyname+set}" = set; then
8134 echo $ECHO_N "(cached) $ECHO_C" >&6
8135 else
8136 if test x$gcc_no_link = xyes; then
8137 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8138 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8139 { (exit 1); exit 1; }; }
8141 cat >conftest.$ac_ext <<_ACEOF
8142 /* confdefs.h. */
8143 _ACEOF
8144 cat confdefs.h >>conftest.$ac_ext
8145 cat >>conftest.$ac_ext <<_ACEOF
8146 /* end confdefs.h. */
8147 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
8148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8149 #define gethostbyname innocuous_gethostbyname
8151 /* System header to define __stub macros and hopefully few prototypes,
8152 which can conflict with char gethostbyname (); below.
8153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8154 <limits.h> exists even on freestanding compilers. */
8156 #ifdef __STDC__
8157 # include <limits.h>
8158 #else
8159 # include <assert.h>
8160 #endif
8162 #undef gethostbyname
8164 /* Override any gcc2 internal prototype to avoid an error. */
8165 #ifdef __cplusplus
8166 extern "C"
8168 #endif
8169 /* We use char because int might match the return type of a gcc2
8170 builtin and then its argument prototype would still apply. */
8171 char gethostbyname ();
8172 /* The GNU C library defines this for functions which it implements
8173 to always fail with ENOSYS. Some functions are actually named
8174 something starting with __ and the normal name is an alias. */
8175 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8176 choke me
8177 #else
8178 char (*f) () = gethostbyname;
8179 #endif
8180 #ifdef __cplusplus
8182 #endif
8185 main ()
8187 return f != gethostbyname;
8189 return 0;
8191 _ACEOF
8192 rm -f conftest.$ac_objext conftest$ac_exeext
8193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8194 (eval $ac_link) 2>conftest.er1
8195 ac_status=$?
8196 grep -v '^ *+' conftest.er1 >conftest.err
8197 rm -f conftest.er1
8198 cat conftest.err >&5
8199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200 (exit $ac_status); } &&
8201 { ac_try='test -z "$ac_c_werror_flag"
8202 || test ! -s conftest.err'
8203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8204 (eval $ac_try) 2>&5
8205 ac_status=$?
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); }; } &&
8208 { ac_try='test -s conftest$ac_exeext'
8209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8210 (eval $ac_try) 2>&5
8211 ac_status=$?
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); }; }; then
8214 ac_cv_func_gethostbyname=yes
8215 else
8216 echo "$as_me: failed program was:" >&5
8217 sed 's/^/| /' conftest.$ac_ext >&5
8219 ac_cv_func_gethostbyname=no
8221 rm -f conftest.err conftest.$ac_objext \
8222 conftest$ac_exeext conftest.$ac_ext
8224 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8225 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8227 if test $ac_cv_func_gethostbyname = no; then
8228 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8229 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8230 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8231 echo $ECHO_N "(cached) $ECHO_C" >&6
8232 else
8233 ac_check_lib_save_LIBS=$LIBS
8234 LIBS="-lnsl $LIBS"
8235 if test x$gcc_no_link = xyes; then
8236 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8237 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8238 { (exit 1); exit 1; }; }
8240 cat >conftest.$ac_ext <<_ACEOF
8241 /* confdefs.h. */
8242 _ACEOF
8243 cat confdefs.h >>conftest.$ac_ext
8244 cat >>conftest.$ac_ext <<_ACEOF
8245 /* end confdefs.h. */
8247 /* Override any gcc2 internal prototype to avoid an error. */
8248 #ifdef __cplusplus
8249 extern "C"
8250 #endif
8251 /* We use char because int might match the return type of a gcc2
8252 builtin and then its argument prototype would still apply. */
8253 char gethostbyname ();
8255 main ()
8257 gethostbyname ();
8259 return 0;
8261 _ACEOF
8262 rm -f conftest.$ac_objext conftest$ac_exeext
8263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8264 (eval $ac_link) 2>conftest.er1
8265 ac_status=$?
8266 grep -v '^ *+' conftest.er1 >conftest.err
8267 rm -f conftest.er1
8268 cat conftest.err >&5
8269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270 (exit $ac_status); } &&
8271 { ac_try='test -z "$ac_c_werror_flag"
8272 || test ! -s conftest.err'
8273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8274 (eval $ac_try) 2>&5
8275 ac_status=$?
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); }; } &&
8278 { ac_try='test -s conftest$ac_exeext'
8279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8280 (eval $ac_try) 2>&5
8281 ac_status=$?
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); }; }; then
8284 ac_cv_lib_nsl_gethostbyname=yes
8285 else
8286 echo "$as_me: failed program was:" >&5
8287 sed 's/^/| /' conftest.$ac_ext >&5
8289 ac_cv_lib_nsl_gethostbyname=no
8291 rm -f conftest.err conftest.$ac_objext \
8292 conftest$ac_exeext conftest.$ac_ext
8293 LIBS=$ac_check_lib_save_LIBS
8295 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8296 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8297 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8298 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8301 if test $ac_cv_lib_nsl_gethostbyname = no; then
8302 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8303 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8304 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8305 echo $ECHO_N "(cached) $ECHO_C" >&6
8306 else
8307 ac_check_lib_save_LIBS=$LIBS
8308 LIBS="-lbsd $LIBS"
8309 if test x$gcc_no_link = xyes; then
8310 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8311 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8312 { (exit 1); exit 1; }; }
8314 cat >conftest.$ac_ext <<_ACEOF
8315 /* confdefs.h. */
8316 _ACEOF
8317 cat confdefs.h >>conftest.$ac_ext
8318 cat >>conftest.$ac_ext <<_ACEOF
8319 /* end confdefs.h. */
8321 /* Override any gcc2 internal prototype to avoid an error. */
8322 #ifdef __cplusplus
8323 extern "C"
8324 #endif
8325 /* We use char because int might match the return type of a gcc2
8326 builtin and then its argument prototype would still apply. */
8327 char gethostbyname ();
8329 main ()
8331 gethostbyname ();
8333 return 0;
8335 _ACEOF
8336 rm -f conftest.$ac_objext conftest$ac_exeext
8337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8338 (eval $ac_link) 2>conftest.er1
8339 ac_status=$?
8340 grep -v '^ *+' conftest.er1 >conftest.err
8341 rm -f conftest.er1
8342 cat conftest.err >&5
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); } &&
8345 { ac_try='test -z "$ac_c_werror_flag"
8346 || test ! -s conftest.err'
8347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8348 (eval $ac_try) 2>&5
8349 ac_status=$?
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); }; } &&
8352 { ac_try='test -s conftest$ac_exeext'
8353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8354 (eval $ac_try) 2>&5
8355 ac_status=$?
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); }; }; then
8358 ac_cv_lib_bsd_gethostbyname=yes
8359 else
8360 echo "$as_me: failed program was:" >&5
8361 sed 's/^/| /' conftest.$ac_ext >&5
8363 ac_cv_lib_bsd_gethostbyname=no
8365 rm -f conftest.err conftest.$ac_objext \
8366 conftest$ac_exeext conftest.$ac_ext
8367 LIBS=$ac_check_lib_save_LIBS
8369 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8370 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8371 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8372 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8378 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8379 # socket/setsockopt and other routines are undefined under SCO ODT
8380 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8381 # on later versions), says Simon Leinen: it contains gethostby*
8382 # variants that don't use the name server (or something). -lsocket
8383 # must be given before -lnsl if both are needed. We assume that
8384 # if connect needs -lnsl, so does gethostbyname.
8385 echo "$as_me:$LINENO: checking for connect" >&5
8386 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8387 if test "${ac_cv_func_connect+set}" = set; then
8388 echo $ECHO_N "(cached) $ECHO_C" >&6
8389 else
8390 if test x$gcc_no_link = xyes; then
8391 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8392 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8393 { (exit 1); exit 1; }; }
8395 cat >conftest.$ac_ext <<_ACEOF
8396 /* confdefs.h. */
8397 _ACEOF
8398 cat confdefs.h >>conftest.$ac_ext
8399 cat >>conftest.$ac_ext <<_ACEOF
8400 /* end confdefs.h. */
8401 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
8402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8403 #define connect innocuous_connect
8405 /* System header to define __stub macros and hopefully few prototypes,
8406 which can conflict with char connect (); below.
8407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8408 <limits.h> exists even on freestanding compilers. */
8410 #ifdef __STDC__
8411 # include <limits.h>
8412 #else
8413 # include <assert.h>
8414 #endif
8416 #undef connect
8418 /* Override any gcc2 internal prototype to avoid an error. */
8419 #ifdef __cplusplus
8420 extern "C"
8422 #endif
8423 /* We use char because int might match the return type of a gcc2
8424 builtin and then its argument prototype would still apply. */
8425 char connect ();
8426 /* The GNU C library defines this for functions which it implements
8427 to always fail with ENOSYS. Some functions are actually named
8428 something starting with __ and the normal name is an alias. */
8429 #if defined (__stub_connect) || defined (__stub___connect)
8430 choke me
8431 #else
8432 char (*f) () = connect;
8433 #endif
8434 #ifdef __cplusplus
8436 #endif
8439 main ()
8441 return f != connect;
8443 return 0;
8445 _ACEOF
8446 rm -f conftest.$ac_objext conftest$ac_exeext
8447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8448 (eval $ac_link) 2>conftest.er1
8449 ac_status=$?
8450 grep -v '^ *+' conftest.er1 >conftest.err
8451 rm -f conftest.er1
8452 cat conftest.err >&5
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); } &&
8455 { ac_try='test -z "$ac_c_werror_flag"
8456 || test ! -s conftest.err'
8457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8458 (eval $ac_try) 2>&5
8459 ac_status=$?
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); }; } &&
8462 { ac_try='test -s conftest$ac_exeext'
8463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8464 (eval $ac_try) 2>&5
8465 ac_status=$?
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); }; }; then
8468 ac_cv_func_connect=yes
8469 else
8470 echo "$as_me: failed program was:" >&5
8471 sed 's/^/| /' conftest.$ac_ext >&5
8473 ac_cv_func_connect=no
8475 rm -f conftest.err conftest.$ac_objext \
8476 conftest$ac_exeext conftest.$ac_ext
8478 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8479 echo "${ECHO_T}$ac_cv_func_connect" >&6
8481 if test $ac_cv_func_connect = no; then
8482 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8483 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8484 if test "${ac_cv_lib_socket_connect+set}" = set; then
8485 echo $ECHO_N "(cached) $ECHO_C" >&6
8486 else
8487 ac_check_lib_save_LIBS=$LIBS
8488 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8489 if test x$gcc_no_link = xyes; then
8490 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8491 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8492 { (exit 1); exit 1; }; }
8494 cat >conftest.$ac_ext <<_ACEOF
8495 /* confdefs.h. */
8496 _ACEOF
8497 cat confdefs.h >>conftest.$ac_ext
8498 cat >>conftest.$ac_ext <<_ACEOF
8499 /* end confdefs.h. */
8501 /* Override any gcc2 internal prototype to avoid an error. */
8502 #ifdef __cplusplus
8503 extern "C"
8504 #endif
8505 /* We use char because int might match the return type of a gcc2
8506 builtin and then its argument prototype would still apply. */
8507 char connect ();
8509 main ()
8511 connect ();
8513 return 0;
8515 _ACEOF
8516 rm -f conftest.$ac_objext conftest$ac_exeext
8517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8518 (eval $ac_link) 2>conftest.er1
8519 ac_status=$?
8520 grep -v '^ *+' conftest.er1 >conftest.err
8521 rm -f conftest.er1
8522 cat conftest.err >&5
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); } &&
8525 { ac_try='test -z "$ac_c_werror_flag"
8526 || test ! -s conftest.err'
8527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8528 (eval $ac_try) 2>&5
8529 ac_status=$?
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); }; } &&
8532 { ac_try='test -s conftest$ac_exeext'
8533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8534 (eval $ac_try) 2>&5
8535 ac_status=$?
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); }; }; then
8538 ac_cv_lib_socket_connect=yes
8539 else
8540 echo "$as_me: failed program was:" >&5
8541 sed 's/^/| /' conftest.$ac_ext >&5
8543 ac_cv_lib_socket_connect=no
8545 rm -f conftest.err conftest.$ac_objext \
8546 conftest$ac_exeext conftest.$ac_ext
8547 LIBS=$ac_check_lib_save_LIBS
8549 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8550 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8551 if test $ac_cv_lib_socket_connect = yes; then
8552 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8557 # Guillermo Gomez says -lposix is necessary on A/UX.
8558 echo "$as_me:$LINENO: checking for remove" >&5
8559 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8560 if test "${ac_cv_func_remove+set}" = set; then
8561 echo $ECHO_N "(cached) $ECHO_C" >&6
8562 else
8563 if test x$gcc_no_link = xyes; then
8564 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8565 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8566 { (exit 1); exit 1; }; }
8568 cat >conftest.$ac_ext <<_ACEOF
8569 /* confdefs.h. */
8570 _ACEOF
8571 cat confdefs.h >>conftest.$ac_ext
8572 cat >>conftest.$ac_ext <<_ACEOF
8573 /* end confdefs.h. */
8574 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
8575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8576 #define remove innocuous_remove
8578 /* System header to define __stub macros and hopefully few prototypes,
8579 which can conflict with char remove (); below.
8580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8581 <limits.h> exists even on freestanding compilers. */
8583 #ifdef __STDC__
8584 # include <limits.h>
8585 #else
8586 # include <assert.h>
8587 #endif
8589 #undef remove
8591 /* Override any gcc2 internal prototype to avoid an error. */
8592 #ifdef __cplusplus
8593 extern "C"
8595 #endif
8596 /* We use char because int might match the return type of a gcc2
8597 builtin and then its argument prototype would still apply. */
8598 char remove ();
8599 /* The GNU C library defines this for functions which it implements
8600 to always fail with ENOSYS. Some functions are actually named
8601 something starting with __ and the normal name is an alias. */
8602 #if defined (__stub_remove) || defined (__stub___remove)
8603 choke me
8604 #else
8605 char (*f) () = remove;
8606 #endif
8607 #ifdef __cplusplus
8609 #endif
8612 main ()
8614 return f != remove;
8616 return 0;
8618 _ACEOF
8619 rm -f conftest.$ac_objext conftest$ac_exeext
8620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8621 (eval $ac_link) 2>conftest.er1
8622 ac_status=$?
8623 grep -v '^ *+' conftest.er1 >conftest.err
8624 rm -f conftest.er1
8625 cat conftest.err >&5
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); } &&
8628 { ac_try='test -z "$ac_c_werror_flag"
8629 || test ! -s conftest.err'
8630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8631 (eval $ac_try) 2>&5
8632 ac_status=$?
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); }; } &&
8635 { ac_try='test -s conftest$ac_exeext'
8636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8637 (eval $ac_try) 2>&5
8638 ac_status=$?
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); }; }; then
8641 ac_cv_func_remove=yes
8642 else
8643 echo "$as_me: failed program was:" >&5
8644 sed 's/^/| /' conftest.$ac_ext >&5
8646 ac_cv_func_remove=no
8648 rm -f conftest.err conftest.$ac_objext \
8649 conftest$ac_exeext conftest.$ac_ext
8651 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8652 echo "${ECHO_T}$ac_cv_func_remove" >&6
8654 if test $ac_cv_func_remove = no; then
8655 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8656 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8657 if test "${ac_cv_lib_posix_remove+set}" = set; then
8658 echo $ECHO_N "(cached) $ECHO_C" >&6
8659 else
8660 ac_check_lib_save_LIBS=$LIBS
8661 LIBS="-lposix $LIBS"
8662 if test x$gcc_no_link = xyes; then
8663 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8664 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8665 { (exit 1); exit 1; }; }
8667 cat >conftest.$ac_ext <<_ACEOF
8668 /* confdefs.h. */
8669 _ACEOF
8670 cat confdefs.h >>conftest.$ac_ext
8671 cat >>conftest.$ac_ext <<_ACEOF
8672 /* end confdefs.h. */
8674 /* Override any gcc2 internal prototype to avoid an error. */
8675 #ifdef __cplusplus
8676 extern "C"
8677 #endif
8678 /* We use char because int might match the return type of a gcc2
8679 builtin and then its argument prototype would still apply. */
8680 char remove ();
8682 main ()
8684 remove ();
8686 return 0;
8688 _ACEOF
8689 rm -f conftest.$ac_objext conftest$ac_exeext
8690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8691 (eval $ac_link) 2>conftest.er1
8692 ac_status=$?
8693 grep -v '^ *+' conftest.er1 >conftest.err
8694 rm -f conftest.er1
8695 cat conftest.err >&5
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); } &&
8698 { ac_try='test -z "$ac_c_werror_flag"
8699 || test ! -s conftest.err'
8700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8701 (eval $ac_try) 2>&5
8702 ac_status=$?
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); }; } &&
8705 { ac_try='test -s conftest$ac_exeext'
8706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8707 (eval $ac_try) 2>&5
8708 ac_status=$?
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); }; }; then
8711 ac_cv_lib_posix_remove=yes
8712 else
8713 echo "$as_me: failed program was:" >&5
8714 sed 's/^/| /' conftest.$ac_ext >&5
8716 ac_cv_lib_posix_remove=no
8718 rm -f conftest.err conftest.$ac_objext \
8719 conftest$ac_exeext conftest.$ac_ext
8720 LIBS=$ac_check_lib_save_LIBS
8722 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8723 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8724 if test $ac_cv_lib_posix_remove = yes; then
8725 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8730 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8731 echo "$as_me:$LINENO: checking for shmat" >&5
8732 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8733 if test "${ac_cv_func_shmat+set}" = set; then
8734 echo $ECHO_N "(cached) $ECHO_C" >&6
8735 else
8736 if test x$gcc_no_link = xyes; then
8737 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8738 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8739 { (exit 1); exit 1; }; }
8741 cat >conftest.$ac_ext <<_ACEOF
8742 /* confdefs.h. */
8743 _ACEOF
8744 cat confdefs.h >>conftest.$ac_ext
8745 cat >>conftest.$ac_ext <<_ACEOF
8746 /* end confdefs.h. */
8747 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
8748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8749 #define shmat innocuous_shmat
8751 /* System header to define __stub macros and hopefully few prototypes,
8752 which can conflict with char shmat (); below.
8753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8754 <limits.h> exists even on freestanding compilers. */
8756 #ifdef __STDC__
8757 # include <limits.h>
8758 #else
8759 # include <assert.h>
8760 #endif
8762 #undef shmat
8764 /* Override any gcc2 internal prototype to avoid an error. */
8765 #ifdef __cplusplus
8766 extern "C"
8768 #endif
8769 /* We use char because int might match the return type of a gcc2
8770 builtin and then its argument prototype would still apply. */
8771 char shmat ();
8772 /* The GNU C library defines this for functions which it implements
8773 to always fail with ENOSYS. Some functions are actually named
8774 something starting with __ and the normal name is an alias. */
8775 #if defined (__stub_shmat) || defined (__stub___shmat)
8776 choke me
8777 #else
8778 char (*f) () = shmat;
8779 #endif
8780 #ifdef __cplusplus
8782 #endif
8785 main ()
8787 return f != shmat;
8789 return 0;
8791 _ACEOF
8792 rm -f conftest.$ac_objext conftest$ac_exeext
8793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8794 (eval $ac_link) 2>conftest.er1
8795 ac_status=$?
8796 grep -v '^ *+' conftest.er1 >conftest.err
8797 rm -f conftest.er1
8798 cat conftest.err >&5
8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800 (exit $ac_status); } &&
8801 { ac_try='test -z "$ac_c_werror_flag"
8802 || test ! -s conftest.err'
8803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8804 (eval $ac_try) 2>&5
8805 ac_status=$?
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); }; } &&
8808 { ac_try='test -s conftest$ac_exeext'
8809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8810 (eval $ac_try) 2>&5
8811 ac_status=$?
8812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813 (exit $ac_status); }; }; then
8814 ac_cv_func_shmat=yes
8815 else
8816 echo "$as_me: failed program was:" >&5
8817 sed 's/^/| /' conftest.$ac_ext >&5
8819 ac_cv_func_shmat=no
8821 rm -f conftest.err conftest.$ac_objext \
8822 conftest$ac_exeext conftest.$ac_ext
8824 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8825 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8827 if test $ac_cv_func_shmat = no; then
8828 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8829 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8830 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8831 echo $ECHO_N "(cached) $ECHO_C" >&6
8832 else
8833 ac_check_lib_save_LIBS=$LIBS
8834 LIBS="-lipc $LIBS"
8835 if test x$gcc_no_link = xyes; then
8836 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8837 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8838 { (exit 1); exit 1; }; }
8840 cat >conftest.$ac_ext <<_ACEOF
8841 /* confdefs.h. */
8842 _ACEOF
8843 cat confdefs.h >>conftest.$ac_ext
8844 cat >>conftest.$ac_ext <<_ACEOF
8845 /* end confdefs.h. */
8847 /* Override any gcc2 internal prototype to avoid an error. */
8848 #ifdef __cplusplus
8849 extern "C"
8850 #endif
8851 /* We use char because int might match the return type of a gcc2
8852 builtin and then its argument prototype would still apply. */
8853 char shmat ();
8855 main ()
8857 shmat ();
8859 return 0;
8861 _ACEOF
8862 rm -f conftest.$ac_objext conftest$ac_exeext
8863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8864 (eval $ac_link) 2>conftest.er1
8865 ac_status=$?
8866 grep -v '^ *+' conftest.er1 >conftest.err
8867 rm -f conftest.er1
8868 cat conftest.err >&5
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); } &&
8871 { ac_try='test -z "$ac_c_werror_flag"
8872 || test ! -s conftest.err'
8873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8874 (eval $ac_try) 2>&5
8875 ac_status=$?
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); }; } &&
8878 { ac_try='test -s conftest$ac_exeext'
8879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8880 (eval $ac_try) 2>&5
8881 ac_status=$?
8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 (exit $ac_status); }; }; then
8884 ac_cv_lib_ipc_shmat=yes
8885 else
8886 echo "$as_me: failed program was:" >&5
8887 sed 's/^/| /' conftest.$ac_ext >&5
8889 ac_cv_lib_ipc_shmat=no
8891 rm -f conftest.err conftest.$ac_objext \
8892 conftest$ac_exeext conftest.$ac_ext
8893 LIBS=$ac_check_lib_save_LIBS
8895 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8896 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8897 if test $ac_cv_lib_ipc_shmat = yes; then
8898 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8904 # Check for libraries that X11R6 Xt/Xaw programs need.
8905 ac_save_LDFLAGS=$LDFLAGS
8906 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8907 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8908 # check for ICE first), but we must link in the order -lSM -lICE or
8909 # we get undefined symbols. So assume we have SM if we have ICE.
8910 # These have to be linked with before -lX11, unlike the other
8911 # libraries we check for below, so use a different variable.
8912 # John Interrante, Karl Berry
8913 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8914 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8915 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8916 echo $ECHO_N "(cached) $ECHO_C" >&6
8917 else
8918 ac_check_lib_save_LIBS=$LIBS
8919 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8920 if test x$gcc_no_link = xyes; then
8921 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8922 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8923 { (exit 1); exit 1; }; }
8925 cat >conftest.$ac_ext <<_ACEOF
8926 /* confdefs.h. */
8927 _ACEOF
8928 cat confdefs.h >>conftest.$ac_ext
8929 cat >>conftest.$ac_ext <<_ACEOF
8930 /* end confdefs.h. */
8932 /* Override any gcc2 internal prototype to avoid an error. */
8933 #ifdef __cplusplus
8934 extern "C"
8935 #endif
8936 /* We use char because int might match the return type of a gcc2
8937 builtin and then its argument prototype would still apply. */
8938 char IceConnectionNumber ();
8940 main ()
8942 IceConnectionNumber ();
8944 return 0;
8946 _ACEOF
8947 rm -f conftest.$ac_objext conftest$ac_exeext
8948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8949 (eval $ac_link) 2>conftest.er1
8950 ac_status=$?
8951 grep -v '^ *+' conftest.er1 >conftest.err
8952 rm -f conftest.er1
8953 cat conftest.err >&5
8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); } &&
8956 { ac_try='test -z "$ac_c_werror_flag"
8957 || test ! -s conftest.err'
8958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8959 (eval $ac_try) 2>&5
8960 ac_status=$?
8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962 (exit $ac_status); }; } &&
8963 { ac_try='test -s conftest$ac_exeext'
8964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8965 (eval $ac_try) 2>&5
8966 ac_status=$?
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); }; }; then
8969 ac_cv_lib_ICE_IceConnectionNumber=yes
8970 else
8971 echo "$as_me: failed program was:" >&5
8972 sed 's/^/| /' conftest.$ac_ext >&5
8974 ac_cv_lib_ICE_IceConnectionNumber=no
8976 rm -f conftest.err conftest.$ac_objext \
8977 conftest$ac_exeext conftest.$ac_ext
8978 LIBS=$ac_check_lib_save_LIBS
8980 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8981 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8982 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8983 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8986 LDFLAGS=$ac_save_LDFLAGS
8991 # FIXME: this should be _libs on some hosts.
8992 libsubdir=.libs
8994 # extra LD Flags which are required for targets
8995 case "${host}" in
8996 *-*-darwin[0-7].*)
8997 # For now we have to disable it on darwin[8-9] because it slows down
8998 # the linking phase. A possible bug in ld?
8999 # on Darwin -single_module speeds up loading of the dynamic libraries.
9000 extra_ldflags_libjava=-Wl,-single_module
9002 esac
9005 # Allow the GC to be disabled. Can be useful when debugging.
9006 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
9007 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
9008 # Check whether --enable-java-gc or --disable-java-gc was given.
9009 if test "${enable_java_gc+set}" = set; then
9010 enableval="$enable_java_gc"
9011 GC=$enableval
9012 else
9013 GC=boehm
9015 GCLIBS=
9016 GCINCS=
9017 GCDEPS=
9018 GCSPEC=
9019 JC1GCSPEC=
9020 GCTESTSPEC=
9021 case "$GC" in
9022 boehm)
9023 echo "$as_me:$LINENO: result: boehm" >&5
9024 echo "${ECHO_T}boehm" >&6
9025 GCLIBS=../boehm-gc/libgcjgc_convenience.la
9026 JC1GCSPEC='-fuse-boehm-gc'
9027 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
9028 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
9029 GCOBJS=boehm.lo
9030 GCHDR=boehm-gc.h
9031 # The POSIX thread support needs to know this.
9033 cat >>confdefs.h <<\_ACEOF
9034 #define HAVE_BOEHM_GC 1
9035 _ACEOF
9039 echo "$as_me:$LINENO: result: none" >&5
9040 echo "${ECHO_T}none" >&6
9041 GCHDR=no-gc.h
9044 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
9045 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
9046 { (exit 1); exit 1; }; }
9048 esac
9055 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
9059 if test "$GC" = boehm; then
9060 USING_BOEHMGC_TRUE=
9061 USING_BOEHMGC_FALSE='#'
9062 else
9063 USING_BOEHMGC_TRUE='#'
9064 USING_BOEHMGC_FALSE=
9069 if test "$GC" = no; then
9070 USING_NOGC_TRUE=
9071 USING_NOGC_FALSE='#'
9072 else
9073 USING_NOGC_TRUE='#'
9074 USING_NOGC_FALSE=
9079 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
9080 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
9081 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
9082 echo "$as_me:$LINENO: result: $THREADS" >&5
9083 echo "${ECHO_T}$THREADS" >&6
9085 case "$THREADS" in
9086 no | none | single)
9087 THREADS=none
9089 posix | posix95 | pthreads)
9090 THREADS=posix
9091 case "$host" in
9092 *-*-linux*)
9094 cat >>confdefs.h <<\_ACEOF
9095 #define LINUX_THREADS 1
9096 _ACEOF
9099 esac
9101 win32)
9103 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
9104 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
9105 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
9106 { (exit 1); exit 1; }; }
9109 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
9110 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
9111 { (exit 1); exit 1; }; }
9113 esac
9115 THREADCXXFLAGS=
9116 THREADLDFLAGS=
9117 THREADLIBS=
9118 THREADINCS=
9119 THREADDEPS=
9120 THREADH=
9121 THREADSPEC=
9122 THREADSTARTFILESPEC=
9123 case "$THREADS" in
9124 posix)
9125 case "$host" in
9126 *-*-cygwin*)
9127 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
9129 *-*-freebsd[1234]*)
9130 # Before FreeBSD 5, it didn't have -lpthread (or any library which
9131 # merely adds pthread_* functions) but it does have a -pthread switch
9132 # which is required at link-time to select -lc_r *instead* of -lc.
9133 THREADLDFLAGS=-pthread
9134 # Don't set THREADSPEC here as might be expected since -pthread is
9135 # not processed when found within a spec file, it must come from
9136 # the command line. For now, the user must provide the -pthread
9137 # switch to link code compiled with gcj. In future, consider adding
9138 # support for weak references to pthread_* functions ala gthr.h API.
9139 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
9141 *-*-freebsd*)
9142 # FreeBSD >=5.3 implements a model much closer to other modern UNIX
9143 # systems which support threads and -lpthread.
9144 THREADLDFLAGS=-pthread
9145 THREADSPEC=-lpthread
9147 alpha*-dec-osf* | hppa*-hp-hpux*)
9148 THREADCXXFLAGS=-pthread
9149 # boehm-gc needs some functions from librt, so link that too.
9150 THREADLIBS='-lpthread -lrt'
9151 THREADSPEC='-lpthread -lrt'
9154 THREADLIBS=-lpthread
9155 THREADSPEC=-lpthread
9157 esac
9158 THREADH=posix-threads.h
9159 # MIT pthreads doesn't seem to have the mutexattr functions.
9160 # But for now we don't check for it. We just assume you aren't
9161 # using MIT pthreads.
9163 cat >>confdefs.h <<\_ACEOF
9164 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9165 _ACEOF
9168 # If we're using the Boehm GC, then we happen to know that it
9169 # defines _REENTRANT, so we don't bother. Eww.
9170 if test "$GC" != boehm; then
9172 cat >>confdefs.h <<\_ACEOF
9173 #define _REENTRANT 1
9174 _ACEOF
9178 cat >>confdefs.h <<\_ACEOF
9179 #define _POSIX_PTHREAD_SEMANTICS 1
9180 _ACEOF
9184 win32)
9185 THREADH=win32-threads.h
9186 THREADCXXFLAGS=-mthreads
9187 # We need thread-safe exception handling so _CRT_MT should be set to 1.
9188 # But we do not want the executables created to be dependent on
9189 # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
9190 # exception handling contexts. The following kludge achieves this effect
9191 # and causes a dummy __mingwthr_key_dtor() to be linked in from
9192 # libmingw32.a. This causes a memory leak of about 24 bytes per thread.
9193 # A workaround is to explicitly use -mthreads while linking Java programs.
9194 # See PR libgcj/28263.
9196 # FIXME: In Java we are able to detect thread death at the end of
9197 # Thread.run() so we should be able to clean up the exception handling
9198 # contexts ourselves.
9199 THREADSTARTFILESPEC='crtmt%O%s'
9202 none)
9203 THREADH=no-threads.h
9205 esac
9206 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
9217 if test "$THREADS" = posix; then
9218 USING_POSIX_THREADS_TRUE=
9219 USING_POSIX_THREADS_FALSE='#'
9220 else
9221 USING_POSIX_THREADS_TRUE='#'
9222 USING_POSIX_THREADS_FALSE=
9227 if test "$THREADS" = win32; then
9228 USING_WIN32_THREADS_TRUE=
9229 USING_WIN32_THREADS_FALSE='#'
9230 else
9231 USING_WIN32_THREADS_TRUE='#'
9232 USING_WIN32_THREADS_FALSE=
9237 if test "$THREADS" = none; then
9238 USING_NO_THREADS_TRUE=
9239 USING_NO_THREADS_FALSE='#'
9240 else
9241 USING_NO_THREADS_TRUE='#'
9242 USING_NO_THREADS_FALSE=
9246 if test -d sysdep; then true; else mkdir sysdep; fi
9247 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
9249 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
9251 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
9254 HASH_SYNC_SPEC=
9255 # Hash synchronization is only useful with posix threads right now.
9256 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
9257 HASH_SYNC_SPEC=-fhash-synchronization
9259 cat >>confdefs.h <<\_ACEOF
9260 #define JV_HASH_SYNCHRONIZATION 1
9261 _ACEOF
9268 if test "$GCC" = yes; then
9269 USING_GCC_TRUE=
9270 USING_GCC_FALSE='#'
9271 else
9272 USING_GCC_TRUE='#'
9273 USING_GCC_FALSE=
9277 # We're in the tree with gcc, and need to include some of its headers.
9278 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
9280 if test "x${with_newlib}" = "xyes"; then
9281 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
9282 # may not work correctly, because the compiler may not be able to
9283 # link executables.
9285 # We assume newlib. This lets us hard-code the functions we know
9286 # we'll have.
9288 cat >>confdefs.h <<\_ACEOF
9289 #define HAVE_MEMMOVE 1
9290 _ACEOF
9293 cat >>confdefs.h <<\_ACEOF
9294 #define HAVE_MEMCPY 1
9295 _ACEOF
9298 cat >>confdefs.h <<\_ACEOF
9299 #define HAVE_STRERROR 1
9300 _ACEOF
9303 cat >>confdefs.h <<\_ACEOF
9304 #define HAVE_TIME 1
9305 _ACEOF
9308 cat >>confdefs.h <<\_ACEOF
9309 #define HAVE_GMTIME_R 1
9310 _ACEOF
9313 cat >>confdefs.h <<\_ACEOF
9314 #define HAVE_LOCALTIME_R 1
9315 _ACEOF
9318 cat >>confdefs.h <<\_ACEOF
9319 #define HAVE_USLEEP_DECL 1
9320 _ACEOF
9322 # This is only for POSIX threads.
9324 cat >>confdefs.h <<\_ACEOF
9325 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9326 _ACEOF
9328 # We also assume we are using gcc, which provides alloca.
9329 cat >>confdefs.h <<\_ACEOF
9330 #define HAVE_ALLOCA 1
9331 _ACEOF
9334 # Assume we do not have getuid and friends.
9336 cat >>confdefs.h <<\_ACEOF
9337 #define NO_GETUID 1
9338 _ACEOF
9340 PLATFORMNET=NoNet
9341 else
9376 for ac_func in strerror ioctl select fstat open fsync sleep opendir \
9377 gmtime_r localtime_r readdir_r getpwuid_r getcwd \
9378 access stat lstat mkdir rename rmdir unlink utime chmod readlink \
9379 nl_langinfo setlocale \
9380 inet_pton uname inet_ntoa \
9381 fork execvp pipe sigaction ftruncate mmap
9383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9384 echo "$as_me:$LINENO: checking for $ac_func" >&5
9385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9386 if eval "test \"\${$as_ac_var+set}\" = set"; then
9387 echo $ECHO_N "(cached) $ECHO_C" >&6
9388 else
9389 if test x$gcc_no_link = xyes; then
9390 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9391 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9392 { (exit 1); exit 1; }; }
9394 cat >conftest.$ac_ext <<_ACEOF
9395 /* confdefs.h. */
9396 _ACEOF
9397 cat confdefs.h >>conftest.$ac_ext
9398 cat >>conftest.$ac_ext <<_ACEOF
9399 /* end confdefs.h. */
9400 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9402 #define $ac_func innocuous_$ac_func
9404 /* System header to define __stub macros and hopefully few prototypes,
9405 which can conflict with char $ac_func (); below.
9406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9407 <limits.h> exists even on freestanding compilers. */
9409 #ifdef __STDC__
9410 # include <limits.h>
9411 #else
9412 # include <assert.h>
9413 #endif
9415 #undef $ac_func
9417 /* Override any gcc2 internal prototype to avoid an error. */
9418 #ifdef __cplusplus
9419 extern "C"
9421 #endif
9422 /* We use char because int might match the return type of a gcc2
9423 builtin and then its argument prototype would still apply. */
9424 char $ac_func ();
9425 /* The GNU C library defines this for functions which it implements
9426 to always fail with ENOSYS. Some functions are actually named
9427 something starting with __ and the normal name is an alias. */
9428 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9429 choke me
9430 #else
9431 char (*f) () = $ac_func;
9432 #endif
9433 #ifdef __cplusplus
9435 #endif
9438 main ()
9440 return f != $ac_func;
9442 return 0;
9444 _ACEOF
9445 rm -f conftest.$ac_objext conftest$ac_exeext
9446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9447 (eval $ac_link) 2>conftest.er1
9448 ac_status=$?
9449 grep -v '^ *+' conftest.er1 >conftest.err
9450 rm -f conftest.er1
9451 cat conftest.err >&5
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); } &&
9454 { ac_try='test -z "$ac_c_werror_flag"
9455 || test ! -s conftest.err'
9456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9457 (eval $ac_try) 2>&5
9458 ac_status=$?
9459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460 (exit $ac_status); }; } &&
9461 { ac_try='test -s conftest$ac_exeext'
9462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9463 (eval $ac_try) 2>&5
9464 ac_status=$?
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); }; }; then
9467 eval "$as_ac_var=yes"
9468 else
9469 echo "$as_me: failed program was:" >&5
9470 sed 's/^/| /' conftest.$ac_ext >&5
9472 eval "$as_ac_var=no"
9474 rm -f conftest.err conftest.$ac_objext \
9475 conftest$ac_exeext conftest.$ac_ext
9477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9478 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9479 if test `eval echo '${'$as_ac_var'}'` = yes; then
9480 cat >>confdefs.h <<_ACEOF
9481 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9482 _ACEOF
9485 done
9489 for ac_func in inet_aton inet_addr
9491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9492 echo "$as_me:$LINENO: checking for $ac_func" >&5
9493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9494 if eval "test \"\${$as_ac_var+set}\" = set"; then
9495 echo $ECHO_N "(cached) $ECHO_C" >&6
9496 else
9497 if test x$gcc_no_link = xyes; then
9498 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9499 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9500 { (exit 1); exit 1; }; }
9502 cat >conftest.$ac_ext <<_ACEOF
9503 /* confdefs.h. */
9504 _ACEOF
9505 cat confdefs.h >>conftest.$ac_ext
9506 cat >>conftest.$ac_ext <<_ACEOF
9507 /* end confdefs.h. */
9508 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9510 #define $ac_func innocuous_$ac_func
9512 /* System header to define __stub macros and hopefully few prototypes,
9513 which can conflict with char $ac_func (); below.
9514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9515 <limits.h> exists even on freestanding compilers. */
9517 #ifdef __STDC__
9518 # include <limits.h>
9519 #else
9520 # include <assert.h>
9521 #endif
9523 #undef $ac_func
9525 /* Override any gcc2 internal prototype to avoid an error. */
9526 #ifdef __cplusplus
9527 extern "C"
9529 #endif
9530 /* We use char because int might match the return type of a gcc2
9531 builtin and then its argument prototype would still apply. */
9532 char $ac_func ();
9533 /* The GNU C library defines this for functions which it implements
9534 to always fail with ENOSYS. Some functions are actually named
9535 something starting with __ and the normal name is an alias. */
9536 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9537 choke me
9538 #else
9539 char (*f) () = $ac_func;
9540 #endif
9541 #ifdef __cplusplus
9543 #endif
9546 main ()
9548 return f != $ac_func;
9550 return 0;
9552 _ACEOF
9553 rm -f conftest.$ac_objext conftest$ac_exeext
9554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9555 (eval $ac_link) 2>conftest.er1
9556 ac_status=$?
9557 grep -v '^ *+' conftest.er1 >conftest.err
9558 rm -f conftest.er1
9559 cat conftest.err >&5
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); } &&
9562 { ac_try='test -z "$ac_c_werror_flag"
9563 || test ! -s conftest.err'
9564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9565 (eval $ac_try) 2>&5
9566 ac_status=$?
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 (exit $ac_status); }; } &&
9569 { ac_try='test -s conftest$ac_exeext'
9570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9571 (eval $ac_try) 2>&5
9572 ac_status=$?
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); }; }; then
9575 eval "$as_ac_var=yes"
9576 else
9577 echo "$as_me: failed program was:" >&5
9578 sed 's/^/| /' conftest.$ac_ext >&5
9580 eval "$as_ac_var=no"
9582 rm -f conftest.err conftest.$ac_objext \
9583 conftest$ac_exeext conftest.$ac_ext
9585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9586 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9587 if test `eval echo '${'$as_ac_var'}'` = yes; then
9588 cat >>confdefs.h <<_ACEOF
9589 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9590 _ACEOF
9591 break
9593 done
9595 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9596 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9597 if test "${ac_cv_header_stdc+set}" = set; then
9598 echo $ECHO_N "(cached) $ECHO_C" >&6
9599 else
9600 cat >conftest.$ac_ext <<_ACEOF
9601 /* confdefs.h. */
9602 _ACEOF
9603 cat confdefs.h >>conftest.$ac_ext
9604 cat >>conftest.$ac_ext <<_ACEOF
9605 /* end confdefs.h. */
9606 #include <stdlib.h>
9607 #include <stdarg.h>
9608 #include <string.h>
9609 #include <float.h>
9612 main ()
9616 return 0;
9618 _ACEOF
9619 rm -f conftest.$ac_objext
9620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9621 (eval $ac_compile) 2>conftest.er1
9622 ac_status=$?
9623 grep -v '^ *+' conftest.er1 >conftest.err
9624 rm -f conftest.er1
9625 cat conftest.err >&5
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); } &&
9628 { ac_try='test -z "$ac_c_werror_flag"
9629 || test ! -s conftest.err'
9630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9631 (eval $ac_try) 2>&5
9632 ac_status=$?
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); }; } &&
9635 { ac_try='test -s conftest.$ac_objext'
9636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9637 (eval $ac_try) 2>&5
9638 ac_status=$?
9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640 (exit $ac_status); }; }; then
9641 ac_cv_header_stdc=yes
9642 else
9643 echo "$as_me: failed program was:" >&5
9644 sed 's/^/| /' conftest.$ac_ext >&5
9646 ac_cv_header_stdc=no
9648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9650 if test $ac_cv_header_stdc = yes; then
9651 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9652 cat >conftest.$ac_ext <<_ACEOF
9653 /* confdefs.h. */
9654 _ACEOF
9655 cat confdefs.h >>conftest.$ac_ext
9656 cat >>conftest.$ac_ext <<_ACEOF
9657 /* end confdefs.h. */
9658 #include <string.h>
9660 _ACEOF
9661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9662 $EGREP "memchr" >/dev/null 2>&1; then
9664 else
9665 ac_cv_header_stdc=no
9667 rm -f conftest*
9671 if test $ac_cv_header_stdc = yes; then
9672 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9673 cat >conftest.$ac_ext <<_ACEOF
9674 /* confdefs.h. */
9675 _ACEOF
9676 cat confdefs.h >>conftest.$ac_ext
9677 cat >>conftest.$ac_ext <<_ACEOF
9678 /* end confdefs.h. */
9679 #include <stdlib.h>
9681 _ACEOF
9682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9683 $EGREP "free" >/dev/null 2>&1; then
9685 else
9686 ac_cv_header_stdc=no
9688 rm -f conftest*
9692 if test $ac_cv_header_stdc = yes; then
9693 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9694 if test "$cross_compiling" = yes; then
9696 else
9697 cat >conftest.$ac_ext <<_ACEOF
9698 /* confdefs.h. */
9699 _ACEOF
9700 cat confdefs.h >>conftest.$ac_ext
9701 cat >>conftest.$ac_ext <<_ACEOF
9702 /* end confdefs.h. */
9703 #include <ctype.h>
9704 #if ((' ' & 0x0FF) == 0x020)
9705 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9706 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9707 #else
9708 # define ISLOWER(c) \
9709 (('a' <= (c) && (c) <= 'i') \
9710 || ('j' <= (c) && (c) <= 'r') \
9711 || ('s' <= (c) && (c) <= 'z'))
9712 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9713 #endif
9715 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9717 main ()
9719 int i;
9720 for (i = 0; i < 256; i++)
9721 if (XOR (islower (i), ISLOWER (i))
9722 || toupper (i) != TOUPPER (i))
9723 exit(2);
9724 exit (0);
9726 _ACEOF
9727 rm -f conftest$ac_exeext
9728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9729 (eval $ac_link) 2>&5
9730 ac_status=$?
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9734 (eval $ac_try) 2>&5
9735 ac_status=$?
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); }; }; then
9739 else
9740 echo "$as_me: program exited with status $ac_status" >&5
9741 echo "$as_me: failed program was:" >&5
9742 sed 's/^/| /' conftest.$ac_ext >&5
9744 ( exit $ac_status )
9745 ac_cv_header_stdc=no
9747 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9751 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9752 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9753 if test $ac_cv_header_stdc = yes; then
9755 cat >>confdefs.h <<\_ACEOF
9756 #define STDC_HEADERS 1
9757 _ACEOF
9761 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9771 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9772 inttypes.h stdint.h unistd.h
9774 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9775 echo "$as_me:$LINENO: checking for $ac_header" >&5
9776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9778 echo $ECHO_N "(cached) $ECHO_C" >&6
9779 else
9780 cat >conftest.$ac_ext <<_ACEOF
9781 /* confdefs.h. */
9782 _ACEOF
9783 cat confdefs.h >>conftest.$ac_ext
9784 cat >>conftest.$ac_ext <<_ACEOF
9785 /* end confdefs.h. */
9786 $ac_includes_default
9788 #include <$ac_header>
9789 _ACEOF
9790 rm -f conftest.$ac_objext
9791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9792 (eval $ac_compile) 2>conftest.er1
9793 ac_status=$?
9794 grep -v '^ *+' conftest.er1 >conftest.err
9795 rm -f conftest.er1
9796 cat conftest.err >&5
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); } &&
9799 { ac_try='test -z "$ac_c_werror_flag"
9800 || test ! -s conftest.err'
9801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9802 (eval $ac_try) 2>&5
9803 ac_status=$?
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); }; } &&
9806 { ac_try='test -s conftest.$ac_objext'
9807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9808 (eval $ac_try) 2>&5
9809 ac_status=$?
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); }; }; then
9812 eval "$as_ac_Header=yes"
9813 else
9814 echo "$as_me: failed program was:" >&5
9815 sed 's/^/| /' conftest.$ac_ext >&5
9817 eval "$as_ac_Header=no"
9819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9822 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9824 cat >>confdefs.h <<_ACEOF
9825 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9826 _ACEOF
9830 done
9836 for ac_header in execinfo.h unistd.h dlfcn.h
9838 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9840 echo "$as_me:$LINENO: checking for $ac_header" >&5
9841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9843 echo $ECHO_N "(cached) $ECHO_C" >&6
9845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9847 else
9848 # Is the header compilable?
9849 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9851 cat >conftest.$ac_ext <<_ACEOF
9852 /* confdefs.h. */
9853 _ACEOF
9854 cat confdefs.h >>conftest.$ac_ext
9855 cat >>conftest.$ac_ext <<_ACEOF
9856 /* end confdefs.h. */
9857 $ac_includes_default
9858 #include <$ac_header>
9859 _ACEOF
9860 rm -f conftest.$ac_objext
9861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9862 (eval $ac_compile) 2>conftest.er1
9863 ac_status=$?
9864 grep -v '^ *+' conftest.er1 >conftest.err
9865 rm -f conftest.er1
9866 cat conftest.err >&5
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); } &&
9869 { ac_try='test -z "$ac_c_werror_flag"
9870 || test ! -s conftest.err'
9871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9872 (eval $ac_try) 2>&5
9873 ac_status=$?
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); }; } &&
9876 { ac_try='test -s conftest.$ac_objext'
9877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9878 (eval $ac_try) 2>&5
9879 ac_status=$?
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); }; }; then
9882 ac_header_compiler=yes
9883 else
9884 echo "$as_me: failed program was:" >&5
9885 sed 's/^/| /' conftest.$ac_ext >&5
9887 ac_header_compiler=no
9889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9890 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9891 echo "${ECHO_T}$ac_header_compiler" >&6
9893 # Is the header present?
9894 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9895 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9896 cat >conftest.$ac_ext <<_ACEOF
9897 /* confdefs.h. */
9898 _ACEOF
9899 cat confdefs.h >>conftest.$ac_ext
9900 cat >>conftest.$ac_ext <<_ACEOF
9901 /* end confdefs.h. */
9902 #include <$ac_header>
9903 _ACEOF
9904 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9905 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9906 ac_status=$?
9907 grep -v '^ *+' conftest.er1 >conftest.err
9908 rm -f conftest.er1
9909 cat conftest.err >&5
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); } >/dev/null; then
9912 if test -s conftest.err; then
9913 ac_cpp_err=$ac_c_preproc_warn_flag
9914 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9915 else
9916 ac_cpp_err=
9918 else
9919 ac_cpp_err=yes
9921 if test -z "$ac_cpp_err"; then
9922 ac_header_preproc=yes
9923 else
9924 echo "$as_me: failed program was:" >&5
9925 sed 's/^/| /' conftest.$ac_ext >&5
9927 ac_header_preproc=no
9929 rm -f conftest.err conftest.$ac_ext
9930 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9931 echo "${ECHO_T}$ac_header_preproc" >&6
9933 # So? What about this header?
9934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9935 yes:no: )
9936 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9937 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9939 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9940 ac_header_preproc=yes
9942 no:yes:* )
9943 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9944 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9945 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9946 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9947 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9948 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9949 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9950 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9952 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9953 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9954 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9956 cat <<\_ASBOX
9957 ## ---------------------------------- ##
9958 ## Report this to the libjava lists. ##
9959 ## ---------------------------------- ##
9960 _ASBOX
9962 sed "s/^/$as_me: WARNING: /" >&2
9964 esac
9965 echo "$as_me:$LINENO: checking for $ac_header" >&5
9966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9968 echo $ECHO_N "(cached) $ECHO_C" >&6
9969 else
9970 eval "$as_ac_Header=\$ac_header_preproc"
9972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9973 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9977 cat >>confdefs.h <<_ACEOF
9978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9979 _ACEOF
9983 done
9985 # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
9986 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
9987 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
9988 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
9989 echo $ECHO_N "(cached) $ECHO_C" >&6
9990 else
9991 ac_check_lib_save_LIBS=$LIBS
9992 LIBS="-ldl $LIBS"
9993 if test x$gcc_no_link = xyes; then
9994 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9995 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9996 { (exit 1); exit 1; }; }
9998 cat >conftest.$ac_ext <<_ACEOF
9999 /* confdefs.h. */
10000 _ACEOF
10001 cat confdefs.h >>conftest.$ac_ext
10002 cat >>conftest.$ac_ext <<_ACEOF
10003 /* end confdefs.h. */
10005 /* Override any gcc2 internal prototype to avoid an error. */
10006 #ifdef __cplusplus
10007 extern "C"
10008 #endif
10009 /* We use char because int might match the return type of a gcc2
10010 builtin and then its argument prototype would still apply. */
10011 char dladdr ();
10013 main ()
10015 dladdr ();
10017 return 0;
10019 _ACEOF
10020 rm -f conftest.$ac_objext conftest$ac_exeext
10021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10022 (eval $ac_link) 2>conftest.er1
10023 ac_status=$?
10024 grep -v '^ *+' conftest.er1 >conftest.err
10025 rm -f conftest.er1
10026 cat conftest.err >&5
10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 (exit $ac_status); } &&
10029 { ac_try='test -z "$ac_c_werror_flag"
10030 || test ! -s conftest.err'
10031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032 (eval $ac_try) 2>&5
10033 ac_status=$?
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }; } &&
10036 { ac_try='test -s conftest$ac_exeext'
10037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10038 (eval $ac_try) 2>&5
10039 ac_status=$?
10040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 (exit $ac_status); }; }; then
10042 ac_cv_lib_dl_dladdr=yes
10043 else
10044 echo "$as_me: failed program was:" >&5
10045 sed 's/^/| /' conftest.$ac_ext >&5
10047 ac_cv_lib_dl_dladdr=no
10049 rm -f conftest.err conftest.$ac_objext \
10050 conftest$ac_exeext conftest.$ac_ext
10051 LIBS=$ac_check_lib_save_LIBS
10053 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
10054 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
10055 if test $ac_cv_lib_dl_dladdr = yes; then
10058 cat >>confdefs.h <<\_ACEOF
10059 #define HAVE_DLADDR 1
10060 _ACEOF
10062 else
10064 echo "$as_me:$LINENO: checking for dladdr in -ldld" >&5
10065 echo $ECHO_N "checking for dladdr in -ldld... $ECHO_C" >&6
10066 if test "${ac_cv_lib_dld_dladdr+set}" = set; then
10067 echo $ECHO_N "(cached) $ECHO_C" >&6
10068 else
10069 ac_check_lib_save_LIBS=$LIBS
10070 LIBS="-ldld $LIBS"
10071 if test x$gcc_no_link = xyes; then
10072 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10073 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10074 { (exit 1); exit 1; }; }
10076 cat >conftest.$ac_ext <<_ACEOF
10077 /* confdefs.h. */
10078 _ACEOF
10079 cat confdefs.h >>conftest.$ac_ext
10080 cat >>conftest.$ac_ext <<_ACEOF
10081 /* end confdefs.h. */
10083 /* Override any gcc2 internal prototype to avoid an error. */
10084 #ifdef __cplusplus
10085 extern "C"
10086 #endif
10087 /* We use char because int might match the return type of a gcc2
10088 builtin and then its argument prototype would still apply. */
10089 char dladdr ();
10091 main ()
10093 dladdr ();
10095 return 0;
10097 _ACEOF
10098 rm -f conftest.$ac_objext conftest$ac_exeext
10099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10100 (eval $ac_link) 2>conftest.er1
10101 ac_status=$?
10102 grep -v '^ *+' conftest.er1 >conftest.err
10103 rm -f conftest.er1
10104 cat conftest.err >&5
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); } &&
10107 { ac_try='test -z "$ac_c_werror_flag"
10108 || test ! -s conftest.err'
10109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10110 (eval $ac_try) 2>&5
10111 ac_status=$?
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); }; } &&
10114 { ac_try='test -s conftest$ac_exeext'
10115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10116 (eval $ac_try) 2>&5
10117 ac_status=$?
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); }; }; then
10120 ac_cv_lib_dld_dladdr=yes
10121 else
10122 echo "$as_me: failed program was:" >&5
10123 sed 's/^/| /' conftest.$ac_ext >&5
10125 ac_cv_lib_dld_dladdr=no
10127 rm -f conftest.err conftest.$ac_objext \
10128 conftest$ac_exeext conftest.$ac_ext
10129 LIBS=$ac_check_lib_save_LIBS
10131 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dladdr" >&5
10132 echo "${ECHO_T}$ac_cv_lib_dld_dladdr" >&6
10133 if test $ac_cv_lib_dld_dladdr = yes; then
10136 cat >>confdefs.h <<\_ACEOF
10137 #define HAVE_DLADDR 1
10138 _ACEOF
10145 if test x"$build" = x"$host"; then
10146 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
10147 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
10148 if test "${ac_cv_file__proc_self_exe+set}" = set; then
10149 echo $ECHO_N "(cached) $ECHO_C" >&6
10150 else
10151 test "$cross_compiling" = yes &&
10152 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10153 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10154 { (exit 1); exit 1; }; }
10155 if test -r "/proc/self/exe"; then
10156 ac_cv_file__proc_self_exe=yes
10157 else
10158 ac_cv_file__proc_self_exe=no
10161 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
10162 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
10163 if test $ac_cv_file__proc_self_exe = yes; then
10165 cat >>confdefs.h <<_ACEOF
10166 #define HAVE__PROC_SELF_EXE 1
10167 _ACEOF
10171 cat >>confdefs.h <<\_ACEOF
10172 #define HAVE_PROC_SELF_EXE 1
10173 _ACEOF
10177 else
10178 case $host in
10179 *-linux*)
10181 cat >>confdefs.h <<\_ACEOF
10182 #define HAVE_PROC_SELF_EXE 1
10183 _ACEOF
10186 esac
10190 if test "X$prefix" = "XNONE"; then
10191 acl_final_prefix="$ac_default_prefix"
10192 else
10193 acl_final_prefix="$prefix"
10195 if test "X$exec_prefix" = "XNONE"; then
10196 acl_final_exec_prefix='${prefix}'
10197 else
10198 acl_final_exec_prefix="$exec_prefix"
10200 acl_save_prefix="$prefix"
10201 prefix="$acl_final_prefix"
10202 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10203 prefix="$acl_save_prefix"
10206 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10207 if test "${with_gnu_ld+set}" = set; then
10208 withval="$with_gnu_ld"
10209 test "$withval" = no || with_gnu_ld=yes
10210 else
10211 with_gnu_ld=no
10213 # Prepare PATH_SEPARATOR.
10214 # The user is always right.
10215 if test "${PATH_SEPARATOR+set}" != set; then
10216 echo "#! /bin/sh" >conf$$.sh
10217 echo "exit 0" >>conf$$.sh
10218 chmod +x conf$$.sh
10219 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10220 PATH_SEPARATOR=';'
10221 else
10222 PATH_SEPARATOR=:
10224 rm -f conf$$.sh
10226 ac_prog=ld
10227 if test "$GCC" = yes; then
10228 # Check if gcc -print-prog-name=ld gives a path.
10229 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10230 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10231 case $host in
10232 *-*-mingw*)
10233 # gcc leaves a trailing carriage return which upsets mingw
10234 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10236 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10237 esac
10238 case $ac_prog in
10239 # Accept absolute paths.
10240 [\\/]* | [A-Za-z]:[\\/]*)
10241 re_direlt='/[^/][^/]*/\.\./'
10242 # Canonicalize the path of ld
10243 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10244 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10245 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10246 done
10247 test -z "$LD" && LD="$ac_prog"
10250 # If it fails, then pretend we aren't using GCC.
10251 ac_prog=ld
10254 # If it is relative, then search for the first ld in PATH.
10255 with_gnu_ld=unknown
10257 esac
10258 elif test "$with_gnu_ld" = yes; then
10259 echo "$as_me:$LINENO: checking for GNU ld" >&5
10260 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10261 else
10262 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10263 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10265 if test "${acl_cv_path_LD+set}" = set; then
10266 echo $ECHO_N "(cached) $ECHO_C" >&6
10267 else
10268 if test -z "$LD"; then
10269 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10270 for ac_dir in $PATH; do
10271 test -z "$ac_dir" && ac_dir=.
10272 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10273 acl_cv_path_LD="$ac_dir/$ac_prog"
10274 # Check to see if the program is GNU ld. I'd rather use --version,
10275 # but apparently some GNU ld's only accept -v.
10276 # Break only if it was the GNU/non-GNU ld that we prefer.
10277 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10278 test "$with_gnu_ld" != no && break
10279 else
10280 test "$with_gnu_ld" != yes && break
10283 done
10284 IFS="$ac_save_ifs"
10285 else
10286 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10290 LD="$acl_cv_path_LD"
10291 if test -n "$LD"; then
10292 echo "$as_me:$LINENO: result: $LD" >&5
10293 echo "${ECHO_T}$LD" >&6
10294 else
10295 echo "$as_me:$LINENO: result: no" >&5
10296 echo "${ECHO_T}no" >&6
10298 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10299 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10300 { (exit 1); exit 1; }; }
10301 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10302 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10303 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10304 echo $ECHO_N "(cached) $ECHO_C" >&6
10305 else
10306 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10307 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10308 acl_cv_prog_gnu_ld=yes
10309 else
10310 acl_cv_prog_gnu_ld=no
10313 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10314 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10315 with_gnu_ld=$acl_cv_prog_gnu_ld
10319 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10320 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10321 if test "${acl_cv_rpath+set}" = set; then
10322 echo $ECHO_N "(cached) $ECHO_C" >&6
10323 else
10325 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10326 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10327 . ./conftest.sh
10328 rm -f ./conftest.sh
10329 acl_cv_rpath=done
10332 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10333 echo "${ECHO_T}$acl_cv_rpath" >&6
10334 wl="$acl_cv_wl"
10335 libext="$acl_cv_libext"
10336 shlibext="$acl_cv_shlibext"
10337 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10338 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10339 hardcode_direct="$acl_cv_hardcode_direct"
10340 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10341 # Check whether --enable-rpath or --disable-rpath was given.
10342 if test "${enable_rpath+set}" = set; then
10343 enableval="$enable_rpath"
10345 else
10346 enable_rpath=yes
10355 use_additional=yes
10357 acl_save_prefix="$prefix"
10358 prefix="$acl_final_prefix"
10359 acl_save_exec_prefix="$exec_prefix"
10360 exec_prefix="$acl_final_exec_prefix"
10362 eval additional_includedir=\"$includedir\"
10363 eval additional_libdir=\"$libdir\"
10365 exec_prefix="$acl_save_exec_prefix"
10366 prefix="$acl_save_prefix"
10369 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10370 if test "${with_libiconv_prefix+set}" = set; then
10371 withval="$with_libiconv_prefix"
10373 if test "X$withval" = "Xno"; then
10374 use_additional=no
10375 else
10376 if test "X$withval" = "X"; then
10378 acl_save_prefix="$prefix"
10379 prefix="$acl_final_prefix"
10380 acl_save_exec_prefix="$exec_prefix"
10381 exec_prefix="$acl_final_exec_prefix"
10383 eval additional_includedir=\"$includedir\"
10384 eval additional_libdir=\"$libdir\"
10386 exec_prefix="$acl_save_exec_prefix"
10387 prefix="$acl_save_prefix"
10389 else
10390 additional_includedir="$withval/include"
10391 additional_libdir="$withval/lib"
10396 LIBICONV=
10397 LTLIBICONV=
10398 INCICONV=
10399 rpathdirs=
10400 ltrpathdirs=
10401 names_already_handled=
10402 names_next_round='iconv '
10403 while test -n "$names_next_round"; do
10404 names_this_round="$names_next_round"
10405 names_next_round=
10406 for name in $names_this_round; do
10407 already_handled=
10408 for n in $names_already_handled; do
10409 if test "$n" = "$name"; then
10410 already_handled=yes
10411 break
10413 done
10414 if test -z "$already_handled"; then
10415 names_already_handled="$names_already_handled $name"
10416 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10417 eval value=\"\$HAVE_LIB$uppername\"
10418 if test -n "$value"; then
10419 if test "$value" = yes; then
10420 eval value=\"\$LIB$uppername\"
10421 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10422 eval value=\"\$LTLIB$uppername\"
10423 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10424 else
10427 else
10428 found_dir=
10429 found_la=
10430 found_so=
10431 found_a=
10432 if test $use_additional = yes; then
10433 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10434 found_dir="$additional_libdir"
10435 found_so="$additional_libdir/lib$name.$shlibext"
10436 if test -f "$additional_libdir/lib$name.la"; then
10437 found_la="$additional_libdir/lib$name.la"
10439 else
10440 if test -f "$additional_libdir/lib$name.$libext"; then
10441 found_dir="$additional_libdir"
10442 found_a="$additional_libdir/lib$name.$libext"
10443 if test -f "$additional_libdir/lib$name.la"; then
10444 found_la="$additional_libdir/lib$name.la"
10449 if test "X$found_dir" = "X"; then
10450 for x in $LDFLAGS $LTLIBICONV; do
10452 acl_save_prefix="$prefix"
10453 prefix="$acl_final_prefix"
10454 acl_save_exec_prefix="$exec_prefix"
10455 exec_prefix="$acl_final_exec_prefix"
10456 eval x=\"$x\"
10457 exec_prefix="$acl_save_exec_prefix"
10458 prefix="$acl_save_prefix"
10460 case "$x" in
10461 -L*)
10462 dir=`echo "X$x" | sed -e 's/^X-L//'`
10463 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10464 found_dir="$dir"
10465 found_so="$dir/lib$name.$shlibext"
10466 if test -f "$dir/lib$name.la"; then
10467 found_la="$dir/lib$name.la"
10469 else
10470 if test -f "$dir/lib$name.$libext"; then
10471 found_dir="$dir"
10472 found_a="$dir/lib$name.$libext"
10473 if test -f "$dir/lib$name.la"; then
10474 found_la="$dir/lib$name.la"
10479 esac
10480 if test "X$found_dir" != "X"; then
10481 break
10483 done
10485 if test "X$found_dir" != "X"; then
10486 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10487 if test "X$found_so" != "X"; then
10488 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10489 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10490 else
10491 haveit=
10492 for x in $ltrpathdirs; do
10493 if test "X$x" = "X$found_dir"; then
10494 haveit=yes
10495 break
10497 done
10498 if test -z "$haveit"; then
10499 ltrpathdirs="$ltrpathdirs $found_dir"
10501 if test "$hardcode_direct" = yes; then
10502 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10503 else
10504 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10505 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10506 haveit=
10507 for x in $rpathdirs; do
10508 if test "X$x" = "X$found_dir"; then
10509 haveit=yes
10510 break
10512 done
10513 if test -z "$haveit"; then
10514 rpathdirs="$rpathdirs $found_dir"
10516 else
10517 haveit=
10518 for x in $LDFLAGS $LIBICONV; do
10520 acl_save_prefix="$prefix"
10521 prefix="$acl_final_prefix"
10522 acl_save_exec_prefix="$exec_prefix"
10523 exec_prefix="$acl_final_exec_prefix"
10524 eval x=\"$x\"
10525 exec_prefix="$acl_save_exec_prefix"
10526 prefix="$acl_save_prefix"
10528 if test "X$x" = "X-L$found_dir"; then
10529 haveit=yes
10530 break
10532 done
10533 if test -z "$haveit"; then
10534 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10536 if test "$hardcode_minus_L" != no; then
10537 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10538 else
10539 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10544 else
10545 if test "X$found_a" != "X"; then
10546 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10547 else
10548 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10551 additional_includedir=
10552 case "$found_dir" in
10553 */lib | */lib/)
10554 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10555 additional_includedir="$basedir/include"
10557 esac
10558 if test "X$additional_includedir" != "X"; then
10559 if test "X$additional_includedir" != "X/usr/include"; then
10560 haveit=
10561 if test "X$additional_includedir" = "X/usr/local/include"; then
10562 if test -n "$GCC"; then
10563 case $host_os in
10564 linux*) haveit=yes;;
10565 esac
10568 if test -z "$haveit"; then
10569 for x in $CPPFLAGS $INCICONV; do
10571 acl_save_prefix="$prefix"
10572 prefix="$acl_final_prefix"
10573 acl_save_exec_prefix="$exec_prefix"
10574 exec_prefix="$acl_final_exec_prefix"
10575 eval x=\"$x\"
10576 exec_prefix="$acl_save_exec_prefix"
10577 prefix="$acl_save_prefix"
10579 if test "X$x" = "X-I$additional_includedir"; then
10580 haveit=yes
10581 break
10583 done
10584 if test -z "$haveit"; then
10585 if test -d "$additional_includedir"; then
10586 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10592 if test -n "$found_la"; then
10593 save_libdir="$libdir"
10594 case "$found_la" in
10595 */* | *\\*) . "$found_la" ;;
10596 *) . "./$found_la" ;;
10597 esac
10598 libdir="$save_libdir"
10599 for dep in $dependency_libs; do
10600 case "$dep" in
10601 -L*)
10602 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10603 if test "X$additional_libdir" != "X/usr/lib"; then
10604 haveit=
10605 if test "X$additional_libdir" = "X/usr/local/lib"; then
10606 if test -n "$GCC"; then
10607 case $host_os in
10608 linux*) haveit=yes;;
10609 esac
10612 if test -z "$haveit"; then
10613 haveit=
10614 for x in $LDFLAGS $LIBICONV; do
10616 acl_save_prefix="$prefix"
10617 prefix="$acl_final_prefix"
10618 acl_save_exec_prefix="$exec_prefix"
10619 exec_prefix="$acl_final_exec_prefix"
10620 eval x=\"$x\"
10621 exec_prefix="$acl_save_exec_prefix"
10622 prefix="$acl_save_prefix"
10624 if test "X$x" = "X-L$additional_libdir"; then
10625 haveit=yes
10626 break
10628 done
10629 if test -z "$haveit"; then
10630 if test -d "$additional_libdir"; then
10631 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10634 haveit=
10635 for x in $LDFLAGS $LTLIBICONV; do
10637 acl_save_prefix="$prefix"
10638 prefix="$acl_final_prefix"
10639 acl_save_exec_prefix="$exec_prefix"
10640 exec_prefix="$acl_final_exec_prefix"
10641 eval x=\"$x\"
10642 exec_prefix="$acl_save_exec_prefix"
10643 prefix="$acl_save_prefix"
10645 if test "X$x" = "X-L$additional_libdir"; then
10646 haveit=yes
10647 break
10649 done
10650 if test -z "$haveit"; then
10651 if test -d "$additional_libdir"; then
10652 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10658 -R*)
10659 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10660 if test "$enable_rpath" != no; then
10661 haveit=
10662 for x in $rpathdirs; do
10663 if test "X$x" = "X$dir"; then
10664 haveit=yes
10665 break
10667 done
10668 if test -z "$haveit"; then
10669 rpathdirs="$rpathdirs $dir"
10671 haveit=
10672 for x in $ltrpathdirs; do
10673 if test "X$x" = "X$dir"; then
10674 haveit=yes
10675 break
10677 done
10678 if test -z "$haveit"; then
10679 ltrpathdirs="$ltrpathdirs $dir"
10683 -l*)
10684 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10686 *.la)
10687 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10690 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10691 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10693 esac
10694 done
10696 else
10697 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10698 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10702 done
10703 done
10704 if test "X$rpathdirs" != "X"; then
10705 if test -n "$hardcode_libdir_separator"; then
10706 alldirs=
10707 for found_dir in $rpathdirs; do
10708 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10709 done
10710 acl_save_libdir="$libdir"
10711 libdir="$alldirs"
10712 eval flag=\"$hardcode_libdir_flag_spec\"
10713 libdir="$acl_save_libdir"
10714 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10715 else
10716 for found_dir in $rpathdirs; do
10717 acl_save_libdir="$libdir"
10718 libdir="$found_dir"
10719 eval flag=\"$hardcode_libdir_flag_spec\"
10720 libdir="$acl_save_libdir"
10721 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10722 done
10725 if test "X$ltrpathdirs" != "X"; then
10726 for found_dir in $ltrpathdirs; do
10727 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10728 done
10737 am_save_CPPFLAGS="$CPPFLAGS"
10739 for element in $INCICONV; do
10740 haveit=
10741 for x in $CPPFLAGS; do
10743 acl_save_prefix="$prefix"
10744 prefix="$acl_final_prefix"
10745 acl_save_exec_prefix="$exec_prefix"
10746 exec_prefix="$acl_final_exec_prefix"
10747 eval x=\"$x\"
10748 exec_prefix="$acl_save_exec_prefix"
10749 prefix="$acl_save_prefix"
10751 if test "X$x" = "X$element"; then
10752 haveit=yes
10753 break
10755 done
10756 if test -z "$haveit"; then
10757 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10759 done
10762 echo "$as_me:$LINENO: checking for iconv" >&5
10763 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10764 if test "${am_cv_func_iconv+set}" = set; then
10765 echo $ECHO_N "(cached) $ECHO_C" >&6
10766 else
10768 am_cv_func_iconv="no, consider installing GNU libiconv"
10769 am_cv_lib_iconv=no
10770 if test x$gcc_no_link = xyes; then
10771 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10772 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10773 { (exit 1); exit 1; }; }
10775 cat >conftest.$ac_ext <<_ACEOF
10776 /* confdefs.h. */
10777 _ACEOF
10778 cat confdefs.h >>conftest.$ac_ext
10779 cat >>conftest.$ac_ext <<_ACEOF
10780 /* end confdefs.h. */
10781 #include <stdlib.h>
10782 #include <iconv.h>
10784 main ()
10786 iconv_t cd = iconv_open("","");
10787 iconv(cd,NULL,NULL,NULL,NULL);
10788 iconv_close(cd);
10790 return 0;
10792 _ACEOF
10793 rm -f conftest.$ac_objext conftest$ac_exeext
10794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10795 (eval $ac_link) 2>conftest.er1
10796 ac_status=$?
10797 grep -v '^ *+' conftest.er1 >conftest.err
10798 rm -f conftest.er1
10799 cat conftest.err >&5
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); } &&
10802 { ac_try='test -z "$ac_c_werror_flag"
10803 || test ! -s conftest.err'
10804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10805 (eval $ac_try) 2>&5
10806 ac_status=$?
10807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); }; } &&
10809 { ac_try='test -s conftest$ac_exeext'
10810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10811 (eval $ac_try) 2>&5
10812 ac_status=$?
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); }; }; then
10815 am_cv_func_iconv=yes
10816 else
10817 echo "$as_me: failed program was:" >&5
10818 sed 's/^/| /' conftest.$ac_ext >&5
10821 rm -f conftest.err conftest.$ac_objext \
10822 conftest$ac_exeext conftest.$ac_ext
10823 if test "$am_cv_func_iconv" != yes; then
10824 am_save_LIBS="$LIBS"
10825 LIBS="$LIBS $LIBICONV"
10826 if test x$gcc_no_link = xyes; then
10827 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10828 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10829 { (exit 1); exit 1; }; }
10831 cat >conftest.$ac_ext <<_ACEOF
10832 /* confdefs.h. */
10833 _ACEOF
10834 cat confdefs.h >>conftest.$ac_ext
10835 cat >>conftest.$ac_ext <<_ACEOF
10836 /* end confdefs.h. */
10837 #include <stdlib.h>
10838 #include <iconv.h>
10840 main ()
10842 iconv_t cd = iconv_open("","");
10843 iconv(cd,NULL,NULL,NULL,NULL);
10844 iconv_close(cd);
10846 return 0;
10848 _ACEOF
10849 rm -f conftest.$ac_objext conftest$ac_exeext
10850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10851 (eval $ac_link) 2>conftest.er1
10852 ac_status=$?
10853 grep -v '^ *+' conftest.er1 >conftest.err
10854 rm -f conftest.er1
10855 cat conftest.err >&5
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); } &&
10858 { ac_try='test -z "$ac_c_werror_flag"
10859 || test ! -s conftest.err'
10860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10861 (eval $ac_try) 2>&5
10862 ac_status=$?
10863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864 (exit $ac_status); }; } &&
10865 { ac_try='test -s conftest$ac_exeext'
10866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10867 (eval $ac_try) 2>&5
10868 ac_status=$?
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); }; }; then
10871 am_cv_lib_iconv=yes
10872 am_cv_func_iconv=yes
10873 else
10874 echo "$as_me: failed program was:" >&5
10875 sed 's/^/| /' conftest.$ac_ext >&5
10878 rm -f conftest.err conftest.$ac_objext \
10879 conftest$ac_exeext conftest.$ac_ext
10880 LIBS="$am_save_LIBS"
10884 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10885 echo "${ECHO_T}$am_cv_func_iconv" >&6
10886 if test "$am_cv_func_iconv" = yes; then
10888 cat >>confdefs.h <<\_ACEOF
10889 #define HAVE_ICONV 1
10890 _ACEOF
10893 if test "$am_cv_lib_iconv" = yes; then
10894 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10895 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10896 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10897 echo "${ECHO_T}$LIBICONV" >&6
10898 else
10899 CPPFLAGS="$am_save_CPPFLAGS"
10900 LIBICONV=
10901 LTLIBICONV=
10906 if test "$am_cv_func_iconv" = yes; then
10907 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10908 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10909 if test "${am_cv_proto_iconv+set}" = set; then
10910 echo $ECHO_N "(cached) $ECHO_C" >&6
10911 else
10913 cat >conftest.$ac_ext <<_ACEOF
10914 /* confdefs.h. */
10915 _ACEOF
10916 cat confdefs.h >>conftest.$ac_ext
10917 cat >>conftest.$ac_ext <<_ACEOF
10918 /* end confdefs.h. */
10920 #include <stdlib.h>
10921 #include <iconv.h>
10922 extern
10923 #ifdef __cplusplus
10925 #endif
10926 #if defined(__STDC__) || defined(__cplusplus)
10927 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10928 #else
10929 size_t iconv();
10930 #endif
10933 main ()
10937 return 0;
10939 _ACEOF
10940 rm -f conftest.$ac_objext
10941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10942 (eval $ac_compile) 2>conftest.er1
10943 ac_status=$?
10944 grep -v '^ *+' conftest.er1 >conftest.err
10945 rm -f conftest.er1
10946 cat conftest.err >&5
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); } &&
10949 { ac_try='test -z "$ac_c_werror_flag"
10950 || test ! -s conftest.err'
10951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10952 (eval $ac_try) 2>&5
10953 ac_status=$?
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); }; } &&
10956 { ac_try='test -s conftest.$ac_objext'
10957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10958 (eval $ac_try) 2>&5
10959 ac_status=$?
10960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); }; }; then
10962 am_cv_proto_iconv_arg1=""
10963 else
10964 echo "$as_me: failed program was:" >&5
10965 sed 's/^/| /' conftest.$ac_ext >&5
10967 am_cv_proto_iconv_arg1="const"
10969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10970 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);"
10973 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10974 echo "$as_me:$LINENO: result: ${ac_t:-
10975 }$am_cv_proto_iconv" >&5
10976 echo "${ECHO_T}${ac_t:-
10977 }$am_cv_proto_iconv" >&6
10979 cat >>confdefs.h <<_ACEOF
10980 #define ICONV_CONST $am_cv_proto_iconv_arg1
10981 _ACEOF
10986 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10987 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10988 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10989 echo $ECHO_N "(cached) $ECHO_C" >&6
10990 else
10991 if test x$gcc_no_link = xyes; then
10992 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10993 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10994 { (exit 1); exit 1; }; }
10996 cat >conftest.$ac_ext <<_ACEOF
10997 /* confdefs.h. */
10998 _ACEOF
10999 cat confdefs.h >>conftest.$ac_ext
11000 cat >>conftest.$ac_ext <<_ACEOF
11001 /* end confdefs.h. */
11002 #include <locale.h>
11004 main ()
11006 return LC_MESSAGES
11008 return 0;
11010 _ACEOF
11011 rm -f conftest.$ac_objext conftest$ac_exeext
11012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11013 (eval $ac_link) 2>conftest.er1
11014 ac_status=$?
11015 grep -v '^ *+' conftest.er1 >conftest.err
11016 rm -f conftest.er1
11017 cat conftest.err >&5
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); } &&
11020 { ac_try='test -z "$ac_c_werror_flag"
11021 || test ! -s conftest.err'
11022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11023 (eval $ac_try) 2>&5
11024 ac_status=$?
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); }; } &&
11027 { ac_try='test -s conftest$ac_exeext'
11028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11029 (eval $ac_try) 2>&5
11030 ac_status=$?
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); }; }; then
11033 am_cv_val_LC_MESSAGES=yes
11034 else
11035 echo "$as_me: failed program was:" >&5
11036 sed 's/^/| /' conftest.$ac_ext >&5
11038 am_cv_val_LC_MESSAGES=no
11040 rm -f conftest.err conftest.$ac_objext \
11041 conftest$ac_exeext conftest.$ac_ext
11043 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11044 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11045 if test $am_cv_val_LC_MESSAGES = yes; then
11047 cat >>confdefs.h <<\_ACEOF
11048 #define HAVE_LC_MESSAGES 1
11049 _ACEOF
11053 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11054 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11055 if test "${ac_cv_struct_tm+set}" = set; then
11056 echo $ECHO_N "(cached) $ECHO_C" >&6
11057 else
11058 cat >conftest.$ac_ext <<_ACEOF
11059 /* confdefs.h. */
11060 _ACEOF
11061 cat confdefs.h >>conftest.$ac_ext
11062 cat >>conftest.$ac_ext <<_ACEOF
11063 /* end confdefs.h. */
11064 #include <sys/types.h>
11065 #include <time.h>
11068 main ()
11070 struct tm *tp; tp->tm_sec;
11072 return 0;
11074 _ACEOF
11075 rm -f conftest.$ac_objext
11076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11077 (eval $ac_compile) 2>conftest.er1
11078 ac_status=$?
11079 grep -v '^ *+' conftest.er1 >conftest.err
11080 rm -f conftest.er1
11081 cat conftest.err >&5
11082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); } &&
11084 { ac_try='test -z "$ac_c_werror_flag"
11085 || test ! -s conftest.err'
11086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11087 (eval $ac_try) 2>&5
11088 ac_status=$?
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); }; } &&
11091 { ac_try='test -s conftest.$ac_objext'
11092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11093 (eval $ac_try) 2>&5
11094 ac_status=$?
11095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); }; }; then
11097 ac_cv_struct_tm=time.h
11098 else
11099 echo "$as_me: failed program was:" >&5
11100 sed 's/^/| /' conftest.$ac_ext >&5
11102 ac_cv_struct_tm=sys/time.h
11104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11106 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11107 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11108 if test $ac_cv_struct_tm = sys/time.h; then
11110 cat >>confdefs.h <<\_ACEOF
11111 #define TM_IN_SYS_TIME 1
11112 _ACEOF
11116 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11117 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11118 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11119 echo $ECHO_N "(cached) $ECHO_C" >&6
11120 else
11121 cat >conftest.$ac_ext <<_ACEOF
11122 /* confdefs.h. */
11123 _ACEOF
11124 cat confdefs.h >>conftest.$ac_ext
11125 cat >>conftest.$ac_ext <<_ACEOF
11126 /* end confdefs.h. */
11127 #include <sys/types.h>
11128 #include <$ac_cv_struct_tm>
11132 main ()
11134 static struct tm ac_aggr;
11135 if (ac_aggr.tm_zone)
11136 return 0;
11138 return 0;
11140 _ACEOF
11141 rm -f conftest.$ac_objext
11142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11143 (eval $ac_compile) 2>conftest.er1
11144 ac_status=$?
11145 grep -v '^ *+' conftest.er1 >conftest.err
11146 rm -f conftest.er1
11147 cat conftest.err >&5
11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); } &&
11150 { ac_try='test -z "$ac_c_werror_flag"
11151 || test ! -s conftest.err'
11152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11153 (eval $ac_try) 2>&5
11154 ac_status=$?
11155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156 (exit $ac_status); }; } &&
11157 { ac_try='test -s conftest.$ac_objext'
11158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11159 (eval $ac_try) 2>&5
11160 ac_status=$?
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); }; }; then
11163 ac_cv_member_struct_tm_tm_zone=yes
11164 else
11165 echo "$as_me: failed program was:" >&5
11166 sed 's/^/| /' conftest.$ac_ext >&5
11168 cat >conftest.$ac_ext <<_ACEOF
11169 /* confdefs.h. */
11170 _ACEOF
11171 cat confdefs.h >>conftest.$ac_ext
11172 cat >>conftest.$ac_ext <<_ACEOF
11173 /* end confdefs.h. */
11174 #include <sys/types.h>
11175 #include <$ac_cv_struct_tm>
11179 main ()
11181 static struct tm ac_aggr;
11182 if (sizeof ac_aggr.tm_zone)
11183 return 0;
11185 return 0;
11187 _ACEOF
11188 rm -f conftest.$ac_objext
11189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11190 (eval $ac_compile) 2>conftest.er1
11191 ac_status=$?
11192 grep -v '^ *+' conftest.er1 >conftest.err
11193 rm -f conftest.er1
11194 cat conftest.err >&5
11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196 (exit $ac_status); } &&
11197 { ac_try='test -z "$ac_c_werror_flag"
11198 || test ! -s conftest.err'
11199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11200 (eval $ac_try) 2>&5
11201 ac_status=$?
11202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203 (exit $ac_status); }; } &&
11204 { ac_try='test -s conftest.$ac_objext'
11205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11206 (eval $ac_try) 2>&5
11207 ac_status=$?
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); }; }; then
11210 ac_cv_member_struct_tm_tm_zone=yes
11211 else
11212 echo "$as_me: failed program was:" >&5
11213 sed 's/^/| /' conftest.$ac_ext >&5
11215 ac_cv_member_struct_tm_tm_zone=no
11217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11221 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11222 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11223 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11225 cat >>confdefs.h <<_ACEOF
11226 #define HAVE_STRUCT_TM_TM_ZONE 1
11227 _ACEOF
11232 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11234 cat >>confdefs.h <<\_ACEOF
11235 #define HAVE_TM_ZONE 1
11236 _ACEOF
11238 else
11239 echo "$as_me:$LINENO: checking for tzname" >&5
11240 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11241 if test "${ac_cv_var_tzname+set}" = set; then
11242 echo $ECHO_N "(cached) $ECHO_C" >&6
11243 else
11244 if test x$gcc_no_link = xyes; then
11245 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11246 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11247 { (exit 1); exit 1; }; }
11249 cat >conftest.$ac_ext <<_ACEOF
11250 /* confdefs.h. */
11251 _ACEOF
11252 cat confdefs.h >>conftest.$ac_ext
11253 cat >>conftest.$ac_ext <<_ACEOF
11254 /* end confdefs.h. */
11255 #include <time.h>
11256 #ifndef tzname /* For SGI. */
11257 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11258 #endif
11261 main ()
11263 atoi(*tzname);
11265 return 0;
11267 _ACEOF
11268 rm -f conftest.$ac_objext conftest$ac_exeext
11269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11270 (eval $ac_link) 2>conftest.er1
11271 ac_status=$?
11272 grep -v '^ *+' conftest.er1 >conftest.err
11273 rm -f conftest.er1
11274 cat conftest.err >&5
11275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); } &&
11277 { ac_try='test -z "$ac_c_werror_flag"
11278 || test ! -s conftest.err'
11279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11280 (eval $ac_try) 2>&5
11281 ac_status=$?
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); }; } &&
11284 { ac_try='test -s conftest$ac_exeext'
11285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11286 (eval $ac_try) 2>&5
11287 ac_status=$?
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); }; }; then
11290 ac_cv_var_tzname=yes
11291 else
11292 echo "$as_me: failed program was:" >&5
11293 sed 's/^/| /' conftest.$ac_ext >&5
11295 ac_cv_var_tzname=no
11297 rm -f conftest.err conftest.$ac_objext \
11298 conftest$ac_exeext conftest.$ac_ext
11300 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11301 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11302 if test $ac_cv_var_tzname = yes; then
11304 cat >>confdefs.h <<\_ACEOF
11305 #define HAVE_TZNAME 1
11306 _ACEOF
11314 for ac_func in gethostbyname_r
11316 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11317 echo "$as_me:$LINENO: checking for $ac_func" >&5
11318 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11319 if eval "test \"\${$as_ac_var+set}\" = set"; then
11320 echo $ECHO_N "(cached) $ECHO_C" >&6
11321 else
11322 if test x$gcc_no_link = xyes; then
11323 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11324 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11325 { (exit 1); exit 1; }; }
11327 cat >conftest.$ac_ext <<_ACEOF
11328 /* confdefs.h. */
11329 _ACEOF
11330 cat confdefs.h >>conftest.$ac_ext
11331 cat >>conftest.$ac_ext <<_ACEOF
11332 /* end confdefs.h. */
11333 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11335 #define $ac_func innocuous_$ac_func
11337 /* System header to define __stub macros and hopefully few prototypes,
11338 which can conflict with char $ac_func (); below.
11339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11340 <limits.h> exists even on freestanding compilers. */
11342 #ifdef __STDC__
11343 # include <limits.h>
11344 #else
11345 # include <assert.h>
11346 #endif
11348 #undef $ac_func
11350 /* Override any gcc2 internal prototype to avoid an error. */
11351 #ifdef __cplusplus
11352 extern "C"
11354 #endif
11355 /* We use char because int might match the return type of a gcc2
11356 builtin and then its argument prototype would still apply. */
11357 char $ac_func ();
11358 /* The GNU C library defines this for functions which it implements
11359 to always fail with ENOSYS. Some functions are actually named
11360 something starting with __ and the normal name is an alias. */
11361 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11362 choke me
11363 #else
11364 char (*f) () = $ac_func;
11365 #endif
11366 #ifdef __cplusplus
11368 #endif
11371 main ()
11373 return f != $ac_func;
11375 return 0;
11377 _ACEOF
11378 rm -f conftest.$ac_objext conftest$ac_exeext
11379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11380 (eval $ac_link) 2>conftest.er1
11381 ac_status=$?
11382 grep -v '^ *+' conftest.er1 >conftest.err
11383 rm -f conftest.er1
11384 cat conftest.err >&5
11385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386 (exit $ac_status); } &&
11387 { ac_try='test -z "$ac_c_werror_flag"
11388 || test ! -s conftest.err'
11389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11390 (eval $ac_try) 2>&5
11391 ac_status=$?
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); }; } &&
11394 { ac_try='test -s conftest$ac_exeext'
11395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11396 (eval $ac_try) 2>&5
11397 ac_status=$?
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); }; }; then
11400 eval "$as_ac_var=yes"
11401 else
11402 echo "$as_me: failed program was:" >&5
11403 sed 's/^/| /' conftest.$ac_ext >&5
11405 eval "$as_ac_var=no"
11407 rm -f conftest.err conftest.$ac_objext \
11408 conftest$ac_exeext conftest.$ac_ext
11410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11411 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11412 if test `eval echo '${'$as_ac_var'}'` = yes; then
11413 cat >>confdefs.h <<_ACEOF
11414 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11415 _ACEOF
11418 cat >>confdefs.h <<\_ACEOF
11419 #define HAVE_GETHOSTBYNAME_R 1
11420 _ACEOF
11422 # There are two different kinds of gethostbyname_r.
11423 # We look for the one that returns `int'.
11424 # Hopefully this check is robust enough.
11425 cat >conftest.$ac_ext <<_ACEOF
11426 /* confdefs.h. */
11427 _ACEOF
11428 cat confdefs.h >>conftest.$ac_ext
11429 cat >>conftest.$ac_ext <<_ACEOF
11430 /* end confdefs.h. */
11431 #include <netdb.h>
11433 _ACEOF
11434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11435 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
11438 cat >>confdefs.h <<\_ACEOF
11439 #define GETHOSTBYNAME_R_RETURNS_INT 1
11440 _ACEOF
11443 rm -f conftest*
11446 case " $GCINCS " in
11447 *" -D_REENTRANT "*) ;;
11449 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
11450 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
11451 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
11452 echo $ECHO_N "(cached) $ECHO_C" >&6
11453 else
11454 ac_ext=cc
11455 ac_cpp='$CXXCPP $CPPFLAGS'
11456 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11457 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11458 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11460 cat >conftest.$ac_ext <<_ACEOF
11461 /* confdefs.h. */
11462 _ACEOF
11463 cat confdefs.h >>conftest.$ac_ext
11464 cat >>conftest.$ac_ext <<_ACEOF
11465 /* end confdefs.h. */
11466 #include <netdb.h>
11468 main ()
11470 gethostbyname_r("", 0, 0);
11472 return 0;
11474 _ACEOF
11475 rm -f conftest.$ac_objext
11476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11477 (eval $ac_compile) 2>conftest.er1
11478 ac_status=$?
11479 grep -v '^ *+' conftest.er1 >conftest.err
11480 rm -f conftest.er1
11481 cat conftest.err >&5
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); } &&
11484 { ac_try='test -z "$ac_cxx_werror_flag"
11485 || test ! -s conftest.err'
11486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11487 (eval $ac_try) 2>&5
11488 ac_status=$?
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); }; } &&
11491 { ac_try='test -s conftest.$ac_objext'
11492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11493 (eval $ac_try) 2>&5
11494 ac_status=$?
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); }; }; then
11497 libjava_cv_gethostbyname_r_needs_reentrant=no
11498 else
11499 echo "$as_me: failed program was:" >&5
11500 sed 's/^/| /' conftest.$ac_ext >&5
11502 CPPFLAGS_SAVE="$CPPFLAGS"
11503 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
11504 cat >conftest.$ac_ext <<_ACEOF
11505 /* confdefs.h. */
11506 _ACEOF
11507 cat confdefs.h >>conftest.$ac_ext
11508 cat >>conftest.$ac_ext <<_ACEOF
11509 /* end confdefs.h. */
11510 #include <netdb.h>
11512 main ()
11514 gethostbyname_r("", 0, 0);
11516 return 0;
11518 _ACEOF
11519 rm -f conftest.$ac_objext
11520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11521 (eval $ac_compile) 2>conftest.er1
11522 ac_status=$?
11523 grep -v '^ *+' conftest.er1 >conftest.err
11524 rm -f conftest.er1
11525 cat conftest.err >&5
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); } &&
11528 { ac_try='test -z "$ac_cxx_werror_flag"
11529 || test ! -s conftest.err'
11530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11531 (eval $ac_try) 2>&5
11532 ac_status=$?
11533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); }; } &&
11535 { ac_try='test -s conftest.$ac_objext'
11536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11537 (eval $ac_try) 2>&5
11538 ac_status=$?
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); }; }; then
11541 libjava_cv_gethostbyname_r_needs_reentrant=yes
11542 else
11543 echo "$as_me: failed program was:" >&5
11544 sed 's/^/| /' conftest.$ac_ext >&5
11546 libjava_cv_gethostbyname_r_needs_reentrant=fail
11548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11549 CPPFLAGS="$CPPFLAGS_SAVE"
11552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11553 ac_ext=c
11554 ac_cpp='$CPP $CPPFLAGS'
11555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11561 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
11562 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
11563 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
11565 cat >>confdefs.h <<\_ACEOF
11566 #define _REENTRANT 1
11567 _ACEOF
11571 esac
11573 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
11574 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
11575 if test "${libjava_cv_struct_hostent_data+set}" = set; then
11576 echo $ECHO_N "(cached) $ECHO_C" >&6
11577 else
11578 cat >conftest.$ac_ext <<_ACEOF
11579 /* confdefs.h. */
11580 _ACEOF
11581 cat confdefs.h >>conftest.$ac_ext
11582 cat >>conftest.$ac_ext <<_ACEOF
11583 /* end confdefs.h. */
11585 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
11586 # define _REENTRANT 1
11587 #endif
11588 #include <netdb.h>
11590 main ()
11592 struct hostent_data data;
11594 return 0;
11596 _ACEOF
11597 rm -f conftest.$ac_objext
11598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11599 (eval $ac_compile) 2>conftest.er1
11600 ac_status=$?
11601 grep -v '^ *+' conftest.er1 >conftest.err
11602 rm -f conftest.er1
11603 cat conftest.err >&5
11604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605 (exit $ac_status); } &&
11606 { ac_try='test -z "$ac_c_werror_flag"
11607 || test ! -s conftest.err'
11608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11609 (eval $ac_try) 2>&5
11610 ac_status=$?
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); }; } &&
11613 { ac_try='test -s conftest.$ac_objext'
11614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11615 (eval $ac_try) 2>&5
11616 ac_status=$?
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); }; }; then
11619 libjava_cv_struct_hostent_data=yes
11620 else
11621 echo "$as_me: failed program was:" >&5
11622 sed 's/^/| /' conftest.$ac_ext >&5
11624 libjava_cv_struct_hostent_data=no
11626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11628 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
11629 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
11630 if test "x$libjava_cv_struct_hostent_data" = xyes; then
11632 cat >>confdefs.h <<\_ACEOF
11633 #define HAVE_STRUCT_HOSTENT_DATA 1
11634 _ACEOF
11639 done
11642 # FIXME: libjava source code expects to find a prototype for
11643 # gethostbyaddr_r in netdb.h. The outer check ensures that
11644 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
11645 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
11646 # linkage check is enough, yet C++ code requires proper prototypes.)
11647 cat >conftest.$ac_ext <<_ACEOF
11648 /* confdefs.h. */
11649 _ACEOF
11650 cat confdefs.h >>conftest.$ac_ext
11651 cat >>conftest.$ac_ext <<_ACEOF
11652 /* end confdefs.h. */
11653 #include <netdb.h>
11655 _ACEOF
11656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11657 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
11660 for ac_func in gethostbyaddr_r
11662 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11663 echo "$as_me:$LINENO: checking for $ac_func" >&5
11664 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11665 if eval "test \"\${$as_ac_var+set}\" = set"; then
11666 echo $ECHO_N "(cached) $ECHO_C" >&6
11667 else
11668 if test x$gcc_no_link = xyes; then
11669 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11670 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11671 { (exit 1); exit 1; }; }
11673 cat >conftest.$ac_ext <<_ACEOF
11674 /* confdefs.h. */
11675 _ACEOF
11676 cat confdefs.h >>conftest.$ac_ext
11677 cat >>conftest.$ac_ext <<_ACEOF
11678 /* end confdefs.h. */
11679 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11681 #define $ac_func innocuous_$ac_func
11683 /* System header to define __stub macros and hopefully few prototypes,
11684 which can conflict with char $ac_func (); below.
11685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11686 <limits.h> exists even on freestanding compilers. */
11688 #ifdef __STDC__
11689 # include <limits.h>
11690 #else
11691 # include <assert.h>
11692 #endif
11694 #undef $ac_func
11696 /* Override any gcc2 internal prototype to avoid an error. */
11697 #ifdef __cplusplus
11698 extern "C"
11700 #endif
11701 /* We use char because int might match the return type of a gcc2
11702 builtin and then its argument prototype would still apply. */
11703 char $ac_func ();
11704 /* The GNU C library defines this for functions which it implements
11705 to always fail with ENOSYS. Some functions are actually named
11706 something starting with __ and the normal name is an alias. */
11707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11708 choke me
11709 #else
11710 char (*f) () = $ac_func;
11711 #endif
11712 #ifdef __cplusplus
11714 #endif
11717 main ()
11719 return f != $ac_func;
11721 return 0;
11723 _ACEOF
11724 rm -f conftest.$ac_objext conftest$ac_exeext
11725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11726 (eval $ac_link) 2>conftest.er1
11727 ac_status=$?
11728 grep -v '^ *+' conftest.er1 >conftest.err
11729 rm -f conftest.er1
11730 cat conftest.err >&5
11731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732 (exit $ac_status); } &&
11733 { ac_try='test -z "$ac_c_werror_flag"
11734 || test ! -s conftest.err'
11735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11736 (eval $ac_try) 2>&5
11737 ac_status=$?
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); }; } &&
11740 { ac_try='test -s conftest$ac_exeext'
11741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11742 (eval $ac_try) 2>&5
11743 ac_status=$?
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); }; }; then
11746 eval "$as_ac_var=yes"
11747 else
11748 echo "$as_me: failed program was:" >&5
11749 sed 's/^/| /' conftest.$ac_ext >&5
11751 eval "$as_ac_var=no"
11753 rm -f conftest.err conftest.$ac_objext \
11754 conftest$ac_exeext conftest.$ac_ext
11756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11757 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11758 if test `eval echo '${'$as_ac_var'}'` = yes; then
11759 cat >>confdefs.h <<_ACEOF
11760 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11761 _ACEOF
11764 cat >>confdefs.h <<\_ACEOF
11765 #define HAVE_GETHOSTBYADDR_R 1
11766 _ACEOF
11768 # There are two different kinds of gethostbyaddr_r.
11769 # We look for the one that returns `int'.
11770 # Hopefully this check is robust enough.
11771 cat >conftest.$ac_ext <<_ACEOF
11772 /* confdefs.h. */
11773 _ACEOF
11774 cat confdefs.h >>conftest.$ac_ext
11775 cat >>conftest.$ac_ext <<_ACEOF
11776 /* end confdefs.h. */
11777 #include <netdb.h>
11779 _ACEOF
11780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11781 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11784 cat >>confdefs.h <<\_ACEOF
11785 #define GETHOSTBYADDR_R_RETURNS_INT 1
11786 _ACEOF
11789 rm -f conftest*
11792 done
11795 rm -f conftest*
11799 for ac_func in gethostname
11801 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11802 echo "$as_me:$LINENO: checking for $ac_func" >&5
11803 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11804 if eval "test \"\${$as_ac_var+set}\" = set"; then
11805 echo $ECHO_N "(cached) $ECHO_C" >&6
11806 else
11807 if test x$gcc_no_link = xyes; then
11808 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11809 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11810 { (exit 1); exit 1; }; }
11812 cat >conftest.$ac_ext <<_ACEOF
11813 /* confdefs.h. */
11814 _ACEOF
11815 cat confdefs.h >>conftest.$ac_ext
11816 cat >>conftest.$ac_ext <<_ACEOF
11817 /* end confdefs.h. */
11818 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11820 #define $ac_func innocuous_$ac_func
11822 /* System header to define __stub macros and hopefully few prototypes,
11823 which can conflict with char $ac_func (); below.
11824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11825 <limits.h> exists even on freestanding compilers. */
11827 #ifdef __STDC__
11828 # include <limits.h>
11829 #else
11830 # include <assert.h>
11831 #endif
11833 #undef $ac_func
11835 /* Override any gcc2 internal prototype to avoid an error. */
11836 #ifdef __cplusplus
11837 extern "C"
11839 #endif
11840 /* We use char because int might match the return type of a gcc2
11841 builtin and then its argument prototype would still apply. */
11842 char $ac_func ();
11843 /* The GNU C library defines this for functions which it implements
11844 to always fail with ENOSYS. Some functions are actually named
11845 something starting with __ and the normal name is an alias. */
11846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11847 choke me
11848 #else
11849 char (*f) () = $ac_func;
11850 #endif
11851 #ifdef __cplusplus
11853 #endif
11856 main ()
11858 return f != $ac_func;
11860 return 0;
11862 _ACEOF
11863 rm -f conftest.$ac_objext conftest$ac_exeext
11864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11865 (eval $ac_link) 2>conftest.er1
11866 ac_status=$?
11867 grep -v '^ *+' conftest.er1 >conftest.err
11868 rm -f conftest.er1
11869 cat conftest.err >&5
11870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871 (exit $ac_status); } &&
11872 { ac_try='test -z "$ac_c_werror_flag"
11873 || test ! -s conftest.err'
11874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11875 (eval $ac_try) 2>&5
11876 ac_status=$?
11877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878 (exit $ac_status); }; } &&
11879 { ac_try='test -s conftest$ac_exeext'
11880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11881 (eval $ac_try) 2>&5
11882 ac_status=$?
11883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); }; }; then
11885 eval "$as_ac_var=yes"
11886 else
11887 echo "$as_me: failed program was:" >&5
11888 sed 's/^/| /' conftest.$ac_ext >&5
11890 eval "$as_ac_var=no"
11892 rm -f conftest.err conftest.$ac_objext \
11893 conftest$ac_exeext conftest.$ac_ext
11895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11896 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11897 if test `eval echo '${'$as_ac_var'}'` = yes; then
11898 cat >>confdefs.h <<_ACEOF
11899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11900 _ACEOF
11903 cat >>confdefs.h <<\_ACEOF
11904 #define HAVE_GETHOSTNAME 1
11905 _ACEOF
11907 cat >conftest.$ac_ext <<_ACEOF
11908 /* confdefs.h. */
11909 _ACEOF
11910 cat confdefs.h >>conftest.$ac_ext
11911 cat >>conftest.$ac_ext <<_ACEOF
11912 /* end confdefs.h. */
11913 #include <unistd.h>
11915 _ACEOF
11916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11917 $EGREP "gethostname" >/dev/null 2>&1; then
11920 cat >>confdefs.h <<\_ACEOF
11921 #define HAVE_GETHOSTNAME_DECL 1
11922 _ACEOF
11925 rm -f conftest*
11928 done
11932 for ac_func in usleep
11934 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11935 echo "$as_me:$LINENO: checking for $ac_func" >&5
11936 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11937 if eval "test \"\${$as_ac_var+set}\" = set"; then
11938 echo $ECHO_N "(cached) $ECHO_C" >&6
11939 else
11940 if test x$gcc_no_link = xyes; then
11941 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11942 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11943 { (exit 1); exit 1; }; }
11945 cat >conftest.$ac_ext <<_ACEOF
11946 /* confdefs.h. */
11947 _ACEOF
11948 cat confdefs.h >>conftest.$ac_ext
11949 cat >>conftest.$ac_ext <<_ACEOF
11950 /* end confdefs.h. */
11951 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11953 #define $ac_func innocuous_$ac_func
11955 /* System header to define __stub macros and hopefully few prototypes,
11956 which can conflict with char $ac_func (); below.
11957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11958 <limits.h> exists even on freestanding compilers. */
11960 #ifdef __STDC__
11961 # include <limits.h>
11962 #else
11963 # include <assert.h>
11964 #endif
11966 #undef $ac_func
11968 /* Override any gcc2 internal prototype to avoid an error. */
11969 #ifdef __cplusplus
11970 extern "C"
11972 #endif
11973 /* We use char because int might match the return type of a gcc2
11974 builtin and then its argument prototype would still apply. */
11975 char $ac_func ();
11976 /* The GNU C library defines this for functions which it implements
11977 to always fail with ENOSYS. Some functions are actually named
11978 something starting with __ and the normal name is an alias. */
11979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11980 choke me
11981 #else
11982 char (*f) () = $ac_func;
11983 #endif
11984 #ifdef __cplusplus
11986 #endif
11989 main ()
11991 return f != $ac_func;
11993 return 0;
11995 _ACEOF
11996 rm -f conftest.$ac_objext conftest$ac_exeext
11997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11998 (eval $ac_link) 2>conftest.er1
11999 ac_status=$?
12000 grep -v '^ *+' conftest.er1 >conftest.err
12001 rm -f conftest.er1
12002 cat conftest.err >&5
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); } &&
12005 { ac_try='test -z "$ac_c_werror_flag"
12006 || test ! -s conftest.err'
12007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12008 (eval $ac_try) 2>&5
12009 ac_status=$?
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); }; } &&
12012 { ac_try='test -s conftest$ac_exeext'
12013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12014 (eval $ac_try) 2>&5
12015 ac_status=$?
12016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017 (exit $ac_status); }; }; then
12018 eval "$as_ac_var=yes"
12019 else
12020 echo "$as_me: failed program was:" >&5
12021 sed 's/^/| /' conftest.$ac_ext >&5
12023 eval "$as_ac_var=no"
12025 rm -f conftest.err conftest.$ac_objext \
12026 conftest$ac_exeext conftest.$ac_ext
12028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12029 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12030 if test `eval echo '${'$as_ac_var'}'` = yes; then
12031 cat >>confdefs.h <<_ACEOF
12032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12033 _ACEOF
12035 cat >conftest.$ac_ext <<_ACEOF
12036 /* confdefs.h. */
12037 _ACEOF
12038 cat confdefs.h >>conftest.$ac_ext
12039 cat >>conftest.$ac_ext <<_ACEOF
12040 /* end confdefs.h. */
12041 #include <unistd.h>
12043 _ACEOF
12044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12045 $EGREP "usleep" >/dev/null 2>&1; then
12048 cat >>confdefs.h <<\_ACEOF
12049 #define HAVE_USLEEP_DECL 1
12050 _ACEOF
12053 rm -f conftest*
12056 done
12059 # Look for these functions in the thread library, but only bother
12060 # if using POSIX threads.
12061 if test "$THREADS" = posix; then
12062 save_LIBS="$LIBS"
12063 LIBS="$LIBS $THREADLIBS"
12064 # Some POSIX thread systems don't have pthread_mutexattr_settype.
12065 # E.g., Solaris.
12068 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
12070 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12071 echo "$as_me:$LINENO: checking for $ac_func" >&5
12072 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12073 if eval "test \"\${$as_ac_var+set}\" = set"; then
12074 echo $ECHO_N "(cached) $ECHO_C" >&6
12075 else
12076 if test x$gcc_no_link = xyes; then
12077 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12078 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12079 { (exit 1); exit 1; }; }
12081 cat >conftest.$ac_ext <<_ACEOF
12082 /* confdefs.h. */
12083 _ACEOF
12084 cat confdefs.h >>conftest.$ac_ext
12085 cat >>conftest.$ac_ext <<_ACEOF
12086 /* end confdefs.h. */
12087 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12088 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12089 #define $ac_func innocuous_$ac_func
12091 /* System header to define __stub macros and hopefully few prototypes,
12092 which can conflict with char $ac_func (); below.
12093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12094 <limits.h> exists even on freestanding compilers. */
12096 #ifdef __STDC__
12097 # include <limits.h>
12098 #else
12099 # include <assert.h>
12100 #endif
12102 #undef $ac_func
12104 /* Override any gcc2 internal prototype to avoid an error. */
12105 #ifdef __cplusplus
12106 extern "C"
12108 #endif
12109 /* We use char because int might match the return type of a gcc2
12110 builtin and then its argument prototype would still apply. */
12111 char $ac_func ();
12112 /* The GNU C library defines this for functions which it implements
12113 to always fail with ENOSYS. Some functions are actually named
12114 something starting with __ and the normal name is an alias. */
12115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12116 choke me
12117 #else
12118 char (*f) () = $ac_func;
12119 #endif
12120 #ifdef __cplusplus
12122 #endif
12125 main ()
12127 return f != $ac_func;
12129 return 0;
12131 _ACEOF
12132 rm -f conftest.$ac_objext conftest$ac_exeext
12133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12134 (eval $ac_link) 2>conftest.er1
12135 ac_status=$?
12136 grep -v '^ *+' conftest.er1 >conftest.err
12137 rm -f conftest.er1
12138 cat conftest.err >&5
12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140 (exit $ac_status); } &&
12141 { ac_try='test -z "$ac_c_werror_flag"
12142 || test ! -s conftest.err'
12143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12144 (eval $ac_try) 2>&5
12145 ac_status=$?
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); }; } &&
12148 { ac_try='test -s conftest$ac_exeext'
12149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12150 (eval $ac_try) 2>&5
12151 ac_status=$?
12152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153 (exit $ac_status); }; }; then
12154 eval "$as_ac_var=yes"
12155 else
12156 echo "$as_me: failed program was:" >&5
12157 sed 's/^/| /' conftest.$ac_ext >&5
12159 eval "$as_ac_var=no"
12161 rm -f conftest.err conftest.$ac_objext \
12162 conftest$ac_exeext conftest.$ac_ext
12164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12165 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12166 if test `eval echo '${'$as_ac_var'}'` = yes; then
12167 cat >>confdefs.h <<_ACEOF
12168 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12169 _ACEOF
12172 done
12175 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
12176 # Solaris 7 the name librt is preferred.
12178 for ac_func in sched_yield
12180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12181 echo "$as_me:$LINENO: checking for $ac_func" >&5
12182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12183 if eval "test \"\${$as_ac_var+set}\" = set"; then
12184 echo $ECHO_N "(cached) $ECHO_C" >&6
12185 else
12186 if test x$gcc_no_link = xyes; then
12187 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12188 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12189 { (exit 1); exit 1; }; }
12191 cat >conftest.$ac_ext <<_ACEOF
12192 /* confdefs.h. */
12193 _ACEOF
12194 cat confdefs.h >>conftest.$ac_ext
12195 cat >>conftest.$ac_ext <<_ACEOF
12196 /* end confdefs.h. */
12197 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12199 #define $ac_func innocuous_$ac_func
12201 /* System header to define __stub macros and hopefully few prototypes,
12202 which can conflict with char $ac_func (); below.
12203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12204 <limits.h> exists even on freestanding compilers. */
12206 #ifdef __STDC__
12207 # include <limits.h>
12208 #else
12209 # include <assert.h>
12210 #endif
12212 #undef $ac_func
12214 /* Override any gcc2 internal prototype to avoid an error. */
12215 #ifdef __cplusplus
12216 extern "C"
12218 #endif
12219 /* We use char because int might match the return type of a gcc2
12220 builtin and then its argument prototype would still apply. */
12221 char $ac_func ();
12222 /* The GNU C library defines this for functions which it implements
12223 to always fail with ENOSYS. Some functions are actually named
12224 something starting with __ and the normal name is an alias. */
12225 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12226 choke me
12227 #else
12228 char (*f) () = $ac_func;
12229 #endif
12230 #ifdef __cplusplus
12232 #endif
12235 main ()
12237 return f != $ac_func;
12239 return 0;
12241 _ACEOF
12242 rm -f conftest.$ac_objext conftest$ac_exeext
12243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12244 (eval $ac_link) 2>conftest.er1
12245 ac_status=$?
12246 grep -v '^ *+' conftest.er1 >conftest.err
12247 rm -f conftest.er1
12248 cat conftest.err >&5
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); } &&
12251 { ac_try='test -z "$ac_c_werror_flag"
12252 || test ! -s conftest.err'
12253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12254 (eval $ac_try) 2>&5
12255 ac_status=$?
12256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257 (exit $ac_status); }; } &&
12258 { ac_try='test -s conftest$ac_exeext'
12259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12260 (eval $ac_try) 2>&5
12261 ac_status=$?
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); }; }; then
12264 eval "$as_ac_var=yes"
12265 else
12266 echo "$as_me: failed program was:" >&5
12267 sed 's/^/| /' conftest.$ac_ext >&5
12269 eval "$as_ac_var=no"
12271 rm -f conftest.err conftest.$ac_objext \
12272 conftest$ac_exeext conftest.$ac_ext
12274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12275 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12276 if test `eval echo '${'$as_ac_var'}'` = yes; then
12277 cat >>confdefs.h <<_ACEOF
12278 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12279 _ACEOF
12281 else
12283 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
12284 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
12285 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
12286 echo $ECHO_N "(cached) $ECHO_C" >&6
12287 else
12288 ac_check_lib_save_LIBS=$LIBS
12289 LIBS="-lrt $LIBS"
12290 if test x$gcc_no_link = xyes; then
12291 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12292 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12293 { (exit 1); exit 1; }; }
12295 cat >conftest.$ac_ext <<_ACEOF
12296 /* confdefs.h. */
12297 _ACEOF
12298 cat confdefs.h >>conftest.$ac_ext
12299 cat >>conftest.$ac_ext <<_ACEOF
12300 /* end confdefs.h. */
12302 /* Override any gcc2 internal prototype to avoid an error. */
12303 #ifdef __cplusplus
12304 extern "C"
12305 #endif
12306 /* We use char because int might match the return type of a gcc2
12307 builtin and then its argument prototype would still apply. */
12308 char sched_yield ();
12310 main ()
12312 sched_yield ();
12314 return 0;
12316 _ACEOF
12317 rm -f conftest.$ac_objext conftest$ac_exeext
12318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12319 (eval $ac_link) 2>conftest.er1
12320 ac_status=$?
12321 grep -v '^ *+' conftest.er1 >conftest.err
12322 rm -f conftest.er1
12323 cat conftest.err >&5
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); } &&
12326 { ac_try='test -z "$ac_c_werror_flag"
12327 || test ! -s conftest.err'
12328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12329 (eval $ac_try) 2>&5
12330 ac_status=$?
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); }; } &&
12333 { ac_try='test -s conftest$ac_exeext'
12334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12335 (eval $ac_try) 2>&5
12336 ac_status=$?
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); }; }; then
12339 ac_cv_lib_rt_sched_yield=yes
12340 else
12341 echo "$as_me: failed program was:" >&5
12342 sed 's/^/| /' conftest.$ac_ext >&5
12344 ac_cv_lib_rt_sched_yield=no
12346 rm -f conftest.err conftest.$ac_objext \
12347 conftest$ac_exeext conftest.$ac_ext
12348 LIBS=$ac_check_lib_save_LIBS
12350 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
12351 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
12352 if test $ac_cv_lib_rt_sched_yield = yes; then
12354 cat >>confdefs.h <<\_ACEOF
12355 #define HAVE_SCHED_YIELD 1
12356 _ACEOF
12358 THREADLIBS="$THREADLIBS -lrt"
12359 THREADSPEC="$THREADSPEC -lrt"
12360 else
12362 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
12363 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
12364 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
12365 echo $ECHO_N "(cached) $ECHO_C" >&6
12366 else
12367 ac_check_lib_save_LIBS=$LIBS
12368 LIBS="-lposix4 $LIBS"
12369 if test x$gcc_no_link = xyes; then
12370 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12371 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12372 { (exit 1); exit 1; }; }
12374 cat >conftest.$ac_ext <<_ACEOF
12375 /* confdefs.h. */
12376 _ACEOF
12377 cat confdefs.h >>conftest.$ac_ext
12378 cat >>conftest.$ac_ext <<_ACEOF
12379 /* end confdefs.h. */
12381 /* Override any gcc2 internal prototype to avoid an error. */
12382 #ifdef __cplusplus
12383 extern "C"
12384 #endif
12385 /* We use char because int might match the return type of a gcc2
12386 builtin and then its argument prototype would still apply. */
12387 char sched_yield ();
12389 main ()
12391 sched_yield ();
12393 return 0;
12395 _ACEOF
12396 rm -f conftest.$ac_objext conftest$ac_exeext
12397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12398 (eval $ac_link) 2>conftest.er1
12399 ac_status=$?
12400 grep -v '^ *+' conftest.er1 >conftest.err
12401 rm -f conftest.er1
12402 cat conftest.err >&5
12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); } &&
12405 { ac_try='test -z "$ac_c_werror_flag"
12406 || test ! -s conftest.err'
12407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12408 (eval $ac_try) 2>&5
12409 ac_status=$?
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); }; } &&
12412 { ac_try='test -s conftest$ac_exeext'
12413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12414 (eval $ac_try) 2>&5
12415 ac_status=$?
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); }; }; then
12418 ac_cv_lib_posix4_sched_yield=yes
12419 else
12420 echo "$as_me: failed program was:" >&5
12421 sed 's/^/| /' conftest.$ac_ext >&5
12423 ac_cv_lib_posix4_sched_yield=no
12425 rm -f conftest.err conftest.$ac_objext \
12426 conftest$ac_exeext conftest.$ac_ext
12427 LIBS=$ac_check_lib_save_LIBS
12429 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
12430 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
12431 if test $ac_cv_lib_posix4_sched_yield = yes; then
12433 cat >>confdefs.h <<\_ACEOF
12434 #define HAVE_SCHED_YIELD 1
12435 _ACEOF
12437 THREADLIBS="$THREADLIBS -lposix4"
12438 THREADSPEC="$THREADSPEC -lposix4"
12444 done
12447 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
12448 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
12449 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
12450 echo $ECHO_N "(cached) $ECHO_C" >&6
12451 else
12452 ac_check_lib_save_LIBS=$LIBS
12453 LIBS="-lrt $LIBS"
12454 if test x$gcc_no_link = xyes; then
12455 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12456 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12457 { (exit 1); exit 1; }; }
12459 cat >conftest.$ac_ext <<_ACEOF
12460 /* confdefs.h. */
12461 _ACEOF
12462 cat confdefs.h >>conftest.$ac_ext
12463 cat >>conftest.$ac_ext <<_ACEOF
12464 /* end confdefs.h. */
12466 /* Override any gcc2 internal prototype to avoid an error. */
12467 #ifdef __cplusplus
12468 extern "C"
12469 #endif
12470 /* We use char because int might match the return type of a gcc2
12471 builtin and then its argument prototype would still apply. */
12472 char clock_gettime ();
12474 main ()
12476 clock_gettime ();
12478 return 0;
12480 _ACEOF
12481 rm -f conftest.$ac_objext conftest$ac_exeext
12482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12483 (eval $ac_link) 2>conftest.er1
12484 ac_status=$?
12485 grep -v '^ *+' conftest.er1 >conftest.err
12486 rm -f conftest.er1
12487 cat conftest.err >&5
12488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); } &&
12490 { ac_try='test -z "$ac_c_werror_flag"
12491 || test ! -s conftest.err'
12492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12493 (eval $ac_try) 2>&5
12494 ac_status=$?
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); }; } &&
12497 { ac_try='test -s conftest$ac_exeext'
12498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12499 (eval $ac_try) 2>&5
12500 ac_status=$?
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); }; }; then
12503 ac_cv_lib_rt_clock_gettime=yes
12504 else
12505 echo "$as_me: failed program was:" >&5
12506 sed 's/^/| /' conftest.$ac_ext >&5
12508 ac_cv_lib_rt_clock_gettime=no
12510 rm -f conftest.err conftest.$ac_objext \
12511 conftest$ac_exeext conftest.$ac_ext
12512 LIBS=$ac_check_lib_save_LIBS
12514 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
12515 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
12516 if test $ac_cv_lib_rt_clock_gettime = yes; then
12519 cat >>confdefs.h <<\_ACEOF
12520 #define HAVE_CLOCK_GETTIME 1
12521 _ACEOF
12523 case "$THREADSPEC" in
12524 *-lrt*) ;;
12526 THREADSPEC="$THREADSPEC -lrt"
12527 THREADLIBS="$THREADLIBS -lrt"
12529 esac
12533 LIBS="$save_LIBS"
12535 # We can save a little space at runtime if the mutex has m_count
12536 # or __m_count. This is a nice hack for Linux.
12537 cat >conftest.$ac_ext <<_ACEOF
12538 /* confdefs.h. */
12539 _ACEOF
12540 cat confdefs.h >>conftest.$ac_ext
12541 cat >>conftest.$ac_ext <<_ACEOF
12542 /* end confdefs.h. */
12543 #include <pthread.h>
12545 main ()
12548 extern pthread_mutex_t *mutex; int q = mutex->m_count;
12551 return 0;
12553 _ACEOF
12554 rm -f conftest.$ac_objext
12555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12556 (eval $ac_compile) 2>conftest.er1
12557 ac_status=$?
12558 grep -v '^ *+' conftest.er1 >conftest.err
12559 rm -f conftest.er1
12560 cat conftest.err >&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); } &&
12563 { ac_try='test -z "$ac_c_werror_flag"
12564 || test ! -s conftest.err'
12565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12566 (eval $ac_try) 2>&5
12567 ac_status=$?
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); }; } &&
12570 { ac_try='test -s conftest.$ac_objext'
12571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12572 (eval $ac_try) 2>&5
12573 ac_status=$?
12574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575 (exit $ac_status); }; }; then
12577 cat >>confdefs.h <<\_ACEOF
12578 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
12579 _ACEOF
12581 else
12582 echo "$as_me: failed program was:" >&5
12583 sed 's/^/| /' conftest.$ac_ext >&5
12586 cat >conftest.$ac_ext <<_ACEOF
12587 /* confdefs.h. */
12588 _ACEOF
12589 cat confdefs.h >>conftest.$ac_ext
12590 cat >>conftest.$ac_ext <<_ACEOF
12591 /* end confdefs.h. */
12592 #include <pthread.h>
12594 main ()
12597 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
12600 return 0;
12602 _ACEOF
12603 rm -f conftest.$ac_objext
12604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12605 (eval $ac_compile) 2>conftest.er1
12606 ac_status=$?
12607 grep -v '^ *+' conftest.er1 >conftest.err
12608 rm -f conftest.er1
12609 cat conftest.err >&5
12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); } &&
12612 { ac_try='test -z "$ac_c_werror_flag"
12613 || test ! -s conftest.err'
12614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12615 (eval $ac_try) 2>&5
12616 ac_status=$?
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); }; } &&
12619 { ac_try='test -s conftest.$ac_objext'
12620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12621 (eval $ac_try) 2>&5
12622 ac_status=$?
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); }; }; then
12626 cat >>confdefs.h <<\_ACEOF
12627 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
12628 _ACEOF
12630 else
12631 echo "$as_me: failed program was:" >&5
12632 sed 's/^/| /' conftest.$ac_ext >&5
12635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12640 # We require a way to get the time.
12641 time_found=no
12645 for ac_func in gettimeofday time ftime
12647 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12648 echo "$as_me:$LINENO: checking for $ac_func" >&5
12649 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12650 if eval "test \"\${$as_ac_var+set}\" = set"; then
12651 echo $ECHO_N "(cached) $ECHO_C" >&6
12652 else
12653 if test x$gcc_no_link = xyes; then
12654 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12655 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12656 { (exit 1); exit 1; }; }
12658 cat >conftest.$ac_ext <<_ACEOF
12659 /* confdefs.h. */
12660 _ACEOF
12661 cat confdefs.h >>conftest.$ac_ext
12662 cat >>conftest.$ac_ext <<_ACEOF
12663 /* end confdefs.h. */
12664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12666 #define $ac_func innocuous_$ac_func
12668 /* System header to define __stub macros and hopefully few prototypes,
12669 which can conflict with char $ac_func (); below.
12670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12671 <limits.h> exists even on freestanding compilers. */
12673 #ifdef __STDC__
12674 # include <limits.h>
12675 #else
12676 # include <assert.h>
12677 #endif
12679 #undef $ac_func
12681 /* Override any gcc2 internal prototype to avoid an error. */
12682 #ifdef __cplusplus
12683 extern "C"
12685 #endif
12686 /* We use char because int might match the return type of a gcc2
12687 builtin and then its argument prototype would still apply. */
12688 char $ac_func ();
12689 /* The GNU C library defines this for functions which it implements
12690 to always fail with ENOSYS. Some functions are actually named
12691 something starting with __ and the normal name is an alias. */
12692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12693 choke me
12694 #else
12695 char (*f) () = $ac_func;
12696 #endif
12697 #ifdef __cplusplus
12699 #endif
12702 main ()
12704 return f != $ac_func;
12706 return 0;
12708 _ACEOF
12709 rm -f conftest.$ac_objext conftest$ac_exeext
12710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12711 (eval $ac_link) 2>conftest.er1
12712 ac_status=$?
12713 grep -v '^ *+' conftest.er1 >conftest.err
12714 rm -f conftest.er1
12715 cat conftest.err >&5
12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); } &&
12718 { ac_try='test -z "$ac_c_werror_flag"
12719 || test ! -s conftest.err'
12720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12721 (eval $ac_try) 2>&5
12722 ac_status=$?
12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); }; } &&
12725 { ac_try='test -s conftest$ac_exeext'
12726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12727 (eval $ac_try) 2>&5
12728 ac_status=$?
12729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730 (exit $ac_status); }; }; then
12731 eval "$as_ac_var=yes"
12732 else
12733 echo "$as_me: failed program was:" >&5
12734 sed 's/^/| /' conftest.$ac_ext >&5
12736 eval "$as_ac_var=no"
12738 rm -f conftest.err conftest.$ac_objext \
12739 conftest$ac_exeext conftest.$ac_ext
12741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12742 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12743 if test `eval echo '${'$as_ac_var'}'` = yes; then
12744 cat >>confdefs.h <<_ACEOF
12745 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12746 _ACEOF
12747 time_found=yes
12749 done
12751 if test "$time_found" = no; then
12752 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
12753 echo "$as_me: error: no function found to get the time" >&2;}
12754 { (exit 1); exit 1; }; }
12758 for ac_func in memmove
12760 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12761 echo "$as_me:$LINENO: checking for $ac_func" >&5
12762 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12763 if eval "test \"\${$as_ac_var+set}\" = set"; then
12764 echo $ECHO_N "(cached) $ECHO_C" >&6
12765 else
12766 if test x$gcc_no_link = xyes; then
12767 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12768 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12769 { (exit 1); exit 1; }; }
12771 cat >conftest.$ac_ext <<_ACEOF
12772 /* confdefs.h. */
12773 _ACEOF
12774 cat confdefs.h >>conftest.$ac_ext
12775 cat >>conftest.$ac_ext <<_ACEOF
12776 /* end confdefs.h. */
12777 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12779 #define $ac_func innocuous_$ac_func
12781 /* System header to define __stub macros and hopefully few prototypes,
12782 which can conflict with char $ac_func (); below.
12783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12784 <limits.h> exists even on freestanding compilers. */
12786 #ifdef __STDC__
12787 # include <limits.h>
12788 #else
12789 # include <assert.h>
12790 #endif
12792 #undef $ac_func
12794 /* Override any gcc2 internal prototype to avoid an error. */
12795 #ifdef __cplusplus
12796 extern "C"
12798 #endif
12799 /* We use char because int might match the return type of a gcc2
12800 builtin and then its argument prototype would still apply. */
12801 char $ac_func ();
12802 /* The GNU C library defines this for functions which it implements
12803 to always fail with ENOSYS. Some functions are actually named
12804 something starting with __ and the normal name is an alias. */
12805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12806 choke me
12807 #else
12808 char (*f) () = $ac_func;
12809 #endif
12810 #ifdef __cplusplus
12812 #endif
12815 main ()
12817 return f != $ac_func;
12819 return 0;
12821 _ACEOF
12822 rm -f conftest.$ac_objext conftest$ac_exeext
12823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12824 (eval $ac_link) 2>conftest.er1
12825 ac_status=$?
12826 grep -v '^ *+' conftest.er1 >conftest.err
12827 rm -f conftest.er1
12828 cat conftest.err >&5
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); } &&
12831 { ac_try='test -z "$ac_c_werror_flag"
12832 || test ! -s conftest.err'
12833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12834 (eval $ac_try) 2>&5
12835 ac_status=$?
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); }; } &&
12838 { ac_try='test -s conftest$ac_exeext'
12839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12840 (eval $ac_try) 2>&5
12841 ac_status=$?
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); }; }; then
12844 eval "$as_ac_var=yes"
12845 else
12846 echo "$as_me: failed program was:" >&5
12847 sed 's/^/| /' conftest.$ac_ext >&5
12849 eval "$as_ac_var=no"
12851 rm -f conftest.err conftest.$ac_objext \
12852 conftest$ac_exeext conftest.$ac_ext
12854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12855 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12856 if test `eval echo '${'$as_ac_var'}'` = yes; then
12857 cat >>confdefs.h <<_ACEOF
12858 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12859 _ACEOF
12862 done
12865 # We require memcpy.
12866 memcpy_found=no
12868 for ac_func in memcpy
12870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12871 echo "$as_me:$LINENO: checking for $ac_func" >&5
12872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12873 if eval "test \"\${$as_ac_var+set}\" = set"; then
12874 echo $ECHO_N "(cached) $ECHO_C" >&6
12875 else
12876 if test x$gcc_no_link = xyes; then
12877 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12878 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12879 { (exit 1); exit 1; }; }
12881 cat >conftest.$ac_ext <<_ACEOF
12882 /* confdefs.h. */
12883 _ACEOF
12884 cat confdefs.h >>conftest.$ac_ext
12885 cat >>conftest.$ac_ext <<_ACEOF
12886 /* end confdefs.h. */
12887 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12889 #define $ac_func innocuous_$ac_func
12891 /* System header to define __stub macros and hopefully few prototypes,
12892 which can conflict with char $ac_func (); below.
12893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12894 <limits.h> exists even on freestanding compilers. */
12896 #ifdef __STDC__
12897 # include <limits.h>
12898 #else
12899 # include <assert.h>
12900 #endif
12902 #undef $ac_func
12904 /* Override any gcc2 internal prototype to avoid an error. */
12905 #ifdef __cplusplus
12906 extern "C"
12908 #endif
12909 /* We use char because int might match the return type of a gcc2
12910 builtin and then its argument prototype would still apply. */
12911 char $ac_func ();
12912 /* The GNU C library defines this for functions which it implements
12913 to always fail with ENOSYS. Some functions are actually named
12914 something starting with __ and the normal name is an alias. */
12915 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12916 choke me
12917 #else
12918 char (*f) () = $ac_func;
12919 #endif
12920 #ifdef __cplusplus
12922 #endif
12925 main ()
12927 return f != $ac_func;
12929 return 0;
12931 _ACEOF
12932 rm -f conftest.$ac_objext conftest$ac_exeext
12933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12934 (eval $ac_link) 2>conftest.er1
12935 ac_status=$?
12936 grep -v '^ *+' conftest.er1 >conftest.err
12937 rm -f conftest.er1
12938 cat conftest.err >&5
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); } &&
12941 { ac_try='test -z "$ac_c_werror_flag"
12942 || test ! -s conftest.err'
12943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12944 (eval $ac_try) 2>&5
12945 ac_status=$?
12946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947 (exit $ac_status); }; } &&
12948 { ac_try='test -s conftest$ac_exeext'
12949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12950 (eval $ac_try) 2>&5
12951 ac_status=$?
12952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953 (exit $ac_status); }; }; then
12954 eval "$as_ac_var=yes"
12955 else
12956 echo "$as_me: failed program was:" >&5
12957 sed 's/^/| /' conftest.$ac_ext >&5
12959 eval "$as_ac_var=no"
12961 rm -f conftest.err conftest.$ac_objext \
12962 conftest$ac_exeext conftest.$ac_ext
12964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12965 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12966 if test `eval echo '${'$as_ac_var'}'` = yes; then
12967 cat >>confdefs.h <<_ACEOF
12968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12969 _ACEOF
12970 memcpy_found=yes
12972 done
12974 if test "$memcpy_found" = no; then
12975 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
12976 echo "$as_me: error: memcpy is required" >&2;}
12977 { (exit 1); exit 1; }; }
12979 # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
12980 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12981 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12982 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12983 echo $ECHO_N "(cached) $ECHO_C" >&6
12984 else
12985 ac_check_lib_save_LIBS=$LIBS
12986 LIBS="-ldl $LIBS"
12987 if test x$gcc_no_link = xyes; then
12988 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12989 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12990 { (exit 1); exit 1; }; }
12992 cat >conftest.$ac_ext <<_ACEOF
12993 /* confdefs.h. */
12994 _ACEOF
12995 cat confdefs.h >>conftest.$ac_ext
12996 cat >>conftest.$ac_ext <<_ACEOF
12997 /* end confdefs.h. */
12999 /* Override any gcc2 internal prototype to avoid an error. */
13000 #ifdef __cplusplus
13001 extern "C"
13002 #endif
13003 /* We use char because int might match the return type of a gcc2
13004 builtin and then its argument prototype would still apply. */
13005 char dlopen ();
13007 main ()
13009 dlopen ();
13011 return 0;
13013 _ACEOF
13014 rm -f conftest.$ac_objext conftest$ac_exeext
13015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13016 (eval $ac_link) 2>conftest.er1
13017 ac_status=$?
13018 grep -v '^ *+' conftest.er1 >conftest.err
13019 rm -f conftest.er1
13020 cat conftest.err >&5
13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022 (exit $ac_status); } &&
13023 { ac_try='test -z "$ac_c_werror_flag"
13024 || test ! -s conftest.err'
13025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13026 (eval $ac_try) 2>&5
13027 ac_status=$?
13028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); }; } &&
13030 { ac_try='test -s conftest$ac_exeext'
13031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13032 (eval $ac_try) 2>&5
13033 ac_status=$?
13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); }; }; then
13036 ac_cv_lib_dl_dlopen=yes
13037 else
13038 echo "$as_me: failed program was:" >&5
13039 sed 's/^/| /' conftest.$ac_ext >&5
13041 ac_cv_lib_dl_dlopen=no
13043 rm -f conftest.err conftest.$ac_objext \
13044 conftest$ac_exeext conftest.$ac_ext
13045 LIBS=$ac_check_lib_save_LIBS
13047 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13048 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13049 if test $ac_cv_lib_dl_dlopen = yes; then
13052 cat >>confdefs.h <<\_ACEOF
13053 #define HAVE_DLOPEN 1
13054 _ACEOF
13056 else
13058 echo "$as_me:$LINENO: checking for dlopen in -ldld" >&5
13059 echo $ECHO_N "checking for dlopen in -ldld... $ECHO_C" >&6
13060 if test "${ac_cv_lib_dld_dlopen+set}" = set; then
13061 echo $ECHO_N "(cached) $ECHO_C" >&6
13062 else
13063 ac_check_lib_save_LIBS=$LIBS
13064 LIBS="-ldld $LIBS"
13065 if test x$gcc_no_link = xyes; then
13066 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13067 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13068 { (exit 1); exit 1; }; }
13070 cat >conftest.$ac_ext <<_ACEOF
13071 /* confdefs.h. */
13072 _ACEOF
13073 cat confdefs.h >>conftest.$ac_ext
13074 cat >>conftest.$ac_ext <<_ACEOF
13075 /* end confdefs.h. */
13077 /* Override any gcc2 internal prototype to avoid an error. */
13078 #ifdef __cplusplus
13079 extern "C"
13080 #endif
13081 /* We use char because int might match the return type of a gcc2
13082 builtin and then its argument prototype would still apply. */
13083 char dlopen ();
13085 main ()
13087 dlopen ();
13089 return 0;
13091 _ACEOF
13092 rm -f conftest.$ac_objext conftest$ac_exeext
13093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13094 (eval $ac_link) 2>conftest.er1
13095 ac_status=$?
13096 grep -v '^ *+' conftest.er1 >conftest.err
13097 rm -f conftest.er1
13098 cat conftest.err >&5
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); } &&
13101 { ac_try='test -z "$ac_c_werror_flag"
13102 || test ! -s conftest.err'
13103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13104 (eval $ac_try) 2>&5
13105 ac_status=$?
13106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107 (exit $ac_status); }; } &&
13108 { ac_try='test -s conftest$ac_exeext'
13109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13110 (eval $ac_try) 2>&5
13111 ac_status=$?
13112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113 (exit $ac_status); }; }; then
13114 ac_cv_lib_dld_dlopen=yes
13115 else
13116 echo "$as_me: failed program was:" >&5
13117 sed 's/^/| /' conftest.$ac_ext >&5
13119 ac_cv_lib_dld_dlopen=no
13121 rm -f conftest.err conftest.$ac_objext \
13122 conftest$ac_exeext conftest.$ac_ext
13123 LIBS=$ac_check_lib_save_LIBS
13125 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dlopen" >&5
13126 echo "${ECHO_T}$ac_cv_lib_dld_dlopen" >&6
13127 if test $ac_cv_lib_dld_dlopen = yes; then
13130 cat >>confdefs.h <<\_ACEOF
13131 #define HAVE_DLOPEN 1
13132 _ACEOF
13139 # Some library-finding code we stole from Tcl.
13140 #--------------------------------------------------------------------
13141 # Check for the existence of the -lsocket and -lnsl libraries.
13142 # The order here is important, so that they end up in the right
13143 # order in the command line generated by make. Here are some
13144 # special considerations:
13145 # 1. Use "connect" and "accept" to check for -lsocket, and
13146 # "gethostbyname" to check for -lnsl.
13147 # 2. Use each function name only once: can't redo a check because
13148 # autoconf caches the results of the last check and won't redo it.
13149 # 3. Use -lnsl and -lsocket only if they supply procedures that
13150 # aren't already present in the normal libraries. This is because
13151 # IRIX 5.2 has libraries, but they aren't needed and they're
13152 # bogus: they goof up name resolution if used.
13153 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
13154 # To get around this problem, check for both libraries together
13155 # if -lsocket doesn't work by itself.
13156 #--------------------------------------------------------------------
13158 echo "$as_me:$LINENO: checking for socket libraries" >&5
13159 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
13160 if test "${gcj_cv_lib_sockets+set}" = set; then
13161 echo $ECHO_N "(cached) $ECHO_C" >&6
13162 else
13163 gcj_cv_lib_sockets=
13164 gcj_checkBoth=0
13165 unset ac_cv_func_connect
13166 echo "$as_me:$LINENO: checking for connect" >&5
13167 echo $ECHO_N "checking for connect... $ECHO_C" >&6
13168 if test "${ac_cv_func_connect+set}" = set; then
13169 echo $ECHO_N "(cached) $ECHO_C" >&6
13170 else
13171 if test x$gcc_no_link = xyes; then
13172 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13173 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13174 { (exit 1); exit 1; }; }
13176 cat >conftest.$ac_ext <<_ACEOF
13177 /* confdefs.h. */
13178 _ACEOF
13179 cat confdefs.h >>conftest.$ac_ext
13180 cat >>conftest.$ac_ext <<_ACEOF
13181 /* end confdefs.h. */
13182 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
13183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13184 #define connect innocuous_connect
13186 /* System header to define __stub macros and hopefully few prototypes,
13187 which can conflict with char connect (); below.
13188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13189 <limits.h> exists even on freestanding compilers. */
13191 #ifdef __STDC__
13192 # include <limits.h>
13193 #else
13194 # include <assert.h>
13195 #endif
13197 #undef connect
13199 /* Override any gcc2 internal prototype to avoid an error. */
13200 #ifdef __cplusplus
13201 extern "C"
13203 #endif
13204 /* We use char because int might match the return type of a gcc2
13205 builtin and then its argument prototype would still apply. */
13206 char connect ();
13207 /* The GNU C library defines this for functions which it implements
13208 to always fail with ENOSYS. Some functions are actually named
13209 something starting with __ and the normal name is an alias. */
13210 #if defined (__stub_connect) || defined (__stub___connect)
13211 choke me
13212 #else
13213 char (*f) () = connect;
13214 #endif
13215 #ifdef __cplusplus
13217 #endif
13220 main ()
13222 return f != connect;
13224 return 0;
13226 _ACEOF
13227 rm -f conftest.$ac_objext conftest$ac_exeext
13228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13229 (eval $ac_link) 2>conftest.er1
13230 ac_status=$?
13231 grep -v '^ *+' conftest.er1 >conftest.err
13232 rm -f conftest.er1
13233 cat conftest.err >&5
13234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); } &&
13236 { ac_try='test -z "$ac_c_werror_flag"
13237 || test ! -s conftest.err'
13238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13239 (eval $ac_try) 2>&5
13240 ac_status=$?
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); }; } &&
13243 { ac_try='test -s conftest$ac_exeext'
13244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13245 (eval $ac_try) 2>&5
13246 ac_status=$?
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); }; }; then
13249 ac_cv_func_connect=yes
13250 else
13251 echo "$as_me: failed program was:" >&5
13252 sed 's/^/| /' conftest.$ac_ext >&5
13254 ac_cv_func_connect=no
13256 rm -f conftest.err conftest.$ac_objext \
13257 conftest$ac_exeext conftest.$ac_ext
13259 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
13260 echo "${ECHO_T}$ac_cv_func_connect" >&6
13261 if test $ac_cv_func_connect = yes; then
13262 gcj_checkSocket=0
13263 else
13264 gcj_checkSocket=1
13267 if test "$gcj_checkSocket" = 1; then
13268 unset ac_cv_func_connect
13269 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
13270 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
13271 if test "${ac_cv_lib_socket_main+set}" = set; then
13272 echo $ECHO_N "(cached) $ECHO_C" >&6
13273 else
13274 ac_check_lib_save_LIBS=$LIBS
13275 LIBS="-lsocket $LIBS"
13276 if test x$gcc_no_link = xyes; then
13277 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13278 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13279 { (exit 1); exit 1; }; }
13281 cat >conftest.$ac_ext <<_ACEOF
13282 /* confdefs.h. */
13283 _ACEOF
13284 cat confdefs.h >>conftest.$ac_ext
13285 cat >>conftest.$ac_ext <<_ACEOF
13286 /* end confdefs.h. */
13290 main ()
13292 main ();
13294 return 0;
13296 _ACEOF
13297 rm -f conftest.$ac_objext conftest$ac_exeext
13298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13299 (eval $ac_link) 2>conftest.er1
13300 ac_status=$?
13301 grep -v '^ *+' conftest.er1 >conftest.err
13302 rm -f conftest.er1
13303 cat conftest.err >&5
13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); } &&
13306 { ac_try='test -z "$ac_c_werror_flag"
13307 || test ! -s conftest.err'
13308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13309 (eval $ac_try) 2>&5
13310 ac_status=$?
13311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); }; } &&
13313 { ac_try='test -s conftest$ac_exeext'
13314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13315 (eval $ac_try) 2>&5
13316 ac_status=$?
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); }; }; then
13319 ac_cv_lib_socket_main=yes
13320 else
13321 echo "$as_me: failed program was:" >&5
13322 sed 's/^/| /' conftest.$ac_ext >&5
13324 ac_cv_lib_socket_main=no
13326 rm -f conftest.err conftest.$ac_objext \
13327 conftest$ac_exeext conftest.$ac_ext
13328 LIBS=$ac_check_lib_save_LIBS
13330 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
13331 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
13332 if test $ac_cv_lib_socket_main = yes; then
13333 gcj_cv_lib_sockets="-lsocket"
13334 else
13335 gcj_checkBoth=1
13339 if test "$gcj_checkBoth" = 1; then
13340 gcj_oldLibs=$LIBS
13341 LIBS="$LIBS -lsocket -lnsl"
13342 unset ac_cv_func_accept
13343 echo "$as_me:$LINENO: checking for accept" >&5
13344 echo $ECHO_N "checking for accept... $ECHO_C" >&6
13345 if test "${ac_cv_func_accept+set}" = set; then
13346 echo $ECHO_N "(cached) $ECHO_C" >&6
13347 else
13348 if test x$gcc_no_link = xyes; then
13349 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13350 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13351 { (exit 1); exit 1; }; }
13353 cat >conftest.$ac_ext <<_ACEOF
13354 /* confdefs.h. */
13355 _ACEOF
13356 cat confdefs.h >>conftest.$ac_ext
13357 cat >>conftest.$ac_ext <<_ACEOF
13358 /* end confdefs.h. */
13359 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
13360 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13361 #define accept innocuous_accept
13363 /* System header to define __stub macros and hopefully few prototypes,
13364 which can conflict with char accept (); below.
13365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13366 <limits.h> exists even on freestanding compilers. */
13368 #ifdef __STDC__
13369 # include <limits.h>
13370 #else
13371 # include <assert.h>
13372 #endif
13374 #undef accept
13376 /* Override any gcc2 internal prototype to avoid an error. */
13377 #ifdef __cplusplus
13378 extern "C"
13380 #endif
13381 /* We use char because int might match the return type of a gcc2
13382 builtin and then its argument prototype would still apply. */
13383 char accept ();
13384 /* The GNU C library defines this for functions which it implements
13385 to always fail with ENOSYS. Some functions are actually named
13386 something starting with __ and the normal name is an alias. */
13387 #if defined (__stub_accept) || defined (__stub___accept)
13388 choke me
13389 #else
13390 char (*f) () = accept;
13391 #endif
13392 #ifdef __cplusplus
13394 #endif
13397 main ()
13399 return f != accept;
13401 return 0;
13403 _ACEOF
13404 rm -f conftest.$ac_objext conftest$ac_exeext
13405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13406 (eval $ac_link) 2>conftest.er1
13407 ac_status=$?
13408 grep -v '^ *+' conftest.er1 >conftest.err
13409 rm -f conftest.er1
13410 cat conftest.err >&5
13411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412 (exit $ac_status); } &&
13413 { ac_try='test -z "$ac_c_werror_flag"
13414 || test ! -s conftest.err'
13415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13416 (eval $ac_try) 2>&5
13417 ac_status=$?
13418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); }; } &&
13420 { ac_try='test -s conftest$ac_exeext'
13421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13422 (eval $ac_try) 2>&5
13423 ac_status=$?
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); }; }; then
13426 ac_cv_func_accept=yes
13427 else
13428 echo "$as_me: failed program was:" >&5
13429 sed 's/^/| /' conftest.$ac_ext >&5
13431 ac_cv_func_accept=no
13433 rm -f conftest.err conftest.$ac_objext \
13434 conftest$ac_exeext conftest.$ac_ext
13436 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
13437 echo "${ECHO_T}$ac_cv_func_accept" >&6
13438 if test $ac_cv_func_accept = yes; then
13439 gcj_checkNsl=0
13440 gcj_cv_lib_sockets="-lsocket -lnsl"
13443 unset ac_cv_func_accept
13444 LIBS=$gcj_oldLibs
13446 unset ac_cv_func_gethostbyname
13447 gcj_oldLibs=$LIBS
13448 LIBS="$LIBS $gcj_cv_lib_sockets"
13449 echo "$as_me:$LINENO: checking for gethostbyname" >&5
13450 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
13451 if test "${ac_cv_func_gethostbyname+set}" = set; then
13452 echo $ECHO_N "(cached) $ECHO_C" >&6
13453 else
13454 if test x$gcc_no_link = xyes; then
13455 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13456 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13457 { (exit 1); exit 1; }; }
13459 cat >conftest.$ac_ext <<_ACEOF
13460 /* confdefs.h. */
13461 _ACEOF
13462 cat confdefs.h >>conftest.$ac_ext
13463 cat >>conftest.$ac_ext <<_ACEOF
13464 /* end confdefs.h. */
13465 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
13466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13467 #define gethostbyname innocuous_gethostbyname
13469 /* System header to define __stub macros and hopefully few prototypes,
13470 which can conflict with char gethostbyname (); below.
13471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13472 <limits.h> exists even on freestanding compilers. */
13474 #ifdef __STDC__
13475 # include <limits.h>
13476 #else
13477 # include <assert.h>
13478 #endif
13480 #undef gethostbyname
13482 /* Override any gcc2 internal prototype to avoid an error. */
13483 #ifdef __cplusplus
13484 extern "C"
13486 #endif
13487 /* We use char because int might match the return type of a gcc2
13488 builtin and then its argument prototype would still apply. */
13489 char gethostbyname ();
13490 /* The GNU C library defines this for functions which it implements
13491 to always fail with ENOSYS. Some functions are actually named
13492 something starting with __ and the normal name is an alias. */
13493 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13494 choke me
13495 #else
13496 char (*f) () = gethostbyname;
13497 #endif
13498 #ifdef __cplusplus
13500 #endif
13503 main ()
13505 return f != gethostbyname;
13507 return 0;
13509 _ACEOF
13510 rm -f conftest.$ac_objext conftest$ac_exeext
13511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13512 (eval $ac_link) 2>conftest.er1
13513 ac_status=$?
13514 grep -v '^ *+' conftest.er1 >conftest.err
13515 rm -f conftest.er1
13516 cat conftest.err >&5
13517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518 (exit $ac_status); } &&
13519 { ac_try='test -z "$ac_c_werror_flag"
13520 || test ! -s conftest.err'
13521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13522 (eval $ac_try) 2>&5
13523 ac_status=$?
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); }; } &&
13526 { ac_try='test -s conftest$ac_exeext'
13527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13528 (eval $ac_try) 2>&5
13529 ac_status=$?
13530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531 (exit $ac_status); }; }; then
13532 ac_cv_func_gethostbyname=yes
13533 else
13534 echo "$as_me: failed program was:" >&5
13535 sed 's/^/| /' conftest.$ac_ext >&5
13537 ac_cv_func_gethostbyname=no
13539 rm -f conftest.err conftest.$ac_objext \
13540 conftest$ac_exeext conftest.$ac_ext
13542 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
13543 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
13544 if test $ac_cv_func_gethostbyname = yes; then
13546 else
13547 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
13548 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
13549 if test "${ac_cv_lib_nsl_main+set}" = set; then
13550 echo $ECHO_N "(cached) $ECHO_C" >&6
13551 else
13552 ac_check_lib_save_LIBS=$LIBS
13553 LIBS="-lnsl $LIBS"
13554 if test x$gcc_no_link = xyes; then
13555 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13556 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13557 { (exit 1); exit 1; }; }
13559 cat >conftest.$ac_ext <<_ACEOF
13560 /* confdefs.h. */
13561 _ACEOF
13562 cat confdefs.h >>conftest.$ac_ext
13563 cat >>conftest.$ac_ext <<_ACEOF
13564 /* end confdefs.h. */
13568 main ()
13570 main ();
13572 return 0;
13574 _ACEOF
13575 rm -f conftest.$ac_objext conftest$ac_exeext
13576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13577 (eval $ac_link) 2>conftest.er1
13578 ac_status=$?
13579 grep -v '^ *+' conftest.er1 >conftest.err
13580 rm -f conftest.er1
13581 cat conftest.err >&5
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); } &&
13584 { ac_try='test -z "$ac_c_werror_flag"
13585 || test ! -s conftest.err'
13586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13587 (eval $ac_try) 2>&5
13588 ac_status=$?
13589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590 (exit $ac_status); }; } &&
13591 { ac_try='test -s conftest$ac_exeext'
13592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13593 (eval $ac_try) 2>&5
13594 ac_status=$?
13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); }; }; then
13597 ac_cv_lib_nsl_main=yes
13598 else
13599 echo "$as_me: failed program was:" >&5
13600 sed 's/^/| /' conftest.$ac_ext >&5
13602 ac_cv_lib_nsl_main=no
13604 rm -f conftest.err conftest.$ac_objext \
13605 conftest$ac_exeext conftest.$ac_ext
13606 LIBS=$ac_check_lib_save_LIBS
13608 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
13609 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
13610 if test $ac_cv_lib_nsl_main = yes; then
13611 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
13616 unset ac_cv_func_gethostbyname
13617 LIBS=$gcj_oldLIBS
13620 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
13621 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
13622 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
13624 if test "$with_system_zlib" = yes; then
13625 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
13626 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
13627 if test "${ac_cv_lib_z_deflate+set}" = set; then
13628 echo $ECHO_N "(cached) $ECHO_C" >&6
13629 else
13630 ac_check_lib_save_LIBS=$LIBS
13631 LIBS="-lz $LIBS"
13632 if test x$gcc_no_link = xyes; then
13633 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13634 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13635 { (exit 1); exit 1; }; }
13637 cat >conftest.$ac_ext <<_ACEOF
13638 /* confdefs.h. */
13639 _ACEOF
13640 cat confdefs.h >>conftest.$ac_ext
13641 cat >>conftest.$ac_ext <<_ACEOF
13642 /* end confdefs.h. */
13644 /* Override any gcc2 internal prototype to avoid an error. */
13645 #ifdef __cplusplus
13646 extern "C"
13647 #endif
13648 /* We use char because int might match the return type of a gcc2
13649 builtin and then its argument prototype would still apply. */
13650 char deflate ();
13652 main ()
13654 deflate ();
13656 return 0;
13658 _ACEOF
13659 rm -f conftest.$ac_objext conftest$ac_exeext
13660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13661 (eval $ac_link) 2>conftest.er1
13662 ac_status=$?
13663 grep -v '^ *+' conftest.er1 >conftest.err
13664 rm -f conftest.er1
13665 cat conftest.err >&5
13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667 (exit $ac_status); } &&
13668 { ac_try='test -z "$ac_c_werror_flag"
13669 || test ! -s conftest.err'
13670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13671 (eval $ac_try) 2>&5
13672 ac_status=$?
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); }; } &&
13675 { ac_try='test -s conftest$ac_exeext'
13676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13677 (eval $ac_try) 2>&5
13678 ac_status=$?
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); }; }; then
13681 ac_cv_lib_z_deflate=yes
13682 else
13683 echo "$as_me: failed program was:" >&5
13684 sed 's/^/| /' conftest.$ac_ext >&5
13686 ac_cv_lib_z_deflate=no
13688 rm -f conftest.err conftest.$ac_objext \
13689 conftest$ac_exeext conftest.$ac_ext
13690 LIBS=$ac_check_lib_save_LIBS
13692 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
13693 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
13694 if test $ac_cv_lib_z_deflate = yes; then
13695 ZLIBSPEC=-lz
13696 else
13697 ZLIBSPEC=
13702 # Test for Gtk stuff, if asked for.
13703 if test "$use_gtk_awt" = yes; then
13705 succeeded=no
13707 if test -z "$PKG_CONFIG"; then
13708 # Extract the first word of "pkg-config", so it can be a program name with args.
13709 set dummy pkg-config; ac_word=$2
13710 echo "$as_me:$LINENO: checking for $ac_word" >&5
13711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13712 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13713 echo $ECHO_N "(cached) $ECHO_C" >&6
13714 else
13715 case $PKG_CONFIG in
13716 [\\/]* | ?:[\\/]*)
13717 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13721 for as_dir in $PATH
13723 IFS=$as_save_IFS
13724 test -z "$as_dir" && as_dir=.
13725 for ac_exec_ext in '' $ac_executable_extensions; do
13726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13727 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13729 break 2
13731 done
13732 done
13734 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13736 esac
13738 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13740 if test -n "$PKG_CONFIG"; then
13741 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13742 echo "${ECHO_T}$PKG_CONFIG" >&6
13743 else
13744 echo "$as_me:$LINENO: result: no" >&5
13745 echo "${ECHO_T}no" >&6
13750 if test "$PKG_CONFIG" = "no" ; then
13751 echo "*** The pkg-config script could not be found. Make sure it is"
13752 echo "*** in your path, or set the PKG_CONFIG environment variable"
13753 echo "*** to the full path to pkg-config."
13754 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13755 else
13756 PKG_CONFIG_MIN_VERSION=0.9.0
13757 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13758 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
13759 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
13761 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
13762 echo "$as_me:$LINENO: result: yes" >&5
13763 echo "${ECHO_T}yes" >&6
13764 succeeded=yes
13766 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
13767 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
13768 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
13769 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
13770 echo "${ECHO_T}$GTK_CFLAGS" >&6
13772 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
13773 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
13774 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
13775 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
13776 echo "${ECHO_T}$GTK_LIBS" >&6
13777 else
13778 GTK_CFLAGS=""
13779 GTK_LIBS=""
13780 ## If we have a custom action on failure, don't print errors, but
13781 ## do set a variable so people can do so.
13782 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
13783 echo $GTK_PKG_ERRORS
13788 else
13789 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13790 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13794 if test $succeeded = yes; then
13796 else
13797 { { 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
13798 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;}
13799 { (exit 1); exit 1; }; }
13806 succeeded=no
13808 if test -z "$PKG_CONFIG"; then
13809 # Extract the first word of "pkg-config", so it can be a program name with args.
13810 set dummy pkg-config; ac_word=$2
13811 echo "$as_me:$LINENO: checking for $ac_word" >&5
13812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13813 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13814 echo $ECHO_N "(cached) $ECHO_C" >&6
13815 else
13816 case $PKG_CONFIG in
13817 [\\/]* | ?:[\\/]*)
13818 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13822 for as_dir in $PATH
13824 IFS=$as_save_IFS
13825 test -z "$as_dir" && as_dir=.
13826 for ac_exec_ext in '' $ac_executable_extensions; do
13827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13828 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13830 break 2
13832 done
13833 done
13835 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13837 esac
13839 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13841 if test -n "$PKG_CONFIG"; then
13842 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13843 echo "${ECHO_T}$PKG_CONFIG" >&6
13844 else
13845 echo "$as_me:$LINENO: result: no" >&5
13846 echo "${ECHO_T}no" >&6
13851 if test "$PKG_CONFIG" = "no" ; then
13852 echo "*** The pkg-config script could not be found. Make sure it is"
13853 echo "*** in your path, or set the PKG_CONFIG environment variable"
13854 echo "*** to the full path to pkg-config."
13855 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13856 else
13857 PKG_CONFIG_MIN_VERSION=0.9.0
13858 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13859 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
13860 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
13862 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
13863 echo "$as_me:$LINENO: result: yes" >&5
13864 echo "${ECHO_T}yes" >&6
13865 succeeded=yes
13867 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
13868 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
13869 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13870 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
13871 echo "${ECHO_T}$GLIB_CFLAGS" >&6
13873 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
13874 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
13875 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13876 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
13877 echo "${ECHO_T}$GLIB_LIBS" >&6
13878 else
13879 GLIB_CFLAGS=""
13880 GLIB_LIBS=""
13881 ## If we have a custom action on failure, don't print errors, but
13882 ## do set a variable so people can do so.
13883 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13884 echo $GLIB_PKG_ERRORS
13889 else
13890 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13891 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13895 if test $succeeded = yes; then
13897 else
13898 { { 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
13899 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;}
13900 { (exit 1); exit 1; }; }
13907 succeeded=no
13909 if test -z "$PKG_CONFIG"; then
13910 # Extract the first word of "pkg-config", so it can be a program name with args.
13911 set dummy pkg-config; ac_word=$2
13912 echo "$as_me:$LINENO: checking for $ac_word" >&5
13913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13914 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13915 echo $ECHO_N "(cached) $ECHO_C" >&6
13916 else
13917 case $PKG_CONFIG in
13918 [\\/]* | ?:[\\/]*)
13919 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13923 for as_dir in $PATH
13925 IFS=$as_save_IFS
13926 test -z "$as_dir" && as_dir=.
13927 for ac_exec_ext in '' $ac_executable_extensions; do
13928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13929 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13931 break 2
13933 done
13934 done
13936 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13938 esac
13940 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13942 if test -n "$PKG_CONFIG"; then
13943 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13944 echo "${ECHO_T}$PKG_CONFIG" >&6
13945 else
13946 echo "$as_me:$LINENO: result: no" >&5
13947 echo "${ECHO_T}no" >&6
13952 if test "$PKG_CONFIG" = "no" ; then
13953 echo "*** The pkg-config script could not be found. Make sure it is"
13954 echo "*** in your path, or set the PKG_CONFIG environment variable"
13955 echo "*** to the full path to pkg-config."
13956 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13957 else
13958 PKG_CONFIG_MIN_VERSION=0.9.0
13959 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13960 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
13961 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
13963 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
13964 echo "$as_me:$LINENO: result: yes" >&5
13965 echo "${ECHO_T}yes" >&6
13966 succeeded=yes
13968 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
13969 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
13970 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
13971 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
13972 echo "${ECHO_T}$LIBART_CFLAGS" >&6
13974 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
13975 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
13976 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
13977 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
13978 echo "${ECHO_T}$LIBART_LIBS" >&6
13979 else
13980 LIBART_CFLAGS=""
13981 LIBART_LIBS=""
13982 ## If we have a custom action on failure, don't print errors, but
13983 ## do set a variable so people can do so.
13984 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
13985 echo $LIBART_PKG_ERRORS
13990 else
13991 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13992 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13996 if test $succeeded = yes; then
13998 else
13999 { { 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
14000 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;}
14001 { (exit 1); exit 1; }; }
14007 # We require the XTest Extension to support java.awt.Robot.
14008 echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
14009 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
14010 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
14011 echo $ECHO_N "(cached) $ECHO_C" >&6
14012 else
14013 ac_check_lib_save_LIBS=$LIBS
14014 LIBS="-lXtst ${X_LIBS} $LIBS"
14015 if test x$gcc_no_link = xyes; then
14016 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14017 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14018 { (exit 1); exit 1; }; }
14020 cat >conftest.$ac_ext <<_ACEOF
14021 /* confdefs.h. */
14022 _ACEOF
14023 cat confdefs.h >>conftest.$ac_ext
14024 cat >>conftest.$ac_ext <<_ACEOF
14025 /* end confdefs.h. */
14027 /* Override any gcc2 internal prototype to avoid an error. */
14028 #ifdef __cplusplus
14029 extern "C"
14030 #endif
14031 /* We use char because int might match the return type of a gcc2
14032 builtin and then its argument prototype would still apply. */
14033 char XTestQueryExtension ();
14035 main ()
14037 XTestQueryExtension ();
14039 return 0;
14041 _ACEOF
14042 rm -f conftest.$ac_objext conftest$ac_exeext
14043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14044 (eval $ac_link) 2>conftest.er1
14045 ac_status=$?
14046 grep -v '^ *+' conftest.er1 >conftest.err
14047 rm -f conftest.er1
14048 cat conftest.err >&5
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); } &&
14051 { ac_try='test -z "$ac_c_werror_flag"
14052 || test ! -s conftest.err'
14053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14054 (eval $ac_try) 2>&5
14055 ac_status=$?
14056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057 (exit $ac_status); }; } &&
14058 { ac_try='test -s conftest$ac_exeext'
14059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14060 (eval $ac_try) 2>&5
14061 ac_status=$?
14062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063 (exit $ac_status); }; }; then
14064 ac_cv_lib_Xtst_XTestQueryExtension=yes
14065 else
14066 echo "$as_me: failed program was:" >&5
14067 sed 's/^/| /' conftest.$ac_ext >&5
14069 ac_cv_lib_Xtst_XTestQueryExtension=no
14071 rm -f conftest.err conftest.$ac_objext \
14072 conftest$ac_exeext conftest.$ac_ext
14073 LIBS=$ac_check_lib_save_LIBS
14075 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
14076 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
14077 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
14078 true
14079 else
14080 { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
14081 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
14082 { (exit 1); exit 1; }; }
14087 # On Solaris, and maybe other architectures, the Boehm collector
14088 # requires -ldl.
14089 if test "$GC" = boehm; then
14090 echo "$as_me:$LINENO: checking for main in -ldl" >&5
14091 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
14092 if test "${ac_cv_lib_dl_main+set}" = set; then
14093 echo $ECHO_N "(cached) $ECHO_C" >&6
14094 else
14095 ac_check_lib_save_LIBS=$LIBS
14096 LIBS="-ldl $LIBS"
14097 if test x$gcc_no_link = xyes; then
14098 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14099 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14100 { (exit 1); exit 1; }; }
14102 cat >conftest.$ac_ext <<_ACEOF
14103 /* confdefs.h. */
14104 _ACEOF
14105 cat confdefs.h >>conftest.$ac_ext
14106 cat >>conftest.$ac_ext <<_ACEOF
14107 /* end confdefs.h. */
14111 main ()
14113 main ();
14115 return 0;
14117 _ACEOF
14118 rm -f conftest.$ac_objext conftest$ac_exeext
14119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14120 (eval $ac_link) 2>conftest.er1
14121 ac_status=$?
14122 grep -v '^ *+' conftest.er1 >conftest.err
14123 rm -f conftest.er1
14124 cat conftest.err >&5
14125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14126 (exit $ac_status); } &&
14127 { ac_try='test -z "$ac_c_werror_flag"
14128 || test ! -s conftest.err'
14129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14130 (eval $ac_try) 2>&5
14131 ac_status=$?
14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); }; } &&
14134 { ac_try='test -s conftest$ac_exeext'
14135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14136 (eval $ac_try) 2>&5
14137 ac_status=$?
14138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139 (exit $ac_status); }; }; then
14140 ac_cv_lib_dl_main=yes
14141 else
14142 echo "$as_me: failed program was:" >&5
14143 sed 's/^/| /' conftest.$ac_ext >&5
14145 ac_cv_lib_dl_main=no
14147 rm -f conftest.err conftest.$ac_objext \
14148 conftest$ac_exeext conftest.$ac_ext
14149 LIBS=$ac_check_lib_save_LIBS
14151 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
14152 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
14153 if test $ac_cv_lib_dl_main = yes; then
14154 SYSTEMSPEC="$SYSTEMSPEC -ldl"
14160 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
14161 case $build in
14162 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
14163 *) CLASSPATH_SEPARATOR=':' ;;
14164 esac
14167 # We must search the source tree for java.lang, since we still don't
14168 # have libgcj.jar nor java/lang/*.class
14169 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
14170 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
14172 # Since some classes depend on this one, we need its source available
14173 # before we can do any GCJ compilation test :-(
14174 if test ! -f gnu/classpath/Configuration.java; then
14175 test -d gnu || mkdir gnu
14176 test -d gnu/classpath || mkdir gnu/classpath
14177 # Note that it is not crucial that all the values here be correct.
14178 sed -e "s,@prefix@,$prefix," \
14179 -e "s,@VERSION@,$VERSION," \
14180 -e "s,@LIBDEBUG@,false," \
14181 -e "s,@INIT_LOAD_LIBRARY@,false," \
14182 -e "s,@@,$LIBGCJDEBUG," \
14183 -e "s,@default_toolkit@,$TOOLKIT," \
14184 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
14185 -e "s,@GTK_CAIRO_ENABLED@,false," \
14186 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
14187 > gnu/classpath/Configuration.java
14188 # We do not want to redirect the output of the grep below to /dev/null,
14189 # but we add /dev/null to the input list so that grep will print the
14190 # filename of Configuration.java in case it finds any matches.
14191 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
14192 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
14193 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
14194 { (exit 1); exit 1; }; }
14198 if test -n "$ac_tool_prefix"; then
14199 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
14200 set dummy ${ac_tool_prefix}gcj; ac_word=$2
14201 echo "$as_me:$LINENO: checking for $ac_word" >&5
14202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14203 if test "${ac_cv_prog_GCJ+set}" = set; then
14204 echo $ECHO_N "(cached) $ECHO_C" >&6
14205 else
14206 if test -n "$GCJ"; then
14207 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
14208 else
14209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14210 for as_dir in $PATH
14212 IFS=$as_save_IFS
14213 test -z "$as_dir" && as_dir=.
14214 for ac_exec_ext in '' $ac_executable_extensions; do
14215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14216 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
14217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14218 break 2
14220 done
14221 done
14225 GCJ=$ac_cv_prog_GCJ
14226 if test -n "$GCJ"; then
14227 echo "$as_me:$LINENO: result: $GCJ" >&5
14228 echo "${ECHO_T}$GCJ" >&6
14229 else
14230 echo "$as_me:$LINENO: result: no" >&5
14231 echo "${ECHO_T}no" >&6
14235 if test -z "$ac_cv_prog_GCJ"; then
14236 ac_ct_GCJ=$GCJ
14237 # Extract the first word of "gcj", so it can be a program name with args.
14238 set dummy gcj; ac_word=$2
14239 echo "$as_me:$LINENO: checking for $ac_word" >&5
14240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14241 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
14242 echo $ECHO_N "(cached) $ECHO_C" >&6
14243 else
14244 if test -n "$ac_ct_GCJ"; then
14245 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
14246 else
14247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14248 for as_dir in $PATH
14250 IFS=$as_save_IFS
14251 test -z "$as_dir" && as_dir=.
14252 for ac_exec_ext in '' $ac_executable_extensions; do
14253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14254 ac_cv_prog_ac_ct_GCJ="gcj"
14255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14256 break 2
14258 done
14259 done
14261 test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
14264 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
14265 if test -n "$ac_ct_GCJ"; then
14266 echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
14267 echo "${ECHO_T}$ac_ct_GCJ" >&6
14268 else
14269 echo "$as_me:$LINENO: result: no" >&5
14270 echo "${ECHO_T}no" >&6
14273 GCJ=$ac_ct_GCJ
14274 else
14275 GCJ="$ac_cv_prog_GCJ"
14278 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
14283 # Now remove it.
14284 rm -f gnu/classpath/Configuration.java
14286 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
14288 echo "$as_me:$LINENO: checking for void *" >&5
14289 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14290 if test "${ac_cv_type_void_p+set}" = set; then
14291 echo $ECHO_N "(cached) $ECHO_C" >&6
14292 else
14293 cat >conftest.$ac_ext <<_ACEOF
14294 /* confdefs.h. */
14295 _ACEOF
14296 cat confdefs.h >>conftest.$ac_ext
14297 cat >>conftest.$ac_ext <<_ACEOF
14298 /* end confdefs.h. */
14299 $ac_includes_default
14301 main ()
14303 if ((void * *) 0)
14304 return 0;
14305 if (sizeof (void *))
14306 return 0;
14308 return 0;
14310 _ACEOF
14311 rm -f conftest.$ac_objext
14312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14313 (eval $ac_compile) 2>conftest.er1
14314 ac_status=$?
14315 grep -v '^ *+' conftest.er1 >conftest.err
14316 rm -f conftest.er1
14317 cat conftest.err >&5
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); } &&
14320 { ac_try='test -z "$ac_c_werror_flag"
14321 || test ! -s conftest.err'
14322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14323 (eval $ac_try) 2>&5
14324 ac_status=$?
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); }; } &&
14327 { ac_try='test -s conftest.$ac_objext'
14328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14329 (eval $ac_try) 2>&5
14330 ac_status=$?
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); }; }; then
14333 ac_cv_type_void_p=yes
14334 else
14335 echo "$as_me: failed program was:" >&5
14336 sed 's/^/| /' conftest.$ac_ext >&5
14338 ac_cv_type_void_p=no
14340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14342 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14343 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14345 echo "$as_me:$LINENO: checking size of void *" >&5
14346 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14347 if test "${ac_cv_sizeof_void_p+set}" = set; then
14348 echo $ECHO_N "(cached) $ECHO_C" >&6
14349 else
14350 if test "$ac_cv_type_void_p" = yes; then
14351 # The cast to unsigned long works around a bug in the HP C Compiler
14352 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14353 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14354 # This bug is HP SR number 8606223364.
14355 if test "$cross_compiling" = yes; then
14356 # Depending upon the size, compute the lo and hi bounds.
14357 cat >conftest.$ac_ext <<_ACEOF
14358 /* confdefs.h. */
14359 _ACEOF
14360 cat confdefs.h >>conftest.$ac_ext
14361 cat >>conftest.$ac_ext <<_ACEOF
14362 /* end confdefs.h. */
14363 $ac_includes_default
14365 main ()
14367 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14368 test_array [0] = 0
14371 return 0;
14373 _ACEOF
14374 rm -f conftest.$ac_objext
14375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14376 (eval $ac_compile) 2>conftest.er1
14377 ac_status=$?
14378 grep -v '^ *+' conftest.er1 >conftest.err
14379 rm -f conftest.er1
14380 cat conftest.err >&5
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); } &&
14383 { ac_try='test -z "$ac_c_werror_flag"
14384 || test ! -s conftest.err'
14385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14386 (eval $ac_try) 2>&5
14387 ac_status=$?
14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389 (exit $ac_status); }; } &&
14390 { ac_try='test -s conftest.$ac_objext'
14391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14392 (eval $ac_try) 2>&5
14393 ac_status=$?
14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); }; }; then
14396 ac_lo=0 ac_mid=0
14397 while :; do
14398 cat >conftest.$ac_ext <<_ACEOF
14399 /* confdefs.h. */
14400 _ACEOF
14401 cat confdefs.h >>conftest.$ac_ext
14402 cat >>conftest.$ac_ext <<_ACEOF
14403 /* end confdefs.h. */
14404 $ac_includes_default
14406 main ()
14408 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14409 test_array [0] = 0
14412 return 0;
14414 _ACEOF
14415 rm -f conftest.$ac_objext
14416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14417 (eval $ac_compile) 2>conftest.er1
14418 ac_status=$?
14419 grep -v '^ *+' conftest.er1 >conftest.err
14420 rm -f conftest.er1
14421 cat conftest.err >&5
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); } &&
14424 { ac_try='test -z "$ac_c_werror_flag"
14425 || test ! -s conftest.err'
14426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14427 (eval $ac_try) 2>&5
14428 ac_status=$?
14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); }; } &&
14431 { ac_try='test -s conftest.$ac_objext'
14432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14433 (eval $ac_try) 2>&5
14434 ac_status=$?
14435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436 (exit $ac_status); }; }; then
14437 ac_hi=$ac_mid; break
14438 else
14439 echo "$as_me: failed program was:" >&5
14440 sed 's/^/| /' conftest.$ac_ext >&5
14442 ac_lo=`expr $ac_mid + 1`
14443 if test $ac_lo -le $ac_mid; then
14444 ac_lo= ac_hi=
14445 break
14447 ac_mid=`expr 2 '*' $ac_mid + 1`
14449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14450 done
14451 else
14452 echo "$as_me: failed program was:" >&5
14453 sed 's/^/| /' conftest.$ac_ext >&5
14455 cat >conftest.$ac_ext <<_ACEOF
14456 /* confdefs.h. */
14457 _ACEOF
14458 cat confdefs.h >>conftest.$ac_ext
14459 cat >>conftest.$ac_ext <<_ACEOF
14460 /* end confdefs.h. */
14461 $ac_includes_default
14463 main ()
14465 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14466 test_array [0] = 0
14469 return 0;
14471 _ACEOF
14472 rm -f conftest.$ac_objext
14473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14474 (eval $ac_compile) 2>conftest.er1
14475 ac_status=$?
14476 grep -v '^ *+' conftest.er1 >conftest.err
14477 rm -f conftest.er1
14478 cat conftest.err >&5
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); } &&
14481 { ac_try='test -z "$ac_c_werror_flag"
14482 || test ! -s conftest.err'
14483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14484 (eval $ac_try) 2>&5
14485 ac_status=$?
14486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487 (exit $ac_status); }; } &&
14488 { ac_try='test -s conftest.$ac_objext'
14489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14490 (eval $ac_try) 2>&5
14491 ac_status=$?
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); }; }; then
14494 ac_hi=-1 ac_mid=-1
14495 while :; do
14496 cat >conftest.$ac_ext <<_ACEOF
14497 /* confdefs.h. */
14498 _ACEOF
14499 cat confdefs.h >>conftest.$ac_ext
14500 cat >>conftest.$ac_ext <<_ACEOF
14501 /* end confdefs.h. */
14502 $ac_includes_default
14504 main ()
14506 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14507 test_array [0] = 0
14510 return 0;
14512 _ACEOF
14513 rm -f conftest.$ac_objext
14514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14515 (eval $ac_compile) 2>conftest.er1
14516 ac_status=$?
14517 grep -v '^ *+' conftest.er1 >conftest.err
14518 rm -f conftest.er1
14519 cat conftest.err >&5
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); } &&
14522 { ac_try='test -z "$ac_c_werror_flag"
14523 || test ! -s conftest.err'
14524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14525 (eval $ac_try) 2>&5
14526 ac_status=$?
14527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528 (exit $ac_status); }; } &&
14529 { ac_try='test -s conftest.$ac_objext'
14530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14531 (eval $ac_try) 2>&5
14532 ac_status=$?
14533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534 (exit $ac_status); }; }; then
14535 ac_lo=$ac_mid; break
14536 else
14537 echo "$as_me: failed program was:" >&5
14538 sed 's/^/| /' conftest.$ac_ext >&5
14540 ac_hi=`expr '(' $ac_mid ')' - 1`
14541 if test $ac_mid -le $ac_hi; then
14542 ac_lo= ac_hi=
14543 break
14545 ac_mid=`expr 2 '*' $ac_mid`
14547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14548 done
14549 else
14550 echo "$as_me: failed program was:" >&5
14551 sed 's/^/| /' conftest.$ac_ext >&5
14553 ac_lo= ac_hi=
14555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14558 # Binary search between lo and hi bounds.
14559 while test "x$ac_lo" != "x$ac_hi"; do
14560 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14561 cat >conftest.$ac_ext <<_ACEOF
14562 /* confdefs.h. */
14563 _ACEOF
14564 cat confdefs.h >>conftest.$ac_ext
14565 cat >>conftest.$ac_ext <<_ACEOF
14566 /* end confdefs.h. */
14567 $ac_includes_default
14569 main ()
14571 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14572 test_array [0] = 0
14575 return 0;
14577 _ACEOF
14578 rm -f conftest.$ac_objext
14579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14580 (eval $ac_compile) 2>conftest.er1
14581 ac_status=$?
14582 grep -v '^ *+' conftest.er1 >conftest.err
14583 rm -f conftest.er1
14584 cat conftest.err >&5
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); } &&
14587 { ac_try='test -z "$ac_c_werror_flag"
14588 || test ! -s conftest.err'
14589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14590 (eval $ac_try) 2>&5
14591 ac_status=$?
14592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593 (exit $ac_status); }; } &&
14594 { ac_try='test -s conftest.$ac_objext'
14595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14596 (eval $ac_try) 2>&5
14597 ac_status=$?
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); }; }; then
14600 ac_hi=$ac_mid
14601 else
14602 echo "$as_me: failed program was:" >&5
14603 sed 's/^/| /' conftest.$ac_ext >&5
14605 ac_lo=`expr '(' $ac_mid ')' + 1`
14607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14608 done
14609 case $ac_lo in
14610 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14611 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14612 See \`config.log' for more details." >&5
14613 echo "$as_me: error: cannot compute sizeof (void *), 77
14614 See \`config.log' for more details." >&2;}
14615 { (exit 1); exit 1; }; } ;;
14616 esac
14617 else
14618 if test "$cross_compiling" = yes; then
14619 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14620 See \`config.log' for more details." >&5
14621 echo "$as_me: error: cannot run test program while cross compiling
14622 See \`config.log' for more details." >&2;}
14623 { (exit 1); exit 1; }; }
14624 else
14625 cat >conftest.$ac_ext <<_ACEOF
14626 /* confdefs.h. */
14627 _ACEOF
14628 cat confdefs.h >>conftest.$ac_ext
14629 cat >>conftest.$ac_ext <<_ACEOF
14630 /* end confdefs.h. */
14631 $ac_includes_default
14632 long longval () { return (long) (sizeof (void *)); }
14633 unsigned long ulongval () { return (long) (sizeof (void *)); }
14634 #include <stdio.h>
14635 #include <stdlib.h>
14637 main ()
14640 FILE *f = fopen ("conftest.val", "w");
14641 if (! f)
14642 exit (1);
14643 if (((long) (sizeof (void *))) < 0)
14645 long i = longval ();
14646 if (i != ((long) (sizeof (void *))))
14647 exit (1);
14648 fprintf (f, "%ld\n", i);
14650 else
14652 unsigned long i = ulongval ();
14653 if (i != ((long) (sizeof (void *))))
14654 exit (1);
14655 fprintf (f, "%lu\n", i);
14657 exit (ferror (f) || fclose (f) != 0);
14660 return 0;
14662 _ACEOF
14663 rm -f conftest$ac_exeext
14664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14665 (eval $ac_link) 2>&5
14666 ac_status=$?
14667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14670 (eval $ac_try) 2>&5
14671 ac_status=$?
14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); }; }; then
14674 ac_cv_sizeof_void_p=`cat conftest.val`
14675 else
14676 echo "$as_me: program exited with status $ac_status" >&5
14677 echo "$as_me: failed program was:" >&5
14678 sed 's/^/| /' conftest.$ac_ext >&5
14680 ( exit $ac_status )
14681 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14682 See \`config.log' for more details." >&5
14683 echo "$as_me: error: cannot compute sizeof (void *), 77
14684 See \`config.log' for more details." >&2;}
14685 { (exit 1); exit 1; }; }
14687 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14690 rm -f conftest.val
14691 else
14692 ac_cv_sizeof_void_p=0
14695 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14696 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14697 cat >>confdefs.h <<_ACEOF
14698 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14699 _ACEOF
14703 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14704 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
14705 if test "${ac_cv_c_bigendian+set}" = set; then
14706 echo $ECHO_N "(cached) $ECHO_C" >&6
14707 else
14708 # See if sys/param.h defines the BYTE_ORDER macro.
14709 cat >conftest.$ac_ext <<_ACEOF
14710 /* confdefs.h. */
14711 _ACEOF
14712 cat confdefs.h >>conftest.$ac_ext
14713 cat >>conftest.$ac_ext <<_ACEOF
14714 /* end confdefs.h. */
14715 #include <sys/types.h>
14716 #include <sys/param.h>
14719 main ()
14721 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14722 bogus endian macros
14723 #endif
14726 return 0;
14728 _ACEOF
14729 rm -f conftest.$ac_objext
14730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14731 (eval $ac_compile) 2>conftest.er1
14732 ac_status=$?
14733 grep -v '^ *+' conftest.er1 >conftest.err
14734 rm -f conftest.er1
14735 cat conftest.err >&5
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); } &&
14738 { ac_try='test -z "$ac_c_werror_flag"
14739 || test ! -s conftest.err'
14740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14741 (eval $ac_try) 2>&5
14742 ac_status=$?
14743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744 (exit $ac_status); }; } &&
14745 { ac_try='test -s conftest.$ac_objext'
14746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14747 (eval $ac_try) 2>&5
14748 ac_status=$?
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); }; }; then
14751 # It does; now see whether it defined to BIG_ENDIAN or not.
14752 cat >conftest.$ac_ext <<_ACEOF
14753 /* confdefs.h. */
14754 _ACEOF
14755 cat confdefs.h >>conftest.$ac_ext
14756 cat >>conftest.$ac_ext <<_ACEOF
14757 /* end confdefs.h. */
14758 #include <sys/types.h>
14759 #include <sys/param.h>
14762 main ()
14764 #if BYTE_ORDER != BIG_ENDIAN
14765 not big endian
14766 #endif
14769 return 0;
14771 _ACEOF
14772 rm -f conftest.$ac_objext
14773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14774 (eval $ac_compile) 2>conftest.er1
14775 ac_status=$?
14776 grep -v '^ *+' conftest.er1 >conftest.err
14777 rm -f conftest.er1
14778 cat conftest.err >&5
14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); } &&
14781 { ac_try='test -z "$ac_c_werror_flag"
14782 || test ! -s conftest.err'
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); }; } &&
14788 { ac_try='test -s conftest.$ac_objext'
14789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14790 (eval $ac_try) 2>&5
14791 ac_status=$?
14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793 (exit $ac_status); }; }; then
14794 ac_cv_c_bigendian=yes
14795 else
14796 echo "$as_me: failed program was:" >&5
14797 sed 's/^/| /' conftest.$ac_ext >&5
14799 ac_cv_c_bigendian=no
14801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14802 else
14803 echo "$as_me: failed program was:" >&5
14804 sed 's/^/| /' conftest.$ac_ext >&5
14806 # It does not; compile a test program.
14807 if test "$cross_compiling" = yes; then
14808 # try to guess the endianness by grepping values into an object file
14809 ac_cv_c_bigendian=unknown
14810 cat >conftest.$ac_ext <<_ACEOF
14811 /* confdefs.h. */
14812 _ACEOF
14813 cat confdefs.h >>conftest.$ac_ext
14814 cat >>conftest.$ac_ext <<_ACEOF
14815 /* end confdefs.h. */
14816 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14817 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14818 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14819 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14820 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14821 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14823 main ()
14825 _ascii (); _ebcdic ();
14827 return 0;
14829 _ACEOF
14830 rm -f conftest.$ac_objext
14831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14832 (eval $ac_compile) 2>conftest.er1
14833 ac_status=$?
14834 grep -v '^ *+' conftest.er1 >conftest.err
14835 rm -f conftest.er1
14836 cat conftest.err >&5
14837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838 (exit $ac_status); } &&
14839 { ac_try='test -z "$ac_c_werror_flag"
14840 || test ! -s conftest.err'
14841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14842 (eval $ac_try) 2>&5
14843 ac_status=$?
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); }; } &&
14846 { ac_try='test -s conftest.$ac_objext'
14847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14848 (eval $ac_try) 2>&5
14849 ac_status=$?
14850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851 (exit $ac_status); }; }; then
14852 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14853 ac_cv_c_bigendian=yes
14855 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14856 if test "$ac_cv_c_bigendian" = unknown; then
14857 ac_cv_c_bigendian=no
14858 else
14859 # finding both strings is unlikely to happen, but who knows?
14860 ac_cv_c_bigendian=unknown
14863 else
14864 echo "$as_me: failed program was:" >&5
14865 sed 's/^/| /' conftest.$ac_ext >&5
14868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14869 else
14870 cat >conftest.$ac_ext <<_ACEOF
14871 /* confdefs.h. */
14872 _ACEOF
14873 cat confdefs.h >>conftest.$ac_ext
14874 cat >>conftest.$ac_ext <<_ACEOF
14875 /* end confdefs.h. */
14877 main ()
14879 /* Are we little or big endian? From Harbison&Steele. */
14880 union
14882 long l;
14883 char c[sizeof (long)];
14884 } u;
14885 u.l = 1;
14886 exit (u.c[sizeof (long) - 1] == 1);
14888 _ACEOF
14889 rm -f conftest$ac_exeext
14890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14891 (eval $ac_link) 2>&5
14892 ac_status=$?
14893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14896 (eval $ac_try) 2>&5
14897 ac_status=$?
14898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899 (exit $ac_status); }; }; then
14900 ac_cv_c_bigendian=no
14901 else
14902 echo "$as_me: program exited with status $ac_status" >&5
14903 echo "$as_me: failed program was:" >&5
14904 sed 's/^/| /' conftest.$ac_ext >&5
14906 ( exit $ac_status )
14907 ac_cv_c_bigendian=yes
14909 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14914 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14915 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14916 case $ac_cv_c_bigendian in
14917 yes)
14919 cat >>confdefs.h <<\_ACEOF
14920 #define WORDS_BIGENDIAN 1
14921 _ACEOF
14926 { { echo "$as_me:$LINENO: error: unknown endianness
14927 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14928 echo "$as_me: error: unknown endianness
14929 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14930 { (exit 1); exit 1; }; } ;;
14931 esac
14934 ZLIBS=
14935 SYS_ZLIBS=
14936 ZINCS=
14938 if test -z "$ZLIBSPEC"; then
14939 # Use zlib from the GCC tree.
14940 ZINCS='-I$(top_srcdir)/../zlib'
14941 ZLIBS=../zlib/libzgcj_convenience.la
14942 else
14943 # System's zlib.
14944 SYS_ZLIBS="$ZLIBSPEC"
14957 if test "$NATIVE" = yes; then
14958 NATIVE_TRUE=
14959 NATIVE_FALSE='#'
14960 else
14961 NATIVE_TRUE='#'
14962 NATIVE_FALSE=
14967 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
14968 NEEDS_DATA_START_TRUE=
14969 NEEDS_DATA_START_FALSE='#'
14970 else
14971 NEEDS_DATA_START_TRUE='#'
14972 NEEDS_DATA_START_FALSE=
14977 # Process the option "--enable-version-specific-runtime-libs"
14978 # Calculate toolexeclibdir
14979 case ${version_specific_libs} in
14980 yes)
14981 # Need the gcc compiler version to know where to install libraries
14982 # and header files if --enable-version-specific-runtime-libs option
14983 # is selected.
14984 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
14985 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
14986 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
14987 toolexeclibdir=$toolexecmainlibdir
14990 if test -n "$with_cross_host" &&
14991 test x"$with_cross_host" != x"no"; then
14992 # Install a library built with a cross compiler in tooldir, not libdir.
14993 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
14994 toolexecmainlibdir='$(toolexecdir)/lib'
14995 else
14996 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
14997 toolexecmainlibdir='$(libdir)'
14999 multi_os_directory=`$CC -print-multi-os-directory`
15000 case $multi_os_directory in
15001 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
15002 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
15003 esac
15005 esac
15010 # Determine where the standard .db file and GNU Classpath JNI
15011 # libraries are found.
15012 multi_os_directory=`$CC -print-multi-os-directory`
15013 case $multi_os_directory in
15015 dbexecdir='$(libdir)/gcj-$(gcc_version)' # Avoid /.
15016 ac_configure_args="$ac_configure_args --with-native-libdir=\$\(libdir\)/gcj-`cat $srcdir/../gcc/BASE-VER`"
15019 dbexecdir='$(libdir)/'$multi_os_directory'/gcj-$(gcc_version)'
15020 ac_configure_args="$ac_configure_args --with-native-libdir=\$\(libdir\)/$multi_os_directory/gcj-`cat $srcdir/../gcc/BASE-VER`"
15022 esac
15025 # Determine gcj version number.
15026 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
15027 GCJVERSION=$gcjversion
15030 cat >>confdefs.h <<_ACEOF
15031 #define GCJVERSION "$GCJVERSION"
15032 _ACEOF
15036 cat >>confdefs.h <<\_ACEOF
15037 #define JV_VERSION "1.4.2"
15038 _ACEOF
15041 cat >>confdefs.h <<\_ACEOF
15042 #define JV_API_VERSION "1.4"
15043 _ACEOF
15047 case "${with_gxx_include_dir}" in
15048 yes)
15049 { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
15050 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
15051 { (exit 1); exit 1; }; }
15053 no | "")
15054 case "${enable_version_specific_runtime_libs}" in
15055 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
15057 libstdcxx_incdir='c++/$(gcc_version)'
15058 gxx_include_dir='include/$(libstdcxx_incdir)'
15059 if test -n "$with_cross_host" &&
15060 test x"$with_cross_host" != x"no"; then
15061 gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
15062 else
15063 gxx_include_dir='${prefix}/'"$gxx_include_dir"
15064 fi;;
15065 esac ;;
15066 *) gxx_include_dir=${with_gxx_include_dir} ;;
15067 esac
15072 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
15073 # On that system, sys/ioctl.h will not include sys/filio.h unless
15074 # BSD_COMP is defined; just including sys/filio.h is simpler.
15075 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
15076 # for now. If you change this, you also must update natFile.cc.
15098 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
15099 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
15100 sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
15101 pwd.h sys/config.h stdint.h langinfo.h locale.h \
15102 dirent.h sys/rw_lock.h
15104 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15106 echo "$as_me:$LINENO: checking for $ac_header" >&5
15107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15109 echo $ECHO_N "(cached) $ECHO_C" >&6
15111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15112 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15113 else
15114 # Is the header compilable?
15115 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15116 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15117 cat >conftest.$ac_ext <<_ACEOF
15118 /* confdefs.h. */
15119 _ACEOF
15120 cat confdefs.h >>conftest.$ac_ext
15121 cat >>conftest.$ac_ext <<_ACEOF
15122 /* end confdefs.h. */
15123 $ac_includes_default
15124 #include <$ac_header>
15125 _ACEOF
15126 rm -f conftest.$ac_objext
15127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15128 (eval $ac_compile) 2>conftest.er1
15129 ac_status=$?
15130 grep -v '^ *+' conftest.er1 >conftest.err
15131 rm -f conftest.er1
15132 cat conftest.err >&5
15133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134 (exit $ac_status); } &&
15135 { ac_try='test -z "$ac_c_werror_flag"
15136 || test ! -s conftest.err'
15137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15138 (eval $ac_try) 2>&5
15139 ac_status=$?
15140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141 (exit $ac_status); }; } &&
15142 { ac_try='test -s conftest.$ac_objext'
15143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15144 (eval $ac_try) 2>&5
15145 ac_status=$?
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); }; }; then
15148 ac_header_compiler=yes
15149 else
15150 echo "$as_me: failed program was:" >&5
15151 sed 's/^/| /' conftest.$ac_ext >&5
15153 ac_header_compiler=no
15155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15156 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15157 echo "${ECHO_T}$ac_header_compiler" >&6
15159 # Is the header present?
15160 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15161 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15162 cat >conftest.$ac_ext <<_ACEOF
15163 /* confdefs.h. */
15164 _ACEOF
15165 cat confdefs.h >>conftest.$ac_ext
15166 cat >>conftest.$ac_ext <<_ACEOF
15167 /* end confdefs.h. */
15168 #include <$ac_header>
15169 _ACEOF
15170 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15171 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15172 ac_status=$?
15173 grep -v '^ *+' conftest.er1 >conftest.err
15174 rm -f conftest.er1
15175 cat conftest.err >&5
15176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 (exit $ac_status); } >/dev/null; then
15178 if test -s conftest.err; then
15179 ac_cpp_err=$ac_c_preproc_warn_flag
15180 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15181 else
15182 ac_cpp_err=
15184 else
15185 ac_cpp_err=yes
15187 if test -z "$ac_cpp_err"; then
15188 ac_header_preproc=yes
15189 else
15190 echo "$as_me: failed program was:" >&5
15191 sed 's/^/| /' conftest.$ac_ext >&5
15193 ac_header_preproc=no
15195 rm -f conftest.err conftest.$ac_ext
15196 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15197 echo "${ECHO_T}$ac_header_preproc" >&6
15199 # So? What about this header?
15200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15201 yes:no: )
15202 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15203 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15205 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15206 ac_header_preproc=yes
15208 no:yes:* )
15209 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15210 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15211 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15212 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15213 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15214 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15215 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15216 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15218 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15219 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15220 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15222 cat <<\_ASBOX
15223 ## ---------------------------------- ##
15224 ## Report this to the libjava lists. ##
15225 ## ---------------------------------- ##
15226 _ASBOX
15228 sed "s/^/$as_me: WARNING: /" >&2
15230 esac
15231 echo "$as_me:$LINENO: checking for $ac_header" >&5
15232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15234 echo $ECHO_N "(cached) $ECHO_C" >&6
15235 else
15236 eval "$as_ac_Header=\$ac_header_preproc"
15238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15239 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15243 cat >>confdefs.h <<_ACEOF
15244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15245 _ACEOF
15249 done
15252 for ac_header in inttypes.h
15254 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15256 echo "$as_me:$LINENO: checking for $ac_header" >&5
15257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15259 echo $ECHO_N "(cached) $ECHO_C" >&6
15261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15263 else
15264 # Is the header compilable?
15265 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15267 cat >conftest.$ac_ext <<_ACEOF
15268 /* confdefs.h. */
15269 _ACEOF
15270 cat confdefs.h >>conftest.$ac_ext
15271 cat >>conftest.$ac_ext <<_ACEOF
15272 /* end confdefs.h. */
15273 $ac_includes_default
15274 #include <$ac_header>
15275 _ACEOF
15276 rm -f conftest.$ac_objext
15277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15278 (eval $ac_compile) 2>conftest.er1
15279 ac_status=$?
15280 grep -v '^ *+' conftest.er1 >conftest.err
15281 rm -f conftest.er1
15282 cat conftest.err >&5
15283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284 (exit $ac_status); } &&
15285 { ac_try='test -z "$ac_c_werror_flag"
15286 || test ! -s conftest.err'
15287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15288 (eval $ac_try) 2>&5
15289 ac_status=$?
15290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291 (exit $ac_status); }; } &&
15292 { ac_try='test -s conftest.$ac_objext'
15293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15294 (eval $ac_try) 2>&5
15295 ac_status=$?
15296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297 (exit $ac_status); }; }; then
15298 ac_header_compiler=yes
15299 else
15300 echo "$as_me: failed program was:" >&5
15301 sed 's/^/| /' conftest.$ac_ext >&5
15303 ac_header_compiler=no
15305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15306 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15307 echo "${ECHO_T}$ac_header_compiler" >&6
15309 # Is the header present?
15310 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15311 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15312 cat >conftest.$ac_ext <<_ACEOF
15313 /* confdefs.h. */
15314 _ACEOF
15315 cat confdefs.h >>conftest.$ac_ext
15316 cat >>conftest.$ac_ext <<_ACEOF
15317 /* end confdefs.h. */
15318 #include <$ac_header>
15319 _ACEOF
15320 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15321 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15322 ac_status=$?
15323 grep -v '^ *+' conftest.er1 >conftest.err
15324 rm -f conftest.er1
15325 cat conftest.err >&5
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); } >/dev/null; then
15328 if test -s conftest.err; then
15329 ac_cpp_err=$ac_c_preproc_warn_flag
15330 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15331 else
15332 ac_cpp_err=
15334 else
15335 ac_cpp_err=yes
15337 if test -z "$ac_cpp_err"; then
15338 ac_header_preproc=yes
15339 else
15340 echo "$as_me: failed program was:" >&5
15341 sed 's/^/| /' conftest.$ac_ext >&5
15343 ac_header_preproc=no
15345 rm -f conftest.err conftest.$ac_ext
15346 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15347 echo "${ECHO_T}$ac_header_preproc" >&6
15349 # So? What about this header?
15350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15351 yes:no: )
15352 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15353 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15355 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15356 ac_header_preproc=yes
15358 no:yes:* )
15359 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15360 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15361 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15362 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15363 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15364 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15365 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15366 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15368 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15369 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15370 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15372 cat <<\_ASBOX
15373 ## ---------------------------------- ##
15374 ## Report this to the libjava lists. ##
15375 ## ---------------------------------- ##
15376 _ASBOX
15378 sed "s/^/$as_me: WARNING: /" >&2
15380 esac
15381 echo "$as_me:$LINENO: checking for $ac_header" >&5
15382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15384 echo $ECHO_N "(cached) $ECHO_C" >&6
15385 else
15386 eval "$as_ac_Header=\$ac_header_preproc"
15388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15393 cat >>confdefs.h <<_ACEOF
15394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15395 _ACEOF
15398 cat >>confdefs.h <<\_ACEOF
15399 #define HAVE_INTTYPES_H 1
15400 _ACEOF
15403 cat >>confdefs.h <<\_ACEOF
15404 #define JV_HAVE_INTTYPES_H 1
15405 _ACEOF
15410 done
15412 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15413 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
15414 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15415 echo $ECHO_N "(cached) $ECHO_C" >&6
15416 else
15417 cat >conftest.$ac_ext <<_ACEOF
15418 /* confdefs.h. */
15419 _ACEOF
15420 cat confdefs.h >>conftest.$ac_ext
15421 cat >>conftest.$ac_ext <<_ACEOF
15422 /* end confdefs.h. */
15423 #include <sys/types.h>
15424 #include <sys/wait.h>
15425 #ifndef WEXITSTATUS
15426 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
15427 #endif
15428 #ifndef WIFEXITED
15429 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15430 #endif
15433 main ()
15435 int s;
15436 wait (&s);
15437 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15439 return 0;
15441 _ACEOF
15442 rm -f conftest.$ac_objext
15443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15444 (eval $ac_compile) 2>conftest.er1
15445 ac_status=$?
15446 grep -v '^ *+' conftest.er1 >conftest.err
15447 rm -f conftest.er1
15448 cat conftest.err >&5
15449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 (exit $ac_status); } &&
15451 { ac_try='test -z "$ac_c_werror_flag"
15452 || test ! -s conftest.err'
15453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15454 (eval $ac_try) 2>&5
15455 ac_status=$?
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); }; } &&
15458 { ac_try='test -s conftest.$ac_objext'
15459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15460 (eval $ac_try) 2>&5
15461 ac_status=$?
15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); }; }; then
15464 ac_cv_header_sys_wait_h=yes
15465 else
15466 echo "$as_me: failed program was:" >&5
15467 sed 's/^/| /' conftest.$ac_ext >&5
15469 ac_cv_header_sys_wait_h=no
15471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15473 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15474 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
15475 if test $ac_cv_header_sys_wait_h = yes; then
15477 cat >>confdefs.h <<\_ACEOF
15478 #define HAVE_SYS_WAIT_H 1
15479 _ACEOF
15484 echo "$as_me:$LINENO: checking for ssize_t" >&5
15485 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15486 if test "${ac_cv_type_ssize_t+set}" = set; then
15487 echo $ECHO_N "(cached) $ECHO_C" >&6
15488 else
15489 cat >conftest.$ac_ext <<_ACEOF
15490 /* confdefs.h. */
15491 _ACEOF
15492 cat confdefs.h >>conftest.$ac_ext
15493 cat >>conftest.$ac_ext <<_ACEOF
15494 /* end confdefs.h. */
15495 $ac_includes_default
15497 main ()
15499 if ((ssize_t *) 0)
15500 return 0;
15501 if (sizeof (ssize_t))
15502 return 0;
15504 return 0;
15506 _ACEOF
15507 rm -f conftest.$ac_objext
15508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15509 (eval $ac_compile) 2>conftest.er1
15510 ac_status=$?
15511 grep -v '^ *+' conftest.er1 >conftest.err
15512 rm -f conftest.er1
15513 cat conftest.err >&5
15514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515 (exit $ac_status); } &&
15516 { ac_try='test -z "$ac_c_werror_flag"
15517 || test ! -s conftest.err'
15518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15519 (eval $ac_try) 2>&5
15520 ac_status=$?
15521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522 (exit $ac_status); }; } &&
15523 { ac_try='test -s conftest.$ac_objext'
15524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15525 (eval $ac_try) 2>&5
15526 ac_status=$?
15527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528 (exit $ac_status); }; }; then
15529 ac_cv_type_ssize_t=yes
15530 else
15531 echo "$as_me: failed program was:" >&5
15532 sed 's/^/| /' conftest.$ac_ext >&5
15534 ac_cv_type_ssize_t=no
15536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15538 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
15539 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
15540 if test $ac_cv_type_ssize_t = yes; then
15542 else
15544 cat >>confdefs.h <<_ACEOF
15545 #define ssize_t int
15546 _ACEOF
15551 echo "$as_me:$LINENO: checking for in_addr_t" >&5
15552 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
15553 cat >conftest.$ac_ext <<_ACEOF
15554 /* confdefs.h. */
15555 _ACEOF
15556 cat confdefs.h >>conftest.$ac_ext
15557 cat >>conftest.$ac_ext <<_ACEOF
15558 /* end confdefs.h. */
15559 #include <sys/types.h>
15560 #if STDC_HEADERS
15561 #include <stdlib.h>
15562 #include <stddef.h>
15563 #endif
15564 #if HAVE_NETINET_IN_H
15565 #include <netinet/in.h>
15566 #endif
15568 main ()
15570 in_addr_t foo;
15572 return 0;
15574 _ACEOF
15575 rm -f conftest.$ac_objext
15576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15577 (eval $ac_compile) 2>conftest.er1
15578 ac_status=$?
15579 grep -v '^ *+' conftest.er1 >conftest.err
15580 rm -f conftest.er1
15581 cat conftest.err >&5
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); } &&
15584 { ac_try='test -z "$ac_c_werror_flag"
15585 || test ! -s conftest.err'
15586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15587 (eval $ac_try) 2>&5
15588 ac_status=$?
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); }; } &&
15591 { ac_try='test -s conftest.$ac_objext'
15592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15593 (eval $ac_try) 2>&5
15594 ac_status=$?
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); }; }; then
15598 cat >>confdefs.h <<\_ACEOF
15599 #define HAVE_IN_ADDR_T 1
15600 _ACEOF
15602 echo "$as_me:$LINENO: result: yes" >&5
15603 echo "${ECHO_T}yes" >&6
15604 else
15605 echo "$as_me: failed program was:" >&5
15606 sed 's/^/| /' conftest.$ac_ext >&5
15608 echo "$as_me:$LINENO: result: no" >&5
15609 echo "${ECHO_T}no" >&6
15611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15613 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
15614 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
15615 cat >conftest.$ac_ext <<_ACEOF
15616 /* confdefs.h. */
15617 _ACEOF
15618 cat confdefs.h >>conftest.$ac_ext
15619 cat >>conftest.$ac_ext <<_ACEOF
15620 /* end confdefs.h. */
15621 #include <netinet/in.h>
15623 main ()
15625 struct ip_mreq mreq;
15627 return 0;
15629 _ACEOF
15630 rm -f conftest.$ac_objext
15631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15632 (eval $ac_compile) 2>conftest.er1
15633 ac_status=$?
15634 grep -v '^ *+' conftest.er1 >conftest.err
15635 rm -f conftest.er1
15636 cat conftest.err >&5
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); } &&
15639 { ac_try='test -z "$ac_c_werror_flag"
15640 || test ! -s conftest.err'
15641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15642 (eval $ac_try) 2>&5
15643 ac_status=$?
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); }; } &&
15646 { ac_try='test -s conftest.$ac_objext'
15647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15648 (eval $ac_try) 2>&5
15649 ac_status=$?
15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); }; }; then
15653 cat >>confdefs.h <<\_ACEOF
15654 #define HAVE_STRUCT_IP_MREQ 1
15655 _ACEOF
15657 echo "$as_me:$LINENO: result: yes" >&5
15658 echo "${ECHO_T}yes" >&6
15659 else
15660 echo "$as_me: failed program was:" >&5
15661 sed 's/^/| /' conftest.$ac_ext >&5
15663 echo "$as_me:$LINENO: result: no" >&5
15664 echo "${ECHO_T}no" >&6
15666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15668 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
15669 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
15670 cat >conftest.$ac_ext <<_ACEOF
15671 /* confdefs.h. */
15672 _ACEOF
15673 cat confdefs.h >>conftest.$ac_ext
15674 cat >>conftest.$ac_ext <<_ACEOF
15675 /* end confdefs.h. */
15676 #include <netinet/in.h>
15678 main ()
15680 struct ipv6_mreq mreq6;
15682 return 0;
15684 _ACEOF
15685 rm -f conftest.$ac_objext
15686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15687 (eval $ac_compile) 2>conftest.er1
15688 ac_status=$?
15689 grep -v '^ *+' conftest.er1 >conftest.err
15690 rm -f conftest.er1
15691 cat conftest.err >&5
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); } &&
15694 { ac_try='test -z "$ac_c_werror_flag"
15695 || test ! -s conftest.err'
15696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15697 (eval $ac_try) 2>&5
15698 ac_status=$?
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); }; } &&
15701 { ac_try='test -s conftest.$ac_objext'
15702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15703 (eval $ac_try) 2>&5
15704 ac_status=$?
15705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706 (exit $ac_status); }; }; then
15708 cat >>confdefs.h <<\_ACEOF
15709 #define HAVE_STRUCT_IPV6_MREQ 1
15710 _ACEOF
15712 echo "$as_me:$LINENO: result: yes" >&5
15713 echo "${ECHO_T}yes" >&6
15714 else
15715 echo "$as_me: failed program was:" >&5
15716 sed 's/^/| /' conftest.$ac_ext >&5
15718 echo "$as_me:$LINENO: result: no" >&5
15719 echo "${ECHO_T}no" >&6
15721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15723 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
15724 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
15725 cat >conftest.$ac_ext <<_ACEOF
15726 /* confdefs.h. */
15727 _ACEOF
15728 cat confdefs.h >>conftest.$ac_ext
15729 cat >>conftest.$ac_ext <<_ACEOF
15730 /* end confdefs.h. */
15731 #include <netinet/in.h>
15733 main ()
15735 struct sockaddr_in6 addr6;
15737 return 0;
15739 _ACEOF
15740 rm -f conftest.$ac_objext
15741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15742 (eval $ac_compile) 2>conftest.er1
15743 ac_status=$?
15744 grep -v '^ *+' conftest.er1 >conftest.err
15745 rm -f conftest.er1
15746 cat conftest.err >&5
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); } &&
15749 { ac_try='test -z "$ac_c_werror_flag"
15750 || test ! -s conftest.err'
15751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15752 (eval $ac_try) 2>&5
15753 ac_status=$?
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); }; } &&
15756 { ac_try='test -s conftest.$ac_objext'
15757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15758 (eval $ac_try) 2>&5
15759 ac_status=$?
15760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761 (exit $ac_status); }; }; then
15763 cat >>confdefs.h <<\_ACEOF
15764 #define HAVE_INET6 1
15765 _ACEOF
15767 echo "$as_me:$LINENO: result: yes" >&5
15768 echo "${ECHO_T}yes" >&6
15769 else
15770 echo "$as_me: failed program was:" >&5
15771 sed 's/^/| /' conftest.$ac_ext >&5
15773 echo "$as_me:$LINENO: result: no" >&5
15774 echo "${ECHO_T}no" >&6
15776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15778 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
15779 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
15780 cat >conftest.$ac_ext <<_ACEOF
15781 /* confdefs.h. */
15782 _ACEOF
15783 cat confdefs.h >>conftest.$ac_ext
15784 cat >>conftest.$ac_ext <<_ACEOF
15785 /* end confdefs.h. */
15786 #define _POSIX_PII_SOCKET
15787 #include <sys/types.h>
15788 #include <sys/socket.h>
15790 main ()
15792 socklen_t x = 5;
15794 return 0;
15796 _ACEOF
15797 rm -f conftest.$ac_objext
15798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15799 (eval $ac_compile) 2>conftest.er1
15800 ac_status=$?
15801 grep -v '^ *+' conftest.er1 >conftest.err
15802 rm -f conftest.er1
15803 cat conftest.err >&5
15804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805 (exit $ac_status); } &&
15806 { ac_try='test -z "$ac_c_werror_flag"
15807 || test ! -s conftest.err'
15808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15809 (eval $ac_try) 2>&5
15810 ac_status=$?
15811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15812 (exit $ac_status); }; } &&
15813 { ac_try='test -s conftest.$ac_objext'
15814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15815 (eval $ac_try) 2>&5
15816 ac_status=$?
15817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818 (exit $ac_status); }; }; then
15820 cat >>confdefs.h <<\_ACEOF
15821 #define HAVE_SOCKLEN_T 1
15822 _ACEOF
15824 echo "$as_me:$LINENO: result: yes" >&5
15825 echo "${ECHO_T}yes" >&6
15826 else
15827 echo "$as_me: failed program was:" >&5
15828 sed 's/^/| /' conftest.$ac_ext >&5
15830 echo "$as_me:$LINENO: result: no" >&5
15831 echo "${ECHO_T}no" >&6
15833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15835 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
15836 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
15837 cat >conftest.$ac_ext <<_ACEOF
15838 /* confdefs.h. */
15839 _ACEOF
15840 cat confdefs.h >>conftest.$ac_ext
15841 cat >>conftest.$ac_ext <<_ACEOF
15842 /* end confdefs.h. */
15843 #include <time.h>
15845 main ()
15847 struct tm tim; tim.tm_gmtoff = 0;
15849 return 0;
15851 _ACEOF
15852 rm -f conftest.$ac_objext
15853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15854 (eval $ac_compile) 2>conftest.er1
15855 ac_status=$?
15856 grep -v '^ *+' conftest.er1 >conftest.err
15857 rm -f conftest.er1
15858 cat conftest.err >&5
15859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860 (exit $ac_status); } &&
15861 { ac_try='test -z "$ac_c_werror_flag"
15862 || test ! -s conftest.err'
15863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15864 (eval $ac_try) 2>&5
15865 ac_status=$?
15866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); }; } &&
15868 { ac_try='test -s conftest.$ac_objext'
15869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15870 (eval $ac_try) 2>&5
15871 ac_status=$?
15872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873 (exit $ac_status); }; }; then
15875 cat >>confdefs.h <<\_ACEOF
15876 #define STRUCT_TM_HAS_GMTOFF 1
15877 _ACEOF
15879 echo "$as_me:$LINENO: result: yes" >&5
15880 echo "${ECHO_T}yes" >&6
15881 else
15882 echo "$as_me: failed program was:" >&5
15883 sed 's/^/| /' conftest.$ac_ext >&5
15885 echo "$as_me:$LINENO: result: no" >&5
15886 echo "${ECHO_T}no" >&6
15887 echo "$as_me:$LINENO: checking for global timezone variable" >&5
15888 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
15889 cat >conftest.$ac_ext <<_ACEOF
15890 /* confdefs.h. */
15891 _ACEOF
15892 cat confdefs.h >>conftest.$ac_ext
15893 cat >>conftest.$ac_ext <<_ACEOF
15894 /* end confdefs.h. */
15895 #include <time.h>
15897 main ()
15899 void i(){long z2 = 2*timezone;}
15901 return 0;
15903 _ACEOF
15904 rm -f conftest.$ac_objext
15905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15906 (eval $ac_compile) 2>conftest.er1
15907 ac_status=$?
15908 grep -v '^ *+' conftest.er1 >conftest.err
15909 rm -f conftest.er1
15910 cat conftest.err >&5
15911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912 (exit $ac_status); } &&
15913 { ac_try='test -z "$ac_c_werror_flag"
15914 || test ! -s conftest.err'
15915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15916 (eval $ac_try) 2>&5
15917 ac_status=$?
15918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919 (exit $ac_status); }; } &&
15920 { ac_try='test -s conftest.$ac_objext'
15921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15922 (eval $ac_try) 2>&5
15923 ac_status=$?
15924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925 (exit $ac_status); }; }; then
15927 cat >>confdefs.h <<\_ACEOF
15928 #define HAVE_TIMEZONE 1
15929 _ACEOF
15931 echo "$as_me:$LINENO: result: yes" >&5
15932 echo "${ECHO_T}yes" >&6
15933 else
15934 echo "$as_me: failed program was:" >&5
15935 sed 's/^/| /' conftest.$ac_ext >&5
15937 echo "$as_me:$LINENO: result: no" >&5
15938 echo "${ECHO_T}no" >&6
15939 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
15940 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
15941 cat >conftest.$ac_ext <<_ACEOF
15942 /* confdefs.h. */
15943 _ACEOF
15944 cat confdefs.h >>conftest.$ac_ext
15945 cat >>conftest.$ac_ext <<_ACEOF
15946 /* end confdefs.h. */
15947 #include <time.h>
15949 main ()
15951 long z2 = _timezone;
15953 return 0;
15955 _ACEOF
15956 rm -f conftest.$ac_objext
15957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15958 (eval $ac_compile) 2>conftest.er1
15959 ac_status=$?
15960 grep -v '^ *+' conftest.er1 >conftest.err
15961 rm -f conftest.er1
15962 cat conftest.err >&5
15963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964 (exit $ac_status); } &&
15965 { ac_try='test -z "$ac_c_werror_flag"
15966 || test ! -s conftest.err'
15967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15968 (eval $ac_try) 2>&5
15969 ac_status=$?
15970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971 (exit $ac_status); }; } &&
15972 { ac_try='test -s conftest.$ac_objext'
15973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15974 (eval $ac_try) 2>&5
15975 ac_status=$?
15976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977 (exit $ac_status); }; }; then
15979 cat >>confdefs.h <<\_ACEOF
15980 #define HAVE_UNDERSCORE_TIMEZONE 1
15981 _ACEOF
15983 echo "$as_me:$LINENO: result: yes" >&5
15984 echo "${ECHO_T}yes" >&6
15985 else
15986 echo "$as_me: failed program was:" >&5
15987 sed 's/^/| /' conftest.$ac_ext >&5
15989 echo "$as_me:$LINENO: result: no" >&5
15990 echo "${ECHO_T}no" >&6
15992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15998 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15999 # for constant arguments. Useless!
16000 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16001 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16002 if test "${ac_cv_working_alloca_h+set}" = set; then
16003 echo $ECHO_N "(cached) $ECHO_C" >&6
16004 else
16005 if test x$gcc_no_link = xyes; then
16006 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16007 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16008 { (exit 1); exit 1; }; }
16010 cat >conftest.$ac_ext <<_ACEOF
16011 /* confdefs.h. */
16012 _ACEOF
16013 cat confdefs.h >>conftest.$ac_ext
16014 cat >>conftest.$ac_ext <<_ACEOF
16015 /* end confdefs.h. */
16016 #include <alloca.h>
16018 main ()
16020 char *p = (char *) alloca (2 * sizeof (int));
16022 return 0;
16024 _ACEOF
16025 rm -f conftest.$ac_objext conftest$ac_exeext
16026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16027 (eval $ac_link) 2>conftest.er1
16028 ac_status=$?
16029 grep -v '^ *+' conftest.er1 >conftest.err
16030 rm -f conftest.er1
16031 cat conftest.err >&5
16032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033 (exit $ac_status); } &&
16034 { ac_try='test -z "$ac_c_werror_flag"
16035 || test ! -s conftest.err'
16036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16037 (eval $ac_try) 2>&5
16038 ac_status=$?
16039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040 (exit $ac_status); }; } &&
16041 { ac_try='test -s conftest$ac_exeext'
16042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16043 (eval $ac_try) 2>&5
16044 ac_status=$?
16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); }; }; then
16047 ac_cv_working_alloca_h=yes
16048 else
16049 echo "$as_me: failed program was:" >&5
16050 sed 's/^/| /' conftest.$ac_ext >&5
16052 ac_cv_working_alloca_h=no
16054 rm -f conftest.err conftest.$ac_objext \
16055 conftest$ac_exeext conftest.$ac_ext
16057 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16058 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16059 if test $ac_cv_working_alloca_h = yes; then
16061 cat >>confdefs.h <<\_ACEOF
16062 #define HAVE_ALLOCA_H 1
16063 _ACEOF
16067 echo "$as_me:$LINENO: checking for alloca" >&5
16068 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16069 if test "${ac_cv_func_alloca_works+set}" = set; then
16070 echo $ECHO_N "(cached) $ECHO_C" >&6
16071 else
16072 if test x$gcc_no_link = xyes; then
16073 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16074 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16075 { (exit 1); exit 1; }; }
16077 cat >conftest.$ac_ext <<_ACEOF
16078 /* confdefs.h. */
16079 _ACEOF
16080 cat confdefs.h >>conftest.$ac_ext
16081 cat >>conftest.$ac_ext <<_ACEOF
16082 /* end confdefs.h. */
16083 #ifdef __GNUC__
16084 # define alloca __builtin_alloca
16085 #else
16086 # ifdef _MSC_VER
16087 # include <malloc.h>
16088 # define alloca _alloca
16089 # else
16090 # if HAVE_ALLOCA_H
16091 # include <alloca.h>
16092 # else
16093 # ifdef _AIX
16094 #pragma alloca
16095 # else
16096 # ifndef alloca /* predefined by HP cc +Olibcalls */
16097 char *alloca ();
16098 # endif
16099 # endif
16100 # endif
16101 # endif
16102 #endif
16105 main ()
16107 char *p = (char *) alloca (1);
16109 return 0;
16111 _ACEOF
16112 rm -f conftest.$ac_objext conftest$ac_exeext
16113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16114 (eval $ac_link) 2>conftest.er1
16115 ac_status=$?
16116 grep -v '^ *+' conftest.er1 >conftest.err
16117 rm -f conftest.er1
16118 cat conftest.err >&5
16119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120 (exit $ac_status); } &&
16121 { ac_try='test -z "$ac_c_werror_flag"
16122 || test ! -s conftest.err'
16123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16124 (eval $ac_try) 2>&5
16125 ac_status=$?
16126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127 (exit $ac_status); }; } &&
16128 { ac_try='test -s conftest$ac_exeext'
16129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16130 (eval $ac_try) 2>&5
16131 ac_status=$?
16132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133 (exit $ac_status); }; }; then
16134 ac_cv_func_alloca_works=yes
16135 else
16136 echo "$as_me: failed program was:" >&5
16137 sed 's/^/| /' conftest.$ac_ext >&5
16139 ac_cv_func_alloca_works=no
16141 rm -f conftest.err conftest.$ac_objext \
16142 conftest$ac_exeext conftest.$ac_ext
16144 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16145 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16147 if test $ac_cv_func_alloca_works = yes; then
16149 cat >>confdefs.h <<\_ACEOF
16150 #define HAVE_ALLOCA 1
16151 _ACEOF
16153 else
16154 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16155 # that cause trouble. Some versions do not even contain alloca or
16156 # contain a buggy version. If you still want to use their alloca,
16157 # use ar to extract alloca.o from them instead of compiling alloca.c.
16159 ALLOCA=alloca.$ac_objext
16161 cat >>confdefs.h <<\_ACEOF
16162 #define C_ALLOCA 1
16163 _ACEOF
16166 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16167 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16168 if test "${ac_cv_os_cray+set}" = set; then
16169 echo $ECHO_N "(cached) $ECHO_C" >&6
16170 else
16171 cat >conftest.$ac_ext <<_ACEOF
16172 /* confdefs.h. */
16173 _ACEOF
16174 cat confdefs.h >>conftest.$ac_ext
16175 cat >>conftest.$ac_ext <<_ACEOF
16176 /* end confdefs.h. */
16177 #if defined(CRAY) && ! defined(CRAY2)
16178 webecray
16179 #else
16180 wenotbecray
16181 #endif
16183 _ACEOF
16184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16185 $EGREP "webecray" >/dev/null 2>&1; then
16186 ac_cv_os_cray=yes
16187 else
16188 ac_cv_os_cray=no
16190 rm -f conftest*
16193 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16194 echo "${ECHO_T}$ac_cv_os_cray" >&6
16195 if test $ac_cv_os_cray = yes; then
16196 for ac_func in _getb67 GETB67 getb67; do
16197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16198 echo "$as_me:$LINENO: checking for $ac_func" >&5
16199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16200 if eval "test \"\${$as_ac_var+set}\" = set"; then
16201 echo $ECHO_N "(cached) $ECHO_C" >&6
16202 else
16203 if test x$gcc_no_link = xyes; then
16204 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16205 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16206 { (exit 1); exit 1; }; }
16208 cat >conftest.$ac_ext <<_ACEOF
16209 /* confdefs.h. */
16210 _ACEOF
16211 cat confdefs.h >>conftest.$ac_ext
16212 cat >>conftest.$ac_ext <<_ACEOF
16213 /* end confdefs.h. */
16214 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16215 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16216 #define $ac_func innocuous_$ac_func
16218 /* System header to define __stub macros and hopefully few prototypes,
16219 which can conflict with char $ac_func (); below.
16220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16221 <limits.h> exists even on freestanding compilers. */
16223 #ifdef __STDC__
16224 # include <limits.h>
16225 #else
16226 # include <assert.h>
16227 #endif
16229 #undef $ac_func
16231 /* Override any gcc2 internal prototype to avoid an error. */
16232 #ifdef __cplusplus
16233 extern "C"
16235 #endif
16236 /* We use char because int might match the return type of a gcc2
16237 builtin and then its argument prototype would still apply. */
16238 char $ac_func ();
16239 /* The GNU C library defines this for functions which it implements
16240 to always fail with ENOSYS. Some functions are actually named
16241 something starting with __ and the normal name is an alias. */
16242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16243 choke me
16244 #else
16245 char (*f) () = $ac_func;
16246 #endif
16247 #ifdef __cplusplus
16249 #endif
16252 main ()
16254 return f != $ac_func;
16256 return 0;
16258 _ACEOF
16259 rm -f conftest.$ac_objext conftest$ac_exeext
16260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16261 (eval $ac_link) 2>conftest.er1
16262 ac_status=$?
16263 grep -v '^ *+' conftest.er1 >conftest.err
16264 rm -f conftest.er1
16265 cat conftest.err >&5
16266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267 (exit $ac_status); } &&
16268 { ac_try='test -z "$ac_c_werror_flag"
16269 || test ! -s conftest.err'
16270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16271 (eval $ac_try) 2>&5
16272 ac_status=$?
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); }; } &&
16275 { ac_try='test -s conftest$ac_exeext'
16276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16277 (eval $ac_try) 2>&5
16278 ac_status=$?
16279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 (exit $ac_status); }; }; then
16281 eval "$as_ac_var=yes"
16282 else
16283 echo "$as_me: failed program was:" >&5
16284 sed 's/^/| /' conftest.$ac_ext >&5
16286 eval "$as_ac_var=no"
16288 rm -f conftest.err conftest.$ac_objext \
16289 conftest$ac_exeext conftest.$ac_ext
16291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16292 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16293 if test `eval echo '${'$as_ac_var'}'` = yes; then
16295 cat >>confdefs.h <<_ACEOF
16296 #define CRAY_STACKSEG_END $ac_func
16297 _ACEOF
16299 break
16302 done
16305 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16306 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16307 if test "${ac_cv_c_stack_direction+set}" = set; then
16308 echo $ECHO_N "(cached) $ECHO_C" >&6
16309 else
16310 if test "$cross_compiling" = yes; then
16311 ac_cv_c_stack_direction=0
16312 else
16313 cat >conftest.$ac_ext <<_ACEOF
16314 /* confdefs.h. */
16315 _ACEOF
16316 cat confdefs.h >>conftest.$ac_ext
16317 cat >>conftest.$ac_ext <<_ACEOF
16318 /* end confdefs.h. */
16320 find_stack_direction ()
16322 static char *addr = 0;
16323 auto char dummy;
16324 if (addr == 0)
16326 addr = &dummy;
16327 return find_stack_direction ();
16329 else
16330 return (&dummy > addr) ? 1 : -1;
16334 main ()
16336 exit (find_stack_direction () < 0);
16338 _ACEOF
16339 rm -f conftest$ac_exeext
16340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16341 (eval $ac_link) 2>&5
16342 ac_status=$?
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16346 (eval $ac_try) 2>&5
16347 ac_status=$?
16348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); }; }; then
16350 ac_cv_c_stack_direction=1
16351 else
16352 echo "$as_me: program exited with status $ac_status" >&5
16353 echo "$as_me: failed program was:" >&5
16354 sed 's/^/| /' conftest.$ac_ext >&5
16356 ( exit $ac_status )
16357 ac_cv_c_stack_direction=-1
16359 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16362 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16363 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16365 cat >>confdefs.h <<_ACEOF
16366 #define STACK_DIRECTION $ac_cv_c_stack_direction
16367 _ACEOF
16373 for ac_prog in perl
16375 # Extract the first word of "$ac_prog", so it can be a program name with args.
16376 set dummy $ac_prog; ac_word=$2
16377 echo "$as_me:$LINENO: checking for $ac_word" >&5
16378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16379 if test "${ac_cv_prog_PERL+set}" = set; then
16380 echo $ECHO_N "(cached) $ECHO_C" >&6
16381 else
16382 if test -n "$PERL"; then
16383 ac_cv_prog_PERL="$PERL" # Let the user override the test.
16384 else
16385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16386 for as_dir in $PATH
16388 IFS=$as_save_IFS
16389 test -z "$as_dir" && as_dir=.
16390 for ac_exec_ext in '' $ac_executable_extensions; do
16391 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16392 ac_cv_prog_PERL="$ac_prog"
16393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16394 break 2
16396 done
16397 done
16401 PERL=$ac_cv_prog_PERL
16402 if test -n "$PERL"; then
16403 echo "$as_me:$LINENO: result: $PERL" >&5
16404 echo "${ECHO_T}$PERL" >&6
16405 else
16406 echo "$as_me:$LINENO: result: no" >&5
16407 echo "${ECHO_T}no" >&6
16410 test -n "$PERL" && break
16411 done
16412 test -n "$PERL" || PERL="false"
16415 SYSDEP_SOURCES=
16416 SIGNAL_HANDLER_AUX=
16418 case "${host}" in
16419 i?86-*-linux*)
16420 SIGNAL_HANDLER=include/i386-signal.h
16422 sparc*-sun-solaris*)
16423 SIGNAL_HANDLER=include/sparc-signal.h
16425 # ia64-*)
16426 # SYSDEP_SOURCES=sysdep/ia64.c
16427 # test -d sysdep || mkdir sysdep
16428 # ;;
16429 hppa*-*-linux*)
16430 SIGNAL_HANDLER=include/pa-signal.h
16432 hppa*-hp-hpux*)
16433 SIGNAL_HANDLER=include/hppa-signal.h
16435 ia64-*-linux*)
16436 SIGNAL_HANDLER=include/dwarf2-signal.h
16438 powerpc*-*-linux*)
16439 SIGNAL_HANDLER=include/powerpc-signal.h
16441 alpha*-*-linux*)
16442 SIGNAL_HANDLER=include/dwarf2-signal.h
16444 s390*-*-linux*)
16445 SIGNAL_HANDLER=include/s390-signal.h
16447 x86_64*-*-linux*)
16448 SIGNAL_HANDLER=include/x86_64-signal.h
16449 SIGNAL_HANDLER_AUX=include/i386-signal.h
16451 sparc*-*-linux*)
16452 SIGNAL_HANDLER=include/dwarf2-signal.h
16454 sh*-*-linux*)
16455 SIGNAL_HANDLER=include/sh-signal.h
16457 *mingw*)
16458 SIGNAL_HANDLER=include/win32-signal.h
16460 mips*-*-linux*)
16461 SIGNAL_HANDLER=include/mips-signal.h
16463 *-*-darwin*)
16464 SIGNAL_HANDLER=include/darwin-signal.h
16467 SIGNAL_HANDLER=include/default-signal.h
16469 esac
16471 # If we're using sjlj exceptions, forget what we just learned.
16472 if test "$enable_sjlj_exceptions" = yes; then
16473 SIGNAL_HANDLER=include/default-signal.h
16474 SIGNAL_HANDLER_AUX=
16479 if test -z "$SIGNAL_HANDLER_AUX"; then
16480 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
16483 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
16486 if test "${multilib}" = "yes"; then
16487 multilib_arg="--enable-multilib"
16488 else
16489 multilib_arg=
16492 # See if we support thread-local storage.
16494 # Check whether --enable-tls or --disable-tls was given.
16495 if test "${enable_tls+set}" = set; then
16496 enableval="$enable_tls"
16498 case "$enableval" in
16499 yes|no) ;;
16500 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
16501 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
16502 { (exit 1); exit 1; }; } ;;
16503 esac
16505 else
16506 enable_tls=yes
16509 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
16510 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
16511 if test "${have_tls+set}" = set; then
16512 echo $ECHO_N "(cached) $ECHO_C" >&6
16513 else
16515 if test "$cross_compiling" = yes; then
16516 cat >conftest.$ac_ext <<_ACEOF
16517 __thread int foo;
16518 _ACEOF
16519 rm -f conftest.$ac_objext
16520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16521 (eval $ac_compile) 2>conftest.er1
16522 ac_status=$?
16523 grep -v '^ *+' conftest.er1 >conftest.err
16524 rm -f conftest.er1
16525 cat conftest.err >&5
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); } &&
16528 { ac_try='test -z "$ac_c_werror_flag"
16529 || test ! -s conftest.err'
16530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16531 (eval $ac_try) 2>&5
16532 ac_status=$?
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); }; } &&
16535 { ac_try='test -s conftest.$ac_objext'
16536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16537 (eval $ac_try) 2>&5
16538 ac_status=$?
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); }; }; then
16541 have_tls=yes
16542 else
16543 echo "$as_me: failed program was:" >&5
16544 sed 's/^/| /' conftest.$ac_ext >&5
16546 have_tls=no
16548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16550 else
16551 cat >conftest.$ac_ext <<_ACEOF
16552 __thread int a; int b; int main() { return a = b; }
16553 _ACEOF
16554 rm -f conftest$ac_exeext
16555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16556 (eval $ac_link) 2>&5
16557 ac_status=$?
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16561 (eval $ac_try) 2>&5
16562 ac_status=$?
16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); }; }; then
16565 save_LDFLAGS="$LDFLAGS"
16566 LDFLAGS="-static $LDFLAGS"
16567 if test "$cross_compiling" = yes; then
16568 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16569 See \`config.log' for more details." >&5
16570 echo "$as_me: error: cannot run test program while cross compiling
16571 See \`config.log' for more details." >&2;}
16572 { (exit 1); exit 1; }; }
16573 else
16574 cat >conftest.$ac_ext <<_ACEOF
16575 __thread int a; int b; int main() { return a = b; }
16576 _ACEOF
16577 rm -f conftest$ac_exeext
16578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16579 (eval $ac_link) 2>&5
16580 ac_status=$?
16581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16584 (eval $ac_try) 2>&5
16585 ac_status=$?
16586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587 (exit $ac_status); }; }; then
16588 have_tls=yes
16589 else
16590 echo "$as_me: program exited with status $ac_status" >&5
16591 echo "$as_me: failed program was:" >&5
16592 sed 's/^/| /' conftest.$ac_ext >&5
16594 ( exit $ac_status )
16595 have_tls=no
16597 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16599 LDFLAGS="$save_LDFLAGS"
16600 else
16601 echo "$as_me: program exited with status $ac_status" >&5
16602 echo "$as_me: failed program was:" >&5
16603 sed 's/^/| /' conftest.$ac_ext >&5
16605 ( exit $ac_status )
16606 have_tls=no
16608 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16611 echo "$as_me:$LINENO: result: $have_tls" >&5
16612 echo "${ECHO_T}$have_tls" >&6
16613 if test "$enable_tls $have_tls" = "yes yes"; then
16615 cat >>confdefs.h <<\_ACEOF
16616 #define HAVE_TLS 1
16617 _ACEOF
16621 # Check if linker supports static linking on a per library basis
16622 LD_START_STATIC_SPEC=
16623 LD_FINISH_STATIC_SPEC=
16624 if $LD --help 2>&1 | grep -q -e -call_shared ; then
16625 if $LD --help 2>&1 | grep -q -e -non_shared ; then
16626 LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
16627 LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
16633 here=`${PWDCMD-pwd}`
16636 # We get this from the environment.
16639 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"
16642 ac_config_files="$ac_config_files scripts/jar"
16645 ac_config_commands="$ac_config_commands default"
16648 cat >confcache <<\_ACEOF
16649 # This file is a shell script that caches the results of configure
16650 # tests run on this system so they can be shared between configure
16651 # scripts and configure runs, see configure's option --config-cache.
16652 # It is not useful on other systems. If it contains results you don't
16653 # want to keep, you may remove or edit it.
16655 # config.status only pays attention to the cache file if you give it
16656 # the --recheck option to rerun configure.
16658 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16659 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16660 # following values.
16662 _ACEOF
16664 # The following way of writing the cache mishandles newlines in values,
16665 # but we know of no workaround that is simple, portable, and efficient.
16666 # So, don't put newlines in cache variables' values.
16667 # Ultrix sh set writes to stderr and can't be redirected directly,
16668 # and sets the high bit in the cache file unless we assign to the vars.
16670 (set) 2>&1 |
16671 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16672 *ac_space=\ *)
16673 # `set' does not quote correctly, so add quotes (double-quote
16674 # substitution turns \\\\ into \\, and sed turns \\ into \).
16675 sed -n \
16676 "s/'/'\\\\''/g;
16677 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16680 # `set' quotes correctly as required by POSIX, so do not add quotes.
16681 sed -n \
16682 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16684 esac;
16686 sed '
16687 t clear
16688 : clear
16689 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16690 t end
16691 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16692 : end' >>confcache
16693 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16694 if test -w $cache_file; then
16695 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16696 cat confcache >$cache_file
16697 else
16698 echo "not updating unwritable cache $cache_file"
16701 rm -f confcache
16703 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16704 # Let make expand exec_prefix.
16705 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16707 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16708 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16709 # trailing colons and then remove the whole line if VPATH becomes empty
16710 # (actually we leave an empty line to preserve line numbers).
16711 if test "x$srcdir" = x.; then
16712 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16713 s/:*\$(srcdir):*/:/;
16714 s/:*\${srcdir}:*/:/;
16715 s/:*@srcdir@:*/:/;
16716 s/^\([^=]*=[ ]*\):*/\1/;
16717 s/:*$//;
16718 s/^[^=]*=[ ]*$//;
16722 DEFS=-DHAVE_CONFIG_H
16724 ac_libobjs=
16725 ac_ltlibobjs=
16726 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16727 # 1. Remove the extension, and $U if already installed.
16728 ac_i=`echo "$ac_i" |
16729 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16730 # 2. Add them.
16731 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16732 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16733 done
16734 LIBOBJS=$ac_libobjs
16736 LTLIBOBJS=$ac_ltlibobjs
16739 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16740 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16741 Usually this means the macro was only invoked conditionally." >&5
16742 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16743 Usually this means the macro was only invoked conditionally." >&2;}
16744 { (exit 1); exit 1; }; }
16746 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16747 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16748 Usually this means the macro was only invoked conditionally." >&5
16749 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16750 Usually this means the macro was only invoked conditionally." >&2;}
16751 { (exit 1); exit 1; }; }
16753 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16754 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16755 Usually this means the macro was only invoked conditionally." >&5
16756 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16757 Usually this means the macro was only invoked conditionally." >&2;}
16758 { (exit 1); exit 1; }; }
16760 if test -z "${BASH_JAR_TRUE}" && test -z "${BASH_JAR_FALSE}"; then
16761 { { echo "$as_me:$LINENO: error: conditional \"BASH_JAR\" was never defined.
16762 Usually this means the macro was only invoked conditionally." >&5
16763 echo "$as_me: error: conditional \"BASH_JAR\" was never defined.
16764 Usually this means the macro was only invoked conditionally." >&2;}
16765 { (exit 1); exit 1; }; }
16767 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16768 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16769 Usually this means the macro was only invoked conditionally." >&5
16770 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16771 Usually this means the macro was only invoked conditionally." >&2;}
16772 { (exit 1); exit 1; }; }
16774 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
16775 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
16776 Usually this means the macro was only invoked conditionally." >&5
16777 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
16778 Usually this means the macro was only invoked conditionally." >&2;}
16779 { (exit 1); exit 1; }; }
16781 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
16782 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
16783 Usually this means the macro was only invoked conditionally." >&5
16784 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
16785 Usually this means the macro was only invoked conditionally." >&2;}
16786 { (exit 1); exit 1; }; }
16788 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
16789 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
16790 Usually this means the macro was only invoked conditionally." >&5
16791 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
16792 Usually this means the macro was only invoked conditionally." >&2;}
16793 { (exit 1); exit 1; }; }
16795 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
16796 { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
16797 Usually this means the macro was only invoked conditionally." >&5
16798 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
16799 Usually this means the macro was only invoked conditionally." >&2;}
16800 { (exit 1); exit 1; }; }
16802 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
16803 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16804 Usually this means the macro was only invoked conditionally." >&5
16805 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16806 Usually this means the macro was only invoked conditionally." >&2;}
16807 { (exit 1); exit 1; }; }
16809 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
16810 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16811 Usually this means the macro was only invoked conditionally." >&5
16812 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16813 Usually this means the macro was only invoked conditionally." >&2;}
16814 { (exit 1); exit 1; }; }
16816 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
16817 { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
16818 Usually this means the macro was only invoked conditionally." >&5
16819 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
16820 Usually this means the macro was only invoked conditionally." >&2;}
16821 { (exit 1); exit 1; }; }
16823 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
16824 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
16825 Usually this means the macro was only invoked conditionally." >&5
16826 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
16827 Usually this means the macro was only invoked conditionally." >&2;}
16828 { (exit 1); exit 1; }; }
16830 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
16831 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
16832 Usually this means the macro was only invoked conditionally." >&5
16833 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
16834 Usually this means the macro was only invoked conditionally." >&2;}
16835 { (exit 1); exit 1; }; }
16837 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
16838 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
16839 Usually this means the macro was only invoked conditionally." >&5
16840 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
16841 Usually this means the macro was only invoked conditionally." >&2;}
16842 { (exit 1); exit 1; }; }
16844 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
16845 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
16846 Usually this means the macro was only invoked conditionally." >&5
16847 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
16848 Usually this means the macro was only invoked conditionally." >&2;}
16849 { (exit 1); exit 1; }; }
16851 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
16852 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
16853 Usually this means the macro was only invoked conditionally." >&5
16854 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
16855 Usually this means the macro was only invoked conditionally." >&2;}
16856 { (exit 1); exit 1; }; }
16858 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
16859 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
16860 Usually this means the macro was only invoked conditionally." >&5
16861 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
16862 Usually this means the macro was only invoked conditionally." >&2;}
16863 { (exit 1); exit 1; }; }
16865 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
16866 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
16867 Usually this means the macro was only invoked conditionally." >&5
16868 echo "$as_me: error: conditional \"NATIVE\" was never defined.
16869 Usually this means the macro was only invoked conditionally." >&2;}
16870 { (exit 1); exit 1; }; }
16872 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
16873 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
16874 Usually this means the macro was only invoked conditionally." >&5
16875 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
16876 Usually this means the macro was only invoked conditionally." >&2;}
16877 { (exit 1); exit 1; }; }
16880 : ${CONFIG_STATUS=./config.status}
16881 ac_clean_files_save=$ac_clean_files
16882 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16883 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16884 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16885 cat >$CONFIG_STATUS <<_ACEOF
16886 #! $SHELL
16887 # Generated by $as_me.
16888 # Run this file to recreate the current configuration.
16889 # Compiler output produced by configure, useful for debugging
16890 # configure, is in config.log if it exists.
16892 debug=false
16893 ac_cs_recheck=false
16894 ac_cs_silent=false
16895 SHELL=\${CONFIG_SHELL-$SHELL}
16896 _ACEOF
16898 cat >>$CONFIG_STATUS <<\_ACEOF
16899 ## --------------------- ##
16900 ## M4sh Initialization. ##
16901 ## --------------------- ##
16903 # Be Bourne compatible
16904 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16905 emulate sh
16906 NULLCMD=:
16907 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16908 # is contrary to our usage. Disable this feature.
16909 alias -g '${1+"$@"}'='"$@"'
16910 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16911 set -o posix
16913 DUALCASE=1; export DUALCASE # for MKS sh
16915 # Support unset when possible.
16916 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16917 as_unset=unset
16918 else
16919 as_unset=false
16923 # Work around bugs in pre-3.0 UWIN ksh.
16924 $as_unset ENV MAIL MAILPATH
16925 PS1='$ '
16926 PS2='> '
16927 PS4='+ '
16929 # NLS nuisances.
16930 for as_var in \
16931 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16932 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16933 LC_TELEPHONE LC_TIME
16935 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16936 eval $as_var=C; export $as_var
16937 else
16938 $as_unset $as_var
16940 done
16942 # Required to use basename.
16943 if expr a : '\(a\)' >/dev/null 2>&1; then
16944 as_expr=expr
16945 else
16946 as_expr=false
16949 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16950 as_basename=basename
16951 else
16952 as_basename=false
16956 # Name of the executable.
16957 as_me=`$as_basename "$0" ||
16958 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16959 X"$0" : 'X\(//\)$' \| \
16960 X"$0" : 'X\(/\)$' \| \
16961 . : '\(.\)' 2>/dev/null ||
16962 echo X/"$0" |
16963 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16964 /^X\/\(\/\/\)$/{ s//\1/; q; }
16965 /^X\/\(\/\).*/{ s//\1/; q; }
16966 s/.*/./; q'`
16969 # PATH needs CR, and LINENO needs CR and PATH.
16970 # Avoid depending upon Character Ranges.
16971 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16972 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16973 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16974 as_cr_digits='0123456789'
16975 as_cr_alnum=$as_cr_Letters$as_cr_digits
16977 # The user is always right.
16978 if test "${PATH_SEPARATOR+set}" != set; then
16979 echo "#! /bin/sh" >conf$$.sh
16980 echo "exit 0" >>conf$$.sh
16981 chmod +x conf$$.sh
16982 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16983 PATH_SEPARATOR=';'
16984 else
16985 PATH_SEPARATOR=:
16987 rm -f conf$$.sh
16991 as_lineno_1=$LINENO
16992 as_lineno_2=$LINENO
16993 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16994 test "x$as_lineno_1" != "x$as_lineno_2" &&
16995 test "x$as_lineno_3" = "x$as_lineno_2" || {
16996 # Find who we are. Look in the path if we contain no path at all
16997 # relative or not.
16998 case $0 in
16999 *[\\/]* ) as_myself=$0 ;;
17000 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17001 for as_dir in $PATH
17003 IFS=$as_save_IFS
17004 test -z "$as_dir" && as_dir=.
17005 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17006 done
17009 esac
17010 # We did not find ourselves, most probably we were run as `sh COMMAND'
17011 # in which case we are not to be found in the path.
17012 if test "x$as_myself" = x; then
17013 as_myself=$0
17015 if test ! -f "$as_myself"; then
17016 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17017 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17018 { (exit 1); exit 1; }; }
17020 case $CONFIG_SHELL in
17022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17023 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17025 IFS=$as_save_IFS
17026 test -z "$as_dir" && as_dir=.
17027 for as_base in sh bash ksh sh5; do
17028 case $as_dir in
17030 if ("$as_dir/$as_base" -c '
17031 as_lineno_1=$LINENO
17032 as_lineno_2=$LINENO
17033 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17034 test "x$as_lineno_1" != "x$as_lineno_2" &&
17035 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17036 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17037 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17038 CONFIG_SHELL=$as_dir/$as_base
17039 export CONFIG_SHELL
17040 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17041 fi;;
17042 esac
17043 done
17044 done
17046 esac
17048 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17049 # uniformly replaced by the line number. The first 'sed' inserts a
17050 # line-number line before each line; the second 'sed' does the real
17051 # work. The second script uses 'N' to pair each line-number line
17052 # with the numbered line, and appends trailing '-' during
17053 # substitution so that $LINENO is not a special case at line end.
17054 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17055 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17056 sed '=' <$as_myself |
17057 sed '
17059 s,$,-,
17060 : loop
17061 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17062 t loop
17063 s,-$,,
17064 s,^['$as_cr_digits']*\n,,
17065 ' >$as_me.lineno &&
17066 chmod +x $as_me.lineno ||
17067 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17068 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17069 { (exit 1); exit 1; }; }
17071 # Don't try to exec as it changes $[0], causing all sort of problems
17072 # (the dirname of $[0] is not the place where we might find the
17073 # original and so on. Autoconf is especially sensible to this).
17074 . ./$as_me.lineno
17075 # Exit status is that of the last command.
17076 exit
17080 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17081 *c*,-n*) ECHO_N= ECHO_C='
17082 ' ECHO_T=' ' ;;
17083 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17084 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17085 esac
17087 if expr a : '\(a\)' >/dev/null 2>&1; then
17088 as_expr=expr
17089 else
17090 as_expr=false
17093 rm -f conf$$ conf$$.exe conf$$.file
17094 echo >conf$$.file
17095 if ln -s conf$$.file conf$$ 2>/dev/null; then
17096 # We could just check for DJGPP; but this test a) works b) is more generic
17097 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17098 if test -f conf$$.exe; then
17099 # Don't use ln at all; we don't have any links
17100 as_ln_s='cp -p'
17101 else
17102 as_ln_s='ln -s'
17104 elif ln conf$$.file conf$$ 2>/dev/null; then
17105 as_ln_s=ln
17106 else
17107 as_ln_s='cp -p'
17109 rm -f conf$$ conf$$.exe conf$$.file
17111 if mkdir -p . 2>/dev/null; then
17112 as_mkdir_p=:
17113 else
17114 test -d ./-p && rmdir ./-p
17115 as_mkdir_p=false
17118 as_executable_p="test -f"
17120 # Sed expression to map a string onto a valid CPP name.
17121 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17123 # Sed expression to map a string onto a valid variable name.
17124 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17127 # IFS
17128 # We need space, tab and new line, in precisely that order.
17129 as_nl='
17131 IFS=" $as_nl"
17133 # CDPATH.
17134 $as_unset CDPATH
17136 exec 6>&1
17138 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17139 # report actual input values of CONFIG_FILES etc. instead of their
17140 # values after options handling. Logging --version etc. is OK.
17141 exec 5>>config.log
17143 echo
17144 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17145 ## Running $as_me. ##
17146 _ASBOX
17147 } >&5
17148 cat >&5 <<_CSEOF
17150 This file was extended by libjava $as_me version-unused, which was
17151 generated by GNU Autoconf 2.59. Invocation command line was
17153 CONFIG_FILES = $CONFIG_FILES
17154 CONFIG_HEADERS = $CONFIG_HEADERS
17155 CONFIG_LINKS = $CONFIG_LINKS
17156 CONFIG_COMMANDS = $CONFIG_COMMANDS
17157 $ $0 $@
17159 _CSEOF
17160 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17161 echo >&5
17162 _ACEOF
17164 # Files that config.status was made for.
17165 if test -n "$ac_config_files"; then
17166 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17169 if test -n "$ac_config_headers"; then
17170 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17173 if test -n "$ac_config_links"; then
17174 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17177 if test -n "$ac_config_commands"; then
17178 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17181 cat >>$CONFIG_STATUS <<\_ACEOF
17183 ac_cs_usage="\
17184 \`$as_me' instantiates files from templates according to the
17185 current configuration.
17187 Usage: $0 [OPTIONS] [FILE]...
17189 -h, --help print this help, then exit
17190 -V, --version print version number, then exit
17191 -q, --quiet do not print progress messages
17192 -d, --debug don't remove temporary files
17193 --recheck update $as_me by reconfiguring in the same conditions
17194 --file=FILE[:TEMPLATE]
17195 instantiate the configuration file FILE
17196 --header=FILE[:TEMPLATE]
17197 instantiate the configuration header FILE
17199 Configuration files:
17200 $config_files
17202 Configuration headers:
17203 $config_headers
17205 Configuration links:
17206 $config_links
17208 Configuration commands:
17209 $config_commands
17211 Report bugs to <bug-autoconf@gnu.org>."
17212 _ACEOF
17214 cat >>$CONFIG_STATUS <<_ACEOF
17215 ac_cs_version="\\
17216 libjava config.status version-unused
17217 configured by $0, generated by GNU Autoconf 2.59,
17218 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17220 Copyright (C) 2003 Free Software Foundation, Inc.
17221 This config.status script is free software; the Free Software Foundation
17222 gives unlimited permission to copy, distribute and modify it."
17223 srcdir=$srcdir
17224 INSTALL="$INSTALL"
17225 _ACEOF
17227 cat >>$CONFIG_STATUS <<\_ACEOF
17228 # If no file are specified by the user, then we need to provide default
17229 # value. By we need to know if files were specified by the user.
17230 ac_need_defaults=:
17231 while test $# != 0
17233 case $1 in
17234 --*=*)
17235 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17236 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17237 ac_shift=:
17240 ac_option=$1
17241 ac_optarg=$2
17242 ac_shift=shift
17244 *) # This is not an option, so the user has probably given explicit
17245 # arguments.
17246 ac_option=$1
17247 ac_need_defaults=false;;
17248 esac
17250 case $ac_option in
17251 # Handling of the options.
17252 _ACEOF
17253 cat >>$CONFIG_STATUS <<\_ACEOF
17254 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17255 ac_cs_recheck=: ;;
17256 --version | --vers* | -V )
17257 echo "$ac_cs_version"; exit 0 ;;
17258 --he | --h)
17259 # Conflict between --help and --header
17260 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17261 Try \`$0 --help' for more information." >&5
17262 echo "$as_me: error: ambiguous option: $1
17263 Try \`$0 --help' for more information." >&2;}
17264 { (exit 1); exit 1; }; };;
17265 --help | --hel | -h )
17266 echo "$ac_cs_usage"; exit 0 ;;
17267 --debug | --d* | -d )
17268 debug=: ;;
17269 --file | --fil | --fi | --f )
17270 $ac_shift
17271 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17272 ac_need_defaults=false;;
17273 --header | --heade | --head | --hea )
17274 $ac_shift
17275 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17276 ac_need_defaults=false;;
17277 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17278 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17279 ac_cs_silent=: ;;
17281 # This is an error.
17282 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17283 Try \`$0 --help' for more information." >&5
17284 echo "$as_me: error: unrecognized option: $1
17285 Try \`$0 --help' for more information." >&2;}
17286 { (exit 1); exit 1; }; } ;;
17288 *) ac_config_targets="$ac_config_targets $1" ;;
17290 esac
17291 shift
17292 done
17294 ac_configure_extra_args=
17296 if $ac_cs_silent; then
17297 exec 6>/dev/null
17298 ac_configure_extra_args="$ac_configure_extra_args --silent"
17301 _ACEOF
17302 cat >>$CONFIG_STATUS <<_ACEOF
17303 if \$ac_cs_recheck; then
17304 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17305 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17308 _ACEOF
17310 cat >>$CONFIG_STATUS <<_ACEOF
17312 # INIT-COMMANDS section.
17315 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17316 srcdir=${srcdir}
17317 host=${host}
17318 target=${target}
17319 with_multisubdir=${with_multisubdir}
17320 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17321 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17322 libgcj_basedir=${libgcj_basedir}
17323 CC="${CC}"
17324 CXX="${CXX}"
17325 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
17328 _ACEOF
17332 cat >>$CONFIG_STATUS <<\_ACEOF
17333 for ac_config_target in $ac_config_targets
17335 case "$ac_config_target" in
17336 # Handling of arguments.
17337 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17338 "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
17339 "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
17340 "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
17341 "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
17342 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17343 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17344 "scripts/jar" ) CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
17345 "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
17346 "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
17347 "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
17348 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
17349 "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
17350 "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
17351 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
17352 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
17353 "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
17354 "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
17355 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
17356 "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
17357 "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
17358 "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
17359 "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
17360 "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
17361 "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
17362 "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
17363 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17364 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17365 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17366 "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
17367 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17368 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17369 { (exit 1); exit 1; }; };;
17370 esac
17371 done
17373 # If the user did not use the arguments to specify the items to instantiate,
17374 # then the envvar interface is used. Set only those that are not.
17375 # We use the long form for the default assignment because of an extremely
17376 # bizarre bug on SunOS 4.1.3.
17377 if $ac_need_defaults; then
17378 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17379 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17380 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17381 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17384 # Have a temporary directory for convenience. Make it in the build tree
17385 # simply because there is no reason to put it here, and in addition,
17386 # creating and moving files from /tmp can sometimes cause problems.
17387 # Create a temporary directory, and hook for its removal unless debugging.
17388 $debug ||
17390 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17391 trap '{ (exit 1); exit 1; }' 1 2 13 15
17394 # Create a (secure) tmp directory for tmp files.
17397 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17398 test -n "$tmp" && test -d "$tmp"
17399 } ||
17401 tmp=./confstat$$-$RANDOM
17402 (umask 077 && mkdir $tmp)
17403 } ||
17405 echo "$me: cannot create a temporary directory in ." >&2
17406 { (exit 1); exit 1; }
17409 _ACEOF
17411 cat >>$CONFIG_STATUS <<_ACEOF
17414 # CONFIG_FILES section.
17417 # No need to generate the scripts if there are no CONFIG_FILES.
17418 # This happens for instance when ./config.status config.h
17419 if test -n "\$CONFIG_FILES"; then
17420 # Protect against being on the right side of a sed subst in config.status.
17421 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17422 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17423 s,@SHELL@,$SHELL,;t t
17424 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17425 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17426 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17427 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17428 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17429 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17430 s,@exec_prefix@,$exec_prefix,;t t
17431 s,@prefix@,$prefix,;t t
17432 s,@program_transform_name@,$program_transform_name,;t t
17433 s,@bindir@,$bindir,;t t
17434 s,@sbindir@,$sbindir,;t t
17435 s,@libexecdir@,$libexecdir,;t t
17436 s,@datadir@,$datadir,;t t
17437 s,@sysconfdir@,$sysconfdir,;t t
17438 s,@sharedstatedir@,$sharedstatedir,;t t
17439 s,@localstatedir@,$localstatedir,;t t
17440 s,@libdir@,$libdir,;t t
17441 s,@includedir@,$includedir,;t t
17442 s,@oldincludedir@,$oldincludedir,;t t
17443 s,@infodir@,$infodir,;t t
17444 s,@mandir@,$mandir,;t t
17445 s,@build_alias@,$build_alias,;t t
17446 s,@host_alias@,$host_alias,;t t
17447 s,@target_alias@,$target_alias,;t t
17448 s,@DEFS@,$DEFS,;t t
17449 s,@ECHO_C@,$ECHO_C,;t t
17450 s,@ECHO_N@,$ECHO_N,;t t
17451 s,@ECHO_T@,$ECHO_T,;t t
17452 s,@LIBS@,$LIBS,;t t
17453 s,@build@,$build,;t t
17454 s,@build_cpu@,$build_cpu,;t t
17455 s,@build_vendor@,$build_vendor,;t t
17456 s,@build_os@,$build_os,;t t
17457 s,@build_libsubdir@,$build_libsubdir,;t t
17458 s,@build_subdir@,$build_subdir,;t t
17459 s,@host_subdir@,$host_subdir,;t t
17460 s,@target_subdir@,$target_subdir,;t t
17461 s,@libgcj_basedir@,$libgcj_basedir,;t t
17462 s,@host@,$host,;t t
17463 s,@host_cpu@,$host_cpu,;t t
17464 s,@host_vendor@,$host_vendor,;t t
17465 s,@host_os@,$host_os,;t t
17466 s,@target@,$target,;t t
17467 s,@target_cpu@,$target_cpu,;t t
17468 s,@target_vendor@,$target_vendor,;t t
17469 s,@target_os@,$target_os,;t t
17470 s,@target_noncanonical@,$target_noncanonical,;t t
17471 s,@LN_S@,$LN_S,;t t
17472 s,@mkinstalldirs@,$mkinstalldirs,;t t
17473 s,@CC@,$CC,;t t
17474 s,@ac_ct_CC@,$ac_ct_CC,;t t
17475 s,@EXEEXT@,$EXEEXT,;t t
17476 s,@OBJEXT@,$OBJEXT,;t t
17477 s,@CXX@,$CXX,;t t
17478 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17479 s,@CFLAGS@,$CFLAGS,;t t
17480 s,@CXXFLAGS@,$CXXFLAGS,;t t
17481 s,@LDFLAGS@,$LDFLAGS,;t t
17482 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17483 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17484 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17485 s,@CYGPATH_W@,$CYGPATH_W,;t t
17486 s,@PACKAGE@,$PACKAGE,;t t
17487 s,@VERSION@,$VERSION,;t t
17488 s,@ACLOCAL@,$ACLOCAL,;t t
17489 s,@AUTOCONF@,$AUTOCONF,;t t
17490 s,@AUTOMAKE@,$AUTOMAKE,;t t
17491 s,@AUTOHEADER@,$AUTOHEADER,;t t
17492 s,@MAKEINFO@,$MAKEINFO,;t t
17493 s,@install_sh@,$install_sh,;t t
17494 s,@STRIP@,$STRIP,;t t
17495 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17496 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17497 s,@mkdir_p@,$mkdir_p,;t t
17498 s,@AWK@,$AWK,;t t
17499 s,@SET_MAKE@,$SET_MAKE,;t t
17500 s,@am__leading_dot@,$am__leading_dot,;t t
17501 s,@AMTAR@,$AMTAR,;t t
17502 s,@am__tar@,$am__tar,;t t
17503 s,@am__untar@,$am__untar,;t t
17504 s,@DEPDIR@,$DEPDIR,;t t
17505 s,@am__include@,$am__include,;t t
17506 s,@am__quote@,$am__quote,;t t
17507 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17508 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17509 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17510 s,@CCDEPMODE@,$CCDEPMODE,;t t
17511 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17512 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17513 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17514 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17515 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17516 s,@AS@,$AS,;t t
17517 s,@ac_ct_AS@,$ac_ct_AS,;t t
17518 s,@LD@,$LD,;t t
17519 s,@ac_ct_LD@,$ac_ct_LD,;t t
17520 s,@AR@,$AR,;t t
17521 s,@ac_ct_AR@,$ac_ct_AR,;t t
17522 s,@RANLIB@,$RANLIB,;t t
17523 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17524 s,@JAR@,$JAR,;t t
17525 s,@ZIP@,$ZIP,;t t
17526 s,@UNZIP@,$UNZIP,;t t
17527 s,@BASH_JAR_TRUE@,$BASH_JAR_TRUE,;t t
17528 s,@BASH_JAR_FALSE@,$BASH_JAR_FALSE,;t t
17529 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17530 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17531 s,@MAINT@,$MAINT,;t t
17532 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
17533 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
17534 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
17535 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
17536 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
17537 s,@TOOLKIT@,$TOOLKIT,;t t
17538 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
17539 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
17540 s,@GCJH@,$GCJH,;t t
17541 s,@INCLTDL@,$INCLTDL,;t t
17542 s,@LIBLTDL@,$LIBLTDL,;t t
17543 s,@DIRLTDL@,$DIRLTDL,;t t
17544 s,@LIBTOOL@,$LIBTOOL,;t t
17545 s,@CXXCPP@,$CXXCPP,;t t
17546 s,@CPPFLAGS@,$CPPFLAGS,;t t
17547 s,@GCJ@,$GCJ,;t t
17548 s,@GCJFLAGS@,$GCJFLAGS,;t t
17549 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
17550 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
17551 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
17552 s,@subdirs@,$subdirs,;t t
17553 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
17554 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
17555 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
17556 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
17557 s,@JAVA_HOME@,$JAVA_HOME,;t t
17558 s,@INTERPRETER@,$INTERPRETER,;t t
17559 s,@LIBFFI@,$LIBFFI,;t t
17560 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
17561 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
17562 s,@CPP@,$CPP,;t t
17563 s,@EGREP@,$EGREP,;t t
17564 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
17565 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
17566 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
17567 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
17568 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
17569 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
17570 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
17571 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
17572 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
17573 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
17574 s,@X_CFLAGS@,$X_CFLAGS,;t t
17575 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17576 s,@X_LIBS@,$X_LIBS,;t t
17577 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17578 s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
17579 s,@GCLIBS@,$GCLIBS,;t t
17580 s,@GCINCS@,$GCINCS,;t t
17581 s,@GCDEPS@,$GCDEPS,;t t
17582 s,@GCSPEC@,$GCSPEC,;t t
17583 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
17584 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
17585 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
17586 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
17587 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
17588 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
17589 s,@THREADLIBS@,$THREADLIBS,;t t
17590 s,@THREADINCS@,$THREADINCS,;t t
17591 s,@THREADDEPS@,$THREADDEPS,;t t
17592 s,@THREADSPEC@,$THREADSPEC,;t t
17593 s,@THREADSTARTFILESPEC@,$THREADSTARTFILESPEC,;t t
17594 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
17595 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
17596 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
17597 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
17598 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
17599 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
17600 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
17601 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
17602 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
17603 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
17604 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
17605 s,@LIBICONV@,$LIBICONV,;t t
17606 s,@LTLIBICONV@,$LTLIBICONV,;t t
17607 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
17608 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
17609 s,@GTK_LIBS@,$GTK_LIBS,;t t
17610 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
17611 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
17612 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
17613 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
17614 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
17615 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
17616 s,@ZLIBS@,$ZLIBS,;t t
17617 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
17618 s,@ZINCS@,$ZINCS,;t t
17619 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
17620 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
17621 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
17622 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
17623 s,@IEEESPEC@,$IEEESPEC,;t t
17624 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
17625 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
17626 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
17627 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
17628 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
17629 s,@toolexecdir@,$toolexecdir,;t t
17630 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
17631 s,@toolexeclibdir@,$toolexeclibdir,;t t
17632 s,@dbexecdir@,$dbexecdir,;t t
17633 s,@GCJVERSION@,$GCJVERSION,;t t
17634 s,@gxx_include_dir@,$gxx_include_dir,;t t
17635 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
17636 s,@ALLOCA@,$ALLOCA,;t t
17637 s,@PERL@,$PERL,;t t
17638 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
17639 s,@LD_START_STATIC_SPEC@,$LD_START_STATIC_SPEC,;t t
17640 s,@LD_FINISH_STATIC_SPEC@,$LD_FINISH_STATIC_SPEC,;t t
17641 s,@here@,$here,;t t
17642 s,@LIBOBJS@,$LIBOBJS,;t t
17643 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17644 CEOF
17646 _ACEOF
17648 cat >>$CONFIG_STATUS <<\_ACEOF
17649 # Split the substitutions into bite-sized pieces for seds with
17650 # small command number limits, like on Digital OSF/1 and HP-UX.
17651 ac_max_sed_lines=48
17652 ac_sed_frag=1 # Number of current file.
17653 ac_beg=1 # First line for current file.
17654 ac_end=$ac_max_sed_lines # Line after last line for current file.
17655 ac_more_lines=:
17656 ac_sed_cmds=
17657 while $ac_more_lines; do
17658 if test $ac_beg -gt 1; then
17659 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17660 else
17661 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17663 if test ! -s $tmp/subs.frag; then
17664 ac_more_lines=false
17665 else
17666 # The purpose of the label and of the branching condition is to
17667 # speed up the sed processing (if there are no `@' at all, there
17668 # is no need to browse any of the substitutions).
17669 # These are the two extra sed commands mentioned above.
17670 (echo ':t
17671 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17672 if test -z "$ac_sed_cmds"; then
17673 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17674 else
17675 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17677 ac_sed_frag=`expr $ac_sed_frag + 1`
17678 ac_beg=$ac_end
17679 ac_end=`expr $ac_end + $ac_max_sed_lines`
17681 done
17682 if test -z "$ac_sed_cmds"; then
17683 ac_sed_cmds=cat
17685 fi # test -n "$CONFIG_FILES"
17687 _ACEOF
17688 cat >>$CONFIG_STATUS <<\_ACEOF
17689 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17690 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17691 case $ac_file in
17692 - | *:- | *:-:* ) # input from stdin
17693 cat >$tmp/stdin
17694 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17695 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17696 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17697 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17698 * ) ac_file_in=$ac_file.in ;;
17699 esac
17701 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17702 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17703 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17704 X"$ac_file" : 'X\(//\)[^/]' \| \
17705 X"$ac_file" : 'X\(//\)$' \| \
17706 X"$ac_file" : 'X\(/\)' \| \
17707 . : '\(.\)' 2>/dev/null ||
17708 echo X"$ac_file" |
17709 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17710 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17711 /^X\(\/\/\)$/{ s//\1/; q; }
17712 /^X\(\/\).*/{ s//\1/; q; }
17713 s/.*/./; q'`
17714 { if $as_mkdir_p; then
17715 mkdir -p "$ac_dir"
17716 else
17717 as_dir="$ac_dir"
17718 as_dirs=
17719 while test ! -d "$as_dir"; do
17720 as_dirs="$as_dir $as_dirs"
17721 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17722 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17723 X"$as_dir" : 'X\(//\)[^/]' \| \
17724 X"$as_dir" : 'X\(//\)$' \| \
17725 X"$as_dir" : 'X\(/\)' \| \
17726 . : '\(.\)' 2>/dev/null ||
17727 echo X"$as_dir" |
17728 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17729 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17730 /^X\(\/\/\)$/{ s//\1/; q; }
17731 /^X\(\/\).*/{ s//\1/; q; }
17732 s/.*/./; q'`
17733 done
17734 test ! -n "$as_dirs" || mkdir $as_dirs
17735 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17736 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17737 { (exit 1); exit 1; }; }; }
17739 ac_builddir=.
17741 if test "$ac_dir" != .; then
17742 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17743 # A "../" for each directory in $ac_dir_suffix.
17744 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17745 else
17746 ac_dir_suffix= ac_top_builddir=
17749 case $srcdir in
17750 .) # No --srcdir option. We are building in place.
17751 ac_srcdir=.
17752 if test -z "$ac_top_builddir"; then
17753 ac_top_srcdir=.
17754 else
17755 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17756 fi ;;
17757 [\\/]* | ?:[\\/]* ) # Absolute path.
17758 ac_srcdir=$srcdir$ac_dir_suffix;
17759 ac_top_srcdir=$srcdir ;;
17760 *) # Relative path.
17761 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17762 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17763 esac
17765 # Do not use `cd foo && pwd` to compute absolute paths, because
17766 # the directories may not exist.
17767 case `pwd` in
17768 .) ac_abs_builddir="$ac_dir";;
17770 case "$ac_dir" in
17771 .) ac_abs_builddir=`pwd`;;
17772 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17773 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17774 esac;;
17775 esac
17776 case $ac_abs_builddir in
17777 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17779 case ${ac_top_builddir}. in
17780 .) ac_abs_top_builddir=$ac_abs_builddir;;
17781 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17782 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17783 esac;;
17784 esac
17785 case $ac_abs_builddir in
17786 .) ac_abs_srcdir=$ac_srcdir;;
17788 case $ac_srcdir in
17789 .) ac_abs_srcdir=$ac_abs_builddir;;
17790 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17791 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17792 esac;;
17793 esac
17794 case $ac_abs_builddir in
17795 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17797 case $ac_top_srcdir in
17798 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17799 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17800 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17801 esac;;
17802 esac
17805 case $INSTALL in
17806 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17807 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17808 esac
17810 if test x"$ac_file" != x-; then
17811 { echo "$as_me:$LINENO: creating $ac_file" >&5
17812 echo "$as_me: creating $ac_file" >&6;}
17813 rm -f "$ac_file"
17815 # Let's still pretend it is `configure' which instantiates (i.e., don't
17816 # use $as_me), people would be surprised to read:
17817 # /* config.h. Generated by config.status. */
17818 if test x"$ac_file" = x-; then
17819 configure_input=
17820 else
17821 configure_input="$ac_file. "
17823 configure_input=$configure_input"Generated from `echo $ac_file_in |
17824 sed 's,.*/,,'` by configure."
17826 # First look for the input files in the build tree, otherwise in the
17827 # src tree.
17828 ac_file_inputs=`IFS=:
17829 for f in $ac_file_in; do
17830 case $f in
17831 -) echo $tmp/stdin ;;
17832 [\\/$]*)
17833 # Absolute (can't be DOS-style, as IFS=:)
17834 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17835 echo "$as_me: error: cannot find input file: $f" >&2;}
17836 { (exit 1); exit 1; }; }
17837 echo "$f";;
17838 *) # Relative
17839 if test -f "$f"; then
17840 # Build tree
17841 echo "$f"
17842 elif test -f "$srcdir/$f"; then
17843 # Source tree
17844 echo "$srcdir/$f"
17845 else
17846 # /dev/null tree
17847 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17848 echo "$as_me: error: cannot find input file: $f" >&2;}
17849 { (exit 1); exit 1; }; }
17850 fi;;
17851 esac
17852 done` || { (exit 1); exit 1; }
17853 _ACEOF
17854 cat >>$CONFIG_STATUS <<_ACEOF
17855 sed "$ac_vpsub
17856 $extrasub
17857 _ACEOF
17858 cat >>$CONFIG_STATUS <<\_ACEOF
17860 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17861 s,@configure_input@,$configure_input,;t t
17862 s,@srcdir@,$ac_srcdir,;t t
17863 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17864 s,@top_srcdir@,$ac_top_srcdir,;t t
17865 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17866 s,@builddir@,$ac_builddir,;t t
17867 s,@abs_builddir@,$ac_abs_builddir,;t t
17868 s,@top_builddir@,$ac_top_builddir,;t t
17869 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17870 s,@INSTALL@,$ac_INSTALL,;t t
17871 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17872 rm -f $tmp/stdin
17873 if test x"$ac_file" != x-; then
17874 mv $tmp/out $ac_file
17875 else
17876 cat $tmp/out
17877 rm -f $tmp/out
17880 # Run the commands associated with the file.
17881 case $ac_file in
17882 scripts/jar ) chmod +x scripts/jar ;;
17883 esac
17884 done
17885 _ACEOF
17886 cat >>$CONFIG_STATUS <<\_ACEOF
17889 # CONFIG_HEADER section.
17892 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17893 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17895 # ac_d sets the value in "#define NAME VALUE" lines.
17896 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17897 ac_dB='[ ].*$,\1#\2'
17898 ac_dC=' '
17899 ac_dD=',;t'
17900 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17901 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17902 ac_uB='$,\1#\2define\3'
17903 ac_uC=' '
17904 ac_uD=',;t'
17906 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17907 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17908 case $ac_file in
17909 - | *:- | *:-:* ) # input from stdin
17910 cat >$tmp/stdin
17911 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17912 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17913 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17914 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17915 * ) ac_file_in=$ac_file.in ;;
17916 esac
17918 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17919 echo "$as_me: creating $ac_file" >&6;}
17921 # First look for the input files in the build tree, otherwise in the
17922 # src tree.
17923 ac_file_inputs=`IFS=:
17924 for f in $ac_file_in; do
17925 case $f in
17926 -) echo $tmp/stdin ;;
17927 [\\/$]*)
17928 # Absolute (can't be DOS-style, as IFS=:)
17929 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17930 echo "$as_me: error: cannot find input file: $f" >&2;}
17931 { (exit 1); exit 1; }; }
17932 # Do quote $f, to prevent DOS paths from being IFS'd.
17933 echo "$f";;
17934 *) # Relative
17935 if test -f "$f"; then
17936 # Build tree
17937 echo "$f"
17938 elif test -f "$srcdir/$f"; then
17939 # Source tree
17940 echo "$srcdir/$f"
17941 else
17942 # /dev/null tree
17943 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17944 echo "$as_me: error: cannot find input file: $f" >&2;}
17945 { (exit 1); exit 1; }; }
17946 fi;;
17947 esac
17948 done` || { (exit 1); exit 1; }
17949 # Remove the trailing spaces.
17950 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17952 _ACEOF
17954 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17955 # `conftest.undefs', that substitutes the proper values into
17956 # config.h.in to produce config.h. The first handles `#define'
17957 # templates, and the second `#undef' templates.
17958 # And first: Protect against being on the right side of a sed subst in
17959 # config.status. Protect against being in an unquoted here document
17960 # in config.status.
17961 rm -f conftest.defines conftest.undefs
17962 # Using a here document instead of a string reduces the quoting nightmare.
17963 # Putting comments in sed scripts is not portable.
17965 # `end' is used to avoid that the second main sed command (meant for
17966 # 0-ary CPP macros) applies to n-ary macro definitions.
17967 # See the Autoconf documentation for `clear'.
17968 cat >confdef2sed.sed <<\_ACEOF
17969 s/[\\&,]/\\&/g
17970 s,[\\$`],\\&,g
17971 t clear
17972 : clear
17973 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17974 t end
17975 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17976 : end
17977 _ACEOF
17978 # If some macros were called several times there might be several times
17979 # the same #defines, which is useless. Nevertheless, we may not want to
17980 # sort them, since we want the *last* AC-DEFINE to be honored.
17981 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17982 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17983 rm -f confdef2sed.sed
17985 # This sed command replaces #undef with comments. This is necessary, for
17986 # example, in the case of _POSIX_SOURCE, which is predefined and required
17987 # on some systems where configure will not decide to define it.
17988 cat >>conftest.undefs <<\_ACEOF
17989 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17990 _ACEOF
17992 # Break up conftest.defines because some shells have a limit on the size
17993 # of here documents, and old seds have small limits too (100 cmds).
17994 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17995 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17996 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17997 echo ' :' >>$CONFIG_STATUS
17998 rm -f conftest.tail
17999 while grep . conftest.defines >/dev/null
18001 # Write a limited-size here document to $tmp/defines.sed.
18002 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18003 # Speed up: don't consider the non `#define' lines.
18004 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18005 # Work around the forget-to-reset-the-flag bug.
18006 echo 't clr' >>$CONFIG_STATUS
18007 echo ': clr' >>$CONFIG_STATUS
18008 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18009 echo 'CEOF
18010 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18011 rm -f $tmp/in
18012 mv $tmp/out $tmp/in
18013 ' >>$CONFIG_STATUS
18014 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18015 rm -f conftest.defines
18016 mv conftest.tail conftest.defines
18017 done
18018 rm -f conftest.defines
18019 echo ' fi # grep' >>$CONFIG_STATUS
18020 echo >>$CONFIG_STATUS
18022 # Break up conftest.undefs because some shells have a limit on the size
18023 # of here documents, and old seds have small limits too (100 cmds).
18024 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18025 rm -f conftest.tail
18026 while grep . conftest.undefs >/dev/null
18028 # Write a limited-size here document to $tmp/undefs.sed.
18029 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18030 # Speed up: don't consider the non `#undef'
18031 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18032 # Work around the forget-to-reset-the-flag bug.
18033 echo 't clr' >>$CONFIG_STATUS
18034 echo ': clr' >>$CONFIG_STATUS
18035 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18036 echo 'CEOF
18037 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18038 rm -f $tmp/in
18039 mv $tmp/out $tmp/in
18040 ' >>$CONFIG_STATUS
18041 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18042 rm -f conftest.undefs
18043 mv conftest.tail conftest.undefs
18044 done
18045 rm -f conftest.undefs
18047 cat >>$CONFIG_STATUS <<\_ACEOF
18048 # Let's still pretend it is `configure' which instantiates (i.e., don't
18049 # use $as_me), people would be surprised to read:
18050 # /* config.h. Generated by config.status. */
18051 if test x"$ac_file" = x-; then
18052 echo "/* Generated by configure. */" >$tmp/config.h
18053 else
18054 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18056 cat $tmp/in >>$tmp/config.h
18057 rm -f $tmp/in
18058 if test x"$ac_file" != x-; then
18059 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18060 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18061 echo "$as_me: $ac_file is unchanged" >&6;}
18062 else
18063 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18064 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18065 X"$ac_file" : 'X\(//\)[^/]' \| \
18066 X"$ac_file" : 'X\(//\)$' \| \
18067 X"$ac_file" : 'X\(/\)' \| \
18068 . : '\(.\)' 2>/dev/null ||
18069 echo X"$ac_file" |
18070 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18071 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18072 /^X\(\/\/\)$/{ s//\1/; q; }
18073 /^X\(\/\).*/{ s//\1/; q; }
18074 s/.*/./; q'`
18075 { if $as_mkdir_p; then
18076 mkdir -p "$ac_dir"
18077 else
18078 as_dir="$ac_dir"
18079 as_dirs=
18080 while test ! -d "$as_dir"; do
18081 as_dirs="$as_dir $as_dirs"
18082 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18083 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18084 X"$as_dir" : 'X\(//\)[^/]' \| \
18085 X"$as_dir" : 'X\(//\)$' \| \
18086 X"$as_dir" : 'X\(/\)' \| \
18087 . : '\(.\)' 2>/dev/null ||
18088 echo X"$as_dir" |
18089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18090 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18091 /^X\(\/\/\)$/{ s//\1/; q; }
18092 /^X\(\/\).*/{ s//\1/; q; }
18093 s/.*/./; q'`
18094 done
18095 test ! -n "$as_dirs" || mkdir $as_dirs
18096 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18097 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18098 { (exit 1); exit 1; }; }; }
18100 rm -f $ac_file
18101 mv $tmp/config.h $ac_file
18103 else
18104 cat $tmp/config.h
18105 rm -f $tmp/config.h
18107 # Compute $ac_file's index in $config_headers.
18108 _am_stamp_count=1
18109 for _am_header in $config_headers :; do
18110 case $_am_header in
18111 $ac_file | $ac_file:* )
18112 break ;;
18114 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18115 esac
18116 done
18117 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
18118 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18119 X$ac_file : 'X\(//\)[^/]' \| \
18120 X$ac_file : 'X\(//\)$' \| \
18121 X$ac_file : 'X\(/\)' \| \
18122 . : '\(.\)' 2>/dev/null ||
18123 echo X$ac_file |
18124 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18125 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18126 /^X\(\/\/\)$/{ s//\1/; q; }
18127 /^X\(\/\).*/{ s//\1/; q; }
18128 s/.*/./; q'`/stamp-h$_am_stamp_count
18129 done
18130 _ACEOF
18131 cat >>$CONFIG_STATUS <<\_ACEOF
18134 # CONFIG_LINKS section.
18137 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18138 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18139 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18141 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18142 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18144 if test ! -r $srcdir/$ac_source; then
18145 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18146 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18147 { (exit 1); exit 1; }; }
18149 rm -f $ac_dest
18151 # Make relative symlinks.
18152 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18153 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18154 X"$ac_dest" : 'X\(//\)[^/]' \| \
18155 X"$ac_dest" : 'X\(//\)$' \| \
18156 X"$ac_dest" : 'X\(/\)' \| \
18157 . : '\(.\)' 2>/dev/null ||
18158 echo X"$ac_dest" |
18159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18160 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18161 /^X\(\/\/\)$/{ s//\1/; q; }
18162 /^X\(\/\).*/{ s//\1/; q; }
18163 s/.*/./; q'`
18164 { if $as_mkdir_p; then
18165 mkdir -p "$ac_dest_dir"
18166 else
18167 as_dir="$ac_dest_dir"
18168 as_dirs=
18169 while test ! -d "$as_dir"; do
18170 as_dirs="$as_dir $as_dirs"
18171 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18172 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18173 X"$as_dir" : 'X\(//\)[^/]' \| \
18174 X"$as_dir" : 'X\(//\)$' \| \
18175 X"$as_dir" : 'X\(/\)' \| \
18176 . : '\(.\)' 2>/dev/null ||
18177 echo X"$as_dir" |
18178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18179 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18180 /^X\(\/\/\)$/{ s//\1/; q; }
18181 /^X\(\/\).*/{ s//\1/; q; }
18182 s/.*/./; q'`
18183 done
18184 test ! -n "$as_dirs" || mkdir $as_dirs
18185 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
18186 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
18187 { (exit 1); exit 1; }; }; }
18189 ac_builddir=.
18191 if test "$ac_dest_dir" != .; then
18192 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18193 # A "../" for each directory in $ac_dir_suffix.
18194 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18195 else
18196 ac_dir_suffix= ac_top_builddir=
18199 case $srcdir in
18200 .) # No --srcdir option. We are building in place.
18201 ac_srcdir=.
18202 if test -z "$ac_top_builddir"; then
18203 ac_top_srcdir=.
18204 else
18205 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18206 fi ;;
18207 [\\/]* | ?:[\\/]* ) # Absolute path.
18208 ac_srcdir=$srcdir$ac_dir_suffix;
18209 ac_top_srcdir=$srcdir ;;
18210 *) # Relative path.
18211 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18212 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18213 esac
18215 # Do not use `cd foo && pwd` to compute absolute paths, because
18216 # the directories may not exist.
18217 case `pwd` in
18218 .) ac_abs_builddir="$ac_dest_dir";;
18220 case "$ac_dest_dir" in
18221 .) ac_abs_builddir=`pwd`;;
18222 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
18223 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
18224 esac;;
18225 esac
18226 case $ac_abs_builddir in
18227 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18229 case ${ac_top_builddir}. in
18230 .) ac_abs_top_builddir=$ac_abs_builddir;;
18231 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18232 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18233 esac;;
18234 esac
18235 case $ac_abs_builddir in
18236 .) ac_abs_srcdir=$ac_srcdir;;
18238 case $ac_srcdir in
18239 .) ac_abs_srcdir=$ac_abs_builddir;;
18240 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18241 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18242 esac;;
18243 esac
18244 case $ac_abs_builddir in
18245 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18247 case $ac_top_srcdir in
18248 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18249 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18250 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18251 esac;;
18252 esac
18255 case $srcdir in
18256 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18257 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18258 esac
18260 # Try a symlink, then a hard link, then a copy.
18261 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18262 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
18263 cp -p $srcdir/$ac_source $ac_dest ||
18264 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
18265 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
18266 { (exit 1); exit 1; }; }
18267 done
18268 _ACEOF
18269 cat >>$CONFIG_STATUS <<\_ACEOF
18272 # CONFIG_COMMANDS section.
18274 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18275 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18276 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18277 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18278 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18279 X"$ac_dest" : 'X\(//\)[^/]' \| \
18280 X"$ac_dest" : 'X\(//\)$' \| \
18281 X"$ac_dest" : 'X\(/\)' \| \
18282 . : '\(.\)' 2>/dev/null ||
18283 echo X"$ac_dest" |
18284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18285 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18286 /^X\(\/\/\)$/{ s//\1/; q; }
18287 /^X\(\/\).*/{ s//\1/; q; }
18288 s/.*/./; q'`
18289 { if $as_mkdir_p; then
18290 mkdir -p "$ac_dir"
18291 else
18292 as_dir="$ac_dir"
18293 as_dirs=
18294 while test ! -d "$as_dir"; do
18295 as_dirs="$as_dir $as_dirs"
18296 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18298 X"$as_dir" : 'X\(//\)[^/]' \| \
18299 X"$as_dir" : 'X\(//\)$' \| \
18300 X"$as_dir" : 'X\(/\)' \| \
18301 . : '\(.\)' 2>/dev/null ||
18302 echo X"$as_dir" |
18303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18304 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18305 /^X\(\/\/\)$/{ s//\1/; q; }
18306 /^X\(\/\).*/{ s//\1/; q; }
18307 s/.*/./; q'`
18308 done
18309 test ! -n "$as_dirs" || mkdir $as_dirs
18310 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18311 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18312 { (exit 1); exit 1; }; }; }
18314 ac_builddir=.
18316 if test "$ac_dir" != .; then
18317 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18318 # A "../" for each directory in $ac_dir_suffix.
18319 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18320 else
18321 ac_dir_suffix= ac_top_builddir=
18324 case $srcdir in
18325 .) # No --srcdir option. We are building in place.
18326 ac_srcdir=.
18327 if test -z "$ac_top_builddir"; then
18328 ac_top_srcdir=.
18329 else
18330 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18331 fi ;;
18332 [\\/]* | ?:[\\/]* ) # Absolute path.
18333 ac_srcdir=$srcdir$ac_dir_suffix;
18334 ac_top_srcdir=$srcdir ;;
18335 *) # Relative path.
18336 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18337 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18338 esac
18340 # Do not use `cd foo && pwd` to compute absolute paths, because
18341 # the directories may not exist.
18342 case `pwd` in
18343 .) ac_abs_builddir="$ac_dir";;
18345 case "$ac_dir" in
18346 .) ac_abs_builddir=`pwd`;;
18347 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18348 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18349 esac;;
18350 esac
18351 case $ac_abs_builddir in
18352 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18354 case ${ac_top_builddir}. in
18355 .) ac_abs_top_builddir=$ac_abs_builddir;;
18356 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18357 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18358 esac;;
18359 esac
18360 case $ac_abs_builddir in
18361 .) ac_abs_srcdir=$ac_srcdir;;
18363 case $ac_srcdir in
18364 .) ac_abs_srcdir=$ac_abs_builddir;;
18365 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18366 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18367 esac;;
18368 esac
18369 case $ac_abs_builddir in
18370 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18372 case $ac_top_srcdir in
18373 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18374 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18375 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18376 esac;;
18377 esac
18380 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18381 echo "$as_me: executing $ac_dest commands" >&6;}
18382 case $ac_dest in
18383 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18384 # Strip MF so we end up with the name of the file.
18385 mf=`echo "$mf" | sed -e 's/:.*$//'`
18386 # Check whether this is an Automake generated Makefile or not.
18387 # We used to match only the files named `Makefile.in', but
18388 # some people rename them; so instead we look at the file content.
18389 # Grep'ing the first line is not enough: some people post-process
18390 # each Makefile.in and add a new line on top of each file to say so.
18391 # So let's grep whole file.
18392 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18393 dirpart=`(dirname "$mf") 2>/dev/null ||
18394 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18395 X"$mf" : 'X\(//\)[^/]' \| \
18396 X"$mf" : 'X\(//\)$' \| \
18397 X"$mf" : 'X\(/\)' \| \
18398 . : '\(.\)' 2>/dev/null ||
18399 echo X"$mf" |
18400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18401 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18402 /^X\(\/\/\)$/{ s//\1/; q; }
18403 /^X\(\/\).*/{ s//\1/; q; }
18404 s/.*/./; q'`
18405 else
18406 continue
18408 # Extract the definition of DEPDIR, am__include, and am__quote
18409 # from the Makefile without running `make'.
18410 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18411 test -z "$DEPDIR" && continue
18412 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18413 test -z "am__include" && continue
18414 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18415 # When using ansi2knr, U may be empty or an underscore; expand it
18416 U=`sed -n 's/^U = //p' < "$mf"`
18417 # Find all dependency output files, they are included files with
18418 # $(DEPDIR) in their names. We invoke sed twice because it is the
18419 # simplest approach to changing $(DEPDIR) to its actual value in the
18420 # expansion.
18421 for file in `sed -n "
18422 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18423 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18424 # Make sure the directory exists.
18425 test -f "$dirpart/$file" && continue
18426 fdir=`(dirname "$file") 2>/dev/null ||
18427 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18428 X"$file" : 'X\(//\)[^/]' \| \
18429 X"$file" : 'X\(//\)$' \| \
18430 X"$file" : 'X\(/\)' \| \
18431 . : '\(.\)' 2>/dev/null ||
18432 echo X"$file" |
18433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18434 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18435 /^X\(\/\/\)$/{ s//\1/; q; }
18436 /^X\(\/\).*/{ s//\1/; q; }
18437 s/.*/./; q'`
18438 { if $as_mkdir_p; then
18439 mkdir -p $dirpart/$fdir
18440 else
18441 as_dir=$dirpart/$fdir
18442 as_dirs=
18443 while test ! -d "$as_dir"; do
18444 as_dirs="$as_dir $as_dirs"
18445 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18446 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18447 X"$as_dir" : 'X\(//\)[^/]' \| \
18448 X"$as_dir" : 'X\(//\)$' \| \
18449 X"$as_dir" : 'X\(/\)' \| \
18450 . : '\(.\)' 2>/dev/null ||
18451 echo X"$as_dir" |
18452 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18453 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18454 /^X\(\/\/\)$/{ s//\1/; q; }
18455 /^X\(\/\).*/{ s//\1/; q; }
18456 s/.*/./; q'`
18457 done
18458 test ! -n "$as_dirs" || mkdir $as_dirs
18459 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18460 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18461 { (exit 1); exit 1; }; }; }
18463 # echo "creating $dirpart/$file"
18464 echo '# dummy' > "$dirpart/$file"
18465 done
18466 done
18468 default ) # Only add multilib support code if we just rebuilt top-level Makefile.
18469 case " $CONFIG_FILES " in
18470 *" Makefile "*)
18471 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
18472 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
18474 esac
18475 for ac_multi_file in $CONFIG_FILES; do
18476 case $ac_multi_file in
18477 */Makefile)
18478 grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;;
18479 esac
18480 done
18482 esac
18483 done
18484 _ACEOF
18486 cat >>$CONFIG_STATUS <<\_ACEOF
18488 { (exit 0); exit 0; }
18489 _ACEOF
18490 chmod +x $CONFIG_STATUS
18491 ac_clean_files=$ac_clean_files_save
18494 # configure is writing to config.log, and then calls config.status.
18495 # config.status does its own redirection, appending to config.log.
18496 # Unfortunately, on DOS this fails, as config.log is still kept open
18497 # by configure, so config.status won't be able to write to it; its
18498 # output is simply discarded. So we exec the FD to /dev/null,
18499 # effectively closing config.log, so it can be properly (re)opened and
18500 # appended to by config.status. When coming back to configure, we
18501 # need to make the FD available again.
18502 if test "$no_create" != yes; then
18503 ac_cs_success=:
18504 ac_config_status_args=
18505 test "$silent" = yes &&
18506 ac_config_status_args="$ac_config_status_args --quiet"
18507 exec 5>/dev/null
18508 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18509 exec 5>>config.log
18510 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18511 # would make configure fail if this is the last instruction.
18512 $ac_cs_success || { (exit 1); exit 1; }
18516 # CONFIG_SUBDIRS section.
18518 if test "$no_recursion" != yes; then
18520 # Remove --cache-file and --srcdir arguments so they do not pile up.
18521 ac_sub_configure_args=
18522 ac_prev=
18523 for ac_arg in $ac_configure_args; do
18524 if test -n "$ac_prev"; then
18525 ac_prev=
18526 continue
18528 case $ac_arg in
18529 -cache-file | --cache-file | --cache-fil | --cache-fi \
18530 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18531 ac_prev=cache_file ;;
18532 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18533 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18534 | --c=*)
18536 --config-cache | -C)
18538 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18539 ac_prev=srcdir ;;
18540 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18542 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18543 ac_prev=prefix ;;
18544 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18546 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18547 esac
18548 done
18550 # Always prepend --prefix to ensure using the same prefix
18551 # in subdir configurations.
18552 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
18554 ac_popdir=`pwd`
18555 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18557 # Do not complain, so a configure script can configure whichever
18558 # parts of a large source tree are present.
18559 test -d $srcdir/$ac_dir || continue
18561 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
18562 echo "$as_me: configuring in $ac_dir" >&6;}
18563 { if $as_mkdir_p; then
18564 mkdir -p "$ac_dir"
18565 else
18566 as_dir="$ac_dir"
18567 as_dirs=
18568 while test ! -d "$as_dir"; do
18569 as_dirs="$as_dir $as_dirs"
18570 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18571 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18572 X"$as_dir" : 'X\(//\)[^/]' \| \
18573 X"$as_dir" : 'X\(//\)$' \| \
18574 X"$as_dir" : 'X\(/\)' \| \
18575 . : '\(.\)' 2>/dev/null ||
18576 echo X"$as_dir" |
18577 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18578 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18579 /^X\(\/\/\)$/{ s//\1/; q; }
18580 /^X\(\/\).*/{ s//\1/; q; }
18581 s/.*/./; q'`
18582 done
18583 test ! -n "$as_dirs" || mkdir $as_dirs
18584 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18585 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18586 { (exit 1); exit 1; }; }; }
18588 ac_builddir=.
18590 if test "$ac_dir" != .; then
18591 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18592 # A "../" for each directory in $ac_dir_suffix.
18593 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18594 else
18595 ac_dir_suffix= ac_top_builddir=
18598 case $srcdir in
18599 .) # No --srcdir option. We are building in place.
18600 ac_srcdir=.
18601 if test -z "$ac_top_builddir"; then
18602 ac_top_srcdir=.
18603 else
18604 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18605 fi ;;
18606 [\\/]* | ?:[\\/]* ) # Absolute path.
18607 ac_srcdir=$srcdir$ac_dir_suffix;
18608 ac_top_srcdir=$srcdir ;;
18609 *) # Relative path.
18610 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18611 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18612 esac
18614 # Do not use `cd foo && pwd` to compute absolute paths, because
18615 # the directories may not exist.
18616 case `pwd` in
18617 .) ac_abs_builddir="$ac_dir";;
18619 case "$ac_dir" in
18620 .) ac_abs_builddir=`pwd`;;
18621 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18622 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18623 esac;;
18624 esac
18625 case $ac_abs_builddir in
18626 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18628 case ${ac_top_builddir}. in
18629 .) ac_abs_top_builddir=$ac_abs_builddir;;
18630 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18631 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18632 esac;;
18633 esac
18634 case $ac_abs_builddir in
18635 .) ac_abs_srcdir=$ac_srcdir;;
18637 case $ac_srcdir in
18638 .) ac_abs_srcdir=$ac_abs_builddir;;
18639 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18640 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18641 esac;;
18642 esac
18643 case $ac_abs_builddir in
18644 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18646 case $ac_top_srcdir in
18647 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18648 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18649 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18650 esac;;
18651 esac
18654 cd $ac_dir
18656 # Check for guested configure; otherwise get Cygnus style configure.
18657 if test -f $ac_srcdir/configure.gnu; then
18658 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
18659 elif test -f $ac_srcdir/configure; then
18660 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
18661 elif test -f $ac_srcdir/configure.in; then
18662 ac_sub_configure=$ac_configure
18663 else
18664 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
18665 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18666 ac_sub_configure=
18669 # The recursion is here.
18670 if test -n "$ac_sub_configure"; then
18671 # Make the cache file name correct relative to the subdirectory.
18672 case $cache_file in
18673 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18674 *) # Relative path.
18675 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
18676 esac
18678 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
18679 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18680 # The eval makes quoting arguments work.
18681 eval $ac_sub_configure $ac_sub_configure_args \
18682 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
18683 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
18684 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
18685 { (exit 1); exit 1; }; }
18688 cd $ac_popdir
18689 done