2006-08-15 Paolo Carlini <pcarlini@suse.de>
[official-gcc.git] / libjava / configure
blobe305b1f3658478b0f135ac0a5e53abf5e7eff15c
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 --enable-gconf-peer compile GConf native peers for util.preferences
858 --disable-dependency-tracking speeds up one-time build
859 --enable-dependency-tracking do not reject slow dependency extractors
860 --enable-maintainer-mode enable make rules and dependencies not useful
861 (and sometimes confusing) to the casual installer
862 --enable-libgcj-debug enable runtime debugging code
863 --enable-java-awt list of AWT peer implementations to be built
864 --enable-shared=PKGS build shared libraries default=yes
865 --enable-static=PKGS build static libraries default=yes
866 --enable-fast-install=PKGS optimize for fast installation default=yes
867 --disable-libtool-lock avoid locking (might break parallel builds)
868 --disable-getenv-properties
869 don't set system properties from GCJ_PROPERTIES
870 --enable-hash-synchronization
871 use global hash table for monitor locks
872 --enable-gc-debug include full support for pointer backtracing etc.
873 --enable-interpreter enable interpreter
874 --enable-sjlj-exceptions
875 force use of builtin_setjmp for exceptions
876 --disable-java-net disable java.net
877 --disable-jvmpi disable JVMPI support
878 --enable-java-gc=TYPE choose garbage collector (default is boehm)
879 --disable-rpath do not hardcode runtime library paths
880 _g_switchUse thread-local storage
881 [default=yes]
883 Optional Packages:
884 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
885 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
886 --with-build-libsubdir=DIR Directory where to find libraries for build system
887 --with-target-subdir=SUBDIR
888 configure in a subdirectory
889 --with-cross-host=HOST configure with a cross compiler from HOST
890 --with-newlib configure with newlib
891 --with-gnu-ld assume the C compiler uses GNU ld default=no
892 --with-pic try to use only PIC/non-PIC objects default=use both
893 --with-java-home=DIRECTORY
894 value of java.home system property
895 --with-win32-nlsapi=ansi or unicows or unicode
896 native MinGW libgcj Win32 OS API (default is ansi)
897 --without-libffi don't use libffi
898 --with-ecos enable runtime eCos target support
899 --with-system-zlib use installed libz
900 --with-x use the X Window System
901 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
902 --without-libiconv-prefix don't search for libiconv in includedir and libdir
904 Some influential environment variables:
905 CC C compiler command
906 CFLAGS C compiler flags
907 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
908 nonstandard directory <lib dir>
909 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
910 headers in a nonstandard directory <include dir>
911 CXX C++ compiler command
912 CXXFLAGS C++ compiler flags
913 CXXCPP C++ preprocessor
914 CPP C preprocessor
916 Use these variables to override the choices made by `configure' or to help
917 it to find libraries and programs with nonstandard names/locations.
919 _ACEOF
922 if test "$ac_init_help" = "recursive"; then
923 # If there are subdirs, report their specific --help.
924 ac_popdir=`pwd`
925 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
926 test -d $ac_dir || continue
927 ac_builddir=.
929 if test "$ac_dir" != .; then
930 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
931 # A "../" for each directory in $ac_dir_suffix.
932 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
933 else
934 ac_dir_suffix= ac_top_builddir=
937 case $srcdir in
938 .) # No --srcdir option. We are building in place.
939 ac_srcdir=.
940 if test -z "$ac_top_builddir"; then
941 ac_top_srcdir=.
942 else
943 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
944 fi ;;
945 [\\/]* | ?:[\\/]* ) # Absolute path.
946 ac_srcdir=$srcdir$ac_dir_suffix;
947 ac_top_srcdir=$srcdir ;;
948 *) # Relative path.
949 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
950 ac_top_srcdir=$ac_top_builddir$srcdir ;;
951 esac
953 # Do not use `cd foo && pwd` to compute absolute paths, because
954 # the directories may not exist.
955 case `pwd` in
956 .) ac_abs_builddir="$ac_dir";;
958 case "$ac_dir" in
959 .) ac_abs_builddir=`pwd`;;
960 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
961 *) ac_abs_builddir=`pwd`/"$ac_dir";;
962 esac;;
963 esac
964 case $ac_abs_builddir in
965 .) ac_abs_top_builddir=${ac_top_builddir}.;;
967 case ${ac_top_builddir}. in
968 .) ac_abs_top_builddir=$ac_abs_builddir;;
969 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
970 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
971 esac;;
972 esac
973 case $ac_abs_builddir in
974 .) ac_abs_srcdir=$ac_srcdir;;
976 case $ac_srcdir in
977 .) ac_abs_srcdir=$ac_abs_builddir;;
978 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
979 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
980 esac;;
981 esac
982 case $ac_abs_builddir in
983 .) ac_abs_top_srcdir=$ac_top_srcdir;;
985 case $ac_top_srcdir in
986 .) ac_abs_top_srcdir=$ac_abs_builddir;;
987 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
988 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
989 esac;;
990 esac
992 cd $ac_dir
993 # Check for guested configure; otherwise get Cygnus style configure.
994 if test -f $ac_srcdir/configure.gnu; then
995 echo
996 $SHELL $ac_srcdir/configure.gnu --help=recursive
997 elif test -f $ac_srcdir/configure; then
998 echo
999 $SHELL $ac_srcdir/configure --help=recursive
1000 elif test -f $ac_srcdir/configure.ac ||
1001 test -f $ac_srcdir/configure.in; then
1002 echo
1003 $ac_configure --help
1004 else
1005 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1007 cd $ac_popdir
1008 done
1011 test -n "$ac_init_help" && exit 0
1012 if $ac_init_version; then
1013 cat <<\_ACEOF
1014 libjava configure version-unused
1015 generated by GNU Autoconf 2.59
1017 Copyright (C) 2003 Free Software Foundation, Inc.
1018 This configure script is free software; the Free Software Foundation
1019 gives unlimited permission to copy, distribute and modify it.
1020 _ACEOF
1021 exit 0
1023 exec 5>config.log
1024 cat >&5 <<_ACEOF
1025 This file contains any messages produced by compilers while
1026 running configure, to aid debugging if configure makes a mistake.
1028 It was created by libjava $as_me version-unused, which was
1029 generated by GNU Autoconf 2.59. Invocation command line was
1031 $ $0 $@
1033 _ACEOF
1035 cat <<_ASUNAME
1036 ## --------- ##
1037 ## Platform. ##
1038 ## --------- ##
1040 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1041 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1042 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1043 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1044 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1046 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1047 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1049 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1050 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1051 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1052 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1053 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1054 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1055 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1057 _ASUNAME
1059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1060 for as_dir in $PATH
1062 IFS=$as_save_IFS
1063 test -z "$as_dir" && as_dir=.
1064 echo "PATH: $as_dir"
1065 done
1067 } >&5
1069 cat >&5 <<_ACEOF
1072 ## ----------- ##
1073 ## Core tests. ##
1074 ## ----------- ##
1076 _ACEOF
1079 # Keep a trace of the command line.
1080 # Strip out --no-create and --no-recursion so they do not pile up.
1081 # Strip out --silent because we don't want to record it for future runs.
1082 # Also quote any args containing shell meta-characters.
1083 # Make two passes to allow for proper duplicate-argument suppression.
1084 ac_configure_args=
1085 ac_configure_args0=
1086 ac_configure_args1=
1087 ac_sep=
1088 ac_must_keep_next=false
1089 for ac_pass in 1 2
1091 for ac_arg
1093 case $ac_arg in
1094 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1095 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1096 | -silent | --silent | --silen | --sile | --sil)
1097 continue ;;
1098 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1099 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1100 esac
1101 case $ac_pass in
1102 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1104 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1105 if test $ac_must_keep_next = true; then
1106 ac_must_keep_next=false # Got value, back to normal.
1107 else
1108 case $ac_arg in
1109 *=* | --config-cache | -C | -disable-* | --disable-* \
1110 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1111 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1112 | -with-* | --with-* | -without-* | --without-* | --x)
1113 case "$ac_configure_args0 " in
1114 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1115 esac
1117 -* ) ac_must_keep_next=true ;;
1118 esac
1120 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1121 # Get rid of the leading space.
1122 ac_sep=" "
1124 esac
1125 done
1126 done
1127 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1128 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1130 # When interrupted or exit'd, cleanup temporary files, and complete
1131 # config.log. We remove comments because anyway the quotes in there
1132 # would cause problems or look ugly.
1133 # WARNING: Be sure not to use single quotes in there, as some shells,
1134 # such as our DU 5.0 friend, will then `close' the trap.
1135 trap 'exit_status=$?
1136 # Save into config.log some information that might help in debugging.
1138 echo
1140 cat <<\_ASBOX
1141 ## ---------------- ##
1142 ## Cache variables. ##
1143 ## ---------------- ##
1144 _ASBOX
1145 echo
1146 # The following way of writing the cache mishandles newlines in values,
1148 (set) 2>&1 |
1149 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1150 *ac_space=\ *)
1151 sed -n \
1152 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1153 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1156 sed -n \
1157 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1159 esac;
1161 echo
1163 cat <<\_ASBOX
1164 ## ----------------- ##
1165 ## Output variables. ##
1166 ## ----------------- ##
1167 _ASBOX
1168 echo
1169 for ac_var in $ac_subst_vars
1171 eval ac_val=$`echo $ac_var`
1172 echo "$ac_var='"'"'$ac_val'"'"'"
1173 done | sort
1174 echo
1176 if test -n "$ac_subst_files"; then
1177 cat <<\_ASBOX
1178 ## ------------- ##
1179 ## Output files. ##
1180 ## ------------- ##
1181 _ASBOX
1182 echo
1183 for ac_var in $ac_subst_files
1185 eval ac_val=$`echo $ac_var`
1186 echo "$ac_var='"'"'$ac_val'"'"'"
1187 done | sort
1188 echo
1191 if test -s confdefs.h; then
1192 cat <<\_ASBOX
1193 ## ----------- ##
1194 ## confdefs.h. ##
1195 ## ----------- ##
1196 _ASBOX
1197 echo
1198 sed "/^$/d" confdefs.h | sort
1199 echo
1201 test "$ac_signal" != 0 &&
1202 echo "$as_me: caught signal $ac_signal"
1203 echo "$as_me: exit $exit_status"
1204 } >&5
1205 rm -f core *.core &&
1206 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1207 exit $exit_status
1209 for ac_signal in 1 2 13 15; do
1210 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1211 done
1212 ac_signal=0
1214 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1215 rm -rf conftest* confdefs.h
1216 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1217 echo >confdefs.h
1219 # Predefined preprocessor variables.
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_NAME "$PACKAGE_NAME"
1223 _ACEOF
1226 cat >>confdefs.h <<_ACEOF
1227 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1228 _ACEOF
1231 cat >>confdefs.h <<_ACEOF
1232 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1233 _ACEOF
1236 cat >>confdefs.h <<_ACEOF
1237 #define PACKAGE_STRING "$PACKAGE_STRING"
1238 _ACEOF
1241 cat >>confdefs.h <<_ACEOF
1242 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1243 _ACEOF
1246 # Let the site file select an alternate cache file if it wants to.
1247 # Prefer explicitly selected file to automatically selected ones.
1248 if test -z "$CONFIG_SITE"; then
1249 if test "x$prefix" != xNONE; then
1250 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1251 else
1252 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1255 for ac_site_file in $CONFIG_SITE; do
1256 if test -r "$ac_site_file"; then
1257 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1258 echo "$as_me: loading site script $ac_site_file" >&6;}
1259 sed 's/^/| /' "$ac_site_file" >&5
1260 . "$ac_site_file"
1262 done
1264 if test -r "$cache_file"; then
1265 # Some versions of bash will fail to source /dev/null (special
1266 # files actually), so we avoid doing that.
1267 if test -f "$cache_file"; then
1268 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1269 echo "$as_me: loading cache $cache_file" >&6;}
1270 case $cache_file in
1271 [\\/]* | ?:[\\/]* ) . $cache_file;;
1272 *) . ./$cache_file;;
1273 esac
1275 else
1276 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1277 echo "$as_me: creating cache $cache_file" >&6;}
1278 >$cache_file
1281 # Check that the precious variables saved in the cache have kept the same
1282 # value.
1283 ac_cache_corrupted=false
1284 for ac_var in `(set) 2>&1 |
1285 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1286 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1287 eval ac_new_set=\$ac_env_${ac_var}_set
1288 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1289 eval ac_new_val="\$ac_env_${ac_var}_value"
1290 case $ac_old_set,$ac_new_set in
1291 set,)
1292 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1293 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1294 ac_cache_corrupted=: ;;
1295 ,set)
1296 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1297 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1298 ac_cache_corrupted=: ;;
1299 ,);;
1301 if test "x$ac_old_val" != "x$ac_new_val"; then
1302 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1303 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1304 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1305 echo "$as_me: former value: $ac_old_val" >&2;}
1306 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1307 echo "$as_me: current value: $ac_new_val" >&2;}
1308 ac_cache_corrupted=:
1309 fi;;
1310 esac
1311 # Pass precious variables to config.status.
1312 if test "$ac_new_set" = set; then
1313 case $ac_new_val in
1314 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1315 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1316 *) ac_arg=$ac_var=$ac_new_val ;;
1317 esac
1318 case " $ac_configure_args " in
1319 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1320 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1321 esac
1323 done
1324 if $ac_cache_corrupted; then
1325 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1326 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1327 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1328 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1329 { (exit 1); exit 1; }; }
1332 ac_ext=c
1333 ac_cpp='$CPP $CPPFLAGS'
1334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1367 ac_aux_dir=
1368 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1369 if test -f $ac_dir/install-sh; then
1370 ac_aux_dir=$ac_dir
1371 ac_install_sh="$ac_aux_dir/install-sh -c"
1372 break
1373 elif test -f $ac_dir/install.sh; then
1374 ac_aux_dir=$ac_dir
1375 ac_install_sh="$ac_aux_dir/install.sh -c"
1376 break
1377 elif test -f $ac_dir/shtool; then
1378 ac_aux_dir=$ac_dir
1379 ac_install_sh="$ac_aux_dir/shtool install -c"
1380 break
1382 done
1383 if test -z "$ac_aux_dir"; then
1384 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1385 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1386 { (exit 1); exit 1; }; }
1388 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1389 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1390 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1392 # Make sure we can run config.sub.
1393 $ac_config_sub sun4 >/dev/null 2>&1 ||
1394 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1395 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1396 { (exit 1); exit 1; }; }
1398 echo "$as_me:$LINENO: checking build system type" >&5
1399 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1400 if test "${ac_cv_build+set}" = set; then
1401 echo $ECHO_N "(cached) $ECHO_C" >&6
1402 else
1403 ac_cv_build_alias=$build_alias
1404 test -z "$ac_cv_build_alias" &&
1405 ac_cv_build_alias=`$ac_config_guess`
1406 test -z "$ac_cv_build_alias" &&
1407 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1408 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1409 { (exit 1); exit 1; }; }
1410 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1411 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1412 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1413 { (exit 1); exit 1; }; }
1416 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1417 echo "${ECHO_T}$ac_cv_build" >&6
1418 build=$ac_cv_build
1419 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1420 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1421 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1424 case ${build_alias} in
1425 "") build_noncanonical=${build} ;;
1426 *) build_noncanonical=${build_alias} ;;
1427 esac
1429 case ${host_alias} in
1430 "") host_noncanonical=${build_noncanonical} ;;
1431 *) host_noncanonical=${host_alias} ;;
1432 esac
1434 case ${target_alias} in
1435 "") target_noncanonical=${host_noncanonical} ;;
1436 *) target_noncanonical=${target_alias} ;;
1437 esac
1440 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1441 # have matching libraries, they should use host libraries: Makefile.tpl
1442 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1443 # However, they still use the build modules, because the corresponding
1444 # host modules (e.g. bison) are only built for the host when bootstrap
1445 # finishes. So:
1446 # - build_subdir is where we find build modules, and never changes.
1447 # - build_libsubdir is where we find build libraries, and can be overridden.
1449 # Prefix 'build-' so this never conflicts with target_subdir.
1450 build_subdir="build-${build_noncanonical}"
1452 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1453 if test "${with_build_libsubdir+set}" = set; then
1454 withval="$with_build_libsubdir"
1455 build_libsubdir="$withval"
1456 else
1457 build_libsubdir="$build_subdir"
1459 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1460 if ( test $srcdir = . && test -d gcc ) \
1461 || test -d $srcdir/../host-${host_noncanonical}; then
1462 host_subdir="host-${host_noncanonical}"
1463 else
1464 host_subdir=.
1466 # No prefix.
1467 target_subdir=${target_noncanonical}
1470 # We use these options to decide which functions to include.
1472 # Check whether --with-target-subdir or --without-target-subdir was given.
1473 if test "${with_target_subdir+set}" = set; then
1474 withval="$with_target_subdir"
1478 # We may get other options which we don't document:
1479 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1481 # When building with srcdir == objdir, links to the source files will
1482 # be created in directories within the target_subdir. We have to
1483 # adjust toplevel_srcdir accordingly, so that configure finds
1484 # install-sh and other auxiliary files that live in the top-level
1485 # source directory.
1486 if test "${srcdir}" = "."; then
1487 if test -z "${with_target_subdir}"; then
1488 toprel=".."
1489 else
1490 if test "${with_target_subdir}" != "."; then
1491 toprel="${with_multisrctop}../.."
1492 else
1493 toprel="${with_multisrctop}.."
1496 else
1497 toprel=".."
1500 libgcj_basedir=$srcdir/$toprel/./libjava
1503 echo "$as_me:$LINENO: checking host system type" >&5
1504 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1505 if test "${ac_cv_host+set}" = set; then
1506 echo $ECHO_N "(cached) $ECHO_C" >&6
1507 else
1508 ac_cv_host_alias=$host_alias
1509 test -z "$ac_cv_host_alias" &&
1510 ac_cv_host_alias=$ac_cv_build_alias
1511 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1512 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1513 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1514 { (exit 1); exit 1; }; }
1517 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1518 echo "${ECHO_T}$ac_cv_host" >&6
1519 host=$ac_cv_host
1520 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1521 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1522 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1525 echo "$as_me:$LINENO: checking target system type" >&5
1526 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1527 if test "${ac_cv_target+set}" = set; then
1528 echo $ECHO_N "(cached) $ECHO_C" >&6
1529 else
1530 ac_cv_target_alias=$target_alias
1531 test "x$ac_cv_target_alias" = "x" &&
1532 ac_cv_target_alias=$ac_cv_host_alias
1533 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1534 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1535 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1536 { (exit 1); exit 1; }; }
1539 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1540 echo "${ECHO_T}$ac_cv_target" >&6
1541 target=$ac_cv_target
1542 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1543 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1544 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1547 # The aliases save the names the user supplied, while $host etc.
1548 # will get canonicalized.
1549 test -n "$target_alias" &&
1550 test "$program_prefix$program_suffix$program_transform_name" = \
1551 NONENONEs,x,x, &&
1552 program_prefix=${target_alias}-
1553 case ${build_alias} in
1554 "") build_noncanonical=${build} ;;
1555 *) build_noncanonical=${build_alias} ;;
1556 esac
1558 case ${target_alias} in
1559 "") target_noncanonical=${host_noncanonical} ;;
1560 *) target_noncanonical=${target_alias} ;;
1561 esac
1566 # This works around the fact that libtool configuration may change LD
1567 # for this particular configuration, but some shells, instead of
1568 # keeping the changes in LD private, export them just because LD is
1569 # exported.
1570 ORIGINAL_LD_FOR_MULTILIBS=$LD
1572 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1573 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1574 LN_S=$as_ln_s
1575 if test "$LN_S" = "ln -s"; then
1576 echo "$as_me:$LINENO: result: yes" >&5
1577 echo "${ECHO_T}yes" >&6
1578 else
1579 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1580 echo "${ECHO_T}no, using $LN_S" >&6
1584 # This works around an automake problem.
1585 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1589 # Check whether --with-cross-host or --without-cross-host was given.
1590 if test "${with_cross_host+set}" = set; then
1591 withval="$with_cross_host"
1596 # Check whether --with-newlib or --without-newlib was given.
1597 if test "${with_newlib+set}" = set; then
1598 withval="$with_newlib"
1602 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1603 if test "${enable_version_specific_runtime_libs+set}" = set; then
1604 enableval="$enable_version_specific_runtime_libs"
1605 case "$enableval" in
1606 yes) version_specific_libs=yes ;;
1607 no) version_specific_libs=no ;;
1608 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1609 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1610 { (exit 1); exit 1; }; };;
1611 esac
1612 else
1613 version_specific_libs=no
1617 # Default to --enable-multilib
1618 # Check whether --enable-multilib or --disable-multilib was given.
1619 if test "${enable_multilib+set}" = set; then
1620 enableval="$enable_multilib"
1621 case "${enableval}" in
1622 yes) multilib=yes ;;
1623 no) multilib=no ;;
1624 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1625 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1626 { (exit 1); exit 1; }; } ;;
1627 esac
1628 else
1629 multilib=yes
1631 # Check whether --enable-plugin or --disable-plugin was given.
1632 if test "${enable_plugin+set}" = set; then
1633 enableval="$enable_plugin"
1634 case "$enableval" in
1635 yes) plugin_enabled=yes ;;
1636 no) plugin_enabled=no ;;
1637 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable plugin" >&5
1638 echo "$as_me: error: Unknown argument to enable/disable plugin" >&2;}
1639 { (exit 1); exit 1; }; };;
1640 esac
1641 else
1642 plugin_enabled=no
1646 # Check whether --enable-gconf-peer or --disable-gconf-peer was given.
1647 if test "${enable_gconf_peer+set}" = set; then
1648 enableval="$enable_gconf_peer"
1649 case "$enableval" in
1650 yes) gconf_enabled=yes ;;
1651 no) gconf_enabled=no ;;
1652 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable gconf-peer" >&5
1653 echo "$as_me: error: Unknown argument to enable/disable gconf-peer" >&2;}
1654 { (exit 1); exit 1; }; };;
1655 esac
1656 else
1657 gconf_enabled=no
1661 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1664 # (1) We use an abnormal CXX (without library references), so we
1665 # must cache it under a different name.
1666 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1667 # the non-multilib-adjusted value will be used in multilibs.
1668 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1669 # (4) As another side effect, automake doesn't automatically include them
1670 # in Makefile.in.
1671 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1672 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1673 # used in later tests. This may not be necessary in libjava; I don't know.
1677 save_CXXFLAGS="$CXXFLAGS"
1678 CXXFLAGS="$CXXFLAGS -fno-builtin"
1679 ac_ext=c
1680 ac_cpp='$CPP $CPPFLAGS'
1681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1684 if test -n "$ac_tool_prefix"; then
1685 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1686 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1687 echo "$as_me:$LINENO: checking for $ac_word" >&5
1688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1689 if test "${ac_cv_prog_CC+set}" = set; then
1690 echo $ECHO_N "(cached) $ECHO_C" >&6
1691 else
1692 if test -n "$CC"; then
1693 ac_cv_prog_CC="$CC" # Let the user override the test.
1694 else
1695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1696 for as_dir in $PATH
1698 IFS=$as_save_IFS
1699 test -z "$as_dir" && as_dir=.
1700 for ac_exec_ext in '' $ac_executable_extensions; do
1701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1702 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1704 break 2
1706 done
1707 done
1711 CC=$ac_cv_prog_CC
1712 if test -n "$CC"; then
1713 echo "$as_me:$LINENO: result: $CC" >&5
1714 echo "${ECHO_T}$CC" >&6
1715 else
1716 echo "$as_me:$LINENO: result: no" >&5
1717 echo "${ECHO_T}no" >&6
1721 if test -z "$ac_cv_prog_CC"; then
1722 ac_ct_CC=$CC
1723 # Extract the first word of "gcc", so it can be a program name with args.
1724 set dummy gcc; ac_word=$2
1725 echo "$as_me:$LINENO: checking for $ac_word" >&5
1726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1727 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1728 echo $ECHO_N "(cached) $ECHO_C" >&6
1729 else
1730 if test -n "$ac_ct_CC"; then
1731 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1732 else
1733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1734 for as_dir in $PATH
1736 IFS=$as_save_IFS
1737 test -z "$as_dir" && as_dir=.
1738 for ac_exec_ext in '' $ac_executable_extensions; do
1739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1740 ac_cv_prog_ac_ct_CC="gcc"
1741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1742 break 2
1744 done
1745 done
1749 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1750 if test -n "$ac_ct_CC"; then
1751 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1752 echo "${ECHO_T}$ac_ct_CC" >&6
1753 else
1754 echo "$as_me:$LINENO: result: no" >&5
1755 echo "${ECHO_T}no" >&6
1758 CC=$ac_ct_CC
1759 else
1760 CC="$ac_cv_prog_CC"
1763 if test -z "$CC"; then
1764 if test -n "$ac_tool_prefix"; then
1765 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1766 set dummy ${ac_tool_prefix}cc; ac_word=$2
1767 echo "$as_me:$LINENO: checking for $ac_word" >&5
1768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1769 if test "${ac_cv_prog_CC+set}" = set; then
1770 echo $ECHO_N "(cached) $ECHO_C" >&6
1771 else
1772 if test -n "$CC"; then
1773 ac_cv_prog_CC="$CC" # Let the user override the test.
1774 else
1775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1776 for as_dir in $PATH
1778 IFS=$as_save_IFS
1779 test -z "$as_dir" && as_dir=.
1780 for ac_exec_ext in '' $ac_executable_extensions; do
1781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1782 ac_cv_prog_CC="${ac_tool_prefix}cc"
1783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1784 break 2
1786 done
1787 done
1791 CC=$ac_cv_prog_CC
1792 if test -n "$CC"; then
1793 echo "$as_me:$LINENO: result: $CC" >&5
1794 echo "${ECHO_T}$CC" >&6
1795 else
1796 echo "$as_me:$LINENO: result: no" >&5
1797 echo "${ECHO_T}no" >&6
1801 if test -z "$ac_cv_prog_CC"; then
1802 ac_ct_CC=$CC
1803 # Extract the first word of "cc", so it can be a program name with args.
1804 set dummy cc; ac_word=$2
1805 echo "$as_me:$LINENO: checking for $ac_word" >&5
1806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1807 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1808 echo $ECHO_N "(cached) $ECHO_C" >&6
1809 else
1810 if test -n "$ac_ct_CC"; then
1811 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1812 else
1813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1814 for as_dir in $PATH
1816 IFS=$as_save_IFS
1817 test -z "$as_dir" && as_dir=.
1818 for ac_exec_ext in '' $ac_executable_extensions; do
1819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1820 ac_cv_prog_ac_ct_CC="cc"
1821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1822 break 2
1824 done
1825 done
1829 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1830 if test -n "$ac_ct_CC"; then
1831 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1832 echo "${ECHO_T}$ac_ct_CC" >&6
1833 else
1834 echo "$as_me:$LINENO: result: no" >&5
1835 echo "${ECHO_T}no" >&6
1838 CC=$ac_ct_CC
1839 else
1840 CC="$ac_cv_prog_CC"
1844 if test -z "$CC"; then
1845 # Extract the first word of "cc", so it can be a program name with args.
1846 set dummy cc; ac_word=$2
1847 echo "$as_me:$LINENO: checking for $ac_word" >&5
1848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1849 if test "${ac_cv_prog_CC+set}" = set; then
1850 echo $ECHO_N "(cached) $ECHO_C" >&6
1851 else
1852 if test -n "$CC"; then
1853 ac_cv_prog_CC="$CC" # Let the user override the test.
1854 else
1855 ac_prog_rejected=no
1856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1857 for as_dir in $PATH
1859 IFS=$as_save_IFS
1860 test -z "$as_dir" && as_dir=.
1861 for ac_exec_ext in '' $ac_executable_extensions; do
1862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1863 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1864 ac_prog_rejected=yes
1865 continue
1867 ac_cv_prog_CC="cc"
1868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1869 break 2
1871 done
1872 done
1874 if test $ac_prog_rejected = yes; then
1875 # We found a bogon in the path, so make sure we never use it.
1876 set dummy $ac_cv_prog_CC
1877 shift
1878 if test $# != 0; then
1879 # We chose a different compiler from the bogus one.
1880 # However, it has the same basename, so the bogon will be chosen
1881 # first if we set CC to just the basename; use the full file name.
1882 shift
1883 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1888 CC=$ac_cv_prog_CC
1889 if test -n "$CC"; then
1890 echo "$as_me:$LINENO: result: $CC" >&5
1891 echo "${ECHO_T}$CC" >&6
1892 else
1893 echo "$as_me:$LINENO: result: no" >&5
1894 echo "${ECHO_T}no" >&6
1898 if test -z "$CC"; then
1899 if test -n "$ac_tool_prefix"; then
1900 for ac_prog in cl
1902 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1903 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1904 echo "$as_me:$LINENO: checking for $ac_word" >&5
1905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1906 if test "${ac_cv_prog_CC+set}" = set; then
1907 echo $ECHO_N "(cached) $ECHO_C" >&6
1908 else
1909 if test -n "$CC"; then
1910 ac_cv_prog_CC="$CC" # Let the user override the test.
1911 else
1912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1913 for as_dir in $PATH
1915 IFS=$as_save_IFS
1916 test -z "$as_dir" && as_dir=.
1917 for ac_exec_ext in '' $ac_executable_extensions; do
1918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1919 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1921 break 2
1923 done
1924 done
1928 CC=$ac_cv_prog_CC
1929 if test -n "$CC"; then
1930 echo "$as_me:$LINENO: result: $CC" >&5
1931 echo "${ECHO_T}$CC" >&6
1932 else
1933 echo "$as_me:$LINENO: result: no" >&5
1934 echo "${ECHO_T}no" >&6
1937 test -n "$CC" && break
1938 done
1940 if test -z "$CC"; then
1941 ac_ct_CC=$CC
1942 for ac_prog in cl
1944 # Extract the first word of "$ac_prog", so it can be a program name with args.
1945 set dummy $ac_prog; ac_word=$2
1946 echo "$as_me:$LINENO: checking for $ac_word" >&5
1947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1948 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1949 echo $ECHO_N "(cached) $ECHO_C" >&6
1950 else
1951 if test -n "$ac_ct_CC"; then
1952 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1953 else
1954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1955 for as_dir in $PATH
1957 IFS=$as_save_IFS
1958 test -z "$as_dir" && as_dir=.
1959 for ac_exec_ext in '' $ac_executable_extensions; do
1960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1961 ac_cv_prog_ac_ct_CC="$ac_prog"
1962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1963 break 2
1965 done
1966 done
1970 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1971 if test -n "$ac_ct_CC"; then
1972 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1973 echo "${ECHO_T}$ac_ct_CC" >&6
1974 else
1975 echo "$as_me:$LINENO: result: no" >&5
1976 echo "${ECHO_T}no" >&6
1979 test -n "$ac_ct_CC" && break
1980 done
1982 CC=$ac_ct_CC
1988 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1989 See \`config.log' for more details." >&5
1990 echo "$as_me: error: no acceptable C compiler found in \$PATH
1991 See \`config.log' for more details." >&2;}
1992 { (exit 1); exit 1; }; }
1994 # Provide some information about the compiler.
1995 echo "$as_me:$LINENO:" \
1996 "checking for C compiler version" >&5
1997 ac_compiler=`set X $ac_compile; echo $2`
1998 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1999 (eval $ac_compiler --version </dev/null >&5) 2>&5
2000 ac_status=$?
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); }
2003 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2004 (eval $ac_compiler -v </dev/null >&5) 2>&5
2005 ac_status=$?
2006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007 (exit $ac_status); }
2008 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2009 (eval $ac_compiler -V </dev/null >&5) 2>&5
2010 ac_status=$?
2011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2012 (exit $ac_status); }
2014 cat >conftest.$ac_ext <<_ACEOF
2015 /* confdefs.h. */
2016 _ACEOF
2017 cat confdefs.h >>conftest.$ac_ext
2018 cat >>conftest.$ac_ext <<_ACEOF
2019 /* end confdefs.h. */
2022 main ()
2026 return 0;
2028 _ACEOF
2029 # FIXME: Cleanup?
2030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2031 (eval $ac_link) 2>&5
2032 ac_status=$?
2033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034 (exit $ac_status); }; then
2035 gcc_no_link=no
2036 else
2037 gcc_no_link=yes
2040 if test x$gcc_no_link = xyes; then
2041 # Setting cross_compile will disable run tests; it will
2042 # also disable AC_CHECK_FILE but that's generally
2043 # correct if we can't link.
2044 cross_compiling=yes
2045 EXEEXT=
2046 else
2047 cat >conftest.$ac_ext <<_ACEOF
2048 /* confdefs.h. */
2049 _ACEOF
2050 cat confdefs.h >>conftest.$ac_ext
2051 cat >>conftest.$ac_ext <<_ACEOF
2052 /* end confdefs.h. */
2055 main ()
2059 return 0;
2061 _ACEOF
2062 ac_clean_files_save=$ac_clean_files
2063 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2064 # Try to create an executable without -o first, disregard a.out.
2065 # It will help us diagnose broken compilers, and finding out an intuition
2066 # of exeext.
2067 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2068 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2069 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2070 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2071 (eval $ac_link_default) 2>&5
2072 ac_status=$?
2073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2074 (exit $ac_status); }; then
2075 # Find the output, starting from the most likely. This scheme is
2076 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2077 # resort.
2079 # Be careful to initialize this variable, since it used to be cached.
2080 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2081 ac_cv_exeext=
2082 # b.out is created by i960 compilers.
2083 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2085 test -f "$ac_file" || continue
2086 case $ac_file in
2087 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2089 conftest.$ac_ext )
2090 # This is the source file.
2092 [ab].out )
2093 # We found the default executable, but exeext='' is most
2094 # certainly right.
2095 break;;
2096 *.* )
2097 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2098 # FIXME: I believe we export ac_cv_exeext for Libtool,
2099 # but it would be cool to find out if it's true. Does anybody
2100 # maintain Libtool? --akim.
2101 export ac_cv_exeext
2102 break;;
2104 break;;
2105 esac
2106 done
2107 else
2108 echo "$as_me: failed program was:" >&5
2109 sed 's/^/| /' conftest.$ac_ext >&5
2111 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2112 See \`config.log' for more details." >&5
2113 echo "$as_me: error: C compiler cannot create executables
2114 See \`config.log' for more details." >&2;}
2115 { (exit 77); exit 77; }; }
2118 ac_exeext=$ac_cv_exeext
2119 echo "$as_me:$LINENO: result: $ac_file" >&5
2120 echo "${ECHO_T}$ac_file" >&6
2122 # Check the compiler produces executables we can run. If not, either
2123 # the compiler is broken, or we cross compile.
2124 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2125 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2126 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2127 # If not cross compiling, check that we can run a simple program.
2128 if test "$cross_compiling" != yes; then
2129 if { ac_try='./$ac_file'
2130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2131 (eval $ac_try) 2>&5
2132 ac_status=$?
2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134 (exit $ac_status); }; }; then
2135 cross_compiling=no
2136 else
2137 if test "$cross_compiling" = maybe; then
2138 cross_compiling=yes
2139 else
2140 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2141 If you meant to cross compile, use \`--host'.
2142 See \`config.log' for more details." >&5
2143 echo "$as_me: error: cannot run C compiled programs.
2144 If you meant to cross compile, use \`--host'.
2145 See \`config.log' for more details." >&2;}
2146 { (exit 1); exit 1; }; }
2150 echo "$as_me:$LINENO: result: yes" >&5
2151 echo "${ECHO_T}yes" >&6
2153 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2154 ac_clean_files=$ac_clean_files_save
2155 # Check the compiler produces executables we can run. If not, either
2156 # the compiler is broken, or we cross compile.
2157 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2158 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2159 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2160 echo "${ECHO_T}$cross_compiling" >&6
2162 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2163 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2165 (eval $ac_link) 2>&5
2166 ac_status=$?
2167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168 (exit $ac_status); }; then
2169 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2170 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2171 # work properly (i.e., refer to `conftest.exe'), while it won't with
2172 # `rm'.
2173 for ac_file in conftest.exe conftest conftest.*; do
2174 test -f "$ac_file" || continue
2175 case $ac_file in
2176 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2177 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2178 export ac_cv_exeext
2179 break;;
2180 * ) break;;
2181 esac
2182 done
2183 else
2184 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2185 See \`config.log' for more details." >&5
2186 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2187 See \`config.log' for more details." >&2;}
2188 { (exit 1); exit 1; }; }
2191 rm -f conftest$ac_cv_exeext
2192 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2193 echo "${ECHO_T}$ac_cv_exeext" >&6
2195 rm -f conftest.$ac_ext
2196 EXEEXT=$ac_cv_exeext
2197 ac_exeext=$EXEEXT
2199 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2200 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2201 if test "${ac_cv_objext+set}" = set; then
2202 echo $ECHO_N "(cached) $ECHO_C" >&6
2203 else
2204 cat >conftest.$ac_ext <<_ACEOF
2205 /* confdefs.h. */
2206 _ACEOF
2207 cat confdefs.h >>conftest.$ac_ext
2208 cat >>conftest.$ac_ext <<_ACEOF
2209 /* end confdefs.h. */
2212 main ()
2216 return 0;
2218 _ACEOF
2219 rm -f conftest.o conftest.obj
2220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2221 (eval $ac_compile) 2>&5
2222 ac_status=$?
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); }; then
2225 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2226 case $ac_file in
2227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2228 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2229 break;;
2230 esac
2231 done
2232 else
2233 echo "$as_me: failed program was:" >&5
2234 sed 's/^/| /' conftest.$ac_ext >&5
2236 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2237 See \`config.log' for more details." >&5
2238 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2239 See \`config.log' for more details." >&2;}
2240 { (exit 1); exit 1; }; }
2243 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2245 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2246 echo "${ECHO_T}$ac_cv_objext" >&6
2247 OBJEXT=$ac_cv_objext
2248 ac_objext=$OBJEXT
2249 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2250 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2251 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2252 echo $ECHO_N "(cached) $ECHO_C" >&6
2253 else
2254 cat >conftest.$ac_ext <<_ACEOF
2255 /* confdefs.h. */
2256 _ACEOF
2257 cat confdefs.h >>conftest.$ac_ext
2258 cat >>conftest.$ac_ext <<_ACEOF
2259 /* end confdefs.h. */
2262 main ()
2264 #ifndef __GNUC__
2265 choke me
2266 #endif
2269 return 0;
2271 _ACEOF
2272 rm -f conftest.$ac_objext
2273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2274 (eval $ac_compile) 2>conftest.er1
2275 ac_status=$?
2276 grep -v '^ *+' conftest.er1 >conftest.err
2277 rm -f conftest.er1
2278 cat conftest.err >&5
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); } &&
2281 { ac_try='test -z "$ac_c_werror_flag"
2282 || test ! -s conftest.err'
2283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2284 (eval $ac_try) 2>&5
2285 ac_status=$?
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }; } &&
2288 { ac_try='test -s conftest.$ac_objext'
2289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2290 (eval $ac_try) 2>&5
2291 ac_status=$?
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); }; }; then
2294 ac_compiler_gnu=yes
2295 else
2296 echo "$as_me: failed program was:" >&5
2297 sed 's/^/| /' conftest.$ac_ext >&5
2299 ac_compiler_gnu=no
2301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2302 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2305 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2306 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2307 GCC=`test $ac_compiler_gnu = yes && echo yes`
2308 ac_test_CFLAGS=${CFLAGS+set}
2309 ac_save_CFLAGS=$CFLAGS
2310 CFLAGS="-g"
2311 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2312 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2313 if test "${ac_cv_prog_cc_g+set}" = set; then
2314 echo $ECHO_N "(cached) $ECHO_C" >&6
2315 else
2316 cat >conftest.$ac_ext <<_ACEOF
2317 /* confdefs.h. */
2318 _ACEOF
2319 cat confdefs.h >>conftest.$ac_ext
2320 cat >>conftest.$ac_ext <<_ACEOF
2321 /* end confdefs.h. */
2324 main ()
2328 return 0;
2330 _ACEOF
2331 rm -f conftest.$ac_objext
2332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2333 (eval $ac_compile) 2>conftest.er1
2334 ac_status=$?
2335 grep -v '^ *+' conftest.er1 >conftest.err
2336 rm -f conftest.er1
2337 cat conftest.err >&5
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); } &&
2340 { ac_try='test -z "$ac_c_werror_flag"
2341 || test ! -s conftest.err'
2342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2343 (eval $ac_try) 2>&5
2344 ac_status=$?
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }; } &&
2347 { ac_try='test -s conftest.$ac_objext'
2348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2349 (eval $ac_try) 2>&5
2350 ac_status=$?
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }; }; then
2353 ac_cv_prog_cc_g=yes
2354 else
2355 echo "$as_me: failed program was:" >&5
2356 sed 's/^/| /' conftest.$ac_ext >&5
2358 ac_cv_prog_cc_g=no
2360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2362 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2363 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2364 if test "$ac_test_CFLAGS" = set; then
2365 CFLAGS=$ac_save_CFLAGS
2366 elif test $ac_cv_prog_cc_g = yes; then
2367 if test "$GCC" = yes; then
2368 CFLAGS="-g -O2"
2369 else
2370 CFLAGS="-g"
2372 else
2373 if test "$GCC" = yes; then
2374 CFLAGS="-O2"
2375 else
2376 CFLAGS=
2379 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2380 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2381 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2382 echo $ECHO_N "(cached) $ECHO_C" >&6
2383 else
2384 ac_cv_prog_cc_stdc=no
2385 ac_save_CC=$CC
2386 cat >conftest.$ac_ext <<_ACEOF
2387 /* confdefs.h. */
2388 _ACEOF
2389 cat confdefs.h >>conftest.$ac_ext
2390 cat >>conftest.$ac_ext <<_ACEOF
2391 /* end confdefs.h. */
2392 #include <stdarg.h>
2393 #include <stdio.h>
2394 #include <sys/types.h>
2395 #include <sys/stat.h>
2396 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2397 struct buf { int x; };
2398 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2399 static char *e (p, i)
2400 char **p;
2401 int i;
2403 return p[i];
2405 static char *f (char * (*g) (char **, int), char **p, ...)
2407 char *s;
2408 va_list v;
2409 va_start (v,p);
2410 s = g (p, va_arg (v,int));
2411 va_end (v);
2412 return s;
2415 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2416 function prototypes and stuff, but not '\xHH' hex character constants.
2417 These don't provoke an error unfortunately, instead are silently treated
2418 as 'x'. The following induces an error, until -std1 is added to get
2419 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2420 array size at least. It's necessary to write '\x00'==0 to get something
2421 that's true only with -std1. */
2422 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2424 int test (int i, double x);
2425 struct s1 {int (*f) (int a);};
2426 struct s2 {int (*f) (double a);};
2427 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2428 int argc;
2429 char **argv;
2431 main ()
2433 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2435 return 0;
2437 _ACEOF
2438 # Don't try gcc -ansi; that turns off useful extensions and
2439 # breaks some systems' header files.
2440 # AIX -qlanglvl=ansi
2441 # Ultrix and OSF/1 -std1
2442 # HP-UX 10.20 and later -Ae
2443 # HP-UX older versions -Aa -D_HPUX_SOURCE
2444 # SVR4 -Xc -D__EXTENSIONS__
2445 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2447 CC="$ac_save_CC $ac_arg"
2448 rm -f conftest.$ac_objext
2449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2450 (eval $ac_compile) 2>conftest.er1
2451 ac_status=$?
2452 grep -v '^ *+' conftest.er1 >conftest.err
2453 rm -f conftest.er1
2454 cat conftest.err >&5
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); } &&
2457 { ac_try='test -z "$ac_c_werror_flag"
2458 || test ! -s conftest.err'
2459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460 (eval $ac_try) 2>&5
2461 ac_status=$?
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); }; } &&
2464 { ac_try='test -s conftest.$ac_objext'
2465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466 (eval $ac_try) 2>&5
2467 ac_status=$?
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }; }; then
2470 ac_cv_prog_cc_stdc=$ac_arg
2471 break
2472 else
2473 echo "$as_me: failed program was:" >&5
2474 sed 's/^/| /' conftest.$ac_ext >&5
2477 rm -f conftest.err conftest.$ac_objext
2478 done
2479 rm -f conftest.$ac_ext conftest.$ac_objext
2480 CC=$ac_save_CC
2484 case "x$ac_cv_prog_cc_stdc" in
2485 x|xno)
2486 echo "$as_me:$LINENO: result: none needed" >&5
2487 echo "${ECHO_T}none needed" >&6 ;;
2489 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2490 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2491 CC="$CC $ac_cv_prog_cc_stdc" ;;
2492 esac
2494 # Some people use a C++ compiler to compile C. Since we use `exit',
2495 # in C++ we need to declare it. In case someone uses the same compiler
2496 # for both compiling C and C++ we need to have the C++ compiler decide
2497 # the declaration of exit, since it's the most demanding environment.
2498 cat >conftest.$ac_ext <<_ACEOF
2499 #ifndef __cplusplus
2500 choke me
2501 #endif
2502 _ACEOF
2503 rm -f conftest.$ac_objext
2504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2505 (eval $ac_compile) 2>conftest.er1
2506 ac_status=$?
2507 grep -v '^ *+' conftest.er1 >conftest.err
2508 rm -f conftest.er1
2509 cat conftest.err >&5
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); } &&
2512 { ac_try='test -z "$ac_c_werror_flag"
2513 || test ! -s conftest.err'
2514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515 (eval $ac_try) 2>&5
2516 ac_status=$?
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; } &&
2519 { ac_try='test -s conftest.$ac_objext'
2520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2521 (eval $ac_try) 2>&5
2522 ac_status=$?
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); }; }; then
2525 for ac_declaration in \
2526 '' \
2527 'extern "C" void std::exit (int) throw (); using std::exit;' \
2528 'extern "C" void std::exit (int); using std::exit;' \
2529 'extern "C" void exit (int) throw ();' \
2530 'extern "C" void exit (int);' \
2531 'void exit (int);'
2533 cat >conftest.$ac_ext <<_ACEOF
2534 /* confdefs.h. */
2535 _ACEOF
2536 cat confdefs.h >>conftest.$ac_ext
2537 cat >>conftest.$ac_ext <<_ACEOF
2538 /* end confdefs.h. */
2539 $ac_declaration
2540 #include <stdlib.h>
2542 main ()
2544 exit (42);
2546 return 0;
2548 _ACEOF
2549 rm -f conftest.$ac_objext
2550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2551 (eval $ac_compile) 2>conftest.er1
2552 ac_status=$?
2553 grep -v '^ *+' conftest.er1 >conftest.err
2554 rm -f conftest.er1
2555 cat conftest.err >&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); } &&
2558 { ac_try='test -z "$ac_c_werror_flag"
2559 || test ! -s conftest.err'
2560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2561 (eval $ac_try) 2>&5
2562 ac_status=$?
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }; } &&
2565 { ac_try='test -s conftest.$ac_objext'
2566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567 (eval $ac_try) 2>&5
2568 ac_status=$?
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; }; then
2572 else
2573 echo "$as_me: failed program was:" >&5
2574 sed 's/^/| /' conftest.$ac_ext >&5
2576 continue
2578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2579 cat >conftest.$ac_ext <<_ACEOF
2580 /* confdefs.h. */
2581 _ACEOF
2582 cat confdefs.h >>conftest.$ac_ext
2583 cat >>conftest.$ac_ext <<_ACEOF
2584 /* end confdefs.h. */
2585 $ac_declaration
2587 main ()
2589 exit (42);
2591 return 0;
2593 _ACEOF
2594 rm -f conftest.$ac_objext
2595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2596 (eval $ac_compile) 2>conftest.er1
2597 ac_status=$?
2598 grep -v '^ *+' conftest.er1 >conftest.err
2599 rm -f conftest.er1
2600 cat conftest.err >&5
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); } &&
2603 { ac_try='test -z "$ac_c_werror_flag"
2604 || test ! -s conftest.err'
2605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2606 (eval $ac_try) 2>&5
2607 ac_status=$?
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); }; } &&
2610 { ac_try='test -s conftest.$ac_objext'
2611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612 (eval $ac_try) 2>&5
2613 ac_status=$?
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); }; }; then
2616 break
2617 else
2618 echo "$as_me: failed program was:" >&5
2619 sed 's/^/| /' conftest.$ac_ext >&5
2622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2623 done
2624 rm -f conftest*
2625 if test -n "$ac_declaration"; then
2626 echo '#ifdef __cplusplus' >>confdefs.h
2627 echo $ac_declaration >>confdefs.h
2628 echo '#endif' >>confdefs.h
2631 else
2632 echo "$as_me: failed program was:" >&5
2633 sed 's/^/| /' conftest.$ac_ext >&5
2636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2637 ac_ext=c
2638 ac_cpp='$CPP $CPPFLAGS'
2639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2643 ac_ext=cc
2644 ac_cpp='$CXXCPP $CPPFLAGS'
2645 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2646 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2647 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2648 if test -n "$ac_tool_prefix"; then
2649 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2651 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2652 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2653 echo "$as_me:$LINENO: checking for $ac_word" >&5
2654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2655 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2656 echo $ECHO_N "(cached) $ECHO_C" >&6
2657 else
2658 if test -n "$CXX"; then
2659 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2660 else
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662 for as_dir in $PATH
2664 IFS=$as_save_IFS
2665 test -z "$as_dir" && as_dir=.
2666 for ac_exec_ext in '' $ac_executable_extensions; do
2667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2668 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2670 break 2
2672 done
2673 done
2677 CXX=$glibcxx_cv_prog_CXX
2678 if test -n "$CXX"; then
2679 echo "$as_me:$LINENO: result: $CXX" >&5
2680 echo "${ECHO_T}$CXX" >&6
2681 else
2682 echo "$as_me:$LINENO: result: no" >&5
2683 echo "${ECHO_T}no" >&6
2686 test -n "$CXX" && break
2687 done
2689 if test -z "$CXX"; then
2690 ac_ct_CXX=$CXX
2691 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2693 # Extract the first word of "$ac_prog", so it can be a program name with args.
2694 set dummy $ac_prog; ac_word=$2
2695 echo "$as_me:$LINENO: checking for $ac_word" >&5
2696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2697 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2698 echo $ECHO_N "(cached) $ECHO_C" >&6
2699 else
2700 if test -n "$ac_ct_CXX"; then
2701 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2702 else
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 for as_dir in $PATH
2706 IFS=$as_save_IFS
2707 test -z "$as_dir" && as_dir=.
2708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2710 ac_cv_prog_ac_ct_CXX="$ac_prog"
2711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2712 break 2
2714 done
2715 done
2719 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2720 if test -n "$ac_ct_CXX"; then
2721 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2722 echo "${ECHO_T}$ac_ct_CXX" >&6
2723 else
2724 echo "$as_me:$LINENO: result: no" >&5
2725 echo "${ECHO_T}no" >&6
2728 test -n "$ac_ct_CXX" && break
2729 done
2730 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2732 CXX=$ac_ct_CXX
2736 # Provide some information about the compiler.
2737 echo "$as_me:$LINENO:" \
2738 "checking for C++ compiler version" >&5
2739 ac_compiler=`set X $ac_compile; echo $2`
2740 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2741 (eval $ac_compiler --version </dev/null >&5) 2>&5
2742 ac_status=$?
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); }
2745 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2746 (eval $ac_compiler -v </dev/null >&5) 2>&5
2747 ac_status=$?
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); }
2750 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2751 (eval $ac_compiler -V </dev/null >&5) 2>&5
2752 ac_status=$?
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); }
2756 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2757 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2758 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2759 echo $ECHO_N "(cached) $ECHO_C" >&6
2760 else
2761 cat >conftest.$ac_ext <<_ACEOF
2762 /* confdefs.h. */
2763 _ACEOF
2764 cat confdefs.h >>conftest.$ac_ext
2765 cat >>conftest.$ac_ext <<_ACEOF
2766 /* end confdefs.h. */
2769 main ()
2771 #ifndef __GNUC__
2772 choke me
2773 #endif
2776 return 0;
2778 _ACEOF
2779 rm -f conftest.$ac_objext
2780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2781 (eval $ac_compile) 2>conftest.er1
2782 ac_status=$?
2783 grep -v '^ *+' conftest.er1 >conftest.err
2784 rm -f conftest.er1
2785 cat conftest.err >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); } &&
2788 { ac_try='test -z "$ac_cxx_werror_flag"
2789 || test ! -s conftest.err'
2790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 (eval $ac_try) 2>&5
2792 ac_status=$?
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; } &&
2795 { ac_try='test -s conftest.$ac_objext'
2796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797 (eval $ac_try) 2>&5
2798 ac_status=$?
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }; }; then
2801 ac_compiler_gnu=yes
2802 else
2803 echo "$as_me: failed program was:" >&5
2804 sed 's/^/| /' conftest.$ac_ext >&5
2806 ac_compiler_gnu=no
2808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2809 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2812 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2813 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2814 GXX=`test $ac_compiler_gnu = yes && echo yes`
2815 ac_test_CXXFLAGS=${CXXFLAGS+set}
2816 ac_save_CXXFLAGS=$CXXFLAGS
2817 CXXFLAGS="-g"
2818 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2819 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2820 if test "${ac_cv_prog_cxx_g+set}" = set; then
2821 echo $ECHO_N "(cached) $ECHO_C" >&6
2822 else
2823 cat >conftest.$ac_ext <<_ACEOF
2824 /* confdefs.h. */
2825 _ACEOF
2826 cat confdefs.h >>conftest.$ac_ext
2827 cat >>conftest.$ac_ext <<_ACEOF
2828 /* end confdefs.h. */
2831 main ()
2835 return 0;
2837 _ACEOF
2838 rm -f conftest.$ac_objext
2839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2840 (eval $ac_compile) 2>conftest.er1
2841 ac_status=$?
2842 grep -v '^ *+' conftest.er1 >conftest.err
2843 rm -f conftest.er1
2844 cat conftest.err >&5
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); } &&
2847 { ac_try='test -z "$ac_cxx_werror_flag"
2848 || test ! -s conftest.err'
2849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2850 (eval $ac_try) 2>&5
2851 ac_status=$?
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); }; } &&
2854 { ac_try='test -s conftest.$ac_objext'
2855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856 (eval $ac_try) 2>&5
2857 ac_status=$?
2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); }; }; then
2860 ac_cv_prog_cxx_g=yes
2861 else
2862 echo "$as_me: failed program was:" >&5
2863 sed 's/^/| /' conftest.$ac_ext >&5
2865 ac_cv_prog_cxx_g=no
2867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2869 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2870 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2871 if test "$ac_test_CXXFLAGS" = set; then
2872 CXXFLAGS=$ac_save_CXXFLAGS
2873 elif test $ac_cv_prog_cxx_g = yes; then
2874 if test "$GXX" = yes; then
2875 CXXFLAGS="-g -O2"
2876 else
2877 CXXFLAGS="-g"
2879 else
2880 if test "$GXX" = yes; then
2881 CXXFLAGS="-O2"
2882 else
2883 CXXFLAGS=
2886 for ac_declaration in \
2887 '' \
2888 'extern "C" void std::exit (int) throw (); using std::exit;' \
2889 'extern "C" void std::exit (int); using std::exit;' \
2890 'extern "C" void exit (int) throw ();' \
2891 'extern "C" void exit (int);' \
2892 'void exit (int);'
2894 cat >conftest.$ac_ext <<_ACEOF
2895 /* confdefs.h. */
2896 _ACEOF
2897 cat confdefs.h >>conftest.$ac_ext
2898 cat >>conftest.$ac_ext <<_ACEOF
2899 /* end confdefs.h. */
2900 $ac_declaration
2901 #include <stdlib.h>
2903 main ()
2905 exit (42);
2907 return 0;
2909 _ACEOF
2910 rm -f conftest.$ac_objext
2911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2912 (eval $ac_compile) 2>conftest.er1
2913 ac_status=$?
2914 grep -v '^ *+' conftest.er1 >conftest.err
2915 rm -f conftest.er1
2916 cat conftest.err >&5
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); } &&
2919 { ac_try='test -z "$ac_cxx_werror_flag"
2920 || test ! -s conftest.err'
2921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2922 (eval $ac_try) 2>&5
2923 ac_status=$?
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }; } &&
2926 { ac_try='test -s conftest.$ac_objext'
2927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2928 (eval $ac_try) 2>&5
2929 ac_status=$?
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); }; }; then
2933 else
2934 echo "$as_me: failed program was:" >&5
2935 sed 's/^/| /' conftest.$ac_ext >&5
2937 continue
2939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2940 cat >conftest.$ac_ext <<_ACEOF
2941 /* confdefs.h. */
2942 _ACEOF
2943 cat confdefs.h >>conftest.$ac_ext
2944 cat >>conftest.$ac_ext <<_ACEOF
2945 /* end confdefs.h. */
2946 $ac_declaration
2948 main ()
2950 exit (42);
2952 return 0;
2954 _ACEOF
2955 rm -f conftest.$ac_objext
2956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2957 (eval $ac_compile) 2>conftest.er1
2958 ac_status=$?
2959 grep -v '^ *+' conftest.er1 >conftest.err
2960 rm -f conftest.er1
2961 cat conftest.err >&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); } &&
2964 { ac_try='test -z "$ac_cxx_werror_flag"
2965 || test ! -s conftest.err'
2966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2967 (eval $ac_try) 2>&5
2968 ac_status=$?
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); }; } &&
2971 { ac_try='test -s conftest.$ac_objext'
2972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2973 (eval $ac_try) 2>&5
2974 ac_status=$?
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); }; }; then
2977 break
2978 else
2979 echo "$as_me: failed program was:" >&5
2980 sed 's/^/| /' conftest.$ac_ext >&5
2983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2984 done
2985 rm -f conftest*
2986 if test -n "$ac_declaration"; then
2987 echo '#ifdef __cplusplus' >>confdefs.h
2988 echo $ac_declaration >>confdefs.h
2989 echo '#endif' >>confdefs.h
2992 ac_ext=c
2993 ac_cpp='$CPP $CPPFLAGS'
2994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2998 CXXFLAGS="$save_CXXFLAGS"
3004 am__api_version="1.9"
3005 # Find a good install program. We prefer a C program (faster),
3006 # so one script is as good as another. But avoid the broken or
3007 # incompatible versions:
3008 # SysV /etc/install, /usr/sbin/install
3009 # SunOS /usr/etc/install
3010 # IRIX /sbin/install
3011 # AIX /bin/install
3012 # AmigaOS /C/install, which installs bootblocks on floppy discs
3013 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3014 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3015 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3016 # OS/2's system install, which has a completely different semantic
3017 # ./install, which can be erroneously created by make from ./install.sh.
3018 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3019 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3020 if test -z "$INSTALL"; then
3021 if test "${ac_cv_path_install+set}" = set; then
3022 echo $ECHO_N "(cached) $ECHO_C" >&6
3023 else
3024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3025 for as_dir in $PATH
3027 IFS=$as_save_IFS
3028 test -z "$as_dir" && as_dir=.
3029 # Account for people who put trailing slashes in PATH elements.
3030 case $as_dir/ in
3031 ./ | .// | /cC/* | \
3032 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3033 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3034 /usr/ucb/* ) ;;
3036 # OSF1 and SCO ODT 3.0 have their own names for install.
3037 # Don't use installbsd from OSF since it installs stuff as root
3038 # by default.
3039 for ac_prog in ginstall scoinst install; do
3040 for ac_exec_ext in '' $ac_executable_extensions; do
3041 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3042 if test $ac_prog = install &&
3043 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3044 # AIX install. It has an incompatible calling convention.
3046 elif test $ac_prog = install &&
3047 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3048 # program-specific install script used by HP pwplus--don't use.
3050 else
3051 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3052 break 3
3055 done
3056 done
3058 esac
3059 done
3063 if test "${ac_cv_path_install+set}" = set; then
3064 INSTALL=$ac_cv_path_install
3065 else
3066 # As a last resort, use the slow shell script. We don't cache a
3067 # path for INSTALL within a source directory, because that will
3068 # break other packages using the cache if that directory is
3069 # removed, or if the path is relative.
3070 INSTALL=$ac_install_sh
3073 echo "$as_me:$LINENO: result: $INSTALL" >&5
3074 echo "${ECHO_T}$INSTALL" >&6
3076 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3077 # It thinks the first close brace ends the variable substitution.
3078 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3080 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3082 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3084 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3085 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3086 # Just in case
3087 sleep 1
3088 echo timestamp > conftest.file
3089 # Do `set' in a subshell so we don't clobber the current shell's
3090 # arguments. Must try -L first in case configure is actually a
3091 # symlink; some systems play weird games with the mod time of symlinks
3092 # (eg FreeBSD returns the mod time of the symlink's containing
3093 # directory).
3094 if (
3095 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3096 if test "$*" = "X"; then
3097 # -L didn't work.
3098 set X `ls -t $srcdir/configure conftest.file`
3100 rm -f conftest.file
3101 if test "$*" != "X $srcdir/configure conftest.file" \
3102 && test "$*" != "X conftest.file $srcdir/configure"; then
3104 # If neither matched, then we have a broken ls. This can happen
3105 # if, for instance, CONFIG_SHELL is bash and it inherits a
3106 # broken ls alias from the environment. This has actually
3107 # happened. Such a system could not be considered "sane".
3108 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3109 alias in your environment" >&5
3110 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3111 alias in your environment" >&2;}
3112 { (exit 1); exit 1; }; }
3115 test "$2" = conftest.file
3117 then
3118 # Ok.
3120 else
3121 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3122 Check your system clock" >&5
3123 echo "$as_me: error: newly created file is older than distributed files!
3124 Check your system clock" >&2;}
3125 { (exit 1); exit 1; }; }
3127 echo "$as_me:$LINENO: result: yes" >&5
3128 echo "${ECHO_T}yes" >&6
3129 test "$program_prefix" != NONE &&
3130 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3131 # Use a double $ so make ignores it.
3132 test "$program_suffix" != NONE &&
3133 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3134 # Double any \ or $. echo might interpret backslashes.
3135 # By default was `s,x,x', remove it if useless.
3136 cat <<\_ACEOF >conftest.sed
3137 s/[\\$]/&&/g;s/;s,x,x,$//
3138 _ACEOF
3139 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3140 rm conftest.sed
3142 # expand $ac_aux_dir to an absolute path
3143 am_aux_dir=`cd $ac_aux_dir && pwd`
3145 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3146 # Use eval to expand $SHELL
3147 if eval "$MISSING --run true"; then
3148 am_missing_run="$MISSING --run "
3149 else
3150 am_missing_run=
3151 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3152 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3155 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3156 # We used to keeping the `.' as first argument, in order to
3157 # allow $(mkdir_p) to be used without argument. As in
3158 # $(mkdir_p) $(somedir)
3159 # where $(somedir) is conditionally defined. However this is wrong
3160 # for two reasons:
3161 # 1. if the package is installed by a user who cannot write `.'
3162 # make install will fail,
3163 # 2. the above comment should most certainly read
3164 # $(mkdir_p) $(DESTDIR)$(somedir)
3165 # so it does not work when $(somedir) is undefined and
3166 # $(DESTDIR) is not.
3167 # To support the latter case, we have to write
3168 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3169 # so the `.' trick is pointless.
3170 mkdir_p='mkdir -p --'
3171 else
3172 # On NextStep and OpenStep, the `mkdir' command does not
3173 # recognize any option. It will interpret all options as
3174 # directories to create, and then abort because `.' already
3175 # exists.
3176 for d in ./-p ./--version;
3178 test -d $d && rmdir $d
3179 done
3180 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3181 if test -f "$ac_aux_dir/mkinstalldirs"; then
3182 mkdir_p='$(mkinstalldirs)'
3183 else
3184 mkdir_p='$(install_sh) -d'
3188 for ac_prog in gawk mawk nawk awk
3190 # Extract the first word of "$ac_prog", so it can be a program name with args.
3191 set dummy $ac_prog; ac_word=$2
3192 echo "$as_me:$LINENO: checking for $ac_word" >&5
3193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3194 if test "${ac_cv_prog_AWK+set}" = set; then
3195 echo $ECHO_N "(cached) $ECHO_C" >&6
3196 else
3197 if test -n "$AWK"; then
3198 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3199 else
3200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 for as_dir in $PATH
3203 IFS=$as_save_IFS
3204 test -z "$as_dir" && as_dir=.
3205 for ac_exec_ext in '' $ac_executable_extensions; do
3206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3207 ac_cv_prog_AWK="$ac_prog"
3208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3209 break 2
3211 done
3212 done
3216 AWK=$ac_cv_prog_AWK
3217 if test -n "$AWK"; then
3218 echo "$as_me:$LINENO: result: $AWK" >&5
3219 echo "${ECHO_T}$AWK" >&6
3220 else
3221 echo "$as_me:$LINENO: result: no" >&5
3222 echo "${ECHO_T}no" >&6
3225 test -n "$AWK" && break
3226 done
3228 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3229 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3230 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3231 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3232 echo $ECHO_N "(cached) $ECHO_C" >&6
3233 else
3234 cat >conftest.make <<\_ACEOF
3235 all:
3236 @echo 'ac_maketemp="$(MAKE)"'
3237 _ACEOF
3238 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3239 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3240 if test -n "$ac_maketemp"; then
3241 eval ac_cv_prog_make_${ac_make}_set=yes
3242 else
3243 eval ac_cv_prog_make_${ac_make}_set=no
3245 rm -f conftest.make
3247 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3248 echo "$as_me:$LINENO: result: yes" >&5
3249 echo "${ECHO_T}yes" >&6
3250 SET_MAKE=
3251 else
3252 echo "$as_me:$LINENO: result: no" >&5
3253 echo "${ECHO_T}no" >&6
3254 SET_MAKE="MAKE=${MAKE-make}"
3257 rm -rf .tst 2>/dev/null
3258 mkdir .tst 2>/dev/null
3259 if test -d .tst; then
3260 am__leading_dot=.
3261 else
3262 am__leading_dot=_
3264 rmdir .tst 2>/dev/null
3266 DEPDIR="${am__leading_dot}deps"
3268 ac_config_commands="$ac_config_commands depfiles"
3271 am_make=${MAKE-make}
3272 cat > confinc << 'END'
3273 am__doit:
3274 @echo done
3275 .PHONY: am__doit
3277 # If we don't find an include directive, just comment out the code.
3278 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3279 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3280 am__include="#"
3281 am__quote=
3282 _am_result=none
3283 # First try GNU make style include.
3284 echo "include confinc" > confmf
3285 # We grep out `Entering directory' and `Leaving directory'
3286 # messages which can occur if `w' ends up in MAKEFLAGS.
3287 # In particular we don't look at `^make:' because GNU make might
3288 # be invoked under some other name (usually "gmake"), in which
3289 # case it prints its new name instead of `make'.
3290 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3291 am__include=include
3292 am__quote=
3293 _am_result=GNU
3295 # Now try BSD make style include.
3296 if test "$am__include" = "#"; then
3297 echo '.include "confinc"' > confmf
3298 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3299 am__include=.include
3300 am__quote="\""
3301 _am_result=BSD
3306 echo "$as_me:$LINENO: result: $_am_result" >&5
3307 echo "${ECHO_T}$_am_result" >&6
3308 rm -f confinc confmf
3310 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3311 if test "${enable_dependency_tracking+set}" = set; then
3312 enableval="$enable_dependency_tracking"
3315 if test "x$enable_dependency_tracking" != xno; then
3316 am_depcomp="$ac_aux_dir/depcomp"
3317 AMDEPBACKSLASH='\'
3321 if test "x$enable_dependency_tracking" != xno; then
3322 AMDEP_TRUE=
3323 AMDEP_FALSE='#'
3324 else
3325 AMDEP_TRUE='#'
3326 AMDEP_FALSE=
3331 # test to see if srcdir already configured
3332 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3333 test -f $srcdir/config.status; then
3334 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3335 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3336 { (exit 1); exit 1; }; }
3339 # test whether we have cygpath
3340 if test -z "$CYGPATH_W"; then
3341 if (cygpath --version) >/dev/null 2>/dev/null; then
3342 CYGPATH_W='cygpath -w'
3343 else
3344 CYGPATH_W=echo
3349 # Define the identity of the package.
3350 PACKAGE='libjava'
3351 VERSION='version-unused'
3354 cat >>confdefs.h <<_ACEOF
3355 #define PACKAGE "$PACKAGE"
3356 _ACEOF
3359 cat >>confdefs.h <<_ACEOF
3360 #define VERSION "$VERSION"
3361 _ACEOF
3363 # Some tools Automake needs.
3365 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3368 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3371 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3374 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3377 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3379 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3381 # Installed binaries are usually stripped using `strip' when the user
3382 # run `make install-strip'. However `strip' might not be the right
3383 # tool to use in cross-compilation environments, therefore Automake
3384 # will honor the `STRIP' environment variable to overrule this program.
3385 if test "$cross_compiling" != no; then
3386 if test -n "$ac_tool_prefix"; then
3387 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3388 set dummy ${ac_tool_prefix}strip; ac_word=$2
3389 echo "$as_me:$LINENO: checking for $ac_word" >&5
3390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3391 if test "${ac_cv_prog_STRIP+set}" = set; then
3392 echo $ECHO_N "(cached) $ECHO_C" >&6
3393 else
3394 if test -n "$STRIP"; then
3395 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3396 else
3397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3398 for as_dir in $PATH
3400 IFS=$as_save_IFS
3401 test -z "$as_dir" && as_dir=.
3402 for ac_exec_ext in '' $ac_executable_extensions; do
3403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3404 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3406 break 2
3408 done
3409 done
3413 STRIP=$ac_cv_prog_STRIP
3414 if test -n "$STRIP"; then
3415 echo "$as_me:$LINENO: result: $STRIP" >&5
3416 echo "${ECHO_T}$STRIP" >&6
3417 else
3418 echo "$as_me:$LINENO: result: no" >&5
3419 echo "${ECHO_T}no" >&6
3423 if test -z "$ac_cv_prog_STRIP"; then
3424 ac_ct_STRIP=$STRIP
3425 # Extract the first word of "strip", so it can be a program name with args.
3426 set dummy strip; ac_word=$2
3427 echo "$as_me:$LINENO: checking for $ac_word" >&5
3428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3429 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3430 echo $ECHO_N "(cached) $ECHO_C" >&6
3431 else
3432 if test -n "$ac_ct_STRIP"; then
3433 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3434 else
3435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3436 for as_dir in $PATH
3438 IFS=$as_save_IFS
3439 test -z "$as_dir" && as_dir=.
3440 for ac_exec_ext in '' $ac_executable_extensions; do
3441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3442 ac_cv_prog_ac_ct_STRIP="strip"
3443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3444 break 2
3446 done
3447 done
3449 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3452 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3453 if test -n "$ac_ct_STRIP"; then
3454 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3455 echo "${ECHO_T}$ac_ct_STRIP" >&6
3456 else
3457 echo "$as_me:$LINENO: result: no" >&5
3458 echo "${ECHO_T}no" >&6
3461 STRIP=$ac_ct_STRIP
3462 else
3463 STRIP="$ac_cv_prog_STRIP"
3467 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3469 # We need awk for the "check" target. The system "awk" is bad on
3470 # some platforms.
3471 # Always define AMTAR for backward compatibility.
3473 AMTAR=${AMTAR-"${am_missing_run}tar"}
3475 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3480 depcc="$CC" am_compiler_list=
3482 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3483 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3484 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3485 echo $ECHO_N "(cached) $ECHO_C" >&6
3486 else
3487 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3488 # We make a subdir and do the tests there. Otherwise we can end up
3489 # making bogus files that we don't know about and never remove. For
3490 # instance it was reported that on HP-UX the gcc test will end up
3491 # making a dummy file named `D' -- because `-MD' means `put the output
3492 # in D'.
3493 mkdir conftest.dir
3494 # Copy depcomp to subdir because otherwise we won't find it if we're
3495 # using a relative directory.
3496 cp "$am_depcomp" conftest.dir
3497 cd conftest.dir
3498 # We will build objects and dependencies in a subdirectory because
3499 # it helps to detect inapplicable dependency modes. For instance
3500 # both Tru64's cc and ICC support -MD to output dependencies as a
3501 # side effect of compilation, but ICC will put the dependencies in
3502 # the current directory while Tru64 will put them in the object
3503 # directory.
3504 mkdir sub
3506 am_cv_CC_dependencies_compiler_type=none
3507 if test "$am_compiler_list" = ""; then
3508 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3510 for depmode in $am_compiler_list; do
3511 # Setup a source with many dependencies, because some compilers
3512 # like to wrap large dependency lists on column 80 (with \), and
3513 # we should not choose a depcomp mode which is confused by this.
3515 # We need to recreate these files for each test, as the compiler may
3516 # overwrite some of them when testing with obscure command lines.
3517 # This happens at least with the AIX C compiler.
3518 : > sub/conftest.c
3519 for i in 1 2 3 4 5 6; do
3520 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3521 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3522 # Solaris 8's {/usr,}/bin/sh.
3523 touch sub/conftst$i.h
3524 done
3525 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3527 case $depmode in
3528 nosideeffect)
3529 # after this tag, mechanisms are not by side-effect, so they'll
3530 # only be used when explicitly requested
3531 if test "x$enable_dependency_tracking" = xyes; then
3532 continue
3533 else
3534 break
3537 none) break ;;
3538 esac
3539 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3540 # mode. It turns out that the SunPro C++ compiler does not properly
3541 # handle `-M -o', and we need to detect this.
3542 if depmode=$depmode \
3543 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3544 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3545 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3546 >/dev/null 2>conftest.err &&
3547 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3548 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3549 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3550 # icc doesn't choke on unknown options, it will just issue warnings
3551 # or remarks (even with -Werror). So we grep stderr for any message
3552 # that says an option was ignored or not supported.
3553 # When given -MP, icc 7.0 and 7.1 complain thusly:
3554 # icc: Command line warning: ignoring option '-M'; no argument required
3555 # The diagnosis changed in icc 8.0:
3556 # icc: Command line remark: option '-MP' not supported
3557 if (grep 'ignoring option' conftest.err ||
3558 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3559 am_cv_CC_dependencies_compiler_type=$depmode
3560 break
3563 done
3565 cd ..
3566 rm -rf conftest.dir
3567 else
3568 am_cv_CC_dependencies_compiler_type=none
3572 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3573 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3574 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3579 test "x$enable_dependency_tracking" != xno \
3580 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3581 am__fastdepCC_TRUE=
3582 am__fastdepCC_FALSE='#'
3583 else
3584 am__fastdepCC_TRUE='#'
3585 am__fastdepCC_FALSE=
3589 depcc="$CXX" am_compiler_list=
3591 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3592 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3593 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3594 echo $ECHO_N "(cached) $ECHO_C" >&6
3595 else
3596 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3597 # We make a subdir and do the tests there. Otherwise we can end up
3598 # making bogus files that we don't know about and never remove. For
3599 # instance it was reported that on HP-UX the gcc test will end up
3600 # making a dummy file named `D' -- because `-MD' means `put the output
3601 # in D'.
3602 mkdir conftest.dir
3603 # Copy depcomp to subdir because otherwise we won't find it if we're
3604 # using a relative directory.
3605 cp "$am_depcomp" conftest.dir
3606 cd conftest.dir
3607 # We will build objects and dependencies in a subdirectory because
3608 # it helps to detect inapplicable dependency modes. For instance
3609 # both Tru64's cc and ICC support -MD to output dependencies as a
3610 # side effect of compilation, but ICC will put the dependencies in
3611 # the current directory while Tru64 will put them in the object
3612 # directory.
3613 mkdir sub
3615 am_cv_CXX_dependencies_compiler_type=none
3616 if test "$am_compiler_list" = ""; then
3617 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3619 for depmode in $am_compiler_list; do
3620 # Setup a source with many dependencies, because some compilers
3621 # like to wrap large dependency lists on column 80 (with \), and
3622 # we should not choose a depcomp mode which is confused by this.
3624 # We need to recreate these files for each test, as the compiler may
3625 # overwrite some of them when testing with obscure command lines.
3626 # This happens at least with the AIX C compiler.
3627 : > sub/conftest.c
3628 for i in 1 2 3 4 5 6; do
3629 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3630 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3631 # Solaris 8's {/usr,}/bin/sh.
3632 touch sub/conftst$i.h
3633 done
3634 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3636 case $depmode in
3637 nosideeffect)
3638 # after this tag, mechanisms are not by side-effect, so they'll
3639 # only be used when explicitly requested
3640 if test "x$enable_dependency_tracking" = xyes; then
3641 continue
3642 else
3643 break
3646 none) break ;;
3647 esac
3648 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3649 # mode. It turns out that the SunPro C++ compiler does not properly
3650 # handle `-M -o', and we need to detect this.
3651 if depmode=$depmode \
3652 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3653 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3654 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3655 >/dev/null 2>conftest.err &&
3656 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3657 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3658 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3659 # icc doesn't choke on unknown options, it will just issue warnings
3660 # or remarks (even with -Werror). So we grep stderr for any message
3661 # that says an option was ignored or not supported.
3662 # When given -MP, icc 7.0 and 7.1 complain thusly:
3663 # icc: Command line warning: ignoring option '-M'; no argument required
3664 # The diagnosis changed in icc 8.0:
3665 # icc: Command line remark: option '-MP' not supported
3666 if (grep 'ignoring option' conftest.err ||
3667 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3668 am_cv_CXX_dependencies_compiler_type=$depmode
3669 break
3672 done
3674 cd ..
3675 rm -rf conftest.dir
3676 else
3677 am_cv_CXX_dependencies_compiler_type=none
3681 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3682 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3683 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3688 test "x$enable_dependency_tracking" != xno \
3689 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3690 am__fastdepCXX_TRUE=
3691 am__fastdepCXX_FALSE='#'
3692 else
3693 am__fastdepCXX_TRUE='#'
3694 am__fastdepCXX_FALSE=
3700 if test -n "$ac_tool_prefix"; then
3701 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3702 set dummy ${ac_tool_prefix}as; ac_word=$2
3703 echo "$as_me:$LINENO: checking for $ac_word" >&5
3704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3705 if test "${ac_cv_prog_AS+set}" = set; then
3706 echo $ECHO_N "(cached) $ECHO_C" >&6
3707 else
3708 if test -n "$AS"; then
3709 ac_cv_prog_AS="$AS" # Let the user override the test.
3710 else
3711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712 for as_dir in $PATH
3714 IFS=$as_save_IFS
3715 test -z "$as_dir" && as_dir=.
3716 for ac_exec_ext in '' $ac_executable_extensions; do
3717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3718 ac_cv_prog_AS="${ac_tool_prefix}as"
3719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3720 break 2
3722 done
3723 done
3727 AS=$ac_cv_prog_AS
3728 if test -n "$AS"; then
3729 echo "$as_me:$LINENO: result: $AS" >&5
3730 echo "${ECHO_T}$AS" >&6
3731 else
3732 echo "$as_me:$LINENO: result: no" >&5
3733 echo "${ECHO_T}no" >&6
3737 if test -z "$ac_cv_prog_AS"; then
3738 ac_ct_AS=$AS
3739 # Extract the first word of "as", so it can be a program name with args.
3740 set dummy as; ac_word=$2
3741 echo "$as_me:$LINENO: checking for $ac_word" >&5
3742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3743 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3744 echo $ECHO_N "(cached) $ECHO_C" >&6
3745 else
3746 if test -n "$ac_ct_AS"; then
3747 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3748 else
3749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3750 for as_dir in $PATH
3752 IFS=$as_save_IFS
3753 test -z "$as_dir" && as_dir=.
3754 for ac_exec_ext in '' $ac_executable_extensions; do
3755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3756 ac_cv_prog_ac_ct_AS="as"
3757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3758 break 2
3760 done
3761 done
3765 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3766 if test -n "$ac_ct_AS"; then
3767 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3768 echo "${ECHO_T}$ac_ct_AS" >&6
3769 else
3770 echo "$as_me:$LINENO: result: no" >&5
3771 echo "${ECHO_T}no" >&6
3774 AS=$ac_ct_AS
3775 else
3776 AS="$ac_cv_prog_AS"
3779 if test -n "$ac_tool_prefix"; then
3780 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3781 set dummy ${ac_tool_prefix}ld; ac_word=$2
3782 echo "$as_me:$LINENO: checking for $ac_word" >&5
3783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3784 if test "${ac_cv_prog_LD+set}" = set; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3786 else
3787 if test -n "$LD"; then
3788 ac_cv_prog_LD="$LD" # Let the user override the test.
3789 else
3790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3791 for as_dir in $PATH
3793 IFS=$as_save_IFS
3794 test -z "$as_dir" && as_dir=.
3795 for ac_exec_ext in '' $ac_executable_extensions; do
3796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3797 ac_cv_prog_LD="${ac_tool_prefix}ld"
3798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3799 break 2
3801 done
3802 done
3806 LD=$ac_cv_prog_LD
3807 if test -n "$LD"; then
3808 echo "$as_me:$LINENO: result: $LD" >&5
3809 echo "${ECHO_T}$LD" >&6
3810 else
3811 echo "$as_me:$LINENO: result: no" >&5
3812 echo "${ECHO_T}no" >&6
3816 if test -z "$ac_cv_prog_LD"; then
3817 ac_ct_LD=$LD
3818 # Extract the first word of "ld", so it can be a program name with args.
3819 set dummy ld; ac_word=$2
3820 echo "$as_me:$LINENO: checking for $ac_word" >&5
3821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3822 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3823 echo $ECHO_N "(cached) $ECHO_C" >&6
3824 else
3825 if test -n "$ac_ct_LD"; then
3826 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3827 else
3828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829 for as_dir in $PATH
3831 IFS=$as_save_IFS
3832 test -z "$as_dir" && as_dir=.
3833 for ac_exec_ext in '' $ac_executable_extensions; do
3834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3835 ac_cv_prog_ac_ct_LD="ld"
3836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3837 break 2
3839 done
3840 done
3844 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3845 if test -n "$ac_ct_LD"; then
3846 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
3847 echo "${ECHO_T}$ac_ct_LD" >&6
3848 else
3849 echo "$as_me:$LINENO: result: no" >&5
3850 echo "${ECHO_T}no" >&6
3853 LD=$ac_ct_LD
3854 else
3855 LD="$ac_cv_prog_LD"
3858 if test -n "$ac_tool_prefix"; then
3859 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3860 set dummy ${ac_tool_prefix}ar; ac_word=$2
3861 echo "$as_me:$LINENO: checking for $ac_word" >&5
3862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3863 if test "${ac_cv_prog_AR+set}" = set; then
3864 echo $ECHO_N "(cached) $ECHO_C" >&6
3865 else
3866 if test -n "$AR"; then
3867 ac_cv_prog_AR="$AR" # Let the user override the test.
3868 else
3869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3870 for as_dir in $PATH
3872 IFS=$as_save_IFS
3873 test -z "$as_dir" && as_dir=.
3874 for ac_exec_ext in '' $ac_executable_extensions; do
3875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3876 ac_cv_prog_AR="${ac_tool_prefix}ar"
3877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3878 break 2
3880 done
3881 done
3885 AR=$ac_cv_prog_AR
3886 if test -n "$AR"; then
3887 echo "$as_me:$LINENO: result: $AR" >&5
3888 echo "${ECHO_T}$AR" >&6
3889 else
3890 echo "$as_me:$LINENO: result: no" >&5
3891 echo "${ECHO_T}no" >&6
3895 if test -z "$ac_cv_prog_AR"; then
3896 ac_ct_AR=$AR
3897 # Extract the first word of "ar", so it can be a program name with args.
3898 set dummy ar; ac_word=$2
3899 echo "$as_me:$LINENO: checking for $ac_word" >&5
3900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3901 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3902 echo $ECHO_N "(cached) $ECHO_C" >&6
3903 else
3904 if test -n "$ac_ct_AR"; then
3905 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3906 else
3907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908 for as_dir in $PATH
3910 IFS=$as_save_IFS
3911 test -z "$as_dir" && as_dir=.
3912 for ac_exec_ext in '' $ac_executable_extensions; do
3913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3914 ac_cv_prog_ac_ct_AR="ar"
3915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3916 break 2
3918 done
3919 done
3923 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3924 if test -n "$ac_ct_AR"; then
3925 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3926 echo "${ECHO_T}$ac_ct_AR" >&6
3927 else
3928 echo "$as_me:$LINENO: result: no" >&5
3929 echo "${ECHO_T}no" >&6
3932 AR=$ac_ct_AR
3933 else
3934 AR="$ac_cv_prog_AR"
3937 if test -n "$ac_tool_prefix"; then
3938 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3939 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3940 echo "$as_me:$LINENO: checking for $ac_word" >&5
3941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3942 if test "${ac_cv_prog_RANLIB+set}" = set; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3944 else
3945 if test -n "$RANLIB"; then
3946 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3947 else
3948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949 for as_dir in $PATH
3951 IFS=$as_save_IFS
3952 test -z "$as_dir" && as_dir=.
3953 for ac_exec_ext in '' $ac_executable_extensions; do
3954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3955 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3957 break 2
3959 done
3960 done
3964 RANLIB=$ac_cv_prog_RANLIB
3965 if test -n "$RANLIB"; then
3966 echo "$as_me:$LINENO: result: $RANLIB" >&5
3967 echo "${ECHO_T}$RANLIB" >&6
3968 else
3969 echo "$as_me:$LINENO: result: no" >&5
3970 echo "${ECHO_T}no" >&6
3974 if test -z "$ac_cv_prog_RANLIB"; then
3975 ac_ct_RANLIB=$RANLIB
3976 # Extract the first word of "ranlib", so it can be a program name with args.
3977 set dummy ranlib; ac_word=$2
3978 echo "$as_me:$LINENO: checking for $ac_word" >&5
3979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3980 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3982 else
3983 if test -n "$ac_ct_RANLIB"; then
3984 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3985 else
3986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987 for as_dir in $PATH
3989 IFS=$as_save_IFS
3990 test -z "$as_dir" && as_dir=.
3991 for ac_exec_ext in '' $ac_executable_extensions; do
3992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3993 ac_cv_prog_ac_ct_RANLIB="ranlib"
3994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3995 break 2
3997 done
3998 done
4000 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4003 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4004 if test -n "$ac_ct_RANLIB"; then
4005 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4006 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4007 else
4008 echo "$as_me:$LINENO: result: no" >&5
4009 echo "${ECHO_T}no" >&6
4012 RANLIB=$ac_ct_RANLIB
4013 else
4014 RANLIB="$ac_cv_prog_RANLIB"
4017 for ac_prog in gawk mawk nawk awk
4019 # Extract the first word of "$ac_prog", so it can be a program name with args.
4020 set dummy $ac_prog; ac_word=$2
4021 echo "$as_me:$LINENO: checking for $ac_word" >&5
4022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4023 if test "${ac_cv_prog_AWK+set}" = set; then
4024 echo $ECHO_N "(cached) $ECHO_C" >&6
4025 else
4026 if test -n "$AWK"; then
4027 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4028 else
4029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4030 for as_dir in $PATH
4032 IFS=$as_save_IFS
4033 test -z "$as_dir" && as_dir=.
4034 for ac_exec_ext in '' $ac_executable_extensions; do
4035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4036 ac_cv_prog_AWK="$ac_prog"
4037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4038 break 2
4040 done
4041 done
4045 AWK=$ac_cv_prog_AWK
4046 if test -n "$AWK"; then
4047 echo "$as_me:$LINENO: result: $AWK" >&5
4048 echo "${ECHO_T}$AWK" >&6
4049 else
4050 echo "$as_me:$LINENO: result: no" >&5
4051 echo "${ECHO_T}no" >&6
4054 test -n "$AWK" && break
4055 done
4057 for ac_prog in jar fastjar
4059 # Extract the first word of "$ac_prog", so it can be a program name with args.
4060 set dummy $ac_prog; ac_word=$2
4061 echo "$as_me:$LINENO: checking for $ac_word" >&5
4062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4063 if test "${ac_cv_prog_JAR+set}" = set; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4065 else
4066 if test -n "$JAR"; then
4067 ac_cv_prog_JAR="$JAR" # Let the user override the test.
4068 else
4069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4070 for as_dir in $PATH
4072 IFS=$as_save_IFS
4073 test -z "$as_dir" && as_dir=.
4074 for ac_exec_ext in '' $ac_executable_extensions; do
4075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4076 ac_cv_prog_JAR="$ac_prog"
4077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4078 break 2
4080 done
4081 done
4085 JAR=$ac_cv_prog_JAR
4086 if test -n "$JAR"; then
4087 echo "$as_me:$LINENO: result: $JAR" >&5
4088 echo "${ECHO_T}$JAR" >&6
4089 else
4090 echo "$as_me:$LINENO: result: no" >&5
4091 echo "${ECHO_T}no" >&6
4094 test -n "$JAR" && break
4095 done
4096 test -n "$JAR" || JAR="no"
4098 # Extract the first word of "zip", so it can be a program name with args.
4099 set dummy zip; ac_word=$2
4100 echo "$as_me:$LINENO: checking for $ac_word" >&5
4101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4102 if test "${ac_cv_path_ZIP+set}" = set; then
4103 echo $ECHO_N "(cached) $ECHO_C" >&6
4104 else
4105 case $ZIP in
4106 [\\/]* | ?:[\\/]*)
4107 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
4110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111 for as_dir in $PATH
4113 IFS=$as_save_IFS
4114 test -z "$as_dir" && as_dir=.
4115 for ac_exec_ext in '' $ac_executable_extensions; do
4116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4117 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
4118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4119 break 2
4121 done
4122 done
4124 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
4126 esac
4128 ZIP=$ac_cv_path_ZIP
4130 if test -n "$ZIP"; then
4131 echo "$as_me:$LINENO: result: $ZIP" >&5
4132 echo "${ECHO_T}$ZIP" >&6
4133 else
4134 echo "$as_me:$LINENO: result: no" >&5
4135 echo "${ECHO_T}no" >&6
4138 # Extract the first word of "unzip", so it can be a program name with args.
4139 set dummy unzip; ac_word=$2
4140 echo "$as_me:$LINENO: checking for $ac_word" >&5
4141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4142 if test "${ac_cv_path_UNZIP+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
4144 else
4145 case $UNZIP in
4146 [\\/]* | ?:[\\/]*)
4147 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
4150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151 for as_dir in $PATH
4153 IFS=$as_save_IFS
4154 test -z "$as_dir" && as_dir=.
4155 for ac_exec_ext in '' $ac_executable_extensions; do
4156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4157 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
4158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4159 break 2
4161 done
4162 done
4164 test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
4166 esac
4168 UNZIP=$ac_cv_path_UNZIP
4170 if test -n "$UNZIP"; then
4171 echo "$as_me:$LINENO: result: $UNZIP" >&5
4172 echo "${ECHO_T}$UNZIP" >&6
4173 else
4174 echo "$as_me:$LINENO: result: no" >&5
4175 echo "${ECHO_T}no" >&6
4180 if test "$JAR" = no; then
4181 BASH_JAR_TRUE=
4182 BASH_JAR_FALSE='#'
4183 else
4184 BASH_JAR_TRUE='#'
4185 BASH_JAR_FALSE=
4188 if test "$ZIP" = no; then
4189 if test "$JAR" = no; then
4190 { { echo "$as_me:$LINENO: error: cannot find neither zip nor jar, cannot continue" >&5
4191 echo "$as_me: error: cannot find neither zip nor jar, cannot continue" >&2;}
4192 { (exit 1); exit 1; }; }
4194 else
4195 # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
4196 JAR=`pwd`/scripts/jar
4199 # Find a good install program. We prefer a C program (faster),
4200 # so one script is as good as another. But avoid the broken or
4201 # incompatible versions:
4202 # SysV /etc/install, /usr/sbin/install
4203 # SunOS /usr/etc/install
4204 # IRIX /sbin/install
4205 # AIX /bin/install
4206 # AmigaOS /C/install, which installs bootblocks on floppy discs
4207 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4208 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4209 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4210 # OS/2's system install, which has a completely different semantic
4211 # ./install, which can be erroneously created by make from ./install.sh.
4212 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4213 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4214 if test -z "$INSTALL"; then
4215 if test "${ac_cv_path_install+set}" = set; then
4216 echo $ECHO_N "(cached) $ECHO_C" >&6
4217 else
4218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219 for as_dir in $PATH
4221 IFS=$as_save_IFS
4222 test -z "$as_dir" && as_dir=.
4223 # Account for people who put trailing slashes in PATH elements.
4224 case $as_dir/ in
4225 ./ | .// | /cC/* | \
4226 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4227 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4228 /usr/ucb/* ) ;;
4230 # OSF1 and SCO ODT 3.0 have their own names for install.
4231 # Don't use installbsd from OSF since it installs stuff as root
4232 # by default.
4233 for ac_prog in ginstall scoinst install; do
4234 for ac_exec_ext in '' $ac_executable_extensions; do
4235 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4236 if test $ac_prog = install &&
4237 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4238 # AIX install. It has an incompatible calling convention.
4240 elif test $ac_prog = install &&
4241 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4242 # program-specific install script used by HP pwplus--don't use.
4244 else
4245 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4246 break 3
4249 done
4250 done
4252 esac
4253 done
4257 if test "${ac_cv_path_install+set}" = set; then
4258 INSTALL=$ac_cv_path_install
4259 else
4260 # As a last resort, use the slow shell script. We don't cache a
4261 # path for INSTALL within a source directory, because that will
4262 # break other packages using the cache if that directory is
4263 # removed, or if the path is relative.
4264 INSTALL=$ac_install_sh
4267 echo "$as_me:$LINENO: result: $INSTALL" >&5
4268 echo "${ECHO_T}$INSTALL" >&6
4270 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4271 # It thinks the first close brace ends the variable substitution.
4272 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4274 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4276 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4279 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4280 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4281 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4282 if test "${enable_maintainer_mode+set}" = set; then
4283 enableval="$enable_maintainer_mode"
4284 USE_MAINTAINER_MODE=$enableval
4285 else
4286 USE_MAINTAINER_MODE=no
4288 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4289 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4292 if test $USE_MAINTAINER_MODE = yes; then
4293 MAINTAINER_MODE_TRUE=
4294 MAINTAINER_MODE_FALSE='#'
4295 else
4296 MAINTAINER_MODE_TRUE='#'
4297 MAINTAINER_MODE_FALSE=
4300 MAINT=$MAINTAINER_MODE_TRUE
4306 # configure.host sets the following important variables
4307 # libgcj_cflags - host specific C compiler flags
4308 # libgcj_cxxflags - host specific C++ compiler flags
4309 # libgcj_javaflags - host specific Java compiler flags
4311 libgcj_cflags=
4312 libgcj_cxxflags=
4313 libgcj_javaflags=
4315 . ${srcdir}/configure.host
4317 LIBGCJ_CFLAGS="${libgcj_cflags}"
4318 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4319 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4320 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4326 # Only use libltdl for non-newlib builds.
4327 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4328 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
4329 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4330 library_names_spec=
4331 libname_spec='lib$name'
4332 soname_spec=
4333 shrext=".so"
4334 postinstall_cmds=
4335 postuninstall_cmds=
4336 finish_cmds=
4337 finish_eval=
4338 shlibpath_var=
4339 shlibpath_overrides_runpath=unknown
4340 version_type=none
4341 dynamic_linker="$host_os ld.so"
4342 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4343 if test "$GCC" = yes; then
4344 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4345 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
4346 # if the path contains ";" then we assume it to be the separator
4347 # otherwise default to the standard path separator (i.e. ":") - it is
4348 # assumed that no part of a normal pathname contains ";" but that should
4349 # okay in the real world where ";" in dirpaths is itself problematic.
4350 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4351 else
4352 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4354 else
4355 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4357 need_lib_prefix=unknown
4358 hardcode_into_libs=no
4360 # when you set need_version to no, make sure it does not cause -set_version
4361 # flags to be left without arguments
4362 need_version=unknown
4364 case $host_os in
4365 aix3*)
4366 version_type=linux
4367 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4368 shlibpath_var=LIBPATH
4370 # AIX 3 has no versioning support, so we append a major version to the name.
4371 soname_spec='${libname}${release}${shared_ext}$major'
4374 aix4* | aix5*)
4375 version_type=linux
4376 need_lib_prefix=no
4377 need_version=no
4378 hardcode_into_libs=yes
4379 if test "$host_cpu" = ia64; then
4380 # AIX 5 supports IA64
4381 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4382 shlibpath_var=LD_LIBRARY_PATH
4383 else
4384 # With GCC up to 2.95.x, collect2 would create an import file
4385 # for dependence libraries. The import file would start with
4386 # the line `#! .'. This would cause the generated library to
4387 # depend on `.', always an invalid library. This was fixed in
4388 # development snapshots of GCC prior to 3.0.
4389 case $host_os in
4390 aix4 | aix4.[01] | aix4.[01].*)
4391 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4392 echo ' yes '
4393 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4395 else
4396 can_build_shared=no
4399 esac
4400 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4401 # soname into executable. Probably we can add versioning support to
4402 # collect2, so additional links can be useful in future.
4403 if test "$aix_use_runtimelinking" = yes; then
4404 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4405 # instead of lib<name>.a to let people know that these are not
4406 # typical AIX shared libraries.
4407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4408 else
4409 # We preserve .a as extension for shared libraries through AIX4.2
4410 # and later when we are not doing run time linking.
4411 library_names_spec='${libname}${release}.a $libname.a'
4412 soname_spec='${libname}${release}${shared_ext}$major'
4414 shlibpath_var=LIBPATH
4418 amigaos*)
4419 library_names_spec='$libname.ixlibrary $libname.a'
4420 # Create ${libname}_ixlibrary.a entries in /sys/libs.
4421 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'
4424 beos*)
4425 library_names_spec='${libname}${shared_ext}'
4426 dynamic_linker="$host_os ld.so"
4427 shlibpath_var=LIBRARY_PATH
4430 bsdi4*)
4431 version_type=linux
4432 need_version=no
4433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4434 soname_spec='${libname}${release}${shared_ext}$major'
4435 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4436 shlibpath_var=LD_LIBRARY_PATH
4437 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4438 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4439 # the default ld.so.conf also contains /usr/contrib/lib and
4440 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4441 # libtool to hard-code these into programs
4444 cygwin* | mingw* | pw32*)
4445 version_type=windows
4446 shrext=".dll"
4447 need_version=no
4448 need_lib_prefix=no
4450 case $GCC,$host_os in
4451 yes,cygwin* | yes,mingw* | yes,pw32*)
4452 library_names_spec='$libname.dll.a'
4453 # DLL is installed to $(libdir)/../bin by postinstall_cmds
4454 postinstall_cmds='base_file=`basename \${file}`~
4455 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
4456 dldir=$destdir/`dirname \$dlpath`~
4457 test -d \$dldir || mkdir -p \$dldir~
4458 $install_prog $dir/$dlname \$dldir/$dlname'
4459 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4460 dlpath=$dir/\$dldll~
4461 $rm \$dlpath'
4462 shlibpath_overrides_runpath=yes
4464 case $host_os in
4465 cygwin*)
4466 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4467 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4468 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
4470 mingw*)
4471 # MinGW DLLs use traditional 'lib' prefix
4472 soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4473 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4474 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
4475 # It is most probably a Windows format PATH printed by
4476 # mingw gcc, but we are running on Cygwin. Gcc prints its search
4477 # path with ; separators, and with drive letters. We can handle the
4478 # drive letters (cygwin fileutils understands them), so leave them,
4479 # especially as we might pass files found there to a mingw objdump,
4480 # which wouldn't understand a cygwinified path. Ahh.
4481 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4482 else
4483 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4486 pw32*)
4487 # pw32 DLLs use 'pw' prefix rather than 'lib'
4488 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
4490 esac
4494 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
4496 esac
4497 dynamic_linker='Win32 ld.exe'
4498 # FIXME: first we should search . and the directory the executable is in
4499 shlibpath_var=PATH
4502 darwin* | rhapsody*)
4503 dynamic_linker="$host_os dyld"
4504 version_type=darwin
4505 need_lib_prefix=no
4506 need_version=no
4507 # FIXME: Relying on posixy $() will cause problems for
4508 # cross-compilation, but unfortunately the echo tests do not
4509 # yet detect zsh echo's removal of \ escapes.
4510 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4511 soname_spec='${libname}${release}${major}$shared_ext'
4512 shlibpath_overrides_runpath=yes
4513 shlibpath_var=DYLD_LIBRARY_PATH
4514 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
4515 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
4516 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
4517 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"`
4519 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4522 dgux*)
4523 version_type=linux
4524 need_lib_prefix=no
4525 need_version=no
4526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4527 soname_spec='${libname}${release}${shared_ext}$major'
4528 shlibpath_var=LD_LIBRARY_PATH
4531 freebsd1*)
4532 dynamic_linker=no
4535 freebsd*)
4536 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4537 version_type=freebsd-$objformat
4538 case $version_type in
4539 freebsd-elf*)
4540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4541 need_version=no
4542 need_lib_prefix=no
4544 freebsd-*)
4545 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4546 need_version=yes
4548 esac
4549 shlibpath_var=LD_LIBRARY_PATH
4550 case $host_os in
4551 freebsd2*)
4552 shlibpath_overrides_runpath=yes
4554 freebsd3.01* | freebsdelf3.01*)
4555 shlibpath_overrides_runpath=yes
4556 hardcode_into_libs=yes
4558 *) # from 3.2 on
4559 shlibpath_overrides_runpath=no
4560 hardcode_into_libs=yes
4562 esac
4565 gnu*)
4566 version_type=linux
4567 need_lib_prefix=no
4568 need_version=no
4569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4570 soname_spec='${libname}${release}${shared_ext}$major'
4571 shlibpath_var=LD_LIBRARY_PATH
4572 hardcode_into_libs=yes
4575 hpux9* | hpux10* | hpux11*)
4576 # Give a soname corresponding to the major version so that dld.sl refuses to
4577 # link against other versions.
4578 version_type=sunos
4579 need_lib_prefix=no
4580 need_version=no
4581 case "$host_cpu" in
4582 ia64*)
4583 shrext='.so'
4584 hardcode_into_libs=yes
4585 dynamic_linker="$host_os dld.so"
4586 shlibpath_var=LD_LIBRARY_PATH
4587 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4589 soname_spec='${libname}${release}${shared_ext}$major'
4590 if test "X$HPUX_IA64_MODE" = X32; then
4591 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4592 else
4593 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4595 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4597 hppa*64*)
4598 shrext='.sl'
4599 hardcode_into_libs=yes
4600 dynamic_linker="$host_os dld.sl"
4601 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4602 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4604 soname_spec='${libname}${release}${shared_ext}$major'
4605 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
4606 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4609 shrext='.sl'
4610 dynamic_linker="$host_os dld.sl"
4611 shlibpath_var=SHLIB_PATH
4612 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4614 soname_spec='${libname}${release}${shared_ext}$major'
4616 esac
4617 # HP-UX runs *really* slowly unless shared libraries are mode 555.
4618 postinstall_cmds='chmod 555 $lib'
4621 irix5* | irix6* | nonstopux*)
4622 case $host_os in
4623 nonstopux*) version_type=nonstopux ;;
4625 if test "$lt_cv_prog_gnu_ld" = yes; then
4626 version_type=linux
4627 else
4628 version_type=irix
4629 fi ;;
4630 esac
4631 need_lib_prefix=no
4632 need_version=no
4633 soname_spec='${libname}${release}${shared_ext}$major'
4634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4635 case $host_os in
4636 irix5* | nonstopux*)
4637 libsuff= shlibsuff=
4640 case $LD in # libtool.m4 will add one of these switches to LD
4641 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
4642 libsuff= shlibsuff= libmagic=32-bit;;
4643 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
4644 libsuff=32 shlibsuff=N32 libmagic=N32;;
4645 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
4646 libsuff=64 shlibsuff=64 libmagic=64-bit;;
4647 *) libsuff= shlibsuff= libmagic=never-match;;
4648 esac
4650 esac
4651 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4652 shlibpath_overrides_runpath=no
4653 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4654 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4655 hardcode_into_libs=yes
4658 # No shared lib support for Linux oldld, aout, or coff.
4659 linux*oldld* | linux*aout* | linux*coff*)
4660 dynamic_linker=no
4663 # This must be Linux ELF.
4664 linux*)
4665 version_type=linux
4666 need_lib_prefix=no
4667 need_version=no
4668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4669 soname_spec='${libname}${release}${shared_ext}$major'
4670 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4671 shlibpath_var=LD_LIBRARY_PATH
4672 shlibpath_overrides_runpath=no
4673 # This implies no fast_install, which is unacceptable.
4674 # Some rework will be needed to allow for fast_install
4675 # before this can be enabled.
4676 hardcode_into_libs=yes
4678 # We used to test for /lib/ld.so.1 and disable shared libraries on
4679 # powerpc, because MkLinux only supported shared libraries with the
4680 # GNU dynamic linker. Since this was broken with cross compilers,
4681 # most powerpc-linux boxes support dynamic linking these days and
4682 # people can always --disable-shared, the test was removed, and we
4683 # assume the GNU/Linux dynamic linker is in use.
4684 dynamic_linker='GNU/Linux ld.so'
4687 netbsd*)
4688 version_type=sunos
4689 need_lib_prefix=no
4690 need_version=no
4691 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4693 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4694 dynamic_linker='NetBSD (a.out) ld.so'
4695 else
4696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
4697 soname_spec='${libname}${release}${shared_ext}$major'
4698 dynamic_linker='NetBSD ld.elf_so'
4700 shlibpath_var=LD_LIBRARY_PATH
4701 shlibpath_overrides_runpath=yes
4702 hardcode_into_libs=yes
4705 newsos6)
4706 version_type=linux
4707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4708 shlibpath_var=LD_LIBRARY_PATH
4709 shlibpath_overrides_runpath=yes
4712 nto-qnx)
4713 version_type=linux
4714 need_lib_prefix=no
4715 need_version=no
4716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4717 soname_spec='${libname}${release}${shared_ext}$major'
4718 shlibpath_var=LD_LIBRARY_PATH
4719 shlibpath_overrides_runpath=yes
4722 openbsd*)
4723 version_type=sunos
4724 need_lib_prefix=no
4725 need_version=no
4726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4727 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4728 shlibpath_var=LD_LIBRARY_PATH
4729 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4730 case $host_os in
4731 openbsd2.[89] | openbsd2.[89].*)
4732 shlibpath_overrides_runpath=no
4735 shlibpath_overrides_runpath=yes
4737 esac
4738 else
4739 shlibpath_overrides_runpath=yes
4743 os2*)
4744 libname_spec='$name'
4745 shrext=".dll"
4746 need_lib_prefix=no
4747 library_names_spec='$libname${shared_ext} $libname.a'
4748 dynamic_linker='OS/2 ld.exe'
4749 shlibpath_var=LIBPATH
4752 osf3* | osf4* | osf5*)
4753 version_type=osf
4754 need_lib_prefix=no
4755 need_version=no
4756 soname_spec='${libname}${release}${shared_ext}$major'
4757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4758 shlibpath_var=LD_LIBRARY_PATH
4759 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4760 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4763 sco3.2v5*)
4764 version_type=osf
4765 soname_spec='${libname}${release}${shared_ext}$major'
4766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4767 shlibpath_var=LD_LIBRARY_PATH
4770 solaris*)
4771 version_type=linux
4772 need_lib_prefix=no
4773 need_version=no
4774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4775 soname_spec='${libname}${release}${shared_ext}$major'
4776 shlibpath_var=LD_LIBRARY_PATH
4777 shlibpath_overrides_runpath=yes
4778 hardcode_into_libs=yes
4779 # ldd complains unless libraries are executable
4780 postinstall_cmds='chmod +x $lib'
4783 sunos4*)
4784 version_type=sunos
4785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4786 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4787 shlibpath_var=LD_LIBRARY_PATH
4788 shlibpath_overrides_runpath=yes
4789 if test "$with_gnu_ld" = yes; then
4790 need_lib_prefix=no
4792 need_version=yes
4795 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4796 version_type=linux
4797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4798 soname_spec='${libname}${release}${shared_ext}$major'
4799 shlibpath_var=LD_LIBRARY_PATH
4800 case $host_vendor in
4801 sni)
4802 shlibpath_overrides_runpath=no
4803 need_lib_prefix=no
4804 export_dynamic_flag_spec='${wl}-Blargedynsym'
4805 runpath_var=LD_RUN_PATH
4807 siemens)
4808 need_lib_prefix=no
4810 motorola)
4811 need_lib_prefix=no
4812 need_version=no
4813 shlibpath_overrides_runpath=no
4814 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4816 esac
4819 sysv4*MP*)
4820 if test -d /usr/nec ;then
4821 version_type=linux
4822 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
4823 soname_spec='$libname${shared_ext}.$major'
4824 shlibpath_var=LD_LIBRARY_PATH
4828 uts4*)
4829 version_type=linux
4830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4831 soname_spec='${libname}${release}${shared_ext}$major'
4832 shlibpath_var=LD_LIBRARY_PATH
4836 dynamic_linker=no
4838 esac
4839 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
4840 echo "${ECHO_T}$dynamic_linker" >&6
4841 test "$dynamic_linker" = no && can_build_shared=no
4844 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
4845 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
4846 if test "${libltdl_cv_shlibpath_var+set}" = set; then
4847 echo $ECHO_N "(cached) $ECHO_C" >&6
4848 else
4849 libltdl_cv_shlibpath_var="$shlibpath_var"
4851 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
4852 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
4853 if test -n "$libltdl_cv_shlibpath_var"; then
4855 cat >>confdefs.h <<_ACEOF
4856 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
4857 _ACEOF
4863 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
4866 # See if the user has requested runtime debugging.
4867 LIBGCJDEBUG="disable"
4869 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
4870 if test "${enable_libgcj_debug+set}" = set; then
4871 enableval="$enable_libgcj_debug"
4872 if test "$enable_libgcj_debug" = yes; then
4874 cat >>confdefs.h <<\_ACEOF
4875 #define DEBUG 1
4876 _ACEOF
4878 LIBGCJDEBUG="enable"
4882 # Determine which AWT peer libraries to build
4883 # Check whether --enable-java-awt or --disable-java-awt was given.
4884 if test "${enable_java_awt+set}" = set; then
4885 enableval="$enable_java_awt"
4889 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
4890 use_xlib_awt=""
4891 use_gtk_awt=""
4892 use_qt_awt=""
4893 # The default toolkit to use is the first one specified.
4894 TOOLKIT=
4897 for peer in $peerlibs ; do
4898 case $peer in
4899 xlib)
4900 if test "$no_x" = yes; then
4901 echo "*** xlib peers requested but no X library available" 1>&2
4902 exit 1
4903 else
4904 use_xlib_awt="yes"
4905 if test -z "$TOOLKIT"; then
4906 TOOLKIT=gnu.awt.xlib.XToolkit
4910 gtk)
4911 if test "$no_x" = yes; then
4912 echo "*** gtk peers requested but no X library available" 1>&2
4913 exit 1
4914 else
4915 use_gtk_awt=yes
4916 if test -z "$TOOLKIT"; then
4917 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
4922 if test "$no_x" = yes; then
4923 # Perhaps we should admit the possibility of embedded Qt.
4924 echo "*** Qt peers requested but no X library available" 1>&2
4925 exit 1
4926 else
4927 use_qt_awt=yes
4928 if test -z "$TOOLKIT"; then
4929 TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
4934 use_xlib_awt=
4935 use_gtk_awt=
4936 use_qt_awt=
4937 break
4940 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
4941 exit 1
4942 esac
4943 done
4947 if test "$use_xlib_awt" = yes; then
4948 XLIB_AWT_TRUE=
4949 XLIB_AWT_FALSE='#'
4950 else
4951 XLIB_AWT_TRUE='#'
4952 XLIB_AWT_FALSE=
4956 # Create standard.omit based on decisions we just made.
4957 cp $srcdir/standard.omit.in standard.omit
4958 if test "$use_xlib_awt" != yes; then
4959 echo gnu/awt/xlib >> standard.omit
4960 echo gnu/gcj/xlib >> standard.omit
4963 if test -z "${with_multisubdir}"; then
4964 builddotdot=.
4965 else
4966 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
4969 NATIVE=yes
4971 # Which gcj do we use?
4972 which_gcj=default
4973 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
4974 if test -n "${with_cross_host}"; then
4975 # We are being configured with a cross compiler. We can't
4976 # use ac_exeext, because that is for the target platform.
4977 NATIVE=no
4978 cross_host_exeext=
4979 case "${with_cross_host}" in
4980 *mingw* | *cygwin*)
4981 cross_host_exeext=.exe
4983 esac
4984 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
4985 if test x"$build_noncanonical" = x"$with_cross_host"; then
4986 # Ordinary cross (host!=target and host=build)
4987 which_gcj=built
4988 else
4989 # Canadian cross (host!=target and host!=build)
4990 which_gcj=cross
4992 else
4993 which_gcj=cross
4995 else
4996 # We are being configured with a native or crossed-native compiler
4997 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
4998 if test x"$build" = x"$host"; then
4999 # True native build (host=target and host=build)
5000 which_gcj=built
5001 else
5002 # Crossed-native build (host=target and host!=build)
5003 which_gcj=cross
5005 else
5006 which_gcj=path
5009 case "${which_gcj}" in
5010 built)
5011 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
5012 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
5014 cross)
5015 if test "x${with_newlib}" = "xyes"; then
5016 # FIXME (comment): Why is this needed?
5017 GCC_UNWIND_INCLUDE=
5018 GCJ="${target_noncanonical}-gcj"
5019 else
5020 GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
5022 GCJH='$(target_noncanonical)-gcjh'
5024 path)
5025 GCJ="gcj -B`${PWDCMD-pwd}`/"
5026 GCJH=gcjh
5028 esac
5032 # Create it, so that compile/link tests don't fail
5033 test -f libgcj.spec || touch libgcj.spec
5037 # Set up to configure Classpath.
5038 # FIXME: no supported way to pass args in autoconf.
5039 ac_configure_args="$ac_configure_args --with-fastjar=$JAR"
5040 ac_configure_args="$ac_configure_args --enable-tool-wrappers"
5041 ac_configure_args="$ac_configure_args --disable-load-library"
5042 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
5043 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
5044 dir1=`cd $srcdir && pwd`
5045 dir2=`pwd`
5046 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
5047 ac_configure_args="$ac_configure_args --disable-core-jni"
5048 ac_configure_args="$ac_configure_args --disable-examples"
5049 ac_configure_args="$ac_configure_args --with-glibj=build"
5050 if test "$plugin_enabled" != yes; then
5051 ac_configure_args="$ac_configure_args --disable-plugin"
5053 if test "$gconf_enabled" != yes; then
5054 ac_configure_args="$ac_configure_args --disable-gconf-peer"
5055 ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
5057 if test "$use_gtk_awt" != yes; then
5058 ac_configure_args="$ac_configure_args --disable-gtk-peer"
5060 if test "$use_qt_awt" != yes; then
5061 ac_configure_args="$ac_configure_args --disable-qt-peer"
5062 else
5063 # We need this as qt is disabled by default in classpath.
5064 ac_configure_args="$ac_configure_args --enable-qt-peer"
5067 # Only use libltdl for non-newlib builds.
5068 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5069 case $enable_ltdl_convenience in
5070 no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
5071 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
5072 { (exit 1); exit 1; }; } ;;
5073 "") enable_ltdl_convenience=yes
5074 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
5075 esac
5076 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
5077 INCLTDL='-I${top_srcdir}/''libltdl'
5080 DIRLTDL=libltdl
5082 cat >>confdefs.h <<\_ACEOF
5083 #define USE_LTDL 1
5084 _ACEOF
5086 # Sigh. Libtool's macro doesn't do the right thing.
5087 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
5088 # FIXME: this is a hack.
5089 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
5090 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
5095 # Check whether --enable-shared or --disable-shared was given.
5096 if test "${enable_shared+set}" = set; then
5097 enableval="$enable_shared"
5098 p=${PACKAGE-default}
5099 case $enableval in
5100 yes) enable_shared=yes ;;
5101 no) enable_shared=no ;;
5103 enable_shared=no
5104 # Look at the argument we got. We use all the common list separators.
5105 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5106 for pkg in $enableval; do
5107 if test "X$pkg" = "X$p"; then
5108 enable_shared=yes
5110 done
5111 IFS="$ac_save_ifs"
5113 esac
5114 else
5115 enable_shared=yes
5117 # Check whether --enable-static or --disable-static was given.
5118 if test "${enable_static+set}" = set; then
5119 enableval="$enable_static"
5120 p=${PACKAGE-default}
5121 case $enableval in
5122 yes) enable_static=yes ;;
5123 no) enable_static=no ;;
5125 enable_static=no
5126 # Look at the argument we got. We use all the common list separators.
5127 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5128 for pkg in $enableval; do
5129 if test "X$pkg" = "X$p"; then
5130 enable_static=yes
5132 done
5133 IFS="$ac_save_ifs"
5135 esac
5136 else
5137 enable_static=yes
5139 # Check whether --enable-fast-install or --disable-fast-install was given.
5140 if test "${enable_fast_install+set}" = set; then
5141 enableval="$enable_fast_install"
5142 p=${PACKAGE-default}
5143 case $enableval in
5144 yes) enable_fast_install=yes ;;
5145 no) enable_fast_install=no ;;
5147 enable_fast_install=no
5148 # Look at the argument we got. We use all the common list separators.
5149 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5150 for pkg in $enableval; do
5151 if test "X$pkg" = "X$p"; then
5152 enable_fast_install=yes
5154 done
5155 IFS="$ac_save_ifs"
5157 esac
5158 else
5159 enable_fast_install=yes
5162 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5163 if test "${with_gnu_ld+set}" = set; then
5164 withval="$with_gnu_ld"
5165 test "$withval" = no || with_gnu_ld=yes
5166 else
5167 with_gnu_ld=no
5169 ac_prog=ld
5170 if test "$GCC" = yes; then
5171 # Check if gcc -print-prog-name=ld gives a path.
5172 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5173 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5174 case $host in
5175 *-*-mingw*)
5176 # gcc leaves a trailing carriage return which upsets mingw
5177 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5179 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5180 esac
5181 case $ac_prog in
5182 # Accept absolute paths.
5183 [\\/]* | [A-Za-z]:[\\/]*)
5184 re_direlt='/[^/][^/]*/\.\./'
5185 # Canonicalize the path of ld
5186 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5187 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5188 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5189 done
5190 test -z "$LD" && LD="$ac_prog"
5193 # If it fails, then pretend we aren't using GCC.
5194 ac_prog=ld
5197 # If it is relative, then search for the first ld in PATH.
5198 with_gnu_ld=unknown
5200 esac
5201 elif test "$with_gnu_ld" = yes; then
5202 echo "$as_me:$LINENO: checking for GNU ld" >&5
5203 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5204 else
5205 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5206 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5208 if test "${lt_cv_path_LD+set}" = set; then
5209 echo $ECHO_N "(cached) $ECHO_C" >&6
5210 else
5211 if test -z "$LD"; then
5212 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5213 for ac_dir in $PATH; do
5214 test -z "$ac_dir" && ac_dir=.
5215 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5216 lt_cv_path_LD="$ac_dir/$ac_prog"
5217 # Check to see if the program is GNU ld. I'd rather use --version,
5218 # but apparently some GNU ld's only accept -v.
5219 # Break only if it was the GNU/non-GNU ld that we prefer.
5220 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5221 test "$with_gnu_ld" != no && break
5222 else
5223 test "$with_gnu_ld" != yes && break
5226 done
5227 IFS="$ac_save_ifs"
5228 else
5229 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5233 LD="$lt_cv_path_LD"
5234 if test -n "$LD"; then
5235 echo "$as_me:$LINENO: result: $LD" >&5
5236 echo "${ECHO_T}$LD" >&6
5237 else
5238 echo "$as_me:$LINENO: result: no" >&5
5239 echo "${ECHO_T}no" >&6
5241 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5242 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5243 { (exit 1); exit 1; }; }
5244 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5245 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5246 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
5248 else
5249 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5250 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5251 lt_cv_prog_gnu_ld=yes
5252 else
5253 lt_cv_prog_gnu_ld=no
5256 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5257 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5258 with_gnu_ld=$lt_cv_prog_gnu_ld
5261 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5262 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5263 if test "${lt_cv_ld_reload_flag+set}" = set; then
5264 echo $ECHO_N "(cached) $ECHO_C" >&6
5265 else
5266 lt_cv_ld_reload_flag='-r'
5268 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5269 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5270 reload_flag=$lt_cv_ld_reload_flag
5271 test -n "$reload_flag" && reload_flag=" $reload_flag"
5273 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5274 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5275 if test "${lt_cv_path_NM+set}" = set; then
5276 echo $ECHO_N "(cached) $ECHO_C" >&6
5277 else
5278 if test -n "$NM"; then
5279 # Let the user override the test.
5280 lt_cv_path_NM="$NM"
5281 else
5282 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5283 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5284 test -z "$ac_dir" && ac_dir=.
5285 tmp_nm=$ac_dir/${ac_tool_prefix}nm
5286 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
5287 # Check to see if the nm accepts a BSD-compat flag.
5288 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5289 # nm: unknown option "B" ignored
5290 # Tru64's nm complains that /dev/null is an invalid object file
5291 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
5292 lt_cv_path_NM="$tmp_nm -B"
5293 break
5294 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
5295 lt_cv_path_NM="$tmp_nm -p"
5296 break
5297 else
5298 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5299 continue # so that we can try to find one that supports BSD flags
5302 done
5303 IFS="$ac_save_ifs"
5304 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5308 NM="$lt_cv_path_NM"
5309 echo "$as_me:$LINENO: result: $NM" >&5
5310 echo "${ECHO_T}$NM" >&6
5312 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
5313 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
5314 if test "${lt_cv_deplibs_check_method+set}" = set; then
5315 echo $ECHO_N "(cached) $ECHO_C" >&6
5316 else
5317 lt_cv_file_magic_cmd='$MAGIC_CMD'
5318 lt_cv_file_magic_test_file=
5319 lt_cv_deplibs_check_method='unknown'
5320 # Need to set the preceding variable on all platforms that support
5321 # interlibrary dependencies.
5322 # 'none' -- dependencies not supported.
5323 # `unknown' -- same as none, but documents that we really don't know.
5324 # 'pass_all' -- all dependencies passed with no checks.
5325 # 'test_compile' -- check by making test program.
5326 # 'file_magic [regex]' -- check by looking for files in library path
5327 # which responds to the $file_magic_cmd with a given egrep regex.
5328 # If you have `file' or equivalent on your system and you're not sure
5329 # whether `pass_all' will *always* work, you probably want this one.
5331 case $host_os in
5332 aix*)
5333 lt_cv_deplibs_check_method=pass_all
5336 beos*)
5337 lt_cv_deplibs_check_method=pass_all
5340 bsdi4*)
5341 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5342 lt_cv_file_magic_cmd='/usr/bin/file -L'
5343 lt_cv_file_magic_test_file=/shlib/libc.so
5346 cygwin* | mingw* |pw32*)
5347 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5348 lt_cv_file_magic_cmd='$OBJDUMP -f'
5351 darwin* | rhapsody*)
5352 # this will be overwritten by pass_all, but leave it in just in case
5353 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5354 lt_cv_file_magic_cmd='/usr/bin/file -L'
5355 case "$host_os" in
5356 rhapsody* | darwin1.012)
5357 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
5359 *) # Darwin 1.3 on
5360 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5362 esac
5363 lt_cv_deplibs_check_method=pass_all
5366 freebsd* | kfreebsd*-gnu)
5367 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5368 case $host_cpu in
5369 i*86 )
5370 # Not sure whether the presence of OpenBSD here was a mistake.
5371 # Let's accept both of them until this is cleared up.
5372 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5373 lt_cv_file_magic_cmd=/usr/bin/file
5374 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5376 esac
5377 else
5378 lt_cv_deplibs_check_method=pass_all
5382 gnu*)
5383 lt_cv_deplibs_check_method=pass_all
5386 hpux10.20*|hpux11*)
5387 case $host_cpu in
5388 hppa*)
5389 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5390 lt_cv_file_magic_cmd=/usr/bin/file
5391 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5393 ia64*)
5394 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5395 lt_cv_file_magic_cmd=/usr/bin/file
5396 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5398 esac
5401 irix5* | irix6*)
5402 case $host_os in
5403 irix5*)
5404 # this will be overridden with pass_all, but let us keep it just in case
5405 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5408 case $LD in
5409 *-32|*"-32 ") libmagic=32-bit;;
5410 *-n32|*"-n32 ") libmagic=N32;;
5411 *-64|*"-64 ") libmagic=64-bit;;
5412 *) libmagic=never-match;;
5413 esac
5414 # this will be overridden with pass_all, but let us keep it just in case
5415 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5417 esac
5418 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5419 lt_cv_deplibs_check_method=pass_all
5422 # This must be Linux ELF.
5423 linux-gnu*)
5424 lt_cv_deplibs_check_method=pass_all
5427 netbsd* | knetbsd*-gnu)
5428 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5429 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
5430 else
5431 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
5435 newsos6)
5436 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5437 lt_cv_file_magic_cmd=/usr/bin/file
5438 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5441 osf3* | osf4* | osf5*)
5442 # this will be overridden with pass_all, but let us keep it just in case
5443 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5444 lt_cv_file_magic_test_file=/shlib/libc.so
5445 lt_cv_deplibs_check_method=pass_all
5448 sco3.2v5*)
5449 lt_cv_deplibs_check_method=pass_all
5452 solaris*)
5453 lt_cv_deplibs_check_method=pass_all
5454 lt_cv_file_magic_test_file=/lib/libc.so
5457 sysv5uw[78]* | sysv4*uw2*)
5458 lt_cv_deplibs_check_method=pass_all
5461 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5462 case $host_vendor in
5463 ncr)
5464 lt_cv_deplibs_check_method=pass_all
5466 motorola)
5467 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]'
5468 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5470 esac
5472 esac
5475 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5476 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5477 file_magic_cmd=$lt_cv_file_magic_cmd
5478 deplibs_check_method=$lt_cv_deplibs_check_method
5483 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5485 # find the maximum length of command line arguments
5486 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5487 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5488 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5489 echo $ECHO_N "(cached) $ECHO_C" >&6
5490 else
5492 teststring="ABCD"
5494 case $build_os in
5495 msdosdjgpp*)
5496 # On DJGPP, this test can blow up pretty badly due to problems in libc
5497 # (any single argument exceeding 2000 bytes causes a buffer overrun
5498 # during glob expansion). Even if it were fixed, the result of this
5499 # check would be larger than it should be.
5500 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5503 cygwin* | mingw*)
5504 # On Win9x/ME, this test blows up -- it succeeds, but takes
5505 # about 5 minutes as the teststring grows exponentially.
5506 # Worse, since 9x/ME are not pre-emptively multitasking,
5507 # you end up with a "frozen" computer, even though with patience
5508 # the test eventually succeeds (with a max line length of 256k).
5509 # Instead, let's just punt: use the minimum linelength reported by
5510 # all of the supported platforms: 8192 (on NT/2K/XP).
5511 lt_cv_sys_max_cmd_len=8192;
5514 amigaos*)
5515 # On AmigaOS with pdksh, this test takes hours, literally.
5516 # So we just punt and use a minimum line length of 8192.
5517 lt_cv_sys_max_cmd_len=8192;
5520 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5521 # This has been around since 386BSD, at least. Likely further.
5522 if test -x /sbin/sysctl; then
5523 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5524 elif test -x /usr/sbin/sysctl; then
5525 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5526 else
5527 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5529 # And add a safety zone
5530 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5531 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5533 esac
5537 if test -n "$lt_cv_sys_max_cmd_len" ; then
5538 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5539 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5540 else
5541 echo "$as_me:$LINENO: result: none" >&5
5542 echo "${ECHO_T}none" >&6
5546 # Only perform the check for file, if the check method requires it
5547 case $deplibs_check_method in
5548 file_magic*)
5549 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5550 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5551 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5552 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5553 echo $ECHO_N "(cached) $ECHO_C" >&6
5554 else
5555 case $MAGIC_CMD in
5557 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5559 ?:/*)
5560 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5563 ac_save_MAGIC_CMD="$MAGIC_CMD"
5564 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5565 ac_dummy="/usr/bin:$PATH"
5566 for ac_dir in $ac_dummy; do
5567 test -z "$ac_dir" && ac_dir=.
5568 if test -f $ac_dir/${ac_tool_prefix}file; then
5569 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5570 if test -n "$file_magic_test_file"; then
5571 case $deplibs_check_method in
5572 "file_magic "*)
5573 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5574 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5575 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5576 egrep "$file_magic_regex" > /dev/null; then
5578 else
5579 cat <<EOF 1>&2
5581 *** Warning: the command libtool uses to detect shared libraries,
5582 *** $file_magic_cmd, produces output that libtool cannot recognize.
5583 *** The result is that libtool may fail to recognize shared libraries
5584 *** as such. This will affect the creation of libtool libraries that
5585 *** depend on shared libraries, but programs linked with such libtool
5586 *** libraries will work regardless of this problem. Nevertheless, you
5587 *** may want to report the problem to your system manager and/or to
5588 *** bug-libtool@gnu.org
5591 fi ;;
5592 esac
5594 break
5596 done
5597 IFS="$ac_save_ifs"
5598 MAGIC_CMD="$ac_save_MAGIC_CMD"
5600 esac
5603 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5604 if test -n "$MAGIC_CMD"; then
5605 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5606 echo "${ECHO_T}$MAGIC_CMD" >&6
5607 else
5608 echo "$as_me:$LINENO: result: no" >&5
5609 echo "${ECHO_T}no" >&6
5612 if test -z "$lt_cv_path_MAGIC_CMD"; then
5613 if test -n "$ac_tool_prefix"; then
5614 echo "$as_me:$LINENO: checking for file" >&5
5615 echo $ECHO_N "checking for file... $ECHO_C" >&6
5616 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5617 echo $ECHO_N "(cached) $ECHO_C" >&6
5618 else
5619 case $MAGIC_CMD in
5621 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5623 ?:/*)
5624 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5627 ac_save_MAGIC_CMD="$MAGIC_CMD"
5628 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5629 ac_dummy="/usr/bin:$PATH"
5630 for ac_dir in $ac_dummy; do
5631 test -z "$ac_dir" && ac_dir=.
5632 if test -f $ac_dir/file; then
5633 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5634 if test -n "$file_magic_test_file"; then
5635 case $deplibs_check_method in
5636 "file_magic "*)
5637 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5638 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5639 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5640 egrep "$file_magic_regex" > /dev/null; then
5642 else
5643 cat <<EOF 1>&2
5645 *** Warning: the command libtool uses to detect shared libraries,
5646 *** $file_magic_cmd, produces output that libtool cannot recognize.
5647 *** The result is that libtool may fail to recognize shared libraries
5648 *** as such. This will affect the creation of libtool libraries that
5649 *** depend on shared libraries, but programs linked with such libtool
5650 *** libraries will work regardless of this problem. Nevertheless, you
5651 *** may want to report the problem to your system manager and/or to
5652 *** bug-libtool@gnu.org
5655 fi ;;
5656 esac
5658 break
5660 done
5661 IFS="$ac_save_ifs"
5662 MAGIC_CMD="$ac_save_MAGIC_CMD"
5664 esac
5667 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5668 if test -n "$MAGIC_CMD"; then
5669 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5670 echo "${ECHO_T}$MAGIC_CMD" >&6
5671 else
5672 echo "$as_me:$LINENO: result: no" >&5
5673 echo "${ECHO_T}no" >&6
5676 else
5677 MAGIC_CMD=:
5683 esac
5685 if test -n "$ac_tool_prefix"; then
5686 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5687 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5688 echo "$as_me:$LINENO: checking for $ac_word" >&5
5689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5690 if test "${ac_cv_prog_RANLIB+set}" = set; then
5691 echo $ECHO_N "(cached) $ECHO_C" >&6
5692 else
5693 if test -n "$RANLIB"; then
5694 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5695 else
5696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5697 for as_dir in $PATH
5699 IFS=$as_save_IFS
5700 test -z "$as_dir" && as_dir=.
5701 for ac_exec_ext in '' $ac_executable_extensions; do
5702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5703 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5705 break 2
5707 done
5708 done
5712 RANLIB=$ac_cv_prog_RANLIB
5713 if test -n "$RANLIB"; then
5714 echo "$as_me:$LINENO: result: $RANLIB" >&5
5715 echo "${ECHO_T}$RANLIB" >&6
5716 else
5717 echo "$as_me:$LINENO: result: no" >&5
5718 echo "${ECHO_T}no" >&6
5722 if test -z "$ac_cv_prog_RANLIB"; then
5723 ac_ct_RANLIB=$RANLIB
5724 # Extract the first word of "ranlib", so it can be a program name with args.
5725 set dummy ranlib; ac_word=$2
5726 echo "$as_me:$LINENO: checking for $ac_word" >&5
5727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5728 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
5730 else
5731 if test -n "$ac_ct_RANLIB"; then
5732 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5733 else
5734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735 for as_dir in $PATH
5737 IFS=$as_save_IFS
5738 test -z "$as_dir" && as_dir=.
5739 for ac_exec_ext in '' $ac_executable_extensions; do
5740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5741 ac_cv_prog_ac_ct_RANLIB="ranlib"
5742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5743 break 2
5745 done
5746 done
5748 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5751 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5752 if test -n "$ac_ct_RANLIB"; then
5753 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5754 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5755 else
5756 echo "$as_me:$LINENO: result: no" >&5
5757 echo "${ECHO_T}no" >&6
5760 RANLIB=$ac_ct_RANLIB
5761 else
5762 RANLIB="$ac_cv_prog_RANLIB"
5765 if test -n "$ac_tool_prefix"; then
5766 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5767 set dummy ${ac_tool_prefix}strip; ac_word=$2
5768 echo "$as_me:$LINENO: checking for $ac_word" >&5
5769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5770 if test "${ac_cv_prog_STRIP+set}" = set; then
5771 echo $ECHO_N "(cached) $ECHO_C" >&6
5772 else
5773 if test -n "$STRIP"; then
5774 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5775 else
5776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777 for as_dir in $PATH
5779 IFS=$as_save_IFS
5780 test -z "$as_dir" && as_dir=.
5781 for ac_exec_ext in '' $ac_executable_extensions; do
5782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5783 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5785 break 2
5787 done
5788 done
5792 STRIP=$ac_cv_prog_STRIP
5793 if test -n "$STRIP"; then
5794 echo "$as_me:$LINENO: result: $STRIP" >&5
5795 echo "${ECHO_T}$STRIP" >&6
5796 else
5797 echo "$as_me:$LINENO: result: no" >&5
5798 echo "${ECHO_T}no" >&6
5802 if test -z "$ac_cv_prog_STRIP"; then
5803 ac_ct_STRIP=$STRIP
5804 # Extract the first word of "strip", so it can be a program name with args.
5805 set dummy strip; ac_word=$2
5806 echo "$as_me:$LINENO: checking for $ac_word" >&5
5807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5808 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5809 echo $ECHO_N "(cached) $ECHO_C" >&6
5810 else
5811 if test -n "$ac_ct_STRIP"; then
5812 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5813 else
5814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815 for as_dir in $PATH
5817 IFS=$as_save_IFS
5818 test -z "$as_dir" && as_dir=.
5819 for ac_exec_ext in '' $ac_executable_extensions; do
5820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5821 ac_cv_prog_ac_ct_STRIP="strip"
5822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5823 break 2
5825 done
5826 done
5828 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5831 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5832 if test -n "$ac_ct_STRIP"; then
5833 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5834 echo "${ECHO_T}$ac_ct_STRIP" >&6
5835 else
5836 echo "$as_me:$LINENO: result: no" >&5
5837 echo "${ECHO_T}no" >&6
5840 STRIP=$ac_ct_STRIP
5841 else
5842 STRIP="$ac_cv_prog_STRIP"
5846 # Check for any special flags to pass to ltconfig.
5847 libtool_flags="--cache-file=$cache_file"
5848 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
5849 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
5850 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
5851 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
5852 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
5855 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5856 if test "${enable_libtool_lock+set}" = set; then
5857 enableval="$enable_libtool_lock"
5860 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
5861 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
5864 # Check whether --with-pic or --without-pic was given.
5865 if test "${with_pic+set}" = set; then
5866 withval="$with_pic"
5867 pic_mode="$withval"
5868 else
5869 pic_mode=default
5871 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
5872 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
5874 # Some flags need to be propagated to the compiler or linker for good
5875 # libtool support.
5876 case $host in
5877 *-*-irix6*)
5878 # Find out which ABI we are using.
5879 echo '#line 5879 "configure"' > conftest.$ac_ext
5880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5881 (eval $ac_compile) 2>&5
5882 ac_status=$?
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); }; then
5885 if test "$lt_cv_prog_gnu_ld" = yes; then
5886 case `/usr/bin/file conftest.$ac_objext` in
5887 *32-bit*)
5888 LD="${LD-ld} -melf32bsmip"
5890 *N32*)
5891 LD="${LD-ld} -melf32bmipn32"
5893 *64-bit*)
5894 LD="${LD-ld} -melf64bmip"
5896 esac
5897 else
5898 case `/usr/bin/file conftest.$ac_objext` in
5899 *32-bit*)
5900 LD="${LD-ld} -32"
5902 *N32*)
5903 LD="${LD-ld} -n32"
5905 *64-bit*)
5906 LD="${LD-ld} -64"
5908 esac
5911 rm -rf conftest*
5914 ia64-*-hpux*)
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 *ELF-32*)
5924 HPUX_IA64_MODE="32"
5926 *ELF-64*)
5927 HPUX_IA64_MODE="64"
5929 esac
5931 rm -rf conftest*
5934 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5935 # Find out which ABI we are using.
5936 echo 'int i;' > conftest.$ac_ext
5937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5938 (eval $ac_compile) 2>&5
5939 ac_status=$?
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); }; then
5942 case "`/usr/bin/file conftest.o`" in
5943 *32-bit*)
5944 case $host in
5945 x86_64-*linux*)
5946 LD="${LD-ld} -m elf_i386"
5948 ppc64-*linux*|powerpc64-*linux*)
5949 LD="${LD-ld} -m elf32ppclinux"
5951 s390x-*linux*)
5952 LD="${LD-ld} -m elf_s390"
5954 sparc64-*linux*)
5955 LD="${LD-ld} -m elf32_sparc"
5957 esac
5959 *64-bit*)
5960 case $host in
5961 x86_64-*linux*)
5962 LD="${LD-ld} -m elf_x86_64"
5964 ppc*-*linux*|powerpc*-*linux*)
5965 LD="${LD-ld} -m elf64ppc"
5967 s390*-*linux*)
5968 LD="${LD-ld} -m elf64_s390"
5970 sparc*-*linux*)
5971 LD="${LD-ld} -m elf64_sparc"
5973 esac
5975 esac
5977 rm -rf conftest*
5980 *-*-sco3.2v5*)
5981 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5982 SAVE_CFLAGS="$CFLAGS"
5983 CFLAGS="$CFLAGS -belf"
5984 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5985 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5986 if test "${lt_cv_cc_needs_belf+set}" = set; then
5987 echo $ECHO_N "(cached) $ECHO_C" >&6
5988 else
5991 ac_ext=c
5992 ac_cpp='$CPP $CPPFLAGS'
5993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5997 if test x$gcc_no_link = xyes; then
5998 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5999 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6000 { (exit 1); exit 1; }; }
6002 cat >conftest.$ac_ext <<_ACEOF
6003 /* confdefs.h. */
6004 _ACEOF
6005 cat confdefs.h >>conftest.$ac_ext
6006 cat >>conftest.$ac_ext <<_ACEOF
6007 /* end confdefs.h. */
6010 main ()
6014 return 0;
6016 _ACEOF
6017 rm -f conftest.$ac_objext conftest$ac_exeext
6018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6019 (eval $ac_link) 2>conftest.er1
6020 ac_status=$?
6021 grep -v '^ *+' conftest.er1 >conftest.err
6022 rm -f conftest.er1
6023 cat conftest.err >&5
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); } &&
6026 { ac_try='test -z "$ac_c_werror_flag"
6027 || test ! -s conftest.err'
6028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6029 (eval $ac_try) 2>&5
6030 ac_status=$?
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; } &&
6033 { ac_try='test -s conftest$ac_exeext'
6034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6035 (eval $ac_try) 2>&5
6036 ac_status=$?
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); }; }; then
6039 lt_cv_cc_needs_belf=yes
6040 else
6041 echo "$as_me: failed program was:" >&5
6042 sed 's/^/| /' conftest.$ac_ext >&5
6044 lt_cv_cc_needs_belf=no
6046 rm -f conftest.err conftest.$ac_objext \
6047 conftest$ac_exeext conftest.$ac_ext
6048 ac_ext=c
6049 ac_cpp='$CPP $CPPFLAGS'
6050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6055 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6056 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6057 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6058 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6059 CFLAGS="$SAVE_CFLAGS"
6064 esac
6067 # Save cache, so that ltconfig can load it
6068 cat >confcache <<\_ACEOF
6069 # This file is a shell script that caches the results of configure
6070 # tests run on this system so they can be shared between configure
6071 # scripts and configure runs, see configure's option --config-cache.
6072 # It is not useful on other systems. If it contains results you don't
6073 # want to keep, you may remove or edit it.
6075 # config.status only pays attention to the cache file if you give it
6076 # the --recheck option to rerun configure.
6078 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6079 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6080 # following values.
6082 _ACEOF
6084 # The following way of writing the cache mishandles newlines in values,
6085 # but we know of no workaround that is simple, portable, and efficient.
6086 # So, don't put newlines in cache variables' values.
6087 # Ultrix sh set writes to stderr and can't be redirected directly,
6088 # and sets the high bit in the cache file unless we assign to the vars.
6090 (set) 2>&1 |
6091 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6092 *ac_space=\ *)
6093 # `set' does not quote correctly, so add quotes (double-quote
6094 # substitution turns \\\\ into \\, and sed turns \\ into \).
6095 sed -n \
6096 "s/'/'\\\\''/g;
6097 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6100 # `set' quotes correctly as required by POSIX, so do not add quotes.
6101 sed -n \
6102 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6104 esac;
6106 sed '
6107 t clear
6108 : clear
6109 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6110 t end
6111 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6112 : end' >>confcache
6113 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6114 if test -w $cache_file; then
6115 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6116 cat confcache >$cache_file
6117 else
6118 echo "not updating unwritable cache $cache_file"
6121 rm -f confcache
6123 # Actually configure libtool. ac_aux_dir is where install-sh is found.
6124 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
6125 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6126 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6127 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6128 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6129 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
6130 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
6131 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
6132 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
6133 echo "$as_me: error: libtool configure failed" >&2;}
6134 { (exit 1); exit 1; }; }
6136 # Reload cache, that may have been modified by ltconfig
6137 if test -r "$cache_file"; then
6138 # Some versions of bash will fail to source /dev/null (special
6139 # files actually), so we avoid doing that.
6140 if test -f "$cache_file"; then
6141 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
6142 echo "$as_me: loading cache $cache_file" >&6;}
6143 case $cache_file in
6144 [\\/]* | ?:[\\/]* ) . $cache_file;;
6145 *) . ./$cache_file;;
6146 esac
6148 else
6149 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
6150 echo "$as_me: creating cache $cache_file" >&6;}
6151 >$cache_file
6155 # This can be used to rebuild libtool when needed
6156 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
6158 # Always use our own libtool.
6159 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6161 # Redirect the config.log output again, so that the ltconfig log is not
6162 # clobbered by the next message.
6163 exec 5>>./config.log
6165 ac_ext=cc
6166 ac_cpp='$CXXCPP $CPPFLAGS'
6167 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6168 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6169 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6170 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6171 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6172 if test -z "$CXXCPP"; then
6173 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6174 echo $ECHO_N "(cached) $ECHO_C" >&6
6175 else
6176 # Double quotes because CXXCPP needs to be expanded
6177 for CXXCPP in "$CXX -E" "/lib/cpp"
6179 ac_preproc_ok=false
6180 for ac_cxx_preproc_warn_flag in '' yes
6182 # Use a header file that comes with gcc, so configuring glibc
6183 # with a fresh cross-compiler works.
6184 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6185 # <limits.h> exists even on freestanding compilers.
6186 # On the NeXT, cc -E runs the code through the compiler's parser,
6187 # not just through cpp. "Syntax error" is here to catch this case.
6188 cat >conftest.$ac_ext <<_ACEOF
6189 /* confdefs.h. */
6190 _ACEOF
6191 cat confdefs.h >>conftest.$ac_ext
6192 cat >>conftest.$ac_ext <<_ACEOF
6193 /* end confdefs.h. */
6194 #ifdef __STDC__
6195 # include <limits.h>
6196 #else
6197 # include <assert.h>
6198 #endif
6199 Syntax error
6200 _ACEOF
6201 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6202 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6203 ac_status=$?
6204 grep -v '^ *+' conftest.er1 >conftest.err
6205 rm -f conftest.er1
6206 cat conftest.err >&5
6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); } >/dev/null; then
6209 if test -s conftest.err; then
6210 ac_cpp_err=$ac_cxx_preproc_warn_flag
6211 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6212 else
6213 ac_cpp_err=
6215 else
6216 ac_cpp_err=yes
6218 if test -z "$ac_cpp_err"; then
6220 else
6221 echo "$as_me: failed program was:" >&5
6222 sed 's/^/| /' conftest.$ac_ext >&5
6224 # Broken: fails on valid input.
6225 continue
6227 rm -f conftest.err conftest.$ac_ext
6229 # OK, works on sane cases. Now check whether non-existent headers
6230 # can be detected and how.
6231 cat >conftest.$ac_ext <<_ACEOF
6232 /* confdefs.h. */
6233 _ACEOF
6234 cat confdefs.h >>conftest.$ac_ext
6235 cat >>conftest.$ac_ext <<_ACEOF
6236 /* end confdefs.h. */
6237 #include <ac_nonexistent.h>
6238 _ACEOF
6239 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6240 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6241 ac_status=$?
6242 grep -v '^ *+' conftest.er1 >conftest.err
6243 rm -f conftest.er1
6244 cat conftest.err >&5
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); } >/dev/null; then
6247 if test -s conftest.err; then
6248 ac_cpp_err=$ac_cxx_preproc_warn_flag
6249 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6250 else
6251 ac_cpp_err=
6253 else
6254 ac_cpp_err=yes
6256 if test -z "$ac_cpp_err"; then
6257 # Broken: success on invalid input.
6258 continue
6259 else
6260 echo "$as_me: failed program was:" >&5
6261 sed 's/^/| /' conftest.$ac_ext >&5
6263 # Passes both tests.
6264 ac_preproc_ok=:
6265 break
6267 rm -f conftest.err conftest.$ac_ext
6269 done
6270 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6271 rm -f conftest.err conftest.$ac_ext
6272 if $ac_preproc_ok; then
6273 break
6276 done
6277 ac_cv_prog_CXXCPP=$CXXCPP
6280 CXXCPP=$ac_cv_prog_CXXCPP
6281 else
6282 ac_cv_prog_CXXCPP=$CXXCPP
6284 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6285 echo "${ECHO_T}$CXXCPP" >&6
6286 ac_preproc_ok=false
6287 for ac_cxx_preproc_warn_flag in '' yes
6289 # Use a header file that comes with gcc, so configuring glibc
6290 # with a fresh cross-compiler works.
6291 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6292 # <limits.h> exists even on freestanding compilers.
6293 # On the NeXT, cc -E runs the code through the compiler's parser,
6294 # not just through cpp. "Syntax error" is here to catch this case.
6295 cat >conftest.$ac_ext <<_ACEOF
6296 /* confdefs.h. */
6297 _ACEOF
6298 cat confdefs.h >>conftest.$ac_ext
6299 cat >>conftest.$ac_ext <<_ACEOF
6300 /* end confdefs.h. */
6301 #ifdef __STDC__
6302 # include <limits.h>
6303 #else
6304 # include <assert.h>
6305 #endif
6306 Syntax error
6307 _ACEOF
6308 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6309 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6310 ac_status=$?
6311 grep -v '^ *+' conftest.er1 >conftest.err
6312 rm -f conftest.er1
6313 cat conftest.err >&5
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); } >/dev/null; then
6316 if test -s conftest.err; then
6317 ac_cpp_err=$ac_cxx_preproc_warn_flag
6318 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6319 else
6320 ac_cpp_err=
6322 else
6323 ac_cpp_err=yes
6325 if test -z "$ac_cpp_err"; then
6327 else
6328 echo "$as_me: failed program was:" >&5
6329 sed 's/^/| /' conftest.$ac_ext >&5
6331 # Broken: fails on valid input.
6332 continue
6334 rm -f conftest.err conftest.$ac_ext
6336 # OK, works on sane cases. Now check whether non-existent headers
6337 # can be detected and how.
6338 cat >conftest.$ac_ext <<_ACEOF
6339 /* confdefs.h. */
6340 _ACEOF
6341 cat confdefs.h >>conftest.$ac_ext
6342 cat >>conftest.$ac_ext <<_ACEOF
6343 /* end confdefs.h. */
6344 #include <ac_nonexistent.h>
6345 _ACEOF
6346 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6347 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6348 ac_status=$?
6349 grep -v '^ *+' conftest.er1 >conftest.err
6350 rm -f conftest.er1
6351 cat conftest.err >&5
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); } >/dev/null; then
6354 if test -s conftest.err; then
6355 ac_cpp_err=$ac_cxx_preproc_warn_flag
6356 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6357 else
6358 ac_cpp_err=
6360 else
6361 ac_cpp_err=yes
6363 if test -z "$ac_cpp_err"; then
6364 # Broken: success on invalid input.
6365 continue
6366 else
6367 echo "$as_me: failed program was:" >&5
6368 sed 's/^/| /' conftest.$ac_ext >&5
6370 # Passes both tests.
6371 ac_preproc_ok=:
6372 break
6374 rm -f conftest.err conftest.$ac_ext
6376 done
6377 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6378 rm -f conftest.err conftest.$ac_ext
6379 if $ac_preproc_ok; then
6381 else
6382 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6383 See \`config.log' for more details." >&5
6384 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6385 See \`config.log' for more details." >&2;}
6386 { (exit 1); exit 1; }; }
6389 ac_ext=c
6390 ac_cpp='$CPP $CPPFLAGS'
6391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6397 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
6398 lt_save_CC="$CC"
6399 lt_save_CFLAGS="$CFLAGS"
6400 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
6401 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6402 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6403 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6404 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6405 deplibs_check_method="$deplibs_check_method" \
6406 file_magic_cmd="$file_magic_cmd" \
6407 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6408 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
6409 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6410 echo "$as_me: error: libtool tag configuration failed" >&2;}
6411 { (exit 1); exit 1; }; }
6412 CC="$lt_save_CC"
6413 CFLAGS="$lt_save_CFLAGS"
6415 # Redirect the config.log output again, so that the ltconfig log is not
6416 # clobbered by the next message.
6417 exec 5>>./config.log
6425 for ac_prog in gcj gcj-3.2 gcj-3.1 gcj-3.0 gcj-2.95
6427 # Extract the first word of "$ac_prog", so it can be a program name with args.
6428 set dummy $ac_prog; ac_word=$2
6429 echo "$as_me:$LINENO: checking for $ac_word" >&5
6430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6431 if test "${ac_cv_prog_GCJ+set}" = set; then
6432 echo $ECHO_N "(cached) $ECHO_C" >&6
6433 else
6434 if test -n "$GCJ"; then
6435 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
6436 else
6437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438 for as_dir in $PATH
6440 IFS=$as_save_IFS
6441 test -z "$as_dir" && as_dir=.
6442 for ac_exec_ext in '' $ac_executable_extensions; do
6443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6444 ac_cv_prog_GCJ="$ac_prog"
6445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6446 break 2
6448 done
6449 done
6453 GCJ=$ac_cv_prog_GCJ
6454 if test -n "$GCJ"; then
6455 echo "$as_me:$LINENO: result: $GCJ" >&5
6456 echo "${ECHO_T}$GCJ" >&6
6457 else
6458 echo "$as_me:$LINENO: result: no" >&5
6459 echo "${ECHO_T}no" >&6
6462 test -n "$GCJ" && break
6463 done
6464 test -n "$GCJ" || GCJ="gcj"
6466 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
6467 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
6468 { (exit 1); exit 1; }; }
6469 if test "x${GCJFLAGS-unset}" = xunset; then
6470 GCJFLAGS="-g -O2"
6474 depcc="$GCJ" am_compiler_list='gcc3 gcc'
6476 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6477 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6478 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
6479 echo $ECHO_N "(cached) $ECHO_C" >&6
6480 else
6481 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6482 # We make a subdir and do the tests there. Otherwise we can end up
6483 # making bogus files that we don't know about and never remove. For
6484 # instance it was reported that on HP-UX the gcc test will end up
6485 # making a dummy file named `D' -- because `-MD' means `put the output
6486 # in D'.
6487 mkdir conftest.dir
6488 # Copy depcomp to subdir because otherwise we won't find it if we're
6489 # using a relative directory.
6490 cp "$am_depcomp" conftest.dir
6491 cd conftest.dir
6492 # We will build objects and dependencies in a subdirectory because
6493 # it helps to detect inapplicable dependency modes. For instance
6494 # both Tru64's cc and ICC support -MD to output dependencies as a
6495 # side effect of compilation, but ICC will put the dependencies in
6496 # the current directory while Tru64 will put them in the object
6497 # directory.
6498 mkdir sub
6500 am_cv_GCJ_dependencies_compiler_type=none
6501 if test "$am_compiler_list" = ""; then
6502 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6504 for depmode in $am_compiler_list; do
6505 # Setup a source with many dependencies, because some compilers
6506 # like to wrap large dependency lists on column 80 (with \), and
6507 # we should not choose a depcomp mode which is confused by this.
6509 # We need to recreate these files for each test, as the compiler may
6510 # overwrite some of them when testing with obscure command lines.
6511 # This happens at least with the AIX C compiler.
6512 : > sub/conftest.c
6513 for i in 1 2 3 4 5 6; do
6514 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6515 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6516 # Solaris 8's {/usr,}/bin/sh.
6517 touch sub/conftst$i.h
6518 done
6519 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6521 case $depmode in
6522 nosideeffect)
6523 # after this tag, mechanisms are not by side-effect, so they'll
6524 # only be used when explicitly requested
6525 if test "x$enable_dependency_tracking" = xyes; then
6526 continue
6527 else
6528 break
6531 none) break ;;
6532 esac
6533 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6534 # mode. It turns out that the SunPro C++ compiler does not properly
6535 # handle `-M -o', and we need to detect this.
6536 if depmode=$depmode \
6537 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6538 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6539 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6540 >/dev/null 2>conftest.err &&
6541 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6542 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6543 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6544 # icc doesn't choke on unknown options, it will just issue warnings
6545 # or remarks (even with -Werror). So we grep stderr for any message
6546 # that says an option was ignored or not supported.
6547 # When given -MP, icc 7.0 and 7.1 complain thusly:
6548 # icc: Command line warning: ignoring option '-M'; no argument required
6549 # The diagnosis changed in icc 8.0:
6550 # icc: Command line remark: option '-MP' not supported
6551 if (grep 'ignoring option' conftest.err ||
6552 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6553 am_cv_GCJ_dependencies_compiler_type=$depmode
6554 break
6557 done
6559 cd ..
6560 rm -rf conftest.dir
6561 else
6562 am_cv_GCJ_dependencies_compiler_type=none
6566 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
6567 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
6568 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
6573 test "x$enable_dependency_tracking" != xno \
6574 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
6575 am__fastdepGCJ_TRUE=
6576 am__fastdepGCJ_FALSE='#'
6577 else
6578 am__fastdepGCJ_TRUE='#'
6579 am__fastdepGCJ_FALSE=
6585 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
6586 lt_save_CC="$CC"
6587 lt_save_CFLAGS="$CFLAGS"
6588 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
6589 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6590 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6591 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6592 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6593 deplibs_check_method="$deplibs_check_method" \
6594 file_magic_cmd="$file_magic_cmd" \
6595 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6596 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
6597 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6598 echo "$as_me: error: libtool tag configuration failed" >&2;}
6599 { (exit 1); exit 1; }; }
6600 CC="$lt_save_CC"
6601 CFLAGS="$lt_save_CFLAGS"
6603 # Redirect the config.log output again, so that the ltconfig log is not
6604 # clobbered by the next message.
6605 exec 5>>./config.log
6609 if test "x$CC" != xcc; then
6610 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
6611 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
6612 else
6613 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
6614 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
6616 set dummy $CC; ac_cc=`echo $2 |
6617 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6618 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
6619 echo $ECHO_N "(cached) $ECHO_C" >&6
6620 else
6621 cat >conftest.$ac_ext <<_ACEOF
6622 /* confdefs.h. */
6623 _ACEOF
6624 cat confdefs.h >>conftest.$ac_ext
6625 cat >>conftest.$ac_ext <<_ACEOF
6626 /* end confdefs.h. */
6629 main ()
6633 return 0;
6635 _ACEOF
6636 # Make sure it works both with $CC and with simple cc.
6637 # We do the test twice because some compilers refuse to overwrite an
6638 # existing .o file with -o, though they will create one.
6639 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6640 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6641 (eval $ac_try) 2>&5
6642 ac_status=$?
6643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644 (exit $ac_status); } &&
6645 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6646 (eval $ac_try) 2>&5
6647 ac_status=$?
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); };
6650 then
6651 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6652 if test "x$CC" != xcc; then
6653 # Test first that cc exists at all.
6654 if { ac_try='cc -c conftest.$ac_ext >&5'
6655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6656 (eval $ac_try) 2>&5
6657 ac_status=$?
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); }; }; then
6660 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6661 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6662 (eval $ac_try) 2>&5
6663 ac_status=$?
6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665 (exit $ac_status); } &&
6666 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6667 (eval $ac_try) 2>&5
6668 ac_status=$?
6669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670 (exit $ac_status); };
6671 then
6672 # cc works too.
6674 else
6675 # cc exists but doesn't like -o.
6676 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6680 else
6681 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6683 rm -f conftest*
6686 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
6687 echo "$as_me:$LINENO: result: yes" >&5
6688 echo "${ECHO_T}yes" >&6
6689 else
6690 echo "$as_me:$LINENO: result: no" >&5
6691 echo "${ECHO_T}no" >&6
6693 cat >>confdefs.h <<\_ACEOF
6694 #define NO_MINUS_C_MINUS_O 1
6695 _ACEOF
6699 # FIXME: we rely on the cache variable name because
6700 # there is no other way.
6701 set dummy $CC
6702 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6703 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
6704 # Losing compiler, so override with the script.
6705 # FIXME: It is wrong to rewrite CC.
6706 # But if we don't then we get into trouble of one sort or another.
6707 # A longer-term fix would be to have automake use am__CC in this case,
6708 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6709 CC="$am_aux_dir/compile $CC"
6715 subdirs="$subdirs classpath libltdl"
6718 # The -no-testsuite modules omit the test subdir.
6721 if test -d $srcdir/testsuite; then
6722 TESTSUBDIR_TRUE=
6723 TESTSUBDIR_FALSE='#'
6724 else
6725 TESTSUBDIR_TRUE='#'
6726 TESTSUBDIR_FALSE=
6730 # Should the runtime set system properties by examining the
6731 # environment variable GCJ_PROPERTIES?
6732 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
6733 if test "${enable_getenv_properties+set}" = set; then
6734 enableval="$enable_getenv_properties"
6738 # Whether GCJ_PROPERTIES is used depends on the target.
6739 if test -z "$enable_getenv_properties"; then
6740 enable_getenv_properties=${enable_getenv_properties_default-yes}
6742 if test "$enable_getenv_properties" = no; then
6744 cat >>confdefs.h <<\_ACEOF
6745 #define DISABLE_GETENV_PROPERTIES 1
6746 _ACEOF
6750 # Whether we should use arguments to main()
6751 if test -z "$enable_main_args"; then
6752 enable_main_args=${enable_main_args_default-yes}
6754 if test "$enable_main_args" = no; then
6756 cat >>confdefs.h <<\_ACEOF
6757 #define DISABLE_MAIN_ARGS 1
6758 _ACEOF
6763 # Should we use hashtable-based synchronization?
6764 # Currently works only for Linux X86/ia64
6765 # Typically faster and more space-efficient
6766 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
6767 if test "${enable_hash_synchronization+set}" = set; then
6768 enableval="$enable_hash_synchronization"
6772 if test -z "$enable_hash_synchronization"; then
6773 enable_hash_synchronization=$enable_hash_synchronization_default
6777 # Check whether --with-java-home or --without-java-home was given.
6778 if test "${with_java_home+set}" = set; then
6779 withval="$with_java_home"
6780 JAVA_HOME="${withval}"
6781 else
6782 JAVA_HOME=""
6786 if test ! -z "$JAVA_HOME"; then
6787 JAVA_HOME_SET_TRUE=
6788 JAVA_HOME_SET_FALSE='#'
6789 else
6790 JAVA_HOME_SET_TRUE='#'
6791 JAVA_HOME_SET_FALSE=
6796 # What is the native OS API for MinGW?
6798 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
6799 if test "${with_win32_nlsapi+set}" = set; then
6800 withval="$with_win32_nlsapi"
6801 case "${withval}" in
6802 ansi) with_win32_nlsapi=ansi ;;
6803 unicows) with_win32_nlsapi=unicows ;;
6804 unicode) with_win32_nlsapi=unicode ;;
6805 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
6806 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
6807 { (exit 1); exit 1; }; } ;;
6808 esac
6809 else
6810 with_win32_nlsapi=ansi
6813 case "${with_win32_nlsapi}" in
6814 unicows | unicode)
6816 cat >>confdefs.h <<\_ACEOF
6817 #define MINGW_LIBGCJ_UNICODE 1
6818 _ACEOF
6821 esac
6823 # configure.host sets slow_pthread_self if the synchronization code should
6824 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
6825 if test "${slow_pthread_self}" = "yes"; then
6827 cat >>confdefs.h <<\_ACEOF
6828 #define SLOW_PTHREAD_SELF 1
6829 _ACEOF
6833 # Check for gc debugging. This option is handled both here and in the GC.
6834 # Check whether --enable-gc-debug or --disable-gc-debug was given.
6835 if test "${enable_gc_debug+set}" = set; then
6836 enableval="$enable_gc_debug"
6837 if test "$enable_gc_debug" = "yes"; then
6839 cat >>confdefs.h <<\_ACEOF
6840 #define LIBGCJ_GC_DEBUG 1
6841 _ACEOF
6846 # See if the user has the interpreter included.
6847 # Check whether --enable-interpreter or --disable-interpreter was given.
6848 if test "${enable_interpreter+set}" = set; then
6849 enableval="$enable_interpreter"
6850 if test "$enable_interpreter" = yes; then
6851 # This can also be set in configure.host.
6852 libgcj_interpreter=yes
6853 elif test "$enable_interpreter" = no; then
6854 libgcj_interpreter=no
6858 if test "$libgcj_interpreter" = yes; then
6860 cat >>confdefs.h <<\_ACEOF
6861 #define INTERPRETER 1
6862 _ACEOF
6865 INTERPRETER="$libgcj_interpreter"
6868 echo "$as_me:$LINENO: checking for exception model to use" >&5
6869 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
6870 ac_ext=cc
6871 ac_cpp='$CXXCPP $CPPFLAGS'
6872 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6873 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6874 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6876 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
6877 if test "${enable_sjlj_exceptions+set}" = set; then
6878 enableval="$enable_sjlj_exceptions"
6880 else
6881 cat > conftest.$ac_ext << EOF
6882 #line 6882 "configure"
6883 struct S { ~S(); };
6884 void bar();
6885 void foo()
6887 S s;
6888 bar();
6891 old_CXXFLAGS="$CXXFLAGS"
6892 CXXFLAGS=-S
6893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6894 (eval $ac_compile) 2>&5
6895 ac_status=$?
6896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); }; then
6898 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
6899 enable_sjlj_exceptions=yes
6900 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
6901 enable_sjlj_exceptions=no
6904 CXXFLAGS="$old_CXXFLAGS"
6905 rm -f conftest*
6907 if test x$enable_sjlj_exceptions = xyes; then
6909 cat >>confdefs.h <<\_ACEOF
6910 #define SJLJ_EXCEPTIONS 1
6911 _ACEOF
6913 ac_exception_model_name=sjlj
6914 elif test x$enable_sjlj_exceptions = xno; then
6915 ac_exception_model_name="call frame"
6916 else
6917 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
6918 echo "$as_me: error: unable to detect exception model" >&2;}
6919 { (exit 1); exit 1; }; }
6921 ac_ext=c
6922 ac_cpp='$CPP $CPPFLAGS'
6923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6927 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
6928 echo "${ECHO_T}$ac_exception_model_name" >&6
6930 # If we are non using SJLJ exceptions, and this host does not have support
6931 # for unwinding from a signal handler, enable checked dereferences and divides.
6932 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
6933 CHECKREFSPEC=-fcheck-references
6934 DIVIDESPEC=-fuse-divide-subroutine
6935 EXCEPTIONSPEC=
6938 # See if the user wants to disable java.net. This is the mildly
6939 # ugly way that we admit that target-side configuration sucks.
6940 # Check whether --enable-java-net or --disable-java-net was given.
6941 if test "${enable_java_net+set}" = set; then
6942 enableval="$enable_java_net"
6946 # Whether java.net is built by default can depend on the target.
6947 if test -z "$enable_java_net"; then
6948 enable_java_net=${enable_java_net_default-yes}
6950 if test "$enable_java_net" = no; then
6952 cat >>confdefs.h <<\_ACEOF
6953 #define DISABLE_JAVA_NET 1
6954 _ACEOF
6958 # See if the user wants to configure without libffi. Some
6959 # architectures don't support it, and default values are set in
6960 # configure.host.
6962 # Check whether --with-libffi or --without-libffi was given.
6963 if test "${with_libffi+set}" = set; then
6964 withval="$with_libffi"
6966 else
6967 with_libffi=${with_libffi_default-yes}
6970 LIBFFI=
6971 LIBFFIINCS=
6972 if test "$with_libffi" != no; then
6974 cat >>confdefs.h <<\_ACEOF
6975 #define USE_LIBFFI 1
6976 _ACEOF
6978 LIBFFI=../libffi/libffi_convenience.la
6979 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
6984 # See if the user wants to disable JVMPI support.
6985 # Check whether --enable-jvmpi or --disable-jvmpi was given.
6986 if test "${enable_jvmpi+set}" = set; then
6987 enableval="$enable_jvmpi"
6991 if test "$enable_jvmpi" != no; then
6993 cat >>confdefs.h <<\_ACEOF
6994 #define ENABLE_JVMPI 1
6995 _ACEOF
6999 # If the target is an eCos system, use the appropriate eCos
7000 # I/O routines.
7001 # FIXME: this should not be a local option but a global target
7002 # system; at present there is no eCos target.
7003 TARGET_ECOS=${PROCESS-"no"}
7005 # Check whether --with-ecos or --without-ecos was given.
7006 if test "${with_ecos+set}" = set; then
7007 withval="$with_ecos"
7008 TARGET_ECOS="$with_ecos"
7012 PLATFORM_INNER_NAT_HDRS=
7013 case "$TARGET_ECOS" in
7014 no) case "$host" in
7015 *mingw*)
7016 PLATFORM=Win32
7017 PLATFORMNET=Win32
7018 PLATFORMH=win32.h
7020 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
7021 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
7022 LD_PROG=`$CC --print-prog-name=ld`
7023 LD_VERSION=`$LD_PROG --version`
7024 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
7025 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
7026 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
7027 LD_OK="ok"
7028 else
7029 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
7030 LD_OK="ok"
7033 if test "x$LD_OK" != x; then
7034 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
7035 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
7036 else
7037 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
7038 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
7039 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
7040 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
7042 cat >>confdefs.h <<\_ACEOF
7043 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
7044 _ACEOF
7049 PLATFORM=Posix
7050 PLATFORMNET=Posix
7051 PLATFORMH=posix.h
7052 PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
7054 esac
7057 PLATFORM=Ecos
7058 PLATFORMNET=NoNet
7060 cat >>confdefs.h <<\_ACEOF
7061 #define ECOS 1
7062 _ACEOF
7064 PLATFORMH=posix.h
7066 esac
7068 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
7071 ac_ext=c
7072 ac_cpp='$CPP $CPPFLAGS'
7073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7076 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7077 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7078 # On Suns, sometimes $CPP names a directory.
7079 if test -n "$CPP" && test -d "$CPP"; then
7080 CPP=
7082 if test -z "$CPP"; then
7083 if test "${ac_cv_prog_CPP+set}" = set; then
7084 echo $ECHO_N "(cached) $ECHO_C" >&6
7085 else
7086 # Double quotes because CPP needs to be expanded
7087 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7089 ac_preproc_ok=false
7090 for ac_c_preproc_warn_flag in '' yes
7092 # Use a header file that comes with gcc, so configuring glibc
7093 # with a fresh cross-compiler works.
7094 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7095 # <limits.h> exists even on freestanding compilers.
7096 # On the NeXT, cc -E runs the code through the compiler's parser,
7097 # not just through cpp. "Syntax error" is here to catch this case.
7098 cat >conftest.$ac_ext <<_ACEOF
7099 /* confdefs.h. */
7100 _ACEOF
7101 cat confdefs.h >>conftest.$ac_ext
7102 cat >>conftest.$ac_ext <<_ACEOF
7103 /* end confdefs.h. */
7104 #ifdef __STDC__
7105 # include <limits.h>
7106 #else
7107 # include <assert.h>
7108 #endif
7109 Syntax error
7110 _ACEOF
7111 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7112 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7113 ac_status=$?
7114 grep -v '^ *+' conftest.er1 >conftest.err
7115 rm -f conftest.er1
7116 cat conftest.err >&5
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); } >/dev/null; then
7119 if test -s conftest.err; then
7120 ac_cpp_err=$ac_c_preproc_warn_flag
7121 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7122 else
7123 ac_cpp_err=
7125 else
7126 ac_cpp_err=yes
7128 if test -z "$ac_cpp_err"; then
7130 else
7131 echo "$as_me: failed program was:" >&5
7132 sed 's/^/| /' conftest.$ac_ext >&5
7134 # Broken: fails on valid input.
7135 continue
7137 rm -f conftest.err conftest.$ac_ext
7139 # OK, works on sane cases. Now check whether non-existent headers
7140 # can be detected and how.
7141 cat >conftest.$ac_ext <<_ACEOF
7142 /* confdefs.h. */
7143 _ACEOF
7144 cat confdefs.h >>conftest.$ac_ext
7145 cat >>conftest.$ac_ext <<_ACEOF
7146 /* end confdefs.h. */
7147 #include <ac_nonexistent.h>
7148 _ACEOF
7149 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7151 ac_status=$?
7152 grep -v '^ *+' conftest.er1 >conftest.err
7153 rm -f conftest.er1
7154 cat conftest.err >&5
7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 (exit $ac_status); } >/dev/null; then
7157 if test -s conftest.err; then
7158 ac_cpp_err=$ac_c_preproc_warn_flag
7159 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7160 else
7161 ac_cpp_err=
7163 else
7164 ac_cpp_err=yes
7166 if test -z "$ac_cpp_err"; then
7167 # Broken: success on invalid input.
7168 continue
7169 else
7170 echo "$as_me: failed program was:" >&5
7171 sed 's/^/| /' conftest.$ac_ext >&5
7173 # Passes both tests.
7174 ac_preproc_ok=:
7175 break
7177 rm -f conftest.err conftest.$ac_ext
7179 done
7180 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7181 rm -f conftest.err conftest.$ac_ext
7182 if $ac_preproc_ok; then
7183 break
7186 done
7187 ac_cv_prog_CPP=$CPP
7190 CPP=$ac_cv_prog_CPP
7191 else
7192 ac_cv_prog_CPP=$CPP
7194 echo "$as_me:$LINENO: result: $CPP" >&5
7195 echo "${ECHO_T}$CPP" >&6
7196 ac_preproc_ok=false
7197 for ac_c_preproc_warn_flag in '' yes
7199 # Use a header file that comes with gcc, so configuring glibc
7200 # with a fresh cross-compiler works.
7201 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7202 # <limits.h> exists even on freestanding compilers.
7203 # On the NeXT, cc -E runs the code through the compiler's parser,
7204 # not just through cpp. "Syntax error" is here to catch this case.
7205 cat >conftest.$ac_ext <<_ACEOF
7206 /* confdefs.h. */
7207 _ACEOF
7208 cat confdefs.h >>conftest.$ac_ext
7209 cat >>conftest.$ac_ext <<_ACEOF
7210 /* end confdefs.h. */
7211 #ifdef __STDC__
7212 # include <limits.h>
7213 #else
7214 # include <assert.h>
7215 #endif
7216 Syntax error
7217 _ACEOF
7218 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7219 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7220 ac_status=$?
7221 grep -v '^ *+' conftest.er1 >conftest.err
7222 rm -f conftest.er1
7223 cat conftest.err >&5
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); } >/dev/null; then
7226 if test -s conftest.err; then
7227 ac_cpp_err=$ac_c_preproc_warn_flag
7228 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7229 else
7230 ac_cpp_err=
7232 else
7233 ac_cpp_err=yes
7235 if test -z "$ac_cpp_err"; then
7237 else
7238 echo "$as_me: failed program was:" >&5
7239 sed 's/^/| /' conftest.$ac_ext >&5
7241 # Broken: fails on valid input.
7242 continue
7244 rm -f conftest.err conftest.$ac_ext
7246 # OK, works on sane cases. Now check whether non-existent headers
7247 # can be detected and how.
7248 cat >conftest.$ac_ext <<_ACEOF
7249 /* confdefs.h. */
7250 _ACEOF
7251 cat confdefs.h >>conftest.$ac_ext
7252 cat >>conftest.$ac_ext <<_ACEOF
7253 /* end confdefs.h. */
7254 #include <ac_nonexistent.h>
7255 _ACEOF
7256 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7257 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7258 ac_status=$?
7259 grep -v '^ *+' conftest.er1 >conftest.err
7260 rm -f conftest.er1
7261 cat conftest.err >&5
7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); } >/dev/null; then
7264 if test -s conftest.err; then
7265 ac_cpp_err=$ac_c_preproc_warn_flag
7266 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7267 else
7268 ac_cpp_err=
7270 else
7271 ac_cpp_err=yes
7273 if test -z "$ac_cpp_err"; then
7274 # Broken: success on invalid input.
7275 continue
7276 else
7277 echo "$as_me: failed program was:" >&5
7278 sed 's/^/| /' conftest.$ac_ext >&5
7280 # Passes both tests.
7281 ac_preproc_ok=:
7282 break
7284 rm -f conftest.err conftest.$ac_ext
7286 done
7287 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7288 rm -f conftest.err conftest.$ac_ext
7289 if $ac_preproc_ok; then
7291 else
7292 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7293 See \`config.log' for more details." >&5
7294 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7295 See \`config.log' for more details." >&2;}
7296 { (exit 1); exit 1; }; }
7299 ac_ext=c
7300 ac_cpp='$CPP $CPPFLAGS'
7301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7306 echo "$as_me:$LINENO: checking for egrep" >&5
7307 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
7308 if test "${ac_cv_prog_egrep+set}" = set; then
7309 echo $ECHO_N "(cached) $ECHO_C" >&6
7310 else
7311 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
7312 then ac_cv_prog_egrep='grep -E'
7313 else ac_cv_prog_egrep='egrep'
7316 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
7317 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
7318 EGREP=$ac_cv_prog_egrep
7321 cat >conftest.$ac_ext <<_ACEOF
7322 /* confdefs.h. */
7323 _ACEOF
7324 cat confdefs.h >>conftest.$ac_ext
7325 cat >>conftest.$ac_ext <<_ACEOF
7326 /* end confdefs.h. */
7327 #include <stdint.h>
7329 _ACEOF
7330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7331 $EGREP "uint32_t" >/dev/null 2>&1; then
7333 cat >>confdefs.h <<\_ACEOF
7334 #define HAVE_INT32_DEFINED 1
7335 _ACEOF
7338 rm -f conftest*
7340 cat >conftest.$ac_ext <<_ACEOF
7341 /* confdefs.h. */
7342 _ACEOF
7343 cat confdefs.h >>conftest.$ac_ext
7344 cat >>conftest.$ac_ext <<_ACEOF
7345 /* end confdefs.h. */
7346 #include <inttypes.h>
7348 _ACEOF
7349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7350 $EGREP "uint32_t" >/dev/null 2>&1; then
7352 cat >>confdefs.h <<\_ACEOF
7353 #define HAVE_INT32_DEFINED 1
7354 _ACEOF
7357 rm -f conftest*
7359 cat >conftest.$ac_ext <<_ACEOF
7360 /* confdefs.h. */
7361 _ACEOF
7362 cat confdefs.h >>conftest.$ac_ext
7363 cat >>conftest.$ac_ext <<_ACEOF
7364 /* end confdefs.h. */
7365 #include <sys/types.h>
7367 _ACEOF
7368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7369 $EGREP "u_int32_t" >/dev/null 2>&1; then
7371 cat >>confdefs.h <<\_ACEOF
7372 #define HAVE_BSD_INT32_DEFINED 1
7373 _ACEOF
7376 rm -f conftest*
7378 cat >conftest.$ac_ext <<_ACEOF
7379 /* confdefs.h. */
7380 _ACEOF
7381 cat confdefs.h >>conftest.$ac_ext
7382 cat >>conftest.$ac_ext <<_ACEOF
7383 /* end confdefs.h. */
7384 #include <sys/config.h>
7386 _ACEOF
7387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7388 $EGREP "u_int32_t" >/dev/null 2>&1; then
7390 cat >>confdefs.h <<\_ACEOF
7391 #define HAVE_BSD_INT32_DEFINED 1
7392 _ACEOF
7395 rm -f conftest*
7400 if test "$PLATFORM" = Win32; then
7401 USING_WIN32_PLATFORM_TRUE=
7402 USING_WIN32_PLATFORM_FALSE='#'
7403 else
7404 USING_WIN32_PLATFORM_TRUE='#'
7405 USING_WIN32_PLATFORM_FALSE=
7410 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
7411 USING_POSIX_PLATFORM_TRUE=
7412 USING_POSIX_PLATFORM_FALSE='#'
7413 else
7414 USING_POSIX_PLATFORM_TRUE='#'
7415 USING_POSIX_PLATFORM_FALSE=
7419 case "$host" in
7420 *-darwin*) DARWIN_CRT=true ;;
7421 *) DARWIN_CRT=false ;;
7422 esac
7425 if $DARWIN_CRT; then
7426 USING_DARWIN_CRT_TRUE=
7427 USING_DARWIN_CRT_FALSE='#'
7428 else
7429 USING_DARWIN_CRT_TRUE='#'
7430 USING_DARWIN_CRT_FALSE=
7434 # These may not be defined in a non-ANS conformant embedded system.
7435 # FIXME: Should these case a runtime exception in that case?
7436 cat >conftest.$ac_ext <<_ACEOF
7437 /* confdefs.h. */
7438 _ACEOF
7439 cat confdefs.h >>conftest.$ac_ext
7440 cat >>conftest.$ac_ext <<_ACEOF
7441 /* end confdefs.h. */
7442 #include <time.h>
7444 _ACEOF
7445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7446 $EGREP "mktime" >/dev/null 2>&1; then
7448 cat >>confdefs.h <<\_ACEOF
7449 #define HAVE_MKTIME 1
7450 _ACEOF
7453 rm -f conftest*
7455 cat >conftest.$ac_ext <<_ACEOF
7456 /* confdefs.h. */
7457 _ACEOF
7458 cat confdefs.h >>conftest.$ac_ext
7459 cat >>conftest.$ac_ext <<_ACEOF
7460 /* end confdefs.h. */
7461 #include <time.h>
7463 _ACEOF
7464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7465 $EGREP "localtime" >/dev/null 2>&1; then
7467 cat >>confdefs.h <<\_ACEOF
7468 #define HAVE_LOCALTIME 1
7469 _ACEOF
7472 rm -f conftest*
7475 # Create the subdirectory for natFile.cc, or the attempt
7476 # to create the link will fail.
7477 test -d java || mkdir java
7478 test -d java/io || mkdir java/io
7479 test -d gnu || mkdir gnu
7480 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
7483 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
7484 test -d java/lang || mkdir java/lang
7485 ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
7487 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
7490 # Likewise for natInetAddress.cc and natVMNetworkInterface.cc.
7491 test -d java/net || mkdir java/net
7492 ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
7494 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
7497 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
7498 test -d gnu/java || mkdir gnu/java
7499 test -d gnu/java/net || mkdir gnu/java/net
7500 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
7502 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
7505 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
7506 test -d gnu/java/nio || mkdir gnu/java/nio
7507 ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
7509 ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
7511 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
7512 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
7515 case "${host}" in
7516 *mingw*)
7517 SYSTEMSPEC="-lgdi32 -lws2_32"
7518 if test "${with_win32_nlsapi}" = "unicows"; then
7519 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
7523 SYSTEMSPEC=
7525 esac
7528 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
7532 # Check whether --with-system-zlib or --without-system-zlib was given.
7533 if test "${with_system_zlib+set}" = set; then
7534 withval="$with_system_zlib"
7537 ZLIBSPEC=
7539 ZLIBTESTSPEC=
7542 echo "$as_me:$LINENO: checking for X" >&5
7543 echo $ECHO_N "checking for X... $ECHO_C" >&6
7546 # Check whether --with-x or --without-x was given.
7547 if test "${with_x+set}" = set; then
7548 withval="$with_x"
7551 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7552 if test "x$with_x" = xno; then
7553 # The user explicitly disabled X.
7554 have_x=disabled
7555 else
7556 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7557 # Both variables are already set.
7558 have_x=yes
7559 else
7560 if test "${ac_cv_have_x+set}" = set; then
7561 echo $ECHO_N "(cached) $ECHO_C" >&6
7562 else
7563 # One or both of the vars are not set, and there is no cached value.
7564 ac_x_includes=no ac_x_libraries=no
7565 rm -fr conftest.dir
7566 if mkdir conftest.dir; then
7567 cd conftest.dir
7568 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7569 cat >Imakefile <<'_ACEOF'
7570 acfindx:
7571 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7572 _ACEOF
7573 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7574 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7575 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7576 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7577 for ac_extension in a so sl; do
7578 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7579 test -f $ac_im_libdir/libX11.$ac_extension; then
7580 ac_im_usrlibdir=$ac_im_libdir; break
7582 done
7583 # Screen out bogus values from the imake configuration. They are
7584 # bogus both because they are the default anyway, and because
7585 # using them would break gcc on systems where it needs fixed includes.
7586 case $ac_im_incroot in
7587 /usr/include) ;;
7588 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7589 esac
7590 case $ac_im_usrlibdir in
7591 /usr/lib | /lib) ;;
7592 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7593 esac
7595 cd ..
7596 rm -fr conftest.dir
7599 # Standard set of common directories for X headers.
7600 # Check X11 before X11Rn because it is often a symlink to the current release.
7601 ac_x_header_dirs='
7602 /usr/X11/include
7603 /usr/X11R6/include
7604 /usr/X11R5/include
7605 /usr/X11R4/include
7607 /usr/include/X11
7608 /usr/include/X11R6
7609 /usr/include/X11R5
7610 /usr/include/X11R4
7612 /usr/local/X11/include
7613 /usr/local/X11R6/include
7614 /usr/local/X11R5/include
7615 /usr/local/X11R4/include
7617 /usr/local/include/X11
7618 /usr/local/include/X11R6
7619 /usr/local/include/X11R5
7620 /usr/local/include/X11R4
7622 /usr/X386/include
7623 /usr/x386/include
7624 /usr/XFree86/include/X11
7626 /usr/include
7627 /usr/local/include
7628 /usr/unsupported/include
7629 /usr/athena/include
7630 /usr/local/x11r5/include
7631 /usr/lpp/Xamples/include
7633 /usr/openwin/include
7634 /usr/openwin/share/include'
7636 if test "$ac_x_includes" = no; then
7637 # Guess where to find include files, by looking for Xlib.h.
7638 # First, try using that file with no special directory specified.
7639 cat >conftest.$ac_ext <<_ACEOF
7640 /* confdefs.h. */
7641 _ACEOF
7642 cat confdefs.h >>conftest.$ac_ext
7643 cat >>conftest.$ac_ext <<_ACEOF
7644 /* end confdefs.h. */
7645 #include <X11/Xlib.h>
7646 _ACEOF
7647 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7648 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7649 ac_status=$?
7650 grep -v '^ *+' conftest.er1 >conftest.err
7651 rm -f conftest.er1
7652 cat conftest.err >&5
7653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654 (exit $ac_status); } >/dev/null; then
7655 if test -s conftest.err; then
7656 ac_cpp_err=$ac_c_preproc_warn_flag
7657 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7658 else
7659 ac_cpp_err=
7661 else
7662 ac_cpp_err=yes
7664 if test -z "$ac_cpp_err"; then
7665 # We can compile using X headers with no special include directory.
7666 ac_x_includes=
7667 else
7668 echo "$as_me: failed program was:" >&5
7669 sed 's/^/| /' conftest.$ac_ext >&5
7671 for ac_dir in $ac_x_header_dirs; do
7672 if test -r "$ac_dir/X11/Xlib.h"; then
7673 ac_x_includes=$ac_dir
7674 break
7676 done
7678 rm -f conftest.err conftest.$ac_ext
7679 fi # $ac_x_includes = no
7681 if test "$ac_x_libraries" = no; then
7682 # Check for the libraries.
7683 # See if we find them without any special options.
7684 # Don't add to $LIBS permanently.
7685 ac_save_LIBS=$LIBS
7686 LIBS="-lXt $LIBS"
7687 if test x$gcc_no_link = xyes; then
7688 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7689 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7690 { (exit 1); exit 1; }; }
7692 cat >conftest.$ac_ext <<_ACEOF
7693 /* confdefs.h. */
7694 _ACEOF
7695 cat confdefs.h >>conftest.$ac_ext
7696 cat >>conftest.$ac_ext <<_ACEOF
7697 /* end confdefs.h. */
7698 #include <X11/Xlib.h>
7700 main ()
7702 XrmInitialize ()
7704 return 0;
7706 _ACEOF
7707 rm -f conftest.$ac_objext conftest$ac_exeext
7708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7709 (eval $ac_link) 2>conftest.er1
7710 ac_status=$?
7711 grep -v '^ *+' conftest.er1 >conftest.err
7712 rm -f conftest.er1
7713 cat conftest.err >&5
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); } &&
7716 { ac_try='test -z "$ac_c_werror_flag"
7717 || test ! -s conftest.err'
7718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7719 (eval $ac_try) 2>&5
7720 ac_status=$?
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); }; } &&
7723 { ac_try='test -s conftest$ac_exeext'
7724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7725 (eval $ac_try) 2>&5
7726 ac_status=$?
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); }; }; then
7729 LIBS=$ac_save_LIBS
7730 # We can link X programs with no special library path.
7731 ac_x_libraries=
7732 else
7733 echo "$as_me: failed program was:" >&5
7734 sed 's/^/| /' conftest.$ac_ext >&5
7736 LIBS=$ac_save_LIBS
7737 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7739 # Don't even attempt the hair of trying to link an X program!
7740 for ac_extension in a so sl; do
7741 if test -r $ac_dir/libXt.$ac_extension; then
7742 ac_x_libraries=$ac_dir
7743 break 2
7745 done
7746 done
7748 rm -f conftest.err conftest.$ac_objext \
7749 conftest$ac_exeext conftest.$ac_ext
7750 fi # $ac_x_libraries = no
7752 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7753 # Didn't find X anywhere. Cache the known absence of X.
7754 ac_cv_have_x="have_x=no"
7755 else
7756 # Record where we found X for the cache.
7757 ac_cv_have_x="have_x=yes \
7758 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7763 eval "$ac_cv_have_x"
7764 fi # $with_x != no
7766 if test "$have_x" != yes; then
7767 echo "$as_me:$LINENO: result: $have_x" >&5
7768 echo "${ECHO_T}$have_x" >&6
7769 no_x=yes
7770 else
7771 # If each of the values was on the command line, it overrides each guess.
7772 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7773 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7774 # Update the cache value to reflect the command line values.
7775 ac_cv_have_x="have_x=yes \
7776 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7777 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7778 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7781 if test "$no_x" = yes; then
7782 # Not all programs may use this symbol, but it does not hurt to define it.
7784 cat >>confdefs.h <<\_ACEOF
7785 #define X_DISPLAY_MISSING 1
7786 _ACEOF
7788 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7789 else
7790 if test -n "$x_includes"; then
7791 X_CFLAGS="$X_CFLAGS -I$x_includes"
7794 # It would also be nice to do this for all -L options, not just this one.
7795 if test -n "$x_libraries"; then
7796 X_LIBS="$X_LIBS -L$x_libraries"
7797 # For Solaris; some versions of Sun CC require a space after -R and
7798 # others require no space. Words are not sufficient . . . .
7799 case `(uname -sr) 2>/dev/null` in
7800 "SunOS 5"*)
7801 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7802 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7803 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7804 if test x$gcc_no_link = xyes; then
7805 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7806 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7807 { (exit 1); exit 1; }; }
7809 cat >conftest.$ac_ext <<_ACEOF
7810 /* confdefs.h. */
7811 _ACEOF
7812 cat confdefs.h >>conftest.$ac_ext
7813 cat >>conftest.$ac_ext <<_ACEOF
7814 /* end confdefs.h. */
7817 main ()
7821 return 0;
7823 _ACEOF
7824 rm -f conftest.$ac_objext conftest$ac_exeext
7825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7826 (eval $ac_link) 2>conftest.er1
7827 ac_status=$?
7828 grep -v '^ *+' conftest.er1 >conftest.err
7829 rm -f conftest.er1
7830 cat conftest.err >&5
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); } &&
7833 { ac_try='test -z "$ac_c_werror_flag"
7834 || test ! -s conftest.err'
7835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7836 (eval $ac_try) 2>&5
7837 ac_status=$?
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); }; } &&
7840 { ac_try='test -s conftest$ac_exeext'
7841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7842 (eval $ac_try) 2>&5
7843 ac_status=$?
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); }; }; then
7846 ac_R_nospace=yes
7847 else
7848 echo "$as_me: failed program was:" >&5
7849 sed 's/^/| /' conftest.$ac_ext >&5
7851 ac_R_nospace=no
7853 rm -f conftest.err conftest.$ac_objext \
7854 conftest$ac_exeext conftest.$ac_ext
7855 if test $ac_R_nospace = yes; then
7856 echo "$as_me:$LINENO: result: no" >&5
7857 echo "${ECHO_T}no" >&6
7858 X_LIBS="$X_LIBS -R$x_libraries"
7859 else
7860 LIBS="$ac_xsave_LIBS -R $x_libraries"
7861 if test x$gcc_no_link = xyes; then
7862 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7863 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7864 { (exit 1); exit 1; }; }
7866 cat >conftest.$ac_ext <<_ACEOF
7867 /* confdefs.h. */
7868 _ACEOF
7869 cat confdefs.h >>conftest.$ac_ext
7870 cat >>conftest.$ac_ext <<_ACEOF
7871 /* end confdefs.h. */
7874 main ()
7878 return 0;
7880 _ACEOF
7881 rm -f conftest.$ac_objext conftest$ac_exeext
7882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7883 (eval $ac_link) 2>conftest.er1
7884 ac_status=$?
7885 grep -v '^ *+' conftest.er1 >conftest.err
7886 rm -f conftest.er1
7887 cat conftest.err >&5
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); } &&
7890 { ac_try='test -z "$ac_c_werror_flag"
7891 || test ! -s conftest.err'
7892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7893 (eval $ac_try) 2>&5
7894 ac_status=$?
7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); }; } &&
7897 { ac_try='test -s conftest$ac_exeext'
7898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7899 (eval $ac_try) 2>&5
7900 ac_status=$?
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); }; }; then
7903 ac_R_space=yes
7904 else
7905 echo "$as_me: failed program was:" >&5
7906 sed 's/^/| /' conftest.$ac_ext >&5
7908 ac_R_space=no
7910 rm -f conftest.err conftest.$ac_objext \
7911 conftest$ac_exeext conftest.$ac_ext
7912 if test $ac_R_space = yes; then
7913 echo "$as_me:$LINENO: result: yes" >&5
7914 echo "${ECHO_T}yes" >&6
7915 X_LIBS="$X_LIBS -R $x_libraries"
7916 else
7917 echo "$as_me:$LINENO: result: neither works" >&5
7918 echo "${ECHO_T}neither works" >&6
7921 LIBS=$ac_xsave_LIBS
7922 esac
7925 # Check for system-dependent libraries X programs must link with.
7926 # Do this before checking for the system-independent R6 libraries
7927 # (-lICE), since we may need -lsocket or whatever for X linking.
7929 if test "$ISC" = yes; then
7930 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7931 else
7932 # Martyn Johnson says this is needed for Ultrix, if the X
7933 # libraries were built with DECnet support. And Karl Berry says
7934 # the Alpha needs dnet_stub (dnet does not exist).
7935 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7936 if test x$gcc_no_link = xyes; then
7937 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7938 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7939 { (exit 1); exit 1; }; }
7941 cat >conftest.$ac_ext <<_ACEOF
7942 /* confdefs.h. */
7943 _ACEOF
7944 cat confdefs.h >>conftest.$ac_ext
7945 cat >>conftest.$ac_ext <<_ACEOF
7946 /* end confdefs.h. */
7948 /* Override any gcc2 internal prototype to avoid an error. */
7949 #ifdef __cplusplus
7950 extern "C"
7951 #endif
7952 /* We use char because int might match the return type of a gcc2
7953 builtin and then its argument prototype would still apply. */
7954 char XOpenDisplay ();
7956 main ()
7958 XOpenDisplay ();
7960 return 0;
7962 _ACEOF
7963 rm -f conftest.$ac_objext conftest$ac_exeext
7964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7965 (eval $ac_link) 2>conftest.er1
7966 ac_status=$?
7967 grep -v '^ *+' conftest.er1 >conftest.err
7968 rm -f conftest.er1
7969 cat conftest.err >&5
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); } &&
7972 { ac_try='test -z "$ac_c_werror_flag"
7973 || test ! -s conftest.err'
7974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7975 (eval $ac_try) 2>&5
7976 ac_status=$?
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); }; } &&
7979 { ac_try='test -s conftest$ac_exeext'
7980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7981 (eval $ac_try) 2>&5
7982 ac_status=$?
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); }; }; then
7986 else
7987 echo "$as_me: failed program was:" >&5
7988 sed 's/^/| /' conftest.$ac_ext >&5
7990 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7991 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7992 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7993 echo $ECHO_N "(cached) $ECHO_C" >&6
7994 else
7995 ac_check_lib_save_LIBS=$LIBS
7996 LIBS="-ldnet $LIBS"
7997 if test x$gcc_no_link = xyes; then
7998 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7999 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8000 { (exit 1); exit 1; }; }
8002 cat >conftest.$ac_ext <<_ACEOF
8003 /* confdefs.h. */
8004 _ACEOF
8005 cat confdefs.h >>conftest.$ac_ext
8006 cat >>conftest.$ac_ext <<_ACEOF
8007 /* end confdefs.h. */
8009 /* Override any gcc2 internal prototype to avoid an error. */
8010 #ifdef __cplusplus
8011 extern "C"
8012 #endif
8013 /* We use char because int might match the return type of a gcc2
8014 builtin and then its argument prototype would still apply. */
8015 char dnet_ntoa ();
8017 main ()
8019 dnet_ntoa ();
8021 return 0;
8023 _ACEOF
8024 rm -f conftest.$ac_objext conftest$ac_exeext
8025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8026 (eval $ac_link) 2>conftest.er1
8027 ac_status=$?
8028 grep -v '^ *+' conftest.er1 >conftest.err
8029 rm -f conftest.er1
8030 cat conftest.err >&5
8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); } &&
8033 { ac_try='test -z "$ac_c_werror_flag"
8034 || test ! -s conftest.err'
8035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8036 (eval $ac_try) 2>&5
8037 ac_status=$?
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); }; } &&
8040 { ac_try='test -s conftest$ac_exeext'
8041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8042 (eval $ac_try) 2>&5
8043 ac_status=$?
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); }; }; then
8046 ac_cv_lib_dnet_dnet_ntoa=yes
8047 else
8048 echo "$as_me: failed program was:" >&5
8049 sed 's/^/| /' conftest.$ac_ext >&5
8051 ac_cv_lib_dnet_dnet_ntoa=no
8053 rm -f conftest.err conftest.$ac_objext \
8054 conftest$ac_exeext conftest.$ac_ext
8055 LIBS=$ac_check_lib_save_LIBS
8057 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8058 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8059 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8060 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8063 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8064 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8065 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8066 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8067 echo $ECHO_N "(cached) $ECHO_C" >&6
8068 else
8069 ac_check_lib_save_LIBS=$LIBS
8070 LIBS="-ldnet_stub $LIBS"
8071 if test x$gcc_no_link = xyes; then
8072 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8073 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8074 { (exit 1); exit 1; }; }
8076 cat >conftest.$ac_ext <<_ACEOF
8077 /* confdefs.h. */
8078 _ACEOF
8079 cat confdefs.h >>conftest.$ac_ext
8080 cat >>conftest.$ac_ext <<_ACEOF
8081 /* end confdefs.h. */
8083 /* Override any gcc2 internal prototype to avoid an error. */
8084 #ifdef __cplusplus
8085 extern "C"
8086 #endif
8087 /* We use char because int might match the return type of a gcc2
8088 builtin and then its argument prototype would still apply. */
8089 char dnet_ntoa ();
8091 main ()
8093 dnet_ntoa ();
8095 return 0;
8097 _ACEOF
8098 rm -f conftest.$ac_objext conftest$ac_exeext
8099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8100 (eval $ac_link) 2>conftest.er1
8101 ac_status=$?
8102 grep -v '^ *+' conftest.er1 >conftest.err
8103 rm -f conftest.er1
8104 cat conftest.err >&5
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); } &&
8107 { ac_try='test -z "$ac_c_werror_flag"
8108 || test ! -s conftest.err'
8109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8110 (eval $ac_try) 2>&5
8111 ac_status=$?
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); }; } &&
8114 { ac_try='test -s conftest$ac_exeext'
8115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8116 (eval $ac_try) 2>&5
8117 ac_status=$?
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); }; }; then
8120 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8121 else
8122 echo "$as_me: failed program was:" >&5
8123 sed 's/^/| /' conftest.$ac_ext >&5
8125 ac_cv_lib_dnet_stub_dnet_ntoa=no
8127 rm -f conftest.err conftest.$ac_objext \
8128 conftest$ac_exeext conftest.$ac_ext
8129 LIBS=$ac_check_lib_save_LIBS
8131 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8132 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8133 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8134 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8139 rm -f conftest.err conftest.$ac_objext \
8140 conftest$ac_exeext conftest.$ac_ext
8141 LIBS="$ac_xsave_LIBS"
8143 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8144 # to get the SysV transport functions.
8145 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8146 # needs -lnsl.
8147 # The nsl library prevents programs from opening the X display
8148 # on Irix 5.2, according to T.E. Dickey.
8149 # The functions gethostbyname, getservbyname, and inet_addr are
8150 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8151 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8152 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8153 if test "${ac_cv_func_gethostbyname+set}" = set; then
8154 echo $ECHO_N "(cached) $ECHO_C" >&6
8155 else
8156 if test x$gcc_no_link = xyes; then
8157 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8158 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8159 { (exit 1); exit 1; }; }
8161 cat >conftest.$ac_ext <<_ACEOF
8162 /* confdefs.h. */
8163 _ACEOF
8164 cat confdefs.h >>conftest.$ac_ext
8165 cat >>conftest.$ac_ext <<_ACEOF
8166 /* end confdefs.h. */
8167 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
8168 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8169 #define gethostbyname innocuous_gethostbyname
8171 /* System header to define __stub macros and hopefully few prototypes,
8172 which can conflict with char gethostbyname (); below.
8173 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8174 <limits.h> exists even on freestanding compilers. */
8176 #ifdef __STDC__
8177 # include <limits.h>
8178 #else
8179 # include <assert.h>
8180 #endif
8182 #undef gethostbyname
8184 /* Override any gcc2 internal prototype to avoid an error. */
8185 #ifdef __cplusplus
8186 extern "C"
8188 #endif
8189 /* We use char because int might match the return type of a gcc2
8190 builtin and then its argument prototype would still apply. */
8191 char gethostbyname ();
8192 /* The GNU C library defines this for functions which it implements
8193 to always fail with ENOSYS. Some functions are actually named
8194 something starting with __ and the normal name is an alias. */
8195 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8196 choke me
8197 #else
8198 char (*f) () = gethostbyname;
8199 #endif
8200 #ifdef __cplusplus
8202 #endif
8205 main ()
8207 return f != gethostbyname;
8209 return 0;
8211 _ACEOF
8212 rm -f conftest.$ac_objext conftest$ac_exeext
8213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8214 (eval $ac_link) 2>conftest.er1
8215 ac_status=$?
8216 grep -v '^ *+' conftest.er1 >conftest.err
8217 rm -f conftest.er1
8218 cat conftest.err >&5
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); } &&
8221 { ac_try='test -z "$ac_c_werror_flag"
8222 || test ! -s conftest.err'
8223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8224 (eval $ac_try) 2>&5
8225 ac_status=$?
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); }; } &&
8228 { ac_try='test -s conftest$ac_exeext'
8229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8230 (eval $ac_try) 2>&5
8231 ac_status=$?
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); }; }; then
8234 ac_cv_func_gethostbyname=yes
8235 else
8236 echo "$as_me: failed program was:" >&5
8237 sed 's/^/| /' conftest.$ac_ext >&5
8239 ac_cv_func_gethostbyname=no
8241 rm -f conftest.err conftest.$ac_objext \
8242 conftest$ac_exeext conftest.$ac_ext
8244 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8245 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8247 if test $ac_cv_func_gethostbyname = no; then
8248 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8249 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8250 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8251 echo $ECHO_N "(cached) $ECHO_C" >&6
8252 else
8253 ac_check_lib_save_LIBS=$LIBS
8254 LIBS="-lnsl $LIBS"
8255 if test x$gcc_no_link = xyes; then
8256 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8257 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8258 { (exit 1); exit 1; }; }
8260 cat >conftest.$ac_ext <<_ACEOF
8261 /* confdefs.h. */
8262 _ACEOF
8263 cat confdefs.h >>conftest.$ac_ext
8264 cat >>conftest.$ac_ext <<_ACEOF
8265 /* end confdefs.h. */
8267 /* Override any gcc2 internal prototype to avoid an error. */
8268 #ifdef __cplusplus
8269 extern "C"
8270 #endif
8271 /* We use char because int might match the return type of a gcc2
8272 builtin and then its argument prototype would still apply. */
8273 char gethostbyname ();
8275 main ()
8277 gethostbyname ();
8279 return 0;
8281 _ACEOF
8282 rm -f conftest.$ac_objext conftest$ac_exeext
8283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8284 (eval $ac_link) 2>conftest.er1
8285 ac_status=$?
8286 grep -v '^ *+' conftest.er1 >conftest.err
8287 rm -f conftest.er1
8288 cat conftest.err >&5
8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290 (exit $ac_status); } &&
8291 { ac_try='test -z "$ac_c_werror_flag"
8292 || test ! -s conftest.err'
8293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8294 (eval $ac_try) 2>&5
8295 ac_status=$?
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); }; } &&
8298 { ac_try='test -s conftest$ac_exeext'
8299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8300 (eval $ac_try) 2>&5
8301 ac_status=$?
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); }; }; then
8304 ac_cv_lib_nsl_gethostbyname=yes
8305 else
8306 echo "$as_me: failed program was:" >&5
8307 sed 's/^/| /' conftest.$ac_ext >&5
8309 ac_cv_lib_nsl_gethostbyname=no
8311 rm -f conftest.err conftest.$ac_objext \
8312 conftest$ac_exeext conftest.$ac_ext
8313 LIBS=$ac_check_lib_save_LIBS
8315 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8316 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8317 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8318 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8321 if test $ac_cv_lib_nsl_gethostbyname = no; then
8322 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8323 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8324 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8325 echo $ECHO_N "(cached) $ECHO_C" >&6
8326 else
8327 ac_check_lib_save_LIBS=$LIBS
8328 LIBS="-lbsd $LIBS"
8329 if test x$gcc_no_link = xyes; then
8330 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8331 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8332 { (exit 1); exit 1; }; }
8334 cat >conftest.$ac_ext <<_ACEOF
8335 /* confdefs.h. */
8336 _ACEOF
8337 cat confdefs.h >>conftest.$ac_ext
8338 cat >>conftest.$ac_ext <<_ACEOF
8339 /* end confdefs.h. */
8341 /* Override any gcc2 internal prototype to avoid an error. */
8342 #ifdef __cplusplus
8343 extern "C"
8344 #endif
8345 /* We use char because int might match the return type of a gcc2
8346 builtin and then its argument prototype would still apply. */
8347 char gethostbyname ();
8349 main ()
8351 gethostbyname ();
8353 return 0;
8355 _ACEOF
8356 rm -f conftest.$ac_objext conftest$ac_exeext
8357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8358 (eval $ac_link) 2>conftest.er1
8359 ac_status=$?
8360 grep -v '^ *+' conftest.er1 >conftest.err
8361 rm -f conftest.er1
8362 cat conftest.err >&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); } &&
8365 { ac_try='test -z "$ac_c_werror_flag"
8366 || test ! -s conftest.err'
8367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8368 (eval $ac_try) 2>&5
8369 ac_status=$?
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); }; } &&
8372 { ac_try='test -s conftest$ac_exeext'
8373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8374 (eval $ac_try) 2>&5
8375 ac_status=$?
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); }; }; then
8378 ac_cv_lib_bsd_gethostbyname=yes
8379 else
8380 echo "$as_me: failed program was:" >&5
8381 sed 's/^/| /' conftest.$ac_ext >&5
8383 ac_cv_lib_bsd_gethostbyname=no
8385 rm -f conftest.err conftest.$ac_objext \
8386 conftest$ac_exeext conftest.$ac_ext
8387 LIBS=$ac_check_lib_save_LIBS
8389 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8390 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8391 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8392 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8398 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8399 # socket/setsockopt and other routines are undefined under SCO ODT
8400 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8401 # on later versions), says Simon Leinen: it contains gethostby*
8402 # variants that don't use the name server (or something). -lsocket
8403 # must be given before -lnsl if both are needed. We assume that
8404 # if connect needs -lnsl, so does gethostbyname.
8405 echo "$as_me:$LINENO: checking for connect" >&5
8406 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8407 if test "${ac_cv_func_connect+set}" = set; then
8408 echo $ECHO_N "(cached) $ECHO_C" >&6
8409 else
8410 if test x$gcc_no_link = xyes; then
8411 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8412 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8413 { (exit 1); exit 1; }; }
8415 cat >conftest.$ac_ext <<_ACEOF
8416 /* confdefs.h. */
8417 _ACEOF
8418 cat confdefs.h >>conftest.$ac_ext
8419 cat >>conftest.$ac_ext <<_ACEOF
8420 /* end confdefs.h. */
8421 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
8422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8423 #define connect innocuous_connect
8425 /* System header to define __stub macros and hopefully few prototypes,
8426 which can conflict with char connect (); below.
8427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8428 <limits.h> exists even on freestanding compilers. */
8430 #ifdef __STDC__
8431 # include <limits.h>
8432 #else
8433 # include <assert.h>
8434 #endif
8436 #undef connect
8438 /* Override any gcc2 internal prototype to avoid an error. */
8439 #ifdef __cplusplus
8440 extern "C"
8442 #endif
8443 /* We use char because int might match the return type of a gcc2
8444 builtin and then its argument prototype would still apply. */
8445 char connect ();
8446 /* The GNU C library defines this for functions which it implements
8447 to always fail with ENOSYS. Some functions are actually named
8448 something starting with __ and the normal name is an alias. */
8449 #if defined (__stub_connect) || defined (__stub___connect)
8450 choke me
8451 #else
8452 char (*f) () = connect;
8453 #endif
8454 #ifdef __cplusplus
8456 #endif
8459 main ()
8461 return f != connect;
8463 return 0;
8465 _ACEOF
8466 rm -f conftest.$ac_objext conftest$ac_exeext
8467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8468 (eval $ac_link) 2>conftest.er1
8469 ac_status=$?
8470 grep -v '^ *+' conftest.er1 >conftest.err
8471 rm -f conftest.er1
8472 cat conftest.err >&5
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); } &&
8475 { ac_try='test -z "$ac_c_werror_flag"
8476 || test ! -s conftest.err'
8477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8478 (eval $ac_try) 2>&5
8479 ac_status=$?
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); }; } &&
8482 { ac_try='test -s conftest$ac_exeext'
8483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8484 (eval $ac_try) 2>&5
8485 ac_status=$?
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); }; }; then
8488 ac_cv_func_connect=yes
8489 else
8490 echo "$as_me: failed program was:" >&5
8491 sed 's/^/| /' conftest.$ac_ext >&5
8493 ac_cv_func_connect=no
8495 rm -f conftest.err conftest.$ac_objext \
8496 conftest$ac_exeext conftest.$ac_ext
8498 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8499 echo "${ECHO_T}$ac_cv_func_connect" >&6
8501 if test $ac_cv_func_connect = no; then
8502 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8503 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8504 if test "${ac_cv_lib_socket_connect+set}" = set; then
8505 echo $ECHO_N "(cached) $ECHO_C" >&6
8506 else
8507 ac_check_lib_save_LIBS=$LIBS
8508 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8509 if test x$gcc_no_link = xyes; then
8510 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8511 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8512 { (exit 1); exit 1; }; }
8514 cat >conftest.$ac_ext <<_ACEOF
8515 /* confdefs.h. */
8516 _ACEOF
8517 cat confdefs.h >>conftest.$ac_ext
8518 cat >>conftest.$ac_ext <<_ACEOF
8519 /* end confdefs.h. */
8521 /* Override any gcc2 internal prototype to avoid an error. */
8522 #ifdef __cplusplus
8523 extern "C"
8524 #endif
8525 /* We use char because int might match the return type of a gcc2
8526 builtin and then its argument prototype would still apply. */
8527 char connect ();
8529 main ()
8531 connect ();
8533 return 0;
8535 _ACEOF
8536 rm -f conftest.$ac_objext conftest$ac_exeext
8537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8538 (eval $ac_link) 2>conftest.er1
8539 ac_status=$?
8540 grep -v '^ *+' conftest.er1 >conftest.err
8541 rm -f conftest.er1
8542 cat conftest.err >&5
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); } &&
8545 { ac_try='test -z "$ac_c_werror_flag"
8546 || test ! -s conftest.err'
8547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8548 (eval $ac_try) 2>&5
8549 ac_status=$?
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); }; } &&
8552 { ac_try='test -s conftest$ac_exeext'
8553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8554 (eval $ac_try) 2>&5
8555 ac_status=$?
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); }; }; then
8558 ac_cv_lib_socket_connect=yes
8559 else
8560 echo "$as_me: failed program was:" >&5
8561 sed 's/^/| /' conftest.$ac_ext >&5
8563 ac_cv_lib_socket_connect=no
8565 rm -f conftest.err conftest.$ac_objext \
8566 conftest$ac_exeext conftest.$ac_ext
8567 LIBS=$ac_check_lib_save_LIBS
8569 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8570 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8571 if test $ac_cv_lib_socket_connect = yes; then
8572 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8577 # Guillermo Gomez says -lposix is necessary on A/UX.
8578 echo "$as_me:$LINENO: checking for remove" >&5
8579 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8580 if test "${ac_cv_func_remove+set}" = set; then
8581 echo $ECHO_N "(cached) $ECHO_C" >&6
8582 else
8583 if test x$gcc_no_link = xyes; then
8584 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8585 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8586 { (exit 1); exit 1; }; }
8588 cat >conftest.$ac_ext <<_ACEOF
8589 /* confdefs.h. */
8590 _ACEOF
8591 cat confdefs.h >>conftest.$ac_ext
8592 cat >>conftest.$ac_ext <<_ACEOF
8593 /* end confdefs.h. */
8594 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
8595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8596 #define remove innocuous_remove
8598 /* System header to define __stub macros and hopefully few prototypes,
8599 which can conflict with char remove (); below.
8600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8601 <limits.h> exists even on freestanding compilers. */
8603 #ifdef __STDC__
8604 # include <limits.h>
8605 #else
8606 # include <assert.h>
8607 #endif
8609 #undef remove
8611 /* Override any gcc2 internal prototype to avoid an error. */
8612 #ifdef __cplusplus
8613 extern "C"
8615 #endif
8616 /* We use char because int might match the return type of a gcc2
8617 builtin and then its argument prototype would still apply. */
8618 char remove ();
8619 /* The GNU C library defines this for functions which it implements
8620 to always fail with ENOSYS. Some functions are actually named
8621 something starting with __ and the normal name is an alias. */
8622 #if defined (__stub_remove) || defined (__stub___remove)
8623 choke me
8624 #else
8625 char (*f) () = remove;
8626 #endif
8627 #ifdef __cplusplus
8629 #endif
8632 main ()
8634 return f != remove;
8636 return 0;
8638 _ACEOF
8639 rm -f conftest.$ac_objext conftest$ac_exeext
8640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8641 (eval $ac_link) 2>conftest.er1
8642 ac_status=$?
8643 grep -v '^ *+' conftest.er1 >conftest.err
8644 rm -f conftest.er1
8645 cat conftest.err >&5
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); } &&
8648 { ac_try='test -z "$ac_c_werror_flag"
8649 || test ! -s conftest.err'
8650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8651 (eval $ac_try) 2>&5
8652 ac_status=$?
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); }; } &&
8655 { ac_try='test -s conftest$ac_exeext'
8656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8657 (eval $ac_try) 2>&5
8658 ac_status=$?
8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660 (exit $ac_status); }; }; then
8661 ac_cv_func_remove=yes
8662 else
8663 echo "$as_me: failed program was:" >&5
8664 sed 's/^/| /' conftest.$ac_ext >&5
8666 ac_cv_func_remove=no
8668 rm -f conftest.err conftest.$ac_objext \
8669 conftest$ac_exeext conftest.$ac_ext
8671 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8672 echo "${ECHO_T}$ac_cv_func_remove" >&6
8674 if test $ac_cv_func_remove = no; then
8675 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8676 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8677 if test "${ac_cv_lib_posix_remove+set}" = set; then
8678 echo $ECHO_N "(cached) $ECHO_C" >&6
8679 else
8680 ac_check_lib_save_LIBS=$LIBS
8681 LIBS="-lposix $LIBS"
8682 if test x$gcc_no_link = xyes; then
8683 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8684 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8685 { (exit 1); exit 1; }; }
8687 cat >conftest.$ac_ext <<_ACEOF
8688 /* confdefs.h. */
8689 _ACEOF
8690 cat confdefs.h >>conftest.$ac_ext
8691 cat >>conftest.$ac_ext <<_ACEOF
8692 /* end confdefs.h. */
8694 /* Override any gcc2 internal prototype to avoid an error. */
8695 #ifdef __cplusplus
8696 extern "C"
8697 #endif
8698 /* We use char because int might match the return type of a gcc2
8699 builtin and then its argument prototype would still apply. */
8700 char remove ();
8702 main ()
8704 remove ();
8706 return 0;
8708 _ACEOF
8709 rm -f conftest.$ac_objext conftest$ac_exeext
8710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8711 (eval $ac_link) 2>conftest.er1
8712 ac_status=$?
8713 grep -v '^ *+' conftest.er1 >conftest.err
8714 rm -f conftest.er1
8715 cat conftest.err >&5
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); } &&
8718 { ac_try='test -z "$ac_c_werror_flag"
8719 || test ! -s conftest.err'
8720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8721 (eval $ac_try) 2>&5
8722 ac_status=$?
8723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724 (exit $ac_status); }; } &&
8725 { ac_try='test -s conftest$ac_exeext'
8726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8727 (eval $ac_try) 2>&5
8728 ac_status=$?
8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 (exit $ac_status); }; }; then
8731 ac_cv_lib_posix_remove=yes
8732 else
8733 echo "$as_me: failed program was:" >&5
8734 sed 's/^/| /' conftest.$ac_ext >&5
8736 ac_cv_lib_posix_remove=no
8738 rm -f conftest.err conftest.$ac_objext \
8739 conftest$ac_exeext conftest.$ac_ext
8740 LIBS=$ac_check_lib_save_LIBS
8742 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8743 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8744 if test $ac_cv_lib_posix_remove = yes; then
8745 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8750 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8751 echo "$as_me:$LINENO: checking for shmat" >&5
8752 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8753 if test "${ac_cv_func_shmat+set}" = set; then
8754 echo $ECHO_N "(cached) $ECHO_C" >&6
8755 else
8756 if test x$gcc_no_link = xyes; then
8757 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8758 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8759 { (exit 1); exit 1; }; }
8761 cat >conftest.$ac_ext <<_ACEOF
8762 /* confdefs.h. */
8763 _ACEOF
8764 cat confdefs.h >>conftest.$ac_ext
8765 cat >>conftest.$ac_ext <<_ACEOF
8766 /* end confdefs.h. */
8767 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
8768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8769 #define shmat innocuous_shmat
8771 /* System header to define __stub macros and hopefully few prototypes,
8772 which can conflict with char shmat (); below.
8773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8774 <limits.h> exists even on freestanding compilers. */
8776 #ifdef __STDC__
8777 # include <limits.h>
8778 #else
8779 # include <assert.h>
8780 #endif
8782 #undef shmat
8784 /* Override any gcc2 internal prototype to avoid an error. */
8785 #ifdef __cplusplus
8786 extern "C"
8788 #endif
8789 /* We use char because int might match the return type of a gcc2
8790 builtin and then its argument prototype would still apply. */
8791 char shmat ();
8792 /* The GNU C library defines this for functions which it implements
8793 to always fail with ENOSYS. Some functions are actually named
8794 something starting with __ and the normal name is an alias. */
8795 #if defined (__stub_shmat) || defined (__stub___shmat)
8796 choke me
8797 #else
8798 char (*f) () = shmat;
8799 #endif
8800 #ifdef __cplusplus
8802 #endif
8805 main ()
8807 return f != shmat;
8809 return 0;
8811 _ACEOF
8812 rm -f conftest.$ac_objext conftest$ac_exeext
8813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8814 (eval $ac_link) 2>conftest.er1
8815 ac_status=$?
8816 grep -v '^ *+' conftest.er1 >conftest.err
8817 rm -f conftest.er1
8818 cat conftest.err >&5
8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 (exit $ac_status); } &&
8821 { ac_try='test -z "$ac_c_werror_flag"
8822 || test ! -s conftest.err'
8823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8824 (eval $ac_try) 2>&5
8825 ac_status=$?
8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); }; } &&
8828 { ac_try='test -s conftest$ac_exeext'
8829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8830 (eval $ac_try) 2>&5
8831 ac_status=$?
8832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); }; }; then
8834 ac_cv_func_shmat=yes
8835 else
8836 echo "$as_me: failed program was:" >&5
8837 sed 's/^/| /' conftest.$ac_ext >&5
8839 ac_cv_func_shmat=no
8841 rm -f conftest.err conftest.$ac_objext \
8842 conftest$ac_exeext conftest.$ac_ext
8844 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8845 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8847 if test $ac_cv_func_shmat = no; then
8848 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8849 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8850 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8851 echo $ECHO_N "(cached) $ECHO_C" >&6
8852 else
8853 ac_check_lib_save_LIBS=$LIBS
8854 LIBS="-lipc $LIBS"
8855 if test x$gcc_no_link = xyes; then
8856 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8857 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8858 { (exit 1); exit 1; }; }
8860 cat >conftest.$ac_ext <<_ACEOF
8861 /* confdefs.h. */
8862 _ACEOF
8863 cat confdefs.h >>conftest.$ac_ext
8864 cat >>conftest.$ac_ext <<_ACEOF
8865 /* end confdefs.h. */
8867 /* Override any gcc2 internal prototype to avoid an error. */
8868 #ifdef __cplusplus
8869 extern "C"
8870 #endif
8871 /* We use char because int might match the return type of a gcc2
8872 builtin and then its argument prototype would still apply. */
8873 char shmat ();
8875 main ()
8877 shmat ();
8879 return 0;
8881 _ACEOF
8882 rm -f conftest.$ac_objext conftest$ac_exeext
8883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8884 (eval $ac_link) 2>conftest.er1
8885 ac_status=$?
8886 grep -v '^ *+' conftest.er1 >conftest.err
8887 rm -f conftest.er1
8888 cat conftest.err >&5
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 (exit $ac_status); } &&
8891 { ac_try='test -z "$ac_c_werror_flag"
8892 || test ! -s conftest.err'
8893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8894 (eval $ac_try) 2>&5
8895 ac_status=$?
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); }; } &&
8898 { ac_try='test -s conftest$ac_exeext'
8899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8900 (eval $ac_try) 2>&5
8901 ac_status=$?
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); }; }; then
8904 ac_cv_lib_ipc_shmat=yes
8905 else
8906 echo "$as_me: failed program was:" >&5
8907 sed 's/^/| /' conftest.$ac_ext >&5
8909 ac_cv_lib_ipc_shmat=no
8911 rm -f conftest.err conftest.$ac_objext \
8912 conftest$ac_exeext conftest.$ac_ext
8913 LIBS=$ac_check_lib_save_LIBS
8915 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8916 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8917 if test $ac_cv_lib_ipc_shmat = yes; then
8918 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8924 # Check for libraries that X11R6 Xt/Xaw programs need.
8925 ac_save_LDFLAGS=$LDFLAGS
8926 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8927 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8928 # check for ICE first), but we must link in the order -lSM -lICE or
8929 # we get undefined symbols. So assume we have SM if we have ICE.
8930 # These have to be linked with before -lX11, unlike the other
8931 # libraries we check for below, so use a different variable.
8932 # John Interrante, Karl Berry
8933 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8934 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8935 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8936 echo $ECHO_N "(cached) $ECHO_C" >&6
8937 else
8938 ac_check_lib_save_LIBS=$LIBS
8939 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8940 if test x$gcc_no_link = xyes; then
8941 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8942 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8943 { (exit 1); exit 1; }; }
8945 cat >conftest.$ac_ext <<_ACEOF
8946 /* confdefs.h. */
8947 _ACEOF
8948 cat confdefs.h >>conftest.$ac_ext
8949 cat >>conftest.$ac_ext <<_ACEOF
8950 /* end confdefs.h. */
8952 /* Override any gcc2 internal prototype to avoid an error. */
8953 #ifdef __cplusplus
8954 extern "C"
8955 #endif
8956 /* We use char because int might match the return type of a gcc2
8957 builtin and then its argument prototype would still apply. */
8958 char IceConnectionNumber ();
8960 main ()
8962 IceConnectionNumber ();
8964 return 0;
8966 _ACEOF
8967 rm -f conftest.$ac_objext conftest$ac_exeext
8968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8969 (eval $ac_link) 2>conftest.er1
8970 ac_status=$?
8971 grep -v '^ *+' conftest.er1 >conftest.err
8972 rm -f conftest.er1
8973 cat conftest.err >&5
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); } &&
8976 { ac_try='test -z "$ac_c_werror_flag"
8977 || test ! -s conftest.err'
8978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8979 (eval $ac_try) 2>&5
8980 ac_status=$?
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); }; } &&
8983 { ac_try='test -s conftest$ac_exeext'
8984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8985 (eval $ac_try) 2>&5
8986 ac_status=$?
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); }; }; then
8989 ac_cv_lib_ICE_IceConnectionNumber=yes
8990 else
8991 echo "$as_me: failed program was:" >&5
8992 sed 's/^/| /' conftest.$ac_ext >&5
8994 ac_cv_lib_ICE_IceConnectionNumber=no
8996 rm -f conftest.err conftest.$ac_objext \
8997 conftest$ac_exeext conftest.$ac_ext
8998 LIBS=$ac_check_lib_save_LIBS
9000 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9001 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9002 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9003 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9006 LDFLAGS=$ac_save_LDFLAGS
9011 # FIXME: this should be _libs on some hosts.
9012 libsubdir=.libs
9014 # extra LD Flags which are required for targets
9015 case "${host}" in
9016 *-*-darwin[0-7].*)
9017 # For now we have to disable it on darwin[8-9] because it slows down
9018 # the linking phase. A possible bug in ld?
9019 # on Darwin -single_module speeds up loading of the dynamic libraries.
9020 extra_ldflags_libjava=-Wl,-single_module
9022 esac
9025 # Allow the GC to be disabled. Can be useful when debugging.
9026 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
9027 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
9028 # Check whether --enable-java-gc or --disable-java-gc was given.
9029 if test "${enable_java_gc+set}" = set; then
9030 enableval="$enable_java_gc"
9031 GC=$enableval
9032 else
9033 GC=boehm
9035 GCLIBS=
9036 GCINCS=
9037 GCDEPS=
9038 GCSPEC=
9039 JC1GCSPEC=
9040 GCTESTSPEC=
9041 case "$GC" in
9042 boehm)
9043 echo "$as_me:$LINENO: result: boehm" >&5
9044 echo "${ECHO_T}boehm" >&6
9045 GCLIBS=../boehm-gc/libgcjgc_convenience.la
9046 JC1GCSPEC='-fuse-boehm-gc'
9047 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
9048 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
9049 GCOBJS=boehm.lo
9050 GCHDR=boehm-gc.h
9051 # The POSIX thread support needs to know this.
9053 cat >>confdefs.h <<\_ACEOF
9054 #define HAVE_BOEHM_GC 1
9055 _ACEOF
9059 echo "$as_me:$LINENO: result: none" >&5
9060 echo "${ECHO_T}none" >&6
9061 GCHDR=no-gc.h
9064 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
9065 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
9066 { (exit 1); exit 1; }; }
9068 esac
9075 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
9079 if test "$GC" = boehm; then
9080 USING_BOEHMGC_TRUE=
9081 USING_BOEHMGC_FALSE='#'
9082 else
9083 USING_BOEHMGC_TRUE='#'
9084 USING_BOEHMGC_FALSE=
9089 if test "$GC" = no; then
9090 USING_NOGC_TRUE=
9091 USING_NOGC_FALSE='#'
9092 else
9093 USING_NOGC_TRUE='#'
9094 USING_NOGC_FALSE=
9099 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
9100 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
9101 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
9102 echo "$as_me:$LINENO: result: $THREADS" >&5
9103 echo "${ECHO_T}$THREADS" >&6
9105 case "$THREADS" in
9106 no | none | single)
9107 THREADS=none
9109 posix | posix95 | pthreads)
9110 THREADS=posix
9111 case "$host" in
9112 *-*-linux*)
9114 cat >>confdefs.h <<\_ACEOF
9115 #define LINUX_THREADS 1
9116 _ACEOF
9119 esac
9121 win32)
9123 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
9124 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
9125 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
9126 { (exit 1); exit 1; }; }
9129 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
9130 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
9131 { (exit 1); exit 1; }; }
9133 esac
9135 THREADCXXFLAGS=
9136 THREADLDFLAGS=
9137 THREADLIBS=
9138 THREADINCS=
9139 THREADDEPS=
9140 THREADH=
9141 THREADSPEC=
9142 THREADSTARTFILESPEC=
9143 case "$THREADS" in
9144 posix)
9145 case "$host" in
9146 *-*-cygwin*)
9147 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
9149 *-*-freebsd[1234]*)
9150 # Before FreeBSD 5, it didn't have -lpthread (or any library which
9151 # merely adds pthread_* functions) but it does have a -pthread switch
9152 # which is required at link-time to select -lc_r *instead* of -lc.
9153 THREADLDFLAGS=-pthread
9154 # Don't set THREADSPEC here as might be expected since -pthread is
9155 # not processed when found within a spec file, it must come from
9156 # the command line. For now, the user must provide the -pthread
9157 # switch to link code compiled with gcj. In future, consider adding
9158 # support for weak references to pthread_* functions ala gthr.h API.
9159 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
9161 *-*-freebsd*)
9162 # FreeBSD >=5.3 implements a model much closer to other modern UNIX
9163 # systems which support threads and -lpthread.
9164 THREADLDFLAGS=-pthread
9165 THREADSPEC=-lpthread
9167 alpha*-dec-osf* | hppa*-hp-hpux*)
9168 THREADCXXFLAGS=-pthread
9169 # boehm-gc needs some functions from librt, so link that too.
9170 THREADLIBS='-lpthread -lrt'
9171 THREADSPEC='-lpthread -lrt'
9174 THREADLIBS=-lpthread
9175 THREADSPEC=-lpthread
9177 esac
9178 THREADH=posix-threads.h
9179 # MIT pthreads doesn't seem to have the mutexattr functions.
9180 # But for now we don't check for it. We just assume you aren't
9181 # using MIT pthreads.
9183 cat >>confdefs.h <<\_ACEOF
9184 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9185 _ACEOF
9188 # If we're using the Boehm GC, then we happen to know that it
9189 # defines _REENTRANT, so we don't bother. Eww.
9190 if test "$GC" != boehm; then
9192 cat >>confdefs.h <<\_ACEOF
9193 #define _REENTRANT 1
9194 _ACEOF
9198 cat >>confdefs.h <<\_ACEOF
9199 #define _POSIX_PTHREAD_SEMANTICS 1
9200 _ACEOF
9204 win32)
9205 THREADH=win32-threads.h
9206 THREADCXXFLAGS=-mthreads
9207 # We need thread-safe exception handling so _CRT_MT should be set to 1.
9208 # But we do not want the executables created to be dependent on
9209 # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
9210 # exception handling contexts. The following kludge achieves this effect
9211 # and causes a dummy __mingwthr_key_dtor() to be linked in from
9212 # libmingw32.a. This causes a memory leak of about 24 bytes per thread.
9213 # A workaround is to explicitly use -mthreads while linking Java programs.
9214 # See PR libgcj/28263.
9216 # FIXME: In Java we are able to detect thread death at the end of
9217 # Thread.run() so we should be able to clean up the exception handling
9218 # contexts ourselves.
9219 THREADSTARTFILESPEC='crtmt%O%s'
9222 none)
9223 THREADH=no-threads.h
9225 esac
9226 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
9237 if test "$THREADS" = posix; then
9238 USING_POSIX_THREADS_TRUE=
9239 USING_POSIX_THREADS_FALSE='#'
9240 else
9241 USING_POSIX_THREADS_TRUE='#'
9242 USING_POSIX_THREADS_FALSE=
9247 if test "$THREADS" = win32; then
9248 USING_WIN32_THREADS_TRUE=
9249 USING_WIN32_THREADS_FALSE='#'
9250 else
9251 USING_WIN32_THREADS_TRUE='#'
9252 USING_WIN32_THREADS_FALSE=
9257 if test "$THREADS" = none; then
9258 USING_NO_THREADS_TRUE=
9259 USING_NO_THREADS_FALSE='#'
9260 else
9261 USING_NO_THREADS_TRUE='#'
9262 USING_NO_THREADS_FALSE=
9266 if test -d sysdep; then true; else mkdir sysdep; fi
9267 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
9269 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
9271 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
9274 HASH_SYNC_SPEC=
9275 # Hash synchronization is only useful with posix threads right now.
9276 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
9277 HASH_SYNC_SPEC=-fhash-synchronization
9279 cat >>confdefs.h <<\_ACEOF
9280 #define JV_HASH_SYNCHRONIZATION 1
9281 _ACEOF
9288 if test "$GCC" = yes; then
9289 USING_GCC_TRUE=
9290 USING_GCC_FALSE='#'
9291 else
9292 USING_GCC_TRUE='#'
9293 USING_GCC_FALSE=
9297 # We're in the tree with gcc, and need to include some of its headers.
9298 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
9300 if test "x${with_newlib}" = "xyes"; then
9301 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
9302 # may not work correctly, because the compiler may not be able to
9303 # link executables.
9305 # We assume newlib. This lets us hard-code the functions we know
9306 # we'll have.
9308 cat >>confdefs.h <<\_ACEOF
9309 #define HAVE_MEMMOVE 1
9310 _ACEOF
9313 cat >>confdefs.h <<\_ACEOF
9314 #define HAVE_MEMCPY 1
9315 _ACEOF
9318 cat >>confdefs.h <<\_ACEOF
9319 #define HAVE_STRERROR 1
9320 _ACEOF
9323 cat >>confdefs.h <<\_ACEOF
9324 #define HAVE_TIME 1
9325 _ACEOF
9328 cat >>confdefs.h <<\_ACEOF
9329 #define HAVE_GMTIME_R 1
9330 _ACEOF
9333 cat >>confdefs.h <<\_ACEOF
9334 #define HAVE_LOCALTIME_R 1
9335 _ACEOF
9338 cat >>confdefs.h <<\_ACEOF
9339 #define HAVE_USLEEP_DECL 1
9340 _ACEOF
9342 # This is only for POSIX threads.
9344 cat >>confdefs.h <<\_ACEOF
9345 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9346 _ACEOF
9348 # We also assume we are using gcc, which provides alloca.
9349 cat >>confdefs.h <<\_ACEOF
9350 #define HAVE_ALLOCA 1
9351 _ACEOF
9354 # Assume we do not have getuid and friends.
9356 cat >>confdefs.h <<\_ACEOF
9357 #define NO_GETUID 1
9358 _ACEOF
9360 PLATFORMNET=NoNet
9361 else
9397 for ac_func in strerror ioctl select fstat open fsync sleep opendir \
9398 gmtime_r localtime_r readdir_r getpwuid_r getcwd \
9399 access stat lstat mkdir rename rmdir unlink utime chmod readlink \
9400 nl_langinfo setlocale \
9401 inet_pton uname inet_ntoa \
9402 fork execvp pipe sigaction ftruncate mmap \
9403 getifaddrs
9405 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9406 echo "$as_me:$LINENO: checking for $ac_func" >&5
9407 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9408 if eval "test \"\${$as_ac_var+set}\" = set"; then
9409 echo $ECHO_N "(cached) $ECHO_C" >&6
9410 else
9411 if test x$gcc_no_link = xyes; then
9412 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9413 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9414 { (exit 1); exit 1; }; }
9416 cat >conftest.$ac_ext <<_ACEOF
9417 /* confdefs.h. */
9418 _ACEOF
9419 cat confdefs.h >>conftest.$ac_ext
9420 cat >>conftest.$ac_ext <<_ACEOF
9421 /* end confdefs.h. */
9422 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9424 #define $ac_func innocuous_$ac_func
9426 /* System header to define __stub macros and hopefully few prototypes,
9427 which can conflict with char $ac_func (); below.
9428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9429 <limits.h> exists even on freestanding compilers. */
9431 #ifdef __STDC__
9432 # include <limits.h>
9433 #else
9434 # include <assert.h>
9435 #endif
9437 #undef $ac_func
9439 /* Override any gcc2 internal prototype to avoid an error. */
9440 #ifdef __cplusplus
9441 extern "C"
9443 #endif
9444 /* We use char because int might match the return type of a gcc2
9445 builtin and then its argument prototype would still apply. */
9446 char $ac_func ();
9447 /* The GNU C library defines this for functions which it implements
9448 to always fail with ENOSYS. Some functions are actually named
9449 something starting with __ and the normal name is an alias. */
9450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9451 choke me
9452 #else
9453 char (*f) () = $ac_func;
9454 #endif
9455 #ifdef __cplusplus
9457 #endif
9460 main ()
9462 return f != $ac_func;
9464 return 0;
9466 _ACEOF
9467 rm -f conftest.$ac_objext conftest$ac_exeext
9468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9469 (eval $ac_link) 2>conftest.er1
9470 ac_status=$?
9471 grep -v '^ *+' conftest.er1 >conftest.err
9472 rm -f conftest.er1
9473 cat conftest.err >&5
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); } &&
9476 { ac_try='test -z "$ac_c_werror_flag"
9477 || test ! -s conftest.err'
9478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9479 (eval $ac_try) 2>&5
9480 ac_status=$?
9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482 (exit $ac_status); }; } &&
9483 { ac_try='test -s conftest$ac_exeext'
9484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9485 (eval $ac_try) 2>&5
9486 ac_status=$?
9487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488 (exit $ac_status); }; }; then
9489 eval "$as_ac_var=yes"
9490 else
9491 echo "$as_me: failed program was:" >&5
9492 sed 's/^/| /' conftest.$ac_ext >&5
9494 eval "$as_ac_var=no"
9496 rm -f conftest.err conftest.$ac_objext \
9497 conftest$ac_exeext conftest.$ac_ext
9499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9500 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9501 if test `eval echo '${'$as_ac_var'}'` = yes; then
9502 cat >>confdefs.h <<_ACEOF
9503 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9504 _ACEOF
9507 done
9511 for ac_func in inet_aton inet_addr
9513 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9514 echo "$as_me:$LINENO: checking for $ac_func" >&5
9515 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9516 if eval "test \"\${$as_ac_var+set}\" = set"; then
9517 echo $ECHO_N "(cached) $ECHO_C" >&6
9518 else
9519 if test x$gcc_no_link = xyes; then
9520 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9521 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9522 { (exit 1); exit 1; }; }
9524 cat >conftest.$ac_ext <<_ACEOF
9525 /* confdefs.h. */
9526 _ACEOF
9527 cat confdefs.h >>conftest.$ac_ext
9528 cat >>conftest.$ac_ext <<_ACEOF
9529 /* end confdefs.h. */
9530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9532 #define $ac_func innocuous_$ac_func
9534 /* System header to define __stub macros and hopefully few prototypes,
9535 which can conflict with char $ac_func (); below.
9536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9537 <limits.h> exists even on freestanding compilers. */
9539 #ifdef __STDC__
9540 # include <limits.h>
9541 #else
9542 # include <assert.h>
9543 #endif
9545 #undef $ac_func
9547 /* Override any gcc2 internal prototype to avoid an error. */
9548 #ifdef __cplusplus
9549 extern "C"
9551 #endif
9552 /* We use char because int might match the return type of a gcc2
9553 builtin and then its argument prototype would still apply. */
9554 char $ac_func ();
9555 /* The GNU C library defines this for functions which it implements
9556 to always fail with ENOSYS. Some functions are actually named
9557 something starting with __ and the normal name is an alias. */
9558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9559 choke me
9560 #else
9561 char (*f) () = $ac_func;
9562 #endif
9563 #ifdef __cplusplus
9565 #endif
9568 main ()
9570 return f != $ac_func;
9572 return 0;
9574 _ACEOF
9575 rm -f conftest.$ac_objext conftest$ac_exeext
9576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9577 (eval $ac_link) 2>conftest.er1
9578 ac_status=$?
9579 grep -v '^ *+' conftest.er1 >conftest.err
9580 rm -f conftest.er1
9581 cat conftest.err >&5
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); } &&
9584 { ac_try='test -z "$ac_c_werror_flag"
9585 || test ! -s conftest.err'
9586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9587 (eval $ac_try) 2>&5
9588 ac_status=$?
9589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590 (exit $ac_status); }; } &&
9591 { ac_try='test -s conftest$ac_exeext'
9592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9593 (eval $ac_try) 2>&5
9594 ac_status=$?
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); }; }; then
9597 eval "$as_ac_var=yes"
9598 else
9599 echo "$as_me: failed program was:" >&5
9600 sed 's/^/| /' conftest.$ac_ext >&5
9602 eval "$as_ac_var=no"
9604 rm -f conftest.err conftest.$ac_objext \
9605 conftest$ac_exeext conftest.$ac_ext
9607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9608 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9609 if test `eval echo '${'$as_ac_var'}'` = yes; then
9610 cat >>confdefs.h <<_ACEOF
9611 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9612 _ACEOF
9613 break
9615 done
9617 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9618 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9619 if test "${ac_cv_header_stdc+set}" = set; then
9620 echo $ECHO_N "(cached) $ECHO_C" >&6
9621 else
9622 cat >conftest.$ac_ext <<_ACEOF
9623 /* confdefs.h. */
9624 _ACEOF
9625 cat confdefs.h >>conftest.$ac_ext
9626 cat >>conftest.$ac_ext <<_ACEOF
9627 /* end confdefs.h. */
9628 #include <stdlib.h>
9629 #include <stdarg.h>
9630 #include <string.h>
9631 #include <float.h>
9634 main ()
9638 return 0;
9640 _ACEOF
9641 rm -f conftest.$ac_objext
9642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9643 (eval $ac_compile) 2>conftest.er1
9644 ac_status=$?
9645 grep -v '^ *+' conftest.er1 >conftest.err
9646 rm -f conftest.er1
9647 cat conftest.err >&5
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); } &&
9650 { ac_try='test -z "$ac_c_werror_flag"
9651 || test ! -s conftest.err'
9652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9653 (eval $ac_try) 2>&5
9654 ac_status=$?
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 (exit $ac_status); }; } &&
9657 { ac_try='test -s conftest.$ac_objext'
9658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9659 (eval $ac_try) 2>&5
9660 ac_status=$?
9661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662 (exit $ac_status); }; }; then
9663 ac_cv_header_stdc=yes
9664 else
9665 echo "$as_me: failed program was:" >&5
9666 sed 's/^/| /' conftest.$ac_ext >&5
9668 ac_cv_header_stdc=no
9670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9672 if test $ac_cv_header_stdc = yes; then
9673 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9674 cat >conftest.$ac_ext <<_ACEOF
9675 /* confdefs.h. */
9676 _ACEOF
9677 cat confdefs.h >>conftest.$ac_ext
9678 cat >>conftest.$ac_ext <<_ACEOF
9679 /* end confdefs.h. */
9680 #include <string.h>
9682 _ACEOF
9683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9684 $EGREP "memchr" >/dev/null 2>&1; then
9686 else
9687 ac_cv_header_stdc=no
9689 rm -f conftest*
9693 if test $ac_cv_header_stdc = yes; then
9694 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9695 cat >conftest.$ac_ext <<_ACEOF
9696 /* confdefs.h. */
9697 _ACEOF
9698 cat confdefs.h >>conftest.$ac_ext
9699 cat >>conftest.$ac_ext <<_ACEOF
9700 /* end confdefs.h. */
9701 #include <stdlib.h>
9703 _ACEOF
9704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9705 $EGREP "free" >/dev/null 2>&1; then
9707 else
9708 ac_cv_header_stdc=no
9710 rm -f conftest*
9714 if test $ac_cv_header_stdc = yes; then
9715 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9716 if test "$cross_compiling" = yes; then
9718 else
9719 cat >conftest.$ac_ext <<_ACEOF
9720 /* confdefs.h. */
9721 _ACEOF
9722 cat confdefs.h >>conftest.$ac_ext
9723 cat >>conftest.$ac_ext <<_ACEOF
9724 /* end confdefs.h. */
9725 #include <ctype.h>
9726 #if ((' ' & 0x0FF) == 0x020)
9727 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9728 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9729 #else
9730 # define ISLOWER(c) \
9731 (('a' <= (c) && (c) <= 'i') \
9732 || ('j' <= (c) && (c) <= 'r') \
9733 || ('s' <= (c) && (c) <= 'z'))
9734 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9735 #endif
9737 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9739 main ()
9741 int i;
9742 for (i = 0; i < 256; i++)
9743 if (XOR (islower (i), ISLOWER (i))
9744 || toupper (i) != TOUPPER (i))
9745 exit(2);
9746 exit (0);
9748 _ACEOF
9749 rm -f conftest$ac_exeext
9750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9751 (eval $ac_link) 2>&5
9752 ac_status=$?
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9756 (eval $ac_try) 2>&5
9757 ac_status=$?
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); }; }; then
9761 else
9762 echo "$as_me: program exited with status $ac_status" >&5
9763 echo "$as_me: failed program was:" >&5
9764 sed 's/^/| /' conftest.$ac_ext >&5
9766 ( exit $ac_status )
9767 ac_cv_header_stdc=no
9769 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9773 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9774 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9775 if test $ac_cv_header_stdc = yes; then
9777 cat >>confdefs.h <<\_ACEOF
9778 #define STDC_HEADERS 1
9779 _ACEOF
9783 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9793 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9794 inttypes.h stdint.h unistd.h
9796 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9797 echo "$as_me:$LINENO: checking for $ac_header" >&5
9798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9800 echo $ECHO_N "(cached) $ECHO_C" >&6
9801 else
9802 cat >conftest.$ac_ext <<_ACEOF
9803 /* confdefs.h. */
9804 _ACEOF
9805 cat confdefs.h >>conftest.$ac_ext
9806 cat >>conftest.$ac_ext <<_ACEOF
9807 /* end confdefs.h. */
9808 $ac_includes_default
9810 #include <$ac_header>
9811 _ACEOF
9812 rm -f conftest.$ac_objext
9813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9814 (eval $ac_compile) 2>conftest.er1
9815 ac_status=$?
9816 grep -v '^ *+' conftest.er1 >conftest.err
9817 rm -f conftest.er1
9818 cat conftest.err >&5
9819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820 (exit $ac_status); } &&
9821 { ac_try='test -z "$ac_c_werror_flag"
9822 || test ! -s conftest.err'
9823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9824 (eval $ac_try) 2>&5
9825 ac_status=$?
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); }; } &&
9828 { ac_try='test -s conftest.$ac_objext'
9829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9830 (eval $ac_try) 2>&5
9831 ac_status=$?
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 (exit $ac_status); }; }; then
9834 eval "$as_ac_Header=yes"
9835 else
9836 echo "$as_me: failed program was:" >&5
9837 sed 's/^/| /' conftest.$ac_ext >&5
9839 eval "$as_ac_Header=no"
9841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9844 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9846 cat >>confdefs.h <<_ACEOF
9847 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9848 _ACEOF
9852 done
9858 for ac_header in execinfo.h unistd.h dlfcn.h
9860 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9862 echo "$as_me:$LINENO: checking for $ac_header" >&5
9863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9864 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9865 echo $ECHO_N "(cached) $ECHO_C" >&6
9867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9868 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9869 else
9870 # Is the header compilable?
9871 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9872 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9873 cat >conftest.$ac_ext <<_ACEOF
9874 /* confdefs.h. */
9875 _ACEOF
9876 cat confdefs.h >>conftest.$ac_ext
9877 cat >>conftest.$ac_ext <<_ACEOF
9878 /* end confdefs.h. */
9879 $ac_includes_default
9880 #include <$ac_header>
9881 _ACEOF
9882 rm -f conftest.$ac_objext
9883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9884 (eval $ac_compile) 2>conftest.er1
9885 ac_status=$?
9886 grep -v '^ *+' conftest.er1 >conftest.err
9887 rm -f conftest.er1
9888 cat conftest.err >&5
9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890 (exit $ac_status); } &&
9891 { ac_try='test -z "$ac_c_werror_flag"
9892 || test ! -s conftest.err'
9893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9894 (eval $ac_try) 2>&5
9895 ac_status=$?
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); }; } &&
9898 { ac_try='test -s conftest.$ac_objext'
9899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9900 (eval $ac_try) 2>&5
9901 ac_status=$?
9902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903 (exit $ac_status); }; }; then
9904 ac_header_compiler=yes
9905 else
9906 echo "$as_me: failed program was:" >&5
9907 sed 's/^/| /' conftest.$ac_ext >&5
9909 ac_header_compiler=no
9911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9912 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9913 echo "${ECHO_T}$ac_header_compiler" >&6
9915 # Is the header present?
9916 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9917 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9918 cat >conftest.$ac_ext <<_ACEOF
9919 /* confdefs.h. */
9920 _ACEOF
9921 cat confdefs.h >>conftest.$ac_ext
9922 cat >>conftest.$ac_ext <<_ACEOF
9923 /* end confdefs.h. */
9924 #include <$ac_header>
9925 _ACEOF
9926 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9927 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9928 ac_status=$?
9929 grep -v '^ *+' conftest.er1 >conftest.err
9930 rm -f conftest.er1
9931 cat conftest.err >&5
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); } >/dev/null; then
9934 if test -s conftest.err; then
9935 ac_cpp_err=$ac_c_preproc_warn_flag
9936 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9937 else
9938 ac_cpp_err=
9940 else
9941 ac_cpp_err=yes
9943 if test -z "$ac_cpp_err"; then
9944 ac_header_preproc=yes
9945 else
9946 echo "$as_me: failed program was:" >&5
9947 sed 's/^/| /' conftest.$ac_ext >&5
9949 ac_header_preproc=no
9951 rm -f conftest.err conftest.$ac_ext
9952 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9953 echo "${ECHO_T}$ac_header_preproc" >&6
9955 # So? What about this header?
9956 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9957 yes:no: )
9958 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9959 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9961 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9962 ac_header_preproc=yes
9964 no:yes:* )
9965 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9966 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9967 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9968 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9969 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9970 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9971 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9972 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9974 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9975 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9976 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9978 cat <<\_ASBOX
9979 ## ---------------------------------- ##
9980 ## Report this to the libjava lists. ##
9981 ## ---------------------------------- ##
9982 _ASBOX
9984 sed "s/^/$as_me: WARNING: /" >&2
9986 esac
9987 echo "$as_me:$LINENO: checking for $ac_header" >&5
9988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9990 echo $ECHO_N "(cached) $ECHO_C" >&6
9991 else
9992 eval "$as_ac_Header=\$ac_header_preproc"
9994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9995 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9998 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9999 cat >>confdefs.h <<_ACEOF
10000 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10001 _ACEOF
10005 done
10007 # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
10008 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
10009 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
10010 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
10011 echo $ECHO_N "(cached) $ECHO_C" >&6
10012 else
10013 ac_check_lib_save_LIBS=$LIBS
10014 LIBS="-ldl $LIBS"
10015 if test x$gcc_no_link = xyes; then
10016 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10017 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10018 { (exit 1); exit 1; }; }
10020 cat >conftest.$ac_ext <<_ACEOF
10021 /* confdefs.h. */
10022 _ACEOF
10023 cat confdefs.h >>conftest.$ac_ext
10024 cat >>conftest.$ac_ext <<_ACEOF
10025 /* end confdefs.h. */
10027 /* Override any gcc2 internal prototype to avoid an error. */
10028 #ifdef __cplusplus
10029 extern "C"
10030 #endif
10031 /* We use char because int might match the return type of a gcc2
10032 builtin and then its argument prototype would still apply. */
10033 char dladdr ();
10035 main ()
10037 dladdr ();
10039 return 0;
10041 _ACEOF
10042 rm -f conftest.$ac_objext conftest$ac_exeext
10043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10044 (eval $ac_link) 2>conftest.er1
10045 ac_status=$?
10046 grep -v '^ *+' conftest.er1 >conftest.err
10047 rm -f conftest.er1
10048 cat conftest.err >&5
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); } &&
10051 { ac_try='test -z "$ac_c_werror_flag"
10052 || test ! -s conftest.err'
10053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10054 (eval $ac_try) 2>&5
10055 ac_status=$?
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); }; } &&
10058 { ac_try='test -s conftest$ac_exeext'
10059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10060 (eval $ac_try) 2>&5
10061 ac_status=$?
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); }; }; then
10064 ac_cv_lib_dl_dladdr=yes
10065 else
10066 echo "$as_me: failed program was:" >&5
10067 sed 's/^/| /' conftest.$ac_ext >&5
10069 ac_cv_lib_dl_dladdr=no
10071 rm -f conftest.err conftest.$ac_objext \
10072 conftest$ac_exeext conftest.$ac_ext
10073 LIBS=$ac_check_lib_save_LIBS
10075 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
10076 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
10077 if test $ac_cv_lib_dl_dladdr = yes; then
10080 cat >>confdefs.h <<\_ACEOF
10081 #define HAVE_DLADDR 1
10082 _ACEOF
10084 else
10086 echo "$as_me:$LINENO: checking for dladdr in -ldld" >&5
10087 echo $ECHO_N "checking for dladdr in -ldld... $ECHO_C" >&6
10088 if test "${ac_cv_lib_dld_dladdr+set}" = set; then
10089 echo $ECHO_N "(cached) $ECHO_C" >&6
10090 else
10091 ac_check_lib_save_LIBS=$LIBS
10092 LIBS="-ldld $LIBS"
10093 if test x$gcc_no_link = xyes; then
10094 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10095 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10096 { (exit 1); exit 1; }; }
10098 cat >conftest.$ac_ext <<_ACEOF
10099 /* confdefs.h. */
10100 _ACEOF
10101 cat confdefs.h >>conftest.$ac_ext
10102 cat >>conftest.$ac_ext <<_ACEOF
10103 /* end confdefs.h. */
10105 /* Override any gcc2 internal prototype to avoid an error. */
10106 #ifdef __cplusplus
10107 extern "C"
10108 #endif
10109 /* We use char because int might match the return type of a gcc2
10110 builtin and then its argument prototype would still apply. */
10111 char dladdr ();
10113 main ()
10115 dladdr ();
10117 return 0;
10119 _ACEOF
10120 rm -f conftest.$ac_objext conftest$ac_exeext
10121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10122 (eval $ac_link) 2>conftest.er1
10123 ac_status=$?
10124 grep -v '^ *+' conftest.er1 >conftest.err
10125 rm -f conftest.er1
10126 cat conftest.err >&5
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); } &&
10129 { ac_try='test -z "$ac_c_werror_flag"
10130 || test ! -s conftest.err'
10131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10132 (eval $ac_try) 2>&5
10133 ac_status=$?
10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 (exit $ac_status); }; } &&
10136 { ac_try='test -s conftest$ac_exeext'
10137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10138 (eval $ac_try) 2>&5
10139 ac_status=$?
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); }; }; then
10142 ac_cv_lib_dld_dladdr=yes
10143 else
10144 echo "$as_me: failed program was:" >&5
10145 sed 's/^/| /' conftest.$ac_ext >&5
10147 ac_cv_lib_dld_dladdr=no
10149 rm -f conftest.err conftest.$ac_objext \
10150 conftest$ac_exeext conftest.$ac_ext
10151 LIBS=$ac_check_lib_save_LIBS
10153 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dladdr" >&5
10154 echo "${ECHO_T}$ac_cv_lib_dld_dladdr" >&6
10155 if test $ac_cv_lib_dld_dladdr = yes; then
10158 cat >>confdefs.h <<\_ACEOF
10159 #define HAVE_DLADDR 1
10160 _ACEOF
10167 if test x"$build" = x"$host"; then
10168 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
10169 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
10170 if test "${ac_cv_file__proc_self_exe+set}" = set; then
10171 echo $ECHO_N "(cached) $ECHO_C" >&6
10172 else
10173 test "$cross_compiling" = yes &&
10174 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10175 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10176 { (exit 1); exit 1; }; }
10177 if test -r "/proc/self/exe"; then
10178 ac_cv_file__proc_self_exe=yes
10179 else
10180 ac_cv_file__proc_self_exe=no
10183 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
10184 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
10185 if test $ac_cv_file__proc_self_exe = yes; then
10187 cat >>confdefs.h <<_ACEOF
10188 #define HAVE__PROC_SELF_EXE 1
10189 _ACEOF
10193 cat >>confdefs.h <<\_ACEOF
10194 #define HAVE_PROC_SELF_EXE 1
10195 _ACEOF
10199 else
10200 case $host in
10201 *-linux*)
10203 cat >>confdefs.h <<\_ACEOF
10204 #define HAVE_PROC_SELF_EXE 1
10205 _ACEOF
10208 esac
10212 if test "X$prefix" = "XNONE"; then
10213 acl_final_prefix="$ac_default_prefix"
10214 else
10215 acl_final_prefix="$prefix"
10217 if test "X$exec_prefix" = "XNONE"; then
10218 acl_final_exec_prefix='${prefix}'
10219 else
10220 acl_final_exec_prefix="$exec_prefix"
10222 acl_save_prefix="$prefix"
10223 prefix="$acl_final_prefix"
10224 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10225 prefix="$acl_save_prefix"
10228 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10229 if test "${with_gnu_ld+set}" = set; then
10230 withval="$with_gnu_ld"
10231 test "$withval" = no || with_gnu_ld=yes
10232 else
10233 with_gnu_ld=no
10235 # Prepare PATH_SEPARATOR.
10236 # The user is always right.
10237 if test "${PATH_SEPARATOR+set}" != set; then
10238 echo "#! /bin/sh" >conf$$.sh
10239 echo "exit 0" >>conf$$.sh
10240 chmod +x conf$$.sh
10241 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10242 PATH_SEPARATOR=';'
10243 else
10244 PATH_SEPARATOR=:
10246 rm -f conf$$.sh
10248 ac_prog=ld
10249 if test "$GCC" = yes; then
10250 # Check if gcc -print-prog-name=ld gives a path.
10251 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10252 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10253 case $host in
10254 *-*-mingw*)
10255 # gcc leaves a trailing carriage return which upsets mingw
10256 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10258 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10259 esac
10260 case $ac_prog in
10261 # Accept absolute paths.
10262 [\\/]* | [A-Za-z]:[\\/]*)
10263 re_direlt='/[^/][^/]*/\.\./'
10264 # Canonicalize the path of ld
10265 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10266 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10267 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10268 done
10269 test -z "$LD" && LD="$ac_prog"
10272 # If it fails, then pretend we aren't using GCC.
10273 ac_prog=ld
10276 # If it is relative, then search for the first ld in PATH.
10277 with_gnu_ld=unknown
10279 esac
10280 elif test "$with_gnu_ld" = yes; then
10281 echo "$as_me:$LINENO: checking for GNU ld" >&5
10282 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10283 else
10284 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10285 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10287 if test "${acl_cv_path_LD+set}" = set; then
10288 echo $ECHO_N "(cached) $ECHO_C" >&6
10289 else
10290 if test -z "$LD"; then
10291 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10292 for ac_dir in $PATH; do
10293 test -z "$ac_dir" && ac_dir=.
10294 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10295 acl_cv_path_LD="$ac_dir/$ac_prog"
10296 # Check to see if the program is GNU ld. I'd rather use --version,
10297 # but apparently some GNU ld's only accept -v.
10298 # Break only if it was the GNU/non-GNU ld that we prefer.
10299 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10300 test "$with_gnu_ld" != no && break
10301 else
10302 test "$with_gnu_ld" != yes && break
10305 done
10306 IFS="$ac_save_ifs"
10307 else
10308 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10312 LD="$acl_cv_path_LD"
10313 if test -n "$LD"; then
10314 echo "$as_me:$LINENO: result: $LD" >&5
10315 echo "${ECHO_T}$LD" >&6
10316 else
10317 echo "$as_me:$LINENO: result: no" >&5
10318 echo "${ECHO_T}no" >&6
10320 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10321 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10322 { (exit 1); exit 1; }; }
10323 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10324 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10325 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10326 echo $ECHO_N "(cached) $ECHO_C" >&6
10327 else
10328 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10329 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10330 acl_cv_prog_gnu_ld=yes
10331 else
10332 acl_cv_prog_gnu_ld=no
10335 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10336 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10337 with_gnu_ld=$acl_cv_prog_gnu_ld
10341 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10342 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10343 if test "${acl_cv_rpath+set}" = set; then
10344 echo $ECHO_N "(cached) $ECHO_C" >&6
10345 else
10347 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10348 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10349 . ./conftest.sh
10350 rm -f ./conftest.sh
10351 acl_cv_rpath=done
10354 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10355 echo "${ECHO_T}$acl_cv_rpath" >&6
10356 wl="$acl_cv_wl"
10357 libext="$acl_cv_libext"
10358 shlibext="$acl_cv_shlibext"
10359 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10360 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10361 hardcode_direct="$acl_cv_hardcode_direct"
10362 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10363 # Check whether --enable-rpath or --disable-rpath was given.
10364 if test "${enable_rpath+set}" = set; then
10365 enableval="$enable_rpath"
10367 else
10368 enable_rpath=yes
10377 use_additional=yes
10379 acl_save_prefix="$prefix"
10380 prefix="$acl_final_prefix"
10381 acl_save_exec_prefix="$exec_prefix"
10382 exec_prefix="$acl_final_exec_prefix"
10384 eval additional_includedir=\"$includedir\"
10385 eval additional_libdir=\"$libdir\"
10387 exec_prefix="$acl_save_exec_prefix"
10388 prefix="$acl_save_prefix"
10391 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10392 if test "${with_libiconv_prefix+set}" = set; then
10393 withval="$with_libiconv_prefix"
10395 if test "X$withval" = "Xno"; then
10396 use_additional=no
10397 else
10398 if test "X$withval" = "X"; then
10400 acl_save_prefix="$prefix"
10401 prefix="$acl_final_prefix"
10402 acl_save_exec_prefix="$exec_prefix"
10403 exec_prefix="$acl_final_exec_prefix"
10405 eval additional_includedir=\"$includedir\"
10406 eval additional_libdir=\"$libdir\"
10408 exec_prefix="$acl_save_exec_prefix"
10409 prefix="$acl_save_prefix"
10411 else
10412 additional_includedir="$withval/include"
10413 additional_libdir="$withval/lib"
10418 LIBICONV=
10419 LTLIBICONV=
10420 INCICONV=
10421 rpathdirs=
10422 ltrpathdirs=
10423 names_already_handled=
10424 names_next_round='iconv '
10425 while test -n "$names_next_round"; do
10426 names_this_round="$names_next_round"
10427 names_next_round=
10428 for name in $names_this_round; do
10429 already_handled=
10430 for n in $names_already_handled; do
10431 if test "$n" = "$name"; then
10432 already_handled=yes
10433 break
10435 done
10436 if test -z "$already_handled"; then
10437 names_already_handled="$names_already_handled $name"
10438 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10439 eval value=\"\$HAVE_LIB$uppername\"
10440 if test -n "$value"; then
10441 if test "$value" = yes; then
10442 eval value=\"\$LIB$uppername\"
10443 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10444 eval value=\"\$LTLIB$uppername\"
10445 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10446 else
10449 else
10450 found_dir=
10451 found_la=
10452 found_so=
10453 found_a=
10454 if test $use_additional = yes; then
10455 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10456 found_dir="$additional_libdir"
10457 found_so="$additional_libdir/lib$name.$shlibext"
10458 if test -f "$additional_libdir/lib$name.la"; then
10459 found_la="$additional_libdir/lib$name.la"
10461 else
10462 if test -f "$additional_libdir/lib$name.$libext"; then
10463 found_dir="$additional_libdir"
10464 found_a="$additional_libdir/lib$name.$libext"
10465 if test -f "$additional_libdir/lib$name.la"; then
10466 found_la="$additional_libdir/lib$name.la"
10471 if test "X$found_dir" = "X"; then
10472 for x in $LDFLAGS $LTLIBICONV; do
10474 acl_save_prefix="$prefix"
10475 prefix="$acl_final_prefix"
10476 acl_save_exec_prefix="$exec_prefix"
10477 exec_prefix="$acl_final_exec_prefix"
10478 eval x=\"$x\"
10479 exec_prefix="$acl_save_exec_prefix"
10480 prefix="$acl_save_prefix"
10482 case "$x" in
10483 -L*)
10484 dir=`echo "X$x" | sed -e 's/^X-L//'`
10485 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10486 found_dir="$dir"
10487 found_so="$dir/lib$name.$shlibext"
10488 if test -f "$dir/lib$name.la"; then
10489 found_la="$dir/lib$name.la"
10491 else
10492 if test -f "$dir/lib$name.$libext"; then
10493 found_dir="$dir"
10494 found_a="$dir/lib$name.$libext"
10495 if test -f "$dir/lib$name.la"; then
10496 found_la="$dir/lib$name.la"
10501 esac
10502 if test "X$found_dir" != "X"; then
10503 break
10505 done
10507 if test "X$found_dir" != "X"; then
10508 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10509 if test "X$found_so" != "X"; then
10510 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10511 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10512 else
10513 haveit=
10514 for x in $ltrpathdirs; do
10515 if test "X$x" = "X$found_dir"; then
10516 haveit=yes
10517 break
10519 done
10520 if test -z "$haveit"; then
10521 ltrpathdirs="$ltrpathdirs $found_dir"
10523 if test "$hardcode_direct" = yes; then
10524 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10525 else
10526 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10527 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10528 haveit=
10529 for x in $rpathdirs; do
10530 if test "X$x" = "X$found_dir"; then
10531 haveit=yes
10532 break
10534 done
10535 if test -z "$haveit"; then
10536 rpathdirs="$rpathdirs $found_dir"
10538 else
10539 haveit=
10540 for x in $LDFLAGS $LIBICONV; do
10542 acl_save_prefix="$prefix"
10543 prefix="$acl_final_prefix"
10544 acl_save_exec_prefix="$exec_prefix"
10545 exec_prefix="$acl_final_exec_prefix"
10546 eval x=\"$x\"
10547 exec_prefix="$acl_save_exec_prefix"
10548 prefix="$acl_save_prefix"
10550 if test "X$x" = "X-L$found_dir"; then
10551 haveit=yes
10552 break
10554 done
10555 if test -z "$haveit"; then
10556 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10558 if test "$hardcode_minus_L" != no; then
10559 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10560 else
10561 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10566 else
10567 if test "X$found_a" != "X"; then
10568 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10569 else
10570 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10573 additional_includedir=
10574 case "$found_dir" in
10575 */lib | */lib/)
10576 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10577 additional_includedir="$basedir/include"
10579 esac
10580 if test "X$additional_includedir" != "X"; then
10581 if test "X$additional_includedir" != "X/usr/include"; then
10582 haveit=
10583 if test "X$additional_includedir" = "X/usr/local/include"; then
10584 if test -n "$GCC"; then
10585 case $host_os in
10586 linux*) haveit=yes;;
10587 esac
10590 if test -z "$haveit"; then
10591 for x in $CPPFLAGS $INCICONV; do
10593 acl_save_prefix="$prefix"
10594 prefix="$acl_final_prefix"
10595 acl_save_exec_prefix="$exec_prefix"
10596 exec_prefix="$acl_final_exec_prefix"
10597 eval x=\"$x\"
10598 exec_prefix="$acl_save_exec_prefix"
10599 prefix="$acl_save_prefix"
10601 if test "X$x" = "X-I$additional_includedir"; then
10602 haveit=yes
10603 break
10605 done
10606 if test -z "$haveit"; then
10607 if test -d "$additional_includedir"; then
10608 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10614 if test -n "$found_la"; then
10615 save_libdir="$libdir"
10616 case "$found_la" in
10617 */* | *\\*) . "$found_la" ;;
10618 *) . "./$found_la" ;;
10619 esac
10620 libdir="$save_libdir"
10621 for dep in $dependency_libs; do
10622 case "$dep" in
10623 -L*)
10624 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10625 if test "X$additional_libdir" != "X/usr/lib"; then
10626 haveit=
10627 if test "X$additional_libdir" = "X/usr/local/lib"; then
10628 if test -n "$GCC"; then
10629 case $host_os in
10630 linux*) haveit=yes;;
10631 esac
10634 if test -z "$haveit"; then
10635 haveit=
10636 for x in $LDFLAGS $LIBICONV; do
10638 acl_save_prefix="$prefix"
10639 prefix="$acl_final_prefix"
10640 acl_save_exec_prefix="$exec_prefix"
10641 exec_prefix="$acl_final_exec_prefix"
10642 eval x=\"$x\"
10643 exec_prefix="$acl_save_exec_prefix"
10644 prefix="$acl_save_prefix"
10646 if test "X$x" = "X-L$additional_libdir"; then
10647 haveit=yes
10648 break
10650 done
10651 if test -z "$haveit"; then
10652 if test -d "$additional_libdir"; then
10653 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10656 haveit=
10657 for x in $LDFLAGS $LTLIBICONV; do
10659 acl_save_prefix="$prefix"
10660 prefix="$acl_final_prefix"
10661 acl_save_exec_prefix="$exec_prefix"
10662 exec_prefix="$acl_final_exec_prefix"
10663 eval x=\"$x\"
10664 exec_prefix="$acl_save_exec_prefix"
10665 prefix="$acl_save_prefix"
10667 if test "X$x" = "X-L$additional_libdir"; then
10668 haveit=yes
10669 break
10671 done
10672 if test -z "$haveit"; then
10673 if test -d "$additional_libdir"; then
10674 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10680 -R*)
10681 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10682 if test "$enable_rpath" != no; then
10683 haveit=
10684 for x in $rpathdirs; do
10685 if test "X$x" = "X$dir"; then
10686 haveit=yes
10687 break
10689 done
10690 if test -z "$haveit"; then
10691 rpathdirs="$rpathdirs $dir"
10693 haveit=
10694 for x in $ltrpathdirs; do
10695 if test "X$x" = "X$dir"; then
10696 haveit=yes
10697 break
10699 done
10700 if test -z "$haveit"; then
10701 ltrpathdirs="$ltrpathdirs $dir"
10705 -l*)
10706 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10708 *.la)
10709 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10712 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10713 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10715 esac
10716 done
10718 else
10719 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10720 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10724 done
10725 done
10726 if test "X$rpathdirs" != "X"; then
10727 if test -n "$hardcode_libdir_separator"; then
10728 alldirs=
10729 for found_dir in $rpathdirs; do
10730 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10731 done
10732 acl_save_libdir="$libdir"
10733 libdir="$alldirs"
10734 eval flag=\"$hardcode_libdir_flag_spec\"
10735 libdir="$acl_save_libdir"
10736 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10737 else
10738 for found_dir in $rpathdirs; do
10739 acl_save_libdir="$libdir"
10740 libdir="$found_dir"
10741 eval flag=\"$hardcode_libdir_flag_spec\"
10742 libdir="$acl_save_libdir"
10743 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10744 done
10747 if test "X$ltrpathdirs" != "X"; then
10748 for found_dir in $ltrpathdirs; do
10749 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10750 done
10759 am_save_CPPFLAGS="$CPPFLAGS"
10761 for element in $INCICONV; do
10762 haveit=
10763 for x in $CPPFLAGS; do
10765 acl_save_prefix="$prefix"
10766 prefix="$acl_final_prefix"
10767 acl_save_exec_prefix="$exec_prefix"
10768 exec_prefix="$acl_final_exec_prefix"
10769 eval x=\"$x\"
10770 exec_prefix="$acl_save_exec_prefix"
10771 prefix="$acl_save_prefix"
10773 if test "X$x" = "X$element"; then
10774 haveit=yes
10775 break
10777 done
10778 if test -z "$haveit"; then
10779 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10781 done
10784 echo "$as_me:$LINENO: checking for iconv" >&5
10785 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10786 if test "${am_cv_func_iconv+set}" = set; then
10787 echo $ECHO_N "(cached) $ECHO_C" >&6
10788 else
10790 am_cv_func_iconv="no, consider installing GNU libiconv"
10791 am_cv_lib_iconv=no
10792 if test x$gcc_no_link = xyes; then
10793 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10794 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10795 { (exit 1); exit 1; }; }
10797 cat >conftest.$ac_ext <<_ACEOF
10798 /* confdefs.h. */
10799 _ACEOF
10800 cat confdefs.h >>conftest.$ac_ext
10801 cat >>conftest.$ac_ext <<_ACEOF
10802 /* end confdefs.h. */
10803 #include <stdlib.h>
10804 #include <iconv.h>
10806 main ()
10808 iconv_t cd = iconv_open("","");
10809 iconv(cd,NULL,NULL,NULL,NULL);
10810 iconv_close(cd);
10812 return 0;
10814 _ACEOF
10815 rm -f conftest.$ac_objext conftest$ac_exeext
10816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10817 (eval $ac_link) 2>conftest.er1
10818 ac_status=$?
10819 grep -v '^ *+' conftest.er1 >conftest.err
10820 rm -f conftest.er1
10821 cat conftest.err >&5
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); } &&
10824 { ac_try='test -z "$ac_c_werror_flag"
10825 || test ! -s conftest.err'
10826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10827 (eval $ac_try) 2>&5
10828 ac_status=$?
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); }; } &&
10831 { ac_try='test -s conftest$ac_exeext'
10832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10833 (eval $ac_try) 2>&5
10834 ac_status=$?
10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836 (exit $ac_status); }; }; then
10837 am_cv_func_iconv=yes
10838 else
10839 echo "$as_me: failed program was:" >&5
10840 sed 's/^/| /' conftest.$ac_ext >&5
10843 rm -f conftest.err conftest.$ac_objext \
10844 conftest$ac_exeext conftest.$ac_ext
10845 if test "$am_cv_func_iconv" != yes; then
10846 am_save_LIBS="$LIBS"
10847 LIBS="$LIBS $LIBICONV"
10848 if test x$gcc_no_link = xyes; then
10849 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10850 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10851 { (exit 1); exit 1; }; }
10853 cat >conftest.$ac_ext <<_ACEOF
10854 /* confdefs.h. */
10855 _ACEOF
10856 cat confdefs.h >>conftest.$ac_ext
10857 cat >>conftest.$ac_ext <<_ACEOF
10858 /* end confdefs.h. */
10859 #include <stdlib.h>
10860 #include <iconv.h>
10862 main ()
10864 iconv_t cd = iconv_open("","");
10865 iconv(cd,NULL,NULL,NULL,NULL);
10866 iconv_close(cd);
10868 return 0;
10870 _ACEOF
10871 rm -f conftest.$ac_objext conftest$ac_exeext
10872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10873 (eval $ac_link) 2>conftest.er1
10874 ac_status=$?
10875 grep -v '^ *+' conftest.er1 >conftest.err
10876 rm -f conftest.er1
10877 cat conftest.err >&5
10878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); } &&
10880 { ac_try='test -z "$ac_c_werror_flag"
10881 || test ! -s conftest.err'
10882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10883 (eval $ac_try) 2>&5
10884 ac_status=$?
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); }; } &&
10887 { ac_try='test -s conftest$ac_exeext'
10888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10889 (eval $ac_try) 2>&5
10890 ac_status=$?
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); }; }; then
10893 am_cv_lib_iconv=yes
10894 am_cv_func_iconv=yes
10895 else
10896 echo "$as_me: failed program was:" >&5
10897 sed 's/^/| /' conftest.$ac_ext >&5
10900 rm -f conftest.err conftest.$ac_objext \
10901 conftest$ac_exeext conftest.$ac_ext
10902 LIBS="$am_save_LIBS"
10906 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10907 echo "${ECHO_T}$am_cv_func_iconv" >&6
10908 if test "$am_cv_func_iconv" = yes; then
10910 cat >>confdefs.h <<\_ACEOF
10911 #define HAVE_ICONV 1
10912 _ACEOF
10915 if test "$am_cv_lib_iconv" = yes; then
10916 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10917 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10918 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10919 echo "${ECHO_T}$LIBICONV" >&6
10920 else
10921 CPPFLAGS="$am_save_CPPFLAGS"
10922 LIBICONV=
10923 LTLIBICONV=
10928 if test "$am_cv_func_iconv" = yes; then
10929 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10930 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10931 if test "${am_cv_proto_iconv+set}" = set; then
10932 echo $ECHO_N "(cached) $ECHO_C" >&6
10933 else
10935 cat >conftest.$ac_ext <<_ACEOF
10936 /* confdefs.h. */
10937 _ACEOF
10938 cat confdefs.h >>conftest.$ac_ext
10939 cat >>conftest.$ac_ext <<_ACEOF
10940 /* end confdefs.h. */
10942 #include <stdlib.h>
10943 #include <iconv.h>
10944 extern
10945 #ifdef __cplusplus
10947 #endif
10948 #if defined(__STDC__) || defined(__cplusplus)
10949 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10950 #else
10951 size_t iconv();
10952 #endif
10955 main ()
10959 return 0;
10961 _ACEOF
10962 rm -f conftest.$ac_objext
10963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10964 (eval $ac_compile) 2>conftest.er1
10965 ac_status=$?
10966 grep -v '^ *+' conftest.er1 >conftest.err
10967 rm -f conftest.er1
10968 cat conftest.err >&5
10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970 (exit $ac_status); } &&
10971 { ac_try='test -z "$ac_c_werror_flag"
10972 || test ! -s conftest.err'
10973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10974 (eval $ac_try) 2>&5
10975 ac_status=$?
10976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977 (exit $ac_status); }; } &&
10978 { ac_try='test -s conftest.$ac_objext'
10979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10980 (eval $ac_try) 2>&5
10981 ac_status=$?
10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983 (exit $ac_status); }; }; then
10984 am_cv_proto_iconv_arg1=""
10985 else
10986 echo "$as_me: failed program was:" >&5
10987 sed 's/^/| /' conftest.$ac_ext >&5
10989 am_cv_proto_iconv_arg1="const"
10991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10992 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);"
10995 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10996 echo "$as_me:$LINENO: result: ${ac_t:-
10997 }$am_cv_proto_iconv" >&5
10998 echo "${ECHO_T}${ac_t:-
10999 }$am_cv_proto_iconv" >&6
11001 cat >>confdefs.h <<_ACEOF
11002 #define ICONV_CONST $am_cv_proto_iconv_arg1
11003 _ACEOF
11008 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11009 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11010 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11011 echo $ECHO_N "(cached) $ECHO_C" >&6
11012 else
11013 if test x$gcc_no_link = xyes; then
11014 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11015 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11016 { (exit 1); exit 1; }; }
11018 cat >conftest.$ac_ext <<_ACEOF
11019 /* confdefs.h. */
11020 _ACEOF
11021 cat confdefs.h >>conftest.$ac_ext
11022 cat >>conftest.$ac_ext <<_ACEOF
11023 /* end confdefs.h. */
11024 #include <locale.h>
11026 main ()
11028 return LC_MESSAGES
11030 return 0;
11032 _ACEOF
11033 rm -f conftest.$ac_objext conftest$ac_exeext
11034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11035 (eval $ac_link) 2>conftest.er1
11036 ac_status=$?
11037 grep -v '^ *+' conftest.er1 >conftest.err
11038 rm -f conftest.er1
11039 cat conftest.err >&5
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); } &&
11042 { ac_try='test -z "$ac_c_werror_flag"
11043 || test ! -s conftest.err'
11044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11045 (eval $ac_try) 2>&5
11046 ac_status=$?
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); }; } &&
11049 { ac_try='test -s conftest$ac_exeext'
11050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11051 (eval $ac_try) 2>&5
11052 ac_status=$?
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); }; }; then
11055 am_cv_val_LC_MESSAGES=yes
11056 else
11057 echo "$as_me: failed program was:" >&5
11058 sed 's/^/| /' conftest.$ac_ext >&5
11060 am_cv_val_LC_MESSAGES=no
11062 rm -f conftest.err conftest.$ac_objext \
11063 conftest$ac_exeext conftest.$ac_ext
11065 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11066 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11067 if test $am_cv_val_LC_MESSAGES = yes; then
11069 cat >>confdefs.h <<\_ACEOF
11070 #define HAVE_LC_MESSAGES 1
11071 _ACEOF
11075 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11076 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11077 if test "${ac_cv_struct_tm+set}" = set; then
11078 echo $ECHO_N "(cached) $ECHO_C" >&6
11079 else
11080 cat >conftest.$ac_ext <<_ACEOF
11081 /* confdefs.h. */
11082 _ACEOF
11083 cat confdefs.h >>conftest.$ac_ext
11084 cat >>conftest.$ac_ext <<_ACEOF
11085 /* end confdefs.h. */
11086 #include <sys/types.h>
11087 #include <time.h>
11090 main ()
11092 struct tm *tp; tp->tm_sec;
11094 return 0;
11096 _ACEOF
11097 rm -f conftest.$ac_objext
11098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11099 (eval $ac_compile) 2>conftest.er1
11100 ac_status=$?
11101 grep -v '^ *+' conftest.er1 >conftest.err
11102 rm -f conftest.er1
11103 cat conftest.err >&5
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); } &&
11106 { ac_try='test -z "$ac_c_werror_flag"
11107 || test ! -s conftest.err'
11108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11109 (eval $ac_try) 2>&5
11110 ac_status=$?
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); }; } &&
11113 { ac_try='test -s conftest.$ac_objext'
11114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11115 (eval $ac_try) 2>&5
11116 ac_status=$?
11117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118 (exit $ac_status); }; }; then
11119 ac_cv_struct_tm=time.h
11120 else
11121 echo "$as_me: failed program was:" >&5
11122 sed 's/^/| /' conftest.$ac_ext >&5
11124 ac_cv_struct_tm=sys/time.h
11126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11128 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11129 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11130 if test $ac_cv_struct_tm = sys/time.h; then
11132 cat >>confdefs.h <<\_ACEOF
11133 #define TM_IN_SYS_TIME 1
11134 _ACEOF
11138 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11139 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11140 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11141 echo $ECHO_N "(cached) $ECHO_C" >&6
11142 else
11143 cat >conftest.$ac_ext <<_ACEOF
11144 /* confdefs.h. */
11145 _ACEOF
11146 cat confdefs.h >>conftest.$ac_ext
11147 cat >>conftest.$ac_ext <<_ACEOF
11148 /* end confdefs.h. */
11149 #include <sys/types.h>
11150 #include <$ac_cv_struct_tm>
11154 main ()
11156 static struct tm ac_aggr;
11157 if (ac_aggr.tm_zone)
11158 return 0;
11160 return 0;
11162 _ACEOF
11163 rm -f conftest.$ac_objext
11164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11165 (eval $ac_compile) 2>conftest.er1
11166 ac_status=$?
11167 grep -v '^ *+' conftest.er1 >conftest.err
11168 rm -f conftest.er1
11169 cat conftest.err >&5
11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); } &&
11172 { ac_try='test -z "$ac_c_werror_flag"
11173 || test ! -s conftest.err'
11174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11175 (eval $ac_try) 2>&5
11176 ac_status=$?
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); }; } &&
11179 { ac_try='test -s conftest.$ac_objext'
11180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11181 (eval $ac_try) 2>&5
11182 ac_status=$?
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); }; }; then
11185 ac_cv_member_struct_tm_tm_zone=yes
11186 else
11187 echo "$as_me: failed program was:" >&5
11188 sed 's/^/| /' conftest.$ac_ext >&5
11190 cat >conftest.$ac_ext <<_ACEOF
11191 /* confdefs.h. */
11192 _ACEOF
11193 cat confdefs.h >>conftest.$ac_ext
11194 cat >>conftest.$ac_ext <<_ACEOF
11195 /* end confdefs.h. */
11196 #include <sys/types.h>
11197 #include <$ac_cv_struct_tm>
11201 main ()
11203 static struct tm ac_aggr;
11204 if (sizeof ac_aggr.tm_zone)
11205 return 0;
11207 return 0;
11209 _ACEOF
11210 rm -f conftest.$ac_objext
11211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11212 (eval $ac_compile) 2>conftest.er1
11213 ac_status=$?
11214 grep -v '^ *+' conftest.er1 >conftest.err
11215 rm -f conftest.er1
11216 cat conftest.err >&5
11217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); } &&
11219 { ac_try='test -z "$ac_c_werror_flag"
11220 || test ! -s conftest.err'
11221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11222 (eval $ac_try) 2>&5
11223 ac_status=$?
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); }; } &&
11226 { ac_try='test -s conftest.$ac_objext'
11227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11228 (eval $ac_try) 2>&5
11229 ac_status=$?
11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); }; }; then
11232 ac_cv_member_struct_tm_tm_zone=yes
11233 else
11234 echo "$as_me: failed program was:" >&5
11235 sed 's/^/| /' conftest.$ac_ext >&5
11237 ac_cv_member_struct_tm_tm_zone=no
11239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11243 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11244 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11245 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11247 cat >>confdefs.h <<_ACEOF
11248 #define HAVE_STRUCT_TM_TM_ZONE 1
11249 _ACEOF
11254 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11256 cat >>confdefs.h <<\_ACEOF
11257 #define HAVE_TM_ZONE 1
11258 _ACEOF
11260 else
11261 echo "$as_me:$LINENO: checking for tzname" >&5
11262 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11263 if test "${ac_cv_var_tzname+set}" = set; then
11264 echo $ECHO_N "(cached) $ECHO_C" >&6
11265 else
11266 if test x$gcc_no_link = xyes; then
11267 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11268 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11269 { (exit 1); exit 1; }; }
11271 cat >conftest.$ac_ext <<_ACEOF
11272 /* confdefs.h. */
11273 _ACEOF
11274 cat confdefs.h >>conftest.$ac_ext
11275 cat >>conftest.$ac_ext <<_ACEOF
11276 /* end confdefs.h. */
11277 #include <time.h>
11278 #ifndef tzname /* For SGI. */
11279 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11280 #endif
11283 main ()
11285 atoi(*tzname);
11287 return 0;
11289 _ACEOF
11290 rm -f conftest.$ac_objext conftest$ac_exeext
11291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11292 (eval $ac_link) 2>conftest.er1
11293 ac_status=$?
11294 grep -v '^ *+' conftest.er1 >conftest.err
11295 rm -f conftest.er1
11296 cat conftest.err >&5
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); } &&
11299 { ac_try='test -z "$ac_c_werror_flag"
11300 || test ! -s conftest.err'
11301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11302 (eval $ac_try) 2>&5
11303 ac_status=$?
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); }; } &&
11306 { ac_try='test -s conftest$ac_exeext'
11307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11308 (eval $ac_try) 2>&5
11309 ac_status=$?
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); }; }; then
11312 ac_cv_var_tzname=yes
11313 else
11314 echo "$as_me: failed program was:" >&5
11315 sed 's/^/| /' conftest.$ac_ext >&5
11317 ac_cv_var_tzname=no
11319 rm -f conftest.err conftest.$ac_objext \
11320 conftest$ac_exeext conftest.$ac_ext
11322 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11323 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11324 if test $ac_cv_var_tzname = yes; then
11326 cat >>confdefs.h <<\_ACEOF
11327 #define HAVE_TZNAME 1
11328 _ACEOF
11336 for ac_func in gethostbyname_r
11338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11339 echo "$as_me:$LINENO: checking for $ac_func" >&5
11340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11341 if eval "test \"\${$as_ac_var+set}\" = set"; then
11342 echo $ECHO_N "(cached) $ECHO_C" >&6
11343 else
11344 if test x$gcc_no_link = xyes; then
11345 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11346 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11347 { (exit 1); exit 1; }; }
11349 cat >conftest.$ac_ext <<_ACEOF
11350 /* confdefs.h. */
11351 _ACEOF
11352 cat confdefs.h >>conftest.$ac_ext
11353 cat >>conftest.$ac_ext <<_ACEOF
11354 /* end confdefs.h. */
11355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11357 #define $ac_func innocuous_$ac_func
11359 /* System header to define __stub macros and hopefully few prototypes,
11360 which can conflict with char $ac_func (); below.
11361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11362 <limits.h> exists even on freestanding compilers. */
11364 #ifdef __STDC__
11365 # include <limits.h>
11366 #else
11367 # include <assert.h>
11368 #endif
11370 #undef $ac_func
11372 /* Override any gcc2 internal prototype to avoid an error. */
11373 #ifdef __cplusplus
11374 extern "C"
11376 #endif
11377 /* We use char because int might match the return type of a gcc2
11378 builtin and then its argument prototype would still apply. */
11379 char $ac_func ();
11380 /* The GNU C library defines this for functions which it implements
11381 to always fail with ENOSYS. Some functions are actually named
11382 something starting with __ and the normal name is an alias. */
11383 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11384 choke me
11385 #else
11386 char (*f) () = $ac_func;
11387 #endif
11388 #ifdef __cplusplus
11390 #endif
11393 main ()
11395 return f != $ac_func;
11397 return 0;
11399 _ACEOF
11400 rm -f conftest.$ac_objext conftest$ac_exeext
11401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11402 (eval $ac_link) 2>conftest.er1
11403 ac_status=$?
11404 grep -v '^ *+' conftest.er1 >conftest.err
11405 rm -f conftest.er1
11406 cat conftest.err >&5
11407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); } &&
11409 { ac_try='test -z "$ac_c_werror_flag"
11410 || test ! -s conftest.err'
11411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11412 (eval $ac_try) 2>&5
11413 ac_status=$?
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); }; } &&
11416 { ac_try='test -s conftest$ac_exeext'
11417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11418 (eval $ac_try) 2>&5
11419 ac_status=$?
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); }; }; then
11422 eval "$as_ac_var=yes"
11423 else
11424 echo "$as_me: failed program was:" >&5
11425 sed 's/^/| /' conftest.$ac_ext >&5
11427 eval "$as_ac_var=no"
11429 rm -f conftest.err conftest.$ac_objext \
11430 conftest$ac_exeext conftest.$ac_ext
11432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11433 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11434 if test `eval echo '${'$as_ac_var'}'` = yes; then
11435 cat >>confdefs.h <<_ACEOF
11436 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11437 _ACEOF
11440 cat >>confdefs.h <<\_ACEOF
11441 #define HAVE_GETHOSTBYNAME_R 1
11442 _ACEOF
11444 # There are two different kinds of gethostbyname_r.
11445 # We look for the one that returns `int'.
11446 # Hopefully this check is robust enough.
11447 cat >conftest.$ac_ext <<_ACEOF
11448 /* confdefs.h. */
11449 _ACEOF
11450 cat confdefs.h >>conftest.$ac_ext
11451 cat >>conftest.$ac_ext <<_ACEOF
11452 /* end confdefs.h. */
11453 #include <netdb.h>
11455 _ACEOF
11456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11457 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
11460 cat >>confdefs.h <<\_ACEOF
11461 #define GETHOSTBYNAME_R_RETURNS_INT 1
11462 _ACEOF
11465 rm -f conftest*
11468 case " $GCINCS " in
11469 *" -D_REENTRANT "*) ;;
11471 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
11472 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
11473 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
11474 echo $ECHO_N "(cached) $ECHO_C" >&6
11475 else
11476 ac_ext=cc
11477 ac_cpp='$CXXCPP $CPPFLAGS'
11478 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11479 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11480 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11482 cat >conftest.$ac_ext <<_ACEOF
11483 /* confdefs.h. */
11484 _ACEOF
11485 cat confdefs.h >>conftest.$ac_ext
11486 cat >>conftest.$ac_ext <<_ACEOF
11487 /* end confdefs.h. */
11488 #include <netdb.h>
11490 main ()
11492 gethostbyname_r("", 0, 0);
11494 return 0;
11496 _ACEOF
11497 rm -f conftest.$ac_objext
11498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11499 (eval $ac_compile) 2>conftest.er1
11500 ac_status=$?
11501 grep -v '^ *+' conftest.er1 >conftest.err
11502 rm -f conftest.er1
11503 cat conftest.err >&5
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); } &&
11506 { ac_try='test -z "$ac_cxx_werror_flag"
11507 || test ! -s conftest.err'
11508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11509 (eval $ac_try) 2>&5
11510 ac_status=$?
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); }; } &&
11513 { ac_try='test -s conftest.$ac_objext'
11514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11515 (eval $ac_try) 2>&5
11516 ac_status=$?
11517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518 (exit $ac_status); }; }; then
11519 libjava_cv_gethostbyname_r_needs_reentrant=no
11520 else
11521 echo "$as_me: failed program was:" >&5
11522 sed 's/^/| /' conftest.$ac_ext >&5
11524 CPPFLAGS_SAVE="$CPPFLAGS"
11525 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
11526 cat >conftest.$ac_ext <<_ACEOF
11527 /* confdefs.h. */
11528 _ACEOF
11529 cat confdefs.h >>conftest.$ac_ext
11530 cat >>conftest.$ac_ext <<_ACEOF
11531 /* end confdefs.h. */
11532 #include <netdb.h>
11534 main ()
11536 gethostbyname_r("", 0, 0);
11538 return 0;
11540 _ACEOF
11541 rm -f conftest.$ac_objext
11542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11543 (eval $ac_compile) 2>conftest.er1
11544 ac_status=$?
11545 grep -v '^ *+' conftest.er1 >conftest.err
11546 rm -f conftest.er1
11547 cat conftest.err >&5
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 (exit $ac_status); } &&
11550 { ac_try='test -z "$ac_cxx_werror_flag"
11551 || test ! -s conftest.err'
11552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11553 (eval $ac_try) 2>&5
11554 ac_status=$?
11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); }; } &&
11557 { ac_try='test -s conftest.$ac_objext'
11558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11559 (eval $ac_try) 2>&5
11560 ac_status=$?
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); }; }; then
11563 libjava_cv_gethostbyname_r_needs_reentrant=yes
11564 else
11565 echo "$as_me: failed program was:" >&5
11566 sed 's/^/| /' conftest.$ac_ext >&5
11568 libjava_cv_gethostbyname_r_needs_reentrant=fail
11570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11571 CPPFLAGS="$CPPFLAGS_SAVE"
11574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11575 ac_ext=c
11576 ac_cpp='$CPP $CPPFLAGS'
11577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11583 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
11584 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
11585 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
11587 cat >>confdefs.h <<\_ACEOF
11588 #define _REENTRANT 1
11589 _ACEOF
11593 esac
11595 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
11596 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
11597 if test "${libjava_cv_struct_hostent_data+set}" = set; then
11598 echo $ECHO_N "(cached) $ECHO_C" >&6
11599 else
11600 cat >conftest.$ac_ext <<_ACEOF
11601 /* confdefs.h. */
11602 _ACEOF
11603 cat confdefs.h >>conftest.$ac_ext
11604 cat >>conftest.$ac_ext <<_ACEOF
11605 /* end confdefs.h. */
11607 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
11608 # define _REENTRANT 1
11609 #endif
11610 #include <netdb.h>
11612 main ()
11614 struct hostent_data data;
11616 return 0;
11618 _ACEOF
11619 rm -f conftest.$ac_objext
11620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11621 (eval $ac_compile) 2>conftest.er1
11622 ac_status=$?
11623 grep -v '^ *+' conftest.er1 >conftest.err
11624 rm -f conftest.er1
11625 cat conftest.err >&5
11626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627 (exit $ac_status); } &&
11628 { ac_try='test -z "$ac_c_werror_flag"
11629 || test ! -s conftest.err'
11630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11631 (eval $ac_try) 2>&5
11632 ac_status=$?
11633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634 (exit $ac_status); }; } &&
11635 { ac_try='test -s conftest.$ac_objext'
11636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11637 (eval $ac_try) 2>&5
11638 ac_status=$?
11639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640 (exit $ac_status); }; }; then
11641 libjava_cv_struct_hostent_data=yes
11642 else
11643 echo "$as_me: failed program was:" >&5
11644 sed 's/^/| /' conftest.$ac_ext >&5
11646 libjava_cv_struct_hostent_data=no
11648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11650 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
11651 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
11652 if test "x$libjava_cv_struct_hostent_data" = xyes; then
11654 cat >>confdefs.h <<\_ACEOF
11655 #define HAVE_STRUCT_HOSTENT_DATA 1
11656 _ACEOF
11661 done
11664 # FIXME: libjava source code expects to find a prototype for
11665 # gethostbyaddr_r in netdb.h. The outer check ensures that
11666 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
11667 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
11668 # linkage check is enough, yet C++ code requires proper prototypes.)
11669 cat >conftest.$ac_ext <<_ACEOF
11670 /* confdefs.h. */
11671 _ACEOF
11672 cat confdefs.h >>conftest.$ac_ext
11673 cat >>conftest.$ac_ext <<_ACEOF
11674 /* end confdefs.h. */
11675 #include <netdb.h>
11677 _ACEOF
11678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11679 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
11682 for ac_func in gethostbyaddr_r
11684 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11685 echo "$as_me:$LINENO: checking for $ac_func" >&5
11686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11687 if eval "test \"\${$as_ac_var+set}\" = set"; then
11688 echo $ECHO_N "(cached) $ECHO_C" >&6
11689 else
11690 if test x$gcc_no_link = xyes; then
11691 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11692 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11693 { (exit 1); exit 1; }; }
11695 cat >conftest.$ac_ext <<_ACEOF
11696 /* confdefs.h. */
11697 _ACEOF
11698 cat confdefs.h >>conftest.$ac_ext
11699 cat >>conftest.$ac_ext <<_ACEOF
11700 /* end confdefs.h. */
11701 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11703 #define $ac_func innocuous_$ac_func
11705 /* System header to define __stub macros and hopefully few prototypes,
11706 which can conflict with char $ac_func (); below.
11707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11708 <limits.h> exists even on freestanding compilers. */
11710 #ifdef __STDC__
11711 # include <limits.h>
11712 #else
11713 # include <assert.h>
11714 #endif
11716 #undef $ac_func
11718 /* Override any gcc2 internal prototype to avoid an error. */
11719 #ifdef __cplusplus
11720 extern "C"
11722 #endif
11723 /* We use char because int might match the return type of a gcc2
11724 builtin and then its argument prototype would still apply. */
11725 char $ac_func ();
11726 /* The GNU C library defines this for functions which it implements
11727 to always fail with ENOSYS. Some functions are actually named
11728 something starting with __ and the normal name is an alias. */
11729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11730 choke me
11731 #else
11732 char (*f) () = $ac_func;
11733 #endif
11734 #ifdef __cplusplus
11736 #endif
11739 main ()
11741 return f != $ac_func;
11743 return 0;
11745 _ACEOF
11746 rm -f conftest.$ac_objext conftest$ac_exeext
11747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11748 (eval $ac_link) 2>conftest.er1
11749 ac_status=$?
11750 grep -v '^ *+' conftest.er1 >conftest.err
11751 rm -f conftest.er1
11752 cat conftest.err >&5
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); } &&
11755 { ac_try='test -z "$ac_c_werror_flag"
11756 || test ! -s conftest.err'
11757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11758 (eval $ac_try) 2>&5
11759 ac_status=$?
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); }; } &&
11762 { ac_try='test -s conftest$ac_exeext'
11763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11764 (eval $ac_try) 2>&5
11765 ac_status=$?
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767 (exit $ac_status); }; }; then
11768 eval "$as_ac_var=yes"
11769 else
11770 echo "$as_me: failed program was:" >&5
11771 sed 's/^/| /' conftest.$ac_ext >&5
11773 eval "$as_ac_var=no"
11775 rm -f conftest.err conftest.$ac_objext \
11776 conftest$ac_exeext conftest.$ac_ext
11778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11779 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11780 if test `eval echo '${'$as_ac_var'}'` = yes; then
11781 cat >>confdefs.h <<_ACEOF
11782 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11783 _ACEOF
11786 cat >>confdefs.h <<\_ACEOF
11787 #define HAVE_GETHOSTBYADDR_R 1
11788 _ACEOF
11790 # There are two different kinds of gethostbyaddr_r.
11791 # We look for the one that returns `int'.
11792 # Hopefully this check is robust enough.
11793 cat >conftest.$ac_ext <<_ACEOF
11794 /* confdefs.h. */
11795 _ACEOF
11796 cat confdefs.h >>conftest.$ac_ext
11797 cat >>conftest.$ac_ext <<_ACEOF
11798 /* end confdefs.h. */
11799 #include <netdb.h>
11801 _ACEOF
11802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11803 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11806 cat >>confdefs.h <<\_ACEOF
11807 #define GETHOSTBYADDR_R_RETURNS_INT 1
11808 _ACEOF
11811 rm -f conftest*
11814 done
11817 rm -f conftest*
11821 for ac_func in gethostname
11823 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11824 echo "$as_me:$LINENO: checking for $ac_func" >&5
11825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11826 if eval "test \"\${$as_ac_var+set}\" = set"; then
11827 echo $ECHO_N "(cached) $ECHO_C" >&6
11828 else
11829 if test x$gcc_no_link = xyes; then
11830 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11831 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11832 { (exit 1); exit 1; }; }
11834 cat >conftest.$ac_ext <<_ACEOF
11835 /* confdefs.h. */
11836 _ACEOF
11837 cat confdefs.h >>conftest.$ac_ext
11838 cat >>conftest.$ac_ext <<_ACEOF
11839 /* end confdefs.h. */
11840 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11842 #define $ac_func innocuous_$ac_func
11844 /* System header to define __stub macros and hopefully few prototypes,
11845 which can conflict with char $ac_func (); below.
11846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11847 <limits.h> exists even on freestanding compilers. */
11849 #ifdef __STDC__
11850 # include <limits.h>
11851 #else
11852 # include <assert.h>
11853 #endif
11855 #undef $ac_func
11857 /* Override any gcc2 internal prototype to avoid an error. */
11858 #ifdef __cplusplus
11859 extern "C"
11861 #endif
11862 /* We use char because int might match the return type of a gcc2
11863 builtin and then its argument prototype would still apply. */
11864 char $ac_func ();
11865 /* The GNU C library defines this for functions which it implements
11866 to always fail with ENOSYS. Some functions are actually named
11867 something starting with __ and the normal name is an alias. */
11868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11869 choke me
11870 #else
11871 char (*f) () = $ac_func;
11872 #endif
11873 #ifdef __cplusplus
11875 #endif
11878 main ()
11880 return f != $ac_func;
11882 return 0;
11884 _ACEOF
11885 rm -f conftest.$ac_objext conftest$ac_exeext
11886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11887 (eval $ac_link) 2>conftest.er1
11888 ac_status=$?
11889 grep -v '^ *+' conftest.er1 >conftest.err
11890 rm -f conftest.er1
11891 cat conftest.err >&5
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); } &&
11894 { ac_try='test -z "$ac_c_werror_flag"
11895 || test ! -s conftest.err'
11896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11897 (eval $ac_try) 2>&5
11898 ac_status=$?
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); }; } &&
11901 { ac_try='test -s conftest$ac_exeext'
11902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11903 (eval $ac_try) 2>&5
11904 ac_status=$?
11905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906 (exit $ac_status); }; }; then
11907 eval "$as_ac_var=yes"
11908 else
11909 echo "$as_me: failed program was:" >&5
11910 sed 's/^/| /' conftest.$ac_ext >&5
11912 eval "$as_ac_var=no"
11914 rm -f conftest.err conftest.$ac_objext \
11915 conftest$ac_exeext conftest.$ac_ext
11917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11918 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11919 if test `eval echo '${'$as_ac_var'}'` = yes; then
11920 cat >>confdefs.h <<_ACEOF
11921 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11922 _ACEOF
11925 cat >>confdefs.h <<\_ACEOF
11926 #define HAVE_GETHOSTNAME 1
11927 _ACEOF
11929 cat >conftest.$ac_ext <<_ACEOF
11930 /* confdefs.h. */
11931 _ACEOF
11932 cat confdefs.h >>conftest.$ac_ext
11933 cat >>conftest.$ac_ext <<_ACEOF
11934 /* end confdefs.h. */
11935 #include <unistd.h>
11937 _ACEOF
11938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11939 $EGREP "gethostname" >/dev/null 2>&1; then
11942 cat >>confdefs.h <<\_ACEOF
11943 #define HAVE_GETHOSTNAME_DECL 1
11944 _ACEOF
11947 rm -f conftest*
11950 done
11954 for ac_func in usleep
11956 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11957 echo "$as_me:$LINENO: checking for $ac_func" >&5
11958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11959 if eval "test \"\${$as_ac_var+set}\" = set"; then
11960 echo $ECHO_N "(cached) $ECHO_C" >&6
11961 else
11962 if test x$gcc_no_link = xyes; then
11963 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11964 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11965 { (exit 1); exit 1; }; }
11967 cat >conftest.$ac_ext <<_ACEOF
11968 /* confdefs.h. */
11969 _ACEOF
11970 cat confdefs.h >>conftest.$ac_ext
11971 cat >>conftest.$ac_ext <<_ACEOF
11972 /* end confdefs.h. */
11973 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11975 #define $ac_func innocuous_$ac_func
11977 /* System header to define __stub macros and hopefully few prototypes,
11978 which can conflict with char $ac_func (); below.
11979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11980 <limits.h> exists even on freestanding compilers. */
11982 #ifdef __STDC__
11983 # include <limits.h>
11984 #else
11985 # include <assert.h>
11986 #endif
11988 #undef $ac_func
11990 /* Override any gcc2 internal prototype to avoid an error. */
11991 #ifdef __cplusplus
11992 extern "C"
11994 #endif
11995 /* We use char because int might match the return type of a gcc2
11996 builtin and then its argument prototype would still apply. */
11997 char $ac_func ();
11998 /* The GNU C library defines this for functions which it implements
11999 to always fail with ENOSYS. Some functions are actually named
12000 something starting with __ and the normal name is an alias. */
12001 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12002 choke me
12003 #else
12004 char (*f) () = $ac_func;
12005 #endif
12006 #ifdef __cplusplus
12008 #endif
12011 main ()
12013 return f != $ac_func;
12015 return 0;
12017 _ACEOF
12018 rm -f conftest.$ac_objext conftest$ac_exeext
12019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12020 (eval $ac_link) 2>conftest.er1
12021 ac_status=$?
12022 grep -v '^ *+' conftest.er1 >conftest.err
12023 rm -f conftest.er1
12024 cat conftest.err >&5
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); } &&
12027 { ac_try='test -z "$ac_c_werror_flag"
12028 || test ! -s conftest.err'
12029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12030 (eval $ac_try) 2>&5
12031 ac_status=$?
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); }; } &&
12034 { ac_try='test -s conftest$ac_exeext'
12035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12036 (eval $ac_try) 2>&5
12037 ac_status=$?
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); }; }; then
12040 eval "$as_ac_var=yes"
12041 else
12042 echo "$as_me: failed program was:" >&5
12043 sed 's/^/| /' conftest.$ac_ext >&5
12045 eval "$as_ac_var=no"
12047 rm -f conftest.err conftest.$ac_objext \
12048 conftest$ac_exeext conftest.$ac_ext
12050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12051 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12052 if test `eval echo '${'$as_ac_var'}'` = yes; then
12053 cat >>confdefs.h <<_ACEOF
12054 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12055 _ACEOF
12057 cat >conftest.$ac_ext <<_ACEOF
12058 /* confdefs.h. */
12059 _ACEOF
12060 cat confdefs.h >>conftest.$ac_ext
12061 cat >>conftest.$ac_ext <<_ACEOF
12062 /* end confdefs.h. */
12063 #include <unistd.h>
12065 _ACEOF
12066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12067 $EGREP "usleep" >/dev/null 2>&1; then
12070 cat >>confdefs.h <<\_ACEOF
12071 #define HAVE_USLEEP_DECL 1
12072 _ACEOF
12075 rm -f conftest*
12078 done
12081 # Look for these functions in the thread library, but only bother
12082 # if using POSIX threads.
12083 if test "$THREADS" = posix; then
12084 save_LIBS="$LIBS"
12085 LIBS="$LIBS $THREADLIBS"
12086 # Some POSIX thread systems don't have pthread_mutexattr_settype.
12087 # E.g., Solaris.
12090 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
12092 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12093 echo "$as_me:$LINENO: checking for $ac_func" >&5
12094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12095 if eval "test \"\${$as_ac_var+set}\" = set"; then
12096 echo $ECHO_N "(cached) $ECHO_C" >&6
12097 else
12098 if test x$gcc_no_link = xyes; then
12099 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12100 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12101 { (exit 1); exit 1; }; }
12103 cat >conftest.$ac_ext <<_ACEOF
12104 /* confdefs.h. */
12105 _ACEOF
12106 cat confdefs.h >>conftest.$ac_ext
12107 cat >>conftest.$ac_ext <<_ACEOF
12108 /* end confdefs.h. */
12109 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12111 #define $ac_func innocuous_$ac_func
12113 /* System header to define __stub macros and hopefully few prototypes,
12114 which can conflict with char $ac_func (); below.
12115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12116 <limits.h> exists even on freestanding compilers. */
12118 #ifdef __STDC__
12119 # include <limits.h>
12120 #else
12121 # include <assert.h>
12122 #endif
12124 #undef $ac_func
12126 /* Override any gcc2 internal prototype to avoid an error. */
12127 #ifdef __cplusplus
12128 extern "C"
12130 #endif
12131 /* We use char because int might match the return type of a gcc2
12132 builtin and then its argument prototype would still apply. */
12133 char $ac_func ();
12134 /* The GNU C library defines this for functions which it implements
12135 to always fail with ENOSYS. Some functions are actually named
12136 something starting with __ and the normal name is an alias. */
12137 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12138 choke me
12139 #else
12140 char (*f) () = $ac_func;
12141 #endif
12142 #ifdef __cplusplus
12144 #endif
12147 main ()
12149 return f != $ac_func;
12151 return 0;
12153 _ACEOF
12154 rm -f conftest.$ac_objext conftest$ac_exeext
12155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12156 (eval $ac_link) 2>conftest.er1
12157 ac_status=$?
12158 grep -v '^ *+' conftest.er1 >conftest.err
12159 rm -f conftest.er1
12160 cat conftest.err >&5
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); } &&
12163 { ac_try='test -z "$ac_c_werror_flag"
12164 || test ! -s conftest.err'
12165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12166 (eval $ac_try) 2>&5
12167 ac_status=$?
12168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169 (exit $ac_status); }; } &&
12170 { ac_try='test -s conftest$ac_exeext'
12171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12172 (eval $ac_try) 2>&5
12173 ac_status=$?
12174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175 (exit $ac_status); }; }; then
12176 eval "$as_ac_var=yes"
12177 else
12178 echo "$as_me: failed program was:" >&5
12179 sed 's/^/| /' conftest.$ac_ext >&5
12181 eval "$as_ac_var=no"
12183 rm -f conftest.err conftest.$ac_objext \
12184 conftest$ac_exeext conftest.$ac_ext
12186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12187 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12188 if test `eval echo '${'$as_ac_var'}'` = yes; then
12189 cat >>confdefs.h <<_ACEOF
12190 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12191 _ACEOF
12194 done
12197 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
12198 # Solaris 7 the name librt is preferred.
12200 for ac_func in sched_yield
12202 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12203 echo "$as_me:$LINENO: checking for $ac_func" >&5
12204 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12205 if eval "test \"\${$as_ac_var+set}\" = set"; then
12206 echo $ECHO_N "(cached) $ECHO_C" >&6
12207 else
12208 if test x$gcc_no_link = xyes; then
12209 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12210 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12211 { (exit 1); exit 1; }; }
12213 cat >conftest.$ac_ext <<_ACEOF
12214 /* confdefs.h. */
12215 _ACEOF
12216 cat confdefs.h >>conftest.$ac_ext
12217 cat >>conftest.$ac_ext <<_ACEOF
12218 /* end confdefs.h. */
12219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12221 #define $ac_func innocuous_$ac_func
12223 /* System header to define __stub macros and hopefully few prototypes,
12224 which can conflict with char $ac_func (); below.
12225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12226 <limits.h> exists even on freestanding compilers. */
12228 #ifdef __STDC__
12229 # include <limits.h>
12230 #else
12231 # include <assert.h>
12232 #endif
12234 #undef $ac_func
12236 /* Override any gcc2 internal prototype to avoid an error. */
12237 #ifdef __cplusplus
12238 extern "C"
12240 #endif
12241 /* We use char because int might match the return type of a gcc2
12242 builtin and then its argument prototype would still apply. */
12243 char $ac_func ();
12244 /* The GNU C library defines this for functions which it implements
12245 to always fail with ENOSYS. Some functions are actually named
12246 something starting with __ and the normal name is an alias. */
12247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12248 choke me
12249 #else
12250 char (*f) () = $ac_func;
12251 #endif
12252 #ifdef __cplusplus
12254 #endif
12257 main ()
12259 return f != $ac_func;
12261 return 0;
12263 _ACEOF
12264 rm -f conftest.$ac_objext conftest$ac_exeext
12265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12266 (eval $ac_link) 2>conftest.er1
12267 ac_status=$?
12268 grep -v '^ *+' conftest.er1 >conftest.err
12269 rm -f conftest.er1
12270 cat conftest.err >&5
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); } &&
12273 { ac_try='test -z "$ac_c_werror_flag"
12274 || test ! -s conftest.err'
12275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12276 (eval $ac_try) 2>&5
12277 ac_status=$?
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); }; } &&
12280 { ac_try='test -s conftest$ac_exeext'
12281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12282 (eval $ac_try) 2>&5
12283 ac_status=$?
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); }; }; then
12286 eval "$as_ac_var=yes"
12287 else
12288 echo "$as_me: failed program was:" >&5
12289 sed 's/^/| /' conftest.$ac_ext >&5
12291 eval "$as_ac_var=no"
12293 rm -f conftest.err conftest.$ac_objext \
12294 conftest$ac_exeext conftest.$ac_ext
12296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12297 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12298 if test `eval echo '${'$as_ac_var'}'` = yes; then
12299 cat >>confdefs.h <<_ACEOF
12300 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12301 _ACEOF
12303 else
12305 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
12306 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
12307 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
12308 echo $ECHO_N "(cached) $ECHO_C" >&6
12309 else
12310 ac_check_lib_save_LIBS=$LIBS
12311 LIBS="-lrt $LIBS"
12312 if test x$gcc_no_link = xyes; then
12313 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12314 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12315 { (exit 1); exit 1; }; }
12317 cat >conftest.$ac_ext <<_ACEOF
12318 /* confdefs.h. */
12319 _ACEOF
12320 cat confdefs.h >>conftest.$ac_ext
12321 cat >>conftest.$ac_ext <<_ACEOF
12322 /* end confdefs.h. */
12324 /* Override any gcc2 internal prototype to avoid an error. */
12325 #ifdef __cplusplus
12326 extern "C"
12327 #endif
12328 /* We use char because int might match the return type of a gcc2
12329 builtin and then its argument prototype would still apply. */
12330 char sched_yield ();
12332 main ()
12334 sched_yield ();
12336 return 0;
12338 _ACEOF
12339 rm -f conftest.$ac_objext conftest$ac_exeext
12340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12341 (eval $ac_link) 2>conftest.er1
12342 ac_status=$?
12343 grep -v '^ *+' conftest.er1 >conftest.err
12344 rm -f conftest.er1
12345 cat conftest.err >&5
12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); } &&
12348 { ac_try='test -z "$ac_c_werror_flag"
12349 || test ! -s conftest.err'
12350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12351 (eval $ac_try) 2>&5
12352 ac_status=$?
12353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354 (exit $ac_status); }; } &&
12355 { ac_try='test -s conftest$ac_exeext'
12356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12357 (eval $ac_try) 2>&5
12358 ac_status=$?
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); }; }; then
12361 ac_cv_lib_rt_sched_yield=yes
12362 else
12363 echo "$as_me: failed program was:" >&5
12364 sed 's/^/| /' conftest.$ac_ext >&5
12366 ac_cv_lib_rt_sched_yield=no
12368 rm -f conftest.err conftest.$ac_objext \
12369 conftest$ac_exeext conftest.$ac_ext
12370 LIBS=$ac_check_lib_save_LIBS
12372 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
12373 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
12374 if test $ac_cv_lib_rt_sched_yield = yes; then
12376 cat >>confdefs.h <<\_ACEOF
12377 #define HAVE_SCHED_YIELD 1
12378 _ACEOF
12380 THREADLIBS="$THREADLIBS -lrt"
12381 THREADSPEC="$THREADSPEC -lrt"
12382 else
12384 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
12385 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
12386 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
12387 echo $ECHO_N "(cached) $ECHO_C" >&6
12388 else
12389 ac_check_lib_save_LIBS=$LIBS
12390 LIBS="-lposix4 $LIBS"
12391 if test x$gcc_no_link = xyes; then
12392 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12393 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12394 { (exit 1); exit 1; }; }
12396 cat >conftest.$ac_ext <<_ACEOF
12397 /* confdefs.h. */
12398 _ACEOF
12399 cat confdefs.h >>conftest.$ac_ext
12400 cat >>conftest.$ac_ext <<_ACEOF
12401 /* end confdefs.h. */
12403 /* Override any gcc2 internal prototype to avoid an error. */
12404 #ifdef __cplusplus
12405 extern "C"
12406 #endif
12407 /* We use char because int might match the return type of a gcc2
12408 builtin and then its argument prototype would still apply. */
12409 char sched_yield ();
12411 main ()
12413 sched_yield ();
12415 return 0;
12417 _ACEOF
12418 rm -f conftest.$ac_objext conftest$ac_exeext
12419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12420 (eval $ac_link) 2>conftest.er1
12421 ac_status=$?
12422 grep -v '^ *+' conftest.er1 >conftest.err
12423 rm -f conftest.er1
12424 cat conftest.err >&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); } &&
12427 { ac_try='test -z "$ac_c_werror_flag"
12428 || test ! -s conftest.err'
12429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12430 (eval $ac_try) 2>&5
12431 ac_status=$?
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); }; } &&
12434 { ac_try='test -s conftest$ac_exeext'
12435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12436 (eval $ac_try) 2>&5
12437 ac_status=$?
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); }; }; then
12440 ac_cv_lib_posix4_sched_yield=yes
12441 else
12442 echo "$as_me: failed program was:" >&5
12443 sed 's/^/| /' conftest.$ac_ext >&5
12445 ac_cv_lib_posix4_sched_yield=no
12447 rm -f conftest.err conftest.$ac_objext \
12448 conftest$ac_exeext conftest.$ac_ext
12449 LIBS=$ac_check_lib_save_LIBS
12451 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
12452 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
12453 if test $ac_cv_lib_posix4_sched_yield = yes; then
12455 cat >>confdefs.h <<\_ACEOF
12456 #define HAVE_SCHED_YIELD 1
12457 _ACEOF
12459 THREADLIBS="$THREADLIBS -lposix4"
12460 THREADSPEC="$THREADSPEC -lposix4"
12466 done
12469 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
12470 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
12471 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
12472 echo $ECHO_N "(cached) $ECHO_C" >&6
12473 else
12474 ac_check_lib_save_LIBS=$LIBS
12475 LIBS="-lrt $LIBS"
12476 if test x$gcc_no_link = xyes; then
12477 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12478 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12479 { (exit 1); exit 1; }; }
12481 cat >conftest.$ac_ext <<_ACEOF
12482 /* confdefs.h. */
12483 _ACEOF
12484 cat confdefs.h >>conftest.$ac_ext
12485 cat >>conftest.$ac_ext <<_ACEOF
12486 /* end confdefs.h. */
12488 /* Override any gcc2 internal prototype to avoid an error. */
12489 #ifdef __cplusplus
12490 extern "C"
12491 #endif
12492 /* We use char because int might match the return type of a gcc2
12493 builtin and then its argument prototype would still apply. */
12494 char clock_gettime ();
12496 main ()
12498 clock_gettime ();
12500 return 0;
12502 _ACEOF
12503 rm -f conftest.$ac_objext conftest$ac_exeext
12504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12505 (eval $ac_link) 2>conftest.er1
12506 ac_status=$?
12507 grep -v '^ *+' conftest.er1 >conftest.err
12508 rm -f conftest.er1
12509 cat conftest.err >&5
12510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511 (exit $ac_status); } &&
12512 { ac_try='test -z "$ac_c_werror_flag"
12513 || test ! -s conftest.err'
12514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12515 (eval $ac_try) 2>&5
12516 ac_status=$?
12517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518 (exit $ac_status); }; } &&
12519 { ac_try='test -s conftest$ac_exeext'
12520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12521 (eval $ac_try) 2>&5
12522 ac_status=$?
12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524 (exit $ac_status); }; }; then
12525 ac_cv_lib_rt_clock_gettime=yes
12526 else
12527 echo "$as_me: failed program was:" >&5
12528 sed 's/^/| /' conftest.$ac_ext >&5
12530 ac_cv_lib_rt_clock_gettime=no
12532 rm -f conftest.err conftest.$ac_objext \
12533 conftest$ac_exeext conftest.$ac_ext
12534 LIBS=$ac_check_lib_save_LIBS
12536 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
12537 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
12538 if test $ac_cv_lib_rt_clock_gettime = yes; then
12541 cat >>confdefs.h <<\_ACEOF
12542 #define HAVE_CLOCK_GETTIME 1
12543 _ACEOF
12545 case "$THREADSPEC" in
12546 *-lrt*) ;;
12548 THREADSPEC="$THREADSPEC -lrt"
12549 THREADLIBS="$THREADLIBS -lrt"
12551 esac
12555 LIBS="$save_LIBS"
12557 # We can save a little space at runtime if the mutex has m_count
12558 # or __m_count. This is a nice hack for Linux.
12559 cat >conftest.$ac_ext <<_ACEOF
12560 /* confdefs.h. */
12561 _ACEOF
12562 cat confdefs.h >>conftest.$ac_ext
12563 cat >>conftest.$ac_ext <<_ACEOF
12564 /* end confdefs.h. */
12565 #include <pthread.h>
12567 main ()
12570 extern pthread_mutex_t *mutex; int q = mutex->m_count;
12573 return 0;
12575 _ACEOF
12576 rm -f conftest.$ac_objext
12577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12578 (eval $ac_compile) 2>conftest.er1
12579 ac_status=$?
12580 grep -v '^ *+' conftest.er1 >conftest.err
12581 rm -f conftest.er1
12582 cat conftest.err >&5
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); } &&
12585 { ac_try='test -z "$ac_c_werror_flag"
12586 || test ! -s conftest.err'
12587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12588 (eval $ac_try) 2>&5
12589 ac_status=$?
12590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 (exit $ac_status); }; } &&
12592 { ac_try='test -s conftest.$ac_objext'
12593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12594 (eval $ac_try) 2>&5
12595 ac_status=$?
12596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597 (exit $ac_status); }; }; then
12599 cat >>confdefs.h <<\_ACEOF
12600 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
12601 _ACEOF
12603 else
12604 echo "$as_me: failed program was:" >&5
12605 sed 's/^/| /' conftest.$ac_ext >&5
12608 cat >conftest.$ac_ext <<_ACEOF
12609 /* confdefs.h. */
12610 _ACEOF
12611 cat confdefs.h >>conftest.$ac_ext
12612 cat >>conftest.$ac_ext <<_ACEOF
12613 /* end confdefs.h. */
12614 #include <pthread.h>
12616 main ()
12619 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
12622 return 0;
12624 _ACEOF
12625 rm -f conftest.$ac_objext
12626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12627 (eval $ac_compile) 2>conftest.er1
12628 ac_status=$?
12629 grep -v '^ *+' conftest.er1 >conftest.err
12630 rm -f conftest.er1
12631 cat conftest.err >&5
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); } &&
12634 { ac_try='test -z "$ac_c_werror_flag"
12635 || test ! -s conftest.err'
12636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12637 (eval $ac_try) 2>&5
12638 ac_status=$?
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); }; } &&
12641 { ac_try='test -s conftest.$ac_objext'
12642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12643 (eval $ac_try) 2>&5
12644 ac_status=$?
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); }; }; then
12648 cat >>confdefs.h <<\_ACEOF
12649 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
12650 _ACEOF
12652 else
12653 echo "$as_me: failed program was:" >&5
12654 sed 's/^/| /' conftest.$ac_ext >&5
12657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12662 # We require a way to get the time.
12663 time_found=no
12667 for ac_func in gettimeofday time ftime
12669 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12670 echo "$as_me:$LINENO: checking for $ac_func" >&5
12671 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12672 if eval "test \"\${$as_ac_var+set}\" = set"; then
12673 echo $ECHO_N "(cached) $ECHO_C" >&6
12674 else
12675 if test x$gcc_no_link = xyes; then
12676 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12677 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12678 { (exit 1); exit 1; }; }
12680 cat >conftest.$ac_ext <<_ACEOF
12681 /* confdefs.h. */
12682 _ACEOF
12683 cat confdefs.h >>conftest.$ac_ext
12684 cat >>conftest.$ac_ext <<_ACEOF
12685 /* end confdefs.h. */
12686 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12688 #define $ac_func innocuous_$ac_func
12690 /* System header to define __stub macros and hopefully few prototypes,
12691 which can conflict with char $ac_func (); below.
12692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12693 <limits.h> exists even on freestanding compilers. */
12695 #ifdef __STDC__
12696 # include <limits.h>
12697 #else
12698 # include <assert.h>
12699 #endif
12701 #undef $ac_func
12703 /* Override any gcc2 internal prototype to avoid an error. */
12704 #ifdef __cplusplus
12705 extern "C"
12707 #endif
12708 /* We use char because int might match the return type of a gcc2
12709 builtin and then its argument prototype would still apply. */
12710 char $ac_func ();
12711 /* The GNU C library defines this for functions which it implements
12712 to always fail with ENOSYS. Some functions are actually named
12713 something starting with __ and the normal name is an alias. */
12714 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12715 choke me
12716 #else
12717 char (*f) () = $ac_func;
12718 #endif
12719 #ifdef __cplusplus
12721 #endif
12724 main ()
12726 return f != $ac_func;
12728 return 0;
12730 _ACEOF
12731 rm -f conftest.$ac_objext conftest$ac_exeext
12732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12733 (eval $ac_link) 2>conftest.er1
12734 ac_status=$?
12735 grep -v '^ *+' conftest.er1 >conftest.err
12736 rm -f conftest.er1
12737 cat conftest.err >&5
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); } &&
12740 { ac_try='test -z "$ac_c_werror_flag"
12741 || test ! -s conftest.err'
12742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12743 (eval $ac_try) 2>&5
12744 ac_status=$?
12745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746 (exit $ac_status); }; } &&
12747 { ac_try='test -s conftest$ac_exeext'
12748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12749 (eval $ac_try) 2>&5
12750 ac_status=$?
12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); }; }; then
12753 eval "$as_ac_var=yes"
12754 else
12755 echo "$as_me: failed program was:" >&5
12756 sed 's/^/| /' conftest.$ac_ext >&5
12758 eval "$as_ac_var=no"
12760 rm -f conftest.err conftest.$ac_objext \
12761 conftest$ac_exeext conftest.$ac_ext
12763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12764 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12765 if test `eval echo '${'$as_ac_var'}'` = yes; then
12766 cat >>confdefs.h <<_ACEOF
12767 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12768 _ACEOF
12769 time_found=yes
12771 done
12773 if test "$time_found" = no; then
12774 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
12775 echo "$as_me: error: no function found to get the time" >&2;}
12776 { (exit 1); exit 1; }; }
12780 for ac_func in memmove
12782 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12783 echo "$as_me:$LINENO: checking for $ac_func" >&5
12784 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12785 if eval "test \"\${$as_ac_var+set}\" = set"; then
12786 echo $ECHO_N "(cached) $ECHO_C" >&6
12787 else
12788 if test x$gcc_no_link = xyes; then
12789 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12790 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12791 { (exit 1); exit 1; }; }
12793 cat >conftest.$ac_ext <<_ACEOF
12794 /* confdefs.h. */
12795 _ACEOF
12796 cat confdefs.h >>conftest.$ac_ext
12797 cat >>conftest.$ac_ext <<_ACEOF
12798 /* end confdefs.h. */
12799 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12801 #define $ac_func innocuous_$ac_func
12803 /* System header to define __stub macros and hopefully few prototypes,
12804 which can conflict with char $ac_func (); below.
12805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12806 <limits.h> exists even on freestanding compilers. */
12808 #ifdef __STDC__
12809 # include <limits.h>
12810 #else
12811 # include <assert.h>
12812 #endif
12814 #undef $ac_func
12816 /* Override any gcc2 internal prototype to avoid an error. */
12817 #ifdef __cplusplus
12818 extern "C"
12820 #endif
12821 /* We use char because int might match the return type of a gcc2
12822 builtin and then its argument prototype would still apply. */
12823 char $ac_func ();
12824 /* The GNU C library defines this for functions which it implements
12825 to always fail with ENOSYS. Some functions are actually named
12826 something starting with __ and the normal name is an alias. */
12827 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12828 choke me
12829 #else
12830 char (*f) () = $ac_func;
12831 #endif
12832 #ifdef __cplusplus
12834 #endif
12837 main ()
12839 return f != $ac_func;
12841 return 0;
12843 _ACEOF
12844 rm -f conftest.$ac_objext conftest$ac_exeext
12845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12846 (eval $ac_link) 2>conftest.er1
12847 ac_status=$?
12848 grep -v '^ *+' conftest.er1 >conftest.err
12849 rm -f conftest.er1
12850 cat conftest.err >&5
12851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852 (exit $ac_status); } &&
12853 { ac_try='test -z "$ac_c_werror_flag"
12854 || test ! -s conftest.err'
12855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12856 (eval $ac_try) 2>&5
12857 ac_status=$?
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); }; } &&
12860 { ac_try='test -s conftest$ac_exeext'
12861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12862 (eval $ac_try) 2>&5
12863 ac_status=$?
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); }; }; then
12866 eval "$as_ac_var=yes"
12867 else
12868 echo "$as_me: failed program was:" >&5
12869 sed 's/^/| /' conftest.$ac_ext >&5
12871 eval "$as_ac_var=no"
12873 rm -f conftest.err conftest.$ac_objext \
12874 conftest$ac_exeext conftest.$ac_ext
12876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12877 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12878 if test `eval echo '${'$as_ac_var'}'` = yes; then
12879 cat >>confdefs.h <<_ACEOF
12880 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12881 _ACEOF
12884 done
12887 # We require memcpy.
12888 memcpy_found=no
12890 for ac_func in memcpy
12892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12893 echo "$as_me:$LINENO: checking for $ac_func" >&5
12894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12895 if eval "test \"\${$as_ac_var+set}\" = set"; then
12896 echo $ECHO_N "(cached) $ECHO_C" >&6
12897 else
12898 if test x$gcc_no_link = xyes; then
12899 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12900 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12901 { (exit 1); exit 1; }; }
12903 cat >conftest.$ac_ext <<_ACEOF
12904 /* confdefs.h. */
12905 _ACEOF
12906 cat confdefs.h >>conftest.$ac_ext
12907 cat >>conftest.$ac_ext <<_ACEOF
12908 /* end confdefs.h. */
12909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12911 #define $ac_func innocuous_$ac_func
12913 /* System header to define __stub macros and hopefully few prototypes,
12914 which can conflict with char $ac_func (); below.
12915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12916 <limits.h> exists even on freestanding compilers. */
12918 #ifdef __STDC__
12919 # include <limits.h>
12920 #else
12921 # include <assert.h>
12922 #endif
12924 #undef $ac_func
12926 /* Override any gcc2 internal prototype to avoid an error. */
12927 #ifdef __cplusplus
12928 extern "C"
12930 #endif
12931 /* We use char because int might match the return type of a gcc2
12932 builtin and then its argument prototype would still apply. */
12933 char $ac_func ();
12934 /* The GNU C library defines this for functions which it implements
12935 to always fail with ENOSYS. Some functions are actually named
12936 something starting with __ and the normal name is an alias. */
12937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12938 choke me
12939 #else
12940 char (*f) () = $ac_func;
12941 #endif
12942 #ifdef __cplusplus
12944 #endif
12947 main ()
12949 return f != $ac_func;
12951 return 0;
12953 _ACEOF
12954 rm -f conftest.$ac_objext conftest$ac_exeext
12955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12956 (eval $ac_link) 2>conftest.er1
12957 ac_status=$?
12958 grep -v '^ *+' conftest.er1 >conftest.err
12959 rm -f conftest.er1
12960 cat conftest.err >&5
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); } &&
12963 { ac_try='test -z "$ac_c_werror_flag"
12964 || test ! -s conftest.err'
12965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12966 (eval $ac_try) 2>&5
12967 ac_status=$?
12968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969 (exit $ac_status); }; } &&
12970 { ac_try='test -s conftest$ac_exeext'
12971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12972 (eval $ac_try) 2>&5
12973 ac_status=$?
12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); }; }; then
12976 eval "$as_ac_var=yes"
12977 else
12978 echo "$as_me: failed program was:" >&5
12979 sed 's/^/| /' conftest.$ac_ext >&5
12981 eval "$as_ac_var=no"
12983 rm -f conftest.err conftest.$ac_objext \
12984 conftest$ac_exeext conftest.$ac_ext
12986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12987 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12988 if test `eval echo '${'$as_ac_var'}'` = yes; then
12989 cat >>confdefs.h <<_ACEOF
12990 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12991 _ACEOF
12992 memcpy_found=yes
12994 done
12996 if test "$memcpy_found" = no; then
12997 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
12998 echo "$as_me: error: memcpy is required" >&2;}
12999 { (exit 1); exit 1; }; }
13001 # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
13002 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13003 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13004 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13005 echo $ECHO_N "(cached) $ECHO_C" >&6
13006 else
13007 ac_check_lib_save_LIBS=$LIBS
13008 LIBS="-ldl $LIBS"
13009 if test x$gcc_no_link = xyes; then
13010 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13011 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13012 { (exit 1); exit 1; }; }
13014 cat >conftest.$ac_ext <<_ACEOF
13015 /* confdefs.h. */
13016 _ACEOF
13017 cat confdefs.h >>conftest.$ac_ext
13018 cat >>conftest.$ac_ext <<_ACEOF
13019 /* end confdefs.h. */
13021 /* Override any gcc2 internal prototype to avoid an error. */
13022 #ifdef __cplusplus
13023 extern "C"
13024 #endif
13025 /* We use char because int might match the return type of a gcc2
13026 builtin and then its argument prototype would still apply. */
13027 char dlopen ();
13029 main ()
13031 dlopen ();
13033 return 0;
13035 _ACEOF
13036 rm -f conftest.$ac_objext conftest$ac_exeext
13037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13038 (eval $ac_link) 2>conftest.er1
13039 ac_status=$?
13040 grep -v '^ *+' conftest.er1 >conftest.err
13041 rm -f conftest.er1
13042 cat conftest.err >&5
13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); } &&
13045 { ac_try='test -z "$ac_c_werror_flag"
13046 || test ! -s conftest.err'
13047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13048 (eval $ac_try) 2>&5
13049 ac_status=$?
13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); }; } &&
13052 { ac_try='test -s conftest$ac_exeext'
13053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13054 (eval $ac_try) 2>&5
13055 ac_status=$?
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); }; }; then
13058 ac_cv_lib_dl_dlopen=yes
13059 else
13060 echo "$as_me: failed program was:" >&5
13061 sed 's/^/| /' conftest.$ac_ext >&5
13063 ac_cv_lib_dl_dlopen=no
13065 rm -f conftest.err conftest.$ac_objext \
13066 conftest$ac_exeext conftest.$ac_ext
13067 LIBS=$ac_check_lib_save_LIBS
13069 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13070 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13071 if test $ac_cv_lib_dl_dlopen = yes; then
13074 cat >>confdefs.h <<\_ACEOF
13075 #define HAVE_DLOPEN 1
13076 _ACEOF
13078 else
13080 echo "$as_me:$LINENO: checking for dlopen in -ldld" >&5
13081 echo $ECHO_N "checking for dlopen in -ldld... $ECHO_C" >&6
13082 if test "${ac_cv_lib_dld_dlopen+set}" = set; then
13083 echo $ECHO_N "(cached) $ECHO_C" >&6
13084 else
13085 ac_check_lib_save_LIBS=$LIBS
13086 LIBS="-ldld $LIBS"
13087 if test x$gcc_no_link = xyes; then
13088 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13089 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13090 { (exit 1); exit 1; }; }
13092 cat >conftest.$ac_ext <<_ACEOF
13093 /* confdefs.h. */
13094 _ACEOF
13095 cat confdefs.h >>conftest.$ac_ext
13096 cat >>conftest.$ac_ext <<_ACEOF
13097 /* end confdefs.h. */
13099 /* Override any gcc2 internal prototype to avoid an error. */
13100 #ifdef __cplusplus
13101 extern "C"
13102 #endif
13103 /* We use char because int might match the return type of a gcc2
13104 builtin and then its argument prototype would still apply. */
13105 char dlopen ();
13107 main ()
13109 dlopen ();
13111 return 0;
13113 _ACEOF
13114 rm -f conftest.$ac_objext conftest$ac_exeext
13115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13116 (eval $ac_link) 2>conftest.er1
13117 ac_status=$?
13118 grep -v '^ *+' conftest.er1 >conftest.err
13119 rm -f conftest.er1
13120 cat conftest.err >&5
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); } &&
13123 { ac_try='test -z "$ac_c_werror_flag"
13124 || test ! -s conftest.err'
13125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13126 (eval $ac_try) 2>&5
13127 ac_status=$?
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); }; } &&
13130 { ac_try='test -s conftest$ac_exeext'
13131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13132 (eval $ac_try) 2>&5
13133 ac_status=$?
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); }; }; then
13136 ac_cv_lib_dld_dlopen=yes
13137 else
13138 echo "$as_me: failed program was:" >&5
13139 sed 's/^/| /' conftest.$ac_ext >&5
13141 ac_cv_lib_dld_dlopen=no
13143 rm -f conftest.err conftest.$ac_objext \
13144 conftest$ac_exeext conftest.$ac_ext
13145 LIBS=$ac_check_lib_save_LIBS
13147 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dlopen" >&5
13148 echo "${ECHO_T}$ac_cv_lib_dld_dlopen" >&6
13149 if test $ac_cv_lib_dld_dlopen = yes; then
13152 cat >>confdefs.h <<\_ACEOF
13153 #define HAVE_DLOPEN 1
13154 _ACEOF
13161 # Some library-finding code we stole from Tcl.
13162 #--------------------------------------------------------------------
13163 # Check for the existence of the -lsocket and -lnsl libraries.
13164 # The order here is important, so that they end up in the right
13165 # order in the command line generated by make. Here are some
13166 # special considerations:
13167 # 1. Use "connect" and "accept" to check for -lsocket, and
13168 # "gethostbyname" to check for -lnsl.
13169 # 2. Use each function name only once: can't redo a check because
13170 # autoconf caches the results of the last check and won't redo it.
13171 # 3. Use -lnsl and -lsocket only if they supply procedures that
13172 # aren't already present in the normal libraries. This is because
13173 # IRIX 5.2 has libraries, but they aren't needed and they're
13174 # bogus: they goof up name resolution if used.
13175 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
13176 # To get around this problem, check for both libraries together
13177 # if -lsocket doesn't work by itself.
13178 #--------------------------------------------------------------------
13180 echo "$as_me:$LINENO: checking for socket libraries" >&5
13181 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
13182 if test "${gcj_cv_lib_sockets+set}" = set; then
13183 echo $ECHO_N "(cached) $ECHO_C" >&6
13184 else
13185 gcj_cv_lib_sockets=
13186 gcj_checkBoth=0
13187 unset ac_cv_func_connect
13188 echo "$as_me:$LINENO: checking for connect" >&5
13189 echo $ECHO_N "checking for connect... $ECHO_C" >&6
13190 if test "${ac_cv_func_connect+set}" = set; then
13191 echo $ECHO_N "(cached) $ECHO_C" >&6
13192 else
13193 if test x$gcc_no_link = xyes; then
13194 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13195 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13196 { (exit 1); exit 1; }; }
13198 cat >conftest.$ac_ext <<_ACEOF
13199 /* confdefs.h. */
13200 _ACEOF
13201 cat confdefs.h >>conftest.$ac_ext
13202 cat >>conftest.$ac_ext <<_ACEOF
13203 /* end confdefs.h. */
13204 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
13205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13206 #define connect innocuous_connect
13208 /* System header to define __stub macros and hopefully few prototypes,
13209 which can conflict with char connect (); below.
13210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13211 <limits.h> exists even on freestanding compilers. */
13213 #ifdef __STDC__
13214 # include <limits.h>
13215 #else
13216 # include <assert.h>
13217 #endif
13219 #undef connect
13221 /* Override any gcc2 internal prototype to avoid an error. */
13222 #ifdef __cplusplus
13223 extern "C"
13225 #endif
13226 /* We use char because int might match the return type of a gcc2
13227 builtin and then its argument prototype would still apply. */
13228 char connect ();
13229 /* The GNU C library defines this for functions which it implements
13230 to always fail with ENOSYS. Some functions are actually named
13231 something starting with __ and the normal name is an alias. */
13232 #if defined (__stub_connect) || defined (__stub___connect)
13233 choke me
13234 #else
13235 char (*f) () = connect;
13236 #endif
13237 #ifdef __cplusplus
13239 #endif
13242 main ()
13244 return f != connect;
13246 return 0;
13248 _ACEOF
13249 rm -f conftest.$ac_objext conftest$ac_exeext
13250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13251 (eval $ac_link) 2>conftest.er1
13252 ac_status=$?
13253 grep -v '^ *+' conftest.er1 >conftest.err
13254 rm -f conftest.er1
13255 cat conftest.err >&5
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); } &&
13258 { ac_try='test -z "$ac_c_werror_flag"
13259 || test ! -s conftest.err'
13260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13261 (eval $ac_try) 2>&5
13262 ac_status=$?
13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); }; } &&
13265 { ac_try='test -s conftest$ac_exeext'
13266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13267 (eval $ac_try) 2>&5
13268 ac_status=$?
13269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 (exit $ac_status); }; }; then
13271 ac_cv_func_connect=yes
13272 else
13273 echo "$as_me: failed program was:" >&5
13274 sed 's/^/| /' conftest.$ac_ext >&5
13276 ac_cv_func_connect=no
13278 rm -f conftest.err conftest.$ac_objext \
13279 conftest$ac_exeext conftest.$ac_ext
13281 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
13282 echo "${ECHO_T}$ac_cv_func_connect" >&6
13283 if test $ac_cv_func_connect = yes; then
13284 gcj_checkSocket=0
13285 else
13286 gcj_checkSocket=1
13289 if test "$gcj_checkSocket" = 1; then
13290 unset ac_cv_func_connect
13291 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
13292 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
13293 if test "${ac_cv_lib_socket_main+set}" = set; then
13294 echo $ECHO_N "(cached) $ECHO_C" >&6
13295 else
13296 ac_check_lib_save_LIBS=$LIBS
13297 LIBS="-lsocket $LIBS"
13298 if test x$gcc_no_link = xyes; then
13299 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13300 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13301 { (exit 1); exit 1; }; }
13303 cat >conftest.$ac_ext <<_ACEOF
13304 /* confdefs.h. */
13305 _ACEOF
13306 cat confdefs.h >>conftest.$ac_ext
13307 cat >>conftest.$ac_ext <<_ACEOF
13308 /* end confdefs.h. */
13312 main ()
13314 main ();
13316 return 0;
13318 _ACEOF
13319 rm -f conftest.$ac_objext conftest$ac_exeext
13320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13321 (eval $ac_link) 2>conftest.er1
13322 ac_status=$?
13323 grep -v '^ *+' conftest.er1 >conftest.err
13324 rm -f conftest.er1
13325 cat conftest.err >&5
13326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327 (exit $ac_status); } &&
13328 { ac_try='test -z "$ac_c_werror_flag"
13329 || test ! -s conftest.err'
13330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13331 (eval $ac_try) 2>&5
13332 ac_status=$?
13333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334 (exit $ac_status); }; } &&
13335 { ac_try='test -s conftest$ac_exeext'
13336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13337 (eval $ac_try) 2>&5
13338 ac_status=$?
13339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340 (exit $ac_status); }; }; then
13341 ac_cv_lib_socket_main=yes
13342 else
13343 echo "$as_me: failed program was:" >&5
13344 sed 's/^/| /' conftest.$ac_ext >&5
13346 ac_cv_lib_socket_main=no
13348 rm -f conftest.err conftest.$ac_objext \
13349 conftest$ac_exeext conftest.$ac_ext
13350 LIBS=$ac_check_lib_save_LIBS
13352 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
13353 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
13354 if test $ac_cv_lib_socket_main = yes; then
13355 gcj_cv_lib_sockets="-lsocket"
13356 else
13357 gcj_checkBoth=1
13361 if test "$gcj_checkBoth" = 1; then
13362 gcj_oldLibs=$LIBS
13363 LIBS="$LIBS -lsocket -lnsl"
13364 unset ac_cv_func_accept
13365 echo "$as_me:$LINENO: checking for accept" >&5
13366 echo $ECHO_N "checking for accept... $ECHO_C" >&6
13367 if test "${ac_cv_func_accept+set}" = set; then
13368 echo $ECHO_N "(cached) $ECHO_C" >&6
13369 else
13370 if test x$gcc_no_link = xyes; then
13371 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13372 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13373 { (exit 1); exit 1; }; }
13375 cat >conftest.$ac_ext <<_ACEOF
13376 /* confdefs.h. */
13377 _ACEOF
13378 cat confdefs.h >>conftest.$ac_ext
13379 cat >>conftest.$ac_ext <<_ACEOF
13380 /* end confdefs.h. */
13381 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
13382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13383 #define accept innocuous_accept
13385 /* System header to define __stub macros and hopefully few prototypes,
13386 which can conflict with char accept (); below.
13387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13388 <limits.h> exists even on freestanding compilers. */
13390 #ifdef __STDC__
13391 # include <limits.h>
13392 #else
13393 # include <assert.h>
13394 #endif
13396 #undef accept
13398 /* Override any gcc2 internal prototype to avoid an error. */
13399 #ifdef __cplusplus
13400 extern "C"
13402 #endif
13403 /* We use char because int might match the return type of a gcc2
13404 builtin and then its argument prototype would still apply. */
13405 char accept ();
13406 /* The GNU C library defines this for functions which it implements
13407 to always fail with ENOSYS. Some functions are actually named
13408 something starting with __ and the normal name is an alias. */
13409 #if defined (__stub_accept) || defined (__stub___accept)
13410 choke me
13411 #else
13412 char (*f) () = accept;
13413 #endif
13414 #ifdef __cplusplus
13416 #endif
13419 main ()
13421 return f != accept;
13423 return 0;
13425 _ACEOF
13426 rm -f conftest.$ac_objext conftest$ac_exeext
13427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13428 (eval $ac_link) 2>conftest.er1
13429 ac_status=$?
13430 grep -v '^ *+' conftest.er1 >conftest.err
13431 rm -f conftest.er1
13432 cat conftest.err >&5
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); } &&
13435 { ac_try='test -z "$ac_c_werror_flag"
13436 || test ! -s conftest.err'
13437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13438 (eval $ac_try) 2>&5
13439 ac_status=$?
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); }; } &&
13442 { ac_try='test -s conftest$ac_exeext'
13443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13444 (eval $ac_try) 2>&5
13445 ac_status=$?
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); }; }; then
13448 ac_cv_func_accept=yes
13449 else
13450 echo "$as_me: failed program was:" >&5
13451 sed 's/^/| /' conftest.$ac_ext >&5
13453 ac_cv_func_accept=no
13455 rm -f conftest.err conftest.$ac_objext \
13456 conftest$ac_exeext conftest.$ac_ext
13458 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
13459 echo "${ECHO_T}$ac_cv_func_accept" >&6
13460 if test $ac_cv_func_accept = yes; then
13461 gcj_checkNsl=0
13462 gcj_cv_lib_sockets="-lsocket -lnsl"
13465 unset ac_cv_func_accept
13466 LIBS=$gcj_oldLibs
13468 unset ac_cv_func_gethostbyname
13469 gcj_oldLibs=$LIBS
13470 LIBS="$LIBS $gcj_cv_lib_sockets"
13471 echo "$as_me:$LINENO: checking for gethostbyname" >&5
13472 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
13473 if test "${ac_cv_func_gethostbyname+set}" = set; then
13474 echo $ECHO_N "(cached) $ECHO_C" >&6
13475 else
13476 if test x$gcc_no_link = xyes; then
13477 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13478 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13479 { (exit 1); exit 1; }; }
13481 cat >conftest.$ac_ext <<_ACEOF
13482 /* confdefs.h. */
13483 _ACEOF
13484 cat confdefs.h >>conftest.$ac_ext
13485 cat >>conftest.$ac_ext <<_ACEOF
13486 /* end confdefs.h. */
13487 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
13488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13489 #define gethostbyname innocuous_gethostbyname
13491 /* System header to define __stub macros and hopefully few prototypes,
13492 which can conflict with char gethostbyname (); below.
13493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13494 <limits.h> exists even on freestanding compilers. */
13496 #ifdef __STDC__
13497 # include <limits.h>
13498 #else
13499 # include <assert.h>
13500 #endif
13502 #undef gethostbyname
13504 /* Override any gcc2 internal prototype to avoid an error. */
13505 #ifdef __cplusplus
13506 extern "C"
13508 #endif
13509 /* We use char because int might match the return type of a gcc2
13510 builtin and then its argument prototype would still apply. */
13511 char gethostbyname ();
13512 /* The GNU C library defines this for functions which it implements
13513 to always fail with ENOSYS. Some functions are actually named
13514 something starting with __ and the normal name is an alias. */
13515 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13516 choke me
13517 #else
13518 char (*f) () = gethostbyname;
13519 #endif
13520 #ifdef __cplusplus
13522 #endif
13525 main ()
13527 return f != gethostbyname;
13529 return 0;
13531 _ACEOF
13532 rm -f conftest.$ac_objext conftest$ac_exeext
13533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13534 (eval $ac_link) 2>conftest.er1
13535 ac_status=$?
13536 grep -v '^ *+' conftest.er1 >conftest.err
13537 rm -f conftest.er1
13538 cat conftest.err >&5
13539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540 (exit $ac_status); } &&
13541 { ac_try='test -z "$ac_c_werror_flag"
13542 || test ! -s conftest.err'
13543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13544 (eval $ac_try) 2>&5
13545 ac_status=$?
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); }; } &&
13548 { ac_try='test -s conftest$ac_exeext'
13549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13550 (eval $ac_try) 2>&5
13551 ac_status=$?
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); }; }; then
13554 ac_cv_func_gethostbyname=yes
13555 else
13556 echo "$as_me: failed program was:" >&5
13557 sed 's/^/| /' conftest.$ac_ext >&5
13559 ac_cv_func_gethostbyname=no
13561 rm -f conftest.err conftest.$ac_objext \
13562 conftest$ac_exeext conftest.$ac_ext
13564 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
13565 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
13566 if test $ac_cv_func_gethostbyname = yes; then
13568 else
13569 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
13570 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
13571 if test "${ac_cv_lib_nsl_main+set}" = set; then
13572 echo $ECHO_N "(cached) $ECHO_C" >&6
13573 else
13574 ac_check_lib_save_LIBS=$LIBS
13575 LIBS="-lnsl $LIBS"
13576 if test x$gcc_no_link = xyes; then
13577 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13578 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13579 { (exit 1); exit 1; }; }
13581 cat >conftest.$ac_ext <<_ACEOF
13582 /* confdefs.h. */
13583 _ACEOF
13584 cat confdefs.h >>conftest.$ac_ext
13585 cat >>conftest.$ac_ext <<_ACEOF
13586 /* end confdefs.h. */
13590 main ()
13592 main ();
13594 return 0;
13596 _ACEOF
13597 rm -f conftest.$ac_objext conftest$ac_exeext
13598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13599 (eval $ac_link) 2>conftest.er1
13600 ac_status=$?
13601 grep -v '^ *+' conftest.er1 >conftest.err
13602 rm -f conftest.er1
13603 cat conftest.err >&5
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 (exit $ac_status); } &&
13606 { ac_try='test -z "$ac_c_werror_flag"
13607 || test ! -s conftest.err'
13608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13609 (eval $ac_try) 2>&5
13610 ac_status=$?
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); }; } &&
13613 { ac_try='test -s conftest$ac_exeext'
13614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13615 (eval $ac_try) 2>&5
13616 ac_status=$?
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); }; }; then
13619 ac_cv_lib_nsl_main=yes
13620 else
13621 echo "$as_me: failed program was:" >&5
13622 sed 's/^/| /' conftest.$ac_ext >&5
13624 ac_cv_lib_nsl_main=no
13626 rm -f conftest.err conftest.$ac_objext \
13627 conftest$ac_exeext conftest.$ac_ext
13628 LIBS=$ac_check_lib_save_LIBS
13630 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
13631 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
13632 if test $ac_cv_lib_nsl_main = yes; then
13633 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
13638 unset ac_cv_func_gethostbyname
13639 LIBS=$gcj_oldLIBS
13642 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
13643 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
13644 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
13646 if test "$with_system_zlib" = yes; then
13647 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
13648 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
13649 if test "${ac_cv_lib_z_deflate+set}" = set; then
13650 echo $ECHO_N "(cached) $ECHO_C" >&6
13651 else
13652 ac_check_lib_save_LIBS=$LIBS
13653 LIBS="-lz $LIBS"
13654 if test x$gcc_no_link = xyes; then
13655 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13656 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13657 { (exit 1); exit 1; }; }
13659 cat >conftest.$ac_ext <<_ACEOF
13660 /* confdefs.h. */
13661 _ACEOF
13662 cat confdefs.h >>conftest.$ac_ext
13663 cat >>conftest.$ac_ext <<_ACEOF
13664 /* end confdefs.h. */
13666 /* Override any gcc2 internal prototype to avoid an error. */
13667 #ifdef __cplusplus
13668 extern "C"
13669 #endif
13670 /* We use char because int might match the return type of a gcc2
13671 builtin and then its argument prototype would still apply. */
13672 char deflate ();
13674 main ()
13676 deflate ();
13678 return 0;
13680 _ACEOF
13681 rm -f conftest.$ac_objext conftest$ac_exeext
13682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13683 (eval $ac_link) 2>conftest.er1
13684 ac_status=$?
13685 grep -v '^ *+' conftest.er1 >conftest.err
13686 rm -f conftest.er1
13687 cat conftest.err >&5
13688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); } &&
13690 { ac_try='test -z "$ac_c_werror_flag"
13691 || test ! -s conftest.err'
13692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13693 (eval $ac_try) 2>&5
13694 ac_status=$?
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 (exit $ac_status); }; } &&
13697 { ac_try='test -s conftest$ac_exeext'
13698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13699 (eval $ac_try) 2>&5
13700 ac_status=$?
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); }; }; then
13703 ac_cv_lib_z_deflate=yes
13704 else
13705 echo "$as_me: failed program was:" >&5
13706 sed 's/^/| /' conftest.$ac_ext >&5
13708 ac_cv_lib_z_deflate=no
13710 rm -f conftest.err conftest.$ac_objext \
13711 conftest$ac_exeext conftest.$ac_ext
13712 LIBS=$ac_check_lib_save_LIBS
13714 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
13715 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
13716 if test $ac_cv_lib_z_deflate = yes; then
13717 ZLIBSPEC=-lz
13718 else
13719 ZLIBSPEC=
13724 # Test for Gtk stuff, if asked for.
13725 if test "$use_gtk_awt" = yes; then
13727 succeeded=no
13729 if test -z "$PKG_CONFIG"; then
13730 # Extract the first word of "pkg-config", so it can be a program name with args.
13731 set dummy pkg-config; ac_word=$2
13732 echo "$as_me:$LINENO: checking for $ac_word" >&5
13733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13734 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13735 echo $ECHO_N "(cached) $ECHO_C" >&6
13736 else
13737 case $PKG_CONFIG in
13738 [\\/]* | ?:[\\/]*)
13739 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13743 for as_dir in $PATH
13745 IFS=$as_save_IFS
13746 test -z "$as_dir" && as_dir=.
13747 for ac_exec_ext in '' $ac_executable_extensions; do
13748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13749 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13751 break 2
13753 done
13754 done
13756 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13758 esac
13760 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13762 if test -n "$PKG_CONFIG"; then
13763 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13764 echo "${ECHO_T}$PKG_CONFIG" >&6
13765 else
13766 echo "$as_me:$LINENO: result: no" >&5
13767 echo "${ECHO_T}no" >&6
13772 if test "$PKG_CONFIG" = "no" ; then
13773 echo "*** The pkg-config script could not be found. Make sure it is"
13774 echo "*** in your path, or set the PKG_CONFIG environment variable"
13775 echo "*** to the full path to pkg-config."
13776 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13777 else
13778 PKG_CONFIG_MIN_VERSION=0.9.0
13779 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13780 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
13781 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
13783 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
13784 echo "$as_me:$LINENO: result: yes" >&5
13785 echo "${ECHO_T}yes" >&6
13786 succeeded=yes
13788 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
13789 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
13790 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
13791 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
13792 echo "${ECHO_T}$GTK_CFLAGS" >&6
13794 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
13795 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
13796 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
13797 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
13798 echo "${ECHO_T}$GTK_LIBS" >&6
13799 else
13800 GTK_CFLAGS=""
13801 GTK_LIBS=""
13802 ## If we have a custom action on failure, don't print errors, but
13803 ## do set a variable so people can do so.
13804 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
13805 echo $GTK_PKG_ERRORS
13810 else
13811 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13812 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13816 if test $succeeded = yes; then
13818 else
13819 { { 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
13820 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;}
13821 { (exit 1); exit 1; }; }
13828 succeeded=no
13830 if test -z "$PKG_CONFIG"; then
13831 # Extract the first word of "pkg-config", so it can be a program name with args.
13832 set dummy pkg-config; ac_word=$2
13833 echo "$as_me:$LINENO: checking for $ac_word" >&5
13834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13835 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13836 echo $ECHO_N "(cached) $ECHO_C" >&6
13837 else
13838 case $PKG_CONFIG in
13839 [\\/]* | ?:[\\/]*)
13840 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13844 for as_dir in $PATH
13846 IFS=$as_save_IFS
13847 test -z "$as_dir" && as_dir=.
13848 for ac_exec_ext in '' $ac_executable_extensions; do
13849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13850 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13852 break 2
13854 done
13855 done
13857 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13859 esac
13861 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13863 if test -n "$PKG_CONFIG"; then
13864 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13865 echo "${ECHO_T}$PKG_CONFIG" >&6
13866 else
13867 echo "$as_me:$LINENO: result: no" >&5
13868 echo "${ECHO_T}no" >&6
13873 if test "$PKG_CONFIG" = "no" ; then
13874 echo "*** The pkg-config script could not be found. Make sure it is"
13875 echo "*** in your path, or set the PKG_CONFIG environment variable"
13876 echo "*** to the full path to pkg-config."
13877 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13878 else
13879 PKG_CONFIG_MIN_VERSION=0.9.0
13880 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13881 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
13882 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
13884 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
13885 echo "$as_me:$LINENO: result: yes" >&5
13886 echo "${ECHO_T}yes" >&6
13887 succeeded=yes
13889 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
13890 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
13891 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13892 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
13893 echo "${ECHO_T}$GLIB_CFLAGS" >&6
13895 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
13896 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
13897 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13898 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
13899 echo "${ECHO_T}$GLIB_LIBS" >&6
13900 else
13901 GLIB_CFLAGS=""
13902 GLIB_LIBS=""
13903 ## If we have a custom action on failure, don't print errors, but
13904 ## do set a variable so people can do so.
13905 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13906 echo $GLIB_PKG_ERRORS
13911 else
13912 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13913 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13917 if test $succeeded = yes; then
13919 else
13920 { { 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
13921 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;}
13922 { (exit 1); exit 1; }; }
13929 succeeded=no
13931 if test -z "$PKG_CONFIG"; then
13932 # Extract the first word of "pkg-config", so it can be a program name with args.
13933 set dummy pkg-config; ac_word=$2
13934 echo "$as_me:$LINENO: checking for $ac_word" >&5
13935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13936 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13937 echo $ECHO_N "(cached) $ECHO_C" >&6
13938 else
13939 case $PKG_CONFIG in
13940 [\\/]* | ?:[\\/]*)
13941 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13945 for as_dir in $PATH
13947 IFS=$as_save_IFS
13948 test -z "$as_dir" && as_dir=.
13949 for ac_exec_ext in '' $ac_executable_extensions; do
13950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13951 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13953 break 2
13955 done
13956 done
13958 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13960 esac
13962 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13964 if test -n "$PKG_CONFIG"; then
13965 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13966 echo "${ECHO_T}$PKG_CONFIG" >&6
13967 else
13968 echo "$as_me:$LINENO: result: no" >&5
13969 echo "${ECHO_T}no" >&6
13974 if test "$PKG_CONFIG" = "no" ; then
13975 echo "*** The pkg-config script could not be found. Make sure it is"
13976 echo "*** in your path, or set the PKG_CONFIG environment variable"
13977 echo "*** to the full path to pkg-config."
13978 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13979 else
13980 PKG_CONFIG_MIN_VERSION=0.9.0
13981 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13982 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
13983 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
13985 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
13986 echo "$as_me:$LINENO: result: yes" >&5
13987 echo "${ECHO_T}yes" >&6
13988 succeeded=yes
13990 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
13991 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
13992 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
13993 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
13994 echo "${ECHO_T}$LIBART_CFLAGS" >&6
13996 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
13997 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
13998 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
13999 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
14000 echo "${ECHO_T}$LIBART_LIBS" >&6
14001 else
14002 LIBART_CFLAGS=""
14003 LIBART_LIBS=""
14004 ## If we have a custom action on failure, don't print errors, but
14005 ## do set a variable so people can do so.
14006 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
14007 echo $LIBART_PKG_ERRORS
14012 else
14013 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14014 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14018 if test $succeeded = yes; then
14020 else
14021 { { 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
14022 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;}
14023 { (exit 1); exit 1; }; }
14029 # We require the XTest Extension to support java.awt.Robot.
14030 echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
14031 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
14032 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
14033 echo $ECHO_N "(cached) $ECHO_C" >&6
14034 else
14035 ac_check_lib_save_LIBS=$LIBS
14036 LIBS="-lXtst ${X_LIBS} $LIBS"
14037 if test x$gcc_no_link = xyes; then
14038 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14039 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14040 { (exit 1); exit 1; }; }
14042 cat >conftest.$ac_ext <<_ACEOF
14043 /* confdefs.h. */
14044 _ACEOF
14045 cat confdefs.h >>conftest.$ac_ext
14046 cat >>conftest.$ac_ext <<_ACEOF
14047 /* end confdefs.h. */
14049 /* Override any gcc2 internal prototype to avoid an error. */
14050 #ifdef __cplusplus
14051 extern "C"
14052 #endif
14053 /* We use char because int might match the return type of a gcc2
14054 builtin and then its argument prototype would still apply. */
14055 char XTestQueryExtension ();
14057 main ()
14059 XTestQueryExtension ();
14061 return 0;
14063 _ACEOF
14064 rm -f conftest.$ac_objext conftest$ac_exeext
14065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14066 (eval $ac_link) 2>conftest.er1
14067 ac_status=$?
14068 grep -v '^ *+' conftest.er1 >conftest.err
14069 rm -f conftest.er1
14070 cat conftest.err >&5
14071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072 (exit $ac_status); } &&
14073 { ac_try='test -z "$ac_c_werror_flag"
14074 || test ! -s conftest.err'
14075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14076 (eval $ac_try) 2>&5
14077 ac_status=$?
14078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079 (exit $ac_status); }; } &&
14080 { ac_try='test -s conftest$ac_exeext'
14081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14082 (eval $ac_try) 2>&5
14083 ac_status=$?
14084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 (exit $ac_status); }; }; then
14086 ac_cv_lib_Xtst_XTestQueryExtension=yes
14087 else
14088 echo "$as_me: failed program was:" >&5
14089 sed 's/^/| /' conftest.$ac_ext >&5
14091 ac_cv_lib_Xtst_XTestQueryExtension=no
14093 rm -f conftest.err conftest.$ac_objext \
14094 conftest$ac_exeext conftest.$ac_ext
14095 LIBS=$ac_check_lib_save_LIBS
14097 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
14098 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
14099 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
14100 true
14101 else
14102 { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
14103 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
14104 { (exit 1); exit 1; }; }
14109 # On Solaris, and maybe other architectures, the Boehm collector
14110 # requires -ldl.
14111 if test "$GC" = boehm; then
14112 echo "$as_me:$LINENO: checking for main in -ldl" >&5
14113 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
14114 if test "${ac_cv_lib_dl_main+set}" = set; then
14115 echo $ECHO_N "(cached) $ECHO_C" >&6
14116 else
14117 ac_check_lib_save_LIBS=$LIBS
14118 LIBS="-ldl $LIBS"
14119 if test x$gcc_no_link = xyes; then
14120 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14121 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14122 { (exit 1); exit 1; }; }
14124 cat >conftest.$ac_ext <<_ACEOF
14125 /* confdefs.h. */
14126 _ACEOF
14127 cat confdefs.h >>conftest.$ac_ext
14128 cat >>conftest.$ac_ext <<_ACEOF
14129 /* end confdefs.h. */
14133 main ()
14135 main ();
14137 return 0;
14139 _ACEOF
14140 rm -f conftest.$ac_objext conftest$ac_exeext
14141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14142 (eval $ac_link) 2>conftest.er1
14143 ac_status=$?
14144 grep -v '^ *+' conftest.er1 >conftest.err
14145 rm -f conftest.er1
14146 cat conftest.err >&5
14147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148 (exit $ac_status); } &&
14149 { ac_try='test -z "$ac_c_werror_flag"
14150 || test ! -s conftest.err'
14151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14152 (eval $ac_try) 2>&5
14153 ac_status=$?
14154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155 (exit $ac_status); }; } &&
14156 { ac_try='test -s conftest$ac_exeext'
14157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14158 (eval $ac_try) 2>&5
14159 ac_status=$?
14160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); }; }; then
14162 ac_cv_lib_dl_main=yes
14163 else
14164 echo "$as_me: failed program was:" >&5
14165 sed 's/^/| /' conftest.$ac_ext >&5
14167 ac_cv_lib_dl_main=no
14169 rm -f conftest.err conftest.$ac_objext \
14170 conftest$ac_exeext conftest.$ac_ext
14171 LIBS=$ac_check_lib_save_LIBS
14173 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
14174 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
14175 if test $ac_cv_lib_dl_main = yes; then
14176 SYSTEMSPEC="$SYSTEMSPEC -ldl"
14182 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
14183 case $build in
14184 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
14185 *) CLASSPATH_SEPARATOR=':' ;;
14186 esac
14189 # We must search the source tree for java.lang, since we still don't
14190 # have libgcj.jar nor java/lang/*.class
14191 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
14192 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
14194 # Since some classes depend on this one, we need its source available
14195 # before we can do any GCJ compilation test :-(
14196 if test ! -f gnu/classpath/Configuration.java; then
14197 test -d gnu || mkdir gnu
14198 test -d gnu/classpath || mkdir gnu/classpath
14199 # Note that it is not crucial that all the values here be correct.
14200 sed -e "s,@prefix@,$prefix," \
14201 -e "s,@VERSION@,$VERSION," \
14202 -e "s,@LIBDEBUG@,false," \
14203 -e "s,@INIT_LOAD_LIBRARY@,false," \
14204 -e "s,@@,$LIBGCJDEBUG," \
14205 -e "s,@default_toolkit@,$TOOLKIT," \
14206 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
14207 -e "s,@GTK_CAIRO_ENABLED@,false," \
14208 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
14209 > gnu/classpath/Configuration.java
14210 # We do not want to redirect the output of the grep below to /dev/null,
14211 # but we add /dev/null to the input list so that grep will print the
14212 # filename of Configuration.java in case it finds any matches.
14213 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
14214 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
14215 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
14216 { (exit 1); exit 1; }; }
14220 if test -n "$ac_tool_prefix"; then
14221 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
14222 set dummy ${ac_tool_prefix}gcj; ac_word=$2
14223 echo "$as_me:$LINENO: checking for $ac_word" >&5
14224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14225 if test "${ac_cv_prog_GCJ+set}" = set; then
14226 echo $ECHO_N "(cached) $ECHO_C" >&6
14227 else
14228 if test -n "$GCJ"; then
14229 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
14230 else
14231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14232 for as_dir in $PATH
14234 IFS=$as_save_IFS
14235 test -z "$as_dir" && as_dir=.
14236 for ac_exec_ext in '' $ac_executable_extensions; do
14237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14238 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
14239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14240 break 2
14242 done
14243 done
14247 GCJ=$ac_cv_prog_GCJ
14248 if test -n "$GCJ"; then
14249 echo "$as_me:$LINENO: result: $GCJ" >&5
14250 echo "${ECHO_T}$GCJ" >&6
14251 else
14252 echo "$as_me:$LINENO: result: no" >&5
14253 echo "${ECHO_T}no" >&6
14257 if test -z "$ac_cv_prog_GCJ"; then
14258 ac_ct_GCJ=$GCJ
14259 # Extract the first word of "gcj", so it can be a program name with args.
14260 set dummy gcj; ac_word=$2
14261 echo "$as_me:$LINENO: checking for $ac_word" >&5
14262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14263 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
14264 echo $ECHO_N "(cached) $ECHO_C" >&6
14265 else
14266 if test -n "$ac_ct_GCJ"; then
14267 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
14268 else
14269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14270 for as_dir in $PATH
14272 IFS=$as_save_IFS
14273 test -z "$as_dir" && as_dir=.
14274 for ac_exec_ext in '' $ac_executable_extensions; do
14275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14276 ac_cv_prog_ac_ct_GCJ="gcj"
14277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14278 break 2
14280 done
14281 done
14283 test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
14286 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
14287 if test -n "$ac_ct_GCJ"; then
14288 echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
14289 echo "${ECHO_T}$ac_ct_GCJ" >&6
14290 else
14291 echo "$as_me:$LINENO: result: no" >&5
14292 echo "${ECHO_T}no" >&6
14295 GCJ=$ac_ct_GCJ
14296 else
14297 GCJ="$ac_cv_prog_GCJ"
14300 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
14305 # Now remove it.
14306 rm -f gnu/classpath/Configuration.java
14308 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
14310 echo "$as_me:$LINENO: checking for void *" >&5
14311 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14312 if test "${ac_cv_type_void_p+set}" = set; then
14313 echo $ECHO_N "(cached) $ECHO_C" >&6
14314 else
14315 cat >conftest.$ac_ext <<_ACEOF
14316 /* confdefs.h. */
14317 _ACEOF
14318 cat confdefs.h >>conftest.$ac_ext
14319 cat >>conftest.$ac_ext <<_ACEOF
14320 /* end confdefs.h. */
14321 $ac_includes_default
14323 main ()
14325 if ((void * *) 0)
14326 return 0;
14327 if (sizeof (void *))
14328 return 0;
14330 return 0;
14332 _ACEOF
14333 rm -f conftest.$ac_objext
14334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14335 (eval $ac_compile) 2>conftest.er1
14336 ac_status=$?
14337 grep -v '^ *+' conftest.er1 >conftest.err
14338 rm -f conftest.er1
14339 cat conftest.err >&5
14340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341 (exit $ac_status); } &&
14342 { ac_try='test -z "$ac_c_werror_flag"
14343 || test ! -s conftest.err'
14344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14345 (eval $ac_try) 2>&5
14346 ac_status=$?
14347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348 (exit $ac_status); }; } &&
14349 { ac_try='test -s conftest.$ac_objext'
14350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14351 (eval $ac_try) 2>&5
14352 ac_status=$?
14353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 (exit $ac_status); }; }; then
14355 ac_cv_type_void_p=yes
14356 else
14357 echo "$as_me: failed program was:" >&5
14358 sed 's/^/| /' conftest.$ac_ext >&5
14360 ac_cv_type_void_p=no
14362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14364 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14365 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14367 echo "$as_me:$LINENO: checking size of void *" >&5
14368 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14369 if test "${ac_cv_sizeof_void_p+set}" = set; then
14370 echo $ECHO_N "(cached) $ECHO_C" >&6
14371 else
14372 if test "$ac_cv_type_void_p" = yes; then
14373 # The cast to unsigned long works around a bug in the HP C Compiler
14374 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14375 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14376 # This bug is HP SR number 8606223364.
14377 if test "$cross_compiling" = yes; then
14378 # Depending upon the size, compute the lo and hi bounds.
14379 cat >conftest.$ac_ext <<_ACEOF
14380 /* confdefs.h. */
14381 _ACEOF
14382 cat confdefs.h >>conftest.$ac_ext
14383 cat >>conftest.$ac_ext <<_ACEOF
14384 /* end confdefs.h. */
14385 $ac_includes_default
14387 main ()
14389 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14390 test_array [0] = 0
14393 return 0;
14395 _ACEOF
14396 rm -f conftest.$ac_objext
14397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14398 (eval $ac_compile) 2>conftest.er1
14399 ac_status=$?
14400 grep -v '^ *+' conftest.er1 >conftest.err
14401 rm -f conftest.er1
14402 cat conftest.err >&5
14403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404 (exit $ac_status); } &&
14405 { ac_try='test -z "$ac_c_werror_flag"
14406 || test ! -s conftest.err'
14407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14408 (eval $ac_try) 2>&5
14409 ac_status=$?
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); }; } &&
14412 { ac_try='test -s conftest.$ac_objext'
14413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14414 (eval $ac_try) 2>&5
14415 ac_status=$?
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); }; }; then
14418 ac_lo=0 ac_mid=0
14419 while :; do
14420 cat >conftest.$ac_ext <<_ACEOF
14421 /* confdefs.h. */
14422 _ACEOF
14423 cat confdefs.h >>conftest.$ac_ext
14424 cat >>conftest.$ac_ext <<_ACEOF
14425 /* end confdefs.h. */
14426 $ac_includes_default
14428 main ()
14430 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14431 test_array [0] = 0
14434 return 0;
14436 _ACEOF
14437 rm -f conftest.$ac_objext
14438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14439 (eval $ac_compile) 2>conftest.er1
14440 ac_status=$?
14441 grep -v '^ *+' conftest.er1 >conftest.err
14442 rm -f conftest.er1
14443 cat conftest.err >&5
14444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445 (exit $ac_status); } &&
14446 { ac_try='test -z "$ac_c_werror_flag"
14447 || test ! -s conftest.err'
14448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14449 (eval $ac_try) 2>&5
14450 ac_status=$?
14451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452 (exit $ac_status); }; } &&
14453 { ac_try='test -s conftest.$ac_objext'
14454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14455 (eval $ac_try) 2>&5
14456 ac_status=$?
14457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458 (exit $ac_status); }; }; then
14459 ac_hi=$ac_mid; break
14460 else
14461 echo "$as_me: failed program was:" >&5
14462 sed 's/^/| /' conftest.$ac_ext >&5
14464 ac_lo=`expr $ac_mid + 1`
14465 if test $ac_lo -le $ac_mid; then
14466 ac_lo= ac_hi=
14467 break
14469 ac_mid=`expr 2 '*' $ac_mid + 1`
14471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14472 done
14473 else
14474 echo "$as_me: failed program was:" >&5
14475 sed 's/^/| /' conftest.$ac_ext >&5
14477 cat >conftest.$ac_ext <<_ACEOF
14478 /* confdefs.h. */
14479 _ACEOF
14480 cat confdefs.h >>conftest.$ac_ext
14481 cat >>conftest.$ac_ext <<_ACEOF
14482 /* end confdefs.h. */
14483 $ac_includes_default
14485 main ()
14487 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14488 test_array [0] = 0
14491 return 0;
14493 _ACEOF
14494 rm -f conftest.$ac_objext
14495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14496 (eval $ac_compile) 2>conftest.er1
14497 ac_status=$?
14498 grep -v '^ *+' conftest.er1 >conftest.err
14499 rm -f conftest.er1
14500 cat conftest.err >&5
14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 (exit $ac_status); } &&
14503 { ac_try='test -z "$ac_c_werror_flag"
14504 || test ! -s conftest.err'
14505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14506 (eval $ac_try) 2>&5
14507 ac_status=$?
14508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509 (exit $ac_status); }; } &&
14510 { ac_try='test -s conftest.$ac_objext'
14511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14512 (eval $ac_try) 2>&5
14513 ac_status=$?
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); }; }; then
14516 ac_hi=-1 ac_mid=-1
14517 while :; do
14518 cat >conftest.$ac_ext <<_ACEOF
14519 /* confdefs.h. */
14520 _ACEOF
14521 cat confdefs.h >>conftest.$ac_ext
14522 cat >>conftest.$ac_ext <<_ACEOF
14523 /* end confdefs.h. */
14524 $ac_includes_default
14526 main ()
14528 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14529 test_array [0] = 0
14532 return 0;
14534 _ACEOF
14535 rm -f conftest.$ac_objext
14536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14537 (eval $ac_compile) 2>conftest.er1
14538 ac_status=$?
14539 grep -v '^ *+' conftest.er1 >conftest.err
14540 rm -f conftest.er1
14541 cat conftest.err >&5
14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); } &&
14544 { ac_try='test -z "$ac_c_werror_flag"
14545 || test ! -s conftest.err'
14546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14547 (eval $ac_try) 2>&5
14548 ac_status=$?
14549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550 (exit $ac_status); }; } &&
14551 { ac_try='test -s conftest.$ac_objext'
14552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14553 (eval $ac_try) 2>&5
14554 ac_status=$?
14555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556 (exit $ac_status); }; }; then
14557 ac_lo=$ac_mid; break
14558 else
14559 echo "$as_me: failed program was:" >&5
14560 sed 's/^/| /' conftest.$ac_ext >&5
14562 ac_hi=`expr '(' $ac_mid ')' - 1`
14563 if test $ac_mid -le $ac_hi; then
14564 ac_lo= ac_hi=
14565 break
14567 ac_mid=`expr 2 '*' $ac_mid`
14569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14570 done
14571 else
14572 echo "$as_me: failed program was:" >&5
14573 sed 's/^/| /' conftest.$ac_ext >&5
14575 ac_lo= ac_hi=
14577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14580 # Binary search between lo and hi bounds.
14581 while test "x$ac_lo" != "x$ac_hi"; do
14582 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14583 cat >conftest.$ac_ext <<_ACEOF
14584 /* confdefs.h. */
14585 _ACEOF
14586 cat confdefs.h >>conftest.$ac_ext
14587 cat >>conftest.$ac_ext <<_ACEOF
14588 /* end confdefs.h. */
14589 $ac_includes_default
14591 main ()
14593 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14594 test_array [0] = 0
14597 return 0;
14599 _ACEOF
14600 rm -f conftest.$ac_objext
14601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14602 (eval $ac_compile) 2>conftest.er1
14603 ac_status=$?
14604 grep -v '^ *+' conftest.er1 >conftest.err
14605 rm -f conftest.er1
14606 cat conftest.err >&5
14607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608 (exit $ac_status); } &&
14609 { ac_try='test -z "$ac_c_werror_flag"
14610 || test ! -s conftest.err'
14611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14612 (eval $ac_try) 2>&5
14613 ac_status=$?
14614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615 (exit $ac_status); }; } &&
14616 { ac_try='test -s conftest.$ac_objext'
14617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14618 (eval $ac_try) 2>&5
14619 ac_status=$?
14620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621 (exit $ac_status); }; }; then
14622 ac_hi=$ac_mid
14623 else
14624 echo "$as_me: failed program was:" >&5
14625 sed 's/^/| /' conftest.$ac_ext >&5
14627 ac_lo=`expr '(' $ac_mid ')' + 1`
14629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14630 done
14631 case $ac_lo in
14632 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14633 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14634 See \`config.log' for more details." >&5
14635 echo "$as_me: error: cannot compute sizeof (void *), 77
14636 See \`config.log' for more details." >&2;}
14637 { (exit 1); exit 1; }; } ;;
14638 esac
14639 else
14640 if test "$cross_compiling" = yes; then
14641 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14642 See \`config.log' for more details." >&5
14643 echo "$as_me: error: cannot run test program while cross compiling
14644 See \`config.log' for more details." >&2;}
14645 { (exit 1); exit 1; }; }
14646 else
14647 cat >conftest.$ac_ext <<_ACEOF
14648 /* confdefs.h. */
14649 _ACEOF
14650 cat confdefs.h >>conftest.$ac_ext
14651 cat >>conftest.$ac_ext <<_ACEOF
14652 /* end confdefs.h. */
14653 $ac_includes_default
14654 long longval () { return (long) (sizeof (void *)); }
14655 unsigned long ulongval () { return (long) (sizeof (void *)); }
14656 #include <stdio.h>
14657 #include <stdlib.h>
14659 main ()
14662 FILE *f = fopen ("conftest.val", "w");
14663 if (! f)
14664 exit (1);
14665 if (((long) (sizeof (void *))) < 0)
14667 long i = longval ();
14668 if (i != ((long) (sizeof (void *))))
14669 exit (1);
14670 fprintf (f, "%ld\n", i);
14672 else
14674 unsigned long i = ulongval ();
14675 if (i != ((long) (sizeof (void *))))
14676 exit (1);
14677 fprintf (f, "%lu\n", i);
14679 exit (ferror (f) || fclose (f) != 0);
14682 return 0;
14684 _ACEOF
14685 rm -f conftest$ac_exeext
14686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14687 (eval $ac_link) 2>&5
14688 ac_status=$?
14689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14692 (eval $ac_try) 2>&5
14693 ac_status=$?
14694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695 (exit $ac_status); }; }; then
14696 ac_cv_sizeof_void_p=`cat conftest.val`
14697 else
14698 echo "$as_me: program exited with status $ac_status" >&5
14699 echo "$as_me: failed program was:" >&5
14700 sed 's/^/| /' conftest.$ac_ext >&5
14702 ( exit $ac_status )
14703 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14704 See \`config.log' for more details." >&5
14705 echo "$as_me: error: cannot compute sizeof (void *), 77
14706 See \`config.log' for more details." >&2;}
14707 { (exit 1); exit 1; }; }
14709 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14712 rm -f conftest.val
14713 else
14714 ac_cv_sizeof_void_p=0
14717 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14718 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14719 cat >>confdefs.h <<_ACEOF
14720 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14721 _ACEOF
14725 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14726 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
14727 if test "${ac_cv_c_bigendian+set}" = set; then
14728 echo $ECHO_N "(cached) $ECHO_C" >&6
14729 else
14730 # See if sys/param.h defines the BYTE_ORDER macro.
14731 cat >conftest.$ac_ext <<_ACEOF
14732 /* confdefs.h. */
14733 _ACEOF
14734 cat confdefs.h >>conftest.$ac_ext
14735 cat >>conftest.$ac_ext <<_ACEOF
14736 /* end confdefs.h. */
14737 #include <sys/types.h>
14738 #include <sys/param.h>
14741 main ()
14743 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14744 bogus endian macros
14745 #endif
14748 return 0;
14750 _ACEOF
14751 rm -f conftest.$ac_objext
14752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14753 (eval $ac_compile) 2>conftest.er1
14754 ac_status=$?
14755 grep -v '^ *+' conftest.er1 >conftest.err
14756 rm -f conftest.er1
14757 cat conftest.err >&5
14758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759 (exit $ac_status); } &&
14760 { ac_try='test -z "$ac_c_werror_flag"
14761 || test ! -s conftest.err'
14762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14763 (eval $ac_try) 2>&5
14764 ac_status=$?
14765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766 (exit $ac_status); }; } &&
14767 { ac_try='test -s conftest.$ac_objext'
14768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14769 (eval $ac_try) 2>&5
14770 ac_status=$?
14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772 (exit $ac_status); }; }; then
14773 # It does; now see whether it defined to BIG_ENDIAN or not.
14774 cat >conftest.$ac_ext <<_ACEOF
14775 /* confdefs.h. */
14776 _ACEOF
14777 cat confdefs.h >>conftest.$ac_ext
14778 cat >>conftest.$ac_ext <<_ACEOF
14779 /* end confdefs.h. */
14780 #include <sys/types.h>
14781 #include <sys/param.h>
14784 main ()
14786 #if BYTE_ORDER != BIG_ENDIAN
14787 not big endian
14788 #endif
14791 return 0;
14793 _ACEOF
14794 rm -f conftest.$ac_objext
14795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14796 (eval $ac_compile) 2>conftest.er1
14797 ac_status=$?
14798 grep -v '^ *+' conftest.er1 >conftest.err
14799 rm -f conftest.er1
14800 cat conftest.err >&5
14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802 (exit $ac_status); } &&
14803 { ac_try='test -z "$ac_c_werror_flag"
14804 || test ! -s conftest.err'
14805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14806 (eval $ac_try) 2>&5
14807 ac_status=$?
14808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809 (exit $ac_status); }; } &&
14810 { ac_try='test -s conftest.$ac_objext'
14811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14812 (eval $ac_try) 2>&5
14813 ac_status=$?
14814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815 (exit $ac_status); }; }; then
14816 ac_cv_c_bigendian=yes
14817 else
14818 echo "$as_me: failed program was:" >&5
14819 sed 's/^/| /' conftest.$ac_ext >&5
14821 ac_cv_c_bigendian=no
14823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14824 else
14825 echo "$as_me: failed program was:" >&5
14826 sed 's/^/| /' conftest.$ac_ext >&5
14828 # It does not; compile a test program.
14829 if test "$cross_compiling" = yes; then
14830 # try to guess the endianness by grepping values into an object file
14831 ac_cv_c_bigendian=unknown
14832 cat >conftest.$ac_ext <<_ACEOF
14833 /* confdefs.h. */
14834 _ACEOF
14835 cat confdefs.h >>conftest.$ac_ext
14836 cat >>conftest.$ac_ext <<_ACEOF
14837 /* end confdefs.h. */
14838 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14839 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14840 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14841 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14842 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14843 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14845 main ()
14847 _ascii (); _ebcdic ();
14849 return 0;
14851 _ACEOF
14852 rm -f conftest.$ac_objext
14853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14854 (eval $ac_compile) 2>conftest.er1
14855 ac_status=$?
14856 grep -v '^ *+' conftest.er1 >conftest.err
14857 rm -f conftest.er1
14858 cat conftest.err >&5
14859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860 (exit $ac_status); } &&
14861 { ac_try='test -z "$ac_c_werror_flag"
14862 || test ! -s conftest.err'
14863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14864 (eval $ac_try) 2>&5
14865 ac_status=$?
14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); }; } &&
14868 { ac_try='test -s conftest.$ac_objext'
14869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14870 (eval $ac_try) 2>&5
14871 ac_status=$?
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); }; }; then
14874 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14875 ac_cv_c_bigendian=yes
14877 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14878 if test "$ac_cv_c_bigendian" = unknown; then
14879 ac_cv_c_bigendian=no
14880 else
14881 # finding both strings is unlikely to happen, but who knows?
14882 ac_cv_c_bigendian=unknown
14885 else
14886 echo "$as_me: failed program was:" >&5
14887 sed 's/^/| /' conftest.$ac_ext >&5
14890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14891 else
14892 cat >conftest.$ac_ext <<_ACEOF
14893 /* confdefs.h. */
14894 _ACEOF
14895 cat confdefs.h >>conftest.$ac_ext
14896 cat >>conftest.$ac_ext <<_ACEOF
14897 /* end confdefs.h. */
14899 main ()
14901 /* Are we little or big endian? From Harbison&Steele. */
14902 union
14904 long l;
14905 char c[sizeof (long)];
14906 } u;
14907 u.l = 1;
14908 exit (u.c[sizeof (long) - 1] == 1);
14910 _ACEOF
14911 rm -f conftest$ac_exeext
14912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14913 (eval $ac_link) 2>&5
14914 ac_status=$?
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14918 (eval $ac_try) 2>&5
14919 ac_status=$?
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); }; }; then
14922 ac_cv_c_bigendian=no
14923 else
14924 echo "$as_me: program exited with status $ac_status" >&5
14925 echo "$as_me: failed program was:" >&5
14926 sed 's/^/| /' conftest.$ac_ext >&5
14928 ( exit $ac_status )
14929 ac_cv_c_bigendian=yes
14931 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14936 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14937 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14938 case $ac_cv_c_bigendian in
14939 yes)
14941 cat >>confdefs.h <<\_ACEOF
14942 #define WORDS_BIGENDIAN 1
14943 _ACEOF
14948 { { echo "$as_me:$LINENO: error: unknown endianness
14949 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14950 echo "$as_me: error: unknown endianness
14951 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14952 { (exit 1); exit 1; }; } ;;
14953 esac
14956 ZLIBS=
14957 SYS_ZLIBS=
14958 ZINCS=
14960 if test -z "$ZLIBSPEC"; then
14961 # Use zlib from the GCC tree.
14962 ZINCS='-I$(top_srcdir)/../zlib'
14963 ZLIBS=../zlib/libzgcj_convenience.la
14964 else
14965 # System's zlib.
14966 SYS_ZLIBS="$ZLIBSPEC"
14979 if test "$NATIVE" = yes; then
14980 NATIVE_TRUE=
14981 NATIVE_FALSE='#'
14982 else
14983 NATIVE_TRUE='#'
14984 NATIVE_FALSE=
14989 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
14990 NEEDS_DATA_START_TRUE=
14991 NEEDS_DATA_START_FALSE='#'
14992 else
14993 NEEDS_DATA_START_TRUE='#'
14994 NEEDS_DATA_START_FALSE=
14999 # Process the option "--enable-version-specific-runtime-libs"
15000 # Calculate toolexeclibdir
15001 case ${version_specific_libs} in
15002 yes)
15003 # Need the gcc compiler version to know where to install libraries
15004 # and header files if --enable-version-specific-runtime-libs option
15005 # is selected.
15006 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
15007 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
15008 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
15009 toolexeclibdir=$toolexecmainlibdir
15012 if test -n "$with_cross_host" &&
15013 test x"$with_cross_host" != x"no"; then
15014 # Install a library built with a cross compiler in tooldir, not libdir.
15015 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
15016 toolexecmainlibdir='$(toolexecdir)/lib'
15017 else
15018 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
15019 toolexecmainlibdir='$(libdir)'
15021 multi_os_directory=`$CC -print-multi-os-directory`
15022 case $multi_os_directory in
15023 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
15024 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
15025 esac
15027 esac
15032 # Determine where the standard .db file and GNU Classpath JNI
15033 # libraries are found.
15034 multi_os_directory=`$CC -print-multi-os-directory`
15035 case $multi_os_directory in
15037 dbexecdir='$(libdir)/gcj-$(gcc_version)' # Avoid /.
15038 ac_configure_args="$ac_configure_args --with-native-libdir=\$\(libdir\)/gcj-`cat $srcdir/../gcc/BASE-VER`"
15041 dbexecdir='$(libdir)/'$multi_os_directory'/gcj-$(gcc_version)'
15042 ac_configure_args="$ac_configure_args --with-native-libdir=\$\(libdir\)/$multi_os_directory/gcj-`cat $srcdir/../gcc/BASE-VER`"
15044 esac
15047 # Determine gcj version number.
15048 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
15049 GCJVERSION=$gcjversion
15052 cat >>confdefs.h <<_ACEOF
15053 #define GCJVERSION "$GCJVERSION"
15054 _ACEOF
15058 cat >>confdefs.h <<\_ACEOF
15059 #define JV_VERSION "1.4.2"
15060 _ACEOF
15063 cat >>confdefs.h <<\_ACEOF
15064 #define JV_API_VERSION "1.4"
15065 _ACEOF
15069 case "${with_gxx_include_dir}" in
15070 yes)
15071 { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
15072 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
15073 { (exit 1); exit 1; }; }
15075 no | "")
15076 case "${enable_version_specific_runtime_libs}" in
15077 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
15079 libstdcxx_incdir='c++/$(gcc_version)'
15080 gxx_include_dir='include/$(libstdcxx_incdir)'
15081 if test -n "$with_cross_host" &&
15082 test x"$with_cross_host" != x"no"; then
15083 gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
15084 else
15085 gxx_include_dir='${prefix}/'"$gxx_include_dir"
15086 fi;;
15087 esac ;;
15088 *) gxx_include_dir=${with_gxx_include_dir} ;;
15089 esac
15094 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
15095 # On that system, sys/ioctl.h will not include sys/filio.h unless
15096 # BSD_COMP is defined; just including sys/filio.h is simpler.
15097 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
15098 # for now. If you change this, you also must update natFile.cc.
15121 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
15122 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
15123 sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
15124 pwd.h sys/config.h stdint.h langinfo.h locale.h \
15125 dirent.h sys/rw_lock.h ifaddrs.h
15127 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15129 echo "$as_me:$LINENO: checking for $ac_header" >&5
15130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15131 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15132 echo $ECHO_N "(cached) $ECHO_C" >&6
15134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15135 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15136 else
15137 # Is the header compilable?
15138 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15139 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15140 cat >conftest.$ac_ext <<_ACEOF
15141 /* confdefs.h. */
15142 _ACEOF
15143 cat confdefs.h >>conftest.$ac_ext
15144 cat >>conftest.$ac_ext <<_ACEOF
15145 /* end confdefs.h. */
15146 $ac_includes_default
15147 #include <$ac_header>
15148 _ACEOF
15149 rm -f conftest.$ac_objext
15150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15151 (eval $ac_compile) 2>conftest.er1
15152 ac_status=$?
15153 grep -v '^ *+' conftest.er1 >conftest.err
15154 rm -f conftest.er1
15155 cat conftest.err >&5
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); } &&
15158 { ac_try='test -z "$ac_c_werror_flag"
15159 || test ! -s conftest.err'
15160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15161 (eval $ac_try) 2>&5
15162 ac_status=$?
15163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); }; } &&
15165 { ac_try='test -s conftest.$ac_objext'
15166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15167 (eval $ac_try) 2>&5
15168 ac_status=$?
15169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); }; }; then
15171 ac_header_compiler=yes
15172 else
15173 echo "$as_me: failed program was:" >&5
15174 sed 's/^/| /' conftest.$ac_ext >&5
15176 ac_header_compiler=no
15178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15179 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15180 echo "${ECHO_T}$ac_header_compiler" >&6
15182 # Is the header present?
15183 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15184 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15185 cat >conftest.$ac_ext <<_ACEOF
15186 /* confdefs.h. */
15187 _ACEOF
15188 cat confdefs.h >>conftest.$ac_ext
15189 cat >>conftest.$ac_ext <<_ACEOF
15190 /* end confdefs.h. */
15191 #include <$ac_header>
15192 _ACEOF
15193 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15194 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15195 ac_status=$?
15196 grep -v '^ *+' conftest.er1 >conftest.err
15197 rm -f conftest.er1
15198 cat conftest.err >&5
15199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200 (exit $ac_status); } >/dev/null; then
15201 if test -s conftest.err; then
15202 ac_cpp_err=$ac_c_preproc_warn_flag
15203 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15204 else
15205 ac_cpp_err=
15207 else
15208 ac_cpp_err=yes
15210 if test -z "$ac_cpp_err"; then
15211 ac_header_preproc=yes
15212 else
15213 echo "$as_me: failed program was:" >&5
15214 sed 's/^/| /' conftest.$ac_ext >&5
15216 ac_header_preproc=no
15218 rm -f conftest.err conftest.$ac_ext
15219 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15220 echo "${ECHO_T}$ac_header_preproc" >&6
15222 # So? What about this header?
15223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15224 yes:no: )
15225 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15226 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15228 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15229 ac_header_preproc=yes
15231 no:yes:* )
15232 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15233 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15234 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15235 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15236 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15237 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15238 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15239 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15241 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15242 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15243 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15245 cat <<\_ASBOX
15246 ## ---------------------------------- ##
15247 ## Report this to the libjava lists. ##
15248 ## ---------------------------------- ##
15249 _ASBOX
15251 sed "s/^/$as_me: WARNING: /" >&2
15253 esac
15254 echo "$as_me:$LINENO: checking for $ac_header" >&5
15255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15257 echo $ECHO_N "(cached) $ECHO_C" >&6
15258 else
15259 eval "$as_ac_Header=\$ac_header_preproc"
15261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15265 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15266 cat >>confdefs.h <<_ACEOF
15267 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15268 _ACEOF
15272 done
15275 for ac_header in inttypes.h
15277 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15278 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15279 echo "$as_me:$LINENO: checking for $ac_header" >&5
15280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15281 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15282 echo $ECHO_N "(cached) $ECHO_C" >&6
15284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15285 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15286 else
15287 # Is the header compilable?
15288 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15289 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15290 cat >conftest.$ac_ext <<_ACEOF
15291 /* confdefs.h. */
15292 _ACEOF
15293 cat confdefs.h >>conftest.$ac_ext
15294 cat >>conftest.$ac_ext <<_ACEOF
15295 /* end confdefs.h. */
15296 $ac_includes_default
15297 #include <$ac_header>
15298 _ACEOF
15299 rm -f conftest.$ac_objext
15300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15301 (eval $ac_compile) 2>conftest.er1
15302 ac_status=$?
15303 grep -v '^ *+' conftest.er1 >conftest.err
15304 rm -f conftest.er1
15305 cat conftest.err >&5
15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); } &&
15308 { ac_try='test -z "$ac_c_werror_flag"
15309 || test ! -s conftest.err'
15310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15311 (eval $ac_try) 2>&5
15312 ac_status=$?
15313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314 (exit $ac_status); }; } &&
15315 { ac_try='test -s conftest.$ac_objext'
15316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15317 (eval $ac_try) 2>&5
15318 ac_status=$?
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); }; }; then
15321 ac_header_compiler=yes
15322 else
15323 echo "$as_me: failed program was:" >&5
15324 sed 's/^/| /' conftest.$ac_ext >&5
15326 ac_header_compiler=no
15328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15329 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15330 echo "${ECHO_T}$ac_header_compiler" >&6
15332 # Is the header present?
15333 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15334 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15335 cat >conftest.$ac_ext <<_ACEOF
15336 /* confdefs.h. */
15337 _ACEOF
15338 cat confdefs.h >>conftest.$ac_ext
15339 cat >>conftest.$ac_ext <<_ACEOF
15340 /* end confdefs.h. */
15341 #include <$ac_header>
15342 _ACEOF
15343 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15344 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15345 ac_status=$?
15346 grep -v '^ *+' conftest.er1 >conftest.err
15347 rm -f conftest.er1
15348 cat conftest.err >&5
15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350 (exit $ac_status); } >/dev/null; then
15351 if test -s conftest.err; then
15352 ac_cpp_err=$ac_c_preproc_warn_flag
15353 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15354 else
15355 ac_cpp_err=
15357 else
15358 ac_cpp_err=yes
15360 if test -z "$ac_cpp_err"; then
15361 ac_header_preproc=yes
15362 else
15363 echo "$as_me: failed program was:" >&5
15364 sed 's/^/| /' conftest.$ac_ext >&5
15366 ac_header_preproc=no
15368 rm -f conftest.err conftest.$ac_ext
15369 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15370 echo "${ECHO_T}$ac_header_preproc" >&6
15372 # So? What about this header?
15373 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15374 yes:no: )
15375 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15376 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15377 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15378 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15379 ac_header_preproc=yes
15381 no:yes:* )
15382 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15383 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15384 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15385 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15386 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15387 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15388 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15389 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15391 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15392 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15393 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15395 cat <<\_ASBOX
15396 ## ---------------------------------- ##
15397 ## Report this to the libjava lists. ##
15398 ## ---------------------------------- ##
15399 _ASBOX
15401 sed "s/^/$as_me: WARNING: /" >&2
15403 esac
15404 echo "$as_me:$LINENO: checking for $ac_header" >&5
15405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15407 echo $ECHO_N "(cached) $ECHO_C" >&6
15408 else
15409 eval "$as_ac_Header=\$ac_header_preproc"
15411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15412 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15415 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15416 cat >>confdefs.h <<_ACEOF
15417 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15418 _ACEOF
15421 cat >>confdefs.h <<\_ACEOF
15422 #define HAVE_INTTYPES_H 1
15423 _ACEOF
15426 cat >>confdefs.h <<\_ACEOF
15427 #define JV_HAVE_INTTYPES_H 1
15428 _ACEOF
15433 done
15435 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15436 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
15437 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15438 echo $ECHO_N "(cached) $ECHO_C" >&6
15439 else
15440 cat >conftest.$ac_ext <<_ACEOF
15441 /* confdefs.h. */
15442 _ACEOF
15443 cat confdefs.h >>conftest.$ac_ext
15444 cat >>conftest.$ac_ext <<_ACEOF
15445 /* end confdefs.h. */
15446 #include <sys/types.h>
15447 #include <sys/wait.h>
15448 #ifndef WEXITSTATUS
15449 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
15450 #endif
15451 #ifndef WIFEXITED
15452 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15453 #endif
15456 main ()
15458 int s;
15459 wait (&s);
15460 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15462 return 0;
15464 _ACEOF
15465 rm -f conftest.$ac_objext
15466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15467 (eval $ac_compile) 2>conftest.er1
15468 ac_status=$?
15469 grep -v '^ *+' conftest.er1 >conftest.err
15470 rm -f conftest.er1
15471 cat conftest.err >&5
15472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473 (exit $ac_status); } &&
15474 { ac_try='test -z "$ac_c_werror_flag"
15475 || test ! -s conftest.err'
15476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15477 (eval $ac_try) 2>&5
15478 ac_status=$?
15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480 (exit $ac_status); }; } &&
15481 { ac_try='test -s conftest.$ac_objext'
15482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15483 (eval $ac_try) 2>&5
15484 ac_status=$?
15485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486 (exit $ac_status); }; }; then
15487 ac_cv_header_sys_wait_h=yes
15488 else
15489 echo "$as_me: failed program was:" >&5
15490 sed 's/^/| /' conftest.$ac_ext >&5
15492 ac_cv_header_sys_wait_h=no
15494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15496 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15497 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
15498 if test $ac_cv_header_sys_wait_h = yes; then
15500 cat >>confdefs.h <<\_ACEOF
15501 #define HAVE_SYS_WAIT_H 1
15502 _ACEOF
15507 echo "$as_me:$LINENO: checking for ssize_t" >&5
15508 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15509 if test "${ac_cv_type_ssize_t+set}" = set; then
15510 echo $ECHO_N "(cached) $ECHO_C" >&6
15511 else
15512 cat >conftest.$ac_ext <<_ACEOF
15513 /* confdefs.h. */
15514 _ACEOF
15515 cat confdefs.h >>conftest.$ac_ext
15516 cat >>conftest.$ac_ext <<_ACEOF
15517 /* end confdefs.h. */
15518 $ac_includes_default
15520 main ()
15522 if ((ssize_t *) 0)
15523 return 0;
15524 if (sizeof (ssize_t))
15525 return 0;
15527 return 0;
15529 _ACEOF
15530 rm -f conftest.$ac_objext
15531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15532 (eval $ac_compile) 2>conftest.er1
15533 ac_status=$?
15534 grep -v '^ *+' conftest.er1 >conftest.err
15535 rm -f conftest.er1
15536 cat conftest.err >&5
15537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538 (exit $ac_status); } &&
15539 { ac_try='test -z "$ac_c_werror_flag"
15540 || test ! -s conftest.err'
15541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15542 (eval $ac_try) 2>&5
15543 ac_status=$?
15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); }; } &&
15546 { ac_try='test -s conftest.$ac_objext'
15547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15548 (eval $ac_try) 2>&5
15549 ac_status=$?
15550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551 (exit $ac_status); }; }; then
15552 ac_cv_type_ssize_t=yes
15553 else
15554 echo "$as_me: failed program was:" >&5
15555 sed 's/^/| /' conftest.$ac_ext >&5
15557 ac_cv_type_ssize_t=no
15559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15561 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
15562 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
15563 if test $ac_cv_type_ssize_t = yes; then
15565 else
15567 cat >>confdefs.h <<_ACEOF
15568 #define ssize_t int
15569 _ACEOF
15574 echo "$as_me:$LINENO: checking for in_addr_t" >&5
15575 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
15576 cat >conftest.$ac_ext <<_ACEOF
15577 /* confdefs.h. */
15578 _ACEOF
15579 cat confdefs.h >>conftest.$ac_ext
15580 cat >>conftest.$ac_ext <<_ACEOF
15581 /* end confdefs.h. */
15582 #include <sys/types.h>
15583 #if STDC_HEADERS
15584 #include <stdlib.h>
15585 #include <stddef.h>
15586 #endif
15587 #if HAVE_NETINET_IN_H
15588 #include <netinet/in.h>
15589 #endif
15591 main ()
15593 in_addr_t foo;
15595 return 0;
15597 _ACEOF
15598 rm -f conftest.$ac_objext
15599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15600 (eval $ac_compile) 2>conftest.er1
15601 ac_status=$?
15602 grep -v '^ *+' conftest.er1 >conftest.err
15603 rm -f conftest.er1
15604 cat conftest.err >&5
15605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606 (exit $ac_status); } &&
15607 { ac_try='test -z "$ac_c_werror_flag"
15608 || test ! -s conftest.err'
15609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15610 (eval $ac_try) 2>&5
15611 ac_status=$?
15612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613 (exit $ac_status); }; } &&
15614 { ac_try='test -s conftest.$ac_objext'
15615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15616 (eval $ac_try) 2>&5
15617 ac_status=$?
15618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619 (exit $ac_status); }; }; then
15621 cat >>confdefs.h <<\_ACEOF
15622 #define HAVE_IN_ADDR_T 1
15623 _ACEOF
15625 echo "$as_me:$LINENO: result: yes" >&5
15626 echo "${ECHO_T}yes" >&6
15627 else
15628 echo "$as_me: failed program was:" >&5
15629 sed 's/^/| /' conftest.$ac_ext >&5
15631 echo "$as_me:$LINENO: result: no" >&5
15632 echo "${ECHO_T}no" >&6
15634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15636 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
15637 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
15638 cat >conftest.$ac_ext <<_ACEOF
15639 /* confdefs.h. */
15640 _ACEOF
15641 cat confdefs.h >>conftest.$ac_ext
15642 cat >>conftest.$ac_ext <<_ACEOF
15643 /* end confdefs.h. */
15644 #include <netinet/in.h>
15646 main ()
15648 struct ip_mreq mreq;
15650 return 0;
15652 _ACEOF
15653 rm -f conftest.$ac_objext
15654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15655 (eval $ac_compile) 2>conftest.er1
15656 ac_status=$?
15657 grep -v '^ *+' conftest.er1 >conftest.err
15658 rm -f conftest.er1
15659 cat conftest.err >&5
15660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661 (exit $ac_status); } &&
15662 { ac_try='test -z "$ac_c_werror_flag"
15663 || test ! -s conftest.err'
15664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15665 (eval $ac_try) 2>&5
15666 ac_status=$?
15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668 (exit $ac_status); }; } &&
15669 { ac_try='test -s conftest.$ac_objext'
15670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15671 (eval $ac_try) 2>&5
15672 ac_status=$?
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); }; }; then
15676 cat >>confdefs.h <<\_ACEOF
15677 #define HAVE_STRUCT_IP_MREQ 1
15678 _ACEOF
15680 echo "$as_me:$LINENO: result: yes" >&5
15681 echo "${ECHO_T}yes" >&6
15682 else
15683 echo "$as_me: failed program was:" >&5
15684 sed 's/^/| /' conftest.$ac_ext >&5
15686 echo "$as_me:$LINENO: result: no" >&5
15687 echo "${ECHO_T}no" >&6
15689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15691 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
15692 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
15693 cat >conftest.$ac_ext <<_ACEOF
15694 /* confdefs.h. */
15695 _ACEOF
15696 cat confdefs.h >>conftest.$ac_ext
15697 cat >>conftest.$ac_ext <<_ACEOF
15698 /* end confdefs.h. */
15699 #include <netinet/in.h>
15701 main ()
15703 struct ipv6_mreq mreq6;
15705 return 0;
15707 _ACEOF
15708 rm -f conftest.$ac_objext
15709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15710 (eval $ac_compile) 2>conftest.er1
15711 ac_status=$?
15712 grep -v '^ *+' conftest.er1 >conftest.err
15713 rm -f conftest.er1
15714 cat conftest.err >&5
15715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716 (exit $ac_status); } &&
15717 { ac_try='test -z "$ac_c_werror_flag"
15718 || test ! -s conftest.err'
15719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15720 (eval $ac_try) 2>&5
15721 ac_status=$?
15722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723 (exit $ac_status); }; } &&
15724 { ac_try='test -s conftest.$ac_objext'
15725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15726 (eval $ac_try) 2>&5
15727 ac_status=$?
15728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); }; }; then
15731 cat >>confdefs.h <<\_ACEOF
15732 #define HAVE_STRUCT_IPV6_MREQ 1
15733 _ACEOF
15735 echo "$as_me:$LINENO: result: yes" >&5
15736 echo "${ECHO_T}yes" >&6
15737 else
15738 echo "$as_me: failed program was:" >&5
15739 sed 's/^/| /' conftest.$ac_ext >&5
15741 echo "$as_me:$LINENO: result: no" >&5
15742 echo "${ECHO_T}no" >&6
15744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15746 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
15747 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
15748 cat >conftest.$ac_ext <<_ACEOF
15749 /* confdefs.h. */
15750 _ACEOF
15751 cat confdefs.h >>conftest.$ac_ext
15752 cat >>conftest.$ac_ext <<_ACEOF
15753 /* end confdefs.h. */
15754 #include <netinet/in.h>
15756 main ()
15758 struct sockaddr_in6 addr6;
15760 return 0;
15762 _ACEOF
15763 rm -f conftest.$ac_objext
15764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15765 (eval $ac_compile) 2>conftest.er1
15766 ac_status=$?
15767 grep -v '^ *+' conftest.er1 >conftest.err
15768 rm -f conftest.er1
15769 cat conftest.err >&5
15770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771 (exit $ac_status); } &&
15772 { ac_try='test -z "$ac_c_werror_flag"
15773 || test ! -s conftest.err'
15774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15775 (eval $ac_try) 2>&5
15776 ac_status=$?
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); }; } &&
15779 { ac_try='test -s conftest.$ac_objext'
15780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15781 (eval $ac_try) 2>&5
15782 ac_status=$?
15783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784 (exit $ac_status); }; }; then
15786 cat >>confdefs.h <<\_ACEOF
15787 #define HAVE_INET6 1
15788 _ACEOF
15790 echo "$as_me:$LINENO: result: yes" >&5
15791 echo "${ECHO_T}yes" >&6
15792 else
15793 echo "$as_me: failed program was:" >&5
15794 sed 's/^/| /' conftest.$ac_ext >&5
15796 echo "$as_me:$LINENO: result: no" >&5
15797 echo "${ECHO_T}no" >&6
15799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15801 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
15802 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
15803 cat >conftest.$ac_ext <<_ACEOF
15804 /* confdefs.h. */
15805 _ACEOF
15806 cat confdefs.h >>conftest.$ac_ext
15807 cat >>conftest.$ac_ext <<_ACEOF
15808 /* end confdefs.h. */
15809 #define _POSIX_PII_SOCKET
15810 #include <sys/types.h>
15811 #include <sys/socket.h>
15813 main ()
15815 socklen_t x = 5;
15817 return 0;
15819 _ACEOF
15820 rm -f conftest.$ac_objext
15821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15822 (eval $ac_compile) 2>conftest.er1
15823 ac_status=$?
15824 grep -v '^ *+' conftest.er1 >conftest.err
15825 rm -f conftest.er1
15826 cat conftest.err >&5
15827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828 (exit $ac_status); } &&
15829 { ac_try='test -z "$ac_c_werror_flag"
15830 || test ! -s conftest.err'
15831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15832 (eval $ac_try) 2>&5
15833 ac_status=$?
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); }; } &&
15836 { ac_try='test -s conftest.$ac_objext'
15837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15838 (eval $ac_try) 2>&5
15839 ac_status=$?
15840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841 (exit $ac_status); }; }; then
15843 cat >>confdefs.h <<\_ACEOF
15844 #define HAVE_SOCKLEN_T 1
15845 _ACEOF
15847 echo "$as_me:$LINENO: result: yes" >&5
15848 echo "${ECHO_T}yes" >&6
15849 else
15850 echo "$as_me: failed program was:" >&5
15851 sed 's/^/| /' conftest.$ac_ext >&5
15853 echo "$as_me:$LINENO: result: no" >&5
15854 echo "${ECHO_T}no" >&6
15856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15858 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
15859 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
15860 cat >conftest.$ac_ext <<_ACEOF
15861 /* confdefs.h. */
15862 _ACEOF
15863 cat confdefs.h >>conftest.$ac_ext
15864 cat >>conftest.$ac_ext <<_ACEOF
15865 /* end confdefs.h. */
15866 #include <time.h>
15868 main ()
15870 struct tm tim; tim.tm_gmtoff = 0;
15872 return 0;
15874 _ACEOF
15875 rm -f conftest.$ac_objext
15876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15877 (eval $ac_compile) 2>conftest.er1
15878 ac_status=$?
15879 grep -v '^ *+' conftest.er1 >conftest.err
15880 rm -f conftest.er1
15881 cat conftest.err >&5
15882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15883 (exit $ac_status); } &&
15884 { ac_try='test -z "$ac_c_werror_flag"
15885 || test ! -s conftest.err'
15886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15887 (eval $ac_try) 2>&5
15888 ac_status=$?
15889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890 (exit $ac_status); }; } &&
15891 { ac_try='test -s conftest.$ac_objext'
15892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15893 (eval $ac_try) 2>&5
15894 ac_status=$?
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); }; }; then
15898 cat >>confdefs.h <<\_ACEOF
15899 #define STRUCT_TM_HAS_GMTOFF 1
15900 _ACEOF
15902 echo "$as_me:$LINENO: result: yes" >&5
15903 echo "${ECHO_T}yes" >&6
15904 else
15905 echo "$as_me: failed program was:" >&5
15906 sed 's/^/| /' conftest.$ac_ext >&5
15908 echo "$as_me:$LINENO: result: no" >&5
15909 echo "${ECHO_T}no" >&6
15910 echo "$as_me:$LINENO: checking for global timezone variable" >&5
15911 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
15912 cat >conftest.$ac_ext <<_ACEOF
15913 /* confdefs.h. */
15914 _ACEOF
15915 cat confdefs.h >>conftest.$ac_ext
15916 cat >>conftest.$ac_ext <<_ACEOF
15917 /* end confdefs.h. */
15918 #include <time.h>
15920 main ()
15922 void i(){long z2 = 2*timezone;}
15924 return 0;
15926 _ACEOF
15927 rm -f conftest.$ac_objext
15928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15929 (eval $ac_compile) 2>conftest.er1
15930 ac_status=$?
15931 grep -v '^ *+' conftest.er1 >conftest.err
15932 rm -f conftest.er1
15933 cat conftest.err >&5
15934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935 (exit $ac_status); } &&
15936 { ac_try='test -z "$ac_c_werror_flag"
15937 || test ! -s conftest.err'
15938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15939 (eval $ac_try) 2>&5
15940 ac_status=$?
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 (exit $ac_status); }; } &&
15943 { ac_try='test -s conftest.$ac_objext'
15944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15945 (eval $ac_try) 2>&5
15946 ac_status=$?
15947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948 (exit $ac_status); }; }; then
15950 cat >>confdefs.h <<\_ACEOF
15951 #define HAVE_TIMEZONE 1
15952 _ACEOF
15954 echo "$as_me:$LINENO: result: yes" >&5
15955 echo "${ECHO_T}yes" >&6
15956 else
15957 echo "$as_me: failed program was:" >&5
15958 sed 's/^/| /' conftest.$ac_ext >&5
15960 echo "$as_me:$LINENO: result: no" >&5
15961 echo "${ECHO_T}no" >&6
15962 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
15963 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
15964 cat >conftest.$ac_ext <<_ACEOF
15965 /* confdefs.h. */
15966 _ACEOF
15967 cat confdefs.h >>conftest.$ac_ext
15968 cat >>conftest.$ac_ext <<_ACEOF
15969 /* end confdefs.h. */
15970 #include <time.h>
15972 main ()
15974 long z2 = _timezone;
15976 return 0;
15978 _ACEOF
15979 rm -f conftest.$ac_objext
15980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15981 (eval $ac_compile) 2>conftest.er1
15982 ac_status=$?
15983 grep -v '^ *+' conftest.er1 >conftest.err
15984 rm -f conftest.er1
15985 cat conftest.err >&5
15986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987 (exit $ac_status); } &&
15988 { ac_try='test -z "$ac_c_werror_flag"
15989 || test ! -s conftest.err'
15990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15991 (eval $ac_try) 2>&5
15992 ac_status=$?
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); }; } &&
15995 { ac_try='test -s conftest.$ac_objext'
15996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15997 (eval $ac_try) 2>&5
15998 ac_status=$?
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); }; }; then
16002 cat >>confdefs.h <<\_ACEOF
16003 #define HAVE_UNDERSCORE_TIMEZONE 1
16004 _ACEOF
16006 echo "$as_me:$LINENO: result: yes" >&5
16007 echo "${ECHO_T}yes" >&6
16008 else
16009 echo "$as_me: failed program was:" >&5
16010 sed 's/^/| /' conftest.$ac_ext >&5
16012 echo "$as_me:$LINENO: result: no" >&5
16013 echo "${ECHO_T}no" >&6
16015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16021 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16022 # for constant arguments. Useless!
16023 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16024 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16025 if test "${ac_cv_working_alloca_h+set}" = set; then
16026 echo $ECHO_N "(cached) $ECHO_C" >&6
16027 else
16028 if test x$gcc_no_link = xyes; then
16029 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16030 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16031 { (exit 1); exit 1; }; }
16033 cat >conftest.$ac_ext <<_ACEOF
16034 /* confdefs.h. */
16035 _ACEOF
16036 cat confdefs.h >>conftest.$ac_ext
16037 cat >>conftest.$ac_ext <<_ACEOF
16038 /* end confdefs.h. */
16039 #include <alloca.h>
16041 main ()
16043 char *p = (char *) alloca (2 * sizeof (int));
16045 return 0;
16047 _ACEOF
16048 rm -f conftest.$ac_objext conftest$ac_exeext
16049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16050 (eval $ac_link) 2>conftest.er1
16051 ac_status=$?
16052 grep -v '^ *+' conftest.er1 >conftest.err
16053 rm -f conftest.er1
16054 cat conftest.err >&5
16055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056 (exit $ac_status); } &&
16057 { ac_try='test -z "$ac_c_werror_flag"
16058 || test ! -s conftest.err'
16059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16060 (eval $ac_try) 2>&5
16061 ac_status=$?
16062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063 (exit $ac_status); }; } &&
16064 { ac_try='test -s conftest$ac_exeext'
16065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16066 (eval $ac_try) 2>&5
16067 ac_status=$?
16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); }; }; then
16070 ac_cv_working_alloca_h=yes
16071 else
16072 echo "$as_me: failed program was:" >&5
16073 sed 's/^/| /' conftest.$ac_ext >&5
16075 ac_cv_working_alloca_h=no
16077 rm -f conftest.err conftest.$ac_objext \
16078 conftest$ac_exeext conftest.$ac_ext
16080 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16081 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16082 if test $ac_cv_working_alloca_h = yes; then
16084 cat >>confdefs.h <<\_ACEOF
16085 #define HAVE_ALLOCA_H 1
16086 _ACEOF
16090 echo "$as_me:$LINENO: checking for alloca" >&5
16091 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16092 if test "${ac_cv_func_alloca_works+set}" = set; then
16093 echo $ECHO_N "(cached) $ECHO_C" >&6
16094 else
16095 if test x$gcc_no_link = xyes; then
16096 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16097 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16098 { (exit 1); exit 1; }; }
16100 cat >conftest.$ac_ext <<_ACEOF
16101 /* confdefs.h. */
16102 _ACEOF
16103 cat confdefs.h >>conftest.$ac_ext
16104 cat >>conftest.$ac_ext <<_ACEOF
16105 /* end confdefs.h. */
16106 #ifdef __GNUC__
16107 # define alloca __builtin_alloca
16108 #else
16109 # ifdef _MSC_VER
16110 # include <malloc.h>
16111 # define alloca _alloca
16112 # else
16113 # if HAVE_ALLOCA_H
16114 # include <alloca.h>
16115 # else
16116 # ifdef _AIX
16117 #pragma alloca
16118 # else
16119 # ifndef alloca /* predefined by HP cc +Olibcalls */
16120 char *alloca ();
16121 # endif
16122 # endif
16123 # endif
16124 # endif
16125 #endif
16128 main ()
16130 char *p = (char *) alloca (1);
16132 return 0;
16134 _ACEOF
16135 rm -f conftest.$ac_objext conftest$ac_exeext
16136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16137 (eval $ac_link) 2>conftest.er1
16138 ac_status=$?
16139 grep -v '^ *+' conftest.er1 >conftest.err
16140 rm -f conftest.er1
16141 cat conftest.err >&5
16142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143 (exit $ac_status); } &&
16144 { ac_try='test -z "$ac_c_werror_flag"
16145 || test ! -s conftest.err'
16146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16147 (eval $ac_try) 2>&5
16148 ac_status=$?
16149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150 (exit $ac_status); }; } &&
16151 { ac_try='test -s conftest$ac_exeext'
16152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16153 (eval $ac_try) 2>&5
16154 ac_status=$?
16155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156 (exit $ac_status); }; }; then
16157 ac_cv_func_alloca_works=yes
16158 else
16159 echo "$as_me: failed program was:" >&5
16160 sed 's/^/| /' conftest.$ac_ext >&5
16162 ac_cv_func_alloca_works=no
16164 rm -f conftest.err conftest.$ac_objext \
16165 conftest$ac_exeext conftest.$ac_ext
16167 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16168 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16170 if test $ac_cv_func_alloca_works = yes; then
16172 cat >>confdefs.h <<\_ACEOF
16173 #define HAVE_ALLOCA 1
16174 _ACEOF
16176 else
16177 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16178 # that cause trouble. Some versions do not even contain alloca or
16179 # contain a buggy version. If you still want to use their alloca,
16180 # use ar to extract alloca.o from them instead of compiling alloca.c.
16182 ALLOCA=alloca.$ac_objext
16184 cat >>confdefs.h <<\_ACEOF
16185 #define C_ALLOCA 1
16186 _ACEOF
16189 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16190 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16191 if test "${ac_cv_os_cray+set}" = set; then
16192 echo $ECHO_N "(cached) $ECHO_C" >&6
16193 else
16194 cat >conftest.$ac_ext <<_ACEOF
16195 /* confdefs.h. */
16196 _ACEOF
16197 cat confdefs.h >>conftest.$ac_ext
16198 cat >>conftest.$ac_ext <<_ACEOF
16199 /* end confdefs.h. */
16200 #if defined(CRAY) && ! defined(CRAY2)
16201 webecray
16202 #else
16203 wenotbecray
16204 #endif
16206 _ACEOF
16207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16208 $EGREP "webecray" >/dev/null 2>&1; then
16209 ac_cv_os_cray=yes
16210 else
16211 ac_cv_os_cray=no
16213 rm -f conftest*
16216 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16217 echo "${ECHO_T}$ac_cv_os_cray" >&6
16218 if test $ac_cv_os_cray = yes; then
16219 for ac_func in _getb67 GETB67 getb67; do
16220 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16221 echo "$as_me:$LINENO: checking for $ac_func" >&5
16222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16223 if eval "test \"\${$as_ac_var+set}\" = set"; then
16224 echo $ECHO_N "(cached) $ECHO_C" >&6
16225 else
16226 if test x$gcc_no_link = xyes; then
16227 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16228 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16229 { (exit 1); exit 1; }; }
16231 cat >conftest.$ac_ext <<_ACEOF
16232 /* confdefs.h. */
16233 _ACEOF
16234 cat confdefs.h >>conftest.$ac_ext
16235 cat >>conftest.$ac_ext <<_ACEOF
16236 /* end confdefs.h. */
16237 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16239 #define $ac_func innocuous_$ac_func
16241 /* System header to define __stub macros and hopefully few prototypes,
16242 which can conflict with char $ac_func (); below.
16243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16244 <limits.h> exists even on freestanding compilers. */
16246 #ifdef __STDC__
16247 # include <limits.h>
16248 #else
16249 # include <assert.h>
16250 #endif
16252 #undef $ac_func
16254 /* Override any gcc2 internal prototype to avoid an error. */
16255 #ifdef __cplusplus
16256 extern "C"
16258 #endif
16259 /* We use char because int might match the return type of a gcc2
16260 builtin and then its argument prototype would still apply. */
16261 char $ac_func ();
16262 /* The GNU C library defines this for functions which it implements
16263 to always fail with ENOSYS. Some functions are actually named
16264 something starting with __ and the normal name is an alias. */
16265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16266 choke me
16267 #else
16268 char (*f) () = $ac_func;
16269 #endif
16270 #ifdef __cplusplus
16272 #endif
16275 main ()
16277 return f != $ac_func;
16279 return 0;
16281 _ACEOF
16282 rm -f conftest.$ac_objext conftest$ac_exeext
16283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16284 (eval $ac_link) 2>conftest.er1
16285 ac_status=$?
16286 grep -v '^ *+' conftest.er1 >conftest.err
16287 rm -f conftest.er1
16288 cat conftest.err >&5
16289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); } &&
16291 { ac_try='test -z "$ac_c_werror_flag"
16292 || test ! -s conftest.err'
16293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16294 (eval $ac_try) 2>&5
16295 ac_status=$?
16296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297 (exit $ac_status); }; } &&
16298 { ac_try='test -s conftest$ac_exeext'
16299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16300 (eval $ac_try) 2>&5
16301 ac_status=$?
16302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303 (exit $ac_status); }; }; then
16304 eval "$as_ac_var=yes"
16305 else
16306 echo "$as_me: failed program was:" >&5
16307 sed 's/^/| /' conftest.$ac_ext >&5
16309 eval "$as_ac_var=no"
16311 rm -f conftest.err conftest.$ac_objext \
16312 conftest$ac_exeext conftest.$ac_ext
16314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16315 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16316 if test `eval echo '${'$as_ac_var'}'` = yes; then
16318 cat >>confdefs.h <<_ACEOF
16319 #define CRAY_STACKSEG_END $ac_func
16320 _ACEOF
16322 break
16325 done
16328 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16329 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16330 if test "${ac_cv_c_stack_direction+set}" = set; then
16331 echo $ECHO_N "(cached) $ECHO_C" >&6
16332 else
16333 if test "$cross_compiling" = yes; then
16334 ac_cv_c_stack_direction=0
16335 else
16336 cat >conftest.$ac_ext <<_ACEOF
16337 /* confdefs.h. */
16338 _ACEOF
16339 cat confdefs.h >>conftest.$ac_ext
16340 cat >>conftest.$ac_ext <<_ACEOF
16341 /* end confdefs.h. */
16343 find_stack_direction ()
16345 static char *addr = 0;
16346 auto char dummy;
16347 if (addr == 0)
16349 addr = &dummy;
16350 return find_stack_direction ();
16352 else
16353 return (&dummy > addr) ? 1 : -1;
16357 main ()
16359 exit (find_stack_direction () < 0);
16361 _ACEOF
16362 rm -f conftest$ac_exeext
16363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16364 (eval $ac_link) 2>&5
16365 ac_status=$?
16366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16369 (eval $ac_try) 2>&5
16370 ac_status=$?
16371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16372 (exit $ac_status); }; }; then
16373 ac_cv_c_stack_direction=1
16374 else
16375 echo "$as_me: program exited with status $ac_status" >&5
16376 echo "$as_me: failed program was:" >&5
16377 sed 's/^/| /' conftest.$ac_ext >&5
16379 ( exit $ac_status )
16380 ac_cv_c_stack_direction=-1
16382 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16385 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16386 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16388 cat >>confdefs.h <<_ACEOF
16389 #define STACK_DIRECTION $ac_cv_c_stack_direction
16390 _ACEOF
16396 for ac_prog in perl
16398 # Extract the first word of "$ac_prog", so it can be a program name with args.
16399 set dummy $ac_prog; ac_word=$2
16400 echo "$as_me:$LINENO: checking for $ac_word" >&5
16401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16402 if test "${ac_cv_prog_PERL+set}" = set; then
16403 echo $ECHO_N "(cached) $ECHO_C" >&6
16404 else
16405 if test -n "$PERL"; then
16406 ac_cv_prog_PERL="$PERL" # Let the user override the test.
16407 else
16408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16409 for as_dir in $PATH
16411 IFS=$as_save_IFS
16412 test -z "$as_dir" && as_dir=.
16413 for ac_exec_ext in '' $ac_executable_extensions; do
16414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16415 ac_cv_prog_PERL="$ac_prog"
16416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16417 break 2
16419 done
16420 done
16424 PERL=$ac_cv_prog_PERL
16425 if test -n "$PERL"; then
16426 echo "$as_me:$LINENO: result: $PERL" >&5
16427 echo "${ECHO_T}$PERL" >&6
16428 else
16429 echo "$as_me:$LINENO: result: no" >&5
16430 echo "${ECHO_T}no" >&6
16433 test -n "$PERL" && break
16434 done
16435 test -n "$PERL" || PERL="false"
16438 SYSDEP_SOURCES=
16439 SIGNAL_HANDLER_AUX=
16441 case "${host}" in
16442 i?86-*-linux*)
16443 SIGNAL_HANDLER=include/i386-signal.h
16445 sparc*-sun-solaris*)
16446 SIGNAL_HANDLER=include/sparc-signal.h
16448 # ia64-*)
16449 # SYSDEP_SOURCES=sysdep/ia64.c
16450 # test -d sysdep || mkdir sysdep
16451 # ;;
16452 hppa*-*-linux*)
16453 SIGNAL_HANDLER=include/pa-signal.h
16455 hppa*-hp-hpux*)
16456 SIGNAL_HANDLER=include/hppa-signal.h
16458 ia64-*-linux*)
16459 SIGNAL_HANDLER=include/dwarf2-signal.h
16461 powerpc*-*-linux*)
16462 SIGNAL_HANDLER=include/powerpc-signal.h
16464 alpha*-*-linux*)
16465 SIGNAL_HANDLER=include/dwarf2-signal.h
16467 s390*-*-linux*)
16468 SIGNAL_HANDLER=include/s390-signal.h
16470 x86_64*-*-linux*)
16471 SIGNAL_HANDLER=include/x86_64-signal.h
16472 SIGNAL_HANDLER_AUX=include/i386-signal.h
16474 sparc*-*-linux*)
16475 SIGNAL_HANDLER=include/dwarf2-signal.h
16477 sh*-*-linux*)
16478 SIGNAL_HANDLER=include/sh-signal.h
16480 *mingw*)
16481 SIGNAL_HANDLER=include/win32-signal.h
16483 mips*-*-linux*)
16484 SIGNAL_HANDLER=include/mips-signal.h
16486 *-*-darwin*)
16487 SIGNAL_HANDLER=include/darwin-signal.h
16490 SIGNAL_HANDLER=include/default-signal.h
16492 esac
16494 # If we're using sjlj exceptions, forget what we just learned.
16495 if test "$enable_sjlj_exceptions" = yes; then
16496 SIGNAL_HANDLER=include/default-signal.h
16497 SIGNAL_HANDLER_AUX=
16502 if test -z "$SIGNAL_HANDLER_AUX"; then
16503 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
16506 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
16509 if test "${multilib}" = "yes"; then
16510 multilib_arg="--enable-multilib"
16511 else
16512 multilib_arg=
16515 # See if we support thread-local storage.
16517 # Check whether --enable-tls or --disable-tls was given.
16518 if test "${enable_tls+set}" = set; then
16519 enableval="$enable_tls"
16521 case "$enableval" in
16522 yes|no) ;;
16523 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
16524 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
16525 { (exit 1); exit 1; }; } ;;
16526 esac
16528 else
16529 enable_tls=yes
16532 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
16533 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
16534 if test "${have_tls+set}" = set; then
16535 echo $ECHO_N "(cached) $ECHO_C" >&6
16536 else
16538 if test "$cross_compiling" = yes; then
16539 cat >conftest.$ac_ext <<_ACEOF
16540 __thread int foo;
16541 _ACEOF
16542 rm -f conftest.$ac_objext
16543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16544 (eval $ac_compile) 2>conftest.er1
16545 ac_status=$?
16546 grep -v '^ *+' conftest.er1 >conftest.err
16547 rm -f conftest.er1
16548 cat conftest.err >&5
16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); } &&
16551 { ac_try='test -z "$ac_c_werror_flag"
16552 || test ! -s conftest.err'
16553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16554 (eval $ac_try) 2>&5
16555 ac_status=$?
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); }; } &&
16558 { ac_try='test -s conftest.$ac_objext'
16559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16560 (eval $ac_try) 2>&5
16561 ac_status=$?
16562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563 (exit $ac_status); }; }; then
16564 have_tls=yes
16565 else
16566 echo "$as_me: failed program was:" >&5
16567 sed 's/^/| /' conftest.$ac_ext >&5
16569 have_tls=no
16571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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 save_LDFLAGS="$LDFLAGS"
16589 LDFLAGS="-static $LDFLAGS"
16590 if test "$cross_compiling" = yes; then
16591 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16592 See \`config.log' for more details." >&5
16593 echo "$as_me: error: cannot run test program while cross compiling
16594 See \`config.log' for more details." >&2;}
16595 { (exit 1); exit 1; }; }
16596 else
16597 cat >conftest.$ac_ext <<_ACEOF
16598 __thread int a; int b; int main() { return a = b; }
16599 _ACEOF
16600 rm -f conftest$ac_exeext
16601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16602 (eval $ac_link) 2>&5
16603 ac_status=$?
16604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16607 (eval $ac_try) 2>&5
16608 ac_status=$?
16609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610 (exit $ac_status); }; }; then
16611 have_tls=yes
16612 else
16613 echo "$as_me: program exited with status $ac_status" >&5
16614 echo "$as_me: failed program was:" >&5
16615 sed 's/^/| /' conftest.$ac_ext >&5
16617 ( exit $ac_status )
16618 have_tls=no
16620 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16622 LDFLAGS="$save_LDFLAGS"
16623 else
16624 echo "$as_me: program exited with status $ac_status" >&5
16625 echo "$as_me: failed program was:" >&5
16626 sed 's/^/| /' conftest.$ac_ext >&5
16628 ( exit $ac_status )
16629 have_tls=no
16631 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16634 echo "$as_me:$LINENO: result: $have_tls" >&5
16635 echo "${ECHO_T}$have_tls" >&6
16636 if test "$enable_tls $have_tls" = "yes yes"; then
16638 cat >>confdefs.h <<\_ACEOF
16639 #define HAVE_TLS 1
16640 _ACEOF
16644 # Check if linker supports static linking on a per library basis
16645 LD_START_STATIC_SPEC=
16646 LD_FINISH_STATIC_SPEC=
16647 if $LD --help 2>&1 | grep -q -e -call_shared ; then
16648 if $LD --help 2>&1 | grep -q -e -non_shared ; then
16649 LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
16650 LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
16656 here=`${PWDCMD-pwd}`
16659 # We get this from the environment.
16662 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"
16665 ac_config_files="$ac_config_files scripts/jar"
16668 ac_config_commands="$ac_config_commands default"
16671 cat >confcache <<\_ACEOF
16672 # This file is a shell script that caches the results of configure
16673 # tests run on this system so they can be shared between configure
16674 # scripts and configure runs, see configure's option --config-cache.
16675 # It is not useful on other systems. If it contains results you don't
16676 # want to keep, you may remove or edit it.
16678 # config.status only pays attention to the cache file if you give it
16679 # the --recheck option to rerun configure.
16681 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16682 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16683 # following values.
16685 _ACEOF
16687 # The following way of writing the cache mishandles newlines in values,
16688 # but we know of no workaround that is simple, portable, and efficient.
16689 # So, don't put newlines in cache variables' values.
16690 # Ultrix sh set writes to stderr and can't be redirected directly,
16691 # and sets the high bit in the cache file unless we assign to the vars.
16693 (set) 2>&1 |
16694 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16695 *ac_space=\ *)
16696 # `set' does not quote correctly, so add quotes (double-quote
16697 # substitution turns \\\\ into \\, and sed turns \\ into \).
16698 sed -n \
16699 "s/'/'\\\\''/g;
16700 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16703 # `set' quotes correctly as required by POSIX, so do not add quotes.
16704 sed -n \
16705 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16707 esac;
16709 sed '
16710 t clear
16711 : clear
16712 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16713 t end
16714 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16715 : end' >>confcache
16716 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16717 if test -w $cache_file; then
16718 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16719 cat confcache >$cache_file
16720 else
16721 echo "not updating unwritable cache $cache_file"
16724 rm -f confcache
16726 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16727 # Let make expand exec_prefix.
16728 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16730 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16731 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16732 # trailing colons and then remove the whole line if VPATH becomes empty
16733 # (actually we leave an empty line to preserve line numbers).
16734 if test "x$srcdir" = x.; then
16735 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16736 s/:*\$(srcdir):*/:/;
16737 s/:*\${srcdir}:*/:/;
16738 s/:*@srcdir@:*/:/;
16739 s/^\([^=]*=[ ]*\):*/\1/;
16740 s/:*$//;
16741 s/^[^=]*=[ ]*$//;
16745 DEFS=-DHAVE_CONFIG_H
16747 ac_libobjs=
16748 ac_ltlibobjs=
16749 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16750 # 1. Remove the extension, and $U if already installed.
16751 ac_i=`echo "$ac_i" |
16752 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16753 # 2. Add them.
16754 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16755 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16756 done
16757 LIBOBJS=$ac_libobjs
16759 LTLIBOBJS=$ac_ltlibobjs
16762 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16763 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16764 Usually this means the macro was only invoked conditionally." >&5
16765 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16766 Usually this means the macro was only invoked conditionally." >&2;}
16767 { (exit 1); exit 1; }; }
16769 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16770 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16771 Usually this means the macro was only invoked conditionally." >&5
16772 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16773 Usually this means the macro was only invoked conditionally." >&2;}
16774 { (exit 1); exit 1; }; }
16776 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16777 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16778 Usually this means the macro was only invoked conditionally." >&5
16779 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16780 Usually this means the macro was only invoked conditionally." >&2;}
16781 { (exit 1); exit 1; }; }
16783 if test -z "${BASH_JAR_TRUE}" && test -z "${BASH_JAR_FALSE}"; then
16784 { { echo "$as_me:$LINENO: error: conditional \"BASH_JAR\" was never defined.
16785 Usually this means the macro was only invoked conditionally." >&5
16786 echo "$as_me: error: conditional \"BASH_JAR\" was never defined.
16787 Usually this means the macro was only invoked conditionally." >&2;}
16788 { (exit 1); exit 1; }; }
16790 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16791 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16792 Usually this means the macro was only invoked conditionally." >&5
16793 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16794 Usually this means the macro was only invoked conditionally." >&2;}
16795 { (exit 1); exit 1; }; }
16797 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
16798 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
16799 Usually this means the macro was only invoked conditionally." >&5
16800 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
16801 Usually this means the macro was only invoked conditionally." >&2;}
16802 { (exit 1); exit 1; }; }
16804 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
16805 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
16806 Usually this means the macro was only invoked conditionally." >&5
16807 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
16808 Usually this means the macro was only invoked conditionally." >&2;}
16809 { (exit 1); exit 1; }; }
16811 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
16812 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
16813 Usually this means the macro was only invoked conditionally." >&5
16814 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
16815 Usually this means the macro was only invoked conditionally." >&2;}
16816 { (exit 1); exit 1; }; }
16818 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
16819 { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
16820 Usually this means the macro was only invoked conditionally." >&5
16821 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
16822 Usually this means the macro was only invoked conditionally." >&2;}
16823 { (exit 1); exit 1; }; }
16825 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
16826 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16827 Usually this means the macro was only invoked conditionally." >&5
16828 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16829 Usually this means the macro was only invoked conditionally." >&2;}
16830 { (exit 1); exit 1; }; }
16832 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
16833 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16834 Usually this means the macro was only invoked conditionally." >&5
16835 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16836 Usually this means the macro was only invoked conditionally." >&2;}
16837 { (exit 1); exit 1; }; }
16839 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
16840 { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
16841 Usually this means the macro was only invoked conditionally." >&5
16842 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
16843 Usually this means the macro was only invoked conditionally." >&2;}
16844 { (exit 1); exit 1; }; }
16846 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
16847 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
16848 Usually this means the macro was only invoked conditionally." >&5
16849 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
16850 Usually this means the macro was only invoked conditionally." >&2;}
16851 { (exit 1); exit 1; }; }
16853 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
16854 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
16855 Usually this means the macro was only invoked conditionally." >&5
16856 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
16857 Usually this means the macro was only invoked conditionally." >&2;}
16858 { (exit 1); exit 1; }; }
16860 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
16861 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
16862 Usually this means the macro was only invoked conditionally." >&5
16863 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
16864 Usually this means the macro was only invoked conditionally." >&2;}
16865 { (exit 1); exit 1; }; }
16867 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
16868 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
16869 Usually this means the macro was only invoked conditionally." >&5
16870 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
16871 Usually this means the macro was only invoked conditionally." >&2;}
16872 { (exit 1); exit 1; }; }
16874 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
16875 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
16876 Usually this means the macro was only invoked conditionally." >&5
16877 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
16878 Usually this means the macro was only invoked conditionally." >&2;}
16879 { (exit 1); exit 1; }; }
16881 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
16882 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
16883 Usually this means the macro was only invoked conditionally." >&5
16884 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
16885 Usually this means the macro was only invoked conditionally." >&2;}
16886 { (exit 1); exit 1; }; }
16888 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
16889 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
16890 Usually this means the macro was only invoked conditionally." >&5
16891 echo "$as_me: error: conditional \"NATIVE\" was never defined.
16892 Usually this means the macro was only invoked conditionally." >&2;}
16893 { (exit 1); exit 1; }; }
16895 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
16896 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
16897 Usually this means the macro was only invoked conditionally." >&5
16898 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
16899 Usually this means the macro was only invoked conditionally." >&2;}
16900 { (exit 1); exit 1; }; }
16903 : ${CONFIG_STATUS=./config.status}
16904 ac_clean_files_save=$ac_clean_files
16905 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16906 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16907 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16908 cat >$CONFIG_STATUS <<_ACEOF
16909 #! $SHELL
16910 # Generated by $as_me.
16911 # Run this file to recreate the current configuration.
16912 # Compiler output produced by configure, useful for debugging
16913 # configure, is in config.log if it exists.
16915 debug=false
16916 ac_cs_recheck=false
16917 ac_cs_silent=false
16918 SHELL=\${CONFIG_SHELL-$SHELL}
16919 _ACEOF
16921 cat >>$CONFIG_STATUS <<\_ACEOF
16922 ## --------------------- ##
16923 ## M4sh Initialization. ##
16924 ## --------------------- ##
16926 # Be Bourne compatible
16927 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16928 emulate sh
16929 NULLCMD=:
16930 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16931 # is contrary to our usage. Disable this feature.
16932 alias -g '${1+"$@"}'='"$@"'
16933 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16934 set -o posix
16936 DUALCASE=1; export DUALCASE # for MKS sh
16938 # Support unset when possible.
16939 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16940 as_unset=unset
16941 else
16942 as_unset=false
16946 # Work around bugs in pre-3.0 UWIN ksh.
16947 $as_unset ENV MAIL MAILPATH
16948 PS1='$ '
16949 PS2='> '
16950 PS4='+ '
16952 # NLS nuisances.
16953 for as_var in \
16954 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16955 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16956 LC_TELEPHONE LC_TIME
16958 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16959 eval $as_var=C; export $as_var
16960 else
16961 $as_unset $as_var
16963 done
16965 # Required to use basename.
16966 if expr a : '\(a\)' >/dev/null 2>&1; then
16967 as_expr=expr
16968 else
16969 as_expr=false
16972 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16973 as_basename=basename
16974 else
16975 as_basename=false
16979 # Name of the executable.
16980 as_me=`$as_basename "$0" ||
16981 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16982 X"$0" : 'X\(//\)$' \| \
16983 X"$0" : 'X\(/\)$' \| \
16984 . : '\(.\)' 2>/dev/null ||
16985 echo X/"$0" |
16986 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16987 /^X\/\(\/\/\)$/{ s//\1/; q; }
16988 /^X\/\(\/\).*/{ s//\1/; q; }
16989 s/.*/./; q'`
16992 # PATH needs CR, and LINENO needs CR and PATH.
16993 # Avoid depending upon Character Ranges.
16994 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16995 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16996 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16997 as_cr_digits='0123456789'
16998 as_cr_alnum=$as_cr_Letters$as_cr_digits
17000 # The user is always right.
17001 if test "${PATH_SEPARATOR+set}" != set; then
17002 echo "#! /bin/sh" >conf$$.sh
17003 echo "exit 0" >>conf$$.sh
17004 chmod +x conf$$.sh
17005 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17006 PATH_SEPARATOR=';'
17007 else
17008 PATH_SEPARATOR=:
17010 rm -f conf$$.sh
17014 as_lineno_1=$LINENO
17015 as_lineno_2=$LINENO
17016 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17017 test "x$as_lineno_1" != "x$as_lineno_2" &&
17018 test "x$as_lineno_3" = "x$as_lineno_2" || {
17019 # Find who we are. Look in the path if we contain no path at all
17020 # relative or not.
17021 case $0 in
17022 *[\\/]* ) as_myself=$0 ;;
17023 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17024 for as_dir in $PATH
17026 IFS=$as_save_IFS
17027 test -z "$as_dir" && as_dir=.
17028 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17029 done
17032 esac
17033 # We did not find ourselves, most probably we were run as `sh COMMAND'
17034 # in which case we are not to be found in the path.
17035 if test "x$as_myself" = x; then
17036 as_myself=$0
17038 if test ! -f "$as_myself"; then
17039 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17040 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17041 { (exit 1); exit 1; }; }
17043 case $CONFIG_SHELL in
17045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17046 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17048 IFS=$as_save_IFS
17049 test -z "$as_dir" && as_dir=.
17050 for as_base in sh bash ksh sh5; do
17051 case $as_dir in
17053 if ("$as_dir/$as_base" -c '
17054 as_lineno_1=$LINENO
17055 as_lineno_2=$LINENO
17056 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17057 test "x$as_lineno_1" != "x$as_lineno_2" &&
17058 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17059 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17060 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17061 CONFIG_SHELL=$as_dir/$as_base
17062 export CONFIG_SHELL
17063 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17064 fi;;
17065 esac
17066 done
17067 done
17069 esac
17071 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17072 # uniformly replaced by the line number. The first 'sed' inserts a
17073 # line-number line before each line; the second 'sed' does the real
17074 # work. The second script uses 'N' to pair each line-number line
17075 # with the numbered line, and appends trailing '-' during
17076 # substitution so that $LINENO is not a special case at line end.
17077 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17078 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17079 sed '=' <$as_myself |
17080 sed '
17082 s,$,-,
17083 : loop
17084 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17085 t loop
17086 s,-$,,
17087 s,^['$as_cr_digits']*\n,,
17088 ' >$as_me.lineno &&
17089 chmod +x $as_me.lineno ||
17090 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17091 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17092 { (exit 1); exit 1; }; }
17094 # Don't try to exec as it changes $[0], causing all sort of problems
17095 # (the dirname of $[0] is not the place where we might find the
17096 # original and so on. Autoconf is especially sensible to this).
17097 . ./$as_me.lineno
17098 # Exit status is that of the last command.
17099 exit
17103 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17104 *c*,-n*) ECHO_N= ECHO_C='
17105 ' ECHO_T=' ' ;;
17106 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17107 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17108 esac
17110 if expr a : '\(a\)' >/dev/null 2>&1; then
17111 as_expr=expr
17112 else
17113 as_expr=false
17116 rm -f conf$$ conf$$.exe conf$$.file
17117 echo >conf$$.file
17118 if ln -s conf$$.file conf$$ 2>/dev/null; then
17119 # We could just check for DJGPP; but this test a) works b) is more generic
17120 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17121 if test -f conf$$.exe; then
17122 # Don't use ln at all; we don't have any links
17123 as_ln_s='cp -p'
17124 else
17125 as_ln_s='ln -s'
17127 elif ln conf$$.file conf$$ 2>/dev/null; then
17128 as_ln_s=ln
17129 else
17130 as_ln_s='cp -p'
17132 rm -f conf$$ conf$$.exe conf$$.file
17134 if mkdir -p . 2>/dev/null; then
17135 as_mkdir_p=:
17136 else
17137 test -d ./-p && rmdir ./-p
17138 as_mkdir_p=false
17141 as_executable_p="test -f"
17143 # Sed expression to map a string onto a valid CPP name.
17144 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17146 # Sed expression to map a string onto a valid variable name.
17147 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17150 # IFS
17151 # We need space, tab and new line, in precisely that order.
17152 as_nl='
17154 IFS=" $as_nl"
17156 # CDPATH.
17157 $as_unset CDPATH
17159 exec 6>&1
17161 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17162 # report actual input values of CONFIG_FILES etc. instead of their
17163 # values after options handling. Logging --version etc. is OK.
17164 exec 5>>config.log
17166 echo
17167 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17168 ## Running $as_me. ##
17169 _ASBOX
17170 } >&5
17171 cat >&5 <<_CSEOF
17173 This file was extended by libjava $as_me version-unused, which was
17174 generated by GNU Autoconf 2.59. Invocation command line was
17176 CONFIG_FILES = $CONFIG_FILES
17177 CONFIG_HEADERS = $CONFIG_HEADERS
17178 CONFIG_LINKS = $CONFIG_LINKS
17179 CONFIG_COMMANDS = $CONFIG_COMMANDS
17180 $ $0 $@
17182 _CSEOF
17183 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17184 echo >&5
17185 _ACEOF
17187 # Files that config.status was made for.
17188 if test -n "$ac_config_files"; then
17189 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17192 if test -n "$ac_config_headers"; then
17193 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17196 if test -n "$ac_config_links"; then
17197 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17200 if test -n "$ac_config_commands"; then
17201 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17204 cat >>$CONFIG_STATUS <<\_ACEOF
17206 ac_cs_usage="\
17207 \`$as_me' instantiates files from templates according to the
17208 current configuration.
17210 Usage: $0 [OPTIONS] [FILE]...
17212 -h, --help print this help, then exit
17213 -V, --version print version number, then exit
17214 -q, --quiet do not print progress messages
17215 -d, --debug don't remove temporary files
17216 --recheck update $as_me by reconfiguring in the same conditions
17217 --file=FILE[:TEMPLATE]
17218 instantiate the configuration file FILE
17219 --header=FILE[:TEMPLATE]
17220 instantiate the configuration header FILE
17222 Configuration files:
17223 $config_files
17225 Configuration headers:
17226 $config_headers
17228 Configuration links:
17229 $config_links
17231 Configuration commands:
17232 $config_commands
17234 Report bugs to <bug-autoconf@gnu.org>."
17235 _ACEOF
17237 cat >>$CONFIG_STATUS <<_ACEOF
17238 ac_cs_version="\\
17239 libjava config.status version-unused
17240 configured by $0, generated by GNU Autoconf 2.59,
17241 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17243 Copyright (C) 2003 Free Software Foundation, Inc.
17244 This config.status script is free software; the Free Software Foundation
17245 gives unlimited permission to copy, distribute and modify it."
17246 srcdir=$srcdir
17247 INSTALL="$INSTALL"
17248 _ACEOF
17250 cat >>$CONFIG_STATUS <<\_ACEOF
17251 # If no file are specified by the user, then we need to provide default
17252 # value. By we need to know if files were specified by the user.
17253 ac_need_defaults=:
17254 while test $# != 0
17256 case $1 in
17257 --*=*)
17258 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17259 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17260 ac_shift=:
17263 ac_option=$1
17264 ac_optarg=$2
17265 ac_shift=shift
17267 *) # This is not an option, so the user has probably given explicit
17268 # arguments.
17269 ac_option=$1
17270 ac_need_defaults=false;;
17271 esac
17273 case $ac_option in
17274 # Handling of the options.
17275 _ACEOF
17276 cat >>$CONFIG_STATUS <<\_ACEOF
17277 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17278 ac_cs_recheck=: ;;
17279 --version | --vers* | -V )
17280 echo "$ac_cs_version"; exit 0 ;;
17281 --he | --h)
17282 # Conflict between --help and --header
17283 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17284 Try \`$0 --help' for more information." >&5
17285 echo "$as_me: error: ambiguous option: $1
17286 Try \`$0 --help' for more information." >&2;}
17287 { (exit 1); exit 1; }; };;
17288 --help | --hel | -h )
17289 echo "$ac_cs_usage"; exit 0 ;;
17290 --debug | --d* | -d )
17291 debug=: ;;
17292 --file | --fil | --fi | --f )
17293 $ac_shift
17294 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17295 ac_need_defaults=false;;
17296 --header | --heade | --head | --hea )
17297 $ac_shift
17298 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17299 ac_need_defaults=false;;
17300 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17301 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17302 ac_cs_silent=: ;;
17304 # This is an error.
17305 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17306 Try \`$0 --help' for more information." >&5
17307 echo "$as_me: error: unrecognized option: $1
17308 Try \`$0 --help' for more information." >&2;}
17309 { (exit 1); exit 1; }; } ;;
17311 *) ac_config_targets="$ac_config_targets $1" ;;
17313 esac
17314 shift
17315 done
17317 ac_configure_extra_args=
17319 if $ac_cs_silent; then
17320 exec 6>/dev/null
17321 ac_configure_extra_args="$ac_configure_extra_args --silent"
17324 _ACEOF
17325 cat >>$CONFIG_STATUS <<_ACEOF
17326 if \$ac_cs_recheck; then
17327 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17328 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17331 _ACEOF
17333 cat >>$CONFIG_STATUS <<_ACEOF
17335 # INIT-COMMANDS section.
17338 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17339 srcdir=${srcdir}
17340 host=${host}
17341 target=${target}
17342 with_multisubdir=${with_multisubdir}
17343 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17344 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17345 libgcj_basedir=${libgcj_basedir}
17346 CC="${CC}"
17347 CXX="${CXX}"
17348 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
17351 _ACEOF
17355 cat >>$CONFIG_STATUS <<\_ACEOF
17356 for ac_config_target in $ac_config_targets
17358 case "$ac_config_target" in
17359 # Handling of arguments.
17360 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17361 "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
17362 "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
17363 "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
17364 "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
17365 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17366 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17367 "scripts/jar" ) CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
17368 "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
17369 "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
17370 "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
17371 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
17372 "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
17373 "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
17374 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
17375 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
17376 "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
17377 "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
17378 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
17379 "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
17380 "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
17381 "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
17382 "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
17383 "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
17384 "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
17385 "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
17386 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17387 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17388 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17389 "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
17390 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17391 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17392 { (exit 1); exit 1; }; };;
17393 esac
17394 done
17396 # If the user did not use the arguments to specify the items to instantiate,
17397 # then the envvar interface is used. Set only those that are not.
17398 # We use the long form for the default assignment because of an extremely
17399 # bizarre bug on SunOS 4.1.3.
17400 if $ac_need_defaults; then
17401 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17402 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17403 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17404 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17407 # Have a temporary directory for convenience. Make it in the build tree
17408 # simply because there is no reason to put it here, and in addition,
17409 # creating and moving files from /tmp can sometimes cause problems.
17410 # Create a temporary directory, and hook for its removal unless debugging.
17411 $debug ||
17413 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17414 trap '{ (exit 1); exit 1; }' 1 2 13 15
17417 # Create a (secure) tmp directory for tmp files.
17420 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17421 test -n "$tmp" && test -d "$tmp"
17422 } ||
17424 tmp=./confstat$$-$RANDOM
17425 (umask 077 && mkdir $tmp)
17426 } ||
17428 echo "$me: cannot create a temporary directory in ." >&2
17429 { (exit 1); exit 1; }
17432 _ACEOF
17434 cat >>$CONFIG_STATUS <<_ACEOF
17437 # CONFIG_FILES section.
17440 # No need to generate the scripts if there are no CONFIG_FILES.
17441 # This happens for instance when ./config.status config.h
17442 if test -n "\$CONFIG_FILES"; then
17443 # Protect against being on the right side of a sed subst in config.status.
17444 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17445 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17446 s,@SHELL@,$SHELL,;t t
17447 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17448 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17449 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17450 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17451 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17452 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17453 s,@exec_prefix@,$exec_prefix,;t t
17454 s,@prefix@,$prefix,;t t
17455 s,@program_transform_name@,$program_transform_name,;t t
17456 s,@bindir@,$bindir,;t t
17457 s,@sbindir@,$sbindir,;t t
17458 s,@libexecdir@,$libexecdir,;t t
17459 s,@datadir@,$datadir,;t t
17460 s,@sysconfdir@,$sysconfdir,;t t
17461 s,@sharedstatedir@,$sharedstatedir,;t t
17462 s,@localstatedir@,$localstatedir,;t t
17463 s,@libdir@,$libdir,;t t
17464 s,@includedir@,$includedir,;t t
17465 s,@oldincludedir@,$oldincludedir,;t t
17466 s,@infodir@,$infodir,;t t
17467 s,@mandir@,$mandir,;t t
17468 s,@build_alias@,$build_alias,;t t
17469 s,@host_alias@,$host_alias,;t t
17470 s,@target_alias@,$target_alias,;t t
17471 s,@DEFS@,$DEFS,;t t
17472 s,@ECHO_C@,$ECHO_C,;t t
17473 s,@ECHO_N@,$ECHO_N,;t t
17474 s,@ECHO_T@,$ECHO_T,;t t
17475 s,@LIBS@,$LIBS,;t t
17476 s,@build@,$build,;t t
17477 s,@build_cpu@,$build_cpu,;t t
17478 s,@build_vendor@,$build_vendor,;t t
17479 s,@build_os@,$build_os,;t t
17480 s,@build_libsubdir@,$build_libsubdir,;t t
17481 s,@build_subdir@,$build_subdir,;t t
17482 s,@host_subdir@,$host_subdir,;t t
17483 s,@target_subdir@,$target_subdir,;t t
17484 s,@libgcj_basedir@,$libgcj_basedir,;t t
17485 s,@host@,$host,;t t
17486 s,@host_cpu@,$host_cpu,;t t
17487 s,@host_vendor@,$host_vendor,;t t
17488 s,@host_os@,$host_os,;t t
17489 s,@target@,$target,;t t
17490 s,@target_cpu@,$target_cpu,;t t
17491 s,@target_vendor@,$target_vendor,;t t
17492 s,@target_os@,$target_os,;t t
17493 s,@target_noncanonical@,$target_noncanonical,;t t
17494 s,@LN_S@,$LN_S,;t t
17495 s,@mkinstalldirs@,$mkinstalldirs,;t t
17496 s,@CC@,$CC,;t t
17497 s,@ac_ct_CC@,$ac_ct_CC,;t t
17498 s,@EXEEXT@,$EXEEXT,;t t
17499 s,@OBJEXT@,$OBJEXT,;t t
17500 s,@CXX@,$CXX,;t t
17501 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17502 s,@CFLAGS@,$CFLAGS,;t t
17503 s,@CXXFLAGS@,$CXXFLAGS,;t t
17504 s,@LDFLAGS@,$LDFLAGS,;t t
17505 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17506 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17507 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17508 s,@CYGPATH_W@,$CYGPATH_W,;t t
17509 s,@PACKAGE@,$PACKAGE,;t t
17510 s,@VERSION@,$VERSION,;t t
17511 s,@ACLOCAL@,$ACLOCAL,;t t
17512 s,@AUTOCONF@,$AUTOCONF,;t t
17513 s,@AUTOMAKE@,$AUTOMAKE,;t t
17514 s,@AUTOHEADER@,$AUTOHEADER,;t t
17515 s,@MAKEINFO@,$MAKEINFO,;t t
17516 s,@install_sh@,$install_sh,;t t
17517 s,@STRIP@,$STRIP,;t t
17518 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17519 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17520 s,@mkdir_p@,$mkdir_p,;t t
17521 s,@AWK@,$AWK,;t t
17522 s,@SET_MAKE@,$SET_MAKE,;t t
17523 s,@am__leading_dot@,$am__leading_dot,;t t
17524 s,@AMTAR@,$AMTAR,;t t
17525 s,@am__tar@,$am__tar,;t t
17526 s,@am__untar@,$am__untar,;t t
17527 s,@DEPDIR@,$DEPDIR,;t t
17528 s,@am__include@,$am__include,;t t
17529 s,@am__quote@,$am__quote,;t t
17530 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17531 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17532 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17533 s,@CCDEPMODE@,$CCDEPMODE,;t t
17534 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17535 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17536 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17537 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17538 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17539 s,@AS@,$AS,;t t
17540 s,@ac_ct_AS@,$ac_ct_AS,;t t
17541 s,@LD@,$LD,;t t
17542 s,@ac_ct_LD@,$ac_ct_LD,;t t
17543 s,@AR@,$AR,;t t
17544 s,@ac_ct_AR@,$ac_ct_AR,;t t
17545 s,@RANLIB@,$RANLIB,;t t
17546 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17547 s,@JAR@,$JAR,;t t
17548 s,@ZIP@,$ZIP,;t t
17549 s,@UNZIP@,$UNZIP,;t t
17550 s,@BASH_JAR_TRUE@,$BASH_JAR_TRUE,;t t
17551 s,@BASH_JAR_FALSE@,$BASH_JAR_FALSE,;t t
17552 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17553 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17554 s,@MAINT@,$MAINT,;t t
17555 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
17556 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
17557 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
17558 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
17559 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
17560 s,@TOOLKIT@,$TOOLKIT,;t t
17561 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
17562 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
17563 s,@GCJH@,$GCJH,;t t
17564 s,@INCLTDL@,$INCLTDL,;t t
17565 s,@LIBLTDL@,$LIBLTDL,;t t
17566 s,@DIRLTDL@,$DIRLTDL,;t t
17567 s,@LIBTOOL@,$LIBTOOL,;t t
17568 s,@CXXCPP@,$CXXCPP,;t t
17569 s,@CPPFLAGS@,$CPPFLAGS,;t t
17570 s,@GCJ@,$GCJ,;t t
17571 s,@GCJFLAGS@,$GCJFLAGS,;t t
17572 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
17573 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
17574 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
17575 s,@subdirs@,$subdirs,;t t
17576 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
17577 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
17578 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
17579 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
17580 s,@JAVA_HOME@,$JAVA_HOME,;t t
17581 s,@INTERPRETER@,$INTERPRETER,;t t
17582 s,@LIBFFI@,$LIBFFI,;t t
17583 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
17584 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
17585 s,@CPP@,$CPP,;t t
17586 s,@EGREP@,$EGREP,;t t
17587 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
17588 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
17589 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
17590 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
17591 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
17592 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
17593 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
17594 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
17595 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
17596 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
17597 s,@X_CFLAGS@,$X_CFLAGS,;t t
17598 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17599 s,@X_LIBS@,$X_LIBS,;t t
17600 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17601 s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
17602 s,@GCLIBS@,$GCLIBS,;t t
17603 s,@GCINCS@,$GCINCS,;t t
17604 s,@GCDEPS@,$GCDEPS,;t t
17605 s,@GCSPEC@,$GCSPEC,;t t
17606 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
17607 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
17608 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
17609 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
17610 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
17611 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
17612 s,@THREADLIBS@,$THREADLIBS,;t t
17613 s,@THREADINCS@,$THREADINCS,;t t
17614 s,@THREADDEPS@,$THREADDEPS,;t t
17615 s,@THREADSPEC@,$THREADSPEC,;t t
17616 s,@THREADSTARTFILESPEC@,$THREADSTARTFILESPEC,;t t
17617 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
17618 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
17619 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
17620 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
17621 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
17622 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
17623 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
17624 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
17625 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
17626 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
17627 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
17628 s,@LIBICONV@,$LIBICONV,;t t
17629 s,@LTLIBICONV@,$LTLIBICONV,;t t
17630 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
17631 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
17632 s,@GTK_LIBS@,$GTK_LIBS,;t t
17633 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
17634 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
17635 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
17636 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
17637 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
17638 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
17639 s,@ZLIBS@,$ZLIBS,;t t
17640 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
17641 s,@ZINCS@,$ZINCS,;t t
17642 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
17643 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
17644 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
17645 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
17646 s,@IEEESPEC@,$IEEESPEC,;t t
17647 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
17648 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
17649 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
17650 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
17651 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
17652 s,@toolexecdir@,$toolexecdir,;t t
17653 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
17654 s,@toolexeclibdir@,$toolexeclibdir,;t t
17655 s,@dbexecdir@,$dbexecdir,;t t
17656 s,@GCJVERSION@,$GCJVERSION,;t t
17657 s,@gxx_include_dir@,$gxx_include_dir,;t t
17658 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
17659 s,@ALLOCA@,$ALLOCA,;t t
17660 s,@PERL@,$PERL,;t t
17661 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
17662 s,@LD_START_STATIC_SPEC@,$LD_START_STATIC_SPEC,;t t
17663 s,@LD_FINISH_STATIC_SPEC@,$LD_FINISH_STATIC_SPEC,;t t
17664 s,@here@,$here,;t t
17665 s,@LIBOBJS@,$LIBOBJS,;t t
17666 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17667 CEOF
17669 _ACEOF
17671 cat >>$CONFIG_STATUS <<\_ACEOF
17672 # Split the substitutions into bite-sized pieces for seds with
17673 # small command number limits, like on Digital OSF/1 and HP-UX.
17674 ac_max_sed_lines=48
17675 ac_sed_frag=1 # Number of current file.
17676 ac_beg=1 # First line for current file.
17677 ac_end=$ac_max_sed_lines # Line after last line for current file.
17678 ac_more_lines=:
17679 ac_sed_cmds=
17680 while $ac_more_lines; do
17681 if test $ac_beg -gt 1; then
17682 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17683 else
17684 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17686 if test ! -s $tmp/subs.frag; then
17687 ac_more_lines=false
17688 else
17689 # The purpose of the label and of the branching condition is to
17690 # speed up the sed processing (if there are no `@' at all, there
17691 # is no need to browse any of the substitutions).
17692 # These are the two extra sed commands mentioned above.
17693 (echo ':t
17694 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17695 if test -z "$ac_sed_cmds"; then
17696 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17697 else
17698 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17700 ac_sed_frag=`expr $ac_sed_frag + 1`
17701 ac_beg=$ac_end
17702 ac_end=`expr $ac_end + $ac_max_sed_lines`
17704 done
17705 if test -z "$ac_sed_cmds"; then
17706 ac_sed_cmds=cat
17708 fi # test -n "$CONFIG_FILES"
17710 _ACEOF
17711 cat >>$CONFIG_STATUS <<\_ACEOF
17712 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17713 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17714 case $ac_file in
17715 - | *:- | *:-:* ) # input from stdin
17716 cat >$tmp/stdin
17717 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17718 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17719 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17720 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17721 * ) ac_file_in=$ac_file.in ;;
17722 esac
17724 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17725 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17726 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17727 X"$ac_file" : 'X\(//\)[^/]' \| \
17728 X"$ac_file" : 'X\(//\)$' \| \
17729 X"$ac_file" : 'X\(/\)' \| \
17730 . : '\(.\)' 2>/dev/null ||
17731 echo X"$ac_file" |
17732 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17733 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17734 /^X\(\/\/\)$/{ s//\1/; q; }
17735 /^X\(\/\).*/{ s//\1/; q; }
17736 s/.*/./; q'`
17737 { if $as_mkdir_p; then
17738 mkdir -p "$ac_dir"
17739 else
17740 as_dir="$ac_dir"
17741 as_dirs=
17742 while test ! -d "$as_dir"; do
17743 as_dirs="$as_dir $as_dirs"
17744 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17745 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17746 X"$as_dir" : 'X\(//\)[^/]' \| \
17747 X"$as_dir" : 'X\(//\)$' \| \
17748 X"$as_dir" : 'X\(/\)' \| \
17749 . : '\(.\)' 2>/dev/null ||
17750 echo X"$as_dir" |
17751 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17752 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17753 /^X\(\/\/\)$/{ s//\1/; q; }
17754 /^X\(\/\).*/{ s//\1/; q; }
17755 s/.*/./; q'`
17756 done
17757 test ! -n "$as_dirs" || mkdir $as_dirs
17758 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17759 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17760 { (exit 1); exit 1; }; }; }
17762 ac_builddir=.
17764 if test "$ac_dir" != .; then
17765 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17766 # A "../" for each directory in $ac_dir_suffix.
17767 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17768 else
17769 ac_dir_suffix= ac_top_builddir=
17772 case $srcdir in
17773 .) # No --srcdir option. We are building in place.
17774 ac_srcdir=.
17775 if test -z "$ac_top_builddir"; then
17776 ac_top_srcdir=.
17777 else
17778 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17779 fi ;;
17780 [\\/]* | ?:[\\/]* ) # Absolute path.
17781 ac_srcdir=$srcdir$ac_dir_suffix;
17782 ac_top_srcdir=$srcdir ;;
17783 *) # Relative path.
17784 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17785 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17786 esac
17788 # Do not use `cd foo && pwd` to compute absolute paths, because
17789 # the directories may not exist.
17790 case `pwd` in
17791 .) ac_abs_builddir="$ac_dir";;
17793 case "$ac_dir" in
17794 .) ac_abs_builddir=`pwd`;;
17795 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17796 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17797 esac;;
17798 esac
17799 case $ac_abs_builddir in
17800 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17802 case ${ac_top_builddir}. in
17803 .) ac_abs_top_builddir=$ac_abs_builddir;;
17804 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17805 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17806 esac;;
17807 esac
17808 case $ac_abs_builddir in
17809 .) ac_abs_srcdir=$ac_srcdir;;
17811 case $ac_srcdir in
17812 .) ac_abs_srcdir=$ac_abs_builddir;;
17813 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17814 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17815 esac;;
17816 esac
17817 case $ac_abs_builddir in
17818 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17820 case $ac_top_srcdir in
17821 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17822 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17823 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17824 esac;;
17825 esac
17828 case $INSTALL in
17829 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17830 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17831 esac
17833 if test x"$ac_file" != x-; then
17834 { echo "$as_me:$LINENO: creating $ac_file" >&5
17835 echo "$as_me: creating $ac_file" >&6;}
17836 rm -f "$ac_file"
17838 # Let's still pretend it is `configure' which instantiates (i.e., don't
17839 # use $as_me), people would be surprised to read:
17840 # /* config.h. Generated by config.status. */
17841 if test x"$ac_file" = x-; then
17842 configure_input=
17843 else
17844 configure_input="$ac_file. "
17846 configure_input=$configure_input"Generated from `echo $ac_file_in |
17847 sed 's,.*/,,'` by configure."
17849 # First look for the input files in the build tree, otherwise in the
17850 # src tree.
17851 ac_file_inputs=`IFS=:
17852 for f in $ac_file_in; do
17853 case $f in
17854 -) echo $tmp/stdin ;;
17855 [\\/$]*)
17856 # Absolute (can't be DOS-style, as IFS=:)
17857 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17858 echo "$as_me: error: cannot find input file: $f" >&2;}
17859 { (exit 1); exit 1; }; }
17860 echo "$f";;
17861 *) # Relative
17862 if test -f "$f"; then
17863 # Build tree
17864 echo "$f"
17865 elif test -f "$srcdir/$f"; then
17866 # Source tree
17867 echo "$srcdir/$f"
17868 else
17869 # /dev/null tree
17870 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17871 echo "$as_me: error: cannot find input file: $f" >&2;}
17872 { (exit 1); exit 1; }; }
17873 fi;;
17874 esac
17875 done` || { (exit 1); exit 1; }
17876 _ACEOF
17877 cat >>$CONFIG_STATUS <<_ACEOF
17878 sed "$ac_vpsub
17879 $extrasub
17880 _ACEOF
17881 cat >>$CONFIG_STATUS <<\_ACEOF
17883 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17884 s,@configure_input@,$configure_input,;t t
17885 s,@srcdir@,$ac_srcdir,;t t
17886 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17887 s,@top_srcdir@,$ac_top_srcdir,;t t
17888 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17889 s,@builddir@,$ac_builddir,;t t
17890 s,@abs_builddir@,$ac_abs_builddir,;t t
17891 s,@top_builddir@,$ac_top_builddir,;t t
17892 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17893 s,@INSTALL@,$ac_INSTALL,;t t
17894 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17895 rm -f $tmp/stdin
17896 if test x"$ac_file" != x-; then
17897 mv $tmp/out $ac_file
17898 else
17899 cat $tmp/out
17900 rm -f $tmp/out
17903 # Run the commands associated with the file.
17904 case $ac_file in
17905 scripts/jar ) chmod +x scripts/jar ;;
17906 esac
17907 done
17908 _ACEOF
17909 cat >>$CONFIG_STATUS <<\_ACEOF
17912 # CONFIG_HEADER section.
17915 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17916 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17918 # ac_d sets the value in "#define NAME VALUE" lines.
17919 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17920 ac_dB='[ ].*$,\1#\2'
17921 ac_dC=' '
17922 ac_dD=',;t'
17923 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17924 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17925 ac_uB='$,\1#\2define\3'
17926 ac_uC=' '
17927 ac_uD=',;t'
17929 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17930 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17931 case $ac_file in
17932 - | *:- | *:-:* ) # input from stdin
17933 cat >$tmp/stdin
17934 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17935 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17936 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17937 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17938 * ) ac_file_in=$ac_file.in ;;
17939 esac
17941 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17942 echo "$as_me: creating $ac_file" >&6;}
17944 # First look for the input files in the build tree, otherwise in the
17945 # src tree.
17946 ac_file_inputs=`IFS=:
17947 for f in $ac_file_in; do
17948 case $f in
17949 -) echo $tmp/stdin ;;
17950 [\\/$]*)
17951 # Absolute (can't be DOS-style, as IFS=:)
17952 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17953 echo "$as_me: error: cannot find input file: $f" >&2;}
17954 { (exit 1); exit 1; }; }
17955 # Do quote $f, to prevent DOS paths from being IFS'd.
17956 echo "$f";;
17957 *) # Relative
17958 if test -f "$f"; then
17959 # Build tree
17960 echo "$f"
17961 elif test -f "$srcdir/$f"; then
17962 # Source tree
17963 echo "$srcdir/$f"
17964 else
17965 # /dev/null tree
17966 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17967 echo "$as_me: error: cannot find input file: $f" >&2;}
17968 { (exit 1); exit 1; }; }
17969 fi;;
17970 esac
17971 done` || { (exit 1); exit 1; }
17972 # Remove the trailing spaces.
17973 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17975 _ACEOF
17977 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17978 # `conftest.undefs', that substitutes the proper values into
17979 # config.h.in to produce config.h. The first handles `#define'
17980 # templates, and the second `#undef' templates.
17981 # And first: Protect against being on the right side of a sed subst in
17982 # config.status. Protect against being in an unquoted here document
17983 # in config.status.
17984 rm -f conftest.defines conftest.undefs
17985 # Using a here document instead of a string reduces the quoting nightmare.
17986 # Putting comments in sed scripts is not portable.
17988 # `end' is used to avoid that the second main sed command (meant for
17989 # 0-ary CPP macros) applies to n-ary macro definitions.
17990 # See the Autoconf documentation for `clear'.
17991 cat >confdef2sed.sed <<\_ACEOF
17992 s/[\\&,]/\\&/g
17993 s,[\\$`],\\&,g
17994 t clear
17995 : clear
17996 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17997 t end
17998 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17999 : end
18000 _ACEOF
18001 # If some macros were called several times there might be several times
18002 # the same #defines, which is useless. Nevertheless, we may not want to
18003 # sort them, since we want the *last* AC-DEFINE to be honored.
18004 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18005 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18006 rm -f confdef2sed.sed
18008 # This sed command replaces #undef with comments. This is necessary, for
18009 # example, in the case of _POSIX_SOURCE, which is predefined and required
18010 # on some systems where configure will not decide to define it.
18011 cat >>conftest.undefs <<\_ACEOF
18012 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18013 _ACEOF
18015 # Break up conftest.defines because some shells have a limit on the size
18016 # of here documents, and old seds have small limits too (100 cmds).
18017 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18018 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18019 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18020 echo ' :' >>$CONFIG_STATUS
18021 rm -f conftest.tail
18022 while grep . conftest.defines >/dev/null
18024 # Write a limited-size here document to $tmp/defines.sed.
18025 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18026 # Speed up: don't consider the non `#define' lines.
18027 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18028 # Work around the forget-to-reset-the-flag bug.
18029 echo 't clr' >>$CONFIG_STATUS
18030 echo ': clr' >>$CONFIG_STATUS
18031 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18032 echo 'CEOF
18033 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18034 rm -f $tmp/in
18035 mv $tmp/out $tmp/in
18036 ' >>$CONFIG_STATUS
18037 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18038 rm -f conftest.defines
18039 mv conftest.tail conftest.defines
18040 done
18041 rm -f conftest.defines
18042 echo ' fi # grep' >>$CONFIG_STATUS
18043 echo >>$CONFIG_STATUS
18045 # Break up conftest.undefs because some shells have a limit on the size
18046 # of here documents, and old seds have small limits too (100 cmds).
18047 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18048 rm -f conftest.tail
18049 while grep . conftest.undefs >/dev/null
18051 # Write a limited-size here document to $tmp/undefs.sed.
18052 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18053 # Speed up: don't consider the non `#undef'
18054 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18055 # Work around the forget-to-reset-the-flag bug.
18056 echo 't clr' >>$CONFIG_STATUS
18057 echo ': clr' >>$CONFIG_STATUS
18058 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18059 echo 'CEOF
18060 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18061 rm -f $tmp/in
18062 mv $tmp/out $tmp/in
18063 ' >>$CONFIG_STATUS
18064 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18065 rm -f conftest.undefs
18066 mv conftest.tail conftest.undefs
18067 done
18068 rm -f conftest.undefs
18070 cat >>$CONFIG_STATUS <<\_ACEOF
18071 # Let's still pretend it is `configure' which instantiates (i.e., don't
18072 # use $as_me), people would be surprised to read:
18073 # /* config.h. Generated by config.status. */
18074 if test x"$ac_file" = x-; then
18075 echo "/* Generated by configure. */" >$tmp/config.h
18076 else
18077 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18079 cat $tmp/in >>$tmp/config.h
18080 rm -f $tmp/in
18081 if test x"$ac_file" != x-; then
18082 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18083 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18084 echo "$as_me: $ac_file is unchanged" >&6;}
18085 else
18086 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18087 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18088 X"$ac_file" : 'X\(//\)[^/]' \| \
18089 X"$ac_file" : 'X\(//\)$' \| \
18090 X"$ac_file" : 'X\(/\)' \| \
18091 . : '\(.\)' 2>/dev/null ||
18092 echo X"$ac_file" |
18093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18094 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18095 /^X\(\/\/\)$/{ s//\1/; q; }
18096 /^X\(\/\).*/{ s//\1/; q; }
18097 s/.*/./; q'`
18098 { if $as_mkdir_p; then
18099 mkdir -p "$ac_dir"
18100 else
18101 as_dir="$ac_dir"
18102 as_dirs=
18103 while test ! -d "$as_dir"; do
18104 as_dirs="$as_dir $as_dirs"
18105 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18106 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18107 X"$as_dir" : 'X\(//\)[^/]' \| \
18108 X"$as_dir" : 'X\(//\)$' \| \
18109 X"$as_dir" : 'X\(/\)' \| \
18110 . : '\(.\)' 2>/dev/null ||
18111 echo X"$as_dir" |
18112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18113 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18114 /^X\(\/\/\)$/{ s//\1/; q; }
18115 /^X\(\/\).*/{ s//\1/; q; }
18116 s/.*/./; q'`
18117 done
18118 test ! -n "$as_dirs" || mkdir $as_dirs
18119 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18120 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18121 { (exit 1); exit 1; }; }; }
18123 rm -f $ac_file
18124 mv $tmp/config.h $ac_file
18126 else
18127 cat $tmp/config.h
18128 rm -f $tmp/config.h
18130 # Compute $ac_file's index in $config_headers.
18131 _am_stamp_count=1
18132 for _am_header in $config_headers :; do
18133 case $_am_header in
18134 $ac_file | $ac_file:* )
18135 break ;;
18137 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18138 esac
18139 done
18140 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
18141 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18142 X$ac_file : 'X\(//\)[^/]' \| \
18143 X$ac_file : 'X\(//\)$' \| \
18144 X$ac_file : 'X\(/\)' \| \
18145 . : '\(.\)' 2>/dev/null ||
18146 echo X$ac_file |
18147 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18148 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18149 /^X\(\/\/\)$/{ s//\1/; q; }
18150 /^X\(\/\).*/{ s//\1/; q; }
18151 s/.*/./; q'`/stamp-h$_am_stamp_count
18152 done
18153 _ACEOF
18154 cat >>$CONFIG_STATUS <<\_ACEOF
18157 # CONFIG_LINKS section.
18160 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18161 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18162 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18164 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18165 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18167 if test ! -r $srcdir/$ac_source; then
18168 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18169 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18170 { (exit 1); exit 1; }; }
18172 rm -f $ac_dest
18174 # Make relative symlinks.
18175 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18176 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18177 X"$ac_dest" : 'X\(//\)[^/]' \| \
18178 X"$ac_dest" : 'X\(//\)$' \| \
18179 X"$ac_dest" : 'X\(/\)' \| \
18180 . : '\(.\)' 2>/dev/null ||
18181 echo X"$ac_dest" |
18182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18183 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18184 /^X\(\/\/\)$/{ s//\1/; q; }
18185 /^X\(\/\).*/{ s//\1/; q; }
18186 s/.*/./; q'`
18187 { if $as_mkdir_p; then
18188 mkdir -p "$ac_dest_dir"
18189 else
18190 as_dir="$ac_dest_dir"
18191 as_dirs=
18192 while test ! -d "$as_dir"; do
18193 as_dirs="$as_dir $as_dirs"
18194 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18195 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18196 X"$as_dir" : 'X\(//\)[^/]' \| \
18197 X"$as_dir" : 'X\(//\)$' \| \
18198 X"$as_dir" : 'X\(/\)' \| \
18199 . : '\(.\)' 2>/dev/null ||
18200 echo X"$as_dir" |
18201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18202 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18203 /^X\(\/\/\)$/{ s//\1/; q; }
18204 /^X\(\/\).*/{ s//\1/; q; }
18205 s/.*/./; q'`
18206 done
18207 test ! -n "$as_dirs" || mkdir $as_dirs
18208 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
18209 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
18210 { (exit 1); exit 1; }; }; }
18212 ac_builddir=.
18214 if test "$ac_dest_dir" != .; then
18215 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18216 # A "../" for each directory in $ac_dir_suffix.
18217 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18218 else
18219 ac_dir_suffix= ac_top_builddir=
18222 case $srcdir in
18223 .) # No --srcdir option. We are building in place.
18224 ac_srcdir=.
18225 if test -z "$ac_top_builddir"; then
18226 ac_top_srcdir=.
18227 else
18228 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18229 fi ;;
18230 [\\/]* | ?:[\\/]* ) # Absolute path.
18231 ac_srcdir=$srcdir$ac_dir_suffix;
18232 ac_top_srcdir=$srcdir ;;
18233 *) # Relative path.
18234 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18235 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18236 esac
18238 # Do not use `cd foo && pwd` to compute absolute paths, because
18239 # the directories may not exist.
18240 case `pwd` in
18241 .) ac_abs_builddir="$ac_dest_dir";;
18243 case "$ac_dest_dir" in
18244 .) ac_abs_builddir=`pwd`;;
18245 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
18246 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
18247 esac;;
18248 esac
18249 case $ac_abs_builddir in
18250 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18252 case ${ac_top_builddir}. in
18253 .) ac_abs_top_builddir=$ac_abs_builddir;;
18254 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18255 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18256 esac;;
18257 esac
18258 case $ac_abs_builddir in
18259 .) ac_abs_srcdir=$ac_srcdir;;
18261 case $ac_srcdir in
18262 .) ac_abs_srcdir=$ac_abs_builddir;;
18263 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18264 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18265 esac;;
18266 esac
18267 case $ac_abs_builddir in
18268 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18270 case $ac_top_srcdir in
18271 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18272 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18273 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18274 esac;;
18275 esac
18278 case $srcdir in
18279 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18280 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18281 esac
18283 # Try a symlink, then a hard link, then a copy.
18284 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18285 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
18286 cp -p $srcdir/$ac_source $ac_dest ||
18287 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
18288 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
18289 { (exit 1); exit 1; }; }
18290 done
18291 _ACEOF
18292 cat >>$CONFIG_STATUS <<\_ACEOF
18295 # CONFIG_COMMANDS section.
18297 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18298 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18299 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18300 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18301 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18302 X"$ac_dest" : 'X\(//\)[^/]' \| \
18303 X"$ac_dest" : 'X\(//\)$' \| \
18304 X"$ac_dest" : 'X\(/\)' \| \
18305 . : '\(.\)' 2>/dev/null ||
18306 echo X"$ac_dest" |
18307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18308 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18309 /^X\(\/\/\)$/{ s//\1/; q; }
18310 /^X\(\/\).*/{ s//\1/; q; }
18311 s/.*/./; q'`
18312 { if $as_mkdir_p; then
18313 mkdir -p "$ac_dir"
18314 else
18315 as_dir="$ac_dir"
18316 as_dirs=
18317 while test ! -d "$as_dir"; do
18318 as_dirs="$as_dir $as_dirs"
18319 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18320 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18321 X"$as_dir" : 'X\(//\)[^/]' \| \
18322 X"$as_dir" : 'X\(//\)$' \| \
18323 X"$as_dir" : 'X\(/\)' \| \
18324 . : '\(.\)' 2>/dev/null ||
18325 echo X"$as_dir" |
18326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18327 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18328 /^X\(\/\/\)$/{ s//\1/; q; }
18329 /^X\(\/\).*/{ s//\1/; q; }
18330 s/.*/./; q'`
18331 done
18332 test ! -n "$as_dirs" || mkdir $as_dirs
18333 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18334 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18335 { (exit 1); exit 1; }; }; }
18337 ac_builddir=.
18339 if test "$ac_dir" != .; then
18340 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18341 # A "../" for each directory in $ac_dir_suffix.
18342 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18343 else
18344 ac_dir_suffix= ac_top_builddir=
18347 case $srcdir in
18348 .) # No --srcdir option. We are building in place.
18349 ac_srcdir=.
18350 if test -z "$ac_top_builddir"; then
18351 ac_top_srcdir=.
18352 else
18353 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18354 fi ;;
18355 [\\/]* | ?:[\\/]* ) # Absolute path.
18356 ac_srcdir=$srcdir$ac_dir_suffix;
18357 ac_top_srcdir=$srcdir ;;
18358 *) # Relative path.
18359 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18360 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18361 esac
18363 # Do not use `cd foo && pwd` to compute absolute paths, because
18364 # the directories may not exist.
18365 case `pwd` in
18366 .) ac_abs_builddir="$ac_dir";;
18368 case "$ac_dir" in
18369 .) ac_abs_builddir=`pwd`;;
18370 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18371 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18372 esac;;
18373 esac
18374 case $ac_abs_builddir in
18375 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18377 case ${ac_top_builddir}. in
18378 .) ac_abs_top_builddir=$ac_abs_builddir;;
18379 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18380 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18381 esac;;
18382 esac
18383 case $ac_abs_builddir in
18384 .) ac_abs_srcdir=$ac_srcdir;;
18386 case $ac_srcdir in
18387 .) ac_abs_srcdir=$ac_abs_builddir;;
18388 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18389 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18390 esac;;
18391 esac
18392 case $ac_abs_builddir in
18393 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18395 case $ac_top_srcdir in
18396 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18397 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18398 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18399 esac;;
18400 esac
18403 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18404 echo "$as_me: executing $ac_dest commands" >&6;}
18405 case $ac_dest in
18406 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18407 # Strip MF so we end up with the name of the file.
18408 mf=`echo "$mf" | sed -e 's/:.*$//'`
18409 # Check whether this is an Automake generated Makefile or not.
18410 # We used to match only the files named `Makefile.in', but
18411 # some people rename them; so instead we look at the file content.
18412 # Grep'ing the first line is not enough: some people post-process
18413 # each Makefile.in and add a new line on top of each file to say so.
18414 # So let's grep whole file.
18415 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18416 dirpart=`(dirname "$mf") 2>/dev/null ||
18417 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18418 X"$mf" : 'X\(//\)[^/]' \| \
18419 X"$mf" : 'X\(//\)$' \| \
18420 X"$mf" : 'X\(/\)' \| \
18421 . : '\(.\)' 2>/dev/null ||
18422 echo X"$mf" |
18423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18424 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18425 /^X\(\/\/\)$/{ s//\1/; q; }
18426 /^X\(\/\).*/{ s//\1/; q; }
18427 s/.*/./; q'`
18428 else
18429 continue
18431 # Extract the definition of DEPDIR, am__include, and am__quote
18432 # from the Makefile without running `make'.
18433 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18434 test -z "$DEPDIR" && continue
18435 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18436 test -z "am__include" && continue
18437 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18438 # When using ansi2knr, U may be empty or an underscore; expand it
18439 U=`sed -n 's/^U = //p' < "$mf"`
18440 # Find all dependency output files, they are included files with
18441 # $(DEPDIR) in their names. We invoke sed twice because it is the
18442 # simplest approach to changing $(DEPDIR) to its actual value in the
18443 # expansion.
18444 for file in `sed -n "
18445 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18446 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18447 # Make sure the directory exists.
18448 test -f "$dirpart/$file" && continue
18449 fdir=`(dirname "$file") 2>/dev/null ||
18450 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18451 X"$file" : 'X\(//\)[^/]' \| \
18452 X"$file" : 'X\(//\)$' \| \
18453 X"$file" : 'X\(/\)' \| \
18454 . : '\(.\)' 2>/dev/null ||
18455 echo X"$file" |
18456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18457 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18458 /^X\(\/\/\)$/{ s//\1/; q; }
18459 /^X\(\/\).*/{ s//\1/; q; }
18460 s/.*/./; q'`
18461 { if $as_mkdir_p; then
18462 mkdir -p $dirpart/$fdir
18463 else
18464 as_dir=$dirpart/$fdir
18465 as_dirs=
18466 while test ! -d "$as_dir"; do
18467 as_dirs="$as_dir $as_dirs"
18468 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18469 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18470 X"$as_dir" : 'X\(//\)[^/]' \| \
18471 X"$as_dir" : 'X\(//\)$' \| \
18472 X"$as_dir" : 'X\(/\)' \| \
18473 . : '\(.\)' 2>/dev/null ||
18474 echo X"$as_dir" |
18475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18476 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18477 /^X\(\/\/\)$/{ s//\1/; q; }
18478 /^X\(\/\).*/{ s//\1/; q; }
18479 s/.*/./; q'`
18480 done
18481 test ! -n "$as_dirs" || mkdir $as_dirs
18482 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18483 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18484 { (exit 1); exit 1; }; }; }
18486 # echo "creating $dirpart/$file"
18487 echo '# dummy' > "$dirpart/$file"
18488 done
18489 done
18491 default ) # Only add multilib support code if we just rebuilt top-level Makefile.
18492 case " $CONFIG_FILES " in
18493 *" Makefile "*)
18494 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
18495 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
18497 esac
18498 for ac_multi_file in $CONFIG_FILES; do
18499 case $ac_multi_file in
18500 */Makefile)
18501 grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;;
18502 esac
18503 done
18505 esac
18506 done
18507 _ACEOF
18509 cat >>$CONFIG_STATUS <<\_ACEOF
18511 { (exit 0); exit 0; }
18512 _ACEOF
18513 chmod +x $CONFIG_STATUS
18514 ac_clean_files=$ac_clean_files_save
18517 # configure is writing to config.log, and then calls config.status.
18518 # config.status does its own redirection, appending to config.log.
18519 # Unfortunately, on DOS this fails, as config.log is still kept open
18520 # by configure, so config.status won't be able to write to it; its
18521 # output is simply discarded. So we exec the FD to /dev/null,
18522 # effectively closing config.log, so it can be properly (re)opened and
18523 # appended to by config.status. When coming back to configure, we
18524 # need to make the FD available again.
18525 if test "$no_create" != yes; then
18526 ac_cs_success=:
18527 ac_config_status_args=
18528 test "$silent" = yes &&
18529 ac_config_status_args="$ac_config_status_args --quiet"
18530 exec 5>/dev/null
18531 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18532 exec 5>>config.log
18533 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18534 # would make configure fail if this is the last instruction.
18535 $ac_cs_success || { (exit 1); exit 1; }
18539 # CONFIG_SUBDIRS section.
18541 if test "$no_recursion" != yes; then
18543 # Remove --cache-file and --srcdir arguments so they do not pile up.
18544 ac_sub_configure_args=
18545 ac_prev=
18546 for ac_arg in $ac_configure_args; do
18547 if test -n "$ac_prev"; then
18548 ac_prev=
18549 continue
18551 case $ac_arg in
18552 -cache-file | --cache-file | --cache-fil | --cache-fi \
18553 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18554 ac_prev=cache_file ;;
18555 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18556 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18557 | --c=*)
18559 --config-cache | -C)
18561 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18562 ac_prev=srcdir ;;
18563 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18565 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18566 ac_prev=prefix ;;
18567 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18569 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18570 esac
18571 done
18573 # Always prepend --prefix to ensure using the same prefix
18574 # in subdir configurations.
18575 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
18577 ac_popdir=`pwd`
18578 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18580 # Do not complain, so a configure script can configure whichever
18581 # parts of a large source tree are present.
18582 test -d $srcdir/$ac_dir || continue
18584 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
18585 echo "$as_me: configuring in $ac_dir" >&6;}
18586 { if $as_mkdir_p; then
18587 mkdir -p "$ac_dir"
18588 else
18589 as_dir="$ac_dir"
18590 as_dirs=
18591 while test ! -d "$as_dir"; do
18592 as_dirs="$as_dir $as_dirs"
18593 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18594 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18595 X"$as_dir" : 'X\(//\)[^/]' \| \
18596 X"$as_dir" : 'X\(//\)$' \| \
18597 X"$as_dir" : 'X\(/\)' \| \
18598 . : '\(.\)' 2>/dev/null ||
18599 echo X"$as_dir" |
18600 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18601 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18602 /^X\(\/\/\)$/{ s//\1/; q; }
18603 /^X\(\/\).*/{ s//\1/; q; }
18604 s/.*/./; q'`
18605 done
18606 test ! -n "$as_dirs" || mkdir $as_dirs
18607 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18608 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18609 { (exit 1); exit 1; }; }; }
18611 ac_builddir=.
18613 if test "$ac_dir" != .; then
18614 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18615 # A "../" for each directory in $ac_dir_suffix.
18616 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18617 else
18618 ac_dir_suffix= ac_top_builddir=
18621 case $srcdir in
18622 .) # No --srcdir option. We are building in place.
18623 ac_srcdir=.
18624 if test -z "$ac_top_builddir"; then
18625 ac_top_srcdir=.
18626 else
18627 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18628 fi ;;
18629 [\\/]* | ?:[\\/]* ) # Absolute path.
18630 ac_srcdir=$srcdir$ac_dir_suffix;
18631 ac_top_srcdir=$srcdir ;;
18632 *) # Relative path.
18633 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18634 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18635 esac
18637 # Do not use `cd foo && pwd` to compute absolute paths, because
18638 # the directories may not exist.
18639 case `pwd` in
18640 .) ac_abs_builddir="$ac_dir";;
18642 case "$ac_dir" in
18643 .) ac_abs_builddir=`pwd`;;
18644 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18645 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18646 esac;;
18647 esac
18648 case $ac_abs_builddir in
18649 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18651 case ${ac_top_builddir}. in
18652 .) ac_abs_top_builddir=$ac_abs_builddir;;
18653 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18654 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18655 esac;;
18656 esac
18657 case $ac_abs_builddir in
18658 .) ac_abs_srcdir=$ac_srcdir;;
18660 case $ac_srcdir in
18661 .) ac_abs_srcdir=$ac_abs_builddir;;
18662 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18663 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18664 esac;;
18665 esac
18666 case $ac_abs_builddir in
18667 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18669 case $ac_top_srcdir in
18670 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18671 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18672 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18673 esac;;
18674 esac
18677 cd $ac_dir
18679 # Check for guested configure; otherwise get Cygnus style configure.
18680 if test -f $ac_srcdir/configure.gnu; then
18681 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
18682 elif test -f $ac_srcdir/configure; then
18683 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
18684 elif test -f $ac_srcdir/configure.in; then
18685 ac_sub_configure=$ac_configure
18686 else
18687 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
18688 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18689 ac_sub_configure=
18692 # The recursion is here.
18693 if test -n "$ac_sub_configure"; then
18694 # Make the cache file name correct relative to the subdirectory.
18695 case $cache_file in
18696 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18697 *) # Relative path.
18698 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
18699 esac
18701 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
18702 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18703 # The eval makes quoting arguments work.
18704 eval $ac_sub_configure $ac_sub_configure_args \
18705 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
18706 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
18707 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
18708 { (exit 1); exit 1; }; }
18711 cd $ac_popdir
18712 done