Fix entry.
[official-gcc.git] / libjava / configure
blob980f4a4e567760900ef526e6b81e8aef4985f97b
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 build build_cpu build_vendor build_os build_subdir host_subdir target_subdir libgcj_basedir host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical LN_S mkinstalldirs CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LDFLAGS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBGCJ_CFLAGS LIBGCJ_CXXFLAGS LIBGCJ_JAVAFLAGS LIBGCJ_LD_SYMBOLIC INCLTDL LIBLTDL DIRLTDL LIBTOOL CXXCPP CPPFLAGS GCJ GCJFLAGS GCJDEPMODE am__fastdepGCJ_TRUE am__fastdepGCJ_FALSE subdirs 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 USING_DARWIN_CRT_TRUE USING_DARWIN_CRT_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 gcc_version_trigger gcc_version_full gcc_version tool_include_dir LIBICONV LTLIBICONV GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS SUPPLY_BACKTRACE_TRUE SUPPLY_BACKTRACE_FALSE GCJH ZIP CLASSPATH_SEPARATOR 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 gxx_include_dir libstdcxx_incdir 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 ac_aux_dir=
1365 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1366 if test -f $ac_dir/install-sh; then
1367 ac_aux_dir=$ac_dir
1368 ac_install_sh="$ac_aux_dir/install-sh -c"
1369 break
1370 elif test -f $ac_dir/install.sh; then
1371 ac_aux_dir=$ac_dir
1372 ac_install_sh="$ac_aux_dir/install.sh -c"
1373 break
1374 elif test -f $ac_dir/shtool; then
1375 ac_aux_dir=$ac_dir
1376 ac_install_sh="$ac_aux_dir/shtool install -c"
1377 break
1379 done
1380 if test -z "$ac_aux_dir"; then
1381 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1382 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1383 { (exit 1); exit 1; }; }
1385 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1386 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1387 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1389 # Make sure we can run config.sub.
1390 $ac_config_sub sun4 >/dev/null 2>&1 ||
1391 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1392 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1393 { (exit 1); exit 1; }; }
1395 echo "$as_me:$LINENO: checking build system type" >&5
1396 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1397 if test "${ac_cv_build+set}" = set; then
1398 echo $ECHO_N "(cached) $ECHO_C" >&6
1399 else
1400 ac_cv_build_alias=$build_alias
1401 test -z "$ac_cv_build_alias" &&
1402 ac_cv_build_alias=`$ac_config_guess`
1403 test -z "$ac_cv_build_alias" &&
1404 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1405 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1406 { (exit 1); exit 1; }; }
1407 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1408 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1409 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1410 { (exit 1); exit 1; }; }
1413 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1414 echo "${ECHO_T}$ac_cv_build" >&6
1415 build=$ac_cv_build
1416 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1417 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1418 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1421 case ${build_alias} in
1422 "") build_noncanonical=${build} ;;
1423 *) build_noncanonical=${build_alias} ;;
1424 esac
1426 case ${host_alias} in
1427 "") host_noncanonical=${build_noncanonical} ;;
1428 *) host_noncanonical=${host_alias} ;;
1429 esac
1431 case ${target_alias} in
1432 "") target_noncanonical=${host_noncanonical} ;;
1433 *) target_noncanonical=${target_alias} ;;
1434 esac
1436 # Prefix 'build-' so this never conflicts with target_subdir.
1437 build_subdir="build-${build_noncanonical}"
1438 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1439 if ( test $srcdir = . && test -d gcc ) \
1440 || test -d $srcdir/../host-${host_noncanonical}; then
1441 host_subdir="host-${host_noncanonical}"
1442 else
1443 host_subdir=.
1445 # No prefix.
1446 target_subdir=${target_noncanonical}
1449 # We use these options to decide which functions to include.
1451 # Check whether --with-target-subdir or --without-target-subdir was given.
1452 if test "${with_target_subdir+set}" = set; then
1453 withval="$with_target_subdir"
1457 # We may get other options which we don't document:
1458 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1460 # When building with srcdir == objdir, links to the source files will
1461 # be created in directories within the target_subdir. We have to
1462 # adjust toplevel_srcdir accordingly, so that configure finds
1463 # install-sh and other auxiliary files that live in the top-level
1464 # source directory.
1465 if test "${srcdir}" = "."; then
1466 if test -z "${with_target_subdir}"; then
1467 toprel=".."
1468 else
1469 if test "${with_target_subdir}" != "."; then
1470 toprel="${with_multisrctop}../.."
1471 else
1472 toprel="${with_multisrctop}.."
1475 else
1476 toprel=".."
1479 libgcj_basedir=$srcdir/$toprel/./libjava
1482 echo "$as_me:$LINENO: checking host system type" >&5
1483 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1484 if test "${ac_cv_host+set}" = set; then
1485 echo $ECHO_N "(cached) $ECHO_C" >&6
1486 else
1487 ac_cv_host_alias=$host_alias
1488 test -z "$ac_cv_host_alias" &&
1489 ac_cv_host_alias=$ac_cv_build_alias
1490 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1491 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1492 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1493 { (exit 1); exit 1; }; }
1496 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1497 echo "${ECHO_T}$ac_cv_host" >&6
1498 host=$ac_cv_host
1499 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1500 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1501 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1504 echo "$as_me:$LINENO: checking target system type" >&5
1505 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1506 if test "${ac_cv_target+set}" = set; then
1507 echo $ECHO_N "(cached) $ECHO_C" >&6
1508 else
1509 ac_cv_target_alias=$target_alias
1510 test "x$ac_cv_target_alias" = "x" &&
1511 ac_cv_target_alias=$ac_cv_host_alias
1512 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1513 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1514 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1515 { (exit 1); exit 1; }; }
1518 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1519 echo "${ECHO_T}$ac_cv_target" >&6
1520 target=$ac_cv_target
1521 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1522 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1523 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1526 # The aliases save the names the user supplied, while $host etc.
1527 # will get canonicalized.
1528 test -n "$target_alias" &&
1529 test "$program_prefix$program_suffix$program_transform_name" = \
1530 NONENONEs,x,x, &&
1531 program_prefix=${target_alias}-
1532 case ${build_alias} in
1533 "") build_noncanonical=${build} ;;
1534 *) build_noncanonical=${build_alias} ;;
1535 esac
1537 case ${target_alias} in
1538 "") target_noncanonical=${host_noncanonical} ;;
1539 *) target_noncanonical=${target_alias} ;;
1540 esac
1545 # This works around the fact that libtool configuration may change LD
1546 # for this particular configuration, but some shells, instead of
1547 # keeping the changes in LD private, export them just because LD is
1548 # exported.
1549 ORIGINAL_LD_FOR_MULTILIBS=$LD
1551 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1552 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1553 LN_S=$as_ln_s
1554 if test "$LN_S" = "ln -s"; then
1555 echo "$as_me:$LINENO: result: yes" >&5
1556 echo "${ECHO_T}yes" >&6
1557 else
1558 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1559 echo "${ECHO_T}no, using $LN_S" >&6
1563 # This works around an automake problem.
1564 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1568 # Check whether --with-cross-host or --without-cross-host was given.
1569 if test "${with_cross_host+set}" = set; then
1570 withval="$with_cross_host"
1575 # Check whether --with-newlib or --without-newlib was given.
1576 if test "${with_newlib+set}" = set; then
1577 withval="$with_newlib"
1581 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1582 if test "${enable_version_specific_runtime_libs+set}" = set; then
1583 enableval="$enable_version_specific_runtime_libs"
1584 case "$enableval" in
1585 yes) version_specific_libs=yes ;;
1586 no) version_specific_libs=no ;;
1587 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1588 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1589 { (exit 1); exit 1; }; };;
1590 esac
1591 else
1592 version_specific_libs=no
1596 # Default to --enable-multilib
1597 # Check whether --enable-multilib or --disable-multilib was given.
1598 if test "${enable_multilib+set}" = set; then
1599 enableval="$enable_multilib"
1600 case "${enableval}" in
1601 yes) multilib=yes ;;
1602 no) multilib=no ;;
1603 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1604 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1605 { (exit 1); exit 1; }; } ;;
1606 esac
1607 else
1608 multilib=yes
1610 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1613 # (1) We use an abnormal CXX (without library references), so we
1614 # must cache it under a different name.
1615 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1616 # the non-multilib-adjusted value will be used in multilibs.
1617 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1618 # (4) As another side effect, automake doesn't automatically include them
1619 # in Makefile.in.
1620 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1621 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1622 # used in later tests. This may not be necessary in libjava; I don't know.
1626 save_CXXFLAGS="$CXXFLAGS"
1627 CXXFLAGS="$CXXFLAGS -fno-builtin"
1628 ac_ext=c
1629 ac_cpp='$CPP $CPPFLAGS'
1630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1633 if test -n "$ac_tool_prefix"; then
1634 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1635 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1636 echo "$as_me:$LINENO: checking for $ac_word" >&5
1637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1638 if test "${ac_cv_prog_CC+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640 else
1641 if test -n "$CC"; then
1642 ac_cv_prog_CC="$CC" # Let the user override the test.
1643 else
1644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645 for as_dir in $PATH
1647 IFS=$as_save_IFS
1648 test -z "$as_dir" && as_dir=.
1649 for ac_exec_ext in '' $ac_executable_extensions; do
1650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1651 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1653 break 2
1655 done
1656 done
1660 CC=$ac_cv_prog_CC
1661 if test -n "$CC"; then
1662 echo "$as_me:$LINENO: result: $CC" >&5
1663 echo "${ECHO_T}$CC" >&6
1664 else
1665 echo "$as_me:$LINENO: result: no" >&5
1666 echo "${ECHO_T}no" >&6
1670 if test -z "$ac_cv_prog_CC"; then
1671 ac_ct_CC=$CC
1672 # Extract the first word of "gcc", so it can be a program name with args.
1673 set dummy gcc; ac_word=$2
1674 echo "$as_me:$LINENO: checking for $ac_word" >&5
1675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1676 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1677 echo $ECHO_N "(cached) $ECHO_C" >&6
1678 else
1679 if test -n "$ac_ct_CC"; then
1680 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1681 else
1682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1683 for as_dir in $PATH
1685 IFS=$as_save_IFS
1686 test -z "$as_dir" && as_dir=.
1687 for ac_exec_ext in '' $ac_executable_extensions; do
1688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1689 ac_cv_prog_ac_ct_CC="gcc"
1690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1691 break 2
1693 done
1694 done
1698 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1699 if test -n "$ac_ct_CC"; then
1700 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1701 echo "${ECHO_T}$ac_ct_CC" >&6
1702 else
1703 echo "$as_me:$LINENO: result: no" >&5
1704 echo "${ECHO_T}no" >&6
1707 CC=$ac_ct_CC
1708 else
1709 CC="$ac_cv_prog_CC"
1712 if test -z "$CC"; then
1713 if test -n "$ac_tool_prefix"; then
1714 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1715 set dummy ${ac_tool_prefix}cc; ac_word=$2
1716 echo "$as_me:$LINENO: checking for $ac_word" >&5
1717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1718 if test "${ac_cv_prog_CC+set}" = set; then
1719 echo $ECHO_N "(cached) $ECHO_C" >&6
1720 else
1721 if test -n "$CC"; then
1722 ac_cv_prog_CC="$CC" # Let the user override the test.
1723 else
1724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1725 for as_dir in $PATH
1727 IFS=$as_save_IFS
1728 test -z "$as_dir" && as_dir=.
1729 for ac_exec_ext in '' $ac_executable_extensions; do
1730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1731 ac_cv_prog_CC="${ac_tool_prefix}cc"
1732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1733 break 2
1735 done
1736 done
1740 CC=$ac_cv_prog_CC
1741 if test -n "$CC"; then
1742 echo "$as_me:$LINENO: result: $CC" >&5
1743 echo "${ECHO_T}$CC" >&6
1744 else
1745 echo "$as_me:$LINENO: result: no" >&5
1746 echo "${ECHO_T}no" >&6
1750 if test -z "$ac_cv_prog_CC"; then
1751 ac_ct_CC=$CC
1752 # Extract the first word of "cc", so it can be a program name with args.
1753 set dummy cc; ac_word=$2
1754 echo "$as_me:$LINENO: checking for $ac_word" >&5
1755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1756 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1757 echo $ECHO_N "(cached) $ECHO_C" >&6
1758 else
1759 if test -n "$ac_ct_CC"; then
1760 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1761 else
1762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1763 for as_dir in $PATH
1765 IFS=$as_save_IFS
1766 test -z "$as_dir" && as_dir=.
1767 for ac_exec_ext in '' $ac_executable_extensions; do
1768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1769 ac_cv_prog_ac_ct_CC="cc"
1770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1771 break 2
1773 done
1774 done
1778 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1779 if test -n "$ac_ct_CC"; then
1780 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1781 echo "${ECHO_T}$ac_ct_CC" >&6
1782 else
1783 echo "$as_me:$LINENO: result: no" >&5
1784 echo "${ECHO_T}no" >&6
1787 CC=$ac_ct_CC
1788 else
1789 CC="$ac_cv_prog_CC"
1793 if test -z "$CC"; then
1794 # Extract the first word of "cc", so it can be a program name with args.
1795 set dummy cc; ac_word=$2
1796 echo "$as_me:$LINENO: checking for $ac_word" >&5
1797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1798 if test "${ac_cv_prog_CC+set}" = set; then
1799 echo $ECHO_N "(cached) $ECHO_C" >&6
1800 else
1801 if test -n "$CC"; then
1802 ac_cv_prog_CC="$CC" # Let the user override the test.
1803 else
1804 ac_prog_rejected=no
1805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1806 for as_dir in $PATH
1808 IFS=$as_save_IFS
1809 test -z "$as_dir" && as_dir=.
1810 for ac_exec_ext in '' $ac_executable_extensions; do
1811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1812 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1813 ac_prog_rejected=yes
1814 continue
1816 ac_cv_prog_CC="cc"
1817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1818 break 2
1820 done
1821 done
1823 if test $ac_prog_rejected = yes; then
1824 # We found a bogon in the path, so make sure we never use it.
1825 set dummy $ac_cv_prog_CC
1826 shift
1827 if test $# != 0; then
1828 # We chose a different compiler from the bogus one.
1829 # However, it has the same basename, so the bogon will be chosen
1830 # first if we set CC to just the basename; use the full file name.
1831 shift
1832 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1837 CC=$ac_cv_prog_CC
1838 if test -n "$CC"; then
1839 echo "$as_me:$LINENO: result: $CC" >&5
1840 echo "${ECHO_T}$CC" >&6
1841 else
1842 echo "$as_me:$LINENO: result: no" >&5
1843 echo "${ECHO_T}no" >&6
1847 if test -z "$CC"; then
1848 if test -n "$ac_tool_prefix"; then
1849 for ac_prog in cl
1851 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1852 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1853 echo "$as_me:$LINENO: checking for $ac_word" >&5
1854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1855 if test "${ac_cv_prog_CC+set}" = set; then
1856 echo $ECHO_N "(cached) $ECHO_C" >&6
1857 else
1858 if test -n "$CC"; then
1859 ac_cv_prog_CC="$CC" # Let the user override the test.
1860 else
1861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1862 for as_dir in $PATH
1864 IFS=$as_save_IFS
1865 test -z "$as_dir" && as_dir=.
1866 for ac_exec_ext in '' $ac_executable_extensions; do
1867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1868 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1870 break 2
1872 done
1873 done
1877 CC=$ac_cv_prog_CC
1878 if test -n "$CC"; then
1879 echo "$as_me:$LINENO: result: $CC" >&5
1880 echo "${ECHO_T}$CC" >&6
1881 else
1882 echo "$as_me:$LINENO: result: no" >&5
1883 echo "${ECHO_T}no" >&6
1886 test -n "$CC" && break
1887 done
1889 if test -z "$CC"; then
1890 ac_ct_CC=$CC
1891 for ac_prog in cl
1893 # Extract the first word of "$ac_prog", so it can be a program name with args.
1894 set dummy $ac_prog; ac_word=$2
1895 echo "$as_me:$LINENO: checking for $ac_word" >&5
1896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1897 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1898 echo $ECHO_N "(cached) $ECHO_C" >&6
1899 else
1900 if test -n "$ac_ct_CC"; then
1901 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1902 else
1903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1904 for as_dir in $PATH
1906 IFS=$as_save_IFS
1907 test -z "$as_dir" && as_dir=.
1908 for ac_exec_ext in '' $ac_executable_extensions; do
1909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1910 ac_cv_prog_ac_ct_CC="$ac_prog"
1911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1912 break 2
1914 done
1915 done
1919 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1920 if test -n "$ac_ct_CC"; then
1921 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1922 echo "${ECHO_T}$ac_ct_CC" >&6
1923 else
1924 echo "$as_me:$LINENO: result: no" >&5
1925 echo "${ECHO_T}no" >&6
1928 test -n "$ac_ct_CC" && break
1929 done
1931 CC=$ac_ct_CC
1937 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1938 See \`config.log' for more details." >&5
1939 echo "$as_me: error: no acceptable C compiler found in \$PATH
1940 See \`config.log' for more details." >&2;}
1941 { (exit 1); exit 1; }; }
1943 # Provide some information about the compiler.
1944 echo "$as_me:$LINENO:" \
1945 "checking for C compiler version" >&5
1946 ac_compiler=`set X $ac_compile; echo $2`
1947 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1948 (eval $ac_compiler --version </dev/null >&5) 2>&5
1949 ac_status=$?
1950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1951 (exit $ac_status); }
1952 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1953 (eval $ac_compiler -v </dev/null >&5) 2>&5
1954 ac_status=$?
1955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1956 (exit $ac_status); }
1957 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1958 (eval $ac_compiler -V </dev/null >&5) 2>&5
1959 ac_status=$?
1960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1961 (exit $ac_status); }
1963 cat >conftest.$ac_ext <<_ACEOF
1964 /* confdefs.h. */
1965 _ACEOF
1966 cat confdefs.h >>conftest.$ac_ext
1967 cat >>conftest.$ac_ext <<_ACEOF
1968 /* end confdefs.h. */
1971 main ()
1975 return 0;
1977 _ACEOF
1978 # FIXME: Cleanup?
1979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1980 (eval $ac_link) 2>&5
1981 ac_status=$?
1982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1983 (exit $ac_status); }; then
1984 gcc_no_link=no
1985 else
1986 gcc_no_link=yes
1989 if test x$gcc_no_link = xyes; then
1990 # Setting cross_compile will disable run tests; it will
1991 # also disable AC_CHECK_FILE but that's generally
1992 # correct if we can't link.
1993 cross_compiling=yes
1994 EXEEXT=
1995 else
1996 cat >conftest.$ac_ext <<_ACEOF
1997 /* confdefs.h. */
1998 _ACEOF
1999 cat confdefs.h >>conftest.$ac_ext
2000 cat >>conftest.$ac_ext <<_ACEOF
2001 /* end confdefs.h. */
2004 main ()
2008 return 0;
2010 _ACEOF
2011 ac_clean_files_save=$ac_clean_files
2012 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2013 # Try to create an executable without -o first, disregard a.out.
2014 # It will help us diagnose broken compilers, and finding out an intuition
2015 # of exeext.
2016 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2017 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2018 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2019 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2020 (eval $ac_link_default) 2>&5
2021 ac_status=$?
2022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2023 (exit $ac_status); }; then
2024 # Find the output, starting from the most likely. This scheme is
2025 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2026 # resort.
2028 # Be careful to initialize this variable, since it used to be cached.
2029 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2030 ac_cv_exeext=
2031 # b.out is created by i960 compilers.
2032 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2034 test -f "$ac_file" || continue
2035 case $ac_file in
2036 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2038 conftest.$ac_ext )
2039 # This is the source file.
2041 [ab].out )
2042 # We found the default executable, but exeext='' is most
2043 # certainly right.
2044 break;;
2045 *.* )
2046 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2047 # FIXME: I believe we export ac_cv_exeext for Libtool,
2048 # but it would be cool to find out if it's true. Does anybody
2049 # maintain Libtool? --akim.
2050 export ac_cv_exeext
2051 break;;
2053 break;;
2054 esac
2055 done
2056 else
2057 echo "$as_me: failed program was:" >&5
2058 sed 's/^/| /' conftest.$ac_ext >&5
2060 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2061 See \`config.log' for more details." >&5
2062 echo "$as_me: error: C compiler cannot create executables
2063 See \`config.log' for more details." >&2;}
2064 { (exit 77); exit 77; }; }
2067 ac_exeext=$ac_cv_exeext
2068 echo "$as_me:$LINENO: result: $ac_file" >&5
2069 echo "${ECHO_T}$ac_file" >&6
2071 # Check the compiler produces executables we can run. If not, either
2072 # the compiler is broken, or we cross compile.
2073 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2074 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2075 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2076 # If not cross compiling, check that we can run a simple program.
2077 if test "$cross_compiling" != yes; then
2078 if { ac_try='./$ac_file'
2079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2080 (eval $ac_try) 2>&5
2081 ac_status=$?
2082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083 (exit $ac_status); }; }; then
2084 cross_compiling=no
2085 else
2086 if test "$cross_compiling" = maybe; then
2087 cross_compiling=yes
2088 else
2089 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2090 If you meant to cross compile, use \`--host'.
2091 See \`config.log' for more details." >&5
2092 echo "$as_me: error: cannot run C compiled programs.
2093 If you meant to cross compile, use \`--host'.
2094 See \`config.log' for more details." >&2;}
2095 { (exit 1); exit 1; }; }
2099 echo "$as_me:$LINENO: result: yes" >&5
2100 echo "${ECHO_T}yes" >&6
2102 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2103 ac_clean_files=$ac_clean_files_save
2104 # Check the compiler produces executables we can run. If not, either
2105 # the compiler is broken, or we cross compile.
2106 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2107 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2108 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2109 echo "${ECHO_T}$cross_compiling" >&6
2111 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2112 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2114 (eval $ac_link) 2>&5
2115 ac_status=$?
2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117 (exit $ac_status); }; then
2118 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2119 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2120 # work properly (i.e., refer to `conftest.exe'), while it won't with
2121 # `rm'.
2122 for ac_file in conftest.exe conftest conftest.*; do
2123 test -f "$ac_file" || continue
2124 case $ac_file in
2125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2126 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2127 export ac_cv_exeext
2128 break;;
2129 * ) break;;
2130 esac
2131 done
2132 else
2133 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2134 See \`config.log' for more details." >&5
2135 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2136 See \`config.log' for more details." >&2;}
2137 { (exit 1); exit 1; }; }
2140 rm -f conftest$ac_cv_exeext
2141 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2142 echo "${ECHO_T}$ac_cv_exeext" >&6
2144 rm -f conftest.$ac_ext
2145 EXEEXT=$ac_cv_exeext
2146 ac_exeext=$EXEEXT
2148 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2149 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2150 if test "${ac_cv_objext+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2152 else
2153 cat >conftest.$ac_ext <<_ACEOF
2154 /* confdefs.h. */
2155 _ACEOF
2156 cat confdefs.h >>conftest.$ac_ext
2157 cat >>conftest.$ac_ext <<_ACEOF
2158 /* end confdefs.h. */
2161 main ()
2165 return 0;
2167 _ACEOF
2168 rm -f conftest.o conftest.obj
2169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2170 (eval $ac_compile) 2>&5
2171 ac_status=$?
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); }; then
2174 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2175 case $ac_file in
2176 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2177 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2178 break;;
2179 esac
2180 done
2181 else
2182 echo "$as_me: failed program was:" >&5
2183 sed 's/^/| /' conftest.$ac_ext >&5
2185 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2186 See \`config.log' for more details." >&5
2187 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2188 See \`config.log' for more details." >&2;}
2189 { (exit 1); exit 1; }; }
2192 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2194 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2195 echo "${ECHO_T}$ac_cv_objext" >&6
2196 OBJEXT=$ac_cv_objext
2197 ac_objext=$OBJEXT
2198 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2199 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2200 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2201 echo $ECHO_N "(cached) $ECHO_C" >&6
2202 else
2203 cat >conftest.$ac_ext <<_ACEOF
2204 /* confdefs.h. */
2205 _ACEOF
2206 cat confdefs.h >>conftest.$ac_ext
2207 cat >>conftest.$ac_ext <<_ACEOF
2208 /* end confdefs.h. */
2211 main ()
2213 #ifndef __GNUC__
2214 choke me
2215 #endif
2218 return 0;
2220 _ACEOF
2221 rm -f conftest.$ac_objext
2222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2223 (eval $ac_compile) 2>conftest.er1
2224 ac_status=$?
2225 grep -v '^ *+' conftest.er1 >conftest.err
2226 rm -f conftest.er1
2227 cat conftest.err >&5
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); } &&
2230 { ac_try='test -z "$ac_c_werror_flag"
2231 || test ! -s conftest.err'
2232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2233 (eval $ac_try) 2>&5
2234 ac_status=$?
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); }; } &&
2237 { ac_try='test -s conftest.$ac_objext'
2238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2239 (eval $ac_try) 2>&5
2240 ac_status=$?
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); }; }; then
2243 ac_compiler_gnu=yes
2244 else
2245 echo "$as_me: failed program was:" >&5
2246 sed 's/^/| /' conftest.$ac_ext >&5
2248 ac_compiler_gnu=no
2250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2251 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2254 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2255 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2256 GCC=`test $ac_compiler_gnu = yes && echo yes`
2257 ac_test_CFLAGS=${CFLAGS+set}
2258 ac_save_CFLAGS=$CFLAGS
2259 CFLAGS="-g"
2260 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2261 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2262 if test "${ac_cv_prog_cc_g+set}" = set; then
2263 echo $ECHO_N "(cached) $ECHO_C" >&6
2264 else
2265 cat >conftest.$ac_ext <<_ACEOF
2266 /* confdefs.h. */
2267 _ACEOF
2268 cat confdefs.h >>conftest.$ac_ext
2269 cat >>conftest.$ac_ext <<_ACEOF
2270 /* end confdefs.h. */
2273 main ()
2277 return 0;
2279 _ACEOF
2280 rm -f conftest.$ac_objext
2281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2282 (eval $ac_compile) 2>conftest.er1
2283 ac_status=$?
2284 grep -v '^ *+' conftest.er1 >conftest.err
2285 rm -f conftest.er1
2286 cat conftest.err >&5
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); } &&
2289 { ac_try='test -z "$ac_c_werror_flag"
2290 || test ! -s conftest.err'
2291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2292 (eval $ac_try) 2>&5
2293 ac_status=$?
2294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295 (exit $ac_status); }; } &&
2296 { ac_try='test -s conftest.$ac_objext'
2297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2298 (eval $ac_try) 2>&5
2299 ac_status=$?
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); }; }; then
2302 ac_cv_prog_cc_g=yes
2303 else
2304 echo "$as_me: failed program was:" >&5
2305 sed 's/^/| /' conftest.$ac_ext >&5
2307 ac_cv_prog_cc_g=no
2309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2311 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2312 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2313 if test "$ac_test_CFLAGS" = set; then
2314 CFLAGS=$ac_save_CFLAGS
2315 elif test $ac_cv_prog_cc_g = yes; then
2316 if test "$GCC" = yes; then
2317 CFLAGS="-g -O2"
2318 else
2319 CFLAGS="-g"
2321 else
2322 if test "$GCC" = yes; then
2323 CFLAGS="-O2"
2324 else
2325 CFLAGS=
2328 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2329 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2330 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2331 echo $ECHO_N "(cached) $ECHO_C" >&6
2332 else
2333 ac_cv_prog_cc_stdc=no
2334 ac_save_CC=$CC
2335 cat >conftest.$ac_ext <<_ACEOF
2336 /* confdefs.h. */
2337 _ACEOF
2338 cat confdefs.h >>conftest.$ac_ext
2339 cat >>conftest.$ac_ext <<_ACEOF
2340 /* end confdefs.h. */
2341 #include <stdarg.h>
2342 #include <stdio.h>
2343 #include <sys/types.h>
2344 #include <sys/stat.h>
2345 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2346 struct buf { int x; };
2347 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2348 static char *e (p, i)
2349 char **p;
2350 int i;
2352 return p[i];
2354 static char *f (char * (*g) (char **, int), char **p, ...)
2356 char *s;
2357 va_list v;
2358 va_start (v,p);
2359 s = g (p, va_arg (v,int));
2360 va_end (v);
2361 return s;
2364 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2365 function prototypes and stuff, but not '\xHH' hex character constants.
2366 These don't provoke an error unfortunately, instead are silently treated
2367 as 'x'. The following induces an error, until -std1 is added to get
2368 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2369 array size at least. It's necessary to write '\x00'==0 to get something
2370 that's true only with -std1. */
2371 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2373 int test (int i, double x);
2374 struct s1 {int (*f) (int a);};
2375 struct s2 {int (*f) (double a);};
2376 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2377 int argc;
2378 char **argv;
2380 main ()
2382 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2384 return 0;
2386 _ACEOF
2387 # Don't try gcc -ansi; that turns off useful extensions and
2388 # breaks some systems' header files.
2389 # AIX -qlanglvl=ansi
2390 # Ultrix and OSF/1 -std1
2391 # HP-UX 10.20 and later -Ae
2392 # HP-UX older versions -Aa -D_HPUX_SOURCE
2393 # SVR4 -Xc -D__EXTENSIONS__
2394 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2396 CC="$ac_save_CC $ac_arg"
2397 rm -f conftest.$ac_objext
2398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2399 (eval $ac_compile) 2>conftest.er1
2400 ac_status=$?
2401 grep -v '^ *+' conftest.er1 >conftest.err
2402 rm -f conftest.er1
2403 cat conftest.err >&5
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); } &&
2406 { ac_try='test -z "$ac_c_werror_flag"
2407 || test ! -s conftest.err'
2408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2409 (eval $ac_try) 2>&5
2410 ac_status=$?
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }; } &&
2413 { ac_try='test -s conftest.$ac_objext'
2414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2415 (eval $ac_try) 2>&5
2416 ac_status=$?
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); }; }; then
2419 ac_cv_prog_cc_stdc=$ac_arg
2420 break
2421 else
2422 echo "$as_me: failed program was:" >&5
2423 sed 's/^/| /' conftest.$ac_ext >&5
2426 rm -f conftest.err conftest.$ac_objext
2427 done
2428 rm -f conftest.$ac_ext conftest.$ac_objext
2429 CC=$ac_save_CC
2433 case "x$ac_cv_prog_cc_stdc" in
2434 x|xno)
2435 echo "$as_me:$LINENO: result: none needed" >&5
2436 echo "${ECHO_T}none needed" >&6 ;;
2438 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2439 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2440 CC="$CC $ac_cv_prog_cc_stdc" ;;
2441 esac
2443 # Some people use a C++ compiler to compile C. Since we use `exit',
2444 # in C++ we need to declare it. In case someone uses the same compiler
2445 # for both compiling C and C++ we need to have the C++ compiler decide
2446 # the declaration of exit, since it's the most demanding environment.
2447 cat >conftest.$ac_ext <<_ACEOF
2448 #ifndef __cplusplus
2449 choke me
2450 #endif
2451 _ACEOF
2452 rm -f conftest.$ac_objext
2453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2454 (eval $ac_compile) 2>conftest.er1
2455 ac_status=$?
2456 grep -v '^ *+' conftest.er1 >conftest.err
2457 rm -f conftest.er1
2458 cat conftest.err >&5
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); } &&
2461 { ac_try='test -z "$ac_c_werror_flag"
2462 || test ! -s conftest.err'
2463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464 (eval $ac_try) 2>&5
2465 ac_status=$?
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }; } &&
2468 { ac_try='test -s conftest.$ac_objext'
2469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2470 (eval $ac_try) 2>&5
2471 ac_status=$?
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); }; }; then
2474 for ac_declaration in \
2475 '' \
2476 'extern "C" void std::exit (int) throw (); using std::exit;' \
2477 'extern "C" void std::exit (int); using std::exit;' \
2478 'extern "C" void exit (int) throw ();' \
2479 'extern "C" void exit (int);' \
2480 'void exit (int);'
2482 cat >conftest.$ac_ext <<_ACEOF
2483 /* confdefs.h. */
2484 _ACEOF
2485 cat confdefs.h >>conftest.$ac_ext
2486 cat >>conftest.$ac_ext <<_ACEOF
2487 /* end confdefs.h. */
2488 $ac_declaration
2489 #include <stdlib.h>
2491 main ()
2493 exit (42);
2495 return 0;
2497 _ACEOF
2498 rm -f conftest.$ac_objext
2499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2500 (eval $ac_compile) 2>conftest.er1
2501 ac_status=$?
2502 grep -v '^ *+' conftest.er1 >conftest.err
2503 rm -f conftest.er1
2504 cat conftest.err >&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); } &&
2507 { ac_try='test -z "$ac_c_werror_flag"
2508 || test ! -s conftest.err'
2509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2510 (eval $ac_try) 2>&5
2511 ac_status=$?
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; } &&
2514 { ac_try='test -s conftest.$ac_objext'
2515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2516 (eval $ac_try) 2>&5
2517 ac_status=$?
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); }; }; then
2521 else
2522 echo "$as_me: failed program was:" >&5
2523 sed 's/^/| /' conftest.$ac_ext >&5
2525 continue
2527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2528 cat >conftest.$ac_ext <<_ACEOF
2529 /* confdefs.h. */
2530 _ACEOF
2531 cat confdefs.h >>conftest.$ac_ext
2532 cat >>conftest.$ac_ext <<_ACEOF
2533 /* end confdefs.h. */
2534 $ac_declaration
2536 main ()
2538 exit (42);
2540 return 0;
2542 _ACEOF
2543 rm -f conftest.$ac_objext
2544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2545 (eval $ac_compile) 2>conftest.er1
2546 ac_status=$?
2547 grep -v '^ *+' conftest.er1 >conftest.err
2548 rm -f conftest.er1
2549 cat conftest.err >&5
2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); } &&
2552 { ac_try='test -z "$ac_c_werror_flag"
2553 || test ! -s conftest.err'
2554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2555 (eval $ac_try) 2>&5
2556 ac_status=$?
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); }; } &&
2559 { ac_try='test -s conftest.$ac_objext'
2560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2561 (eval $ac_try) 2>&5
2562 ac_status=$?
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }; }; then
2565 break
2566 else
2567 echo "$as_me: failed program was:" >&5
2568 sed 's/^/| /' conftest.$ac_ext >&5
2571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2572 done
2573 rm -f conftest*
2574 if test -n "$ac_declaration"; then
2575 echo '#ifdef __cplusplus' >>confdefs.h
2576 echo $ac_declaration >>confdefs.h
2577 echo '#endif' >>confdefs.h
2580 else
2581 echo "$as_me: failed program was:" >&5
2582 sed 's/^/| /' conftest.$ac_ext >&5
2585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2586 ac_ext=c
2587 ac_cpp='$CPP $CPPFLAGS'
2588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2592 ac_ext=cc
2593 ac_cpp='$CXXCPP $CPPFLAGS'
2594 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2595 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2596 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2597 if test -n "$ac_tool_prefix"; then
2598 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2600 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2601 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2602 echo "$as_me:$LINENO: checking for $ac_word" >&5
2603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2604 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2605 echo $ECHO_N "(cached) $ECHO_C" >&6
2606 else
2607 if test -n "$CXX"; then
2608 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2609 else
2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611 for as_dir in $PATH
2613 IFS=$as_save_IFS
2614 test -z "$as_dir" && as_dir=.
2615 for ac_exec_ext in '' $ac_executable_extensions; do
2616 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2617 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2619 break 2
2621 done
2622 done
2626 CXX=$glibcxx_cv_prog_CXX
2627 if test -n "$CXX"; then
2628 echo "$as_me:$LINENO: result: $CXX" >&5
2629 echo "${ECHO_T}$CXX" >&6
2630 else
2631 echo "$as_me:$LINENO: result: no" >&5
2632 echo "${ECHO_T}no" >&6
2635 test -n "$CXX" && break
2636 done
2638 if test -z "$CXX"; then
2639 ac_ct_CXX=$CXX
2640 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2642 # Extract the first word of "$ac_prog", so it can be a program name with args.
2643 set dummy $ac_prog; ac_word=$2
2644 echo "$as_me:$LINENO: checking for $ac_word" >&5
2645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2646 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2647 echo $ECHO_N "(cached) $ECHO_C" >&6
2648 else
2649 if test -n "$ac_ct_CXX"; then
2650 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2651 else
2652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653 for as_dir in $PATH
2655 IFS=$as_save_IFS
2656 test -z "$as_dir" && as_dir=.
2657 for ac_exec_ext in '' $ac_executable_extensions; do
2658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2659 ac_cv_prog_ac_ct_CXX="$ac_prog"
2660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2661 break 2
2663 done
2664 done
2668 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2669 if test -n "$ac_ct_CXX"; then
2670 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2671 echo "${ECHO_T}$ac_ct_CXX" >&6
2672 else
2673 echo "$as_me:$LINENO: result: no" >&5
2674 echo "${ECHO_T}no" >&6
2677 test -n "$ac_ct_CXX" && break
2678 done
2679 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2681 CXX=$ac_ct_CXX
2685 # Provide some information about the compiler.
2686 echo "$as_me:$LINENO:" \
2687 "checking for C++ compiler version" >&5
2688 ac_compiler=`set X $ac_compile; echo $2`
2689 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2690 (eval $ac_compiler --version </dev/null >&5) 2>&5
2691 ac_status=$?
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }
2694 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2695 (eval $ac_compiler -v </dev/null >&5) 2>&5
2696 ac_status=$?
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); }
2699 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2700 (eval $ac_compiler -V </dev/null >&5) 2>&5
2701 ac_status=$?
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); }
2705 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2706 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2707 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2708 echo $ECHO_N "(cached) $ECHO_C" >&6
2709 else
2710 cat >conftest.$ac_ext <<_ACEOF
2711 /* confdefs.h. */
2712 _ACEOF
2713 cat confdefs.h >>conftest.$ac_ext
2714 cat >>conftest.$ac_ext <<_ACEOF
2715 /* end confdefs.h. */
2718 main ()
2720 #ifndef __GNUC__
2721 choke me
2722 #endif
2725 return 0;
2727 _ACEOF
2728 rm -f conftest.$ac_objext
2729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2730 (eval $ac_compile) 2>conftest.er1
2731 ac_status=$?
2732 grep -v '^ *+' conftest.er1 >conftest.err
2733 rm -f conftest.er1
2734 cat conftest.err >&5
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); } &&
2737 { ac_try='test -z "$ac_cxx_werror_flag"
2738 || test ! -s conftest.err'
2739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2740 (eval $ac_try) 2>&5
2741 ac_status=$?
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); }; } &&
2744 { ac_try='test -s conftest.$ac_objext'
2745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2746 (eval $ac_try) 2>&5
2747 ac_status=$?
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); }; }; then
2750 ac_compiler_gnu=yes
2751 else
2752 echo "$as_me: failed program was:" >&5
2753 sed 's/^/| /' conftest.$ac_ext >&5
2755 ac_compiler_gnu=no
2757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2758 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2761 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2762 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2763 GXX=`test $ac_compiler_gnu = yes && echo yes`
2764 ac_test_CXXFLAGS=${CXXFLAGS+set}
2765 ac_save_CXXFLAGS=$CXXFLAGS
2766 CXXFLAGS="-g"
2767 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2768 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2769 if test "${ac_cv_prog_cxx_g+set}" = set; then
2770 echo $ECHO_N "(cached) $ECHO_C" >&6
2771 else
2772 cat >conftest.$ac_ext <<_ACEOF
2773 /* confdefs.h. */
2774 _ACEOF
2775 cat confdefs.h >>conftest.$ac_ext
2776 cat >>conftest.$ac_ext <<_ACEOF
2777 /* end confdefs.h. */
2780 main ()
2784 return 0;
2786 _ACEOF
2787 rm -f conftest.$ac_objext
2788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2789 (eval $ac_compile) 2>conftest.er1
2790 ac_status=$?
2791 grep -v '^ *+' conftest.er1 >conftest.err
2792 rm -f conftest.er1
2793 cat conftest.err >&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); } &&
2796 { ac_try='test -z "$ac_cxx_werror_flag"
2797 || test ! -s conftest.err'
2798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799 (eval $ac_try) 2>&5
2800 ac_status=$?
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; } &&
2803 { ac_try='test -s conftest.$ac_objext'
2804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805 (eval $ac_try) 2>&5
2806 ac_status=$?
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; }; then
2809 ac_cv_prog_cxx_g=yes
2810 else
2811 echo "$as_me: failed program was:" >&5
2812 sed 's/^/| /' conftest.$ac_ext >&5
2814 ac_cv_prog_cxx_g=no
2816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2818 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2819 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2820 if test "$ac_test_CXXFLAGS" = set; then
2821 CXXFLAGS=$ac_save_CXXFLAGS
2822 elif test $ac_cv_prog_cxx_g = yes; then
2823 if test "$GXX" = yes; then
2824 CXXFLAGS="-g -O2"
2825 else
2826 CXXFLAGS="-g"
2828 else
2829 if test "$GXX" = yes; then
2830 CXXFLAGS="-O2"
2831 else
2832 CXXFLAGS=
2835 for ac_declaration in \
2836 '' \
2837 'extern "C" void std::exit (int) throw (); using std::exit;' \
2838 'extern "C" void std::exit (int); using std::exit;' \
2839 'extern "C" void exit (int) throw ();' \
2840 'extern "C" void exit (int);' \
2841 'void exit (int);'
2843 cat >conftest.$ac_ext <<_ACEOF
2844 /* confdefs.h. */
2845 _ACEOF
2846 cat confdefs.h >>conftest.$ac_ext
2847 cat >>conftest.$ac_ext <<_ACEOF
2848 /* end confdefs.h. */
2849 $ac_declaration
2850 #include <stdlib.h>
2852 main ()
2854 exit (42);
2856 return 0;
2858 _ACEOF
2859 rm -f conftest.$ac_objext
2860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2861 (eval $ac_compile) 2>conftest.er1
2862 ac_status=$?
2863 grep -v '^ *+' conftest.er1 >conftest.err
2864 rm -f conftest.er1
2865 cat conftest.err >&5
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); } &&
2868 { ac_try='test -z "$ac_cxx_werror_flag"
2869 || test ! -s conftest.err'
2870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2871 (eval $ac_try) 2>&5
2872 ac_status=$?
2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); }; } &&
2875 { ac_try='test -s conftest.$ac_objext'
2876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2877 (eval $ac_try) 2>&5
2878 ac_status=$?
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); }; }; then
2882 else
2883 echo "$as_me: failed program was:" >&5
2884 sed 's/^/| /' conftest.$ac_ext >&5
2886 continue
2888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2889 cat >conftest.$ac_ext <<_ACEOF
2890 /* confdefs.h. */
2891 _ACEOF
2892 cat confdefs.h >>conftest.$ac_ext
2893 cat >>conftest.$ac_ext <<_ACEOF
2894 /* end confdefs.h. */
2895 $ac_declaration
2897 main ()
2899 exit (42);
2901 return 0;
2903 _ACEOF
2904 rm -f conftest.$ac_objext
2905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2906 (eval $ac_compile) 2>conftest.er1
2907 ac_status=$?
2908 grep -v '^ *+' conftest.er1 >conftest.err
2909 rm -f conftest.er1
2910 cat conftest.err >&5
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); } &&
2913 { ac_try='test -z "$ac_cxx_werror_flag"
2914 || test ! -s conftest.err'
2915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2916 (eval $ac_try) 2>&5
2917 ac_status=$?
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); }; } &&
2920 { ac_try='test -s conftest.$ac_objext'
2921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2922 (eval $ac_try) 2>&5
2923 ac_status=$?
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }; }; then
2926 break
2927 else
2928 echo "$as_me: failed program was:" >&5
2929 sed 's/^/| /' conftest.$ac_ext >&5
2932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2933 done
2934 rm -f conftest*
2935 if test -n "$ac_declaration"; then
2936 echo '#ifdef __cplusplus' >>confdefs.h
2937 echo $ac_declaration >>confdefs.h
2938 echo '#endif' >>confdefs.h
2941 ac_ext=c
2942 ac_cpp='$CPP $CPPFLAGS'
2943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2947 CXXFLAGS="$save_CXXFLAGS"
2953 am__api_version="1.9"
2954 # Find a good install program. We prefer a C program (faster),
2955 # so one script is as good as another. But avoid the broken or
2956 # incompatible versions:
2957 # SysV /etc/install, /usr/sbin/install
2958 # SunOS /usr/etc/install
2959 # IRIX /sbin/install
2960 # AIX /bin/install
2961 # AmigaOS /C/install, which installs bootblocks on floppy discs
2962 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2963 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2964 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2965 # OS/2's system install, which has a completely different semantic
2966 # ./install, which can be erroneously created by make from ./install.sh.
2967 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2968 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2969 if test -z "$INSTALL"; then
2970 if test "${ac_cv_path_install+set}" = set; then
2971 echo $ECHO_N "(cached) $ECHO_C" >&6
2972 else
2973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974 for as_dir in $PATH
2976 IFS=$as_save_IFS
2977 test -z "$as_dir" && as_dir=.
2978 # Account for people who put trailing slashes in PATH elements.
2979 case $as_dir/ in
2980 ./ | .// | /cC/* | \
2981 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2982 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2983 /usr/ucb/* ) ;;
2985 # OSF1 and SCO ODT 3.0 have their own names for install.
2986 # Don't use installbsd from OSF since it installs stuff as root
2987 # by default.
2988 for ac_prog in ginstall scoinst install; do
2989 for ac_exec_ext in '' $ac_executable_extensions; do
2990 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2991 if test $ac_prog = install &&
2992 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2993 # AIX install. It has an incompatible calling convention.
2995 elif test $ac_prog = install &&
2996 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2997 # program-specific install script used by HP pwplus--don't use.
2999 else
3000 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3001 break 3
3004 done
3005 done
3007 esac
3008 done
3012 if test "${ac_cv_path_install+set}" = set; then
3013 INSTALL=$ac_cv_path_install
3014 else
3015 # As a last resort, use the slow shell script. We don't cache a
3016 # path for INSTALL within a source directory, because that will
3017 # break other packages using the cache if that directory is
3018 # removed, or if the path is relative.
3019 INSTALL=$ac_install_sh
3022 echo "$as_me:$LINENO: result: $INSTALL" >&5
3023 echo "${ECHO_T}$INSTALL" >&6
3025 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3026 # It thinks the first close brace ends the variable substitution.
3027 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3029 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3031 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3033 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3034 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3035 # Just in case
3036 sleep 1
3037 echo timestamp > conftest.file
3038 # Do `set' in a subshell so we don't clobber the current shell's
3039 # arguments. Must try -L first in case configure is actually a
3040 # symlink; some systems play weird games with the mod time of symlinks
3041 # (eg FreeBSD returns the mod time of the symlink's containing
3042 # directory).
3043 if (
3044 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3045 if test "$*" = "X"; then
3046 # -L didn't work.
3047 set X `ls -t $srcdir/configure conftest.file`
3049 rm -f conftest.file
3050 if test "$*" != "X $srcdir/configure conftest.file" \
3051 && test "$*" != "X conftest.file $srcdir/configure"; then
3053 # If neither matched, then we have a broken ls. This can happen
3054 # if, for instance, CONFIG_SHELL is bash and it inherits a
3055 # broken ls alias from the environment. This has actually
3056 # happened. Such a system could not be considered "sane".
3057 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3058 alias in your environment" >&5
3059 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3060 alias in your environment" >&2;}
3061 { (exit 1); exit 1; }; }
3064 test "$2" = conftest.file
3066 then
3067 # Ok.
3069 else
3070 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3071 Check your system clock" >&5
3072 echo "$as_me: error: newly created file is older than distributed files!
3073 Check your system clock" >&2;}
3074 { (exit 1); exit 1; }; }
3076 echo "$as_me:$LINENO: result: yes" >&5
3077 echo "${ECHO_T}yes" >&6
3078 test "$program_prefix" != NONE &&
3079 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3080 # Use a double $ so make ignores it.
3081 test "$program_suffix" != NONE &&
3082 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3083 # Double any \ or $. echo might interpret backslashes.
3084 # By default was `s,x,x', remove it if useless.
3085 cat <<\_ACEOF >conftest.sed
3086 s/[\\$]/&&/g;s/;s,x,x,$//
3087 _ACEOF
3088 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3089 rm conftest.sed
3091 # expand $ac_aux_dir to an absolute path
3092 am_aux_dir=`cd $ac_aux_dir && pwd`
3094 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3095 # Use eval to expand $SHELL
3096 if eval "$MISSING --run true"; then
3097 am_missing_run="$MISSING --run "
3098 else
3099 am_missing_run=
3100 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3101 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3104 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3105 # We used to keeping the `.' as first argument, in order to
3106 # allow $(mkdir_p) to be used without argument. As in
3107 # $(mkdir_p) $(somedir)
3108 # where $(somedir) is conditionally defined. However this is wrong
3109 # for two reasons:
3110 # 1. if the package is installed by a user who cannot write `.'
3111 # make install will fail,
3112 # 2. the above comment should most certainly read
3113 # $(mkdir_p) $(DESTDIR)$(somedir)
3114 # so it does not work when $(somedir) is undefined and
3115 # $(DESTDIR) is not.
3116 # To support the latter case, we have to write
3117 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3118 # so the `.' trick is pointless.
3119 mkdir_p='mkdir -p --'
3120 else
3121 # On NextStep and OpenStep, the `mkdir' command does not
3122 # recognize any option. It will interpret all options as
3123 # directories to create, and then abort because `.' already
3124 # exists.
3125 for d in ./-p ./--version;
3127 test -d $d && rmdir $d
3128 done
3129 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3130 if test -f "$ac_aux_dir/mkinstalldirs"; then
3131 mkdir_p='$(mkinstalldirs)'
3132 else
3133 mkdir_p='$(install_sh) -d'
3137 for ac_prog in gawk mawk nawk awk
3139 # Extract the first word of "$ac_prog", so it can be a program name with args.
3140 set dummy $ac_prog; ac_word=$2
3141 echo "$as_me:$LINENO: checking for $ac_word" >&5
3142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3143 if test "${ac_cv_prog_AWK+set}" = set; then
3144 echo $ECHO_N "(cached) $ECHO_C" >&6
3145 else
3146 if test -n "$AWK"; then
3147 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3148 else
3149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150 for as_dir in $PATH
3152 IFS=$as_save_IFS
3153 test -z "$as_dir" && as_dir=.
3154 for ac_exec_ext in '' $ac_executable_extensions; do
3155 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3156 ac_cv_prog_AWK="$ac_prog"
3157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3158 break 2
3160 done
3161 done
3165 AWK=$ac_cv_prog_AWK
3166 if test -n "$AWK"; then
3167 echo "$as_me:$LINENO: result: $AWK" >&5
3168 echo "${ECHO_T}$AWK" >&6
3169 else
3170 echo "$as_me:$LINENO: result: no" >&5
3171 echo "${ECHO_T}no" >&6
3174 test -n "$AWK" && break
3175 done
3177 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3178 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3179 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3180 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3181 echo $ECHO_N "(cached) $ECHO_C" >&6
3182 else
3183 cat >conftest.make <<\_ACEOF
3184 all:
3185 @echo 'ac_maketemp="$(MAKE)"'
3186 _ACEOF
3187 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3188 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3189 if test -n "$ac_maketemp"; then
3190 eval ac_cv_prog_make_${ac_make}_set=yes
3191 else
3192 eval ac_cv_prog_make_${ac_make}_set=no
3194 rm -f conftest.make
3196 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3197 echo "$as_me:$LINENO: result: yes" >&5
3198 echo "${ECHO_T}yes" >&6
3199 SET_MAKE=
3200 else
3201 echo "$as_me:$LINENO: result: no" >&5
3202 echo "${ECHO_T}no" >&6
3203 SET_MAKE="MAKE=${MAKE-make}"
3206 rm -rf .tst 2>/dev/null
3207 mkdir .tst 2>/dev/null
3208 if test -d .tst; then
3209 am__leading_dot=.
3210 else
3211 am__leading_dot=_
3213 rmdir .tst 2>/dev/null
3215 DEPDIR="${am__leading_dot}deps"
3217 ac_config_commands="$ac_config_commands depfiles"
3220 am_make=${MAKE-make}
3221 cat > confinc << 'END'
3222 am__doit:
3223 @echo done
3224 .PHONY: am__doit
3226 # If we don't find an include directive, just comment out the code.
3227 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3228 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3229 am__include="#"
3230 am__quote=
3231 _am_result=none
3232 # First try GNU make style include.
3233 echo "include confinc" > confmf
3234 # We grep out `Entering directory' and `Leaving directory'
3235 # messages which can occur if `w' ends up in MAKEFLAGS.
3236 # In particular we don't look at `^make:' because GNU make might
3237 # be invoked under some other name (usually "gmake"), in which
3238 # case it prints its new name instead of `make'.
3239 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3240 am__include=include
3241 am__quote=
3242 _am_result=GNU
3244 # Now try BSD make style include.
3245 if test "$am__include" = "#"; then
3246 echo '.include "confinc"' > confmf
3247 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3248 am__include=.include
3249 am__quote="\""
3250 _am_result=BSD
3255 echo "$as_me:$LINENO: result: $_am_result" >&5
3256 echo "${ECHO_T}$_am_result" >&6
3257 rm -f confinc confmf
3259 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3260 if test "${enable_dependency_tracking+set}" = set; then
3261 enableval="$enable_dependency_tracking"
3264 if test "x$enable_dependency_tracking" != xno; then
3265 am_depcomp="$ac_aux_dir/depcomp"
3266 AMDEPBACKSLASH='\'
3270 if test "x$enable_dependency_tracking" != xno; then
3271 AMDEP_TRUE=
3272 AMDEP_FALSE='#'
3273 else
3274 AMDEP_TRUE='#'
3275 AMDEP_FALSE=
3280 # test to see if srcdir already configured
3281 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3282 test -f $srcdir/config.status; then
3283 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3284 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3285 { (exit 1); exit 1; }; }
3288 # test whether we have cygpath
3289 if test -z "$CYGPATH_W"; then
3290 if (cygpath --version) >/dev/null 2>/dev/null; then
3291 CYGPATH_W='cygpath -w'
3292 else
3293 CYGPATH_W=echo
3298 # Define the identity of the package.
3299 PACKAGE='libjava'
3300 VERSION='version-unused'
3303 cat >>confdefs.h <<_ACEOF
3304 #define PACKAGE "$PACKAGE"
3305 _ACEOF
3308 cat >>confdefs.h <<_ACEOF
3309 #define VERSION "$VERSION"
3310 _ACEOF
3312 # Some tools Automake needs.
3314 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3317 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3320 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3323 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3326 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3328 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3330 # Installed binaries are usually stripped using `strip' when the user
3331 # run `make install-strip'. However `strip' might not be the right
3332 # tool to use in cross-compilation environments, therefore Automake
3333 # will honor the `STRIP' environment variable to overrule this program.
3334 if test "$cross_compiling" != no; then
3335 if test -n "$ac_tool_prefix"; then
3336 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3337 set dummy ${ac_tool_prefix}strip; ac_word=$2
3338 echo "$as_me:$LINENO: checking for $ac_word" >&5
3339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3340 if test "${ac_cv_prog_STRIP+set}" = set; then
3341 echo $ECHO_N "(cached) $ECHO_C" >&6
3342 else
3343 if test -n "$STRIP"; then
3344 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3345 else
3346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347 for as_dir in $PATH
3349 IFS=$as_save_IFS
3350 test -z "$as_dir" && as_dir=.
3351 for ac_exec_ext in '' $ac_executable_extensions; do
3352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3353 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3355 break 2
3357 done
3358 done
3362 STRIP=$ac_cv_prog_STRIP
3363 if test -n "$STRIP"; then
3364 echo "$as_me:$LINENO: result: $STRIP" >&5
3365 echo "${ECHO_T}$STRIP" >&6
3366 else
3367 echo "$as_me:$LINENO: result: no" >&5
3368 echo "${ECHO_T}no" >&6
3372 if test -z "$ac_cv_prog_STRIP"; then
3373 ac_ct_STRIP=$STRIP
3374 # Extract the first word of "strip", so it can be a program name with args.
3375 set dummy strip; ac_word=$2
3376 echo "$as_me:$LINENO: checking for $ac_word" >&5
3377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3378 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3379 echo $ECHO_N "(cached) $ECHO_C" >&6
3380 else
3381 if test -n "$ac_ct_STRIP"; then
3382 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3383 else
3384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3385 for as_dir in $PATH
3387 IFS=$as_save_IFS
3388 test -z "$as_dir" && as_dir=.
3389 for ac_exec_ext in '' $ac_executable_extensions; do
3390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3391 ac_cv_prog_ac_ct_STRIP="strip"
3392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3393 break 2
3395 done
3396 done
3398 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3401 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3402 if test -n "$ac_ct_STRIP"; then
3403 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3404 echo "${ECHO_T}$ac_ct_STRIP" >&6
3405 else
3406 echo "$as_me:$LINENO: result: no" >&5
3407 echo "${ECHO_T}no" >&6
3410 STRIP=$ac_ct_STRIP
3411 else
3412 STRIP="$ac_cv_prog_STRIP"
3416 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3418 # We need awk for the "check" target. The system "awk" is bad on
3419 # some platforms.
3420 # Always define AMTAR for backward compatibility.
3422 AMTAR=${AMTAR-"${am_missing_run}tar"}
3424 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3429 depcc="$CC" am_compiler_list=
3431 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3432 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3433 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3434 echo $ECHO_N "(cached) $ECHO_C" >&6
3435 else
3436 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3437 # We make a subdir and do the tests there. Otherwise we can end up
3438 # making bogus files that we don't know about and never remove. For
3439 # instance it was reported that on HP-UX the gcc test will end up
3440 # making a dummy file named `D' -- because `-MD' means `put the output
3441 # in D'.
3442 mkdir conftest.dir
3443 # Copy depcomp to subdir because otherwise we won't find it if we're
3444 # using a relative directory.
3445 cp "$am_depcomp" conftest.dir
3446 cd conftest.dir
3447 # We will build objects and dependencies in a subdirectory because
3448 # it helps to detect inapplicable dependency modes. For instance
3449 # both Tru64's cc and ICC support -MD to output dependencies as a
3450 # side effect of compilation, but ICC will put the dependencies in
3451 # the current directory while Tru64 will put them in the object
3452 # directory.
3453 mkdir sub
3455 am_cv_CC_dependencies_compiler_type=none
3456 if test "$am_compiler_list" = ""; then
3457 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3459 for depmode in $am_compiler_list; do
3460 # Setup a source with many dependencies, because some compilers
3461 # like to wrap large dependency lists on column 80 (with \), and
3462 # we should not choose a depcomp mode which is confused by this.
3464 # We need to recreate these files for each test, as the compiler may
3465 # overwrite some of them when testing with obscure command lines.
3466 # This happens at least with the AIX C compiler.
3467 : > sub/conftest.c
3468 for i in 1 2 3 4 5 6; do
3469 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3470 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3471 # Solaris 8's {/usr,}/bin/sh.
3472 touch sub/conftst$i.h
3473 done
3474 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3476 case $depmode in
3477 nosideeffect)
3478 # after this tag, mechanisms are not by side-effect, so they'll
3479 # only be used when explicitly requested
3480 if test "x$enable_dependency_tracking" = xyes; then
3481 continue
3482 else
3483 break
3486 none) break ;;
3487 esac
3488 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3489 # mode. It turns out that the SunPro C++ compiler does not properly
3490 # handle `-M -o', and we need to detect this.
3491 if depmode=$depmode \
3492 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3493 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3494 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3495 >/dev/null 2>conftest.err &&
3496 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3497 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3498 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3499 # icc doesn't choke on unknown options, it will just issue warnings
3500 # or remarks (even with -Werror). So we grep stderr for any message
3501 # that says an option was ignored or not supported.
3502 # When given -MP, icc 7.0 and 7.1 complain thusly:
3503 # icc: Command line warning: ignoring option '-M'; no argument required
3504 # The diagnosis changed in icc 8.0:
3505 # icc: Command line remark: option '-MP' not supported
3506 if (grep 'ignoring option' conftest.err ||
3507 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3508 am_cv_CC_dependencies_compiler_type=$depmode
3509 break
3512 done
3514 cd ..
3515 rm -rf conftest.dir
3516 else
3517 am_cv_CC_dependencies_compiler_type=none
3521 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3522 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3523 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3528 test "x$enable_dependency_tracking" != xno \
3529 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3530 am__fastdepCC_TRUE=
3531 am__fastdepCC_FALSE='#'
3532 else
3533 am__fastdepCC_TRUE='#'
3534 am__fastdepCC_FALSE=
3538 depcc="$CXX" am_compiler_list=
3540 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3541 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3542 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3544 else
3545 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3546 # We make a subdir and do the tests there. Otherwise we can end up
3547 # making bogus files that we don't know about and never remove. For
3548 # instance it was reported that on HP-UX the gcc test will end up
3549 # making a dummy file named `D' -- because `-MD' means `put the output
3550 # in D'.
3551 mkdir conftest.dir
3552 # Copy depcomp to subdir because otherwise we won't find it if we're
3553 # using a relative directory.
3554 cp "$am_depcomp" conftest.dir
3555 cd conftest.dir
3556 # We will build objects and dependencies in a subdirectory because
3557 # it helps to detect inapplicable dependency modes. For instance
3558 # both Tru64's cc and ICC support -MD to output dependencies as a
3559 # side effect of compilation, but ICC will put the dependencies in
3560 # the current directory while Tru64 will put them in the object
3561 # directory.
3562 mkdir sub
3564 am_cv_CXX_dependencies_compiler_type=none
3565 if test "$am_compiler_list" = ""; then
3566 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3568 for depmode in $am_compiler_list; do
3569 # Setup a source with many dependencies, because some compilers
3570 # like to wrap large dependency lists on column 80 (with \), and
3571 # we should not choose a depcomp mode which is confused by this.
3573 # We need to recreate these files for each test, as the compiler may
3574 # overwrite some of them when testing with obscure command lines.
3575 # This happens at least with the AIX C compiler.
3576 : > sub/conftest.c
3577 for i in 1 2 3 4 5 6; do
3578 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3579 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3580 # Solaris 8's {/usr,}/bin/sh.
3581 touch sub/conftst$i.h
3582 done
3583 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3585 case $depmode in
3586 nosideeffect)
3587 # after this tag, mechanisms are not by side-effect, so they'll
3588 # only be used when explicitly requested
3589 if test "x$enable_dependency_tracking" = xyes; then
3590 continue
3591 else
3592 break
3595 none) break ;;
3596 esac
3597 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3598 # mode. It turns out that the SunPro C++ compiler does not properly
3599 # handle `-M -o', and we need to detect this.
3600 if depmode=$depmode \
3601 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3602 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3603 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3604 >/dev/null 2>conftest.err &&
3605 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3606 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3607 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3608 # icc doesn't choke on unknown options, it will just issue warnings
3609 # or remarks (even with -Werror). So we grep stderr for any message
3610 # that says an option was ignored or not supported.
3611 # When given -MP, icc 7.0 and 7.1 complain thusly:
3612 # icc: Command line warning: ignoring option '-M'; no argument required
3613 # The diagnosis changed in icc 8.0:
3614 # icc: Command line remark: option '-MP' not supported
3615 if (grep 'ignoring option' conftest.err ||
3616 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3617 am_cv_CXX_dependencies_compiler_type=$depmode
3618 break
3621 done
3623 cd ..
3624 rm -rf conftest.dir
3625 else
3626 am_cv_CXX_dependencies_compiler_type=none
3630 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3631 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3632 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3637 test "x$enable_dependency_tracking" != xno \
3638 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3639 am__fastdepCXX_TRUE=
3640 am__fastdepCXX_FALSE='#'
3641 else
3642 am__fastdepCXX_TRUE='#'
3643 am__fastdepCXX_FALSE=
3649 if test -n "$ac_tool_prefix"; then
3650 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3651 set dummy ${ac_tool_prefix}as; ac_word=$2
3652 echo "$as_me:$LINENO: checking for $ac_word" >&5
3653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3654 if test "${ac_cv_prog_AS+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3656 else
3657 if test -n "$AS"; then
3658 ac_cv_prog_AS="$AS" # Let the user override the test.
3659 else
3660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661 for as_dir in $PATH
3663 IFS=$as_save_IFS
3664 test -z "$as_dir" && as_dir=.
3665 for ac_exec_ext in '' $ac_executable_extensions; do
3666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3667 ac_cv_prog_AS="${ac_tool_prefix}as"
3668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3669 break 2
3671 done
3672 done
3676 AS=$ac_cv_prog_AS
3677 if test -n "$AS"; then
3678 echo "$as_me:$LINENO: result: $AS" >&5
3679 echo "${ECHO_T}$AS" >&6
3680 else
3681 echo "$as_me:$LINENO: result: no" >&5
3682 echo "${ECHO_T}no" >&6
3686 if test -z "$ac_cv_prog_AS"; then
3687 ac_ct_AS=$AS
3688 # Extract the first word of "as", so it can be a program name with args.
3689 set dummy as; ac_word=$2
3690 echo "$as_me:$LINENO: checking for $ac_word" >&5
3691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3692 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
3694 else
3695 if test -n "$ac_ct_AS"; then
3696 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3697 else
3698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699 for as_dir in $PATH
3701 IFS=$as_save_IFS
3702 test -z "$as_dir" && as_dir=.
3703 for ac_exec_ext in '' $ac_executable_extensions; do
3704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3705 ac_cv_prog_ac_ct_AS="as"
3706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3707 break 2
3709 done
3710 done
3714 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3715 if test -n "$ac_ct_AS"; then
3716 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3717 echo "${ECHO_T}$ac_ct_AS" >&6
3718 else
3719 echo "$as_me:$LINENO: result: no" >&5
3720 echo "${ECHO_T}no" >&6
3723 AS=$ac_ct_AS
3724 else
3725 AS="$ac_cv_prog_AS"
3728 if test -n "$ac_tool_prefix"; then
3729 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3730 set dummy ${ac_tool_prefix}ar; ac_word=$2
3731 echo "$as_me:$LINENO: checking for $ac_word" >&5
3732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3733 if test "${ac_cv_prog_AR+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3735 else
3736 if test -n "$AR"; then
3737 ac_cv_prog_AR="$AR" # Let the user override the test.
3738 else
3739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3740 for as_dir in $PATH
3742 IFS=$as_save_IFS
3743 test -z "$as_dir" && as_dir=.
3744 for ac_exec_ext in '' $ac_executable_extensions; do
3745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3746 ac_cv_prog_AR="${ac_tool_prefix}ar"
3747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3748 break 2
3750 done
3751 done
3755 AR=$ac_cv_prog_AR
3756 if test -n "$AR"; then
3757 echo "$as_me:$LINENO: result: $AR" >&5
3758 echo "${ECHO_T}$AR" >&6
3759 else
3760 echo "$as_me:$LINENO: result: no" >&5
3761 echo "${ECHO_T}no" >&6
3765 if test -z "$ac_cv_prog_AR"; then
3766 ac_ct_AR=$AR
3767 # Extract the first word of "ar", so it can be a program name with args.
3768 set dummy ar; ac_word=$2
3769 echo "$as_me:$LINENO: checking for $ac_word" >&5
3770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3771 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3773 else
3774 if test -n "$ac_ct_AR"; then
3775 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3776 else
3777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3778 for as_dir in $PATH
3780 IFS=$as_save_IFS
3781 test -z "$as_dir" && as_dir=.
3782 for ac_exec_ext in '' $ac_executable_extensions; do
3783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3784 ac_cv_prog_ac_ct_AR="ar"
3785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3786 break 2
3788 done
3789 done
3793 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3794 if test -n "$ac_ct_AR"; then
3795 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3796 echo "${ECHO_T}$ac_ct_AR" >&6
3797 else
3798 echo "$as_me:$LINENO: result: no" >&5
3799 echo "${ECHO_T}no" >&6
3802 AR=$ac_ct_AR
3803 else
3804 AR="$ac_cv_prog_AR"
3807 if test -n "$ac_tool_prefix"; then
3808 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3809 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3810 echo "$as_me:$LINENO: checking for $ac_word" >&5
3811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3812 if test "${ac_cv_prog_RANLIB+set}" = set; then
3813 echo $ECHO_N "(cached) $ECHO_C" >&6
3814 else
3815 if test -n "$RANLIB"; then
3816 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3817 else
3818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3819 for as_dir in $PATH
3821 IFS=$as_save_IFS
3822 test -z "$as_dir" && as_dir=.
3823 for ac_exec_ext in '' $ac_executable_extensions; do
3824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3825 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3827 break 2
3829 done
3830 done
3834 RANLIB=$ac_cv_prog_RANLIB
3835 if test -n "$RANLIB"; then
3836 echo "$as_me:$LINENO: result: $RANLIB" >&5
3837 echo "${ECHO_T}$RANLIB" >&6
3838 else
3839 echo "$as_me:$LINENO: result: no" >&5
3840 echo "${ECHO_T}no" >&6
3844 if test -z "$ac_cv_prog_RANLIB"; then
3845 ac_ct_RANLIB=$RANLIB
3846 # Extract the first word of "ranlib", so it can be a program name with args.
3847 set dummy ranlib; ac_word=$2
3848 echo "$as_me:$LINENO: checking for $ac_word" >&5
3849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3850 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3851 echo $ECHO_N "(cached) $ECHO_C" >&6
3852 else
3853 if test -n "$ac_ct_RANLIB"; then
3854 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3855 else
3856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3857 for as_dir in $PATH
3859 IFS=$as_save_IFS
3860 test -z "$as_dir" && as_dir=.
3861 for ac_exec_ext in '' $ac_executable_extensions; do
3862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3863 ac_cv_prog_ac_ct_RANLIB="ranlib"
3864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3865 break 2
3867 done
3868 done
3870 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3873 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3874 if test -n "$ac_ct_RANLIB"; then
3875 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3876 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3877 else
3878 echo "$as_me:$LINENO: result: no" >&5
3879 echo "${ECHO_T}no" >&6
3882 RANLIB=$ac_ct_RANLIB
3883 else
3884 RANLIB="$ac_cv_prog_RANLIB"
3888 # Find a good install program. We prefer a C program (faster),
3889 # so one script is as good as another. But avoid the broken or
3890 # incompatible versions:
3891 # SysV /etc/install, /usr/sbin/install
3892 # SunOS /usr/etc/install
3893 # IRIX /sbin/install
3894 # AIX /bin/install
3895 # AmigaOS /C/install, which installs bootblocks on floppy discs
3896 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3897 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3898 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3899 # OS/2's system install, which has a completely different semantic
3900 # ./install, which can be erroneously created by make from ./install.sh.
3901 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3902 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3903 if test -z "$INSTALL"; then
3904 if test "${ac_cv_path_install+set}" = set; then
3905 echo $ECHO_N "(cached) $ECHO_C" >&6
3906 else
3907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908 for as_dir in $PATH
3910 IFS=$as_save_IFS
3911 test -z "$as_dir" && as_dir=.
3912 # Account for people who put trailing slashes in PATH elements.
3913 case $as_dir/ in
3914 ./ | .// | /cC/* | \
3915 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3916 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3917 /usr/ucb/* ) ;;
3919 # OSF1 and SCO ODT 3.0 have their own names for install.
3920 # Don't use installbsd from OSF since it installs stuff as root
3921 # by default.
3922 for ac_prog in ginstall scoinst install; do
3923 for ac_exec_ext in '' $ac_executable_extensions; do
3924 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3925 if test $ac_prog = install &&
3926 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3927 # AIX install. It has an incompatible calling convention.
3929 elif test $ac_prog = install &&
3930 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3931 # program-specific install script used by HP pwplus--don't use.
3933 else
3934 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3935 break 3
3938 done
3939 done
3941 esac
3942 done
3946 if test "${ac_cv_path_install+set}" = set; then
3947 INSTALL=$ac_cv_path_install
3948 else
3949 # As a last resort, use the slow shell script. We don't cache a
3950 # path for INSTALL within a source directory, because that will
3951 # break other packages using the cache if that directory is
3952 # removed, or if the path is relative.
3953 INSTALL=$ac_install_sh
3956 echo "$as_me:$LINENO: result: $INSTALL" >&5
3957 echo "${ECHO_T}$INSTALL" >&6
3959 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3960 # It thinks the first close brace ends the variable substitution.
3961 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3963 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3965 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3968 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3969 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3970 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3971 if test "${enable_maintainer_mode+set}" = set; then
3972 enableval="$enable_maintainer_mode"
3973 USE_MAINTAINER_MODE=$enableval
3974 else
3975 USE_MAINTAINER_MODE=no
3977 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3978 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3981 if test $USE_MAINTAINER_MODE = yes; then
3982 MAINTAINER_MODE_TRUE=
3983 MAINTAINER_MODE_FALSE='#'
3984 else
3985 MAINTAINER_MODE_TRUE='#'
3986 MAINTAINER_MODE_FALSE=
3989 MAINT=$MAINTAINER_MODE_TRUE
3995 # configure.host sets the following important variables
3996 # libgcj_cflags - host specific C compiler flags
3997 # libgcj_cxxflags - host specific C++ compiler flags
3998 # libgcj_javaflags - host specific Java compiler flags
4000 libgcj_cflags=
4001 libgcj_cxxflags=
4002 libgcj_javaflags=
4004 . ${srcdir}/configure.host
4006 LIBGCJ_CFLAGS="${libgcj_cflags}"
4007 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4008 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4009 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4015 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
4018 # Only use libltdl for non-newlib builds.
4019 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4020 case $enable_ltdl_convenience in
4021 no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
4022 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
4023 { (exit 1); exit 1; }; } ;;
4024 "") enable_ltdl_convenience=yes
4025 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
4026 esac
4027 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
4028 INCLTDL='-I${top_srcdir}/''libltdl'
4031 DIRLTDL=libltdl
4033 cat >>confdefs.h <<\_ACEOF
4034 #define USE_LTDL 1
4035 _ACEOF
4037 # Sigh. Libtool's macro doesn't do the right thing.
4038 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
4039 # FIXME: this is a hack.
4040 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
4041 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
4046 # Check whether --enable-shared or --disable-shared was given.
4047 if test "${enable_shared+set}" = set; then
4048 enableval="$enable_shared"
4049 p=${PACKAGE-default}
4050 case $enableval in
4051 yes) enable_shared=yes ;;
4052 no) enable_shared=no ;;
4054 enable_shared=no
4055 # Look at the argument we got. We use all the common list separators.
4056 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4057 for pkg in $enableval; do
4058 if test "X$pkg" = "X$p"; then
4059 enable_shared=yes
4061 done
4062 IFS="$ac_save_ifs"
4064 esac
4065 else
4066 enable_shared=yes
4068 # Check whether --enable-static or --disable-static was given.
4069 if test "${enable_static+set}" = set; then
4070 enableval="$enable_static"
4071 p=${PACKAGE-default}
4072 case $enableval in
4073 yes) enable_static=yes ;;
4074 no) enable_static=no ;;
4076 enable_static=no
4077 # Look at the argument we got. We use all the common list separators.
4078 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4079 for pkg in $enableval; do
4080 if test "X$pkg" = "X$p"; then
4081 enable_static=yes
4083 done
4084 IFS="$ac_save_ifs"
4086 esac
4087 else
4088 enable_static=yes
4090 # Check whether --enable-fast-install or --disable-fast-install was given.
4091 if test "${enable_fast_install+set}" = set; then
4092 enableval="$enable_fast_install"
4093 p=${PACKAGE-default}
4094 case $enableval in
4095 yes) enable_fast_install=yes ;;
4096 no) enable_fast_install=no ;;
4098 enable_fast_install=no
4099 # Look at the argument we got. We use all the common list separators.
4100 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4101 for pkg in $enableval; do
4102 if test "X$pkg" = "X$p"; then
4103 enable_fast_install=yes
4105 done
4106 IFS="$ac_save_ifs"
4108 esac
4109 else
4110 enable_fast_install=yes
4113 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4114 if test "${with_gnu_ld+set}" = set; then
4115 withval="$with_gnu_ld"
4116 test "$withval" = no || with_gnu_ld=yes
4117 else
4118 with_gnu_ld=no
4120 ac_prog=ld
4121 if test "$GCC" = yes; then
4122 # Check if gcc -print-prog-name=ld gives a path.
4123 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4124 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4125 case $host in
4126 *-*-mingw*)
4127 # gcc leaves a trailing carriage return which upsets mingw
4128 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4130 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4131 esac
4132 case $ac_prog in
4133 # Accept absolute paths.
4134 [\\/]* | [A-Za-z]:[\\/]*)
4135 re_direlt='/[^/][^/]*/\.\./'
4136 # Canonicalize the path of ld
4137 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4138 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4139 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4140 done
4141 test -z "$LD" && LD="$ac_prog"
4144 # If it fails, then pretend we aren't using GCC.
4145 ac_prog=ld
4148 # If it is relative, then search for the first ld in PATH.
4149 with_gnu_ld=unknown
4151 esac
4152 elif test "$with_gnu_ld" = yes; then
4153 echo "$as_me:$LINENO: checking for GNU ld" >&5
4154 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4155 else
4156 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4157 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4159 if test "${lt_cv_path_LD+set}" = set; then
4160 echo $ECHO_N "(cached) $ECHO_C" >&6
4161 else
4162 if test -z "$LD"; then
4163 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4164 for ac_dir in $PATH; do
4165 test -z "$ac_dir" && ac_dir=.
4166 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4167 lt_cv_path_LD="$ac_dir/$ac_prog"
4168 # Check to see if the program is GNU ld. I'd rather use --version,
4169 # but apparently some GNU ld's only accept -v.
4170 # Break only if it was the GNU/non-GNU ld that we prefer.
4171 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4172 test "$with_gnu_ld" != no && break
4173 else
4174 test "$with_gnu_ld" != yes && break
4177 done
4178 IFS="$ac_save_ifs"
4179 else
4180 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4184 LD="$lt_cv_path_LD"
4185 if test -n "$LD"; then
4186 echo "$as_me:$LINENO: result: $LD" >&5
4187 echo "${ECHO_T}$LD" >&6
4188 else
4189 echo "$as_me:$LINENO: result: no" >&5
4190 echo "${ECHO_T}no" >&6
4192 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4193 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4194 { (exit 1); exit 1; }; }
4195 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4196 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4197 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4199 else
4200 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4201 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4202 lt_cv_prog_gnu_ld=yes
4203 else
4204 lt_cv_prog_gnu_ld=no
4207 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4208 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4209 with_gnu_ld=$lt_cv_prog_gnu_ld
4212 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4213 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4214 if test "${lt_cv_ld_reload_flag+set}" = set; then
4215 echo $ECHO_N "(cached) $ECHO_C" >&6
4216 else
4217 lt_cv_ld_reload_flag='-r'
4219 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4220 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4221 reload_flag=$lt_cv_ld_reload_flag
4222 test -n "$reload_flag" && reload_flag=" $reload_flag"
4224 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4225 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4226 if test "${lt_cv_path_NM+set}" = set; then
4227 echo $ECHO_N "(cached) $ECHO_C" >&6
4228 else
4229 if test -n "$NM"; then
4230 # Let the user override the test.
4231 lt_cv_path_NM="$NM"
4232 else
4233 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4234 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4235 test -z "$ac_dir" && ac_dir=.
4236 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4237 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4238 # Check to see if the nm accepts a BSD-compat flag.
4239 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4240 # nm: unknown option "B" ignored
4241 # Tru64's nm complains that /dev/null is an invalid object file
4242 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4243 lt_cv_path_NM="$tmp_nm -B"
4244 break
4245 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4246 lt_cv_path_NM="$tmp_nm -p"
4247 break
4248 else
4249 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4250 continue # so that we can try to find one that supports BSD flags
4253 done
4254 IFS="$ac_save_ifs"
4255 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4259 NM="$lt_cv_path_NM"
4260 echo "$as_me:$LINENO: result: $NM" >&5
4261 echo "${ECHO_T}$NM" >&6
4263 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4264 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4265 if test "${lt_cv_deplibs_check_method+set}" = set; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4267 else
4268 lt_cv_file_magic_cmd='$MAGIC_CMD'
4269 lt_cv_file_magic_test_file=
4270 lt_cv_deplibs_check_method='unknown'
4271 # Need to set the preceding variable on all platforms that support
4272 # interlibrary dependencies.
4273 # 'none' -- dependencies not supported.
4274 # `unknown' -- same as none, but documents that we really don't know.
4275 # 'pass_all' -- all dependencies passed with no checks.
4276 # 'test_compile' -- check by making test program.
4277 # 'file_magic [regex]' -- check by looking for files in library path
4278 # which responds to the $file_magic_cmd with a given egrep regex.
4279 # If you have `file' or equivalent on your system and you're not sure
4280 # whether `pass_all' will *always* work, you probably want this one.
4282 case $host_os in
4283 aix*)
4284 lt_cv_deplibs_check_method=pass_all
4287 beos*)
4288 lt_cv_deplibs_check_method=pass_all
4291 bsdi4*)
4292 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4293 lt_cv_file_magic_cmd='/usr/bin/file -L'
4294 lt_cv_file_magic_test_file=/shlib/libc.so
4297 cygwin* | mingw* |pw32*)
4298 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4299 lt_cv_file_magic_cmd='$OBJDUMP -f'
4302 darwin* | rhapsody*)
4303 # this will be overwritten by pass_all, but leave it in just in case
4304 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4305 lt_cv_file_magic_cmd='/usr/bin/file -L'
4306 case "$host_os" in
4307 rhapsody* | darwin1.012)
4308 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
4310 *) # Darwin 1.3 on
4311 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4313 esac
4314 lt_cv_deplibs_check_method=pass_all
4317 freebsd* | kfreebsd*-gnu)
4318 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4319 case $host_cpu in
4320 i*86 )
4321 # Not sure whether the presence of OpenBSD here was a mistake.
4322 # Let's accept both of them until this is cleared up.
4323 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4324 lt_cv_file_magic_cmd=/usr/bin/file
4325 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4327 esac
4328 else
4329 lt_cv_deplibs_check_method=pass_all
4333 gnu*)
4334 lt_cv_deplibs_check_method=pass_all
4337 hpux10.20*|hpux11*)
4338 case $host_cpu in
4339 hppa*)
4340 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4341 lt_cv_file_magic_cmd=/usr/bin/file
4342 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4344 ia64*)
4345 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4346 lt_cv_file_magic_cmd=/usr/bin/file
4347 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4349 esac
4352 irix5* | irix6*)
4353 case $host_os in
4354 irix5*)
4355 # this will be overridden with pass_all, but let us keep it just in case
4356 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4359 case $LD in
4360 *-32|*"-32 ") libmagic=32-bit;;
4361 *-n32|*"-n32 ") libmagic=N32;;
4362 *-64|*"-64 ") libmagic=64-bit;;
4363 *) libmagic=never-match;;
4364 esac
4365 # this will be overridden with pass_all, but let us keep it just in case
4366 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4368 esac
4369 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4370 lt_cv_deplibs_check_method=pass_all
4373 # This must be Linux ELF.
4374 linux-gnu*)
4375 lt_cv_deplibs_check_method=pass_all
4378 netbsd* | knetbsd*-gnu)
4379 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4380 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4381 else
4382 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4386 newsos6)
4387 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4388 lt_cv_file_magic_cmd=/usr/bin/file
4389 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4392 osf3* | osf4* | osf5*)
4393 # this will be overridden with pass_all, but let us keep it just in case
4394 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4395 lt_cv_file_magic_test_file=/shlib/libc.so
4396 lt_cv_deplibs_check_method=pass_all
4399 sco3.2v5*)
4400 lt_cv_deplibs_check_method=pass_all
4403 solaris*)
4404 lt_cv_deplibs_check_method=pass_all
4405 lt_cv_file_magic_test_file=/lib/libc.so
4408 sysv5uw[78]* | sysv4*uw2*)
4409 lt_cv_deplibs_check_method=pass_all
4412 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4413 case $host_vendor in
4414 ncr)
4415 lt_cv_deplibs_check_method=pass_all
4417 motorola)
4418 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]'
4419 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4421 esac
4423 esac
4426 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4427 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4428 file_magic_cmd=$lt_cv_file_magic_cmd
4429 deplibs_check_method=$lt_cv_deplibs_check_method
4434 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4436 # Only perform the check for file, if the check method requires it
4437 case $deplibs_check_method in
4438 file_magic*)
4439 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4440 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4441 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4442 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
4444 else
4445 case $MAGIC_CMD in
4447 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4449 ?:/*)
4450 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4453 ac_save_MAGIC_CMD="$MAGIC_CMD"
4454 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4455 ac_dummy="/usr/bin:$PATH"
4456 for ac_dir in $ac_dummy; do
4457 test -z "$ac_dir" && ac_dir=.
4458 if test -f $ac_dir/${ac_tool_prefix}file; then
4459 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4460 if test -n "$file_magic_test_file"; then
4461 case $deplibs_check_method in
4462 "file_magic "*)
4463 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4464 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4465 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4466 egrep "$file_magic_regex" > /dev/null; then
4468 else
4469 cat <<EOF 1>&2
4471 *** Warning: the command libtool uses to detect shared libraries,
4472 *** $file_magic_cmd, produces output that libtool cannot recognize.
4473 *** The result is that libtool may fail to recognize shared libraries
4474 *** as such. This will affect the creation of libtool libraries that
4475 *** depend on shared libraries, but programs linked with such libtool
4476 *** libraries will work regardless of this problem. Nevertheless, you
4477 *** may want to report the problem to your system manager and/or to
4478 *** bug-libtool@gnu.org
4481 fi ;;
4482 esac
4484 break
4486 done
4487 IFS="$ac_save_ifs"
4488 MAGIC_CMD="$ac_save_MAGIC_CMD"
4490 esac
4493 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4494 if test -n "$MAGIC_CMD"; then
4495 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4496 echo "${ECHO_T}$MAGIC_CMD" >&6
4497 else
4498 echo "$as_me:$LINENO: result: no" >&5
4499 echo "${ECHO_T}no" >&6
4502 if test -z "$lt_cv_path_MAGIC_CMD"; then
4503 if test -n "$ac_tool_prefix"; then
4504 echo "$as_me:$LINENO: checking for file" >&5
4505 echo $ECHO_N "checking for file... $ECHO_C" >&6
4506 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4507 echo $ECHO_N "(cached) $ECHO_C" >&6
4508 else
4509 case $MAGIC_CMD in
4511 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4513 ?:/*)
4514 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4517 ac_save_MAGIC_CMD="$MAGIC_CMD"
4518 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4519 ac_dummy="/usr/bin:$PATH"
4520 for ac_dir in $ac_dummy; do
4521 test -z "$ac_dir" && ac_dir=.
4522 if test -f $ac_dir/file; then
4523 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4524 if test -n "$file_magic_test_file"; then
4525 case $deplibs_check_method in
4526 "file_magic "*)
4527 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4528 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4529 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4530 egrep "$file_magic_regex" > /dev/null; then
4532 else
4533 cat <<EOF 1>&2
4535 *** Warning: the command libtool uses to detect shared libraries,
4536 *** $file_magic_cmd, produces output that libtool cannot recognize.
4537 *** The result is that libtool may fail to recognize shared libraries
4538 *** as such. This will affect the creation of libtool libraries that
4539 *** depend on shared libraries, but programs linked with such libtool
4540 *** libraries will work regardless of this problem. Nevertheless, you
4541 *** may want to report the problem to your system manager and/or to
4542 *** bug-libtool@gnu.org
4545 fi ;;
4546 esac
4548 break
4550 done
4551 IFS="$ac_save_ifs"
4552 MAGIC_CMD="$ac_save_MAGIC_CMD"
4554 esac
4557 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4558 if test -n "$MAGIC_CMD"; then
4559 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4560 echo "${ECHO_T}$MAGIC_CMD" >&6
4561 else
4562 echo "$as_me:$LINENO: result: no" >&5
4563 echo "${ECHO_T}no" >&6
4566 else
4567 MAGIC_CMD=:
4573 esac
4575 if test -n "$ac_tool_prefix"; then
4576 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4577 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4578 echo "$as_me:$LINENO: checking for $ac_word" >&5
4579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4580 if test "${ac_cv_prog_RANLIB+set}" = set; then
4581 echo $ECHO_N "(cached) $ECHO_C" >&6
4582 else
4583 if test -n "$RANLIB"; then
4584 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4585 else
4586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587 for as_dir in $PATH
4589 IFS=$as_save_IFS
4590 test -z "$as_dir" && as_dir=.
4591 for ac_exec_ext in '' $ac_executable_extensions; do
4592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4593 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4595 break 2
4597 done
4598 done
4602 RANLIB=$ac_cv_prog_RANLIB
4603 if test -n "$RANLIB"; then
4604 echo "$as_me:$LINENO: result: $RANLIB" >&5
4605 echo "${ECHO_T}$RANLIB" >&6
4606 else
4607 echo "$as_me:$LINENO: result: no" >&5
4608 echo "${ECHO_T}no" >&6
4612 if test -z "$ac_cv_prog_RANLIB"; then
4613 ac_ct_RANLIB=$RANLIB
4614 # Extract the first word of "ranlib", so it can be a program name with args.
4615 set dummy ranlib; ac_word=$2
4616 echo "$as_me:$LINENO: checking for $ac_word" >&5
4617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4618 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4619 echo $ECHO_N "(cached) $ECHO_C" >&6
4620 else
4621 if test -n "$ac_ct_RANLIB"; then
4622 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4623 else
4624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625 for as_dir in $PATH
4627 IFS=$as_save_IFS
4628 test -z "$as_dir" && as_dir=.
4629 for ac_exec_ext in '' $ac_executable_extensions; do
4630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4631 ac_cv_prog_ac_ct_RANLIB="ranlib"
4632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4633 break 2
4635 done
4636 done
4638 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4641 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4642 if test -n "$ac_ct_RANLIB"; then
4643 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4644 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4645 else
4646 echo "$as_me:$LINENO: result: no" >&5
4647 echo "${ECHO_T}no" >&6
4650 RANLIB=$ac_ct_RANLIB
4651 else
4652 RANLIB="$ac_cv_prog_RANLIB"
4655 if test -n "$ac_tool_prefix"; then
4656 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4657 set dummy ${ac_tool_prefix}strip; ac_word=$2
4658 echo "$as_me:$LINENO: checking for $ac_word" >&5
4659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4660 if test "${ac_cv_prog_STRIP+set}" = set; then
4661 echo $ECHO_N "(cached) $ECHO_C" >&6
4662 else
4663 if test -n "$STRIP"; then
4664 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4665 else
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 for as_dir in $PATH
4669 IFS=$as_save_IFS
4670 test -z "$as_dir" && as_dir=.
4671 for ac_exec_ext in '' $ac_executable_extensions; do
4672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4673 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4675 break 2
4677 done
4678 done
4682 STRIP=$ac_cv_prog_STRIP
4683 if test -n "$STRIP"; then
4684 echo "$as_me:$LINENO: result: $STRIP" >&5
4685 echo "${ECHO_T}$STRIP" >&6
4686 else
4687 echo "$as_me:$LINENO: result: no" >&5
4688 echo "${ECHO_T}no" >&6
4692 if test -z "$ac_cv_prog_STRIP"; then
4693 ac_ct_STRIP=$STRIP
4694 # Extract the first word of "strip", so it can be a program name with args.
4695 set dummy strip; ac_word=$2
4696 echo "$as_me:$LINENO: checking for $ac_word" >&5
4697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4698 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4700 else
4701 if test -n "$ac_ct_STRIP"; then
4702 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4703 else
4704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705 for as_dir in $PATH
4707 IFS=$as_save_IFS
4708 test -z "$as_dir" && as_dir=.
4709 for ac_exec_ext in '' $ac_executable_extensions; do
4710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4711 ac_cv_prog_ac_ct_STRIP="strip"
4712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4713 break 2
4715 done
4716 done
4718 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4721 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4722 if test -n "$ac_ct_STRIP"; then
4723 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4724 echo "${ECHO_T}$ac_ct_STRIP" >&6
4725 else
4726 echo "$as_me:$LINENO: result: no" >&5
4727 echo "${ECHO_T}no" >&6
4730 STRIP=$ac_ct_STRIP
4731 else
4732 STRIP="$ac_cv_prog_STRIP"
4736 # Check for any special flags to pass to ltconfig.
4737 libtool_flags="--cache-file=$cache_file"
4738 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4739 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4740 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4741 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4742 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4745 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4746 if test "${enable_libtool_lock+set}" = set; then
4747 enableval="$enable_libtool_lock"
4750 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4751 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4754 # Check whether --with-pic or --without-pic was given.
4755 if test "${with_pic+set}" = set; then
4756 withval="$with_pic"
4757 pic_mode="$withval"
4758 else
4759 pic_mode=default
4761 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4762 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4764 # Some flags need to be propagated to the compiler or linker for good
4765 # libtool support.
4766 case $host in
4767 *-*-irix6*)
4768 # Find out which ABI we are using.
4769 echo '#line 4769 "configure"' > conftest.$ac_ext
4770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4771 (eval $ac_compile) 2>&5
4772 ac_status=$?
4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774 (exit $ac_status); }; then
4775 if test "$lt_cv_prog_gnu_ld" = yes; then
4776 case `/usr/bin/file conftest.$ac_objext` in
4777 *32-bit*)
4778 LD="${LD-ld} -melf32bsmip"
4780 *N32*)
4781 LD="${LD-ld} -melf32bmipn32"
4783 *64-bit*)
4784 LD="${LD-ld} -melf64bmip"
4786 esac
4787 else
4788 case `/usr/bin/file conftest.$ac_objext` in
4789 *32-bit*)
4790 LD="${LD-ld} -32"
4792 *N32*)
4793 LD="${LD-ld} -n32"
4795 *64-bit*)
4796 LD="${LD-ld} -64"
4798 esac
4801 rm -rf conftest*
4804 ia64-*-hpux*)
4805 # Find out which ABI we are using.
4806 echo 'int i;' > conftest.$ac_ext
4807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4808 (eval $ac_compile) 2>&5
4809 ac_status=$?
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); }; then
4812 case "`/usr/bin/file conftest.o`" in
4813 *ELF-32*)
4814 HPUX_IA64_MODE="32"
4816 *ELF-64*)
4817 HPUX_IA64_MODE="64"
4819 esac
4821 rm -rf conftest*
4824 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4825 # Find out which ABI we are using.
4826 echo 'int i;' > conftest.$ac_ext
4827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4828 (eval $ac_compile) 2>&5
4829 ac_status=$?
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); }; then
4832 case "`/usr/bin/file conftest.o`" in
4833 *32-bit*)
4834 case $host in
4835 x86_64-*linux*)
4836 LD="${LD-ld} -m elf_i386"
4838 ppc64-*linux*|powerpc64-*linux*)
4839 LD="${LD-ld} -m elf32ppclinux"
4841 s390x-*linux*)
4842 LD="${LD-ld} -m elf_s390"
4844 sparc64-*linux*)
4845 LD="${LD-ld} -m elf32_sparc"
4847 esac
4849 *64-bit*)
4850 case $host in
4851 x86_64-*linux*)
4852 LD="${LD-ld} -m elf_x86_64"
4854 ppc*-*linux*|powerpc*-*linux*)
4855 LD="${LD-ld} -m elf64ppc"
4857 s390*-*linux*)
4858 LD="${LD-ld} -m elf64_s390"
4860 sparc*-*linux*)
4861 LD="${LD-ld} -m elf64_sparc"
4863 esac
4865 esac
4867 rm -rf conftest*
4870 *-*-sco3.2v5*)
4871 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4872 SAVE_CFLAGS="$CFLAGS"
4873 CFLAGS="$CFLAGS -belf"
4874 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4875 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4876 if test "${lt_cv_cc_needs_belf+set}" = set; then
4877 echo $ECHO_N "(cached) $ECHO_C" >&6
4878 else
4881 ac_ext=c
4882 ac_cpp='$CPP $CPPFLAGS'
4883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4887 if test x$gcc_no_link = xyes; then
4888 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4889 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4890 { (exit 1); exit 1; }; }
4892 cat >conftest.$ac_ext <<_ACEOF
4893 /* confdefs.h. */
4894 _ACEOF
4895 cat confdefs.h >>conftest.$ac_ext
4896 cat >>conftest.$ac_ext <<_ACEOF
4897 /* end confdefs.h. */
4900 main ()
4904 return 0;
4906 _ACEOF
4907 rm -f conftest.$ac_objext conftest$ac_exeext
4908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4909 (eval $ac_link) 2>conftest.er1
4910 ac_status=$?
4911 grep -v '^ *+' conftest.er1 >conftest.err
4912 rm -f conftest.er1
4913 cat conftest.err >&5
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); } &&
4916 { ac_try='test -z "$ac_c_werror_flag"
4917 || test ! -s conftest.err'
4918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4919 (eval $ac_try) 2>&5
4920 ac_status=$?
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); }; } &&
4923 { ac_try='test -s conftest$ac_exeext'
4924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4925 (eval $ac_try) 2>&5
4926 ac_status=$?
4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928 (exit $ac_status); }; }; then
4929 lt_cv_cc_needs_belf=yes
4930 else
4931 echo "$as_me: failed program was:" >&5
4932 sed 's/^/| /' conftest.$ac_ext >&5
4934 lt_cv_cc_needs_belf=no
4936 rm -f conftest.err conftest.$ac_objext \
4937 conftest$ac_exeext conftest.$ac_ext
4938 ac_ext=c
4939 ac_cpp='$CPP $CPPFLAGS'
4940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4945 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4946 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4947 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4948 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4949 CFLAGS="$SAVE_CFLAGS"
4954 esac
4957 # Save cache, so that ltconfig can load it
4958 cat >confcache <<\_ACEOF
4959 # This file is a shell script that caches the results of configure
4960 # tests run on this system so they can be shared between configure
4961 # scripts and configure runs, see configure's option --config-cache.
4962 # It is not useful on other systems. If it contains results you don't
4963 # want to keep, you may remove or edit it.
4965 # config.status only pays attention to the cache file if you give it
4966 # the --recheck option to rerun configure.
4968 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4969 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4970 # following values.
4972 _ACEOF
4974 # The following way of writing the cache mishandles newlines in values,
4975 # but we know of no workaround that is simple, portable, and efficient.
4976 # So, don't put newlines in cache variables' values.
4977 # Ultrix sh set writes to stderr and can't be redirected directly,
4978 # and sets the high bit in the cache file unless we assign to the vars.
4980 (set) 2>&1 |
4981 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4982 *ac_space=\ *)
4983 # `set' does not quote correctly, so add quotes (double-quote
4984 # substitution turns \\\\ into \\, and sed turns \\ into \).
4985 sed -n \
4986 "s/'/'\\\\''/g;
4987 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4990 # `set' quotes correctly as required by POSIX, so do not add quotes.
4991 sed -n \
4992 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4994 esac;
4996 sed '
4997 t clear
4998 : clear
4999 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5000 t end
5001 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5002 : end' >>confcache
5003 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5004 if test -w $cache_file; then
5005 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5006 cat confcache >$cache_file
5007 else
5008 echo "not updating unwritable cache $cache_file"
5011 rm -f confcache
5013 # Actually configure libtool. ac_aux_dir is where install-sh is found.
5014 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
5015 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5016 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5017 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5018 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5019 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
5020 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
5021 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5022 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5023 echo "$as_me: error: libtool configure failed" >&2;}
5024 { (exit 1); exit 1; }; }
5026 # Reload cache, that may have been modified by ltconfig
5027 if test -r "$cache_file"; then
5028 # Some versions of bash will fail to source /dev/null (special
5029 # files actually), so we avoid doing that.
5030 if test -f "$cache_file"; then
5031 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5032 echo "$as_me: loading cache $cache_file" >&6;}
5033 case $cache_file in
5034 [\\/]* | ?:[\\/]* ) . $cache_file;;
5035 *) . ./$cache_file;;
5036 esac
5038 else
5039 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5040 echo "$as_me: creating cache $cache_file" >&6;}
5041 >$cache_file
5045 # This can be used to rebuild libtool when needed
5046 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5048 # Always use our own libtool.
5049 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5051 # Redirect the config.log output again, so that the ltconfig log is not
5052 # clobbered by the next message.
5053 exec 5>>./config.log
5055 ac_ext=cc
5056 ac_cpp='$CXXCPP $CPPFLAGS'
5057 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5058 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5059 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5060 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5061 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5062 if test -z "$CXXCPP"; then
5063 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5065 else
5066 # Double quotes because CXXCPP needs to be expanded
5067 for CXXCPP in "$CXX -E" "/lib/cpp"
5069 ac_preproc_ok=false
5070 for ac_cxx_preproc_warn_flag in '' yes
5072 # Use a header file that comes with gcc, so configuring glibc
5073 # with a fresh cross-compiler works.
5074 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5075 # <limits.h> exists even on freestanding compilers.
5076 # On the NeXT, cc -E runs the code through the compiler's parser,
5077 # not just through cpp. "Syntax error" is here to catch this case.
5078 cat >conftest.$ac_ext <<_ACEOF
5079 /* confdefs.h. */
5080 _ACEOF
5081 cat confdefs.h >>conftest.$ac_ext
5082 cat >>conftest.$ac_ext <<_ACEOF
5083 /* end confdefs.h. */
5084 #ifdef __STDC__
5085 # include <limits.h>
5086 #else
5087 # include <assert.h>
5088 #endif
5089 Syntax error
5090 _ACEOF
5091 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5092 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5093 ac_status=$?
5094 grep -v '^ *+' conftest.er1 >conftest.err
5095 rm -f conftest.er1
5096 cat conftest.err >&5
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); } >/dev/null; then
5099 if test -s conftest.err; then
5100 ac_cpp_err=$ac_cxx_preproc_warn_flag
5101 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5102 else
5103 ac_cpp_err=
5105 else
5106 ac_cpp_err=yes
5108 if test -z "$ac_cpp_err"; then
5110 else
5111 echo "$as_me: failed program was:" >&5
5112 sed 's/^/| /' conftest.$ac_ext >&5
5114 # Broken: fails on valid input.
5115 continue
5117 rm -f conftest.err conftest.$ac_ext
5119 # OK, works on sane cases. Now check whether non-existent headers
5120 # can be detected and how.
5121 cat >conftest.$ac_ext <<_ACEOF
5122 /* confdefs.h. */
5123 _ACEOF
5124 cat confdefs.h >>conftest.$ac_ext
5125 cat >>conftest.$ac_ext <<_ACEOF
5126 /* end confdefs.h. */
5127 #include <ac_nonexistent.h>
5128 _ACEOF
5129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5131 ac_status=$?
5132 grep -v '^ *+' conftest.er1 >conftest.err
5133 rm -f conftest.er1
5134 cat conftest.err >&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); } >/dev/null; then
5137 if test -s conftest.err; then
5138 ac_cpp_err=$ac_cxx_preproc_warn_flag
5139 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5140 else
5141 ac_cpp_err=
5143 else
5144 ac_cpp_err=yes
5146 if test -z "$ac_cpp_err"; then
5147 # Broken: success on invalid input.
5148 continue
5149 else
5150 echo "$as_me: failed program was:" >&5
5151 sed 's/^/| /' conftest.$ac_ext >&5
5153 # Passes both tests.
5154 ac_preproc_ok=:
5155 break
5157 rm -f conftest.err conftest.$ac_ext
5159 done
5160 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5161 rm -f conftest.err conftest.$ac_ext
5162 if $ac_preproc_ok; then
5163 break
5166 done
5167 ac_cv_prog_CXXCPP=$CXXCPP
5170 CXXCPP=$ac_cv_prog_CXXCPP
5171 else
5172 ac_cv_prog_CXXCPP=$CXXCPP
5174 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5175 echo "${ECHO_T}$CXXCPP" >&6
5176 ac_preproc_ok=false
5177 for ac_cxx_preproc_warn_flag in '' yes
5179 # Use a header file that comes with gcc, so configuring glibc
5180 # with a fresh cross-compiler works.
5181 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5182 # <limits.h> exists even on freestanding compilers.
5183 # On the NeXT, cc -E runs the code through the compiler's parser,
5184 # not just through cpp. "Syntax error" is here to catch this case.
5185 cat >conftest.$ac_ext <<_ACEOF
5186 /* confdefs.h. */
5187 _ACEOF
5188 cat confdefs.h >>conftest.$ac_ext
5189 cat >>conftest.$ac_ext <<_ACEOF
5190 /* end confdefs.h. */
5191 #ifdef __STDC__
5192 # include <limits.h>
5193 #else
5194 # include <assert.h>
5195 #endif
5196 Syntax error
5197 _ACEOF
5198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5200 ac_status=$?
5201 grep -v '^ *+' conftest.er1 >conftest.err
5202 rm -f conftest.er1
5203 cat conftest.err >&5
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); } >/dev/null; then
5206 if test -s conftest.err; then
5207 ac_cpp_err=$ac_cxx_preproc_warn_flag
5208 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5209 else
5210 ac_cpp_err=
5212 else
5213 ac_cpp_err=yes
5215 if test -z "$ac_cpp_err"; then
5217 else
5218 echo "$as_me: failed program was:" >&5
5219 sed 's/^/| /' conftest.$ac_ext >&5
5221 # Broken: fails on valid input.
5222 continue
5224 rm -f conftest.err conftest.$ac_ext
5226 # OK, works on sane cases. Now check whether non-existent headers
5227 # can be detected and how.
5228 cat >conftest.$ac_ext <<_ACEOF
5229 /* confdefs.h. */
5230 _ACEOF
5231 cat confdefs.h >>conftest.$ac_ext
5232 cat >>conftest.$ac_ext <<_ACEOF
5233 /* end confdefs.h. */
5234 #include <ac_nonexistent.h>
5235 _ACEOF
5236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5237 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5238 ac_status=$?
5239 grep -v '^ *+' conftest.er1 >conftest.err
5240 rm -f conftest.er1
5241 cat conftest.err >&5
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); } >/dev/null; then
5244 if test -s conftest.err; then
5245 ac_cpp_err=$ac_cxx_preproc_warn_flag
5246 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5247 else
5248 ac_cpp_err=
5250 else
5251 ac_cpp_err=yes
5253 if test -z "$ac_cpp_err"; then
5254 # Broken: success on invalid input.
5255 continue
5256 else
5257 echo "$as_me: failed program was:" >&5
5258 sed 's/^/| /' conftest.$ac_ext >&5
5260 # Passes both tests.
5261 ac_preproc_ok=:
5262 break
5264 rm -f conftest.err conftest.$ac_ext
5266 done
5267 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5268 rm -f conftest.err conftest.$ac_ext
5269 if $ac_preproc_ok; then
5271 else
5272 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5273 See \`config.log' for more details." >&5
5274 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5275 See \`config.log' for more details." >&2;}
5276 { (exit 1); exit 1; }; }
5279 ac_ext=c
5280 ac_cpp='$CPP $CPPFLAGS'
5281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5287 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
5288 lt_save_CC="$CC"
5289 lt_save_CFLAGS="$CFLAGS"
5290 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
5291 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5292 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5293 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5294 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5295 deplibs_check_method="$deplibs_check_method" \
5296 file_magic_cmd="$file_magic_cmd" \
5297 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5298 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
5299 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5300 echo "$as_me: error: libtool tag configuration failed" >&2;}
5301 { (exit 1); exit 1; }; }
5302 CC="$lt_save_CC"
5303 CFLAGS="$lt_save_CFLAGS"
5305 # Redirect the config.log output again, so that the ltconfig log is not
5306 # clobbered by the next message.
5307 exec 5>>./config.log
5315 for ac_prog in gcj
5317 # Extract the first word of "$ac_prog", so it can be a program name with args.
5318 set dummy $ac_prog; ac_word=$2
5319 echo "$as_me:$LINENO: checking for $ac_word" >&5
5320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5321 if test "${ac_cv_prog_GCJ+set}" = set; then
5322 echo $ECHO_N "(cached) $ECHO_C" >&6
5323 else
5324 if test -n "$GCJ"; then
5325 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5326 else
5327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5328 for as_dir in $PATH
5330 IFS=$as_save_IFS
5331 test -z "$as_dir" && as_dir=.
5332 for ac_exec_ext in '' $ac_executable_extensions; do
5333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5334 ac_cv_prog_GCJ="$ac_prog"
5335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5336 break 2
5338 done
5339 done
5343 GCJ=$ac_cv_prog_GCJ
5344 if test -n "$GCJ"; then
5345 echo "$as_me:$LINENO: result: $GCJ" >&5
5346 echo "${ECHO_T}$GCJ" >&6
5347 else
5348 echo "$as_me:$LINENO: result: no" >&5
5349 echo "${ECHO_T}no" >&6
5352 test -n "$GCJ" && break
5353 done
5354 test -n "$GCJ" || GCJ="gcj"
5356 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
5357 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
5358 { (exit 1); exit 1; }; }
5359 if test "x${GCJFLAGS-unset}" = xunset; then
5360 GCJFLAGS="-g -O2"
5364 depcc="$GCJ" am_compiler_list='gcc3 gcc'
5366 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5367 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5368 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
5369 echo $ECHO_N "(cached) $ECHO_C" >&6
5370 else
5371 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5372 # We make a subdir and do the tests there. Otherwise we can end up
5373 # making bogus files that we don't know about and never remove. For
5374 # instance it was reported that on HP-UX the gcc test will end up
5375 # making a dummy file named `D' -- because `-MD' means `put the output
5376 # in D'.
5377 mkdir conftest.dir
5378 # Copy depcomp to subdir because otherwise we won't find it if we're
5379 # using a relative directory.
5380 cp "$am_depcomp" conftest.dir
5381 cd conftest.dir
5382 # We will build objects and dependencies in a subdirectory because
5383 # it helps to detect inapplicable dependency modes. For instance
5384 # both Tru64's cc and ICC support -MD to output dependencies as a
5385 # side effect of compilation, but ICC will put the dependencies in
5386 # the current directory while Tru64 will put them in the object
5387 # directory.
5388 mkdir sub
5390 am_cv_GCJ_dependencies_compiler_type=none
5391 if test "$am_compiler_list" = ""; then
5392 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5394 for depmode in $am_compiler_list; do
5395 # Setup a source with many dependencies, because some compilers
5396 # like to wrap large dependency lists on column 80 (with \), and
5397 # we should not choose a depcomp mode which is confused by this.
5399 # We need to recreate these files for each test, as the compiler may
5400 # overwrite some of them when testing with obscure command lines.
5401 # This happens at least with the AIX C compiler.
5402 : > sub/conftest.c
5403 for i in 1 2 3 4 5 6; do
5404 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5405 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5406 # Solaris 8's {/usr,}/bin/sh.
5407 touch sub/conftst$i.h
5408 done
5409 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5411 case $depmode in
5412 nosideeffect)
5413 # after this tag, mechanisms are not by side-effect, so they'll
5414 # only be used when explicitly requested
5415 if test "x$enable_dependency_tracking" = xyes; then
5416 continue
5417 else
5418 break
5421 none) break ;;
5422 esac
5423 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5424 # mode. It turns out that the SunPro C++ compiler does not properly
5425 # handle `-M -o', and we need to detect this.
5426 if depmode=$depmode \
5427 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5428 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5429 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5430 >/dev/null 2>conftest.err &&
5431 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5432 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5433 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5434 # icc doesn't choke on unknown options, it will just issue warnings
5435 # or remarks (even with -Werror). So we grep stderr for any message
5436 # that says an option was ignored or not supported.
5437 # When given -MP, icc 7.0 and 7.1 complain thusly:
5438 # icc: Command line warning: ignoring option '-M'; no argument required
5439 # The diagnosis changed in icc 8.0:
5440 # icc: Command line remark: option '-MP' not supported
5441 if (grep 'ignoring option' conftest.err ||
5442 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5443 am_cv_GCJ_dependencies_compiler_type=$depmode
5444 break
5447 done
5449 cd ..
5450 rm -rf conftest.dir
5451 else
5452 am_cv_GCJ_dependencies_compiler_type=none
5456 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
5457 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
5458 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
5463 test "x$enable_dependency_tracking" != xno \
5464 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
5465 am__fastdepGCJ_TRUE=
5466 am__fastdepGCJ_FALSE='#'
5467 else
5468 am__fastdepGCJ_TRUE='#'
5469 am__fastdepGCJ_FALSE=
5475 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
5476 lt_save_CC="$CC"
5477 lt_save_CFLAGS="$CFLAGS"
5478 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
5479 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5480 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5481 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5482 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5483 deplibs_check_method="$deplibs_check_method" \
5484 file_magic_cmd="$file_magic_cmd" \
5485 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5486 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
5487 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5488 echo "$as_me: error: libtool tag configuration failed" >&2;}
5489 { (exit 1); exit 1; }; }
5490 CC="$lt_save_CC"
5491 CFLAGS="$lt_save_CFLAGS"
5493 # Redirect the config.log output again, so that the ltconfig log is not
5494 # clobbered by the next message.
5495 exec 5>>./config.log
5499 if test "x$CC" != xcc; then
5500 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5501 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
5502 else
5503 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5504 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
5506 set dummy $CC; ac_cc=`echo $2 |
5507 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5508 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
5509 echo $ECHO_N "(cached) $ECHO_C" >&6
5510 else
5511 cat >conftest.$ac_ext <<_ACEOF
5512 /* confdefs.h. */
5513 _ACEOF
5514 cat confdefs.h >>conftest.$ac_ext
5515 cat >>conftest.$ac_ext <<_ACEOF
5516 /* end confdefs.h. */
5519 main ()
5523 return 0;
5525 _ACEOF
5526 # Make sure it works both with $CC and with simple cc.
5527 # We do the test twice because some compilers refuse to overwrite an
5528 # existing .o file with -o, though they will create one.
5529 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5530 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5531 (eval $ac_try) 2>&5
5532 ac_status=$?
5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); } &&
5535 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5536 (eval $ac_try) 2>&5
5537 ac_status=$?
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); };
5540 then
5541 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5542 if test "x$CC" != xcc; then
5543 # Test first that cc exists at all.
5544 if { ac_try='cc -c conftest.$ac_ext >&5'
5545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5546 (eval $ac_try) 2>&5
5547 ac_status=$?
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); }; }; then
5550 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5551 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5552 (eval $ac_try) 2>&5
5553 ac_status=$?
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); } &&
5556 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5557 (eval $ac_try) 2>&5
5558 ac_status=$?
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); };
5561 then
5562 # cc works too.
5564 else
5565 # cc exists but doesn't like -o.
5566 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5570 else
5571 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5573 rm -f conftest*
5576 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
5577 echo "$as_me:$LINENO: result: yes" >&5
5578 echo "${ECHO_T}yes" >&6
5579 else
5580 echo "$as_me:$LINENO: result: no" >&5
5581 echo "${ECHO_T}no" >&6
5583 cat >>confdefs.h <<\_ACEOF
5584 #define NO_MINUS_C_MINUS_O 1
5585 _ACEOF
5589 # FIXME: we rely on the cache variable name because
5590 # there is no other way.
5591 set dummy $CC
5592 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5593 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
5594 # Losing compiler, so override with the script.
5595 # FIXME: It is wrong to rewrite CC.
5596 # But if we don't then we get into trouble of one sort or another.
5597 # A longer-term fix would be to have automake use am__CC in this case,
5598 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5599 CC="$am_aux_dir/compile $CC"
5604 subdirs="$subdirs libltdl"
5607 # The -no-testsuite modules omit the test subdir.
5610 if test -d $srcdir/testsuite; then
5611 TESTSUBDIR_TRUE=
5612 TESTSUBDIR_FALSE='#'
5613 else
5614 TESTSUBDIR_TRUE='#'
5615 TESTSUBDIR_FALSE=
5619 # Should the runtime set system properties by examining the
5620 # environment variable GCJ_PROPERTIES?
5621 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
5622 if test "${enable_getenv_properties+set}" = set; then
5623 enableval="$enable_getenv_properties"
5627 # Whether GCJ_PROPERTIES is used depends on the target.
5628 if test -z "$enable_getenv_properties"; then
5629 enable_getenv_properties=${enable_getenv_properties_default-yes}
5631 if test "$enable_getenv_properties" = no; then
5633 cat >>confdefs.h <<\_ACEOF
5634 #define DISABLE_GETENV_PROPERTIES 1
5635 _ACEOF
5639 # Whether we should use arguments to main()
5640 if test -z "$enable_main_args"; then
5641 enable_main_args=${enable_main_args_default-yes}
5643 if test "$enable_main_args" = no; then
5645 cat >>confdefs.h <<\_ACEOF
5646 #define DISABLE_MAIN_ARGS 1
5647 _ACEOF
5652 # Should we use hashtable-based synchronization?
5653 # Currently works only for Linux X86/ia64
5654 # Typically faster and more space-efficient
5655 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
5656 if test "${enable_hash_synchronization+set}" = set; then
5657 enableval="$enable_hash_synchronization"
5661 if test -z "$enable_hash_synchronization"; then
5662 enable_hash_synchronization=$enable_hash_synchronization_default
5665 # Do we allow intermodule optimizations (i.e. compiling many files at once)?
5666 # Check whether --enable-libgcj-multifile or --disable-libgcj-multifile was given.
5667 if test "${enable_libgcj_multifile+set}" = set; then
5668 enableval="$enable_libgcj_multifile"
5669 case "${enableval}" in
5670 yes) enable_libgcj_multifile=yes ;;
5671 no) enable_libgcj_multifile=no ;;
5672 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-libgcj-multifile" >&5
5673 echo "$as_me: error: bad value ${enableval} for --enable-libgcj-multifile" >&2;}
5674 { (exit 1); exit 1; }; } ;;
5675 esac
5676 else
5677 enable_libgcj_multifile=no
5681 if test "$enable_libgcj_multifile" = yes; then
5682 ONESTEP_TRUE=
5683 ONESTEP_FALSE='#'
5684 else
5685 ONESTEP_TRUE='#'
5686 ONESTEP_FALSE=
5690 # What is the native OS API for MinGW?
5692 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
5693 if test "${with_win32_nlsapi+set}" = set; then
5694 withval="$with_win32_nlsapi"
5695 case "${withval}" in
5696 ansi) with_win32_nlsapi=ansi ;;
5697 unicows) with_win32_nlsapi=unicows ;;
5698 unicode) with_win32_nlsapi=unicode ;;
5699 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
5700 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
5701 { (exit 1); exit 1; }; } ;;
5702 esac
5703 else
5704 with_win32_nlsapi=ansi
5707 case "${with_win32_nlsapi}" in
5708 unicows | unicode)
5710 cat >>confdefs.h <<\_ACEOF
5711 #define MINGW_LIBGCJ_UNICODE 1
5712 _ACEOF
5715 esac
5717 # configure.host sets slow_pthread_self if the synchronization code should
5718 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
5719 if test "${slow_pthread_self}" = "yes"; then
5721 cat >>confdefs.h <<\_ACEOF
5722 #define SLOW_PTHREAD_SELF 1
5723 _ACEOF
5728 # See if the user has requested runtime debugging.
5729 LIBGCJDEBUG="false"
5731 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
5732 if test "${enable_libgcj_debug+set}" = set; then
5733 enableval="$enable_libgcj_debug"
5734 if test "$enable_libgcj_debug" = yes; then
5736 cat >>confdefs.h <<\_ACEOF
5737 #define DEBUG 1
5738 _ACEOF
5740 LIBGCJDEBUG="true"
5744 # Check for gc debugging. This option is handled both here and in the GC.
5745 # Check whether --enable-gc-debug or --disable-gc-debug was given.
5746 if test "${enable_gc_debug+set}" = set; then
5747 enableval="$enable_gc_debug"
5748 if test "$enable_gc_debug" = "yes"; then
5750 cat >>confdefs.h <<\_ACEOF
5751 #define LIBGCJ_GC_DEBUG 1
5752 _ACEOF
5757 # See if the user has the interpreter included.
5758 # Check whether --enable-interpreter or --disable-interpreter was given.
5759 if test "${enable_interpreter+set}" = set; then
5760 enableval="$enable_interpreter"
5761 if test "$enable_interpreter" = yes; then
5762 # This can also be set in configure.host.
5763 libgcj_interpreter=yes
5764 elif test "$enable_interpreter" = no; then
5765 libgcj_interpreter=no
5769 if test "$libgcj_interpreter" = yes; then
5771 cat >>confdefs.h <<\_ACEOF
5772 #define INTERPRETER 1
5773 _ACEOF
5776 INTERPRETER="$libgcj_interpreter"
5779 echo "$as_me:$LINENO: checking for exception model to use" >&5
5780 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
5781 ac_ext=cc
5782 ac_cpp='$CXXCPP $CPPFLAGS'
5783 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5784 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5785 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5787 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
5788 if test "${enable_sjlj_exceptions+set}" = set; then
5789 enableval="$enable_sjlj_exceptions"
5791 else
5792 cat > conftest.$ac_ext << EOF
5793 #line 5793 "configure"
5794 struct S { ~S(); };
5795 void bar();
5796 void foo()
5798 S s;
5799 bar();
5802 old_CXXFLAGS="$CXXFLAGS"
5803 CXXFLAGS=-S
5804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5805 (eval $ac_compile) 2>&5
5806 ac_status=$?
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); }; then
5809 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
5810 enable_sjlj_exceptions=yes
5811 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
5812 enable_sjlj_exceptions=no
5815 CXXFLAGS="$old_CXXFLAGS"
5816 rm -f conftest*
5818 if test x$enable_sjlj_exceptions = xyes; then
5820 cat >>confdefs.h <<\_ACEOF
5821 #define SJLJ_EXCEPTIONS 1
5822 _ACEOF
5824 ac_exception_model_name=sjlj
5825 elif test x$enable_sjlj_exceptions = xno; then
5826 ac_exception_model_name="call frame"
5827 else
5828 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
5829 echo "$as_me: error: unable to detect exception model" >&2;}
5830 { (exit 1); exit 1; }; }
5832 ac_ext=c
5833 ac_cpp='$CPP $CPPFLAGS'
5834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5838 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
5839 echo "${ECHO_T}$ac_exception_model_name" >&6
5841 # If we are non using SJLJ exceptions, and this host does not have support
5842 # for unwinding from a signal handler, enable checked dereferences and divides.
5843 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
5844 CHECKREFSPEC=-fcheck-references
5845 DIVIDESPEC=-fuse-divide-subroutine
5846 EXCEPTIONSPEC=
5849 # See if the user wants to disable java.net. This is the mildly
5850 # ugly way that we admit that target-side configuration sucks.
5851 # Check whether --enable-java-net or --disable-java-net was given.
5852 if test "${enable_java_net+set}" = set; then
5853 enableval="$enable_java_net"
5857 # Whether java.net is built by default can depend on the target.
5858 if test -z "$enable_java_net"; then
5859 enable_java_net=${enable_java_net_default-yes}
5861 if test "$enable_java_net" = no; then
5863 cat >>confdefs.h <<\_ACEOF
5864 #define DISABLE_JAVA_NET 1
5865 _ACEOF
5869 # See if the user wants to configure without libffi. Some
5870 # architectures don't support it, and default values are set in
5871 # configure.host.
5873 # Check whether --with-libffi or --without-libffi was given.
5874 if test "${with_libffi+set}" = set; then
5875 withval="$with_libffi"
5877 else
5878 with_libffi=${with_libffi_default-yes}
5881 LIBFFI=
5882 LIBFFIINCS=
5883 if test "$with_libffi" != no; then
5885 cat >>confdefs.h <<\_ACEOF
5886 #define USE_LIBFFI 1
5887 _ACEOF
5889 LIBFFI=../libffi/libffi_convenience.la
5890 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
5895 # See if the user wants to disable JVMPI support.
5896 # Check whether --enable-jvmpi or --disable-jvmpi was given.
5897 if test "${enable_jvmpi+set}" = set; then
5898 enableval="$enable_jvmpi"
5902 if test "$enable_jvmpi" != no; then
5904 cat >>confdefs.h <<\_ACEOF
5905 #define ENABLE_JVMPI 1
5906 _ACEOF
5910 # If the target is an eCos system, use the appropriate eCos
5911 # I/O routines.
5912 # FIXME: this should not be a local option but a global target
5913 # system; at present there is no eCos target.
5914 TARGET_ECOS=${PROCESS-"no"}
5916 # Check whether --with-ecos or --without-ecos was given.
5917 if test "${with_ecos+set}" = set; then
5918 withval="$with_ecos"
5919 TARGET_ECOS="$with_ecos"
5923 supply_backtrace=no
5925 PLATFORM_INNER_NAT_HDRS=
5926 case "$TARGET_ECOS" in
5927 no) case "$host" in
5928 *mingw*)
5929 PLATFORM=Win32
5930 PLATFORMNET=Win32
5931 PLATFORMH=win32.h
5933 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
5934 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
5935 LD_PROG=`$CC --print-prog-name=ld`
5936 LD_VERSION=`$LD_PROG --version`
5937 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
5938 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
5939 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
5940 LD_OK="ok"
5941 else
5942 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
5943 LD_OK="ok"
5946 if test "x$LD_OK" != x; then
5947 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
5948 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
5949 else
5950 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
5951 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
5952 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
5953 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
5955 cat >>confdefs.h <<\_ACEOF
5956 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
5957 _ACEOF
5962 PLATFORM=Posix
5963 PLATFORMNET=Posix
5964 PLATFORMH=posix.h
5965 PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
5967 esac
5970 PLATFORM=Ecos
5971 PLATFORMNET=NoNet
5973 cat >>confdefs.h <<\_ACEOF
5974 #define ECOS 1
5975 _ACEOF
5977 PLATFORMH=posix.h
5979 esac
5981 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
5984 ac_ext=c
5985 ac_cpp='$CPP $CPPFLAGS'
5986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5989 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5990 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5991 # On Suns, sometimes $CPP names a directory.
5992 if test -n "$CPP" && test -d "$CPP"; then
5993 CPP=
5995 if test -z "$CPP"; then
5996 if test "${ac_cv_prog_CPP+set}" = set; then
5997 echo $ECHO_N "(cached) $ECHO_C" >&6
5998 else
5999 # Double quotes because CPP needs to be expanded
6000 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6002 ac_preproc_ok=false
6003 for ac_c_preproc_warn_flag in '' yes
6005 # Use a header file that comes with gcc, so configuring glibc
6006 # with a fresh cross-compiler works.
6007 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6008 # <limits.h> exists even on freestanding compilers.
6009 # On the NeXT, cc -E runs the code through the compiler's parser,
6010 # not just through cpp. "Syntax error" is here to catch this case.
6011 cat >conftest.$ac_ext <<_ACEOF
6012 /* confdefs.h. */
6013 _ACEOF
6014 cat confdefs.h >>conftest.$ac_ext
6015 cat >>conftest.$ac_ext <<_ACEOF
6016 /* end confdefs.h. */
6017 #ifdef __STDC__
6018 # include <limits.h>
6019 #else
6020 # include <assert.h>
6021 #endif
6022 Syntax error
6023 _ACEOF
6024 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6025 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6026 ac_status=$?
6027 grep -v '^ *+' conftest.er1 >conftest.err
6028 rm -f conftest.er1
6029 cat conftest.err >&5
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); } >/dev/null; then
6032 if test -s conftest.err; then
6033 ac_cpp_err=$ac_c_preproc_warn_flag
6034 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6035 else
6036 ac_cpp_err=
6038 else
6039 ac_cpp_err=yes
6041 if test -z "$ac_cpp_err"; then
6043 else
6044 echo "$as_me: failed program was:" >&5
6045 sed 's/^/| /' conftest.$ac_ext >&5
6047 # Broken: fails on valid input.
6048 continue
6050 rm -f conftest.err conftest.$ac_ext
6052 # OK, works on sane cases. Now check whether non-existent headers
6053 # can be detected and how.
6054 cat >conftest.$ac_ext <<_ACEOF
6055 /* confdefs.h. */
6056 _ACEOF
6057 cat confdefs.h >>conftest.$ac_ext
6058 cat >>conftest.$ac_ext <<_ACEOF
6059 /* end confdefs.h. */
6060 #include <ac_nonexistent.h>
6061 _ACEOF
6062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6063 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6064 ac_status=$?
6065 grep -v '^ *+' conftest.er1 >conftest.err
6066 rm -f conftest.er1
6067 cat conftest.err >&5
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); } >/dev/null; then
6070 if test -s conftest.err; then
6071 ac_cpp_err=$ac_c_preproc_warn_flag
6072 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6073 else
6074 ac_cpp_err=
6076 else
6077 ac_cpp_err=yes
6079 if test -z "$ac_cpp_err"; then
6080 # Broken: success on invalid input.
6081 continue
6082 else
6083 echo "$as_me: failed program was:" >&5
6084 sed 's/^/| /' conftest.$ac_ext >&5
6086 # Passes both tests.
6087 ac_preproc_ok=:
6088 break
6090 rm -f conftest.err conftest.$ac_ext
6092 done
6093 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6094 rm -f conftest.err conftest.$ac_ext
6095 if $ac_preproc_ok; then
6096 break
6099 done
6100 ac_cv_prog_CPP=$CPP
6103 CPP=$ac_cv_prog_CPP
6104 else
6105 ac_cv_prog_CPP=$CPP
6107 echo "$as_me:$LINENO: result: $CPP" >&5
6108 echo "${ECHO_T}$CPP" >&6
6109 ac_preproc_ok=false
6110 for ac_c_preproc_warn_flag in '' yes
6112 # Use a header file that comes with gcc, so configuring glibc
6113 # with a fresh cross-compiler works.
6114 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6115 # <limits.h> exists even on freestanding compilers.
6116 # On the NeXT, cc -E runs the code through the compiler's parser,
6117 # not just through cpp. "Syntax error" is here to catch this case.
6118 cat >conftest.$ac_ext <<_ACEOF
6119 /* confdefs.h. */
6120 _ACEOF
6121 cat confdefs.h >>conftest.$ac_ext
6122 cat >>conftest.$ac_ext <<_ACEOF
6123 /* end confdefs.h. */
6124 #ifdef __STDC__
6125 # include <limits.h>
6126 #else
6127 # include <assert.h>
6128 #endif
6129 Syntax error
6130 _ACEOF
6131 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6132 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6133 ac_status=$?
6134 grep -v '^ *+' conftest.er1 >conftest.err
6135 rm -f conftest.er1
6136 cat conftest.err >&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); } >/dev/null; then
6139 if test -s conftest.err; then
6140 ac_cpp_err=$ac_c_preproc_warn_flag
6141 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6142 else
6143 ac_cpp_err=
6145 else
6146 ac_cpp_err=yes
6148 if test -z "$ac_cpp_err"; then
6150 else
6151 echo "$as_me: failed program was:" >&5
6152 sed 's/^/| /' conftest.$ac_ext >&5
6154 # Broken: fails on valid input.
6155 continue
6157 rm -f conftest.err conftest.$ac_ext
6159 # OK, works on sane cases. Now check whether non-existent headers
6160 # can be detected and how.
6161 cat >conftest.$ac_ext <<_ACEOF
6162 /* confdefs.h. */
6163 _ACEOF
6164 cat confdefs.h >>conftest.$ac_ext
6165 cat >>conftest.$ac_ext <<_ACEOF
6166 /* end confdefs.h. */
6167 #include <ac_nonexistent.h>
6168 _ACEOF
6169 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6170 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6171 ac_status=$?
6172 grep -v '^ *+' conftest.er1 >conftest.err
6173 rm -f conftest.er1
6174 cat conftest.err >&5
6175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176 (exit $ac_status); } >/dev/null; then
6177 if test -s conftest.err; then
6178 ac_cpp_err=$ac_c_preproc_warn_flag
6179 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6180 else
6181 ac_cpp_err=
6183 else
6184 ac_cpp_err=yes
6186 if test -z "$ac_cpp_err"; then
6187 # Broken: success on invalid input.
6188 continue
6189 else
6190 echo "$as_me: failed program was:" >&5
6191 sed 's/^/| /' conftest.$ac_ext >&5
6193 # Passes both tests.
6194 ac_preproc_ok=:
6195 break
6197 rm -f conftest.err conftest.$ac_ext
6199 done
6200 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6201 rm -f conftest.err conftest.$ac_ext
6202 if $ac_preproc_ok; then
6204 else
6205 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6206 See \`config.log' for more details." >&5
6207 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6208 See \`config.log' for more details." >&2;}
6209 { (exit 1); exit 1; }; }
6212 ac_ext=c
6213 ac_cpp='$CPP $CPPFLAGS'
6214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6219 echo "$as_me:$LINENO: checking for egrep" >&5
6220 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6221 if test "${ac_cv_prog_egrep+set}" = set; then
6222 echo $ECHO_N "(cached) $ECHO_C" >&6
6223 else
6224 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6225 then ac_cv_prog_egrep='grep -E'
6226 else ac_cv_prog_egrep='egrep'
6229 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6230 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6231 EGREP=$ac_cv_prog_egrep
6234 cat >conftest.$ac_ext <<_ACEOF
6235 /* confdefs.h. */
6236 _ACEOF
6237 cat confdefs.h >>conftest.$ac_ext
6238 cat >>conftest.$ac_ext <<_ACEOF
6239 /* end confdefs.h. */
6240 #include <stdint.h>
6242 _ACEOF
6243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6244 $EGREP "uint32_t" >/dev/null 2>&1; then
6246 cat >>confdefs.h <<\_ACEOF
6247 #define HAVE_INT32_DEFINED 1
6248 _ACEOF
6251 rm -f conftest*
6253 cat >conftest.$ac_ext <<_ACEOF
6254 /* confdefs.h. */
6255 _ACEOF
6256 cat confdefs.h >>conftest.$ac_ext
6257 cat >>conftest.$ac_ext <<_ACEOF
6258 /* end confdefs.h. */
6259 #include <inttypes.h>
6261 _ACEOF
6262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6263 $EGREP "uint32_t" >/dev/null 2>&1; then
6265 cat >>confdefs.h <<\_ACEOF
6266 #define HAVE_INT32_DEFINED 1
6267 _ACEOF
6270 rm -f conftest*
6272 cat >conftest.$ac_ext <<_ACEOF
6273 /* confdefs.h. */
6274 _ACEOF
6275 cat confdefs.h >>conftest.$ac_ext
6276 cat >>conftest.$ac_ext <<_ACEOF
6277 /* end confdefs.h. */
6278 #include <sys/types.h>
6280 _ACEOF
6281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6282 $EGREP "u_int32_t" >/dev/null 2>&1; then
6284 cat >>confdefs.h <<\_ACEOF
6285 #define HAVE_BSD_INT32_DEFINED 1
6286 _ACEOF
6289 rm -f conftest*
6291 cat >conftest.$ac_ext <<_ACEOF
6292 /* confdefs.h. */
6293 _ACEOF
6294 cat confdefs.h >>conftest.$ac_ext
6295 cat >>conftest.$ac_ext <<_ACEOF
6296 /* end confdefs.h. */
6297 #include <sys/config.h>
6299 _ACEOF
6300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6301 $EGREP "u_int32_t" >/dev/null 2>&1; then
6303 cat >>confdefs.h <<\_ACEOF
6304 #define HAVE_BSD_INT32_DEFINED 1
6305 _ACEOF
6308 rm -f conftest*
6313 if test "$PLATFORM" = Win32; then
6314 USING_WIN32_PLATFORM_TRUE=
6315 USING_WIN32_PLATFORM_FALSE='#'
6316 else
6317 USING_WIN32_PLATFORM_TRUE='#'
6318 USING_WIN32_PLATFORM_FALSE=
6323 if test "$PLATFORM" = Posix; then
6324 USING_POSIX_PLATFORM_TRUE=
6325 USING_POSIX_PLATFORM_FALSE='#'
6326 else
6327 USING_POSIX_PLATFORM_TRUE='#'
6328 USING_POSIX_PLATFORM_FALSE=
6333 if test "$PLATFORM" = Ecos; then
6334 USING_ECOS_PLATFORM_TRUE=
6335 USING_ECOS_PLATFORM_FALSE='#'
6336 else
6337 USING_ECOS_PLATFORM_TRUE='#'
6338 USING_ECOS_PLATFORM_FALSE=
6342 case "$host" in
6343 *-darwin*) DARWIN_CRT=true ;;
6344 *) DARWIN_CRT=false ;;
6345 esac
6348 if $DARWIN_CRT; then
6349 USING_DARWIN_CRT_TRUE=
6350 USING_DARWIN_CRT_FALSE='#'
6351 else
6352 USING_DARWIN_CRT_TRUE='#'
6353 USING_DARWIN_CRT_FALSE=
6357 # These may not be defined in a non-ANS conformant embedded system.
6358 # FIXME: Should these case a runtime exception in that case?
6359 cat >conftest.$ac_ext <<_ACEOF
6360 /* confdefs.h. */
6361 _ACEOF
6362 cat confdefs.h >>conftest.$ac_ext
6363 cat >>conftest.$ac_ext <<_ACEOF
6364 /* end confdefs.h. */
6365 #include <time.h>
6367 _ACEOF
6368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6369 $EGREP "mktime" >/dev/null 2>&1; then
6371 cat >>confdefs.h <<\_ACEOF
6372 #define HAVE_MKTIME 1
6373 _ACEOF
6376 rm -f conftest*
6378 cat >conftest.$ac_ext <<_ACEOF
6379 /* confdefs.h. */
6380 _ACEOF
6381 cat confdefs.h >>conftest.$ac_ext
6382 cat >>conftest.$ac_ext <<_ACEOF
6383 /* end confdefs.h. */
6384 #include <time.h>
6386 _ACEOF
6387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6388 $EGREP "localtime" >/dev/null 2>&1; then
6390 cat >>confdefs.h <<\_ACEOF
6391 #define HAVE_LOCALTIME 1
6392 _ACEOF
6395 rm -f conftest*
6398 # Create the subdirectory for natFile.cc, or the attempt
6399 # to create the link will fail.
6400 test -d java || mkdir java
6401 test -d java/io || mkdir java/io
6402 test -d gnu || mkdir gnu
6403 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
6406 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
6407 test -d java/lang || mkdir java/lang
6408 ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
6410 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
6413 # Likewise for natInetAddress.cc and natNetworkInterface.cc.
6414 test -d java/net || mkdir java/net
6415 ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
6417 ac_config_links="$ac_config_links java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc"
6420 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
6421 test -d gnu/java || mkdir gnu/java
6422 test -d gnu/java/net || mkdir gnu/java/net
6423 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
6425 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
6428 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
6429 test -d gnu/java/nio || mkdir gnu/java/nio
6430 ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
6432 ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
6434 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
6435 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
6438 case "${host}" in
6439 *mingw*)
6440 SYSTEMSPEC="-lgdi32 -lws2_32"
6441 if test "${with_win32_nlsapi}" = "unicows"; then
6442 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
6446 SYSTEMSPEC=
6448 esac
6451 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
6455 # Check whether --with-system-zlib or --without-system-zlib was given.
6456 if test "${with_system_zlib+set}" = set; then
6457 withval="$with_system_zlib"
6460 ZLIBSPEC=
6462 ZLIBTESTSPEC=
6465 echo "$as_me:$LINENO: checking for X" >&5
6466 echo $ECHO_N "checking for X... $ECHO_C" >&6
6469 # Check whether --with-x or --without-x was given.
6470 if test "${with_x+set}" = set; then
6471 withval="$with_x"
6474 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6475 if test "x$with_x" = xno; then
6476 # The user explicitly disabled X.
6477 have_x=disabled
6478 else
6479 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6480 # Both variables are already set.
6481 have_x=yes
6482 else
6483 if test "${ac_cv_have_x+set}" = set; then
6484 echo $ECHO_N "(cached) $ECHO_C" >&6
6485 else
6486 # One or both of the vars are not set, and there is no cached value.
6487 ac_x_includes=no ac_x_libraries=no
6488 rm -fr conftest.dir
6489 if mkdir conftest.dir; then
6490 cd conftest.dir
6491 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6492 cat >Imakefile <<'_ACEOF'
6493 acfindx:
6494 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6495 _ACEOF
6496 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6497 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6498 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6499 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6500 for ac_extension in a so sl; do
6501 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6502 test -f $ac_im_libdir/libX11.$ac_extension; then
6503 ac_im_usrlibdir=$ac_im_libdir; break
6505 done
6506 # Screen out bogus values from the imake configuration. They are
6507 # bogus both because they are the default anyway, and because
6508 # using them would break gcc on systems where it needs fixed includes.
6509 case $ac_im_incroot in
6510 /usr/include) ;;
6511 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6512 esac
6513 case $ac_im_usrlibdir in
6514 /usr/lib | /lib) ;;
6515 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6516 esac
6518 cd ..
6519 rm -fr conftest.dir
6522 # Standard set of common directories for X headers.
6523 # Check X11 before X11Rn because it is often a symlink to the current release.
6524 ac_x_header_dirs='
6525 /usr/X11/include
6526 /usr/X11R6/include
6527 /usr/X11R5/include
6528 /usr/X11R4/include
6530 /usr/include/X11
6531 /usr/include/X11R6
6532 /usr/include/X11R5
6533 /usr/include/X11R4
6535 /usr/local/X11/include
6536 /usr/local/X11R6/include
6537 /usr/local/X11R5/include
6538 /usr/local/X11R4/include
6540 /usr/local/include/X11
6541 /usr/local/include/X11R6
6542 /usr/local/include/X11R5
6543 /usr/local/include/X11R4
6545 /usr/X386/include
6546 /usr/x386/include
6547 /usr/XFree86/include/X11
6549 /usr/include
6550 /usr/local/include
6551 /usr/unsupported/include
6552 /usr/athena/include
6553 /usr/local/x11r5/include
6554 /usr/lpp/Xamples/include
6556 /usr/openwin/include
6557 /usr/openwin/share/include'
6559 if test "$ac_x_includes" = no; then
6560 # Guess where to find include files, by looking for Intrinsic.h.
6561 # First, try using that file with no special directory specified.
6562 cat >conftest.$ac_ext <<_ACEOF
6563 /* confdefs.h. */
6564 _ACEOF
6565 cat confdefs.h >>conftest.$ac_ext
6566 cat >>conftest.$ac_ext <<_ACEOF
6567 /* end confdefs.h. */
6568 #include <X11/Intrinsic.h>
6569 _ACEOF
6570 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6571 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6572 ac_status=$?
6573 grep -v '^ *+' conftest.er1 >conftest.err
6574 rm -f conftest.er1
6575 cat conftest.err >&5
6576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577 (exit $ac_status); } >/dev/null; then
6578 if test -s conftest.err; then
6579 ac_cpp_err=$ac_c_preproc_warn_flag
6580 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6581 else
6582 ac_cpp_err=
6584 else
6585 ac_cpp_err=yes
6587 if test -z "$ac_cpp_err"; then
6588 # We can compile using X headers with no special include directory.
6589 ac_x_includes=
6590 else
6591 echo "$as_me: failed program was:" >&5
6592 sed 's/^/| /' conftest.$ac_ext >&5
6594 for ac_dir in $ac_x_header_dirs; do
6595 if test -r "$ac_dir/X11/Intrinsic.h"; then
6596 ac_x_includes=$ac_dir
6597 break
6599 done
6601 rm -f conftest.err conftest.$ac_ext
6602 fi # $ac_x_includes = no
6604 if test "$ac_x_libraries" = no; then
6605 # Check for the libraries.
6606 # See if we find them without any special options.
6607 # Don't add to $LIBS permanently.
6608 ac_save_LIBS=$LIBS
6609 LIBS="-lXt $LIBS"
6610 if test x$gcc_no_link = xyes; then
6611 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6612 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6613 { (exit 1); exit 1; }; }
6615 cat >conftest.$ac_ext <<_ACEOF
6616 /* confdefs.h. */
6617 _ACEOF
6618 cat confdefs.h >>conftest.$ac_ext
6619 cat >>conftest.$ac_ext <<_ACEOF
6620 /* end confdefs.h. */
6621 #include <X11/Intrinsic.h>
6623 main ()
6625 XtMalloc (0)
6627 return 0;
6629 _ACEOF
6630 rm -f conftest.$ac_objext conftest$ac_exeext
6631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6632 (eval $ac_link) 2>conftest.er1
6633 ac_status=$?
6634 grep -v '^ *+' conftest.er1 >conftest.err
6635 rm -f conftest.er1
6636 cat conftest.err >&5
6637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638 (exit $ac_status); } &&
6639 { ac_try='test -z "$ac_c_werror_flag"
6640 || test ! -s conftest.err'
6641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6642 (eval $ac_try) 2>&5
6643 ac_status=$?
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); }; } &&
6646 { ac_try='test -s conftest$ac_exeext'
6647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6648 (eval $ac_try) 2>&5
6649 ac_status=$?
6650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651 (exit $ac_status); }; }; then
6652 LIBS=$ac_save_LIBS
6653 # We can link X programs with no special library path.
6654 ac_x_libraries=
6655 else
6656 echo "$as_me: failed program was:" >&5
6657 sed 's/^/| /' conftest.$ac_ext >&5
6659 LIBS=$ac_save_LIBS
6660 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6662 # Don't even attempt the hair of trying to link an X program!
6663 for ac_extension in a so sl; do
6664 if test -r $ac_dir/libXt.$ac_extension; then
6665 ac_x_libraries=$ac_dir
6666 break 2
6668 done
6669 done
6671 rm -f conftest.err conftest.$ac_objext \
6672 conftest$ac_exeext conftest.$ac_ext
6673 fi # $ac_x_libraries = no
6675 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6676 # Didn't find X anywhere. Cache the known absence of X.
6677 ac_cv_have_x="have_x=no"
6678 else
6679 # Record where we found X for the cache.
6680 ac_cv_have_x="have_x=yes \
6681 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6686 eval "$ac_cv_have_x"
6687 fi # $with_x != no
6689 if test "$have_x" != yes; then
6690 echo "$as_me:$LINENO: result: $have_x" >&5
6691 echo "${ECHO_T}$have_x" >&6
6692 no_x=yes
6693 else
6694 # If each of the values was on the command line, it overrides each guess.
6695 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6696 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6697 # Update the cache value to reflect the command line values.
6698 ac_cv_have_x="have_x=yes \
6699 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6700 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6701 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6704 if test "$no_x" = yes; then
6705 # Not all programs may use this symbol, but it does not hurt to define it.
6707 cat >>confdefs.h <<\_ACEOF
6708 #define X_DISPLAY_MISSING 1
6709 _ACEOF
6711 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6712 else
6713 if test -n "$x_includes"; then
6714 X_CFLAGS="$X_CFLAGS -I$x_includes"
6717 # It would also be nice to do this for all -L options, not just this one.
6718 if test -n "$x_libraries"; then
6719 X_LIBS="$X_LIBS -L$x_libraries"
6720 # For Solaris; some versions of Sun CC require a space after -R and
6721 # others require no space. Words are not sufficient . . . .
6722 case `(uname -sr) 2>/dev/null` in
6723 "SunOS 5"*)
6724 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6725 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
6726 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6727 if test x$gcc_no_link = xyes; then
6728 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6729 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6730 { (exit 1); exit 1; }; }
6732 cat >conftest.$ac_ext <<_ACEOF
6733 /* confdefs.h. */
6734 _ACEOF
6735 cat confdefs.h >>conftest.$ac_ext
6736 cat >>conftest.$ac_ext <<_ACEOF
6737 /* end confdefs.h. */
6740 main ()
6744 return 0;
6746 _ACEOF
6747 rm -f conftest.$ac_objext conftest$ac_exeext
6748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6749 (eval $ac_link) 2>conftest.er1
6750 ac_status=$?
6751 grep -v '^ *+' conftest.er1 >conftest.err
6752 rm -f conftest.er1
6753 cat conftest.err >&5
6754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755 (exit $ac_status); } &&
6756 { ac_try='test -z "$ac_c_werror_flag"
6757 || test ! -s conftest.err'
6758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6759 (eval $ac_try) 2>&5
6760 ac_status=$?
6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); }; } &&
6763 { ac_try='test -s conftest$ac_exeext'
6764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6765 (eval $ac_try) 2>&5
6766 ac_status=$?
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); }; }; then
6769 ac_R_nospace=yes
6770 else
6771 echo "$as_me: failed program was:" >&5
6772 sed 's/^/| /' conftest.$ac_ext >&5
6774 ac_R_nospace=no
6776 rm -f conftest.err conftest.$ac_objext \
6777 conftest$ac_exeext conftest.$ac_ext
6778 if test $ac_R_nospace = yes; then
6779 echo "$as_me:$LINENO: result: no" >&5
6780 echo "${ECHO_T}no" >&6
6781 X_LIBS="$X_LIBS -R$x_libraries"
6782 else
6783 LIBS="$ac_xsave_LIBS -R $x_libraries"
6784 if test x$gcc_no_link = xyes; then
6785 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6786 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6787 { (exit 1); exit 1; }; }
6789 cat >conftest.$ac_ext <<_ACEOF
6790 /* confdefs.h. */
6791 _ACEOF
6792 cat confdefs.h >>conftest.$ac_ext
6793 cat >>conftest.$ac_ext <<_ACEOF
6794 /* end confdefs.h. */
6797 main ()
6801 return 0;
6803 _ACEOF
6804 rm -f conftest.$ac_objext conftest$ac_exeext
6805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6806 (eval $ac_link) 2>conftest.er1
6807 ac_status=$?
6808 grep -v '^ *+' conftest.er1 >conftest.err
6809 rm -f conftest.er1
6810 cat conftest.err >&5
6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); } &&
6813 { ac_try='test -z "$ac_c_werror_flag"
6814 || test ! -s conftest.err'
6815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6816 (eval $ac_try) 2>&5
6817 ac_status=$?
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); }; } &&
6820 { ac_try='test -s conftest$ac_exeext'
6821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6822 (eval $ac_try) 2>&5
6823 ac_status=$?
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); }; }; then
6826 ac_R_space=yes
6827 else
6828 echo "$as_me: failed program was:" >&5
6829 sed 's/^/| /' conftest.$ac_ext >&5
6831 ac_R_space=no
6833 rm -f conftest.err conftest.$ac_objext \
6834 conftest$ac_exeext conftest.$ac_ext
6835 if test $ac_R_space = yes; then
6836 echo "$as_me:$LINENO: result: yes" >&5
6837 echo "${ECHO_T}yes" >&6
6838 X_LIBS="$X_LIBS -R $x_libraries"
6839 else
6840 echo "$as_me:$LINENO: result: neither works" >&5
6841 echo "${ECHO_T}neither works" >&6
6844 LIBS=$ac_xsave_LIBS
6845 esac
6848 # Check for system-dependent libraries X programs must link with.
6849 # Do this before checking for the system-independent R6 libraries
6850 # (-lICE), since we may need -lsocket or whatever for X linking.
6852 if test "$ISC" = yes; then
6853 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6854 else
6855 # Martyn Johnson says this is needed for Ultrix, if the X
6856 # libraries were built with DECnet support. And Karl Berry says
6857 # the Alpha needs dnet_stub (dnet does not exist).
6858 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6859 if test x$gcc_no_link = xyes; then
6860 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6861 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6862 { (exit 1); exit 1; }; }
6864 cat >conftest.$ac_ext <<_ACEOF
6865 /* confdefs.h. */
6866 _ACEOF
6867 cat confdefs.h >>conftest.$ac_ext
6868 cat >>conftest.$ac_ext <<_ACEOF
6869 /* end confdefs.h. */
6871 /* Override any gcc2 internal prototype to avoid an error. */
6872 #ifdef __cplusplus
6873 extern "C"
6874 #endif
6875 /* We use char because int might match the return type of a gcc2
6876 builtin and then its argument prototype would still apply. */
6877 char XOpenDisplay ();
6879 main ()
6881 XOpenDisplay ();
6883 return 0;
6885 _ACEOF
6886 rm -f conftest.$ac_objext conftest$ac_exeext
6887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6888 (eval $ac_link) 2>conftest.er1
6889 ac_status=$?
6890 grep -v '^ *+' conftest.er1 >conftest.err
6891 rm -f conftest.er1
6892 cat conftest.err >&5
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); } &&
6895 { ac_try='test -z "$ac_c_werror_flag"
6896 || test ! -s conftest.err'
6897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6898 (eval $ac_try) 2>&5
6899 ac_status=$?
6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); }; } &&
6902 { ac_try='test -s conftest$ac_exeext'
6903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6904 (eval $ac_try) 2>&5
6905 ac_status=$?
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); }; }; then
6909 else
6910 echo "$as_me: failed program was:" >&5
6911 sed 's/^/| /' conftest.$ac_ext >&5
6913 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6914 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6915 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6916 echo $ECHO_N "(cached) $ECHO_C" >&6
6917 else
6918 ac_check_lib_save_LIBS=$LIBS
6919 LIBS="-ldnet $LIBS"
6920 if test x$gcc_no_link = xyes; then
6921 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6922 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6923 { (exit 1); exit 1; }; }
6925 cat >conftest.$ac_ext <<_ACEOF
6926 /* confdefs.h. */
6927 _ACEOF
6928 cat confdefs.h >>conftest.$ac_ext
6929 cat >>conftest.$ac_ext <<_ACEOF
6930 /* end confdefs.h. */
6932 /* Override any gcc2 internal prototype to avoid an error. */
6933 #ifdef __cplusplus
6934 extern "C"
6935 #endif
6936 /* We use char because int might match the return type of a gcc2
6937 builtin and then its argument prototype would still apply. */
6938 char dnet_ntoa ();
6940 main ()
6942 dnet_ntoa ();
6944 return 0;
6946 _ACEOF
6947 rm -f conftest.$ac_objext conftest$ac_exeext
6948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6949 (eval $ac_link) 2>conftest.er1
6950 ac_status=$?
6951 grep -v '^ *+' conftest.er1 >conftest.err
6952 rm -f conftest.er1
6953 cat conftest.err >&5
6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955 (exit $ac_status); } &&
6956 { ac_try='test -z "$ac_c_werror_flag"
6957 || test ! -s conftest.err'
6958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6959 (eval $ac_try) 2>&5
6960 ac_status=$?
6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); }; } &&
6963 { ac_try='test -s conftest$ac_exeext'
6964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6965 (eval $ac_try) 2>&5
6966 ac_status=$?
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); }; }; then
6969 ac_cv_lib_dnet_dnet_ntoa=yes
6970 else
6971 echo "$as_me: failed program was:" >&5
6972 sed 's/^/| /' conftest.$ac_ext >&5
6974 ac_cv_lib_dnet_dnet_ntoa=no
6976 rm -f conftest.err conftest.$ac_objext \
6977 conftest$ac_exeext conftest.$ac_ext
6978 LIBS=$ac_check_lib_save_LIBS
6980 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6981 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6982 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6983 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6986 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6987 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6988 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
6989 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6990 echo $ECHO_N "(cached) $ECHO_C" >&6
6991 else
6992 ac_check_lib_save_LIBS=$LIBS
6993 LIBS="-ldnet_stub $LIBS"
6994 if test x$gcc_no_link = xyes; then
6995 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6996 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6997 { (exit 1); exit 1; }; }
6999 cat >conftest.$ac_ext <<_ACEOF
7000 /* confdefs.h. */
7001 _ACEOF
7002 cat confdefs.h >>conftest.$ac_ext
7003 cat >>conftest.$ac_ext <<_ACEOF
7004 /* end confdefs.h. */
7006 /* Override any gcc2 internal prototype to avoid an error. */
7007 #ifdef __cplusplus
7008 extern "C"
7009 #endif
7010 /* We use char because int might match the return type of a gcc2
7011 builtin and then its argument prototype would still apply. */
7012 char dnet_ntoa ();
7014 main ()
7016 dnet_ntoa ();
7018 return 0;
7020 _ACEOF
7021 rm -f conftest.$ac_objext conftest$ac_exeext
7022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7023 (eval $ac_link) 2>conftest.er1
7024 ac_status=$?
7025 grep -v '^ *+' conftest.er1 >conftest.err
7026 rm -f conftest.er1
7027 cat conftest.err >&5
7028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); } &&
7030 { ac_try='test -z "$ac_c_werror_flag"
7031 || test ! -s conftest.err'
7032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7033 (eval $ac_try) 2>&5
7034 ac_status=$?
7035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036 (exit $ac_status); }; } &&
7037 { ac_try='test -s conftest$ac_exeext'
7038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7039 (eval $ac_try) 2>&5
7040 ac_status=$?
7041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042 (exit $ac_status); }; }; then
7043 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7044 else
7045 echo "$as_me: failed program was:" >&5
7046 sed 's/^/| /' conftest.$ac_ext >&5
7048 ac_cv_lib_dnet_stub_dnet_ntoa=no
7050 rm -f conftest.err conftest.$ac_objext \
7051 conftest$ac_exeext conftest.$ac_ext
7052 LIBS=$ac_check_lib_save_LIBS
7054 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7055 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7056 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7057 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7062 rm -f conftest.err conftest.$ac_objext \
7063 conftest$ac_exeext conftest.$ac_ext
7064 LIBS="$ac_xsave_LIBS"
7066 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7067 # to get the SysV transport functions.
7068 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7069 # needs -lnsl.
7070 # The nsl library prevents programs from opening the X display
7071 # on Irix 5.2, according to T.E. Dickey.
7072 # The functions gethostbyname, getservbyname, and inet_addr are
7073 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7074 echo "$as_me:$LINENO: checking for gethostbyname" >&5
7075 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7076 if test "${ac_cv_func_gethostbyname+set}" = set; then
7077 echo $ECHO_N "(cached) $ECHO_C" >&6
7078 else
7079 if test x$gcc_no_link = xyes; then
7080 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7081 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7082 { (exit 1); exit 1; }; }
7084 cat >conftest.$ac_ext <<_ACEOF
7085 /* confdefs.h. */
7086 _ACEOF
7087 cat confdefs.h >>conftest.$ac_ext
7088 cat >>conftest.$ac_ext <<_ACEOF
7089 /* end confdefs.h. */
7090 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
7091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7092 #define gethostbyname innocuous_gethostbyname
7094 /* System header to define __stub macros and hopefully few prototypes,
7095 which can conflict with char gethostbyname (); below.
7096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7097 <limits.h> exists even on freestanding compilers. */
7099 #ifdef __STDC__
7100 # include <limits.h>
7101 #else
7102 # include <assert.h>
7103 #endif
7105 #undef gethostbyname
7107 /* Override any gcc2 internal prototype to avoid an error. */
7108 #ifdef __cplusplus
7109 extern "C"
7111 #endif
7112 /* We use char because int might match the return type of a gcc2
7113 builtin and then its argument prototype would still apply. */
7114 char gethostbyname ();
7115 /* The GNU C library defines this for functions which it implements
7116 to always fail with ENOSYS. Some functions are actually named
7117 something starting with __ and the normal name is an alias. */
7118 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7119 choke me
7120 #else
7121 char (*f) () = gethostbyname;
7122 #endif
7123 #ifdef __cplusplus
7125 #endif
7128 main ()
7130 return f != gethostbyname;
7132 return 0;
7134 _ACEOF
7135 rm -f conftest.$ac_objext conftest$ac_exeext
7136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7137 (eval $ac_link) 2>conftest.er1
7138 ac_status=$?
7139 grep -v '^ *+' conftest.er1 >conftest.err
7140 rm -f conftest.er1
7141 cat conftest.err >&5
7142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143 (exit $ac_status); } &&
7144 { ac_try='test -z "$ac_c_werror_flag"
7145 || test ! -s conftest.err'
7146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7147 (eval $ac_try) 2>&5
7148 ac_status=$?
7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150 (exit $ac_status); }; } &&
7151 { ac_try='test -s conftest$ac_exeext'
7152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7153 (eval $ac_try) 2>&5
7154 ac_status=$?
7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 (exit $ac_status); }; }; then
7157 ac_cv_func_gethostbyname=yes
7158 else
7159 echo "$as_me: failed program was:" >&5
7160 sed 's/^/| /' conftest.$ac_ext >&5
7162 ac_cv_func_gethostbyname=no
7164 rm -f conftest.err conftest.$ac_objext \
7165 conftest$ac_exeext conftest.$ac_ext
7167 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7168 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7170 if test $ac_cv_func_gethostbyname = no; then
7171 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7172 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7173 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7174 echo $ECHO_N "(cached) $ECHO_C" >&6
7175 else
7176 ac_check_lib_save_LIBS=$LIBS
7177 LIBS="-lnsl $LIBS"
7178 if test x$gcc_no_link = xyes; then
7179 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7180 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7181 { (exit 1); exit 1; }; }
7183 cat >conftest.$ac_ext <<_ACEOF
7184 /* confdefs.h. */
7185 _ACEOF
7186 cat confdefs.h >>conftest.$ac_ext
7187 cat >>conftest.$ac_ext <<_ACEOF
7188 /* end confdefs.h. */
7190 /* Override any gcc2 internal prototype to avoid an error. */
7191 #ifdef __cplusplus
7192 extern "C"
7193 #endif
7194 /* We use char because int might match the return type of a gcc2
7195 builtin and then its argument prototype would still apply. */
7196 char gethostbyname ();
7198 main ()
7200 gethostbyname ();
7202 return 0;
7204 _ACEOF
7205 rm -f conftest.$ac_objext conftest$ac_exeext
7206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7207 (eval $ac_link) 2>conftest.er1
7208 ac_status=$?
7209 grep -v '^ *+' conftest.er1 >conftest.err
7210 rm -f conftest.er1
7211 cat conftest.err >&5
7212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213 (exit $ac_status); } &&
7214 { ac_try='test -z "$ac_c_werror_flag"
7215 || test ! -s conftest.err'
7216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7217 (eval $ac_try) 2>&5
7218 ac_status=$?
7219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220 (exit $ac_status); }; } &&
7221 { ac_try='test -s conftest$ac_exeext'
7222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7223 (eval $ac_try) 2>&5
7224 ac_status=$?
7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 (exit $ac_status); }; }; then
7227 ac_cv_lib_nsl_gethostbyname=yes
7228 else
7229 echo "$as_me: failed program was:" >&5
7230 sed 's/^/| /' conftest.$ac_ext >&5
7232 ac_cv_lib_nsl_gethostbyname=no
7234 rm -f conftest.err conftest.$ac_objext \
7235 conftest$ac_exeext conftest.$ac_ext
7236 LIBS=$ac_check_lib_save_LIBS
7238 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7239 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7240 if test $ac_cv_lib_nsl_gethostbyname = yes; then
7241 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7244 if test $ac_cv_lib_nsl_gethostbyname = no; then
7245 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7246 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
7247 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7248 echo $ECHO_N "(cached) $ECHO_C" >&6
7249 else
7250 ac_check_lib_save_LIBS=$LIBS
7251 LIBS="-lbsd $LIBS"
7252 if test x$gcc_no_link = xyes; then
7253 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7254 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7255 { (exit 1); exit 1; }; }
7257 cat >conftest.$ac_ext <<_ACEOF
7258 /* confdefs.h. */
7259 _ACEOF
7260 cat confdefs.h >>conftest.$ac_ext
7261 cat >>conftest.$ac_ext <<_ACEOF
7262 /* end confdefs.h. */
7264 /* Override any gcc2 internal prototype to avoid an error. */
7265 #ifdef __cplusplus
7266 extern "C"
7267 #endif
7268 /* We use char because int might match the return type of a gcc2
7269 builtin and then its argument prototype would still apply. */
7270 char gethostbyname ();
7272 main ()
7274 gethostbyname ();
7276 return 0;
7278 _ACEOF
7279 rm -f conftest.$ac_objext conftest$ac_exeext
7280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7281 (eval $ac_link) 2>conftest.er1
7282 ac_status=$?
7283 grep -v '^ *+' conftest.er1 >conftest.err
7284 rm -f conftest.er1
7285 cat conftest.err >&5
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); } &&
7288 { ac_try='test -z "$ac_c_werror_flag"
7289 || test ! -s conftest.err'
7290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7291 (eval $ac_try) 2>&5
7292 ac_status=$?
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); }; } &&
7295 { ac_try='test -s conftest$ac_exeext'
7296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7297 (eval $ac_try) 2>&5
7298 ac_status=$?
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); }; }; then
7301 ac_cv_lib_bsd_gethostbyname=yes
7302 else
7303 echo "$as_me: failed program was:" >&5
7304 sed 's/^/| /' conftest.$ac_ext >&5
7306 ac_cv_lib_bsd_gethostbyname=no
7308 rm -f conftest.err conftest.$ac_objext \
7309 conftest$ac_exeext conftest.$ac_ext
7310 LIBS=$ac_check_lib_save_LIBS
7312 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7313 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
7314 if test $ac_cv_lib_bsd_gethostbyname = yes; then
7315 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7321 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7322 # socket/setsockopt and other routines are undefined under SCO ODT
7323 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7324 # on later versions), says Simon Leinen: it contains gethostby*
7325 # variants that don't use the name server (or something). -lsocket
7326 # must be given before -lnsl if both are needed. We assume that
7327 # if connect needs -lnsl, so does gethostbyname.
7328 echo "$as_me:$LINENO: checking for connect" >&5
7329 echo $ECHO_N "checking for connect... $ECHO_C" >&6
7330 if test "${ac_cv_func_connect+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7332 else
7333 if test x$gcc_no_link = xyes; then
7334 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7335 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7336 { (exit 1); exit 1; }; }
7338 cat >conftest.$ac_ext <<_ACEOF
7339 /* confdefs.h. */
7340 _ACEOF
7341 cat confdefs.h >>conftest.$ac_ext
7342 cat >>conftest.$ac_ext <<_ACEOF
7343 /* end confdefs.h. */
7344 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7346 #define connect innocuous_connect
7348 /* System header to define __stub macros and hopefully few prototypes,
7349 which can conflict with char connect (); below.
7350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7351 <limits.h> exists even on freestanding compilers. */
7353 #ifdef __STDC__
7354 # include <limits.h>
7355 #else
7356 # include <assert.h>
7357 #endif
7359 #undef connect
7361 /* Override any gcc2 internal prototype to avoid an error. */
7362 #ifdef __cplusplus
7363 extern "C"
7365 #endif
7366 /* We use char because int might match the return type of a gcc2
7367 builtin and then its argument prototype would still apply. */
7368 char connect ();
7369 /* The GNU C library defines this for functions which it implements
7370 to always fail with ENOSYS. Some functions are actually named
7371 something starting with __ and the normal name is an alias. */
7372 #if defined (__stub_connect) || defined (__stub___connect)
7373 choke me
7374 #else
7375 char (*f) () = connect;
7376 #endif
7377 #ifdef __cplusplus
7379 #endif
7382 main ()
7384 return f != connect;
7386 return 0;
7388 _ACEOF
7389 rm -f conftest.$ac_objext conftest$ac_exeext
7390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7391 (eval $ac_link) 2>conftest.er1
7392 ac_status=$?
7393 grep -v '^ *+' conftest.er1 >conftest.err
7394 rm -f conftest.er1
7395 cat conftest.err >&5
7396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397 (exit $ac_status); } &&
7398 { ac_try='test -z "$ac_c_werror_flag"
7399 || test ! -s conftest.err'
7400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7401 (eval $ac_try) 2>&5
7402 ac_status=$?
7403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404 (exit $ac_status); }; } &&
7405 { ac_try='test -s conftest$ac_exeext'
7406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7407 (eval $ac_try) 2>&5
7408 ac_status=$?
7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410 (exit $ac_status); }; }; then
7411 ac_cv_func_connect=yes
7412 else
7413 echo "$as_me: failed program was:" >&5
7414 sed 's/^/| /' conftest.$ac_ext >&5
7416 ac_cv_func_connect=no
7418 rm -f conftest.err conftest.$ac_objext \
7419 conftest$ac_exeext conftest.$ac_ext
7421 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7422 echo "${ECHO_T}$ac_cv_func_connect" >&6
7424 if test $ac_cv_func_connect = no; then
7425 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7426 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
7427 if test "${ac_cv_lib_socket_connect+set}" = set; then
7428 echo $ECHO_N "(cached) $ECHO_C" >&6
7429 else
7430 ac_check_lib_save_LIBS=$LIBS
7431 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7432 if test x$gcc_no_link = xyes; then
7433 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7434 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7435 { (exit 1); exit 1; }; }
7437 cat >conftest.$ac_ext <<_ACEOF
7438 /* confdefs.h. */
7439 _ACEOF
7440 cat confdefs.h >>conftest.$ac_ext
7441 cat >>conftest.$ac_ext <<_ACEOF
7442 /* end confdefs.h. */
7444 /* Override any gcc2 internal prototype to avoid an error. */
7445 #ifdef __cplusplus
7446 extern "C"
7447 #endif
7448 /* We use char because int might match the return type of a gcc2
7449 builtin and then its argument prototype would still apply. */
7450 char connect ();
7452 main ()
7454 connect ();
7456 return 0;
7458 _ACEOF
7459 rm -f conftest.$ac_objext conftest$ac_exeext
7460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7461 (eval $ac_link) 2>conftest.er1
7462 ac_status=$?
7463 grep -v '^ *+' conftest.er1 >conftest.err
7464 rm -f conftest.er1
7465 cat conftest.err >&5
7466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); } &&
7468 { ac_try='test -z "$ac_c_werror_flag"
7469 || test ! -s conftest.err'
7470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7471 (eval $ac_try) 2>&5
7472 ac_status=$?
7473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474 (exit $ac_status); }; } &&
7475 { ac_try='test -s conftest$ac_exeext'
7476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7477 (eval $ac_try) 2>&5
7478 ac_status=$?
7479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); }; }; then
7481 ac_cv_lib_socket_connect=yes
7482 else
7483 echo "$as_me: failed program was:" >&5
7484 sed 's/^/| /' conftest.$ac_ext >&5
7486 ac_cv_lib_socket_connect=no
7488 rm -f conftest.err conftest.$ac_objext \
7489 conftest$ac_exeext conftest.$ac_ext
7490 LIBS=$ac_check_lib_save_LIBS
7492 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7493 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
7494 if test $ac_cv_lib_socket_connect = yes; then
7495 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7500 # Guillermo Gomez says -lposix is necessary on A/UX.
7501 echo "$as_me:$LINENO: checking for remove" >&5
7502 echo $ECHO_N "checking for remove... $ECHO_C" >&6
7503 if test "${ac_cv_func_remove+set}" = set; then
7504 echo $ECHO_N "(cached) $ECHO_C" >&6
7505 else
7506 if test x$gcc_no_link = xyes; then
7507 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7508 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7509 { (exit 1); exit 1; }; }
7511 cat >conftest.$ac_ext <<_ACEOF
7512 /* confdefs.h. */
7513 _ACEOF
7514 cat confdefs.h >>conftest.$ac_ext
7515 cat >>conftest.$ac_ext <<_ACEOF
7516 /* end confdefs.h. */
7517 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7518 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7519 #define remove innocuous_remove
7521 /* System header to define __stub macros and hopefully few prototypes,
7522 which can conflict with char remove (); below.
7523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7524 <limits.h> exists even on freestanding compilers. */
7526 #ifdef __STDC__
7527 # include <limits.h>
7528 #else
7529 # include <assert.h>
7530 #endif
7532 #undef remove
7534 /* Override any gcc2 internal prototype to avoid an error. */
7535 #ifdef __cplusplus
7536 extern "C"
7538 #endif
7539 /* We use char because int might match the return type of a gcc2
7540 builtin and then its argument prototype would still apply. */
7541 char remove ();
7542 /* The GNU C library defines this for functions which it implements
7543 to always fail with ENOSYS. Some functions are actually named
7544 something starting with __ and the normal name is an alias. */
7545 #if defined (__stub_remove) || defined (__stub___remove)
7546 choke me
7547 #else
7548 char (*f) () = remove;
7549 #endif
7550 #ifdef __cplusplus
7552 #endif
7555 main ()
7557 return f != remove;
7559 return 0;
7561 _ACEOF
7562 rm -f conftest.$ac_objext conftest$ac_exeext
7563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7564 (eval $ac_link) 2>conftest.er1
7565 ac_status=$?
7566 grep -v '^ *+' conftest.er1 >conftest.err
7567 rm -f conftest.er1
7568 cat conftest.err >&5
7569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); } &&
7571 { ac_try='test -z "$ac_c_werror_flag"
7572 || test ! -s conftest.err'
7573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7574 (eval $ac_try) 2>&5
7575 ac_status=$?
7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); }; } &&
7578 { ac_try='test -s conftest$ac_exeext'
7579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7580 (eval $ac_try) 2>&5
7581 ac_status=$?
7582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583 (exit $ac_status); }; }; then
7584 ac_cv_func_remove=yes
7585 else
7586 echo "$as_me: failed program was:" >&5
7587 sed 's/^/| /' conftest.$ac_ext >&5
7589 ac_cv_func_remove=no
7591 rm -f conftest.err conftest.$ac_objext \
7592 conftest$ac_exeext conftest.$ac_ext
7594 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7595 echo "${ECHO_T}$ac_cv_func_remove" >&6
7597 if test $ac_cv_func_remove = no; then
7598 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7599 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
7600 if test "${ac_cv_lib_posix_remove+set}" = set; then
7601 echo $ECHO_N "(cached) $ECHO_C" >&6
7602 else
7603 ac_check_lib_save_LIBS=$LIBS
7604 LIBS="-lposix $LIBS"
7605 if test x$gcc_no_link = xyes; then
7606 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7607 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7608 { (exit 1); exit 1; }; }
7610 cat >conftest.$ac_ext <<_ACEOF
7611 /* confdefs.h. */
7612 _ACEOF
7613 cat confdefs.h >>conftest.$ac_ext
7614 cat >>conftest.$ac_ext <<_ACEOF
7615 /* end confdefs.h. */
7617 /* Override any gcc2 internal prototype to avoid an error. */
7618 #ifdef __cplusplus
7619 extern "C"
7620 #endif
7621 /* We use char because int might match the return type of a gcc2
7622 builtin and then its argument prototype would still apply. */
7623 char remove ();
7625 main ()
7627 remove ();
7629 return 0;
7631 _ACEOF
7632 rm -f conftest.$ac_objext conftest$ac_exeext
7633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7634 (eval $ac_link) 2>conftest.er1
7635 ac_status=$?
7636 grep -v '^ *+' conftest.er1 >conftest.err
7637 rm -f conftest.er1
7638 cat conftest.err >&5
7639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); } &&
7641 { ac_try='test -z "$ac_c_werror_flag"
7642 || test ! -s conftest.err'
7643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7644 (eval $ac_try) 2>&5
7645 ac_status=$?
7646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647 (exit $ac_status); }; } &&
7648 { ac_try='test -s conftest$ac_exeext'
7649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7650 (eval $ac_try) 2>&5
7651 ac_status=$?
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); }; }; then
7654 ac_cv_lib_posix_remove=yes
7655 else
7656 echo "$as_me: failed program was:" >&5
7657 sed 's/^/| /' conftest.$ac_ext >&5
7659 ac_cv_lib_posix_remove=no
7661 rm -f conftest.err conftest.$ac_objext \
7662 conftest$ac_exeext conftest.$ac_ext
7663 LIBS=$ac_check_lib_save_LIBS
7665 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7666 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
7667 if test $ac_cv_lib_posix_remove = yes; then
7668 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7673 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7674 echo "$as_me:$LINENO: checking for shmat" >&5
7675 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
7676 if test "${ac_cv_func_shmat+set}" = set; then
7677 echo $ECHO_N "(cached) $ECHO_C" >&6
7678 else
7679 if test x$gcc_no_link = xyes; then
7680 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7681 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7682 { (exit 1); exit 1; }; }
7684 cat >conftest.$ac_ext <<_ACEOF
7685 /* confdefs.h. */
7686 _ACEOF
7687 cat confdefs.h >>conftest.$ac_ext
7688 cat >>conftest.$ac_ext <<_ACEOF
7689 /* end confdefs.h. */
7690 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7692 #define shmat innocuous_shmat
7694 /* System header to define __stub macros and hopefully few prototypes,
7695 which can conflict with char shmat (); below.
7696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7697 <limits.h> exists even on freestanding compilers. */
7699 #ifdef __STDC__
7700 # include <limits.h>
7701 #else
7702 # include <assert.h>
7703 #endif
7705 #undef shmat
7707 /* Override any gcc2 internal prototype to avoid an error. */
7708 #ifdef __cplusplus
7709 extern "C"
7711 #endif
7712 /* We use char because int might match the return type of a gcc2
7713 builtin and then its argument prototype would still apply. */
7714 char shmat ();
7715 /* The GNU C library defines this for functions which it implements
7716 to always fail with ENOSYS. Some functions are actually named
7717 something starting with __ and the normal name is an alias. */
7718 #if defined (__stub_shmat) || defined (__stub___shmat)
7719 choke me
7720 #else
7721 char (*f) () = shmat;
7722 #endif
7723 #ifdef __cplusplus
7725 #endif
7728 main ()
7730 return f != shmat;
7732 return 0;
7734 _ACEOF
7735 rm -f conftest.$ac_objext conftest$ac_exeext
7736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7737 (eval $ac_link) 2>conftest.er1
7738 ac_status=$?
7739 grep -v '^ *+' conftest.er1 >conftest.err
7740 rm -f conftest.er1
7741 cat conftest.err >&5
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); } &&
7744 { ac_try='test -z "$ac_c_werror_flag"
7745 || test ! -s conftest.err'
7746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7747 (eval $ac_try) 2>&5
7748 ac_status=$?
7749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750 (exit $ac_status); }; } &&
7751 { ac_try='test -s conftest$ac_exeext'
7752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7753 (eval $ac_try) 2>&5
7754 ac_status=$?
7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 (exit $ac_status); }; }; then
7757 ac_cv_func_shmat=yes
7758 else
7759 echo "$as_me: failed program was:" >&5
7760 sed 's/^/| /' conftest.$ac_ext >&5
7762 ac_cv_func_shmat=no
7764 rm -f conftest.err conftest.$ac_objext \
7765 conftest$ac_exeext conftest.$ac_ext
7767 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7768 echo "${ECHO_T}$ac_cv_func_shmat" >&6
7770 if test $ac_cv_func_shmat = no; then
7771 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7772 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
7773 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7774 echo $ECHO_N "(cached) $ECHO_C" >&6
7775 else
7776 ac_check_lib_save_LIBS=$LIBS
7777 LIBS="-lipc $LIBS"
7778 if test x$gcc_no_link = xyes; then
7779 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7780 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7781 { (exit 1); exit 1; }; }
7783 cat >conftest.$ac_ext <<_ACEOF
7784 /* confdefs.h. */
7785 _ACEOF
7786 cat confdefs.h >>conftest.$ac_ext
7787 cat >>conftest.$ac_ext <<_ACEOF
7788 /* end confdefs.h. */
7790 /* Override any gcc2 internal prototype to avoid an error. */
7791 #ifdef __cplusplus
7792 extern "C"
7793 #endif
7794 /* We use char because int might match the return type of a gcc2
7795 builtin and then its argument prototype would still apply. */
7796 char shmat ();
7798 main ()
7800 shmat ();
7802 return 0;
7804 _ACEOF
7805 rm -f conftest.$ac_objext conftest$ac_exeext
7806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7807 (eval $ac_link) 2>conftest.er1
7808 ac_status=$?
7809 grep -v '^ *+' conftest.er1 >conftest.err
7810 rm -f conftest.er1
7811 cat conftest.err >&5
7812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813 (exit $ac_status); } &&
7814 { ac_try='test -z "$ac_c_werror_flag"
7815 || test ! -s conftest.err'
7816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7817 (eval $ac_try) 2>&5
7818 ac_status=$?
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); }; } &&
7821 { ac_try='test -s conftest$ac_exeext'
7822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7823 (eval $ac_try) 2>&5
7824 ac_status=$?
7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); }; }; then
7827 ac_cv_lib_ipc_shmat=yes
7828 else
7829 echo "$as_me: failed program was:" >&5
7830 sed 's/^/| /' conftest.$ac_ext >&5
7832 ac_cv_lib_ipc_shmat=no
7834 rm -f conftest.err conftest.$ac_objext \
7835 conftest$ac_exeext conftest.$ac_ext
7836 LIBS=$ac_check_lib_save_LIBS
7838 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7839 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
7840 if test $ac_cv_lib_ipc_shmat = yes; then
7841 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7847 # Check for libraries that X11R6 Xt/Xaw programs need.
7848 ac_save_LDFLAGS=$LDFLAGS
7849 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7850 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7851 # check for ICE first), but we must link in the order -lSM -lICE or
7852 # we get undefined symbols. So assume we have SM if we have ICE.
7853 # These have to be linked with before -lX11, unlike the other
7854 # libraries we check for below, so use a different variable.
7855 # John Interrante, Karl Berry
7856 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7857 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
7858 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7859 echo $ECHO_N "(cached) $ECHO_C" >&6
7860 else
7861 ac_check_lib_save_LIBS=$LIBS
7862 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7863 if test x$gcc_no_link = xyes; then
7864 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7865 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7866 { (exit 1); exit 1; }; }
7868 cat >conftest.$ac_ext <<_ACEOF
7869 /* confdefs.h. */
7870 _ACEOF
7871 cat confdefs.h >>conftest.$ac_ext
7872 cat >>conftest.$ac_ext <<_ACEOF
7873 /* end confdefs.h. */
7875 /* Override any gcc2 internal prototype to avoid an error. */
7876 #ifdef __cplusplus
7877 extern "C"
7878 #endif
7879 /* We use char because int might match the return type of a gcc2
7880 builtin and then its argument prototype would still apply. */
7881 char IceConnectionNumber ();
7883 main ()
7885 IceConnectionNumber ();
7887 return 0;
7889 _ACEOF
7890 rm -f conftest.$ac_objext conftest$ac_exeext
7891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7892 (eval $ac_link) 2>conftest.er1
7893 ac_status=$?
7894 grep -v '^ *+' conftest.er1 >conftest.err
7895 rm -f conftest.er1
7896 cat conftest.err >&5
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); } &&
7899 { ac_try='test -z "$ac_c_werror_flag"
7900 || test ! -s conftest.err'
7901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7902 (eval $ac_try) 2>&5
7903 ac_status=$?
7904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905 (exit $ac_status); }; } &&
7906 { ac_try='test -s conftest$ac_exeext'
7907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7908 (eval $ac_try) 2>&5
7909 ac_status=$?
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); }; }; then
7912 ac_cv_lib_ICE_IceConnectionNumber=yes
7913 else
7914 echo "$as_me: failed program was:" >&5
7915 sed 's/^/| /' conftest.$ac_ext >&5
7917 ac_cv_lib_ICE_IceConnectionNumber=no
7919 rm -f conftest.err conftest.$ac_objext \
7920 conftest$ac_exeext conftest.$ac_ext
7921 LIBS=$ac_check_lib_save_LIBS
7923 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7924 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
7925 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7926 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7929 LDFLAGS=$ac_save_LDFLAGS
7934 # Determine which AWT peer libraries to build
7935 # Check whether --enable-java-awt or --disable-java-awt was given.
7936 if test "${enable_java_awt+set}" = set; then
7937 enableval="$enable_java_awt"
7941 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
7942 use_xlib_awt=""
7943 use_gtk_awt=""
7944 # The default toolkit to use is the first one specified.
7945 TOOLKIT=
7948 for peer in $peerlibs ; do
7949 case $peer in
7950 xlib)
7951 if test "$no_x" = yes; then
7952 echo "*** xlib peers requested but no X library available" 1>&2
7953 exit 1
7954 else
7955 use_xlib_awt="yes"
7956 if test -z "$TOOLKIT"; then
7957 TOOLKIT=gnu.awt.xlib.XToolkit
7961 gtk)
7962 if test "$no_x" = yes; then
7963 echo "*** xlib peers requested but no X library available" 1>&2
7964 exit 1
7965 else
7966 use_gtk_awt=yes
7967 if test -z "$TOOLKIT"; then
7968 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
7970 test -d jniinclude || mkdir jniinclude
7974 use_xlib_awt=
7975 use_gtk_awt=
7976 break
7979 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
7980 exit 1
7981 esac
7982 done
7986 if test "$use_xlib_awt" = yes; then
7987 XLIB_AWT_TRUE=
7988 XLIB_AWT_FALSE='#'
7989 else
7990 XLIB_AWT_TRUE='#'
7991 XLIB_AWT_FALSE=
7996 if test "$use_gtk_awt" = yes; then
7997 GTK_AWT_TRUE=
7998 GTK_AWT_FALSE='#'
7999 else
8000 GTK_AWT_TRUE='#'
8001 GTK_AWT_FALSE=
8005 # determine whether to enable the cairo GTK Graphics2D backend
8006 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
8007 if test "${enable_gtk_cairo+set}" = set; then
8008 enableval="$enable_gtk_cairo"
8013 if test "x${enable_gtk_cairo}" = xyes; then
8014 GTK_CAIRO_TRUE=
8015 GTK_CAIRO_FALSE='#'
8016 else
8017 GTK_CAIRO_TRUE='#'
8018 GTK_CAIRO_FALSE=
8021 if test "x${enable_gtk_cairo}" = xyes
8022 then
8024 succeeded=no
8026 if test -z "$PKG_CONFIG"; then
8027 # Extract the first word of "pkg-config", so it can be a program name with args.
8028 set dummy pkg-config; ac_word=$2
8029 echo "$as_me:$LINENO: checking for $ac_word" >&5
8030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8031 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8032 echo $ECHO_N "(cached) $ECHO_C" >&6
8033 else
8034 case $PKG_CONFIG in
8035 [\\/]* | ?:[\\/]*)
8036 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8040 for as_dir in $PATH
8042 IFS=$as_save_IFS
8043 test -z "$as_dir" && as_dir=.
8044 for ac_exec_ext in '' $ac_executable_extensions; do
8045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8046 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8048 break 2
8050 done
8051 done
8053 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8055 esac
8057 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8059 if test -n "$PKG_CONFIG"; then
8060 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8061 echo "${ECHO_T}$PKG_CONFIG" >&6
8062 else
8063 echo "$as_me:$LINENO: result: no" >&5
8064 echo "${ECHO_T}no" >&6
8069 if test "$PKG_CONFIG" = "no" ; then
8070 echo "*** The pkg-config script could not be found. Make sure it is"
8071 echo "*** in your path, or set the PKG_CONFIG environment variable"
8072 echo "*** to the full path to pkg-config."
8073 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8074 else
8075 PKG_CONFIG_MIN_VERSION=0.9.0
8076 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8077 echo "$as_me:$LINENO: checking for cairo" >&5
8078 echo $ECHO_N "checking for cairo... $ECHO_C" >&6
8080 if $PKG_CONFIG --exists "cairo" ; then
8081 echo "$as_me:$LINENO: result: yes" >&5
8082 echo "${ECHO_T}yes" >&6
8083 succeeded=yes
8085 echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
8086 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
8087 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo"`
8088 echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
8089 echo "${ECHO_T}$CAIRO_CFLAGS" >&6
8091 echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
8092 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
8093 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo"`
8094 echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
8095 echo "${ECHO_T}$CAIRO_LIBS" >&6
8096 else
8097 CAIRO_CFLAGS=""
8098 CAIRO_LIBS=""
8099 ## If we have a custom action on failure, don't print errors, but
8100 ## do set a variable so people can do so.
8101 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
8102 echo $CAIRO_PKG_ERRORS
8107 else
8108 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8109 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8113 if test $succeeded = yes; then
8115 else
8116 { { 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
8117 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;}
8118 { (exit 1); exit 1; }; }
8122 succeeded=no
8124 if test -z "$PKG_CONFIG"; then
8125 # Extract the first word of "pkg-config", so it can be a program name with args.
8126 set dummy pkg-config; ac_word=$2
8127 echo "$as_me:$LINENO: checking for $ac_word" >&5
8128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8129 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8130 echo $ECHO_N "(cached) $ECHO_C" >&6
8131 else
8132 case $PKG_CONFIG in
8133 [\\/]* | ?:[\\/]*)
8134 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8138 for as_dir in $PATH
8140 IFS=$as_save_IFS
8141 test -z "$as_dir" && as_dir=.
8142 for ac_exec_ext in '' $ac_executable_extensions; do
8143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8144 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8146 break 2
8148 done
8149 done
8151 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8153 esac
8155 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8157 if test -n "$PKG_CONFIG"; then
8158 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8159 echo "${ECHO_T}$PKG_CONFIG" >&6
8160 else
8161 echo "$as_me:$LINENO: result: no" >&5
8162 echo "${ECHO_T}no" >&6
8167 if test "$PKG_CONFIG" = "no" ; then
8168 echo "*** The pkg-config script could not be found. Make sure it is"
8169 echo "*** in your path, or set the PKG_CONFIG environment variable"
8170 echo "*** to the full path to pkg-config."
8171 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8172 else
8173 PKG_CONFIG_MIN_VERSION=0.9.0
8174 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8175 echo "$as_me:$LINENO: checking for pangoft2" >&5
8176 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
8178 if $PKG_CONFIG --exists "pangoft2" ; then
8179 echo "$as_me:$LINENO: result: yes" >&5
8180 echo "${ECHO_T}yes" >&6
8181 succeeded=yes
8183 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
8184 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
8185 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
8186 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
8187 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
8189 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
8190 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
8191 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
8192 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
8193 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
8194 else
8195 PANGOFT2_CFLAGS=""
8196 PANGOFT2_LIBS=""
8197 ## If we have a custom action on failure, don't print errors, but
8198 ## do set a variable so people can do so.
8199 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
8200 echo $PANGOFT2_PKG_ERRORS
8205 else
8206 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8207 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8211 if test $succeeded = yes; then
8213 else
8214 { { 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
8215 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;}
8216 { (exit 1); exit 1; }; }
8225 # FIXME: this should be _libs on some hosts.
8226 libsubdir=.libs
8228 # Allow the GC to be disabled. Can be useful when debugging.
8229 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
8230 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
8231 # Check whether --enable-java-gc or --disable-java-gc was given.
8232 if test "${enable_java_gc+set}" = set; then
8233 enableval="$enable_java_gc"
8234 GC=$enableval
8235 else
8236 GC=boehm
8238 GCLIBS=
8239 GCINCS=
8240 GCDEPS=
8241 GCSPEC=
8242 JC1GCSPEC=
8243 GCTESTSPEC=
8244 case "$GC" in
8245 boehm)
8246 echo "$as_me:$LINENO: result: boehm" >&5
8247 echo "${ECHO_T}boehm" >&6
8248 GCLIBS=../boehm-gc/libgcjgc_convenience.la
8249 JC1GCSPEC='-fuse-boehm-gc'
8250 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
8251 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
8252 GCOBJS=boehm.lo
8253 GCHDR=boehm-gc.h
8254 # The POSIX thread support needs to know this.
8256 cat >>confdefs.h <<\_ACEOF
8257 #define HAVE_BOEHM_GC 1
8258 _ACEOF
8262 echo "$as_me:$LINENO: result: none" >&5
8263 echo "${ECHO_T}none" >&6
8264 GCHDR=no-gc.h
8267 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
8268 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
8269 { (exit 1); exit 1; }; }
8271 esac
8278 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
8282 if test "$GC" = boehm; then
8283 USING_BOEHMGC_TRUE=
8284 USING_BOEHMGC_FALSE='#'
8285 else
8286 USING_BOEHMGC_TRUE='#'
8287 USING_BOEHMGC_FALSE=
8292 if test "$GC" = no; then
8293 USING_NOGC_TRUE=
8294 USING_NOGC_FALSE='#'
8295 else
8296 USING_NOGC_TRUE='#'
8297 USING_NOGC_FALSE=
8302 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
8303 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
8304 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
8305 echo "$as_me:$LINENO: result: $THREADS" >&5
8306 echo "${ECHO_T}$THREADS" >&6
8308 case "$THREADS" in
8309 no | none | single)
8310 THREADS=none
8312 posix | posix95 | pthreads)
8313 THREADS=posix
8314 case "$host" in
8315 *-*-linux*)
8317 cat >>confdefs.h <<\_ACEOF
8318 #define LINUX_THREADS 1
8319 _ACEOF
8322 esac
8324 win32)
8326 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
8327 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
8328 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
8329 { (exit 1); exit 1; }; }
8332 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
8333 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
8334 { (exit 1); exit 1; }; }
8336 esac
8338 THREADCXXFLAGS=
8339 THREADLDFLAGS=
8340 THREADLIBS=
8341 THREADINCS=
8342 THREADDEPS=
8343 THREADH=
8344 THREADSPEC=
8345 case "$THREADS" in
8346 posix)
8347 case "$host" in
8348 *-*-cygwin*)
8349 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
8351 *-*-freebsd[1234]*)
8352 # Before FreeBSD 5, it didn't have -lpthread (or any library which
8353 # merely adds pthread_* functions) but it does have a -pthread switch
8354 # which is required at link-time to select -lc_r *instead* of -lc.
8355 THREADLDFLAGS=-pthread
8356 # Don't set THREADSPEC here as might be expected since -pthread is
8357 # not processed when found within a spec file, it must come from
8358 # the command line. For now, the user must provide the -pthread
8359 # switch to link code compiled with gcj. In future, consider adding
8360 # support for weak references to pthread_* functions ala gthr.h API.
8361 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
8363 *-*-freebsd*)
8364 # FreeBSD 5 implements a model much closer to other modern UNIX
8365 # which support threads. However, it still does not support
8366 # -lpthread.
8367 THREADLDFLAGS=-pthread
8368 THREADSPEC=-lc_r
8370 alpha*-dec-osf*)
8371 THREADCXXFLAGS=-pthread
8372 # boehm-gc needs some functions from librt, so link that too.
8373 THREADLIBS='-lpthread -lrt'
8374 THREADSPEC='-lpthread -lrt'
8377 THREADLIBS=-lpthread
8378 THREADSPEC=-lpthread
8380 esac
8381 THREADH=posix-threads.h
8382 # MIT pthreads doesn't seem to have the mutexattr functions.
8383 # But for now we don't check for it. We just assume you aren't
8384 # using MIT pthreads.
8386 cat >>confdefs.h <<\_ACEOF
8387 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8388 _ACEOF
8391 # If we're using the Boehm GC, then we happen to know that it
8392 # defines _REENTRANT, so we don't bother. Eww.
8393 if test "$GC" != boehm; then
8395 cat >>confdefs.h <<\_ACEOF
8396 #define _REENTRANT 1
8397 _ACEOF
8401 cat >>confdefs.h <<\_ACEOF
8402 #define _POSIX_PTHREAD_SEMANTICS 1
8403 _ACEOF
8407 win32)
8408 THREADH=win32-threads.h
8411 none)
8412 THREADH=no-threads.h
8414 esac
8415 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
8425 if test "$THREADS" = posix; then
8426 USING_POSIX_THREADS_TRUE=
8427 USING_POSIX_THREADS_FALSE='#'
8428 else
8429 USING_POSIX_THREADS_TRUE='#'
8430 USING_POSIX_THREADS_FALSE=
8435 if test "$THREADS" = win32; then
8436 USING_WIN32_THREADS_TRUE=
8437 USING_WIN32_THREADS_FALSE='#'
8438 else
8439 USING_WIN32_THREADS_TRUE='#'
8440 USING_WIN32_THREADS_FALSE=
8445 if test "$THREADS" = none; then
8446 USING_NO_THREADS_TRUE=
8447 USING_NO_THREADS_FALSE='#'
8448 else
8449 USING_NO_THREADS_TRUE='#'
8450 USING_NO_THREADS_FALSE=
8454 if test -d sysdep; then true; else mkdir sysdep; fi
8455 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
8457 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
8460 HASH_SYNC_SPEC=
8461 # Hash synchronization is only useful with posix threads right now.
8462 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
8463 HASH_SYNC_SPEC=-fhash-synchronization
8465 cat >>confdefs.h <<\_ACEOF
8466 #define JV_HASH_SYNCHRONIZATION 1
8467 _ACEOF
8475 if test "$GCC" = yes; then
8476 USING_GCC_TRUE=
8477 USING_GCC_FALSE='#'
8478 else
8479 USING_GCC_TRUE='#'
8480 USING_GCC_FALSE=
8484 # We're in the tree with gcc, and need to include some of its headers.
8485 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
8488 if test "${with_gcc_version_trigger+set}" = set; then
8489 gcc_version_trigger=$with_gcc_version_trigger
8490 else
8491 gcc_version_trigger=$srcdir/../gcc/version.c
8493 if test -f "${gcc_version_trigger}"; then
8494 gcc_version_full=`grep version_string "${gcc_version_trigger}" | sed -e 's/.*"\([^"]*\)".*/\1/'`
8495 else
8496 gcc_version_full=`$CC -v 2>&1 | sed -n 's/^gcc version //p'`
8498 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
8504 # Figure out where generated headers like libgcj-config.h get installed.
8505 tool_include_dir='$(libdir)/gcc/$(target_noncanonical)/'${gcc_version}/include
8508 if test "x${with_newlib}" = "xyes"; then
8509 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
8510 # may not work correctly, because the compiler may not be able to
8511 # link executables.
8513 # We assume newlib. This lets us hard-code the functions we know
8514 # we'll have.
8516 cat >>confdefs.h <<\_ACEOF
8517 #define HAVE_MEMMOVE 1
8518 _ACEOF
8521 cat >>confdefs.h <<\_ACEOF
8522 #define HAVE_MEMCPY 1
8523 _ACEOF
8526 cat >>confdefs.h <<\_ACEOF
8527 #define HAVE_STRERROR 1
8528 _ACEOF
8531 cat >>confdefs.h <<\_ACEOF
8532 #define HAVE_TIME 1
8533 _ACEOF
8536 cat >>confdefs.h <<\_ACEOF
8537 #define HAVE_GMTIME_R 1
8538 _ACEOF
8541 cat >>confdefs.h <<\_ACEOF
8542 #define HAVE_LOCALTIME_R 1
8543 _ACEOF
8546 cat >>confdefs.h <<\_ACEOF
8547 #define HAVE_USLEEP_DECL 1
8548 _ACEOF
8550 # This is only for POSIX threads.
8552 cat >>confdefs.h <<\_ACEOF
8553 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8554 _ACEOF
8556 # We also assume we are using gcc, which provides alloca.
8557 cat >>confdefs.h <<\_ACEOF
8558 #define HAVE_ALLOCA 1
8559 _ACEOF
8562 # Assume we do not have getuid and friends.
8564 cat >>confdefs.h <<\_ACEOF
8565 #define NO_GETUID 1
8566 _ACEOF
8568 PLATFORMNET=NoNet
8569 else
8602 for ac_func in strerror ioctl select fstat open fsync sleep opendir \
8603 gmtime_r localtime_r readdir_r getpwuid_r getcwd \
8604 access stat mkdir rename rmdir unlink realpath utime chmod \
8605 nl_langinfo setlocale \
8606 inet_pton uname inet_ntoa \
8607 fork execvp pipe sigaction ftruncate
8609 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8610 echo "$as_me:$LINENO: checking for $ac_func" >&5
8611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8612 if eval "test \"\${$as_ac_var+set}\" = set"; then
8613 echo $ECHO_N "(cached) $ECHO_C" >&6
8614 else
8615 if test x$gcc_no_link = xyes; then
8616 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8617 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8618 { (exit 1); exit 1; }; }
8620 cat >conftest.$ac_ext <<_ACEOF
8621 /* confdefs.h. */
8622 _ACEOF
8623 cat confdefs.h >>conftest.$ac_ext
8624 cat >>conftest.$ac_ext <<_ACEOF
8625 /* end confdefs.h. */
8626 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8628 #define $ac_func innocuous_$ac_func
8630 /* System header to define __stub macros and hopefully few prototypes,
8631 which can conflict with char $ac_func (); below.
8632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8633 <limits.h> exists even on freestanding compilers. */
8635 #ifdef __STDC__
8636 # include <limits.h>
8637 #else
8638 # include <assert.h>
8639 #endif
8641 #undef $ac_func
8643 /* Override any gcc2 internal prototype to avoid an error. */
8644 #ifdef __cplusplus
8645 extern "C"
8647 #endif
8648 /* We use char because int might match the return type of a gcc2
8649 builtin and then its argument prototype would still apply. */
8650 char $ac_func ();
8651 /* The GNU C library defines this for functions which it implements
8652 to always fail with ENOSYS. Some functions are actually named
8653 something starting with __ and the normal name is an alias. */
8654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8655 choke me
8656 #else
8657 char (*f) () = $ac_func;
8658 #endif
8659 #ifdef __cplusplus
8661 #endif
8664 main ()
8666 return f != $ac_func;
8668 return 0;
8670 _ACEOF
8671 rm -f conftest.$ac_objext conftest$ac_exeext
8672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8673 (eval $ac_link) 2>conftest.er1
8674 ac_status=$?
8675 grep -v '^ *+' conftest.er1 >conftest.err
8676 rm -f conftest.er1
8677 cat conftest.err >&5
8678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679 (exit $ac_status); } &&
8680 { ac_try='test -z "$ac_c_werror_flag"
8681 || test ! -s conftest.err'
8682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8683 (eval $ac_try) 2>&5
8684 ac_status=$?
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); }; } &&
8687 { ac_try='test -s conftest$ac_exeext'
8688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8689 (eval $ac_try) 2>&5
8690 ac_status=$?
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); }; }; then
8693 eval "$as_ac_var=yes"
8694 else
8695 echo "$as_me: failed program was:" >&5
8696 sed 's/^/| /' conftest.$ac_ext >&5
8698 eval "$as_ac_var=no"
8700 rm -f conftest.err conftest.$ac_objext \
8701 conftest$ac_exeext conftest.$ac_ext
8703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8704 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8705 if test `eval echo '${'$as_ac_var'}'` = yes; then
8706 cat >>confdefs.h <<_ACEOF
8707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8708 _ACEOF
8711 done
8715 for ac_func in inet_aton inet_addr
8717 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8718 echo "$as_me:$LINENO: checking for $ac_func" >&5
8719 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8720 if eval "test \"\${$as_ac_var+set}\" = set"; then
8721 echo $ECHO_N "(cached) $ECHO_C" >&6
8722 else
8723 if test x$gcc_no_link = xyes; then
8724 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8725 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8726 { (exit 1); exit 1; }; }
8728 cat >conftest.$ac_ext <<_ACEOF
8729 /* confdefs.h. */
8730 _ACEOF
8731 cat confdefs.h >>conftest.$ac_ext
8732 cat >>conftest.$ac_ext <<_ACEOF
8733 /* end confdefs.h. */
8734 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8736 #define $ac_func innocuous_$ac_func
8738 /* System header to define __stub macros and hopefully few prototypes,
8739 which can conflict with char $ac_func (); below.
8740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8741 <limits.h> exists even on freestanding compilers. */
8743 #ifdef __STDC__
8744 # include <limits.h>
8745 #else
8746 # include <assert.h>
8747 #endif
8749 #undef $ac_func
8751 /* Override any gcc2 internal prototype to avoid an error. */
8752 #ifdef __cplusplus
8753 extern "C"
8755 #endif
8756 /* We use char because int might match the return type of a gcc2
8757 builtin and then its argument prototype would still apply. */
8758 char $ac_func ();
8759 /* The GNU C library defines this for functions which it implements
8760 to always fail with ENOSYS. Some functions are actually named
8761 something starting with __ and the normal name is an alias. */
8762 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8763 choke me
8764 #else
8765 char (*f) () = $ac_func;
8766 #endif
8767 #ifdef __cplusplus
8769 #endif
8772 main ()
8774 return f != $ac_func;
8776 return 0;
8778 _ACEOF
8779 rm -f conftest.$ac_objext conftest$ac_exeext
8780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8781 (eval $ac_link) 2>conftest.er1
8782 ac_status=$?
8783 grep -v '^ *+' conftest.er1 >conftest.err
8784 rm -f conftest.er1
8785 cat conftest.err >&5
8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 (exit $ac_status); } &&
8788 { ac_try='test -z "$ac_c_werror_flag"
8789 || test ! -s conftest.err'
8790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8791 (eval $ac_try) 2>&5
8792 ac_status=$?
8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); }; } &&
8795 { ac_try='test -s conftest$ac_exeext'
8796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8797 (eval $ac_try) 2>&5
8798 ac_status=$?
8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800 (exit $ac_status); }; }; then
8801 eval "$as_ac_var=yes"
8802 else
8803 echo "$as_me: failed program was:" >&5
8804 sed 's/^/| /' conftest.$ac_ext >&5
8806 eval "$as_ac_var=no"
8808 rm -f conftest.err conftest.$ac_objext \
8809 conftest$ac_exeext conftest.$ac_ext
8811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8812 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8813 if test `eval echo '${'$as_ac_var'}'` = yes; then
8814 cat >>confdefs.h <<_ACEOF
8815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8816 _ACEOF
8817 break
8819 done
8821 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8822 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8823 if test "${ac_cv_header_stdc+set}" = set; then
8824 echo $ECHO_N "(cached) $ECHO_C" >&6
8825 else
8826 cat >conftest.$ac_ext <<_ACEOF
8827 /* confdefs.h. */
8828 _ACEOF
8829 cat confdefs.h >>conftest.$ac_ext
8830 cat >>conftest.$ac_ext <<_ACEOF
8831 /* end confdefs.h. */
8832 #include <stdlib.h>
8833 #include <stdarg.h>
8834 #include <string.h>
8835 #include <float.h>
8838 main ()
8842 return 0;
8844 _ACEOF
8845 rm -f conftest.$ac_objext
8846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8847 (eval $ac_compile) 2>conftest.er1
8848 ac_status=$?
8849 grep -v '^ *+' conftest.er1 >conftest.err
8850 rm -f conftest.er1
8851 cat conftest.err >&5
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); } &&
8854 { ac_try='test -z "$ac_c_werror_flag"
8855 || test ! -s conftest.err'
8856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8857 (eval $ac_try) 2>&5
8858 ac_status=$?
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); }; } &&
8861 { ac_try='test -s conftest.$ac_objext'
8862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8863 (eval $ac_try) 2>&5
8864 ac_status=$?
8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 (exit $ac_status); }; }; then
8867 ac_cv_header_stdc=yes
8868 else
8869 echo "$as_me: failed program was:" >&5
8870 sed 's/^/| /' conftest.$ac_ext >&5
8872 ac_cv_header_stdc=no
8874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8876 if test $ac_cv_header_stdc = yes; then
8877 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8878 cat >conftest.$ac_ext <<_ACEOF
8879 /* confdefs.h. */
8880 _ACEOF
8881 cat confdefs.h >>conftest.$ac_ext
8882 cat >>conftest.$ac_ext <<_ACEOF
8883 /* end confdefs.h. */
8884 #include <string.h>
8886 _ACEOF
8887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8888 $EGREP "memchr" >/dev/null 2>&1; then
8890 else
8891 ac_cv_header_stdc=no
8893 rm -f conftest*
8897 if test $ac_cv_header_stdc = yes; then
8898 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8899 cat >conftest.$ac_ext <<_ACEOF
8900 /* confdefs.h. */
8901 _ACEOF
8902 cat confdefs.h >>conftest.$ac_ext
8903 cat >>conftest.$ac_ext <<_ACEOF
8904 /* end confdefs.h. */
8905 #include <stdlib.h>
8907 _ACEOF
8908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8909 $EGREP "free" >/dev/null 2>&1; then
8911 else
8912 ac_cv_header_stdc=no
8914 rm -f conftest*
8918 if test $ac_cv_header_stdc = yes; then
8919 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8920 if test "$cross_compiling" = yes; then
8922 else
8923 cat >conftest.$ac_ext <<_ACEOF
8924 /* confdefs.h. */
8925 _ACEOF
8926 cat confdefs.h >>conftest.$ac_ext
8927 cat >>conftest.$ac_ext <<_ACEOF
8928 /* end confdefs.h. */
8929 #include <ctype.h>
8930 #if ((' ' & 0x0FF) == 0x020)
8931 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8932 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8933 #else
8934 # define ISLOWER(c) \
8935 (('a' <= (c) && (c) <= 'i') \
8936 || ('j' <= (c) && (c) <= 'r') \
8937 || ('s' <= (c) && (c) <= 'z'))
8938 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8939 #endif
8941 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8943 main ()
8945 int i;
8946 for (i = 0; i < 256; i++)
8947 if (XOR (islower (i), ISLOWER (i))
8948 || toupper (i) != TOUPPER (i))
8949 exit(2);
8950 exit (0);
8952 _ACEOF
8953 rm -f conftest$ac_exeext
8954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8955 (eval $ac_link) 2>&5
8956 ac_status=$?
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8960 (eval $ac_try) 2>&5
8961 ac_status=$?
8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 (exit $ac_status); }; }; then
8965 else
8966 echo "$as_me: program exited with status $ac_status" >&5
8967 echo "$as_me: failed program was:" >&5
8968 sed 's/^/| /' conftest.$ac_ext >&5
8970 ( exit $ac_status )
8971 ac_cv_header_stdc=no
8973 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8977 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8978 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8979 if test $ac_cv_header_stdc = yes; then
8981 cat >>confdefs.h <<\_ACEOF
8982 #define STDC_HEADERS 1
8983 _ACEOF
8987 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8997 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8998 inttypes.h stdint.h unistd.h
9000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9001 echo "$as_me:$LINENO: checking for $ac_header" >&5
9002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9004 echo $ECHO_N "(cached) $ECHO_C" >&6
9005 else
9006 cat >conftest.$ac_ext <<_ACEOF
9007 /* confdefs.h. */
9008 _ACEOF
9009 cat confdefs.h >>conftest.$ac_ext
9010 cat >>conftest.$ac_ext <<_ACEOF
9011 /* end confdefs.h. */
9012 $ac_includes_default
9014 #include <$ac_header>
9015 _ACEOF
9016 rm -f conftest.$ac_objext
9017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9018 (eval $ac_compile) 2>conftest.er1
9019 ac_status=$?
9020 grep -v '^ *+' conftest.er1 >conftest.err
9021 rm -f conftest.er1
9022 cat conftest.err >&5
9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 (exit $ac_status); } &&
9025 { ac_try='test -z "$ac_c_werror_flag"
9026 || test ! -s conftest.err'
9027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9028 (eval $ac_try) 2>&5
9029 ac_status=$?
9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 (exit $ac_status); }; } &&
9032 { ac_try='test -s conftest.$ac_objext'
9033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9034 (eval $ac_try) 2>&5
9035 ac_status=$?
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 (exit $ac_status); }; }; then
9038 eval "$as_ac_Header=yes"
9039 else
9040 echo "$as_me: failed program was:" >&5
9041 sed 's/^/| /' conftest.$ac_ext >&5
9043 eval "$as_ac_Header=no"
9045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9050 cat >>confdefs.h <<_ACEOF
9051 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9052 _ACEOF
9056 done
9062 for ac_header in execinfo.h unistd.h dlfcn.h
9064 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9066 echo "$as_me:$LINENO: checking for $ac_header" >&5
9067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9069 echo $ECHO_N "(cached) $ECHO_C" >&6
9071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9073 else
9074 # Is the header compilable?
9075 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9076 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9077 cat >conftest.$ac_ext <<_ACEOF
9078 /* confdefs.h. */
9079 _ACEOF
9080 cat confdefs.h >>conftest.$ac_ext
9081 cat >>conftest.$ac_ext <<_ACEOF
9082 /* end confdefs.h. */
9083 $ac_includes_default
9084 #include <$ac_header>
9085 _ACEOF
9086 rm -f conftest.$ac_objext
9087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9088 (eval $ac_compile) 2>conftest.er1
9089 ac_status=$?
9090 grep -v '^ *+' conftest.er1 >conftest.err
9091 rm -f conftest.er1
9092 cat conftest.err >&5
9093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094 (exit $ac_status); } &&
9095 { ac_try='test -z "$ac_c_werror_flag"
9096 || test ! -s conftest.err'
9097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9098 (eval $ac_try) 2>&5
9099 ac_status=$?
9100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 (exit $ac_status); }; } &&
9102 { ac_try='test -s conftest.$ac_objext'
9103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9104 (eval $ac_try) 2>&5
9105 ac_status=$?
9106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107 (exit $ac_status); }; }; then
9108 ac_header_compiler=yes
9109 else
9110 echo "$as_me: failed program was:" >&5
9111 sed 's/^/| /' conftest.$ac_ext >&5
9113 ac_header_compiler=no
9115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9116 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9117 echo "${ECHO_T}$ac_header_compiler" >&6
9119 # Is the header present?
9120 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9121 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9122 cat >conftest.$ac_ext <<_ACEOF
9123 /* confdefs.h. */
9124 _ACEOF
9125 cat confdefs.h >>conftest.$ac_ext
9126 cat >>conftest.$ac_ext <<_ACEOF
9127 /* end confdefs.h. */
9128 #include <$ac_header>
9129 _ACEOF
9130 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9131 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9132 ac_status=$?
9133 grep -v '^ *+' conftest.er1 >conftest.err
9134 rm -f conftest.er1
9135 cat conftest.err >&5
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); } >/dev/null; then
9138 if test -s conftest.err; then
9139 ac_cpp_err=$ac_c_preproc_warn_flag
9140 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9141 else
9142 ac_cpp_err=
9144 else
9145 ac_cpp_err=yes
9147 if test -z "$ac_cpp_err"; then
9148 ac_header_preproc=yes
9149 else
9150 echo "$as_me: failed program was:" >&5
9151 sed 's/^/| /' conftest.$ac_ext >&5
9153 ac_header_preproc=no
9155 rm -f conftest.err conftest.$ac_ext
9156 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9157 echo "${ECHO_T}$ac_header_preproc" >&6
9159 # So? What about this header?
9160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9161 yes:no: )
9162 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9163 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9165 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9166 ac_header_preproc=yes
9168 no:yes:* )
9169 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9170 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9171 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9172 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9173 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9174 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9175 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9176 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9179 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9180 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9182 cat <<\_ASBOX
9183 ## ---------------------------------- ##
9184 ## Report this to the libjava lists. ##
9185 ## ---------------------------------- ##
9186 _ASBOX
9188 sed "s/^/$as_me: WARNING: /" >&2
9190 esac
9191 echo "$as_me:$LINENO: checking for $ac_header" >&5
9192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9194 echo $ECHO_N "(cached) $ECHO_C" >&6
9195 else
9196 eval "$as_ac_Header=\$ac_header_preproc"
9198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9203 cat >>confdefs.h <<_ACEOF
9204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9205 _ACEOF
9209 done
9211 echo "$as_me:$LINENO: checking for backtrace" >&5
9212 echo $ECHO_N "checking for backtrace... $ECHO_C" >&6
9213 if test "${ac_cv_func_backtrace+set}" = set; then
9214 echo $ECHO_N "(cached) $ECHO_C" >&6
9215 else
9216 if test x$gcc_no_link = xyes; then
9217 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9218 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9219 { (exit 1); exit 1; }; }
9221 cat >conftest.$ac_ext <<_ACEOF
9222 /* confdefs.h. */
9223 _ACEOF
9224 cat confdefs.h >>conftest.$ac_ext
9225 cat >>conftest.$ac_ext <<_ACEOF
9226 /* end confdefs.h. */
9227 /* Define backtrace to an innocuous variant, in case <limits.h> declares backtrace.
9228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9229 #define backtrace innocuous_backtrace
9231 /* System header to define __stub macros and hopefully few prototypes,
9232 which can conflict with char backtrace (); below.
9233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9234 <limits.h> exists even on freestanding compilers. */
9236 #ifdef __STDC__
9237 # include <limits.h>
9238 #else
9239 # include <assert.h>
9240 #endif
9242 #undef backtrace
9244 /* Override any gcc2 internal prototype to avoid an error. */
9245 #ifdef __cplusplus
9246 extern "C"
9248 #endif
9249 /* We use char because int might match the return type of a gcc2
9250 builtin and then its argument prototype would still apply. */
9251 char backtrace ();
9252 /* The GNU C library defines this for functions which it implements
9253 to always fail with ENOSYS. Some functions are actually named
9254 something starting with __ and the normal name is an alias. */
9255 #if defined (__stub_backtrace) || defined (__stub___backtrace)
9256 choke me
9257 #else
9258 char (*f) () = backtrace;
9259 #endif
9260 #ifdef __cplusplus
9262 #endif
9265 main ()
9267 return f != backtrace;
9269 return 0;
9271 _ACEOF
9272 rm -f conftest.$ac_objext conftest$ac_exeext
9273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9274 (eval $ac_link) 2>conftest.er1
9275 ac_status=$?
9276 grep -v '^ *+' conftest.er1 >conftest.err
9277 rm -f conftest.er1
9278 cat conftest.err >&5
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 (exit $ac_status); } &&
9281 { ac_try='test -z "$ac_c_werror_flag"
9282 || test ! -s conftest.err'
9283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9284 (eval $ac_try) 2>&5
9285 ac_status=$?
9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 (exit $ac_status); }; } &&
9288 { ac_try='test -s conftest$ac_exeext'
9289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9290 (eval $ac_try) 2>&5
9291 ac_status=$?
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); }; }; then
9294 ac_cv_func_backtrace=yes
9295 else
9296 echo "$as_me: failed program was:" >&5
9297 sed 's/^/| /' conftest.$ac_ext >&5
9299 ac_cv_func_backtrace=no
9301 rm -f conftest.err conftest.$ac_objext \
9302 conftest$ac_exeext conftest.$ac_ext
9304 echo "$as_me:$LINENO: result: $ac_cv_func_backtrace" >&5
9305 echo "${ECHO_T}$ac_cv_func_backtrace" >&6
9306 if test $ac_cv_func_backtrace = yes; then
9308 case "$host" in
9309 ia64-*-linux*)
9310 # Has broken backtrace()
9312 mips*-*-linux*)
9313 # Has broken backtrace(), but we supply our own.
9314 if test -d sysdep; then true; else mkdir -p sysdep; fi
9315 supply_backtrace=yes
9317 cat >>confdefs.h <<\_ACEOF
9318 #define HAVE_BACKTRACE 1
9319 _ACEOF
9324 cat >>confdefs.h <<\_ACEOF
9325 #define HAVE_BACKTRACE 1
9326 _ACEOF
9329 esac
9331 else
9333 case "$host" in
9334 *mingw*)
9335 # Has backtrace() defined in libgcj itself
9337 cat >>confdefs.h <<\_ACEOF
9338 #define HAVE_BACKTRACE 1
9339 _ACEOF
9342 esac
9347 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
9348 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
9349 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
9350 echo $ECHO_N "(cached) $ECHO_C" >&6
9351 else
9352 ac_check_lib_save_LIBS=$LIBS
9353 LIBS="-ldl $LIBS"
9354 if test x$gcc_no_link = xyes; then
9355 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9356 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9357 { (exit 1); exit 1; }; }
9359 cat >conftest.$ac_ext <<_ACEOF
9360 /* confdefs.h. */
9361 _ACEOF
9362 cat confdefs.h >>conftest.$ac_ext
9363 cat >>conftest.$ac_ext <<_ACEOF
9364 /* end confdefs.h. */
9366 /* Override any gcc2 internal prototype to avoid an error. */
9367 #ifdef __cplusplus
9368 extern "C"
9369 #endif
9370 /* We use char because int might match the return type of a gcc2
9371 builtin and then its argument prototype would still apply. */
9372 char dladdr ();
9374 main ()
9376 dladdr ();
9378 return 0;
9380 _ACEOF
9381 rm -f conftest.$ac_objext conftest$ac_exeext
9382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9383 (eval $ac_link) 2>conftest.er1
9384 ac_status=$?
9385 grep -v '^ *+' conftest.er1 >conftest.err
9386 rm -f conftest.er1
9387 cat conftest.err >&5
9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389 (exit $ac_status); } &&
9390 { ac_try='test -z "$ac_c_werror_flag"
9391 || test ! -s conftest.err'
9392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9393 (eval $ac_try) 2>&5
9394 ac_status=$?
9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396 (exit $ac_status); }; } &&
9397 { ac_try='test -s conftest$ac_exeext'
9398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9399 (eval $ac_try) 2>&5
9400 ac_status=$?
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); }; }; then
9403 ac_cv_lib_dl_dladdr=yes
9404 else
9405 echo "$as_me: failed program was:" >&5
9406 sed 's/^/| /' conftest.$ac_ext >&5
9408 ac_cv_lib_dl_dladdr=no
9410 rm -f conftest.err conftest.$ac_objext \
9411 conftest$ac_exeext conftest.$ac_ext
9412 LIBS=$ac_check_lib_save_LIBS
9414 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
9415 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
9416 if test $ac_cv_lib_dl_dladdr = yes; then
9418 if test "x${disable_dladdr}" = "xyes"; then
9419 #Broken dladdr().
9420 true
9421 else
9423 cat >>confdefs.h <<\_ACEOF
9424 #define HAVE_DLADDR 1
9425 _ACEOF
9431 if test x"$build" = x"$host"; then
9432 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
9433 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
9434 if test "${ac_cv_file__proc_self_exe+set}" = set; then
9435 echo $ECHO_N "(cached) $ECHO_C" >&6
9436 else
9437 test "$cross_compiling" = yes &&
9438 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
9439 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9440 { (exit 1); exit 1; }; }
9441 if test -r "/proc/self/exe"; then
9442 ac_cv_file__proc_self_exe=yes
9443 else
9444 ac_cv_file__proc_self_exe=no
9447 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
9448 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
9449 if test $ac_cv_file__proc_self_exe = yes; then
9451 cat >>confdefs.h <<_ACEOF
9452 #define HAVE__PROC_SELF_EXE 1
9453 _ACEOF
9457 cat >>confdefs.h <<\_ACEOF
9458 #define HAVE_PROC_SELF_EXE 1
9459 _ACEOF
9463 else
9464 case $host in
9465 *-linux*)
9467 cat >>confdefs.h <<\_ACEOF
9468 #define HAVE_PROC_SELF_EXE 1
9469 _ACEOF
9472 esac
9476 if test "X$prefix" = "XNONE"; then
9477 acl_final_prefix="$ac_default_prefix"
9478 else
9479 acl_final_prefix="$prefix"
9481 if test "X$exec_prefix" = "XNONE"; then
9482 acl_final_exec_prefix='${prefix}'
9483 else
9484 acl_final_exec_prefix="$exec_prefix"
9486 acl_save_prefix="$prefix"
9487 prefix="$acl_final_prefix"
9488 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9489 prefix="$acl_save_prefix"
9492 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9493 if test "${with_gnu_ld+set}" = set; then
9494 withval="$with_gnu_ld"
9495 test "$withval" = no || with_gnu_ld=yes
9496 else
9497 with_gnu_ld=no
9499 # Prepare PATH_SEPARATOR.
9500 # The user is always right.
9501 if test "${PATH_SEPARATOR+set}" != set; then
9502 echo "#! /bin/sh" >conf$$.sh
9503 echo "exit 0" >>conf$$.sh
9504 chmod +x conf$$.sh
9505 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9506 PATH_SEPARATOR=';'
9507 else
9508 PATH_SEPARATOR=:
9510 rm -f conf$$.sh
9512 ac_prog=ld
9513 if test "$GCC" = yes; then
9514 # Check if gcc -print-prog-name=ld gives a path.
9515 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
9516 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
9517 case $host in
9518 *-*-mingw*)
9519 # gcc leaves a trailing carriage return which upsets mingw
9520 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9522 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9523 esac
9524 case $ac_prog in
9525 # Accept absolute paths.
9526 [\\/]* | [A-Za-z]:[\\/]*)
9527 re_direlt='/[^/][^/]*/\.\./'
9528 # Canonicalize the path of ld
9529 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9530 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9531 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9532 done
9533 test -z "$LD" && LD="$ac_prog"
9536 # If it fails, then pretend we aren't using GCC.
9537 ac_prog=ld
9540 # If it is relative, then search for the first ld in PATH.
9541 with_gnu_ld=unknown
9543 esac
9544 elif test "$with_gnu_ld" = yes; then
9545 echo "$as_me:$LINENO: checking for GNU ld" >&5
9546 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9547 else
9548 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9549 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9551 if test "${acl_cv_path_LD+set}" = set; then
9552 echo $ECHO_N "(cached) $ECHO_C" >&6
9553 else
9554 if test -z "$LD"; then
9555 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9556 for ac_dir in $PATH; do
9557 test -z "$ac_dir" && ac_dir=.
9558 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9559 acl_cv_path_LD="$ac_dir/$ac_prog"
9560 # Check to see if the program is GNU ld. I'd rather use --version,
9561 # but apparently some GNU ld's only accept -v.
9562 # Break only if it was the GNU/non-GNU ld that we prefer.
9563 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9564 test "$with_gnu_ld" != no && break
9565 else
9566 test "$with_gnu_ld" != yes && break
9569 done
9570 IFS="$ac_save_ifs"
9571 else
9572 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9576 LD="$acl_cv_path_LD"
9577 if test -n "$LD"; then
9578 echo "$as_me:$LINENO: result: $LD" >&5
9579 echo "${ECHO_T}$LD" >&6
9580 else
9581 echo "$as_me:$LINENO: result: no" >&5
9582 echo "${ECHO_T}no" >&6
9584 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9585 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9586 { (exit 1); exit 1; }; }
9587 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9588 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9589 if test "${acl_cv_prog_gnu_ld+set}" = set; then
9590 echo $ECHO_N "(cached) $ECHO_C" >&6
9591 else
9592 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9593 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9594 acl_cv_prog_gnu_ld=yes
9595 else
9596 acl_cv_prog_gnu_ld=no
9599 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9600 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
9601 with_gnu_ld=$acl_cv_prog_gnu_ld
9605 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9606 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
9607 if test "${acl_cv_rpath+set}" = set; then
9608 echo $ECHO_N "(cached) $ECHO_C" >&6
9609 else
9611 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9612 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9613 . ./conftest.sh
9614 rm -f ./conftest.sh
9615 acl_cv_rpath=done
9618 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9619 echo "${ECHO_T}$acl_cv_rpath" >&6
9620 wl="$acl_cv_wl"
9621 libext="$acl_cv_libext"
9622 shlibext="$acl_cv_shlibext"
9623 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9624 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9625 hardcode_direct="$acl_cv_hardcode_direct"
9626 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9627 # Check whether --enable-rpath or --disable-rpath was given.
9628 if test "${enable_rpath+set}" = set; then
9629 enableval="$enable_rpath"
9631 else
9632 enable_rpath=yes
9641 use_additional=yes
9643 acl_save_prefix="$prefix"
9644 prefix="$acl_final_prefix"
9645 acl_save_exec_prefix="$exec_prefix"
9646 exec_prefix="$acl_final_exec_prefix"
9648 eval additional_includedir=\"$includedir\"
9649 eval additional_libdir=\"$libdir\"
9651 exec_prefix="$acl_save_exec_prefix"
9652 prefix="$acl_save_prefix"
9655 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
9656 if test "${with_libiconv_prefix+set}" = set; then
9657 withval="$with_libiconv_prefix"
9659 if test "X$withval" = "Xno"; then
9660 use_additional=no
9661 else
9662 if test "X$withval" = "X"; then
9664 acl_save_prefix="$prefix"
9665 prefix="$acl_final_prefix"
9666 acl_save_exec_prefix="$exec_prefix"
9667 exec_prefix="$acl_final_exec_prefix"
9669 eval additional_includedir=\"$includedir\"
9670 eval additional_libdir=\"$libdir\"
9672 exec_prefix="$acl_save_exec_prefix"
9673 prefix="$acl_save_prefix"
9675 else
9676 additional_includedir="$withval/include"
9677 additional_libdir="$withval/lib"
9682 LIBICONV=
9683 LTLIBICONV=
9684 INCICONV=
9685 rpathdirs=
9686 ltrpathdirs=
9687 names_already_handled=
9688 names_next_round='iconv '
9689 while test -n "$names_next_round"; do
9690 names_this_round="$names_next_round"
9691 names_next_round=
9692 for name in $names_this_round; do
9693 already_handled=
9694 for n in $names_already_handled; do
9695 if test "$n" = "$name"; then
9696 already_handled=yes
9697 break
9699 done
9700 if test -z "$already_handled"; then
9701 names_already_handled="$names_already_handled $name"
9702 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9703 eval value=\"\$HAVE_LIB$uppername\"
9704 if test -n "$value"; then
9705 if test "$value" = yes; then
9706 eval value=\"\$LIB$uppername\"
9707 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9708 eval value=\"\$LTLIB$uppername\"
9709 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9710 else
9713 else
9714 found_dir=
9715 found_la=
9716 found_so=
9717 found_a=
9718 if test $use_additional = yes; then
9719 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9720 found_dir="$additional_libdir"
9721 found_so="$additional_libdir/lib$name.$shlibext"
9722 if test -f "$additional_libdir/lib$name.la"; then
9723 found_la="$additional_libdir/lib$name.la"
9725 else
9726 if test -f "$additional_libdir/lib$name.$libext"; then
9727 found_dir="$additional_libdir"
9728 found_a="$additional_libdir/lib$name.$libext"
9729 if test -f "$additional_libdir/lib$name.la"; then
9730 found_la="$additional_libdir/lib$name.la"
9735 if test "X$found_dir" = "X"; then
9736 for x in $LDFLAGS $LTLIBICONV; do
9738 acl_save_prefix="$prefix"
9739 prefix="$acl_final_prefix"
9740 acl_save_exec_prefix="$exec_prefix"
9741 exec_prefix="$acl_final_exec_prefix"
9742 eval x=\"$x\"
9743 exec_prefix="$acl_save_exec_prefix"
9744 prefix="$acl_save_prefix"
9746 case "$x" in
9747 -L*)
9748 dir=`echo "X$x" | sed -e 's/^X-L//'`
9749 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9750 found_dir="$dir"
9751 found_so="$dir/lib$name.$shlibext"
9752 if test -f "$dir/lib$name.la"; then
9753 found_la="$dir/lib$name.la"
9755 else
9756 if test -f "$dir/lib$name.$libext"; then
9757 found_dir="$dir"
9758 found_a="$dir/lib$name.$libext"
9759 if test -f "$dir/lib$name.la"; then
9760 found_la="$dir/lib$name.la"
9765 esac
9766 if test "X$found_dir" != "X"; then
9767 break
9769 done
9771 if test "X$found_dir" != "X"; then
9772 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9773 if test "X$found_so" != "X"; then
9774 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9775 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9776 else
9777 haveit=
9778 for x in $ltrpathdirs; do
9779 if test "X$x" = "X$found_dir"; then
9780 haveit=yes
9781 break
9783 done
9784 if test -z "$haveit"; then
9785 ltrpathdirs="$ltrpathdirs $found_dir"
9787 if test "$hardcode_direct" = yes; then
9788 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9789 else
9790 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9791 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9792 haveit=
9793 for x in $rpathdirs; do
9794 if test "X$x" = "X$found_dir"; then
9795 haveit=yes
9796 break
9798 done
9799 if test -z "$haveit"; then
9800 rpathdirs="$rpathdirs $found_dir"
9802 else
9803 haveit=
9804 for x in $LDFLAGS $LIBICONV; do
9806 acl_save_prefix="$prefix"
9807 prefix="$acl_final_prefix"
9808 acl_save_exec_prefix="$exec_prefix"
9809 exec_prefix="$acl_final_exec_prefix"
9810 eval x=\"$x\"
9811 exec_prefix="$acl_save_exec_prefix"
9812 prefix="$acl_save_prefix"
9814 if test "X$x" = "X-L$found_dir"; then
9815 haveit=yes
9816 break
9818 done
9819 if test -z "$haveit"; then
9820 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9822 if test "$hardcode_minus_L" != no; then
9823 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9824 else
9825 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9830 else
9831 if test "X$found_a" != "X"; then
9832 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9833 else
9834 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9837 additional_includedir=
9838 case "$found_dir" in
9839 */lib | */lib/)
9840 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9841 additional_includedir="$basedir/include"
9843 esac
9844 if test "X$additional_includedir" != "X"; then
9845 if test "X$additional_includedir" != "X/usr/include"; then
9846 haveit=
9847 if test "X$additional_includedir" = "X/usr/local/include"; then
9848 if test -n "$GCC"; then
9849 case $host_os in
9850 linux*) haveit=yes;;
9851 esac
9854 if test -z "$haveit"; then
9855 for x in $CPPFLAGS $INCICONV; do
9857 acl_save_prefix="$prefix"
9858 prefix="$acl_final_prefix"
9859 acl_save_exec_prefix="$exec_prefix"
9860 exec_prefix="$acl_final_exec_prefix"
9861 eval x=\"$x\"
9862 exec_prefix="$acl_save_exec_prefix"
9863 prefix="$acl_save_prefix"
9865 if test "X$x" = "X-I$additional_includedir"; then
9866 haveit=yes
9867 break
9869 done
9870 if test -z "$haveit"; then
9871 if test -d "$additional_includedir"; then
9872 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9878 if test -n "$found_la"; then
9879 save_libdir="$libdir"
9880 case "$found_la" in
9881 */* | *\\*) . "$found_la" ;;
9882 *) . "./$found_la" ;;
9883 esac
9884 libdir="$save_libdir"
9885 for dep in $dependency_libs; do
9886 case "$dep" in
9887 -L*)
9888 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9889 if test "X$additional_libdir" != "X/usr/lib"; then
9890 haveit=
9891 if test "X$additional_libdir" = "X/usr/local/lib"; then
9892 if test -n "$GCC"; then
9893 case $host_os in
9894 linux*) haveit=yes;;
9895 esac
9898 if test -z "$haveit"; then
9899 haveit=
9900 for x in $LDFLAGS $LIBICONV; do
9902 acl_save_prefix="$prefix"
9903 prefix="$acl_final_prefix"
9904 acl_save_exec_prefix="$exec_prefix"
9905 exec_prefix="$acl_final_exec_prefix"
9906 eval x=\"$x\"
9907 exec_prefix="$acl_save_exec_prefix"
9908 prefix="$acl_save_prefix"
9910 if test "X$x" = "X-L$additional_libdir"; then
9911 haveit=yes
9912 break
9914 done
9915 if test -z "$haveit"; then
9916 if test -d "$additional_libdir"; then
9917 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9920 haveit=
9921 for x in $LDFLAGS $LTLIBICONV; do
9923 acl_save_prefix="$prefix"
9924 prefix="$acl_final_prefix"
9925 acl_save_exec_prefix="$exec_prefix"
9926 exec_prefix="$acl_final_exec_prefix"
9927 eval x=\"$x\"
9928 exec_prefix="$acl_save_exec_prefix"
9929 prefix="$acl_save_prefix"
9931 if test "X$x" = "X-L$additional_libdir"; then
9932 haveit=yes
9933 break
9935 done
9936 if test -z "$haveit"; then
9937 if test -d "$additional_libdir"; then
9938 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9944 -R*)
9945 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9946 if test "$enable_rpath" != no; then
9947 haveit=
9948 for x in $rpathdirs; do
9949 if test "X$x" = "X$dir"; then
9950 haveit=yes
9951 break
9953 done
9954 if test -z "$haveit"; then
9955 rpathdirs="$rpathdirs $dir"
9957 haveit=
9958 for x in $ltrpathdirs; do
9959 if test "X$x" = "X$dir"; then
9960 haveit=yes
9961 break
9963 done
9964 if test -z "$haveit"; then
9965 ltrpathdirs="$ltrpathdirs $dir"
9969 -l*)
9970 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9972 *.la)
9973 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9976 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9977 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9979 esac
9980 done
9982 else
9983 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9984 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9988 done
9989 done
9990 if test "X$rpathdirs" != "X"; then
9991 if test -n "$hardcode_libdir_separator"; then
9992 alldirs=
9993 for found_dir in $rpathdirs; do
9994 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9995 done
9996 acl_save_libdir="$libdir"
9997 libdir="$alldirs"
9998 eval flag=\"$hardcode_libdir_flag_spec\"
9999 libdir="$acl_save_libdir"
10000 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10001 else
10002 for found_dir in $rpathdirs; do
10003 acl_save_libdir="$libdir"
10004 libdir="$found_dir"
10005 eval flag=\"$hardcode_libdir_flag_spec\"
10006 libdir="$acl_save_libdir"
10007 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10008 done
10011 if test "X$ltrpathdirs" != "X"; then
10012 for found_dir in $ltrpathdirs; do
10013 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10014 done
10023 am_save_CPPFLAGS="$CPPFLAGS"
10025 for element in $INCICONV; do
10026 haveit=
10027 for x in $CPPFLAGS; do
10029 acl_save_prefix="$prefix"
10030 prefix="$acl_final_prefix"
10031 acl_save_exec_prefix="$exec_prefix"
10032 exec_prefix="$acl_final_exec_prefix"
10033 eval x=\"$x\"
10034 exec_prefix="$acl_save_exec_prefix"
10035 prefix="$acl_save_prefix"
10037 if test "X$x" = "X$element"; then
10038 haveit=yes
10039 break
10041 done
10042 if test -z "$haveit"; then
10043 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10045 done
10048 echo "$as_me:$LINENO: checking for iconv" >&5
10049 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10050 if test "${am_cv_func_iconv+set}" = set; then
10051 echo $ECHO_N "(cached) $ECHO_C" >&6
10052 else
10054 am_cv_func_iconv="no, consider installing GNU libiconv"
10055 am_cv_lib_iconv=no
10056 if test x$gcc_no_link = xyes; then
10057 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10058 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10059 { (exit 1); exit 1; }; }
10061 cat >conftest.$ac_ext <<_ACEOF
10062 /* confdefs.h. */
10063 _ACEOF
10064 cat confdefs.h >>conftest.$ac_ext
10065 cat >>conftest.$ac_ext <<_ACEOF
10066 /* end confdefs.h. */
10067 #include <stdlib.h>
10068 #include <iconv.h>
10070 main ()
10072 iconv_t cd = iconv_open("","");
10073 iconv(cd,NULL,NULL,NULL,NULL);
10074 iconv_close(cd);
10076 return 0;
10078 _ACEOF
10079 rm -f conftest.$ac_objext conftest$ac_exeext
10080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10081 (eval $ac_link) 2>conftest.er1
10082 ac_status=$?
10083 grep -v '^ *+' conftest.er1 >conftest.err
10084 rm -f conftest.er1
10085 cat conftest.err >&5
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); } &&
10088 { ac_try='test -z "$ac_c_werror_flag"
10089 || test ! -s conftest.err'
10090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10091 (eval $ac_try) 2>&5
10092 ac_status=$?
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); }; } &&
10095 { ac_try='test -s conftest$ac_exeext'
10096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10097 (eval $ac_try) 2>&5
10098 ac_status=$?
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); }; }; then
10101 am_cv_func_iconv=yes
10102 else
10103 echo "$as_me: failed program was:" >&5
10104 sed 's/^/| /' conftest.$ac_ext >&5
10107 rm -f conftest.err conftest.$ac_objext \
10108 conftest$ac_exeext conftest.$ac_ext
10109 if test "$am_cv_func_iconv" != yes; then
10110 am_save_LIBS="$LIBS"
10111 LIBS="$LIBS $LIBICONV"
10112 if test x$gcc_no_link = xyes; then
10113 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10114 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10115 { (exit 1); exit 1; }; }
10117 cat >conftest.$ac_ext <<_ACEOF
10118 /* confdefs.h. */
10119 _ACEOF
10120 cat confdefs.h >>conftest.$ac_ext
10121 cat >>conftest.$ac_ext <<_ACEOF
10122 /* end confdefs.h. */
10123 #include <stdlib.h>
10124 #include <iconv.h>
10126 main ()
10128 iconv_t cd = iconv_open("","");
10129 iconv(cd,NULL,NULL,NULL,NULL);
10130 iconv_close(cd);
10132 return 0;
10134 _ACEOF
10135 rm -f conftest.$ac_objext conftest$ac_exeext
10136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10137 (eval $ac_link) 2>conftest.er1
10138 ac_status=$?
10139 grep -v '^ *+' conftest.er1 >conftest.err
10140 rm -f conftest.er1
10141 cat conftest.err >&5
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); } &&
10144 { ac_try='test -z "$ac_c_werror_flag"
10145 || test ! -s conftest.err'
10146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10147 (eval $ac_try) 2>&5
10148 ac_status=$?
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); }; } &&
10151 { ac_try='test -s conftest$ac_exeext'
10152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10153 (eval $ac_try) 2>&5
10154 ac_status=$?
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); }; }; then
10157 am_cv_lib_iconv=yes
10158 am_cv_func_iconv=yes
10159 else
10160 echo "$as_me: failed program was:" >&5
10161 sed 's/^/| /' conftest.$ac_ext >&5
10164 rm -f conftest.err conftest.$ac_objext \
10165 conftest$ac_exeext conftest.$ac_ext
10166 LIBS="$am_save_LIBS"
10170 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10171 echo "${ECHO_T}$am_cv_func_iconv" >&6
10172 if test "$am_cv_func_iconv" = yes; then
10174 cat >>confdefs.h <<\_ACEOF
10175 #define HAVE_ICONV 1
10176 _ACEOF
10179 if test "$am_cv_lib_iconv" = yes; then
10180 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10181 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10182 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10183 echo "${ECHO_T}$LIBICONV" >&6
10184 else
10185 CPPFLAGS="$am_save_CPPFLAGS"
10186 LIBICONV=
10187 LTLIBICONV=
10192 if test "$am_cv_func_iconv" = yes; then
10193 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10194 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10195 if test "${am_cv_proto_iconv+set}" = set; then
10196 echo $ECHO_N "(cached) $ECHO_C" >&6
10197 else
10199 cat >conftest.$ac_ext <<_ACEOF
10200 /* confdefs.h. */
10201 _ACEOF
10202 cat confdefs.h >>conftest.$ac_ext
10203 cat >>conftest.$ac_ext <<_ACEOF
10204 /* end confdefs.h. */
10206 #include <stdlib.h>
10207 #include <iconv.h>
10208 extern
10209 #ifdef __cplusplus
10211 #endif
10212 #if defined(__STDC__) || defined(__cplusplus)
10213 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10214 #else
10215 size_t iconv();
10216 #endif
10219 main ()
10223 return 0;
10225 _ACEOF
10226 rm -f conftest.$ac_objext
10227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10228 (eval $ac_compile) 2>conftest.er1
10229 ac_status=$?
10230 grep -v '^ *+' conftest.er1 >conftest.err
10231 rm -f conftest.er1
10232 cat conftest.err >&5
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); } &&
10235 { ac_try='test -z "$ac_c_werror_flag"
10236 || test ! -s conftest.err'
10237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10238 (eval $ac_try) 2>&5
10239 ac_status=$?
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); }; } &&
10242 { ac_try='test -s conftest.$ac_objext'
10243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10244 (eval $ac_try) 2>&5
10245 ac_status=$?
10246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247 (exit $ac_status); }; }; then
10248 am_cv_proto_iconv_arg1=""
10249 else
10250 echo "$as_me: failed program was:" >&5
10251 sed 's/^/| /' conftest.$ac_ext >&5
10253 am_cv_proto_iconv_arg1="const"
10255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10256 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);"
10259 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10260 echo "$as_me:$LINENO: result: ${ac_t:-
10261 }$am_cv_proto_iconv" >&5
10262 echo "${ECHO_T}${ac_t:-
10263 }$am_cv_proto_iconv" >&6
10265 cat >>confdefs.h <<_ACEOF
10266 #define ICONV_CONST $am_cv_proto_iconv_arg1
10267 _ACEOF
10272 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10273 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10274 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10275 echo $ECHO_N "(cached) $ECHO_C" >&6
10276 else
10277 if test x$gcc_no_link = xyes; then
10278 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10279 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10280 { (exit 1); exit 1; }; }
10282 cat >conftest.$ac_ext <<_ACEOF
10283 /* confdefs.h. */
10284 _ACEOF
10285 cat confdefs.h >>conftest.$ac_ext
10286 cat >>conftest.$ac_ext <<_ACEOF
10287 /* end confdefs.h. */
10288 #include <locale.h>
10290 main ()
10292 return LC_MESSAGES
10294 return 0;
10296 _ACEOF
10297 rm -f conftest.$ac_objext conftest$ac_exeext
10298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10299 (eval $ac_link) 2>conftest.er1
10300 ac_status=$?
10301 grep -v '^ *+' conftest.er1 >conftest.err
10302 rm -f conftest.er1
10303 cat conftest.err >&5
10304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305 (exit $ac_status); } &&
10306 { ac_try='test -z "$ac_c_werror_flag"
10307 || test ! -s conftest.err'
10308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10309 (eval $ac_try) 2>&5
10310 ac_status=$?
10311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 (exit $ac_status); }; } &&
10313 { ac_try='test -s conftest$ac_exeext'
10314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10315 (eval $ac_try) 2>&5
10316 ac_status=$?
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); }; }; then
10319 am_cv_val_LC_MESSAGES=yes
10320 else
10321 echo "$as_me: failed program was:" >&5
10322 sed 's/^/| /' conftest.$ac_ext >&5
10324 am_cv_val_LC_MESSAGES=no
10326 rm -f conftest.err conftest.$ac_objext \
10327 conftest$ac_exeext conftest.$ac_ext
10329 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10330 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10331 if test $am_cv_val_LC_MESSAGES = yes; then
10333 cat >>confdefs.h <<\_ACEOF
10334 #define HAVE_LC_MESSAGES 1
10335 _ACEOF
10339 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10340 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10341 if test "${ac_cv_struct_tm+set}" = set; then
10342 echo $ECHO_N "(cached) $ECHO_C" >&6
10343 else
10344 cat >conftest.$ac_ext <<_ACEOF
10345 /* confdefs.h. */
10346 _ACEOF
10347 cat confdefs.h >>conftest.$ac_ext
10348 cat >>conftest.$ac_ext <<_ACEOF
10349 /* end confdefs.h. */
10350 #include <sys/types.h>
10351 #include <time.h>
10354 main ()
10356 struct tm *tp; tp->tm_sec;
10358 return 0;
10360 _ACEOF
10361 rm -f conftest.$ac_objext
10362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10363 (eval $ac_compile) 2>conftest.er1
10364 ac_status=$?
10365 grep -v '^ *+' conftest.er1 >conftest.err
10366 rm -f conftest.er1
10367 cat conftest.err >&5
10368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369 (exit $ac_status); } &&
10370 { ac_try='test -z "$ac_c_werror_flag"
10371 || test ! -s conftest.err'
10372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10373 (eval $ac_try) 2>&5
10374 ac_status=$?
10375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376 (exit $ac_status); }; } &&
10377 { ac_try='test -s conftest.$ac_objext'
10378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10379 (eval $ac_try) 2>&5
10380 ac_status=$?
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); }; }; then
10383 ac_cv_struct_tm=time.h
10384 else
10385 echo "$as_me: failed program was:" >&5
10386 sed 's/^/| /' conftest.$ac_ext >&5
10388 ac_cv_struct_tm=sys/time.h
10390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10392 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10393 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10394 if test $ac_cv_struct_tm = sys/time.h; then
10396 cat >>confdefs.h <<\_ACEOF
10397 #define TM_IN_SYS_TIME 1
10398 _ACEOF
10402 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10403 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10404 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10405 echo $ECHO_N "(cached) $ECHO_C" >&6
10406 else
10407 cat >conftest.$ac_ext <<_ACEOF
10408 /* confdefs.h. */
10409 _ACEOF
10410 cat confdefs.h >>conftest.$ac_ext
10411 cat >>conftest.$ac_ext <<_ACEOF
10412 /* end confdefs.h. */
10413 #include <sys/types.h>
10414 #include <$ac_cv_struct_tm>
10418 main ()
10420 static struct tm ac_aggr;
10421 if (ac_aggr.tm_zone)
10422 return 0;
10424 return 0;
10426 _ACEOF
10427 rm -f conftest.$ac_objext
10428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10429 (eval $ac_compile) 2>conftest.er1
10430 ac_status=$?
10431 grep -v '^ *+' conftest.er1 >conftest.err
10432 rm -f conftest.er1
10433 cat conftest.err >&5
10434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435 (exit $ac_status); } &&
10436 { ac_try='test -z "$ac_c_werror_flag"
10437 || test ! -s conftest.err'
10438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10439 (eval $ac_try) 2>&5
10440 ac_status=$?
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); }; } &&
10443 { ac_try='test -s conftest.$ac_objext'
10444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10445 (eval $ac_try) 2>&5
10446 ac_status=$?
10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); }; }; then
10449 ac_cv_member_struct_tm_tm_zone=yes
10450 else
10451 echo "$as_me: failed program was:" >&5
10452 sed 's/^/| /' conftest.$ac_ext >&5
10454 cat >conftest.$ac_ext <<_ACEOF
10455 /* confdefs.h. */
10456 _ACEOF
10457 cat confdefs.h >>conftest.$ac_ext
10458 cat >>conftest.$ac_ext <<_ACEOF
10459 /* end confdefs.h. */
10460 #include <sys/types.h>
10461 #include <$ac_cv_struct_tm>
10465 main ()
10467 static struct tm ac_aggr;
10468 if (sizeof ac_aggr.tm_zone)
10469 return 0;
10471 return 0;
10473 _ACEOF
10474 rm -f conftest.$ac_objext
10475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10476 (eval $ac_compile) 2>conftest.er1
10477 ac_status=$?
10478 grep -v '^ *+' conftest.er1 >conftest.err
10479 rm -f conftest.er1
10480 cat conftest.err >&5
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); } &&
10483 { ac_try='test -z "$ac_c_werror_flag"
10484 || test ! -s conftest.err'
10485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10486 (eval $ac_try) 2>&5
10487 ac_status=$?
10488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489 (exit $ac_status); }; } &&
10490 { ac_try='test -s conftest.$ac_objext'
10491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10492 (eval $ac_try) 2>&5
10493 ac_status=$?
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); }; }; then
10496 ac_cv_member_struct_tm_tm_zone=yes
10497 else
10498 echo "$as_me: failed program was:" >&5
10499 sed 's/^/| /' conftest.$ac_ext >&5
10501 ac_cv_member_struct_tm_tm_zone=no
10503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10507 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10508 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10509 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10511 cat >>confdefs.h <<_ACEOF
10512 #define HAVE_STRUCT_TM_TM_ZONE 1
10513 _ACEOF
10518 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10520 cat >>confdefs.h <<\_ACEOF
10521 #define HAVE_TM_ZONE 1
10522 _ACEOF
10524 else
10525 echo "$as_me:$LINENO: checking for tzname" >&5
10526 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10527 if test "${ac_cv_var_tzname+set}" = set; then
10528 echo $ECHO_N "(cached) $ECHO_C" >&6
10529 else
10530 if test x$gcc_no_link = xyes; then
10531 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10532 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10533 { (exit 1); exit 1; }; }
10535 cat >conftest.$ac_ext <<_ACEOF
10536 /* confdefs.h. */
10537 _ACEOF
10538 cat confdefs.h >>conftest.$ac_ext
10539 cat >>conftest.$ac_ext <<_ACEOF
10540 /* end confdefs.h. */
10541 #include <time.h>
10542 #ifndef tzname /* For SGI. */
10543 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
10544 #endif
10547 main ()
10549 atoi(*tzname);
10551 return 0;
10553 _ACEOF
10554 rm -f conftest.$ac_objext conftest$ac_exeext
10555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10556 (eval $ac_link) 2>conftest.er1
10557 ac_status=$?
10558 grep -v '^ *+' conftest.er1 >conftest.err
10559 rm -f conftest.er1
10560 cat conftest.err >&5
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); } &&
10563 { ac_try='test -z "$ac_c_werror_flag"
10564 || test ! -s conftest.err'
10565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10566 (eval $ac_try) 2>&5
10567 ac_status=$?
10568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569 (exit $ac_status); }; } &&
10570 { ac_try='test -s conftest$ac_exeext'
10571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10572 (eval $ac_try) 2>&5
10573 ac_status=$?
10574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10575 (exit $ac_status); }; }; then
10576 ac_cv_var_tzname=yes
10577 else
10578 echo "$as_me: failed program was:" >&5
10579 sed 's/^/| /' conftest.$ac_ext >&5
10581 ac_cv_var_tzname=no
10583 rm -f conftest.err conftest.$ac_objext \
10584 conftest$ac_exeext conftest.$ac_ext
10586 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10587 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10588 if test $ac_cv_var_tzname = yes; then
10590 cat >>confdefs.h <<\_ACEOF
10591 #define HAVE_TZNAME 1
10592 _ACEOF
10600 for ac_func in gethostbyname_r
10602 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10603 echo "$as_me:$LINENO: checking for $ac_func" >&5
10604 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10605 if eval "test \"\${$as_ac_var+set}\" = set"; then
10606 echo $ECHO_N "(cached) $ECHO_C" >&6
10607 else
10608 if test x$gcc_no_link = xyes; then
10609 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10610 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10611 { (exit 1); exit 1; }; }
10613 cat >conftest.$ac_ext <<_ACEOF
10614 /* confdefs.h. */
10615 _ACEOF
10616 cat confdefs.h >>conftest.$ac_ext
10617 cat >>conftest.$ac_ext <<_ACEOF
10618 /* end confdefs.h. */
10619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10621 #define $ac_func innocuous_$ac_func
10623 /* System header to define __stub macros and hopefully few prototypes,
10624 which can conflict with char $ac_func (); below.
10625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10626 <limits.h> exists even on freestanding compilers. */
10628 #ifdef __STDC__
10629 # include <limits.h>
10630 #else
10631 # include <assert.h>
10632 #endif
10634 #undef $ac_func
10636 /* Override any gcc2 internal prototype to avoid an error. */
10637 #ifdef __cplusplus
10638 extern "C"
10640 #endif
10641 /* We use char because int might match the return type of a gcc2
10642 builtin and then its argument prototype would still apply. */
10643 char $ac_func ();
10644 /* The GNU C library defines this for functions which it implements
10645 to always fail with ENOSYS. Some functions are actually named
10646 something starting with __ and the normal name is an alias. */
10647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10648 choke me
10649 #else
10650 char (*f) () = $ac_func;
10651 #endif
10652 #ifdef __cplusplus
10654 #endif
10657 main ()
10659 return f != $ac_func;
10661 return 0;
10663 _ACEOF
10664 rm -f conftest.$ac_objext conftest$ac_exeext
10665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10666 (eval $ac_link) 2>conftest.er1
10667 ac_status=$?
10668 grep -v '^ *+' conftest.er1 >conftest.err
10669 rm -f conftest.er1
10670 cat conftest.err >&5
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); } &&
10673 { ac_try='test -z "$ac_c_werror_flag"
10674 || test ! -s conftest.err'
10675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10676 (eval $ac_try) 2>&5
10677 ac_status=$?
10678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679 (exit $ac_status); }; } &&
10680 { ac_try='test -s conftest$ac_exeext'
10681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10682 (eval $ac_try) 2>&5
10683 ac_status=$?
10684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); }; }; then
10686 eval "$as_ac_var=yes"
10687 else
10688 echo "$as_me: failed program was:" >&5
10689 sed 's/^/| /' conftest.$ac_ext >&5
10691 eval "$as_ac_var=no"
10693 rm -f conftest.err conftest.$ac_objext \
10694 conftest$ac_exeext conftest.$ac_ext
10696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10697 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10698 if test `eval echo '${'$as_ac_var'}'` = yes; then
10699 cat >>confdefs.h <<_ACEOF
10700 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10701 _ACEOF
10704 cat >>confdefs.h <<\_ACEOF
10705 #define HAVE_GETHOSTBYNAME_R 1
10706 _ACEOF
10708 # There are two different kinds of gethostbyname_r.
10709 # We look for the one that returns `int'.
10710 # Hopefully this check is robust enough.
10711 cat >conftest.$ac_ext <<_ACEOF
10712 /* confdefs.h. */
10713 _ACEOF
10714 cat confdefs.h >>conftest.$ac_ext
10715 cat >>conftest.$ac_ext <<_ACEOF
10716 /* end confdefs.h. */
10717 #include <netdb.h>
10719 _ACEOF
10720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10721 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
10724 cat >>confdefs.h <<\_ACEOF
10725 #define GETHOSTBYNAME_R_RETURNS_INT 1
10726 _ACEOF
10729 rm -f conftest*
10732 case " $GCINCS " in
10733 *" -D_REENTRANT "*) ;;
10735 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
10736 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
10737 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
10738 echo $ECHO_N "(cached) $ECHO_C" >&6
10739 else
10740 ac_ext=cc
10741 ac_cpp='$CXXCPP $CPPFLAGS'
10742 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10743 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10744 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10746 cat >conftest.$ac_ext <<_ACEOF
10747 /* confdefs.h. */
10748 _ACEOF
10749 cat confdefs.h >>conftest.$ac_ext
10750 cat >>conftest.$ac_ext <<_ACEOF
10751 /* end confdefs.h. */
10752 #include <netdb.h>
10754 main ()
10756 gethostbyname_r("", 0, 0);
10758 return 0;
10760 _ACEOF
10761 rm -f conftest.$ac_objext
10762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10763 (eval $ac_compile) 2>conftest.er1
10764 ac_status=$?
10765 grep -v '^ *+' conftest.er1 >conftest.err
10766 rm -f conftest.er1
10767 cat conftest.err >&5
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); } &&
10770 { ac_try='test -z "$ac_cxx_werror_flag"
10771 || test ! -s conftest.err'
10772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10773 (eval $ac_try) 2>&5
10774 ac_status=$?
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); }; } &&
10777 { ac_try='test -s conftest.$ac_objext'
10778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10779 (eval $ac_try) 2>&5
10780 ac_status=$?
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); }; }; then
10783 libjava_cv_gethostbyname_r_needs_reentrant=no
10784 else
10785 echo "$as_me: failed program was:" >&5
10786 sed 's/^/| /' conftest.$ac_ext >&5
10788 CPPFLAGS_SAVE="$CPPFLAGS"
10789 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
10790 cat >conftest.$ac_ext <<_ACEOF
10791 /* confdefs.h. */
10792 _ACEOF
10793 cat confdefs.h >>conftest.$ac_ext
10794 cat >>conftest.$ac_ext <<_ACEOF
10795 /* end confdefs.h. */
10796 #include <netdb.h>
10798 main ()
10800 gethostbyname_r("", 0, 0);
10802 return 0;
10804 _ACEOF
10805 rm -f conftest.$ac_objext
10806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10807 (eval $ac_compile) 2>conftest.er1
10808 ac_status=$?
10809 grep -v '^ *+' conftest.er1 >conftest.err
10810 rm -f conftest.er1
10811 cat conftest.err >&5
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); } &&
10814 { ac_try='test -z "$ac_cxx_werror_flag"
10815 || test ! -s conftest.err'
10816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10817 (eval $ac_try) 2>&5
10818 ac_status=$?
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); }; } &&
10821 { ac_try='test -s conftest.$ac_objext'
10822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10823 (eval $ac_try) 2>&5
10824 ac_status=$?
10825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826 (exit $ac_status); }; }; then
10827 libjava_cv_gethostbyname_r_needs_reentrant=yes
10828 else
10829 echo "$as_me: failed program was:" >&5
10830 sed 's/^/| /' conftest.$ac_ext >&5
10832 libjava_cv_gethostbyname_r_needs_reentrant=fail
10834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10835 CPPFLAGS="$CPPFLAGS_SAVE"
10838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10839 ac_ext=c
10840 ac_cpp='$CPP $CPPFLAGS'
10841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10847 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
10848 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
10849 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
10851 cat >>confdefs.h <<\_ACEOF
10852 #define _REENTRANT 1
10853 _ACEOF
10857 esac
10859 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
10860 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
10861 if test "${libjava_cv_struct_hostent_data+set}" = set; then
10862 echo $ECHO_N "(cached) $ECHO_C" >&6
10863 else
10864 cat >conftest.$ac_ext <<_ACEOF
10865 /* confdefs.h. */
10866 _ACEOF
10867 cat confdefs.h >>conftest.$ac_ext
10868 cat >>conftest.$ac_ext <<_ACEOF
10869 /* end confdefs.h. */
10871 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
10872 # define _REENTRANT 1
10873 #endif
10874 #include <netdb.h>
10876 main ()
10878 struct hostent_data data;
10880 return 0;
10882 _ACEOF
10883 rm -f conftest.$ac_objext
10884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10885 (eval $ac_compile) 2>conftest.er1
10886 ac_status=$?
10887 grep -v '^ *+' conftest.er1 >conftest.err
10888 rm -f conftest.er1
10889 cat conftest.err >&5
10890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891 (exit $ac_status); } &&
10892 { ac_try='test -z "$ac_c_werror_flag"
10893 || test ! -s conftest.err'
10894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10895 (eval $ac_try) 2>&5
10896 ac_status=$?
10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 (exit $ac_status); }; } &&
10899 { ac_try='test -s conftest.$ac_objext'
10900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10901 (eval $ac_try) 2>&5
10902 ac_status=$?
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); }; }; then
10905 libjava_cv_struct_hostent_data=yes
10906 else
10907 echo "$as_me: failed program was:" >&5
10908 sed 's/^/| /' conftest.$ac_ext >&5
10910 libjava_cv_struct_hostent_data=no
10912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10914 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
10915 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
10916 if test "x$libjava_cv_struct_hostent_data" = xyes; then
10918 cat >>confdefs.h <<\_ACEOF
10919 #define HAVE_STRUCT_HOSTENT_DATA 1
10920 _ACEOF
10925 done
10928 # FIXME: libjava source code expects to find a prototype for
10929 # gethostbyaddr_r in netdb.h. The outer check ensures that
10930 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
10931 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
10932 # linkage check is enough, yet C++ code requires proper prototypes.)
10933 cat >conftest.$ac_ext <<_ACEOF
10934 /* confdefs.h. */
10935 _ACEOF
10936 cat confdefs.h >>conftest.$ac_ext
10937 cat >>conftest.$ac_ext <<_ACEOF
10938 /* end confdefs.h. */
10939 #include <netdb.h>
10941 _ACEOF
10942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10943 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
10946 for ac_func in gethostbyaddr_r
10948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10949 echo "$as_me:$LINENO: checking for $ac_func" >&5
10950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10951 if eval "test \"\${$as_ac_var+set}\" = set"; then
10952 echo $ECHO_N "(cached) $ECHO_C" >&6
10953 else
10954 if test x$gcc_no_link = xyes; then
10955 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10956 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10957 { (exit 1); exit 1; }; }
10959 cat >conftest.$ac_ext <<_ACEOF
10960 /* confdefs.h. */
10961 _ACEOF
10962 cat confdefs.h >>conftest.$ac_ext
10963 cat >>conftest.$ac_ext <<_ACEOF
10964 /* end confdefs.h. */
10965 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10967 #define $ac_func innocuous_$ac_func
10969 /* System header to define __stub macros and hopefully few prototypes,
10970 which can conflict with char $ac_func (); below.
10971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10972 <limits.h> exists even on freestanding compilers. */
10974 #ifdef __STDC__
10975 # include <limits.h>
10976 #else
10977 # include <assert.h>
10978 #endif
10980 #undef $ac_func
10982 /* Override any gcc2 internal prototype to avoid an error. */
10983 #ifdef __cplusplus
10984 extern "C"
10986 #endif
10987 /* We use char because int might match the return type of a gcc2
10988 builtin and then its argument prototype would still apply. */
10989 char $ac_func ();
10990 /* The GNU C library defines this for functions which it implements
10991 to always fail with ENOSYS. Some functions are actually named
10992 something starting with __ and the normal name is an alias. */
10993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10994 choke me
10995 #else
10996 char (*f) () = $ac_func;
10997 #endif
10998 #ifdef __cplusplus
11000 #endif
11003 main ()
11005 return f != $ac_func;
11007 return 0;
11009 _ACEOF
11010 rm -f conftest.$ac_objext conftest$ac_exeext
11011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11012 (eval $ac_link) 2>conftest.er1
11013 ac_status=$?
11014 grep -v '^ *+' conftest.er1 >conftest.err
11015 rm -f conftest.er1
11016 cat conftest.err >&5
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); } &&
11019 { ac_try='test -z "$ac_c_werror_flag"
11020 || test ! -s conftest.err'
11021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11022 (eval $ac_try) 2>&5
11023 ac_status=$?
11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 (exit $ac_status); }; } &&
11026 { ac_try='test -s conftest$ac_exeext'
11027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11028 (eval $ac_try) 2>&5
11029 ac_status=$?
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); }; }; then
11032 eval "$as_ac_var=yes"
11033 else
11034 echo "$as_me: failed program was:" >&5
11035 sed 's/^/| /' conftest.$ac_ext >&5
11037 eval "$as_ac_var=no"
11039 rm -f conftest.err conftest.$ac_objext \
11040 conftest$ac_exeext conftest.$ac_ext
11042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11043 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11044 if test `eval echo '${'$as_ac_var'}'` = yes; then
11045 cat >>confdefs.h <<_ACEOF
11046 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11047 _ACEOF
11050 cat >>confdefs.h <<\_ACEOF
11051 #define HAVE_GETHOSTBYADDR_R 1
11052 _ACEOF
11054 # There are two different kinds of gethostbyaddr_r.
11055 # We look for the one that returns `int'.
11056 # Hopefully this check is robust enough.
11057 cat >conftest.$ac_ext <<_ACEOF
11058 /* confdefs.h. */
11059 _ACEOF
11060 cat confdefs.h >>conftest.$ac_ext
11061 cat >>conftest.$ac_ext <<_ACEOF
11062 /* end confdefs.h. */
11063 #include <netdb.h>
11065 _ACEOF
11066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11067 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11070 cat >>confdefs.h <<\_ACEOF
11071 #define GETHOSTBYADDR_R_RETURNS_INT 1
11072 _ACEOF
11075 rm -f conftest*
11078 done
11081 rm -f conftest*
11085 for ac_func in gethostname
11087 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11088 echo "$as_me:$LINENO: checking for $ac_func" >&5
11089 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11090 if eval "test \"\${$as_ac_var+set}\" = set"; then
11091 echo $ECHO_N "(cached) $ECHO_C" >&6
11092 else
11093 if test x$gcc_no_link = xyes; then
11094 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11095 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11096 { (exit 1); exit 1; }; }
11098 cat >conftest.$ac_ext <<_ACEOF
11099 /* confdefs.h. */
11100 _ACEOF
11101 cat confdefs.h >>conftest.$ac_ext
11102 cat >>conftest.$ac_ext <<_ACEOF
11103 /* end confdefs.h. */
11104 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11106 #define $ac_func innocuous_$ac_func
11108 /* System header to define __stub macros and hopefully few prototypes,
11109 which can conflict with char $ac_func (); below.
11110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11111 <limits.h> exists even on freestanding compilers. */
11113 #ifdef __STDC__
11114 # include <limits.h>
11115 #else
11116 # include <assert.h>
11117 #endif
11119 #undef $ac_func
11121 /* Override any gcc2 internal prototype to avoid an error. */
11122 #ifdef __cplusplus
11123 extern "C"
11125 #endif
11126 /* We use char because int might match the return type of a gcc2
11127 builtin and then its argument prototype would still apply. */
11128 char $ac_func ();
11129 /* The GNU C library defines this for functions which it implements
11130 to always fail with ENOSYS. Some functions are actually named
11131 something starting with __ and the normal name is an alias. */
11132 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11133 choke me
11134 #else
11135 char (*f) () = $ac_func;
11136 #endif
11137 #ifdef __cplusplus
11139 #endif
11142 main ()
11144 return f != $ac_func;
11146 return 0;
11148 _ACEOF
11149 rm -f conftest.$ac_objext conftest$ac_exeext
11150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11151 (eval $ac_link) 2>conftest.er1
11152 ac_status=$?
11153 grep -v '^ *+' conftest.er1 >conftest.err
11154 rm -f conftest.er1
11155 cat conftest.err >&5
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); } &&
11158 { ac_try='test -z "$ac_c_werror_flag"
11159 || test ! -s conftest.err'
11160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11161 (eval $ac_try) 2>&5
11162 ac_status=$?
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); }; } &&
11165 { ac_try='test -s conftest$ac_exeext'
11166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11167 (eval $ac_try) 2>&5
11168 ac_status=$?
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); }; }; then
11171 eval "$as_ac_var=yes"
11172 else
11173 echo "$as_me: failed program was:" >&5
11174 sed 's/^/| /' conftest.$ac_ext >&5
11176 eval "$as_ac_var=no"
11178 rm -f conftest.err conftest.$ac_objext \
11179 conftest$ac_exeext conftest.$ac_ext
11181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11182 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11183 if test `eval echo '${'$as_ac_var'}'` = yes; then
11184 cat >>confdefs.h <<_ACEOF
11185 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11186 _ACEOF
11189 cat >>confdefs.h <<\_ACEOF
11190 #define HAVE_GETHOSTNAME 1
11191 _ACEOF
11193 cat >conftest.$ac_ext <<_ACEOF
11194 /* confdefs.h. */
11195 _ACEOF
11196 cat confdefs.h >>conftest.$ac_ext
11197 cat >>conftest.$ac_ext <<_ACEOF
11198 /* end confdefs.h. */
11199 #include <unistd.h>
11201 _ACEOF
11202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11203 $EGREP "gethostname" >/dev/null 2>&1; then
11206 cat >>confdefs.h <<\_ACEOF
11207 #define HAVE_GETHOSTNAME_DECL 1
11208 _ACEOF
11211 rm -f conftest*
11214 done
11218 for ac_func in usleep
11220 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11221 echo "$as_me:$LINENO: checking for $ac_func" >&5
11222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11223 if eval "test \"\${$as_ac_var+set}\" = set"; then
11224 echo $ECHO_N "(cached) $ECHO_C" >&6
11225 else
11226 if test x$gcc_no_link = xyes; then
11227 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11228 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11229 { (exit 1); exit 1; }; }
11231 cat >conftest.$ac_ext <<_ACEOF
11232 /* confdefs.h. */
11233 _ACEOF
11234 cat confdefs.h >>conftest.$ac_ext
11235 cat >>conftest.$ac_ext <<_ACEOF
11236 /* end confdefs.h. */
11237 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11239 #define $ac_func innocuous_$ac_func
11241 /* System header to define __stub macros and hopefully few prototypes,
11242 which can conflict with char $ac_func (); below.
11243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11244 <limits.h> exists even on freestanding compilers. */
11246 #ifdef __STDC__
11247 # include <limits.h>
11248 #else
11249 # include <assert.h>
11250 #endif
11252 #undef $ac_func
11254 /* Override any gcc2 internal prototype to avoid an error. */
11255 #ifdef __cplusplus
11256 extern "C"
11258 #endif
11259 /* We use char because int might match the return type of a gcc2
11260 builtin and then its argument prototype would still apply. */
11261 char $ac_func ();
11262 /* The GNU C library defines this for functions which it implements
11263 to always fail with ENOSYS. Some functions are actually named
11264 something starting with __ and the normal name is an alias. */
11265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11266 choke me
11267 #else
11268 char (*f) () = $ac_func;
11269 #endif
11270 #ifdef __cplusplus
11272 #endif
11275 main ()
11277 return f != $ac_func;
11279 return 0;
11281 _ACEOF
11282 rm -f conftest.$ac_objext conftest$ac_exeext
11283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11284 (eval $ac_link) 2>conftest.er1
11285 ac_status=$?
11286 grep -v '^ *+' conftest.er1 >conftest.err
11287 rm -f conftest.er1
11288 cat conftest.err >&5
11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); } &&
11291 { ac_try='test -z "$ac_c_werror_flag"
11292 || test ! -s conftest.err'
11293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11294 (eval $ac_try) 2>&5
11295 ac_status=$?
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); }; } &&
11298 { ac_try='test -s conftest$ac_exeext'
11299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11300 (eval $ac_try) 2>&5
11301 ac_status=$?
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); }; }; then
11304 eval "$as_ac_var=yes"
11305 else
11306 echo "$as_me: failed program was:" >&5
11307 sed 's/^/| /' conftest.$ac_ext >&5
11309 eval "$as_ac_var=no"
11311 rm -f conftest.err conftest.$ac_objext \
11312 conftest$ac_exeext conftest.$ac_ext
11314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11315 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11316 if test `eval echo '${'$as_ac_var'}'` = yes; then
11317 cat >>confdefs.h <<_ACEOF
11318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11319 _ACEOF
11321 cat >conftest.$ac_ext <<_ACEOF
11322 /* confdefs.h. */
11323 _ACEOF
11324 cat confdefs.h >>conftest.$ac_ext
11325 cat >>conftest.$ac_ext <<_ACEOF
11326 /* end confdefs.h. */
11327 #include <unistd.h>
11329 _ACEOF
11330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11331 $EGREP "usleep" >/dev/null 2>&1; then
11334 cat >>confdefs.h <<\_ACEOF
11335 #define HAVE_USLEEP_DECL 1
11336 _ACEOF
11339 rm -f conftest*
11342 done
11345 # Look for these functions in the thread library, but only bother
11346 # if using POSIX threads.
11347 if test "$THREADS" = posix; then
11348 save_LIBS="$LIBS"
11349 LIBS="$LIBS $THREADLIBS"
11350 # Some POSIX thread systems don't have pthread_mutexattr_settype.
11351 # E.g., Solaris.
11354 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
11356 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11357 echo "$as_me:$LINENO: checking for $ac_func" >&5
11358 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11359 if eval "test \"\${$as_ac_var+set}\" = set"; then
11360 echo $ECHO_N "(cached) $ECHO_C" >&6
11361 else
11362 if test x$gcc_no_link = xyes; then
11363 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11364 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11365 { (exit 1); exit 1; }; }
11367 cat >conftest.$ac_ext <<_ACEOF
11368 /* confdefs.h. */
11369 _ACEOF
11370 cat confdefs.h >>conftest.$ac_ext
11371 cat >>conftest.$ac_ext <<_ACEOF
11372 /* end confdefs.h. */
11373 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11375 #define $ac_func innocuous_$ac_func
11377 /* System header to define __stub macros and hopefully few prototypes,
11378 which can conflict with char $ac_func (); below.
11379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11380 <limits.h> exists even on freestanding compilers. */
11382 #ifdef __STDC__
11383 # include <limits.h>
11384 #else
11385 # include <assert.h>
11386 #endif
11388 #undef $ac_func
11390 /* Override any gcc2 internal prototype to avoid an error. */
11391 #ifdef __cplusplus
11392 extern "C"
11394 #endif
11395 /* We use char because int might match the return type of a gcc2
11396 builtin and then its argument prototype would still apply. */
11397 char $ac_func ();
11398 /* The GNU C library defines this for functions which it implements
11399 to always fail with ENOSYS. Some functions are actually named
11400 something starting with __ and the normal name is an alias. */
11401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11402 choke me
11403 #else
11404 char (*f) () = $ac_func;
11405 #endif
11406 #ifdef __cplusplus
11408 #endif
11411 main ()
11413 return f != $ac_func;
11415 return 0;
11417 _ACEOF
11418 rm -f conftest.$ac_objext conftest$ac_exeext
11419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11420 (eval $ac_link) 2>conftest.er1
11421 ac_status=$?
11422 grep -v '^ *+' conftest.er1 >conftest.err
11423 rm -f conftest.er1
11424 cat conftest.err >&5
11425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426 (exit $ac_status); } &&
11427 { ac_try='test -z "$ac_c_werror_flag"
11428 || test ! -s conftest.err'
11429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11430 (eval $ac_try) 2>&5
11431 ac_status=$?
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); }; } &&
11434 { ac_try='test -s conftest$ac_exeext'
11435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11436 (eval $ac_try) 2>&5
11437 ac_status=$?
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); }; }; then
11440 eval "$as_ac_var=yes"
11441 else
11442 echo "$as_me: failed program was:" >&5
11443 sed 's/^/| /' conftest.$ac_ext >&5
11445 eval "$as_ac_var=no"
11447 rm -f conftest.err conftest.$ac_objext \
11448 conftest$ac_exeext conftest.$ac_ext
11450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11451 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11452 if test `eval echo '${'$as_ac_var'}'` = yes; then
11453 cat >>confdefs.h <<_ACEOF
11454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11455 _ACEOF
11458 done
11461 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
11462 # Solaris 7 the name librt is preferred.
11464 for ac_func in sched_yield
11466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11467 echo "$as_me:$LINENO: checking for $ac_func" >&5
11468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11469 if eval "test \"\${$as_ac_var+set}\" = set"; then
11470 echo $ECHO_N "(cached) $ECHO_C" >&6
11471 else
11472 if test x$gcc_no_link = xyes; then
11473 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11474 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11475 { (exit 1); exit 1; }; }
11477 cat >conftest.$ac_ext <<_ACEOF
11478 /* confdefs.h. */
11479 _ACEOF
11480 cat confdefs.h >>conftest.$ac_ext
11481 cat >>conftest.$ac_ext <<_ACEOF
11482 /* end confdefs.h. */
11483 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11485 #define $ac_func innocuous_$ac_func
11487 /* System header to define __stub macros and hopefully few prototypes,
11488 which can conflict with char $ac_func (); below.
11489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11490 <limits.h> exists even on freestanding compilers. */
11492 #ifdef __STDC__
11493 # include <limits.h>
11494 #else
11495 # include <assert.h>
11496 #endif
11498 #undef $ac_func
11500 /* Override any gcc2 internal prototype to avoid an error. */
11501 #ifdef __cplusplus
11502 extern "C"
11504 #endif
11505 /* We use char because int might match the return type of a gcc2
11506 builtin and then its argument prototype would still apply. */
11507 char $ac_func ();
11508 /* The GNU C library defines this for functions which it implements
11509 to always fail with ENOSYS. Some functions are actually named
11510 something starting with __ and the normal name is an alias. */
11511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11512 choke me
11513 #else
11514 char (*f) () = $ac_func;
11515 #endif
11516 #ifdef __cplusplus
11518 #endif
11521 main ()
11523 return f != $ac_func;
11525 return 0;
11527 _ACEOF
11528 rm -f conftest.$ac_objext conftest$ac_exeext
11529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11530 (eval $ac_link) 2>conftest.er1
11531 ac_status=$?
11532 grep -v '^ *+' conftest.er1 >conftest.err
11533 rm -f conftest.er1
11534 cat conftest.err >&5
11535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536 (exit $ac_status); } &&
11537 { ac_try='test -z "$ac_c_werror_flag"
11538 || test ! -s conftest.err'
11539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11540 (eval $ac_try) 2>&5
11541 ac_status=$?
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); }; } &&
11544 { ac_try='test -s conftest$ac_exeext'
11545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11546 (eval $ac_try) 2>&5
11547 ac_status=$?
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 (exit $ac_status); }; }; then
11550 eval "$as_ac_var=yes"
11551 else
11552 echo "$as_me: failed program was:" >&5
11553 sed 's/^/| /' conftest.$ac_ext >&5
11555 eval "$as_ac_var=no"
11557 rm -f conftest.err conftest.$ac_objext \
11558 conftest$ac_exeext conftest.$ac_ext
11560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11561 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11562 if test `eval echo '${'$as_ac_var'}'` = yes; then
11563 cat >>confdefs.h <<_ACEOF
11564 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11565 _ACEOF
11567 else
11569 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
11570 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
11571 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
11572 echo $ECHO_N "(cached) $ECHO_C" >&6
11573 else
11574 ac_check_lib_save_LIBS=$LIBS
11575 LIBS="-lrt $LIBS"
11576 if test x$gcc_no_link = xyes; then
11577 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11578 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11579 { (exit 1); exit 1; }; }
11581 cat >conftest.$ac_ext <<_ACEOF
11582 /* confdefs.h. */
11583 _ACEOF
11584 cat confdefs.h >>conftest.$ac_ext
11585 cat >>conftest.$ac_ext <<_ACEOF
11586 /* end confdefs.h. */
11588 /* Override any gcc2 internal prototype to avoid an error. */
11589 #ifdef __cplusplus
11590 extern "C"
11591 #endif
11592 /* We use char because int might match the return type of a gcc2
11593 builtin and then its argument prototype would still apply. */
11594 char sched_yield ();
11596 main ()
11598 sched_yield ();
11600 return 0;
11602 _ACEOF
11603 rm -f conftest.$ac_objext conftest$ac_exeext
11604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11605 (eval $ac_link) 2>conftest.er1
11606 ac_status=$?
11607 grep -v '^ *+' conftest.er1 >conftest.err
11608 rm -f conftest.er1
11609 cat conftest.err >&5
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 (exit $ac_status); } &&
11612 { ac_try='test -z "$ac_c_werror_flag"
11613 || test ! -s conftest.err'
11614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11615 (eval $ac_try) 2>&5
11616 ac_status=$?
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); }; } &&
11619 { ac_try='test -s conftest$ac_exeext'
11620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11621 (eval $ac_try) 2>&5
11622 ac_status=$?
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); }; }; then
11625 ac_cv_lib_rt_sched_yield=yes
11626 else
11627 echo "$as_me: failed program was:" >&5
11628 sed 's/^/| /' conftest.$ac_ext >&5
11630 ac_cv_lib_rt_sched_yield=no
11632 rm -f conftest.err conftest.$ac_objext \
11633 conftest$ac_exeext conftest.$ac_ext
11634 LIBS=$ac_check_lib_save_LIBS
11636 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
11637 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
11638 if test $ac_cv_lib_rt_sched_yield = yes; then
11640 cat >>confdefs.h <<\_ACEOF
11641 #define HAVE_SCHED_YIELD 1
11642 _ACEOF
11644 THREADLIBS="$THREADLIBS -lrt"
11645 THREADSPEC="$THREADSPEC -lrt"
11646 else
11648 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
11649 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
11650 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
11651 echo $ECHO_N "(cached) $ECHO_C" >&6
11652 else
11653 ac_check_lib_save_LIBS=$LIBS
11654 LIBS="-lposix4 $LIBS"
11655 if test x$gcc_no_link = xyes; then
11656 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11657 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11658 { (exit 1); exit 1; }; }
11660 cat >conftest.$ac_ext <<_ACEOF
11661 /* confdefs.h. */
11662 _ACEOF
11663 cat confdefs.h >>conftest.$ac_ext
11664 cat >>conftest.$ac_ext <<_ACEOF
11665 /* end confdefs.h. */
11667 /* Override any gcc2 internal prototype to avoid an error. */
11668 #ifdef __cplusplus
11669 extern "C"
11670 #endif
11671 /* We use char because int might match the return type of a gcc2
11672 builtin and then its argument prototype would still apply. */
11673 char sched_yield ();
11675 main ()
11677 sched_yield ();
11679 return 0;
11681 _ACEOF
11682 rm -f conftest.$ac_objext conftest$ac_exeext
11683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11684 (eval $ac_link) 2>conftest.er1
11685 ac_status=$?
11686 grep -v '^ *+' conftest.er1 >conftest.err
11687 rm -f conftest.er1
11688 cat conftest.err >&5
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); } &&
11691 { ac_try='test -z "$ac_c_werror_flag"
11692 || test ! -s conftest.err'
11693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11694 (eval $ac_try) 2>&5
11695 ac_status=$?
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); }; } &&
11698 { ac_try='test -s conftest$ac_exeext'
11699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11700 (eval $ac_try) 2>&5
11701 ac_status=$?
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); }; }; then
11704 ac_cv_lib_posix4_sched_yield=yes
11705 else
11706 echo "$as_me: failed program was:" >&5
11707 sed 's/^/| /' conftest.$ac_ext >&5
11709 ac_cv_lib_posix4_sched_yield=no
11711 rm -f conftest.err conftest.$ac_objext \
11712 conftest$ac_exeext conftest.$ac_ext
11713 LIBS=$ac_check_lib_save_LIBS
11715 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
11716 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
11717 if test $ac_cv_lib_posix4_sched_yield = yes; then
11719 cat >>confdefs.h <<\_ACEOF
11720 #define HAVE_SCHED_YIELD 1
11721 _ACEOF
11723 THREADLIBS="$THREADLIBS -lposix4"
11724 THREADSPEC="$THREADSPEC -lposix4"
11730 done
11732 LIBS="$save_LIBS"
11734 # We can save a little space at runtime if the mutex has m_count
11735 # or __m_count. This is a nice hack for Linux.
11736 cat >conftest.$ac_ext <<_ACEOF
11737 /* confdefs.h. */
11738 _ACEOF
11739 cat confdefs.h >>conftest.$ac_ext
11740 cat >>conftest.$ac_ext <<_ACEOF
11741 /* end confdefs.h. */
11742 #include <pthread.h>
11744 main ()
11747 extern pthread_mutex_t *mutex; int q = mutex->m_count;
11750 return 0;
11752 _ACEOF
11753 rm -f conftest.$ac_objext
11754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11755 (eval $ac_compile) 2>conftest.er1
11756 ac_status=$?
11757 grep -v '^ *+' conftest.er1 >conftest.err
11758 rm -f conftest.er1
11759 cat conftest.err >&5
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); } &&
11762 { ac_try='test -z "$ac_c_werror_flag"
11763 || test ! -s conftest.err'
11764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11765 (eval $ac_try) 2>&5
11766 ac_status=$?
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); }; } &&
11769 { ac_try='test -s conftest.$ac_objext'
11770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11771 (eval $ac_try) 2>&5
11772 ac_status=$?
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); }; }; then
11776 cat >>confdefs.h <<\_ACEOF
11777 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
11778 _ACEOF
11780 else
11781 echo "$as_me: failed program was:" >&5
11782 sed 's/^/| /' conftest.$ac_ext >&5
11785 cat >conftest.$ac_ext <<_ACEOF
11786 /* confdefs.h. */
11787 _ACEOF
11788 cat confdefs.h >>conftest.$ac_ext
11789 cat >>conftest.$ac_ext <<_ACEOF
11790 /* end confdefs.h. */
11791 #include <pthread.h>
11793 main ()
11796 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
11799 return 0;
11801 _ACEOF
11802 rm -f conftest.$ac_objext
11803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11804 (eval $ac_compile) 2>conftest.er1
11805 ac_status=$?
11806 grep -v '^ *+' conftest.er1 >conftest.err
11807 rm -f conftest.er1
11808 cat conftest.err >&5
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); } &&
11811 { ac_try='test -z "$ac_c_werror_flag"
11812 || test ! -s conftest.err'
11813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11814 (eval $ac_try) 2>&5
11815 ac_status=$?
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); }; } &&
11818 { ac_try='test -s conftest.$ac_objext'
11819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11820 (eval $ac_try) 2>&5
11821 ac_status=$?
11822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); }; }; then
11825 cat >>confdefs.h <<\_ACEOF
11826 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
11827 _ACEOF
11829 else
11830 echo "$as_me: failed program was:" >&5
11831 sed 's/^/| /' conftest.$ac_ext >&5
11834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11839 # We require a way to get the time.
11840 time_found=no
11844 for ac_func in gettimeofday time ftime
11846 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11847 echo "$as_me:$LINENO: checking for $ac_func" >&5
11848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11849 if eval "test \"\${$as_ac_var+set}\" = set"; then
11850 echo $ECHO_N "(cached) $ECHO_C" >&6
11851 else
11852 if test x$gcc_no_link = xyes; then
11853 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11854 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11855 { (exit 1); exit 1; }; }
11857 cat >conftest.$ac_ext <<_ACEOF
11858 /* confdefs.h. */
11859 _ACEOF
11860 cat confdefs.h >>conftest.$ac_ext
11861 cat >>conftest.$ac_ext <<_ACEOF
11862 /* end confdefs.h. */
11863 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11865 #define $ac_func innocuous_$ac_func
11867 /* System header to define __stub macros and hopefully few prototypes,
11868 which can conflict with char $ac_func (); below.
11869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11870 <limits.h> exists even on freestanding compilers. */
11872 #ifdef __STDC__
11873 # include <limits.h>
11874 #else
11875 # include <assert.h>
11876 #endif
11878 #undef $ac_func
11880 /* Override any gcc2 internal prototype to avoid an error. */
11881 #ifdef __cplusplus
11882 extern "C"
11884 #endif
11885 /* We use char because int might match the return type of a gcc2
11886 builtin and then its argument prototype would still apply. */
11887 char $ac_func ();
11888 /* The GNU C library defines this for functions which it implements
11889 to always fail with ENOSYS. Some functions are actually named
11890 something starting with __ and the normal name is an alias. */
11891 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11892 choke me
11893 #else
11894 char (*f) () = $ac_func;
11895 #endif
11896 #ifdef __cplusplus
11898 #endif
11901 main ()
11903 return f != $ac_func;
11905 return 0;
11907 _ACEOF
11908 rm -f conftest.$ac_objext conftest$ac_exeext
11909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11910 (eval $ac_link) 2>conftest.er1
11911 ac_status=$?
11912 grep -v '^ *+' conftest.er1 >conftest.err
11913 rm -f conftest.er1
11914 cat conftest.err >&5
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); } &&
11917 { ac_try='test -z "$ac_c_werror_flag"
11918 || test ! -s conftest.err'
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); }; } &&
11924 { ac_try='test -s conftest$ac_exeext'
11925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11926 (eval $ac_try) 2>&5
11927 ac_status=$?
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); }; }; then
11930 eval "$as_ac_var=yes"
11931 else
11932 echo "$as_me: failed program was:" >&5
11933 sed 's/^/| /' conftest.$ac_ext >&5
11935 eval "$as_ac_var=no"
11937 rm -f conftest.err conftest.$ac_objext \
11938 conftest$ac_exeext conftest.$ac_ext
11940 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11941 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11942 if test `eval echo '${'$as_ac_var'}'` = yes; then
11943 cat >>confdefs.h <<_ACEOF
11944 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11945 _ACEOF
11946 time_found=yes
11948 done
11950 if test "$time_found" = no; then
11951 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
11952 echo "$as_me: error: no function found to get the time" >&2;}
11953 { (exit 1); exit 1; }; }
11957 for ac_func in memmove
11959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11960 echo "$as_me:$LINENO: checking for $ac_func" >&5
11961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11962 if eval "test \"\${$as_ac_var+set}\" = set"; then
11963 echo $ECHO_N "(cached) $ECHO_C" >&6
11964 else
11965 if test x$gcc_no_link = xyes; then
11966 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11967 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11968 { (exit 1); exit 1; }; }
11970 cat >conftest.$ac_ext <<_ACEOF
11971 /* confdefs.h. */
11972 _ACEOF
11973 cat confdefs.h >>conftest.$ac_ext
11974 cat >>conftest.$ac_ext <<_ACEOF
11975 /* end confdefs.h. */
11976 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11978 #define $ac_func innocuous_$ac_func
11980 /* System header to define __stub macros and hopefully few prototypes,
11981 which can conflict with char $ac_func (); below.
11982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11983 <limits.h> exists even on freestanding compilers. */
11985 #ifdef __STDC__
11986 # include <limits.h>
11987 #else
11988 # include <assert.h>
11989 #endif
11991 #undef $ac_func
11993 /* Override any gcc2 internal prototype to avoid an error. */
11994 #ifdef __cplusplus
11995 extern "C"
11997 #endif
11998 /* We use char because int might match the return type of a gcc2
11999 builtin and then its argument prototype would still apply. */
12000 char $ac_func ();
12001 /* The GNU C library defines this for functions which it implements
12002 to always fail with ENOSYS. Some functions are actually named
12003 something starting with __ and the normal name is an alias. */
12004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12005 choke me
12006 #else
12007 char (*f) () = $ac_func;
12008 #endif
12009 #ifdef __cplusplus
12011 #endif
12014 main ()
12016 return f != $ac_func;
12018 return 0;
12020 _ACEOF
12021 rm -f conftest.$ac_objext conftest$ac_exeext
12022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12023 (eval $ac_link) 2>conftest.er1
12024 ac_status=$?
12025 grep -v '^ *+' conftest.er1 >conftest.err
12026 rm -f conftest.er1
12027 cat conftest.err >&5
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); } &&
12030 { ac_try='test -z "$ac_c_werror_flag"
12031 || test ! -s conftest.err'
12032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12033 (eval $ac_try) 2>&5
12034 ac_status=$?
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); }; } &&
12037 { ac_try='test -s conftest$ac_exeext'
12038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12039 (eval $ac_try) 2>&5
12040 ac_status=$?
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); }; }; then
12043 eval "$as_ac_var=yes"
12044 else
12045 echo "$as_me: failed program was:" >&5
12046 sed 's/^/| /' conftest.$ac_ext >&5
12048 eval "$as_ac_var=no"
12050 rm -f conftest.err conftest.$ac_objext \
12051 conftest$ac_exeext conftest.$ac_ext
12053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12054 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12055 if test `eval echo '${'$as_ac_var'}'` = yes; then
12056 cat >>confdefs.h <<_ACEOF
12057 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12058 _ACEOF
12061 done
12064 # We require memcpy.
12065 memcpy_found=no
12067 for ac_func in memcpy
12069 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12070 echo "$as_me:$LINENO: checking for $ac_func" >&5
12071 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12072 if eval "test \"\${$as_ac_var+set}\" = set"; then
12073 echo $ECHO_N "(cached) $ECHO_C" >&6
12074 else
12075 if test x$gcc_no_link = xyes; then
12076 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12077 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12078 { (exit 1); exit 1; }; }
12080 cat >conftest.$ac_ext <<_ACEOF
12081 /* confdefs.h. */
12082 _ACEOF
12083 cat confdefs.h >>conftest.$ac_ext
12084 cat >>conftest.$ac_ext <<_ACEOF
12085 /* end confdefs.h. */
12086 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12088 #define $ac_func innocuous_$ac_func
12090 /* System header to define __stub macros and hopefully few prototypes,
12091 which can conflict with char $ac_func (); below.
12092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12093 <limits.h> exists even on freestanding compilers. */
12095 #ifdef __STDC__
12096 # include <limits.h>
12097 #else
12098 # include <assert.h>
12099 #endif
12101 #undef $ac_func
12103 /* Override any gcc2 internal prototype to avoid an error. */
12104 #ifdef __cplusplus
12105 extern "C"
12107 #endif
12108 /* We use char because int might match the return type of a gcc2
12109 builtin and then its argument prototype would still apply. */
12110 char $ac_func ();
12111 /* The GNU C library defines this for functions which it implements
12112 to always fail with ENOSYS. Some functions are actually named
12113 something starting with __ and the normal name is an alias. */
12114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12115 choke me
12116 #else
12117 char (*f) () = $ac_func;
12118 #endif
12119 #ifdef __cplusplus
12121 #endif
12124 main ()
12126 return f != $ac_func;
12128 return 0;
12130 _ACEOF
12131 rm -f conftest.$ac_objext conftest$ac_exeext
12132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12133 (eval $ac_link) 2>conftest.er1
12134 ac_status=$?
12135 grep -v '^ *+' conftest.er1 >conftest.err
12136 rm -f conftest.er1
12137 cat conftest.err >&5
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); } &&
12140 { ac_try='test -z "$ac_c_werror_flag"
12141 || test ! -s conftest.err'
12142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12143 (eval $ac_try) 2>&5
12144 ac_status=$?
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); }; } &&
12147 { ac_try='test -s conftest$ac_exeext'
12148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12149 (eval $ac_try) 2>&5
12150 ac_status=$?
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); }; }; then
12153 eval "$as_ac_var=yes"
12154 else
12155 echo "$as_me: failed program was:" >&5
12156 sed 's/^/| /' conftest.$ac_ext >&5
12158 eval "$as_ac_var=no"
12160 rm -f conftest.err conftest.$ac_objext \
12161 conftest$ac_exeext conftest.$ac_ext
12163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12164 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12165 if test `eval echo '${'$as_ac_var'}'` = yes; then
12166 cat >>confdefs.h <<_ACEOF
12167 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12168 _ACEOF
12169 memcpy_found=yes
12171 done
12173 if test "$memcpy_found" = no; then
12174 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
12175 echo "$as_me: error: memcpy is required" >&2;}
12176 { (exit 1); exit 1; }; }
12179 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12180 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12181 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12182 echo $ECHO_N "(cached) $ECHO_C" >&6
12183 else
12184 ac_check_lib_save_LIBS=$LIBS
12185 LIBS="-ldl $LIBS"
12186 if test x$gcc_no_link = xyes; then
12187 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12188 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12189 { (exit 1); exit 1; }; }
12191 cat >conftest.$ac_ext <<_ACEOF
12192 /* confdefs.h. */
12193 _ACEOF
12194 cat confdefs.h >>conftest.$ac_ext
12195 cat >>conftest.$ac_ext <<_ACEOF
12196 /* end confdefs.h. */
12198 /* Override any gcc2 internal prototype to avoid an error. */
12199 #ifdef __cplusplus
12200 extern "C"
12201 #endif
12202 /* We use char because int might match the return type of a gcc2
12203 builtin and then its argument prototype would still apply. */
12204 char dlopen ();
12206 main ()
12208 dlopen ();
12210 return 0;
12212 _ACEOF
12213 rm -f conftest.$ac_objext conftest$ac_exeext
12214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12215 (eval $ac_link) 2>conftest.er1
12216 ac_status=$?
12217 grep -v '^ *+' conftest.er1 >conftest.err
12218 rm -f conftest.er1
12219 cat conftest.err >&5
12220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221 (exit $ac_status); } &&
12222 { ac_try='test -z "$ac_c_werror_flag"
12223 || test ! -s conftest.err'
12224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12225 (eval $ac_try) 2>&5
12226 ac_status=$?
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); }; } &&
12229 { ac_try='test -s conftest$ac_exeext'
12230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12231 (eval $ac_try) 2>&5
12232 ac_status=$?
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); }; }; then
12235 ac_cv_lib_dl_dlopen=yes
12236 else
12237 echo "$as_me: failed program was:" >&5
12238 sed 's/^/| /' conftest.$ac_ext >&5
12240 ac_cv_lib_dl_dlopen=no
12242 rm -f conftest.err conftest.$ac_objext \
12243 conftest$ac_exeext conftest.$ac_ext
12244 LIBS=$ac_check_lib_save_LIBS
12246 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12247 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12248 if test $ac_cv_lib_dl_dlopen = yes; then
12251 cat >>confdefs.h <<\_ACEOF
12252 #define HAVE_DLOPEN 1
12253 _ACEOF
12258 # Some library-finding code we stole from Tcl.
12259 #--------------------------------------------------------------------
12260 # Check for the existence of the -lsocket and -lnsl libraries.
12261 # The order here is important, so that they end up in the right
12262 # order in the command line generated by make. Here are some
12263 # special considerations:
12264 # 1. Use "connect" and "accept" to check for -lsocket, and
12265 # "gethostbyname" to check for -lnsl.
12266 # 2. Use each function name only once: can't redo a check because
12267 # autoconf caches the results of the last check and won't redo it.
12268 # 3. Use -lnsl and -lsocket only if they supply procedures that
12269 # aren't already present in the normal libraries. This is because
12270 # IRIX 5.2 has libraries, but they aren't needed and they're
12271 # bogus: they goof up name resolution if used.
12272 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
12273 # To get around this problem, check for both libraries together
12274 # if -lsocket doesn't work by itself.
12275 #--------------------------------------------------------------------
12277 echo "$as_me:$LINENO: checking for socket libraries" >&5
12278 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
12279 if test "${gcj_cv_lib_sockets+set}" = set; then
12280 echo $ECHO_N "(cached) $ECHO_C" >&6
12281 else
12282 gcj_cv_lib_sockets=
12283 gcj_checkBoth=0
12284 unset ac_cv_func_connect
12285 echo "$as_me:$LINENO: checking for connect" >&5
12286 echo $ECHO_N "checking for connect... $ECHO_C" >&6
12287 if test "${ac_cv_func_connect+set}" = set; then
12288 echo $ECHO_N "(cached) $ECHO_C" >&6
12289 else
12290 if test x$gcc_no_link = xyes; then
12291 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12292 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12293 { (exit 1); exit 1; }; }
12295 cat >conftest.$ac_ext <<_ACEOF
12296 /* confdefs.h. */
12297 _ACEOF
12298 cat confdefs.h >>conftest.$ac_ext
12299 cat >>conftest.$ac_ext <<_ACEOF
12300 /* end confdefs.h. */
12301 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
12302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12303 #define connect innocuous_connect
12305 /* System header to define __stub macros and hopefully few prototypes,
12306 which can conflict with char connect (); below.
12307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12308 <limits.h> exists even on freestanding compilers. */
12310 #ifdef __STDC__
12311 # include <limits.h>
12312 #else
12313 # include <assert.h>
12314 #endif
12316 #undef connect
12318 /* Override any gcc2 internal prototype to avoid an error. */
12319 #ifdef __cplusplus
12320 extern "C"
12322 #endif
12323 /* We use char because int might match the return type of a gcc2
12324 builtin and then its argument prototype would still apply. */
12325 char connect ();
12326 /* The GNU C library defines this for functions which it implements
12327 to always fail with ENOSYS. Some functions are actually named
12328 something starting with __ and the normal name is an alias. */
12329 #if defined (__stub_connect) || defined (__stub___connect)
12330 choke me
12331 #else
12332 char (*f) () = connect;
12333 #endif
12334 #ifdef __cplusplus
12336 #endif
12339 main ()
12341 return f != connect;
12343 return 0;
12345 _ACEOF
12346 rm -f conftest.$ac_objext conftest$ac_exeext
12347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12348 (eval $ac_link) 2>conftest.er1
12349 ac_status=$?
12350 grep -v '^ *+' conftest.er1 >conftest.err
12351 rm -f conftest.er1
12352 cat conftest.err >&5
12353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354 (exit $ac_status); } &&
12355 { ac_try='test -z "$ac_c_werror_flag"
12356 || test ! -s conftest.err'
12357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12358 (eval $ac_try) 2>&5
12359 ac_status=$?
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); }; } &&
12362 { ac_try='test -s conftest$ac_exeext'
12363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12364 (eval $ac_try) 2>&5
12365 ac_status=$?
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); }; }; then
12368 ac_cv_func_connect=yes
12369 else
12370 echo "$as_me: failed program was:" >&5
12371 sed 's/^/| /' conftest.$ac_ext >&5
12373 ac_cv_func_connect=no
12375 rm -f conftest.err conftest.$ac_objext \
12376 conftest$ac_exeext conftest.$ac_ext
12378 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
12379 echo "${ECHO_T}$ac_cv_func_connect" >&6
12380 if test $ac_cv_func_connect = yes; then
12381 gcj_checkSocket=0
12382 else
12383 gcj_checkSocket=1
12386 if test "$gcj_checkSocket" = 1; then
12387 unset ac_cv_func_connect
12388 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
12389 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
12390 if test "${ac_cv_lib_socket_main+set}" = set; then
12391 echo $ECHO_N "(cached) $ECHO_C" >&6
12392 else
12393 ac_check_lib_save_LIBS=$LIBS
12394 LIBS="-lsocket $LIBS"
12395 if test x$gcc_no_link = xyes; then
12396 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12397 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12398 { (exit 1); exit 1; }; }
12400 cat >conftest.$ac_ext <<_ACEOF
12401 /* confdefs.h. */
12402 _ACEOF
12403 cat confdefs.h >>conftest.$ac_ext
12404 cat >>conftest.$ac_ext <<_ACEOF
12405 /* end confdefs.h. */
12409 main ()
12411 main ();
12413 return 0;
12415 _ACEOF
12416 rm -f conftest.$ac_objext conftest$ac_exeext
12417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12418 (eval $ac_link) 2>conftest.er1
12419 ac_status=$?
12420 grep -v '^ *+' conftest.er1 >conftest.err
12421 rm -f conftest.er1
12422 cat conftest.err >&5
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); } &&
12425 { ac_try='test -z "$ac_c_werror_flag"
12426 || test ! -s conftest.err'
12427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12428 (eval $ac_try) 2>&5
12429 ac_status=$?
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); }; } &&
12432 { ac_try='test -s conftest$ac_exeext'
12433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12434 (eval $ac_try) 2>&5
12435 ac_status=$?
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); }; }; then
12438 ac_cv_lib_socket_main=yes
12439 else
12440 echo "$as_me: failed program was:" >&5
12441 sed 's/^/| /' conftest.$ac_ext >&5
12443 ac_cv_lib_socket_main=no
12445 rm -f conftest.err conftest.$ac_objext \
12446 conftest$ac_exeext conftest.$ac_ext
12447 LIBS=$ac_check_lib_save_LIBS
12449 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
12450 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
12451 if test $ac_cv_lib_socket_main = yes; then
12452 gcj_cv_lib_sockets="-lsocket"
12453 else
12454 gcj_checkBoth=1
12458 if test "$gcj_checkBoth" = 1; then
12459 gcj_oldLibs=$LIBS
12460 LIBS="$LIBS -lsocket -lnsl"
12461 unset ac_cv_func_accept
12462 echo "$as_me:$LINENO: checking for accept" >&5
12463 echo $ECHO_N "checking for accept... $ECHO_C" >&6
12464 if test "${ac_cv_func_accept+set}" = set; then
12465 echo $ECHO_N "(cached) $ECHO_C" >&6
12466 else
12467 if test x$gcc_no_link = xyes; then
12468 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12469 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12470 { (exit 1); exit 1; }; }
12472 cat >conftest.$ac_ext <<_ACEOF
12473 /* confdefs.h. */
12474 _ACEOF
12475 cat confdefs.h >>conftest.$ac_ext
12476 cat >>conftest.$ac_ext <<_ACEOF
12477 /* end confdefs.h. */
12478 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
12479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12480 #define accept innocuous_accept
12482 /* System header to define __stub macros and hopefully few prototypes,
12483 which can conflict with char accept (); below.
12484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12485 <limits.h> exists even on freestanding compilers. */
12487 #ifdef __STDC__
12488 # include <limits.h>
12489 #else
12490 # include <assert.h>
12491 #endif
12493 #undef accept
12495 /* Override any gcc2 internal prototype to avoid an error. */
12496 #ifdef __cplusplus
12497 extern "C"
12499 #endif
12500 /* We use char because int might match the return type of a gcc2
12501 builtin and then its argument prototype would still apply. */
12502 char accept ();
12503 /* The GNU C library defines this for functions which it implements
12504 to always fail with ENOSYS. Some functions are actually named
12505 something starting with __ and the normal name is an alias. */
12506 #if defined (__stub_accept) || defined (__stub___accept)
12507 choke me
12508 #else
12509 char (*f) () = accept;
12510 #endif
12511 #ifdef __cplusplus
12513 #endif
12516 main ()
12518 return f != accept;
12520 return 0;
12522 _ACEOF
12523 rm -f conftest.$ac_objext conftest$ac_exeext
12524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12525 (eval $ac_link) 2>conftest.er1
12526 ac_status=$?
12527 grep -v '^ *+' conftest.er1 >conftest.err
12528 rm -f conftest.er1
12529 cat conftest.err >&5
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); } &&
12532 { ac_try='test -z "$ac_c_werror_flag"
12533 || test ! -s conftest.err'
12534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12535 (eval $ac_try) 2>&5
12536 ac_status=$?
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); }; } &&
12539 { ac_try='test -s conftest$ac_exeext'
12540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12541 (eval $ac_try) 2>&5
12542 ac_status=$?
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); }; }; then
12545 ac_cv_func_accept=yes
12546 else
12547 echo "$as_me: failed program was:" >&5
12548 sed 's/^/| /' conftest.$ac_ext >&5
12550 ac_cv_func_accept=no
12552 rm -f conftest.err conftest.$ac_objext \
12553 conftest$ac_exeext conftest.$ac_ext
12555 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
12556 echo "${ECHO_T}$ac_cv_func_accept" >&6
12557 if test $ac_cv_func_accept = yes; then
12558 gcj_checkNsl=0
12559 gcj_cv_lib_sockets="-lsocket -lnsl"
12562 unset ac_cv_func_accept
12563 LIBS=$gcj_oldLibs
12565 unset ac_cv_func_gethostbyname
12566 gcj_oldLibs=$LIBS
12567 LIBS="$LIBS $gcj_cv_lib_sockets"
12568 echo "$as_me:$LINENO: checking for gethostbyname" >&5
12569 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
12570 if test "${ac_cv_func_gethostbyname+set}" = set; then
12571 echo $ECHO_N "(cached) $ECHO_C" >&6
12572 else
12573 if test x$gcc_no_link = xyes; then
12574 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12575 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12576 { (exit 1); exit 1; }; }
12578 cat >conftest.$ac_ext <<_ACEOF
12579 /* confdefs.h. */
12580 _ACEOF
12581 cat confdefs.h >>conftest.$ac_ext
12582 cat >>conftest.$ac_ext <<_ACEOF
12583 /* end confdefs.h. */
12584 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
12585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12586 #define gethostbyname innocuous_gethostbyname
12588 /* System header to define __stub macros and hopefully few prototypes,
12589 which can conflict with char gethostbyname (); below.
12590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12591 <limits.h> exists even on freestanding compilers. */
12593 #ifdef __STDC__
12594 # include <limits.h>
12595 #else
12596 # include <assert.h>
12597 #endif
12599 #undef gethostbyname
12601 /* Override any gcc2 internal prototype to avoid an error. */
12602 #ifdef __cplusplus
12603 extern "C"
12605 #endif
12606 /* We use char because int might match the return type of a gcc2
12607 builtin and then its argument prototype would still apply. */
12608 char gethostbyname ();
12609 /* The GNU C library defines this for functions which it implements
12610 to always fail with ENOSYS. Some functions are actually named
12611 something starting with __ and the normal name is an alias. */
12612 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
12613 choke me
12614 #else
12615 char (*f) () = gethostbyname;
12616 #endif
12617 #ifdef __cplusplus
12619 #endif
12622 main ()
12624 return f != gethostbyname;
12626 return 0;
12628 _ACEOF
12629 rm -f conftest.$ac_objext conftest$ac_exeext
12630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12631 (eval $ac_link) 2>conftest.er1
12632 ac_status=$?
12633 grep -v '^ *+' conftest.er1 >conftest.err
12634 rm -f conftest.er1
12635 cat conftest.err >&5
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); } &&
12638 { ac_try='test -z "$ac_c_werror_flag"
12639 || test ! -s conftest.err'
12640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12641 (eval $ac_try) 2>&5
12642 ac_status=$?
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); }; } &&
12645 { ac_try='test -s conftest$ac_exeext'
12646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12647 (eval $ac_try) 2>&5
12648 ac_status=$?
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); }; }; then
12651 ac_cv_func_gethostbyname=yes
12652 else
12653 echo "$as_me: failed program was:" >&5
12654 sed 's/^/| /' conftest.$ac_ext >&5
12656 ac_cv_func_gethostbyname=no
12658 rm -f conftest.err conftest.$ac_objext \
12659 conftest$ac_exeext conftest.$ac_ext
12661 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
12662 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
12663 if test $ac_cv_func_gethostbyname = yes; then
12665 else
12666 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
12667 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
12668 if test "${ac_cv_lib_nsl_main+set}" = set; then
12669 echo $ECHO_N "(cached) $ECHO_C" >&6
12670 else
12671 ac_check_lib_save_LIBS=$LIBS
12672 LIBS="-lnsl $LIBS"
12673 if test x$gcc_no_link = xyes; then
12674 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12675 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12676 { (exit 1); exit 1; }; }
12678 cat >conftest.$ac_ext <<_ACEOF
12679 /* confdefs.h. */
12680 _ACEOF
12681 cat confdefs.h >>conftest.$ac_ext
12682 cat >>conftest.$ac_ext <<_ACEOF
12683 /* end confdefs.h. */
12687 main ()
12689 main ();
12691 return 0;
12693 _ACEOF
12694 rm -f conftest.$ac_objext conftest$ac_exeext
12695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12696 (eval $ac_link) 2>conftest.er1
12697 ac_status=$?
12698 grep -v '^ *+' conftest.er1 >conftest.err
12699 rm -f conftest.er1
12700 cat conftest.err >&5
12701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702 (exit $ac_status); } &&
12703 { ac_try='test -z "$ac_c_werror_flag"
12704 || test ! -s conftest.err'
12705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12706 (eval $ac_try) 2>&5
12707 ac_status=$?
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); }; } &&
12710 { ac_try='test -s conftest$ac_exeext'
12711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12712 (eval $ac_try) 2>&5
12713 ac_status=$?
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); }; }; then
12716 ac_cv_lib_nsl_main=yes
12717 else
12718 echo "$as_me: failed program was:" >&5
12719 sed 's/^/| /' conftest.$ac_ext >&5
12721 ac_cv_lib_nsl_main=no
12723 rm -f conftest.err conftest.$ac_objext \
12724 conftest$ac_exeext conftest.$ac_ext
12725 LIBS=$ac_check_lib_save_LIBS
12727 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
12728 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
12729 if test $ac_cv_lib_nsl_main = yes; then
12730 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
12735 unset ac_cv_func_gethostbyname
12736 LIBS=$gcj_oldLIBS
12739 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
12740 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
12741 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
12743 if test "$with_system_zlib" = yes; then
12744 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
12745 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
12746 if test "${ac_cv_lib_z_deflate+set}" = set; then
12747 echo $ECHO_N "(cached) $ECHO_C" >&6
12748 else
12749 ac_check_lib_save_LIBS=$LIBS
12750 LIBS="-lz $LIBS"
12751 if test x$gcc_no_link = xyes; then
12752 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12753 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12754 { (exit 1); exit 1; }; }
12756 cat >conftest.$ac_ext <<_ACEOF
12757 /* confdefs.h. */
12758 _ACEOF
12759 cat confdefs.h >>conftest.$ac_ext
12760 cat >>conftest.$ac_ext <<_ACEOF
12761 /* end confdefs.h. */
12763 /* Override any gcc2 internal prototype to avoid an error. */
12764 #ifdef __cplusplus
12765 extern "C"
12766 #endif
12767 /* We use char because int might match the return type of a gcc2
12768 builtin and then its argument prototype would still apply. */
12769 char deflate ();
12771 main ()
12773 deflate ();
12775 return 0;
12777 _ACEOF
12778 rm -f conftest.$ac_objext conftest$ac_exeext
12779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12780 (eval $ac_link) 2>conftest.er1
12781 ac_status=$?
12782 grep -v '^ *+' conftest.er1 >conftest.err
12783 rm -f conftest.er1
12784 cat conftest.err >&5
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); } &&
12787 { ac_try='test -z "$ac_c_werror_flag"
12788 || test ! -s conftest.err'
12789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12790 (eval $ac_try) 2>&5
12791 ac_status=$?
12792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); }; } &&
12794 { ac_try='test -s conftest$ac_exeext'
12795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12796 (eval $ac_try) 2>&5
12797 ac_status=$?
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); }; }; then
12800 ac_cv_lib_z_deflate=yes
12801 else
12802 echo "$as_me: failed program was:" >&5
12803 sed 's/^/| /' conftest.$ac_ext >&5
12805 ac_cv_lib_z_deflate=no
12807 rm -f conftest.err conftest.$ac_objext \
12808 conftest$ac_exeext conftest.$ac_ext
12809 LIBS=$ac_check_lib_save_LIBS
12811 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
12812 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
12813 if test $ac_cv_lib_z_deflate = yes; then
12814 ZLIBSPEC=-lz
12815 else
12816 ZLIBSPEC=
12821 # Test for Gtk stuff, if asked for.
12822 if test "$use_gtk_awt" = yes; then
12824 succeeded=no
12826 if test -z "$PKG_CONFIG"; then
12827 # Extract the first word of "pkg-config", so it can be a program name with args.
12828 set dummy pkg-config; ac_word=$2
12829 echo "$as_me:$LINENO: checking for $ac_word" >&5
12830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12831 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12832 echo $ECHO_N "(cached) $ECHO_C" >&6
12833 else
12834 case $PKG_CONFIG in
12835 [\\/]* | ?:[\\/]*)
12836 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12840 for as_dir in $PATH
12842 IFS=$as_save_IFS
12843 test -z "$as_dir" && as_dir=.
12844 for ac_exec_ext in '' $ac_executable_extensions; do
12845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12846 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12848 break 2
12850 done
12851 done
12853 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12855 esac
12857 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12859 if test -n "$PKG_CONFIG"; then
12860 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12861 echo "${ECHO_T}$PKG_CONFIG" >&6
12862 else
12863 echo "$as_me:$LINENO: result: no" >&5
12864 echo "${ECHO_T}no" >&6
12869 if test "$PKG_CONFIG" = "no" ; then
12870 echo "*** The pkg-config script could not be found. Make sure it is"
12871 echo "*** in your path, or set the PKG_CONFIG environment variable"
12872 echo "*** to the full path to pkg-config."
12873 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12874 else
12875 PKG_CONFIG_MIN_VERSION=0.9.0
12876 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12877 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
12878 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
12880 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
12881 echo "$as_me:$LINENO: result: yes" >&5
12882 echo "${ECHO_T}yes" >&6
12883 succeeded=yes
12885 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
12886 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
12887 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
12888 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
12889 echo "${ECHO_T}$GTK_CFLAGS" >&6
12891 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
12892 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
12893 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
12894 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
12895 echo "${ECHO_T}$GTK_LIBS" >&6
12896 else
12897 GTK_CFLAGS=""
12898 GTK_LIBS=""
12899 ## If we have a custom action on failure, don't print errors, but
12900 ## do set a variable so people can do so.
12901 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
12902 echo $GTK_PKG_ERRORS
12907 else
12908 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12909 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12913 if test $succeeded = yes; then
12915 else
12916 { { 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
12917 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;}
12918 { (exit 1); exit 1; }; }
12925 succeeded=no
12927 if test -z "$PKG_CONFIG"; then
12928 # Extract the first word of "pkg-config", so it can be a program name with args.
12929 set dummy pkg-config; ac_word=$2
12930 echo "$as_me:$LINENO: checking for $ac_word" >&5
12931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12932 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12933 echo $ECHO_N "(cached) $ECHO_C" >&6
12934 else
12935 case $PKG_CONFIG in
12936 [\\/]* | ?:[\\/]*)
12937 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12941 for as_dir in $PATH
12943 IFS=$as_save_IFS
12944 test -z "$as_dir" && as_dir=.
12945 for ac_exec_ext in '' $ac_executable_extensions; do
12946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12947 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12949 break 2
12951 done
12952 done
12954 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12956 esac
12958 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12960 if test -n "$PKG_CONFIG"; then
12961 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12962 echo "${ECHO_T}$PKG_CONFIG" >&6
12963 else
12964 echo "$as_me:$LINENO: result: no" >&5
12965 echo "${ECHO_T}no" >&6
12970 if test "$PKG_CONFIG" = "no" ; then
12971 echo "*** The pkg-config script could not be found. Make sure it is"
12972 echo "*** in your path, or set the PKG_CONFIG environment variable"
12973 echo "*** to the full path to pkg-config."
12974 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12975 else
12976 PKG_CONFIG_MIN_VERSION=0.9.0
12977 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12978 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
12979 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
12981 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
12982 echo "$as_me:$LINENO: result: yes" >&5
12983 echo "${ECHO_T}yes" >&6
12984 succeeded=yes
12986 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
12987 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
12988 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
12989 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
12990 echo "${ECHO_T}$GLIB_CFLAGS" >&6
12992 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
12993 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
12994 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
12995 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
12996 echo "${ECHO_T}$GLIB_LIBS" >&6
12997 else
12998 GLIB_CFLAGS=""
12999 GLIB_LIBS=""
13000 ## If we have a custom action on failure, don't print errors, but
13001 ## do set a variable so people can do so.
13002 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13003 echo $GLIB_PKG_ERRORS
13008 else
13009 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13010 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13014 if test $succeeded = yes; then
13016 else
13017 { { 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
13018 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;}
13019 { (exit 1); exit 1; }; }
13026 succeeded=no
13028 if test -z "$PKG_CONFIG"; then
13029 # Extract the first word of "pkg-config", so it can be a program name with args.
13030 set dummy pkg-config; ac_word=$2
13031 echo "$as_me:$LINENO: checking for $ac_word" >&5
13032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13033 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13034 echo $ECHO_N "(cached) $ECHO_C" >&6
13035 else
13036 case $PKG_CONFIG in
13037 [\\/]* | ?:[\\/]*)
13038 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13042 for as_dir in $PATH
13044 IFS=$as_save_IFS
13045 test -z "$as_dir" && as_dir=.
13046 for ac_exec_ext in '' $ac_executable_extensions; do
13047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13048 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13050 break 2
13052 done
13053 done
13055 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13057 esac
13059 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13061 if test -n "$PKG_CONFIG"; then
13062 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13063 echo "${ECHO_T}$PKG_CONFIG" >&6
13064 else
13065 echo "$as_me:$LINENO: result: no" >&5
13066 echo "${ECHO_T}no" >&6
13071 if test "$PKG_CONFIG" = "no" ; then
13072 echo "*** The pkg-config script could not be found. Make sure it is"
13073 echo "*** in your path, or set the PKG_CONFIG environment variable"
13074 echo "*** to the full path to pkg-config."
13075 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13076 else
13077 PKG_CONFIG_MIN_VERSION=0.9.0
13078 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13079 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
13080 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
13082 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
13083 echo "$as_me:$LINENO: result: yes" >&5
13084 echo "${ECHO_T}yes" >&6
13085 succeeded=yes
13087 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
13088 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
13089 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
13090 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
13091 echo "${ECHO_T}$LIBART_CFLAGS" >&6
13093 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
13094 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
13095 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
13096 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
13097 echo "${ECHO_T}$LIBART_LIBS" >&6
13098 else
13099 LIBART_CFLAGS=""
13100 LIBART_LIBS=""
13101 ## If we have a custom action on failure, don't print errors, but
13102 ## do set a variable so people can do so.
13103 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
13104 echo $LIBART_PKG_ERRORS
13109 else
13110 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13111 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13115 if test $succeeded = yes; then
13117 else
13118 { { 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
13119 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;}
13120 { (exit 1); exit 1; }; }
13126 # We require the XTest Extension to support java.awt.Robot.
13127 echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
13128 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
13129 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
13130 echo $ECHO_N "(cached) $ECHO_C" >&6
13131 else
13132 ac_check_lib_save_LIBS=$LIBS
13133 LIBS="-lXtst ${X_LIBS} $LIBS"
13134 if test x$gcc_no_link = xyes; then
13135 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13136 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13137 { (exit 1); exit 1; }; }
13139 cat >conftest.$ac_ext <<_ACEOF
13140 /* confdefs.h. */
13141 _ACEOF
13142 cat confdefs.h >>conftest.$ac_ext
13143 cat >>conftest.$ac_ext <<_ACEOF
13144 /* end confdefs.h. */
13146 /* Override any gcc2 internal prototype to avoid an error. */
13147 #ifdef __cplusplus
13148 extern "C"
13149 #endif
13150 /* We use char because int might match the return type of a gcc2
13151 builtin and then its argument prototype would still apply. */
13152 char XTestQueryExtension ();
13154 main ()
13156 XTestQueryExtension ();
13158 return 0;
13160 _ACEOF
13161 rm -f conftest.$ac_objext conftest$ac_exeext
13162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13163 (eval $ac_link) 2>conftest.er1
13164 ac_status=$?
13165 grep -v '^ *+' conftest.er1 >conftest.err
13166 rm -f conftest.er1
13167 cat conftest.err >&5
13168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); } &&
13170 { ac_try='test -z "$ac_c_werror_flag"
13171 || test ! -s conftest.err'
13172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13173 (eval $ac_try) 2>&5
13174 ac_status=$?
13175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); }; } &&
13177 { ac_try='test -s conftest$ac_exeext'
13178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13179 (eval $ac_try) 2>&5
13180 ac_status=$?
13181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182 (exit $ac_status); }; }; then
13183 ac_cv_lib_Xtst_XTestQueryExtension=yes
13184 else
13185 echo "$as_me: failed program was:" >&5
13186 sed 's/^/| /' conftest.$ac_ext >&5
13188 ac_cv_lib_Xtst_XTestQueryExtension=no
13190 rm -f conftest.err conftest.$ac_objext \
13191 conftest$ac_exeext conftest.$ac_ext
13192 LIBS=$ac_check_lib_save_LIBS
13194 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
13195 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
13196 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
13197 true
13198 else
13199 { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
13200 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
13201 { (exit 1); exit 1; }; }
13206 # On Solaris, and maybe other architectures, the Boehm collector
13207 # requires -ldl.
13208 if test "$GC" = boehm; then
13209 echo "$as_me:$LINENO: checking for main in -ldl" >&5
13210 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
13211 if test "${ac_cv_lib_dl_main+set}" = set; then
13212 echo $ECHO_N "(cached) $ECHO_C" >&6
13213 else
13214 ac_check_lib_save_LIBS=$LIBS
13215 LIBS="-ldl $LIBS"
13216 if test x$gcc_no_link = xyes; then
13217 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13218 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13219 { (exit 1); exit 1; }; }
13221 cat >conftest.$ac_ext <<_ACEOF
13222 /* confdefs.h. */
13223 _ACEOF
13224 cat confdefs.h >>conftest.$ac_ext
13225 cat >>conftest.$ac_ext <<_ACEOF
13226 /* end confdefs.h. */
13230 main ()
13232 main ();
13234 return 0;
13236 _ACEOF
13237 rm -f conftest.$ac_objext conftest$ac_exeext
13238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13239 (eval $ac_link) 2>conftest.er1
13240 ac_status=$?
13241 grep -v '^ *+' conftest.er1 >conftest.err
13242 rm -f conftest.er1
13243 cat conftest.err >&5
13244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245 (exit $ac_status); } &&
13246 { ac_try='test -z "$ac_c_werror_flag"
13247 || test ! -s conftest.err'
13248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13249 (eval $ac_try) 2>&5
13250 ac_status=$?
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); }; } &&
13253 { ac_try='test -s conftest$ac_exeext'
13254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13255 (eval $ac_try) 2>&5
13256 ac_status=$?
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); }; }; then
13259 ac_cv_lib_dl_main=yes
13260 else
13261 echo "$as_me: failed program was:" >&5
13262 sed 's/^/| /' conftest.$ac_ext >&5
13264 ac_cv_lib_dl_main=no
13266 rm -f conftest.err conftest.$ac_objext \
13267 conftest$ac_exeext conftest.$ac_ext
13268 LIBS=$ac_check_lib_save_LIBS
13270 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
13271 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
13272 if test $ac_cv_lib_dl_main = yes; then
13273 SYSTEMSPEC="$SYSTEMSPEC -ldl"
13280 if test "$supply_backtrace" = yes; then
13281 SUPPLY_BACKTRACE_TRUE=
13282 SUPPLY_BACKTRACE_FALSE='#'
13283 else
13284 SUPPLY_BACKTRACE_TRUE='#'
13285 SUPPLY_BACKTRACE_FALSE=
13289 if test -z "${with_multisubdir}"; then
13290 builddotdot=.
13291 else
13292 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
13295 NATIVE=yes
13297 # Which gcj do we use?
13298 which_gcj=default
13299 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
13300 if test -n "${with_cross_host}"; then
13301 # We are being configured with a cross compiler. We can't
13302 # use ac_exeext, because that is for the target platform.
13303 NATIVE=no
13304 cross_host_exeext=
13305 case "${with_cross_host}" in
13306 *mingw* | *cygwin*)
13307 cross_host_exeext=.exe
13309 esac
13310 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
13311 if test x"$build_noncanonical" = x"$with_cross_host"; then
13312 # Ordinary cross (host!=target and host=build)
13313 which_gcj=built
13314 else
13315 # Canadian cross (host!=target and host!=build)
13316 which_gcj=cross
13318 else
13319 which_gcj=cross
13321 else
13322 # We are being configured with a native or crossed-native compiler
13323 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
13324 if test x"$build" = x"$host"; then
13325 # True native build (host=target and host=build)
13326 which_gcj=built
13327 else
13328 # Crossed-native build (host=target and host!=build)
13329 which_gcj=cross
13331 else
13332 which_gcj=path
13335 case "${which_gcj}" in
13336 built)
13337 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
13338 GCJH='$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
13339 ZIP='$(MULTIBUILDTOP)../../$(host_subdir)/fastjar/fastjar'
13341 cross)
13342 if test "x${with_newlib}" = "xyes"; then
13343 # FIXME (comment): Why is this needed?
13344 GCC_UNWIND_INCLUDE=
13345 GCJ="${target_noncanonical}-gcj"
13346 else
13347 GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
13349 ZIP=jar
13350 GCJH='$(target_noncanonical)-gcjh'
13352 path)
13353 GCJ="gcj -B`${PWDCMD-pwd}`/"
13354 ## In this case, gcj is found outside the build tree. However, zip is
13355 ## found in the build tree.
13356 ZIP='$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
13357 GCJH=gcjh
13359 esac
13364 # Create it, so that compile/link tests don't fail
13365 test -f libgcj.spec || touch libgcj.spec
13367 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
13368 case $build in
13369 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
13370 *) CLASSPATH_SEPARATOR=':' ;;
13371 esac
13374 # We must search the source tree for java.lang, since we still don't
13375 # have libgcj.jar nor java/lang/*.class
13376 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
13377 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
13379 # Since some classes depend on this one, we need its source available
13380 # before we can do any GCJ compilation test :-(
13381 if test ! -f gnu/classpath/Configuration.java; then
13382 test -d gnu || mkdir gnu
13383 test -d gnu/classpath || mkdir gnu/classpath
13384 sed -e 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
13385 -e 's,@TOOLKIT@,$TOOLKIT,' \
13386 < $srcdir/gnu/classpath/Configuration.java.in \
13387 > gnu/classpath/Configuration.java
13388 # We do not want to redirect the output of the grep below to /dev/null,
13389 # but we add /dev/null to the input list so that grep will print the
13390 # filename of Configuration.java in case it finds any matches.
13391 if grep @ gnu/classpath/Configuration.java /dev/null; then
13392 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
13393 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
13394 { (exit 1); exit 1; }; }
13398 if test -n "$ac_tool_prefix"; then
13399 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
13400 set dummy ${ac_tool_prefix}gcj; ac_word=$2
13401 echo "$as_me:$LINENO: checking for $ac_word" >&5
13402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13403 if test "${ac_cv_prog_GCJ+set}" = set; then
13404 echo $ECHO_N "(cached) $ECHO_C" >&6
13405 else
13406 if test -n "$GCJ"; then
13407 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
13408 else
13409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13410 for as_dir in $PATH
13412 IFS=$as_save_IFS
13413 test -z "$as_dir" && as_dir=.
13414 for ac_exec_ext in '' $ac_executable_extensions; do
13415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13416 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
13417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13418 break 2
13420 done
13421 done
13425 GCJ=$ac_cv_prog_GCJ
13426 if test -n "$GCJ"; then
13427 echo "$as_me:$LINENO: result: $GCJ" >&5
13428 echo "${ECHO_T}$GCJ" >&6
13429 else
13430 echo "$as_me:$LINENO: result: no" >&5
13431 echo "${ECHO_T}no" >&6
13435 if test -z "$ac_cv_prog_GCJ"; then
13436 ac_ct_GCJ=$GCJ
13437 # Extract the first word of "gcj", so it can be a program name with args.
13438 set dummy gcj; ac_word=$2
13439 echo "$as_me:$LINENO: checking for $ac_word" >&5
13440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13441 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
13442 echo $ECHO_N "(cached) $ECHO_C" >&6
13443 else
13444 if test -n "$ac_ct_GCJ"; then
13445 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
13446 else
13447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13448 for as_dir in $PATH
13450 IFS=$as_save_IFS
13451 test -z "$as_dir" && as_dir=.
13452 for ac_exec_ext in '' $ac_executable_extensions; do
13453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13454 ac_cv_prog_ac_ct_GCJ="gcj"
13455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13456 break 2
13458 done
13459 done
13461 test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
13464 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
13465 if test -n "$ac_ct_GCJ"; then
13466 echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
13467 echo "${ECHO_T}$ac_ct_GCJ" >&6
13468 else
13469 echo "$as_me:$LINENO: result: no" >&5
13470 echo "${ECHO_T}no" >&6
13473 GCJ=$ac_ct_GCJ
13474 else
13475 GCJ="$ac_cv_prog_GCJ"
13478 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
13483 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
13485 echo "$as_me:$LINENO: checking size of void *" >&5
13486 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13487 if test "${ac_cv_sizeof_void_p+set}" = set; then
13488 echo $ECHO_N "(cached) $ECHO_C" >&6
13489 else
13490 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
13491 cat >conftest.$ac_ext <<_ACEOF
13492 /* confdefs.h. */
13493 _ACEOF
13494 cat confdefs.h >>conftest.$ac_ext
13495 cat >>conftest.$ac_ext <<_ACEOF
13496 /* end confdefs.h. */
13497 #include "confdefs.h"
13498 #include <sys/types.h>
13502 main ()
13504 switch (0) case 0: case (sizeof (void *) == $ac_size):;
13506 return 0;
13508 _ACEOF
13509 rm -f conftest.$ac_objext
13510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13511 (eval $ac_compile) 2>conftest.er1
13512 ac_status=$?
13513 grep -v '^ *+' conftest.er1 >conftest.err
13514 rm -f conftest.er1
13515 cat conftest.err >&5
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); } &&
13518 { ac_try='test -z "$ac_c_werror_flag"
13519 || test ! -s conftest.err'
13520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13521 (eval $ac_try) 2>&5
13522 ac_status=$?
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); }; } &&
13525 { ac_try='test -s conftest.$ac_objext'
13526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13527 (eval $ac_try) 2>&5
13528 ac_status=$?
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); }; }; then
13531 ac_cv_sizeof_void_p=$ac_size
13532 else
13533 echo "$as_me: failed program was:" >&5
13534 sed 's/^/| /' conftest.$ac_ext >&5
13537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13538 if test x$ac_cv_sizeof_void_p != x ; then break; fi
13539 done
13543 if test x$ac_cv_sizeof_void_p = x ; then
13544 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
13545 echo "$as_me: error: cannot determine a size for void *" >&2;}
13546 { (exit 1); exit 1; }; }
13548 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13549 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13551 cat >>confdefs.h <<_ACEOF
13552 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13553 _ACEOF
13557 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13558 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
13559 if test "${ac_cv_c_bigendian+set}" = set; then
13560 echo $ECHO_N "(cached) $ECHO_C" >&6
13561 else
13562 ac_cv_c_bigendian=unknown
13563 # See if sys/param.h defines the BYTE_ORDER macro.
13564 cat >conftest.$ac_ext <<_ACEOF
13565 /* confdefs.h. */
13566 _ACEOF
13567 cat confdefs.h >>conftest.$ac_ext
13568 cat >>conftest.$ac_ext <<_ACEOF
13569 /* end confdefs.h. */
13570 #include <sys/types.h>
13571 #include <sys/param.h>
13573 main ()
13576 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13577 bogus endian macros
13578 #endif
13580 return 0;
13582 _ACEOF
13583 rm -f conftest.$ac_objext
13584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13585 (eval $ac_compile) 2>conftest.er1
13586 ac_status=$?
13587 grep -v '^ *+' conftest.er1 >conftest.err
13588 rm -f conftest.er1
13589 cat conftest.err >&5
13590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591 (exit $ac_status); } &&
13592 { ac_try='test -z "$ac_c_werror_flag"
13593 || test ! -s conftest.err'
13594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13595 (eval $ac_try) 2>&5
13596 ac_status=$?
13597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 (exit $ac_status); }; } &&
13599 { ac_try='test -s conftest.$ac_objext'
13600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13601 (eval $ac_try) 2>&5
13602 ac_status=$?
13603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604 (exit $ac_status); }; }; then
13605 # It does; now see whether it defined to BIG_ENDIAN or not.
13606 cat >conftest.$ac_ext <<_ACEOF
13607 /* confdefs.h. */
13608 _ACEOF
13609 cat confdefs.h >>conftest.$ac_ext
13610 cat >>conftest.$ac_ext <<_ACEOF
13611 /* end confdefs.h. */
13612 #include <sys/types.h>
13613 #include <sys/param.h>
13615 main ()
13618 #if BYTE_ORDER != BIG_ENDIAN
13619 not big endian
13620 #endif
13622 return 0;
13624 _ACEOF
13625 rm -f conftest.$ac_objext
13626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13627 (eval $ac_compile) 2>conftest.er1
13628 ac_status=$?
13629 grep -v '^ *+' conftest.er1 >conftest.err
13630 rm -f conftest.er1
13631 cat conftest.err >&5
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); } &&
13634 { ac_try='test -z "$ac_c_werror_flag"
13635 || test ! -s conftest.err'
13636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13637 (eval $ac_try) 2>&5
13638 ac_status=$?
13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); }; } &&
13641 { ac_try='test -s conftest.$ac_objext'
13642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13643 (eval $ac_try) 2>&5
13644 ac_status=$?
13645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); }; }; then
13647 ac_cv_c_bigendian=yes
13648 else
13649 echo "$as_me: failed program was:" >&5
13650 sed 's/^/| /' conftest.$ac_ext >&5
13652 ac_cv_c_bigendian=no
13654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13655 else
13656 echo "$as_me: failed program was:" >&5
13657 sed 's/^/| /' conftest.$ac_ext >&5
13660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13661 if test $ac_cv_c_bigendian = unknown; then
13662 if test "$cross_compiling" = yes; then
13663 echo $ac_n "cross-compiling... " 2>&6
13664 else
13665 cat >conftest.$ac_ext <<_ACEOF
13666 /* confdefs.h. */
13667 _ACEOF
13668 cat confdefs.h >>conftest.$ac_ext
13669 cat >>conftest.$ac_ext <<_ACEOF
13670 /* end confdefs.h. */
13671 main () {
13672 /* Are we little or big endian? From Harbison&Steele. */
13673 union
13675 long l;
13676 char c[sizeof (long)];
13677 } u;
13678 u.l = 1;
13679 exit (u.c[sizeof (long) - 1] == 1);
13681 _ACEOF
13682 rm -f conftest$ac_exeext
13683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13684 (eval $ac_link) 2>&5
13685 ac_status=$?
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13689 (eval $ac_try) 2>&5
13690 ac_status=$?
13691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); }; }; then
13693 ac_cv_c_bigendian=no
13694 else
13695 echo "$as_me: program exited with status $ac_status" >&5
13696 echo "$as_me: failed program was:" >&5
13697 sed 's/^/| /' conftest.$ac_ext >&5
13699 ( exit $ac_status )
13700 ac_cv_c_bigendian=yes
13702 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13706 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13707 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
13708 if test $ac_cv_c_bigendian = unknown; then
13709 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
13710 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
13712 cat >conftest.c <<EOF
13713 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13714 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13715 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
13716 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13717 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13718 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
13719 int main() { _ascii (); _ebcdic (); return 0; }
13721 if test -f conftest.c ; then
13722 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
13723 if test `grep -l BIGenDianSyS conftest.o` ; then
13724 echo $ac_n ' big endian probe OK, ' 1>&6
13725 ac_cv_c_bigendian=yes
13727 if test `grep -l LiTTleEnDian conftest.o` ; then
13728 echo $ac_n ' little endian probe OK, ' 1>&6
13729 if test $ac_cv_c_bigendian = yes ; then
13730 ac_cv_c_bigendian=unknown;
13731 else
13732 ac_cv_c_bigendian=no
13735 echo $ac_n 'guessing bigendian ... ' >&6
13738 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13739 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
13741 if test $ac_cv_c_bigendian = yes; then
13743 cat >>confdefs.h <<\_ACEOF
13744 #define WORDS_BIGENDIAN 1
13745 _ACEOF
13748 cat >>confdefs.h <<\_ACEOF
13749 #define HOST_WORDS_BIG_ENDIAN 1
13750 _ACEOF
13752 BYTEORDER=4321
13753 else
13754 BYTEORDER=1234
13757 cat >>confdefs.h <<_ACEOF
13758 #define BYTEORDER $BYTEORDER
13759 _ACEOF
13761 if test $ac_cv_c_bigendian = unknown; then
13762 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
13763 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
13764 { (exit 1); exit 1; }; }
13768 ZLIBS=
13769 SYS_ZLIBS=
13770 ZINCS=
13772 if test -z "$ZLIBSPEC"; then
13773 # Use zlib from the GCC tree.
13774 ZINCS='-I$(top_srcdir)/../zlib'
13775 ZLIBS=../zlib/libzgcj_convenience.la
13776 else
13777 # System's zlib.
13778 SYS_ZLIBS="$ZLIBSPEC"
13790 if test "$NATIVE" = yes; then
13791 NATIVE_TRUE=
13792 NATIVE_FALSE='#'
13793 else
13794 NATIVE_TRUE='#'
13795 NATIVE_FALSE=
13800 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
13801 NEEDS_DATA_START_TRUE=
13802 NEEDS_DATA_START_FALSE='#'
13803 else
13804 NEEDS_DATA_START_TRUE='#'
13805 NEEDS_DATA_START_FALSE=
13810 # Process the option "--enable-version-specific-runtime-libs"
13811 # Calculate toolexeclibdir
13812 case ${version_specific_libs} in
13813 yes)
13814 # Need the gcc compiler version to know where to install libraries
13815 # and header files if --enable-version-specific-runtime-libs option
13816 # is selected.
13817 includedir='${libdir}/gcc/${target_noncanonical}/'$gcc_version/include/
13818 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
13819 toolexecmainlibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
13820 toolexeclibdir=$toolexecmainlibdir
13823 if test -n "$with_cross_host" &&
13824 test x"$with_cross_host" != x"no"; then
13825 # Install a library built with a cross compiler in tooldir, not libdir.
13826 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
13827 toolexecmainlibdir='$(toolexecdir)/lib'
13828 else
13829 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
13830 toolexecmainlibdir='$(libdir)'
13832 multi_os_directory=`$CC -print-multi-os-directory`
13833 case $multi_os_directory in
13834 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
13835 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
13836 esac
13838 esac
13843 # Determine gcj version number.
13844 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
13845 GCJVERSION=$gcjversion
13848 cat >>confdefs.h <<_ACEOF
13849 #define GCJVERSION "$GCJVERSION"
13850 _ACEOF
13854 case "${with_gxx_include_dir}" in
13855 yes)
13856 { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
13857 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
13858 { (exit 1); exit 1; }; }
13860 no | "")
13861 case "${enable_version_specific_runtime_libs}" in
13862 yes) gxx_include_dir='${libsubdir}/include/c++' ;;
13864 libstdcxx_incdir=c++/${gcc_version}
13865 gxx_include_dir='${prefix}/include/'${libstdcxx_incdir} ;;
13866 esac ;;
13867 *) gxx_include_dir=${with_gxx_include_dir} ;;
13868 esac
13873 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
13874 # On that system, sys/ioctl.h will not include sys/filio.h unless
13875 # BSD_COMP is defined; just including sys/filio.h is simpler.
13876 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
13877 # for now. If you change this, you also must update natFile.cc.
13898 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
13899 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
13900 sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
13901 pwd.h sys/config.h stdint.h langinfo.h locale.h \
13902 dirent.h
13904 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13906 echo "$as_me:$LINENO: checking for $ac_header" >&5
13907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13909 echo $ECHO_N "(cached) $ECHO_C" >&6
13911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13913 else
13914 # Is the header compilable?
13915 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13916 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13917 cat >conftest.$ac_ext <<_ACEOF
13918 /* confdefs.h. */
13919 _ACEOF
13920 cat confdefs.h >>conftest.$ac_ext
13921 cat >>conftest.$ac_ext <<_ACEOF
13922 /* end confdefs.h. */
13923 $ac_includes_default
13924 #include <$ac_header>
13925 _ACEOF
13926 rm -f conftest.$ac_objext
13927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13928 (eval $ac_compile) 2>conftest.er1
13929 ac_status=$?
13930 grep -v '^ *+' conftest.er1 >conftest.err
13931 rm -f conftest.er1
13932 cat conftest.err >&5
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); } &&
13935 { ac_try='test -z "$ac_c_werror_flag"
13936 || test ! -s conftest.err'
13937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13938 (eval $ac_try) 2>&5
13939 ac_status=$?
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); }; } &&
13942 { ac_try='test -s conftest.$ac_objext'
13943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13944 (eval $ac_try) 2>&5
13945 ac_status=$?
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); }; }; then
13948 ac_header_compiler=yes
13949 else
13950 echo "$as_me: failed program was:" >&5
13951 sed 's/^/| /' conftest.$ac_ext >&5
13953 ac_header_compiler=no
13955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13956 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13957 echo "${ECHO_T}$ac_header_compiler" >&6
13959 # Is the header present?
13960 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13961 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
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 <$ac_header>
13969 _ACEOF
13970 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13971 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13972 ac_status=$?
13973 grep -v '^ *+' conftest.er1 >conftest.err
13974 rm -f conftest.er1
13975 cat conftest.err >&5
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); } >/dev/null; then
13978 if test -s conftest.err; then
13979 ac_cpp_err=$ac_c_preproc_warn_flag
13980 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13981 else
13982 ac_cpp_err=
13984 else
13985 ac_cpp_err=yes
13987 if test -z "$ac_cpp_err"; then
13988 ac_header_preproc=yes
13989 else
13990 echo "$as_me: failed program was:" >&5
13991 sed 's/^/| /' conftest.$ac_ext >&5
13993 ac_header_preproc=no
13995 rm -f conftest.err conftest.$ac_ext
13996 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13997 echo "${ECHO_T}$ac_header_preproc" >&6
13999 # So? What about this header?
14000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14001 yes:no: )
14002 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14003 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14005 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14006 ac_header_preproc=yes
14008 no:yes:* )
14009 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14010 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14011 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14012 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14013 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14014 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14015 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14016 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14018 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14019 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14020 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14022 cat <<\_ASBOX
14023 ## ---------------------------------- ##
14024 ## Report this to the libjava lists. ##
14025 ## ---------------------------------- ##
14026 _ASBOX
14028 sed "s/^/$as_me: WARNING: /" >&2
14030 esac
14031 echo "$as_me:$LINENO: checking for $ac_header" >&5
14032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14034 echo $ECHO_N "(cached) $ECHO_C" >&6
14035 else
14036 eval "$as_ac_Header=\$ac_header_preproc"
14038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14039 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14042 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14043 cat >>confdefs.h <<_ACEOF
14044 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14045 _ACEOF
14049 done
14052 for ac_header in inttypes.h
14054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14056 echo "$as_me:$LINENO: checking for $ac_header" >&5
14057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14059 echo $ECHO_N "(cached) $ECHO_C" >&6
14061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14063 else
14064 # Is the header compilable?
14065 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14066 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14067 cat >conftest.$ac_ext <<_ACEOF
14068 /* confdefs.h. */
14069 _ACEOF
14070 cat confdefs.h >>conftest.$ac_ext
14071 cat >>conftest.$ac_ext <<_ACEOF
14072 /* end confdefs.h. */
14073 $ac_includes_default
14074 #include <$ac_header>
14075 _ACEOF
14076 rm -f conftest.$ac_objext
14077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14078 (eval $ac_compile) 2>conftest.er1
14079 ac_status=$?
14080 grep -v '^ *+' conftest.er1 >conftest.err
14081 rm -f conftest.er1
14082 cat conftest.err >&5
14083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084 (exit $ac_status); } &&
14085 { ac_try='test -z "$ac_c_werror_flag"
14086 || test ! -s conftest.err'
14087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14088 (eval $ac_try) 2>&5
14089 ac_status=$?
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); }; } &&
14092 { ac_try='test -s conftest.$ac_objext'
14093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14094 (eval $ac_try) 2>&5
14095 ac_status=$?
14096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097 (exit $ac_status); }; }; then
14098 ac_header_compiler=yes
14099 else
14100 echo "$as_me: failed program was:" >&5
14101 sed 's/^/| /' conftest.$ac_ext >&5
14103 ac_header_compiler=no
14105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14106 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14107 echo "${ECHO_T}$ac_header_compiler" >&6
14109 # Is the header present?
14110 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14111 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14112 cat >conftest.$ac_ext <<_ACEOF
14113 /* confdefs.h. */
14114 _ACEOF
14115 cat confdefs.h >>conftest.$ac_ext
14116 cat >>conftest.$ac_ext <<_ACEOF
14117 /* end confdefs.h. */
14118 #include <$ac_header>
14119 _ACEOF
14120 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14121 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14122 ac_status=$?
14123 grep -v '^ *+' conftest.er1 >conftest.err
14124 rm -f conftest.er1
14125 cat conftest.err >&5
14126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127 (exit $ac_status); } >/dev/null; then
14128 if test -s conftest.err; then
14129 ac_cpp_err=$ac_c_preproc_warn_flag
14130 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14131 else
14132 ac_cpp_err=
14134 else
14135 ac_cpp_err=yes
14137 if test -z "$ac_cpp_err"; then
14138 ac_header_preproc=yes
14139 else
14140 echo "$as_me: failed program was:" >&5
14141 sed 's/^/| /' conftest.$ac_ext >&5
14143 ac_header_preproc=no
14145 rm -f conftest.err conftest.$ac_ext
14146 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14147 echo "${ECHO_T}$ac_header_preproc" >&6
14149 # So? What about this header?
14150 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14151 yes:no: )
14152 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14153 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14155 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14156 ac_header_preproc=yes
14158 no:yes:* )
14159 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14160 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14161 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14162 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14163 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14164 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14165 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14166 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14168 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14169 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14170 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14172 cat <<\_ASBOX
14173 ## ---------------------------------- ##
14174 ## Report this to the libjava lists. ##
14175 ## ---------------------------------- ##
14176 _ASBOX
14178 sed "s/^/$as_me: WARNING: /" >&2
14180 esac
14181 echo "$as_me:$LINENO: checking for $ac_header" >&5
14182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14184 echo $ECHO_N "(cached) $ECHO_C" >&6
14185 else
14186 eval "$as_ac_Header=\$ac_header_preproc"
14188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14189 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14192 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14193 cat >>confdefs.h <<_ACEOF
14194 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14195 _ACEOF
14198 cat >>confdefs.h <<\_ACEOF
14199 #define HAVE_INTTYPES_H 1
14200 _ACEOF
14203 cat >>confdefs.h <<\_ACEOF
14204 #define JV_HAVE_INTTYPES_H 1
14205 _ACEOF
14210 done
14212 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14213 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
14214 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14215 echo $ECHO_N "(cached) $ECHO_C" >&6
14216 else
14217 cat >conftest.$ac_ext <<_ACEOF
14218 /* confdefs.h. */
14219 _ACEOF
14220 cat confdefs.h >>conftest.$ac_ext
14221 cat >>conftest.$ac_ext <<_ACEOF
14222 /* end confdefs.h. */
14223 #include <sys/types.h>
14224 #include <sys/wait.h>
14225 #ifndef WEXITSTATUS
14226 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
14227 #endif
14228 #ifndef WIFEXITED
14229 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14230 #endif
14233 main ()
14235 int s;
14236 wait (&s);
14237 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14239 return 0;
14241 _ACEOF
14242 rm -f conftest.$ac_objext
14243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14244 (eval $ac_compile) 2>conftest.er1
14245 ac_status=$?
14246 grep -v '^ *+' conftest.er1 >conftest.err
14247 rm -f conftest.er1
14248 cat conftest.err >&5
14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 (exit $ac_status); } &&
14251 { ac_try='test -z "$ac_c_werror_flag"
14252 || test ! -s conftest.err'
14253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14254 (eval $ac_try) 2>&5
14255 ac_status=$?
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); }; } &&
14258 { ac_try='test -s conftest.$ac_objext'
14259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14260 (eval $ac_try) 2>&5
14261 ac_status=$?
14262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263 (exit $ac_status); }; }; then
14264 ac_cv_header_sys_wait_h=yes
14265 else
14266 echo "$as_me: failed program was:" >&5
14267 sed 's/^/| /' conftest.$ac_ext >&5
14269 ac_cv_header_sys_wait_h=no
14271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14273 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14274 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
14275 if test $ac_cv_header_sys_wait_h = yes; then
14277 cat >>confdefs.h <<\_ACEOF
14278 #define HAVE_SYS_WAIT_H 1
14279 _ACEOF
14284 echo "$as_me:$LINENO: checking for ssize_t" >&5
14285 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14286 if test "${ac_cv_type_ssize_t+set}" = set; then
14287 echo $ECHO_N "(cached) $ECHO_C" >&6
14288 else
14289 cat >conftest.$ac_ext <<_ACEOF
14290 /* confdefs.h. */
14291 _ACEOF
14292 cat confdefs.h >>conftest.$ac_ext
14293 cat >>conftest.$ac_ext <<_ACEOF
14294 /* end confdefs.h. */
14295 $ac_includes_default
14297 main ()
14299 if ((ssize_t *) 0)
14300 return 0;
14301 if (sizeof (ssize_t))
14302 return 0;
14304 return 0;
14306 _ACEOF
14307 rm -f conftest.$ac_objext
14308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14309 (eval $ac_compile) 2>conftest.er1
14310 ac_status=$?
14311 grep -v '^ *+' conftest.er1 >conftest.err
14312 rm -f conftest.er1
14313 cat conftest.err >&5
14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 (exit $ac_status); } &&
14316 { ac_try='test -z "$ac_c_werror_flag"
14317 || test ! -s conftest.err'
14318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14319 (eval $ac_try) 2>&5
14320 ac_status=$?
14321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); }; } &&
14323 { ac_try='test -s conftest.$ac_objext'
14324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14325 (eval $ac_try) 2>&5
14326 ac_status=$?
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); }; }; then
14329 ac_cv_type_ssize_t=yes
14330 else
14331 echo "$as_me: failed program was:" >&5
14332 sed 's/^/| /' conftest.$ac_ext >&5
14334 ac_cv_type_ssize_t=no
14336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14338 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14339 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14340 if test $ac_cv_type_ssize_t = yes; then
14342 else
14344 cat >>confdefs.h <<_ACEOF
14345 #define ssize_t int
14346 _ACEOF
14351 echo "$as_me:$LINENO: checking for in_addr_t" >&5
14352 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
14353 cat >conftest.$ac_ext <<_ACEOF
14354 /* confdefs.h. */
14355 _ACEOF
14356 cat confdefs.h >>conftest.$ac_ext
14357 cat >>conftest.$ac_ext <<_ACEOF
14358 /* end confdefs.h. */
14359 #include <sys/types.h>
14360 #if STDC_HEADERS
14361 #include <stdlib.h>
14362 #include <stddef.h>
14363 #endif
14364 #if HAVE_NETINET_IN_H
14365 #include <netinet/in.h>
14366 #endif
14368 main ()
14370 in_addr_t foo;
14372 return 0;
14374 _ACEOF
14375 rm -f conftest.$ac_objext
14376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14377 (eval $ac_compile) 2>conftest.er1
14378 ac_status=$?
14379 grep -v '^ *+' conftest.er1 >conftest.err
14380 rm -f conftest.er1
14381 cat conftest.err >&5
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 (exit $ac_status); } &&
14384 { ac_try='test -z "$ac_c_werror_flag"
14385 || test ! -s conftest.err'
14386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14387 (eval $ac_try) 2>&5
14388 ac_status=$?
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); }; } &&
14391 { ac_try='test -s conftest.$ac_objext'
14392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14393 (eval $ac_try) 2>&5
14394 ac_status=$?
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); }; }; then
14398 cat >>confdefs.h <<\_ACEOF
14399 #define HAVE_IN_ADDR_T 1
14400 _ACEOF
14402 echo "$as_me:$LINENO: result: yes" >&5
14403 echo "${ECHO_T}yes" >&6
14404 else
14405 echo "$as_me: failed program was:" >&5
14406 sed 's/^/| /' conftest.$ac_ext >&5
14408 echo "$as_me:$LINENO: result: no" >&5
14409 echo "${ECHO_T}no" >&6
14411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14413 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
14414 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
14415 cat >conftest.$ac_ext <<_ACEOF
14416 /* confdefs.h. */
14417 _ACEOF
14418 cat confdefs.h >>conftest.$ac_ext
14419 cat >>conftest.$ac_ext <<_ACEOF
14420 /* end confdefs.h. */
14421 #include <netinet/in.h>
14423 main ()
14425 struct ip_mreq mreq;
14427 return 0;
14429 _ACEOF
14430 rm -f conftest.$ac_objext
14431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14432 (eval $ac_compile) 2>conftest.er1
14433 ac_status=$?
14434 grep -v '^ *+' conftest.er1 >conftest.err
14435 rm -f conftest.er1
14436 cat conftest.err >&5
14437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438 (exit $ac_status); } &&
14439 { ac_try='test -z "$ac_c_werror_flag"
14440 || test ! -s conftest.err'
14441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14442 (eval $ac_try) 2>&5
14443 ac_status=$?
14444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445 (exit $ac_status); }; } &&
14446 { ac_try='test -s conftest.$ac_objext'
14447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14448 (eval $ac_try) 2>&5
14449 ac_status=$?
14450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451 (exit $ac_status); }; }; then
14453 cat >>confdefs.h <<\_ACEOF
14454 #define HAVE_STRUCT_IP_MREQ 1
14455 _ACEOF
14457 echo "$as_me:$LINENO: result: yes" >&5
14458 echo "${ECHO_T}yes" >&6
14459 else
14460 echo "$as_me: failed program was:" >&5
14461 sed 's/^/| /' conftest.$ac_ext >&5
14463 echo "$as_me:$LINENO: result: no" >&5
14464 echo "${ECHO_T}no" >&6
14466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14468 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
14469 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
14470 cat >conftest.$ac_ext <<_ACEOF
14471 /* confdefs.h. */
14472 _ACEOF
14473 cat confdefs.h >>conftest.$ac_ext
14474 cat >>conftest.$ac_ext <<_ACEOF
14475 /* end confdefs.h. */
14476 #include <netinet/in.h>
14478 main ()
14480 struct ipv6_mreq mreq6;
14482 return 0;
14484 _ACEOF
14485 rm -f conftest.$ac_objext
14486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14487 (eval $ac_compile) 2>conftest.er1
14488 ac_status=$?
14489 grep -v '^ *+' conftest.er1 >conftest.err
14490 rm -f conftest.er1
14491 cat conftest.err >&5
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); } &&
14494 { ac_try='test -z "$ac_c_werror_flag"
14495 || test ! -s conftest.err'
14496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14497 (eval $ac_try) 2>&5
14498 ac_status=$?
14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500 (exit $ac_status); }; } &&
14501 { ac_try='test -s conftest.$ac_objext'
14502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14503 (eval $ac_try) 2>&5
14504 ac_status=$?
14505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506 (exit $ac_status); }; }; then
14508 cat >>confdefs.h <<\_ACEOF
14509 #define HAVE_STRUCT_IPV6_MREQ 1
14510 _ACEOF
14512 echo "$as_me:$LINENO: result: yes" >&5
14513 echo "${ECHO_T}yes" >&6
14514 else
14515 echo "$as_me: failed program was:" >&5
14516 sed 's/^/| /' conftest.$ac_ext >&5
14518 echo "$as_me:$LINENO: result: no" >&5
14519 echo "${ECHO_T}no" >&6
14521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14523 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
14524 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
14525 cat >conftest.$ac_ext <<_ACEOF
14526 /* confdefs.h. */
14527 _ACEOF
14528 cat confdefs.h >>conftest.$ac_ext
14529 cat >>conftest.$ac_ext <<_ACEOF
14530 /* end confdefs.h. */
14531 #include <netinet/in.h>
14533 main ()
14535 struct sockaddr_in6 addr6;
14537 return 0;
14539 _ACEOF
14540 rm -f conftest.$ac_objext
14541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14542 (eval $ac_compile) 2>conftest.er1
14543 ac_status=$?
14544 grep -v '^ *+' conftest.er1 >conftest.err
14545 rm -f conftest.er1
14546 cat conftest.err >&5
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); } &&
14549 { ac_try='test -z "$ac_c_werror_flag"
14550 || test ! -s conftest.err'
14551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14552 (eval $ac_try) 2>&5
14553 ac_status=$?
14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 (exit $ac_status); }; } &&
14556 { ac_try='test -s conftest.$ac_objext'
14557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14558 (eval $ac_try) 2>&5
14559 ac_status=$?
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); }; }; then
14563 cat >>confdefs.h <<\_ACEOF
14564 #define HAVE_INET6 1
14565 _ACEOF
14567 echo "$as_me:$LINENO: result: yes" >&5
14568 echo "${ECHO_T}yes" >&6
14569 else
14570 echo "$as_me: failed program was:" >&5
14571 sed 's/^/| /' conftest.$ac_ext >&5
14573 echo "$as_me:$LINENO: result: no" >&5
14574 echo "${ECHO_T}no" >&6
14576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14578 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
14579 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
14580 cat >conftest.$ac_ext <<_ACEOF
14581 /* confdefs.h. */
14582 _ACEOF
14583 cat confdefs.h >>conftest.$ac_ext
14584 cat >>conftest.$ac_ext <<_ACEOF
14585 /* end confdefs.h. */
14586 #define _POSIX_PII_SOCKET
14587 #include <sys/types.h>
14588 #include <sys/socket.h>
14590 main ()
14592 socklen_t x = 5;
14594 return 0;
14596 _ACEOF
14597 rm -f conftest.$ac_objext
14598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14599 (eval $ac_compile) 2>conftest.er1
14600 ac_status=$?
14601 grep -v '^ *+' conftest.er1 >conftest.err
14602 rm -f conftest.er1
14603 cat conftest.err >&5
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); } &&
14606 { ac_try='test -z "$ac_c_werror_flag"
14607 || test ! -s conftest.err'
14608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14609 (eval $ac_try) 2>&5
14610 ac_status=$?
14611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612 (exit $ac_status); }; } &&
14613 { ac_try='test -s conftest.$ac_objext'
14614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14615 (eval $ac_try) 2>&5
14616 ac_status=$?
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); }; }; then
14620 cat >>confdefs.h <<\_ACEOF
14621 #define HAVE_SOCKLEN_T 1
14622 _ACEOF
14624 echo "$as_me:$LINENO: result: yes" >&5
14625 echo "${ECHO_T}yes" >&6
14626 else
14627 echo "$as_me: failed program was:" >&5
14628 sed 's/^/| /' conftest.$ac_ext >&5
14630 echo "$as_me:$LINENO: result: no" >&5
14631 echo "${ECHO_T}no" >&6
14633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14635 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
14636 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
14637 cat >conftest.$ac_ext <<_ACEOF
14638 /* confdefs.h. */
14639 _ACEOF
14640 cat confdefs.h >>conftest.$ac_ext
14641 cat >>conftest.$ac_ext <<_ACEOF
14642 /* end confdefs.h. */
14643 #include <time.h>
14645 main ()
14647 struct tm tim; tim.tm_gmtoff = 0;
14649 return 0;
14651 _ACEOF
14652 rm -f conftest.$ac_objext
14653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14654 (eval $ac_compile) 2>conftest.er1
14655 ac_status=$?
14656 grep -v '^ *+' conftest.er1 >conftest.err
14657 rm -f conftest.er1
14658 cat conftest.err >&5
14659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660 (exit $ac_status); } &&
14661 { ac_try='test -z "$ac_c_werror_flag"
14662 || test ! -s conftest.err'
14663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14664 (eval $ac_try) 2>&5
14665 ac_status=$?
14666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667 (exit $ac_status); }; } &&
14668 { ac_try='test -s conftest.$ac_objext'
14669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14670 (eval $ac_try) 2>&5
14671 ac_status=$?
14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); }; }; then
14675 cat >>confdefs.h <<\_ACEOF
14676 #define STRUCT_TM_HAS_GMTOFF 1
14677 _ACEOF
14679 echo "$as_me:$LINENO: result: yes" >&5
14680 echo "${ECHO_T}yes" >&6
14681 else
14682 echo "$as_me: failed program was:" >&5
14683 sed 's/^/| /' conftest.$ac_ext >&5
14685 echo "$as_me:$LINENO: result: no" >&5
14686 echo "${ECHO_T}no" >&6
14687 echo "$as_me:$LINENO: checking for global timezone variable" >&5
14688 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
14689 cat >conftest.$ac_ext <<_ACEOF
14690 /* confdefs.h. */
14691 _ACEOF
14692 cat confdefs.h >>conftest.$ac_ext
14693 cat >>conftest.$ac_ext <<_ACEOF
14694 /* end confdefs.h. */
14695 #include <time.h>
14697 main ()
14699 void i(){long z2 = 2*timezone;}
14701 return 0;
14703 _ACEOF
14704 rm -f conftest.$ac_objext
14705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14706 (eval $ac_compile) 2>conftest.er1
14707 ac_status=$?
14708 grep -v '^ *+' conftest.er1 >conftest.err
14709 rm -f conftest.er1
14710 cat conftest.err >&5
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); } &&
14713 { ac_try='test -z "$ac_c_werror_flag"
14714 || test ! -s conftest.err'
14715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14716 (eval $ac_try) 2>&5
14717 ac_status=$?
14718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719 (exit $ac_status); }; } &&
14720 { ac_try='test -s conftest.$ac_objext'
14721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14722 (eval $ac_try) 2>&5
14723 ac_status=$?
14724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 (exit $ac_status); }; }; then
14727 cat >>confdefs.h <<\_ACEOF
14728 #define HAVE_TIMEZONE 1
14729 _ACEOF
14731 echo "$as_me:$LINENO: result: yes" >&5
14732 echo "${ECHO_T}yes" >&6
14733 else
14734 echo "$as_me: failed program was:" >&5
14735 sed 's/^/| /' conftest.$ac_ext >&5
14737 echo "$as_me:$LINENO: result: no" >&5
14738 echo "${ECHO_T}no" >&6
14739 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
14740 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
14741 cat >conftest.$ac_ext <<_ACEOF
14742 /* confdefs.h. */
14743 _ACEOF
14744 cat confdefs.h >>conftest.$ac_ext
14745 cat >>conftest.$ac_ext <<_ACEOF
14746 /* end confdefs.h. */
14747 #include <time.h>
14749 main ()
14751 long z2 = _timezone;
14753 return 0;
14755 _ACEOF
14756 rm -f conftest.$ac_objext
14757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14758 (eval $ac_compile) 2>conftest.er1
14759 ac_status=$?
14760 grep -v '^ *+' conftest.er1 >conftest.err
14761 rm -f conftest.er1
14762 cat conftest.err >&5
14763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764 (exit $ac_status); } &&
14765 { ac_try='test -z "$ac_c_werror_flag"
14766 || test ! -s conftest.err'
14767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14768 (eval $ac_try) 2>&5
14769 ac_status=$?
14770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771 (exit $ac_status); }; } &&
14772 { ac_try='test -s conftest.$ac_objext'
14773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14774 (eval $ac_try) 2>&5
14775 ac_status=$?
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); }; }; then
14779 cat >>confdefs.h <<\_ACEOF
14780 #define HAVE_UNDERSCORE_TIMEZONE 1
14781 _ACEOF
14783 echo "$as_me:$LINENO: result: yes" >&5
14784 echo "${ECHO_T}yes" >&6
14785 else
14786 echo "$as_me: failed program was:" >&5
14787 sed 's/^/| /' conftest.$ac_ext >&5
14789 echo "$as_me:$LINENO: result: no" >&5
14790 echo "${ECHO_T}no" >&6
14792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14798 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14799 # for constant arguments. Useless!
14800 echo "$as_me:$LINENO: checking for working alloca.h" >&5
14801 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14802 if test "${ac_cv_working_alloca_h+set}" = set; then
14803 echo $ECHO_N "(cached) $ECHO_C" >&6
14804 else
14805 if test x$gcc_no_link = xyes; then
14806 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14807 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14808 { (exit 1); exit 1; }; }
14810 cat >conftest.$ac_ext <<_ACEOF
14811 /* confdefs.h. */
14812 _ACEOF
14813 cat confdefs.h >>conftest.$ac_ext
14814 cat >>conftest.$ac_ext <<_ACEOF
14815 /* end confdefs.h. */
14816 #include <alloca.h>
14818 main ()
14820 char *p = (char *) alloca (2 * sizeof (int));
14822 return 0;
14824 _ACEOF
14825 rm -f conftest.$ac_objext conftest$ac_exeext
14826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14827 (eval $ac_link) 2>conftest.er1
14828 ac_status=$?
14829 grep -v '^ *+' conftest.er1 >conftest.err
14830 rm -f conftest.er1
14831 cat conftest.err >&5
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); } &&
14834 { ac_try='test -z "$ac_c_werror_flag"
14835 || test ! -s conftest.err'
14836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14837 (eval $ac_try) 2>&5
14838 ac_status=$?
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); }; } &&
14841 { ac_try='test -s conftest$ac_exeext'
14842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14843 (eval $ac_try) 2>&5
14844 ac_status=$?
14845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846 (exit $ac_status); }; }; then
14847 ac_cv_working_alloca_h=yes
14848 else
14849 echo "$as_me: failed program was:" >&5
14850 sed 's/^/| /' conftest.$ac_ext >&5
14852 ac_cv_working_alloca_h=no
14854 rm -f conftest.err conftest.$ac_objext \
14855 conftest$ac_exeext conftest.$ac_ext
14857 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14858 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14859 if test $ac_cv_working_alloca_h = yes; then
14861 cat >>confdefs.h <<\_ACEOF
14862 #define HAVE_ALLOCA_H 1
14863 _ACEOF
14867 echo "$as_me:$LINENO: checking for alloca" >&5
14868 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14869 if test "${ac_cv_func_alloca_works+set}" = set; then
14870 echo $ECHO_N "(cached) $ECHO_C" >&6
14871 else
14872 if test x$gcc_no_link = xyes; then
14873 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14874 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14875 { (exit 1); exit 1; }; }
14877 cat >conftest.$ac_ext <<_ACEOF
14878 /* confdefs.h. */
14879 _ACEOF
14880 cat confdefs.h >>conftest.$ac_ext
14881 cat >>conftest.$ac_ext <<_ACEOF
14882 /* end confdefs.h. */
14883 #ifdef __GNUC__
14884 # define alloca __builtin_alloca
14885 #else
14886 # ifdef _MSC_VER
14887 # include <malloc.h>
14888 # define alloca _alloca
14889 # else
14890 # if HAVE_ALLOCA_H
14891 # include <alloca.h>
14892 # else
14893 # ifdef _AIX
14894 #pragma alloca
14895 # else
14896 # ifndef alloca /* predefined by HP cc +Olibcalls */
14897 char *alloca ();
14898 # endif
14899 # endif
14900 # endif
14901 # endif
14902 #endif
14905 main ()
14907 char *p = (char *) alloca (1);
14909 return 0;
14911 _ACEOF
14912 rm -f conftest.$ac_objext conftest$ac_exeext
14913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14914 (eval $ac_link) 2>conftest.er1
14915 ac_status=$?
14916 grep -v '^ *+' conftest.er1 >conftest.err
14917 rm -f conftest.er1
14918 cat conftest.err >&5
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); } &&
14921 { ac_try='test -z "$ac_c_werror_flag"
14922 || test ! -s conftest.err'
14923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14924 (eval $ac_try) 2>&5
14925 ac_status=$?
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); }; } &&
14928 { ac_try='test -s conftest$ac_exeext'
14929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14930 (eval $ac_try) 2>&5
14931 ac_status=$?
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); }; }; then
14934 ac_cv_func_alloca_works=yes
14935 else
14936 echo "$as_me: failed program was:" >&5
14937 sed 's/^/| /' conftest.$ac_ext >&5
14939 ac_cv_func_alloca_works=no
14941 rm -f conftest.err conftest.$ac_objext \
14942 conftest$ac_exeext conftest.$ac_ext
14944 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14945 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14947 if test $ac_cv_func_alloca_works = yes; then
14949 cat >>confdefs.h <<\_ACEOF
14950 #define HAVE_ALLOCA 1
14951 _ACEOF
14953 else
14954 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14955 # that cause trouble. Some versions do not even contain alloca or
14956 # contain a buggy version. If you still want to use their alloca,
14957 # use ar to extract alloca.o from them instead of compiling alloca.c.
14959 ALLOCA=alloca.$ac_objext
14961 cat >>confdefs.h <<\_ACEOF
14962 #define C_ALLOCA 1
14963 _ACEOF
14966 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14967 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14968 if test "${ac_cv_os_cray+set}" = set; then
14969 echo $ECHO_N "(cached) $ECHO_C" >&6
14970 else
14971 cat >conftest.$ac_ext <<_ACEOF
14972 /* confdefs.h. */
14973 _ACEOF
14974 cat confdefs.h >>conftest.$ac_ext
14975 cat >>conftest.$ac_ext <<_ACEOF
14976 /* end confdefs.h. */
14977 #if defined(CRAY) && ! defined(CRAY2)
14978 webecray
14979 #else
14980 wenotbecray
14981 #endif
14983 _ACEOF
14984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14985 $EGREP "webecray" >/dev/null 2>&1; then
14986 ac_cv_os_cray=yes
14987 else
14988 ac_cv_os_cray=no
14990 rm -f conftest*
14993 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14994 echo "${ECHO_T}$ac_cv_os_cray" >&6
14995 if test $ac_cv_os_cray = yes; then
14996 for ac_func in _getb67 GETB67 getb67; do
14997 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14998 echo "$as_me:$LINENO: checking for $ac_func" >&5
14999 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15000 if eval "test \"\${$as_ac_var+set}\" = set"; then
15001 echo $ECHO_N "(cached) $ECHO_C" >&6
15002 else
15003 if test x$gcc_no_link = xyes; then
15004 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15005 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15006 { (exit 1); exit 1; }; }
15008 cat >conftest.$ac_ext <<_ACEOF
15009 /* confdefs.h. */
15010 _ACEOF
15011 cat confdefs.h >>conftest.$ac_ext
15012 cat >>conftest.$ac_ext <<_ACEOF
15013 /* end confdefs.h. */
15014 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15016 #define $ac_func innocuous_$ac_func
15018 /* System header to define __stub macros and hopefully few prototypes,
15019 which can conflict with char $ac_func (); below.
15020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15021 <limits.h> exists even on freestanding compilers. */
15023 #ifdef __STDC__
15024 # include <limits.h>
15025 #else
15026 # include <assert.h>
15027 #endif
15029 #undef $ac_func
15031 /* Override any gcc2 internal prototype to avoid an error. */
15032 #ifdef __cplusplus
15033 extern "C"
15035 #endif
15036 /* We use char because int might match the return type of a gcc2
15037 builtin and then its argument prototype would still apply. */
15038 char $ac_func ();
15039 /* The GNU C library defines this for functions which it implements
15040 to always fail with ENOSYS. Some functions are actually named
15041 something starting with __ and the normal name is an alias. */
15042 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15043 choke me
15044 #else
15045 char (*f) () = $ac_func;
15046 #endif
15047 #ifdef __cplusplus
15049 #endif
15052 main ()
15054 return f != $ac_func;
15056 return 0;
15058 _ACEOF
15059 rm -f conftest.$ac_objext conftest$ac_exeext
15060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15061 (eval $ac_link) 2>conftest.er1
15062 ac_status=$?
15063 grep -v '^ *+' conftest.er1 >conftest.err
15064 rm -f conftest.er1
15065 cat conftest.err >&5
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); } &&
15068 { ac_try='test -z "$ac_c_werror_flag"
15069 || test ! -s conftest.err'
15070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15071 (eval $ac_try) 2>&5
15072 ac_status=$?
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); }; } &&
15075 { ac_try='test -s conftest$ac_exeext'
15076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15077 (eval $ac_try) 2>&5
15078 ac_status=$?
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); }; }; then
15081 eval "$as_ac_var=yes"
15082 else
15083 echo "$as_me: failed program was:" >&5
15084 sed 's/^/| /' conftest.$ac_ext >&5
15086 eval "$as_ac_var=no"
15088 rm -f conftest.err conftest.$ac_objext \
15089 conftest$ac_exeext conftest.$ac_ext
15091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15092 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15093 if test `eval echo '${'$as_ac_var'}'` = yes; then
15095 cat >>confdefs.h <<_ACEOF
15096 #define CRAY_STACKSEG_END $ac_func
15097 _ACEOF
15099 break
15102 done
15105 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15106 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15107 if test "${ac_cv_c_stack_direction+set}" = set; then
15108 echo $ECHO_N "(cached) $ECHO_C" >&6
15109 else
15110 if test "$cross_compiling" = yes; then
15111 ac_cv_c_stack_direction=0
15112 else
15113 cat >conftest.$ac_ext <<_ACEOF
15114 /* confdefs.h. */
15115 _ACEOF
15116 cat confdefs.h >>conftest.$ac_ext
15117 cat >>conftest.$ac_ext <<_ACEOF
15118 /* end confdefs.h. */
15120 find_stack_direction ()
15122 static char *addr = 0;
15123 auto char dummy;
15124 if (addr == 0)
15126 addr = &dummy;
15127 return find_stack_direction ();
15129 else
15130 return (&dummy > addr) ? 1 : -1;
15134 main ()
15136 exit (find_stack_direction () < 0);
15138 _ACEOF
15139 rm -f conftest$ac_exeext
15140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15141 (eval $ac_link) 2>&5
15142 ac_status=$?
15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15146 (eval $ac_try) 2>&5
15147 ac_status=$?
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); }; }; then
15150 ac_cv_c_stack_direction=1
15151 else
15152 echo "$as_me: program exited with status $ac_status" >&5
15153 echo "$as_me: failed program was:" >&5
15154 sed 's/^/| /' conftest.$ac_ext >&5
15156 ( exit $ac_status )
15157 ac_cv_c_stack_direction=-1
15159 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15162 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15163 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
15165 cat >>confdefs.h <<_ACEOF
15166 #define STACK_DIRECTION $ac_cv_c_stack_direction
15167 _ACEOF
15172 if test x$gcc_no_link = xyes; then
15173 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
15174 ac_cv_func_mmap_fixed_mapped=no
15177 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
15180 for ac_header in stdlib.h unistd.h
15182 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15184 echo "$as_me:$LINENO: checking for $ac_header" >&5
15185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15187 echo $ECHO_N "(cached) $ECHO_C" >&6
15189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15191 else
15192 # Is the header compilable?
15193 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15194 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15195 cat >conftest.$ac_ext <<_ACEOF
15196 /* confdefs.h. */
15197 _ACEOF
15198 cat confdefs.h >>conftest.$ac_ext
15199 cat >>conftest.$ac_ext <<_ACEOF
15200 /* end confdefs.h. */
15201 $ac_includes_default
15202 #include <$ac_header>
15203 _ACEOF
15204 rm -f conftest.$ac_objext
15205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15206 (eval $ac_compile) 2>conftest.er1
15207 ac_status=$?
15208 grep -v '^ *+' conftest.er1 >conftest.err
15209 rm -f conftest.er1
15210 cat conftest.err >&5
15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); } &&
15213 { ac_try='test -z "$ac_c_werror_flag"
15214 || test ! -s conftest.err'
15215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15216 (eval $ac_try) 2>&5
15217 ac_status=$?
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); }; } &&
15220 { ac_try='test -s conftest.$ac_objext'
15221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15222 (eval $ac_try) 2>&5
15223 ac_status=$?
15224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225 (exit $ac_status); }; }; then
15226 ac_header_compiler=yes
15227 else
15228 echo "$as_me: failed program was:" >&5
15229 sed 's/^/| /' conftest.$ac_ext >&5
15231 ac_header_compiler=no
15233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15234 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15235 echo "${ECHO_T}$ac_header_compiler" >&6
15237 # Is the header present?
15238 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15239 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15240 cat >conftest.$ac_ext <<_ACEOF
15241 /* confdefs.h. */
15242 _ACEOF
15243 cat confdefs.h >>conftest.$ac_ext
15244 cat >>conftest.$ac_ext <<_ACEOF
15245 /* end confdefs.h. */
15246 #include <$ac_header>
15247 _ACEOF
15248 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15249 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15250 ac_status=$?
15251 grep -v '^ *+' conftest.er1 >conftest.err
15252 rm -f conftest.er1
15253 cat conftest.err >&5
15254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255 (exit $ac_status); } >/dev/null; then
15256 if test -s conftest.err; then
15257 ac_cpp_err=$ac_c_preproc_warn_flag
15258 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15259 else
15260 ac_cpp_err=
15262 else
15263 ac_cpp_err=yes
15265 if test -z "$ac_cpp_err"; then
15266 ac_header_preproc=yes
15267 else
15268 echo "$as_me: failed program was:" >&5
15269 sed 's/^/| /' conftest.$ac_ext >&5
15271 ac_header_preproc=no
15273 rm -f conftest.err conftest.$ac_ext
15274 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15275 echo "${ECHO_T}$ac_header_preproc" >&6
15277 # So? What about this header?
15278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15279 yes:no: )
15280 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15281 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15283 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15284 ac_header_preproc=yes
15286 no:yes:* )
15287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15288 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15290 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15291 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15292 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15293 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15294 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15297 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15298 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15300 cat <<\_ASBOX
15301 ## ---------------------------------- ##
15302 ## Report this to the libjava lists. ##
15303 ## ---------------------------------- ##
15304 _ASBOX
15306 sed "s/^/$as_me: WARNING: /" >&2
15308 esac
15309 echo "$as_me:$LINENO: checking for $ac_header" >&5
15310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15311 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15312 echo $ECHO_N "(cached) $ECHO_C" >&6
15313 else
15314 eval "$as_ac_Header=\$ac_header_preproc"
15316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15321 cat >>confdefs.h <<_ACEOF
15322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15323 _ACEOF
15327 done
15330 for ac_func in getpagesize
15332 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15333 echo "$as_me:$LINENO: checking for $ac_func" >&5
15334 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15335 if eval "test \"\${$as_ac_var+set}\" = set"; then
15336 echo $ECHO_N "(cached) $ECHO_C" >&6
15337 else
15338 if test x$gcc_no_link = xyes; then
15339 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15340 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15341 { (exit 1); exit 1; }; }
15343 cat >conftest.$ac_ext <<_ACEOF
15344 /* confdefs.h. */
15345 _ACEOF
15346 cat confdefs.h >>conftest.$ac_ext
15347 cat >>conftest.$ac_ext <<_ACEOF
15348 /* end confdefs.h. */
15349 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15351 #define $ac_func innocuous_$ac_func
15353 /* System header to define __stub macros and hopefully few prototypes,
15354 which can conflict with char $ac_func (); below.
15355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15356 <limits.h> exists even on freestanding compilers. */
15358 #ifdef __STDC__
15359 # include <limits.h>
15360 #else
15361 # include <assert.h>
15362 #endif
15364 #undef $ac_func
15366 /* Override any gcc2 internal prototype to avoid an error. */
15367 #ifdef __cplusplus
15368 extern "C"
15370 #endif
15371 /* We use char because int might match the return type of a gcc2
15372 builtin and then its argument prototype would still apply. */
15373 char $ac_func ();
15374 /* The GNU C library defines this for functions which it implements
15375 to always fail with ENOSYS. Some functions are actually named
15376 something starting with __ and the normal name is an alias. */
15377 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15378 choke me
15379 #else
15380 char (*f) () = $ac_func;
15381 #endif
15382 #ifdef __cplusplus
15384 #endif
15387 main ()
15389 return f != $ac_func;
15391 return 0;
15393 _ACEOF
15394 rm -f conftest.$ac_objext conftest$ac_exeext
15395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15396 (eval $ac_link) 2>conftest.er1
15397 ac_status=$?
15398 grep -v '^ *+' conftest.er1 >conftest.err
15399 rm -f conftest.er1
15400 cat conftest.err >&5
15401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402 (exit $ac_status); } &&
15403 { ac_try='test -z "$ac_c_werror_flag"
15404 || test ! -s conftest.err'
15405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15406 (eval $ac_try) 2>&5
15407 ac_status=$?
15408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409 (exit $ac_status); }; } &&
15410 { ac_try='test -s conftest$ac_exeext'
15411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15412 (eval $ac_try) 2>&5
15413 ac_status=$?
15414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415 (exit $ac_status); }; }; then
15416 eval "$as_ac_var=yes"
15417 else
15418 echo "$as_me: failed program was:" >&5
15419 sed 's/^/| /' conftest.$ac_ext >&5
15421 eval "$as_ac_var=no"
15423 rm -f conftest.err conftest.$ac_objext \
15424 conftest$ac_exeext conftest.$ac_ext
15426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15427 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15428 if test `eval echo '${'$as_ac_var'}'` = yes; then
15429 cat >>confdefs.h <<_ACEOF
15430 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15431 _ACEOF
15434 done
15436 echo "$as_me:$LINENO: checking for working mmap" >&5
15437 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
15438 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
15439 echo $ECHO_N "(cached) $ECHO_C" >&6
15440 else
15441 if test "$cross_compiling" = yes; then
15442 ac_cv_func_mmap_fixed_mapped=no
15443 else
15444 cat >conftest.$ac_ext <<_ACEOF
15445 /* confdefs.h. */
15446 _ACEOF
15447 cat confdefs.h >>conftest.$ac_ext
15448 cat >>conftest.$ac_ext <<_ACEOF
15449 /* end confdefs.h. */
15450 $ac_includes_default
15451 /* malloc might have been renamed as rpl_malloc. */
15452 #undef malloc
15454 /* Thanks to Mike Haertel and Jim Avera for this test.
15455 Here is a matrix of mmap possibilities:
15456 mmap private not fixed
15457 mmap private fixed at somewhere currently unmapped
15458 mmap private fixed at somewhere already mapped
15459 mmap shared not fixed
15460 mmap shared fixed at somewhere currently unmapped
15461 mmap shared fixed at somewhere already mapped
15462 For private mappings, we should verify that changes cannot be read()
15463 back from the file, nor mmap's back from the file at a different
15464 address. (There have been systems where private was not correctly
15465 implemented like the infamous i386 svr4.0, and systems where the
15466 VM page cache was not coherent with the file system buffer cache
15467 like early versions of FreeBSD and possibly contemporary NetBSD.)
15468 For shared mappings, we should conversely verify that changes get
15469 propagated back to all the places they're supposed to be.
15471 Grep wants private fixed already mapped.
15472 The main things grep needs to know about mmap are:
15473 * does it exist and is it safe to write into the mmap'd area
15474 * how to use it (BSD variants) */
15476 #include <fcntl.h>
15477 #include <sys/mman.h>
15479 #if !STDC_HEADERS && !HAVE_STDLIB_H
15480 char *malloc ();
15481 #endif
15483 /* This mess was copied from the GNU getpagesize.h. */
15484 #if !HAVE_GETPAGESIZE
15485 /* Assume that all systems that can run configure have sys/param.h. */
15486 # if !HAVE_SYS_PARAM_H
15487 # define HAVE_SYS_PARAM_H 1
15488 # endif
15490 # ifdef _SC_PAGESIZE
15491 # define getpagesize() sysconf(_SC_PAGESIZE)
15492 # else /* no _SC_PAGESIZE */
15493 # if HAVE_SYS_PARAM_H
15494 # include <sys/param.h>
15495 # ifdef EXEC_PAGESIZE
15496 # define getpagesize() EXEC_PAGESIZE
15497 # else /* no EXEC_PAGESIZE */
15498 # ifdef NBPG
15499 # define getpagesize() NBPG * CLSIZE
15500 # ifndef CLSIZE
15501 # define CLSIZE 1
15502 # endif /* no CLSIZE */
15503 # else /* no NBPG */
15504 # ifdef NBPC
15505 # define getpagesize() NBPC
15506 # else /* no NBPC */
15507 # ifdef PAGESIZE
15508 # define getpagesize() PAGESIZE
15509 # endif /* PAGESIZE */
15510 # endif /* no NBPC */
15511 # endif /* no NBPG */
15512 # endif /* no EXEC_PAGESIZE */
15513 # else /* no HAVE_SYS_PARAM_H */
15514 # define getpagesize() 8192 /* punt totally */
15515 # endif /* no HAVE_SYS_PARAM_H */
15516 # endif /* no _SC_PAGESIZE */
15518 #endif /* no HAVE_GETPAGESIZE */
15521 main ()
15523 char *data, *data2, *data3;
15524 int i, pagesize;
15525 int fd;
15527 pagesize = getpagesize ();
15529 /* First, make a file with some known garbage in it. */
15530 data = (char *) malloc (pagesize);
15531 if (!data)
15532 exit (1);
15533 for (i = 0; i < pagesize; ++i)
15534 *(data + i) = rand ();
15535 umask (0);
15536 fd = creat ("conftest.mmap", 0600);
15537 if (fd < 0)
15538 exit (1);
15539 if (write (fd, data, pagesize) != pagesize)
15540 exit (1);
15541 close (fd);
15543 /* Next, try to mmap the file at a fixed address which already has
15544 something else allocated at it. If we can, also make sure that
15545 we see the same garbage. */
15546 fd = open ("conftest.mmap", O_RDWR);
15547 if (fd < 0)
15548 exit (1);
15549 data2 = (char *) malloc (2 * pagesize);
15550 if (!data2)
15551 exit (1);
15552 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
15553 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15554 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15555 exit (1);
15556 for (i = 0; i < pagesize; ++i)
15557 if (*(data + i) != *(data2 + i))
15558 exit (1);
15560 /* Finally, make sure that changes to the mapped area do not
15561 percolate back to the file as seen by read(). (This is a bug on
15562 some variants of i386 svr4.0.) */
15563 for (i = 0; i < pagesize; ++i)
15564 *(data2 + i) = *(data2 + i) + 1;
15565 data3 = (char *) malloc (pagesize);
15566 if (!data3)
15567 exit (1);
15568 if (read (fd, data3, pagesize) != pagesize)
15569 exit (1);
15570 for (i = 0; i < pagesize; ++i)
15571 if (*(data + i) != *(data3 + i))
15572 exit (1);
15573 close (fd);
15574 exit (0);
15576 _ACEOF
15577 rm -f conftest$ac_exeext
15578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15579 (eval $ac_link) 2>&5
15580 ac_status=$?
15581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15584 (eval $ac_try) 2>&5
15585 ac_status=$?
15586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587 (exit $ac_status); }; }; then
15588 ac_cv_func_mmap_fixed_mapped=yes
15589 else
15590 echo "$as_me: program exited with status $ac_status" >&5
15591 echo "$as_me: failed program was:" >&5
15592 sed 's/^/| /' conftest.$ac_ext >&5
15594 ( exit $ac_status )
15595 ac_cv_func_mmap_fixed_mapped=no
15597 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15600 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
15601 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
15602 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15604 cat >>confdefs.h <<\_ACEOF
15605 #define HAVE_MMAP 1
15606 _ACEOF
15609 rm -f conftest.mmap
15613 for ac_prog in perl
15615 # Extract the first word of "$ac_prog", so it can be a program name with args.
15616 set dummy $ac_prog; ac_word=$2
15617 echo "$as_me:$LINENO: checking for $ac_word" >&5
15618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15619 if test "${ac_cv_prog_PERL+set}" = set; then
15620 echo $ECHO_N "(cached) $ECHO_C" >&6
15621 else
15622 if test -n "$PERL"; then
15623 ac_cv_prog_PERL="$PERL" # Let the user override the test.
15624 else
15625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15626 for as_dir in $PATH
15628 IFS=$as_save_IFS
15629 test -z "$as_dir" && as_dir=.
15630 for ac_exec_ext in '' $ac_executable_extensions; do
15631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15632 ac_cv_prog_PERL="$ac_prog"
15633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15634 break 2
15636 done
15637 done
15641 PERL=$ac_cv_prog_PERL
15642 if test -n "$PERL"; then
15643 echo "$as_me:$LINENO: result: $PERL" >&5
15644 echo "${ECHO_T}$PERL" >&6
15645 else
15646 echo "$as_me:$LINENO: result: no" >&5
15647 echo "${ECHO_T}no" >&6
15650 test -n "$PERL" && break
15651 done
15652 test -n "$PERL" || PERL="false"
15655 SYSDEP_SOURCES=
15656 SIGNAL_HANDLER_AUX=
15658 case "${host}" in
15659 i?86-*-linux*)
15660 SIGNAL_HANDLER=include/i386-signal.h
15662 sparc*-sun-solaris*)
15663 SIGNAL_HANDLER=include/sparc-signal.h
15665 # ia64-*)
15666 # SYSDEP_SOURCES=sysdep/ia64.c
15667 # test -d sysdep || mkdir sysdep
15668 # ;;
15669 hppa*-*-linux*)
15670 SIGNAL_HANDLER=include/pa-signal.h
15672 ia64-*-linux*)
15673 SIGNAL_HANDLER=include/dwarf2-signal.h
15675 powerpc*-*-linux*)
15676 SIGNAL_HANDLER=include/powerpc-signal.h
15678 alpha*-*-linux*)
15679 SIGNAL_HANDLER=include/dwarf2-signal.h
15681 s390*-*-linux*)
15682 SIGNAL_HANDLER=include/s390-signal.h
15684 x86_64*-*-linux*)
15685 SIGNAL_HANDLER=include/x86_64-signal.h
15686 SIGNAL_HANDLER_AUX=include/i386-signal.h
15688 sparc*-*-linux*)
15689 SIGNAL_HANDLER=include/dwarf2-signal.h
15691 sh*-*-linux*)
15692 SIGNAL_HANDLER=include/sh-signal.h
15694 *mingw*)
15695 SIGNAL_HANDLER=include/win32-signal.h
15697 mips*-*-linux*)
15698 SIGNAL_HANDLER=include/mips-signal.h
15700 *-*-darwin*)
15701 SIGNAL_HANDLER=include/darwin-signal.h
15704 SIGNAL_HANDLER=include/default-signal.h
15706 esac
15708 # If we're using sjlj exceptions, forget what we just learned.
15709 if test "$enable_sjlj_exceptions" = yes; then
15710 SIGNAL_HANDLER=include/default-signal.h
15711 SIGNAL_HANDLER_AUX=
15714 # Define here any compiler flags that you need in order to make backtrace() work.
15715 BACKTRACESPEC=
15716 case "${host}" in
15717 x86_64*-*-linux*|i?86-*)
15718 BACKTRACESPEC=-fno-omit-frame-pointer
15720 esac
15725 if test -z "$SIGNAL_HANDLER_AUX"; then
15726 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
15729 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
15732 if test "${multilib}" = "yes"; then
15733 multilib_arg="--enable-multilib"
15734 else
15735 multilib_arg=
15740 here=`${PWDCMD-pwd}`
15743 # We get this from the environment.
15746 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile external/Makefile external/sax/Makefile external/w3c_dom/Makefile"
15749 ac_config_commands="$ac_config_commands default"
15752 cat >confcache <<\_ACEOF
15753 # This file is a shell script that caches the results of configure
15754 # tests run on this system so they can be shared between configure
15755 # scripts and configure runs, see configure's option --config-cache.
15756 # It is not useful on other systems. If it contains results you don't
15757 # want to keep, you may remove or edit it.
15759 # config.status only pays attention to the cache file if you give it
15760 # the --recheck option to rerun configure.
15762 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15763 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15764 # following values.
15766 _ACEOF
15768 # The following way of writing the cache mishandles newlines in values,
15769 # but we know of no workaround that is simple, portable, and efficient.
15770 # So, don't put newlines in cache variables' values.
15771 # Ultrix sh set writes to stderr and can't be redirected directly,
15772 # and sets the high bit in the cache file unless we assign to the vars.
15774 (set) 2>&1 |
15775 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15776 *ac_space=\ *)
15777 # `set' does not quote correctly, so add quotes (double-quote
15778 # substitution turns \\\\ into \\, and sed turns \\ into \).
15779 sed -n \
15780 "s/'/'\\\\''/g;
15781 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15784 # `set' quotes correctly as required by POSIX, so do not add quotes.
15785 sed -n \
15786 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15788 esac;
15790 sed '
15791 t clear
15792 : clear
15793 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15794 t end
15795 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15796 : end' >>confcache
15797 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15798 if test -w $cache_file; then
15799 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15800 cat confcache >$cache_file
15801 else
15802 echo "not updating unwritable cache $cache_file"
15805 rm -f confcache
15807 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15808 # Let make expand exec_prefix.
15809 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15811 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15812 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15813 # trailing colons and then remove the whole line if VPATH becomes empty
15814 # (actually we leave an empty line to preserve line numbers).
15815 if test "x$srcdir" = x.; then
15816 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15817 s/:*\$(srcdir):*/:/;
15818 s/:*\${srcdir}:*/:/;
15819 s/:*@srcdir@:*/:/;
15820 s/^\([^=]*=[ ]*\):*/\1/;
15821 s/:*$//;
15822 s/^[^=]*=[ ]*$//;
15826 DEFS=-DHAVE_CONFIG_H
15828 ac_libobjs=
15829 ac_ltlibobjs=
15830 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15831 # 1. Remove the extension, and $U if already installed.
15832 ac_i=`echo "$ac_i" |
15833 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15834 # 2. Add them.
15835 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15836 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15837 done
15838 LIBOBJS=$ac_libobjs
15840 LTLIBOBJS=$ac_ltlibobjs
15843 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15844 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15845 Usually this means the macro was only invoked conditionally." >&5
15846 echo "$as_me: error: conditional \"AMDEP\" was never defined.
15847 Usually this means the macro was only invoked conditionally." >&2;}
15848 { (exit 1); exit 1; }; }
15850 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15851 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15852 Usually this means the macro was only invoked conditionally." >&5
15853 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15854 Usually this means the macro was only invoked conditionally." >&2;}
15855 { (exit 1); exit 1; }; }
15857 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15858 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
15859 Usually this means the macro was only invoked conditionally." >&5
15860 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
15861 Usually this means the macro was only invoked conditionally." >&2;}
15862 { (exit 1); exit 1; }; }
15864 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15865 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15866 Usually this means the macro was only invoked conditionally." >&5
15867 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
15868 Usually this means the macro was only invoked conditionally." >&2;}
15869 { (exit 1); exit 1; }; }
15871 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
15872 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
15873 Usually this means the macro was only invoked conditionally." >&5
15874 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
15875 Usually this means the macro was only invoked conditionally." >&2;}
15876 { (exit 1); exit 1; }; }
15878 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
15879 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
15880 Usually this means the macro was only invoked conditionally." >&5
15881 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
15882 Usually this means the macro was only invoked conditionally." >&2;}
15883 { (exit 1); exit 1; }; }
15885 if test -z "${ONESTEP_TRUE}" && test -z "${ONESTEP_FALSE}"; then
15886 { { echo "$as_me:$LINENO: error: conditional \"ONESTEP\" was never defined.
15887 Usually this means the macro was only invoked conditionally." >&5
15888 echo "$as_me: error: conditional \"ONESTEP\" was never defined.
15889 Usually this means the macro was only invoked conditionally." >&2;}
15890 { (exit 1); exit 1; }; }
15892 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
15893 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
15894 Usually this means the macro was only invoked conditionally." >&5
15895 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
15896 Usually this means the macro was only invoked conditionally." >&2;}
15897 { (exit 1); exit 1; }; }
15899 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
15900 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
15901 Usually this means the macro was only invoked conditionally." >&5
15902 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
15903 Usually this means the macro was only invoked conditionally." >&2;}
15904 { (exit 1); exit 1; }; }
15906 if test -z "${USING_ECOS_PLATFORM_TRUE}" && test -z "${USING_ECOS_PLATFORM_FALSE}"; then
15907 { { echo "$as_me:$LINENO: error: conditional \"USING_ECOS_PLATFORM\" was never defined.
15908 Usually this means the macro was only invoked conditionally." >&5
15909 echo "$as_me: error: conditional \"USING_ECOS_PLATFORM\" was never defined.
15910 Usually this means the macro was only invoked conditionally." >&2;}
15911 { (exit 1); exit 1; }; }
15913 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
15914 { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
15915 Usually this means the macro was only invoked conditionally." >&5
15916 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
15917 Usually this means the macro was only invoked conditionally." >&2;}
15918 { (exit 1); exit 1; }; }
15920 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
15921 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
15922 Usually this means the macro was only invoked conditionally." >&5
15923 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
15924 Usually this means the macro was only invoked conditionally." >&2;}
15925 { (exit 1); exit 1; }; }
15927 if test -z "${GTK_AWT_TRUE}" && test -z "${GTK_AWT_FALSE}"; then
15928 { { echo "$as_me:$LINENO: error: conditional \"GTK_AWT\" was never defined.
15929 Usually this means the macro was only invoked conditionally." >&5
15930 echo "$as_me: error: conditional \"GTK_AWT\" was never defined.
15931 Usually this means the macro was only invoked conditionally." >&2;}
15932 { (exit 1); exit 1; }; }
15934 if test -z "${GTK_CAIRO_TRUE}" && test -z "${GTK_CAIRO_FALSE}"; then
15935 { { echo "$as_me:$LINENO: error: conditional \"GTK_CAIRO\" was never defined.
15936 Usually this means the macro was only invoked conditionally." >&5
15937 echo "$as_me: error: conditional \"GTK_CAIRO\" was never defined.
15938 Usually this means the macro was only invoked conditionally." >&2;}
15939 { (exit 1); exit 1; }; }
15941 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
15942 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
15943 Usually this means the macro was only invoked conditionally." >&5
15944 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
15945 Usually this means the macro was only invoked conditionally." >&2;}
15946 { (exit 1); exit 1; }; }
15948 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
15949 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
15950 Usually this means the macro was only invoked conditionally." >&5
15951 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
15952 Usually this means the macro was only invoked conditionally." >&2;}
15953 { (exit 1); exit 1; }; }
15955 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
15956 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
15957 Usually this means the macro was only invoked conditionally." >&5
15958 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
15959 Usually this means the macro was only invoked conditionally." >&2;}
15960 { (exit 1); exit 1; }; }
15962 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
15963 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
15964 Usually this means the macro was only invoked conditionally." >&5
15965 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
15966 Usually this means the macro was only invoked conditionally." >&2;}
15967 { (exit 1); exit 1; }; }
15969 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
15970 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
15971 Usually this means the macro was only invoked conditionally." >&5
15972 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
15973 Usually this means the macro was only invoked conditionally." >&2;}
15974 { (exit 1); exit 1; }; }
15976 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
15977 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
15978 Usually this means the macro was only invoked conditionally." >&5
15979 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
15980 Usually this means the macro was only invoked conditionally." >&2;}
15981 { (exit 1); exit 1; }; }
15983 if test -z "${SUPPLY_BACKTRACE_TRUE}" && test -z "${SUPPLY_BACKTRACE_FALSE}"; then
15984 { { echo "$as_me:$LINENO: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
15985 Usually this means the macro was only invoked conditionally." >&5
15986 echo "$as_me: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
15987 Usually this means the macro was only invoked conditionally." >&2;}
15988 { (exit 1); exit 1; }; }
15990 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
15991 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
15992 Usually this means the macro was only invoked conditionally." >&5
15993 echo "$as_me: error: conditional \"NATIVE\" was never defined.
15994 Usually this means the macro was only invoked conditionally." >&2;}
15995 { (exit 1); exit 1; }; }
15997 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
15998 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
15999 Usually this means the macro was only invoked conditionally." >&5
16000 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
16001 Usually this means the macro was only invoked conditionally." >&2;}
16002 { (exit 1); exit 1; }; }
16005 : ${CONFIG_STATUS=./config.status}
16006 ac_clean_files_save=$ac_clean_files
16007 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16008 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16009 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16010 cat >$CONFIG_STATUS <<_ACEOF
16011 #! $SHELL
16012 # Generated by $as_me.
16013 # Run this file to recreate the current configuration.
16014 # Compiler output produced by configure, useful for debugging
16015 # configure, is in config.log if it exists.
16017 debug=false
16018 ac_cs_recheck=false
16019 ac_cs_silent=false
16020 SHELL=\${CONFIG_SHELL-$SHELL}
16021 _ACEOF
16023 cat >>$CONFIG_STATUS <<\_ACEOF
16024 ## --------------------- ##
16025 ## M4sh Initialization. ##
16026 ## --------------------- ##
16028 # Be Bourne compatible
16029 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16030 emulate sh
16031 NULLCMD=:
16032 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16033 # is contrary to our usage. Disable this feature.
16034 alias -g '${1+"$@"}'='"$@"'
16035 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16036 set -o posix
16038 DUALCASE=1; export DUALCASE # for MKS sh
16040 # Support unset when possible.
16041 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16042 as_unset=unset
16043 else
16044 as_unset=false
16048 # Work around bugs in pre-3.0 UWIN ksh.
16049 $as_unset ENV MAIL MAILPATH
16050 PS1='$ '
16051 PS2='> '
16052 PS4='+ '
16054 # NLS nuisances.
16055 for as_var in \
16056 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16057 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16058 LC_TELEPHONE LC_TIME
16060 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16061 eval $as_var=C; export $as_var
16062 else
16063 $as_unset $as_var
16065 done
16067 # Required to use basename.
16068 if expr a : '\(a\)' >/dev/null 2>&1; then
16069 as_expr=expr
16070 else
16071 as_expr=false
16074 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16075 as_basename=basename
16076 else
16077 as_basename=false
16081 # Name of the executable.
16082 as_me=`$as_basename "$0" ||
16083 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16084 X"$0" : 'X\(//\)$' \| \
16085 X"$0" : 'X\(/\)$' \| \
16086 . : '\(.\)' 2>/dev/null ||
16087 echo X/"$0" |
16088 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16089 /^X\/\(\/\/\)$/{ s//\1/; q; }
16090 /^X\/\(\/\).*/{ s//\1/; q; }
16091 s/.*/./; q'`
16094 # PATH needs CR, and LINENO needs CR and PATH.
16095 # Avoid depending upon Character Ranges.
16096 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16097 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16098 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16099 as_cr_digits='0123456789'
16100 as_cr_alnum=$as_cr_Letters$as_cr_digits
16102 # The user is always right.
16103 if test "${PATH_SEPARATOR+set}" != set; then
16104 echo "#! /bin/sh" >conf$$.sh
16105 echo "exit 0" >>conf$$.sh
16106 chmod +x conf$$.sh
16107 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16108 PATH_SEPARATOR=';'
16109 else
16110 PATH_SEPARATOR=:
16112 rm -f conf$$.sh
16116 as_lineno_1=$LINENO
16117 as_lineno_2=$LINENO
16118 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16119 test "x$as_lineno_1" != "x$as_lineno_2" &&
16120 test "x$as_lineno_3" = "x$as_lineno_2" || {
16121 # Find who we are. Look in the path if we contain no path at all
16122 # relative or not.
16123 case $0 in
16124 *[\\/]* ) as_myself=$0 ;;
16125 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16126 for as_dir in $PATH
16128 IFS=$as_save_IFS
16129 test -z "$as_dir" && as_dir=.
16130 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16131 done
16134 esac
16135 # We did not find ourselves, most probably we were run as `sh COMMAND'
16136 # in which case we are not to be found in the path.
16137 if test "x$as_myself" = x; then
16138 as_myself=$0
16140 if test ! -f "$as_myself"; then
16141 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16142 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16143 { (exit 1); exit 1; }; }
16145 case $CONFIG_SHELL in
16147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16148 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16150 IFS=$as_save_IFS
16151 test -z "$as_dir" && as_dir=.
16152 for as_base in sh bash ksh sh5; do
16153 case $as_dir in
16155 if ("$as_dir/$as_base" -c '
16156 as_lineno_1=$LINENO
16157 as_lineno_2=$LINENO
16158 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16159 test "x$as_lineno_1" != "x$as_lineno_2" &&
16160 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16161 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16162 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16163 CONFIG_SHELL=$as_dir/$as_base
16164 export CONFIG_SHELL
16165 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16166 fi;;
16167 esac
16168 done
16169 done
16171 esac
16173 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16174 # uniformly replaced by the line number. The first 'sed' inserts a
16175 # line-number line before each line; the second 'sed' does the real
16176 # work. The second script uses 'N' to pair each line-number line
16177 # with the numbered line, and appends trailing '-' during
16178 # substitution so that $LINENO is not a special case at line end.
16179 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16180 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16181 sed '=' <$as_myself |
16182 sed '
16184 s,$,-,
16185 : loop
16186 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16187 t loop
16188 s,-$,,
16189 s,^['$as_cr_digits']*\n,,
16190 ' >$as_me.lineno &&
16191 chmod +x $as_me.lineno ||
16192 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16193 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16194 { (exit 1); exit 1; }; }
16196 # Don't try to exec as it changes $[0], causing all sort of problems
16197 # (the dirname of $[0] is not the place where we might find the
16198 # original and so on. Autoconf is especially sensible to this).
16199 . ./$as_me.lineno
16200 # Exit status is that of the last command.
16201 exit
16205 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16206 *c*,-n*) ECHO_N= ECHO_C='
16207 ' ECHO_T=' ' ;;
16208 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16209 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16210 esac
16212 if expr a : '\(a\)' >/dev/null 2>&1; then
16213 as_expr=expr
16214 else
16215 as_expr=false
16218 rm -f conf$$ conf$$.exe conf$$.file
16219 echo >conf$$.file
16220 if ln -s conf$$.file conf$$ 2>/dev/null; then
16221 # We could just check for DJGPP; but this test a) works b) is more generic
16222 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16223 if test -f conf$$.exe; then
16224 # Don't use ln at all; we don't have any links
16225 as_ln_s='cp -p'
16226 else
16227 as_ln_s='ln -s'
16229 elif ln conf$$.file conf$$ 2>/dev/null; then
16230 as_ln_s=ln
16231 else
16232 as_ln_s='cp -p'
16234 rm -f conf$$ conf$$.exe conf$$.file
16236 if mkdir -p . 2>/dev/null; then
16237 as_mkdir_p=:
16238 else
16239 test -d ./-p && rmdir ./-p
16240 as_mkdir_p=false
16243 as_executable_p="test -f"
16245 # Sed expression to map a string onto a valid CPP name.
16246 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16248 # Sed expression to map a string onto a valid variable name.
16249 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16252 # IFS
16253 # We need space, tab and new line, in precisely that order.
16254 as_nl='
16256 IFS=" $as_nl"
16258 # CDPATH.
16259 $as_unset CDPATH
16261 exec 6>&1
16263 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16264 # report actual input values of CONFIG_FILES etc. instead of their
16265 # values after options handling. Logging --version etc. is OK.
16266 exec 5>>config.log
16268 echo
16269 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16270 ## Running $as_me. ##
16271 _ASBOX
16272 } >&5
16273 cat >&5 <<_CSEOF
16275 This file was extended by libjava $as_me version-unused, which was
16276 generated by GNU Autoconf 2.59. Invocation command line was
16278 CONFIG_FILES = $CONFIG_FILES
16279 CONFIG_HEADERS = $CONFIG_HEADERS
16280 CONFIG_LINKS = $CONFIG_LINKS
16281 CONFIG_COMMANDS = $CONFIG_COMMANDS
16282 $ $0 $@
16284 _CSEOF
16285 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16286 echo >&5
16287 _ACEOF
16289 # Files that config.status was made for.
16290 if test -n "$ac_config_files"; then
16291 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16294 if test -n "$ac_config_headers"; then
16295 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16298 if test -n "$ac_config_links"; then
16299 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16302 if test -n "$ac_config_commands"; then
16303 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16306 cat >>$CONFIG_STATUS <<\_ACEOF
16308 ac_cs_usage="\
16309 \`$as_me' instantiates files from templates according to the
16310 current configuration.
16312 Usage: $0 [OPTIONS] [FILE]...
16314 -h, --help print this help, then exit
16315 -V, --version print version number, then exit
16316 -q, --quiet do not print progress messages
16317 -d, --debug don't remove temporary files
16318 --recheck update $as_me by reconfiguring in the same conditions
16319 --file=FILE[:TEMPLATE]
16320 instantiate the configuration file FILE
16321 --header=FILE[:TEMPLATE]
16322 instantiate the configuration header FILE
16324 Configuration files:
16325 $config_files
16327 Configuration headers:
16328 $config_headers
16330 Configuration links:
16331 $config_links
16333 Configuration commands:
16334 $config_commands
16336 Report bugs to <bug-autoconf@gnu.org>."
16337 _ACEOF
16339 cat >>$CONFIG_STATUS <<_ACEOF
16340 ac_cs_version="\\
16341 libjava config.status version-unused
16342 configured by $0, generated by GNU Autoconf 2.59,
16343 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16345 Copyright (C) 2003 Free Software Foundation, Inc.
16346 This config.status script is free software; the Free Software Foundation
16347 gives unlimited permission to copy, distribute and modify it."
16348 srcdir=$srcdir
16349 INSTALL="$INSTALL"
16350 _ACEOF
16352 cat >>$CONFIG_STATUS <<\_ACEOF
16353 # If no file are specified by the user, then we need to provide default
16354 # value. By we need to know if files were specified by the user.
16355 ac_need_defaults=:
16356 while test $# != 0
16358 case $1 in
16359 --*=*)
16360 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16361 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16362 ac_shift=:
16365 ac_option=$1
16366 ac_optarg=$2
16367 ac_shift=shift
16369 *) # This is not an option, so the user has probably given explicit
16370 # arguments.
16371 ac_option=$1
16372 ac_need_defaults=false;;
16373 esac
16375 case $ac_option in
16376 # Handling of the options.
16377 _ACEOF
16378 cat >>$CONFIG_STATUS <<\_ACEOF
16379 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16380 ac_cs_recheck=: ;;
16381 --version | --vers* | -V )
16382 echo "$ac_cs_version"; exit 0 ;;
16383 --he | --h)
16384 # Conflict between --help and --header
16385 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16386 Try \`$0 --help' for more information." >&5
16387 echo "$as_me: error: ambiguous option: $1
16388 Try \`$0 --help' for more information." >&2;}
16389 { (exit 1); exit 1; }; };;
16390 --help | --hel | -h )
16391 echo "$ac_cs_usage"; exit 0 ;;
16392 --debug | --d* | -d )
16393 debug=: ;;
16394 --file | --fil | --fi | --f )
16395 $ac_shift
16396 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16397 ac_need_defaults=false;;
16398 --header | --heade | --head | --hea )
16399 $ac_shift
16400 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16401 ac_need_defaults=false;;
16402 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16403 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16404 ac_cs_silent=: ;;
16406 # This is an error.
16407 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16408 Try \`$0 --help' for more information." >&5
16409 echo "$as_me: error: unrecognized option: $1
16410 Try \`$0 --help' for more information." >&2;}
16411 { (exit 1); exit 1; }; } ;;
16413 *) ac_config_targets="$ac_config_targets $1" ;;
16415 esac
16416 shift
16417 done
16419 ac_configure_extra_args=
16421 if $ac_cs_silent; then
16422 exec 6>/dev/null
16423 ac_configure_extra_args="$ac_configure_extra_args --silent"
16426 _ACEOF
16427 cat >>$CONFIG_STATUS <<_ACEOF
16428 if \$ac_cs_recheck; then
16429 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16430 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16433 _ACEOF
16435 cat >>$CONFIG_STATUS <<_ACEOF
16437 # INIT-COMMANDS section.
16440 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16441 srcdir=${srcdir}
16442 host=${host}
16443 target=${target}
16444 with_multisubdir=${with_multisubdir}
16445 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16446 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16447 libgcj_basedir=${libgcj_basedir}
16448 CC="${CC}"
16449 CXX="${CXX}"
16450 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
16453 _ACEOF
16457 cat >>$CONFIG_STATUS <<\_ACEOF
16458 for ac_config_target in $ac_config_targets
16460 case "$ac_config_target" in
16461 # Handling of arguments.
16462 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16463 "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
16464 "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
16465 "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
16466 "gnu/classpath/Configuration.java" ) CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
16467 "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
16468 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16469 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16470 "external/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/Makefile" ;;
16471 "external/sax/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/sax/Makefile" ;;
16472 "external/w3c_dom/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/w3c_dom/Makefile" ;;
16473 "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
16474 "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
16475 "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
16476 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
16477 "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
16478 "java/net/natNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc" ;;
16479 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
16480 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
16481 "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
16482 "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
16483 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
16484 "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
16485 "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
16486 "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
16487 "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
16488 "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
16489 "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
16490 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16491 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16492 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16493 "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
16494 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16495 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16496 { (exit 1); exit 1; }; };;
16497 esac
16498 done
16500 # If the user did not use the arguments to specify the items to instantiate,
16501 # then the envvar interface is used. Set only those that are not.
16502 # We use the long form for the default assignment because of an extremely
16503 # bizarre bug on SunOS 4.1.3.
16504 if $ac_need_defaults; then
16505 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16506 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16507 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16508 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16511 # Have a temporary directory for convenience. Make it in the build tree
16512 # simply because there is no reason to put it here, and in addition,
16513 # creating and moving files from /tmp can sometimes cause problems.
16514 # Create a temporary directory, and hook for its removal unless debugging.
16515 $debug ||
16517 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16518 trap '{ (exit 1); exit 1; }' 1 2 13 15
16521 # Create a (secure) tmp directory for tmp files.
16524 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16525 test -n "$tmp" && test -d "$tmp"
16526 } ||
16528 tmp=./confstat$$-$RANDOM
16529 (umask 077 && mkdir $tmp)
16530 } ||
16532 echo "$me: cannot create a temporary directory in ." >&2
16533 { (exit 1); exit 1; }
16536 _ACEOF
16538 cat >>$CONFIG_STATUS <<_ACEOF
16541 # CONFIG_FILES section.
16544 # No need to generate the scripts if there are no CONFIG_FILES.
16545 # This happens for instance when ./config.status config.h
16546 if test -n "\$CONFIG_FILES"; then
16547 # Protect against being on the right side of a sed subst in config.status.
16548 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16549 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16550 s,@SHELL@,$SHELL,;t t
16551 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16552 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16553 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16554 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16555 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16556 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16557 s,@exec_prefix@,$exec_prefix,;t t
16558 s,@prefix@,$prefix,;t t
16559 s,@program_transform_name@,$program_transform_name,;t t
16560 s,@bindir@,$bindir,;t t
16561 s,@sbindir@,$sbindir,;t t
16562 s,@libexecdir@,$libexecdir,;t t
16563 s,@datadir@,$datadir,;t t
16564 s,@sysconfdir@,$sysconfdir,;t t
16565 s,@sharedstatedir@,$sharedstatedir,;t t
16566 s,@localstatedir@,$localstatedir,;t t
16567 s,@libdir@,$libdir,;t t
16568 s,@includedir@,$includedir,;t t
16569 s,@oldincludedir@,$oldincludedir,;t t
16570 s,@infodir@,$infodir,;t t
16571 s,@mandir@,$mandir,;t t
16572 s,@build_alias@,$build_alias,;t t
16573 s,@host_alias@,$host_alias,;t t
16574 s,@target_alias@,$target_alias,;t t
16575 s,@DEFS@,$DEFS,;t t
16576 s,@ECHO_C@,$ECHO_C,;t t
16577 s,@ECHO_N@,$ECHO_N,;t t
16578 s,@ECHO_T@,$ECHO_T,;t t
16579 s,@LIBS@,$LIBS,;t t
16580 s,@build@,$build,;t t
16581 s,@build_cpu@,$build_cpu,;t t
16582 s,@build_vendor@,$build_vendor,;t t
16583 s,@build_os@,$build_os,;t t
16584 s,@build_subdir@,$build_subdir,;t t
16585 s,@host_subdir@,$host_subdir,;t t
16586 s,@target_subdir@,$target_subdir,;t t
16587 s,@libgcj_basedir@,$libgcj_basedir,;t t
16588 s,@host@,$host,;t t
16589 s,@host_cpu@,$host_cpu,;t t
16590 s,@host_vendor@,$host_vendor,;t t
16591 s,@host_os@,$host_os,;t t
16592 s,@target@,$target,;t t
16593 s,@target_cpu@,$target_cpu,;t t
16594 s,@target_vendor@,$target_vendor,;t t
16595 s,@target_os@,$target_os,;t t
16596 s,@target_noncanonical@,$target_noncanonical,;t t
16597 s,@LN_S@,$LN_S,;t t
16598 s,@mkinstalldirs@,$mkinstalldirs,;t t
16599 s,@CC@,$CC,;t t
16600 s,@ac_ct_CC@,$ac_ct_CC,;t t
16601 s,@EXEEXT@,$EXEEXT,;t t
16602 s,@OBJEXT@,$OBJEXT,;t t
16603 s,@CXX@,$CXX,;t t
16604 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
16605 s,@CFLAGS@,$CFLAGS,;t t
16606 s,@CXXFLAGS@,$CXXFLAGS,;t t
16607 s,@LDFLAGS@,$LDFLAGS,;t t
16608 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16609 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16610 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16611 s,@CYGPATH_W@,$CYGPATH_W,;t t
16612 s,@PACKAGE@,$PACKAGE,;t t
16613 s,@VERSION@,$VERSION,;t t
16614 s,@ACLOCAL@,$ACLOCAL,;t t
16615 s,@AUTOCONF@,$AUTOCONF,;t t
16616 s,@AUTOMAKE@,$AUTOMAKE,;t t
16617 s,@AUTOHEADER@,$AUTOHEADER,;t t
16618 s,@MAKEINFO@,$MAKEINFO,;t t
16619 s,@install_sh@,$install_sh,;t t
16620 s,@STRIP@,$STRIP,;t t
16621 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16622 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
16623 s,@mkdir_p@,$mkdir_p,;t t
16624 s,@AWK@,$AWK,;t t
16625 s,@SET_MAKE@,$SET_MAKE,;t t
16626 s,@am__leading_dot@,$am__leading_dot,;t t
16627 s,@AMTAR@,$AMTAR,;t t
16628 s,@am__tar@,$am__tar,;t t
16629 s,@am__untar@,$am__untar,;t t
16630 s,@DEPDIR@,$DEPDIR,;t t
16631 s,@am__include@,$am__include,;t t
16632 s,@am__quote@,$am__quote,;t t
16633 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
16634 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
16635 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
16636 s,@CCDEPMODE@,$CCDEPMODE,;t t
16637 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
16638 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
16639 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
16640 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
16641 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
16642 s,@AS@,$AS,;t t
16643 s,@ac_ct_AS@,$ac_ct_AS,;t t
16644 s,@AR@,$AR,;t t
16645 s,@ac_ct_AR@,$ac_ct_AR,;t t
16646 s,@RANLIB@,$RANLIB,;t t
16647 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16648 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
16649 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
16650 s,@MAINT@,$MAINT,;t t
16651 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
16652 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
16653 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
16654 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
16655 s,@INCLTDL@,$INCLTDL,;t t
16656 s,@LIBLTDL@,$LIBLTDL,;t t
16657 s,@DIRLTDL@,$DIRLTDL,;t t
16658 s,@LIBTOOL@,$LIBTOOL,;t t
16659 s,@CXXCPP@,$CXXCPP,;t t
16660 s,@CPPFLAGS@,$CPPFLAGS,;t t
16661 s,@GCJ@,$GCJ,;t t
16662 s,@GCJFLAGS@,$GCJFLAGS,;t t
16663 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
16664 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
16665 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
16666 s,@subdirs@,$subdirs,;t t
16667 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
16668 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
16669 s,@ONESTEP_TRUE@,$ONESTEP_TRUE,;t t
16670 s,@ONESTEP_FALSE@,$ONESTEP_FALSE,;t t
16671 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
16672 s,@INTERPRETER@,$INTERPRETER,;t t
16673 s,@LIBFFI@,$LIBFFI,;t t
16674 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
16675 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
16676 s,@CPP@,$CPP,;t t
16677 s,@EGREP@,$EGREP,;t t
16678 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
16679 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
16680 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
16681 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
16682 s,@USING_ECOS_PLATFORM_TRUE@,$USING_ECOS_PLATFORM_TRUE,;t t
16683 s,@USING_ECOS_PLATFORM_FALSE@,$USING_ECOS_PLATFORM_FALSE,;t t
16684 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
16685 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
16686 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
16687 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
16688 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
16689 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
16690 s,@X_CFLAGS@,$X_CFLAGS,;t t
16691 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
16692 s,@X_LIBS@,$X_LIBS,;t t
16693 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
16694 s,@TOOLKIT@,$TOOLKIT,;t t
16695 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
16696 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
16697 s,@GTK_AWT_TRUE@,$GTK_AWT_TRUE,;t t
16698 s,@GTK_AWT_FALSE@,$GTK_AWT_FALSE,;t t
16699 s,@GTK_CAIRO_TRUE@,$GTK_CAIRO_TRUE,;t t
16700 s,@GTK_CAIRO_FALSE@,$GTK_CAIRO_FALSE,;t t
16701 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
16702 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
16703 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
16704 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
16705 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
16706 s,@GCLIBS@,$GCLIBS,;t t
16707 s,@GCINCS@,$GCINCS,;t t
16708 s,@GCDEPS@,$GCDEPS,;t t
16709 s,@GCSPEC@,$GCSPEC,;t t
16710 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
16711 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
16712 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
16713 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
16714 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
16715 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
16716 s,@THREADLIBS@,$THREADLIBS,;t t
16717 s,@THREADINCS@,$THREADINCS,;t t
16718 s,@THREADDEPS@,$THREADDEPS,;t t
16719 s,@THREADSPEC@,$THREADSPEC,;t t
16720 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
16721 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
16722 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
16723 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
16724 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
16725 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
16726 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
16727 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
16728 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
16729 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
16730 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
16731 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
16732 s,@gcc_version_full@,$gcc_version_full,;t t
16733 s,@gcc_version@,$gcc_version,;t t
16734 s,@tool_include_dir@,$tool_include_dir,;t t
16735 s,@LIBICONV@,$LIBICONV,;t t
16736 s,@LTLIBICONV@,$LTLIBICONV,;t t
16737 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
16738 s,@GTK_LIBS@,$GTK_LIBS,;t t
16739 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
16740 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
16741 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
16742 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
16743 s,@SUPPLY_BACKTRACE_TRUE@,$SUPPLY_BACKTRACE_TRUE,;t t
16744 s,@SUPPLY_BACKTRACE_FALSE@,$SUPPLY_BACKTRACE_FALSE,;t t
16745 s,@GCJH@,$GCJH,;t t
16746 s,@ZIP@,$ZIP,;t t
16747 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
16748 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
16749 s,@ZLIBS@,$ZLIBS,;t t
16750 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
16751 s,@ZINCS@,$ZINCS,;t t
16752 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
16753 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
16754 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
16755 s,@IEEESPEC@,$IEEESPEC,;t t
16756 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
16757 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
16758 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
16759 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
16760 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
16761 s,@toolexecdir@,$toolexecdir,;t t
16762 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
16763 s,@toolexeclibdir@,$toolexeclibdir,;t t
16764 s,@GCJVERSION@,$GCJVERSION,;t t
16765 s,@gxx_include_dir@,$gxx_include_dir,;t t
16766 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
16767 s,@ALLOCA@,$ALLOCA,;t t
16768 s,@PERL@,$PERL,;t t
16769 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
16770 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
16771 s,@here@,$here,;t t
16772 s,@LIBOBJS@,$LIBOBJS,;t t
16773 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16774 CEOF
16776 _ACEOF
16778 cat >>$CONFIG_STATUS <<\_ACEOF
16779 # Split the substitutions into bite-sized pieces for seds with
16780 # small command number limits, like on Digital OSF/1 and HP-UX.
16781 ac_max_sed_lines=48
16782 ac_sed_frag=1 # Number of current file.
16783 ac_beg=1 # First line for current file.
16784 ac_end=$ac_max_sed_lines # Line after last line for current file.
16785 ac_more_lines=:
16786 ac_sed_cmds=
16787 while $ac_more_lines; do
16788 if test $ac_beg -gt 1; then
16789 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16790 else
16791 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16793 if test ! -s $tmp/subs.frag; then
16794 ac_more_lines=false
16795 else
16796 # The purpose of the label and of the branching condition is to
16797 # speed up the sed processing (if there are no `@' at all, there
16798 # is no need to browse any of the substitutions).
16799 # These are the two extra sed commands mentioned above.
16800 (echo ':t
16801 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16802 if test -z "$ac_sed_cmds"; then
16803 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16804 else
16805 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16807 ac_sed_frag=`expr $ac_sed_frag + 1`
16808 ac_beg=$ac_end
16809 ac_end=`expr $ac_end + $ac_max_sed_lines`
16811 done
16812 if test -z "$ac_sed_cmds"; then
16813 ac_sed_cmds=cat
16815 fi # test -n "$CONFIG_FILES"
16817 _ACEOF
16818 cat >>$CONFIG_STATUS <<\_ACEOF
16819 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16820 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16821 case $ac_file in
16822 - | *:- | *:-:* ) # input from stdin
16823 cat >$tmp/stdin
16824 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16825 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16826 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16827 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16828 * ) ac_file_in=$ac_file.in ;;
16829 esac
16831 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16832 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16833 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16834 X"$ac_file" : 'X\(//\)[^/]' \| \
16835 X"$ac_file" : 'X\(//\)$' \| \
16836 X"$ac_file" : 'X\(/\)' \| \
16837 . : '\(.\)' 2>/dev/null ||
16838 echo X"$ac_file" |
16839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16840 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16841 /^X\(\/\/\)$/{ s//\1/; q; }
16842 /^X\(\/\).*/{ s//\1/; q; }
16843 s/.*/./; q'`
16844 { if $as_mkdir_p; then
16845 mkdir -p "$ac_dir"
16846 else
16847 as_dir="$ac_dir"
16848 as_dirs=
16849 while test ! -d "$as_dir"; do
16850 as_dirs="$as_dir $as_dirs"
16851 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16852 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16853 X"$as_dir" : 'X\(//\)[^/]' \| \
16854 X"$as_dir" : 'X\(//\)$' \| \
16855 X"$as_dir" : 'X\(/\)' \| \
16856 . : '\(.\)' 2>/dev/null ||
16857 echo X"$as_dir" |
16858 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16859 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16860 /^X\(\/\/\)$/{ s//\1/; q; }
16861 /^X\(\/\).*/{ s//\1/; q; }
16862 s/.*/./; q'`
16863 done
16864 test ! -n "$as_dirs" || mkdir $as_dirs
16865 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16866 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16867 { (exit 1); exit 1; }; }; }
16869 ac_builddir=.
16871 if test "$ac_dir" != .; then
16872 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16873 # A "../" for each directory in $ac_dir_suffix.
16874 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16875 else
16876 ac_dir_suffix= ac_top_builddir=
16879 case $srcdir in
16880 .) # No --srcdir option. We are building in place.
16881 ac_srcdir=.
16882 if test -z "$ac_top_builddir"; then
16883 ac_top_srcdir=.
16884 else
16885 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16886 fi ;;
16887 [\\/]* | ?:[\\/]* ) # Absolute path.
16888 ac_srcdir=$srcdir$ac_dir_suffix;
16889 ac_top_srcdir=$srcdir ;;
16890 *) # Relative path.
16891 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16892 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16893 esac
16895 # Do not use `cd foo && pwd` to compute absolute paths, because
16896 # the directories may not exist.
16897 case `pwd` in
16898 .) ac_abs_builddir="$ac_dir";;
16900 case "$ac_dir" in
16901 .) ac_abs_builddir=`pwd`;;
16902 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16903 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16904 esac;;
16905 esac
16906 case $ac_abs_builddir in
16907 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16909 case ${ac_top_builddir}. in
16910 .) ac_abs_top_builddir=$ac_abs_builddir;;
16911 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16912 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16913 esac;;
16914 esac
16915 case $ac_abs_builddir in
16916 .) ac_abs_srcdir=$ac_srcdir;;
16918 case $ac_srcdir in
16919 .) ac_abs_srcdir=$ac_abs_builddir;;
16920 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16921 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16922 esac;;
16923 esac
16924 case $ac_abs_builddir in
16925 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16927 case $ac_top_srcdir in
16928 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16929 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16930 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16931 esac;;
16932 esac
16935 case $INSTALL in
16936 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16937 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
16938 esac
16940 if test x"$ac_file" != x-; then
16941 { echo "$as_me:$LINENO: creating $ac_file" >&5
16942 echo "$as_me: creating $ac_file" >&6;}
16943 rm -f "$ac_file"
16945 # Let's still pretend it is `configure' which instantiates (i.e., don't
16946 # use $as_me), people would be surprised to read:
16947 # /* config.h. Generated by config.status. */
16948 if test x"$ac_file" = x-; then
16949 configure_input=
16950 else
16951 configure_input="$ac_file. "
16953 configure_input=$configure_input"Generated from `echo $ac_file_in |
16954 sed 's,.*/,,'` by configure."
16956 # First look for the input files in the build tree, otherwise in the
16957 # src tree.
16958 ac_file_inputs=`IFS=:
16959 for f in $ac_file_in; do
16960 case $f in
16961 -) echo $tmp/stdin ;;
16962 [\\/$]*)
16963 # Absolute (can't be DOS-style, as IFS=:)
16964 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16965 echo "$as_me: error: cannot find input file: $f" >&2;}
16966 { (exit 1); exit 1; }; }
16967 echo "$f";;
16968 *) # Relative
16969 if test -f "$f"; then
16970 # Build tree
16971 echo "$f"
16972 elif test -f "$srcdir/$f"; then
16973 # Source tree
16974 echo "$srcdir/$f"
16975 else
16976 # /dev/null tree
16977 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16978 echo "$as_me: error: cannot find input file: $f" >&2;}
16979 { (exit 1); exit 1; }; }
16980 fi;;
16981 esac
16982 done` || { (exit 1); exit 1; }
16983 _ACEOF
16984 cat >>$CONFIG_STATUS <<_ACEOF
16985 sed "$ac_vpsub
16986 $extrasub
16987 _ACEOF
16988 cat >>$CONFIG_STATUS <<\_ACEOF
16990 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16991 s,@configure_input@,$configure_input,;t t
16992 s,@srcdir@,$ac_srcdir,;t t
16993 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16994 s,@top_srcdir@,$ac_top_srcdir,;t t
16995 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16996 s,@builddir@,$ac_builddir,;t t
16997 s,@abs_builddir@,$ac_abs_builddir,;t t
16998 s,@top_builddir@,$ac_top_builddir,;t t
16999 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17000 s,@INSTALL@,$ac_INSTALL,;t t
17001 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17002 rm -f $tmp/stdin
17003 if test x"$ac_file" != x-; then
17004 mv $tmp/out $ac_file
17005 else
17006 cat $tmp/out
17007 rm -f $tmp/out
17010 done
17011 _ACEOF
17012 cat >>$CONFIG_STATUS <<\_ACEOF
17015 # CONFIG_HEADER section.
17018 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17019 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17021 # ac_d sets the value in "#define NAME VALUE" lines.
17022 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17023 ac_dB='[ ].*$,\1#\2'
17024 ac_dC=' '
17025 ac_dD=',;t'
17026 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17027 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17028 ac_uB='$,\1#\2define\3'
17029 ac_uC=' '
17030 ac_uD=',;t'
17032 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17033 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17034 case $ac_file in
17035 - | *:- | *:-:* ) # input from stdin
17036 cat >$tmp/stdin
17037 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17038 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17039 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17040 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17041 * ) ac_file_in=$ac_file.in ;;
17042 esac
17044 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17045 echo "$as_me: creating $ac_file" >&6;}
17047 # First look for the input files in the build tree, otherwise in the
17048 # src tree.
17049 ac_file_inputs=`IFS=:
17050 for f in $ac_file_in; do
17051 case $f in
17052 -) echo $tmp/stdin ;;
17053 [\\/$]*)
17054 # Absolute (can't be DOS-style, as IFS=:)
17055 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17056 echo "$as_me: error: cannot find input file: $f" >&2;}
17057 { (exit 1); exit 1; }; }
17058 # Do quote $f, to prevent DOS paths from being IFS'd.
17059 echo "$f";;
17060 *) # Relative
17061 if test -f "$f"; then
17062 # Build tree
17063 echo "$f"
17064 elif test -f "$srcdir/$f"; then
17065 # Source tree
17066 echo "$srcdir/$f"
17067 else
17068 # /dev/null tree
17069 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17070 echo "$as_me: error: cannot find input file: $f" >&2;}
17071 { (exit 1); exit 1; }; }
17072 fi;;
17073 esac
17074 done` || { (exit 1); exit 1; }
17075 # Remove the trailing spaces.
17076 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17078 _ACEOF
17080 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17081 # `conftest.undefs', that substitutes the proper values into
17082 # config.h.in to produce config.h. The first handles `#define'
17083 # templates, and the second `#undef' templates.
17084 # And first: Protect against being on the right side of a sed subst in
17085 # config.status. Protect against being in an unquoted here document
17086 # in config.status.
17087 rm -f conftest.defines conftest.undefs
17088 # Using a here document instead of a string reduces the quoting nightmare.
17089 # Putting comments in sed scripts is not portable.
17091 # `end' is used to avoid that the second main sed command (meant for
17092 # 0-ary CPP macros) applies to n-ary macro definitions.
17093 # See the Autoconf documentation for `clear'.
17094 cat >confdef2sed.sed <<\_ACEOF
17095 s/[\\&,]/\\&/g
17096 s,[\\$`],\\&,g
17097 t clear
17098 : clear
17099 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17100 t end
17101 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17102 : end
17103 _ACEOF
17104 # If some macros were called several times there might be several times
17105 # the same #defines, which is useless. Nevertheless, we may not want to
17106 # sort them, since we want the *last* AC-DEFINE to be honored.
17107 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17108 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17109 rm -f confdef2sed.sed
17111 # This sed command replaces #undef with comments. This is necessary, for
17112 # example, in the case of _POSIX_SOURCE, which is predefined and required
17113 # on some systems where configure will not decide to define it.
17114 cat >>conftest.undefs <<\_ACEOF
17115 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17116 _ACEOF
17118 # Break up conftest.defines because some shells have a limit on the size
17119 # of here documents, and old seds have small limits too (100 cmds).
17120 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17121 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17122 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17123 echo ' :' >>$CONFIG_STATUS
17124 rm -f conftest.tail
17125 while grep . conftest.defines >/dev/null
17127 # Write a limited-size here document to $tmp/defines.sed.
17128 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17129 # Speed up: don't consider the non `#define' lines.
17130 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17131 # Work around the forget-to-reset-the-flag bug.
17132 echo 't clr' >>$CONFIG_STATUS
17133 echo ': clr' >>$CONFIG_STATUS
17134 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17135 echo 'CEOF
17136 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17137 rm -f $tmp/in
17138 mv $tmp/out $tmp/in
17139 ' >>$CONFIG_STATUS
17140 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17141 rm -f conftest.defines
17142 mv conftest.tail conftest.defines
17143 done
17144 rm -f conftest.defines
17145 echo ' fi # grep' >>$CONFIG_STATUS
17146 echo >>$CONFIG_STATUS
17148 # Break up conftest.undefs because some shells have a limit on the size
17149 # of here documents, and old seds have small limits too (100 cmds).
17150 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17151 rm -f conftest.tail
17152 while grep . conftest.undefs >/dev/null
17154 # Write a limited-size here document to $tmp/undefs.sed.
17155 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17156 # Speed up: don't consider the non `#undef'
17157 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17158 # Work around the forget-to-reset-the-flag bug.
17159 echo 't clr' >>$CONFIG_STATUS
17160 echo ': clr' >>$CONFIG_STATUS
17161 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17162 echo 'CEOF
17163 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17164 rm -f $tmp/in
17165 mv $tmp/out $tmp/in
17166 ' >>$CONFIG_STATUS
17167 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17168 rm -f conftest.undefs
17169 mv conftest.tail conftest.undefs
17170 done
17171 rm -f conftest.undefs
17173 cat >>$CONFIG_STATUS <<\_ACEOF
17174 # Let's still pretend it is `configure' which instantiates (i.e., don't
17175 # use $as_me), people would be surprised to read:
17176 # /* config.h. Generated by config.status. */
17177 if test x"$ac_file" = x-; then
17178 echo "/* Generated by configure. */" >$tmp/config.h
17179 else
17180 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17182 cat $tmp/in >>$tmp/config.h
17183 rm -f $tmp/in
17184 if test x"$ac_file" != x-; then
17185 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17186 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17187 echo "$as_me: $ac_file is unchanged" >&6;}
17188 else
17189 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17190 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17191 X"$ac_file" : 'X\(//\)[^/]' \| \
17192 X"$ac_file" : 'X\(//\)$' \| \
17193 X"$ac_file" : 'X\(/\)' \| \
17194 . : '\(.\)' 2>/dev/null ||
17195 echo X"$ac_file" |
17196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17197 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17198 /^X\(\/\/\)$/{ s//\1/; q; }
17199 /^X\(\/\).*/{ s//\1/; q; }
17200 s/.*/./; q'`
17201 { if $as_mkdir_p; then
17202 mkdir -p "$ac_dir"
17203 else
17204 as_dir="$ac_dir"
17205 as_dirs=
17206 while test ! -d "$as_dir"; do
17207 as_dirs="$as_dir $as_dirs"
17208 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17209 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17210 X"$as_dir" : 'X\(//\)[^/]' \| \
17211 X"$as_dir" : 'X\(//\)$' \| \
17212 X"$as_dir" : 'X\(/\)' \| \
17213 . : '\(.\)' 2>/dev/null ||
17214 echo X"$as_dir" |
17215 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17216 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17217 /^X\(\/\/\)$/{ s//\1/; q; }
17218 /^X\(\/\).*/{ s//\1/; q; }
17219 s/.*/./; q'`
17220 done
17221 test ! -n "$as_dirs" || mkdir $as_dirs
17222 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17223 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17224 { (exit 1); exit 1; }; }; }
17226 rm -f $ac_file
17227 mv $tmp/config.h $ac_file
17229 else
17230 cat $tmp/config.h
17231 rm -f $tmp/config.h
17233 # Compute $ac_file's index in $config_headers.
17234 _am_stamp_count=1
17235 for _am_header in $config_headers :; do
17236 case $_am_header in
17237 $ac_file | $ac_file:* )
17238 break ;;
17240 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17241 esac
17242 done
17243 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17244 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17245 X$ac_file : 'X\(//\)[^/]' \| \
17246 X$ac_file : 'X\(//\)$' \| \
17247 X$ac_file : 'X\(/\)' \| \
17248 . : '\(.\)' 2>/dev/null ||
17249 echo X$ac_file |
17250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17251 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17252 /^X\(\/\/\)$/{ s//\1/; q; }
17253 /^X\(\/\).*/{ s//\1/; q; }
17254 s/.*/./; q'`/stamp-h$_am_stamp_count
17255 done
17256 _ACEOF
17257 cat >>$CONFIG_STATUS <<\_ACEOF
17260 # CONFIG_LINKS section.
17263 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17264 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17265 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17267 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17268 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
17270 if test ! -r $srcdir/$ac_source; then
17271 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17272 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17273 { (exit 1); exit 1; }; }
17275 rm -f $ac_dest
17277 # Make relative symlinks.
17278 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17279 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17280 X"$ac_dest" : 'X\(//\)[^/]' \| \
17281 X"$ac_dest" : 'X\(//\)$' \| \
17282 X"$ac_dest" : 'X\(/\)' \| \
17283 . : '\(.\)' 2>/dev/null ||
17284 echo X"$ac_dest" |
17285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17286 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17287 /^X\(\/\/\)$/{ s//\1/; q; }
17288 /^X\(\/\).*/{ s//\1/; q; }
17289 s/.*/./; q'`
17290 { if $as_mkdir_p; then
17291 mkdir -p "$ac_dest_dir"
17292 else
17293 as_dir="$ac_dest_dir"
17294 as_dirs=
17295 while test ! -d "$as_dir"; do
17296 as_dirs="$as_dir $as_dirs"
17297 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17298 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17299 X"$as_dir" : 'X\(//\)[^/]' \| \
17300 X"$as_dir" : 'X\(//\)$' \| \
17301 X"$as_dir" : 'X\(/\)' \| \
17302 . : '\(.\)' 2>/dev/null ||
17303 echo X"$as_dir" |
17304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17305 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17306 /^X\(\/\/\)$/{ s//\1/; q; }
17307 /^X\(\/\).*/{ s//\1/; q; }
17308 s/.*/./; q'`
17309 done
17310 test ! -n "$as_dirs" || mkdir $as_dirs
17311 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
17312 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
17313 { (exit 1); exit 1; }; }; }
17315 ac_builddir=.
17317 if test "$ac_dest_dir" != .; then
17318 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17319 # A "../" for each directory in $ac_dir_suffix.
17320 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17321 else
17322 ac_dir_suffix= ac_top_builddir=
17325 case $srcdir in
17326 .) # No --srcdir option. We are building in place.
17327 ac_srcdir=.
17328 if test -z "$ac_top_builddir"; then
17329 ac_top_srcdir=.
17330 else
17331 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17332 fi ;;
17333 [\\/]* | ?:[\\/]* ) # Absolute path.
17334 ac_srcdir=$srcdir$ac_dir_suffix;
17335 ac_top_srcdir=$srcdir ;;
17336 *) # Relative path.
17337 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17338 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17339 esac
17341 # Do not use `cd foo && pwd` to compute absolute paths, because
17342 # the directories may not exist.
17343 case `pwd` in
17344 .) ac_abs_builddir="$ac_dest_dir";;
17346 case "$ac_dest_dir" in
17347 .) ac_abs_builddir=`pwd`;;
17348 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
17349 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
17350 esac;;
17351 esac
17352 case $ac_abs_builddir in
17353 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17355 case ${ac_top_builddir}. in
17356 .) ac_abs_top_builddir=$ac_abs_builddir;;
17357 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17358 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17359 esac;;
17360 esac
17361 case $ac_abs_builddir in
17362 .) ac_abs_srcdir=$ac_srcdir;;
17364 case $ac_srcdir in
17365 .) ac_abs_srcdir=$ac_abs_builddir;;
17366 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17367 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17368 esac;;
17369 esac
17370 case $ac_abs_builddir in
17371 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17373 case $ac_top_srcdir in
17374 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17375 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17376 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17377 esac;;
17378 esac
17381 case $srcdir in
17382 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17383 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
17384 esac
17386 # Try a symlink, then a hard link, then a copy.
17387 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17388 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
17389 cp -p $srcdir/$ac_source $ac_dest ||
17390 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
17391 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
17392 { (exit 1); exit 1; }; }
17393 done
17394 _ACEOF
17395 cat >>$CONFIG_STATUS <<\_ACEOF
17398 # CONFIG_COMMANDS section.
17400 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17401 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17402 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17403 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17404 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17405 X"$ac_dest" : 'X\(//\)[^/]' \| \
17406 X"$ac_dest" : 'X\(//\)$' \| \
17407 X"$ac_dest" : 'X\(/\)' \| \
17408 . : '\(.\)' 2>/dev/null ||
17409 echo X"$ac_dest" |
17410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17411 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17412 /^X\(\/\/\)$/{ s//\1/; q; }
17413 /^X\(\/\).*/{ s//\1/; q; }
17414 s/.*/./; q'`
17415 { if $as_mkdir_p; then
17416 mkdir -p "$ac_dir"
17417 else
17418 as_dir="$ac_dir"
17419 as_dirs=
17420 while test ! -d "$as_dir"; do
17421 as_dirs="$as_dir $as_dirs"
17422 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17423 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17424 X"$as_dir" : 'X\(//\)[^/]' \| \
17425 X"$as_dir" : 'X\(//\)$' \| \
17426 X"$as_dir" : 'X\(/\)' \| \
17427 . : '\(.\)' 2>/dev/null ||
17428 echo X"$as_dir" |
17429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17430 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17431 /^X\(\/\/\)$/{ s//\1/; q; }
17432 /^X\(\/\).*/{ s//\1/; q; }
17433 s/.*/./; q'`
17434 done
17435 test ! -n "$as_dirs" || mkdir $as_dirs
17436 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17437 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17438 { (exit 1); exit 1; }; }; }
17440 ac_builddir=.
17442 if test "$ac_dir" != .; then
17443 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17444 # A "../" for each directory in $ac_dir_suffix.
17445 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17446 else
17447 ac_dir_suffix= ac_top_builddir=
17450 case $srcdir in
17451 .) # No --srcdir option. We are building in place.
17452 ac_srcdir=.
17453 if test -z "$ac_top_builddir"; then
17454 ac_top_srcdir=.
17455 else
17456 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17457 fi ;;
17458 [\\/]* | ?:[\\/]* ) # Absolute path.
17459 ac_srcdir=$srcdir$ac_dir_suffix;
17460 ac_top_srcdir=$srcdir ;;
17461 *) # Relative path.
17462 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17463 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17464 esac
17466 # Do not use `cd foo && pwd` to compute absolute paths, because
17467 # the directories may not exist.
17468 case `pwd` in
17469 .) ac_abs_builddir="$ac_dir";;
17471 case "$ac_dir" in
17472 .) ac_abs_builddir=`pwd`;;
17473 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17474 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17475 esac;;
17476 esac
17477 case $ac_abs_builddir in
17478 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17480 case ${ac_top_builddir}. in
17481 .) ac_abs_top_builddir=$ac_abs_builddir;;
17482 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17483 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17484 esac;;
17485 esac
17486 case $ac_abs_builddir in
17487 .) ac_abs_srcdir=$ac_srcdir;;
17489 case $ac_srcdir in
17490 .) ac_abs_srcdir=$ac_abs_builddir;;
17491 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17492 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17493 esac;;
17494 esac
17495 case $ac_abs_builddir in
17496 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17498 case $ac_top_srcdir in
17499 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17500 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17501 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17502 esac;;
17503 esac
17506 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17507 echo "$as_me: executing $ac_dest commands" >&6;}
17508 case $ac_dest in
17509 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17510 # Strip MF so we end up with the name of the file.
17511 mf=`echo "$mf" | sed -e 's/:.*$//'`
17512 # Check whether this is an Automake generated Makefile or not.
17513 # We used to match only the files named `Makefile.in', but
17514 # some people rename them; so instead we look at the file content.
17515 # Grep'ing the first line is not enough: some people post-process
17516 # each Makefile.in and add a new line on top of each file to say so.
17517 # So let's grep whole file.
17518 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17519 dirpart=`(dirname "$mf") 2>/dev/null ||
17520 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17521 X"$mf" : 'X\(//\)[^/]' \| \
17522 X"$mf" : 'X\(//\)$' \| \
17523 X"$mf" : 'X\(/\)' \| \
17524 . : '\(.\)' 2>/dev/null ||
17525 echo X"$mf" |
17526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17527 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17528 /^X\(\/\/\)$/{ s//\1/; q; }
17529 /^X\(\/\).*/{ s//\1/; q; }
17530 s/.*/./; q'`
17531 else
17532 continue
17534 # Extract the definition of DEPDIR, am__include, and am__quote
17535 # from the Makefile without running `make'.
17536 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17537 test -z "$DEPDIR" && continue
17538 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17539 test -z "am__include" && continue
17540 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17541 # When using ansi2knr, U may be empty or an underscore; expand it
17542 U=`sed -n 's/^U = //p' < "$mf"`
17543 # Find all dependency output files, they are included files with
17544 # $(DEPDIR) in their names. We invoke sed twice because it is the
17545 # simplest approach to changing $(DEPDIR) to its actual value in the
17546 # expansion.
17547 for file in `sed -n "
17548 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17549 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17550 # Make sure the directory exists.
17551 test -f "$dirpart/$file" && continue
17552 fdir=`(dirname "$file") 2>/dev/null ||
17553 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17554 X"$file" : 'X\(//\)[^/]' \| \
17555 X"$file" : 'X\(//\)$' \| \
17556 X"$file" : 'X\(/\)' \| \
17557 . : '\(.\)' 2>/dev/null ||
17558 echo X"$file" |
17559 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17560 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17561 /^X\(\/\/\)$/{ s//\1/; q; }
17562 /^X\(\/\).*/{ s//\1/; q; }
17563 s/.*/./; q'`
17564 { if $as_mkdir_p; then
17565 mkdir -p $dirpart/$fdir
17566 else
17567 as_dir=$dirpart/$fdir
17568 as_dirs=
17569 while test ! -d "$as_dir"; do
17570 as_dirs="$as_dir $as_dirs"
17571 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17572 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17573 X"$as_dir" : 'X\(//\)[^/]' \| \
17574 X"$as_dir" : 'X\(//\)$' \| \
17575 X"$as_dir" : 'X\(/\)' \| \
17576 . : '\(.\)' 2>/dev/null ||
17577 echo X"$as_dir" |
17578 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17579 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17580 /^X\(\/\/\)$/{ s//\1/; q; }
17581 /^X\(\/\).*/{ s//\1/; q; }
17582 s/.*/./; q'`
17583 done
17584 test ! -n "$as_dirs" || mkdir $as_dirs
17585 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
17586 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
17587 { (exit 1); exit 1; }; }; }
17589 # echo "creating $dirpart/$file"
17590 echo '# dummy' > "$dirpart/$file"
17591 done
17592 done
17594 default ) # Only add multilib support code if we just rebuilt top-level Makefile.
17595 case " $CONFIG_FILES " in
17596 *" Makefile "*)
17597 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
17598 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
17600 esac
17602 esac
17603 done
17604 _ACEOF
17606 cat >>$CONFIG_STATUS <<\_ACEOF
17608 { (exit 0); exit 0; }
17609 _ACEOF
17610 chmod +x $CONFIG_STATUS
17611 ac_clean_files=$ac_clean_files_save
17614 # configure is writing to config.log, and then calls config.status.
17615 # config.status does its own redirection, appending to config.log.
17616 # Unfortunately, on DOS this fails, as config.log is still kept open
17617 # by configure, so config.status won't be able to write to it; its
17618 # output is simply discarded. So we exec the FD to /dev/null,
17619 # effectively closing config.log, so it can be properly (re)opened and
17620 # appended to by config.status. When coming back to configure, we
17621 # need to make the FD available again.
17622 if test "$no_create" != yes; then
17623 ac_cs_success=:
17624 ac_config_status_args=
17625 test "$silent" = yes &&
17626 ac_config_status_args="$ac_config_status_args --quiet"
17627 exec 5>/dev/null
17628 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17629 exec 5>>config.log
17630 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17631 # would make configure fail if this is the last instruction.
17632 $ac_cs_success || { (exit 1); exit 1; }
17636 # CONFIG_SUBDIRS section.
17638 if test "$no_recursion" != yes; then
17640 # Remove --cache-file and --srcdir arguments so they do not pile up.
17641 ac_sub_configure_args=
17642 ac_prev=
17643 for ac_arg in $ac_configure_args; do
17644 if test -n "$ac_prev"; then
17645 ac_prev=
17646 continue
17648 case $ac_arg in
17649 -cache-file | --cache-file | --cache-fil | --cache-fi \
17650 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17651 ac_prev=cache_file ;;
17652 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17653 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17654 | --c=*)
17656 --config-cache | -C)
17658 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17659 ac_prev=srcdir ;;
17660 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17662 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17663 ac_prev=prefix ;;
17664 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17666 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
17667 esac
17668 done
17670 # Always prepend --prefix to ensure using the same prefix
17671 # in subdir configurations.
17672 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
17674 ac_popdir=`pwd`
17675 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17677 # Do not complain, so a configure script can configure whichever
17678 # parts of a large source tree are present.
17679 test -d $srcdir/$ac_dir || continue
17681 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
17682 echo "$as_me: configuring in $ac_dir" >&6;}
17683 { if $as_mkdir_p; then
17684 mkdir -p "$ac_dir"
17685 else
17686 as_dir="$ac_dir"
17687 as_dirs=
17688 while test ! -d "$as_dir"; do
17689 as_dirs="$as_dir $as_dirs"
17690 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17691 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17692 X"$as_dir" : 'X\(//\)[^/]' \| \
17693 X"$as_dir" : 'X\(//\)$' \| \
17694 X"$as_dir" : 'X\(/\)' \| \
17695 . : '\(.\)' 2>/dev/null ||
17696 echo X"$as_dir" |
17697 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17698 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17699 /^X\(\/\/\)$/{ s//\1/; q; }
17700 /^X\(\/\).*/{ s//\1/; q; }
17701 s/.*/./; q'`
17702 done
17703 test ! -n "$as_dirs" || mkdir $as_dirs
17704 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17705 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17706 { (exit 1); exit 1; }; }; }
17708 ac_builddir=.
17710 if test "$ac_dir" != .; then
17711 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17712 # A "../" for each directory in $ac_dir_suffix.
17713 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17714 else
17715 ac_dir_suffix= ac_top_builddir=
17718 case $srcdir in
17719 .) # No --srcdir option. We are building in place.
17720 ac_srcdir=.
17721 if test -z "$ac_top_builddir"; then
17722 ac_top_srcdir=.
17723 else
17724 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17725 fi ;;
17726 [\\/]* | ?:[\\/]* ) # Absolute path.
17727 ac_srcdir=$srcdir$ac_dir_suffix;
17728 ac_top_srcdir=$srcdir ;;
17729 *) # Relative path.
17730 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17731 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17732 esac
17734 # Do not use `cd foo && pwd` to compute absolute paths, because
17735 # the directories may not exist.
17736 case `pwd` in
17737 .) ac_abs_builddir="$ac_dir";;
17739 case "$ac_dir" in
17740 .) ac_abs_builddir=`pwd`;;
17741 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17742 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17743 esac;;
17744 esac
17745 case $ac_abs_builddir in
17746 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17748 case ${ac_top_builddir}. in
17749 .) ac_abs_top_builddir=$ac_abs_builddir;;
17750 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17751 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17752 esac;;
17753 esac
17754 case $ac_abs_builddir in
17755 .) ac_abs_srcdir=$ac_srcdir;;
17757 case $ac_srcdir in
17758 .) ac_abs_srcdir=$ac_abs_builddir;;
17759 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17760 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17761 esac;;
17762 esac
17763 case $ac_abs_builddir in
17764 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17766 case $ac_top_srcdir in
17767 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17768 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17769 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17770 esac;;
17771 esac
17774 cd $ac_dir
17776 # Check for guested configure; otherwise get Cygnus style configure.
17777 if test -f $ac_srcdir/configure.gnu; then
17778 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
17779 elif test -f $ac_srcdir/configure; then
17780 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
17781 elif test -f $ac_srcdir/configure.in; then
17782 ac_sub_configure=$ac_configure
17783 else
17784 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
17785 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17786 ac_sub_configure=
17789 # The recursion is here.
17790 if test -n "$ac_sub_configure"; then
17791 # Make the cache file name correct relative to the subdirectory.
17792 case $cache_file in
17793 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17794 *) # Relative path.
17795 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
17796 esac
17798 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
17799 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17800 # The eval makes quoting arguments work.
17801 eval $ac_sub_configure $ac_sub_configure_args \
17802 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
17803 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
17804 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
17805 { (exit 1); exit 1; }; }
17808 cd $ac_popdir
17809 done