PR rtl-opt/17503
[official-gcc.git] / libjava / configure
blobe0a8bfd6328697ad44e0d11fc5df60d5d18f8099
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 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 libgcj_basedir build build_cpu build_vendor build_os 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 AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBGCJ_CFLAGS LIBGCJ_CXXFLAGS LIBGCJ_JAVAFLAGS INCLTDL LIBLTDL DIRLTDL LIBTOOL CXXCPP CPPFLAGS GCJ GCJFLAGS GCJDEPMODE am__fastdepGCJ_TRUE am__fastdepGCJ_FALSE subdirs COMPPATH TESTSUBDIR_TRUE TESTSUBDIR_FALSE ONESTEP_TRUE ONESTEP_FALSE LIBGCJDEBUG 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_ECOS_PLATFORM_TRUE USING_ECOS_PLATFORM_FALSE SYSTEMSPEC LIBGCJTESTSPEC ZLIBSPEC ZLIBTESTSPEC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE GTK_AWT_TRUE GTK_AWT_FALSE GTK_CAIRO_TRUE GTK_CAIRO_FALSE PKG_CONFIG CAIRO_CFLAGS CAIRO_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS GCLIBS GCINCS GCDEPS GCSPEC JC1GCSPEC GCTESTSPEC USING_BOEHMGC_TRUE USING_BOEHMGC_FALSE USING_NOGC_TRUE USING_NOGC_FALSE THREADLIBS THREADINCS THREADDEPS THREADSPEC 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 tool_include_dir gcc_version LIBICONV LTLIBICONV GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS SUPPLY_BACKTRACE_TRUE SUPPLY_BACKTRACE_FALSE GCJH ZIP ac_ct_GCJ ZLIBS SYS_ZLIBS ZINCS DIVIDESPEC CHECKREFSPEC EXCEPTIONSPEC IEEESPEC NATIVE_TRUE NATIVE_FALSE NEEDS_DATA_START_TRUE NEEDS_DATA_START_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir GCJVERSION ALLOCA PERL BACKTRACESPEC SYSDEP_SOURCES 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 --disable-dependency-tracking speeds up one-time build
857 --enable-dependency-tracking do not reject slow dependency extractors
858 --enable-maintainer-mode enable make rules and dependencies not useful
859 (and sometimes confusing) to the casual installer
860 --enable-shared=PKGS build shared libraries default=yes
861 --enable-static=PKGS build static libraries default=yes
862 --enable-fast-install=PKGS optimize for fast installation default=yes
863 --disable-libtool-lock avoid locking (might break parallel builds)
864 --disable-getenv-properties
865 don't set system properties from GCJ_PROPERTIES
866 --enable-hash-synchronization
867 use global hash table for monitor locks
868 --enable-libgcj-multifile
869 allow compilation of several files at once
871 --enable-libgcj-debug enable runtime debugging code
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-awt list of AWT peer implementations to be built
879 --enable-gtk-cairo build the cairo Graphics2D implementation on GTK
880 --enable-java-gc=TYPE choose garbage collector (default is boehm)
881 --disable-rpath do not hardcode runtime library paths
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-target-subdir=SUBDIR
887 configure in a subdirectory
888 --with-cross-host=HOST configure with a cross compiler from HOST
889 --with-newlib configure with newlib
890 --with-gnu-ld assume the C compiler uses GNU ld default=no
891 --with-pic try to use only PIC/non-PIC objects default=use both
892 --with-win32-nlsapi=ansi or unicows or unicode
893 native MinGW libgcj Win32 OS API (default is ansi)
894 --without-libffi don't use libffi
895 --with-ecos enable runtime eCos target support
896 --with-system-zlib use installed libz
897 --with-x use the X Window System
898 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
899 --without-libiconv-prefix don't search for libiconv in includedir and libdir
901 Some influential environment variables:
902 CC C compiler command
903 CFLAGS C compiler flags
904 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
905 nonstandard directory <lib dir>
906 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
907 headers in a nonstandard directory <include dir>
908 CXX C++ compiler command
909 CXXFLAGS C++ compiler flags
910 CXXCPP C++ preprocessor
911 CPP C preprocessor
913 Use these variables to override the choices made by `configure' or to help
914 it to find libraries and programs with nonstandard names/locations.
916 _ACEOF
919 if test "$ac_init_help" = "recursive"; then
920 # If there are subdirs, report their specific --help.
921 ac_popdir=`pwd`
922 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
923 test -d $ac_dir || continue
924 ac_builddir=.
926 if test "$ac_dir" != .; then
927 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
928 # A "../" for each directory in $ac_dir_suffix.
929 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
930 else
931 ac_dir_suffix= ac_top_builddir=
934 case $srcdir in
935 .) # No --srcdir option. We are building in place.
936 ac_srcdir=.
937 if test -z "$ac_top_builddir"; then
938 ac_top_srcdir=.
939 else
940 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
941 fi ;;
942 [\\/]* | ?:[\\/]* ) # Absolute path.
943 ac_srcdir=$srcdir$ac_dir_suffix;
944 ac_top_srcdir=$srcdir ;;
945 *) # Relative path.
946 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
947 ac_top_srcdir=$ac_top_builddir$srcdir ;;
948 esac
950 # Do not use `cd foo && pwd` to compute absolute paths, because
951 # the directories may not exist.
952 case `pwd` in
953 .) ac_abs_builddir="$ac_dir";;
955 case "$ac_dir" in
956 .) ac_abs_builddir=`pwd`;;
957 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
958 *) ac_abs_builddir=`pwd`/"$ac_dir";;
959 esac;;
960 esac
961 case $ac_abs_builddir in
962 .) ac_abs_top_builddir=${ac_top_builddir}.;;
964 case ${ac_top_builddir}. in
965 .) ac_abs_top_builddir=$ac_abs_builddir;;
966 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
967 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
968 esac;;
969 esac
970 case $ac_abs_builddir in
971 .) ac_abs_srcdir=$ac_srcdir;;
973 case $ac_srcdir in
974 .) ac_abs_srcdir=$ac_abs_builddir;;
975 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
976 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
977 esac;;
978 esac
979 case $ac_abs_builddir in
980 .) ac_abs_top_srcdir=$ac_top_srcdir;;
982 case $ac_top_srcdir in
983 .) ac_abs_top_srcdir=$ac_abs_builddir;;
984 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
985 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
986 esac;;
987 esac
989 cd $ac_dir
990 # Check for guested configure; otherwise get Cygnus style configure.
991 if test -f $ac_srcdir/configure.gnu; then
992 echo
993 $SHELL $ac_srcdir/configure.gnu --help=recursive
994 elif test -f $ac_srcdir/configure; then
995 echo
996 $SHELL $ac_srcdir/configure --help=recursive
997 elif test -f $ac_srcdir/configure.ac ||
998 test -f $ac_srcdir/configure.in; then
999 echo
1000 $ac_configure --help
1001 else
1002 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1004 cd $ac_popdir
1005 done
1008 test -n "$ac_init_help" && exit 0
1009 if $ac_init_version; then
1010 cat <<\_ACEOF
1011 libjava configure version-unused
1012 generated by GNU Autoconf 2.59
1014 Copyright (C) 2003 Free Software Foundation, Inc.
1015 This configure script is free software; the Free Software Foundation
1016 gives unlimited permission to copy, distribute and modify it.
1017 _ACEOF
1018 exit 0
1020 exec 5>config.log
1021 cat >&5 <<_ACEOF
1022 This file contains any messages produced by compilers while
1023 running configure, to aid debugging if configure makes a mistake.
1025 It was created by libjava $as_me version-unused, which was
1026 generated by GNU Autoconf 2.59. Invocation command line was
1028 $ $0 $@
1030 _ACEOF
1032 cat <<_ASUNAME
1033 ## --------- ##
1034 ## Platform. ##
1035 ## --------- ##
1037 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1038 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1039 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1040 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1041 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1043 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1044 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1046 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1047 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1048 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1049 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1050 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1051 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1052 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1054 _ASUNAME
1056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1057 for as_dir in $PATH
1059 IFS=$as_save_IFS
1060 test -z "$as_dir" && as_dir=.
1061 echo "PATH: $as_dir"
1062 done
1064 } >&5
1066 cat >&5 <<_ACEOF
1069 ## ----------- ##
1070 ## Core tests. ##
1071 ## ----------- ##
1073 _ACEOF
1076 # Keep a trace of the command line.
1077 # Strip out --no-create and --no-recursion so they do not pile up.
1078 # Strip out --silent because we don't want to record it for future runs.
1079 # Also quote any args containing shell meta-characters.
1080 # Make two passes to allow for proper duplicate-argument suppression.
1081 ac_configure_args=
1082 ac_configure_args0=
1083 ac_configure_args1=
1084 ac_sep=
1085 ac_must_keep_next=false
1086 for ac_pass in 1 2
1088 for ac_arg
1090 case $ac_arg in
1091 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1093 | -silent | --silent | --silen | --sile | --sil)
1094 continue ;;
1095 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1096 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1097 esac
1098 case $ac_pass in
1099 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1101 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1102 if test $ac_must_keep_next = true; then
1103 ac_must_keep_next=false # Got value, back to normal.
1104 else
1105 case $ac_arg in
1106 *=* | --config-cache | -C | -disable-* | --disable-* \
1107 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1108 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1109 | -with-* | --with-* | -without-* | --without-* | --x)
1110 case "$ac_configure_args0 " in
1111 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1112 esac
1114 -* ) ac_must_keep_next=true ;;
1115 esac
1117 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1118 # Get rid of the leading space.
1119 ac_sep=" "
1121 esac
1122 done
1123 done
1124 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1125 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1127 # When interrupted or exit'd, cleanup temporary files, and complete
1128 # config.log. We remove comments because anyway the quotes in there
1129 # would cause problems or look ugly.
1130 # WARNING: Be sure not to use single quotes in there, as some shells,
1131 # such as our DU 5.0 friend, will then `close' the trap.
1132 trap 'exit_status=$?
1133 # Save into config.log some information that might help in debugging.
1135 echo
1137 cat <<\_ASBOX
1138 ## ---------------- ##
1139 ## Cache variables. ##
1140 ## ---------------- ##
1141 _ASBOX
1142 echo
1143 # The following way of writing the cache mishandles newlines in values,
1145 (set) 2>&1 |
1146 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1147 *ac_space=\ *)
1148 sed -n \
1149 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1150 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1153 sed -n \
1154 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1156 esac;
1158 echo
1160 cat <<\_ASBOX
1161 ## ----------------- ##
1162 ## Output variables. ##
1163 ## ----------------- ##
1164 _ASBOX
1165 echo
1166 for ac_var in $ac_subst_vars
1168 eval ac_val=$`echo $ac_var`
1169 echo "$ac_var='"'"'$ac_val'"'"'"
1170 done | sort
1171 echo
1173 if test -n "$ac_subst_files"; then
1174 cat <<\_ASBOX
1175 ## ------------- ##
1176 ## Output files. ##
1177 ## ------------- ##
1178 _ASBOX
1179 echo
1180 for ac_var in $ac_subst_files
1182 eval ac_val=$`echo $ac_var`
1183 echo "$ac_var='"'"'$ac_val'"'"'"
1184 done | sort
1185 echo
1188 if test -s confdefs.h; then
1189 cat <<\_ASBOX
1190 ## ----------- ##
1191 ## confdefs.h. ##
1192 ## ----------- ##
1193 _ASBOX
1194 echo
1195 sed "/^$/d" confdefs.h | sort
1196 echo
1198 test "$ac_signal" != 0 &&
1199 echo "$as_me: caught signal $ac_signal"
1200 echo "$as_me: exit $exit_status"
1201 } >&5
1202 rm -f core *.core &&
1203 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1204 exit $exit_status
1206 for ac_signal in 1 2 13 15; do
1207 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1208 done
1209 ac_signal=0
1211 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1212 rm -rf conftest* confdefs.h
1213 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1214 echo >confdefs.h
1216 # Predefined preprocessor variables.
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_NAME "$PACKAGE_NAME"
1220 _ACEOF
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1225 _ACEOF
1228 cat >>confdefs.h <<_ACEOF
1229 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1230 _ACEOF
1233 cat >>confdefs.h <<_ACEOF
1234 #define PACKAGE_STRING "$PACKAGE_STRING"
1235 _ACEOF
1238 cat >>confdefs.h <<_ACEOF
1239 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1240 _ACEOF
1243 # Let the site file select an alternate cache file if it wants to.
1244 # Prefer explicitly selected file to automatically selected ones.
1245 if test -z "$CONFIG_SITE"; then
1246 if test "x$prefix" != xNONE; then
1247 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1248 else
1249 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1252 for ac_site_file in $CONFIG_SITE; do
1253 if test -r "$ac_site_file"; then
1254 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1255 echo "$as_me: loading site script $ac_site_file" >&6;}
1256 sed 's/^/| /' "$ac_site_file" >&5
1257 . "$ac_site_file"
1259 done
1261 if test -r "$cache_file"; then
1262 # Some versions of bash will fail to source /dev/null (special
1263 # files actually), so we avoid doing that.
1264 if test -f "$cache_file"; then
1265 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1266 echo "$as_me: loading cache $cache_file" >&6;}
1267 case $cache_file in
1268 [\\/]* | ?:[\\/]* ) . $cache_file;;
1269 *) . ./$cache_file;;
1270 esac
1272 else
1273 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1274 echo "$as_me: creating cache $cache_file" >&6;}
1275 >$cache_file
1278 # Check that the precious variables saved in the cache have kept the same
1279 # value.
1280 ac_cache_corrupted=false
1281 for ac_var in `(set) 2>&1 |
1282 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1283 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1284 eval ac_new_set=\$ac_env_${ac_var}_set
1285 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1286 eval ac_new_val="\$ac_env_${ac_var}_value"
1287 case $ac_old_set,$ac_new_set in
1288 set,)
1289 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1290 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1291 ac_cache_corrupted=: ;;
1292 ,set)
1293 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1294 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1295 ac_cache_corrupted=: ;;
1296 ,);;
1298 if test "x$ac_old_val" != "x$ac_new_val"; then
1299 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1300 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1301 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1302 echo "$as_me: former value: $ac_old_val" >&2;}
1303 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1304 echo "$as_me: current value: $ac_new_val" >&2;}
1305 ac_cache_corrupted=:
1306 fi;;
1307 esac
1308 # Pass precious variables to config.status.
1309 if test "$ac_new_set" = set; then
1310 case $ac_new_val in
1311 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1312 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1313 *) ac_arg=$ac_var=$ac_new_val ;;
1314 esac
1315 case " $ac_configure_args " in
1316 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1317 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1318 esac
1320 done
1321 if $ac_cache_corrupted; then
1322 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1323 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1324 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1325 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1326 { (exit 1); exit 1; }; }
1329 ac_ext=c
1330 ac_cpp='$CPP $CPPFLAGS'
1331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1364 # We use these options to decide which functions to include.
1366 # Check whether --with-target-subdir or --without-target-subdir was given.
1367 if test "${with_target_subdir+set}" = set; then
1368 withval="$with_target_subdir"
1372 # We may get other options which we don't document:
1373 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1375 # When building with srcdir == objdir, links to the source files will
1376 # be created in directories within the target_subdir. We have to
1377 # adjust toplevel_srcdir accordingly, so that configure finds
1378 # install-sh and other auxiliary files that live in the top-level
1379 # source directory.
1380 if test "${srcdir}" = "."; then
1381 if test -z "${with_target_subdir}"; then
1382 toprel=".."
1383 else
1384 if test "${with_target_subdir}" != "."; then
1385 toprel="${with_multisrctop}../.."
1386 else
1387 toprel="${with_multisrctop}.."
1390 else
1391 toprel=".."
1394 libgcj_basedir=$srcdir/$toprel/./libjava
1397 ac_aux_dir=
1398 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1399 if test -f $ac_dir/install-sh; then
1400 ac_aux_dir=$ac_dir
1401 ac_install_sh="$ac_aux_dir/install-sh -c"
1402 break
1403 elif test -f $ac_dir/install.sh; then
1404 ac_aux_dir=$ac_dir
1405 ac_install_sh="$ac_aux_dir/install.sh -c"
1406 break
1407 elif test -f $ac_dir/shtool; then
1408 ac_aux_dir=$ac_dir
1409 ac_install_sh="$ac_aux_dir/shtool install -c"
1410 break
1412 done
1413 if test -z "$ac_aux_dir"; then
1414 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1415 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1416 { (exit 1); exit 1; }; }
1418 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1419 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1420 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1422 # Make sure we can run config.sub.
1423 $ac_config_sub sun4 >/dev/null 2>&1 ||
1424 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1425 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1426 { (exit 1); exit 1; }; }
1428 echo "$as_me:$LINENO: checking build system type" >&5
1429 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1430 if test "${ac_cv_build+set}" = set; then
1431 echo $ECHO_N "(cached) $ECHO_C" >&6
1432 else
1433 ac_cv_build_alias=$build_alias
1434 test -z "$ac_cv_build_alias" &&
1435 ac_cv_build_alias=`$ac_config_guess`
1436 test -z "$ac_cv_build_alias" &&
1437 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1438 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1439 { (exit 1); exit 1; }; }
1440 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1441 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1442 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1443 { (exit 1); exit 1; }; }
1446 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1447 echo "${ECHO_T}$ac_cv_build" >&6
1448 build=$ac_cv_build
1449 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1450 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1451 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1454 echo "$as_me:$LINENO: checking host system type" >&5
1455 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1456 if test "${ac_cv_host+set}" = set; then
1457 echo $ECHO_N "(cached) $ECHO_C" >&6
1458 else
1459 ac_cv_host_alias=$host_alias
1460 test -z "$ac_cv_host_alias" &&
1461 ac_cv_host_alias=$ac_cv_build_alias
1462 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1463 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1464 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1465 { (exit 1); exit 1; }; }
1468 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1469 echo "${ECHO_T}$ac_cv_host" >&6
1470 host=$ac_cv_host
1471 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1472 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1473 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1476 echo "$as_me:$LINENO: checking target system type" >&5
1477 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1478 if test "${ac_cv_target+set}" = set; then
1479 echo $ECHO_N "(cached) $ECHO_C" >&6
1480 else
1481 ac_cv_target_alias=$target_alias
1482 test "x$ac_cv_target_alias" = "x" &&
1483 ac_cv_target_alias=$ac_cv_host_alias
1484 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1485 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1486 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1487 { (exit 1); exit 1; }; }
1490 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1491 echo "${ECHO_T}$ac_cv_target" >&6
1492 target=$ac_cv_target
1493 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1494 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1495 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1498 # The aliases save the names the user supplied, while $host etc.
1499 # will get canonicalized.
1500 test -n "$target_alias" &&
1501 test "$program_prefix$program_suffix$program_transform_name" = \
1502 NONENONEs,x,x, &&
1503 program_prefix=${target_alias}-
1504 case ${build_alias} in
1505 "") build_noncanonical=${build} ;;
1506 *) build_noncanonical=${build_alias} ;;
1507 esac
1509 case ${host_alias} in
1510 "") host_noncanonical=${build_noncanonical} ;;
1511 *) host_noncanonical=${host_alias} ;;
1512 esac
1514 case ${target_alias} in
1515 "") target_noncanonical=${host_noncanonical} ;;
1516 *) target_noncanonical=${target_alias} ;;
1517 esac
1522 # This works around the fact that libtool configuration may change LD
1523 # for this particular configuration, but some shells, instead of
1524 # keeping the changes in LD private, export them just because LD is
1525 # exported.
1526 ORIGINAL_LD_FOR_MULTILIBS=$LD
1528 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1529 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1530 LN_S=$as_ln_s
1531 if test "$LN_S" = "ln -s"; then
1532 echo "$as_me:$LINENO: result: yes" >&5
1533 echo "${ECHO_T}yes" >&6
1534 else
1535 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1536 echo "${ECHO_T}no, using $LN_S" >&6
1540 # This works around an automake problem.
1541 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1545 # Check whether --with-cross-host or --without-cross-host was given.
1546 if test "${with_cross_host+set}" = set; then
1547 withval="$with_cross_host"
1552 # Check whether --with-newlib or --without-newlib was given.
1553 if test "${with_newlib+set}" = set; then
1554 withval="$with_newlib"
1558 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1559 if test "${enable_version_specific_runtime_libs+set}" = set; then
1560 enableval="$enable_version_specific_runtime_libs"
1561 case "$enableval" in
1562 yes) version_specific_libs=yes ;;
1563 no) version_specific_libs=no ;;
1564 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1565 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1566 { (exit 1); exit 1; }; };;
1567 esac
1568 else
1569 version_specific_libs=no
1573 # Default to --enable-multilib
1574 # Check whether --enable-multilib or --disable-multilib was given.
1575 if test "${enable_multilib+set}" = set; then
1576 enableval="$enable_multilib"
1577 case "${enableval}" in
1578 yes) multilib=yes ;;
1579 no) multilib=no ;;
1580 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1581 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1582 { (exit 1); exit 1; }; } ;;
1583 esac
1584 else
1585 multilib=yes
1587 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1590 # (1) We use an abnormal CXX (without library references), so we
1591 # must cache it under a different name.
1592 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1593 # the non-multilib-adjusted value will be used in multilibs.
1594 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1595 # (4) As another side effect, automake doesn't automatically include them
1596 # in Makefile.in.
1597 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1598 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1599 # used in later tests. This may not be necessary in libjava; I don't know.
1603 save_CXXFLAGS="$CXXFLAGS"
1604 CXXFLAGS="$CXXFLAGS -fno-builtin"
1605 ac_ext=c
1606 ac_cpp='$CPP $CPPFLAGS'
1607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1610 if test -n "$ac_tool_prefix"; then
1611 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1612 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1613 echo "$as_me:$LINENO: checking for $ac_word" >&5
1614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1615 if test "${ac_cv_prog_CC+set}" = set; then
1616 echo $ECHO_N "(cached) $ECHO_C" >&6
1617 else
1618 if test -n "$CC"; then
1619 ac_cv_prog_CC="$CC" # Let the user override the test.
1620 else
1621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1622 for as_dir in $PATH
1624 IFS=$as_save_IFS
1625 test -z "$as_dir" && as_dir=.
1626 for ac_exec_ext in '' $ac_executable_extensions; do
1627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1628 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1630 break 2
1632 done
1633 done
1637 CC=$ac_cv_prog_CC
1638 if test -n "$CC"; then
1639 echo "$as_me:$LINENO: result: $CC" >&5
1640 echo "${ECHO_T}$CC" >&6
1641 else
1642 echo "$as_me:$LINENO: result: no" >&5
1643 echo "${ECHO_T}no" >&6
1647 if test -z "$ac_cv_prog_CC"; then
1648 ac_ct_CC=$CC
1649 # Extract the first word of "gcc", so it can be a program name with args.
1650 set dummy gcc; ac_word=$2
1651 echo "$as_me:$LINENO: checking for $ac_word" >&5
1652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1653 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1654 echo $ECHO_N "(cached) $ECHO_C" >&6
1655 else
1656 if test -n "$ac_ct_CC"; then
1657 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1658 else
1659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1660 for as_dir in $PATH
1662 IFS=$as_save_IFS
1663 test -z "$as_dir" && as_dir=.
1664 for ac_exec_ext in '' $ac_executable_extensions; do
1665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1666 ac_cv_prog_ac_ct_CC="gcc"
1667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1668 break 2
1670 done
1671 done
1675 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1676 if test -n "$ac_ct_CC"; then
1677 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1678 echo "${ECHO_T}$ac_ct_CC" >&6
1679 else
1680 echo "$as_me:$LINENO: result: no" >&5
1681 echo "${ECHO_T}no" >&6
1684 CC=$ac_ct_CC
1685 else
1686 CC="$ac_cv_prog_CC"
1689 if test -z "$CC"; then
1690 if test -n "$ac_tool_prefix"; then
1691 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1692 set dummy ${ac_tool_prefix}cc; ac_word=$2
1693 echo "$as_me:$LINENO: checking for $ac_word" >&5
1694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1695 if test "${ac_cv_prog_CC+set}" = set; then
1696 echo $ECHO_N "(cached) $ECHO_C" >&6
1697 else
1698 if test -n "$CC"; then
1699 ac_cv_prog_CC="$CC" # Let the user override the test.
1700 else
1701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702 for as_dir in $PATH
1704 IFS=$as_save_IFS
1705 test -z "$as_dir" && as_dir=.
1706 for ac_exec_ext in '' $ac_executable_extensions; do
1707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1708 ac_cv_prog_CC="${ac_tool_prefix}cc"
1709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1710 break 2
1712 done
1713 done
1717 CC=$ac_cv_prog_CC
1718 if test -n "$CC"; then
1719 echo "$as_me:$LINENO: result: $CC" >&5
1720 echo "${ECHO_T}$CC" >&6
1721 else
1722 echo "$as_me:$LINENO: result: no" >&5
1723 echo "${ECHO_T}no" >&6
1727 if test -z "$ac_cv_prog_CC"; then
1728 ac_ct_CC=$CC
1729 # Extract the first word of "cc", so it can be a program name with args.
1730 set dummy cc; ac_word=$2
1731 echo "$as_me:$LINENO: checking for $ac_word" >&5
1732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1733 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1734 echo $ECHO_N "(cached) $ECHO_C" >&6
1735 else
1736 if test -n "$ac_ct_CC"; then
1737 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1738 else
1739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1740 for as_dir in $PATH
1742 IFS=$as_save_IFS
1743 test -z "$as_dir" && as_dir=.
1744 for ac_exec_ext in '' $ac_executable_extensions; do
1745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1746 ac_cv_prog_ac_ct_CC="cc"
1747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1748 break 2
1750 done
1751 done
1755 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1756 if test -n "$ac_ct_CC"; then
1757 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1758 echo "${ECHO_T}$ac_ct_CC" >&6
1759 else
1760 echo "$as_me:$LINENO: result: no" >&5
1761 echo "${ECHO_T}no" >&6
1764 CC=$ac_ct_CC
1765 else
1766 CC="$ac_cv_prog_CC"
1770 if test -z "$CC"; then
1771 # Extract the first word of "cc", so it can be a program name with args.
1772 set dummy cc; ac_word=$2
1773 echo "$as_me:$LINENO: checking for $ac_word" >&5
1774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1775 if test "${ac_cv_prog_CC+set}" = set; then
1776 echo $ECHO_N "(cached) $ECHO_C" >&6
1777 else
1778 if test -n "$CC"; then
1779 ac_cv_prog_CC="$CC" # Let the user override the test.
1780 else
1781 ac_prog_rejected=no
1782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1783 for as_dir in $PATH
1785 IFS=$as_save_IFS
1786 test -z "$as_dir" && as_dir=.
1787 for ac_exec_ext in '' $ac_executable_extensions; do
1788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1789 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1790 ac_prog_rejected=yes
1791 continue
1793 ac_cv_prog_CC="cc"
1794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1795 break 2
1797 done
1798 done
1800 if test $ac_prog_rejected = yes; then
1801 # We found a bogon in the path, so make sure we never use it.
1802 set dummy $ac_cv_prog_CC
1803 shift
1804 if test $# != 0; then
1805 # We chose a different compiler from the bogus one.
1806 # However, it has the same basename, so the bogon will be chosen
1807 # first if we set CC to just the basename; use the full file name.
1808 shift
1809 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1814 CC=$ac_cv_prog_CC
1815 if test -n "$CC"; then
1816 echo "$as_me:$LINENO: result: $CC" >&5
1817 echo "${ECHO_T}$CC" >&6
1818 else
1819 echo "$as_me:$LINENO: result: no" >&5
1820 echo "${ECHO_T}no" >&6
1824 if test -z "$CC"; then
1825 if test -n "$ac_tool_prefix"; then
1826 for ac_prog in cl
1828 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1829 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1830 echo "$as_me:$LINENO: checking for $ac_word" >&5
1831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1832 if test "${ac_cv_prog_CC+set}" = set; then
1833 echo $ECHO_N "(cached) $ECHO_C" >&6
1834 else
1835 if test -n "$CC"; then
1836 ac_cv_prog_CC="$CC" # Let the user override the test.
1837 else
1838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1839 for as_dir in $PATH
1841 IFS=$as_save_IFS
1842 test -z "$as_dir" && as_dir=.
1843 for ac_exec_ext in '' $ac_executable_extensions; do
1844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1845 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1847 break 2
1849 done
1850 done
1854 CC=$ac_cv_prog_CC
1855 if test -n "$CC"; then
1856 echo "$as_me:$LINENO: result: $CC" >&5
1857 echo "${ECHO_T}$CC" >&6
1858 else
1859 echo "$as_me:$LINENO: result: no" >&5
1860 echo "${ECHO_T}no" >&6
1863 test -n "$CC" && break
1864 done
1866 if test -z "$CC"; then
1867 ac_ct_CC=$CC
1868 for ac_prog in cl
1870 # Extract the first word of "$ac_prog", so it can be a program name with args.
1871 set dummy $ac_prog; ac_word=$2
1872 echo "$as_me:$LINENO: checking for $ac_word" >&5
1873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1874 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1875 echo $ECHO_N "(cached) $ECHO_C" >&6
1876 else
1877 if test -n "$ac_ct_CC"; then
1878 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1879 else
1880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1881 for as_dir in $PATH
1883 IFS=$as_save_IFS
1884 test -z "$as_dir" && as_dir=.
1885 for ac_exec_ext in '' $ac_executable_extensions; do
1886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1887 ac_cv_prog_ac_ct_CC="$ac_prog"
1888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1889 break 2
1891 done
1892 done
1896 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1897 if test -n "$ac_ct_CC"; then
1898 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1899 echo "${ECHO_T}$ac_ct_CC" >&6
1900 else
1901 echo "$as_me:$LINENO: result: no" >&5
1902 echo "${ECHO_T}no" >&6
1905 test -n "$ac_ct_CC" && break
1906 done
1908 CC=$ac_ct_CC
1914 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1915 See \`config.log' for more details." >&5
1916 echo "$as_me: error: no acceptable C compiler found in \$PATH
1917 See \`config.log' for more details." >&2;}
1918 { (exit 1); exit 1; }; }
1920 # Provide some information about the compiler.
1921 echo "$as_me:$LINENO:" \
1922 "checking for C compiler version" >&5
1923 ac_compiler=`set X $ac_compile; echo $2`
1924 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1925 (eval $ac_compiler --version </dev/null >&5) 2>&5
1926 ac_status=$?
1927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1928 (exit $ac_status); }
1929 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1930 (eval $ac_compiler -v </dev/null >&5) 2>&5
1931 ac_status=$?
1932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1933 (exit $ac_status); }
1934 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1935 (eval $ac_compiler -V </dev/null >&5) 2>&5
1936 ac_status=$?
1937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938 (exit $ac_status); }
1940 cat >conftest.$ac_ext <<_ACEOF
1941 /* confdefs.h. */
1942 _ACEOF
1943 cat confdefs.h >>conftest.$ac_ext
1944 cat >>conftest.$ac_ext <<_ACEOF
1945 /* end confdefs.h. */
1948 main ()
1952 return 0;
1954 _ACEOF
1955 # FIXME: Cleanup?
1956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1957 (eval $ac_link) 2>&5
1958 ac_status=$?
1959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1960 (exit $ac_status); }; then
1961 gcc_no_link=no
1962 else
1963 gcc_no_link=yes
1966 if test x$gcc_no_link = xyes; then
1967 # Setting cross_compile will disable run tests; it will
1968 # also disable AC_CHECK_FILE but that's generally
1969 # correct if we can't link.
1970 cross_compiling=yes
1971 EXEEXT=
1972 else
1973 cat >conftest.$ac_ext <<_ACEOF
1974 /* confdefs.h. */
1975 _ACEOF
1976 cat confdefs.h >>conftest.$ac_ext
1977 cat >>conftest.$ac_ext <<_ACEOF
1978 /* end confdefs.h. */
1981 main ()
1985 return 0;
1987 _ACEOF
1988 ac_clean_files_save=$ac_clean_files
1989 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1990 # Try to create an executable without -o first, disregard a.out.
1991 # It will help us diagnose broken compilers, and finding out an intuition
1992 # of exeext.
1993 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1994 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1995 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1996 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1997 (eval $ac_link_default) 2>&5
1998 ac_status=$?
1999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2000 (exit $ac_status); }; then
2001 # Find the output, starting from the most likely. This scheme is
2002 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2003 # resort.
2005 # Be careful to initialize this variable, since it used to be cached.
2006 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2007 ac_cv_exeext=
2008 # b.out is created by i960 compilers.
2009 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2011 test -f "$ac_file" || continue
2012 case $ac_file in
2013 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2015 conftest.$ac_ext )
2016 # This is the source file.
2018 [ab].out )
2019 # We found the default executable, but exeext='' is most
2020 # certainly right.
2021 break;;
2022 *.* )
2023 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2024 # FIXME: I believe we export ac_cv_exeext for Libtool,
2025 # but it would be cool to find out if it's true. Does anybody
2026 # maintain Libtool? --akim.
2027 export ac_cv_exeext
2028 break;;
2030 break;;
2031 esac
2032 done
2033 else
2034 echo "$as_me: failed program was:" >&5
2035 sed 's/^/| /' conftest.$ac_ext >&5
2037 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2038 See \`config.log' for more details." >&5
2039 echo "$as_me: error: C compiler cannot create executables
2040 See \`config.log' for more details." >&2;}
2041 { (exit 77); exit 77; }; }
2044 ac_exeext=$ac_cv_exeext
2045 echo "$as_me:$LINENO: result: $ac_file" >&5
2046 echo "${ECHO_T}$ac_file" >&6
2048 # Check the compiler produces executables we can run. If not, either
2049 # the compiler is broken, or we cross compile.
2050 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2051 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2052 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2053 # If not cross compiling, check that we can run a simple program.
2054 if test "$cross_compiling" != yes; then
2055 if { ac_try='./$ac_file'
2056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2057 (eval $ac_try) 2>&5
2058 ac_status=$?
2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 (exit $ac_status); }; }; then
2061 cross_compiling=no
2062 else
2063 if test "$cross_compiling" = maybe; then
2064 cross_compiling=yes
2065 else
2066 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2067 If you meant to cross compile, use \`--host'.
2068 See \`config.log' for more details." >&5
2069 echo "$as_me: error: cannot run C compiled programs.
2070 If you meant to cross compile, use \`--host'.
2071 See \`config.log' for more details." >&2;}
2072 { (exit 1); exit 1; }; }
2076 echo "$as_me:$LINENO: result: yes" >&5
2077 echo "${ECHO_T}yes" >&6
2079 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2080 ac_clean_files=$ac_clean_files_save
2081 # Check the compiler produces executables we can run. If not, either
2082 # the compiler is broken, or we cross compile.
2083 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2084 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2085 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2086 echo "${ECHO_T}$cross_compiling" >&6
2088 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2089 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2091 (eval $ac_link) 2>&5
2092 ac_status=$?
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }; then
2095 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2096 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2097 # work properly (i.e., refer to `conftest.exe'), while it won't with
2098 # `rm'.
2099 for ac_file in conftest.exe conftest conftest.*; do
2100 test -f "$ac_file" || continue
2101 case $ac_file in
2102 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2103 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2104 export ac_cv_exeext
2105 break;;
2106 * ) break;;
2107 esac
2108 done
2109 else
2110 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2111 See \`config.log' for more details." >&5
2112 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2113 See \`config.log' for more details." >&2;}
2114 { (exit 1); exit 1; }; }
2117 rm -f conftest$ac_cv_exeext
2118 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2119 echo "${ECHO_T}$ac_cv_exeext" >&6
2121 rm -f conftest.$ac_ext
2122 EXEEXT=$ac_cv_exeext
2123 ac_exeext=$EXEEXT
2125 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2126 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2127 if test "${ac_cv_objext+set}" = set; then
2128 echo $ECHO_N "(cached) $ECHO_C" >&6
2129 else
2130 cat >conftest.$ac_ext <<_ACEOF
2131 /* confdefs.h. */
2132 _ACEOF
2133 cat confdefs.h >>conftest.$ac_ext
2134 cat >>conftest.$ac_ext <<_ACEOF
2135 /* end confdefs.h. */
2138 main ()
2142 return 0;
2144 _ACEOF
2145 rm -f conftest.o conftest.obj
2146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2147 (eval $ac_compile) 2>&5
2148 ac_status=$?
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); }; then
2151 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2152 case $ac_file in
2153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2154 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2155 break;;
2156 esac
2157 done
2158 else
2159 echo "$as_me: failed program was:" >&5
2160 sed 's/^/| /' conftest.$ac_ext >&5
2162 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2163 See \`config.log' for more details." >&5
2164 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2165 See \`config.log' for more details." >&2;}
2166 { (exit 1); exit 1; }; }
2169 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2171 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2172 echo "${ECHO_T}$ac_cv_objext" >&6
2173 OBJEXT=$ac_cv_objext
2174 ac_objext=$OBJEXT
2175 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2176 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2177 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2179 else
2180 cat >conftest.$ac_ext <<_ACEOF
2181 /* confdefs.h. */
2182 _ACEOF
2183 cat confdefs.h >>conftest.$ac_ext
2184 cat >>conftest.$ac_ext <<_ACEOF
2185 /* end confdefs.h. */
2188 main ()
2190 #ifndef __GNUC__
2191 choke me
2192 #endif
2195 return 0;
2197 _ACEOF
2198 rm -f conftest.$ac_objext
2199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2200 (eval $ac_compile) 2>conftest.er1
2201 ac_status=$?
2202 grep -v '^ *+' conftest.er1 >conftest.err
2203 rm -f conftest.er1
2204 cat conftest.err >&5
2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206 (exit $ac_status); } &&
2207 { ac_try='test -z "$ac_c_werror_flag"
2208 || test ! -s conftest.err'
2209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2210 (eval $ac_try) 2>&5
2211 ac_status=$?
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); }; } &&
2214 { ac_try='test -s conftest.$ac_objext'
2215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2216 (eval $ac_try) 2>&5
2217 ac_status=$?
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; }; then
2220 ac_compiler_gnu=yes
2221 else
2222 echo "$as_me: failed program was:" >&5
2223 sed 's/^/| /' conftest.$ac_ext >&5
2225 ac_compiler_gnu=no
2227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2228 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2231 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2232 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2233 GCC=`test $ac_compiler_gnu = yes && echo yes`
2234 ac_test_CFLAGS=${CFLAGS+set}
2235 ac_save_CFLAGS=$CFLAGS
2236 CFLAGS="-g"
2237 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2238 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2239 if test "${ac_cv_prog_cc_g+set}" = set; then
2240 echo $ECHO_N "(cached) $ECHO_C" >&6
2241 else
2242 cat >conftest.$ac_ext <<_ACEOF
2243 /* confdefs.h. */
2244 _ACEOF
2245 cat confdefs.h >>conftest.$ac_ext
2246 cat >>conftest.$ac_ext <<_ACEOF
2247 /* end confdefs.h. */
2250 main ()
2254 return 0;
2256 _ACEOF
2257 rm -f conftest.$ac_objext
2258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2259 (eval $ac_compile) 2>conftest.er1
2260 ac_status=$?
2261 grep -v '^ *+' conftest.er1 >conftest.err
2262 rm -f conftest.er1
2263 cat conftest.err >&5
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); } &&
2266 { ac_try='test -z "$ac_c_werror_flag"
2267 || test ! -s conftest.err'
2268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269 (eval $ac_try) 2>&5
2270 ac_status=$?
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); }; } &&
2273 { ac_try='test -s conftest.$ac_objext'
2274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275 (eval $ac_try) 2>&5
2276 ac_status=$?
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }; }; then
2279 ac_cv_prog_cc_g=yes
2280 else
2281 echo "$as_me: failed program was:" >&5
2282 sed 's/^/| /' conftest.$ac_ext >&5
2284 ac_cv_prog_cc_g=no
2286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2288 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2289 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2290 if test "$ac_test_CFLAGS" = set; then
2291 CFLAGS=$ac_save_CFLAGS
2292 elif test $ac_cv_prog_cc_g = yes; then
2293 if test "$GCC" = yes; then
2294 CFLAGS="-g -O2"
2295 else
2296 CFLAGS="-g"
2298 else
2299 if test "$GCC" = yes; then
2300 CFLAGS="-O2"
2301 else
2302 CFLAGS=
2305 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2306 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2307 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2308 echo $ECHO_N "(cached) $ECHO_C" >&6
2309 else
2310 ac_cv_prog_cc_stdc=no
2311 ac_save_CC=$CC
2312 cat >conftest.$ac_ext <<_ACEOF
2313 /* confdefs.h. */
2314 _ACEOF
2315 cat confdefs.h >>conftest.$ac_ext
2316 cat >>conftest.$ac_ext <<_ACEOF
2317 /* end confdefs.h. */
2318 #include <stdarg.h>
2319 #include <stdio.h>
2320 #include <sys/types.h>
2321 #include <sys/stat.h>
2322 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2323 struct buf { int x; };
2324 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2325 static char *e (p, i)
2326 char **p;
2327 int i;
2329 return p[i];
2331 static char *f (char * (*g) (char **, int), char **p, ...)
2333 char *s;
2334 va_list v;
2335 va_start (v,p);
2336 s = g (p, va_arg (v,int));
2337 va_end (v);
2338 return s;
2341 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2342 function prototypes and stuff, but not '\xHH' hex character constants.
2343 These don't provoke an error unfortunately, instead are silently treated
2344 as 'x'. The following induces an error, until -std1 is added to get
2345 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2346 array size at least. It's necessary to write '\x00'==0 to get something
2347 that's true only with -std1. */
2348 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2350 int test (int i, double x);
2351 struct s1 {int (*f) (int a);};
2352 struct s2 {int (*f) (double a);};
2353 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2354 int argc;
2355 char **argv;
2357 main ()
2359 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2361 return 0;
2363 _ACEOF
2364 # Don't try gcc -ansi; that turns off useful extensions and
2365 # breaks some systems' header files.
2366 # AIX -qlanglvl=ansi
2367 # Ultrix and OSF/1 -std1
2368 # HP-UX 10.20 and later -Ae
2369 # HP-UX older versions -Aa -D_HPUX_SOURCE
2370 # SVR4 -Xc -D__EXTENSIONS__
2371 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2373 CC="$ac_save_CC $ac_arg"
2374 rm -f conftest.$ac_objext
2375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2376 (eval $ac_compile) 2>conftest.er1
2377 ac_status=$?
2378 grep -v '^ *+' conftest.er1 >conftest.err
2379 rm -f conftest.er1
2380 cat conftest.err >&5
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); } &&
2383 { ac_try='test -z "$ac_c_werror_flag"
2384 || test ! -s conftest.err'
2385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2386 (eval $ac_try) 2>&5
2387 ac_status=$?
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); }; } &&
2390 { ac_try='test -s conftest.$ac_objext'
2391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2392 (eval $ac_try) 2>&5
2393 ac_status=$?
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); }; }; then
2396 ac_cv_prog_cc_stdc=$ac_arg
2397 break
2398 else
2399 echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2403 rm -f conftest.err conftest.$ac_objext
2404 done
2405 rm -f conftest.$ac_ext conftest.$ac_objext
2406 CC=$ac_save_CC
2410 case "x$ac_cv_prog_cc_stdc" in
2411 x|xno)
2412 echo "$as_me:$LINENO: result: none needed" >&5
2413 echo "${ECHO_T}none needed" >&6 ;;
2415 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2416 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2417 CC="$CC $ac_cv_prog_cc_stdc" ;;
2418 esac
2420 # Some people use a C++ compiler to compile C. Since we use `exit',
2421 # in C++ we need to declare it. In case someone uses the same compiler
2422 # for both compiling C and C++ we need to have the C++ compiler decide
2423 # the declaration of exit, since it's the most demanding environment.
2424 cat >conftest.$ac_ext <<_ACEOF
2425 #ifndef __cplusplus
2426 choke me
2427 #endif
2428 _ACEOF
2429 rm -f conftest.$ac_objext
2430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2431 (eval $ac_compile) 2>conftest.er1
2432 ac_status=$?
2433 grep -v '^ *+' conftest.er1 >conftest.err
2434 rm -f conftest.er1
2435 cat conftest.err >&5
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); } &&
2438 { ac_try='test -z "$ac_c_werror_flag"
2439 || test ! -s conftest.err'
2440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441 (eval $ac_try) 2>&5
2442 ac_status=$?
2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); }; } &&
2445 { ac_try='test -s conftest.$ac_objext'
2446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2447 (eval $ac_try) 2>&5
2448 ac_status=$?
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; }; then
2451 for ac_declaration in \
2452 '' \
2453 'extern "C" void std::exit (int) throw (); using std::exit;' \
2454 'extern "C" void std::exit (int); using std::exit;' \
2455 'extern "C" void exit (int) throw ();' \
2456 'extern "C" void exit (int);' \
2457 'void exit (int);'
2459 cat >conftest.$ac_ext <<_ACEOF
2460 /* confdefs.h. */
2461 _ACEOF
2462 cat confdefs.h >>conftest.$ac_ext
2463 cat >>conftest.$ac_ext <<_ACEOF
2464 /* end confdefs.h. */
2465 $ac_declaration
2466 #include <stdlib.h>
2468 main ()
2470 exit (42);
2472 return 0;
2474 _ACEOF
2475 rm -f conftest.$ac_objext
2476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2477 (eval $ac_compile) 2>conftest.er1
2478 ac_status=$?
2479 grep -v '^ *+' conftest.er1 >conftest.err
2480 rm -f conftest.er1
2481 cat conftest.err >&5
2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483 (exit $ac_status); } &&
2484 { ac_try='test -z "$ac_c_werror_flag"
2485 || test ! -s conftest.err'
2486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2487 (eval $ac_try) 2>&5
2488 ac_status=$?
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); }; } &&
2491 { ac_try='test -s conftest.$ac_objext'
2492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2493 (eval $ac_try) 2>&5
2494 ac_status=$?
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }; }; then
2498 else
2499 echo "$as_me: failed program was:" >&5
2500 sed 's/^/| /' conftest.$ac_ext >&5
2502 continue
2504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2505 cat >conftest.$ac_ext <<_ACEOF
2506 /* confdefs.h. */
2507 _ACEOF
2508 cat confdefs.h >>conftest.$ac_ext
2509 cat >>conftest.$ac_ext <<_ACEOF
2510 /* end confdefs.h. */
2511 $ac_declaration
2513 main ()
2515 exit (42);
2517 return 0;
2519 _ACEOF
2520 rm -f conftest.$ac_objext
2521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2522 (eval $ac_compile) 2>conftest.er1
2523 ac_status=$?
2524 grep -v '^ *+' conftest.er1 >conftest.err
2525 rm -f conftest.er1
2526 cat conftest.err >&5
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); } &&
2529 { ac_try='test -z "$ac_c_werror_flag"
2530 || test ! -s conftest.err'
2531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532 (eval $ac_try) 2>&5
2533 ac_status=$?
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; } &&
2536 { ac_try='test -s conftest.$ac_objext'
2537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538 (eval $ac_try) 2>&5
2539 ac_status=$?
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }; }; then
2542 break
2543 else
2544 echo "$as_me: failed program was:" >&5
2545 sed 's/^/| /' conftest.$ac_ext >&5
2548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2549 done
2550 rm -f conftest*
2551 if test -n "$ac_declaration"; then
2552 echo '#ifdef __cplusplus' >>confdefs.h
2553 echo $ac_declaration >>confdefs.h
2554 echo '#endif' >>confdefs.h
2557 else
2558 echo "$as_me: failed program was:" >&5
2559 sed 's/^/| /' conftest.$ac_ext >&5
2562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2563 ac_ext=c
2564 ac_cpp='$CPP $CPPFLAGS'
2565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2569 ac_ext=cc
2570 ac_cpp='$CXXCPP $CPPFLAGS'
2571 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2572 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2573 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2574 if test -n "$ac_tool_prefix"; then
2575 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2577 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2578 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2579 echo "$as_me:$LINENO: checking for $ac_word" >&5
2580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2581 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2582 echo $ECHO_N "(cached) $ECHO_C" >&6
2583 else
2584 if test -n "$CXX"; then
2585 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2586 else
2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588 for as_dir in $PATH
2590 IFS=$as_save_IFS
2591 test -z "$as_dir" && as_dir=.
2592 for ac_exec_ext in '' $ac_executable_extensions; do
2593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2594 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2596 break 2
2598 done
2599 done
2603 CXX=$glibcxx_cv_prog_CXX
2604 if test -n "$CXX"; then
2605 echo "$as_me:$LINENO: result: $CXX" >&5
2606 echo "${ECHO_T}$CXX" >&6
2607 else
2608 echo "$as_me:$LINENO: result: no" >&5
2609 echo "${ECHO_T}no" >&6
2612 test -n "$CXX" && break
2613 done
2615 if test -z "$CXX"; then
2616 ac_ct_CXX=$CXX
2617 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2619 # Extract the first word of "$ac_prog", so it can be a program name with args.
2620 set dummy $ac_prog; ac_word=$2
2621 echo "$as_me:$LINENO: checking for $ac_word" >&5
2622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2623 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
2625 else
2626 if test -n "$ac_ct_CXX"; then
2627 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2628 else
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 for as_dir in $PATH
2632 IFS=$as_save_IFS
2633 test -z "$as_dir" && as_dir=.
2634 for ac_exec_ext in '' $ac_executable_extensions; do
2635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2636 ac_cv_prog_ac_ct_CXX="$ac_prog"
2637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2638 break 2
2640 done
2641 done
2645 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2646 if test -n "$ac_ct_CXX"; then
2647 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2648 echo "${ECHO_T}$ac_ct_CXX" >&6
2649 else
2650 echo "$as_me:$LINENO: result: no" >&5
2651 echo "${ECHO_T}no" >&6
2654 test -n "$ac_ct_CXX" && break
2655 done
2656 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2658 CXX=$ac_ct_CXX
2662 # Provide some information about the compiler.
2663 echo "$as_me:$LINENO:" \
2664 "checking for C++ compiler version" >&5
2665 ac_compiler=`set X $ac_compile; echo $2`
2666 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2667 (eval $ac_compiler --version </dev/null >&5) 2>&5
2668 ac_status=$?
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }
2671 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2672 (eval $ac_compiler -v </dev/null >&5) 2>&5
2673 ac_status=$?
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }
2676 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2677 (eval $ac_compiler -V </dev/null >&5) 2>&5
2678 ac_status=$?
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }
2682 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2683 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2684 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2686 else
2687 cat >conftest.$ac_ext <<_ACEOF
2688 /* confdefs.h. */
2689 _ACEOF
2690 cat confdefs.h >>conftest.$ac_ext
2691 cat >>conftest.$ac_ext <<_ACEOF
2692 /* end confdefs.h. */
2695 main ()
2697 #ifndef __GNUC__
2698 choke me
2699 #endif
2702 return 0;
2704 _ACEOF
2705 rm -f conftest.$ac_objext
2706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2707 (eval $ac_compile) 2>conftest.er1
2708 ac_status=$?
2709 grep -v '^ *+' conftest.er1 >conftest.err
2710 rm -f conftest.er1
2711 cat conftest.err >&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); } &&
2714 { ac_try='test -z "$ac_cxx_werror_flag"
2715 || test ! -s conftest.err'
2716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717 (eval $ac_try) 2>&5
2718 ac_status=$?
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); }; } &&
2721 { ac_try='test -s conftest.$ac_objext'
2722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723 (eval $ac_try) 2>&5
2724 ac_status=$?
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; }; then
2727 ac_compiler_gnu=yes
2728 else
2729 echo "$as_me: failed program was:" >&5
2730 sed 's/^/| /' conftest.$ac_ext >&5
2732 ac_compiler_gnu=no
2734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2735 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2738 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2739 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2740 GXX=`test $ac_compiler_gnu = yes && echo yes`
2741 ac_test_CXXFLAGS=${CXXFLAGS+set}
2742 ac_save_CXXFLAGS=$CXXFLAGS
2743 CXXFLAGS="-g"
2744 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2745 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2746 if test "${ac_cv_prog_cxx_g+set}" = set; then
2747 echo $ECHO_N "(cached) $ECHO_C" >&6
2748 else
2749 cat >conftest.$ac_ext <<_ACEOF
2750 /* confdefs.h. */
2751 _ACEOF
2752 cat confdefs.h >>conftest.$ac_ext
2753 cat >>conftest.$ac_ext <<_ACEOF
2754 /* end confdefs.h. */
2757 main ()
2761 return 0;
2763 _ACEOF
2764 rm -f conftest.$ac_objext
2765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2766 (eval $ac_compile) 2>conftest.er1
2767 ac_status=$?
2768 grep -v '^ *+' conftest.er1 >conftest.err
2769 rm -f conftest.er1
2770 cat conftest.err >&5
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); } &&
2773 { ac_try='test -z "$ac_cxx_werror_flag"
2774 || test ! -s conftest.err'
2775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2776 (eval $ac_try) 2>&5
2777 ac_status=$?
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); }; } &&
2780 { ac_try='test -s conftest.$ac_objext'
2781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2782 (eval $ac_try) 2>&5
2783 ac_status=$?
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); }; }; then
2786 ac_cv_prog_cxx_g=yes
2787 else
2788 echo "$as_me: failed program was:" >&5
2789 sed 's/^/| /' conftest.$ac_ext >&5
2791 ac_cv_prog_cxx_g=no
2793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2795 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2796 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2797 if test "$ac_test_CXXFLAGS" = set; then
2798 CXXFLAGS=$ac_save_CXXFLAGS
2799 elif test $ac_cv_prog_cxx_g = yes; then
2800 if test "$GXX" = yes; then
2801 CXXFLAGS="-g -O2"
2802 else
2803 CXXFLAGS="-g"
2805 else
2806 if test "$GXX" = yes; then
2807 CXXFLAGS="-O2"
2808 else
2809 CXXFLAGS=
2812 for ac_declaration in \
2813 '' \
2814 'extern "C" void std::exit (int) throw (); using std::exit;' \
2815 'extern "C" void std::exit (int); using std::exit;' \
2816 'extern "C" void exit (int) throw ();' \
2817 'extern "C" void exit (int);' \
2818 'void exit (int);'
2820 cat >conftest.$ac_ext <<_ACEOF
2821 /* confdefs.h. */
2822 _ACEOF
2823 cat confdefs.h >>conftest.$ac_ext
2824 cat >>conftest.$ac_ext <<_ACEOF
2825 /* end confdefs.h. */
2826 $ac_declaration
2827 #include <stdlib.h>
2829 main ()
2831 exit (42);
2833 return 0;
2835 _ACEOF
2836 rm -f conftest.$ac_objext
2837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2838 (eval $ac_compile) 2>conftest.er1
2839 ac_status=$?
2840 grep -v '^ *+' conftest.er1 >conftest.err
2841 rm -f conftest.er1
2842 cat conftest.err >&5
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); } &&
2845 { ac_try='test -z "$ac_cxx_werror_flag"
2846 || test ! -s conftest.err'
2847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2848 (eval $ac_try) 2>&5
2849 ac_status=$?
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); }; } &&
2852 { ac_try='test -s conftest.$ac_objext'
2853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854 (eval $ac_try) 2>&5
2855 ac_status=$?
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); }; }; then
2859 else
2860 echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2863 continue
2865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2866 cat >conftest.$ac_ext <<_ACEOF
2867 /* confdefs.h. */
2868 _ACEOF
2869 cat confdefs.h >>conftest.$ac_ext
2870 cat >>conftest.$ac_ext <<_ACEOF
2871 /* end confdefs.h. */
2872 $ac_declaration
2874 main ()
2876 exit (42);
2878 return 0;
2880 _ACEOF
2881 rm -f conftest.$ac_objext
2882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2883 (eval $ac_compile) 2>conftest.er1
2884 ac_status=$?
2885 grep -v '^ *+' conftest.er1 >conftest.err
2886 rm -f conftest.er1
2887 cat conftest.err >&5
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); } &&
2890 { ac_try='test -z "$ac_cxx_werror_flag"
2891 || test ! -s conftest.err'
2892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2893 (eval $ac_try) 2>&5
2894 ac_status=$?
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); }; } &&
2897 { ac_try='test -s conftest.$ac_objext'
2898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2899 (eval $ac_try) 2>&5
2900 ac_status=$?
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }; }; then
2903 break
2904 else
2905 echo "$as_me: failed program was:" >&5
2906 sed 's/^/| /' conftest.$ac_ext >&5
2909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2910 done
2911 rm -f conftest*
2912 if test -n "$ac_declaration"; then
2913 echo '#ifdef __cplusplus' >>confdefs.h
2914 echo $ac_declaration >>confdefs.h
2915 echo '#endif' >>confdefs.h
2918 ac_ext=c
2919 ac_cpp='$CPP $CPPFLAGS'
2920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2924 CXXFLAGS="$save_CXXFLAGS"
2930 am__api_version="1.9"
2931 # Find a good install program. We prefer a C program (faster),
2932 # so one script is as good as another. But avoid the broken or
2933 # incompatible versions:
2934 # SysV /etc/install, /usr/sbin/install
2935 # SunOS /usr/etc/install
2936 # IRIX /sbin/install
2937 # AIX /bin/install
2938 # AmigaOS /C/install, which installs bootblocks on floppy discs
2939 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2940 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2941 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2942 # OS/2's system install, which has a completely different semantic
2943 # ./install, which can be erroneously created by make from ./install.sh.
2944 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2945 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2946 if test -z "$INSTALL"; then
2947 if test "${ac_cv_path_install+set}" = set; then
2948 echo $ECHO_N "(cached) $ECHO_C" >&6
2949 else
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951 for as_dir in $PATH
2953 IFS=$as_save_IFS
2954 test -z "$as_dir" && as_dir=.
2955 # Account for people who put trailing slashes in PATH elements.
2956 case $as_dir/ in
2957 ./ | .// | /cC/* | \
2958 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2959 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2960 /usr/ucb/* ) ;;
2962 # OSF1 and SCO ODT 3.0 have their own names for install.
2963 # Don't use installbsd from OSF since it installs stuff as root
2964 # by default.
2965 for ac_prog in ginstall scoinst install; do
2966 for ac_exec_ext in '' $ac_executable_extensions; do
2967 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2968 if test $ac_prog = install &&
2969 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2970 # AIX install. It has an incompatible calling convention.
2972 elif test $ac_prog = install &&
2973 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2974 # program-specific install script used by HP pwplus--don't use.
2976 else
2977 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2978 break 3
2981 done
2982 done
2984 esac
2985 done
2989 if test "${ac_cv_path_install+set}" = set; then
2990 INSTALL=$ac_cv_path_install
2991 else
2992 # As a last resort, use the slow shell script. We don't cache a
2993 # path for INSTALL within a source directory, because that will
2994 # break other packages using the cache if that directory is
2995 # removed, or if the path is relative.
2996 INSTALL=$ac_install_sh
2999 echo "$as_me:$LINENO: result: $INSTALL" >&5
3000 echo "${ECHO_T}$INSTALL" >&6
3002 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3003 # It thinks the first close brace ends the variable substitution.
3004 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3006 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3008 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3010 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3011 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3012 # Just in case
3013 sleep 1
3014 echo timestamp > conftest.file
3015 # Do `set' in a subshell so we don't clobber the current shell's
3016 # arguments. Must try -L first in case configure is actually a
3017 # symlink; some systems play weird games with the mod time of symlinks
3018 # (eg FreeBSD returns the mod time of the symlink's containing
3019 # directory).
3020 if (
3021 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3022 if test "$*" = "X"; then
3023 # -L didn't work.
3024 set X `ls -t $srcdir/configure conftest.file`
3026 rm -f conftest.file
3027 if test "$*" != "X $srcdir/configure conftest.file" \
3028 && test "$*" != "X conftest.file $srcdir/configure"; then
3030 # If neither matched, then we have a broken ls. This can happen
3031 # if, for instance, CONFIG_SHELL is bash and it inherits a
3032 # broken ls alias from the environment. This has actually
3033 # happened. Such a system could not be considered "sane".
3034 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3035 alias in your environment" >&5
3036 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3037 alias in your environment" >&2;}
3038 { (exit 1); exit 1; }; }
3041 test "$2" = conftest.file
3043 then
3044 # Ok.
3046 else
3047 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3048 Check your system clock" >&5
3049 echo "$as_me: error: newly created file is older than distributed files!
3050 Check your system clock" >&2;}
3051 { (exit 1); exit 1; }; }
3053 echo "$as_me:$LINENO: result: yes" >&5
3054 echo "${ECHO_T}yes" >&6
3055 test "$program_prefix" != NONE &&
3056 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3057 # Use a double $ so make ignores it.
3058 test "$program_suffix" != NONE &&
3059 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3060 # Double any \ or $. echo might interpret backslashes.
3061 # By default was `s,x,x', remove it if useless.
3062 cat <<\_ACEOF >conftest.sed
3063 s/[\\$]/&&/g;s/;s,x,x,$//
3064 _ACEOF
3065 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3066 rm conftest.sed
3068 # expand $ac_aux_dir to an absolute path
3069 am_aux_dir=`cd $ac_aux_dir && pwd`
3071 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3072 # Use eval to expand $SHELL
3073 if eval "$MISSING --run true"; then
3074 am_missing_run="$MISSING --run "
3075 else
3076 am_missing_run=
3077 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3078 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3081 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3082 # We used to keeping the `.' as first argument, in order to
3083 # allow $(mkdir_p) to be used without argument. As in
3084 # $(mkdir_p) $(somedir)
3085 # where $(somedir) is conditionally defined. However this is wrong
3086 # for two reasons:
3087 # 1. if the package is installed by a user who cannot write `.'
3088 # make install will fail,
3089 # 2. the above comment should most certainly read
3090 # $(mkdir_p) $(DESTDIR)$(somedir)
3091 # so it does not work when $(somedir) is undefined and
3092 # $(DESTDIR) is not.
3093 # To support the latter case, we have to write
3094 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3095 # so the `.' trick is pointless.
3096 mkdir_p='mkdir -p --'
3097 else
3098 # On NextStep and OpenStep, the `mkdir' command does not
3099 # recognize any option. It will interpret all options as
3100 # directories to create, and then abort because `.' already
3101 # exists.
3102 for d in ./-p ./--version;
3104 test -d $d && rmdir $d
3105 done
3106 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3107 if test -f "$ac_aux_dir/mkinstalldirs"; then
3108 mkdir_p='$(mkinstalldirs)'
3109 else
3110 mkdir_p='$(install_sh) -d'
3114 for ac_prog in gawk mawk nawk awk
3116 # Extract the first word of "$ac_prog", so it can be a program name with args.
3117 set dummy $ac_prog; ac_word=$2
3118 echo "$as_me:$LINENO: checking for $ac_word" >&5
3119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3120 if test "${ac_cv_prog_AWK+set}" = set; then
3121 echo $ECHO_N "(cached) $ECHO_C" >&6
3122 else
3123 if test -n "$AWK"; then
3124 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3125 else
3126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127 for as_dir in $PATH
3129 IFS=$as_save_IFS
3130 test -z "$as_dir" && as_dir=.
3131 for ac_exec_ext in '' $ac_executable_extensions; do
3132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3133 ac_cv_prog_AWK="$ac_prog"
3134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3135 break 2
3137 done
3138 done
3142 AWK=$ac_cv_prog_AWK
3143 if test -n "$AWK"; then
3144 echo "$as_me:$LINENO: result: $AWK" >&5
3145 echo "${ECHO_T}$AWK" >&6
3146 else
3147 echo "$as_me:$LINENO: result: no" >&5
3148 echo "${ECHO_T}no" >&6
3151 test -n "$AWK" && break
3152 done
3154 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3155 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3156 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3157 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3158 echo $ECHO_N "(cached) $ECHO_C" >&6
3159 else
3160 cat >conftest.make <<\_ACEOF
3161 all:
3162 @echo 'ac_maketemp="$(MAKE)"'
3163 _ACEOF
3164 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3165 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3166 if test -n "$ac_maketemp"; then
3167 eval ac_cv_prog_make_${ac_make}_set=yes
3168 else
3169 eval ac_cv_prog_make_${ac_make}_set=no
3171 rm -f conftest.make
3173 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3174 echo "$as_me:$LINENO: result: yes" >&5
3175 echo "${ECHO_T}yes" >&6
3176 SET_MAKE=
3177 else
3178 echo "$as_me:$LINENO: result: no" >&5
3179 echo "${ECHO_T}no" >&6
3180 SET_MAKE="MAKE=${MAKE-make}"
3183 rm -rf .tst 2>/dev/null
3184 mkdir .tst 2>/dev/null
3185 if test -d .tst; then
3186 am__leading_dot=.
3187 else
3188 am__leading_dot=_
3190 rmdir .tst 2>/dev/null
3192 DEPDIR="${am__leading_dot}deps"
3194 ac_config_commands="$ac_config_commands depfiles"
3197 am_make=${MAKE-make}
3198 cat > confinc << 'END'
3199 am__doit:
3200 @echo done
3201 .PHONY: am__doit
3203 # If we don't find an include directive, just comment out the code.
3204 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3205 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3206 am__include="#"
3207 am__quote=
3208 _am_result=none
3209 # First try GNU make style include.
3210 echo "include confinc" > confmf
3211 # We grep out `Entering directory' and `Leaving directory'
3212 # messages which can occur if `w' ends up in MAKEFLAGS.
3213 # In particular we don't look at `^make:' because GNU make might
3214 # be invoked under some other name (usually "gmake"), in which
3215 # case it prints its new name instead of `make'.
3216 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3217 am__include=include
3218 am__quote=
3219 _am_result=GNU
3221 # Now try BSD make style include.
3222 if test "$am__include" = "#"; then
3223 echo '.include "confinc"' > confmf
3224 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3225 am__include=.include
3226 am__quote="\""
3227 _am_result=BSD
3232 echo "$as_me:$LINENO: result: $_am_result" >&5
3233 echo "${ECHO_T}$_am_result" >&6
3234 rm -f confinc confmf
3236 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3237 if test "${enable_dependency_tracking+set}" = set; then
3238 enableval="$enable_dependency_tracking"
3241 if test "x$enable_dependency_tracking" != xno; then
3242 am_depcomp="$ac_aux_dir/depcomp"
3243 AMDEPBACKSLASH='\'
3247 if test "x$enable_dependency_tracking" != xno; then
3248 AMDEP_TRUE=
3249 AMDEP_FALSE='#'
3250 else
3251 AMDEP_TRUE='#'
3252 AMDEP_FALSE=
3257 # test to see if srcdir already configured
3258 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3259 test -f $srcdir/config.status; then
3260 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3261 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3262 { (exit 1); exit 1; }; }
3265 # test whether we have cygpath
3266 if test -z "$CYGPATH_W"; then
3267 if (cygpath --version) >/dev/null 2>/dev/null; then
3268 CYGPATH_W='cygpath -w'
3269 else
3270 CYGPATH_W=echo
3275 # Define the identity of the package.
3276 PACKAGE='libjava'
3277 VERSION='version-unused'
3280 cat >>confdefs.h <<_ACEOF
3281 #define PACKAGE "$PACKAGE"
3282 _ACEOF
3285 cat >>confdefs.h <<_ACEOF
3286 #define VERSION "$VERSION"
3287 _ACEOF
3289 # Some tools Automake needs.
3291 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3294 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3297 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3300 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3303 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3305 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3307 # Installed binaries are usually stripped using `strip' when the user
3308 # run `make install-strip'. However `strip' might not be the right
3309 # tool to use in cross-compilation environments, therefore Automake
3310 # will honor the `STRIP' environment variable to overrule this program.
3311 if test "$cross_compiling" != no; then
3312 if test -n "$ac_tool_prefix"; then
3313 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3314 set dummy ${ac_tool_prefix}strip; ac_word=$2
3315 echo "$as_me:$LINENO: checking for $ac_word" >&5
3316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3317 if test "${ac_cv_prog_STRIP+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3319 else
3320 if test -n "$STRIP"; then
3321 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3322 else
3323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324 for as_dir in $PATH
3326 IFS=$as_save_IFS
3327 test -z "$as_dir" && as_dir=.
3328 for ac_exec_ext in '' $ac_executable_extensions; do
3329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3330 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3332 break 2
3334 done
3335 done
3339 STRIP=$ac_cv_prog_STRIP
3340 if test -n "$STRIP"; then
3341 echo "$as_me:$LINENO: result: $STRIP" >&5
3342 echo "${ECHO_T}$STRIP" >&6
3343 else
3344 echo "$as_me:$LINENO: result: no" >&5
3345 echo "${ECHO_T}no" >&6
3349 if test -z "$ac_cv_prog_STRIP"; then
3350 ac_ct_STRIP=$STRIP
3351 # Extract the first word of "strip", so it can be a program name with args.
3352 set dummy strip; ac_word=$2
3353 echo "$as_me:$LINENO: checking for $ac_word" >&5
3354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3355 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3356 echo $ECHO_N "(cached) $ECHO_C" >&6
3357 else
3358 if test -n "$ac_ct_STRIP"; then
3359 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3360 else
3361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362 for as_dir in $PATH
3364 IFS=$as_save_IFS
3365 test -z "$as_dir" && as_dir=.
3366 for ac_exec_ext in '' $ac_executable_extensions; do
3367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3368 ac_cv_prog_ac_ct_STRIP="strip"
3369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3370 break 2
3372 done
3373 done
3375 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3378 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3379 if test -n "$ac_ct_STRIP"; then
3380 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3381 echo "${ECHO_T}$ac_ct_STRIP" >&6
3382 else
3383 echo "$as_me:$LINENO: result: no" >&5
3384 echo "${ECHO_T}no" >&6
3387 STRIP=$ac_ct_STRIP
3388 else
3389 STRIP="$ac_cv_prog_STRIP"
3393 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3395 # We need awk for the "check" target. The system "awk" is bad on
3396 # some platforms.
3397 # Always define AMTAR for backward compatibility.
3399 AMTAR=${AMTAR-"${am_missing_run}tar"}
3401 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3406 depcc="$CC" am_compiler_list=
3408 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3409 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3410 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3411 echo $ECHO_N "(cached) $ECHO_C" >&6
3412 else
3413 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3414 # We make a subdir and do the tests there. Otherwise we can end up
3415 # making bogus files that we don't know about and never remove. For
3416 # instance it was reported that on HP-UX the gcc test will end up
3417 # making a dummy file named `D' -- because `-MD' means `put the output
3418 # in D'.
3419 mkdir conftest.dir
3420 # Copy depcomp to subdir because otherwise we won't find it if we're
3421 # using a relative directory.
3422 cp "$am_depcomp" conftest.dir
3423 cd conftest.dir
3424 # We will build objects and dependencies in a subdirectory because
3425 # it helps to detect inapplicable dependency modes. For instance
3426 # both Tru64's cc and ICC support -MD to output dependencies as a
3427 # side effect of compilation, but ICC will put the dependencies in
3428 # the current directory while Tru64 will put them in the object
3429 # directory.
3430 mkdir sub
3432 am_cv_CC_dependencies_compiler_type=none
3433 if test "$am_compiler_list" = ""; then
3434 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3436 for depmode in $am_compiler_list; do
3437 # Setup a source with many dependencies, because some compilers
3438 # like to wrap large dependency lists on column 80 (with \), and
3439 # we should not choose a depcomp mode which is confused by this.
3441 # We need to recreate these files for each test, as the compiler may
3442 # overwrite some of them when testing with obscure command lines.
3443 # This happens at least with the AIX C compiler.
3444 : > sub/conftest.c
3445 for i in 1 2 3 4 5 6; do
3446 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3447 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3448 # Solaris 8's {/usr,}/bin/sh.
3449 touch sub/conftst$i.h
3450 done
3451 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3453 case $depmode in
3454 nosideeffect)
3455 # after this tag, mechanisms are not by side-effect, so they'll
3456 # only be used when explicitly requested
3457 if test "x$enable_dependency_tracking" = xyes; then
3458 continue
3459 else
3460 break
3463 none) break ;;
3464 esac
3465 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3466 # mode. It turns out that the SunPro C++ compiler does not properly
3467 # handle `-M -o', and we need to detect this.
3468 if depmode=$depmode \
3469 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3470 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3471 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3472 >/dev/null 2>conftest.err &&
3473 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3474 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3475 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3476 # icc doesn't choke on unknown options, it will just issue warnings
3477 # or remarks (even with -Werror). So we grep stderr for any message
3478 # that says an option was ignored or not supported.
3479 # When given -MP, icc 7.0 and 7.1 complain thusly:
3480 # icc: Command line warning: ignoring option '-M'; no argument required
3481 # The diagnosis changed in icc 8.0:
3482 # icc: Command line remark: option '-MP' not supported
3483 if (grep 'ignoring option' conftest.err ||
3484 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3485 am_cv_CC_dependencies_compiler_type=$depmode
3486 break
3489 done
3491 cd ..
3492 rm -rf conftest.dir
3493 else
3494 am_cv_CC_dependencies_compiler_type=none
3498 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3499 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3500 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3505 test "x$enable_dependency_tracking" != xno \
3506 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3507 am__fastdepCC_TRUE=
3508 am__fastdepCC_FALSE='#'
3509 else
3510 am__fastdepCC_TRUE='#'
3511 am__fastdepCC_FALSE=
3515 depcc="$CXX" am_compiler_list=
3517 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3518 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3519 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3520 echo $ECHO_N "(cached) $ECHO_C" >&6
3521 else
3522 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3523 # We make a subdir and do the tests there. Otherwise we can end up
3524 # making bogus files that we don't know about and never remove. For
3525 # instance it was reported that on HP-UX the gcc test will end up
3526 # making a dummy file named `D' -- because `-MD' means `put the output
3527 # in D'.
3528 mkdir conftest.dir
3529 # Copy depcomp to subdir because otherwise we won't find it if we're
3530 # using a relative directory.
3531 cp "$am_depcomp" conftest.dir
3532 cd conftest.dir
3533 # We will build objects and dependencies in a subdirectory because
3534 # it helps to detect inapplicable dependency modes. For instance
3535 # both Tru64's cc and ICC support -MD to output dependencies as a
3536 # side effect of compilation, but ICC will put the dependencies in
3537 # the current directory while Tru64 will put them in the object
3538 # directory.
3539 mkdir sub
3541 am_cv_CXX_dependencies_compiler_type=none
3542 if test "$am_compiler_list" = ""; then
3543 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3545 for depmode in $am_compiler_list; do
3546 # Setup a source with many dependencies, because some compilers
3547 # like to wrap large dependency lists on column 80 (with \), and
3548 # we should not choose a depcomp mode which is confused by this.
3550 # We need to recreate these files for each test, as the compiler may
3551 # overwrite some of them when testing with obscure command lines.
3552 # This happens at least with the AIX C compiler.
3553 : > sub/conftest.c
3554 for i in 1 2 3 4 5 6; do
3555 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3556 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3557 # Solaris 8's {/usr,}/bin/sh.
3558 touch sub/conftst$i.h
3559 done
3560 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3562 case $depmode in
3563 nosideeffect)
3564 # after this tag, mechanisms are not by side-effect, so they'll
3565 # only be used when explicitly requested
3566 if test "x$enable_dependency_tracking" = xyes; then
3567 continue
3568 else
3569 break
3572 none) break ;;
3573 esac
3574 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3575 # mode. It turns out that the SunPro C++ compiler does not properly
3576 # handle `-M -o', and we need to detect this.
3577 if depmode=$depmode \
3578 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3579 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3580 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3581 >/dev/null 2>conftest.err &&
3582 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3583 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3584 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3585 # icc doesn't choke on unknown options, it will just issue warnings
3586 # or remarks (even with -Werror). So we grep stderr for any message
3587 # that says an option was ignored or not supported.
3588 # When given -MP, icc 7.0 and 7.1 complain thusly:
3589 # icc: Command line warning: ignoring option '-M'; no argument required
3590 # The diagnosis changed in icc 8.0:
3591 # icc: Command line remark: option '-MP' not supported
3592 if (grep 'ignoring option' conftest.err ||
3593 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3594 am_cv_CXX_dependencies_compiler_type=$depmode
3595 break
3598 done
3600 cd ..
3601 rm -rf conftest.dir
3602 else
3603 am_cv_CXX_dependencies_compiler_type=none
3607 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3608 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3609 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3614 test "x$enable_dependency_tracking" != xno \
3615 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3616 am__fastdepCXX_TRUE=
3617 am__fastdepCXX_FALSE='#'
3618 else
3619 am__fastdepCXX_TRUE='#'
3620 am__fastdepCXX_FALSE=
3626 if test -n "$ac_tool_prefix"; then
3627 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3628 set dummy ${ac_tool_prefix}as; ac_word=$2
3629 echo "$as_me:$LINENO: checking for $ac_word" >&5
3630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3631 if test "${ac_cv_prog_AS+set}" = set; then
3632 echo $ECHO_N "(cached) $ECHO_C" >&6
3633 else
3634 if test -n "$AS"; then
3635 ac_cv_prog_AS="$AS" # Let the user override the test.
3636 else
3637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638 for as_dir in $PATH
3640 IFS=$as_save_IFS
3641 test -z "$as_dir" && as_dir=.
3642 for ac_exec_ext in '' $ac_executable_extensions; do
3643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3644 ac_cv_prog_AS="${ac_tool_prefix}as"
3645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3646 break 2
3648 done
3649 done
3653 AS=$ac_cv_prog_AS
3654 if test -n "$AS"; then
3655 echo "$as_me:$LINENO: result: $AS" >&5
3656 echo "${ECHO_T}$AS" >&6
3657 else
3658 echo "$as_me:$LINENO: result: no" >&5
3659 echo "${ECHO_T}no" >&6
3663 if test -z "$ac_cv_prog_AS"; then
3664 ac_ct_AS=$AS
3665 # Extract the first word of "as", so it can be a program name with args.
3666 set dummy as; ac_word=$2
3667 echo "$as_me:$LINENO: checking for $ac_word" >&5
3668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3669 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3670 echo $ECHO_N "(cached) $ECHO_C" >&6
3671 else
3672 if test -n "$ac_ct_AS"; then
3673 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3674 else
3675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676 for as_dir in $PATH
3678 IFS=$as_save_IFS
3679 test -z "$as_dir" && as_dir=.
3680 for ac_exec_ext in '' $ac_executable_extensions; do
3681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3682 ac_cv_prog_ac_ct_AS="as"
3683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3684 break 2
3686 done
3687 done
3691 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3692 if test -n "$ac_ct_AS"; then
3693 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3694 echo "${ECHO_T}$ac_ct_AS" >&6
3695 else
3696 echo "$as_me:$LINENO: result: no" >&5
3697 echo "${ECHO_T}no" >&6
3700 AS=$ac_ct_AS
3701 else
3702 AS="$ac_cv_prog_AS"
3705 if test -n "$ac_tool_prefix"; then
3706 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3707 set dummy ${ac_tool_prefix}ar; ac_word=$2
3708 echo "$as_me:$LINENO: checking for $ac_word" >&5
3709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3710 if test "${ac_cv_prog_AR+set}" = set; then
3711 echo $ECHO_N "(cached) $ECHO_C" >&6
3712 else
3713 if test -n "$AR"; then
3714 ac_cv_prog_AR="$AR" # Let the user override the test.
3715 else
3716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717 for as_dir in $PATH
3719 IFS=$as_save_IFS
3720 test -z "$as_dir" && as_dir=.
3721 for ac_exec_ext in '' $ac_executable_extensions; do
3722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3723 ac_cv_prog_AR="${ac_tool_prefix}ar"
3724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3725 break 2
3727 done
3728 done
3732 AR=$ac_cv_prog_AR
3733 if test -n "$AR"; then
3734 echo "$as_me:$LINENO: result: $AR" >&5
3735 echo "${ECHO_T}$AR" >&6
3736 else
3737 echo "$as_me:$LINENO: result: no" >&5
3738 echo "${ECHO_T}no" >&6
3742 if test -z "$ac_cv_prog_AR"; then
3743 ac_ct_AR=$AR
3744 # Extract the first word of "ar", so it can be a program name with args.
3745 set dummy ar; ac_word=$2
3746 echo "$as_me:$LINENO: checking for $ac_word" >&5
3747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3748 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3750 else
3751 if test -n "$ac_ct_AR"; then
3752 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3753 else
3754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3755 for as_dir in $PATH
3757 IFS=$as_save_IFS
3758 test -z "$as_dir" && as_dir=.
3759 for ac_exec_ext in '' $ac_executable_extensions; do
3760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3761 ac_cv_prog_ac_ct_AR="ar"
3762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3763 break 2
3765 done
3766 done
3770 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3771 if test -n "$ac_ct_AR"; then
3772 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3773 echo "${ECHO_T}$ac_ct_AR" >&6
3774 else
3775 echo "$as_me:$LINENO: result: no" >&5
3776 echo "${ECHO_T}no" >&6
3779 AR=$ac_ct_AR
3780 else
3781 AR="$ac_cv_prog_AR"
3784 if test -n "$ac_tool_prefix"; then
3785 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3786 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3787 echo "$as_me:$LINENO: checking for $ac_word" >&5
3788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3789 if test "${ac_cv_prog_RANLIB+set}" = set; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
3791 else
3792 if test -n "$RANLIB"; then
3793 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3794 else
3795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796 for as_dir in $PATH
3798 IFS=$as_save_IFS
3799 test -z "$as_dir" && as_dir=.
3800 for ac_exec_ext in '' $ac_executable_extensions; do
3801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3802 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3804 break 2
3806 done
3807 done
3811 RANLIB=$ac_cv_prog_RANLIB
3812 if test -n "$RANLIB"; then
3813 echo "$as_me:$LINENO: result: $RANLIB" >&5
3814 echo "${ECHO_T}$RANLIB" >&6
3815 else
3816 echo "$as_me:$LINENO: result: no" >&5
3817 echo "${ECHO_T}no" >&6
3821 if test -z "$ac_cv_prog_RANLIB"; then
3822 ac_ct_RANLIB=$RANLIB
3823 # Extract the first word of "ranlib", so it can be a program name with args.
3824 set dummy ranlib; ac_word=$2
3825 echo "$as_me:$LINENO: checking for $ac_word" >&5
3826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3827 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
3829 else
3830 if test -n "$ac_ct_RANLIB"; then
3831 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3832 else
3833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834 for as_dir in $PATH
3836 IFS=$as_save_IFS
3837 test -z "$as_dir" && as_dir=.
3838 for ac_exec_ext in '' $ac_executable_extensions; do
3839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3840 ac_cv_prog_ac_ct_RANLIB="ranlib"
3841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3842 break 2
3844 done
3845 done
3847 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3850 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3851 if test -n "$ac_ct_RANLIB"; then
3852 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3853 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3854 else
3855 echo "$as_me:$LINENO: result: no" >&5
3856 echo "${ECHO_T}no" >&6
3859 RANLIB=$ac_ct_RANLIB
3860 else
3861 RANLIB="$ac_cv_prog_RANLIB"
3865 # Find a good install program. We prefer a C program (faster),
3866 # so one script is as good as another. But avoid the broken or
3867 # incompatible versions:
3868 # SysV /etc/install, /usr/sbin/install
3869 # SunOS /usr/etc/install
3870 # IRIX /sbin/install
3871 # AIX /bin/install
3872 # AmigaOS /C/install, which installs bootblocks on floppy discs
3873 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3874 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3875 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3876 # OS/2's system install, which has a completely different semantic
3877 # ./install, which can be erroneously created by make from ./install.sh.
3878 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3879 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3880 if test -z "$INSTALL"; then
3881 if test "${ac_cv_path_install+set}" = set; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
3883 else
3884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885 for as_dir in $PATH
3887 IFS=$as_save_IFS
3888 test -z "$as_dir" && as_dir=.
3889 # Account for people who put trailing slashes in PATH elements.
3890 case $as_dir/ in
3891 ./ | .// | /cC/* | \
3892 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3893 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3894 /usr/ucb/* ) ;;
3896 # OSF1 and SCO ODT 3.0 have their own names for install.
3897 # Don't use installbsd from OSF since it installs stuff as root
3898 # by default.
3899 for ac_prog in ginstall scoinst install; do
3900 for ac_exec_ext in '' $ac_executable_extensions; do
3901 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3902 if test $ac_prog = install &&
3903 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3904 # AIX install. It has an incompatible calling convention.
3906 elif test $ac_prog = install &&
3907 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3908 # program-specific install script used by HP pwplus--don't use.
3910 else
3911 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3912 break 3
3915 done
3916 done
3918 esac
3919 done
3923 if test "${ac_cv_path_install+set}" = set; then
3924 INSTALL=$ac_cv_path_install
3925 else
3926 # As a last resort, use the slow shell script. We don't cache a
3927 # path for INSTALL within a source directory, because that will
3928 # break other packages using the cache if that directory is
3929 # removed, or if the path is relative.
3930 INSTALL=$ac_install_sh
3933 echo "$as_me:$LINENO: result: $INSTALL" >&5
3934 echo "${ECHO_T}$INSTALL" >&6
3936 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3937 # It thinks the first close brace ends the variable substitution.
3938 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3940 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3942 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3945 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3946 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3947 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3948 if test "${enable_maintainer_mode+set}" = set; then
3949 enableval="$enable_maintainer_mode"
3950 USE_MAINTAINER_MODE=$enableval
3951 else
3952 USE_MAINTAINER_MODE=no
3954 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3955 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3958 if test $USE_MAINTAINER_MODE = yes; then
3959 MAINTAINER_MODE_TRUE=
3960 MAINTAINER_MODE_FALSE='#'
3961 else
3962 MAINTAINER_MODE_TRUE='#'
3963 MAINTAINER_MODE_FALSE=
3966 MAINT=$MAINTAINER_MODE_TRUE
3972 # configure.host sets the following important variables
3973 # libgcj_cflags - host specific C compiler flags
3974 # libgcj_cxxflags - host specific C++ compiler flags
3975 # libgcj_javaflags - host specific Java compiler flags
3977 libgcj_cflags=
3978 libgcj_cxxflags=
3979 libgcj_javaflags=
3981 . ${srcdir}/configure.host
3983 LIBGCJ_CFLAGS="${libgcj_cflags}"
3984 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
3985 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
3990 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
3993 # Only use libltdl for non-newlib builds.
3994 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
3995 case $enable_ltdl_convenience in
3996 no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
3997 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
3998 { (exit 1); exit 1; }; } ;;
3999 "") enable_ltdl_convenience=yes
4000 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
4001 esac
4002 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
4003 INCLTDL='-I${top_srcdir}/''libltdl'
4006 DIRLTDL=libltdl
4008 cat >>confdefs.h <<\_ACEOF
4009 #define USE_LTDL 1
4010 _ACEOF
4012 # Sigh. Libtool's macro doesn't do the right thing.
4013 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
4014 # FIXME: this is a hack.
4015 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
4016 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
4021 # Check whether --enable-shared or --disable-shared was given.
4022 if test "${enable_shared+set}" = set; then
4023 enableval="$enable_shared"
4024 p=${PACKAGE-default}
4025 case $enableval in
4026 yes) enable_shared=yes ;;
4027 no) enable_shared=no ;;
4029 enable_shared=no
4030 # Look at the argument we got. We use all the common list separators.
4031 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4032 for pkg in $enableval; do
4033 if test "X$pkg" = "X$p"; then
4034 enable_shared=yes
4036 done
4037 IFS="$ac_save_ifs"
4039 esac
4040 else
4041 enable_shared=yes
4043 # Check whether --enable-static or --disable-static was given.
4044 if test "${enable_static+set}" = set; then
4045 enableval="$enable_static"
4046 p=${PACKAGE-default}
4047 case $enableval in
4048 yes) enable_static=yes ;;
4049 no) enable_static=no ;;
4051 enable_static=no
4052 # Look at the argument we got. We use all the common list separators.
4053 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4054 for pkg in $enableval; do
4055 if test "X$pkg" = "X$p"; then
4056 enable_static=yes
4058 done
4059 IFS="$ac_save_ifs"
4061 esac
4062 else
4063 enable_static=yes
4065 # Check whether --enable-fast-install or --disable-fast-install was given.
4066 if test "${enable_fast_install+set}" = set; then
4067 enableval="$enable_fast_install"
4068 p=${PACKAGE-default}
4069 case $enableval in
4070 yes) enable_fast_install=yes ;;
4071 no) enable_fast_install=no ;;
4073 enable_fast_install=no
4074 # Look at the argument we got. We use all the common list separators.
4075 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4076 for pkg in $enableval; do
4077 if test "X$pkg" = "X$p"; then
4078 enable_fast_install=yes
4080 done
4081 IFS="$ac_save_ifs"
4083 esac
4084 else
4085 enable_fast_install=yes
4088 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4089 if test "${with_gnu_ld+set}" = set; then
4090 withval="$with_gnu_ld"
4091 test "$withval" = no || with_gnu_ld=yes
4092 else
4093 with_gnu_ld=no
4095 ac_prog=ld
4096 if test "$GCC" = yes; then
4097 # Check if gcc -print-prog-name=ld gives a path.
4098 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4099 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4100 case $host in
4101 *-*-mingw*)
4102 # gcc leaves a trailing carriage return which upsets mingw
4103 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4105 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4106 esac
4107 case $ac_prog in
4108 # Accept absolute paths.
4109 [\\/]* | [A-Za-z]:[\\/]*)
4110 re_direlt='/[^/][^/]*/\.\./'
4111 # Canonicalize the path of ld
4112 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4113 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4114 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4115 done
4116 test -z "$LD" && LD="$ac_prog"
4119 # If it fails, then pretend we aren't using GCC.
4120 ac_prog=ld
4123 # If it is relative, then search for the first ld in PATH.
4124 with_gnu_ld=unknown
4126 esac
4127 elif test "$with_gnu_ld" = yes; then
4128 echo "$as_me:$LINENO: checking for GNU ld" >&5
4129 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4130 else
4131 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4132 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4134 if test "${lt_cv_path_LD+set}" = set; then
4135 echo $ECHO_N "(cached) $ECHO_C" >&6
4136 else
4137 if test -z "$LD"; then
4138 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4139 for ac_dir in $PATH; do
4140 test -z "$ac_dir" && ac_dir=.
4141 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4142 lt_cv_path_LD="$ac_dir/$ac_prog"
4143 # Check to see if the program is GNU ld. I'd rather use --version,
4144 # but apparently some GNU ld's only accept -v.
4145 # Break only if it was the GNU/non-GNU ld that we prefer.
4146 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4147 test "$with_gnu_ld" != no && break
4148 else
4149 test "$with_gnu_ld" != yes && break
4152 done
4153 IFS="$ac_save_ifs"
4154 else
4155 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4159 LD="$lt_cv_path_LD"
4160 if test -n "$LD"; then
4161 echo "$as_me:$LINENO: result: $LD" >&5
4162 echo "${ECHO_T}$LD" >&6
4163 else
4164 echo "$as_me:$LINENO: result: no" >&5
4165 echo "${ECHO_T}no" >&6
4167 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4168 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4169 { (exit 1); exit 1; }; }
4170 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4171 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4172 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4173 echo $ECHO_N "(cached) $ECHO_C" >&6
4174 else
4175 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4176 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4177 lt_cv_prog_gnu_ld=yes
4178 else
4179 lt_cv_prog_gnu_ld=no
4182 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4183 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4184 with_gnu_ld=$lt_cv_prog_gnu_ld
4187 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4188 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4189 if test "${lt_cv_ld_reload_flag+set}" = set; then
4190 echo $ECHO_N "(cached) $ECHO_C" >&6
4191 else
4192 lt_cv_ld_reload_flag='-r'
4194 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4195 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4196 reload_flag=$lt_cv_ld_reload_flag
4197 test -n "$reload_flag" && reload_flag=" $reload_flag"
4199 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4200 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4201 if test "${lt_cv_path_NM+set}" = set; then
4202 echo $ECHO_N "(cached) $ECHO_C" >&6
4203 else
4204 if test -n "$NM"; then
4205 # Let the user override the test.
4206 lt_cv_path_NM="$NM"
4207 else
4208 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4209 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4210 test -z "$ac_dir" && ac_dir=.
4211 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4212 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4213 # Check to see if the nm accepts a BSD-compat flag.
4214 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4215 # nm: unknown option "B" ignored
4216 # Tru64's nm complains that /dev/null is an invalid object file
4217 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4218 lt_cv_path_NM="$tmp_nm -B"
4219 break
4220 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4221 lt_cv_path_NM="$tmp_nm -p"
4222 break
4223 else
4224 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4225 continue # so that we can try to find one that supports BSD flags
4228 done
4229 IFS="$ac_save_ifs"
4230 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4234 NM="$lt_cv_path_NM"
4235 echo "$as_me:$LINENO: result: $NM" >&5
4236 echo "${ECHO_T}$NM" >&6
4238 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4239 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4240 if test "${lt_cv_deplibs_check_method+set}" = set; then
4241 echo $ECHO_N "(cached) $ECHO_C" >&6
4242 else
4243 lt_cv_file_magic_cmd='$MAGIC_CMD'
4244 lt_cv_file_magic_test_file=
4245 lt_cv_deplibs_check_method='unknown'
4246 # Need to set the preceding variable on all platforms that support
4247 # interlibrary dependencies.
4248 # 'none' -- dependencies not supported.
4249 # `unknown' -- same as none, but documents that we really don't know.
4250 # 'pass_all' -- all dependencies passed with no checks.
4251 # 'test_compile' -- check by making test program.
4252 # 'file_magic [regex]' -- check by looking for files in library path
4253 # which responds to the $file_magic_cmd with a given egrep regex.
4254 # If you have `file' or equivalent on your system and you're not sure
4255 # whether `pass_all' will *always* work, you probably want this one.
4257 case $host_os in
4258 aix*)
4259 lt_cv_deplibs_check_method=pass_all
4262 beos*)
4263 lt_cv_deplibs_check_method=pass_all
4266 bsdi4*)
4267 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4268 lt_cv_file_magic_cmd='/usr/bin/file -L'
4269 lt_cv_file_magic_test_file=/shlib/libc.so
4272 cygwin* | mingw* |pw32*)
4273 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4274 lt_cv_file_magic_cmd='$OBJDUMP -f'
4277 darwin* | rhapsody*)
4278 # this will be overwritten by pass_all, but leave it in just in case
4279 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4280 lt_cv_file_magic_cmd='/usr/bin/file -L'
4281 case "$host_os" in
4282 rhapsody* | darwin1.012)
4283 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
4285 *) # Darwin 1.3 on
4286 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4288 esac
4289 lt_cv_deplibs_check_method=pass_all
4292 freebsd* | kfreebsd*-gnu)
4293 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4294 case $host_cpu in
4295 i*86 )
4296 # Not sure whether the presence of OpenBSD here was a mistake.
4297 # Let's accept both of them until this is cleared up.
4298 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4299 lt_cv_file_magic_cmd=/usr/bin/file
4300 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4302 esac
4303 else
4304 lt_cv_deplibs_check_method=pass_all
4308 gnu*)
4309 lt_cv_deplibs_check_method=pass_all
4312 hpux10.20*|hpux11*)
4313 case $host_cpu in
4314 hppa*)
4315 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4316 lt_cv_file_magic_cmd=/usr/bin/file
4317 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4319 ia64*)
4320 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4321 lt_cv_file_magic_cmd=/usr/bin/file
4322 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4324 esac
4327 irix5* | irix6*)
4328 case $host_os in
4329 irix5*)
4330 # this will be overridden with pass_all, but let us keep it just in case
4331 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4334 case $LD in
4335 *-32|*"-32 ") libmagic=32-bit;;
4336 *-n32|*"-n32 ") libmagic=N32;;
4337 *-64|*"-64 ") libmagic=64-bit;;
4338 *) libmagic=never-match;;
4339 esac
4340 # this will be overridden with pass_all, but let us keep it just in case
4341 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4343 esac
4344 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4345 lt_cv_deplibs_check_method=pass_all
4348 # This must be Linux ELF.
4349 linux-gnu*)
4350 case $host_cpu in
4351 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* )
4352 lt_cv_deplibs_check_method=pass_all ;;
4354 # glibc up to 2.1.1 does not perform some relocations on ARM
4355 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4356 esac
4357 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4360 netbsd* | knetbsd*-gnu)
4361 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4362 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4363 else
4364 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4368 newsos6)
4369 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4370 lt_cv_file_magic_cmd=/usr/bin/file
4371 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4374 osf3* | osf4* | osf5*)
4375 # this will be overridden with pass_all, but let us keep it just in case
4376 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4377 lt_cv_file_magic_test_file=/shlib/libc.so
4378 lt_cv_deplibs_check_method=pass_all
4381 sco3.2v5*)
4382 lt_cv_deplibs_check_method=pass_all
4385 solaris*)
4386 lt_cv_deplibs_check_method=pass_all
4387 lt_cv_file_magic_test_file=/lib/libc.so
4390 sysv5uw[78]* | sysv4*uw2*)
4391 lt_cv_deplibs_check_method=pass_all
4394 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4395 case $host_vendor in
4396 ncr)
4397 lt_cv_deplibs_check_method=pass_all
4399 motorola)
4400 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]'
4401 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4403 esac
4405 esac
4408 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4409 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4410 file_magic_cmd=$lt_cv_file_magic_cmd
4411 deplibs_check_method=$lt_cv_deplibs_check_method
4416 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4418 # Only perform the check for file, if the check method requires it
4419 case $deplibs_check_method in
4420 file_magic*)
4421 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4422 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4423 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4424 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4425 echo $ECHO_N "(cached) $ECHO_C" >&6
4426 else
4427 case $MAGIC_CMD in
4429 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4431 ?:/*)
4432 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4435 ac_save_MAGIC_CMD="$MAGIC_CMD"
4436 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4437 ac_dummy="/usr/bin:$PATH"
4438 for ac_dir in $ac_dummy; do
4439 test -z "$ac_dir" && ac_dir=.
4440 if test -f $ac_dir/${ac_tool_prefix}file; then
4441 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4442 if test -n "$file_magic_test_file"; then
4443 case $deplibs_check_method in
4444 "file_magic "*)
4445 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4446 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4447 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4448 egrep "$file_magic_regex" > /dev/null; then
4450 else
4451 cat <<EOF 1>&2
4453 *** Warning: the command libtool uses to detect shared libraries,
4454 *** $file_magic_cmd, produces output that libtool cannot recognize.
4455 *** The result is that libtool may fail to recognize shared libraries
4456 *** as such. This will affect the creation of libtool libraries that
4457 *** depend on shared libraries, but programs linked with such libtool
4458 *** libraries will work regardless of this problem. Nevertheless, you
4459 *** may want to report the problem to your system manager and/or to
4460 *** bug-libtool@gnu.org
4463 fi ;;
4464 esac
4466 break
4468 done
4469 IFS="$ac_save_ifs"
4470 MAGIC_CMD="$ac_save_MAGIC_CMD"
4472 esac
4475 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4476 if test -n "$MAGIC_CMD"; then
4477 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4478 echo "${ECHO_T}$MAGIC_CMD" >&6
4479 else
4480 echo "$as_me:$LINENO: result: no" >&5
4481 echo "${ECHO_T}no" >&6
4484 if test -z "$lt_cv_path_MAGIC_CMD"; then
4485 if test -n "$ac_tool_prefix"; then
4486 echo "$as_me:$LINENO: checking for file" >&5
4487 echo $ECHO_N "checking for file... $ECHO_C" >&6
4488 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4489 echo $ECHO_N "(cached) $ECHO_C" >&6
4490 else
4491 case $MAGIC_CMD in
4493 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4495 ?:/*)
4496 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4499 ac_save_MAGIC_CMD="$MAGIC_CMD"
4500 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4501 ac_dummy="/usr/bin:$PATH"
4502 for ac_dir in $ac_dummy; do
4503 test -z "$ac_dir" && ac_dir=.
4504 if test -f $ac_dir/file; then
4505 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4506 if test -n "$file_magic_test_file"; then
4507 case $deplibs_check_method in
4508 "file_magic "*)
4509 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4510 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4511 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4512 egrep "$file_magic_regex" > /dev/null; then
4514 else
4515 cat <<EOF 1>&2
4517 *** Warning: the command libtool uses to detect shared libraries,
4518 *** $file_magic_cmd, produces output that libtool cannot recognize.
4519 *** The result is that libtool may fail to recognize shared libraries
4520 *** as such. This will affect the creation of libtool libraries that
4521 *** depend on shared libraries, but programs linked with such libtool
4522 *** libraries will work regardless of this problem. Nevertheless, you
4523 *** may want to report the problem to your system manager and/or to
4524 *** bug-libtool@gnu.org
4527 fi ;;
4528 esac
4530 break
4532 done
4533 IFS="$ac_save_ifs"
4534 MAGIC_CMD="$ac_save_MAGIC_CMD"
4536 esac
4539 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4540 if test -n "$MAGIC_CMD"; then
4541 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4542 echo "${ECHO_T}$MAGIC_CMD" >&6
4543 else
4544 echo "$as_me:$LINENO: result: no" >&5
4545 echo "${ECHO_T}no" >&6
4548 else
4549 MAGIC_CMD=:
4555 esac
4557 if test -n "$ac_tool_prefix"; then
4558 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4559 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4560 echo "$as_me:$LINENO: checking for $ac_word" >&5
4561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4562 if test "${ac_cv_prog_RANLIB+set}" = set; then
4563 echo $ECHO_N "(cached) $ECHO_C" >&6
4564 else
4565 if test -n "$RANLIB"; then
4566 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4567 else
4568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569 for as_dir in $PATH
4571 IFS=$as_save_IFS
4572 test -z "$as_dir" && as_dir=.
4573 for ac_exec_ext in '' $ac_executable_extensions; do
4574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4575 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4577 break 2
4579 done
4580 done
4584 RANLIB=$ac_cv_prog_RANLIB
4585 if test -n "$RANLIB"; then
4586 echo "$as_me:$LINENO: result: $RANLIB" >&5
4587 echo "${ECHO_T}$RANLIB" >&6
4588 else
4589 echo "$as_me:$LINENO: result: no" >&5
4590 echo "${ECHO_T}no" >&6
4594 if test -z "$ac_cv_prog_RANLIB"; then
4595 ac_ct_RANLIB=$RANLIB
4596 # Extract the first word of "ranlib", so it can be a program name with args.
4597 set dummy ranlib; ac_word=$2
4598 echo "$as_me:$LINENO: checking for $ac_word" >&5
4599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4600 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4601 echo $ECHO_N "(cached) $ECHO_C" >&6
4602 else
4603 if test -n "$ac_ct_RANLIB"; then
4604 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4605 else
4606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607 for as_dir in $PATH
4609 IFS=$as_save_IFS
4610 test -z "$as_dir" && as_dir=.
4611 for ac_exec_ext in '' $ac_executable_extensions; do
4612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4613 ac_cv_prog_ac_ct_RANLIB="ranlib"
4614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4615 break 2
4617 done
4618 done
4620 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4623 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4624 if test -n "$ac_ct_RANLIB"; then
4625 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4626 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4627 else
4628 echo "$as_me:$LINENO: result: no" >&5
4629 echo "${ECHO_T}no" >&6
4632 RANLIB=$ac_ct_RANLIB
4633 else
4634 RANLIB="$ac_cv_prog_RANLIB"
4637 if test -n "$ac_tool_prefix"; then
4638 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4639 set dummy ${ac_tool_prefix}strip; ac_word=$2
4640 echo "$as_me:$LINENO: checking for $ac_word" >&5
4641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4642 if test "${ac_cv_prog_STRIP+set}" = set; then
4643 echo $ECHO_N "(cached) $ECHO_C" >&6
4644 else
4645 if test -n "$STRIP"; then
4646 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4647 else
4648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649 for as_dir in $PATH
4651 IFS=$as_save_IFS
4652 test -z "$as_dir" && as_dir=.
4653 for ac_exec_ext in '' $ac_executable_extensions; do
4654 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4655 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4657 break 2
4659 done
4660 done
4664 STRIP=$ac_cv_prog_STRIP
4665 if test -n "$STRIP"; then
4666 echo "$as_me:$LINENO: result: $STRIP" >&5
4667 echo "${ECHO_T}$STRIP" >&6
4668 else
4669 echo "$as_me:$LINENO: result: no" >&5
4670 echo "${ECHO_T}no" >&6
4674 if test -z "$ac_cv_prog_STRIP"; then
4675 ac_ct_STRIP=$STRIP
4676 # Extract the first word of "strip", so it can be a program name with args.
4677 set dummy strip; ac_word=$2
4678 echo "$as_me:$LINENO: checking for $ac_word" >&5
4679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4680 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4681 echo $ECHO_N "(cached) $ECHO_C" >&6
4682 else
4683 if test -n "$ac_ct_STRIP"; then
4684 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4685 else
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 for as_dir in $PATH
4689 IFS=$as_save_IFS
4690 test -z "$as_dir" && as_dir=.
4691 for ac_exec_ext in '' $ac_executable_extensions; do
4692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4693 ac_cv_prog_ac_ct_STRIP="strip"
4694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4695 break 2
4697 done
4698 done
4700 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4703 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4704 if test -n "$ac_ct_STRIP"; then
4705 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4706 echo "${ECHO_T}$ac_ct_STRIP" >&6
4707 else
4708 echo "$as_me:$LINENO: result: no" >&5
4709 echo "${ECHO_T}no" >&6
4712 STRIP=$ac_ct_STRIP
4713 else
4714 STRIP="$ac_cv_prog_STRIP"
4718 # Check for any special flags to pass to ltconfig.
4719 libtool_flags="--cache-file=$cache_file"
4720 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4721 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4722 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4723 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4724 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4727 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4728 if test "${enable_libtool_lock+set}" = set; then
4729 enableval="$enable_libtool_lock"
4732 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4733 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4736 # Check whether --with-pic or --without-pic was given.
4737 if test "${with_pic+set}" = set; then
4738 withval="$with_pic"
4739 pic_mode="$withval"
4740 else
4741 pic_mode=default
4743 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4744 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4746 # Some flags need to be propagated to the compiler or linker for good
4747 # libtool support.
4748 case $host in
4749 *-*-irix6*)
4750 # Find out which ABI we are using.
4751 echo '#line 4751 "configure"' > conftest.$ac_ext
4752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4753 (eval $ac_compile) 2>&5
4754 ac_status=$?
4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); }; then
4757 if test "$lt_cv_prog_gnu_ld" = yes; then
4758 case `/usr/bin/file conftest.$ac_objext` in
4759 *32-bit*)
4760 LD="${LD-ld} -melf32bsmip"
4762 *N32*)
4763 LD="${LD-ld} -melf32bmipn32"
4765 *64-bit*)
4766 LD="${LD-ld} -melf64bmip"
4768 esac
4769 else
4770 case `/usr/bin/file conftest.$ac_objext` in
4771 *32-bit*)
4772 LD="${LD-ld} -32"
4774 *N32*)
4775 LD="${LD-ld} -n32"
4777 *64-bit*)
4778 LD="${LD-ld} -64"
4780 esac
4783 rm -rf conftest*
4786 ia64-*-hpux*)
4787 # Find out which ABI we are using.
4788 echo 'int i;' > conftest.$ac_ext
4789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4790 (eval $ac_compile) 2>&5
4791 ac_status=$?
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); }; then
4794 case "`/usr/bin/file conftest.o`" in
4795 *ELF-32*)
4796 HPUX_IA64_MODE="32"
4798 *ELF-64*)
4799 HPUX_IA64_MODE="64"
4801 esac
4803 rm -rf conftest*
4806 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4807 # Find out which ABI we are using.
4808 echo 'int i;' > conftest.$ac_ext
4809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4810 (eval $ac_compile) 2>&5
4811 ac_status=$?
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); }; then
4814 case "`/usr/bin/file conftest.o`" in
4815 *32-bit*)
4816 case $host in
4817 x86_64-*linux*)
4818 LD="${LD-ld} -m elf_i386"
4820 ppc64-*linux*|powerpc64-*linux*)
4821 LD="${LD-ld} -m elf32ppclinux"
4823 s390x-*linux*)
4824 LD="${LD-ld} -m elf_s390"
4826 sparc64-*linux*)
4827 LD="${LD-ld} -m elf32_sparc"
4829 esac
4831 *64-bit*)
4832 case $host in
4833 x86_64-*linux*)
4834 LD="${LD-ld} -m elf_x86_64"
4836 ppc*-*linux*|powerpc*-*linux*)
4837 LD="${LD-ld} -m elf64ppc"
4839 s390*-*linux*)
4840 LD="${LD-ld} -m elf64_s390"
4842 sparc*-*linux*)
4843 LD="${LD-ld} -m elf64_sparc"
4845 esac
4847 esac
4849 rm -rf conftest*
4852 *-*-sco3.2v5*)
4853 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4854 SAVE_CFLAGS="$CFLAGS"
4855 CFLAGS="$CFLAGS -belf"
4856 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4857 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4858 if test "${lt_cv_cc_needs_belf+set}" = set; then
4859 echo $ECHO_N "(cached) $ECHO_C" >&6
4860 else
4863 ac_ext=c
4864 ac_cpp='$CPP $CPPFLAGS'
4865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4869 if test x$gcc_no_link = xyes; then
4870 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4871 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4872 { (exit 1); exit 1; }; }
4874 cat >conftest.$ac_ext <<_ACEOF
4875 /* confdefs.h. */
4876 _ACEOF
4877 cat confdefs.h >>conftest.$ac_ext
4878 cat >>conftest.$ac_ext <<_ACEOF
4879 /* end confdefs.h. */
4882 main ()
4886 return 0;
4888 _ACEOF
4889 rm -f conftest.$ac_objext conftest$ac_exeext
4890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4891 (eval $ac_link) 2>conftest.er1
4892 ac_status=$?
4893 grep -v '^ *+' conftest.er1 >conftest.err
4894 rm -f conftest.er1
4895 cat conftest.err >&5
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); } &&
4898 { ac_try='test -z "$ac_c_werror_flag"
4899 || test ! -s conftest.err'
4900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4901 (eval $ac_try) 2>&5
4902 ac_status=$?
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); }; } &&
4905 { ac_try='test -s conftest$ac_exeext'
4906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4907 (eval $ac_try) 2>&5
4908 ac_status=$?
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); }; }; then
4911 lt_cv_cc_needs_belf=yes
4912 else
4913 echo "$as_me: failed program was:" >&5
4914 sed 's/^/| /' conftest.$ac_ext >&5
4916 lt_cv_cc_needs_belf=no
4918 rm -f conftest.err conftest.$ac_objext \
4919 conftest$ac_exeext conftest.$ac_ext
4920 ac_ext=c
4921 ac_cpp='$CPP $CPPFLAGS'
4922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4927 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4928 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4929 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4930 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4931 CFLAGS="$SAVE_CFLAGS"
4936 esac
4939 # Save cache, so that ltconfig can load it
4940 cat >confcache <<\_ACEOF
4941 # This file is a shell script that caches the results of configure
4942 # tests run on this system so they can be shared between configure
4943 # scripts and configure runs, see configure's option --config-cache.
4944 # It is not useful on other systems. If it contains results you don't
4945 # want to keep, you may remove or edit it.
4947 # config.status only pays attention to the cache file if you give it
4948 # the --recheck option to rerun configure.
4950 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4951 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4952 # following values.
4954 _ACEOF
4956 # The following way of writing the cache mishandles newlines in values,
4957 # but we know of no workaround that is simple, portable, and efficient.
4958 # So, don't put newlines in cache variables' values.
4959 # Ultrix sh set writes to stderr and can't be redirected directly,
4960 # and sets the high bit in the cache file unless we assign to the vars.
4962 (set) 2>&1 |
4963 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4964 *ac_space=\ *)
4965 # `set' does not quote correctly, so add quotes (double-quote
4966 # substitution turns \\\\ into \\, and sed turns \\ into \).
4967 sed -n \
4968 "s/'/'\\\\''/g;
4969 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4972 # `set' quotes correctly as required by POSIX, so do not add quotes.
4973 sed -n \
4974 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4976 esac;
4978 sed '
4979 t clear
4980 : clear
4981 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4982 t end
4983 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4984 : end' >>confcache
4985 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4986 if test -w $cache_file; then
4987 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4988 cat confcache >$cache_file
4989 else
4990 echo "not updating unwritable cache $cache_file"
4993 rm -f confcache
4995 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4996 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4997 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4998 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4999 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5000 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5001 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
5002 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
5003 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5004 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5005 echo "$as_me: error: libtool configure failed" >&2;}
5006 { (exit 1); exit 1; }; }
5008 # Reload cache, that may have been modified by ltconfig
5009 if test -r "$cache_file"; then
5010 # Some versions of bash will fail to source /dev/null (special
5011 # files actually), so we avoid doing that.
5012 if test -f "$cache_file"; then
5013 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5014 echo "$as_me: loading cache $cache_file" >&6;}
5015 case $cache_file in
5016 [\\/]* | ?:[\\/]* ) . $cache_file;;
5017 *) . ./$cache_file;;
5018 esac
5020 else
5021 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5022 echo "$as_me: creating cache $cache_file" >&6;}
5023 >$cache_file
5027 # This can be used to rebuild libtool when needed
5028 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5030 # Always use our own libtool.
5031 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5033 # Redirect the config.log output again, so that the ltconfig log is not
5034 # clobbered by the next message.
5035 exec 5>>./config.log
5037 ac_ext=cc
5038 ac_cpp='$CXXCPP $CPPFLAGS'
5039 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5040 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5041 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5042 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5043 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5044 if test -z "$CXXCPP"; then
5045 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5046 echo $ECHO_N "(cached) $ECHO_C" >&6
5047 else
5048 # Double quotes because CXXCPP needs to be expanded
5049 for CXXCPP in "$CXX -E" "/lib/cpp"
5051 ac_preproc_ok=false
5052 for ac_cxx_preproc_warn_flag in '' yes
5054 # Use a header file that comes with gcc, so configuring glibc
5055 # with a fresh cross-compiler works.
5056 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5057 # <limits.h> exists even on freestanding compilers.
5058 # On the NeXT, cc -E runs the code through the compiler's parser,
5059 # not just through cpp. "Syntax error" is here to catch this case.
5060 cat >conftest.$ac_ext <<_ACEOF
5061 /* confdefs.h. */
5062 _ACEOF
5063 cat confdefs.h >>conftest.$ac_ext
5064 cat >>conftest.$ac_ext <<_ACEOF
5065 /* end confdefs.h. */
5066 #ifdef __STDC__
5067 # include <limits.h>
5068 #else
5069 # include <assert.h>
5070 #endif
5071 Syntax error
5072 _ACEOF
5073 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5074 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5075 ac_status=$?
5076 grep -v '^ *+' conftest.er1 >conftest.err
5077 rm -f conftest.er1
5078 cat conftest.err >&5
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); } >/dev/null; then
5081 if test -s conftest.err; then
5082 ac_cpp_err=$ac_cxx_preproc_warn_flag
5083 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5084 else
5085 ac_cpp_err=
5087 else
5088 ac_cpp_err=yes
5090 if test -z "$ac_cpp_err"; then
5092 else
5093 echo "$as_me: failed program was:" >&5
5094 sed 's/^/| /' conftest.$ac_ext >&5
5096 # Broken: fails on valid input.
5097 continue
5099 rm -f conftest.err conftest.$ac_ext
5101 # OK, works on sane cases. Now check whether non-existent headers
5102 # can be detected and how.
5103 cat >conftest.$ac_ext <<_ACEOF
5104 /* confdefs.h. */
5105 _ACEOF
5106 cat confdefs.h >>conftest.$ac_ext
5107 cat >>conftest.$ac_ext <<_ACEOF
5108 /* end confdefs.h. */
5109 #include <ac_nonexistent.h>
5110 _ACEOF
5111 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5112 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5113 ac_status=$?
5114 grep -v '^ *+' conftest.er1 >conftest.err
5115 rm -f conftest.er1
5116 cat conftest.err >&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); } >/dev/null; then
5119 if test -s conftest.err; then
5120 ac_cpp_err=$ac_cxx_preproc_warn_flag
5121 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5122 else
5123 ac_cpp_err=
5125 else
5126 ac_cpp_err=yes
5128 if test -z "$ac_cpp_err"; then
5129 # Broken: success on invalid input.
5130 continue
5131 else
5132 echo "$as_me: failed program was:" >&5
5133 sed 's/^/| /' conftest.$ac_ext >&5
5135 # Passes both tests.
5136 ac_preproc_ok=:
5137 break
5139 rm -f conftest.err conftest.$ac_ext
5141 done
5142 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5143 rm -f conftest.err conftest.$ac_ext
5144 if $ac_preproc_ok; then
5145 break
5148 done
5149 ac_cv_prog_CXXCPP=$CXXCPP
5152 CXXCPP=$ac_cv_prog_CXXCPP
5153 else
5154 ac_cv_prog_CXXCPP=$CXXCPP
5156 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5157 echo "${ECHO_T}$CXXCPP" >&6
5158 ac_preproc_ok=false
5159 for ac_cxx_preproc_warn_flag in '' yes
5161 # Use a header file that comes with gcc, so configuring glibc
5162 # with a fresh cross-compiler works.
5163 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5164 # <limits.h> exists even on freestanding compilers.
5165 # On the NeXT, cc -E runs the code through the compiler's parser,
5166 # not just through cpp. "Syntax error" is here to catch this case.
5167 cat >conftest.$ac_ext <<_ACEOF
5168 /* confdefs.h. */
5169 _ACEOF
5170 cat confdefs.h >>conftest.$ac_ext
5171 cat >>conftest.$ac_ext <<_ACEOF
5172 /* end confdefs.h. */
5173 #ifdef __STDC__
5174 # include <limits.h>
5175 #else
5176 # include <assert.h>
5177 #endif
5178 Syntax error
5179 _ACEOF
5180 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5181 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5182 ac_status=$?
5183 grep -v '^ *+' conftest.er1 >conftest.err
5184 rm -f conftest.er1
5185 cat conftest.err >&5
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); } >/dev/null; then
5188 if test -s conftest.err; then
5189 ac_cpp_err=$ac_cxx_preproc_warn_flag
5190 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5191 else
5192 ac_cpp_err=
5194 else
5195 ac_cpp_err=yes
5197 if test -z "$ac_cpp_err"; then
5199 else
5200 echo "$as_me: failed program was:" >&5
5201 sed 's/^/| /' conftest.$ac_ext >&5
5203 # Broken: fails on valid input.
5204 continue
5206 rm -f conftest.err conftest.$ac_ext
5208 # OK, works on sane cases. Now check whether non-existent headers
5209 # can be detected and how.
5210 cat >conftest.$ac_ext <<_ACEOF
5211 /* confdefs.h. */
5212 _ACEOF
5213 cat confdefs.h >>conftest.$ac_ext
5214 cat >>conftest.$ac_ext <<_ACEOF
5215 /* end confdefs.h. */
5216 #include <ac_nonexistent.h>
5217 _ACEOF
5218 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5219 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5220 ac_status=$?
5221 grep -v '^ *+' conftest.er1 >conftest.err
5222 rm -f conftest.er1
5223 cat conftest.err >&5
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); } >/dev/null; then
5226 if test -s conftest.err; then
5227 ac_cpp_err=$ac_cxx_preproc_warn_flag
5228 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5229 else
5230 ac_cpp_err=
5232 else
5233 ac_cpp_err=yes
5235 if test -z "$ac_cpp_err"; then
5236 # Broken: success on invalid input.
5237 continue
5238 else
5239 echo "$as_me: failed program was:" >&5
5240 sed 's/^/| /' conftest.$ac_ext >&5
5242 # Passes both tests.
5243 ac_preproc_ok=:
5244 break
5246 rm -f conftest.err conftest.$ac_ext
5248 done
5249 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5250 rm -f conftest.err conftest.$ac_ext
5251 if $ac_preproc_ok; then
5253 else
5254 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5255 See \`config.log' for more details." >&5
5256 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5257 See \`config.log' for more details." >&2;}
5258 { (exit 1); exit 1; }; }
5261 ac_ext=c
5262 ac_cpp='$CPP $CPPFLAGS'
5263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5269 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
5270 lt_save_CC="$CC"
5271 lt_save_CFLAGS="$CFLAGS"
5272 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
5273 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5274 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5275 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5276 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5277 deplibs_check_method="$deplibs_check_method" \
5278 file_magic_cmd="$file_magic_cmd" \
5279 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5280 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
5281 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5282 echo "$as_me: error: libtool tag configuration failed" >&2;}
5283 { (exit 1); exit 1; }; }
5284 CC="$lt_save_CC"
5285 CFLAGS="$lt_save_CFLAGS"
5287 # Redirect the config.log output again, so that the ltconfig log is not
5288 # clobbered by the next message.
5289 exec 5>>./config.log
5297 for ac_prog in gcj
5299 # Extract the first word of "$ac_prog", so it can be a program name with args.
5300 set dummy $ac_prog; ac_word=$2
5301 echo "$as_me:$LINENO: checking for $ac_word" >&5
5302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5303 if test "${ac_cv_prog_GCJ+set}" = set; then
5304 echo $ECHO_N "(cached) $ECHO_C" >&6
5305 else
5306 if test -n "$GCJ"; then
5307 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5308 else
5309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310 for as_dir in $PATH
5312 IFS=$as_save_IFS
5313 test -z "$as_dir" && as_dir=.
5314 for ac_exec_ext in '' $ac_executable_extensions; do
5315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5316 ac_cv_prog_GCJ="$ac_prog"
5317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5318 break 2
5320 done
5321 done
5325 GCJ=$ac_cv_prog_GCJ
5326 if test -n "$GCJ"; then
5327 echo "$as_me:$LINENO: result: $GCJ" >&5
5328 echo "${ECHO_T}$GCJ" >&6
5329 else
5330 echo "$as_me:$LINENO: result: no" >&5
5331 echo "${ECHO_T}no" >&6
5334 test -n "$GCJ" && break
5335 done
5336 test -n "$GCJ" || GCJ="gcj"
5338 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
5339 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
5340 { (exit 1); exit 1; }; }
5341 if test "x${GCJFLAGS-unset}" = xunset; then
5342 GCJFLAGS="-g -O2"
5346 depcc="$GCJ" am_compiler_list='gcc3 gcc'
5348 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5349 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5350 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
5351 echo $ECHO_N "(cached) $ECHO_C" >&6
5352 else
5353 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5354 # We make a subdir and do the tests there. Otherwise we can end up
5355 # making bogus files that we don't know about and never remove. For
5356 # instance it was reported that on HP-UX the gcc test will end up
5357 # making a dummy file named `D' -- because `-MD' means `put the output
5358 # in D'.
5359 mkdir conftest.dir
5360 # Copy depcomp to subdir because otherwise we won't find it if we're
5361 # using a relative directory.
5362 cp "$am_depcomp" conftest.dir
5363 cd conftest.dir
5364 # We will build objects and dependencies in a subdirectory because
5365 # it helps to detect inapplicable dependency modes. For instance
5366 # both Tru64's cc and ICC support -MD to output dependencies as a
5367 # side effect of compilation, but ICC will put the dependencies in
5368 # the current directory while Tru64 will put them in the object
5369 # directory.
5370 mkdir sub
5372 am_cv_GCJ_dependencies_compiler_type=none
5373 if test "$am_compiler_list" = ""; then
5374 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5376 for depmode in $am_compiler_list; do
5377 # Setup a source with many dependencies, because some compilers
5378 # like to wrap large dependency lists on column 80 (with \), and
5379 # we should not choose a depcomp mode which is confused by this.
5381 # We need to recreate these files for each test, as the compiler may
5382 # overwrite some of them when testing with obscure command lines.
5383 # This happens at least with the AIX C compiler.
5384 : > sub/conftest.c
5385 for i in 1 2 3 4 5 6; do
5386 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5387 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5388 # Solaris 8's {/usr,}/bin/sh.
5389 touch sub/conftst$i.h
5390 done
5391 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5393 case $depmode in
5394 nosideeffect)
5395 # after this tag, mechanisms are not by side-effect, so they'll
5396 # only be used when explicitly requested
5397 if test "x$enable_dependency_tracking" = xyes; then
5398 continue
5399 else
5400 break
5403 none) break ;;
5404 esac
5405 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5406 # mode. It turns out that the SunPro C++ compiler does not properly
5407 # handle `-M -o', and we need to detect this.
5408 if depmode=$depmode \
5409 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5410 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5411 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5412 >/dev/null 2>conftest.err &&
5413 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5414 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5415 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5416 # icc doesn't choke on unknown options, it will just issue warnings
5417 # or remarks (even with -Werror). So we grep stderr for any message
5418 # that says an option was ignored or not supported.
5419 # When given -MP, icc 7.0 and 7.1 complain thusly:
5420 # icc: Command line warning: ignoring option '-M'; no argument required
5421 # The diagnosis changed in icc 8.0:
5422 # icc: Command line remark: option '-MP' not supported
5423 if (grep 'ignoring option' conftest.err ||
5424 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5425 am_cv_GCJ_dependencies_compiler_type=$depmode
5426 break
5429 done
5431 cd ..
5432 rm -rf conftest.dir
5433 else
5434 am_cv_GCJ_dependencies_compiler_type=none
5438 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
5439 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
5440 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
5445 test "x$enable_dependency_tracking" != xno \
5446 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
5447 am__fastdepGCJ_TRUE=
5448 am__fastdepGCJ_FALSE='#'
5449 else
5450 am__fastdepGCJ_TRUE='#'
5451 am__fastdepGCJ_FALSE=
5457 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
5458 lt_save_CC="$CC"
5459 lt_save_CFLAGS="$CFLAGS"
5460 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
5461 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5462 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5463 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5464 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5465 deplibs_check_method="$deplibs_check_method" \
5466 file_magic_cmd="$file_magic_cmd" \
5467 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5468 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
5469 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5470 echo "$as_me: error: libtool tag configuration failed" >&2;}
5471 { (exit 1); exit 1; }; }
5472 CC="$lt_save_CC"
5473 CFLAGS="$lt_save_CFLAGS"
5475 # Redirect the config.log output again, so that the ltconfig log is not
5476 # clobbered by the next message.
5477 exec 5>>./config.log
5481 if test "x$CC" != xcc; then
5482 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5483 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
5484 else
5485 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5486 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
5488 set dummy $CC; ac_cc=`echo $2 |
5489 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5490 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
5491 echo $ECHO_N "(cached) $ECHO_C" >&6
5492 else
5493 cat >conftest.$ac_ext <<_ACEOF
5494 /* confdefs.h. */
5495 _ACEOF
5496 cat confdefs.h >>conftest.$ac_ext
5497 cat >>conftest.$ac_ext <<_ACEOF
5498 /* end confdefs.h. */
5501 main ()
5505 return 0;
5507 _ACEOF
5508 # Make sure it works both with $CC and with simple cc.
5509 # We do the test twice because some compilers refuse to overwrite an
5510 # existing .o file with -o, though they will create one.
5511 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5512 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5513 (eval $ac_try) 2>&5
5514 ac_status=$?
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); } &&
5517 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5518 (eval $ac_try) 2>&5
5519 ac_status=$?
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); };
5522 then
5523 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5524 if test "x$CC" != xcc; then
5525 # Test first that cc exists at all.
5526 if { ac_try='cc -c conftest.$ac_ext >&5'
5527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5528 (eval $ac_try) 2>&5
5529 ac_status=$?
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); }; }; then
5532 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5533 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5534 (eval $ac_try) 2>&5
5535 ac_status=$?
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); } &&
5538 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5539 (eval $ac_try) 2>&5
5540 ac_status=$?
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); };
5543 then
5544 # cc works too.
5546 else
5547 # cc exists but doesn't like -o.
5548 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5552 else
5553 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5555 rm -f conftest*
5558 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
5559 echo "$as_me:$LINENO: result: yes" >&5
5560 echo "${ECHO_T}yes" >&6
5561 else
5562 echo "$as_me:$LINENO: result: no" >&5
5563 echo "${ECHO_T}no" >&6
5565 cat >>confdefs.h <<\_ACEOF
5566 #define NO_MINUS_C_MINUS_O 1
5567 _ACEOF
5571 # FIXME: we rely on the cache variable name because
5572 # there is no other way.
5573 set dummy $CC
5574 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5575 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
5576 # Losing compiler, so override with the script.
5577 # FIXME: It is wrong to rewrite CC.
5578 # But if we don't then we get into trouble of one sort or another.
5579 # A longer-term fix would be to have automake use am__CC in this case,
5580 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5581 CC="$am_aux_dir/compile $CC"
5586 subdirs="$subdirs libltdl"
5589 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
5590 COMPPATH=.
5591 else
5592 COMPPATH=..
5596 # The -no-testsuite modules omit the test subdir.
5599 if test -d $srcdir/testsuite; then
5600 TESTSUBDIR_TRUE=
5601 TESTSUBDIR_FALSE='#'
5602 else
5603 TESTSUBDIR_TRUE='#'
5604 TESTSUBDIR_FALSE=
5608 # Should the runtime set system properties by examining the
5609 # environment variable GCJ_PROPERTIES?
5610 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
5611 if test "${enable_getenv_properties+set}" = set; then
5612 enableval="$enable_getenv_properties"
5616 # Whether GCJ_PROPERTIES is used depends on the target.
5617 if test -z "$enable_getenv_properties"; then
5618 enable_getenv_properties=${enable_getenv_properties_default-yes}
5620 if test "$enable_getenv_properties" = no; then
5622 cat >>confdefs.h <<\_ACEOF
5623 #define DISABLE_GETENV_PROPERTIES 1
5624 _ACEOF
5628 # Whether we should use arguments to main()
5629 if test -z "$enable_main_args"; then
5630 enable_main_args=${enable_main_args_default-yes}
5632 if test "$enable_main_args" = no; then
5634 cat >>confdefs.h <<\_ACEOF
5635 #define DISABLE_MAIN_ARGS 1
5636 _ACEOF
5641 # Should we use hashtable-based synchronization?
5642 # Currently works only for Linux X86/ia64
5643 # Typically faster and more space-efficient
5644 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
5645 if test "${enable_hash_synchronization+set}" = set; then
5646 enableval="$enable_hash_synchronization"
5650 if test -z "$enable_hash_synchronization"; then
5651 enable_hash_synchronization=$enable_hash_synchronization_default
5654 # Do we allow intermodule optimizations (i.e. compiling many files at once)?
5655 # Check whether --enable-libgcj-multifile or --disable-libgcj-multifile was given.
5656 if test "${enable_libgcj_multifile+set}" = set; then
5657 enableval="$enable_libgcj_multifile"
5658 case "${enableval}" in
5659 yes) enable_libgcj_multifile=yes ;;
5660 no) enable_libgcj_multifile=no ;;
5661 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-libgcj-multifile" >&5
5662 echo "$as_me: error: bad value ${enableval} for --enable-libgcj-multifile" >&2;}
5663 { (exit 1); exit 1; }; } ;;
5664 esac
5665 else
5666 enable_libgcj_multifile=no
5670 if test "$enable_libgcj_multifile" = yes; then
5671 ONESTEP_TRUE=
5672 ONESTEP_FALSE='#'
5673 else
5674 ONESTEP_TRUE='#'
5675 ONESTEP_FALSE=
5679 # What is the native OS API for MinGW?
5681 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
5682 if test "${with_win32_nlsapi+set}" = set; then
5683 withval="$with_win32_nlsapi"
5684 case "${withval}" in
5685 ansi) with_win32_nlsapi=ansi ;;
5686 unicows) with_win32_nlsapi=unicows ;;
5687 unicode) with_win32_nlsapi=unicode ;;
5688 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
5689 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
5690 { (exit 1); exit 1; }; } ;;
5691 esac
5692 else
5693 with_win32_nlsapi=ansi
5696 case "${with_win32_nlsapi}" in
5697 unicows | unicode)
5699 cat >>confdefs.h <<\_ACEOF
5700 #define MINGW_LIBGCJ_UNICODE 1
5701 _ACEOF
5704 esac
5706 # configure.host sets slow_pthread_self if the synchronization code should
5707 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
5708 if test "${slow_pthread_self}" = "yes"; then
5710 cat >>confdefs.h <<\_ACEOF
5711 #define SLOW_PTHREAD_SELF 1
5712 _ACEOF
5717 # See if the user has requested runtime debugging.
5718 LIBGCJDEBUG="false"
5720 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
5721 if test "${enable_libgcj_debug+set}" = set; then
5722 enableval="$enable_libgcj_debug"
5723 if test "$enable_libgcj_debug" = yes; then
5725 cat >>confdefs.h <<\_ACEOF
5726 #define DEBUG 1
5727 _ACEOF
5729 LIBGCJDEBUG="true"
5733 # Check for gc debugging. This option is handled both here and in the GC.
5734 # Check whether --enable-gc-debug or --disable-gc-debug was given.
5735 if test "${enable_gc_debug+set}" = set; then
5736 enableval="$enable_gc_debug"
5737 if test "$enable_gc_debug" = "yes"; then
5739 cat >>confdefs.h <<\_ACEOF
5740 #define LIBGCJ_GC_DEBUG 1
5741 _ACEOF
5746 # See if the user has the interpreter included.
5747 # Check whether --enable-interpreter or --disable-interpreter was given.
5748 if test "${enable_interpreter+set}" = set; then
5749 enableval="$enable_interpreter"
5750 if test "$enable_interpreter" = yes; then
5751 # This can also be set in configure.host.
5752 libgcj_interpreter=yes
5753 elif test "$enable_interpreter" = no; then
5754 libgcj_interpreter=no
5758 if test "$libgcj_interpreter" = yes; then
5760 cat >>confdefs.h <<\_ACEOF
5761 #define INTERPRETER 1
5762 _ACEOF
5765 INTERPRETER="$libgcj_interpreter"
5768 echo "$as_me:$LINENO: checking for exception model to use" >&5
5769 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
5770 ac_ext=cc
5771 ac_cpp='$CXXCPP $CPPFLAGS'
5772 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5773 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5774 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5776 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
5777 if test "${enable_sjlj_exceptions+set}" = set; then
5778 enableval="$enable_sjlj_exceptions"
5780 else
5781 cat > conftest.$ac_ext << EOF
5782 #line 5782 "configure"
5783 struct S { ~S(); };
5784 void bar();
5785 void foo()
5787 S s;
5788 bar();
5791 old_CXXFLAGS="$CXXFLAGS"
5792 CXXFLAGS=-S
5793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5794 (eval $ac_compile) 2>&5
5795 ac_status=$?
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); }; then
5798 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
5799 enable_sjlj_exceptions=yes
5800 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
5801 enable_sjlj_exceptions=no
5804 CXXFLAGS="$old_CXXFLAGS"
5805 rm -f conftest*
5807 if test x$enable_sjlj_exceptions = xyes; then
5809 cat >>confdefs.h <<\_ACEOF
5810 #define SJLJ_EXCEPTIONS 1
5811 _ACEOF
5813 ac_exception_model_name=sjlj
5814 elif test x$enable_sjlj_exceptions = xno; then
5815 ac_exception_model_name="call frame"
5816 else
5817 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
5818 echo "$as_me: error: unable to detect exception model" >&2;}
5819 { (exit 1); exit 1; }; }
5821 ac_ext=c
5822 ac_cpp='$CPP $CPPFLAGS'
5823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5827 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
5828 echo "${ECHO_T}$ac_exception_model_name" >&6
5830 # If we are non using SJLJ exceptions, and this host does not have support
5831 # for unwinding from a signal handler, enable checked dereferences and divides.
5832 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
5833 CHECKREFSPEC=-fcheck-references
5834 DIVIDESPEC=-fuse-divide-subroutine
5835 EXCEPTIONSPEC=
5838 # See if the user wants to disable java.net. This is the mildly
5839 # ugly way that we admit that target-side configuration sucks.
5840 # Check whether --enable-java-net or --disable-java-net was given.
5841 if test "${enable_java_net+set}" = set; then
5842 enableval="$enable_java_net"
5846 # Whether java.net is built by default can depend on the target.
5847 if test -z "$enable_java_net"; then
5848 enable_java_net=${enable_java_net_default-yes}
5850 if test "$enable_java_net" = no; then
5852 cat >>confdefs.h <<\_ACEOF
5853 #define DISABLE_JAVA_NET 1
5854 _ACEOF
5858 # See if the user wants to configure without libffi. Some
5859 # architectures don't support it, and default values are set in
5860 # configure.host.
5862 # Check whether --with-libffi or --without-libffi was given.
5863 if test "${with_libffi+set}" = set; then
5864 withval="$with_libffi"
5866 else
5867 with_libffi=${with_libffi_default-yes}
5870 LIBFFI=
5871 LIBFFIINCS=
5872 if test "$with_libffi" != no; then
5874 cat >>confdefs.h <<\_ACEOF
5875 #define USE_LIBFFI 1
5876 _ACEOF
5878 LIBFFI=../libffi/libffi_convenience.la
5879 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
5884 # See if the user wants to disable JVMPI support.
5885 # Check whether --enable-jvmpi or --disable-jvmpi was given.
5886 if test "${enable_jvmpi+set}" = set; then
5887 enableval="$enable_jvmpi"
5891 if test "$enable_jvmpi" != no; then
5893 cat >>confdefs.h <<\_ACEOF
5894 #define ENABLE_JVMPI 1
5895 _ACEOF
5899 # If the target is an eCos system, use the appropriate eCos
5900 # I/O routines.
5901 # FIXME: this should not be a local option but a global target
5902 # system; at present there is no eCos target.
5903 TARGET_ECOS=${PROCESS-"no"}
5905 # Check whether --with-ecos or --without-ecos was given.
5906 if test "${with_ecos+set}" = set; then
5907 withval="$with_ecos"
5908 TARGET_ECOS="$with_ecos"
5912 supply_backtrace=no
5914 PLATFORM_INNER_NAT_HDRS=
5915 case "$TARGET_ECOS" in
5916 no) case "$host" in
5917 *mingw*)
5918 PLATFORM=Win32
5919 PLATFORMNET=Win32
5920 PLATFORMH=win32.h
5922 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
5923 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
5924 LD_PROG=`$CC --print-prog-name=ld`
5925 LD_VERSION=`$LD_PROG --version`
5926 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
5927 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
5928 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
5929 LD_OK="ok"
5930 else
5931 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
5932 LD_OK="ok"
5935 if test "x$LD_OK" != x; then
5936 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
5937 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
5938 else
5939 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
5940 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
5941 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
5942 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
5944 cat >>confdefs.h <<\_ACEOF
5945 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
5946 _ACEOF
5951 PLATFORM=Posix
5952 PLATFORMNET=Posix
5953 PLATFORMH=posix.h
5954 PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
5956 esac
5959 PLATFORM=Ecos
5960 PLATFORMNET=NoNet
5962 cat >>confdefs.h <<\_ACEOF
5963 #define ECOS 1
5964 _ACEOF
5966 PLATFORMH=posix.h
5968 esac
5970 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
5973 ac_ext=c
5974 ac_cpp='$CPP $CPPFLAGS'
5975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5978 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5979 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5980 # On Suns, sometimes $CPP names a directory.
5981 if test -n "$CPP" && test -d "$CPP"; then
5982 CPP=
5984 if test -z "$CPP"; then
5985 if test "${ac_cv_prog_CPP+set}" = set; then
5986 echo $ECHO_N "(cached) $ECHO_C" >&6
5987 else
5988 # Double quotes because CPP needs to be expanded
5989 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5991 ac_preproc_ok=false
5992 for ac_c_preproc_warn_flag in '' yes
5994 # Use a header file that comes with gcc, so configuring glibc
5995 # with a fresh cross-compiler works.
5996 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5997 # <limits.h> exists even on freestanding compilers.
5998 # On the NeXT, cc -E runs the code through the compiler's parser,
5999 # not just through cpp. "Syntax error" is here to catch this case.
6000 cat >conftest.$ac_ext <<_ACEOF
6001 /* confdefs.h. */
6002 _ACEOF
6003 cat confdefs.h >>conftest.$ac_ext
6004 cat >>conftest.$ac_ext <<_ACEOF
6005 /* end confdefs.h. */
6006 #ifdef __STDC__
6007 # include <limits.h>
6008 #else
6009 # include <assert.h>
6010 #endif
6011 Syntax error
6012 _ACEOF
6013 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6014 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6015 ac_status=$?
6016 grep -v '^ *+' conftest.er1 >conftest.err
6017 rm -f conftest.er1
6018 cat conftest.err >&5
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); } >/dev/null; then
6021 if test -s conftest.err; then
6022 ac_cpp_err=$ac_c_preproc_warn_flag
6023 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6024 else
6025 ac_cpp_err=
6027 else
6028 ac_cpp_err=yes
6030 if test -z "$ac_cpp_err"; then
6032 else
6033 echo "$as_me: failed program was:" >&5
6034 sed 's/^/| /' conftest.$ac_ext >&5
6036 # Broken: fails on valid input.
6037 continue
6039 rm -f conftest.err conftest.$ac_ext
6041 # OK, works on sane cases. Now check whether non-existent headers
6042 # can be detected and how.
6043 cat >conftest.$ac_ext <<_ACEOF
6044 /* confdefs.h. */
6045 _ACEOF
6046 cat confdefs.h >>conftest.$ac_ext
6047 cat >>conftest.$ac_ext <<_ACEOF
6048 /* end confdefs.h. */
6049 #include <ac_nonexistent.h>
6050 _ACEOF
6051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6052 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6053 ac_status=$?
6054 grep -v '^ *+' conftest.er1 >conftest.err
6055 rm -f conftest.er1
6056 cat conftest.err >&5
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); } >/dev/null; then
6059 if test -s conftest.err; then
6060 ac_cpp_err=$ac_c_preproc_warn_flag
6061 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6062 else
6063 ac_cpp_err=
6065 else
6066 ac_cpp_err=yes
6068 if test -z "$ac_cpp_err"; then
6069 # Broken: success on invalid input.
6070 continue
6071 else
6072 echo "$as_me: failed program was:" >&5
6073 sed 's/^/| /' conftest.$ac_ext >&5
6075 # Passes both tests.
6076 ac_preproc_ok=:
6077 break
6079 rm -f conftest.err conftest.$ac_ext
6081 done
6082 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6083 rm -f conftest.err conftest.$ac_ext
6084 if $ac_preproc_ok; then
6085 break
6088 done
6089 ac_cv_prog_CPP=$CPP
6092 CPP=$ac_cv_prog_CPP
6093 else
6094 ac_cv_prog_CPP=$CPP
6096 echo "$as_me:$LINENO: result: $CPP" >&5
6097 echo "${ECHO_T}$CPP" >&6
6098 ac_preproc_ok=false
6099 for ac_c_preproc_warn_flag in '' yes
6101 # Use a header file that comes with gcc, so configuring glibc
6102 # with a fresh cross-compiler works.
6103 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6104 # <limits.h> exists even on freestanding compilers.
6105 # On the NeXT, cc -E runs the code through the compiler's parser,
6106 # not just through cpp. "Syntax error" is here to catch this case.
6107 cat >conftest.$ac_ext <<_ACEOF
6108 /* confdefs.h. */
6109 _ACEOF
6110 cat confdefs.h >>conftest.$ac_ext
6111 cat >>conftest.$ac_ext <<_ACEOF
6112 /* end confdefs.h. */
6113 #ifdef __STDC__
6114 # include <limits.h>
6115 #else
6116 # include <assert.h>
6117 #endif
6118 Syntax error
6119 _ACEOF
6120 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6121 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6122 ac_status=$?
6123 grep -v '^ *+' conftest.er1 >conftest.err
6124 rm -f conftest.er1
6125 cat conftest.err >&5
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); } >/dev/null; then
6128 if test -s conftest.err; then
6129 ac_cpp_err=$ac_c_preproc_warn_flag
6130 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6131 else
6132 ac_cpp_err=
6134 else
6135 ac_cpp_err=yes
6137 if test -z "$ac_cpp_err"; then
6139 else
6140 echo "$as_me: failed program was:" >&5
6141 sed 's/^/| /' conftest.$ac_ext >&5
6143 # Broken: fails on valid input.
6144 continue
6146 rm -f conftest.err conftest.$ac_ext
6148 # OK, works on sane cases. Now check whether non-existent headers
6149 # can be detected and how.
6150 cat >conftest.$ac_ext <<_ACEOF
6151 /* confdefs.h. */
6152 _ACEOF
6153 cat confdefs.h >>conftest.$ac_ext
6154 cat >>conftest.$ac_ext <<_ACEOF
6155 /* end confdefs.h. */
6156 #include <ac_nonexistent.h>
6157 _ACEOF
6158 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6159 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6160 ac_status=$?
6161 grep -v '^ *+' conftest.er1 >conftest.err
6162 rm -f conftest.er1
6163 cat conftest.err >&5
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); } >/dev/null; then
6166 if test -s conftest.err; then
6167 ac_cpp_err=$ac_c_preproc_warn_flag
6168 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6169 else
6170 ac_cpp_err=
6172 else
6173 ac_cpp_err=yes
6175 if test -z "$ac_cpp_err"; then
6176 # Broken: success on invalid input.
6177 continue
6178 else
6179 echo "$as_me: failed program was:" >&5
6180 sed 's/^/| /' conftest.$ac_ext >&5
6182 # Passes both tests.
6183 ac_preproc_ok=:
6184 break
6186 rm -f conftest.err conftest.$ac_ext
6188 done
6189 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6190 rm -f conftest.err conftest.$ac_ext
6191 if $ac_preproc_ok; then
6193 else
6194 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6195 See \`config.log' for more details." >&5
6196 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6197 See \`config.log' for more details." >&2;}
6198 { (exit 1); exit 1; }; }
6201 ac_ext=c
6202 ac_cpp='$CPP $CPPFLAGS'
6203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6208 echo "$as_me:$LINENO: checking for egrep" >&5
6209 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6210 if test "${ac_cv_prog_egrep+set}" = set; then
6211 echo $ECHO_N "(cached) $ECHO_C" >&6
6212 else
6213 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6214 then ac_cv_prog_egrep='grep -E'
6215 else ac_cv_prog_egrep='egrep'
6218 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6219 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6220 EGREP=$ac_cv_prog_egrep
6223 cat >conftest.$ac_ext <<_ACEOF
6224 /* confdefs.h. */
6225 _ACEOF
6226 cat confdefs.h >>conftest.$ac_ext
6227 cat >>conftest.$ac_ext <<_ACEOF
6228 /* end confdefs.h. */
6229 #include <stdint.h>
6231 _ACEOF
6232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6233 $EGREP "uint32_t" >/dev/null 2>&1; then
6235 cat >>confdefs.h <<\_ACEOF
6236 #define HAVE_INT32_DEFINED 1
6237 _ACEOF
6240 rm -f conftest*
6242 cat >conftest.$ac_ext <<_ACEOF
6243 /* confdefs.h. */
6244 _ACEOF
6245 cat confdefs.h >>conftest.$ac_ext
6246 cat >>conftest.$ac_ext <<_ACEOF
6247 /* end confdefs.h. */
6248 #include <inttypes.h>
6250 _ACEOF
6251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6252 $EGREP "uint32_t" >/dev/null 2>&1; then
6254 cat >>confdefs.h <<\_ACEOF
6255 #define HAVE_INT32_DEFINED 1
6256 _ACEOF
6259 rm -f conftest*
6261 cat >conftest.$ac_ext <<_ACEOF
6262 /* confdefs.h. */
6263 _ACEOF
6264 cat confdefs.h >>conftest.$ac_ext
6265 cat >>conftest.$ac_ext <<_ACEOF
6266 /* end confdefs.h. */
6267 #include <sys/types.h>
6269 _ACEOF
6270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6271 $EGREP "u_int32_t" >/dev/null 2>&1; then
6273 cat >>confdefs.h <<\_ACEOF
6274 #define HAVE_BSD_INT32_DEFINED 1
6275 _ACEOF
6278 rm -f conftest*
6280 cat >conftest.$ac_ext <<_ACEOF
6281 /* confdefs.h. */
6282 _ACEOF
6283 cat confdefs.h >>conftest.$ac_ext
6284 cat >>conftest.$ac_ext <<_ACEOF
6285 /* end confdefs.h. */
6286 #include <sys/config.h>
6288 _ACEOF
6289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6290 $EGREP "u_int32_t" >/dev/null 2>&1; then
6292 cat >>confdefs.h <<\_ACEOF
6293 #define HAVE_BSD_INT32_DEFINED 1
6294 _ACEOF
6297 rm -f conftest*
6302 if test "$PLATFORM" = Win32; then
6303 USING_WIN32_PLATFORM_TRUE=
6304 USING_WIN32_PLATFORM_FALSE='#'
6305 else
6306 USING_WIN32_PLATFORM_TRUE='#'
6307 USING_WIN32_PLATFORM_FALSE=
6312 if test "$PLATFORM" = Posix; then
6313 USING_POSIX_PLATFORM_TRUE=
6314 USING_POSIX_PLATFORM_FALSE='#'
6315 else
6316 USING_POSIX_PLATFORM_TRUE='#'
6317 USING_POSIX_PLATFORM_FALSE=
6322 if test "$PLATFORM" = Ecos; then
6323 USING_ECOS_PLATFORM_TRUE=
6324 USING_ECOS_PLATFORM_FALSE='#'
6325 else
6326 USING_ECOS_PLATFORM_TRUE='#'
6327 USING_ECOS_PLATFORM_FALSE=
6331 # These may not be defined in a non-ANS conformant embedded system.
6332 # FIXME: Should these case a runtime exception in that case?
6333 cat >conftest.$ac_ext <<_ACEOF
6334 /* confdefs.h. */
6335 _ACEOF
6336 cat confdefs.h >>conftest.$ac_ext
6337 cat >>conftest.$ac_ext <<_ACEOF
6338 /* end confdefs.h. */
6339 #include <time.h>
6341 _ACEOF
6342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6343 $EGREP "mktime" >/dev/null 2>&1; then
6345 cat >>confdefs.h <<\_ACEOF
6346 #define HAVE_MKTIME 1
6347 _ACEOF
6350 rm -f conftest*
6352 cat >conftest.$ac_ext <<_ACEOF
6353 /* confdefs.h. */
6354 _ACEOF
6355 cat confdefs.h >>conftest.$ac_ext
6356 cat >>conftest.$ac_ext <<_ACEOF
6357 /* end confdefs.h. */
6358 #include <time.h>
6360 _ACEOF
6361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6362 $EGREP "localtime" >/dev/null 2>&1; then
6364 cat >>confdefs.h <<\_ACEOF
6365 #define HAVE_LOCALTIME 1
6366 _ACEOF
6369 rm -f conftest*
6372 # Create the subdirectory for natFile.cc, or the attempt
6373 # to create the link will fail.
6374 test -d java || mkdir java
6375 test -d java/io || mkdir java/io
6376 test -d gnu || mkdir gnu
6377 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
6380 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
6381 test -d java/lang || mkdir java/lang
6382 ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
6384 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
6387 # Likewise for natInetAddress.cc and natNetworkInterface.cc.
6388 test -d java/net || mkdir java/net
6389 ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
6391 ac_config_links="$ac_config_links java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc"
6394 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
6395 test -d gnu/java || mkdir gnu/java
6396 test -d gnu/java/net || mkdir gnu/java/net
6397 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
6399 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
6402 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
6403 test -d gnu/java/nio || mkdir gnu/java/nio
6404 ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
6406 ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
6408 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
6409 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
6412 case "${host}" in
6413 *mingw*)
6414 SYSTEMSPEC="-lgdi32 -lws2_32"
6415 if test "${with_win32_nlsapi}" = "unicows"; then
6416 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
6420 SYSTEMSPEC=
6422 esac
6425 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
6429 # Check whether --with-system-zlib or --without-system-zlib was given.
6430 if test "${with_system_zlib+set}" = set; then
6431 withval="$with_system_zlib"
6434 ZLIBSPEC=
6436 ZLIBTESTSPEC=
6439 echo "$as_me:$LINENO: checking for X" >&5
6440 echo $ECHO_N "checking for X... $ECHO_C" >&6
6443 # Check whether --with-x or --without-x was given.
6444 if test "${with_x+set}" = set; then
6445 withval="$with_x"
6448 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6449 if test "x$with_x" = xno; then
6450 # The user explicitly disabled X.
6451 have_x=disabled
6452 else
6453 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6454 # Both variables are already set.
6455 have_x=yes
6456 else
6457 if test "${ac_cv_have_x+set}" = set; then
6458 echo $ECHO_N "(cached) $ECHO_C" >&6
6459 else
6460 # One or both of the vars are not set, and there is no cached value.
6461 ac_x_includes=no ac_x_libraries=no
6462 rm -fr conftest.dir
6463 if mkdir conftest.dir; then
6464 cd conftest.dir
6465 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6466 cat >Imakefile <<'_ACEOF'
6467 acfindx:
6468 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6469 _ACEOF
6470 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6471 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6472 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6473 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6474 for ac_extension in a so sl; do
6475 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6476 test -f $ac_im_libdir/libX11.$ac_extension; then
6477 ac_im_usrlibdir=$ac_im_libdir; break
6479 done
6480 # Screen out bogus values from the imake configuration. They are
6481 # bogus both because they are the default anyway, and because
6482 # using them would break gcc on systems where it needs fixed includes.
6483 case $ac_im_incroot in
6484 /usr/include) ;;
6485 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6486 esac
6487 case $ac_im_usrlibdir in
6488 /usr/lib | /lib) ;;
6489 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6490 esac
6492 cd ..
6493 rm -fr conftest.dir
6496 # Standard set of common directories for X headers.
6497 # Check X11 before X11Rn because it is often a symlink to the current release.
6498 ac_x_header_dirs='
6499 /usr/X11/include
6500 /usr/X11R6/include
6501 /usr/X11R5/include
6502 /usr/X11R4/include
6504 /usr/include/X11
6505 /usr/include/X11R6
6506 /usr/include/X11R5
6507 /usr/include/X11R4
6509 /usr/local/X11/include
6510 /usr/local/X11R6/include
6511 /usr/local/X11R5/include
6512 /usr/local/X11R4/include
6514 /usr/local/include/X11
6515 /usr/local/include/X11R6
6516 /usr/local/include/X11R5
6517 /usr/local/include/X11R4
6519 /usr/X386/include
6520 /usr/x386/include
6521 /usr/XFree86/include/X11
6523 /usr/include
6524 /usr/local/include
6525 /usr/unsupported/include
6526 /usr/athena/include
6527 /usr/local/x11r5/include
6528 /usr/lpp/Xamples/include
6530 /usr/openwin/include
6531 /usr/openwin/share/include'
6533 if test "$ac_x_includes" = no; then
6534 # Guess where to find include files, by looking for Intrinsic.h.
6535 # First, try using that file with no special directory specified.
6536 cat >conftest.$ac_ext <<_ACEOF
6537 /* confdefs.h. */
6538 _ACEOF
6539 cat confdefs.h >>conftest.$ac_ext
6540 cat >>conftest.$ac_ext <<_ACEOF
6541 /* end confdefs.h. */
6542 #include <X11/Intrinsic.h>
6543 _ACEOF
6544 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6545 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6546 ac_status=$?
6547 grep -v '^ *+' conftest.er1 >conftest.err
6548 rm -f conftest.er1
6549 cat conftest.err >&5
6550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); } >/dev/null; then
6552 if test -s conftest.err; then
6553 ac_cpp_err=$ac_c_preproc_warn_flag
6554 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6555 else
6556 ac_cpp_err=
6558 else
6559 ac_cpp_err=yes
6561 if test -z "$ac_cpp_err"; then
6562 # We can compile using X headers with no special include directory.
6563 ac_x_includes=
6564 else
6565 echo "$as_me: failed program was:" >&5
6566 sed 's/^/| /' conftest.$ac_ext >&5
6568 for ac_dir in $ac_x_header_dirs; do
6569 if test -r "$ac_dir/X11/Intrinsic.h"; then
6570 ac_x_includes=$ac_dir
6571 break
6573 done
6575 rm -f conftest.err conftest.$ac_ext
6576 fi # $ac_x_includes = no
6578 if test "$ac_x_libraries" = no; then
6579 # Check for the libraries.
6580 # See if we find them without any special options.
6581 # Don't add to $LIBS permanently.
6582 ac_save_LIBS=$LIBS
6583 LIBS="-lXt $LIBS"
6584 if test x$gcc_no_link = xyes; then
6585 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6586 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6587 { (exit 1); exit 1; }; }
6589 cat >conftest.$ac_ext <<_ACEOF
6590 /* confdefs.h. */
6591 _ACEOF
6592 cat confdefs.h >>conftest.$ac_ext
6593 cat >>conftest.$ac_ext <<_ACEOF
6594 /* end confdefs.h. */
6595 #include <X11/Intrinsic.h>
6597 main ()
6599 XtMalloc (0)
6601 return 0;
6603 _ACEOF
6604 rm -f conftest.$ac_objext conftest$ac_exeext
6605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6606 (eval $ac_link) 2>conftest.er1
6607 ac_status=$?
6608 grep -v '^ *+' conftest.er1 >conftest.err
6609 rm -f conftest.er1
6610 cat conftest.err >&5
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); } &&
6613 { ac_try='test -z "$ac_c_werror_flag"
6614 || test ! -s conftest.err'
6615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6616 (eval $ac_try) 2>&5
6617 ac_status=$?
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); }; } &&
6620 { ac_try='test -s conftest$ac_exeext'
6621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6622 (eval $ac_try) 2>&5
6623 ac_status=$?
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); }; }; then
6626 LIBS=$ac_save_LIBS
6627 # We can link X programs with no special library path.
6628 ac_x_libraries=
6629 else
6630 echo "$as_me: failed program was:" >&5
6631 sed 's/^/| /' conftest.$ac_ext >&5
6633 LIBS=$ac_save_LIBS
6634 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6636 # Don't even attempt the hair of trying to link an X program!
6637 for ac_extension in a so sl; do
6638 if test -r $ac_dir/libXt.$ac_extension; then
6639 ac_x_libraries=$ac_dir
6640 break 2
6642 done
6643 done
6645 rm -f conftest.err conftest.$ac_objext \
6646 conftest$ac_exeext conftest.$ac_ext
6647 fi # $ac_x_libraries = no
6649 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6650 # Didn't find X anywhere. Cache the known absence of X.
6651 ac_cv_have_x="have_x=no"
6652 else
6653 # Record where we found X for the cache.
6654 ac_cv_have_x="have_x=yes \
6655 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6660 eval "$ac_cv_have_x"
6661 fi # $with_x != no
6663 if test "$have_x" != yes; then
6664 echo "$as_me:$LINENO: result: $have_x" >&5
6665 echo "${ECHO_T}$have_x" >&6
6666 no_x=yes
6667 else
6668 # If each of the values was on the command line, it overrides each guess.
6669 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6670 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6671 # Update the cache value to reflect the command line values.
6672 ac_cv_have_x="have_x=yes \
6673 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6674 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6675 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6678 if test "$no_x" = yes; then
6679 # Not all programs may use this symbol, but it does not hurt to define it.
6681 cat >>confdefs.h <<\_ACEOF
6682 #define X_DISPLAY_MISSING 1
6683 _ACEOF
6685 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6686 else
6687 if test -n "$x_includes"; then
6688 X_CFLAGS="$X_CFLAGS -I$x_includes"
6691 # It would also be nice to do this for all -L options, not just this one.
6692 if test -n "$x_libraries"; then
6693 X_LIBS="$X_LIBS -L$x_libraries"
6694 # For Solaris; some versions of Sun CC require a space after -R and
6695 # others require no space. Words are not sufficient . . . .
6696 case `(uname -sr) 2>/dev/null` in
6697 "SunOS 5"*)
6698 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6699 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
6700 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6701 if test x$gcc_no_link = xyes; then
6702 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6703 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6704 { (exit 1); exit 1; }; }
6706 cat >conftest.$ac_ext <<_ACEOF
6707 /* confdefs.h. */
6708 _ACEOF
6709 cat confdefs.h >>conftest.$ac_ext
6710 cat >>conftest.$ac_ext <<_ACEOF
6711 /* end confdefs.h. */
6714 main ()
6718 return 0;
6720 _ACEOF
6721 rm -f conftest.$ac_objext conftest$ac_exeext
6722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6723 (eval $ac_link) 2>conftest.er1
6724 ac_status=$?
6725 grep -v '^ *+' conftest.er1 >conftest.err
6726 rm -f conftest.er1
6727 cat conftest.err >&5
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); } &&
6730 { ac_try='test -z "$ac_c_werror_flag"
6731 || test ! -s conftest.err'
6732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6733 (eval $ac_try) 2>&5
6734 ac_status=$?
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); }; } &&
6737 { ac_try='test -s conftest$ac_exeext'
6738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6739 (eval $ac_try) 2>&5
6740 ac_status=$?
6741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742 (exit $ac_status); }; }; then
6743 ac_R_nospace=yes
6744 else
6745 echo "$as_me: failed program was:" >&5
6746 sed 's/^/| /' conftest.$ac_ext >&5
6748 ac_R_nospace=no
6750 rm -f conftest.err conftest.$ac_objext \
6751 conftest$ac_exeext conftest.$ac_ext
6752 if test $ac_R_nospace = yes; then
6753 echo "$as_me:$LINENO: result: no" >&5
6754 echo "${ECHO_T}no" >&6
6755 X_LIBS="$X_LIBS -R$x_libraries"
6756 else
6757 LIBS="$ac_xsave_LIBS -R $x_libraries"
6758 if test x$gcc_no_link = xyes; then
6759 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6760 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6761 { (exit 1); exit 1; }; }
6763 cat >conftest.$ac_ext <<_ACEOF
6764 /* confdefs.h. */
6765 _ACEOF
6766 cat confdefs.h >>conftest.$ac_ext
6767 cat >>conftest.$ac_ext <<_ACEOF
6768 /* end confdefs.h. */
6771 main ()
6775 return 0;
6777 _ACEOF
6778 rm -f conftest.$ac_objext conftest$ac_exeext
6779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6780 (eval $ac_link) 2>conftest.er1
6781 ac_status=$?
6782 grep -v '^ *+' conftest.er1 >conftest.err
6783 rm -f conftest.er1
6784 cat conftest.err >&5
6785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786 (exit $ac_status); } &&
6787 { ac_try='test -z "$ac_c_werror_flag"
6788 || test ! -s conftest.err'
6789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6790 (eval $ac_try) 2>&5
6791 ac_status=$?
6792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793 (exit $ac_status); }; } &&
6794 { ac_try='test -s conftest$ac_exeext'
6795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6796 (eval $ac_try) 2>&5
6797 ac_status=$?
6798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799 (exit $ac_status); }; }; then
6800 ac_R_space=yes
6801 else
6802 echo "$as_me: failed program was:" >&5
6803 sed 's/^/| /' conftest.$ac_ext >&5
6805 ac_R_space=no
6807 rm -f conftest.err conftest.$ac_objext \
6808 conftest$ac_exeext conftest.$ac_ext
6809 if test $ac_R_space = yes; then
6810 echo "$as_me:$LINENO: result: yes" >&5
6811 echo "${ECHO_T}yes" >&6
6812 X_LIBS="$X_LIBS -R $x_libraries"
6813 else
6814 echo "$as_me:$LINENO: result: neither works" >&5
6815 echo "${ECHO_T}neither works" >&6
6818 LIBS=$ac_xsave_LIBS
6819 esac
6822 # Check for system-dependent libraries X programs must link with.
6823 # Do this before checking for the system-independent R6 libraries
6824 # (-lICE), since we may need -lsocket or whatever for X linking.
6826 if test "$ISC" = yes; then
6827 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6828 else
6829 # Martyn Johnson says this is needed for Ultrix, if the X
6830 # libraries were built with DECnet support. And Karl Berry says
6831 # the Alpha needs dnet_stub (dnet does not exist).
6832 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6833 if test x$gcc_no_link = xyes; then
6834 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6835 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6836 { (exit 1); exit 1; }; }
6838 cat >conftest.$ac_ext <<_ACEOF
6839 /* confdefs.h. */
6840 _ACEOF
6841 cat confdefs.h >>conftest.$ac_ext
6842 cat >>conftest.$ac_ext <<_ACEOF
6843 /* end confdefs.h. */
6845 /* Override any gcc2 internal prototype to avoid an error. */
6846 #ifdef __cplusplus
6847 extern "C"
6848 #endif
6849 /* We use char because int might match the return type of a gcc2
6850 builtin and then its argument prototype would still apply. */
6851 char XOpenDisplay ();
6853 main ()
6855 XOpenDisplay ();
6857 return 0;
6859 _ACEOF
6860 rm -f conftest.$ac_objext conftest$ac_exeext
6861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6862 (eval $ac_link) 2>conftest.er1
6863 ac_status=$?
6864 grep -v '^ *+' conftest.er1 >conftest.err
6865 rm -f conftest.er1
6866 cat conftest.err >&5
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } &&
6869 { ac_try='test -z "$ac_c_werror_flag"
6870 || test ! -s conftest.err'
6871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6872 (eval $ac_try) 2>&5
6873 ac_status=$?
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); }; } &&
6876 { ac_try='test -s conftest$ac_exeext'
6877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6878 (eval $ac_try) 2>&5
6879 ac_status=$?
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); }; }; then
6883 else
6884 echo "$as_me: failed program was:" >&5
6885 sed 's/^/| /' conftest.$ac_ext >&5
6887 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6888 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6889 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6890 echo $ECHO_N "(cached) $ECHO_C" >&6
6891 else
6892 ac_check_lib_save_LIBS=$LIBS
6893 LIBS="-ldnet $LIBS"
6894 if test x$gcc_no_link = xyes; then
6895 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6896 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6897 { (exit 1); exit 1; }; }
6899 cat >conftest.$ac_ext <<_ACEOF
6900 /* confdefs.h. */
6901 _ACEOF
6902 cat confdefs.h >>conftest.$ac_ext
6903 cat >>conftest.$ac_ext <<_ACEOF
6904 /* end confdefs.h. */
6906 /* Override any gcc2 internal prototype to avoid an error. */
6907 #ifdef __cplusplus
6908 extern "C"
6909 #endif
6910 /* We use char because int might match the return type of a gcc2
6911 builtin and then its argument prototype would still apply. */
6912 char dnet_ntoa ();
6914 main ()
6916 dnet_ntoa ();
6918 return 0;
6920 _ACEOF
6921 rm -f conftest.$ac_objext conftest$ac_exeext
6922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6923 (eval $ac_link) 2>conftest.er1
6924 ac_status=$?
6925 grep -v '^ *+' conftest.er1 >conftest.err
6926 rm -f conftest.er1
6927 cat conftest.err >&5
6928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929 (exit $ac_status); } &&
6930 { ac_try='test -z "$ac_c_werror_flag"
6931 || test ! -s conftest.err'
6932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6933 (eval $ac_try) 2>&5
6934 ac_status=$?
6935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6936 (exit $ac_status); }; } &&
6937 { ac_try='test -s conftest$ac_exeext'
6938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6939 (eval $ac_try) 2>&5
6940 ac_status=$?
6941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942 (exit $ac_status); }; }; then
6943 ac_cv_lib_dnet_dnet_ntoa=yes
6944 else
6945 echo "$as_me: failed program was:" >&5
6946 sed 's/^/| /' conftest.$ac_ext >&5
6948 ac_cv_lib_dnet_dnet_ntoa=no
6950 rm -f conftest.err conftest.$ac_objext \
6951 conftest$ac_exeext conftest.$ac_ext
6952 LIBS=$ac_check_lib_save_LIBS
6954 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6955 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6956 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6957 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6960 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6961 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6962 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
6963 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6964 echo $ECHO_N "(cached) $ECHO_C" >&6
6965 else
6966 ac_check_lib_save_LIBS=$LIBS
6967 LIBS="-ldnet_stub $LIBS"
6968 if test x$gcc_no_link = xyes; then
6969 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6970 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6971 { (exit 1); exit 1; }; }
6973 cat >conftest.$ac_ext <<_ACEOF
6974 /* confdefs.h. */
6975 _ACEOF
6976 cat confdefs.h >>conftest.$ac_ext
6977 cat >>conftest.$ac_ext <<_ACEOF
6978 /* end confdefs.h. */
6980 /* Override any gcc2 internal prototype to avoid an error. */
6981 #ifdef __cplusplus
6982 extern "C"
6983 #endif
6984 /* We use char because int might match the return type of a gcc2
6985 builtin and then its argument prototype would still apply. */
6986 char dnet_ntoa ();
6988 main ()
6990 dnet_ntoa ();
6992 return 0;
6994 _ACEOF
6995 rm -f conftest.$ac_objext conftest$ac_exeext
6996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6997 (eval $ac_link) 2>conftest.er1
6998 ac_status=$?
6999 grep -v '^ *+' conftest.er1 >conftest.err
7000 rm -f conftest.er1
7001 cat conftest.err >&5
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); } &&
7004 { ac_try='test -z "$ac_c_werror_flag"
7005 || test ! -s conftest.err'
7006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7007 (eval $ac_try) 2>&5
7008 ac_status=$?
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); }; } &&
7011 { ac_try='test -s conftest$ac_exeext'
7012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7013 (eval $ac_try) 2>&5
7014 ac_status=$?
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); }; }; then
7017 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7018 else
7019 echo "$as_me: failed program was:" >&5
7020 sed 's/^/| /' conftest.$ac_ext >&5
7022 ac_cv_lib_dnet_stub_dnet_ntoa=no
7024 rm -f conftest.err conftest.$ac_objext \
7025 conftest$ac_exeext conftest.$ac_ext
7026 LIBS=$ac_check_lib_save_LIBS
7028 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7029 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7030 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7031 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7036 rm -f conftest.err conftest.$ac_objext \
7037 conftest$ac_exeext conftest.$ac_ext
7038 LIBS="$ac_xsave_LIBS"
7040 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7041 # to get the SysV transport functions.
7042 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7043 # needs -lnsl.
7044 # The nsl library prevents programs from opening the X display
7045 # on Irix 5.2, according to T.E. Dickey.
7046 # The functions gethostbyname, getservbyname, and inet_addr are
7047 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7048 echo "$as_me:$LINENO: checking for gethostbyname" >&5
7049 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7050 if test "${ac_cv_func_gethostbyname+set}" = set; then
7051 echo $ECHO_N "(cached) $ECHO_C" >&6
7052 else
7053 if test x$gcc_no_link = xyes; then
7054 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7055 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7056 { (exit 1); exit 1; }; }
7058 cat >conftest.$ac_ext <<_ACEOF
7059 /* confdefs.h. */
7060 _ACEOF
7061 cat confdefs.h >>conftest.$ac_ext
7062 cat >>conftest.$ac_ext <<_ACEOF
7063 /* end confdefs.h. */
7064 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
7065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7066 #define gethostbyname innocuous_gethostbyname
7068 /* System header to define __stub macros and hopefully few prototypes,
7069 which can conflict with char gethostbyname (); below.
7070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7071 <limits.h> exists even on freestanding compilers. */
7073 #ifdef __STDC__
7074 # include <limits.h>
7075 #else
7076 # include <assert.h>
7077 #endif
7079 #undef gethostbyname
7081 /* Override any gcc2 internal prototype to avoid an error. */
7082 #ifdef __cplusplus
7083 extern "C"
7085 #endif
7086 /* We use char because int might match the return type of a gcc2
7087 builtin and then its argument prototype would still apply. */
7088 char gethostbyname ();
7089 /* The GNU C library defines this for functions which it implements
7090 to always fail with ENOSYS. Some functions are actually named
7091 something starting with __ and the normal name is an alias. */
7092 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7093 choke me
7094 #else
7095 char (*f) () = gethostbyname;
7096 #endif
7097 #ifdef __cplusplus
7099 #endif
7102 main ()
7104 return f != gethostbyname;
7106 return 0;
7108 _ACEOF
7109 rm -f conftest.$ac_objext conftest$ac_exeext
7110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7111 (eval $ac_link) 2>conftest.er1
7112 ac_status=$?
7113 grep -v '^ *+' conftest.er1 >conftest.err
7114 rm -f conftest.er1
7115 cat conftest.err >&5
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); } &&
7118 { ac_try='test -z "$ac_c_werror_flag"
7119 || test ! -s conftest.err'
7120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7121 (eval $ac_try) 2>&5
7122 ac_status=$?
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); }; } &&
7125 { ac_try='test -s conftest$ac_exeext'
7126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7127 (eval $ac_try) 2>&5
7128 ac_status=$?
7129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130 (exit $ac_status); }; }; then
7131 ac_cv_func_gethostbyname=yes
7132 else
7133 echo "$as_me: failed program was:" >&5
7134 sed 's/^/| /' conftest.$ac_ext >&5
7136 ac_cv_func_gethostbyname=no
7138 rm -f conftest.err conftest.$ac_objext \
7139 conftest$ac_exeext conftest.$ac_ext
7141 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7142 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7144 if test $ac_cv_func_gethostbyname = no; then
7145 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7146 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7147 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7148 echo $ECHO_N "(cached) $ECHO_C" >&6
7149 else
7150 ac_check_lib_save_LIBS=$LIBS
7151 LIBS="-lnsl $LIBS"
7152 if test x$gcc_no_link = xyes; then
7153 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7154 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7155 { (exit 1); exit 1; }; }
7157 cat >conftest.$ac_ext <<_ACEOF
7158 /* confdefs.h. */
7159 _ACEOF
7160 cat confdefs.h >>conftest.$ac_ext
7161 cat >>conftest.$ac_ext <<_ACEOF
7162 /* end confdefs.h. */
7164 /* Override any gcc2 internal prototype to avoid an error. */
7165 #ifdef __cplusplus
7166 extern "C"
7167 #endif
7168 /* We use char because int might match the return type of a gcc2
7169 builtin and then its argument prototype would still apply. */
7170 char gethostbyname ();
7172 main ()
7174 gethostbyname ();
7176 return 0;
7178 _ACEOF
7179 rm -f conftest.$ac_objext conftest$ac_exeext
7180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7181 (eval $ac_link) 2>conftest.er1
7182 ac_status=$?
7183 grep -v '^ *+' conftest.er1 >conftest.err
7184 rm -f conftest.er1
7185 cat conftest.err >&5
7186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187 (exit $ac_status); } &&
7188 { ac_try='test -z "$ac_c_werror_flag"
7189 || test ! -s conftest.err'
7190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7191 (eval $ac_try) 2>&5
7192 ac_status=$?
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); }; } &&
7195 { ac_try='test -s conftest$ac_exeext'
7196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7197 (eval $ac_try) 2>&5
7198 ac_status=$?
7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200 (exit $ac_status); }; }; then
7201 ac_cv_lib_nsl_gethostbyname=yes
7202 else
7203 echo "$as_me: failed program was:" >&5
7204 sed 's/^/| /' conftest.$ac_ext >&5
7206 ac_cv_lib_nsl_gethostbyname=no
7208 rm -f conftest.err conftest.$ac_objext \
7209 conftest$ac_exeext conftest.$ac_ext
7210 LIBS=$ac_check_lib_save_LIBS
7212 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7213 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7214 if test $ac_cv_lib_nsl_gethostbyname = yes; then
7215 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7218 if test $ac_cv_lib_nsl_gethostbyname = no; then
7219 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7220 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
7221 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7222 echo $ECHO_N "(cached) $ECHO_C" >&6
7223 else
7224 ac_check_lib_save_LIBS=$LIBS
7225 LIBS="-lbsd $LIBS"
7226 if test x$gcc_no_link = xyes; then
7227 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7228 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7229 { (exit 1); exit 1; }; }
7231 cat >conftest.$ac_ext <<_ACEOF
7232 /* confdefs.h. */
7233 _ACEOF
7234 cat confdefs.h >>conftest.$ac_ext
7235 cat >>conftest.$ac_ext <<_ACEOF
7236 /* end confdefs.h. */
7238 /* Override any gcc2 internal prototype to avoid an error. */
7239 #ifdef __cplusplus
7240 extern "C"
7241 #endif
7242 /* We use char because int might match the return type of a gcc2
7243 builtin and then its argument prototype would still apply. */
7244 char gethostbyname ();
7246 main ()
7248 gethostbyname ();
7250 return 0;
7252 _ACEOF
7253 rm -f conftest.$ac_objext conftest$ac_exeext
7254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7255 (eval $ac_link) 2>conftest.er1
7256 ac_status=$?
7257 grep -v '^ *+' conftest.er1 >conftest.err
7258 rm -f conftest.er1
7259 cat conftest.err >&5
7260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); } &&
7262 { ac_try='test -z "$ac_c_werror_flag"
7263 || test ! -s conftest.err'
7264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7265 (eval $ac_try) 2>&5
7266 ac_status=$?
7267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268 (exit $ac_status); }; } &&
7269 { ac_try='test -s conftest$ac_exeext'
7270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7271 (eval $ac_try) 2>&5
7272 ac_status=$?
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); }; }; then
7275 ac_cv_lib_bsd_gethostbyname=yes
7276 else
7277 echo "$as_me: failed program was:" >&5
7278 sed 's/^/| /' conftest.$ac_ext >&5
7280 ac_cv_lib_bsd_gethostbyname=no
7282 rm -f conftest.err conftest.$ac_objext \
7283 conftest$ac_exeext conftest.$ac_ext
7284 LIBS=$ac_check_lib_save_LIBS
7286 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7287 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
7288 if test $ac_cv_lib_bsd_gethostbyname = yes; then
7289 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7295 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7296 # socket/setsockopt and other routines are undefined under SCO ODT
7297 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7298 # on later versions), says Simon Leinen: it contains gethostby*
7299 # variants that don't use the name server (or something). -lsocket
7300 # must be given before -lnsl if both are needed. We assume that
7301 # if connect needs -lnsl, so does gethostbyname.
7302 echo "$as_me:$LINENO: checking for connect" >&5
7303 echo $ECHO_N "checking for connect... $ECHO_C" >&6
7304 if test "${ac_cv_func_connect+set}" = set; then
7305 echo $ECHO_N "(cached) $ECHO_C" >&6
7306 else
7307 if test x$gcc_no_link = xyes; then
7308 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7309 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7310 { (exit 1); exit 1; }; }
7312 cat >conftest.$ac_ext <<_ACEOF
7313 /* confdefs.h. */
7314 _ACEOF
7315 cat confdefs.h >>conftest.$ac_ext
7316 cat >>conftest.$ac_ext <<_ACEOF
7317 /* end confdefs.h. */
7318 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7320 #define connect innocuous_connect
7322 /* System header to define __stub macros and hopefully few prototypes,
7323 which can conflict with char connect (); below.
7324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7325 <limits.h> exists even on freestanding compilers. */
7327 #ifdef __STDC__
7328 # include <limits.h>
7329 #else
7330 # include <assert.h>
7331 #endif
7333 #undef connect
7335 /* Override any gcc2 internal prototype to avoid an error. */
7336 #ifdef __cplusplus
7337 extern "C"
7339 #endif
7340 /* We use char because int might match the return type of a gcc2
7341 builtin and then its argument prototype would still apply. */
7342 char connect ();
7343 /* The GNU C library defines this for functions which it implements
7344 to always fail with ENOSYS. Some functions are actually named
7345 something starting with __ and the normal name is an alias. */
7346 #if defined (__stub_connect) || defined (__stub___connect)
7347 choke me
7348 #else
7349 char (*f) () = connect;
7350 #endif
7351 #ifdef __cplusplus
7353 #endif
7356 main ()
7358 return f != connect;
7360 return 0;
7362 _ACEOF
7363 rm -f conftest.$ac_objext conftest$ac_exeext
7364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7365 (eval $ac_link) 2>conftest.er1
7366 ac_status=$?
7367 grep -v '^ *+' conftest.er1 >conftest.err
7368 rm -f conftest.er1
7369 cat conftest.err >&5
7370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371 (exit $ac_status); } &&
7372 { ac_try='test -z "$ac_c_werror_flag"
7373 || test ! -s conftest.err'
7374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7375 (eval $ac_try) 2>&5
7376 ac_status=$?
7377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378 (exit $ac_status); }; } &&
7379 { ac_try='test -s conftest$ac_exeext'
7380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7381 (eval $ac_try) 2>&5
7382 ac_status=$?
7383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384 (exit $ac_status); }; }; then
7385 ac_cv_func_connect=yes
7386 else
7387 echo "$as_me: failed program was:" >&5
7388 sed 's/^/| /' conftest.$ac_ext >&5
7390 ac_cv_func_connect=no
7392 rm -f conftest.err conftest.$ac_objext \
7393 conftest$ac_exeext conftest.$ac_ext
7395 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7396 echo "${ECHO_T}$ac_cv_func_connect" >&6
7398 if test $ac_cv_func_connect = no; then
7399 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7400 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
7401 if test "${ac_cv_lib_socket_connect+set}" = set; then
7402 echo $ECHO_N "(cached) $ECHO_C" >&6
7403 else
7404 ac_check_lib_save_LIBS=$LIBS
7405 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7406 if test x$gcc_no_link = xyes; then
7407 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7408 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7409 { (exit 1); exit 1; }; }
7411 cat >conftest.$ac_ext <<_ACEOF
7412 /* confdefs.h. */
7413 _ACEOF
7414 cat confdefs.h >>conftest.$ac_ext
7415 cat >>conftest.$ac_ext <<_ACEOF
7416 /* end confdefs.h. */
7418 /* Override any gcc2 internal prototype to avoid an error. */
7419 #ifdef __cplusplus
7420 extern "C"
7421 #endif
7422 /* We use char because int might match the return type of a gcc2
7423 builtin and then its argument prototype would still apply. */
7424 char connect ();
7426 main ()
7428 connect ();
7430 return 0;
7432 _ACEOF
7433 rm -f conftest.$ac_objext conftest$ac_exeext
7434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7435 (eval $ac_link) 2>conftest.er1
7436 ac_status=$?
7437 grep -v '^ *+' conftest.er1 >conftest.err
7438 rm -f conftest.er1
7439 cat conftest.err >&5
7440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441 (exit $ac_status); } &&
7442 { ac_try='test -z "$ac_c_werror_flag"
7443 || test ! -s conftest.err'
7444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7445 (eval $ac_try) 2>&5
7446 ac_status=$?
7447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); }; } &&
7449 { ac_try='test -s conftest$ac_exeext'
7450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7451 (eval $ac_try) 2>&5
7452 ac_status=$?
7453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454 (exit $ac_status); }; }; then
7455 ac_cv_lib_socket_connect=yes
7456 else
7457 echo "$as_me: failed program was:" >&5
7458 sed 's/^/| /' conftest.$ac_ext >&5
7460 ac_cv_lib_socket_connect=no
7462 rm -f conftest.err conftest.$ac_objext \
7463 conftest$ac_exeext conftest.$ac_ext
7464 LIBS=$ac_check_lib_save_LIBS
7466 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7467 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
7468 if test $ac_cv_lib_socket_connect = yes; then
7469 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7474 # Guillermo Gomez says -lposix is necessary on A/UX.
7475 echo "$as_me:$LINENO: checking for remove" >&5
7476 echo $ECHO_N "checking for remove... $ECHO_C" >&6
7477 if test "${ac_cv_func_remove+set}" = set; then
7478 echo $ECHO_N "(cached) $ECHO_C" >&6
7479 else
7480 if test x$gcc_no_link = xyes; then
7481 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7482 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7483 { (exit 1); exit 1; }; }
7485 cat >conftest.$ac_ext <<_ACEOF
7486 /* confdefs.h. */
7487 _ACEOF
7488 cat confdefs.h >>conftest.$ac_ext
7489 cat >>conftest.$ac_ext <<_ACEOF
7490 /* end confdefs.h. */
7491 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7493 #define remove innocuous_remove
7495 /* System header to define __stub macros and hopefully few prototypes,
7496 which can conflict with char remove (); below.
7497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7498 <limits.h> exists even on freestanding compilers. */
7500 #ifdef __STDC__
7501 # include <limits.h>
7502 #else
7503 # include <assert.h>
7504 #endif
7506 #undef remove
7508 /* Override any gcc2 internal prototype to avoid an error. */
7509 #ifdef __cplusplus
7510 extern "C"
7512 #endif
7513 /* We use char because int might match the return type of a gcc2
7514 builtin and then its argument prototype would still apply. */
7515 char remove ();
7516 /* The GNU C library defines this for functions which it implements
7517 to always fail with ENOSYS. Some functions are actually named
7518 something starting with __ and the normal name is an alias. */
7519 #if defined (__stub_remove) || defined (__stub___remove)
7520 choke me
7521 #else
7522 char (*f) () = remove;
7523 #endif
7524 #ifdef __cplusplus
7526 #endif
7529 main ()
7531 return f != remove;
7533 return 0;
7535 _ACEOF
7536 rm -f conftest.$ac_objext conftest$ac_exeext
7537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7538 (eval $ac_link) 2>conftest.er1
7539 ac_status=$?
7540 grep -v '^ *+' conftest.er1 >conftest.err
7541 rm -f conftest.er1
7542 cat conftest.err >&5
7543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544 (exit $ac_status); } &&
7545 { ac_try='test -z "$ac_c_werror_flag"
7546 || test ! -s conftest.err'
7547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7548 (eval $ac_try) 2>&5
7549 ac_status=$?
7550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 (exit $ac_status); }; } &&
7552 { ac_try='test -s conftest$ac_exeext'
7553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7554 (eval $ac_try) 2>&5
7555 ac_status=$?
7556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557 (exit $ac_status); }; }; then
7558 ac_cv_func_remove=yes
7559 else
7560 echo "$as_me: failed program was:" >&5
7561 sed 's/^/| /' conftest.$ac_ext >&5
7563 ac_cv_func_remove=no
7565 rm -f conftest.err conftest.$ac_objext \
7566 conftest$ac_exeext conftest.$ac_ext
7568 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7569 echo "${ECHO_T}$ac_cv_func_remove" >&6
7571 if test $ac_cv_func_remove = no; then
7572 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7573 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
7574 if test "${ac_cv_lib_posix_remove+set}" = set; then
7575 echo $ECHO_N "(cached) $ECHO_C" >&6
7576 else
7577 ac_check_lib_save_LIBS=$LIBS
7578 LIBS="-lposix $LIBS"
7579 if test x$gcc_no_link = xyes; then
7580 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7581 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7582 { (exit 1); exit 1; }; }
7584 cat >conftest.$ac_ext <<_ACEOF
7585 /* confdefs.h. */
7586 _ACEOF
7587 cat confdefs.h >>conftest.$ac_ext
7588 cat >>conftest.$ac_ext <<_ACEOF
7589 /* end confdefs.h. */
7591 /* Override any gcc2 internal prototype to avoid an error. */
7592 #ifdef __cplusplus
7593 extern "C"
7594 #endif
7595 /* We use char because int might match the return type of a gcc2
7596 builtin and then its argument prototype would still apply. */
7597 char remove ();
7599 main ()
7601 remove ();
7603 return 0;
7605 _ACEOF
7606 rm -f conftest.$ac_objext conftest$ac_exeext
7607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7608 (eval $ac_link) 2>conftest.er1
7609 ac_status=$?
7610 grep -v '^ *+' conftest.er1 >conftest.err
7611 rm -f conftest.er1
7612 cat conftest.err >&5
7613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614 (exit $ac_status); } &&
7615 { ac_try='test -z "$ac_c_werror_flag"
7616 || test ! -s conftest.err'
7617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7618 (eval $ac_try) 2>&5
7619 ac_status=$?
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); }; } &&
7622 { ac_try='test -s conftest$ac_exeext'
7623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7624 (eval $ac_try) 2>&5
7625 ac_status=$?
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); }; }; then
7628 ac_cv_lib_posix_remove=yes
7629 else
7630 echo "$as_me: failed program was:" >&5
7631 sed 's/^/| /' conftest.$ac_ext >&5
7633 ac_cv_lib_posix_remove=no
7635 rm -f conftest.err conftest.$ac_objext \
7636 conftest$ac_exeext conftest.$ac_ext
7637 LIBS=$ac_check_lib_save_LIBS
7639 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7640 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
7641 if test $ac_cv_lib_posix_remove = yes; then
7642 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7647 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7648 echo "$as_me:$LINENO: checking for shmat" >&5
7649 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
7650 if test "${ac_cv_func_shmat+set}" = set; then
7651 echo $ECHO_N "(cached) $ECHO_C" >&6
7652 else
7653 if test x$gcc_no_link = xyes; then
7654 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7655 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7656 { (exit 1); exit 1; }; }
7658 cat >conftest.$ac_ext <<_ACEOF
7659 /* confdefs.h. */
7660 _ACEOF
7661 cat confdefs.h >>conftest.$ac_ext
7662 cat >>conftest.$ac_ext <<_ACEOF
7663 /* end confdefs.h. */
7664 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7666 #define shmat innocuous_shmat
7668 /* System header to define __stub macros and hopefully few prototypes,
7669 which can conflict with char shmat (); below.
7670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7671 <limits.h> exists even on freestanding compilers. */
7673 #ifdef __STDC__
7674 # include <limits.h>
7675 #else
7676 # include <assert.h>
7677 #endif
7679 #undef shmat
7681 /* Override any gcc2 internal prototype to avoid an error. */
7682 #ifdef __cplusplus
7683 extern "C"
7685 #endif
7686 /* We use char because int might match the return type of a gcc2
7687 builtin and then its argument prototype would still apply. */
7688 char shmat ();
7689 /* The GNU C library defines this for functions which it implements
7690 to always fail with ENOSYS. Some functions are actually named
7691 something starting with __ and the normal name is an alias. */
7692 #if defined (__stub_shmat) || defined (__stub___shmat)
7693 choke me
7694 #else
7695 char (*f) () = shmat;
7696 #endif
7697 #ifdef __cplusplus
7699 #endif
7702 main ()
7704 return f != shmat;
7706 return 0;
7708 _ACEOF
7709 rm -f conftest.$ac_objext conftest$ac_exeext
7710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7711 (eval $ac_link) 2>conftest.er1
7712 ac_status=$?
7713 grep -v '^ *+' conftest.er1 >conftest.err
7714 rm -f conftest.er1
7715 cat conftest.err >&5
7716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717 (exit $ac_status); } &&
7718 { ac_try='test -z "$ac_c_werror_flag"
7719 || test ! -s conftest.err'
7720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7721 (eval $ac_try) 2>&5
7722 ac_status=$?
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); }; } &&
7725 { ac_try='test -s conftest$ac_exeext'
7726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7727 (eval $ac_try) 2>&5
7728 ac_status=$?
7729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730 (exit $ac_status); }; }; then
7731 ac_cv_func_shmat=yes
7732 else
7733 echo "$as_me: failed program was:" >&5
7734 sed 's/^/| /' conftest.$ac_ext >&5
7736 ac_cv_func_shmat=no
7738 rm -f conftest.err conftest.$ac_objext \
7739 conftest$ac_exeext conftest.$ac_ext
7741 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7742 echo "${ECHO_T}$ac_cv_func_shmat" >&6
7744 if test $ac_cv_func_shmat = no; then
7745 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7746 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
7747 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7748 echo $ECHO_N "(cached) $ECHO_C" >&6
7749 else
7750 ac_check_lib_save_LIBS=$LIBS
7751 LIBS="-lipc $LIBS"
7752 if test x$gcc_no_link = xyes; then
7753 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7754 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7755 { (exit 1); exit 1; }; }
7757 cat >conftest.$ac_ext <<_ACEOF
7758 /* confdefs.h. */
7759 _ACEOF
7760 cat confdefs.h >>conftest.$ac_ext
7761 cat >>conftest.$ac_ext <<_ACEOF
7762 /* end confdefs.h. */
7764 /* Override any gcc2 internal prototype to avoid an error. */
7765 #ifdef __cplusplus
7766 extern "C"
7767 #endif
7768 /* We use char because int might match the return type of a gcc2
7769 builtin and then its argument prototype would still apply. */
7770 char shmat ();
7772 main ()
7774 shmat ();
7776 return 0;
7778 _ACEOF
7779 rm -f conftest.$ac_objext conftest$ac_exeext
7780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7781 (eval $ac_link) 2>conftest.er1
7782 ac_status=$?
7783 grep -v '^ *+' conftest.er1 >conftest.err
7784 rm -f conftest.er1
7785 cat conftest.err >&5
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); } &&
7788 { ac_try='test -z "$ac_c_werror_flag"
7789 || test ! -s conftest.err'
7790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7791 (eval $ac_try) 2>&5
7792 ac_status=$?
7793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7794 (exit $ac_status); }; } &&
7795 { ac_try='test -s conftest$ac_exeext'
7796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7797 (eval $ac_try) 2>&5
7798 ac_status=$?
7799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800 (exit $ac_status); }; }; then
7801 ac_cv_lib_ipc_shmat=yes
7802 else
7803 echo "$as_me: failed program was:" >&5
7804 sed 's/^/| /' conftest.$ac_ext >&5
7806 ac_cv_lib_ipc_shmat=no
7808 rm -f conftest.err conftest.$ac_objext \
7809 conftest$ac_exeext conftest.$ac_ext
7810 LIBS=$ac_check_lib_save_LIBS
7812 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7813 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
7814 if test $ac_cv_lib_ipc_shmat = yes; then
7815 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7821 # Check for libraries that X11R6 Xt/Xaw programs need.
7822 ac_save_LDFLAGS=$LDFLAGS
7823 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7824 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7825 # check for ICE first), but we must link in the order -lSM -lICE or
7826 # we get undefined symbols. So assume we have SM if we have ICE.
7827 # These have to be linked with before -lX11, unlike the other
7828 # libraries we check for below, so use a different variable.
7829 # John Interrante, Karl Berry
7830 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7831 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
7832 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7833 echo $ECHO_N "(cached) $ECHO_C" >&6
7834 else
7835 ac_check_lib_save_LIBS=$LIBS
7836 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7837 if test x$gcc_no_link = xyes; then
7838 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7839 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7840 { (exit 1); exit 1; }; }
7842 cat >conftest.$ac_ext <<_ACEOF
7843 /* confdefs.h. */
7844 _ACEOF
7845 cat confdefs.h >>conftest.$ac_ext
7846 cat >>conftest.$ac_ext <<_ACEOF
7847 /* end confdefs.h. */
7849 /* Override any gcc2 internal prototype to avoid an error. */
7850 #ifdef __cplusplus
7851 extern "C"
7852 #endif
7853 /* We use char because int might match the return type of a gcc2
7854 builtin and then its argument prototype would still apply. */
7855 char IceConnectionNumber ();
7857 main ()
7859 IceConnectionNumber ();
7861 return 0;
7863 _ACEOF
7864 rm -f conftest.$ac_objext conftest$ac_exeext
7865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7866 (eval $ac_link) 2>conftest.er1
7867 ac_status=$?
7868 grep -v '^ *+' conftest.er1 >conftest.err
7869 rm -f conftest.er1
7870 cat conftest.err >&5
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); } &&
7873 { ac_try='test -z "$ac_c_werror_flag"
7874 || test ! -s conftest.err'
7875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7876 (eval $ac_try) 2>&5
7877 ac_status=$?
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); }; } &&
7880 { ac_try='test -s conftest$ac_exeext'
7881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7882 (eval $ac_try) 2>&5
7883 ac_status=$?
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); }; }; then
7886 ac_cv_lib_ICE_IceConnectionNumber=yes
7887 else
7888 echo "$as_me: failed program was:" >&5
7889 sed 's/^/| /' conftest.$ac_ext >&5
7891 ac_cv_lib_ICE_IceConnectionNumber=no
7893 rm -f conftest.err conftest.$ac_objext \
7894 conftest$ac_exeext conftest.$ac_ext
7895 LIBS=$ac_check_lib_save_LIBS
7897 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7898 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
7899 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7900 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7903 LDFLAGS=$ac_save_LDFLAGS
7908 # Determine which AWT peer libraries to build
7909 # Check whether --enable-java-awt or --disable-java-awt was given.
7910 if test "${enable_java_awt+set}" = set; then
7911 enableval="$enable_java_awt"
7915 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
7916 use_xlib_awt=""
7917 use_gtk_awt=""
7918 # The default toolkit to use is the first one specified.
7919 TOOLKIT=
7922 for peer in $peerlibs ; do
7923 case $peer in
7924 xlib)
7925 if test "$no_x" = yes; then
7926 echo "*** xlib peers requested but no X library available" 1>&2
7927 exit 1
7928 else
7929 use_xlib_awt="yes"
7930 if test -z "$TOOLKIT"; then
7931 TOOLKIT=gnu.awt.xlib.XToolkit
7935 gtk)
7936 if test "$no_x" = yes; then
7937 echo "*** xlib peers requested but no X library available" 1>&2
7938 exit 1
7939 else
7940 use_gtk_awt=yes
7941 if test -z "$TOOLKIT"; then
7942 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
7944 test -d jniinclude || mkdir jniinclude
7948 use_xlib_awt=
7949 use_gtk_awt=
7950 break
7953 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
7954 exit 1
7955 esac
7956 done
7960 if test "$use_xlib_awt" = yes; then
7961 XLIB_AWT_TRUE=
7962 XLIB_AWT_FALSE='#'
7963 else
7964 XLIB_AWT_TRUE='#'
7965 XLIB_AWT_FALSE=
7970 if test "$use_gtk_awt" = yes; then
7971 GTK_AWT_TRUE=
7972 GTK_AWT_FALSE='#'
7973 else
7974 GTK_AWT_TRUE='#'
7975 GTK_AWT_FALSE=
7979 # determine whether to enable the cairo GTK Graphics2D backend
7980 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
7981 if test "${enable_gtk_cairo+set}" = set; then
7982 enableval="$enable_gtk_cairo"
7987 if test "x${enable_gtk_cairo}" = xyes; then
7988 GTK_CAIRO_TRUE=
7989 GTK_CAIRO_FALSE='#'
7990 else
7991 GTK_CAIRO_TRUE='#'
7992 GTK_CAIRO_FALSE=
7995 if test "x${enable_gtk_cairo}" = xyes
7996 then
7998 succeeded=no
8000 if test -z "$PKG_CONFIG"; then
8001 # Extract the first word of "pkg-config", so it can be a program name with args.
8002 set dummy pkg-config; ac_word=$2
8003 echo "$as_me:$LINENO: checking for $ac_word" >&5
8004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8005 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8006 echo $ECHO_N "(cached) $ECHO_C" >&6
8007 else
8008 case $PKG_CONFIG in
8009 [\\/]* | ?:[\\/]*)
8010 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8014 for as_dir in $PATH
8016 IFS=$as_save_IFS
8017 test -z "$as_dir" && as_dir=.
8018 for ac_exec_ext in '' $ac_executable_extensions; do
8019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8020 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8022 break 2
8024 done
8025 done
8027 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8029 esac
8031 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8033 if test -n "$PKG_CONFIG"; then
8034 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8035 echo "${ECHO_T}$PKG_CONFIG" >&6
8036 else
8037 echo "$as_me:$LINENO: result: no" >&5
8038 echo "${ECHO_T}no" >&6
8043 if test "$PKG_CONFIG" = "no" ; then
8044 echo "*** The pkg-config script could not be found. Make sure it is"
8045 echo "*** in your path, or set the PKG_CONFIG environment variable"
8046 echo "*** to the full path to pkg-config."
8047 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8048 else
8049 PKG_CONFIG_MIN_VERSION=0.9.0
8050 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8051 echo "$as_me:$LINENO: checking for cairo" >&5
8052 echo $ECHO_N "checking for cairo... $ECHO_C" >&6
8054 if $PKG_CONFIG --exists "cairo" ; then
8055 echo "$as_me:$LINENO: result: yes" >&5
8056 echo "${ECHO_T}yes" >&6
8057 succeeded=yes
8059 echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
8060 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
8061 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo"`
8062 echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
8063 echo "${ECHO_T}$CAIRO_CFLAGS" >&6
8065 echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
8066 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
8067 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo"`
8068 echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
8069 echo "${ECHO_T}$CAIRO_LIBS" >&6
8070 else
8071 CAIRO_CFLAGS=""
8072 CAIRO_LIBS=""
8073 ## If we have a custom action on failure, don't print errors, but
8074 ## do set a variable so people can do so.
8075 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
8076 echo $CAIRO_PKG_ERRORS
8081 else
8082 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8083 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8087 if test $succeeded = yes; then
8089 else
8090 { { echo "$as_me:$LINENO: error: Library requirements (cairo) 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
8091 echo "$as_me: error: Library requirements (cairo) 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;}
8092 { (exit 1); exit 1; }; }
8096 succeeded=no
8098 if test -z "$PKG_CONFIG"; then
8099 # Extract the first word of "pkg-config", so it can be a program name with args.
8100 set dummy pkg-config; ac_word=$2
8101 echo "$as_me:$LINENO: checking for $ac_word" >&5
8102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8103 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8104 echo $ECHO_N "(cached) $ECHO_C" >&6
8105 else
8106 case $PKG_CONFIG in
8107 [\\/]* | ?:[\\/]*)
8108 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8112 for as_dir in $PATH
8114 IFS=$as_save_IFS
8115 test -z "$as_dir" && as_dir=.
8116 for ac_exec_ext in '' $ac_executable_extensions; do
8117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8118 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8120 break 2
8122 done
8123 done
8125 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8127 esac
8129 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8131 if test -n "$PKG_CONFIG"; then
8132 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8133 echo "${ECHO_T}$PKG_CONFIG" >&6
8134 else
8135 echo "$as_me:$LINENO: result: no" >&5
8136 echo "${ECHO_T}no" >&6
8141 if test "$PKG_CONFIG" = "no" ; then
8142 echo "*** The pkg-config script could not be found. Make sure it is"
8143 echo "*** in your path, or set the PKG_CONFIG environment variable"
8144 echo "*** to the full path to pkg-config."
8145 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8146 else
8147 PKG_CONFIG_MIN_VERSION=0.9.0
8148 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8149 echo "$as_me:$LINENO: checking for pangoft2" >&5
8150 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
8152 if $PKG_CONFIG --exists "pangoft2" ; then
8153 echo "$as_me:$LINENO: result: yes" >&5
8154 echo "${ECHO_T}yes" >&6
8155 succeeded=yes
8157 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
8158 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
8159 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
8160 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
8161 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
8163 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
8164 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
8165 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
8166 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
8167 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
8168 else
8169 PANGOFT2_CFLAGS=""
8170 PANGOFT2_LIBS=""
8171 ## If we have a custom action on failure, don't print errors, but
8172 ## do set a variable so people can do so.
8173 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
8174 echo $PANGOFT2_PKG_ERRORS
8179 else
8180 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8181 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8185 if test $succeeded = yes; then
8187 else
8188 { { echo "$as_me:$LINENO: error: Library requirements (pangoft2) 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
8189 echo "$as_me: error: Library requirements (pangoft2) 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;}
8190 { (exit 1); exit 1; }; }
8199 # FIXME: this should be _libs on some hosts.
8200 libsubdir=.libs
8202 # Allow the GC to be disabled. Can be useful when debugging.
8203 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
8204 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
8205 # Check whether --enable-java-gc or --disable-java-gc was given.
8206 if test "${enable_java_gc+set}" = set; then
8207 enableval="$enable_java_gc"
8208 GC=$enableval
8209 else
8210 GC=boehm
8212 GCLIBS=
8213 GCINCS=
8214 GCDEPS=
8215 GCSPEC=
8216 JC1GCSPEC=
8217 GCTESTSPEC=
8218 case "$GC" in
8219 boehm)
8220 echo "$as_me:$LINENO: result: boehm" >&5
8221 echo "${ECHO_T}boehm" >&6
8222 GCLIBS=../boehm-gc/libgcjgc_convenience.la
8223 JC1GCSPEC='-fuse-boehm-gc'
8224 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
8225 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
8226 GCOBJS=boehm.lo
8227 GCHDR=boehm-gc.h
8228 # The POSIX thread support needs to know this.
8230 cat >>confdefs.h <<\_ACEOF
8231 #define HAVE_BOEHM_GC 1
8232 _ACEOF
8236 echo "$as_me:$LINENO: result: none" >&5
8237 echo "${ECHO_T}none" >&6
8238 GCHDR=no-gc.h
8241 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
8242 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
8243 { (exit 1); exit 1; }; }
8245 esac
8252 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
8256 if test "$GC" = boehm; then
8257 USING_BOEHMGC_TRUE=
8258 USING_BOEHMGC_FALSE='#'
8259 else
8260 USING_BOEHMGC_TRUE='#'
8261 USING_BOEHMGC_FALSE=
8266 if test "$GC" = no; then
8267 USING_NOGC_TRUE=
8268 USING_NOGC_FALSE='#'
8269 else
8270 USING_NOGC_TRUE='#'
8271 USING_NOGC_FALSE=
8276 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
8277 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
8278 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
8279 echo "$as_me:$LINENO: result: $THREADS" >&5
8280 echo "${ECHO_T}$THREADS" >&6
8282 case "$THREADS" in
8283 no | none | single)
8284 THREADS=none
8286 posix | pthreads)
8287 THREADS=posix
8288 case "$host" in
8289 *-*-linux*)
8291 cat >>confdefs.h <<\_ACEOF
8292 #define LINUX_THREADS 1
8293 _ACEOF
8296 esac
8298 win32)
8300 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
8301 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
8302 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
8303 { (exit 1); exit 1; }; }
8306 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
8307 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
8308 { (exit 1); exit 1; }; }
8310 esac
8312 THREADCXXFLAGS=
8313 THREADLDFLAGS=
8314 THREADLIBS=
8315 THREADINCS=
8316 THREADDEPS=
8317 THREADH=
8318 THREADSPEC=
8319 case "$THREADS" in
8320 posix)
8321 case "$host" in
8322 *-*-cygwin*)
8323 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
8325 *-*-freebsd[1234]*)
8326 # Before FreeBSD 5, it didn't have -lpthread (or any library which
8327 # merely adds pthread_* functions) but it does have a -pthread switch
8328 # which is required at link-time to select -lc_r *instead* of -lc.
8329 THREADLDFLAGS=-pthread
8330 # Don't set THREADSPEC here as might be expected since -pthread is
8331 # not processed when found within a spec file, it must come from
8332 # the command line. For now, the user must provide the -pthread
8333 # switch to link code compiled with gcj. In future, consider adding
8334 # support for weak references to pthread_* functions ala gthr.h API.
8335 THREADSPEC='%{!pthread: %eUnder this configuration, the user must provide -pthread when linking.}'
8337 *-*-freebsd*)
8338 # FreeBSD 5 implements a model much closer to other modern UNIX
8339 # which support threads. However, it still does not support
8340 # -lpthread.
8341 THREADLDFLAGS=-pthread
8342 THREADSPEC=-lc_r
8344 alpha*-dec-osf*)
8345 THREADCXXFLAGS=-pthread
8346 # boehm-gc needs some functions from librt, so link that too.
8347 THREADLIBS='-lpthread -lrt'
8348 THREADSPEC='-lpthread -lrt'
8351 THREADLIBS=-lpthread
8352 THREADSPEC=-lpthread
8354 esac
8355 THREADH=posix-threads.h
8356 # MIT pthreads doesn't seem to have the mutexattr functions.
8357 # But for now we don't check for it. We just assume you aren't
8358 # using MIT pthreads.
8360 cat >>confdefs.h <<\_ACEOF
8361 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8362 _ACEOF
8365 # If we're using the Boehm GC, then we happen to know that it
8366 # defines _REENTRANT, so we don't bother. Eww.
8367 if test "$GC" != boehm; then
8369 cat >>confdefs.h <<\_ACEOF
8370 #define _REENTRANT 1
8371 _ACEOF
8375 cat >>confdefs.h <<\_ACEOF
8376 #define _POSIX_PTHREAD_SEMANTICS 1
8377 _ACEOF
8381 win32)
8382 THREADH=win32-threads.h
8385 none)
8386 THREADH=no-threads.h
8388 esac
8389 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
8399 if test "$THREADS" = posix; then
8400 USING_POSIX_THREADS_TRUE=
8401 USING_POSIX_THREADS_FALSE='#'
8402 else
8403 USING_POSIX_THREADS_TRUE='#'
8404 USING_POSIX_THREADS_FALSE=
8409 if test "$THREADS" = win32; then
8410 USING_WIN32_THREADS_TRUE=
8411 USING_WIN32_THREADS_FALSE='#'
8412 else
8413 USING_WIN32_THREADS_TRUE='#'
8414 USING_WIN32_THREADS_FALSE=
8419 if test "$THREADS" = none; then
8420 USING_NO_THREADS_TRUE=
8421 USING_NO_THREADS_FALSE='#'
8422 else
8423 USING_NO_THREADS_TRUE='#'
8424 USING_NO_THREADS_FALSE=
8428 if test -d sysdep; then true; else mkdir sysdep; fi
8429 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
8432 HASH_SYNC_SPEC=
8433 # Hash synchronization is only useful with posix threads right now.
8434 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
8435 HASH_SYNC_SPEC=-fhash-synchronization
8437 cat >>confdefs.h <<\_ACEOF
8438 #define JV_HASH_SYNCHRONIZATION 1
8439 _ACEOF
8447 if test "$GCC" = yes; then
8448 USING_GCC_TRUE=
8449 USING_GCC_FALSE='#'
8450 else
8451 USING_GCC_TRUE='#'
8452 USING_GCC_FALSE=
8456 # We're in the tree with gcc, and need to include some of its headers.
8457 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
8459 # Figure out where generated headers like libgcj-config.h get installed.
8460 gcc_version_trigger=${libgcj_basedir}/../gcc/version.c
8461 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
8462 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
8463 tool_include_dir='$(libdir)/gcc/$(target_noncanonical)/'${gcc_version}/include
8467 if test "x${with_newlib}" = "xyes"; then
8468 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
8469 # may not work correctly, because the compiler may not be able to
8470 # link executables.
8472 # We assume newlib. This lets us hard-code the functions we know
8473 # we'll have.
8475 cat >>confdefs.h <<\_ACEOF
8476 #define HAVE_MEMMOVE 1
8477 _ACEOF
8480 cat >>confdefs.h <<\_ACEOF
8481 #define HAVE_MEMCPY 1
8482 _ACEOF
8485 cat >>confdefs.h <<\_ACEOF
8486 #define HAVE_STRERROR 1
8487 _ACEOF
8490 cat >>confdefs.h <<\_ACEOF
8491 #define HAVE_TIME 1
8492 _ACEOF
8495 cat >>confdefs.h <<\_ACEOF
8496 #define HAVE_GMTIME_R 1
8497 _ACEOF
8500 cat >>confdefs.h <<\_ACEOF
8501 #define HAVE_LOCALTIME_R 1
8502 _ACEOF
8505 cat >>confdefs.h <<\_ACEOF
8506 #define HAVE_USLEEP_DECL 1
8507 _ACEOF
8509 # This is only for POSIX threads.
8511 cat >>confdefs.h <<\_ACEOF
8512 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8513 _ACEOF
8515 # We also assume we are using gcc, which provides alloca.
8516 cat >>confdefs.h <<\_ACEOF
8517 #define HAVE_ALLOCA 1
8518 _ACEOF
8521 # Assume we do not have getuid and friends.
8523 cat >>confdefs.h <<\_ACEOF
8524 #define NO_GETUID 1
8525 _ACEOF
8527 PLATFORMNET=NoNet
8528 else
8537 for ac_func in strerror ioctl select fstat open fsync sleep opendir
8539 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8540 echo "$as_me:$LINENO: checking for $ac_func" >&5
8541 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8542 if eval "test \"\${$as_ac_var+set}\" = set"; then
8543 echo $ECHO_N "(cached) $ECHO_C" >&6
8544 else
8545 if test x$gcc_no_link = xyes; then
8546 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8547 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8548 { (exit 1); exit 1; }; }
8550 cat >conftest.$ac_ext <<_ACEOF
8551 /* confdefs.h. */
8552 _ACEOF
8553 cat confdefs.h >>conftest.$ac_ext
8554 cat >>conftest.$ac_ext <<_ACEOF
8555 /* end confdefs.h. */
8556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8558 #define $ac_func innocuous_$ac_func
8560 /* System header to define __stub macros and hopefully few prototypes,
8561 which can conflict with char $ac_func (); below.
8562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8563 <limits.h> exists even on freestanding compilers. */
8565 #ifdef __STDC__
8566 # include <limits.h>
8567 #else
8568 # include <assert.h>
8569 #endif
8571 #undef $ac_func
8573 /* Override any gcc2 internal prototype to avoid an error. */
8574 #ifdef __cplusplus
8575 extern "C"
8577 #endif
8578 /* We use char because int might match the return type of a gcc2
8579 builtin and then its argument prototype would still apply. */
8580 char $ac_func ();
8581 /* The GNU C library defines this for functions which it implements
8582 to always fail with ENOSYS. Some functions are actually named
8583 something starting with __ and the normal name is an alias. */
8584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8585 choke me
8586 #else
8587 char (*f) () = $ac_func;
8588 #endif
8589 #ifdef __cplusplus
8591 #endif
8594 main ()
8596 return f != $ac_func;
8598 return 0;
8600 _ACEOF
8601 rm -f conftest.$ac_objext conftest$ac_exeext
8602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8603 (eval $ac_link) 2>conftest.er1
8604 ac_status=$?
8605 grep -v '^ *+' conftest.er1 >conftest.err
8606 rm -f conftest.er1
8607 cat conftest.err >&5
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); } &&
8610 { ac_try='test -z "$ac_c_werror_flag"
8611 || test ! -s conftest.err'
8612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8613 (eval $ac_try) 2>&5
8614 ac_status=$?
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); }; } &&
8617 { ac_try='test -s conftest$ac_exeext'
8618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8619 (eval $ac_try) 2>&5
8620 ac_status=$?
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); }; }; then
8623 eval "$as_ac_var=yes"
8624 else
8625 echo "$as_me: failed program was:" >&5
8626 sed 's/^/| /' conftest.$ac_ext >&5
8628 eval "$as_ac_var=no"
8630 rm -f conftest.err conftest.$ac_objext \
8631 conftest$ac_exeext conftest.$ac_ext
8633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8634 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8635 if test `eval echo '${'$as_ac_var'}'` = yes; then
8636 cat >>confdefs.h <<_ACEOF
8637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8638 _ACEOF
8641 done
8648 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
8650 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8651 echo "$as_me:$LINENO: checking for $ac_func" >&5
8652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8653 if eval "test \"\${$as_ac_var+set}\" = set"; then
8654 echo $ECHO_N "(cached) $ECHO_C" >&6
8655 else
8656 if test x$gcc_no_link = xyes; then
8657 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8658 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8659 { (exit 1); exit 1; }; }
8661 cat >conftest.$ac_ext <<_ACEOF
8662 /* confdefs.h. */
8663 _ACEOF
8664 cat confdefs.h >>conftest.$ac_ext
8665 cat >>conftest.$ac_ext <<_ACEOF
8666 /* end confdefs.h. */
8667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8669 #define $ac_func innocuous_$ac_func
8671 /* System header to define __stub macros and hopefully few prototypes,
8672 which can conflict with char $ac_func (); below.
8673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8674 <limits.h> exists even on freestanding compilers. */
8676 #ifdef __STDC__
8677 # include <limits.h>
8678 #else
8679 # include <assert.h>
8680 #endif
8682 #undef $ac_func
8684 /* Override any gcc2 internal prototype to avoid an error. */
8685 #ifdef __cplusplus
8686 extern "C"
8688 #endif
8689 /* We use char because int might match the return type of a gcc2
8690 builtin and then its argument prototype would still apply. */
8691 char $ac_func ();
8692 /* The GNU C library defines this for functions which it implements
8693 to always fail with ENOSYS. Some functions are actually named
8694 something starting with __ and the normal name is an alias. */
8695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8696 choke me
8697 #else
8698 char (*f) () = $ac_func;
8699 #endif
8700 #ifdef __cplusplus
8702 #endif
8705 main ()
8707 return f != $ac_func;
8709 return 0;
8711 _ACEOF
8712 rm -f conftest.$ac_objext conftest$ac_exeext
8713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8714 (eval $ac_link) 2>conftest.er1
8715 ac_status=$?
8716 grep -v '^ *+' conftest.er1 >conftest.err
8717 rm -f conftest.er1
8718 cat conftest.err >&5
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); } &&
8721 { ac_try='test -z "$ac_c_werror_flag"
8722 || test ! -s conftest.err'
8723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8724 (eval $ac_try) 2>&5
8725 ac_status=$?
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); }; } &&
8728 { ac_try='test -s conftest$ac_exeext'
8729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8730 (eval $ac_try) 2>&5
8731 ac_status=$?
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); }; }; then
8734 eval "$as_ac_var=yes"
8735 else
8736 echo "$as_me: failed program was:" >&5
8737 sed 's/^/| /' conftest.$ac_ext >&5
8739 eval "$as_ac_var=no"
8741 rm -f conftest.err conftest.$ac_objext \
8742 conftest$ac_exeext conftest.$ac_ext
8744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8745 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8746 if test `eval echo '${'$as_ac_var'}'` = yes; then
8747 cat >>confdefs.h <<_ACEOF
8748 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8749 _ACEOF
8752 done
8763 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
8765 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8766 echo "$as_me:$LINENO: checking for $ac_func" >&5
8767 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8768 if eval "test \"\${$as_ac_var+set}\" = set"; then
8769 echo $ECHO_N "(cached) $ECHO_C" >&6
8770 else
8771 if test x$gcc_no_link = xyes; then
8772 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8773 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8774 { (exit 1); exit 1; }; }
8776 cat >conftest.$ac_ext <<_ACEOF
8777 /* confdefs.h. */
8778 _ACEOF
8779 cat confdefs.h >>conftest.$ac_ext
8780 cat >>conftest.$ac_ext <<_ACEOF
8781 /* end confdefs.h. */
8782 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8784 #define $ac_func innocuous_$ac_func
8786 /* System header to define __stub macros and hopefully few prototypes,
8787 which can conflict with char $ac_func (); below.
8788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8789 <limits.h> exists even on freestanding compilers. */
8791 #ifdef __STDC__
8792 # include <limits.h>
8793 #else
8794 # include <assert.h>
8795 #endif
8797 #undef $ac_func
8799 /* Override any gcc2 internal prototype to avoid an error. */
8800 #ifdef __cplusplus
8801 extern "C"
8803 #endif
8804 /* We use char because int might match the return type of a gcc2
8805 builtin and then its argument prototype would still apply. */
8806 char $ac_func ();
8807 /* The GNU C library defines this for functions which it implements
8808 to always fail with ENOSYS. Some functions are actually named
8809 something starting with __ and the normal name is an alias. */
8810 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8811 choke me
8812 #else
8813 char (*f) () = $ac_func;
8814 #endif
8815 #ifdef __cplusplus
8817 #endif
8820 main ()
8822 return f != $ac_func;
8824 return 0;
8826 _ACEOF
8827 rm -f conftest.$ac_objext conftest$ac_exeext
8828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8829 (eval $ac_link) 2>conftest.er1
8830 ac_status=$?
8831 grep -v '^ *+' conftest.er1 >conftest.err
8832 rm -f conftest.er1
8833 cat conftest.err >&5
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); } &&
8836 { ac_try='test -z "$ac_c_werror_flag"
8837 || test ! -s conftest.err'
8838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8839 (eval $ac_try) 2>&5
8840 ac_status=$?
8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 (exit $ac_status); }; } &&
8843 { ac_try='test -s conftest$ac_exeext'
8844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8845 (eval $ac_try) 2>&5
8846 ac_status=$?
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); }; }; then
8849 eval "$as_ac_var=yes"
8850 else
8851 echo "$as_me: failed program was:" >&5
8852 sed 's/^/| /' conftest.$ac_ext >&5
8854 eval "$as_ac_var=no"
8856 rm -f conftest.err conftest.$ac_objext \
8857 conftest$ac_exeext conftest.$ac_ext
8859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8860 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8861 if test `eval echo '${'$as_ac_var'}'` = yes; then
8862 cat >>confdefs.h <<_ACEOF
8863 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8864 _ACEOF
8867 done
8871 for ac_func in nl_langinfo setlocale
8873 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8874 echo "$as_me:$LINENO: checking for $ac_func" >&5
8875 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8876 if eval "test \"\${$as_ac_var+set}\" = set"; then
8877 echo $ECHO_N "(cached) $ECHO_C" >&6
8878 else
8879 if test x$gcc_no_link = xyes; then
8880 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8881 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8882 { (exit 1); exit 1; }; }
8884 cat >conftest.$ac_ext <<_ACEOF
8885 /* confdefs.h. */
8886 _ACEOF
8887 cat confdefs.h >>conftest.$ac_ext
8888 cat >>conftest.$ac_ext <<_ACEOF
8889 /* end confdefs.h. */
8890 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8892 #define $ac_func innocuous_$ac_func
8894 /* System header to define __stub macros and hopefully few prototypes,
8895 which can conflict with char $ac_func (); below.
8896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8897 <limits.h> exists even on freestanding compilers. */
8899 #ifdef __STDC__
8900 # include <limits.h>
8901 #else
8902 # include <assert.h>
8903 #endif
8905 #undef $ac_func
8907 /* Override any gcc2 internal prototype to avoid an error. */
8908 #ifdef __cplusplus
8909 extern "C"
8911 #endif
8912 /* We use char because int might match the return type of a gcc2
8913 builtin and then its argument prototype would still apply. */
8914 char $ac_func ();
8915 /* The GNU C library defines this for functions which it implements
8916 to always fail with ENOSYS. Some functions are actually named
8917 something starting with __ and the normal name is an alias. */
8918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8919 choke me
8920 #else
8921 char (*f) () = $ac_func;
8922 #endif
8923 #ifdef __cplusplus
8925 #endif
8928 main ()
8930 return f != $ac_func;
8932 return 0;
8934 _ACEOF
8935 rm -f conftest.$ac_objext conftest$ac_exeext
8936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8937 (eval $ac_link) 2>conftest.er1
8938 ac_status=$?
8939 grep -v '^ *+' conftest.er1 >conftest.err
8940 rm -f conftest.er1
8941 cat conftest.err >&5
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); } &&
8944 { ac_try='test -z "$ac_c_werror_flag"
8945 || test ! -s conftest.err'
8946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8947 (eval $ac_try) 2>&5
8948 ac_status=$?
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); }; } &&
8951 { ac_try='test -s conftest$ac_exeext'
8952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8953 (eval $ac_try) 2>&5
8954 ac_status=$?
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); }; }; then
8957 eval "$as_ac_var=yes"
8958 else
8959 echo "$as_me: failed program was:" >&5
8960 sed 's/^/| /' conftest.$ac_ext >&5
8962 eval "$as_ac_var=no"
8964 rm -f conftest.err conftest.$ac_objext \
8965 conftest$ac_exeext conftest.$ac_ext
8967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8968 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8969 if test `eval echo '${'$as_ac_var'}'` = yes; then
8970 cat >>confdefs.h <<_ACEOF
8971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8972 _ACEOF
8975 done
8979 for ac_func in inet_aton inet_addr
8981 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8982 echo "$as_me:$LINENO: checking for $ac_func" >&5
8983 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8984 if eval "test \"\${$as_ac_var+set}\" = set"; then
8985 echo $ECHO_N "(cached) $ECHO_C" >&6
8986 else
8987 if test x$gcc_no_link = xyes; then
8988 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8989 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8990 { (exit 1); exit 1; }; }
8992 cat >conftest.$ac_ext <<_ACEOF
8993 /* confdefs.h. */
8994 _ACEOF
8995 cat confdefs.h >>conftest.$ac_ext
8996 cat >>conftest.$ac_ext <<_ACEOF
8997 /* end confdefs.h. */
8998 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9000 #define $ac_func innocuous_$ac_func
9002 /* System header to define __stub macros and hopefully few prototypes,
9003 which can conflict with char $ac_func (); below.
9004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9005 <limits.h> exists even on freestanding compilers. */
9007 #ifdef __STDC__
9008 # include <limits.h>
9009 #else
9010 # include <assert.h>
9011 #endif
9013 #undef $ac_func
9015 /* Override any gcc2 internal prototype to avoid an error. */
9016 #ifdef __cplusplus
9017 extern "C"
9019 #endif
9020 /* We use char because int might match the return type of a gcc2
9021 builtin and then its argument prototype would still apply. */
9022 char $ac_func ();
9023 /* The GNU C library defines this for functions which it implements
9024 to always fail with ENOSYS. Some functions are actually named
9025 something starting with __ and the normal name is an alias. */
9026 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9027 choke me
9028 #else
9029 char (*f) () = $ac_func;
9030 #endif
9031 #ifdef __cplusplus
9033 #endif
9036 main ()
9038 return f != $ac_func;
9040 return 0;
9042 _ACEOF
9043 rm -f conftest.$ac_objext conftest$ac_exeext
9044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9045 (eval $ac_link) 2>conftest.er1
9046 ac_status=$?
9047 grep -v '^ *+' conftest.er1 >conftest.err
9048 rm -f conftest.er1
9049 cat conftest.err >&5
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); } &&
9052 { ac_try='test -z "$ac_c_werror_flag"
9053 || test ! -s conftest.err'
9054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9055 (eval $ac_try) 2>&5
9056 ac_status=$?
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); }; } &&
9059 { ac_try='test -s conftest$ac_exeext'
9060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9061 (eval $ac_try) 2>&5
9062 ac_status=$?
9063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064 (exit $ac_status); }; }; then
9065 eval "$as_ac_var=yes"
9066 else
9067 echo "$as_me: failed program was:" >&5
9068 sed 's/^/| /' conftest.$ac_ext >&5
9070 eval "$as_ac_var=no"
9072 rm -f conftest.err conftest.$ac_objext \
9073 conftest$ac_exeext conftest.$ac_ext
9075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9076 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9077 if test `eval echo '${'$as_ac_var'}'` = yes; then
9078 cat >>confdefs.h <<_ACEOF
9079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9080 _ACEOF
9081 break
9083 done
9088 for ac_func in inet_pton uname inet_ntoa
9090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9091 echo "$as_me:$LINENO: checking for $ac_func" >&5
9092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9093 if eval "test \"\${$as_ac_var+set}\" = set"; then
9094 echo $ECHO_N "(cached) $ECHO_C" >&6
9095 else
9096 if test x$gcc_no_link = xyes; then
9097 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9098 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9099 { (exit 1); exit 1; }; }
9101 cat >conftest.$ac_ext <<_ACEOF
9102 /* confdefs.h. */
9103 _ACEOF
9104 cat confdefs.h >>conftest.$ac_ext
9105 cat >>conftest.$ac_ext <<_ACEOF
9106 /* end confdefs.h. */
9107 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9109 #define $ac_func innocuous_$ac_func
9111 /* System header to define __stub macros and hopefully few prototypes,
9112 which can conflict with char $ac_func (); below.
9113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9114 <limits.h> exists even on freestanding compilers. */
9116 #ifdef __STDC__
9117 # include <limits.h>
9118 #else
9119 # include <assert.h>
9120 #endif
9122 #undef $ac_func
9124 /* Override any gcc2 internal prototype to avoid an error. */
9125 #ifdef __cplusplus
9126 extern "C"
9128 #endif
9129 /* We use char because int might match the return type of a gcc2
9130 builtin and then its argument prototype would still apply. */
9131 char $ac_func ();
9132 /* The GNU C library defines this for functions which it implements
9133 to always fail with ENOSYS. Some functions are actually named
9134 something starting with __ and the normal name is an alias. */
9135 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9136 choke me
9137 #else
9138 char (*f) () = $ac_func;
9139 #endif
9140 #ifdef __cplusplus
9142 #endif
9145 main ()
9147 return f != $ac_func;
9149 return 0;
9151 _ACEOF
9152 rm -f conftest.$ac_objext conftest$ac_exeext
9153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9154 (eval $ac_link) 2>conftest.er1
9155 ac_status=$?
9156 grep -v '^ *+' conftest.er1 >conftest.err
9157 rm -f conftest.er1
9158 cat conftest.err >&5
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); } &&
9161 { ac_try='test -z "$ac_c_werror_flag"
9162 || test ! -s conftest.err'
9163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9164 (eval $ac_try) 2>&5
9165 ac_status=$?
9166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167 (exit $ac_status); }; } &&
9168 { ac_try='test -s conftest$ac_exeext'
9169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9170 (eval $ac_try) 2>&5
9171 ac_status=$?
9172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173 (exit $ac_status); }; }; then
9174 eval "$as_ac_var=yes"
9175 else
9176 echo "$as_me: failed program was:" >&5
9177 sed 's/^/| /' conftest.$ac_ext >&5
9179 eval "$as_ac_var=no"
9181 rm -f conftest.err conftest.$ac_objext \
9182 conftest$ac_exeext conftest.$ac_ext
9184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9185 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9186 if test `eval echo '${'$as_ac_var'}'` = yes; then
9187 cat >>confdefs.h <<_ACEOF
9188 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9189 _ACEOF
9192 done
9199 for ac_func in fork execvp pipe sigaction ftruncate
9201 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9202 echo "$as_me:$LINENO: checking for $ac_func" >&5
9203 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9204 if eval "test \"\${$as_ac_var+set}\" = set"; then
9205 echo $ECHO_N "(cached) $ECHO_C" >&6
9206 else
9207 if test x$gcc_no_link = xyes; then
9208 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9209 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9210 { (exit 1); exit 1; }; }
9212 cat >conftest.$ac_ext <<_ACEOF
9213 /* confdefs.h. */
9214 _ACEOF
9215 cat confdefs.h >>conftest.$ac_ext
9216 cat >>conftest.$ac_ext <<_ACEOF
9217 /* end confdefs.h. */
9218 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9219 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9220 #define $ac_func innocuous_$ac_func
9222 /* System header to define __stub macros and hopefully few prototypes,
9223 which can conflict with char $ac_func (); below.
9224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9225 <limits.h> exists even on freestanding compilers. */
9227 #ifdef __STDC__
9228 # include <limits.h>
9229 #else
9230 # include <assert.h>
9231 #endif
9233 #undef $ac_func
9235 /* Override any gcc2 internal prototype to avoid an error. */
9236 #ifdef __cplusplus
9237 extern "C"
9239 #endif
9240 /* We use char because int might match the return type of a gcc2
9241 builtin and then its argument prototype would still apply. */
9242 char $ac_func ();
9243 /* The GNU C library defines this for functions which it implements
9244 to always fail with ENOSYS. Some functions are actually named
9245 something starting with __ and the normal name is an alias. */
9246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9247 choke me
9248 #else
9249 char (*f) () = $ac_func;
9250 #endif
9251 #ifdef __cplusplus
9253 #endif
9256 main ()
9258 return f != $ac_func;
9260 return 0;
9262 _ACEOF
9263 rm -f conftest.$ac_objext conftest$ac_exeext
9264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9265 (eval $ac_link) 2>conftest.er1
9266 ac_status=$?
9267 grep -v '^ *+' conftest.er1 >conftest.err
9268 rm -f conftest.er1
9269 cat conftest.err >&5
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); } &&
9272 { ac_try='test -z "$ac_c_werror_flag"
9273 || test ! -s conftest.err'
9274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9275 (eval $ac_try) 2>&5
9276 ac_status=$?
9277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278 (exit $ac_status); }; } &&
9279 { ac_try='test -s conftest$ac_exeext'
9280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9281 (eval $ac_try) 2>&5
9282 ac_status=$?
9283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284 (exit $ac_status); }; }; then
9285 eval "$as_ac_var=yes"
9286 else
9287 echo "$as_me: failed program was:" >&5
9288 sed 's/^/| /' conftest.$ac_ext >&5
9290 eval "$as_ac_var=no"
9292 rm -f conftest.err conftest.$ac_objext \
9293 conftest$ac_exeext conftest.$ac_ext
9295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9296 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9297 if test `eval echo '${'$as_ac_var'}'` = yes; then
9298 cat >>confdefs.h <<_ACEOF
9299 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9300 _ACEOF
9303 done
9305 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9306 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9307 if test "${ac_cv_header_stdc+set}" = set; then
9308 echo $ECHO_N "(cached) $ECHO_C" >&6
9309 else
9310 cat >conftest.$ac_ext <<_ACEOF
9311 /* confdefs.h. */
9312 _ACEOF
9313 cat confdefs.h >>conftest.$ac_ext
9314 cat >>conftest.$ac_ext <<_ACEOF
9315 /* end confdefs.h. */
9316 #include <stdlib.h>
9317 #include <stdarg.h>
9318 #include <string.h>
9319 #include <float.h>
9322 main ()
9326 return 0;
9328 _ACEOF
9329 rm -f conftest.$ac_objext
9330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9331 (eval $ac_compile) 2>conftest.er1
9332 ac_status=$?
9333 grep -v '^ *+' conftest.er1 >conftest.err
9334 rm -f conftest.er1
9335 cat conftest.err >&5
9336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337 (exit $ac_status); } &&
9338 { ac_try='test -z "$ac_c_werror_flag"
9339 || test ! -s conftest.err'
9340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9341 (eval $ac_try) 2>&5
9342 ac_status=$?
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); }; } &&
9345 { ac_try='test -s conftest.$ac_objext'
9346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9347 (eval $ac_try) 2>&5
9348 ac_status=$?
9349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350 (exit $ac_status); }; }; then
9351 ac_cv_header_stdc=yes
9352 else
9353 echo "$as_me: failed program was:" >&5
9354 sed 's/^/| /' conftest.$ac_ext >&5
9356 ac_cv_header_stdc=no
9358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9360 if test $ac_cv_header_stdc = yes; then
9361 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9362 cat >conftest.$ac_ext <<_ACEOF
9363 /* confdefs.h. */
9364 _ACEOF
9365 cat confdefs.h >>conftest.$ac_ext
9366 cat >>conftest.$ac_ext <<_ACEOF
9367 /* end confdefs.h. */
9368 #include <string.h>
9370 _ACEOF
9371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9372 $EGREP "memchr" >/dev/null 2>&1; then
9374 else
9375 ac_cv_header_stdc=no
9377 rm -f conftest*
9381 if test $ac_cv_header_stdc = yes; then
9382 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9383 cat >conftest.$ac_ext <<_ACEOF
9384 /* confdefs.h. */
9385 _ACEOF
9386 cat confdefs.h >>conftest.$ac_ext
9387 cat >>conftest.$ac_ext <<_ACEOF
9388 /* end confdefs.h. */
9389 #include <stdlib.h>
9391 _ACEOF
9392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9393 $EGREP "free" >/dev/null 2>&1; then
9395 else
9396 ac_cv_header_stdc=no
9398 rm -f conftest*
9402 if test $ac_cv_header_stdc = yes; then
9403 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9404 if test "$cross_compiling" = yes; then
9406 else
9407 cat >conftest.$ac_ext <<_ACEOF
9408 /* confdefs.h. */
9409 _ACEOF
9410 cat confdefs.h >>conftest.$ac_ext
9411 cat >>conftest.$ac_ext <<_ACEOF
9412 /* end confdefs.h. */
9413 #include <ctype.h>
9414 #if ((' ' & 0x0FF) == 0x020)
9415 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9416 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9417 #else
9418 # define ISLOWER(c) \
9419 (('a' <= (c) && (c) <= 'i') \
9420 || ('j' <= (c) && (c) <= 'r') \
9421 || ('s' <= (c) && (c) <= 'z'))
9422 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9423 #endif
9425 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9427 main ()
9429 int i;
9430 for (i = 0; i < 256; i++)
9431 if (XOR (islower (i), ISLOWER (i))
9432 || toupper (i) != TOUPPER (i))
9433 exit(2);
9434 exit (0);
9436 _ACEOF
9437 rm -f conftest$ac_exeext
9438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9439 (eval $ac_link) 2>&5
9440 ac_status=$?
9441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9444 (eval $ac_try) 2>&5
9445 ac_status=$?
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 (exit $ac_status); }; }; then
9449 else
9450 echo "$as_me: program exited with status $ac_status" >&5
9451 echo "$as_me: failed program was:" >&5
9452 sed 's/^/| /' conftest.$ac_ext >&5
9454 ( exit $ac_status )
9455 ac_cv_header_stdc=no
9457 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9461 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9462 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9463 if test $ac_cv_header_stdc = yes; then
9465 cat >>confdefs.h <<\_ACEOF
9466 #define STDC_HEADERS 1
9467 _ACEOF
9471 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9481 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9482 inttypes.h stdint.h unistd.h
9484 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9485 echo "$as_me:$LINENO: checking for $ac_header" >&5
9486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9488 echo $ECHO_N "(cached) $ECHO_C" >&6
9489 else
9490 cat >conftest.$ac_ext <<_ACEOF
9491 /* confdefs.h. */
9492 _ACEOF
9493 cat confdefs.h >>conftest.$ac_ext
9494 cat >>conftest.$ac_ext <<_ACEOF
9495 /* end confdefs.h. */
9496 $ac_includes_default
9498 #include <$ac_header>
9499 _ACEOF
9500 rm -f conftest.$ac_objext
9501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9502 (eval $ac_compile) 2>conftest.er1
9503 ac_status=$?
9504 grep -v '^ *+' conftest.er1 >conftest.err
9505 rm -f conftest.er1
9506 cat conftest.err >&5
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); } &&
9509 { ac_try='test -z "$ac_c_werror_flag"
9510 || test ! -s conftest.err'
9511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9512 (eval $ac_try) 2>&5
9513 ac_status=$?
9514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515 (exit $ac_status); }; } &&
9516 { ac_try='test -s conftest.$ac_objext'
9517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9518 (eval $ac_try) 2>&5
9519 ac_status=$?
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); }; }; then
9522 eval "$as_ac_Header=yes"
9523 else
9524 echo "$as_me: failed program was:" >&5
9525 sed 's/^/| /' conftest.$ac_ext >&5
9527 eval "$as_ac_Header=no"
9529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9532 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9533 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9534 cat >>confdefs.h <<_ACEOF
9535 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9536 _ACEOF
9540 done
9546 for ac_header in execinfo.h unistd.h dlfcn.h
9548 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9550 echo "$as_me:$LINENO: checking for $ac_header" >&5
9551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9553 echo $ECHO_N "(cached) $ECHO_C" >&6
9555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9556 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9557 else
9558 # Is the header compilable?
9559 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9560 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9561 cat >conftest.$ac_ext <<_ACEOF
9562 /* confdefs.h. */
9563 _ACEOF
9564 cat confdefs.h >>conftest.$ac_ext
9565 cat >>conftest.$ac_ext <<_ACEOF
9566 /* end confdefs.h. */
9567 $ac_includes_default
9568 #include <$ac_header>
9569 _ACEOF
9570 rm -f conftest.$ac_objext
9571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9572 (eval $ac_compile) 2>conftest.er1
9573 ac_status=$?
9574 grep -v '^ *+' conftest.er1 >conftest.err
9575 rm -f conftest.er1
9576 cat conftest.err >&5
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); } &&
9579 { ac_try='test -z "$ac_c_werror_flag"
9580 || test ! -s conftest.err'
9581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9582 (eval $ac_try) 2>&5
9583 ac_status=$?
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); }; } &&
9586 { ac_try='test -s conftest.$ac_objext'
9587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9588 (eval $ac_try) 2>&5
9589 ac_status=$?
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); }; }; then
9592 ac_header_compiler=yes
9593 else
9594 echo "$as_me: failed program was:" >&5
9595 sed 's/^/| /' conftest.$ac_ext >&5
9597 ac_header_compiler=no
9599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9600 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9601 echo "${ECHO_T}$ac_header_compiler" >&6
9603 # Is the header present?
9604 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9605 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9606 cat >conftest.$ac_ext <<_ACEOF
9607 /* confdefs.h. */
9608 _ACEOF
9609 cat confdefs.h >>conftest.$ac_ext
9610 cat >>conftest.$ac_ext <<_ACEOF
9611 /* end confdefs.h. */
9612 #include <$ac_header>
9613 _ACEOF
9614 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9615 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9616 ac_status=$?
9617 grep -v '^ *+' conftest.er1 >conftest.err
9618 rm -f conftest.er1
9619 cat conftest.err >&5
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); } >/dev/null; then
9622 if test -s conftest.err; then
9623 ac_cpp_err=$ac_c_preproc_warn_flag
9624 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9625 else
9626 ac_cpp_err=
9628 else
9629 ac_cpp_err=yes
9631 if test -z "$ac_cpp_err"; then
9632 ac_header_preproc=yes
9633 else
9634 echo "$as_me: failed program was:" >&5
9635 sed 's/^/| /' conftest.$ac_ext >&5
9637 ac_header_preproc=no
9639 rm -f conftest.err conftest.$ac_ext
9640 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9641 echo "${ECHO_T}$ac_header_preproc" >&6
9643 # So? What about this header?
9644 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9645 yes:no: )
9646 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9647 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9649 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9650 ac_header_preproc=yes
9652 no:yes:* )
9653 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9654 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9655 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9656 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9657 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9658 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9659 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9660 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9662 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9663 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9664 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9666 cat <<\_ASBOX
9667 ## ---------------------------------- ##
9668 ## Report this to the libjava lists. ##
9669 ## ---------------------------------- ##
9670 _ASBOX
9672 sed "s/^/$as_me: WARNING: /" >&2
9674 esac
9675 echo "$as_me:$LINENO: checking for $ac_header" >&5
9676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9677 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9678 echo $ECHO_N "(cached) $ECHO_C" >&6
9679 else
9680 eval "$as_ac_Header=\$ac_header_preproc"
9682 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9683 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9686 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9687 cat >>confdefs.h <<_ACEOF
9688 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9689 _ACEOF
9693 done
9695 echo "$as_me:$LINENO: checking for backtrace" >&5
9696 echo $ECHO_N "checking for backtrace... $ECHO_C" >&6
9697 if test "${ac_cv_func_backtrace+set}" = set; then
9698 echo $ECHO_N "(cached) $ECHO_C" >&6
9699 else
9700 if test x$gcc_no_link = xyes; then
9701 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9702 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9703 { (exit 1); exit 1; }; }
9705 cat >conftest.$ac_ext <<_ACEOF
9706 /* confdefs.h. */
9707 _ACEOF
9708 cat confdefs.h >>conftest.$ac_ext
9709 cat >>conftest.$ac_ext <<_ACEOF
9710 /* end confdefs.h. */
9711 /* Define backtrace to an innocuous variant, in case <limits.h> declares backtrace.
9712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9713 #define backtrace innocuous_backtrace
9715 /* System header to define __stub macros and hopefully few prototypes,
9716 which can conflict with char backtrace (); below.
9717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9718 <limits.h> exists even on freestanding compilers. */
9720 #ifdef __STDC__
9721 # include <limits.h>
9722 #else
9723 # include <assert.h>
9724 #endif
9726 #undef backtrace
9728 /* Override any gcc2 internal prototype to avoid an error. */
9729 #ifdef __cplusplus
9730 extern "C"
9732 #endif
9733 /* We use char because int might match the return type of a gcc2
9734 builtin and then its argument prototype would still apply. */
9735 char backtrace ();
9736 /* The GNU C library defines this for functions which it implements
9737 to always fail with ENOSYS. Some functions are actually named
9738 something starting with __ and the normal name is an alias. */
9739 #if defined (__stub_backtrace) || defined (__stub___backtrace)
9740 choke me
9741 #else
9742 char (*f) () = backtrace;
9743 #endif
9744 #ifdef __cplusplus
9746 #endif
9749 main ()
9751 return f != backtrace;
9753 return 0;
9755 _ACEOF
9756 rm -f conftest.$ac_objext conftest$ac_exeext
9757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9758 (eval $ac_link) 2>conftest.er1
9759 ac_status=$?
9760 grep -v '^ *+' conftest.er1 >conftest.err
9761 rm -f conftest.er1
9762 cat conftest.err >&5
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); } &&
9765 { ac_try='test -z "$ac_c_werror_flag"
9766 || test ! -s conftest.err'
9767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9768 (eval $ac_try) 2>&5
9769 ac_status=$?
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); }; } &&
9772 { ac_try='test -s conftest$ac_exeext'
9773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9774 (eval $ac_try) 2>&5
9775 ac_status=$?
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); }; }; then
9778 ac_cv_func_backtrace=yes
9779 else
9780 echo "$as_me: failed program was:" >&5
9781 sed 's/^/| /' conftest.$ac_ext >&5
9783 ac_cv_func_backtrace=no
9785 rm -f conftest.err conftest.$ac_objext \
9786 conftest$ac_exeext conftest.$ac_ext
9788 echo "$as_me:$LINENO: result: $ac_cv_func_backtrace" >&5
9789 echo "${ECHO_T}$ac_cv_func_backtrace" >&6
9790 if test $ac_cv_func_backtrace = yes; then
9792 case "$host" in
9793 ia64-*-linux*)
9794 # Has broken backtrace()
9796 mips*-*-linux*)
9797 # Has broken backtrace(), but we supply our own.
9798 if test -d sysdep; then true; else mkdir -p sysdep; fi
9799 supply_backtrace=yes
9801 cat >>confdefs.h <<\_ACEOF
9802 #define HAVE_BACKTRACE 1
9803 _ACEOF
9808 cat >>confdefs.h <<\_ACEOF
9809 #define HAVE_BACKTRACE 1
9810 _ACEOF
9813 esac
9815 else
9817 case "$host" in
9818 *mingw*)
9819 # Has backtrace() defined in libgcj itself
9821 cat >>confdefs.h <<\_ACEOF
9822 #define HAVE_BACKTRACE 1
9823 _ACEOF
9826 esac
9831 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
9832 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
9833 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
9834 echo $ECHO_N "(cached) $ECHO_C" >&6
9835 else
9836 ac_check_lib_save_LIBS=$LIBS
9837 LIBS="-ldl $LIBS"
9838 if test x$gcc_no_link = xyes; then
9839 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9840 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9841 { (exit 1); exit 1; }; }
9843 cat >conftest.$ac_ext <<_ACEOF
9844 /* confdefs.h. */
9845 _ACEOF
9846 cat confdefs.h >>conftest.$ac_ext
9847 cat >>conftest.$ac_ext <<_ACEOF
9848 /* end confdefs.h. */
9850 /* Override any gcc2 internal prototype to avoid an error. */
9851 #ifdef __cplusplus
9852 extern "C"
9853 #endif
9854 /* We use char because int might match the return type of a gcc2
9855 builtin and then its argument prototype would still apply. */
9856 char dladdr ();
9858 main ()
9860 dladdr ();
9862 return 0;
9864 _ACEOF
9865 rm -f conftest.$ac_objext conftest$ac_exeext
9866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9867 (eval $ac_link) 2>conftest.er1
9868 ac_status=$?
9869 grep -v '^ *+' conftest.er1 >conftest.err
9870 rm -f conftest.er1
9871 cat conftest.err >&5
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); } &&
9874 { ac_try='test -z "$ac_c_werror_flag"
9875 || test ! -s conftest.err'
9876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9877 (eval $ac_try) 2>&5
9878 ac_status=$?
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); }; } &&
9881 { ac_try='test -s conftest$ac_exeext'
9882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9883 (eval $ac_try) 2>&5
9884 ac_status=$?
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); }; }; then
9887 ac_cv_lib_dl_dladdr=yes
9888 else
9889 echo "$as_me: failed program was:" >&5
9890 sed 's/^/| /' conftest.$ac_ext >&5
9892 ac_cv_lib_dl_dladdr=no
9894 rm -f conftest.err conftest.$ac_objext \
9895 conftest$ac_exeext conftest.$ac_ext
9896 LIBS=$ac_check_lib_save_LIBS
9898 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
9899 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
9900 if test $ac_cv_lib_dl_dladdr = yes; then
9902 if test "x${disable_dladdr}" = "xyes"; then
9903 #Broken dladdr().
9904 true
9905 else
9907 cat >>confdefs.h <<\_ACEOF
9908 #define HAVE_DLADDR 1
9909 _ACEOF
9915 if test x"$build" = x"$host"; then
9916 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
9917 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
9918 if test "${ac_cv_file__proc_self_exe+set}" = set; then
9919 echo $ECHO_N "(cached) $ECHO_C" >&6
9920 else
9921 test "$cross_compiling" = yes &&
9922 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
9923 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9924 { (exit 1); exit 1; }; }
9925 if test -r "/proc/self/exe"; then
9926 ac_cv_file__proc_self_exe=yes
9927 else
9928 ac_cv_file__proc_self_exe=no
9931 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
9932 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
9933 if test $ac_cv_file__proc_self_exe = yes; then
9935 cat >>confdefs.h <<_ACEOF
9936 #define HAVE__PROC_SELF_EXE 1
9937 _ACEOF
9941 cat >>confdefs.h <<\_ACEOF
9942 #define HAVE_PROC_SELF_EXE 1
9943 _ACEOF
9947 else
9948 case $host in
9949 *-linux*)
9951 cat >>confdefs.h <<\_ACEOF
9952 #define HAVE_PROC_SELF_EXE 1
9953 _ACEOF
9956 esac
9960 if test "X$prefix" = "XNONE"; then
9961 acl_final_prefix="$ac_default_prefix"
9962 else
9963 acl_final_prefix="$prefix"
9965 if test "X$exec_prefix" = "XNONE"; then
9966 acl_final_exec_prefix='${prefix}'
9967 else
9968 acl_final_exec_prefix="$exec_prefix"
9970 acl_save_prefix="$prefix"
9971 prefix="$acl_final_prefix"
9972 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9973 prefix="$acl_save_prefix"
9976 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9977 if test "${with_gnu_ld+set}" = set; then
9978 withval="$with_gnu_ld"
9979 test "$withval" = no || with_gnu_ld=yes
9980 else
9981 with_gnu_ld=no
9983 # Prepare PATH_SEPARATOR.
9984 # The user is always right.
9985 if test "${PATH_SEPARATOR+set}" != set; then
9986 echo "#! /bin/sh" >conf$$.sh
9987 echo "exit 0" >>conf$$.sh
9988 chmod +x conf$$.sh
9989 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9990 PATH_SEPARATOR=';'
9991 else
9992 PATH_SEPARATOR=:
9994 rm -f conf$$.sh
9996 ac_prog=ld
9997 if test "$GCC" = yes; then
9998 # Check if gcc -print-prog-name=ld gives a path.
9999 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10000 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10001 case $host in
10002 *-*-mingw*)
10003 # gcc leaves a trailing carriage return which upsets mingw
10004 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10006 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10007 esac
10008 case $ac_prog in
10009 # Accept absolute paths.
10010 [\\/]* | [A-Za-z]:[\\/]*)
10011 re_direlt='/[^/][^/]*/\.\./'
10012 # Canonicalize the path of ld
10013 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10014 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10015 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10016 done
10017 test -z "$LD" && LD="$ac_prog"
10020 # If it fails, then pretend we aren't using GCC.
10021 ac_prog=ld
10024 # If it is relative, then search for the first ld in PATH.
10025 with_gnu_ld=unknown
10027 esac
10028 elif test "$with_gnu_ld" = yes; then
10029 echo "$as_me:$LINENO: checking for GNU ld" >&5
10030 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10031 else
10032 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10033 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10035 if test "${acl_cv_path_LD+set}" = set; then
10036 echo $ECHO_N "(cached) $ECHO_C" >&6
10037 else
10038 if test -z "$LD"; then
10039 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10040 for ac_dir in $PATH; do
10041 test -z "$ac_dir" && ac_dir=.
10042 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10043 acl_cv_path_LD="$ac_dir/$ac_prog"
10044 # Check to see if the program is GNU ld. I'd rather use --version,
10045 # but apparently some GNU ld's only accept -v.
10046 # Break only if it was the GNU/non-GNU ld that we prefer.
10047 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10048 test "$with_gnu_ld" != no && break
10049 else
10050 test "$with_gnu_ld" != yes && break
10053 done
10054 IFS="$ac_save_ifs"
10055 else
10056 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10060 LD="$acl_cv_path_LD"
10061 if test -n "$LD"; then
10062 echo "$as_me:$LINENO: result: $LD" >&5
10063 echo "${ECHO_T}$LD" >&6
10064 else
10065 echo "$as_me:$LINENO: result: no" >&5
10066 echo "${ECHO_T}no" >&6
10068 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10069 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10070 { (exit 1); exit 1; }; }
10071 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10072 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10073 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10074 echo $ECHO_N "(cached) $ECHO_C" >&6
10075 else
10076 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10077 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10078 acl_cv_prog_gnu_ld=yes
10079 else
10080 acl_cv_prog_gnu_ld=no
10083 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10084 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10085 with_gnu_ld=$acl_cv_prog_gnu_ld
10089 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10090 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10091 if test "${acl_cv_rpath+set}" = set; then
10092 echo $ECHO_N "(cached) $ECHO_C" >&6
10093 else
10095 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10096 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10097 . ./conftest.sh
10098 rm -f ./conftest.sh
10099 acl_cv_rpath=done
10102 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10103 echo "${ECHO_T}$acl_cv_rpath" >&6
10104 wl="$acl_cv_wl"
10105 libext="$acl_cv_libext"
10106 shlibext="$acl_cv_shlibext"
10107 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10108 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10109 hardcode_direct="$acl_cv_hardcode_direct"
10110 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10111 # Check whether --enable-rpath or --disable-rpath was given.
10112 if test "${enable_rpath+set}" = set; then
10113 enableval="$enable_rpath"
10115 else
10116 enable_rpath=yes
10125 use_additional=yes
10127 acl_save_prefix="$prefix"
10128 prefix="$acl_final_prefix"
10129 acl_save_exec_prefix="$exec_prefix"
10130 exec_prefix="$acl_final_exec_prefix"
10132 eval additional_includedir=\"$includedir\"
10133 eval additional_libdir=\"$libdir\"
10135 exec_prefix="$acl_save_exec_prefix"
10136 prefix="$acl_save_prefix"
10139 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10140 if test "${with_libiconv_prefix+set}" = set; then
10141 withval="$with_libiconv_prefix"
10143 if test "X$withval" = "Xno"; then
10144 use_additional=no
10145 else
10146 if test "X$withval" = "X"; then
10148 acl_save_prefix="$prefix"
10149 prefix="$acl_final_prefix"
10150 acl_save_exec_prefix="$exec_prefix"
10151 exec_prefix="$acl_final_exec_prefix"
10153 eval additional_includedir=\"$includedir\"
10154 eval additional_libdir=\"$libdir\"
10156 exec_prefix="$acl_save_exec_prefix"
10157 prefix="$acl_save_prefix"
10159 else
10160 additional_includedir="$withval/include"
10161 additional_libdir="$withval/lib"
10166 LIBICONV=
10167 LTLIBICONV=
10168 INCICONV=
10169 rpathdirs=
10170 ltrpathdirs=
10171 names_already_handled=
10172 names_next_round='iconv '
10173 while test -n "$names_next_round"; do
10174 names_this_round="$names_next_round"
10175 names_next_round=
10176 for name in $names_this_round; do
10177 already_handled=
10178 for n in $names_already_handled; do
10179 if test "$n" = "$name"; then
10180 already_handled=yes
10181 break
10183 done
10184 if test -z "$already_handled"; then
10185 names_already_handled="$names_already_handled $name"
10186 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10187 eval value=\"\$HAVE_LIB$uppername\"
10188 if test -n "$value"; then
10189 if test "$value" = yes; then
10190 eval value=\"\$LIB$uppername\"
10191 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10192 eval value=\"\$LTLIB$uppername\"
10193 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10194 else
10197 else
10198 found_dir=
10199 found_la=
10200 found_so=
10201 found_a=
10202 if test $use_additional = yes; then
10203 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10204 found_dir="$additional_libdir"
10205 found_so="$additional_libdir/lib$name.$shlibext"
10206 if test -f "$additional_libdir/lib$name.la"; then
10207 found_la="$additional_libdir/lib$name.la"
10209 else
10210 if test -f "$additional_libdir/lib$name.$libext"; then
10211 found_dir="$additional_libdir"
10212 found_a="$additional_libdir/lib$name.$libext"
10213 if test -f "$additional_libdir/lib$name.la"; then
10214 found_la="$additional_libdir/lib$name.la"
10219 if test "X$found_dir" = "X"; then
10220 for x in $LDFLAGS $LTLIBICONV; do
10222 acl_save_prefix="$prefix"
10223 prefix="$acl_final_prefix"
10224 acl_save_exec_prefix="$exec_prefix"
10225 exec_prefix="$acl_final_exec_prefix"
10226 eval x=\"$x\"
10227 exec_prefix="$acl_save_exec_prefix"
10228 prefix="$acl_save_prefix"
10230 case "$x" in
10231 -L*)
10232 dir=`echo "X$x" | sed -e 's/^X-L//'`
10233 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10234 found_dir="$dir"
10235 found_so="$dir/lib$name.$shlibext"
10236 if test -f "$dir/lib$name.la"; then
10237 found_la="$dir/lib$name.la"
10239 else
10240 if test -f "$dir/lib$name.$libext"; then
10241 found_dir="$dir"
10242 found_a="$dir/lib$name.$libext"
10243 if test -f "$dir/lib$name.la"; then
10244 found_la="$dir/lib$name.la"
10249 esac
10250 if test "X$found_dir" != "X"; then
10251 break
10253 done
10255 if test "X$found_dir" != "X"; then
10256 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10257 if test "X$found_so" != "X"; then
10258 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10259 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10260 else
10261 haveit=
10262 for x in $ltrpathdirs; do
10263 if test "X$x" = "X$found_dir"; then
10264 haveit=yes
10265 break
10267 done
10268 if test -z "$haveit"; then
10269 ltrpathdirs="$ltrpathdirs $found_dir"
10271 if test "$hardcode_direct" = yes; then
10272 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10273 else
10274 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10275 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10276 haveit=
10277 for x in $rpathdirs; do
10278 if test "X$x" = "X$found_dir"; then
10279 haveit=yes
10280 break
10282 done
10283 if test -z "$haveit"; then
10284 rpathdirs="$rpathdirs $found_dir"
10286 else
10287 haveit=
10288 for x in $LDFLAGS $LIBICONV; do
10290 acl_save_prefix="$prefix"
10291 prefix="$acl_final_prefix"
10292 acl_save_exec_prefix="$exec_prefix"
10293 exec_prefix="$acl_final_exec_prefix"
10294 eval x=\"$x\"
10295 exec_prefix="$acl_save_exec_prefix"
10296 prefix="$acl_save_prefix"
10298 if test "X$x" = "X-L$found_dir"; then
10299 haveit=yes
10300 break
10302 done
10303 if test -z "$haveit"; then
10304 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10306 if test "$hardcode_minus_L" != no; then
10307 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10308 else
10309 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10314 else
10315 if test "X$found_a" != "X"; then
10316 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10317 else
10318 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10321 additional_includedir=
10322 case "$found_dir" in
10323 */lib | */lib/)
10324 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10325 additional_includedir="$basedir/include"
10327 esac
10328 if test "X$additional_includedir" != "X"; then
10329 if test "X$additional_includedir" != "X/usr/include"; then
10330 haveit=
10331 if test "X$additional_includedir" = "X/usr/local/include"; then
10332 if test -n "$GCC"; then
10333 case $host_os in
10334 linux*) haveit=yes;;
10335 esac
10338 if test -z "$haveit"; then
10339 for x in $CPPFLAGS $INCICONV; do
10341 acl_save_prefix="$prefix"
10342 prefix="$acl_final_prefix"
10343 acl_save_exec_prefix="$exec_prefix"
10344 exec_prefix="$acl_final_exec_prefix"
10345 eval x=\"$x\"
10346 exec_prefix="$acl_save_exec_prefix"
10347 prefix="$acl_save_prefix"
10349 if test "X$x" = "X-I$additional_includedir"; then
10350 haveit=yes
10351 break
10353 done
10354 if test -z "$haveit"; then
10355 if test -d "$additional_includedir"; then
10356 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10362 if test -n "$found_la"; then
10363 save_libdir="$libdir"
10364 case "$found_la" in
10365 */* | *\\*) . "$found_la" ;;
10366 *) . "./$found_la" ;;
10367 esac
10368 libdir="$save_libdir"
10369 for dep in $dependency_libs; do
10370 case "$dep" in
10371 -L*)
10372 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10373 if test "X$additional_libdir" != "X/usr/lib"; then
10374 haveit=
10375 if test "X$additional_libdir" = "X/usr/local/lib"; then
10376 if test -n "$GCC"; then
10377 case $host_os in
10378 linux*) haveit=yes;;
10379 esac
10382 if test -z "$haveit"; then
10383 haveit=
10384 for x in $LDFLAGS $LIBICONV; do
10386 acl_save_prefix="$prefix"
10387 prefix="$acl_final_prefix"
10388 acl_save_exec_prefix="$exec_prefix"
10389 exec_prefix="$acl_final_exec_prefix"
10390 eval x=\"$x\"
10391 exec_prefix="$acl_save_exec_prefix"
10392 prefix="$acl_save_prefix"
10394 if test "X$x" = "X-L$additional_libdir"; then
10395 haveit=yes
10396 break
10398 done
10399 if test -z "$haveit"; then
10400 if test -d "$additional_libdir"; then
10401 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10404 haveit=
10405 for x in $LDFLAGS $LTLIBICONV; do
10407 acl_save_prefix="$prefix"
10408 prefix="$acl_final_prefix"
10409 acl_save_exec_prefix="$exec_prefix"
10410 exec_prefix="$acl_final_exec_prefix"
10411 eval x=\"$x\"
10412 exec_prefix="$acl_save_exec_prefix"
10413 prefix="$acl_save_prefix"
10415 if test "X$x" = "X-L$additional_libdir"; then
10416 haveit=yes
10417 break
10419 done
10420 if test -z "$haveit"; then
10421 if test -d "$additional_libdir"; then
10422 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10428 -R*)
10429 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10430 if test "$enable_rpath" != no; then
10431 haveit=
10432 for x in $rpathdirs; do
10433 if test "X$x" = "X$dir"; then
10434 haveit=yes
10435 break
10437 done
10438 if test -z "$haveit"; then
10439 rpathdirs="$rpathdirs $dir"
10441 haveit=
10442 for x in $ltrpathdirs; do
10443 if test "X$x" = "X$dir"; then
10444 haveit=yes
10445 break
10447 done
10448 if test -z "$haveit"; then
10449 ltrpathdirs="$ltrpathdirs $dir"
10453 -l*)
10454 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10456 *.la)
10457 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10460 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10461 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10463 esac
10464 done
10466 else
10467 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10468 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10472 done
10473 done
10474 if test "X$rpathdirs" != "X"; then
10475 if test -n "$hardcode_libdir_separator"; then
10476 alldirs=
10477 for found_dir in $rpathdirs; do
10478 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10479 done
10480 acl_save_libdir="$libdir"
10481 libdir="$alldirs"
10482 eval flag=\"$hardcode_libdir_flag_spec\"
10483 libdir="$acl_save_libdir"
10484 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10485 else
10486 for found_dir in $rpathdirs; do
10487 acl_save_libdir="$libdir"
10488 libdir="$found_dir"
10489 eval flag=\"$hardcode_libdir_flag_spec\"
10490 libdir="$acl_save_libdir"
10491 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10492 done
10495 if test "X$ltrpathdirs" != "X"; then
10496 for found_dir in $ltrpathdirs; do
10497 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10498 done
10507 am_save_CPPFLAGS="$CPPFLAGS"
10509 for element in $INCICONV; do
10510 haveit=
10511 for x in $CPPFLAGS; do
10513 acl_save_prefix="$prefix"
10514 prefix="$acl_final_prefix"
10515 acl_save_exec_prefix="$exec_prefix"
10516 exec_prefix="$acl_final_exec_prefix"
10517 eval x=\"$x\"
10518 exec_prefix="$acl_save_exec_prefix"
10519 prefix="$acl_save_prefix"
10521 if test "X$x" = "X$element"; then
10522 haveit=yes
10523 break
10525 done
10526 if test -z "$haveit"; then
10527 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10529 done
10532 echo "$as_me:$LINENO: checking for iconv" >&5
10533 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10534 if test "${am_cv_func_iconv+set}" = set; then
10535 echo $ECHO_N "(cached) $ECHO_C" >&6
10536 else
10538 am_cv_func_iconv="no, consider installing GNU libiconv"
10539 am_cv_lib_iconv=no
10540 if test x$gcc_no_link = xyes; then
10541 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10542 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10543 { (exit 1); exit 1; }; }
10545 cat >conftest.$ac_ext <<_ACEOF
10546 /* confdefs.h. */
10547 _ACEOF
10548 cat confdefs.h >>conftest.$ac_ext
10549 cat >>conftest.$ac_ext <<_ACEOF
10550 /* end confdefs.h. */
10551 #include <stdlib.h>
10552 #include <iconv.h>
10554 main ()
10556 iconv_t cd = iconv_open("","");
10557 iconv(cd,NULL,NULL,NULL,NULL);
10558 iconv_close(cd);
10560 return 0;
10562 _ACEOF
10563 rm -f conftest.$ac_objext conftest$ac_exeext
10564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10565 (eval $ac_link) 2>conftest.er1
10566 ac_status=$?
10567 grep -v '^ *+' conftest.er1 >conftest.err
10568 rm -f conftest.er1
10569 cat conftest.err >&5
10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); } &&
10572 { ac_try='test -z "$ac_c_werror_flag"
10573 || test ! -s conftest.err'
10574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10575 (eval $ac_try) 2>&5
10576 ac_status=$?
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); }; } &&
10579 { ac_try='test -s conftest$ac_exeext'
10580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10581 (eval $ac_try) 2>&5
10582 ac_status=$?
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); }; }; then
10585 am_cv_func_iconv=yes
10586 else
10587 echo "$as_me: failed program was:" >&5
10588 sed 's/^/| /' conftest.$ac_ext >&5
10591 rm -f conftest.err conftest.$ac_objext \
10592 conftest$ac_exeext conftest.$ac_ext
10593 if test "$am_cv_func_iconv" != yes; then
10594 am_save_LIBS="$LIBS"
10595 LIBS="$LIBS $LIBICONV"
10596 if test x$gcc_no_link = xyes; then
10597 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10598 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10599 { (exit 1); exit 1; }; }
10601 cat >conftest.$ac_ext <<_ACEOF
10602 /* confdefs.h. */
10603 _ACEOF
10604 cat confdefs.h >>conftest.$ac_ext
10605 cat >>conftest.$ac_ext <<_ACEOF
10606 /* end confdefs.h. */
10607 #include <stdlib.h>
10608 #include <iconv.h>
10610 main ()
10612 iconv_t cd = iconv_open("","");
10613 iconv(cd,NULL,NULL,NULL,NULL);
10614 iconv_close(cd);
10616 return 0;
10618 _ACEOF
10619 rm -f conftest.$ac_objext conftest$ac_exeext
10620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10621 (eval $ac_link) 2>conftest.er1
10622 ac_status=$?
10623 grep -v '^ *+' conftest.er1 >conftest.err
10624 rm -f conftest.er1
10625 cat conftest.err >&5
10626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627 (exit $ac_status); } &&
10628 { ac_try='test -z "$ac_c_werror_flag"
10629 || test ! -s conftest.err'
10630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10631 (eval $ac_try) 2>&5
10632 ac_status=$?
10633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); }; } &&
10635 { ac_try='test -s conftest$ac_exeext'
10636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10637 (eval $ac_try) 2>&5
10638 ac_status=$?
10639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640 (exit $ac_status); }; }; then
10641 am_cv_lib_iconv=yes
10642 am_cv_func_iconv=yes
10643 else
10644 echo "$as_me: failed program was:" >&5
10645 sed 's/^/| /' conftest.$ac_ext >&5
10648 rm -f conftest.err conftest.$ac_objext \
10649 conftest$ac_exeext conftest.$ac_ext
10650 LIBS="$am_save_LIBS"
10654 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10655 echo "${ECHO_T}$am_cv_func_iconv" >&6
10656 if test "$am_cv_func_iconv" = yes; then
10658 cat >>confdefs.h <<\_ACEOF
10659 #define HAVE_ICONV 1
10660 _ACEOF
10663 if test "$am_cv_lib_iconv" = yes; then
10664 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10665 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10666 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10667 echo "${ECHO_T}$LIBICONV" >&6
10668 else
10669 CPPFLAGS="$am_save_CPPFLAGS"
10670 LIBICONV=
10671 LTLIBICONV=
10676 if test "$am_cv_func_iconv" = yes; then
10677 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10678 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10679 if test "${am_cv_proto_iconv+set}" = set; then
10680 echo $ECHO_N "(cached) $ECHO_C" >&6
10681 else
10683 cat >conftest.$ac_ext <<_ACEOF
10684 /* confdefs.h. */
10685 _ACEOF
10686 cat confdefs.h >>conftest.$ac_ext
10687 cat >>conftest.$ac_ext <<_ACEOF
10688 /* end confdefs.h. */
10690 #include <stdlib.h>
10691 #include <iconv.h>
10692 extern
10693 #ifdef __cplusplus
10695 #endif
10696 #if defined(__STDC__) || defined(__cplusplus)
10697 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10698 #else
10699 size_t iconv();
10700 #endif
10703 main ()
10707 return 0;
10709 _ACEOF
10710 rm -f conftest.$ac_objext
10711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10712 (eval $ac_compile) 2>conftest.er1
10713 ac_status=$?
10714 grep -v '^ *+' conftest.er1 >conftest.err
10715 rm -f conftest.er1
10716 cat conftest.err >&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); } &&
10719 { ac_try='test -z "$ac_c_werror_flag"
10720 || test ! -s conftest.err'
10721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10722 (eval $ac_try) 2>&5
10723 ac_status=$?
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); }; } &&
10726 { ac_try='test -s conftest.$ac_objext'
10727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10728 (eval $ac_try) 2>&5
10729 ac_status=$?
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); }; }; then
10732 am_cv_proto_iconv_arg1=""
10733 else
10734 echo "$as_me: failed program was:" >&5
10735 sed 's/^/| /' conftest.$ac_ext >&5
10737 am_cv_proto_iconv_arg1="const"
10739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10740 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);"
10743 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10744 echo "$as_me:$LINENO: result: ${ac_t:-
10745 }$am_cv_proto_iconv" >&5
10746 echo "${ECHO_T}${ac_t:-
10747 }$am_cv_proto_iconv" >&6
10749 cat >>confdefs.h <<_ACEOF
10750 #define ICONV_CONST $am_cv_proto_iconv_arg1
10751 _ACEOF
10756 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10757 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10758 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10759 echo $ECHO_N "(cached) $ECHO_C" >&6
10760 else
10761 if test x$gcc_no_link = xyes; then
10762 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10763 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10764 { (exit 1); exit 1; }; }
10766 cat >conftest.$ac_ext <<_ACEOF
10767 /* confdefs.h. */
10768 _ACEOF
10769 cat confdefs.h >>conftest.$ac_ext
10770 cat >>conftest.$ac_ext <<_ACEOF
10771 /* end confdefs.h. */
10772 #include <locale.h>
10774 main ()
10776 return LC_MESSAGES
10778 return 0;
10780 _ACEOF
10781 rm -f conftest.$ac_objext conftest$ac_exeext
10782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10783 (eval $ac_link) 2>conftest.er1
10784 ac_status=$?
10785 grep -v '^ *+' conftest.er1 >conftest.err
10786 rm -f conftest.er1
10787 cat conftest.err >&5
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); } &&
10790 { ac_try='test -z "$ac_c_werror_flag"
10791 || test ! -s conftest.err'
10792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10793 (eval $ac_try) 2>&5
10794 ac_status=$?
10795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); }; } &&
10797 { ac_try='test -s conftest$ac_exeext'
10798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10799 (eval $ac_try) 2>&5
10800 ac_status=$?
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); }; }; then
10803 am_cv_val_LC_MESSAGES=yes
10804 else
10805 echo "$as_me: failed program was:" >&5
10806 sed 's/^/| /' conftest.$ac_ext >&5
10808 am_cv_val_LC_MESSAGES=no
10810 rm -f conftest.err conftest.$ac_objext \
10811 conftest$ac_exeext conftest.$ac_ext
10813 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10814 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10815 if test $am_cv_val_LC_MESSAGES = yes; then
10817 cat >>confdefs.h <<\_ACEOF
10818 #define HAVE_LC_MESSAGES 1
10819 _ACEOF
10823 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10824 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10825 if test "${ac_cv_struct_tm+set}" = set; then
10826 echo $ECHO_N "(cached) $ECHO_C" >&6
10827 else
10828 cat >conftest.$ac_ext <<_ACEOF
10829 /* confdefs.h. */
10830 _ACEOF
10831 cat confdefs.h >>conftest.$ac_ext
10832 cat >>conftest.$ac_ext <<_ACEOF
10833 /* end confdefs.h. */
10834 #include <sys/types.h>
10835 #include <time.h>
10838 main ()
10840 struct tm *tp; tp->tm_sec;
10842 return 0;
10844 _ACEOF
10845 rm -f conftest.$ac_objext
10846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10847 (eval $ac_compile) 2>conftest.er1
10848 ac_status=$?
10849 grep -v '^ *+' conftest.er1 >conftest.err
10850 rm -f conftest.er1
10851 cat conftest.err >&5
10852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853 (exit $ac_status); } &&
10854 { ac_try='test -z "$ac_c_werror_flag"
10855 || test ! -s conftest.err'
10856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10857 (eval $ac_try) 2>&5
10858 ac_status=$?
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); }; } &&
10861 { ac_try='test -s conftest.$ac_objext'
10862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10863 (eval $ac_try) 2>&5
10864 ac_status=$?
10865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866 (exit $ac_status); }; }; then
10867 ac_cv_struct_tm=time.h
10868 else
10869 echo "$as_me: failed program was:" >&5
10870 sed 's/^/| /' conftest.$ac_ext >&5
10872 ac_cv_struct_tm=sys/time.h
10874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10876 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10877 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10878 if test $ac_cv_struct_tm = sys/time.h; then
10880 cat >>confdefs.h <<\_ACEOF
10881 #define TM_IN_SYS_TIME 1
10882 _ACEOF
10886 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10887 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10888 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10889 echo $ECHO_N "(cached) $ECHO_C" >&6
10890 else
10891 cat >conftest.$ac_ext <<_ACEOF
10892 /* confdefs.h. */
10893 _ACEOF
10894 cat confdefs.h >>conftest.$ac_ext
10895 cat >>conftest.$ac_ext <<_ACEOF
10896 /* end confdefs.h. */
10897 #include <sys/types.h>
10898 #include <$ac_cv_struct_tm>
10902 main ()
10904 static struct tm ac_aggr;
10905 if (ac_aggr.tm_zone)
10906 return 0;
10908 return 0;
10910 _ACEOF
10911 rm -f conftest.$ac_objext
10912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10913 (eval $ac_compile) 2>conftest.er1
10914 ac_status=$?
10915 grep -v '^ *+' conftest.er1 >conftest.err
10916 rm -f conftest.er1
10917 cat conftest.err >&5
10918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919 (exit $ac_status); } &&
10920 { ac_try='test -z "$ac_c_werror_flag"
10921 || test ! -s conftest.err'
10922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10923 (eval $ac_try) 2>&5
10924 ac_status=$?
10925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); }; } &&
10927 { ac_try='test -s conftest.$ac_objext'
10928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10929 (eval $ac_try) 2>&5
10930 ac_status=$?
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); }; }; then
10933 ac_cv_member_struct_tm_tm_zone=yes
10934 else
10935 echo "$as_me: failed program was:" >&5
10936 sed 's/^/| /' conftest.$ac_ext >&5
10938 cat >conftest.$ac_ext <<_ACEOF
10939 /* confdefs.h. */
10940 _ACEOF
10941 cat confdefs.h >>conftest.$ac_ext
10942 cat >>conftest.$ac_ext <<_ACEOF
10943 /* end confdefs.h. */
10944 #include <sys/types.h>
10945 #include <$ac_cv_struct_tm>
10949 main ()
10951 static struct tm ac_aggr;
10952 if (sizeof ac_aggr.tm_zone)
10953 return 0;
10955 return 0;
10957 _ACEOF
10958 rm -f conftest.$ac_objext
10959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10960 (eval $ac_compile) 2>conftest.er1
10961 ac_status=$?
10962 grep -v '^ *+' conftest.er1 >conftest.err
10963 rm -f conftest.er1
10964 cat conftest.err >&5
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); } &&
10967 { ac_try='test -z "$ac_c_werror_flag"
10968 || test ! -s conftest.err'
10969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10970 (eval $ac_try) 2>&5
10971 ac_status=$?
10972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973 (exit $ac_status); }; } &&
10974 { ac_try='test -s conftest.$ac_objext'
10975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10976 (eval $ac_try) 2>&5
10977 ac_status=$?
10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); }; }; then
10980 ac_cv_member_struct_tm_tm_zone=yes
10981 else
10982 echo "$as_me: failed program was:" >&5
10983 sed 's/^/| /' conftest.$ac_ext >&5
10985 ac_cv_member_struct_tm_tm_zone=no
10987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10991 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10992 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10993 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10995 cat >>confdefs.h <<_ACEOF
10996 #define HAVE_STRUCT_TM_TM_ZONE 1
10997 _ACEOF
11002 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11004 cat >>confdefs.h <<\_ACEOF
11005 #define HAVE_TM_ZONE 1
11006 _ACEOF
11008 else
11009 echo "$as_me:$LINENO: checking for tzname" >&5
11010 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11011 if test "${ac_cv_var_tzname+set}" = set; then
11012 echo $ECHO_N "(cached) $ECHO_C" >&6
11013 else
11014 if test x$gcc_no_link = xyes; then
11015 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11016 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11017 { (exit 1); exit 1; }; }
11019 cat >conftest.$ac_ext <<_ACEOF
11020 /* confdefs.h. */
11021 _ACEOF
11022 cat confdefs.h >>conftest.$ac_ext
11023 cat >>conftest.$ac_ext <<_ACEOF
11024 /* end confdefs.h. */
11025 #include <time.h>
11026 #ifndef tzname /* For SGI. */
11027 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11028 #endif
11031 main ()
11033 atoi(*tzname);
11035 return 0;
11037 _ACEOF
11038 rm -f conftest.$ac_objext conftest$ac_exeext
11039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11040 (eval $ac_link) 2>conftest.er1
11041 ac_status=$?
11042 grep -v '^ *+' conftest.er1 >conftest.err
11043 rm -f conftest.er1
11044 cat conftest.err >&5
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); } &&
11047 { ac_try='test -z "$ac_c_werror_flag"
11048 || test ! -s conftest.err'
11049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11050 (eval $ac_try) 2>&5
11051 ac_status=$?
11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053 (exit $ac_status); }; } &&
11054 { ac_try='test -s conftest$ac_exeext'
11055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11056 (eval $ac_try) 2>&5
11057 ac_status=$?
11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); }; }; then
11060 ac_cv_var_tzname=yes
11061 else
11062 echo "$as_me: failed program was:" >&5
11063 sed 's/^/| /' conftest.$ac_ext >&5
11065 ac_cv_var_tzname=no
11067 rm -f conftest.err conftest.$ac_objext \
11068 conftest$ac_exeext conftest.$ac_ext
11070 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11071 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11072 if test $ac_cv_var_tzname = yes; then
11074 cat >>confdefs.h <<\_ACEOF
11075 #define HAVE_TZNAME 1
11076 _ACEOF
11084 for ac_func in gethostbyname_r
11086 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11087 echo "$as_me:$LINENO: checking for $ac_func" >&5
11088 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11089 if eval "test \"\${$as_ac_var+set}\" = set"; then
11090 echo $ECHO_N "(cached) $ECHO_C" >&6
11091 else
11092 if test x$gcc_no_link = xyes; then
11093 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11094 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11095 { (exit 1); exit 1; }; }
11097 cat >conftest.$ac_ext <<_ACEOF
11098 /* confdefs.h. */
11099 _ACEOF
11100 cat confdefs.h >>conftest.$ac_ext
11101 cat >>conftest.$ac_ext <<_ACEOF
11102 /* end confdefs.h. */
11103 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11105 #define $ac_func innocuous_$ac_func
11107 /* System header to define __stub macros and hopefully few prototypes,
11108 which can conflict with char $ac_func (); below.
11109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11110 <limits.h> exists even on freestanding compilers. */
11112 #ifdef __STDC__
11113 # include <limits.h>
11114 #else
11115 # include <assert.h>
11116 #endif
11118 #undef $ac_func
11120 /* Override any gcc2 internal prototype to avoid an error. */
11121 #ifdef __cplusplus
11122 extern "C"
11124 #endif
11125 /* We use char because int might match the return type of a gcc2
11126 builtin and then its argument prototype would still apply. */
11127 char $ac_func ();
11128 /* The GNU C library defines this for functions which it implements
11129 to always fail with ENOSYS. Some functions are actually named
11130 something starting with __ and the normal name is an alias. */
11131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11132 choke me
11133 #else
11134 char (*f) () = $ac_func;
11135 #endif
11136 #ifdef __cplusplus
11138 #endif
11141 main ()
11143 return f != $ac_func;
11145 return 0;
11147 _ACEOF
11148 rm -f conftest.$ac_objext conftest$ac_exeext
11149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11150 (eval $ac_link) 2>conftest.er1
11151 ac_status=$?
11152 grep -v '^ *+' conftest.er1 >conftest.err
11153 rm -f conftest.er1
11154 cat conftest.err >&5
11155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156 (exit $ac_status); } &&
11157 { ac_try='test -z "$ac_c_werror_flag"
11158 || test ! -s conftest.err'
11159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11160 (eval $ac_try) 2>&5
11161 ac_status=$?
11162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 (exit $ac_status); }; } &&
11164 { ac_try='test -s conftest$ac_exeext'
11165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11166 (eval $ac_try) 2>&5
11167 ac_status=$?
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); }; }; then
11170 eval "$as_ac_var=yes"
11171 else
11172 echo "$as_me: failed program was:" >&5
11173 sed 's/^/| /' conftest.$ac_ext >&5
11175 eval "$as_ac_var=no"
11177 rm -f conftest.err conftest.$ac_objext \
11178 conftest$ac_exeext conftest.$ac_ext
11180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11181 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11182 if test `eval echo '${'$as_ac_var'}'` = yes; then
11183 cat >>confdefs.h <<_ACEOF
11184 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11185 _ACEOF
11188 cat >>confdefs.h <<\_ACEOF
11189 #define HAVE_GETHOSTBYNAME_R 1
11190 _ACEOF
11192 # There are two different kinds of gethostbyname_r.
11193 # We look for the one that returns `int'.
11194 # Hopefully this check is robust enough.
11195 cat >conftest.$ac_ext <<_ACEOF
11196 /* confdefs.h. */
11197 _ACEOF
11198 cat confdefs.h >>conftest.$ac_ext
11199 cat >>conftest.$ac_ext <<_ACEOF
11200 /* end confdefs.h. */
11201 #include <netdb.h>
11203 _ACEOF
11204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11205 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
11208 cat >>confdefs.h <<\_ACEOF
11209 #define GETHOSTBYNAME_R_RETURNS_INT 1
11210 _ACEOF
11213 rm -f conftest*
11216 case " $GCINCS " in
11217 *" -D_REENTRANT "*) ;;
11219 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
11220 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
11221 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
11222 echo $ECHO_N "(cached) $ECHO_C" >&6
11223 else
11224 ac_ext=cc
11225 ac_cpp='$CXXCPP $CPPFLAGS'
11226 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11227 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11228 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11230 cat >conftest.$ac_ext <<_ACEOF
11231 /* confdefs.h. */
11232 _ACEOF
11233 cat confdefs.h >>conftest.$ac_ext
11234 cat >>conftest.$ac_ext <<_ACEOF
11235 /* end confdefs.h. */
11236 #include <netdb.h>
11238 main ()
11240 gethostbyname_r("", 0, 0);
11242 return 0;
11244 _ACEOF
11245 rm -f conftest.$ac_objext
11246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11247 (eval $ac_compile) 2>conftest.er1
11248 ac_status=$?
11249 grep -v '^ *+' conftest.er1 >conftest.err
11250 rm -f conftest.er1
11251 cat conftest.err >&5
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); } &&
11254 { ac_try='test -z "$ac_cxx_werror_flag"
11255 || test ! -s conftest.err'
11256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11257 (eval $ac_try) 2>&5
11258 ac_status=$?
11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); }; } &&
11261 { ac_try='test -s conftest.$ac_objext'
11262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11263 (eval $ac_try) 2>&5
11264 ac_status=$?
11265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266 (exit $ac_status); }; }; then
11267 libjava_cv_gethostbyname_r_needs_reentrant=no
11268 else
11269 echo "$as_me: failed program was:" >&5
11270 sed 's/^/| /' conftest.$ac_ext >&5
11272 CPPFLAGS_SAVE="$CPPFLAGS"
11273 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
11274 cat >conftest.$ac_ext <<_ACEOF
11275 /* confdefs.h. */
11276 _ACEOF
11277 cat confdefs.h >>conftest.$ac_ext
11278 cat >>conftest.$ac_ext <<_ACEOF
11279 /* end confdefs.h. */
11280 #include <netdb.h>
11282 main ()
11284 gethostbyname_r("", 0, 0);
11286 return 0;
11288 _ACEOF
11289 rm -f conftest.$ac_objext
11290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11291 (eval $ac_compile) 2>conftest.er1
11292 ac_status=$?
11293 grep -v '^ *+' conftest.er1 >conftest.err
11294 rm -f conftest.er1
11295 cat conftest.err >&5
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); } &&
11298 { ac_try='test -z "$ac_cxx_werror_flag"
11299 || test ! -s conftest.err'
11300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11301 (eval $ac_try) 2>&5
11302 ac_status=$?
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); }; } &&
11305 { ac_try='test -s conftest.$ac_objext'
11306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11307 (eval $ac_try) 2>&5
11308 ac_status=$?
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); }; }; then
11311 libjava_cv_gethostbyname_r_needs_reentrant=yes
11312 else
11313 echo "$as_me: failed program was:" >&5
11314 sed 's/^/| /' conftest.$ac_ext >&5
11316 libjava_cv_gethostbyname_r_needs_reentrant=fail
11318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11319 CPPFLAGS="$CPPFLAGS_SAVE"
11322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11323 ac_ext=c
11324 ac_cpp='$CPP $CPPFLAGS'
11325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11331 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
11332 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
11333 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
11335 cat >>confdefs.h <<\_ACEOF
11336 #define _REENTRANT 1
11337 _ACEOF
11341 esac
11343 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
11344 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
11345 if test "${libjava_cv_struct_hostent_data+set}" = set; then
11346 echo $ECHO_N "(cached) $ECHO_C" >&6
11347 else
11348 cat >conftest.$ac_ext <<_ACEOF
11349 /* confdefs.h. */
11350 _ACEOF
11351 cat confdefs.h >>conftest.$ac_ext
11352 cat >>conftest.$ac_ext <<_ACEOF
11353 /* end confdefs.h. */
11355 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
11356 # define _REENTRANT 1
11357 #endif
11358 #include <netdb.h>
11360 main ()
11362 struct hostent_data data;
11364 return 0;
11366 _ACEOF
11367 rm -f conftest.$ac_objext
11368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11369 (eval $ac_compile) 2>conftest.er1
11370 ac_status=$?
11371 grep -v '^ *+' conftest.er1 >conftest.err
11372 rm -f conftest.er1
11373 cat conftest.err >&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); } &&
11376 { ac_try='test -z "$ac_c_werror_flag"
11377 || test ! -s conftest.err'
11378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11379 (eval $ac_try) 2>&5
11380 ac_status=$?
11381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382 (exit $ac_status); }; } &&
11383 { ac_try='test -s conftest.$ac_objext'
11384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11385 (eval $ac_try) 2>&5
11386 ac_status=$?
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); }; }; then
11389 libjava_cv_struct_hostent_data=yes
11390 else
11391 echo "$as_me: failed program was:" >&5
11392 sed 's/^/| /' conftest.$ac_ext >&5
11394 libjava_cv_struct_hostent_data=no
11396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11398 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
11399 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
11400 if test "x$libjava_cv_struct_hostent_data" = xyes; then
11402 cat >>confdefs.h <<\_ACEOF
11403 #define HAVE_STRUCT_HOSTENT_DATA 1
11404 _ACEOF
11409 done
11412 # FIXME: libjava source code expects to find a prototype for
11413 # gethostbyaddr_r in netdb.h. The outer check ensures that
11414 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
11415 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
11416 # linkage check is enough, yet C++ code requires proper prototypes.)
11417 cat >conftest.$ac_ext <<_ACEOF
11418 /* confdefs.h. */
11419 _ACEOF
11420 cat confdefs.h >>conftest.$ac_ext
11421 cat >>conftest.$ac_ext <<_ACEOF
11422 /* end confdefs.h. */
11423 #include <netdb.h>
11425 _ACEOF
11426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11427 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
11430 for ac_func in gethostbyaddr_r
11432 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11433 echo "$as_me:$LINENO: checking for $ac_func" >&5
11434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11435 if eval "test \"\${$as_ac_var+set}\" = set"; then
11436 echo $ECHO_N "(cached) $ECHO_C" >&6
11437 else
11438 if test x$gcc_no_link = xyes; then
11439 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11440 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11441 { (exit 1); exit 1; }; }
11443 cat >conftest.$ac_ext <<_ACEOF
11444 /* confdefs.h. */
11445 _ACEOF
11446 cat confdefs.h >>conftest.$ac_ext
11447 cat >>conftest.$ac_ext <<_ACEOF
11448 /* end confdefs.h. */
11449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11451 #define $ac_func innocuous_$ac_func
11453 /* System header to define __stub macros and hopefully few prototypes,
11454 which can conflict with char $ac_func (); below.
11455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11456 <limits.h> exists even on freestanding compilers. */
11458 #ifdef __STDC__
11459 # include <limits.h>
11460 #else
11461 # include <assert.h>
11462 #endif
11464 #undef $ac_func
11466 /* Override any gcc2 internal prototype to avoid an error. */
11467 #ifdef __cplusplus
11468 extern "C"
11470 #endif
11471 /* We use char because int might match the return type of a gcc2
11472 builtin and then its argument prototype would still apply. */
11473 char $ac_func ();
11474 /* The GNU C library defines this for functions which it implements
11475 to always fail with ENOSYS. Some functions are actually named
11476 something starting with __ and the normal name is an alias. */
11477 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11478 choke me
11479 #else
11480 char (*f) () = $ac_func;
11481 #endif
11482 #ifdef __cplusplus
11484 #endif
11487 main ()
11489 return f != $ac_func;
11491 return 0;
11493 _ACEOF
11494 rm -f conftest.$ac_objext conftest$ac_exeext
11495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11496 (eval $ac_link) 2>conftest.er1
11497 ac_status=$?
11498 grep -v '^ *+' conftest.er1 >conftest.err
11499 rm -f conftest.er1
11500 cat conftest.err >&5
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); } &&
11503 { ac_try='test -z "$ac_c_werror_flag"
11504 || test ! -s conftest.err'
11505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506 (eval $ac_try) 2>&5
11507 ac_status=$?
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; } &&
11510 { ac_try='test -s conftest$ac_exeext'
11511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11512 (eval $ac_try) 2>&5
11513 ac_status=$?
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); }; }; then
11516 eval "$as_ac_var=yes"
11517 else
11518 echo "$as_me: failed program was:" >&5
11519 sed 's/^/| /' conftest.$ac_ext >&5
11521 eval "$as_ac_var=no"
11523 rm -f conftest.err conftest.$ac_objext \
11524 conftest$ac_exeext conftest.$ac_ext
11526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11527 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11528 if test `eval echo '${'$as_ac_var'}'` = yes; then
11529 cat >>confdefs.h <<_ACEOF
11530 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11531 _ACEOF
11534 cat >>confdefs.h <<\_ACEOF
11535 #define HAVE_GETHOSTBYADDR_R 1
11536 _ACEOF
11538 # There are two different kinds of gethostbyaddr_r.
11539 # We look for the one that returns `int'.
11540 # Hopefully this check is robust enough.
11541 cat >conftest.$ac_ext <<_ACEOF
11542 /* confdefs.h. */
11543 _ACEOF
11544 cat confdefs.h >>conftest.$ac_ext
11545 cat >>conftest.$ac_ext <<_ACEOF
11546 /* end confdefs.h. */
11547 #include <netdb.h>
11549 _ACEOF
11550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11551 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11554 cat >>confdefs.h <<\_ACEOF
11555 #define GETHOSTBYADDR_R_RETURNS_INT 1
11556 _ACEOF
11559 rm -f conftest*
11562 done
11565 rm -f conftest*
11569 for ac_func in gethostname
11571 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11572 echo "$as_me:$LINENO: checking for $ac_func" >&5
11573 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11574 if eval "test \"\${$as_ac_var+set}\" = set"; then
11575 echo $ECHO_N "(cached) $ECHO_C" >&6
11576 else
11577 if test x$gcc_no_link = xyes; then
11578 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11579 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11580 { (exit 1); exit 1; }; }
11582 cat >conftest.$ac_ext <<_ACEOF
11583 /* confdefs.h. */
11584 _ACEOF
11585 cat confdefs.h >>conftest.$ac_ext
11586 cat >>conftest.$ac_ext <<_ACEOF
11587 /* end confdefs.h. */
11588 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11590 #define $ac_func innocuous_$ac_func
11592 /* System header to define __stub macros and hopefully few prototypes,
11593 which can conflict with char $ac_func (); below.
11594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11595 <limits.h> exists even on freestanding compilers. */
11597 #ifdef __STDC__
11598 # include <limits.h>
11599 #else
11600 # include <assert.h>
11601 #endif
11603 #undef $ac_func
11605 /* Override any gcc2 internal prototype to avoid an error. */
11606 #ifdef __cplusplus
11607 extern "C"
11609 #endif
11610 /* We use char because int might match the return type of a gcc2
11611 builtin and then its argument prototype would still apply. */
11612 char $ac_func ();
11613 /* The GNU C library defines this for functions which it implements
11614 to always fail with ENOSYS. Some functions are actually named
11615 something starting with __ and the normal name is an alias. */
11616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11617 choke me
11618 #else
11619 char (*f) () = $ac_func;
11620 #endif
11621 #ifdef __cplusplus
11623 #endif
11626 main ()
11628 return f != $ac_func;
11630 return 0;
11632 _ACEOF
11633 rm -f conftest.$ac_objext conftest$ac_exeext
11634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11635 (eval $ac_link) 2>conftest.er1
11636 ac_status=$?
11637 grep -v '^ *+' conftest.er1 >conftest.err
11638 rm -f conftest.er1
11639 cat conftest.err >&5
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); } &&
11642 { ac_try='test -z "$ac_c_werror_flag"
11643 || test ! -s conftest.err'
11644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11645 (eval $ac_try) 2>&5
11646 ac_status=$?
11647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648 (exit $ac_status); }; } &&
11649 { ac_try='test -s conftest$ac_exeext'
11650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11651 (eval $ac_try) 2>&5
11652 ac_status=$?
11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654 (exit $ac_status); }; }; then
11655 eval "$as_ac_var=yes"
11656 else
11657 echo "$as_me: failed program was:" >&5
11658 sed 's/^/| /' conftest.$ac_ext >&5
11660 eval "$as_ac_var=no"
11662 rm -f conftest.err conftest.$ac_objext \
11663 conftest$ac_exeext conftest.$ac_ext
11665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11666 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11667 if test `eval echo '${'$as_ac_var'}'` = yes; then
11668 cat >>confdefs.h <<_ACEOF
11669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11670 _ACEOF
11673 cat >>confdefs.h <<\_ACEOF
11674 #define HAVE_GETHOSTNAME 1
11675 _ACEOF
11677 cat >conftest.$ac_ext <<_ACEOF
11678 /* confdefs.h. */
11679 _ACEOF
11680 cat confdefs.h >>conftest.$ac_ext
11681 cat >>conftest.$ac_ext <<_ACEOF
11682 /* end confdefs.h. */
11683 #include <unistd.h>
11685 _ACEOF
11686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11687 $EGREP "gethostname" >/dev/null 2>&1; then
11690 cat >>confdefs.h <<\_ACEOF
11691 #define HAVE_GETHOSTNAME_DECL 1
11692 _ACEOF
11695 rm -f conftest*
11698 done
11702 for ac_func in usleep
11704 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11705 echo "$as_me:$LINENO: checking for $ac_func" >&5
11706 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11707 if eval "test \"\${$as_ac_var+set}\" = set"; then
11708 echo $ECHO_N "(cached) $ECHO_C" >&6
11709 else
11710 if test x$gcc_no_link = xyes; then
11711 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11712 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11713 { (exit 1); exit 1; }; }
11715 cat >conftest.$ac_ext <<_ACEOF
11716 /* confdefs.h. */
11717 _ACEOF
11718 cat confdefs.h >>conftest.$ac_ext
11719 cat >>conftest.$ac_ext <<_ACEOF
11720 /* end confdefs.h. */
11721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11723 #define $ac_func innocuous_$ac_func
11725 /* System header to define __stub macros and hopefully few prototypes,
11726 which can conflict with char $ac_func (); below.
11727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11728 <limits.h> exists even on freestanding compilers. */
11730 #ifdef __STDC__
11731 # include <limits.h>
11732 #else
11733 # include <assert.h>
11734 #endif
11736 #undef $ac_func
11738 /* Override any gcc2 internal prototype to avoid an error. */
11739 #ifdef __cplusplus
11740 extern "C"
11742 #endif
11743 /* We use char because int might match the return type of a gcc2
11744 builtin and then its argument prototype would still apply. */
11745 char $ac_func ();
11746 /* The GNU C library defines this for functions which it implements
11747 to always fail with ENOSYS. Some functions are actually named
11748 something starting with __ and the normal name is an alias. */
11749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11750 choke me
11751 #else
11752 char (*f) () = $ac_func;
11753 #endif
11754 #ifdef __cplusplus
11756 #endif
11759 main ()
11761 return f != $ac_func;
11763 return 0;
11765 _ACEOF
11766 rm -f conftest.$ac_objext conftest$ac_exeext
11767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11768 (eval $ac_link) 2>conftest.er1
11769 ac_status=$?
11770 grep -v '^ *+' conftest.er1 >conftest.err
11771 rm -f conftest.er1
11772 cat conftest.err >&5
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); } &&
11775 { ac_try='test -z "$ac_c_werror_flag"
11776 || test ! -s conftest.err'
11777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11778 (eval $ac_try) 2>&5
11779 ac_status=$?
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); }; } &&
11782 { ac_try='test -s conftest$ac_exeext'
11783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11784 (eval $ac_try) 2>&5
11785 ac_status=$?
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); }; }; then
11788 eval "$as_ac_var=yes"
11789 else
11790 echo "$as_me: failed program was:" >&5
11791 sed 's/^/| /' conftest.$ac_ext >&5
11793 eval "$as_ac_var=no"
11795 rm -f conftest.err conftest.$ac_objext \
11796 conftest$ac_exeext conftest.$ac_ext
11798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11799 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11800 if test `eval echo '${'$as_ac_var'}'` = yes; then
11801 cat >>confdefs.h <<_ACEOF
11802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11803 _ACEOF
11805 cat >conftest.$ac_ext <<_ACEOF
11806 /* confdefs.h. */
11807 _ACEOF
11808 cat confdefs.h >>conftest.$ac_ext
11809 cat >>conftest.$ac_ext <<_ACEOF
11810 /* end confdefs.h. */
11811 #include <unistd.h>
11813 _ACEOF
11814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11815 $EGREP "usleep" >/dev/null 2>&1; then
11818 cat >>confdefs.h <<\_ACEOF
11819 #define HAVE_USLEEP_DECL 1
11820 _ACEOF
11823 rm -f conftest*
11826 done
11829 # Look for these functions in the thread library, but only bother
11830 # if using POSIX threads.
11831 if test "$THREADS" = posix; then
11832 save_LIBS="$LIBS"
11833 LIBS="$LIBS $THREADLIBS"
11834 # Some POSIX thread systems don't have pthread_mutexattr_settype.
11835 # E.g., Solaris.
11838 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
11840 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11841 echo "$as_me:$LINENO: checking for $ac_func" >&5
11842 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11843 if eval "test \"\${$as_ac_var+set}\" = set"; then
11844 echo $ECHO_N "(cached) $ECHO_C" >&6
11845 else
11846 if test x$gcc_no_link = xyes; then
11847 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11848 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11849 { (exit 1); exit 1; }; }
11851 cat >conftest.$ac_ext <<_ACEOF
11852 /* confdefs.h. */
11853 _ACEOF
11854 cat confdefs.h >>conftest.$ac_ext
11855 cat >>conftest.$ac_ext <<_ACEOF
11856 /* end confdefs.h. */
11857 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11859 #define $ac_func innocuous_$ac_func
11861 /* System header to define __stub macros and hopefully few prototypes,
11862 which can conflict with char $ac_func (); below.
11863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11864 <limits.h> exists even on freestanding compilers. */
11866 #ifdef __STDC__
11867 # include <limits.h>
11868 #else
11869 # include <assert.h>
11870 #endif
11872 #undef $ac_func
11874 /* Override any gcc2 internal prototype to avoid an error. */
11875 #ifdef __cplusplus
11876 extern "C"
11878 #endif
11879 /* We use char because int might match the return type of a gcc2
11880 builtin and then its argument prototype would still apply. */
11881 char $ac_func ();
11882 /* The GNU C library defines this for functions which it implements
11883 to always fail with ENOSYS. Some functions are actually named
11884 something starting with __ and the normal name is an alias. */
11885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11886 choke me
11887 #else
11888 char (*f) () = $ac_func;
11889 #endif
11890 #ifdef __cplusplus
11892 #endif
11895 main ()
11897 return f != $ac_func;
11899 return 0;
11901 _ACEOF
11902 rm -f conftest.$ac_objext conftest$ac_exeext
11903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11904 (eval $ac_link) 2>conftest.er1
11905 ac_status=$?
11906 grep -v '^ *+' conftest.er1 >conftest.err
11907 rm -f conftest.er1
11908 cat conftest.err >&5
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); } &&
11911 { ac_try='test -z "$ac_c_werror_flag"
11912 || test ! -s conftest.err'
11913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11914 (eval $ac_try) 2>&5
11915 ac_status=$?
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); }; } &&
11918 { ac_try='test -s conftest$ac_exeext'
11919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11920 (eval $ac_try) 2>&5
11921 ac_status=$?
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); }; }; then
11924 eval "$as_ac_var=yes"
11925 else
11926 echo "$as_me: failed program was:" >&5
11927 sed 's/^/| /' conftest.$ac_ext >&5
11929 eval "$as_ac_var=no"
11931 rm -f conftest.err conftest.$ac_objext \
11932 conftest$ac_exeext conftest.$ac_ext
11934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11935 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11936 if test `eval echo '${'$as_ac_var'}'` = yes; then
11937 cat >>confdefs.h <<_ACEOF
11938 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11939 _ACEOF
11942 done
11945 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
11946 # Solaris 7 the name librt is preferred.
11948 for ac_func in sched_yield
11950 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11951 echo "$as_me:$LINENO: checking for $ac_func" >&5
11952 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11953 if eval "test \"\${$as_ac_var+set}\" = set"; then
11954 echo $ECHO_N "(cached) $ECHO_C" >&6
11955 else
11956 if test x$gcc_no_link = xyes; then
11957 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11958 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11959 { (exit 1); exit 1; }; }
11961 cat >conftest.$ac_ext <<_ACEOF
11962 /* confdefs.h. */
11963 _ACEOF
11964 cat confdefs.h >>conftest.$ac_ext
11965 cat >>conftest.$ac_ext <<_ACEOF
11966 /* end confdefs.h. */
11967 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11969 #define $ac_func innocuous_$ac_func
11971 /* System header to define __stub macros and hopefully few prototypes,
11972 which can conflict with char $ac_func (); below.
11973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11974 <limits.h> exists even on freestanding compilers. */
11976 #ifdef __STDC__
11977 # include <limits.h>
11978 #else
11979 # include <assert.h>
11980 #endif
11982 #undef $ac_func
11984 /* Override any gcc2 internal prototype to avoid an error. */
11985 #ifdef __cplusplus
11986 extern "C"
11988 #endif
11989 /* We use char because int might match the return type of a gcc2
11990 builtin and then its argument prototype would still apply. */
11991 char $ac_func ();
11992 /* The GNU C library defines this for functions which it implements
11993 to always fail with ENOSYS. Some functions are actually named
11994 something starting with __ and the normal name is an alias. */
11995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11996 choke me
11997 #else
11998 char (*f) () = $ac_func;
11999 #endif
12000 #ifdef __cplusplus
12002 #endif
12005 main ()
12007 return f != $ac_func;
12009 return 0;
12011 _ACEOF
12012 rm -f conftest.$ac_objext conftest$ac_exeext
12013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12014 (eval $ac_link) 2>conftest.er1
12015 ac_status=$?
12016 grep -v '^ *+' conftest.er1 >conftest.err
12017 rm -f conftest.er1
12018 cat conftest.err >&5
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); } &&
12021 { ac_try='test -z "$ac_c_werror_flag"
12022 || test ! -s conftest.err'
12023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12024 (eval $ac_try) 2>&5
12025 ac_status=$?
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); }; } &&
12028 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12034 eval "$as_ac_var=yes"
12035 else
12036 echo "$as_me: failed program was:" >&5
12037 sed 's/^/| /' conftest.$ac_ext >&5
12039 eval "$as_ac_var=no"
12041 rm -f conftest.err conftest.$ac_objext \
12042 conftest$ac_exeext conftest.$ac_ext
12044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12045 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12046 if test `eval echo '${'$as_ac_var'}'` = yes; then
12047 cat >>confdefs.h <<_ACEOF
12048 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12049 _ACEOF
12051 else
12053 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
12054 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
12055 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
12056 echo $ECHO_N "(cached) $ECHO_C" >&6
12057 else
12058 ac_check_lib_save_LIBS=$LIBS
12059 LIBS="-lrt $LIBS"
12060 if test x$gcc_no_link = xyes; then
12061 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12062 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12063 { (exit 1); exit 1; }; }
12065 cat >conftest.$ac_ext <<_ACEOF
12066 /* confdefs.h. */
12067 _ACEOF
12068 cat confdefs.h >>conftest.$ac_ext
12069 cat >>conftest.$ac_ext <<_ACEOF
12070 /* end confdefs.h. */
12072 /* Override any gcc2 internal prototype to avoid an error. */
12073 #ifdef __cplusplus
12074 extern "C"
12075 #endif
12076 /* We use char because int might match the return type of a gcc2
12077 builtin and then its argument prototype would still apply. */
12078 char sched_yield ();
12080 main ()
12082 sched_yield ();
12084 return 0;
12086 _ACEOF
12087 rm -f conftest.$ac_objext conftest$ac_exeext
12088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12089 (eval $ac_link) 2>conftest.er1
12090 ac_status=$?
12091 grep -v '^ *+' conftest.er1 >conftest.err
12092 rm -f conftest.er1
12093 cat conftest.err >&5
12094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095 (exit $ac_status); } &&
12096 { ac_try='test -z "$ac_c_werror_flag"
12097 || test ! -s conftest.err'
12098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12099 (eval $ac_try) 2>&5
12100 ac_status=$?
12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); }; } &&
12103 { ac_try='test -s conftest$ac_exeext'
12104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12105 (eval $ac_try) 2>&5
12106 ac_status=$?
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); }; }; then
12109 ac_cv_lib_rt_sched_yield=yes
12110 else
12111 echo "$as_me: failed program was:" >&5
12112 sed 's/^/| /' conftest.$ac_ext >&5
12114 ac_cv_lib_rt_sched_yield=no
12116 rm -f conftest.err conftest.$ac_objext \
12117 conftest$ac_exeext conftest.$ac_ext
12118 LIBS=$ac_check_lib_save_LIBS
12120 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
12121 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
12122 if test $ac_cv_lib_rt_sched_yield = yes; then
12124 cat >>confdefs.h <<\_ACEOF
12125 #define HAVE_SCHED_YIELD 1
12126 _ACEOF
12128 THREADLIBS="$THREADLIBS -lrt"
12129 THREADSPEC="$THREADSPEC -lrt"
12130 else
12132 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
12133 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
12134 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
12135 echo $ECHO_N "(cached) $ECHO_C" >&6
12136 else
12137 ac_check_lib_save_LIBS=$LIBS
12138 LIBS="-lposix4 $LIBS"
12139 if test x$gcc_no_link = xyes; then
12140 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12141 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12142 { (exit 1); exit 1; }; }
12144 cat >conftest.$ac_ext <<_ACEOF
12145 /* confdefs.h. */
12146 _ACEOF
12147 cat confdefs.h >>conftest.$ac_ext
12148 cat >>conftest.$ac_ext <<_ACEOF
12149 /* end confdefs.h. */
12151 /* Override any gcc2 internal prototype to avoid an error. */
12152 #ifdef __cplusplus
12153 extern "C"
12154 #endif
12155 /* We use char because int might match the return type of a gcc2
12156 builtin and then its argument prototype would still apply. */
12157 char sched_yield ();
12159 main ()
12161 sched_yield ();
12163 return 0;
12165 _ACEOF
12166 rm -f conftest.$ac_objext conftest$ac_exeext
12167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12168 (eval $ac_link) 2>conftest.er1
12169 ac_status=$?
12170 grep -v '^ *+' conftest.er1 >conftest.err
12171 rm -f conftest.er1
12172 cat conftest.err >&5
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); } &&
12175 { ac_try='test -z "$ac_c_werror_flag"
12176 || test ! -s conftest.err'
12177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12178 (eval $ac_try) 2>&5
12179 ac_status=$?
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); }; } &&
12182 { ac_try='test -s conftest$ac_exeext'
12183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12184 (eval $ac_try) 2>&5
12185 ac_status=$?
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); }; }; then
12188 ac_cv_lib_posix4_sched_yield=yes
12189 else
12190 echo "$as_me: failed program was:" >&5
12191 sed 's/^/| /' conftest.$ac_ext >&5
12193 ac_cv_lib_posix4_sched_yield=no
12195 rm -f conftest.err conftest.$ac_objext \
12196 conftest$ac_exeext conftest.$ac_ext
12197 LIBS=$ac_check_lib_save_LIBS
12199 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
12200 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
12201 if test $ac_cv_lib_posix4_sched_yield = yes; then
12203 cat >>confdefs.h <<\_ACEOF
12204 #define HAVE_SCHED_YIELD 1
12205 _ACEOF
12207 THREADLIBS="$THREADLIBS -lposix4"
12208 THREADSPEC="$THREADSPEC -lposix4"
12214 done
12216 LIBS="$save_LIBS"
12218 # We can save a little space at runtime if the mutex has m_count
12219 # or __m_count. This is a nice hack for Linux.
12220 cat >conftest.$ac_ext <<_ACEOF
12221 /* confdefs.h. */
12222 _ACEOF
12223 cat confdefs.h >>conftest.$ac_ext
12224 cat >>conftest.$ac_ext <<_ACEOF
12225 /* end confdefs.h. */
12226 #include <pthread.h>
12228 main ()
12231 extern pthread_mutex_t *mutex; int q = mutex->m_count;
12234 return 0;
12236 _ACEOF
12237 rm -f conftest.$ac_objext
12238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12239 (eval $ac_compile) 2>conftest.er1
12240 ac_status=$?
12241 grep -v '^ *+' conftest.er1 >conftest.err
12242 rm -f conftest.er1
12243 cat conftest.err >&5
12244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245 (exit $ac_status); } &&
12246 { ac_try='test -z "$ac_c_werror_flag"
12247 || test ! -s conftest.err'
12248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12249 (eval $ac_try) 2>&5
12250 ac_status=$?
12251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252 (exit $ac_status); }; } &&
12253 { ac_try='test -s conftest.$ac_objext'
12254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12255 (eval $ac_try) 2>&5
12256 ac_status=$?
12257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258 (exit $ac_status); }; }; then
12260 cat >>confdefs.h <<\_ACEOF
12261 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
12262 _ACEOF
12264 else
12265 echo "$as_me: failed program was:" >&5
12266 sed 's/^/| /' conftest.$ac_ext >&5
12269 cat >conftest.$ac_ext <<_ACEOF
12270 /* confdefs.h. */
12271 _ACEOF
12272 cat confdefs.h >>conftest.$ac_ext
12273 cat >>conftest.$ac_ext <<_ACEOF
12274 /* end confdefs.h. */
12275 #include <pthread.h>
12277 main ()
12280 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
12283 return 0;
12285 _ACEOF
12286 rm -f conftest.$ac_objext
12287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12288 (eval $ac_compile) 2>conftest.er1
12289 ac_status=$?
12290 grep -v '^ *+' conftest.er1 >conftest.err
12291 rm -f conftest.er1
12292 cat conftest.err >&5
12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294 (exit $ac_status); } &&
12295 { ac_try='test -z "$ac_c_werror_flag"
12296 || test ! -s conftest.err'
12297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12298 (eval $ac_try) 2>&5
12299 ac_status=$?
12300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301 (exit $ac_status); }; } &&
12302 { ac_try='test -s conftest.$ac_objext'
12303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12304 (eval $ac_try) 2>&5
12305 ac_status=$?
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); }; }; then
12309 cat >>confdefs.h <<\_ACEOF
12310 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
12311 _ACEOF
12313 else
12314 echo "$as_me: failed program was:" >&5
12315 sed 's/^/| /' conftest.$ac_ext >&5
12318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12323 # We require a way to get the time.
12324 time_found=no
12328 for ac_func in gettimeofday time ftime
12330 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12331 echo "$as_me:$LINENO: checking for $ac_func" >&5
12332 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12333 if eval "test \"\${$as_ac_var+set}\" = set"; then
12334 echo $ECHO_N "(cached) $ECHO_C" >&6
12335 else
12336 if test x$gcc_no_link = xyes; then
12337 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12338 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12339 { (exit 1); exit 1; }; }
12341 cat >conftest.$ac_ext <<_ACEOF
12342 /* confdefs.h. */
12343 _ACEOF
12344 cat confdefs.h >>conftest.$ac_ext
12345 cat >>conftest.$ac_ext <<_ACEOF
12346 /* end confdefs.h. */
12347 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12349 #define $ac_func innocuous_$ac_func
12351 /* System header to define __stub macros and hopefully few prototypes,
12352 which can conflict with char $ac_func (); below.
12353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12354 <limits.h> exists even on freestanding compilers. */
12356 #ifdef __STDC__
12357 # include <limits.h>
12358 #else
12359 # include <assert.h>
12360 #endif
12362 #undef $ac_func
12364 /* Override any gcc2 internal prototype to avoid an error. */
12365 #ifdef __cplusplus
12366 extern "C"
12368 #endif
12369 /* We use char because int might match the return type of a gcc2
12370 builtin and then its argument prototype would still apply. */
12371 char $ac_func ();
12372 /* The GNU C library defines this for functions which it implements
12373 to always fail with ENOSYS. Some functions are actually named
12374 something starting with __ and the normal name is an alias. */
12375 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12376 choke me
12377 #else
12378 char (*f) () = $ac_func;
12379 #endif
12380 #ifdef __cplusplus
12382 #endif
12385 main ()
12387 return f != $ac_func;
12389 return 0;
12391 _ACEOF
12392 rm -f conftest.$ac_objext conftest$ac_exeext
12393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12394 (eval $ac_link) 2>conftest.er1
12395 ac_status=$?
12396 grep -v '^ *+' conftest.er1 >conftest.err
12397 rm -f conftest.er1
12398 cat conftest.err >&5
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); } &&
12401 { ac_try='test -z "$ac_c_werror_flag"
12402 || test ! -s conftest.err'
12403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12404 (eval $ac_try) 2>&5
12405 ac_status=$?
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); }; } &&
12408 { ac_try='test -s conftest$ac_exeext'
12409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12410 (eval $ac_try) 2>&5
12411 ac_status=$?
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); }; }; then
12414 eval "$as_ac_var=yes"
12415 else
12416 echo "$as_me: failed program was:" >&5
12417 sed 's/^/| /' conftest.$ac_ext >&5
12419 eval "$as_ac_var=no"
12421 rm -f conftest.err conftest.$ac_objext \
12422 conftest$ac_exeext conftest.$ac_ext
12424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12425 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12426 if test `eval echo '${'$as_ac_var'}'` = yes; then
12427 cat >>confdefs.h <<_ACEOF
12428 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12429 _ACEOF
12430 time_found=yes
12432 done
12434 if test "$time_found" = no; then
12435 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
12436 echo "$as_me: error: no function found to get the time" >&2;}
12437 { (exit 1); exit 1; }; }
12441 for ac_func in memmove
12443 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12444 echo "$as_me:$LINENO: checking for $ac_func" >&5
12445 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12446 if eval "test \"\${$as_ac_var+set}\" = set"; then
12447 echo $ECHO_N "(cached) $ECHO_C" >&6
12448 else
12449 if test x$gcc_no_link = xyes; then
12450 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12451 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12452 { (exit 1); exit 1; }; }
12454 cat >conftest.$ac_ext <<_ACEOF
12455 /* confdefs.h. */
12456 _ACEOF
12457 cat confdefs.h >>conftest.$ac_ext
12458 cat >>conftest.$ac_ext <<_ACEOF
12459 /* end confdefs.h. */
12460 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12462 #define $ac_func innocuous_$ac_func
12464 /* System header to define __stub macros and hopefully few prototypes,
12465 which can conflict with char $ac_func (); below.
12466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12467 <limits.h> exists even on freestanding compilers. */
12469 #ifdef __STDC__
12470 # include <limits.h>
12471 #else
12472 # include <assert.h>
12473 #endif
12475 #undef $ac_func
12477 /* Override any gcc2 internal prototype to avoid an error. */
12478 #ifdef __cplusplus
12479 extern "C"
12481 #endif
12482 /* We use char because int might match the return type of a gcc2
12483 builtin and then its argument prototype would still apply. */
12484 char $ac_func ();
12485 /* The GNU C library defines this for functions which it implements
12486 to always fail with ENOSYS. Some functions are actually named
12487 something starting with __ and the normal name is an alias. */
12488 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12489 choke me
12490 #else
12491 char (*f) () = $ac_func;
12492 #endif
12493 #ifdef __cplusplus
12495 #endif
12498 main ()
12500 return f != $ac_func;
12502 return 0;
12504 _ACEOF
12505 rm -f conftest.$ac_objext conftest$ac_exeext
12506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12507 (eval $ac_link) 2>conftest.er1
12508 ac_status=$?
12509 grep -v '^ *+' conftest.er1 >conftest.err
12510 rm -f conftest.er1
12511 cat conftest.err >&5
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); } &&
12514 { ac_try='test -z "$ac_c_werror_flag"
12515 || test ! -s conftest.err'
12516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12517 (eval $ac_try) 2>&5
12518 ac_status=$?
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); }; } &&
12521 { ac_try='test -s conftest$ac_exeext'
12522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12523 (eval $ac_try) 2>&5
12524 ac_status=$?
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); }; }; then
12527 eval "$as_ac_var=yes"
12528 else
12529 echo "$as_me: failed program was:" >&5
12530 sed 's/^/| /' conftest.$ac_ext >&5
12532 eval "$as_ac_var=no"
12534 rm -f conftest.err conftest.$ac_objext \
12535 conftest$ac_exeext conftest.$ac_ext
12537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12538 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12539 if test `eval echo '${'$as_ac_var'}'` = yes; then
12540 cat >>confdefs.h <<_ACEOF
12541 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12542 _ACEOF
12545 done
12548 # We require memcpy.
12549 memcpy_found=no
12551 for ac_func in memcpy
12553 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12554 echo "$as_me:$LINENO: checking for $ac_func" >&5
12555 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12556 if eval "test \"\${$as_ac_var+set}\" = set"; then
12557 echo $ECHO_N "(cached) $ECHO_C" >&6
12558 else
12559 if test x$gcc_no_link = xyes; then
12560 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12561 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12562 { (exit 1); exit 1; }; }
12564 cat >conftest.$ac_ext <<_ACEOF
12565 /* confdefs.h. */
12566 _ACEOF
12567 cat confdefs.h >>conftest.$ac_ext
12568 cat >>conftest.$ac_ext <<_ACEOF
12569 /* end confdefs.h. */
12570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12572 #define $ac_func innocuous_$ac_func
12574 /* System header to define __stub macros and hopefully few prototypes,
12575 which can conflict with char $ac_func (); below.
12576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12577 <limits.h> exists even on freestanding compilers. */
12579 #ifdef __STDC__
12580 # include <limits.h>
12581 #else
12582 # include <assert.h>
12583 #endif
12585 #undef $ac_func
12587 /* Override any gcc2 internal prototype to avoid an error. */
12588 #ifdef __cplusplus
12589 extern "C"
12591 #endif
12592 /* We use char because int might match the return type of a gcc2
12593 builtin and then its argument prototype would still apply. */
12594 char $ac_func ();
12595 /* The GNU C library defines this for functions which it implements
12596 to always fail with ENOSYS. Some functions are actually named
12597 something starting with __ and the normal name is an alias. */
12598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12599 choke me
12600 #else
12601 char (*f) () = $ac_func;
12602 #endif
12603 #ifdef __cplusplus
12605 #endif
12608 main ()
12610 return f != $ac_func;
12612 return 0;
12614 _ACEOF
12615 rm -f conftest.$ac_objext conftest$ac_exeext
12616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12617 (eval $ac_link) 2>conftest.er1
12618 ac_status=$?
12619 grep -v '^ *+' conftest.er1 >conftest.err
12620 rm -f conftest.er1
12621 cat conftest.err >&5
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); } &&
12624 { ac_try='test -z "$ac_c_werror_flag"
12625 || test ! -s conftest.err'
12626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12627 (eval $ac_try) 2>&5
12628 ac_status=$?
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); }; } &&
12631 { ac_try='test -s conftest$ac_exeext'
12632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12633 (eval $ac_try) 2>&5
12634 ac_status=$?
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); }; }; then
12637 eval "$as_ac_var=yes"
12638 else
12639 echo "$as_me: failed program was:" >&5
12640 sed 's/^/| /' conftest.$ac_ext >&5
12642 eval "$as_ac_var=no"
12644 rm -f conftest.err conftest.$ac_objext \
12645 conftest$ac_exeext conftest.$ac_ext
12647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12648 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12649 if test `eval echo '${'$as_ac_var'}'` = yes; then
12650 cat >>confdefs.h <<_ACEOF
12651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12652 _ACEOF
12653 memcpy_found=yes
12655 done
12657 if test "$memcpy_found" = no; then
12658 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
12659 echo "$as_me: error: memcpy is required" >&2;}
12660 { (exit 1); exit 1; }; }
12663 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12664 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12665 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12666 echo $ECHO_N "(cached) $ECHO_C" >&6
12667 else
12668 ac_check_lib_save_LIBS=$LIBS
12669 LIBS="-ldl $LIBS"
12670 if test x$gcc_no_link = xyes; then
12671 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12672 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12673 { (exit 1); exit 1; }; }
12675 cat >conftest.$ac_ext <<_ACEOF
12676 /* confdefs.h. */
12677 _ACEOF
12678 cat confdefs.h >>conftest.$ac_ext
12679 cat >>conftest.$ac_ext <<_ACEOF
12680 /* end confdefs.h. */
12682 /* Override any gcc2 internal prototype to avoid an error. */
12683 #ifdef __cplusplus
12684 extern "C"
12685 #endif
12686 /* We use char because int might match the return type of a gcc2
12687 builtin and then its argument prototype would still apply. */
12688 char dlopen ();
12690 main ()
12692 dlopen ();
12694 return 0;
12696 _ACEOF
12697 rm -f conftest.$ac_objext conftest$ac_exeext
12698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12699 (eval $ac_link) 2>conftest.er1
12700 ac_status=$?
12701 grep -v '^ *+' conftest.er1 >conftest.err
12702 rm -f conftest.er1
12703 cat conftest.err >&5
12704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705 (exit $ac_status); } &&
12706 { ac_try='test -z "$ac_c_werror_flag"
12707 || test ! -s conftest.err'
12708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12709 (eval $ac_try) 2>&5
12710 ac_status=$?
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); }; } &&
12713 { ac_try='test -s conftest$ac_exeext'
12714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12715 (eval $ac_try) 2>&5
12716 ac_status=$?
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); }; }; then
12719 ac_cv_lib_dl_dlopen=yes
12720 else
12721 echo "$as_me: failed program was:" >&5
12722 sed 's/^/| /' conftest.$ac_ext >&5
12724 ac_cv_lib_dl_dlopen=no
12726 rm -f conftest.err conftest.$ac_objext \
12727 conftest$ac_exeext conftest.$ac_ext
12728 LIBS=$ac_check_lib_save_LIBS
12730 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12731 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12732 if test $ac_cv_lib_dl_dlopen = yes; then
12735 cat >>confdefs.h <<\_ACEOF
12736 #define HAVE_DLOPEN 1
12737 _ACEOF
12742 # Some library-finding code we stole from Tcl.
12743 #--------------------------------------------------------------------
12744 # Check for the existence of the -lsocket and -lnsl libraries.
12745 # The order here is important, so that they end up in the right
12746 # order in the command line generated by make. Here are some
12747 # special considerations:
12748 # 1. Use "connect" and "accept" to check for -lsocket, and
12749 # "gethostbyname" to check for -lnsl.
12750 # 2. Use each function name only once: can't redo a check because
12751 # autoconf caches the results of the last check and won't redo it.
12752 # 3. Use -lnsl and -lsocket only if they supply procedures that
12753 # aren't already present in the normal libraries. This is because
12754 # IRIX 5.2 has libraries, but they aren't needed and they're
12755 # bogus: they goof up name resolution if used.
12756 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
12757 # To get around this problem, check for both libraries together
12758 # if -lsocket doesn't work by itself.
12759 #--------------------------------------------------------------------
12761 echo "$as_me:$LINENO: checking for socket libraries" >&5
12762 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
12763 if test "${gcj_cv_lib_sockets+set}" = set; then
12764 echo $ECHO_N "(cached) $ECHO_C" >&6
12765 else
12766 gcj_cv_lib_sockets=
12767 gcj_checkBoth=0
12768 unset ac_cv_func_connect
12769 echo "$as_me:$LINENO: checking for connect" >&5
12770 echo $ECHO_N "checking for connect... $ECHO_C" >&6
12771 if test "${ac_cv_func_connect+set}" = set; then
12772 echo $ECHO_N "(cached) $ECHO_C" >&6
12773 else
12774 if test x$gcc_no_link = xyes; then
12775 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12776 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12777 { (exit 1); exit 1; }; }
12779 cat >conftest.$ac_ext <<_ACEOF
12780 /* confdefs.h. */
12781 _ACEOF
12782 cat confdefs.h >>conftest.$ac_ext
12783 cat >>conftest.$ac_ext <<_ACEOF
12784 /* end confdefs.h. */
12785 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
12786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12787 #define connect innocuous_connect
12789 /* System header to define __stub macros and hopefully few prototypes,
12790 which can conflict with char connect (); below.
12791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12792 <limits.h> exists even on freestanding compilers. */
12794 #ifdef __STDC__
12795 # include <limits.h>
12796 #else
12797 # include <assert.h>
12798 #endif
12800 #undef connect
12802 /* Override any gcc2 internal prototype to avoid an error. */
12803 #ifdef __cplusplus
12804 extern "C"
12806 #endif
12807 /* We use char because int might match the return type of a gcc2
12808 builtin and then its argument prototype would still apply. */
12809 char connect ();
12810 /* The GNU C library defines this for functions which it implements
12811 to always fail with ENOSYS. Some functions are actually named
12812 something starting with __ and the normal name is an alias. */
12813 #if defined (__stub_connect) || defined (__stub___connect)
12814 choke me
12815 #else
12816 char (*f) () = connect;
12817 #endif
12818 #ifdef __cplusplus
12820 #endif
12823 main ()
12825 return f != connect;
12827 return 0;
12829 _ACEOF
12830 rm -f conftest.$ac_objext conftest$ac_exeext
12831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12832 (eval $ac_link) 2>conftest.er1
12833 ac_status=$?
12834 grep -v '^ *+' conftest.er1 >conftest.err
12835 rm -f conftest.er1
12836 cat conftest.err >&5
12837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838 (exit $ac_status); } &&
12839 { ac_try='test -z "$ac_c_werror_flag"
12840 || test ! -s conftest.err'
12841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12842 (eval $ac_try) 2>&5
12843 ac_status=$?
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); }; } &&
12846 { ac_try='test -s conftest$ac_exeext'
12847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12848 (eval $ac_try) 2>&5
12849 ac_status=$?
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); }; }; then
12852 ac_cv_func_connect=yes
12853 else
12854 echo "$as_me: failed program was:" >&5
12855 sed 's/^/| /' conftest.$ac_ext >&5
12857 ac_cv_func_connect=no
12859 rm -f conftest.err conftest.$ac_objext \
12860 conftest$ac_exeext conftest.$ac_ext
12862 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
12863 echo "${ECHO_T}$ac_cv_func_connect" >&6
12864 if test $ac_cv_func_connect = yes; then
12865 gcj_checkSocket=0
12866 else
12867 gcj_checkSocket=1
12870 if test "$gcj_checkSocket" = 1; then
12871 unset ac_cv_func_connect
12872 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
12873 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
12874 if test "${ac_cv_lib_socket_main+set}" = set; then
12875 echo $ECHO_N "(cached) $ECHO_C" >&6
12876 else
12877 ac_check_lib_save_LIBS=$LIBS
12878 LIBS="-lsocket $LIBS"
12879 if test x$gcc_no_link = xyes; then
12880 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12881 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12882 { (exit 1); exit 1; }; }
12884 cat >conftest.$ac_ext <<_ACEOF
12885 /* confdefs.h. */
12886 _ACEOF
12887 cat confdefs.h >>conftest.$ac_ext
12888 cat >>conftest.$ac_ext <<_ACEOF
12889 /* end confdefs.h. */
12893 main ()
12895 main ();
12897 return 0;
12899 _ACEOF
12900 rm -f conftest.$ac_objext conftest$ac_exeext
12901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12902 (eval $ac_link) 2>conftest.er1
12903 ac_status=$?
12904 grep -v '^ *+' conftest.er1 >conftest.err
12905 rm -f conftest.er1
12906 cat conftest.err >&5
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); } &&
12909 { ac_try='test -z "$ac_c_werror_flag"
12910 || test ! -s conftest.err'
12911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12912 (eval $ac_try) 2>&5
12913 ac_status=$?
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); }; } &&
12916 { ac_try='test -s conftest$ac_exeext'
12917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12918 (eval $ac_try) 2>&5
12919 ac_status=$?
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); }; }; then
12922 ac_cv_lib_socket_main=yes
12923 else
12924 echo "$as_me: failed program was:" >&5
12925 sed 's/^/| /' conftest.$ac_ext >&5
12927 ac_cv_lib_socket_main=no
12929 rm -f conftest.err conftest.$ac_objext \
12930 conftest$ac_exeext conftest.$ac_ext
12931 LIBS=$ac_check_lib_save_LIBS
12933 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
12934 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
12935 if test $ac_cv_lib_socket_main = yes; then
12936 gcj_cv_lib_sockets="-lsocket"
12937 else
12938 gcj_checkBoth=1
12942 if test "$gcj_checkBoth" = 1; then
12943 gcj_oldLibs=$LIBS
12944 LIBS="$LIBS -lsocket -lnsl"
12945 unset ac_cv_func_accept
12946 echo "$as_me:$LINENO: checking for accept" >&5
12947 echo $ECHO_N "checking for accept... $ECHO_C" >&6
12948 if test "${ac_cv_func_accept+set}" = set; then
12949 echo $ECHO_N "(cached) $ECHO_C" >&6
12950 else
12951 if test x$gcc_no_link = xyes; then
12952 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12953 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12954 { (exit 1); exit 1; }; }
12956 cat >conftest.$ac_ext <<_ACEOF
12957 /* confdefs.h. */
12958 _ACEOF
12959 cat confdefs.h >>conftest.$ac_ext
12960 cat >>conftest.$ac_ext <<_ACEOF
12961 /* end confdefs.h. */
12962 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
12963 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12964 #define accept innocuous_accept
12966 /* System header to define __stub macros and hopefully few prototypes,
12967 which can conflict with char accept (); below.
12968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12969 <limits.h> exists even on freestanding compilers. */
12971 #ifdef __STDC__
12972 # include <limits.h>
12973 #else
12974 # include <assert.h>
12975 #endif
12977 #undef accept
12979 /* Override any gcc2 internal prototype to avoid an error. */
12980 #ifdef __cplusplus
12981 extern "C"
12983 #endif
12984 /* We use char because int might match the return type of a gcc2
12985 builtin and then its argument prototype would still apply. */
12986 char accept ();
12987 /* The GNU C library defines this for functions which it implements
12988 to always fail with ENOSYS. Some functions are actually named
12989 something starting with __ and the normal name is an alias. */
12990 #if defined (__stub_accept) || defined (__stub___accept)
12991 choke me
12992 #else
12993 char (*f) () = accept;
12994 #endif
12995 #ifdef __cplusplus
12997 #endif
13000 main ()
13002 return f != accept;
13004 return 0;
13006 _ACEOF
13007 rm -f conftest.$ac_objext conftest$ac_exeext
13008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13009 (eval $ac_link) 2>conftest.er1
13010 ac_status=$?
13011 grep -v '^ *+' conftest.er1 >conftest.err
13012 rm -f conftest.er1
13013 cat conftest.err >&5
13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015 (exit $ac_status); } &&
13016 { ac_try='test -z "$ac_c_werror_flag"
13017 || test ! -s conftest.err'
13018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13019 (eval $ac_try) 2>&5
13020 ac_status=$?
13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022 (exit $ac_status); }; } &&
13023 { ac_try='test -s conftest$ac_exeext'
13024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13025 (eval $ac_try) 2>&5
13026 ac_status=$?
13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028 (exit $ac_status); }; }; then
13029 ac_cv_func_accept=yes
13030 else
13031 echo "$as_me: failed program was:" >&5
13032 sed 's/^/| /' conftest.$ac_ext >&5
13034 ac_cv_func_accept=no
13036 rm -f conftest.err conftest.$ac_objext \
13037 conftest$ac_exeext conftest.$ac_ext
13039 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
13040 echo "${ECHO_T}$ac_cv_func_accept" >&6
13041 if test $ac_cv_func_accept = yes; then
13042 gcj_checkNsl=0
13043 gcj_cv_lib_sockets="-lsocket -lnsl"
13046 unset ac_cv_func_accept
13047 LIBS=$gcj_oldLibs
13049 unset ac_cv_func_gethostbyname
13050 gcj_oldLibs=$LIBS
13051 LIBS="$LIBS $gcj_cv_lib_sockets"
13052 echo "$as_me:$LINENO: checking for gethostbyname" >&5
13053 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
13054 if test "${ac_cv_func_gethostbyname+set}" = set; then
13055 echo $ECHO_N "(cached) $ECHO_C" >&6
13056 else
13057 if test x$gcc_no_link = xyes; then
13058 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13059 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13060 { (exit 1); exit 1; }; }
13062 cat >conftest.$ac_ext <<_ACEOF
13063 /* confdefs.h. */
13064 _ACEOF
13065 cat confdefs.h >>conftest.$ac_ext
13066 cat >>conftest.$ac_ext <<_ACEOF
13067 /* end confdefs.h. */
13068 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
13069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13070 #define gethostbyname innocuous_gethostbyname
13072 /* System header to define __stub macros and hopefully few prototypes,
13073 which can conflict with char gethostbyname (); below.
13074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13075 <limits.h> exists even on freestanding compilers. */
13077 #ifdef __STDC__
13078 # include <limits.h>
13079 #else
13080 # include <assert.h>
13081 #endif
13083 #undef gethostbyname
13085 /* Override any gcc2 internal prototype to avoid an error. */
13086 #ifdef __cplusplus
13087 extern "C"
13089 #endif
13090 /* We use char because int might match the return type of a gcc2
13091 builtin and then its argument prototype would still apply. */
13092 char gethostbyname ();
13093 /* The GNU C library defines this for functions which it implements
13094 to always fail with ENOSYS. Some functions are actually named
13095 something starting with __ and the normal name is an alias. */
13096 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13097 choke me
13098 #else
13099 char (*f) () = gethostbyname;
13100 #endif
13101 #ifdef __cplusplus
13103 #endif
13106 main ()
13108 return f != gethostbyname;
13110 return 0;
13112 _ACEOF
13113 rm -f conftest.$ac_objext conftest$ac_exeext
13114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13115 (eval $ac_link) 2>conftest.er1
13116 ac_status=$?
13117 grep -v '^ *+' conftest.er1 >conftest.err
13118 rm -f conftest.er1
13119 cat conftest.err >&5
13120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121 (exit $ac_status); } &&
13122 { ac_try='test -z "$ac_c_werror_flag"
13123 || test ! -s conftest.err'
13124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13125 (eval $ac_try) 2>&5
13126 ac_status=$?
13127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128 (exit $ac_status); }; } &&
13129 { ac_try='test -s conftest$ac_exeext'
13130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13131 (eval $ac_try) 2>&5
13132 ac_status=$?
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 (exit $ac_status); }; }; then
13135 ac_cv_func_gethostbyname=yes
13136 else
13137 echo "$as_me: failed program was:" >&5
13138 sed 's/^/| /' conftest.$ac_ext >&5
13140 ac_cv_func_gethostbyname=no
13142 rm -f conftest.err conftest.$ac_objext \
13143 conftest$ac_exeext conftest.$ac_ext
13145 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
13146 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
13147 if test $ac_cv_func_gethostbyname = yes; then
13149 else
13150 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
13151 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
13152 if test "${ac_cv_lib_nsl_main+set}" = set; then
13153 echo $ECHO_N "(cached) $ECHO_C" >&6
13154 else
13155 ac_check_lib_save_LIBS=$LIBS
13156 LIBS="-lnsl $LIBS"
13157 if test x$gcc_no_link = xyes; then
13158 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13159 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13160 { (exit 1); exit 1; }; }
13162 cat >conftest.$ac_ext <<_ACEOF
13163 /* confdefs.h. */
13164 _ACEOF
13165 cat confdefs.h >>conftest.$ac_ext
13166 cat >>conftest.$ac_ext <<_ACEOF
13167 /* end confdefs.h. */
13171 main ()
13173 main ();
13175 return 0;
13177 _ACEOF
13178 rm -f conftest.$ac_objext conftest$ac_exeext
13179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13180 (eval $ac_link) 2>conftest.er1
13181 ac_status=$?
13182 grep -v '^ *+' conftest.er1 >conftest.err
13183 rm -f conftest.er1
13184 cat conftest.err >&5
13185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 (exit $ac_status); } &&
13187 { ac_try='test -z "$ac_c_werror_flag"
13188 || test ! -s conftest.err'
13189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13190 (eval $ac_try) 2>&5
13191 ac_status=$?
13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); }; } &&
13194 { ac_try='test -s conftest$ac_exeext'
13195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13196 (eval $ac_try) 2>&5
13197 ac_status=$?
13198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199 (exit $ac_status); }; }; then
13200 ac_cv_lib_nsl_main=yes
13201 else
13202 echo "$as_me: failed program was:" >&5
13203 sed 's/^/| /' conftest.$ac_ext >&5
13205 ac_cv_lib_nsl_main=no
13207 rm -f conftest.err conftest.$ac_objext \
13208 conftest$ac_exeext conftest.$ac_ext
13209 LIBS=$ac_check_lib_save_LIBS
13211 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
13212 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
13213 if test $ac_cv_lib_nsl_main = yes; then
13214 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
13219 unset ac_cv_func_gethostbyname
13220 LIBS=$gcj_oldLIBS
13223 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
13224 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
13225 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
13227 if test "$with_system_zlib" = yes; then
13228 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
13229 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
13230 if test "${ac_cv_lib_z_deflate+set}" = set; then
13231 echo $ECHO_N "(cached) $ECHO_C" >&6
13232 else
13233 ac_check_lib_save_LIBS=$LIBS
13234 LIBS="-lz $LIBS"
13235 if test x$gcc_no_link = xyes; then
13236 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13237 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13238 { (exit 1); exit 1; }; }
13240 cat >conftest.$ac_ext <<_ACEOF
13241 /* confdefs.h. */
13242 _ACEOF
13243 cat confdefs.h >>conftest.$ac_ext
13244 cat >>conftest.$ac_ext <<_ACEOF
13245 /* end confdefs.h. */
13247 /* Override any gcc2 internal prototype to avoid an error. */
13248 #ifdef __cplusplus
13249 extern "C"
13250 #endif
13251 /* We use char because int might match the return type of a gcc2
13252 builtin and then its argument prototype would still apply. */
13253 char deflate ();
13255 main ()
13257 deflate ();
13259 return 0;
13261 _ACEOF
13262 rm -f conftest.$ac_objext conftest$ac_exeext
13263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13264 (eval $ac_link) 2>conftest.er1
13265 ac_status=$?
13266 grep -v '^ *+' conftest.er1 >conftest.err
13267 rm -f conftest.er1
13268 cat conftest.err >&5
13269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 (exit $ac_status); } &&
13271 { ac_try='test -z "$ac_c_werror_flag"
13272 || test ! -s conftest.err'
13273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13274 (eval $ac_try) 2>&5
13275 ac_status=$?
13276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277 (exit $ac_status); }; } &&
13278 { ac_try='test -s conftest$ac_exeext'
13279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13280 (eval $ac_try) 2>&5
13281 ac_status=$?
13282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283 (exit $ac_status); }; }; then
13284 ac_cv_lib_z_deflate=yes
13285 else
13286 echo "$as_me: failed program was:" >&5
13287 sed 's/^/| /' conftest.$ac_ext >&5
13289 ac_cv_lib_z_deflate=no
13291 rm -f conftest.err conftest.$ac_objext \
13292 conftest$ac_exeext conftest.$ac_ext
13293 LIBS=$ac_check_lib_save_LIBS
13295 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
13296 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
13297 if test $ac_cv_lib_z_deflate = yes; then
13298 ZLIBSPEC=-lz
13299 else
13300 ZLIBSPEC=
13305 # Test for Gtk stuff, if asked for.
13306 if test "$use_gtk_awt" = yes; then
13308 succeeded=no
13310 if test -z "$PKG_CONFIG"; then
13311 # Extract the first word of "pkg-config", so it can be a program name with args.
13312 set dummy pkg-config; ac_word=$2
13313 echo "$as_me:$LINENO: checking for $ac_word" >&5
13314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13315 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13316 echo $ECHO_N "(cached) $ECHO_C" >&6
13317 else
13318 case $PKG_CONFIG in
13319 [\\/]* | ?:[\\/]*)
13320 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13324 for as_dir in $PATH
13326 IFS=$as_save_IFS
13327 test -z "$as_dir" && as_dir=.
13328 for ac_exec_ext in '' $ac_executable_extensions; do
13329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13330 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13332 break 2
13334 done
13335 done
13337 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13339 esac
13341 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13343 if test -n "$PKG_CONFIG"; then
13344 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13345 echo "${ECHO_T}$PKG_CONFIG" >&6
13346 else
13347 echo "$as_me:$LINENO: result: no" >&5
13348 echo "${ECHO_T}no" >&6
13353 if test "$PKG_CONFIG" = "no" ; then
13354 echo "*** The pkg-config script could not be found. Make sure it is"
13355 echo "*** in your path, or set the PKG_CONFIG environment variable"
13356 echo "*** to the full path to pkg-config."
13357 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13358 else
13359 PKG_CONFIG_MIN_VERSION=0.9.0
13360 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13361 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
13362 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
13364 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
13365 echo "$as_me:$LINENO: result: yes" >&5
13366 echo "${ECHO_T}yes" >&6
13367 succeeded=yes
13369 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
13370 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
13371 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
13372 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
13373 echo "${ECHO_T}$GTK_CFLAGS" >&6
13375 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
13376 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
13377 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
13378 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
13379 echo "${ECHO_T}$GTK_LIBS" >&6
13380 else
13381 GTK_CFLAGS=""
13382 GTK_LIBS=""
13383 ## If we have a custom action on failure, don't print errors, but
13384 ## do set a variable so people can do so.
13385 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
13386 echo $GTK_PKG_ERRORS
13391 else
13392 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13393 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13397 if test $succeeded = yes; then
13399 else
13400 { { 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
13401 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;}
13402 { (exit 1); exit 1; }; }
13409 succeeded=no
13411 if test -z "$PKG_CONFIG"; then
13412 # Extract the first word of "pkg-config", so it can be a program name with args.
13413 set dummy pkg-config; ac_word=$2
13414 echo "$as_me:$LINENO: checking for $ac_word" >&5
13415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13416 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13417 echo $ECHO_N "(cached) $ECHO_C" >&6
13418 else
13419 case $PKG_CONFIG in
13420 [\\/]* | ?:[\\/]*)
13421 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13425 for as_dir in $PATH
13427 IFS=$as_save_IFS
13428 test -z "$as_dir" && as_dir=.
13429 for ac_exec_ext in '' $ac_executable_extensions; do
13430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13431 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13433 break 2
13435 done
13436 done
13438 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13440 esac
13442 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13444 if test -n "$PKG_CONFIG"; then
13445 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13446 echo "${ECHO_T}$PKG_CONFIG" >&6
13447 else
13448 echo "$as_me:$LINENO: result: no" >&5
13449 echo "${ECHO_T}no" >&6
13454 if test "$PKG_CONFIG" = "no" ; then
13455 echo "*** The pkg-config script could not be found. Make sure it is"
13456 echo "*** in your path, or set the PKG_CONFIG environment variable"
13457 echo "*** to the full path to pkg-config."
13458 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13459 else
13460 PKG_CONFIG_MIN_VERSION=0.9.0
13461 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13462 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
13463 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
13465 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
13466 echo "$as_me:$LINENO: result: yes" >&5
13467 echo "${ECHO_T}yes" >&6
13468 succeeded=yes
13470 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
13471 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
13472 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13473 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
13474 echo "${ECHO_T}$GLIB_CFLAGS" >&6
13476 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
13477 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
13478 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13479 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
13480 echo "${ECHO_T}$GLIB_LIBS" >&6
13481 else
13482 GLIB_CFLAGS=""
13483 GLIB_LIBS=""
13484 ## If we have a custom action on failure, don't print errors, but
13485 ## do set a variable so people can do so.
13486 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13487 echo $GLIB_PKG_ERRORS
13492 else
13493 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13494 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13498 if test $succeeded = yes; then
13500 else
13501 { { 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
13502 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;}
13503 { (exit 1); exit 1; }; }
13510 succeeded=no
13512 if test -z "$PKG_CONFIG"; then
13513 # Extract the first word of "pkg-config", so it can be a program name with args.
13514 set dummy pkg-config; ac_word=$2
13515 echo "$as_me:$LINENO: checking for $ac_word" >&5
13516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13517 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13518 echo $ECHO_N "(cached) $ECHO_C" >&6
13519 else
13520 case $PKG_CONFIG in
13521 [\\/]* | ?:[\\/]*)
13522 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13526 for as_dir in $PATH
13528 IFS=$as_save_IFS
13529 test -z "$as_dir" && as_dir=.
13530 for ac_exec_ext in '' $ac_executable_extensions; do
13531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13532 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13534 break 2
13536 done
13537 done
13539 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13541 esac
13543 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13545 if test -n "$PKG_CONFIG"; then
13546 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13547 echo "${ECHO_T}$PKG_CONFIG" >&6
13548 else
13549 echo "$as_me:$LINENO: result: no" >&5
13550 echo "${ECHO_T}no" >&6
13555 if test "$PKG_CONFIG" = "no" ; then
13556 echo "*** The pkg-config script could not be found. Make sure it is"
13557 echo "*** in your path, or set the PKG_CONFIG environment variable"
13558 echo "*** to the full path to pkg-config."
13559 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13560 else
13561 PKG_CONFIG_MIN_VERSION=0.9.0
13562 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13563 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
13564 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
13566 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
13567 echo "$as_me:$LINENO: result: yes" >&5
13568 echo "${ECHO_T}yes" >&6
13569 succeeded=yes
13571 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
13572 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
13573 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
13574 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
13575 echo "${ECHO_T}$LIBART_CFLAGS" >&6
13577 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
13578 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
13579 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
13580 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
13581 echo "${ECHO_T}$LIBART_LIBS" >&6
13582 else
13583 LIBART_CFLAGS=""
13584 LIBART_LIBS=""
13585 ## If we have a custom action on failure, don't print errors, but
13586 ## do set a variable so people can do so.
13587 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
13588 echo $LIBART_PKG_ERRORS
13593 else
13594 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13595 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13599 if test $succeeded = yes; then
13601 else
13602 { { 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
13603 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;}
13604 { (exit 1); exit 1; }; }
13611 # On Solaris, and maybe other architectures, the Boehm collector
13612 # requires -ldl.
13613 if test "$GC" = boehm; then
13614 echo "$as_me:$LINENO: checking for main in -ldl" >&5
13615 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
13616 if test "${ac_cv_lib_dl_main+set}" = set; then
13617 echo $ECHO_N "(cached) $ECHO_C" >&6
13618 else
13619 ac_check_lib_save_LIBS=$LIBS
13620 LIBS="-ldl $LIBS"
13621 if test x$gcc_no_link = xyes; then
13622 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13623 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13624 { (exit 1); exit 1; }; }
13626 cat >conftest.$ac_ext <<_ACEOF
13627 /* confdefs.h. */
13628 _ACEOF
13629 cat confdefs.h >>conftest.$ac_ext
13630 cat >>conftest.$ac_ext <<_ACEOF
13631 /* end confdefs.h. */
13635 main ()
13637 main ();
13639 return 0;
13641 _ACEOF
13642 rm -f conftest.$ac_objext conftest$ac_exeext
13643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13644 (eval $ac_link) 2>conftest.er1
13645 ac_status=$?
13646 grep -v '^ *+' conftest.er1 >conftest.err
13647 rm -f conftest.er1
13648 cat conftest.err >&5
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); } &&
13651 { ac_try='test -z "$ac_c_werror_flag"
13652 || test ! -s conftest.err'
13653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13654 (eval $ac_try) 2>&5
13655 ac_status=$?
13656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657 (exit $ac_status); }; } &&
13658 { ac_try='test -s conftest$ac_exeext'
13659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13660 (eval $ac_try) 2>&5
13661 ac_status=$?
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); }; }; then
13664 ac_cv_lib_dl_main=yes
13665 else
13666 echo "$as_me: failed program was:" >&5
13667 sed 's/^/| /' conftest.$ac_ext >&5
13669 ac_cv_lib_dl_main=no
13671 rm -f conftest.err conftest.$ac_objext \
13672 conftest$ac_exeext conftest.$ac_ext
13673 LIBS=$ac_check_lib_save_LIBS
13675 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
13676 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
13677 if test $ac_cv_lib_dl_main = yes; then
13678 SYSTEMSPEC="$SYSTEMSPEC -ldl"
13685 if test "$supply_backtrace" = yes; then
13686 SUPPLY_BACKTRACE_TRUE=
13687 SUPPLY_BACKTRACE_FALSE='#'
13688 else
13689 SUPPLY_BACKTRACE_TRUE='#'
13690 SUPPLY_BACKTRACE_FALSE=
13694 if test -z "${with_multisubdir}"; then
13695 builddotdot=.
13696 else
13697 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
13700 NATIVE=yes
13702 # Which gcj do we use?
13703 which_gcj=default
13704 built_gcc_dir="`cd ${builddotdot}/../../gcc && ${PWDCMD-pwd}`"
13705 if test -n "${with_cross_host}"; then
13706 # We are being configured with a cross compiler. We can't
13707 # use ac_exeext, because that is for the target platform.
13708 NATIVE=no
13709 cross_host_exeext=
13710 case "${with_cross_host}" in
13711 *mingw* | *cygwin*)
13712 cross_host_exeext=.exe
13714 esac
13715 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
13716 if test x"$build_noncanonical" = x"$with_cross_host"; then
13717 # Ordinary cross (host!=target and host=build)
13718 which_gcj=built
13719 else
13720 # Canadian cross (host!=target and host!=build)
13721 which_gcj=cross
13723 else
13724 which_gcj=cross
13726 else
13727 # We are being configured with a native or crossed-native compiler
13728 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
13729 if test x"$build" = x"$host"; then
13730 # True native build (host=target and host=build)
13731 which_gcj=built
13732 else
13733 # Crossed-native build (host=target and host!=build)
13734 which_gcj=cross
13736 else
13737 which_gcj=path
13740 case "${which_gcj}" in
13741 built)
13742 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
13743 GCJH='$(MULTIBUILDTOP)../$(COMPPATH)/gcc/gcjh'
13744 ZIP='$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
13746 cross)
13747 if test "x${with_newlib}" = "xyes"; then
13748 # FIXME (comment): Why is this needed?
13749 GCC_UNWIND_INCLUDE=
13750 GCJ="${target_noncanonical}-gcj"
13751 else
13752 GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
13754 ZIP=jar
13755 GCJH='$(target_noncanonical)-gcjh'
13757 path)
13758 GCJ="gcj -B`${PWDCMD-pwd}`/"
13759 ## In this case, gcj is found outside the build tree. However, zip is
13760 ## found in the build tree.
13761 ZIP='$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
13762 GCJH=gcjh
13764 esac
13769 # Create it, so that compile/link tests don't fail
13770 test -f libgcj.spec || touch libgcj.spec
13772 # We must search the source tree for java.lang, since we still don't
13773 # have libgcj.jar nor java/lang/*.class
13774 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
13775 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
13777 # Since some classes depend on this one, we need its source available
13778 # before we can do any GCJ compilation test :-(
13779 if test ! -f gnu/classpath/Configuration.java; then
13780 test -d gnu || mkdir gnu
13781 test -d gnu/classpath || mkdir gnu/classpath
13782 sed -e 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
13783 -e 's,@TOOLKIT@,$TOOLKIT,' \
13784 < $srcdir/gnu/classpath/Configuration.java.in \
13785 > gnu/classpath/Configuration.java
13786 # We do not want to redirect the output of the grep below to /dev/null,
13787 # but we add /dev/null to the input list so that grep will print the
13788 # filename of Configuration.java in case it finds any matches.
13789 if grep @ gnu/classpath/Configuration.java /dev/null; then
13790 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
13791 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
13792 { (exit 1); exit 1; }; }
13796 if test -n "$ac_tool_prefix"; then
13797 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
13798 set dummy ${ac_tool_prefix}gcj; ac_word=$2
13799 echo "$as_me:$LINENO: checking for $ac_word" >&5
13800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13801 if test "${ac_cv_prog_GCJ+set}" = set; then
13802 echo $ECHO_N "(cached) $ECHO_C" >&6
13803 else
13804 if test -n "$GCJ"; then
13805 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
13806 else
13807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13808 for as_dir in $PATH
13810 IFS=$as_save_IFS
13811 test -z "$as_dir" && as_dir=.
13812 for ac_exec_ext in '' $ac_executable_extensions; do
13813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13814 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
13815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13816 break 2
13818 done
13819 done
13823 GCJ=$ac_cv_prog_GCJ
13824 if test -n "$GCJ"; then
13825 echo "$as_me:$LINENO: result: $GCJ" >&5
13826 echo "${ECHO_T}$GCJ" >&6
13827 else
13828 echo "$as_me:$LINENO: result: no" >&5
13829 echo "${ECHO_T}no" >&6
13833 if test -z "$ac_cv_prog_GCJ"; then
13834 ac_ct_GCJ=$GCJ
13835 # Extract the first word of "gcj", so it can be a program name with args.
13836 set dummy gcj; ac_word=$2
13837 echo "$as_me:$LINENO: checking for $ac_word" >&5
13838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13839 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
13840 echo $ECHO_N "(cached) $ECHO_C" >&6
13841 else
13842 if test -n "$ac_ct_GCJ"; then
13843 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
13844 else
13845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13846 for as_dir in $PATH
13848 IFS=$as_save_IFS
13849 test -z "$as_dir" && as_dir=.
13850 for ac_exec_ext in '' $ac_executable_extensions; do
13851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13852 ac_cv_prog_ac_ct_GCJ="gcj"
13853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13854 break 2
13856 done
13857 done
13859 test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
13862 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
13863 if test -n "$ac_ct_GCJ"; then
13864 echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
13865 echo "${ECHO_T}$ac_ct_GCJ" >&6
13866 else
13867 echo "$as_me:$LINENO: result: no" >&5
13868 echo "${ECHO_T}no" >&6
13871 GCJ=$ac_ct_GCJ
13872 else
13873 GCJ="$ac_cv_prog_GCJ"
13876 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
13881 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
13883 echo "$as_me:$LINENO: checking size of void *" >&5
13884 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13885 if test "${ac_cv_sizeof_void_p+set}" = set; then
13886 echo $ECHO_N "(cached) $ECHO_C" >&6
13887 else
13888 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
13889 cat >conftest.$ac_ext <<_ACEOF
13890 /* confdefs.h. */
13891 _ACEOF
13892 cat confdefs.h >>conftest.$ac_ext
13893 cat >>conftest.$ac_ext <<_ACEOF
13894 /* end confdefs.h. */
13895 #include "confdefs.h"
13896 #include <sys/types.h>
13900 main ()
13902 switch (0) case 0: case (sizeof (void *) == $ac_size):;
13904 return 0;
13906 _ACEOF
13907 rm -f conftest.$ac_objext
13908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13909 (eval $ac_compile) 2>conftest.er1
13910 ac_status=$?
13911 grep -v '^ *+' conftest.er1 >conftest.err
13912 rm -f conftest.er1
13913 cat conftest.err >&5
13914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915 (exit $ac_status); } &&
13916 { ac_try='test -z "$ac_c_werror_flag"
13917 || test ! -s conftest.err'
13918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13919 (eval $ac_try) 2>&5
13920 ac_status=$?
13921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922 (exit $ac_status); }; } &&
13923 { ac_try='test -s conftest.$ac_objext'
13924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13925 (eval $ac_try) 2>&5
13926 ac_status=$?
13927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928 (exit $ac_status); }; }; then
13929 ac_cv_sizeof_void_p=$ac_size
13930 else
13931 echo "$as_me: failed program was:" >&5
13932 sed 's/^/| /' conftest.$ac_ext >&5
13935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13936 if test x$ac_cv_sizeof_void_p != x ; then break; fi
13937 done
13941 if test x$ac_cv_sizeof_void_p = x ; then
13942 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
13943 echo "$as_me: error: cannot determine a size for void *" >&2;}
13944 { (exit 1); exit 1; }; }
13946 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13947 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13949 cat >>confdefs.h <<_ACEOF
13950 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13951 _ACEOF
13955 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13956 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
13957 if test "${ac_cv_c_bigendian+set}" = set; then
13958 echo $ECHO_N "(cached) $ECHO_C" >&6
13959 else
13960 ac_cv_c_bigendian=unknown
13961 # See if sys/param.h defines the BYTE_ORDER macro.
13962 cat >conftest.$ac_ext <<_ACEOF
13963 /* confdefs.h. */
13964 _ACEOF
13965 cat confdefs.h >>conftest.$ac_ext
13966 cat >>conftest.$ac_ext <<_ACEOF
13967 /* end confdefs.h. */
13968 #include <sys/types.h>
13969 #include <sys/param.h>
13971 main ()
13974 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13975 bogus endian macros
13976 #endif
13978 return 0;
13980 _ACEOF
13981 rm -f conftest.$ac_objext
13982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13983 (eval $ac_compile) 2>conftest.er1
13984 ac_status=$?
13985 grep -v '^ *+' conftest.er1 >conftest.err
13986 rm -f conftest.er1
13987 cat conftest.err >&5
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); } &&
13990 { ac_try='test -z "$ac_c_werror_flag"
13991 || test ! -s conftest.err'
13992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13993 (eval $ac_try) 2>&5
13994 ac_status=$?
13995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); }; } &&
13997 { ac_try='test -s conftest.$ac_objext'
13998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13999 (eval $ac_try) 2>&5
14000 ac_status=$?
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); }; }; then
14003 # It does; now see whether it defined to BIG_ENDIAN or not.
14004 cat >conftest.$ac_ext <<_ACEOF
14005 /* confdefs.h. */
14006 _ACEOF
14007 cat confdefs.h >>conftest.$ac_ext
14008 cat >>conftest.$ac_ext <<_ACEOF
14009 /* end confdefs.h. */
14010 #include <sys/types.h>
14011 #include <sys/param.h>
14013 main ()
14016 #if BYTE_ORDER != BIG_ENDIAN
14017 not big endian
14018 #endif
14020 return 0;
14022 _ACEOF
14023 rm -f conftest.$ac_objext
14024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14025 (eval $ac_compile) 2>conftest.er1
14026 ac_status=$?
14027 grep -v '^ *+' conftest.er1 >conftest.err
14028 rm -f conftest.er1
14029 cat conftest.err >&5
14030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031 (exit $ac_status); } &&
14032 { ac_try='test -z "$ac_c_werror_flag"
14033 || test ! -s conftest.err'
14034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14035 (eval $ac_try) 2>&5
14036 ac_status=$?
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); }; } &&
14039 { ac_try='test -s conftest.$ac_objext'
14040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14041 (eval $ac_try) 2>&5
14042 ac_status=$?
14043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); }; }; then
14045 ac_cv_c_bigendian=yes
14046 else
14047 echo "$as_me: failed program was:" >&5
14048 sed 's/^/| /' conftest.$ac_ext >&5
14050 ac_cv_c_bigendian=no
14052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14053 else
14054 echo "$as_me: failed program was:" >&5
14055 sed 's/^/| /' conftest.$ac_ext >&5
14058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14059 if test $ac_cv_c_bigendian = unknown; then
14060 if test "$cross_compiling" = yes; then
14061 echo $ac_n "cross-compiling... " 2>&6
14062 else
14063 cat >conftest.$ac_ext <<_ACEOF
14064 /* confdefs.h. */
14065 _ACEOF
14066 cat confdefs.h >>conftest.$ac_ext
14067 cat >>conftest.$ac_ext <<_ACEOF
14068 /* end confdefs.h. */
14069 main () {
14070 /* Are we little or big endian? From Harbison&Steele. */
14071 union
14073 long l;
14074 char c[sizeof (long)];
14075 } u;
14076 u.l = 1;
14077 exit (u.c[sizeof (long) - 1] == 1);
14079 _ACEOF
14080 rm -f conftest$ac_exeext
14081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14082 (eval $ac_link) 2>&5
14083 ac_status=$?
14084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14087 (eval $ac_try) 2>&5
14088 ac_status=$?
14089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090 (exit $ac_status); }; }; then
14091 ac_cv_c_bigendian=no
14092 else
14093 echo "$as_me: program exited with status $ac_status" >&5
14094 echo "$as_me: failed program was:" >&5
14095 sed 's/^/| /' conftest.$ac_ext >&5
14097 ( exit $ac_status )
14098 ac_cv_c_bigendian=yes
14100 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14104 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14105 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14106 if test $ac_cv_c_bigendian = unknown; then
14107 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
14108 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
14110 cat >conftest.c <<EOF
14111 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14112 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14113 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
14114 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14115 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14116 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
14117 int main() { _ascii (); _ebcdic (); return 0; }
14119 if test -f conftest.c ; then
14120 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
14121 if test `grep -l BIGenDianSyS conftest.o` ; then
14122 echo $ac_n ' big endian probe OK, ' 1>&6
14123 ac_cv_c_bigendian=yes
14125 if test `grep -l LiTTleEnDian conftest.o` ; then
14126 echo $ac_n ' little endian probe OK, ' 1>&6
14127 if test $ac_cv_c_bigendian = yes ; then
14128 ac_cv_c_bigendian=unknown;
14129 else
14130 ac_cv_c_bigendian=no
14133 echo $ac_n 'guessing bigendian ... ' >&6
14136 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14137 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14139 if test $ac_cv_c_bigendian = yes; then
14141 cat >>confdefs.h <<\_ACEOF
14142 #define WORDS_BIGENDIAN 1
14143 _ACEOF
14146 cat >>confdefs.h <<\_ACEOF
14147 #define HOST_WORDS_BIG_ENDIAN 1
14148 _ACEOF
14150 BYTEORDER=4321
14151 else
14152 BYTEORDER=1234
14155 cat >>confdefs.h <<_ACEOF
14156 #define BYTEORDER $BYTEORDER
14157 _ACEOF
14159 if test $ac_cv_c_bigendian = unknown; then
14160 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
14161 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
14162 { (exit 1); exit 1; }; }
14166 ZLIBS=
14167 SYS_ZLIBS=
14168 ZINCS=
14170 if test -z "$ZLIBSPEC"; then
14171 # Use zlib from the GCC tree.
14172 ZINCS='-I$(top_srcdir)/../zlib'
14173 ZLIBS=../zlib/libzgcj_convenience.la
14174 else
14175 # System's zlib.
14176 SYS_ZLIBS="$ZLIBSPEC"
14188 if test "$NATIVE" = yes; then
14189 NATIVE_TRUE=
14190 NATIVE_FALSE='#'
14191 else
14192 NATIVE_TRUE='#'
14193 NATIVE_FALSE=
14198 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
14199 NEEDS_DATA_START_TRUE=
14200 NEEDS_DATA_START_FALSE='#'
14201 else
14202 NEEDS_DATA_START_TRUE='#'
14203 NEEDS_DATA_START_FALSE=
14208 # Process the option "--enable-version-specific-runtime-libs"
14209 # Calculate toolexeclibdir
14210 case ${version_specific_libs} in
14211 yes)
14212 # Need the gcc compiler version to know where to install libraries
14213 # and header files if --enable-version-specific-runtime-libs option
14214 # is selected.
14215 includedir='${libdir}/gcc/${target_noncanonical}/'$gcc_version/include/
14216 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
14217 toolexecmainlibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
14218 toolexeclibdir=$toolexecmainlibdir
14221 if test -n "$with_cross_host" &&
14222 test x"$with_cross_host" != x"no"; then
14223 # Install a library built with a cross compiler in tooldir, not libdir.
14224 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
14225 toolexecmainlibdir='$(toolexecdir)/lib'
14226 else
14227 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
14228 toolexecmainlibdir='$(libdir)'
14230 multi_os_directory=`$CC -print-multi-os-directory`
14231 case $multi_os_directory in
14232 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
14233 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
14234 esac
14236 esac
14241 # Determine gcj version number.
14242 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
14243 GCJVERSION=$gcjversion
14246 cat >>confdefs.h <<_ACEOF
14247 #define GCJVERSION "$GCJVERSION"
14248 _ACEOF
14251 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
14252 # On that system, sys/ioctl.h will not include sys/filio.h unless
14253 # BSD_COMP is defined; just including sys/filio.h is simpler.
14273 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h sys/ioctl.h sys/filio.h sys/stat.h sys/select.h sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h pwd.h sys/config.h stdint.h langinfo.h locale.h
14275 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14276 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14277 echo "$as_me:$LINENO: checking for $ac_header" >&5
14278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14279 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14280 echo $ECHO_N "(cached) $ECHO_C" >&6
14282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14283 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14284 else
14285 # Is the header compilable?
14286 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14287 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14288 cat >conftest.$ac_ext <<_ACEOF
14289 /* confdefs.h. */
14290 _ACEOF
14291 cat confdefs.h >>conftest.$ac_ext
14292 cat >>conftest.$ac_ext <<_ACEOF
14293 /* end confdefs.h. */
14294 $ac_includes_default
14295 #include <$ac_header>
14296 _ACEOF
14297 rm -f conftest.$ac_objext
14298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14299 (eval $ac_compile) 2>conftest.er1
14300 ac_status=$?
14301 grep -v '^ *+' conftest.er1 >conftest.err
14302 rm -f conftest.er1
14303 cat conftest.err >&5
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); } &&
14306 { ac_try='test -z "$ac_c_werror_flag"
14307 || test ! -s conftest.err'
14308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14309 (eval $ac_try) 2>&5
14310 ac_status=$?
14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312 (exit $ac_status); }; } &&
14313 { ac_try='test -s conftest.$ac_objext'
14314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14315 (eval $ac_try) 2>&5
14316 ac_status=$?
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); }; }; then
14319 ac_header_compiler=yes
14320 else
14321 echo "$as_me: failed program was:" >&5
14322 sed 's/^/| /' conftest.$ac_ext >&5
14324 ac_header_compiler=no
14326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14327 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14328 echo "${ECHO_T}$ac_header_compiler" >&6
14330 # Is the header present?
14331 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14332 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14333 cat >conftest.$ac_ext <<_ACEOF
14334 /* confdefs.h. */
14335 _ACEOF
14336 cat confdefs.h >>conftest.$ac_ext
14337 cat >>conftest.$ac_ext <<_ACEOF
14338 /* end confdefs.h. */
14339 #include <$ac_header>
14340 _ACEOF
14341 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14342 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14343 ac_status=$?
14344 grep -v '^ *+' conftest.er1 >conftest.err
14345 rm -f conftest.er1
14346 cat conftest.err >&5
14347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348 (exit $ac_status); } >/dev/null; then
14349 if test -s conftest.err; then
14350 ac_cpp_err=$ac_c_preproc_warn_flag
14351 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14352 else
14353 ac_cpp_err=
14355 else
14356 ac_cpp_err=yes
14358 if test -z "$ac_cpp_err"; then
14359 ac_header_preproc=yes
14360 else
14361 echo "$as_me: failed program was:" >&5
14362 sed 's/^/| /' conftest.$ac_ext >&5
14364 ac_header_preproc=no
14366 rm -f conftest.err conftest.$ac_ext
14367 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14368 echo "${ECHO_T}$ac_header_preproc" >&6
14370 # So? What about this header?
14371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14372 yes:no: )
14373 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14374 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14376 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14377 ac_header_preproc=yes
14379 no:yes:* )
14380 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14381 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14382 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14383 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14384 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14385 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14386 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14387 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14389 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14390 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14391 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14393 cat <<\_ASBOX
14394 ## ---------------------------------- ##
14395 ## Report this to the libjava lists. ##
14396 ## ---------------------------------- ##
14397 _ASBOX
14399 sed "s/^/$as_me: WARNING: /" >&2
14401 esac
14402 echo "$as_me:$LINENO: checking for $ac_header" >&5
14403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14404 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14405 echo $ECHO_N "(cached) $ECHO_C" >&6
14406 else
14407 eval "$as_ac_Header=\$ac_header_preproc"
14409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14413 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14414 cat >>confdefs.h <<_ACEOF
14415 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14416 _ACEOF
14420 done
14422 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
14423 # for now. If you change this, you also must update natFile.cc.
14425 for ac_header in dirent.h
14427 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14429 echo "$as_me:$LINENO: checking for $ac_header" >&5
14430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14432 echo $ECHO_N "(cached) $ECHO_C" >&6
14434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14436 else
14437 # Is the header compilable?
14438 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14439 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14440 cat >conftest.$ac_ext <<_ACEOF
14441 /* confdefs.h. */
14442 _ACEOF
14443 cat confdefs.h >>conftest.$ac_ext
14444 cat >>conftest.$ac_ext <<_ACEOF
14445 /* end confdefs.h. */
14446 $ac_includes_default
14447 #include <$ac_header>
14448 _ACEOF
14449 rm -f conftest.$ac_objext
14450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14451 (eval $ac_compile) 2>conftest.er1
14452 ac_status=$?
14453 grep -v '^ *+' conftest.er1 >conftest.err
14454 rm -f conftest.er1
14455 cat conftest.err >&5
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); } &&
14458 { ac_try='test -z "$ac_c_werror_flag"
14459 || test ! -s conftest.err'
14460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14461 (eval $ac_try) 2>&5
14462 ac_status=$?
14463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 (exit $ac_status); }; } &&
14465 { ac_try='test -s conftest.$ac_objext'
14466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14467 (eval $ac_try) 2>&5
14468 ac_status=$?
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); }; }; then
14471 ac_header_compiler=yes
14472 else
14473 echo "$as_me: failed program was:" >&5
14474 sed 's/^/| /' conftest.$ac_ext >&5
14476 ac_header_compiler=no
14478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14479 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14480 echo "${ECHO_T}$ac_header_compiler" >&6
14482 # Is the header present?
14483 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14484 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14485 cat >conftest.$ac_ext <<_ACEOF
14486 /* confdefs.h. */
14487 _ACEOF
14488 cat confdefs.h >>conftest.$ac_ext
14489 cat >>conftest.$ac_ext <<_ACEOF
14490 /* end confdefs.h. */
14491 #include <$ac_header>
14492 _ACEOF
14493 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14494 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14495 ac_status=$?
14496 grep -v '^ *+' conftest.er1 >conftest.err
14497 rm -f conftest.er1
14498 cat conftest.err >&5
14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500 (exit $ac_status); } >/dev/null; then
14501 if test -s conftest.err; then
14502 ac_cpp_err=$ac_c_preproc_warn_flag
14503 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14504 else
14505 ac_cpp_err=
14507 else
14508 ac_cpp_err=yes
14510 if test -z "$ac_cpp_err"; then
14511 ac_header_preproc=yes
14512 else
14513 echo "$as_me: failed program was:" >&5
14514 sed 's/^/| /' conftest.$ac_ext >&5
14516 ac_header_preproc=no
14518 rm -f conftest.err conftest.$ac_ext
14519 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14520 echo "${ECHO_T}$ac_header_preproc" >&6
14522 # So? What about this header?
14523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14524 yes:no: )
14525 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14526 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14528 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14529 ac_header_preproc=yes
14531 no:yes:* )
14532 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14533 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14534 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14535 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14536 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14537 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14538 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14539 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14541 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14542 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14543 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14545 cat <<\_ASBOX
14546 ## ---------------------------------- ##
14547 ## Report this to the libjava lists. ##
14548 ## ---------------------------------- ##
14549 _ASBOX
14551 sed "s/^/$as_me: WARNING: /" >&2
14553 esac
14554 echo "$as_me:$LINENO: checking for $ac_header" >&5
14555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14557 echo $ECHO_N "(cached) $ECHO_C" >&6
14558 else
14559 eval "$as_ac_Header=\$ac_header_preproc"
14561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14562 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14566 cat >>confdefs.h <<_ACEOF
14567 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14568 _ACEOF
14572 done
14575 for ac_header in inttypes.h
14577 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14578 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14579 echo "$as_me:$LINENO: checking for $ac_header" >&5
14580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14582 echo $ECHO_N "(cached) $ECHO_C" >&6
14584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14586 else
14587 # Is the header compilable?
14588 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14589 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14590 cat >conftest.$ac_ext <<_ACEOF
14591 /* confdefs.h. */
14592 _ACEOF
14593 cat confdefs.h >>conftest.$ac_ext
14594 cat >>conftest.$ac_ext <<_ACEOF
14595 /* end confdefs.h. */
14596 $ac_includes_default
14597 #include <$ac_header>
14598 _ACEOF
14599 rm -f conftest.$ac_objext
14600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14601 (eval $ac_compile) 2>conftest.er1
14602 ac_status=$?
14603 grep -v '^ *+' conftest.er1 >conftest.err
14604 rm -f conftest.er1
14605 cat conftest.err >&5
14606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607 (exit $ac_status); } &&
14608 { ac_try='test -z "$ac_c_werror_flag"
14609 || test ! -s conftest.err'
14610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14611 (eval $ac_try) 2>&5
14612 ac_status=$?
14613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614 (exit $ac_status); }; } &&
14615 { ac_try='test -s conftest.$ac_objext'
14616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14617 (eval $ac_try) 2>&5
14618 ac_status=$?
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); }; }; then
14621 ac_header_compiler=yes
14622 else
14623 echo "$as_me: failed program was:" >&5
14624 sed 's/^/| /' conftest.$ac_ext >&5
14626 ac_header_compiler=no
14628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14629 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14630 echo "${ECHO_T}$ac_header_compiler" >&6
14632 # Is the header present?
14633 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14634 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14635 cat >conftest.$ac_ext <<_ACEOF
14636 /* confdefs.h. */
14637 _ACEOF
14638 cat confdefs.h >>conftest.$ac_ext
14639 cat >>conftest.$ac_ext <<_ACEOF
14640 /* end confdefs.h. */
14641 #include <$ac_header>
14642 _ACEOF
14643 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14644 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14645 ac_status=$?
14646 grep -v '^ *+' conftest.er1 >conftest.err
14647 rm -f conftest.er1
14648 cat conftest.err >&5
14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); } >/dev/null; then
14651 if test -s conftest.err; then
14652 ac_cpp_err=$ac_c_preproc_warn_flag
14653 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14654 else
14655 ac_cpp_err=
14657 else
14658 ac_cpp_err=yes
14660 if test -z "$ac_cpp_err"; then
14661 ac_header_preproc=yes
14662 else
14663 echo "$as_me: failed program was:" >&5
14664 sed 's/^/| /' conftest.$ac_ext >&5
14666 ac_header_preproc=no
14668 rm -f conftest.err conftest.$ac_ext
14669 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14670 echo "${ECHO_T}$ac_header_preproc" >&6
14672 # So? What about this header?
14673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14674 yes:no: )
14675 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14676 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14677 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14678 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14679 ac_header_preproc=yes
14681 no:yes:* )
14682 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14683 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14684 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14685 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14686 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14687 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14688 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14689 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14691 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14692 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14693 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14695 cat <<\_ASBOX
14696 ## ---------------------------------- ##
14697 ## Report this to the libjava lists. ##
14698 ## ---------------------------------- ##
14699 _ASBOX
14701 sed "s/^/$as_me: WARNING: /" >&2
14703 esac
14704 echo "$as_me:$LINENO: checking for $ac_header" >&5
14705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14707 echo $ECHO_N "(cached) $ECHO_C" >&6
14708 else
14709 eval "$as_ac_Header=\$ac_header_preproc"
14711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14712 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14715 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14716 cat >>confdefs.h <<_ACEOF
14717 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14718 _ACEOF
14721 cat >>confdefs.h <<\_ACEOF
14722 #define HAVE_INTTYPES_H 1
14723 _ACEOF
14726 cat >>confdefs.h <<\_ACEOF
14727 #define JV_HAVE_INTTYPES_H 1
14728 _ACEOF
14733 done
14735 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14736 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
14737 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14738 echo $ECHO_N "(cached) $ECHO_C" >&6
14739 else
14740 cat >conftest.$ac_ext <<_ACEOF
14741 /* confdefs.h. */
14742 _ACEOF
14743 cat confdefs.h >>conftest.$ac_ext
14744 cat >>conftest.$ac_ext <<_ACEOF
14745 /* end confdefs.h. */
14746 #include <sys/types.h>
14747 #include <sys/wait.h>
14748 #ifndef WEXITSTATUS
14749 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
14750 #endif
14751 #ifndef WIFEXITED
14752 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14753 #endif
14756 main ()
14758 int s;
14759 wait (&s);
14760 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14762 return 0;
14764 _ACEOF
14765 rm -f conftest.$ac_objext
14766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14767 (eval $ac_compile) 2>conftest.er1
14768 ac_status=$?
14769 grep -v '^ *+' conftest.er1 >conftest.err
14770 rm -f conftest.er1
14771 cat conftest.err >&5
14772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773 (exit $ac_status); } &&
14774 { ac_try='test -z "$ac_c_werror_flag"
14775 || test ! -s conftest.err'
14776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14777 (eval $ac_try) 2>&5
14778 ac_status=$?
14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); }; } &&
14781 { ac_try='test -s conftest.$ac_objext'
14782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14783 (eval $ac_try) 2>&5
14784 ac_status=$?
14785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786 (exit $ac_status); }; }; then
14787 ac_cv_header_sys_wait_h=yes
14788 else
14789 echo "$as_me: failed program was:" >&5
14790 sed 's/^/| /' conftest.$ac_ext >&5
14792 ac_cv_header_sys_wait_h=no
14794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14796 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14797 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
14798 if test $ac_cv_header_sys_wait_h = yes; then
14800 cat >>confdefs.h <<\_ACEOF
14801 #define HAVE_SYS_WAIT_H 1
14802 _ACEOF
14807 echo "$as_me:$LINENO: checking for ssize_t" >&5
14808 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14809 if test "${ac_cv_type_ssize_t+set}" = set; then
14810 echo $ECHO_N "(cached) $ECHO_C" >&6
14811 else
14812 cat >conftest.$ac_ext <<_ACEOF
14813 /* confdefs.h. */
14814 _ACEOF
14815 cat confdefs.h >>conftest.$ac_ext
14816 cat >>conftest.$ac_ext <<_ACEOF
14817 /* end confdefs.h. */
14818 $ac_includes_default
14820 main ()
14822 if ((ssize_t *) 0)
14823 return 0;
14824 if (sizeof (ssize_t))
14825 return 0;
14827 return 0;
14829 _ACEOF
14830 rm -f conftest.$ac_objext
14831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14832 (eval $ac_compile) 2>conftest.er1
14833 ac_status=$?
14834 grep -v '^ *+' conftest.er1 >conftest.err
14835 rm -f conftest.er1
14836 cat conftest.err >&5
14837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838 (exit $ac_status); } &&
14839 { ac_try='test -z "$ac_c_werror_flag"
14840 || test ! -s conftest.err'
14841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14842 (eval $ac_try) 2>&5
14843 ac_status=$?
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); }; } &&
14846 { ac_try='test -s conftest.$ac_objext'
14847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14848 (eval $ac_try) 2>&5
14849 ac_status=$?
14850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851 (exit $ac_status); }; }; then
14852 ac_cv_type_ssize_t=yes
14853 else
14854 echo "$as_me: failed program was:" >&5
14855 sed 's/^/| /' conftest.$ac_ext >&5
14857 ac_cv_type_ssize_t=no
14859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14861 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14862 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14863 if test $ac_cv_type_ssize_t = yes; then
14865 else
14867 cat >>confdefs.h <<_ACEOF
14868 #define ssize_t int
14869 _ACEOF
14874 echo "$as_me:$LINENO: checking for in_addr_t" >&5
14875 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
14876 cat >conftest.$ac_ext <<_ACEOF
14877 /* confdefs.h. */
14878 _ACEOF
14879 cat confdefs.h >>conftest.$ac_ext
14880 cat >>conftest.$ac_ext <<_ACEOF
14881 /* end confdefs.h. */
14882 #include <sys/types.h>
14883 #if STDC_HEADERS
14884 #include <stdlib.h>
14885 #include <stddef.h>
14886 #endif
14887 #if HAVE_NETINET_IN_H
14888 #include <netinet/in.h>
14889 #endif
14891 main ()
14893 in_addr_t foo;
14895 return 0;
14897 _ACEOF
14898 rm -f conftest.$ac_objext
14899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14900 (eval $ac_compile) 2>conftest.er1
14901 ac_status=$?
14902 grep -v '^ *+' conftest.er1 >conftest.err
14903 rm -f conftest.er1
14904 cat conftest.err >&5
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); } &&
14907 { ac_try='test -z "$ac_c_werror_flag"
14908 || test ! -s conftest.err'
14909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14910 (eval $ac_try) 2>&5
14911 ac_status=$?
14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); }; } &&
14914 { ac_try='test -s conftest.$ac_objext'
14915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14916 (eval $ac_try) 2>&5
14917 ac_status=$?
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); }; }; then
14921 cat >>confdefs.h <<\_ACEOF
14922 #define HAVE_IN_ADDR_T 1
14923 _ACEOF
14925 echo "$as_me:$LINENO: result: yes" >&5
14926 echo "${ECHO_T}yes" >&6
14927 else
14928 echo "$as_me: failed program was:" >&5
14929 sed 's/^/| /' conftest.$ac_ext >&5
14931 echo "$as_me:$LINENO: result: no" >&5
14932 echo "${ECHO_T}no" >&6
14934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14936 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
14937 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
14938 cat >conftest.$ac_ext <<_ACEOF
14939 /* confdefs.h. */
14940 _ACEOF
14941 cat confdefs.h >>conftest.$ac_ext
14942 cat >>conftest.$ac_ext <<_ACEOF
14943 /* end confdefs.h. */
14944 #include <netinet/in.h>
14946 main ()
14948 struct ip_mreq mreq;
14950 return 0;
14952 _ACEOF
14953 rm -f conftest.$ac_objext
14954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14955 (eval $ac_compile) 2>conftest.er1
14956 ac_status=$?
14957 grep -v '^ *+' conftest.er1 >conftest.err
14958 rm -f conftest.er1
14959 cat conftest.err >&5
14960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961 (exit $ac_status); } &&
14962 { ac_try='test -z "$ac_c_werror_flag"
14963 || test ! -s conftest.err'
14964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14965 (eval $ac_try) 2>&5
14966 ac_status=$?
14967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968 (exit $ac_status); }; } &&
14969 { ac_try='test -s conftest.$ac_objext'
14970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14971 (eval $ac_try) 2>&5
14972 ac_status=$?
14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974 (exit $ac_status); }; }; then
14976 cat >>confdefs.h <<\_ACEOF
14977 #define HAVE_STRUCT_IP_MREQ 1
14978 _ACEOF
14980 echo "$as_me:$LINENO: result: yes" >&5
14981 echo "${ECHO_T}yes" >&6
14982 else
14983 echo "$as_me: failed program was:" >&5
14984 sed 's/^/| /' conftest.$ac_ext >&5
14986 echo "$as_me:$LINENO: result: no" >&5
14987 echo "${ECHO_T}no" >&6
14989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14991 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
14992 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
14993 cat >conftest.$ac_ext <<_ACEOF
14994 /* confdefs.h. */
14995 _ACEOF
14996 cat confdefs.h >>conftest.$ac_ext
14997 cat >>conftest.$ac_ext <<_ACEOF
14998 /* end confdefs.h. */
14999 #include <netinet/in.h>
15001 main ()
15003 struct ipv6_mreq mreq6;
15005 return 0;
15007 _ACEOF
15008 rm -f conftest.$ac_objext
15009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15010 (eval $ac_compile) 2>conftest.er1
15011 ac_status=$?
15012 grep -v '^ *+' conftest.er1 >conftest.err
15013 rm -f conftest.er1
15014 cat conftest.err >&5
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); } &&
15017 { ac_try='test -z "$ac_c_werror_flag"
15018 || test ! -s conftest.err'
15019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15020 (eval $ac_try) 2>&5
15021 ac_status=$?
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); }; } &&
15024 { ac_try='test -s conftest.$ac_objext'
15025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15026 (eval $ac_try) 2>&5
15027 ac_status=$?
15028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029 (exit $ac_status); }; }; then
15031 cat >>confdefs.h <<\_ACEOF
15032 #define HAVE_STRUCT_IPV6_MREQ 1
15033 _ACEOF
15035 echo "$as_me:$LINENO: result: yes" >&5
15036 echo "${ECHO_T}yes" >&6
15037 else
15038 echo "$as_me: failed program was:" >&5
15039 sed 's/^/| /' conftest.$ac_ext >&5
15041 echo "$as_me:$LINENO: result: no" >&5
15042 echo "${ECHO_T}no" >&6
15044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15046 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
15047 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
15048 cat >conftest.$ac_ext <<_ACEOF
15049 /* confdefs.h. */
15050 _ACEOF
15051 cat confdefs.h >>conftest.$ac_ext
15052 cat >>conftest.$ac_ext <<_ACEOF
15053 /* end confdefs.h. */
15054 #include <netinet/in.h>
15056 main ()
15058 struct sockaddr_in6 addr6;
15060 return 0;
15062 _ACEOF
15063 rm -f conftest.$ac_objext
15064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15065 (eval $ac_compile) 2>conftest.er1
15066 ac_status=$?
15067 grep -v '^ *+' conftest.er1 >conftest.err
15068 rm -f conftest.er1
15069 cat conftest.err >&5
15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071 (exit $ac_status); } &&
15072 { ac_try='test -z "$ac_c_werror_flag"
15073 || test ! -s conftest.err'
15074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15075 (eval $ac_try) 2>&5
15076 ac_status=$?
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); }; } &&
15079 { ac_try='test -s conftest.$ac_objext'
15080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15081 (eval $ac_try) 2>&5
15082 ac_status=$?
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); }; }; then
15086 cat >>confdefs.h <<\_ACEOF
15087 #define HAVE_INET6 1
15088 _ACEOF
15090 echo "$as_me:$LINENO: result: yes" >&5
15091 echo "${ECHO_T}yes" >&6
15092 else
15093 echo "$as_me: failed program was:" >&5
15094 sed 's/^/| /' conftest.$ac_ext >&5
15096 echo "$as_me:$LINENO: result: no" >&5
15097 echo "${ECHO_T}no" >&6
15099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15101 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
15102 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
15103 cat >conftest.$ac_ext <<_ACEOF
15104 /* confdefs.h. */
15105 _ACEOF
15106 cat confdefs.h >>conftest.$ac_ext
15107 cat >>conftest.$ac_ext <<_ACEOF
15108 /* end confdefs.h. */
15109 #define _POSIX_PII_SOCKET
15110 #include <sys/types.h>
15111 #include <sys/socket.h>
15113 main ()
15115 socklen_t x = 5;
15117 return 0;
15119 _ACEOF
15120 rm -f conftest.$ac_objext
15121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15122 (eval $ac_compile) 2>conftest.er1
15123 ac_status=$?
15124 grep -v '^ *+' conftest.er1 >conftest.err
15125 rm -f conftest.er1
15126 cat conftest.err >&5
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); } &&
15129 { ac_try='test -z "$ac_c_werror_flag"
15130 || test ! -s conftest.err'
15131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15132 (eval $ac_try) 2>&5
15133 ac_status=$?
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); }; } &&
15136 { ac_try='test -s conftest.$ac_objext'
15137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15138 (eval $ac_try) 2>&5
15139 ac_status=$?
15140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141 (exit $ac_status); }; }; then
15143 cat >>confdefs.h <<\_ACEOF
15144 #define HAVE_SOCKLEN_T 1
15145 _ACEOF
15147 echo "$as_me:$LINENO: result: yes" >&5
15148 echo "${ECHO_T}yes" >&6
15149 else
15150 echo "$as_me: failed program was:" >&5
15151 sed 's/^/| /' conftest.$ac_ext >&5
15153 echo "$as_me:$LINENO: result: no" >&5
15154 echo "${ECHO_T}no" >&6
15156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15158 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
15159 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
15160 cat >conftest.$ac_ext <<_ACEOF
15161 /* confdefs.h. */
15162 _ACEOF
15163 cat confdefs.h >>conftest.$ac_ext
15164 cat >>conftest.$ac_ext <<_ACEOF
15165 /* end confdefs.h. */
15166 #include <time.h>
15168 main ()
15170 struct tm tim; tim.tm_gmtoff = 0;
15172 return 0;
15174 _ACEOF
15175 rm -f conftest.$ac_objext
15176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15177 (eval $ac_compile) 2>conftest.er1
15178 ac_status=$?
15179 grep -v '^ *+' conftest.er1 >conftest.err
15180 rm -f conftest.er1
15181 cat conftest.err >&5
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); } &&
15184 { ac_try='test -z "$ac_c_werror_flag"
15185 || test ! -s conftest.err'
15186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15187 (eval $ac_try) 2>&5
15188 ac_status=$?
15189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15190 (exit $ac_status); }; } &&
15191 { ac_try='test -s conftest.$ac_objext'
15192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15193 (eval $ac_try) 2>&5
15194 ac_status=$?
15195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196 (exit $ac_status); }; }; then
15198 cat >>confdefs.h <<\_ACEOF
15199 #define STRUCT_TM_HAS_GMTOFF 1
15200 _ACEOF
15202 echo "$as_me:$LINENO: result: yes" >&5
15203 echo "${ECHO_T}yes" >&6
15204 else
15205 echo "$as_me: failed program was:" >&5
15206 sed 's/^/| /' conftest.$ac_ext >&5
15208 echo "$as_me:$LINENO: result: no" >&5
15209 echo "${ECHO_T}no" >&6
15210 echo "$as_me:$LINENO: checking for global timezone variable" >&5
15211 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
15212 cat >conftest.$ac_ext <<_ACEOF
15213 /* confdefs.h. */
15214 _ACEOF
15215 cat confdefs.h >>conftest.$ac_ext
15216 cat >>conftest.$ac_ext <<_ACEOF
15217 /* end confdefs.h. */
15218 #include <time.h>
15220 main ()
15222 void i(){long z2 = 2*timezone;}
15224 return 0;
15226 _ACEOF
15227 rm -f conftest.$ac_objext
15228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15229 (eval $ac_compile) 2>conftest.er1
15230 ac_status=$?
15231 grep -v '^ *+' conftest.er1 >conftest.err
15232 rm -f conftest.er1
15233 cat conftest.err >&5
15234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15235 (exit $ac_status); } &&
15236 { ac_try='test -z "$ac_c_werror_flag"
15237 || test ! -s conftest.err'
15238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15239 (eval $ac_try) 2>&5
15240 ac_status=$?
15241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 (exit $ac_status); }; } &&
15243 { ac_try='test -s conftest.$ac_objext'
15244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15245 (eval $ac_try) 2>&5
15246 ac_status=$?
15247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248 (exit $ac_status); }; }; then
15250 cat >>confdefs.h <<\_ACEOF
15251 #define HAVE_TIMEZONE 1
15252 _ACEOF
15254 echo "$as_me:$LINENO: result: yes" >&5
15255 echo "${ECHO_T}yes" >&6
15256 else
15257 echo "$as_me: failed program was:" >&5
15258 sed 's/^/| /' conftest.$ac_ext >&5
15260 echo "$as_me:$LINENO: result: no" >&5
15261 echo "${ECHO_T}no" >&6
15262 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
15263 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
15264 cat >conftest.$ac_ext <<_ACEOF
15265 /* confdefs.h. */
15266 _ACEOF
15267 cat confdefs.h >>conftest.$ac_ext
15268 cat >>conftest.$ac_ext <<_ACEOF
15269 /* end confdefs.h. */
15270 #include <time.h>
15272 main ()
15274 long z2 = _timezone;
15276 return 0;
15278 _ACEOF
15279 rm -f conftest.$ac_objext
15280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15281 (eval $ac_compile) 2>conftest.er1
15282 ac_status=$?
15283 grep -v '^ *+' conftest.er1 >conftest.err
15284 rm -f conftest.er1
15285 cat conftest.err >&5
15286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 (exit $ac_status); } &&
15288 { ac_try='test -z "$ac_c_werror_flag"
15289 || test ! -s conftest.err'
15290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15291 (eval $ac_try) 2>&5
15292 ac_status=$?
15293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294 (exit $ac_status); }; } &&
15295 { ac_try='test -s conftest.$ac_objext'
15296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15297 (eval $ac_try) 2>&5
15298 ac_status=$?
15299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300 (exit $ac_status); }; }; then
15302 cat >>confdefs.h <<\_ACEOF
15303 #define HAVE_UNDERSCORE_TIMEZONE 1
15304 _ACEOF
15306 echo "$as_me:$LINENO: result: yes" >&5
15307 echo "${ECHO_T}yes" >&6
15308 else
15309 echo "$as_me: failed program was:" >&5
15310 sed 's/^/| /' conftest.$ac_ext >&5
15312 echo "$as_me:$LINENO: result: no" >&5
15313 echo "${ECHO_T}no" >&6
15315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15321 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15322 # for constant arguments. Useless!
15323 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15324 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15325 if test "${ac_cv_working_alloca_h+set}" = set; then
15326 echo $ECHO_N "(cached) $ECHO_C" >&6
15327 else
15328 if test x$gcc_no_link = xyes; then
15329 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15330 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15331 { (exit 1); exit 1; }; }
15333 cat >conftest.$ac_ext <<_ACEOF
15334 /* confdefs.h. */
15335 _ACEOF
15336 cat confdefs.h >>conftest.$ac_ext
15337 cat >>conftest.$ac_ext <<_ACEOF
15338 /* end confdefs.h. */
15339 #include <alloca.h>
15341 main ()
15343 char *p = (char *) alloca (2 * sizeof (int));
15345 return 0;
15347 _ACEOF
15348 rm -f conftest.$ac_objext conftest$ac_exeext
15349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15350 (eval $ac_link) 2>conftest.er1
15351 ac_status=$?
15352 grep -v '^ *+' conftest.er1 >conftest.err
15353 rm -f conftest.er1
15354 cat conftest.err >&5
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); } &&
15357 { ac_try='test -z "$ac_c_werror_flag"
15358 || test ! -s conftest.err'
15359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15360 (eval $ac_try) 2>&5
15361 ac_status=$?
15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363 (exit $ac_status); }; } &&
15364 { ac_try='test -s conftest$ac_exeext'
15365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15366 (eval $ac_try) 2>&5
15367 ac_status=$?
15368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369 (exit $ac_status); }; }; then
15370 ac_cv_working_alloca_h=yes
15371 else
15372 echo "$as_me: failed program was:" >&5
15373 sed 's/^/| /' conftest.$ac_ext >&5
15375 ac_cv_working_alloca_h=no
15377 rm -f conftest.err conftest.$ac_objext \
15378 conftest$ac_exeext conftest.$ac_ext
15380 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15381 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15382 if test $ac_cv_working_alloca_h = yes; then
15384 cat >>confdefs.h <<\_ACEOF
15385 #define HAVE_ALLOCA_H 1
15386 _ACEOF
15390 echo "$as_me:$LINENO: checking for alloca" >&5
15391 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15392 if test "${ac_cv_func_alloca_works+set}" = set; then
15393 echo $ECHO_N "(cached) $ECHO_C" >&6
15394 else
15395 if test x$gcc_no_link = xyes; then
15396 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15397 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15398 { (exit 1); exit 1; }; }
15400 cat >conftest.$ac_ext <<_ACEOF
15401 /* confdefs.h. */
15402 _ACEOF
15403 cat confdefs.h >>conftest.$ac_ext
15404 cat >>conftest.$ac_ext <<_ACEOF
15405 /* end confdefs.h. */
15406 #ifdef __GNUC__
15407 # define alloca __builtin_alloca
15408 #else
15409 # ifdef _MSC_VER
15410 # include <malloc.h>
15411 # define alloca _alloca
15412 # else
15413 # if HAVE_ALLOCA_H
15414 # include <alloca.h>
15415 # else
15416 # ifdef _AIX
15417 #pragma alloca
15418 # else
15419 # ifndef alloca /* predefined by HP cc +Olibcalls */
15420 char *alloca ();
15421 # endif
15422 # endif
15423 # endif
15424 # endif
15425 #endif
15428 main ()
15430 char *p = (char *) alloca (1);
15432 return 0;
15434 _ACEOF
15435 rm -f conftest.$ac_objext conftest$ac_exeext
15436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15437 (eval $ac_link) 2>conftest.er1
15438 ac_status=$?
15439 grep -v '^ *+' conftest.er1 >conftest.err
15440 rm -f conftest.er1
15441 cat conftest.err >&5
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); } &&
15444 { ac_try='test -z "$ac_c_werror_flag"
15445 || test ! -s conftest.err'
15446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15447 (eval $ac_try) 2>&5
15448 ac_status=$?
15449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 (exit $ac_status); }; } &&
15451 { ac_try='test -s conftest$ac_exeext'
15452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15453 (eval $ac_try) 2>&5
15454 ac_status=$?
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); }; }; then
15457 ac_cv_func_alloca_works=yes
15458 else
15459 echo "$as_me: failed program was:" >&5
15460 sed 's/^/| /' conftest.$ac_ext >&5
15462 ac_cv_func_alloca_works=no
15464 rm -f conftest.err conftest.$ac_objext \
15465 conftest$ac_exeext conftest.$ac_ext
15467 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15468 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15470 if test $ac_cv_func_alloca_works = yes; then
15472 cat >>confdefs.h <<\_ACEOF
15473 #define HAVE_ALLOCA 1
15474 _ACEOF
15476 else
15477 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15478 # that cause trouble. Some versions do not even contain alloca or
15479 # contain a buggy version. If you still want to use their alloca,
15480 # use ar to extract alloca.o from them instead of compiling alloca.c.
15482 ALLOCA=alloca.$ac_objext
15484 cat >>confdefs.h <<\_ACEOF
15485 #define C_ALLOCA 1
15486 _ACEOF
15489 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15490 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15491 if test "${ac_cv_os_cray+set}" = set; then
15492 echo $ECHO_N "(cached) $ECHO_C" >&6
15493 else
15494 cat >conftest.$ac_ext <<_ACEOF
15495 /* confdefs.h. */
15496 _ACEOF
15497 cat confdefs.h >>conftest.$ac_ext
15498 cat >>conftest.$ac_ext <<_ACEOF
15499 /* end confdefs.h. */
15500 #if defined(CRAY) && ! defined(CRAY2)
15501 webecray
15502 #else
15503 wenotbecray
15504 #endif
15506 _ACEOF
15507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15508 $EGREP "webecray" >/dev/null 2>&1; then
15509 ac_cv_os_cray=yes
15510 else
15511 ac_cv_os_cray=no
15513 rm -f conftest*
15516 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15517 echo "${ECHO_T}$ac_cv_os_cray" >&6
15518 if test $ac_cv_os_cray = yes; then
15519 for ac_func in _getb67 GETB67 getb67; do
15520 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15521 echo "$as_me:$LINENO: checking for $ac_func" >&5
15522 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15523 if eval "test \"\${$as_ac_var+set}\" = set"; then
15524 echo $ECHO_N "(cached) $ECHO_C" >&6
15525 else
15526 if test x$gcc_no_link = xyes; then
15527 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15528 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15529 { (exit 1); exit 1; }; }
15531 cat >conftest.$ac_ext <<_ACEOF
15532 /* confdefs.h. */
15533 _ACEOF
15534 cat confdefs.h >>conftest.$ac_ext
15535 cat >>conftest.$ac_ext <<_ACEOF
15536 /* end confdefs.h. */
15537 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15538 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15539 #define $ac_func innocuous_$ac_func
15541 /* System header to define __stub macros and hopefully few prototypes,
15542 which can conflict with char $ac_func (); below.
15543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15544 <limits.h> exists even on freestanding compilers. */
15546 #ifdef __STDC__
15547 # include <limits.h>
15548 #else
15549 # include <assert.h>
15550 #endif
15552 #undef $ac_func
15554 /* Override any gcc2 internal prototype to avoid an error. */
15555 #ifdef __cplusplus
15556 extern "C"
15558 #endif
15559 /* We use char because int might match the return type of a gcc2
15560 builtin and then its argument prototype would still apply. */
15561 char $ac_func ();
15562 /* The GNU C library defines this for functions which it implements
15563 to always fail with ENOSYS. Some functions are actually named
15564 something starting with __ and the normal name is an alias. */
15565 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15566 choke me
15567 #else
15568 char (*f) () = $ac_func;
15569 #endif
15570 #ifdef __cplusplus
15572 #endif
15575 main ()
15577 return f != $ac_func;
15579 return 0;
15581 _ACEOF
15582 rm -f conftest.$ac_objext conftest$ac_exeext
15583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15584 (eval $ac_link) 2>conftest.er1
15585 ac_status=$?
15586 grep -v '^ *+' conftest.er1 >conftest.err
15587 rm -f conftest.er1
15588 cat conftest.err >&5
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); } &&
15591 { ac_try='test -z "$ac_c_werror_flag"
15592 || test ! -s conftest.err'
15593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15594 (eval $ac_try) 2>&5
15595 ac_status=$?
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); }; } &&
15598 { ac_try='test -s conftest$ac_exeext'
15599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15600 (eval $ac_try) 2>&5
15601 ac_status=$?
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); }; }; then
15604 eval "$as_ac_var=yes"
15605 else
15606 echo "$as_me: failed program was:" >&5
15607 sed 's/^/| /' conftest.$ac_ext >&5
15609 eval "$as_ac_var=no"
15611 rm -f conftest.err conftest.$ac_objext \
15612 conftest$ac_exeext conftest.$ac_ext
15614 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15615 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15616 if test `eval echo '${'$as_ac_var'}'` = yes; then
15618 cat >>confdefs.h <<_ACEOF
15619 #define CRAY_STACKSEG_END $ac_func
15620 _ACEOF
15622 break
15625 done
15628 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15629 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15630 if test "${ac_cv_c_stack_direction+set}" = set; then
15631 echo $ECHO_N "(cached) $ECHO_C" >&6
15632 else
15633 if test "$cross_compiling" = yes; then
15634 ac_cv_c_stack_direction=0
15635 else
15636 cat >conftest.$ac_ext <<_ACEOF
15637 /* confdefs.h. */
15638 _ACEOF
15639 cat confdefs.h >>conftest.$ac_ext
15640 cat >>conftest.$ac_ext <<_ACEOF
15641 /* end confdefs.h. */
15643 find_stack_direction ()
15645 static char *addr = 0;
15646 auto char dummy;
15647 if (addr == 0)
15649 addr = &dummy;
15650 return find_stack_direction ();
15652 else
15653 return (&dummy > addr) ? 1 : -1;
15657 main ()
15659 exit (find_stack_direction () < 0);
15661 _ACEOF
15662 rm -f conftest$ac_exeext
15663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15664 (eval $ac_link) 2>&5
15665 ac_status=$?
15666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15669 (eval $ac_try) 2>&5
15670 ac_status=$?
15671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); }; }; then
15673 ac_cv_c_stack_direction=1
15674 else
15675 echo "$as_me: program exited with status $ac_status" >&5
15676 echo "$as_me: failed program was:" >&5
15677 sed 's/^/| /' conftest.$ac_ext >&5
15679 ( exit $ac_status )
15680 ac_cv_c_stack_direction=-1
15682 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15685 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15686 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
15688 cat >>confdefs.h <<_ACEOF
15689 #define STACK_DIRECTION $ac_cv_c_stack_direction
15690 _ACEOF
15695 if test x$gcc_no_link = xyes; then
15696 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
15697 ac_cv_func_mmap_fixed_mapped=no
15700 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
15703 for ac_header in stdlib.h unistd.h
15705 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15707 echo "$as_me:$LINENO: checking for $ac_header" >&5
15708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15710 echo $ECHO_N "(cached) $ECHO_C" >&6
15712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15713 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15714 else
15715 # Is the header compilable?
15716 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15717 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15718 cat >conftest.$ac_ext <<_ACEOF
15719 /* confdefs.h. */
15720 _ACEOF
15721 cat confdefs.h >>conftest.$ac_ext
15722 cat >>conftest.$ac_ext <<_ACEOF
15723 /* end confdefs.h. */
15724 $ac_includes_default
15725 #include <$ac_header>
15726 _ACEOF
15727 rm -f conftest.$ac_objext
15728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15729 (eval $ac_compile) 2>conftest.er1
15730 ac_status=$?
15731 grep -v '^ *+' conftest.er1 >conftest.err
15732 rm -f conftest.er1
15733 cat conftest.err >&5
15734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); } &&
15736 { ac_try='test -z "$ac_c_werror_flag"
15737 || test ! -s conftest.err'
15738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15739 (eval $ac_try) 2>&5
15740 ac_status=$?
15741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742 (exit $ac_status); }; } &&
15743 { ac_try='test -s conftest.$ac_objext'
15744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15745 (eval $ac_try) 2>&5
15746 ac_status=$?
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); }; }; then
15749 ac_header_compiler=yes
15750 else
15751 echo "$as_me: failed program was:" >&5
15752 sed 's/^/| /' conftest.$ac_ext >&5
15754 ac_header_compiler=no
15756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15757 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15758 echo "${ECHO_T}$ac_header_compiler" >&6
15760 # Is the header present?
15761 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15763 cat >conftest.$ac_ext <<_ACEOF
15764 /* confdefs.h. */
15765 _ACEOF
15766 cat confdefs.h >>conftest.$ac_ext
15767 cat >>conftest.$ac_ext <<_ACEOF
15768 /* end confdefs.h. */
15769 #include <$ac_header>
15770 _ACEOF
15771 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15772 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15773 ac_status=$?
15774 grep -v '^ *+' conftest.er1 >conftest.err
15775 rm -f conftest.er1
15776 cat conftest.err >&5
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); } >/dev/null; then
15779 if test -s conftest.err; then
15780 ac_cpp_err=$ac_c_preproc_warn_flag
15781 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15782 else
15783 ac_cpp_err=
15785 else
15786 ac_cpp_err=yes
15788 if test -z "$ac_cpp_err"; then
15789 ac_header_preproc=yes
15790 else
15791 echo "$as_me: failed program was:" >&5
15792 sed 's/^/| /' conftest.$ac_ext >&5
15794 ac_header_preproc=no
15796 rm -f conftest.err conftest.$ac_ext
15797 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15798 echo "${ECHO_T}$ac_header_preproc" >&6
15800 # So? What about this header?
15801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15802 yes:no: )
15803 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15804 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15806 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15807 ac_header_preproc=yes
15809 no:yes:* )
15810 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15811 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15812 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15813 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15814 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15815 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15816 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15817 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15819 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15820 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15821 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15823 cat <<\_ASBOX
15824 ## ---------------------------------- ##
15825 ## Report this to the libjava lists. ##
15826 ## ---------------------------------- ##
15827 _ASBOX
15829 sed "s/^/$as_me: WARNING: /" >&2
15831 esac
15832 echo "$as_me:$LINENO: checking for $ac_header" >&5
15833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15835 echo $ECHO_N "(cached) $ECHO_C" >&6
15836 else
15837 eval "$as_ac_Header=\$ac_header_preproc"
15839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15840 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15844 cat >>confdefs.h <<_ACEOF
15845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15846 _ACEOF
15850 done
15853 for ac_func in getpagesize
15855 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15856 echo "$as_me:$LINENO: checking for $ac_func" >&5
15857 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15858 if eval "test \"\${$as_ac_var+set}\" = set"; then
15859 echo $ECHO_N "(cached) $ECHO_C" >&6
15860 else
15861 if test x$gcc_no_link = xyes; then
15862 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15863 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15864 { (exit 1); exit 1; }; }
15866 cat >conftest.$ac_ext <<_ACEOF
15867 /* confdefs.h. */
15868 _ACEOF
15869 cat confdefs.h >>conftest.$ac_ext
15870 cat >>conftest.$ac_ext <<_ACEOF
15871 /* end confdefs.h. */
15872 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15874 #define $ac_func innocuous_$ac_func
15876 /* System header to define __stub macros and hopefully few prototypes,
15877 which can conflict with char $ac_func (); below.
15878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15879 <limits.h> exists even on freestanding compilers. */
15881 #ifdef __STDC__
15882 # include <limits.h>
15883 #else
15884 # include <assert.h>
15885 #endif
15887 #undef $ac_func
15889 /* Override any gcc2 internal prototype to avoid an error. */
15890 #ifdef __cplusplus
15891 extern "C"
15893 #endif
15894 /* We use char because int might match the return type of a gcc2
15895 builtin and then its argument prototype would still apply. */
15896 char $ac_func ();
15897 /* The GNU C library defines this for functions which it implements
15898 to always fail with ENOSYS. Some functions are actually named
15899 something starting with __ and the normal name is an alias. */
15900 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15901 choke me
15902 #else
15903 char (*f) () = $ac_func;
15904 #endif
15905 #ifdef __cplusplus
15907 #endif
15910 main ()
15912 return f != $ac_func;
15914 return 0;
15916 _ACEOF
15917 rm -f conftest.$ac_objext conftest$ac_exeext
15918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15919 (eval $ac_link) 2>conftest.er1
15920 ac_status=$?
15921 grep -v '^ *+' conftest.er1 >conftest.err
15922 rm -f conftest.er1
15923 cat conftest.err >&5
15924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925 (exit $ac_status); } &&
15926 { ac_try='test -z "$ac_c_werror_flag"
15927 || test ! -s conftest.err'
15928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15929 (eval $ac_try) 2>&5
15930 ac_status=$?
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); }; } &&
15933 { ac_try='test -s conftest$ac_exeext'
15934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15935 (eval $ac_try) 2>&5
15936 ac_status=$?
15937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938 (exit $ac_status); }; }; then
15939 eval "$as_ac_var=yes"
15940 else
15941 echo "$as_me: failed program was:" >&5
15942 sed 's/^/| /' conftest.$ac_ext >&5
15944 eval "$as_ac_var=no"
15946 rm -f conftest.err conftest.$ac_objext \
15947 conftest$ac_exeext conftest.$ac_ext
15949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15950 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15951 if test `eval echo '${'$as_ac_var'}'` = yes; then
15952 cat >>confdefs.h <<_ACEOF
15953 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15954 _ACEOF
15957 done
15959 echo "$as_me:$LINENO: checking for working mmap" >&5
15960 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
15961 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
15962 echo $ECHO_N "(cached) $ECHO_C" >&6
15963 else
15964 if test "$cross_compiling" = yes; then
15965 ac_cv_func_mmap_fixed_mapped=no
15966 else
15967 cat >conftest.$ac_ext <<_ACEOF
15968 /* confdefs.h. */
15969 _ACEOF
15970 cat confdefs.h >>conftest.$ac_ext
15971 cat >>conftest.$ac_ext <<_ACEOF
15972 /* end confdefs.h. */
15973 $ac_includes_default
15974 /* malloc might have been renamed as rpl_malloc. */
15975 #undef malloc
15977 /* Thanks to Mike Haertel and Jim Avera for this test.
15978 Here is a matrix of mmap possibilities:
15979 mmap private not fixed
15980 mmap private fixed at somewhere currently unmapped
15981 mmap private fixed at somewhere already mapped
15982 mmap shared not fixed
15983 mmap shared fixed at somewhere currently unmapped
15984 mmap shared fixed at somewhere already mapped
15985 For private mappings, we should verify that changes cannot be read()
15986 back from the file, nor mmap's back from the file at a different
15987 address. (There have been systems where private was not correctly
15988 implemented like the infamous i386 svr4.0, and systems where the
15989 VM page cache was not coherent with the file system buffer cache
15990 like early versions of FreeBSD and possibly contemporary NetBSD.)
15991 For shared mappings, we should conversely verify that changes get
15992 propagated back to all the places they're supposed to be.
15994 Grep wants private fixed already mapped.
15995 The main things grep needs to know about mmap are:
15996 * does it exist and is it safe to write into the mmap'd area
15997 * how to use it (BSD variants) */
15999 #include <fcntl.h>
16000 #include <sys/mman.h>
16002 #if !STDC_HEADERS && !HAVE_STDLIB_H
16003 char *malloc ();
16004 #endif
16006 /* This mess was copied from the GNU getpagesize.h. */
16007 #if !HAVE_GETPAGESIZE
16008 /* Assume that all systems that can run configure have sys/param.h. */
16009 # if !HAVE_SYS_PARAM_H
16010 # define HAVE_SYS_PARAM_H 1
16011 # endif
16013 # ifdef _SC_PAGESIZE
16014 # define getpagesize() sysconf(_SC_PAGESIZE)
16015 # else /* no _SC_PAGESIZE */
16016 # if HAVE_SYS_PARAM_H
16017 # include <sys/param.h>
16018 # ifdef EXEC_PAGESIZE
16019 # define getpagesize() EXEC_PAGESIZE
16020 # else /* no EXEC_PAGESIZE */
16021 # ifdef NBPG
16022 # define getpagesize() NBPG * CLSIZE
16023 # ifndef CLSIZE
16024 # define CLSIZE 1
16025 # endif /* no CLSIZE */
16026 # else /* no NBPG */
16027 # ifdef NBPC
16028 # define getpagesize() NBPC
16029 # else /* no NBPC */
16030 # ifdef PAGESIZE
16031 # define getpagesize() PAGESIZE
16032 # endif /* PAGESIZE */
16033 # endif /* no NBPC */
16034 # endif /* no NBPG */
16035 # endif /* no EXEC_PAGESIZE */
16036 # else /* no HAVE_SYS_PARAM_H */
16037 # define getpagesize() 8192 /* punt totally */
16038 # endif /* no HAVE_SYS_PARAM_H */
16039 # endif /* no _SC_PAGESIZE */
16041 #endif /* no HAVE_GETPAGESIZE */
16044 main ()
16046 char *data, *data2, *data3;
16047 int i, pagesize;
16048 int fd;
16050 pagesize = getpagesize ();
16052 /* First, make a file with some known garbage in it. */
16053 data = (char *) malloc (pagesize);
16054 if (!data)
16055 exit (1);
16056 for (i = 0; i < pagesize; ++i)
16057 *(data + i) = rand ();
16058 umask (0);
16059 fd = creat ("conftest.mmap", 0600);
16060 if (fd < 0)
16061 exit (1);
16062 if (write (fd, data, pagesize) != pagesize)
16063 exit (1);
16064 close (fd);
16066 /* Next, try to mmap the file at a fixed address which already has
16067 something else allocated at it. If we can, also make sure that
16068 we see the same garbage. */
16069 fd = open ("conftest.mmap", O_RDWR);
16070 if (fd < 0)
16071 exit (1);
16072 data2 = (char *) malloc (2 * pagesize);
16073 if (!data2)
16074 exit (1);
16075 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
16076 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16077 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16078 exit (1);
16079 for (i = 0; i < pagesize; ++i)
16080 if (*(data + i) != *(data2 + i))
16081 exit (1);
16083 /* Finally, make sure that changes to the mapped area do not
16084 percolate back to the file as seen by read(). (This is a bug on
16085 some variants of i386 svr4.0.) */
16086 for (i = 0; i < pagesize; ++i)
16087 *(data2 + i) = *(data2 + i) + 1;
16088 data3 = (char *) malloc (pagesize);
16089 if (!data3)
16090 exit (1);
16091 if (read (fd, data3, pagesize) != pagesize)
16092 exit (1);
16093 for (i = 0; i < pagesize; ++i)
16094 if (*(data + i) != *(data3 + i))
16095 exit (1);
16096 close (fd);
16097 exit (0);
16099 _ACEOF
16100 rm -f conftest$ac_exeext
16101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16102 (eval $ac_link) 2>&5
16103 ac_status=$?
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16107 (eval $ac_try) 2>&5
16108 ac_status=$?
16109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110 (exit $ac_status); }; }; then
16111 ac_cv_func_mmap_fixed_mapped=yes
16112 else
16113 echo "$as_me: program exited with status $ac_status" >&5
16114 echo "$as_me: failed program was:" >&5
16115 sed 's/^/| /' conftest.$ac_ext >&5
16117 ( exit $ac_status )
16118 ac_cv_func_mmap_fixed_mapped=no
16120 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16123 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16124 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
16125 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16127 cat >>confdefs.h <<\_ACEOF
16128 #define HAVE_MMAP 1
16129 _ACEOF
16132 rm -f conftest.mmap
16136 for ac_prog in perl
16138 # Extract the first word of "$ac_prog", so it can be a program name with args.
16139 set dummy $ac_prog; ac_word=$2
16140 echo "$as_me:$LINENO: checking for $ac_word" >&5
16141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16142 if test "${ac_cv_prog_PERL+set}" = set; then
16143 echo $ECHO_N "(cached) $ECHO_C" >&6
16144 else
16145 if test -n "$PERL"; then
16146 ac_cv_prog_PERL="$PERL" # Let the user override the test.
16147 else
16148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16149 for as_dir in $PATH
16151 IFS=$as_save_IFS
16152 test -z "$as_dir" && as_dir=.
16153 for ac_exec_ext in '' $ac_executable_extensions; do
16154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16155 ac_cv_prog_PERL="$ac_prog"
16156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16157 break 2
16159 done
16160 done
16164 PERL=$ac_cv_prog_PERL
16165 if test -n "$PERL"; then
16166 echo "$as_me:$LINENO: result: $PERL" >&5
16167 echo "${ECHO_T}$PERL" >&6
16168 else
16169 echo "$as_me:$LINENO: result: no" >&5
16170 echo "${ECHO_T}no" >&6
16173 test -n "$PERL" && break
16174 done
16175 test -n "$PERL" || PERL="false"
16178 SYSDEP_SOURCES=
16179 SIGNAL_HANDLER_AUX=
16181 case "${host}" in
16182 i?86-*-linux*)
16183 SIGNAL_HANDLER=include/i386-signal.h
16185 sparc*-sun-solaris*)
16186 SIGNAL_HANDLER=include/sparc-signal.h
16188 # ia64-*)
16189 # SYSDEP_SOURCES=sysdep/ia64.c
16190 # test -d sysdep || mkdir sysdep
16191 # ;;
16192 hppa*-*-linux*)
16193 SIGNAL_HANDLER=include/pa-signal.h
16195 ia64-*-linux*)
16196 SIGNAL_HANDLER=include/dwarf2-signal.h
16198 powerpc*-*-linux*)
16199 SIGNAL_HANDLER=include/powerpc-signal.h
16201 alpha*-*-linux*)
16202 SIGNAL_HANDLER=include/dwarf2-signal.h
16204 s390*-*-linux*)
16205 SIGNAL_HANDLER=include/s390-signal.h
16207 x86_64*-*-linux*)
16208 SIGNAL_HANDLER=include/x86_64-signal.h
16209 SIGNAL_HANDLER_AUX=include/i386-signal.h
16211 sparc*-*-linux*)
16212 SIGNAL_HANDLER=include/dwarf2-signal.h
16214 sh-*-linux* | sh[34]*-*-linux*)
16215 SIGNAL_HANDLER=include/dwarf2-signal.h
16217 *mingw*)
16218 SIGNAL_HANDLER=include/win32-signal.h
16220 mips*-*-linux*)
16221 SIGNAL_HANDLER=include/mips-signal.h
16223 *-*-darwin*)
16224 SIGNAL_HANDLER=include/darwin-signal.h
16227 SIGNAL_HANDLER=include/default-signal.h
16229 esac
16231 # If we're using sjlj exceptions, forget what we just learned.
16232 if test "$enable_sjlj_exceptions" = yes; then
16233 SIGNAL_HANDLER=include/default-signal.h
16234 SIGNAL_HANDLER_AUX=
16237 # Define here any compiler flags that you need in order to make backtrace() work.
16238 BACKTRACESPEC=
16239 case "${host}" in
16240 x86_64*-*-linux*|i?86-*)
16241 BACKTRACESPEC=-fno-omit-frame-pointer
16243 esac
16248 if test -z "$SIGNAL_HANDLER_AUX"; then
16249 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
16252 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
16255 if test "${multilib}" = "yes"; then
16256 multilib_arg="--enable-multilib"
16257 else
16258 multilib_arg=
16263 here=`${PWDCMD-pwd}`
16266 # We get this from the environment.
16269 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"
16272 ac_config_commands="$ac_config_commands default"
16275 cat >confcache <<\_ACEOF
16276 # This file is a shell script that caches the results of configure
16277 # tests run on this system so they can be shared between configure
16278 # scripts and configure runs, see configure's option --config-cache.
16279 # It is not useful on other systems. If it contains results you don't
16280 # want to keep, you may remove or edit it.
16282 # config.status only pays attention to the cache file if you give it
16283 # the --recheck option to rerun configure.
16285 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16286 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16287 # following values.
16289 _ACEOF
16291 # The following way of writing the cache mishandles newlines in values,
16292 # but we know of no workaround that is simple, portable, and efficient.
16293 # So, don't put newlines in cache variables' values.
16294 # Ultrix sh set writes to stderr and can't be redirected directly,
16295 # and sets the high bit in the cache file unless we assign to the vars.
16297 (set) 2>&1 |
16298 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16299 *ac_space=\ *)
16300 # `set' does not quote correctly, so add quotes (double-quote
16301 # substitution turns \\\\ into \\, and sed turns \\ into \).
16302 sed -n \
16303 "s/'/'\\\\''/g;
16304 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16307 # `set' quotes correctly as required by POSIX, so do not add quotes.
16308 sed -n \
16309 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16311 esac;
16313 sed '
16314 t clear
16315 : clear
16316 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16317 t end
16318 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16319 : end' >>confcache
16320 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16321 if test -w $cache_file; then
16322 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16323 cat confcache >$cache_file
16324 else
16325 echo "not updating unwritable cache $cache_file"
16328 rm -f confcache
16330 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16331 # Let make expand exec_prefix.
16332 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16334 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16335 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16336 # trailing colons and then remove the whole line if VPATH becomes empty
16337 # (actually we leave an empty line to preserve line numbers).
16338 if test "x$srcdir" = x.; then
16339 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16340 s/:*\$(srcdir):*/:/;
16341 s/:*\${srcdir}:*/:/;
16342 s/:*@srcdir@:*/:/;
16343 s/^\([^=]*=[ ]*\):*/\1/;
16344 s/:*$//;
16345 s/^[^=]*=[ ]*$//;
16349 DEFS=-DHAVE_CONFIG_H
16351 ac_libobjs=
16352 ac_ltlibobjs=
16353 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16354 # 1. Remove the extension, and $U if already installed.
16355 ac_i=`echo "$ac_i" |
16356 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16357 # 2. Add them.
16358 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16359 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16360 done
16361 LIBOBJS=$ac_libobjs
16363 LTLIBOBJS=$ac_ltlibobjs
16366 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16367 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16368 Usually this means the macro was only invoked conditionally." >&5
16369 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16370 Usually this means the macro was only invoked conditionally." >&2;}
16371 { (exit 1); exit 1; }; }
16373 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16374 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16375 Usually this means the macro was only invoked conditionally." >&5
16376 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16377 Usually this means the macro was only invoked conditionally." >&2;}
16378 { (exit 1); exit 1; }; }
16380 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16381 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16382 Usually this means the macro was only invoked conditionally." >&5
16383 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16384 Usually this means the macro was only invoked conditionally." >&2;}
16385 { (exit 1); exit 1; }; }
16387 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16388 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16389 Usually this means the macro was only invoked conditionally." >&5
16390 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16391 Usually this means the macro was only invoked conditionally." >&2;}
16392 { (exit 1); exit 1; }; }
16394 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
16395 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
16396 Usually this means the macro was only invoked conditionally." >&5
16397 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
16398 Usually this means the macro was only invoked conditionally." >&2;}
16399 { (exit 1); exit 1; }; }
16401 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
16402 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
16403 Usually this means the macro was only invoked conditionally." >&5
16404 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
16405 Usually this means the macro was only invoked conditionally." >&2;}
16406 { (exit 1); exit 1; }; }
16408 if test -z "${ONESTEP_TRUE}" && test -z "${ONESTEP_FALSE}"; then
16409 { { echo "$as_me:$LINENO: error: conditional \"ONESTEP\" was never defined.
16410 Usually this means the macro was only invoked conditionally." >&5
16411 echo "$as_me: error: conditional \"ONESTEP\" was never defined.
16412 Usually this means the macro was only invoked conditionally." >&2;}
16413 { (exit 1); exit 1; }; }
16415 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
16416 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16417 Usually this means the macro was only invoked conditionally." >&5
16418 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16419 Usually this means the macro was only invoked conditionally." >&2;}
16420 { (exit 1); exit 1; }; }
16422 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
16423 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16424 Usually this means the macro was only invoked conditionally." >&5
16425 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16426 Usually this means the macro was only invoked conditionally." >&2;}
16427 { (exit 1); exit 1; }; }
16429 if test -z "${USING_ECOS_PLATFORM_TRUE}" && test -z "${USING_ECOS_PLATFORM_FALSE}"; then
16430 { { echo "$as_me:$LINENO: error: conditional \"USING_ECOS_PLATFORM\" was never defined.
16431 Usually this means the macro was only invoked conditionally." >&5
16432 echo "$as_me: error: conditional \"USING_ECOS_PLATFORM\" was never defined.
16433 Usually this means the macro was only invoked conditionally." >&2;}
16434 { (exit 1); exit 1; }; }
16436 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
16437 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
16438 Usually this means the macro was only invoked conditionally." >&5
16439 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
16440 Usually this means the macro was only invoked conditionally." >&2;}
16441 { (exit 1); exit 1; }; }
16443 if test -z "${GTK_AWT_TRUE}" && test -z "${GTK_AWT_FALSE}"; then
16444 { { echo "$as_me:$LINENO: error: conditional \"GTK_AWT\" was never defined.
16445 Usually this means the macro was only invoked conditionally." >&5
16446 echo "$as_me: error: conditional \"GTK_AWT\" was never defined.
16447 Usually this means the macro was only invoked conditionally." >&2;}
16448 { (exit 1); exit 1; }; }
16450 if test -z "${GTK_CAIRO_TRUE}" && test -z "${GTK_CAIRO_FALSE}"; then
16451 { { echo "$as_me:$LINENO: error: conditional \"GTK_CAIRO\" was never defined.
16452 Usually this means the macro was only invoked conditionally." >&5
16453 echo "$as_me: error: conditional \"GTK_CAIRO\" was never defined.
16454 Usually this means the macro was only invoked conditionally." >&2;}
16455 { (exit 1); exit 1; }; }
16457 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
16458 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
16459 Usually this means the macro was only invoked conditionally." >&5
16460 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
16461 Usually this means the macro was only invoked conditionally." >&2;}
16462 { (exit 1); exit 1; }; }
16464 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
16465 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
16466 Usually this means the macro was only invoked conditionally." >&5
16467 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
16468 Usually this means the macro was only invoked conditionally." >&2;}
16469 { (exit 1); exit 1; }; }
16471 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
16472 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
16473 Usually this means the macro was only invoked conditionally." >&5
16474 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
16475 Usually this means the macro was only invoked conditionally." >&2;}
16476 { (exit 1); exit 1; }; }
16478 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
16479 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
16480 Usually this means the macro was only invoked conditionally." >&5
16481 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
16482 Usually this means the macro was only invoked conditionally." >&2;}
16483 { (exit 1); exit 1; }; }
16485 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
16486 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
16487 Usually this means the macro was only invoked conditionally." >&5
16488 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
16489 Usually this means the macro was only invoked conditionally." >&2;}
16490 { (exit 1); exit 1; }; }
16492 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
16493 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
16494 Usually this means the macro was only invoked conditionally." >&5
16495 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
16496 Usually this means the macro was only invoked conditionally." >&2;}
16497 { (exit 1); exit 1; }; }
16499 if test -z "${SUPPLY_BACKTRACE_TRUE}" && test -z "${SUPPLY_BACKTRACE_FALSE}"; then
16500 { { echo "$as_me:$LINENO: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
16501 Usually this means the macro was only invoked conditionally." >&5
16502 echo "$as_me: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
16503 Usually this means the macro was only invoked conditionally." >&2;}
16504 { (exit 1); exit 1; }; }
16506 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
16507 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
16508 Usually this means the macro was only invoked conditionally." >&5
16509 echo "$as_me: error: conditional \"NATIVE\" was never defined.
16510 Usually this means the macro was only invoked conditionally." >&2;}
16511 { (exit 1); exit 1; }; }
16513 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
16514 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
16515 Usually this means the macro was only invoked conditionally." >&5
16516 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
16517 Usually this means the macro was only invoked conditionally." >&2;}
16518 { (exit 1); exit 1; }; }
16521 : ${CONFIG_STATUS=./config.status}
16522 ac_clean_files_save=$ac_clean_files
16523 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16524 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16525 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16526 cat >$CONFIG_STATUS <<_ACEOF
16527 #! $SHELL
16528 # Generated by $as_me.
16529 # Run this file to recreate the current configuration.
16530 # Compiler output produced by configure, useful for debugging
16531 # configure, is in config.log if it exists.
16533 debug=false
16534 ac_cs_recheck=false
16535 ac_cs_silent=false
16536 SHELL=\${CONFIG_SHELL-$SHELL}
16537 _ACEOF
16539 cat >>$CONFIG_STATUS <<\_ACEOF
16540 ## --------------------- ##
16541 ## M4sh Initialization. ##
16542 ## --------------------- ##
16544 # Be Bourne compatible
16545 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16546 emulate sh
16547 NULLCMD=:
16548 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16549 # is contrary to our usage. Disable this feature.
16550 alias -g '${1+"$@"}'='"$@"'
16551 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16552 set -o posix
16554 DUALCASE=1; export DUALCASE # for MKS sh
16556 # Support unset when possible.
16557 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16558 as_unset=unset
16559 else
16560 as_unset=false
16564 # Work around bugs in pre-3.0 UWIN ksh.
16565 $as_unset ENV MAIL MAILPATH
16566 PS1='$ '
16567 PS2='> '
16568 PS4='+ '
16570 # NLS nuisances.
16571 for as_var in \
16572 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16573 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16574 LC_TELEPHONE LC_TIME
16576 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16577 eval $as_var=C; export $as_var
16578 else
16579 $as_unset $as_var
16581 done
16583 # Required to use basename.
16584 if expr a : '\(a\)' >/dev/null 2>&1; then
16585 as_expr=expr
16586 else
16587 as_expr=false
16590 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16591 as_basename=basename
16592 else
16593 as_basename=false
16597 # Name of the executable.
16598 as_me=`$as_basename "$0" ||
16599 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16600 X"$0" : 'X\(//\)$' \| \
16601 X"$0" : 'X\(/\)$' \| \
16602 . : '\(.\)' 2>/dev/null ||
16603 echo X/"$0" |
16604 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16605 /^X\/\(\/\/\)$/{ s//\1/; q; }
16606 /^X\/\(\/\).*/{ s//\1/; q; }
16607 s/.*/./; q'`
16610 # PATH needs CR, and LINENO needs CR and PATH.
16611 # Avoid depending upon Character Ranges.
16612 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16613 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16614 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16615 as_cr_digits='0123456789'
16616 as_cr_alnum=$as_cr_Letters$as_cr_digits
16618 # The user is always right.
16619 if test "${PATH_SEPARATOR+set}" != set; then
16620 echo "#! /bin/sh" >conf$$.sh
16621 echo "exit 0" >>conf$$.sh
16622 chmod +x conf$$.sh
16623 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16624 PATH_SEPARATOR=';'
16625 else
16626 PATH_SEPARATOR=:
16628 rm -f conf$$.sh
16632 as_lineno_1=$LINENO
16633 as_lineno_2=$LINENO
16634 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16635 test "x$as_lineno_1" != "x$as_lineno_2" &&
16636 test "x$as_lineno_3" = "x$as_lineno_2" || {
16637 # Find who we are. Look in the path if we contain no path at all
16638 # relative or not.
16639 case $0 in
16640 *[\\/]* ) as_myself=$0 ;;
16641 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16642 for as_dir in $PATH
16644 IFS=$as_save_IFS
16645 test -z "$as_dir" && as_dir=.
16646 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16647 done
16650 esac
16651 # We did not find ourselves, most probably we were run as `sh COMMAND'
16652 # in which case we are not to be found in the path.
16653 if test "x$as_myself" = x; then
16654 as_myself=$0
16656 if test ! -f "$as_myself"; then
16657 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16658 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16659 { (exit 1); exit 1; }; }
16661 case $CONFIG_SHELL in
16663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16664 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16666 IFS=$as_save_IFS
16667 test -z "$as_dir" && as_dir=.
16668 for as_base in sh bash ksh sh5; do
16669 case $as_dir in
16671 if ("$as_dir/$as_base" -c '
16672 as_lineno_1=$LINENO
16673 as_lineno_2=$LINENO
16674 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16675 test "x$as_lineno_1" != "x$as_lineno_2" &&
16676 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16677 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16678 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16679 CONFIG_SHELL=$as_dir/$as_base
16680 export CONFIG_SHELL
16681 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16682 fi;;
16683 esac
16684 done
16685 done
16687 esac
16689 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16690 # uniformly replaced by the line number. The first 'sed' inserts a
16691 # line-number line before each line; the second 'sed' does the real
16692 # work. The second script uses 'N' to pair each line-number line
16693 # with the numbered line, and appends trailing '-' during
16694 # substitution so that $LINENO is not a special case at line end.
16695 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16696 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16697 sed '=' <$as_myself |
16698 sed '
16700 s,$,-,
16701 : loop
16702 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16703 t loop
16704 s,-$,,
16705 s,^['$as_cr_digits']*\n,,
16706 ' >$as_me.lineno &&
16707 chmod +x $as_me.lineno ||
16708 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16709 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16710 { (exit 1); exit 1; }; }
16712 # Don't try to exec as it changes $[0], causing all sort of problems
16713 # (the dirname of $[0] is not the place where we might find the
16714 # original and so on. Autoconf is especially sensible to this).
16715 . ./$as_me.lineno
16716 # Exit status is that of the last command.
16717 exit
16721 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16722 *c*,-n*) ECHO_N= ECHO_C='
16723 ' ECHO_T=' ' ;;
16724 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16725 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16726 esac
16728 if expr a : '\(a\)' >/dev/null 2>&1; then
16729 as_expr=expr
16730 else
16731 as_expr=false
16734 rm -f conf$$ conf$$.exe conf$$.file
16735 echo >conf$$.file
16736 if ln -s conf$$.file conf$$ 2>/dev/null; then
16737 # We could just check for DJGPP; but this test a) works b) is more generic
16738 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16739 if test -f conf$$.exe; then
16740 # Don't use ln at all; we don't have any links
16741 as_ln_s='cp -p'
16742 else
16743 as_ln_s='ln -s'
16745 elif ln conf$$.file conf$$ 2>/dev/null; then
16746 as_ln_s=ln
16747 else
16748 as_ln_s='cp -p'
16750 rm -f conf$$ conf$$.exe conf$$.file
16752 if mkdir -p . 2>/dev/null; then
16753 as_mkdir_p=:
16754 else
16755 test -d ./-p && rmdir ./-p
16756 as_mkdir_p=false
16759 as_executable_p="test -f"
16761 # Sed expression to map a string onto a valid CPP name.
16762 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16764 # Sed expression to map a string onto a valid variable name.
16765 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16768 # IFS
16769 # We need space, tab and new line, in precisely that order.
16770 as_nl='
16772 IFS=" $as_nl"
16774 # CDPATH.
16775 $as_unset CDPATH
16777 exec 6>&1
16779 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16780 # report actual input values of CONFIG_FILES etc. instead of their
16781 # values after options handling. Logging --version etc. is OK.
16782 exec 5>>config.log
16784 echo
16785 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16786 ## Running $as_me. ##
16787 _ASBOX
16788 } >&5
16789 cat >&5 <<_CSEOF
16791 This file was extended by libjava $as_me version-unused, which was
16792 generated by GNU Autoconf 2.59. Invocation command line was
16794 CONFIG_FILES = $CONFIG_FILES
16795 CONFIG_HEADERS = $CONFIG_HEADERS
16796 CONFIG_LINKS = $CONFIG_LINKS
16797 CONFIG_COMMANDS = $CONFIG_COMMANDS
16798 $ $0 $@
16800 _CSEOF
16801 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16802 echo >&5
16803 _ACEOF
16805 # Files that config.status was made for.
16806 if test -n "$ac_config_files"; then
16807 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16810 if test -n "$ac_config_headers"; then
16811 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16814 if test -n "$ac_config_links"; then
16815 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16818 if test -n "$ac_config_commands"; then
16819 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16822 cat >>$CONFIG_STATUS <<\_ACEOF
16824 ac_cs_usage="\
16825 \`$as_me' instantiates files from templates according to the
16826 current configuration.
16828 Usage: $0 [OPTIONS] [FILE]...
16830 -h, --help print this help, then exit
16831 -V, --version print version number, then exit
16832 -q, --quiet do not print progress messages
16833 -d, --debug don't remove temporary files
16834 --recheck update $as_me by reconfiguring in the same conditions
16835 --file=FILE[:TEMPLATE]
16836 instantiate the configuration file FILE
16837 --header=FILE[:TEMPLATE]
16838 instantiate the configuration header FILE
16840 Configuration files:
16841 $config_files
16843 Configuration headers:
16844 $config_headers
16846 Configuration links:
16847 $config_links
16849 Configuration commands:
16850 $config_commands
16852 Report bugs to <bug-autoconf@gnu.org>."
16853 _ACEOF
16855 cat >>$CONFIG_STATUS <<_ACEOF
16856 ac_cs_version="\\
16857 libjava config.status version-unused
16858 configured by $0, generated by GNU Autoconf 2.59,
16859 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16861 Copyright (C) 2003 Free Software Foundation, Inc.
16862 This config.status script is free software; the Free Software Foundation
16863 gives unlimited permission to copy, distribute and modify it."
16864 srcdir=$srcdir
16865 INSTALL="$INSTALL"
16866 _ACEOF
16868 cat >>$CONFIG_STATUS <<\_ACEOF
16869 # If no file are specified by the user, then we need to provide default
16870 # value. By we need to know if files were specified by the user.
16871 ac_need_defaults=:
16872 while test $# != 0
16874 case $1 in
16875 --*=*)
16876 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16877 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16878 ac_shift=:
16881 ac_option=$1
16882 ac_optarg=$2
16883 ac_shift=shift
16885 *) # This is not an option, so the user has probably given explicit
16886 # arguments.
16887 ac_option=$1
16888 ac_need_defaults=false;;
16889 esac
16891 case $ac_option in
16892 # Handling of the options.
16893 _ACEOF
16894 cat >>$CONFIG_STATUS <<\_ACEOF
16895 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16896 ac_cs_recheck=: ;;
16897 --version | --vers* | -V )
16898 echo "$ac_cs_version"; exit 0 ;;
16899 --he | --h)
16900 # Conflict between --help and --header
16901 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16902 Try \`$0 --help' for more information." >&5
16903 echo "$as_me: error: ambiguous option: $1
16904 Try \`$0 --help' for more information." >&2;}
16905 { (exit 1); exit 1; }; };;
16906 --help | --hel | -h )
16907 echo "$ac_cs_usage"; exit 0 ;;
16908 --debug | --d* | -d )
16909 debug=: ;;
16910 --file | --fil | --fi | --f )
16911 $ac_shift
16912 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16913 ac_need_defaults=false;;
16914 --header | --heade | --head | --hea )
16915 $ac_shift
16916 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16917 ac_need_defaults=false;;
16918 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16919 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16920 ac_cs_silent=: ;;
16922 # This is an error.
16923 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16924 Try \`$0 --help' for more information." >&5
16925 echo "$as_me: error: unrecognized option: $1
16926 Try \`$0 --help' for more information." >&2;}
16927 { (exit 1); exit 1; }; } ;;
16929 *) ac_config_targets="$ac_config_targets $1" ;;
16931 esac
16932 shift
16933 done
16935 ac_configure_extra_args=
16937 if $ac_cs_silent; then
16938 exec 6>/dev/null
16939 ac_configure_extra_args="$ac_configure_extra_args --silent"
16942 _ACEOF
16943 cat >>$CONFIG_STATUS <<_ACEOF
16944 if \$ac_cs_recheck; then
16945 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16946 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16949 _ACEOF
16951 cat >>$CONFIG_STATUS <<_ACEOF
16953 # INIT-COMMANDS section.
16956 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16957 srcdir=${srcdir}
16958 host=${host}
16959 target=${target}
16960 with_multisubdir=${with_multisubdir}
16961 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16962 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16963 libgcj_basedir=${libgcj_basedir}
16964 CC="${CC}"
16965 CXX="${CXX}"
16966 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
16969 _ACEOF
16973 cat >>$CONFIG_STATUS <<\_ACEOF
16974 for ac_config_target in $ac_config_targets
16976 case "$ac_config_target" in
16977 # Handling of arguments.
16978 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16979 "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
16980 "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
16981 "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
16982 "gnu/classpath/Configuration.java" ) CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
16983 "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
16984 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16985 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16986 "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
16987 "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
16988 "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
16989 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
16990 "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
16991 "java/net/natNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc" ;;
16992 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
16993 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
16994 "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
16995 "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
16996 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
16997 "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
16998 "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
16999 "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
17000 "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
17001 "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
17002 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17003 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17004 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17005 "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
17006 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17007 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17008 { (exit 1); exit 1; }; };;
17009 esac
17010 done
17012 # If the user did not use the arguments to specify the items to instantiate,
17013 # then the envvar interface is used. Set only those that are not.
17014 # We use the long form for the default assignment because of an extremely
17015 # bizarre bug on SunOS 4.1.3.
17016 if $ac_need_defaults; then
17017 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17018 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17019 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17020 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17023 # Have a temporary directory for convenience. Make it in the build tree
17024 # simply because there is no reason to put it here, and in addition,
17025 # creating and moving files from /tmp can sometimes cause problems.
17026 # Create a temporary directory, and hook for its removal unless debugging.
17027 $debug ||
17029 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17030 trap '{ (exit 1); exit 1; }' 1 2 13 15
17033 # Create a (secure) tmp directory for tmp files.
17036 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17037 test -n "$tmp" && test -d "$tmp"
17038 } ||
17040 tmp=./confstat$$-$RANDOM
17041 (umask 077 && mkdir $tmp)
17042 } ||
17044 echo "$me: cannot create a temporary directory in ." >&2
17045 { (exit 1); exit 1; }
17048 _ACEOF
17050 cat >>$CONFIG_STATUS <<_ACEOF
17053 # CONFIG_FILES section.
17056 # No need to generate the scripts if there are no CONFIG_FILES.
17057 # This happens for instance when ./config.status config.h
17058 if test -n "\$CONFIG_FILES"; then
17059 # Protect against being on the right side of a sed subst in config.status.
17060 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17061 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17062 s,@SHELL@,$SHELL,;t t
17063 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17064 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17065 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17066 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17067 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17068 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17069 s,@exec_prefix@,$exec_prefix,;t t
17070 s,@prefix@,$prefix,;t t
17071 s,@program_transform_name@,$program_transform_name,;t t
17072 s,@bindir@,$bindir,;t t
17073 s,@sbindir@,$sbindir,;t t
17074 s,@libexecdir@,$libexecdir,;t t
17075 s,@datadir@,$datadir,;t t
17076 s,@sysconfdir@,$sysconfdir,;t t
17077 s,@sharedstatedir@,$sharedstatedir,;t t
17078 s,@localstatedir@,$localstatedir,;t t
17079 s,@libdir@,$libdir,;t t
17080 s,@includedir@,$includedir,;t t
17081 s,@oldincludedir@,$oldincludedir,;t t
17082 s,@infodir@,$infodir,;t t
17083 s,@mandir@,$mandir,;t t
17084 s,@build_alias@,$build_alias,;t t
17085 s,@host_alias@,$host_alias,;t t
17086 s,@target_alias@,$target_alias,;t t
17087 s,@DEFS@,$DEFS,;t t
17088 s,@ECHO_C@,$ECHO_C,;t t
17089 s,@ECHO_N@,$ECHO_N,;t t
17090 s,@ECHO_T@,$ECHO_T,;t t
17091 s,@LIBS@,$LIBS,;t t
17092 s,@libgcj_basedir@,$libgcj_basedir,;t t
17093 s,@build@,$build,;t t
17094 s,@build_cpu@,$build_cpu,;t t
17095 s,@build_vendor@,$build_vendor,;t t
17096 s,@build_os@,$build_os,;t t
17097 s,@host@,$host,;t t
17098 s,@host_cpu@,$host_cpu,;t t
17099 s,@host_vendor@,$host_vendor,;t t
17100 s,@host_os@,$host_os,;t t
17101 s,@target@,$target,;t t
17102 s,@target_cpu@,$target_cpu,;t t
17103 s,@target_vendor@,$target_vendor,;t t
17104 s,@target_os@,$target_os,;t t
17105 s,@target_noncanonical@,$target_noncanonical,;t t
17106 s,@LN_S@,$LN_S,;t t
17107 s,@mkinstalldirs@,$mkinstalldirs,;t t
17108 s,@CC@,$CC,;t t
17109 s,@ac_ct_CC@,$ac_ct_CC,;t t
17110 s,@EXEEXT@,$EXEEXT,;t t
17111 s,@OBJEXT@,$OBJEXT,;t t
17112 s,@CXX@,$CXX,;t t
17113 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17114 s,@CFLAGS@,$CFLAGS,;t t
17115 s,@CXXFLAGS@,$CXXFLAGS,;t t
17116 s,@LDFLAGS@,$LDFLAGS,;t t
17117 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17118 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17119 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17120 s,@CYGPATH_W@,$CYGPATH_W,;t t
17121 s,@PACKAGE@,$PACKAGE,;t t
17122 s,@VERSION@,$VERSION,;t t
17123 s,@ACLOCAL@,$ACLOCAL,;t t
17124 s,@AUTOCONF@,$AUTOCONF,;t t
17125 s,@AUTOMAKE@,$AUTOMAKE,;t t
17126 s,@AUTOHEADER@,$AUTOHEADER,;t t
17127 s,@MAKEINFO@,$MAKEINFO,;t t
17128 s,@install_sh@,$install_sh,;t t
17129 s,@STRIP@,$STRIP,;t t
17130 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17131 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17132 s,@mkdir_p@,$mkdir_p,;t t
17133 s,@AWK@,$AWK,;t t
17134 s,@SET_MAKE@,$SET_MAKE,;t t
17135 s,@am__leading_dot@,$am__leading_dot,;t t
17136 s,@AMTAR@,$AMTAR,;t t
17137 s,@am__tar@,$am__tar,;t t
17138 s,@am__untar@,$am__untar,;t t
17139 s,@DEPDIR@,$DEPDIR,;t t
17140 s,@am__include@,$am__include,;t t
17141 s,@am__quote@,$am__quote,;t t
17142 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17143 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17144 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17145 s,@CCDEPMODE@,$CCDEPMODE,;t t
17146 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17147 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17148 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17149 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17150 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17151 s,@AS@,$AS,;t t
17152 s,@ac_ct_AS@,$ac_ct_AS,;t t
17153 s,@AR@,$AR,;t t
17154 s,@ac_ct_AR@,$ac_ct_AR,;t t
17155 s,@RANLIB@,$RANLIB,;t t
17156 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17157 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17158 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17159 s,@MAINT@,$MAINT,;t t
17160 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
17161 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
17162 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
17163 s,@INCLTDL@,$INCLTDL,;t t
17164 s,@LIBLTDL@,$LIBLTDL,;t t
17165 s,@DIRLTDL@,$DIRLTDL,;t t
17166 s,@LIBTOOL@,$LIBTOOL,;t t
17167 s,@CXXCPP@,$CXXCPP,;t t
17168 s,@CPPFLAGS@,$CPPFLAGS,;t t
17169 s,@GCJ@,$GCJ,;t t
17170 s,@GCJFLAGS@,$GCJFLAGS,;t t
17171 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
17172 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
17173 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
17174 s,@subdirs@,$subdirs,;t t
17175 s,@COMPPATH@,$COMPPATH,;t t
17176 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
17177 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
17178 s,@ONESTEP_TRUE@,$ONESTEP_TRUE,;t t
17179 s,@ONESTEP_FALSE@,$ONESTEP_FALSE,;t t
17180 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
17181 s,@INTERPRETER@,$INTERPRETER,;t t
17182 s,@LIBFFI@,$LIBFFI,;t t
17183 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
17184 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
17185 s,@CPP@,$CPP,;t t
17186 s,@EGREP@,$EGREP,;t t
17187 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
17188 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
17189 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
17190 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
17191 s,@USING_ECOS_PLATFORM_TRUE@,$USING_ECOS_PLATFORM_TRUE,;t t
17192 s,@USING_ECOS_PLATFORM_FALSE@,$USING_ECOS_PLATFORM_FALSE,;t t
17193 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
17194 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
17195 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
17196 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
17197 s,@X_CFLAGS@,$X_CFLAGS,;t t
17198 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17199 s,@X_LIBS@,$X_LIBS,;t t
17200 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17201 s,@TOOLKIT@,$TOOLKIT,;t t
17202 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
17203 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
17204 s,@GTK_AWT_TRUE@,$GTK_AWT_TRUE,;t t
17205 s,@GTK_AWT_FALSE@,$GTK_AWT_FALSE,;t t
17206 s,@GTK_CAIRO_TRUE@,$GTK_CAIRO_TRUE,;t t
17207 s,@GTK_CAIRO_FALSE@,$GTK_CAIRO_FALSE,;t t
17208 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
17209 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
17210 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
17211 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
17212 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
17213 s,@GCLIBS@,$GCLIBS,;t t
17214 s,@GCINCS@,$GCINCS,;t t
17215 s,@GCDEPS@,$GCDEPS,;t t
17216 s,@GCSPEC@,$GCSPEC,;t t
17217 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
17218 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
17219 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
17220 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
17221 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
17222 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
17223 s,@THREADLIBS@,$THREADLIBS,;t t
17224 s,@THREADINCS@,$THREADINCS,;t t
17225 s,@THREADDEPS@,$THREADDEPS,;t t
17226 s,@THREADSPEC@,$THREADSPEC,;t t
17227 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
17228 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
17229 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
17230 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
17231 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
17232 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
17233 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
17234 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
17235 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
17236 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
17237 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
17238 s,@tool_include_dir@,$tool_include_dir,;t t
17239 s,@gcc_version@,$gcc_version,;t t
17240 s,@LIBICONV@,$LIBICONV,;t t
17241 s,@LTLIBICONV@,$LTLIBICONV,;t t
17242 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
17243 s,@GTK_LIBS@,$GTK_LIBS,;t t
17244 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
17245 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
17246 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
17247 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
17248 s,@SUPPLY_BACKTRACE_TRUE@,$SUPPLY_BACKTRACE_TRUE,;t t
17249 s,@SUPPLY_BACKTRACE_FALSE@,$SUPPLY_BACKTRACE_FALSE,;t t
17250 s,@GCJH@,$GCJH,;t t
17251 s,@ZIP@,$ZIP,;t t
17252 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
17253 s,@ZLIBS@,$ZLIBS,;t t
17254 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
17255 s,@ZINCS@,$ZINCS,;t t
17256 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
17257 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
17258 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
17259 s,@IEEESPEC@,$IEEESPEC,;t t
17260 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
17261 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
17262 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
17263 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
17264 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
17265 s,@toolexecdir@,$toolexecdir,;t t
17266 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
17267 s,@toolexeclibdir@,$toolexeclibdir,;t t
17268 s,@GCJVERSION@,$GCJVERSION,;t t
17269 s,@ALLOCA@,$ALLOCA,;t t
17270 s,@PERL@,$PERL,;t t
17271 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
17272 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
17273 s,@here@,$here,;t t
17274 s,@LIBOBJS@,$LIBOBJS,;t t
17275 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17276 CEOF
17278 _ACEOF
17280 cat >>$CONFIG_STATUS <<\_ACEOF
17281 # Split the substitutions into bite-sized pieces for seds with
17282 # small command number limits, like on Digital OSF/1 and HP-UX.
17283 ac_max_sed_lines=48
17284 ac_sed_frag=1 # Number of current file.
17285 ac_beg=1 # First line for current file.
17286 ac_end=$ac_max_sed_lines # Line after last line for current file.
17287 ac_more_lines=:
17288 ac_sed_cmds=
17289 while $ac_more_lines; do
17290 if test $ac_beg -gt 1; then
17291 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17292 else
17293 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17295 if test ! -s $tmp/subs.frag; then
17296 ac_more_lines=false
17297 else
17298 # The purpose of the label and of the branching condition is to
17299 # speed up the sed processing (if there are no `@' at all, there
17300 # is no need to browse any of the substitutions).
17301 # These are the two extra sed commands mentioned above.
17302 (echo ':t
17303 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17304 if test -z "$ac_sed_cmds"; then
17305 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17306 else
17307 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17309 ac_sed_frag=`expr $ac_sed_frag + 1`
17310 ac_beg=$ac_end
17311 ac_end=`expr $ac_end + $ac_max_sed_lines`
17313 done
17314 if test -z "$ac_sed_cmds"; then
17315 ac_sed_cmds=cat
17317 fi # test -n "$CONFIG_FILES"
17319 _ACEOF
17320 cat >>$CONFIG_STATUS <<\_ACEOF
17321 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17322 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17323 case $ac_file in
17324 - | *:- | *:-:* ) # input from stdin
17325 cat >$tmp/stdin
17326 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17327 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17328 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17329 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17330 * ) ac_file_in=$ac_file.in ;;
17331 esac
17333 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17334 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17335 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17336 X"$ac_file" : 'X\(//\)[^/]' \| \
17337 X"$ac_file" : 'X\(//\)$' \| \
17338 X"$ac_file" : 'X\(/\)' \| \
17339 . : '\(.\)' 2>/dev/null ||
17340 echo X"$ac_file" |
17341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17342 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17343 /^X\(\/\/\)$/{ s//\1/; q; }
17344 /^X\(\/\).*/{ s//\1/; q; }
17345 s/.*/./; q'`
17346 { if $as_mkdir_p; then
17347 mkdir -p "$ac_dir"
17348 else
17349 as_dir="$ac_dir"
17350 as_dirs=
17351 while test ! -d "$as_dir"; do
17352 as_dirs="$as_dir $as_dirs"
17353 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17354 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17355 X"$as_dir" : 'X\(//\)[^/]' \| \
17356 X"$as_dir" : 'X\(//\)$' \| \
17357 X"$as_dir" : 'X\(/\)' \| \
17358 . : '\(.\)' 2>/dev/null ||
17359 echo X"$as_dir" |
17360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17361 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17362 /^X\(\/\/\)$/{ s//\1/; q; }
17363 /^X\(\/\).*/{ s//\1/; q; }
17364 s/.*/./; q'`
17365 done
17366 test ! -n "$as_dirs" || mkdir $as_dirs
17367 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17368 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17369 { (exit 1); exit 1; }; }; }
17371 ac_builddir=.
17373 if test "$ac_dir" != .; then
17374 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17375 # A "../" for each directory in $ac_dir_suffix.
17376 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17377 else
17378 ac_dir_suffix= ac_top_builddir=
17381 case $srcdir in
17382 .) # No --srcdir option. We are building in place.
17383 ac_srcdir=.
17384 if test -z "$ac_top_builddir"; then
17385 ac_top_srcdir=.
17386 else
17387 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17388 fi ;;
17389 [\\/]* | ?:[\\/]* ) # Absolute path.
17390 ac_srcdir=$srcdir$ac_dir_suffix;
17391 ac_top_srcdir=$srcdir ;;
17392 *) # Relative path.
17393 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17394 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17395 esac
17397 # Do not use `cd foo && pwd` to compute absolute paths, because
17398 # the directories may not exist.
17399 case `pwd` in
17400 .) ac_abs_builddir="$ac_dir";;
17402 case "$ac_dir" in
17403 .) ac_abs_builddir=`pwd`;;
17404 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17405 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17406 esac;;
17407 esac
17408 case $ac_abs_builddir in
17409 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17411 case ${ac_top_builddir}. in
17412 .) ac_abs_top_builddir=$ac_abs_builddir;;
17413 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17414 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17415 esac;;
17416 esac
17417 case $ac_abs_builddir in
17418 .) ac_abs_srcdir=$ac_srcdir;;
17420 case $ac_srcdir in
17421 .) ac_abs_srcdir=$ac_abs_builddir;;
17422 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17423 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17424 esac;;
17425 esac
17426 case $ac_abs_builddir in
17427 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17429 case $ac_top_srcdir in
17430 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17431 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17432 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17433 esac;;
17434 esac
17437 case $INSTALL in
17438 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17439 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17440 esac
17442 if test x"$ac_file" != x-; then
17443 { echo "$as_me:$LINENO: creating $ac_file" >&5
17444 echo "$as_me: creating $ac_file" >&6;}
17445 rm -f "$ac_file"
17447 # Let's still pretend it is `configure' which instantiates (i.e., don't
17448 # use $as_me), people would be surprised to read:
17449 # /* config.h. Generated by config.status. */
17450 if test x"$ac_file" = x-; then
17451 configure_input=
17452 else
17453 configure_input="$ac_file. "
17455 configure_input=$configure_input"Generated from `echo $ac_file_in |
17456 sed 's,.*/,,'` by configure."
17458 # First look for the input files in the build tree, otherwise in the
17459 # src tree.
17460 ac_file_inputs=`IFS=:
17461 for f in $ac_file_in; do
17462 case $f in
17463 -) echo $tmp/stdin ;;
17464 [\\/$]*)
17465 # Absolute (can't be DOS-style, as IFS=:)
17466 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17467 echo "$as_me: error: cannot find input file: $f" >&2;}
17468 { (exit 1); exit 1; }; }
17469 echo "$f";;
17470 *) # Relative
17471 if test -f "$f"; then
17472 # Build tree
17473 echo "$f"
17474 elif test -f "$srcdir/$f"; then
17475 # Source tree
17476 echo "$srcdir/$f"
17477 else
17478 # /dev/null tree
17479 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17480 echo "$as_me: error: cannot find input file: $f" >&2;}
17481 { (exit 1); exit 1; }; }
17482 fi;;
17483 esac
17484 done` || { (exit 1); exit 1; }
17485 _ACEOF
17486 cat >>$CONFIG_STATUS <<_ACEOF
17487 sed "$ac_vpsub
17488 $extrasub
17489 _ACEOF
17490 cat >>$CONFIG_STATUS <<\_ACEOF
17492 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17493 s,@configure_input@,$configure_input,;t t
17494 s,@srcdir@,$ac_srcdir,;t t
17495 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17496 s,@top_srcdir@,$ac_top_srcdir,;t t
17497 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17498 s,@builddir@,$ac_builddir,;t t
17499 s,@abs_builddir@,$ac_abs_builddir,;t t
17500 s,@top_builddir@,$ac_top_builddir,;t t
17501 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17502 s,@INSTALL@,$ac_INSTALL,;t t
17503 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17504 rm -f $tmp/stdin
17505 if test x"$ac_file" != x-; then
17506 mv $tmp/out $ac_file
17507 else
17508 cat $tmp/out
17509 rm -f $tmp/out
17512 done
17513 _ACEOF
17514 cat >>$CONFIG_STATUS <<\_ACEOF
17517 # CONFIG_HEADER section.
17520 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17521 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17523 # ac_d sets the value in "#define NAME VALUE" lines.
17524 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17525 ac_dB='[ ].*$,\1#\2'
17526 ac_dC=' '
17527 ac_dD=',;t'
17528 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17529 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17530 ac_uB='$,\1#\2define\3'
17531 ac_uC=' '
17532 ac_uD=',;t'
17534 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17535 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17536 case $ac_file in
17537 - | *:- | *:-:* ) # input from stdin
17538 cat >$tmp/stdin
17539 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17540 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17541 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17542 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17543 * ) ac_file_in=$ac_file.in ;;
17544 esac
17546 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17547 echo "$as_me: creating $ac_file" >&6;}
17549 # First look for the input files in the build tree, otherwise in the
17550 # src tree.
17551 ac_file_inputs=`IFS=:
17552 for f in $ac_file_in; do
17553 case $f in
17554 -) echo $tmp/stdin ;;
17555 [\\/$]*)
17556 # Absolute (can't be DOS-style, as IFS=:)
17557 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17558 echo "$as_me: error: cannot find input file: $f" >&2;}
17559 { (exit 1); exit 1; }; }
17560 # Do quote $f, to prevent DOS paths from being IFS'd.
17561 echo "$f";;
17562 *) # Relative
17563 if test -f "$f"; then
17564 # Build tree
17565 echo "$f"
17566 elif test -f "$srcdir/$f"; then
17567 # Source tree
17568 echo "$srcdir/$f"
17569 else
17570 # /dev/null tree
17571 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17572 echo "$as_me: error: cannot find input file: $f" >&2;}
17573 { (exit 1); exit 1; }; }
17574 fi;;
17575 esac
17576 done` || { (exit 1); exit 1; }
17577 # Remove the trailing spaces.
17578 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17580 _ACEOF
17582 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17583 # `conftest.undefs', that substitutes the proper values into
17584 # config.h.in to produce config.h. The first handles `#define'
17585 # templates, and the second `#undef' templates.
17586 # And first: Protect against being on the right side of a sed subst in
17587 # config.status. Protect against being in an unquoted here document
17588 # in config.status.
17589 rm -f conftest.defines conftest.undefs
17590 # Using a here document instead of a string reduces the quoting nightmare.
17591 # Putting comments in sed scripts is not portable.
17593 # `end' is used to avoid that the second main sed command (meant for
17594 # 0-ary CPP macros) applies to n-ary macro definitions.
17595 # See the Autoconf documentation for `clear'.
17596 cat >confdef2sed.sed <<\_ACEOF
17597 s/[\\&,]/\\&/g
17598 s,[\\$`],\\&,g
17599 t clear
17600 : clear
17601 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17602 t end
17603 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17604 : end
17605 _ACEOF
17606 # If some macros were called several times there might be several times
17607 # the same #defines, which is useless. Nevertheless, we may not want to
17608 # sort them, since we want the *last* AC-DEFINE to be honored.
17609 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17610 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17611 rm -f confdef2sed.sed
17613 # This sed command replaces #undef with comments. This is necessary, for
17614 # example, in the case of _POSIX_SOURCE, which is predefined and required
17615 # on some systems where configure will not decide to define it.
17616 cat >>conftest.undefs <<\_ACEOF
17617 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17618 _ACEOF
17620 # Break up conftest.defines because some shells have a limit on the size
17621 # of here documents, and old seds have small limits too (100 cmds).
17622 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17623 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17624 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17625 echo ' :' >>$CONFIG_STATUS
17626 rm -f conftest.tail
17627 while grep . conftest.defines >/dev/null
17629 # Write a limited-size here document to $tmp/defines.sed.
17630 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17631 # Speed up: don't consider the non `#define' lines.
17632 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17633 # Work around the forget-to-reset-the-flag bug.
17634 echo 't clr' >>$CONFIG_STATUS
17635 echo ': clr' >>$CONFIG_STATUS
17636 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17637 echo 'CEOF
17638 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17639 rm -f $tmp/in
17640 mv $tmp/out $tmp/in
17641 ' >>$CONFIG_STATUS
17642 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17643 rm -f conftest.defines
17644 mv conftest.tail conftest.defines
17645 done
17646 rm -f conftest.defines
17647 echo ' fi # grep' >>$CONFIG_STATUS
17648 echo >>$CONFIG_STATUS
17650 # Break up conftest.undefs because some shells have a limit on the size
17651 # of here documents, and old seds have small limits too (100 cmds).
17652 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17653 rm -f conftest.tail
17654 while grep . conftest.undefs >/dev/null
17656 # Write a limited-size here document to $tmp/undefs.sed.
17657 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17658 # Speed up: don't consider the non `#undef'
17659 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17660 # Work around the forget-to-reset-the-flag bug.
17661 echo 't clr' >>$CONFIG_STATUS
17662 echo ': clr' >>$CONFIG_STATUS
17663 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17664 echo 'CEOF
17665 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17666 rm -f $tmp/in
17667 mv $tmp/out $tmp/in
17668 ' >>$CONFIG_STATUS
17669 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17670 rm -f conftest.undefs
17671 mv conftest.tail conftest.undefs
17672 done
17673 rm -f conftest.undefs
17675 cat >>$CONFIG_STATUS <<\_ACEOF
17676 # Let's still pretend it is `configure' which instantiates (i.e., don't
17677 # use $as_me), people would be surprised to read:
17678 # /* config.h. Generated by config.status. */
17679 if test x"$ac_file" = x-; then
17680 echo "/* Generated by configure. */" >$tmp/config.h
17681 else
17682 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17684 cat $tmp/in >>$tmp/config.h
17685 rm -f $tmp/in
17686 if test x"$ac_file" != x-; then
17687 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17688 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17689 echo "$as_me: $ac_file is unchanged" >&6;}
17690 else
17691 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17692 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17693 X"$ac_file" : 'X\(//\)[^/]' \| \
17694 X"$ac_file" : 'X\(//\)$' \| \
17695 X"$ac_file" : 'X\(/\)' \| \
17696 . : '\(.\)' 2>/dev/null ||
17697 echo X"$ac_file" |
17698 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17699 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17700 /^X\(\/\/\)$/{ s//\1/; q; }
17701 /^X\(\/\).*/{ s//\1/; q; }
17702 s/.*/./; q'`
17703 { if $as_mkdir_p; then
17704 mkdir -p "$ac_dir"
17705 else
17706 as_dir="$ac_dir"
17707 as_dirs=
17708 while test ! -d "$as_dir"; do
17709 as_dirs="$as_dir $as_dirs"
17710 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17711 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17712 X"$as_dir" : 'X\(//\)[^/]' \| \
17713 X"$as_dir" : 'X\(//\)$' \| \
17714 X"$as_dir" : 'X\(/\)' \| \
17715 . : '\(.\)' 2>/dev/null ||
17716 echo X"$as_dir" |
17717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17719 /^X\(\/\/\)$/{ s//\1/; q; }
17720 /^X\(\/\).*/{ s//\1/; q; }
17721 s/.*/./; q'`
17722 done
17723 test ! -n "$as_dirs" || mkdir $as_dirs
17724 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17725 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17726 { (exit 1); exit 1; }; }; }
17728 rm -f $ac_file
17729 mv $tmp/config.h $ac_file
17731 else
17732 cat $tmp/config.h
17733 rm -f $tmp/config.h
17735 # Compute $ac_file's index in $config_headers.
17736 _am_stamp_count=1
17737 for _am_header in $config_headers :; do
17738 case $_am_header in
17739 $ac_file | $ac_file:* )
17740 break ;;
17742 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17743 esac
17744 done
17745 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17746 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17747 X$ac_file : 'X\(//\)[^/]' \| \
17748 X$ac_file : 'X\(//\)$' \| \
17749 X$ac_file : 'X\(/\)' \| \
17750 . : '\(.\)' 2>/dev/null ||
17751 echo X$ac_file |
17752 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17753 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17754 /^X\(\/\/\)$/{ s//\1/; q; }
17755 /^X\(\/\).*/{ s//\1/; q; }
17756 s/.*/./; q'`/stamp-h$_am_stamp_count
17757 done
17758 _ACEOF
17759 cat >>$CONFIG_STATUS <<\_ACEOF
17762 # CONFIG_LINKS section.
17765 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17766 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17767 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17769 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17770 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
17772 if test ! -r $srcdir/$ac_source; then
17773 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17774 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17775 { (exit 1); exit 1; }; }
17777 rm -f $ac_dest
17779 # Make relative symlinks.
17780 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17781 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17782 X"$ac_dest" : 'X\(//\)[^/]' \| \
17783 X"$ac_dest" : 'X\(//\)$' \| \
17784 X"$ac_dest" : 'X\(/\)' \| \
17785 . : '\(.\)' 2>/dev/null ||
17786 echo X"$ac_dest" |
17787 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17788 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17789 /^X\(\/\/\)$/{ s//\1/; q; }
17790 /^X\(\/\).*/{ s//\1/; q; }
17791 s/.*/./; q'`
17792 { if $as_mkdir_p; then
17793 mkdir -p "$ac_dest_dir"
17794 else
17795 as_dir="$ac_dest_dir"
17796 as_dirs=
17797 while test ! -d "$as_dir"; do
17798 as_dirs="$as_dir $as_dirs"
17799 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17800 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17801 X"$as_dir" : 'X\(//\)[^/]' \| \
17802 X"$as_dir" : 'X\(//\)$' \| \
17803 X"$as_dir" : 'X\(/\)' \| \
17804 . : '\(.\)' 2>/dev/null ||
17805 echo X"$as_dir" |
17806 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17807 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17808 /^X\(\/\/\)$/{ s//\1/; q; }
17809 /^X\(\/\).*/{ s//\1/; q; }
17810 s/.*/./; q'`
17811 done
17812 test ! -n "$as_dirs" || mkdir $as_dirs
17813 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
17814 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
17815 { (exit 1); exit 1; }; }; }
17817 ac_builddir=.
17819 if test "$ac_dest_dir" != .; then
17820 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17821 # A "../" for each directory in $ac_dir_suffix.
17822 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17823 else
17824 ac_dir_suffix= ac_top_builddir=
17827 case $srcdir in
17828 .) # No --srcdir option. We are building in place.
17829 ac_srcdir=.
17830 if test -z "$ac_top_builddir"; then
17831 ac_top_srcdir=.
17832 else
17833 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17834 fi ;;
17835 [\\/]* | ?:[\\/]* ) # Absolute path.
17836 ac_srcdir=$srcdir$ac_dir_suffix;
17837 ac_top_srcdir=$srcdir ;;
17838 *) # Relative path.
17839 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17840 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17841 esac
17843 # Do not use `cd foo && pwd` to compute absolute paths, because
17844 # the directories may not exist.
17845 case `pwd` in
17846 .) ac_abs_builddir="$ac_dest_dir";;
17848 case "$ac_dest_dir" in
17849 .) ac_abs_builddir=`pwd`;;
17850 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
17851 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
17852 esac;;
17853 esac
17854 case $ac_abs_builddir in
17855 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17857 case ${ac_top_builddir}. in
17858 .) ac_abs_top_builddir=$ac_abs_builddir;;
17859 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17860 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17861 esac;;
17862 esac
17863 case $ac_abs_builddir in
17864 .) ac_abs_srcdir=$ac_srcdir;;
17866 case $ac_srcdir in
17867 .) ac_abs_srcdir=$ac_abs_builddir;;
17868 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17869 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17870 esac;;
17871 esac
17872 case $ac_abs_builddir in
17873 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17875 case $ac_top_srcdir in
17876 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17877 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17878 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17879 esac;;
17880 esac
17883 case $srcdir in
17884 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17885 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
17886 esac
17888 # Try a symlink, then a hard link, then a copy.
17889 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17890 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
17891 cp -p $srcdir/$ac_source $ac_dest ||
17892 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
17893 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
17894 { (exit 1); exit 1; }; }
17895 done
17896 _ACEOF
17897 cat >>$CONFIG_STATUS <<\_ACEOF
17900 # CONFIG_COMMANDS section.
17902 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17903 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17904 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17905 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17906 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17907 X"$ac_dest" : 'X\(//\)[^/]' \| \
17908 X"$ac_dest" : 'X\(//\)$' \| \
17909 X"$ac_dest" : 'X\(/\)' \| \
17910 . : '\(.\)' 2>/dev/null ||
17911 echo X"$ac_dest" |
17912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17913 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17914 /^X\(\/\/\)$/{ s//\1/; q; }
17915 /^X\(\/\).*/{ s//\1/; q; }
17916 s/.*/./; q'`
17917 { if $as_mkdir_p; then
17918 mkdir -p "$ac_dir"
17919 else
17920 as_dir="$ac_dir"
17921 as_dirs=
17922 while test ! -d "$as_dir"; do
17923 as_dirs="$as_dir $as_dirs"
17924 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17925 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17926 X"$as_dir" : 'X\(//\)[^/]' \| \
17927 X"$as_dir" : 'X\(//\)$' \| \
17928 X"$as_dir" : 'X\(/\)' \| \
17929 . : '\(.\)' 2>/dev/null ||
17930 echo X"$as_dir" |
17931 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17932 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17933 /^X\(\/\/\)$/{ s//\1/; q; }
17934 /^X\(\/\).*/{ s//\1/; q; }
17935 s/.*/./; q'`
17936 done
17937 test ! -n "$as_dirs" || mkdir $as_dirs
17938 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17939 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17940 { (exit 1); exit 1; }; }; }
17942 ac_builddir=.
17944 if test "$ac_dir" != .; then
17945 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17946 # A "../" for each directory in $ac_dir_suffix.
17947 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17948 else
17949 ac_dir_suffix= ac_top_builddir=
17952 case $srcdir in
17953 .) # No --srcdir option. We are building in place.
17954 ac_srcdir=.
17955 if test -z "$ac_top_builddir"; then
17956 ac_top_srcdir=.
17957 else
17958 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17959 fi ;;
17960 [\\/]* | ?:[\\/]* ) # Absolute path.
17961 ac_srcdir=$srcdir$ac_dir_suffix;
17962 ac_top_srcdir=$srcdir ;;
17963 *) # Relative path.
17964 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17965 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17966 esac
17968 # Do not use `cd foo && pwd` to compute absolute paths, because
17969 # the directories may not exist.
17970 case `pwd` in
17971 .) ac_abs_builddir="$ac_dir";;
17973 case "$ac_dir" in
17974 .) ac_abs_builddir=`pwd`;;
17975 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17976 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17977 esac;;
17978 esac
17979 case $ac_abs_builddir in
17980 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17982 case ${ac_top_builddir}. in
17983 .) ac_abs_top_builddir=$ac_abs_builddir;;
17984 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17985 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17986 esac;;
17987 esac
17988 case $ac_abs_builddir in
17989 .) ac_abs_srcdir=$ac_srcdir;;
17991 case $ac_srcdir in
17992 .) ac_abs_srcdir=$ac_abs_builddir;;
17993 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17994 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17995 esac;;
17996 esac
17997 case $ac_abs_builddir in
17998 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18000 case $ac_top_srcdir in
18001 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18002 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18003 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18004 esac;;
18005 esac
18008 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18009 echo "$as_me: executing $ac_dest commands" >&6;}
18010 case $ac_dest in
18011 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18012 # Strip MF so we end up with the name of the file.
18013 mf=`echo "$mf" | sed -e 's/:.*$//'`
18014 # Check whether this is an Automake generated Makefile or not.
18015 # We used to match only the files named `Makefile.in', but
18016 # some people rename them; so instead we look at the file content.
18017 # Grep'ing the first line is not enough: some people post-process
18018 # each Makefile.in and add a new line on top of each file to say so.
18019 # So let's grep whole file.
18020 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18021 dirpart=`(dirname "$mf") 2>/dev/null ||
18022 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18023 X"$mf" : 'X\(//\)[^/]' \| \
18024 X"$mf" : 'X\(//\)$' \| \
18025 X"$mf" : 'X\(/\)' \| \
18026 . : '\(.\)' 2>/dev/null ||
18027 echo X"$mf" |
18028 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18029 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18030 /^X\(\/\/\)$/{ s//\1/; q; }
18031 /^X\(\/\).*/{ s//\1/; q; }
18032 s/.*/./; q'`
18033 else
18034 continue
18036 # Extract the definition of DEPDIR, am__include, and am__quote
18037 # from the Makefile without running `make'.
18038 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18039 test -z "$DEPDIR" && continue
18040 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18041 test -z "am__include" && continue
18042 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18043 # When using ansi2knr, U may be empty or an underscore; expand it
18044 U=`sed -n 's/^U = //p' < "$mf"`
18045 # Find all dependency output files, they are included files with
18046 # $(DEPDIR) in their names. We invoke sed twice because it is the
18047 # simplest approach to changing $(DEPDIR) to its actual value in the
18048 # expansion.
18049 for file in `sed -n "
18050 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18051 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18052 # Make sure the directory exists.
18053 test -f "$dirpart/$file" && continue
18054 fdir=`(dirname "$file") 2>/dev/null ||
18055 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18056 X"$file" : 'X\(//\)[^/]' \| \
18057 X"$file" : 'X\(//\)$' \| \
18058 X"$file" : 'X\(/\)' \| \
18059 . : '\(.\)' 2>/dev/null ||
18060 echo X"$file" |
18061 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18062 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18063 /^X\(\/\/\)$/{ s//\1/; q; }
18064 /^X\(\/\).*/{ s//\1/; q; }
18065 s/.*/./; q'`
18066 { if $as_mkdir_p; then
18067 mkdir -p $dirpart/$fdir
18068 else
18069 as_dir=$dirpart/$fdir
18070 as_dirs=
18071 while test ! -d "$as_dir"; do
18072 as_dirs="$as_dir $as_dirs"
18073 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18074 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18075 X"$as_dir" : 'X\(//\)[^/]' \| \
18076 X"$as_dir" : 'X\(//\)$' \| \
18077 X"$as_dir" : 'X\(/\)' \| \
18078 . : '\(.\)' 2>/dev/null ||
18079 echo X"$as_dir" |
18080 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18081 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18082 /^X\(\/\/\)$/{ s//\1/; q; }
18083 /^X\(\/\).*/{ s//\1/; q; }
18084 s/.*/./; q'`
18085 done
18086 test ! -n "$as_dirs" || mkdir $as_dirs
18087 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18088 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18089 { (exit 1); exit 1; }; }; }
18091 # echo "creating $dirpart/$file"
18092 echo '# dummy' > "$dirpart/$file"
18093 done
18094 done
18096 default ) # Only add multilib support code if we just rebuilt top-level Makefile.
18097 case " $CONFIG_FILES " in
18098 *" Makefile "*)
18099 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
18100 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
18102 esac
18104 esac
18105 done
18106 _ACEOF
18108 cat >>$CONFIG_STATUS <<\_ACEOF
18110 { (exit 0); exit 0; }
18111 _ACEOF
18112 chmod +x $CONFIG_STATUS
18113 ac_clean_files=$ac_clean_files_save
18116 # configure is writing to config.log, and then calls config.status.
18117 # config.status does its own redirection, appending to config.log.
18118 # Unfortunately, on DOS this fails, as config.log is still kept open
18119 # by configure, so config.status won't be able to write to it; its
18120 # output is simply discarded. So we exec the FD to /dev/null,
18121 # effectively closing config.log, so it can be properly (re)opened and
18122 # appended to by config.status. When coming back to configure, we
18123 # need to make the FD available again.
18124 if test "$no_create" != yes; then
18125 ac_cs_success=:
18126 ac_config_status_args=
18127 test "$silent" = yes &&
18128 ac_config_status_args="$ac_config_status_args --quiet"
18129 exec 5>/dev/null
18130 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18131 exec 5>>config.log
18132 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18133 # would make configure fail if this is the last instruction.
18134 $ac_cs_success || { (exit 1); exit 1; }
18138 # CONFIG_SUBDIRS section.
18140 if test "$no_recursion" != yes; then
18142 # Remove --cache-file and --srcdir arguments so they do not pile up.
18143 ac_sub_configure_args=
18144 ac_prev=
18145 for ac_arg in $ac_configure_args; do
18146 if test -n "$ac_prev"; then
18147 ac_prev=
18148 continue
18150 case $ac_arg in
18151 -cache-file | --cache-file | --cache-fil | --cache-fi \
18152 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18153 ac_prev=cache_file ;;
18154 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18155 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18156 | --c=*)
18158 --config-cache | -C)
18160 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18161 ac_prev=srcdir ;;
18162 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18164 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18165 ac_prev=prefix ;;
18166 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18168 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18169 esac
18170 done
18172 # Always prepend --prefix to ensure using the same prefix
18173 # in subdir configurations.
18174 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
18176 ac_popdir=`pwd`
18177 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18179 # Do not complain, so a configure script can configure whichever
18180 # parts of a large source tree are present.
18181 test -d $srcdir/$ac_dir || continue
18183 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
18184 echo "$as_me: configuring in $ac_dir" >&6;}
18185 { if $as_mkdir_p; then
18186 mkdir -p "$ac_dir"
18187 else
18188 as_dir="$ac_dir"
18189 as_dirs=
18190 while test ! -d "$as_dir"; do
18191 as_dirs="$as_dir $as_dirs"
18192 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18193 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18194 X"$as_dir" : 'X\(//\)[^/]' \| \
18195 X"$as_dir" : 'X\(//\)$' \| \
18196 X"$as_dir" : 'X\(/\)' \| \
18197 . : '\(.\)' 2>/dev/null ||
18198 echo X"$as_dir" |
18199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18200 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18201 /^X\(\/\/\)$/{ s//\1/; q; }
18202 /^X\(\/\).*/{ s//\1/; q; }
18203 s/.*/./; q'`
18204 done
18205 test ! -n "$as_dirs" || mkdir $as_dirs
18206 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18207 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18208 { (exit 1); exit 1; }; }; }
18210 ac_builddir=.
18212 if test "$ac_dir" != .; then
18213 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18214 # A "../" for each directory in $ac_dir_suffix.
18215 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18216 else
18217 ac_dir_suffix= ac_top_builddir=
18220 case $srcdir in
18221 .) # No --srcdir option. We are building in place.
18222 ac_srcdir=.
18223 if test -z "$ac_top_builddir"; then
18224 ac_top_srcdir=.
18225 else
18226 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18227 fi ;;
18228 [\\/]* | ?:[\\/]* ) # Absolute path.
18229 ac_srcdir=$srcdir$ac_dir_suffix;
18230 ac_top_srcdir=$srcdir ;;
18231 *) # Relative path.
18232 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18233 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18234 esac
18236 # Do not use `cd foo && pwd` to compute absolute paths, because
18237 # the directories may not exist.
18238 case `pwd` in
18239 .) ac_abs_builddir="$ac_dir";;
18241 case "$ac_dir" in
18242 .) ac_abs_builddir=`pwd`;;
18243 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18244 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18245 esac;;
18246 esac
18247 case $ac_abs_builddir in
18248 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18250 case ${ac_top_builddir}. in
18251 .) ac_abs_top_builddir=$ac_abs_builddir;;
18252 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18253 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18254 esac;;
18255 esac
18256 case $ac_abs_builddir in
18257 .) ac_abs_srcdir=$ac_srcdir;;
18259 case $ac_srcdir in
18260 .) ac_abs_srcdir=$ac_abs_builddir;;
18261 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18262 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18263 esac;;
18264 esac
18265 case $ac_abs_builddir in
18266 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18268 case $ac_top_srcdir in
18269 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18270 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18271 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18272 esac;;
18273 esac
18276 cd $ac_dir
18278 # Check for guested configure; otherwise get Cygnus style configure.
18279 if test -f $ac_srcdir/configure.gnu; then
18280 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
18281 elif test -f $ac_srcdir/configure; then
18282 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
18283 elif test -f $ac_srcdir/configure.in; then
18284 ac_sub_configure=$ac_configure
18285 else
18286 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
18287 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18288 ac_sub_configure=
18291 # The recursion is here.
18292 if test -n "$ac_sub_configure"; then
18293 # Make the cache file name correct relative to the subdirectory.
18294 case $cache_file in
18295 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18296 *) # Relative path.
18297 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
18298 esac
18300 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
18301 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18302 # The eval makes quoting arguments work.
18303 eval $ac_sub_configure $ac_sub_configure_args \
18304 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
18305 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
18306 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
18307 { (exit 1); exit 1; }; }
18310 cd $ac_popdir
18311 done