* config/rs6000/rs6000.h (MAX_FIXED_MODE_SIZE): Define.
[official-gcc.git] / libjava / configure
blob5c657ef87f2648f1560d62bcf2517adaf6f16589
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
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=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="java/lang/System.java"
275 ac_subdirs_all="$ac_subdirs_all $DIRLTDL"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 # include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS libgcj_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical LN_S mkinstalldirs CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LDFLAGS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBGCJ_CFLAGS LIBGCJ_CXXFLAGS LIBGCJ_JAVAFLAGS INCLTDL LIBLTDL DIRLTDL STRIP ac_ct_STRIP LIBTOOL CXXCPP CPPFLAGS subdirs COMPPATH TESTSUBDIR_TRUE TESTSUBDIR_FALSE ONESTEP_TRUE ONESTEP_FALSE LIBGCJDEBUG INTERPRETER LIBFFI LIBFFIINCS EXTRA_CC_FILES PLATFORMOBJS CPP EGREP 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 GCOBJS GCSPEC JC1GCSPEC GCTESTSPEC THREADLIBS THREADINCS THREADDEPS THREADOBJS THREADSPEC THREADLDFLAGS THREADCXXFLAGS HASH_SYNC_SPEC USING_GCC_TRUE USING_GCC_FALSE tool_include_dir gcc_version LIBICONV GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS GCJH ZIP GCJ ac_ct_GCJ GCJFLAGS ZLIBS SYS_ZLIBS ZINCS DIVIDESPEC CHECKREFSPEC EXCEPTIONSPEC IEEESPEC NATIVE_TRUE NATIVE_FALSE NEEDS_DATA_START_TRUE NEEDS_DATA_START_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir GCJVERSION ALLOCA PERL BACKTRACESPEC SYSDEP_SOURCES here LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
354 ac_prev=
355 for ac_option
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
368 case $ac_option in
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
387 --config-cache | -C)
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 esac
651 done
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
726 else
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CXXCPP_set=${CXXCPP+set}
755 ac_env_CXXCPP_value=$CXXCPP
756 ac_cv_env_CXXCPP_set=${CXXCPP+set}
757 ac_cv_env_CXXCPP_value=$CXXCPP
758 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
759 ac_env_CPPFLAGS_value=$CPPFLAGS
760 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
761 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
762 ac_env_CPP_set=${CPP+set}
763 ac_env_CPP_value=$CPP
764 ac_cv_env_CPP_set=${CPP+set}
765 ac_cv_env_CPP_value=$CPP
768 # Report the --help message.
770 if test "$ac_init_help" = "long"; then
771 # Omit some internal or obsolete options to make the list less imposing.
772 # This message is too long to be a string in the A/UX 3.1 sh.
773 cat <<_ACEOF
774 \`configure' configures this package 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
845 cat <<\_ACEOF
847 Optional Features:
848 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
849 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
850 --enable-version-specific-runtime-libs
851 specify that runtime libraries should be installed
852 in a compiler-specific directory
853 --enable-multilib build many library versions (default)
854 --enable-maintainer-mode enable make rules and dependencies not useful
855 (and sometimes confusing) to the casual installer
856 --enable-shared=PKGS build shared libraries default=yes
857 --enable-static=PKGS build static libraries default=yes
858 --enable-fast-install=PKGS optimize for fast installation default=yes
859 --disable-libtool-lock avoid locking (might break parallel builds)
860 --disable-getenv-properties
861 don't set system properties from GCJ_PROPERTIES
862 --enable-hash-synchronization
863 use global hash table for monitor locks
864 --enable-libgcj-multifile
865 allow compilation of several files at once
867 --enable-libgcj-debug enable runtime debugging code
868 --enable-interpreter enable interpreter
869 --enable-sjlj-exceptions
870 force use of builtin_setjmp for exceptions
871 --disable-java-net disable java.net
872 --disable-jvmpi disable JVMPI support
873 --enable-java-awt list of AWT peer implementations to be built
874 --enable-gtk-cairo build the cairo Graphics2D implementation on GTK
875 --enable-java-gc=TYPE choose garbage collector (default is boehm)
877 Optional Packages:
878 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
879 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
880 --with-target-subdir=SUBDIR
881 configure in a subdirectory
882 --with-cross-host=HOST configure with a cross compiler from HOST
883 --with-newlib configure with newlib
884 --with-gnu-ld assume the C compiler uses GNU ld default=no
885 --with-pic try to use only PIC/non-PIC objects default=use both
886 --with-win32-nlsapi=ansi or unicows or unicode
887 native MinGW libgcj Win32 OS API (default is ansi)
888 --without-libffi don't use libffi
889 --with-ecos enable runtime eCos target support
890 --with-system-zlib use installed libz
891 --with-x use the X Window System
892 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
894 Some influential environment variables:
895 CC C compiler command
896 CFLAGS C compiler flags
897 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
898 nonstandard directory <lib dir>
899 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
900 headers in a nonstandard directory <include dir>
901 CXX C++ compiler command
902 CXXFLAGS C++ compiler flags
903 CXXCPP C++ preprocessor
904 CPP C preprocessor
906 Use these variables to override the choices made by `configure' or to help
907 it to find libraries and programs with nonstandard names/locations.
909 _ACEOF
912 if test "$ac_init_help" = "recursive"; then
913 # If there are subdirs, report their specific --help.
914 ac_popdir=`pwd`
915 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
916 test -d $ac_dir || continue
917 ac_builddir=.
919 if test "$ac_dir" != .; then
920 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
921 # A "../" for each directory in $ac_dir_suffix.
922 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
923 else
924 ac_dir_suffix= ac_top_builddir=
927 case $srcdir in
928 .) # No --srcdir option. We are building in place.
929 ac_srcdir=.
930 if test -z "$ac_top_builddir"; then
931 ac_top_srcdir=.
932 else
933 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
934 fi ;;
935 [\\/]* | ?:[\\/]* ) # Absolute path.
936 ac_srcdir=$srcdir$ac_dir_suffix;
937 ac_top_srcdir=$srcdir ;;
938 *) # Relative path.
939 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
940 ac_top_srcdir=$ac_top_builddir$srcdir ;;
941 esac
943 # Do not use `cd foo && pwd` to compute absolute paths, because
944 # the directories may not exist.
945 case `pwd` in
946 .) ac_abs_builddir="$ac_dir";;
948 case "$ac_dir" in
949 .) ac_abs_builddir=`pwd`;;
950 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
951 *) ac_abs_builddir=`pwd`/"$ac_dir";;
952 esac;;
953 esac
954 case $ac_abs_builddir in
955 .) ac_abs_top_builddir=${ac_top_builddir}.;;
957 case ${ac_top_builddir}. in
958 .) ac_abs_top_builddir=$ac_abs_builddir;;
959 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
960 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
961 esac;;
962 esac
963 case $ac_abs_builddir in
964 .) ac_abs_srcdir=$ac_srcdir;;
966 case $ac_srcdir in
967 .) ac_abs_srcdir=$ac_abs_builddir;;
968 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
969 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
970 esac;;
971 esac
972 case $ac_abs_builddir in
973 .) ac_abs_top_srcdir=$ac_top_srcdir;;
975 case $ac_top_srcdir in
976 .) ac_abs_top_srcdir=$ac_abs_builddir;;
977 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
978 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
979 esac;;
980 esac
982 cd $ac_dir
983 # Check for guested configure; otherwise get Cygnus style configure.
984 if test -f $ac_srcdir/configure.gnu; then
985 echo
986 $SHELL $ac_srcdir/configure.gnu --help=recursive
987 elif test -f $ac_srcdir/configure; then
988 echo
989 $SHELL $ac_srcdir/configure --help=recursive
990 elif test -f $ac_srcdir/configure.ac ||
991 test -f $ac_srcdir/configure.in; then
992 echo
993 $ac_configure --help
994 else
995 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
997 cd "$ac_popdir"
998 done
1001 test -n "$ac_init_help" && exit 0
1002 if $ac_init_version; then
1003 cat <<\_ACEOF
1005 Copyright (C) 2003 Free Software Foundation, Inc.
1006 This configure script is free software; the Free Software Foundation
1007 gives unlimited permission to copy, distribute and modify it.
1008 _ACEOF
1009 exit 0
1011 exec 5>config.log
1012 cat >&5 <<_ACEOF
1013 This file contains any messages produced by compilers while
1014 running configure, to aid debugging if configure makes a mistake.
1016 It was created by $as_me, which was
1017 generated by GNU Autoconf 2.59. Invocation command line was
1019 $ $0 $@
1021 _ACEOF
1023 cat <<_ASUNAME
1024 ## --------- ##
1025 ## Platform. ##
1026 ## --------- ##
1028 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1029 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1030 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1031 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1032 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1034 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1035 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1037 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1038 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1039 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1040 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1041 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1042 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1043 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1045 _ASUNAME
1047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1048 for as_dir in $PATH
1050 IFS=$as_save_IFS
1051 test -z "$as_dir" && as_dir=.
1052 echo "PATH: $as_dir"
1053 done
1055 } >&5
1057 cat >&5 <<_ACEOF
1060 ## ----------- ##
1061 ## Core tests. ##
1062 ## ----------- ##
1064 _ACEOF
1067 # Keep a trace of the command line.
1068 # Strip out --no-create and --no-recursion so they do not pile up.
1069 # Strip out --silent because we don't want to record it for future runs.
1070 # Also quote any args containing shell meta-characters.
1071 # Make two passes to allow for proper duplicate-argument suppression.
1072 ac_configure_args=
1073 ac_configure_args0=
1074 ac_configure_args1=
1075 ac_sep=
1076 ac_must_keep_next=false
1077 for ac_pass in 1 2
1079 for ac_arg
1081 case $ac_arg in
1082 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1084 | -silent | --silent | --silen | --sile | --sil)
1085 continue ;;
1086 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1087 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1088 esac
1089 case $ac_pass in
1090 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1092 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1093 if test $ac_must_keep_next = true; then
1094 ac_must_keep_next=false # Got value, back to normal.
1095 else
1096 case $ac_arg in
1097 *=* | --config-cache | -C | -disable-* | --disable-* \
1098 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1099 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1100 | -with-* | --with-* | -without-* | --without-* | --x)
1101 case "$ac_configure_args0 " in
1102 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1103 esac
1105 -* ) ac_must_keep_next=true ;;
1106 esac
1108 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1109 # Get rid of the leading space.
1110 ac_sep=" "
1112 esac
1113 done
1114 done
1115 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1116 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1118 # When interrupted or exit'd, cleanup temporary files, and complete
1119 # config.log. We remove comments because anyway the quotes in there
1120 # would cause problems or look ugly.
1121 # WARNING: Be sure not to use single quotes in there, as some shells,
1122 # such as our DU 5.0 friend, will then `close' the trap.
1123 trap 'exit_status=$?
1124 # Save into config.log some information that might help in debugging.
1126 echo
1128 cat <<\_ASBOX
1129 ## ---------------- ##
1130 ## Cache variables. ##
1131 ## ---------------- ##
1132 _ASBOX
1133 echo
1134 # The following way of writing the cache mishandles newlines in values,
1136 (set) 2>&1 |
1137 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1138 *ac_space=\ *)
1139 sed -n \
1140 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1141 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1144 sed -n \
1145 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1147 esac;
1149 echo
1151 cat <<\_ASBOX
1152 ## ----------------- ##
1153 ## Output variables. ##
1154 ## ----------------- ##
1155 _ASBOX
1156 echo
1157 for ac_var in $ac_subst_vars
1159 eval ac_val=$`echo $ac_var`
1160 echo "$ac_var='"'"'$ac_val'"'"'"
1161 done | sort
1162 echo
1164 if test -n "$ac_subst_files"; then
1165 cat <<\_ASBOX
1166 ## ------------- ##
1167 ## Output files. ##
1168 ## ------------- ##
1169 _ASBOX
1170 echo
1171 for ac_var in $ac_subst_files
1173 eval ac_val=$`echo $ac_var`
1174 echo "$ac_var='"'"'$ac_val'"'"'"
1175 done | sort
1176 echo
1179 if test -s confdefs.h; then
1180 cat <<\_ASBOX
1181 ## ----------- ##
1182 ## confdefs.h. ##
1183 ## ----------- ##
1184 _ASBOX
1185 echo
1186 sed "/^$/d" confdefs.h | sort
1187 echo
1189 test "$ac_signal" != 0 &&
1190 echo "$as_me: caught signal $ac_signal"
1191 echo "$as_me: exit $exit_status"
1192 } >&5
1193 rm -f core *.core &&
1194 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1195 exit $exit_status
1197 for ac_signal in 1 2 13 15; do
1198 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1199 done
1200 ac_signal=0
1202 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1203 rm -rf conftest* confdefs.h
1204 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1205 echo >confdefs.h
1207 # Predefined preprocessor variables.
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_NAME "$PACKAGE_NAME"
1211 _ACEOF
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1216 _ACEOF
1219 cat >>confdefs.h <<_ACEOF
1220 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1221 _ACEOF
1224 cat >>confdefs.h <<_ACEOF
1225 #define PACKAGE_STRING "$PACKAGE_STRING"
1226 _ACEOF
1229 cat >>confdefs.h <<_ACEOF
1230 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1231 _ACEOF
1234 # Let the site file select an alternate cache file if it wants to.
1235 # Prefer explicitly selected file to automatically selected ones.
1236 if test -z "$CONFIG_SITE"; then
1237 if test "x$prefix" != xNONE; then
1238 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1239 else
1240 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1243 for ac_site_file in $CONFIG_SITE; do
1244 if test -r "$ac_site_file"; then
1245 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1246 echo "$as_me: loading site script $ac_site_file" >&6;}
1247 sed 's/^/| /' "$ac_site_file" >&5
1248 . "$ac_site_file"
1250 done
1252 if test -r "$cache_file"; then
1253 # Some versions of bash will fail to source /dev/null (special
1254 # files actually), so we avoid doing that.
1255 if test -f "$cache_file"; then
1256 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1257 echo "$as_me: loading cache $cache_file" >&6;}
1258 case $cache_file in
1259 [\\/]* | ?:[\\/]* ) . $cache_file;;
1260 *) . ./$cache_file;;
1261 esac
1263 else
1264 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1265 echo "$as_me: creating cache $cache_file" >&6;}
1266 >$cache_file
1269 # Check that the precious variables saved in the cache have kept the same
1270 # value.
1271 ac_cache_corrupted=false
1272 for ac_var in `(set) 2>&1 |
1273 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1274 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1275 eval ac_new_set=\$ac_env_${ac_var}_set
1276 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1277 eval ac_new_val="\$ac_env_${ac_var}_value"
1278 case $ac_old_set,$ac_new_set in
1279 set,)
1280 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1281 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1282 ac_cache_corrupted=: ;;
1283 ,set)
1284 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1285 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1286 ac_cache_corrupted=: ;;
1287 ,);;
1289 if test "x$ac_old_val" != "x$ac_new_val"; then
1290 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1291 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1292 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1293 echo "$as_me: former value: $ac_old_val" >&2;}
1294 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1295 echo "$as_me: current value: $ac_new_val" >&2;}
1296 ac_cache_corrupted=:
1297 fi;;
1298 esac
1299 # Pass precious variables to config.status.
1300 if test "$ac_new_set" = set; then
1301 case $ac_new_val in
1302 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1303 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1304 *) ac_arg=$ac_var=$ac_new_val ;;
1305 esac
1306 case " $ac_configure_args " in
1307 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1308 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1309 esac
1311 done
1312 if $ac_cache_corrupted; then
1313 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1314 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1315 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1316 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1317 { (exit 1); exit 1; }; }
1320 ac_ext=c
1321 ac_cpp='$CPP $CPPFLAGS'
1322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1345 # We use these options to decide which functions to include.
1347 # Check whether --with-target-subdir or --without-target-subdir was given.
1348 if test "${with_target_subdir+set}" = set; then
1349 withval="$with_target_subdir"
1353 # We may get other options which we don't document:
1354 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1356 # When building with srcdir == objdir, links to the source files will
1357 # be created in directories within the target_subdir. We have to
1358 # adjust toplevel_srcdir accordingly, so that configure finds
1359 # install-sh and other auxiliary files that live in the top-level
1360 # source directory.
1361 if test "${srcdir}" = "."; then
1362 if test -z "${with_target_subdir}"; then
1363 toprel=".."
1364 else
1365 if test "${with_target_subdir}" != "."; then
1366 toprel="${with_multisrctop}../.."
1367 else
1368 toprel="${with_multisrctop}.."
1371 else
1372 toprel=".."
1375 libgcj_basedir=$srcdir/$toprel/./libjava
1378 ac_aux_dir=
1379 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
1380 if test -f $ac_dir/install-sh; then
1381 ac_aux_dir=$ac_dir
1382 ac_install_sh="$ac_aux_dir/install-sh -c"
1383 break
1384 elif test -f $ac_dir/install.sh; then
1385 ac_aux_dir=$ac_dir
1386 ac_install_sh="$ac_aux_dir/install.sh -c"
1387 break
1388 elif test -f $ac_dir/shtool; then
1389 ac_aux_dir=$ac_dir
1390 ac_install_sh="$ac_aux_dir/shtool install -c"
1391 break
1393 done
1394 if test -z "$ac_aux_dir"; then
1395 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" >&5
1396 echo "$as_me: error: cannot find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" >&2;}
1397 { (exit 1); exit 1; }; }
1399 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1400 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1401 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1403 if :; then :; else
1404 # This overrides the previous occurrence for automake, but not for
1405 # autoconf, which is exactly what we want.
1406 ac_aux_dir=
1407 for ac_dir in .. $srcdir/..; do
1408 if test -f $ac_dir/install-sh; then
1409 ac_aux_dir=$ac_dir
1410 ac_install_sh="$ac_aux_dir/install-sh -c"
1411 break
1412 elif test -f $ac_dir/install.sh; then
1413 ac_aux_dir=$ac_dir
1414 ac_install_sh="$ac_aux_dir/install.sh -c"
1415 break
1416 elif test -f $ac_dir/shtool; then
1417 ac_aux_dir=$ac_dir
1418 ac_install_sh="$ac_aux_dir/shtool install -c"
1419 break
1421 done
1422 if test -z "$ac_aux_dir"; then
1423 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1424 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1425 { (exit 1); exit 1; }; }
1427 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1428 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1429 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1433 # Make sure we can run config.sub.
1434 $ac_config_sub sun4 >/dev/null 2>&1 ||
1435 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1436 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1437 { (exit 1); exit 1; }; }
1439 echo "$as_me:$LINENO: checking build system type" >&5
1440 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1441 if test "${ac_cv_build+set}" = set; then
1442 echo $ECHO_N "(cached) $ECHO_C" >&6
1443 else
1444 ac_cv_build_alias=$build_alias
1445 test -z "$ac_cv_build_alias" &&
1446 ac_cv_build_alias=`$ac_config_guess`
1447 test -z "$ac_cv_build_alias" &&
1448 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1449 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1450 { (exit 1); exit 1; }; }
1451 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1452 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1453 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1454 { (exit 1); exit 1; }; }
1457 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1458 echo "${ECHO_T}$ac_cv_build" >&6
1459 build=$ac_cv_build
1460 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1461 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1462 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1465 echo "$as_me:$LINENO: checking host system type" >&5
1466 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1467 if test "${ac_cv_host+set}" = set; then
1468 echo $ECHO_N "(cached) $ECHO_C" >&6
1469 else
1470 ac_cv_host_alias=$host_alias
1471 test -z "$ac_cv_host_alias" &&
1472 ac_cv_host_alias=$ac_cv_build_alias
1473 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1474 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1475 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1476 { (exit 1); exit 1; }; }
1479 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1480 echo "${ECHO_T}$ac_cv_host" >&6
1481 host=$ac_cv_host
1482 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1483 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1484 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1487 echo "$as_me:$LINENO: checking target system type" >&5
1488 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1489 if test "${ac_cv_target+set}" = set; then
1490 echo $ECHO_N "(cached) $ECHO_C" >&6
1491 else
1492 ac_cv_target_alias=$target_alias
1493 test "x$ac_cv_target_alias" = "x" &&
1494 ac_cv_target_alias=$ac_cv_host_alias
1495 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1496 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1497 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1498 { (exit 1); exit 1; }; }
1501 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1502 echo "${ECHO_T}$ac_cv_target" >&6
1503 target=$ac_cv_target
1504 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1505 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1506 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1509 # The aliases save the names the user supplied, while $host etc.
1510 # will get canonicalized.
1511 test -n "$target_alias" &&
1512 test "$program_prefix$program_suffix$program_transform_name" = \
1513 NONENONEs,x,x, &&
1514 program_prefix=${target_alias}-
1515 case ${build_alias} in
1516 "") build_noncanonical=${build} ;;
1517 *) build_noncanonical=${build_alias} ;;
1518 esac
1520 case ${host_alias} in
1521 "") host_noncanonical=${build_noncanonical} ;;
1522 *) host_noncanonical=${host_alias} ;;
1523 esac
1525 case ${target_alias} in
1526 "") target_noncanonical=${host_noncanonical} ;;
1527 *) target_noncanonical=${target_alias} ;;
1528 esac
1533 # This works around the fact that libtool configuration may change LD
1534 # for this particular configuration, but some shells, instead of
1535 # keeping the changes in LD private, export them just because LD is
1536 # exported.
1537 ORIGINAL_LD_FOR_MULTILIBS=$LD
1539 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1540 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1541 LN_S=$as_ln_s
1542 if test "$LN_S" = "ln -s"; then
1543 echo "$as_me:$LINENO: result: yes" >&5
1544 echo "${ECHO_T}yes" >&6
1545 else
1546 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1547 echo "${ECHO_T}no, using $LN_S" >&6
1551 # This works around an automake problem.
1552 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1556 # Check whether --with-cross-host or --without-cross-host was given.
1557 if test "${with_cross_host+set}" = set; then
1558 withval="$with_cross_host"
1563 # Check whether --with-newlib or --without-newlib was given.
1564 if test "${with_newlib+set}" = set; then
1565 withval="$with_newlib"
1569 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1570 if test "${enable_version_specific_runtime_libs+set}" = set; then
1571 enableval="$enable_version_specific_runtime_libs"
1572 case "$enableval" in
1573 yes) version_specific_libs=yes ;;
1574 no) version_specific_libs=no ;;
1575 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1576 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1577 { (exit 1); exit 1; }; };;
1578 esac
1579 else
1580 version_specific_libs=no
1584 # Default to --enable-multilib
1585 # Check whether --enable-multilib or --disable-multilib was given.
1586 if test "${enable_multilib+set}" = set; then
1587 enableval="$enable_multilib"
1588 case "${enableval}" in
1589 yes) multilib=yes ;;
1590 no) multilib=no ;;
1591 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1592 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1593 { (exit 1); exit 1; }; } ;;
1594 esac
1595 else
1596 multilib=yes
1598 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1601 # (1) We use an abnormal CXX (without library references), so we
1602 # must cache it under a different name.
1603 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1604 # the non-multilib-adjusted value will be used in multilibs.
1605 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1606 # (4) As another side effect, automake doesn't automatically include them
1607 # in Makefile.in.
1608 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1609 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1610 # used in later tests. This may not be necessary in libjava; I don't know.
1614 save_CXXFLAGS="$CXXFLAGS"
1615 CXXFLAGS="$CXXFLAGS -fno-builtin"
1616 ac_ext=c
1617 ac_cpp='$CPP $CPPFLAGS'
1618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1621 if test -n "$ac_tool_prefix"; then
1622 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1623 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1624 echo "$as_me:$LINENO: checking for $ac_word" >&5
1625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1626 if test "${ac_cv_prog_CC+set}" = set; then
1627 echo $ECHO_N "(cached) $ECHO_C" >&6
1628 else
1629 if test -n "$CC"; then
1630 ac_cv_prog_CC="$CC" # Let the user override the test.
1631 else
1632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1633 for as_dir in $PATH
1635 IFS=$as_save_IFS
1636 test -z "$as_dir" && as_dir=.
1637 for ac_exec_ext in '' $ac_executable_extensions; do
1638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1639 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1641 break 2
1643 done
1644 done
1648 CC=$ac_cv_prog_CC
1649 if test -n "$CC"; then
1650 echo "$as_me:$LINENO: result: $CC" >&5
1651 echo "${ECHO_T}$CC" >&6
1652 else
1653 echo "$as_me:$LINENO: result: no" >&5
1654 echo "${ECHO_T}no" >&6
1658 if test -z "$ac_cv_prog_CC"; then
1659 ac_ct_CC=$CC
1660 # Extract the first word of "gcc", so it can be a program name with args.
1661 set dummy gcc; ac_word=$2
1662 echo "$as_me:$LINENO: checking for $ac_word" >&5
1663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1664 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1666 else
1667 if test -n "$ac_ct_CC"; then
1668 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1669 else
1670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1671 for as_dir in $PATH
1673 IFS=$as_save_IFS
1674 test -z "$as_dir" && as_dir=.
1675 for ac_exec_ext in '' $ac_executable_extensions; do
1676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1677 ac_cv_prog_ac_ct_CC="gcc"
1678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1679 break 2
1681 done
1682 done
1686 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1687 if test -n "$ac_ct_CC"; then
1688 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1689 echo "${ECHO_T}$ac_ct_CC" >&6
1690 else
1691 echo "$as_me:$LINENO: result: no" >&5
1692 echo "${ECHO_T}no" >&6
1695 CC=$ac_ct_CC
1696 else
1697 CC="$ac_cv_prog_CC"
1700 if test -z "$CC"; then
1701 if test -n "$ac_tool_prefix"; then
1702 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1703 set dummy ${ac_tool_prefix}cc; ac_word=$2
1704 echo "$as_me:$LINENO: checking for $ac_word" >&5
1705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1706 if test "${ac_cv_prog_CC+set}" = set; then
1707 echo $ECHO_N "(cached) $ECHO_C" >&6
1708 else
1709 if test -n "$CC"; then
1710 ac_cv_prog_CC="$CC" # Let the user override the test.
1711 else
1712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1713 for as_dir in $PATH
1715 IFS=$as_save_IFS
1716 test -z "$as_dir" && as_dir=.
1717 for ac_exec_ext in '' $ac_executable_extensions; do
1718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1719 ac_cv_prog_CC="${ac_tool_prefix}cc"
1720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1721 break 2
1723 done
1724 done
1728 CC=$ac_cv_prog_CC
1729 if test -n "$CC"; then
1730 echo "$as_me:$LINENO: result: $CC" >&5
1731 echo "${ECHO_T}$CC" >&6
1732 else
1733 echo "$as_me:$LINENO: result: no" >&5
1734 echo "${ECHO_T}no" >&6
1738 if test -z "$ac_cv_prog_CC"; then
1739 ac_ct_CC=$CC
1740 # Extract the first word of "cc", so it can be a program name with args.
1741 set dummy cc; ac_word=$2
1742 echo "$as_me:$LINENO: checking for $ac_word" >&5
1743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1744 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1745 echo $ECHO_N "(cached) $ECHO_C" >&6
1746 else
1747 if test -n "$ac_ct_CC"; then
1748 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1749 else
1750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1751 for as_dir in $PATH
1753 IFS=$as_save_IFS
1754 test -z "$as_dir" && as_dir=.
1755 for ac_exec_ext in '' $ac_executable_extensions; do
1756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1757 ac_cv_prog_ac_ct_CC="cc"
1758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1759 break 2
1761 done
1762 done
1766 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1767 if test -n "$ac_ct_CC"; then
1768 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1769 echo "${ECHO_T}$ac_ct_CC" >&6
1770 else
1771 echo "$as_me:$LINENO: result: no" >&5
1772 echo "${ECHO_T}no" >&6
1775 CC=$ac_ct_CC
1776 else
1777 CC="$ac_cv_prog_CC"
1781 if test -z "$CC"; then
1782 # Extract the first word of "cc", so it can be a program name with args.
1783 set dummy cc; ac_word=$2
1784 echo "$as_me:$LINENO: checking for $ac_word" >&5
1785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1786 if test "${ac_cv_prog_CC+set}" = set; then
1787 echo $ECHO_N "(cached) $ECHO_C" >&6
1788 else
1789 if test -n "$CC"; then
1790 ac_cv_prog_CC="$CC" # Let the user override the test.
1791 else
1792 ac_prog_rejected=no
1793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1794 for as_dir in $PATH
1796 IFS=$as_save_IFS
1797 test -z "$as_dir" && as_dir=.
1798 for ac_exec_ext in '' $ac_executable_extensions; do
1799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1800 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1801 ac_prog_rejected=yes
1802 continue
1804 ac_cv_prog_CC="cc"
1805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1806 break 2
1808 done
1809 done
1811 if test $ac_prog_rejected = yes; then
1812 # We found a bogon in the path, so make sure we never use it.
1813 set dummy $ac_cv_prog_CC
1814 shift
1815 if test $# != 0; then
1816 # We chose a different compiler from the bogus one.
1817 # However, it has the same basename, so the bogon will be chosen
1818 # first if we set CC to just the basename; use the full file name.
1819 shift
1820 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1825 CC=$ac_cv_prog_CC
1826 if test -n "$CC"; then
1827 echo "$as_me:$LINENO: result: $CC" >&5
1828 echo "${ECHO_T}$CC" >&6
1829 else
1830 echo "$as_me:$LINENO: result: no" >&5
1831 echo "${ECHO_T}no" >&6
1835 if test -z "$CC"; then
1836 if test -n "$ac_tool_prefix"; then
1837 for ac_prog in cl
1839 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1840 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1841 echo "$as_me:$LINENO: checking for $ac_word" >&5
1842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1843 if test "${ac_cv_prog_CC+set}" = set; then
1844 echo $ECHO_N "(cached) $ECHO_C" >&6
1845 else
1846 if test -n "$CC"; then
1847 ac_cv_prog_CC="$CC" # Let the user override the test.
1848 else
1849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1850 for as_dir in $PATH
1852 IFS=$as_save_IFS
1853 test -z "$as_dir" && as_dir=.
1854 for ac_exec_ext in '' $ac_executable_extensions; do
1855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1856 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1858 break 2
1860 done
1861 done
1865 CC=$ac_cv_prog_CC
1866 if test -n "$CC"; then
1867 echo "$as_me:$LINENO: result: $CC" >&5
1868 echo "${ECHO_T}$CC" >&6
1869 else
1870 echo "$as_me:$LINENO: result: no" >&5
1871 echo "${ECHO_T}no" >&6
1874 test -n "$CC" && break
1875 done
1877 if test -z "$CC"; then
1878 ac_ct_CC=$CC
1879 for ac_prog in cl
1881 # Extract the first word of "$ac_prog", so it can be a program name with args.
1882 set dummy $ac_prog; ac_word=$2
1883 echo "$as_me:$LINENO: checking for $ac_word" >&5
1884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1885 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1886 echo $ECHO_N "(cached) $ECHO_C" >&6
1887 else
1888 if test -n "$ac_ct_CC"; then
1889 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1890 else
1891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892 for as_dir in $PATH
1894 IFS=$as_save_IFS
1895 test -z "$as_dir" && as_dir=.
1896 for ac_exec_ext in '' $ac_executable_extensions; do
1897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1898 ac_cv_prog_ac_ct_CC="$ac_prog"
1899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1900 break 2
1902 done
1903 done
1907 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1908 if test -n "$ac_ct_CC"; then
1909 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1910 echo "${ECHO_T}$ac_ct_CC" >&6
1911 else
1912 echo "$as_me:$LINENO: result: no" >&5
1913 echo "${ECHO_T}no" >&6
1916 test -n "$ac_ct_CC" && break
1917 done
1919 CC=$ac_ct_CC
1925 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1926 See \`config.log' for more details." >&5
1927 echo "$as_me: error: no acceptable C compiler found in \$PATH
1928 See \`config.log' for more details." >&2;}
1929 { (exit 1); exit 1; }; }
1931 # Provide some information about the compiler.
1932 echo "$as_me:$LINENO:" \
1933 "checking for C compiler version" >&5
1934 ac_compiler=`set X $ac_compile; echo $2`
1935 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1936 (eval $ac_compiler --version </dev/null >&5) 2>&5
1937 ac_status=$?
1938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939 (exit $ac_status); }
1940 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1941 (eval $ac_compiler -v </dev/null >&5) 2>&5
1942 ac_status=$?
1943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944 (exit $ac_status); }
1945 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1946 (eval $ac_compiler -V </dev/null >&5) 2>&5
1947 ac_status=$?
1948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1949 (exit $ac_status); }
1951 cat >conftest.$ac_ext <<_ACEOF
1952 /* confdefs.h. */
1953 _ACEOF
1954 cat confdefs.h >>conftest.$ac_ext
1955 cat >>conftest.$ac_ext <<_ACEOF
1956 /* end confdefs.h. */
1959 main ()
1963 return 0;
1965 _ACEOF
1966 # FIXME: Cleanup?
1967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1968 (eval $ac_link) 2>&5
1969 ac_status=$?
1970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1971 (exit $ac_status); }; then
1972 gcc_no_link=no
1973 else
1974 gcc_no_link=yes
1977 if test x$gcc_no_link = xyes; then
1978 # Setting cross_compile will disable run tests; it will
1979 # also disable AC_CHECK_FILE but that's generally
1980 # correct if we can't link.
1981 cross_compiling=yes
1982 EXEEXT=
1983 else
1984 cat >conftest.$ac_ext <<_ACEOF
1985 /* confdefs.h. */
1986 _ACEOF
1987 cat confdefs.h >>conftest.$ac_ext
1988 cat >>conftest.$ac_ext <<_ACEOF
1989 /* end confdefs.h. */
1992 main ()
1996 return 0;
1998 _ACEOF
1999 ac_clean_files_save=$ac_clean_files
2000 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2001 # Try to create an executable without -o first, disregard a.out.
2002 # It will help us diagnose broken compilers, and finding out an intuition
2003 # of exeext.
2004 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2005 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2006 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2007 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2008 (eval $ac_link_default) 2>&5
2009 ac_status=$?
2010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011 (exit $ac_status); }; then
2012 # Find the output, starting from the most likely. This scheme is
2013 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2014 # resort.
2016 # Be careful to initialize this variable, since it used to be cached.
2017 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2018 ac_cv_exeext=
2019 # b.out is created by i960 compilers.
2020 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2022 test -f "$ac_file" || continue
2023 case $ac_file in
2024 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2026 conftest.$ac_ext )
2027 # This is the source file.
2029 [ab].out )
2030 # We found the default executable, but exeext='' is most
2031 # certainly right.
2032 break;;
2033 *.* )
2034 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2035 # FIXME: I believe we export ac_cv_exeext for Libtool,
2036 # but it would be cool to find out if it's true. Does anybody
2037 # maintain Libtool? --akim.
2038 export ac_cv_exeext
2039 break;;
2041 break;;
2042 esac
2043 done
2044 else
2045 echo "$as_me: failed program was:" >&5
2046 sed 's/^/| /' conftest.$ac_ext >&5
2048 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2049 See \`config.log' for more details." >&5
2050 echo "$as_me: error: C compiler cannot create executables
2051 See \`config.log' for more details." >&2;}
2052 { (exit 77); exit 77; }; }
2055 ac_exeext=$ac_cv_exeext
2056 echo "$as_me:$LINENO: result: $ac_file" >&5
2057 echo "${ECHO_T}$ac_file" >&6
2059 # Check the compiler produces executables we can run. If not, either
2060 # the compiler is broken, or we cross compile.
2061 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2062 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2063 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2064 # If not cross compiling, check that we can run a simple program.
2065 if test "$cross_compiling" != yes; then
2066 if { ac_try='./$ac_file'
2067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2068 (eval $ac_try) 2>&5
2069 ac_status=$?
2070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071 (exit $ac_status); }; }; then
2072 cross_compiling=no
2073 else
2074 if test "$cross_compiling" = maybe; then
2075 cross_compiling=yes
2076 else
2077 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2078 If you meant to cross compile, use \`--host'.
2079 See \`config.log' for more details." >&5
2080 echo "$as_me: error: cannot run C compiled programs.
2081 If you meant to cross compile, use \`--host'.
2082 See \`config.log' for more details." >&2;}
2083 { (exit 1); exit 1; }; }
2087 echo "$as_me:$LINENO: result: yes" >&5
2088 echo "${ECHO_T}yes" >&6
2090 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2091 ac_clean_files=$ac_clean_files_save
2092 # Check the compiler produces executables we can run. If not, either
2093 # the compiler is broken, or we cross compile.
2094 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2095 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2096 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2097 echo "${ECHO_T}$cross_compiling" >&6
2099 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2100 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2102 (eval $ac_link) 2>&5
2103 ac_status=$?
2104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105 (exit $ac_status); }; then
2106 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2107 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2108 # work properly (i.e., refer to `conftest.exe'), while it won't with
2109 # `rm'.
2110 for ac_file in conftest.exe conftest conftest.*; do
2111 test -f "$ac_file" || continue
2112 case $ac_file in
2113 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2114 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2115 export ac_cv_exeext
2116 break;;
2117 * ) break;;
2118 esac
2119 done
2120 else
2121 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2122 See \`config.log' for more details." >&5
2123 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2124 See \`config.log' for more details." >&2;}
2125 { (exit 1); exit 1; }; }
2128 rm -f conftest$ac_cv_exeext
2129 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2130 echo "${ECHO_T}$ac_cv_exeext" >&6
2132 rm -f conftest.$ac_ext
2133 EXEEXT=$ac_cv_exeext
2134 ac_exeext=$EXEEXT
2136 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2137 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2138 if test "${ac_cv_objext+set}" = set; then
2139 echo $ECHO_N "(cached) $ECHO_C" >&6
2140 else
2141 cat >conftest.$ac_ext <<_ACEOF
2142 /* confdefs.h. */
2143 _ACEOF
2144 cat confdefs.h >>conftest.$ac_ext
2145 cat >>conftest.$ac_ext <<_ACEOF
2146 /* end confdefs.h. */
2149 main ()
2153 return 0;
2155 _ACEOF
2156 rm -f conftest.o conftest.obj
2157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2158 (eval $ac_compile) 2>&5
2159 ac_status=$?
2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161 (exit $ac_status); }; then
2162 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2163 case $ac_file in
2164 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2165 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2166 break;;
2167 esac
2168 done
2169 else
2170 echo "$as_me: failed program was:" >&5
2171 sed 's/^/| /' conftest.$ac_ext >&5
2173 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2174 See \`config.log' for more details." >&5
2175 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2176 See \`config.log' for more details." >&2;}
2177 { (exit 1); exit 1; }; }
2180 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2182 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2183 echo "${ECHO_T}$ac_cv_objext" >&6
2184 OBJEXT=$ac_cv_objext
2185 ac_objext=$OBJEXT
2186 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2187 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2188 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2189 echo $ECHO_N "(cached) $ECHO_C" >&6
2190 else
2191 cat >conftest.$ac_ext <<_ACEOF
2192 /* confdefs.h. */
2193 _ACEOF
2194 cat confdefs.h >>conftest.$ac_ext
2195 cat >>conftest.$ac_ext <<_ACEOF
2196 /* end confdefs.h. */
2199 main ()
2201 #ifndef __GNUC__
2202 choke me
2203 #endif
2206 return 0;
2208 _ACEOF
2209 rm -f conftest.$ac_objext
2210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2211 (eval $ac_compile) 2>conftest.er1
2212 ac_status=$?
2213 grep -v '^ *+' conftest.er1 >conftest.err
2214 rm -f conftest.er1
2215 cat conftest.err >&5
2216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217 (exit $ac_status); } &&
2218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2220 (eval $ac_try) 2>&5
2221 ac_status=$?
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); }; } &&
2224 { ac_try='test -s conftest.$ac_objext'
2225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226 (eval $ac_try) 2>&5
2227 ac_status=$?
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }; }; then
2230 ac_compiler_gnu=yes
2231 else
2232 echo "$as_me: failed program was:" >&5
2233 sed 's/^/| /' conftest.$ac_ext >&5
2235 ac_compiler_gnu=no
2237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2238 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2241 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2242 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2243 GCC=`test $ac_compiler_gnu = yes && echo yes`
2244 ac_test_CFLAGS=${CFLAGS+set}
2245 ac_save_CFLAGS=$CFLAGS
2246 CFLAGS="-g"
2247 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2248 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2249 if test "${ac_cv_prog_cc_g+set}" = set; then
2250 echo $ECHO_N "(cached) $ECHO_C" >&6
2251 else
2252 cat >conftest.$ac_ext <<_ACEOF
2253 /* confdefs.h. */
2254 _ACEOF
2255 cat confdefs.h >>conftest.$ac_ext
2256 cat >>conftest.$ac_ext <<_ACEOF
2257 /* end confdefs.h. */
2260 main ()
2264 return 0;
2266 _ACEOF
2267 rm -f conftest.$ac_objext
2268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2269 (eval $ac_compile) 2>conftest.er1
2270 ac_status=$?
2271 grep -v '^ *+' conftest.er1 >conftest.err
2272 rm -f conftest.er1
2273 cat conftest.err >&5
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); } &&
2276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278 (eval $ac_try) 2>&5
2279 ac_status=$?
2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281 (exit $ac_status); }; } &&
2282 { ac_try='test -s conftest.$ac_objext'
2283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2284 (eval $ac_try) 2>&5
2285 ac_status=$?
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }; }; then
2288 ac_cv_prog_cc_g=yes
2289 else
2290 echo "$as_me: failed program was:" >&5
2291 sed 's/^/| /' conftest.$ac_ext >&5
2293 ac_cv_prog_cc_g=no
2295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2297 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2298 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2299 if test "$ac_test_CFLAGS" = set; then
2300 CFLAGS=$ac_save_CFLAGS
2301 elif test $ac_cv_prog_cc_g = yes; then
2302 if test "$GCC" = yes; then
2303 CFLAGS="-g -O2"
2304 else
2305 CFLAGS="-g"
2307 else
2308 if test "$GCC" = yes; then
2309 CFLAGS="-O2"
2310 else
2311 CFLAGS=
2314 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2315 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2316 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2317 echo $ECHO_N "(cached) $ECHO_C" >&6
2318 else
2319 ac_cv_prog_cc_stdc=no
2320 ac_save_CC=$CC
2321 cat >conftest.$ac_ext <<_ACEOF
2322 /* confdefs.h. */
2323 _ACEOF
2324 cat confdefs.h >>conftest.$ac_ext
2325 cat >>conftest.$ac_ext <<_ACEOF
2326 /* end confdefs.h. */
2327 #include <stdarg.h>
2328 #include <stdio.h>
2329 #include <sys/types.h>
2330 #include <sys/stat.h>
2331 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2332 struct buf { int x; };
2333 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2334 static char *e (p, i)
2335 char **p;
2336 int i;
2338 return p[i];
2340 static char *f (char * (*g) (char **, int), char **p, ...)
2342 char *s;
2343 va_list v;
2344 va_start (v,p);
2345 s = g (p, va_arg (v,int));
2346 va_end (v);
2347 return s;
2350 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2351 function prototypes and stuff, but not '\xHH' hex character constants.
2352 These don't provoke an error unfortunately, instead are silently treated
2353 as 'x'. The following induces an error, until -std1 is added to get
2354 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2355 array size at least. It's necessary to write '\x00'==0 to get something
2356 that's true only with -std1. */
2357 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2359 int test (int i, double x);
2360 struct s1 {int (*f) (int a);};
2361 struct s2 {int (*f) (double a);};
2362 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2363 int argc;
2364 char **argv;
2366 main ()
2368 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2370 return 0;
2372 _ACEOF
2373 # Don't try gcc -ansi; that turns off useful extensions and
2374 # breaks some systems' header files.
2375 # AIX -qlanglvl=ansi
2376 # Ultrix and OSF/1 -std1
2377 # HP-UX 10.20 and later -Ae
2378 # HP-UX older versions -Aa -D_HPUX_SOURCE
2379 # SVR4 -Xc -D__EXTENSIONS__
2380 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2382 CC="$ac_save_CC $ac_arg"
2383 rm -f conftest.$ac_objext
2384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2385 (eval $ac_compile) 2>conftest.er1
2386 ac_status=$?
2387 grep -v '^ *+' conftest.er1 >conftest.err
2388 rm -f conftest.er1
2389 cat conftest.err >&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); } &&
2392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394 (eval $ac_try) 2>&5
2395 ac_status=$?
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; } &&
2398 { ac_try='test -s conftest.$ac_objext'
2399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400 (eval $ac_try) 2>&5
2401 ac_status=$?
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); }; }; then
2404 ac_cv_prog_cc_stdc=$ac_arg
2405 break
2406 else
2407 echo "$as_me: failed program was:" >&5
2408 sed 's/^/| /' conftest.$ac_ext >&5
2411 rm -f conftest.err conftest.$ac_objext
2412 done
2413 rm -f conftest.$ac_ext conftest.$ac_objext
2414 CC=$ac_save_CC
2418 case "x$ac_cv_prog_cc_stdc" in
2419 x|xno)
2420 echo "$as_me:$LINENO: result: none needed" >&5
2421 echo "${ECHO_T}none needed" >&6 ;;
2423 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2424 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2425 CC="$CC $ac_cv_prog_cc_stdc" ;;
2426 esac
2428 # Some people use a C++ compiler to compile C. Since we use `exit',
2429 # in C++ we need to declare it. In case someone uses the same compiler
2430 # for both compiling C and C++ we need to have the C++ compiler decide
2431 # the declaration of exit, since it's the most demanding environment.
2432 cat >conftest.$ac_ext <<_ACEOF
2433 #ifndef __cplusplus
2434 choke me
2435 #endif
2436 _ACEOF
2437 rm -f conftest.$ac_objext
2438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2439 (eval $ac_compile) 2>conftest.er1
2440 ac_status=$?
2441 grep -v '^ *+' conftest.er1 >conftest.err
2442 rm -f conftest.er1
2443 cat conftest.err >&5
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); } &&
2446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2448 (eval $ac_try) 2>&5
2449 ac_status=$?
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); }; } &&
2452 { ac_try='test -s conftest.$ac_objext'
2453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2454 (eval $ac_try) 2>&5
2455 ac_status=$?
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); }; }; then
2458 for ac_declaration in \
2459 '' \
2460 'extern "C" void std::exit (int) throw (); using std::exit;' \
2461 'extern "C" void std::exit (int); using std::exit;' \
2462 'extern "C" void exit (int) throw ();' \
2463 'extern "C" void exit (int);' \
2464 'void exit (int);'
2466 cat >conftest.$ac_ext <<_ACEOF
2467 /* confdefs.h. */
2468 _ACEOF
2469 cat confdefs.h >>conftest.$ac_ext
2470 cat >>conftest.$ac_ext <<_ACEOF
2471 /* end confdefs.h. */
2472 $ac_declaration
2473 #include <stdlib.h>
2475 main ()
2477 exit (42);
2479 return 0;
2481 _ACEOF
2482 rm -f conftest.$ac_objext
2483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2484 (eval $ac_compile) 2>conftest.er1
2485 ac_status=$?
2486 grep -v '^ *+' conftest.er1 >conftest.err
2487 rm -f conftest.er1
2488 cat conftest.err >&5
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); } &&
2491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2493 (eval $ac_try) 2>&5
2494 ac_status=$?
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }; } &&
2497 { ac_try='test -s conftest.$ac_objext'
2498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2499 (eval $ac_try) 2>&5
2500 ac_status=$?
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); }; }; then
2504 else
2505 echo "$as_me: failed program was:" >&5
2506 sed 's/^/| /' conftest.$ac_ext >&5
2508 continue
2510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2511 cat >conftest.$ac_ext <<_ACEOF
2512 /* confdefs.h. */
2513 _ACEOF
2514 cat confdefs.h >>conftest.$ac_ext
2515 cat >>conftest.$ac_ext <<_ACEOF
2516 /* end confdefs.h. */
2517 $ac_declaration
2519 main ()
2521 exit (42);
2523 return 0;
2525 _ACEOF
2526 rm -f conftest.$ac_objext
2527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2528 (eval $ac_compile) 2>conftest.er1
2529 ac_status=$?
2530 grep -v '^ *+' conftest.er1 >conftest.err
2531 rm -f conftest.er1
2532 cat conftest.err >&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); } &&
2535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537 (eval $ac_try) 2>&5
2538 ac_status=$?
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }; } &&
2541 { ac_try='test -s conftest.$ac_objext'
2542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2543 (eval $ac_try) 2>&5
2544 ac_status=$?
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }; }; then
2547 break
2548 else
2549 echo "$as_me: failed program was:" >&5
2550 sed 's/^/| /' conftest.$ac_ext >&5
2553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2554 done
2555 rm -f conftest*
2556 if test -n "$ac_declaration"; then
2557 echo '#ifdef __cplusplus' >>confdefs.h
2558 echo $ac_declaration >>confdefs.h
2559 echo '#endif' >>confdefs.h
2562 else
2563 echo "$as_me: failed program was:" >&5
2564 sed 's/^/| /' conftest.$ac_ext >&5
2567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2568 ac_ext=c
2569 ac_cpp='$CPP $CPPFLAGS'
2570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2574 ac_ext=cc
2575 ac_cpp='$CXXCPP $CPPFLAGS'
2576 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2577 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2578 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2579 if test -n "$ac_tool_prefix"; then
2580 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2582 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2583 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2584 echo "$as_me:$LINENO: checking for $ac_word" >&5
2585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2586 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
2588 else
2589 if test -n "$CXX"; then
2590 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2591 else
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593 for as_dir in $PATH
2595 IFS=$as_save_IFS
2596 test -z "$as_dir" && as_dir=.
2597 for ac_exec_ext in '' $ac_executable_extensions; do
2598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2599 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2601 break 2
2603 done
2604 done
2608 CXX=$glibcxx_cv_prog_CXX
2609 if test -n "$CXX"; then
2610 echo "$as_me:$LINENO: result: $CXX" >&5
2611 echo "${ECHO_T}$CXX" >&6
2612 else
2613 echo "$as_me:$LINENO: result: no" >&5
2614 echo "${ECHO_T}no" >&6
2617 test -n "$CXX" && break
2618 done
2620 if test -z "$CXX"; then
2621 ac_ct_CXX=$CXX
2622 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2624 # Extract the first word of "$ac_prog", so it can be a program name with args.
2625 set dummy $ac_prog; ac_word=$2
2626 echo "$as_me:$LINENO: checking for $ac_word" >&5
2627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2628 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2629 echo $ECHO_N "(cached) $ECHO_C" >&6
2630 else
2631 if test -n "$ac_ct_CXX"; then
2632 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2633 else
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635 for as_dir in $PATH
2637 IFS=$as_save_IFS
2638 test -z "$as_dir" && as_dir=.
2639 for ac_exec_ext in '' $ac_executable_extensions; do
2640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2641 ac_cv_prog_ac_ct_CXX="$ac_prog"
2642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2643 break 2
2645 done
2646 done
2650 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2651 if test -n "$ac_ct_CXX"; then
2652 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2653 echo "${ECHO_T}$ac_ct_CXX" >&6
2654 else
2655 echo "$as_me:$LINENO: result: no" >&5
2656 echo "${ECHO_T}no" >&6
2659 test -n "$ac_ct_CXX" && break
2660 done
2661 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2663 CXX=$ac_ct_CXX
2667 # Provide some information about the compiler.
2668 echo "$as_me:$LINENO:" \
2669 "checking for C++ compiler version" >&5
2670 ac_compiler=`set X $ac_compile; echo $2`
2671 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2672 (eval $ac_compiler --version </dev/null >&5) 2>&5
2673 ac_status=$?
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }
2676 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2677 (eval $ac_compiler -v </dev/null >&5) 2>&5
2678 ac_status=$?
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }
2681 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2682 (eval $ac_compiler -V </dev/null >&5) 2>&5
2683 ac_status=$?
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); }
2687 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2688 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2689 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2690 echo $ECHO_N "(cached) $ECHO_C" >&6
2691 else
2692 cat >conftest.$ac_ext <<_ACEOF
2693 /* confdefs.h. */
2694 _ACEOF
2695 cat confdefs.h >>conftest.$ac_ext
2696 cat >>conftest.$ac_ext <<_ACEOF
2697 /* end confdefs.h. */
2700 main ()
2702 #ifndef __GNUC__
2703 choke me
2704 #endif
2707 return 0;
2709 _ACEOF
2710 rm -f conftest.$ac_objext
2711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2712 (eval $ac_compile) 2>conftest.er1
2713 ac_status=$?
2714 grep -v '^ *+' conftest.er1 >conftest.err
2715 rm -f conftest.er1
2716 cat conftest.err >&5
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); } &&
2719 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2721 (eval $ac_try) 2>&5
2722 ac_status=$?
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); }; } &&
2725 { ac_try='test -s conftest.$ac_objext'
2726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2727 (eval $ac_try) 2>&5
2728 ac_status=$?
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }; }; then
2731 ac_compiler_gnu=yes
2732 else
2733 echo "$as_me: failed program was:" >&5
2734 sed 's/^/| /' conftest.$ac_ext >&5
2736 ac_compiler_gnu=no
2738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2739 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2742 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2743 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2744 GXX=`test $ac_compiler_gnu = yes && echo yes`
2745 ac_test_CXXFLAGS=${CXXFLAGS+set}
2746 ac_save_CXXFLAGS=$CXXFLAGS
2747 CXXFLAGS="-g"
2748 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2749 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2750 if test "${ac_cv_prog_cxx_g+set}" = set; then
2751 echo $ECHO_N "(cached) $ECHO_C" >&6
2752 else
2753 cat >conftest.$ac_ext <<_ACEOF
2754 /* confdefs.h. */
2755 _ACEOF
2756 cat confdefs.h >>conftest.$ac_ext
2757 cat >>conftest.$ac_ext <<_ACEOF
2758 /* end confdefs.h. */
2761 main ()
2765 return 0;
2767 _ACEOF
2768 rm -f conftest.$ac_objext
2769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2770 (eval $ac_compile) 2>conftest.er1
2771 ac_status=$?
2772 grep -v '^ *+' conftest.er1 >conftest.err
2773 rm -f conftest.er1
2774 cat conftest.err >&5
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); } &&
2777 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2779 (eval $ac_try) 2>&5
2780 ac_status=$?
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); }; } &&
2783 { ac_try='test -s conftest.$ac_objext'
2784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785 (eval $ac_try) 2>&5
2786 ac_status=$?
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }; }; then
2789 ac_cv_prog_cxx_g=yes
2790 else
2791 echo "$as_me: failed program was:" >&5
2792 sed 's/^/| /' conftest.$ac_ext >&5
2794 ac_cv_prog_cxx_g=no
2796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2798 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2799 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2800 if test "$ac_test_CXXFLAGS" = set; then
2801 CXXFLAGS=$ac_save_CXXFLAGS
2802 elif test $ac_cv_prog_cxx_g = yes; then
2803 if test "$GXX" = yes; then
2804 CXXFLAGS="-g -O2"
2805 else
2806 CXXFLAGS="-g"
2808 else
2809 if test "$GXX" = yes; then
2810 CXXFLAGS="-O2"
2811 else
2812 CXXFLAGS=
2815 for ac_declaration in \
2816 '' \
2817 'extern "C" void std::exit (int) throw (); using std::exit;' \
2818 'extern "C" void std::exit (int); using std::exit;' \
2819 'extern "C" void exit (int) throw ();' \
2820 'extern "C" void exit (int);' \
2821 'void exit (int);'
2823 cat >conftest.$ac_ext <<_ACEOF
2824 /* confdefs.h. */
2825 _ACEOF
2826 cat confdefs.h >>conftest.$ac_ext
2827 cat >>conftest.$ac_ext <<_ACEOF
2828 /* end confdefs.h. */
2829 $ac_declaration
2830 #include <stdlib.h>
2832 main ()
2834 exit (42);
2836 return 0;
2838 _ACEOF
2839 rm -f conftest.$ac_objext
2840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2841 (eval $ac_compile) 2>conftest.er1
2842 ac_status=$?
2843 grep -v '^ *+' conftest.er1 >conftest.err
2844 rm -f conftest.er1
2845 cat conftest.err >&5
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); } &&
2848 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2850 (eval $ac_try) 2>&5
2851 ac_status=$?
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); }; } &&
2854 { ac_try='test -s conftest.$ac_objext'
2855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856 (eval $ac_try) 2>&5
2857 ac_status=$?
2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); }; }; then
2861 else
2862 echo "$as_me: failed program was:" >&5
2863 sed 's/^/| /' conftest.$ac_ext >&5
2865 continue
2867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2868 cat >conftest.$ac_ext <<_ACEOF
2869 /* confdefs.h. */
2870 _ACEOF
2871 cat confdefs.h >>conftest.$ac_ext
2872 cat >>conftest.$ac_ext <<_ACEOF
2873 /* end confdefs.h. */
2874 $ac_declaration
2876 main ()
2878 exit (42);
2880 return 0;
2882 _ACEOF
2883 rm -f conftest.$ac_objext
2884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2885 (eval $ac_compile) 2>conftest.er1
2886 ac_status=$?
2887 grep -v '^ *+' conftest.er1 >conftest.err
2888 rm -f conftest.er1
2889 cat conftest.err >&5
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); } &&
2892 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2894 (eval $ac_try) 2>&5
2895 ac_status=$?
2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); }; } &&
2898 { ac_try='test -s conftest.$ac_objext'
2899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2900 (eval $ac_try) 2>&5
2901 ac_status=$?
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }; }; then
2904 break
2905 else
2906 echo "$as_me: failed program was:" >&5
2907 sed 's/^/| /' conftest.$ac_ext >&5
2910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2911 done
2912 rm -f conftest*
2913 if test -n "$ac_declaration"; then
2914 echo '#ifdef __cplusplus' >>confdefs.h
2915 echo $ac_declaration >>confdefs.h
2916 echo '#endif' >>confdefs.h
2919 ac_ext=c
2920 ac_cpp='$CPP $CPPFLAGS'
2921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2925 CXXFLAGS="$save_CXXFLAGS"
2931 # version is pulled out to make it a bit easier to change using sed.
2932 version=0.0.7
2933 # Still use "libjava" here to placate dejagnu.
2934 # Find a good install program. We prefer a C program (faster),
2935 # so one script is as good as another. But avoid the broken or
2936 # incompatible versions:
2937 # SysV /etc/install, /usr/sbin/install
2938 # SunOS /usr/etc/install
2939 # IRIX /sbin/install
2940 # AIX /bin/install
2941 # AmigaOS /C/install, which installs bootblocks on floppy discs
2942 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2943 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2944 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2945 # OS/2's system install, which has a completely different semantic
2946 # ./install, which can be erroneously created by make from ./install.sh.
2947 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2948 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2949 if test -z "$INSTALL"; then
2950 if test "${ac_cv_path_install+set}" = set; then
2951 echo $ECHO_N "(cached) $ECHO_C" >&6
2952 else
2953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954 for as_dir in $PATH
2956 IFS=$as_save_IFS
2957 test -z "$as_dir" && as_dir=.
2958 # Account for people who put trailing slashes in PATH elements.
2959 case $as_dir/ in
2960 ./ | .// | /cC/* | \
2961 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2962 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2963 /usr/ucb/* ) ;;
2965 # OSF1 and SCO ODT 3.0 have their own names for install.
2966 # Don't use installbsd from OSF since it installs stuff as root
2967 # by default.
2968 for ac_prog in ginstall scoinst install; do
2969 for ac_exec_ext in '' $ac_executable_extensions; do
2970 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2971 if test $ac_prog = install &&
2972 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2973 # AIX install. It has an incompatible calling convention.
2975 elif test $ac_prog = install &&
2976 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2977 # program-specific install script used by HP pwplus--don't use.
2979 else
2980 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2981 break 3
2984 done
2985 done
2987 esac
2988 done
2992 if test "${ac_cv_path_install+set}" = set; then
2993 INSTALL=$ac_cv_path_install
2994 else
2995 # As a last resort, use the slow shell script. We don't cache a
2996 # path for INSTALL within a source directory, because that will
2997 # break other packages using the cache if that directory is
2998 # removed, or if the path is relative.
2999 INSTALL=$ac_install_sh
3002 echo "$as_me:$LINENO: result: $INSTALL" >&5
3003 echo "${ECHO_T}$INSTALL" >&6
3005 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3006 # It thinks the first close brace ends the variable substitution.
3007 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3009 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3011 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3013 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3014 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3015 # Just in case
3016 sleep 1
3017 echo timestamp > conftestfile
3018 # Do `set' in a subshell so we don't clobber the current shell's
3019 # arguments. Must try -L first in case configure is actually a
3020 # symlink; some systems play weird games with the mod time of symlinks
3021 # (eg FreeBSD returns the mod time of the symlink's containing
3022 # directory).
3023 if (
3024 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
3025 if test "$*" = "X"; then
3026 # -L didn't work.
3027 set X `ls -t $srcdir/configure conftestfile`
3029 if test "$*" != "X $srcdir/configure conftestfile" \
3030 && test "$*" != "X conftestfile $srcdir/configure"; then
3032 # If neither matched, then we have a broken ls. This can happen
3033 # if, for instance, CONFIG_SHELL is bash and it inherits a
3034 # broken ls alias from the environment. This has actually
3035 # happened. Such a system could not be considered "sane".
3036 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3037 alias in your environment" >&5
3038 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3039 alias in your environment" >&2;}
3040 { (exit 1); exit 1; }; }
3043 test "$2" = conftestfile
3045 then
3046 # Ok.
3048 else
3049 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3050 Check your system clock" >&5
3051 echo "$as_me: error: newly created file is older than distributed files!
3052 Check your system clock" >&2;}
3053 { (exit 1); exit 1; }; }
3055 rm -f conftest*
3056 echo "$as_me:$LINENO: result: yes" >&5
3057 echo "${ECHO_T}yes" >&6
3058 test "$program_prefix" != NONE &&
3059 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3060 # Use a double $ so make ignores it.
3061 test "$program_suffix" != NONE &&
3062 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3063 # Double any \ or $. echo might interpret backslashes.
3064 # By default was `s,x,x', remove it if useless.
3065 cat <<\_ACEOF >conftest.sed
3066 s/[\\$]/&&/g;s/;s,x,x,$//
3067 _ACEOF
3068 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3069 rm conftest.sed
3071 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3072 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3073 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3074 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3075 echo $ECHO_N "(cached) $ECHO_C" >&6
3076 else
3077 cat >conftest.make <<\_ACEOF
3078 all:
3079 @echo 'ac_maketemp="$(MAKE)"'
3080 _ACEOF
3081 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3082 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3083 if test -n "$ac_maketemp"; then
3084 eval ac_cv_prog_make_${ac_make}_set=yes
3085 else
3086 eval ac_cv_prog_make_${ac_make}_set=no
3088 rm -f conftest.make
3090 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3091 echo "$as_me:$LINENO: result: yes" >&5
3092 echo "${ECHO_T}yes" >&6
3093 SET_MAKE=
3094 else
3095 echo "$as_me:$LINENO: result: no" >&5
3096 echo "${ECHO_T}no" >&6
3097 SET_MAKE="MAKE=${MAKE-make}"
3101 PACKAGE=libjava
3103 VERSION=$version
3105 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
3106 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3107 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3108 { (exit 1); exit 1; }; }
3111 cat >>confdefs.h <<_ACEOF
3112 #define PACKAGE "$PACKAGE"
3113 _ACEOF
3116 cat >>confdefs.h <<_ACEOF
3117 #define VERSION "$VERSION"
3118 _ACEOF
3122 missing_dir=`cd $ac_aux_dir && pwd`
3123 echo "$as_me:$LINENO: checking for working aclocal" >&5
3124 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
3125 # Run test in a subshell; some versions of sh will print an error if
3126 # an executable is not found, even if stderr is redirected.
3127 # Redirect stdin to placate older versions of autoconf. Sigh.
3128 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
3129 ACLOCAL=aclocal
3130 echo "$as_me:$LINENO: result: found" >&5
3131 echo "${ECHO_T}found" >&6
3132 else
3133 ACLOCAL="$missing_dir/missing aclocal"
3134 echo "$as_me:$LINENO: result: missing" >&5
3135 echo "${ECHO_T}missing" >&6
3138 echo "$as_me:$LINENO: checking for working autoconf" >&5
3139 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
3140 # Run test in a subshell; some versions of sh will print an error if
3141 # an executable is not found, even if stderr is redirected.
3142 # Redirect stdin to placate older versions of autoconf. Sigh.
3143 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
3144 AUTOCONF=autoconf
3145 echo "$as_me:$LINENO: result: found" >&5
3146 echo "${ECHO_T}found" >&6
3147 else
3148 AUTOCONF="$missing_dir/missing autoconf"
3149 echo "$as_me:$LINENO: result: missing" >&5
3150 echo "${ECHO_T}missing" >&6
3153 echo "$as_me:$LINENO: checking for working automake" >&5
3154 echo $ECHO_N "checking for working automake... $ECHO_C" >&6
3155 # Run test in a subshell; some versions of sh will print an error if
3156 # an executable is not found, even if stderr is redirected.
3157 # Redirect stdin to placate older versions of autoconf. Sigh.
3158 if (automake --version) < /dev/null > /dev/null 2>&1; then
3159 AUTOMAKE=automake
3160 echo "$as_me:$LINENO: result: found" >&5
3161 echo "${ECHO_T}found" >&6
3162 else
3163 AUTOMAKE="$missing_dir/missing automake"
3164 echo "$as_me:$LINENO: result: missing" >&5
3165 echo "${ECHO_T}missing" >&6
3168 echo "$as_me:$LINENO: checking for working autoheader" >&5
3169 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
3170 # Run test in a subshell; some versions of sh will print an error if
3171 # an executable is not found, even if stderr is redirected.
3172 # Redirect stdin to placate older versions of autoconf. Sigh.
3173 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
3174 AUTOHEADER=autoheader
3175 echo "$as_me:$LINENO: result: found" >&5
3176 echo "${ECHO_T}found" >&6
3177 else
3178 AUTOHEADER="$missing_dir/missing autoheader"
3179 echo "$as_me:$LINENO: result: missing" >&5
3180 echo "${ECHO_T}missing" >&6
3183 echo "$as_me:$LINENO: checking for working makeinfo" >&5
3184 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
3185 # Run test in a subshell; some versions of sh will print an error if
3186 # an executable is not found, even if stderr is redirected.
3187 # Redirect stdin to placate older versions of autoconf. Sigh.
3188 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
3189 MAKEINFO=makeinfo
3190 echo "$as_me:$LINENO: result: found" >&5
3191 echo "${ECHO_T}found" >&6
3192 else
3193 MAKEINFO="$missing_dir/missing makeinfo"
3194 echo "$as_me:$LINENO: result: missing" >&5
3195 echo "${ECHO_T}missing" >&6
3200 if test -n "$ac_tool_prefix"; then
3201 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3202 set dummy ${ac_tool_prefix}as; ac_word=$2
3203 echo "$as_me:$LINENO: checking for $ac_word" >&5
3204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3205 if test "${ac_cv_prog_AS+set}" = set; then
3206 echo $ECHO_N "(cached) $ECHO_C" >&6
3207 else
3208 if test -n "$AS"; then
3209 ac_cv_prog_AS="$AS" # Let the user override the test.
3210 else
3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212 for as_dir in $PATH
3214 IFS=$as_save_IFS
3215 test -z "$as_dir" && as_dir=.
3216 for ac_exec_ext in '' $ac_executable_extensions; do
3217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3218 ac_cv_prog_AS="${ac_tool_prefix}as"
3219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3220 break 2
3222 done
3223 done
3227 AS=$ac_cv_prog_AS
3228 if test -n "$AS"; then
3229 echo "$as_me:$LINENO: result: $AS" >&5
3230 echo "${ECHO_T}$AS" >&6
3231 else
3232 echo "$as_me:$LINENO: result: no" >&5
3233 echo "${ECHO_T}no" >&6
3237 if test -z "$ac_cv_prog_AS"; then
3238 ac_ct_AS=$AS
3239 # Extract the first word of "as", so it can be a program name with args.
3240 set dummy as; ac_word=$2
3241 echo "$as_me:$LINENO: checking for $ac_word" >&5
3242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3243 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3244 echo $ECHO_N "(cached) $ECHO_C" >&6
3245 else
3246 if test -n "$ac_ct_AS"; then
3247 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3248 else
3249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3250 for as_dir in $PATH
3252 IFS=$as_save_IFS
3253 test -z "$as_dir" && as_dir=.
3254 for ac_exec_ext in '' $ac_executable_extensions; do
3255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3256 ac_cv_prog_ac_ct_AS="as"
3257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3258 break 2
3260 done
3261 done
3265 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3266 if test -n "$ac_ct_AS"; then
3267 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3268 echo "${ECHO_T}$ac_ct_AS" >&6
3269 else
3270 echo "$as_me:$LINENO: result: no" >&5
3271 echo "${ECHO_T}no" >&6
3274 AS=$ac_ct_AS
3275 else
3276 AS="$ac_cv_prog_AS"
3279 if test -n "$ac_tool_prefix"; then
3280 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3281 set dummy ${ac_tool_prefix}ar; ac_word=$2
3282 echo "$as_me:$LINENO: checking for $ac_word" >&5
3283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3284 if test "${ac_cv_prog_AR+set}" = set; then
3285 echo $ECHO_N "(cached) $ECHO_C" >&6
3286 else
3287 if test -n "$AR"; then
3288 ac_cv_prog_AR="$AR" # Let the user override the test.
3289 else
3290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291 for as_dir in $PATH
3293 IFS=$as_save_IFS
3294 test -z "$as_dir" && as_dir=.
3295 for ac_exec_ext in '' $ac_executable_extensions; do
3296 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3297 ac_cv_prog_AR="${ac_tool_prefix}ar"
3298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3299 break 2
3301 done
3302 done
3306 AR=$ac_cv_prog_AR
3307 if test -n "$AR"; then
3308 echo "$as_me:$LINENO: result: $AR" >&5
3309 echo "${ECHO_T}$AR" >&6
3310 else
3311 echo "$as_me:$LINENO: result: no" >&5
3312 echo "${ECHO_T}no" >&6
3316 if test -z "$ac_cv_prog_AR"; then
3317 ac_ct_AR=$AR
3318 # Extract the first word of "ar", so it can be a program name with args.
3319 set dummy ar; ac_word=$2
3320 echo "$as_me:$LINENO: checking for $ac_word" >&5
3321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3322 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3323 echo $ECHO_N "(cached) $ECHO_C" >&6
3324 else
3325 if test -n "$ac_ct_AR"; then
3326 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3327 else
3328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3329 for as_dir in $PATH
3331 IFS=$as_save_IFS
3332 test -z "$as_dir" && as_dir=.
3333 for ac_exec_ext in '' $ac_executable_extensions; do
3334 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3335 ac_cv_prog_ac_ct_AR="ar"
3336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3337 break 2
3339 done
3340 done
3344 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3345 if test -n "$ac_ct_AR"; then
3346 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3347 echo "${ECHO_T}$ac_ct_AR" >&6
3348 else
3349 echo "$as_me:$LINENO: result: no" >&5
3350 echo "${ECHO_T}no" >&6
3353 AR=$ac_ct_AR
3354 else
3355 AR="$ac_cv_prog_AR"
3358 if test -n "$ac_tool_prefix"; then
3359 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3360 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3361 echo "$as_me:$LINENO: checking for $ac_word" >&5
3362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3363 if test "${ac_cv_prog_RANLIB+set}" = set; then
3364 echo $ECHO_N "(cached) $ECHO_C" >&6
3365 else
3366 if test -n "$RANLIB"; then
3367 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3368 else
3369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3370 for as_dir in $PATH
3372 IFS=$as_save_IFS
3373 test -z "$as_dir" && as_dir=.
3374 for ac_exec_ext in '' $ac_executable_extensions; do
3375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3376 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3378 break 2
3380 done
3381 done
3385 RANLIB=$ac_cv_prog_RANLIB
3386 if test -n "$RANLIB"; then
3387 echo "$as_me:$LINENO: result: $RANLIB" >&5
3388 echo "${ECHO_T}$RANLIB" >&6
3389 else
3390 echo "$as_me:$LINENO: result: no" >&5
3391 echo "${ECHO_T}no" >&6
3395 if test -z "$ac_cv_prog_RANLIB"; then
3396 ac_ct_RANLIB=$RANLIB
3397 # Extract the first word of "ranlib", so it can be a program name with args.
3398 set dummy ranlib; ac_word=$2
3399 echo "$as_me:$LINENO: checking for $ac_word" >&5
3400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3401 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3402 echo $ECHO_N "(cached) $ECHO_C" >&6
3403 else
3404 if test -n "$ac_ct_RANLIB"; then
3405 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3406 else
3407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3408 for as_dir in $PATH
3410 IFS=$as_save_IFS
3411 test -z "$as_dir" && as_dir=.
3412 for ac_exec_ext in '' $ac_executable_extensions; do
3413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3414 ac_cv_prog_ac_ct_RANLIB="ranlib"
3415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3416 break 2
3418 done
3419 done
3421 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3424 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3425 if test -n "$ac_ct_RANLIB"; then
3426 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3427 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3428 else
3429 echo "$as_me:$LINENO: result: no" >&5
3430 echo "${ECHO_T}no" >&6
3433 RANLIB=$ac_ct_RANLIB
3434 else
3435 RANLIB="$ac_cv_prog_RANLIB"
3439 # Find a good install program. We prefer a C program (faster),
3440 # so one script is as good as another. But avoid the broken or
3441 # incompatible versions:
3442 # SysV /etc/install, /usr/sbin/install
3443 # SunOS /usr/etc/install
3444 # IRIX /sbin/install
3445 # AIX /bin/install
3446 # AmigaOS /C/install, which installs bootblocks on floppy discs
3447 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3448 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3449 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3450 # OS/2's system install, which has a completely different semantic
3451 # ./install, which can be erroneously created by make from ./install.sh.
3452 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3453 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3454 if test -z "$INSTALL"; then
3455 if test "${ac_cv_path_install+set}" = set; then
3456 echo $ECHO_N "(cached) $ECHO_C" >&6
3457 else
3458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3459 for as_dir in $PATH
3461 IFS=$as_save_IFS
3462 test -z "$as_dir" && as_dir=.
3463 # Account for people who put trailing slashes in PATH elements.
3464 case $as_dir/ in
3465 ./ | .// | /cC/* | \
3466 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3467 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3468 /usr/ucb/* ) ;;
3470 # OSF1 and SCO ODT 3.0 have their own names for install.
3471 # Don't use installbsd from OSF since it installs stuff as root
3472 # by default.
3473 for ac_prog in ginstall scoinst install; do
3474 for ac_exec_ext in '' $ac_executable_extensions; do
3475 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3476 if test $ac_prog = install &&
3477 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3478 # AIX install. It has an incompatible calling convention.
3480 elif test $ac_prog = install &&
3481 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3482 # program-specific install script used by HP pwplus--don't use.
3484 else
3485 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3486 break 3
3489 done
3490 done
3492 esac
3493 done
3497 if test "${ac_cv_path_install+set}" = set; then
3498 INSTALL=$ac_cv_path_install
3499 else
3500 # As a last resort, use the slow shell script. We don't cache a
3501 # path for INSTALL within a source directory, because that will
3502 # break other packages using the cache if that directory is
3503 # removed, or if the path is relative.
3504 INSTALL=$ac_install_sh
3507 echo "$as_me:$LINENO: result: $INSTALL" >&5
3508 echo "${ECHO_T}$INSTALL" >&6
3510 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3511 # It thinks the first close brace ends the variable substitution.
3512 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3514 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3516 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3519 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3520 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3521 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3522 if test "${enable_maintainer_mode+set}" = set; then
3523 enableval="$enable_maintainer_mode"
3524 USE_MAINTAINER_MODE=$enableval
3525 else
3526 USE_MAINTAINER_MODE=no
3528 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3529 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3532 if test $USE_MAINTAINER_MODE = yes; then
3533 MAINTAINER_MODE_TRUE=
3534 MAINTAINER_MODE_FALSE='#'
3535 else
3536 MAINTAINER_MODE_TRUE='#'
3537 MAINTAINER_MODE_FALSE=
3539 MAINT=$MAINTAINER_MODE_TRUE
3545 # configure.host sets the following important variables
3546 # libgcj_cflags - host specific C compiler flags
3547 # libgcj_cxxflags - host specific C++ compiler flags
3548 # libgcj_javaflags - host specific Java compiler flags
3550 libgcj_cflags=
3551 libgcj_cxxflags=
3552 libgcj_javaflags=
3554 . ${srcdir}/configure.host
3556 LIBGCJ_CFLAGS="${libgcj_cflags}"
3557 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
3558 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
3564 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
3566 ac_config_commands="$ac_config_commands default-1"
3569 # Only use libltdl for non-newlib builds.
3570 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
3571 case $enable_ltdl_convenience in
3572 no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
3573 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
3574 { (exit 1); exit 1; }; } ;;
3575 "") enable_ltdl_convenience=yes
3576 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3577 esac
3578 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
3579 INCLTDL='-I${top_srcdir}/''libltdl'
3582 DIRLTDL=libltdl
3584 cat >>confdefs.h <<\_ACEOF
3585 #define USE_LTDL 1
3586 _ACEOF
3588 # Sigh. Libtool's macro doesn't do the right thing.
3589 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
3590 # FIXME: this is a hack.
3591 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
3592 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
3597 # Check whether --enable-shared or --disable-shared was given.
3598 if test "${enable_shared+set}" = set; then
3599 enableval="$enable_shared"
3600 p=${PACKAGE-default}
3601 case $enableval in
3602 yes) enable_shared=yes ;;
3603 no) enable_shared=no ;;
3605 enable_shared=no
3606 # Look at the argument we got. We use all the common list separators.
3607 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3608 for pkg in $enableval; do
3609 if test "X$pkg" = "X$p"; then
3610 enable_shared=yes
3612 done
3613 IFS="$ac_save_ifs"
3615 esac
3616 else
3617 enable_shared=yes
3619 # Check whether --enable-static or --disable-static was given.
3620 if test "${enable_static+set}" = set; then
3621 enableval="$enable_static"
3622 p=${PACKAGE-default}
3623 case $enableval in
3624 yes) enable_static=yes ;;
3625 no) enable_static=no ;;
3627 enable_static=no
3628 # Look at the argument we got. We use all the common list separators.
3629 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3630 for pkg in $enableval; do
3631 if test "X$pkg" = "X$p"; then
3632 enable_static=yes
3634 done
3635 IFS="$ac_save_ifs"
3637 esac
3638 else
3639 enable_static=yes
3641 # Check whether --enable-fast-install or --disable-fast-install was given.
3642 if test "${enable_fast_install+set}" = set; then
3643 enableval="$enable_fast_install"
3644 p=${PACKAGE-default}
3645 case $enableval in
3646 yes) enable_fast_install=yes ;;
3647 no) enable_fast_install=no ;;
3649 enable_fast_install=no
3650 # Look at the argument we got. We use all the common list separators.
3651 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3652 for pkg in $enableval; do
3653 if test "X$pkg" = "X$p"; then
3654 enable_fast_install=yes
3656 done
3657 IFS="$ac_save_ifs"
3659 esac
3660 else
3661 enable_fast_install=yes
3664 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3665 if test "${with_gnu_ld+set}" = set; then
3666 withval="$with_gnu_ld"
3667 test "$withval" = no || with_gnu_ld=yes
3668 else
3669 with_gnu_ld=no
3671 ac_prog=ld
3672 if test "$GCC" = yes; then
3673 # Check if gcc -print-prog-name=ld gives a path.
3674 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3675 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3676 case $host in
3677 *-*-mingw*)
3678 # gcc leaves a trailing carriage return which upsets mingw
3679 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3681 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3682 esac
3683 case $ac_prog in
3684 # Accept absolute paths.
3685 [\\/]* | [A-Za-z]:[\\/]*)
3686 re_direlt='/[^/][^/]*/\.\./'
3687 # Canonicalize the path of ld
3688 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3689 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3690 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3691 done
3692 test -z "$LD" && LD="$ac_prog"
3695 # If it fails, then pretend we aren't using GCC.
3696 ac_prog=ld
3699 # If it is relative, then search for the first ld in PATH.
3700 with_gnu_ld=unknown
3702 esac
3703 elif test "$with_gnu_ld" = yes; then
3704 echo "$as_me:$LINENO: checking for GNU ld" >&5
3705 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3706 else
3707 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3708 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3710 if test "${lt_cv_path_LD+set}" = set; then
3711 echo $ECHO_N "(cached) $ECHO_C" >&6
3712 else
3713 if test -z "$LD"; then
3714 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3715 for ac_dir in $PATH; do
3716 test -z "$ac_dir" && ac_dir=.
3717 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3718 lt_cv_path_LD="$ac_dir/$ac_prog"
3719 # Check to see if the program is GNU ld. I'd rather use --version,
3720 # but apparently some GNU ld's only accept -v.
3721 # Break only if it was the GNU/non-GNU ld that we prefer.
3722 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3723 test "$with_gnu_ld" != no && break
3724 else
3725 test "$with_gnu_ld" != yes && break
3728 done
3729 IFS="$ac_save_ifs"
3730 else
3731 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3735 LD="$lt_cv_path_LD"
3736 if test -n "$LD"; then
3737 echo "$as_me:$LINENO: result: $LD" >&5
3738 echo "${ECHO_T}$LD" >&6
3739 else
3740 echo "$as_me:$LINENO: result: no" >&5
3741 echo "${ECHO_T}no" >&6
3743 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3744 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3745 { (exit 1); exit 1; }; }
3746 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3747 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3748 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3750 else
3751 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3752 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3753 lt_cv_prog_gnu_ld=yes
3754 else
3755 lt_cv_prog_gnu_ld=no
3758 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3759 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3760 with_gnu_ld=$lt_cv_prog_gnu_ld
3763 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3764 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3765 if test "${lt_cv_ld_reload_flag+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3767 else
3768 lt_cv_ld_reload_flag='-r'
3770 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3771 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3772 reload_flag=$lt_cv_ld_reload_flag
3773 test -n "$reload_flag" && reload_flag=" $reload_flag"
3775 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3776 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3777 if test "${lt_cv_path_NM+set}" = set; then
3778 echo $ECHO_N "(cached) $ECHO_C" >&6
3779 else
3780 if test -n "$NM"; then
3781 # Let the user override the test.
3782 lt_cv_path_NM="$NM"
3783 else
3784 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3785 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3786 test -z "$ac_dir" && ac_dir=.
3787 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3788 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3789 # Check to see if the nm accepts a BSD-compat flag.
3790 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3791 # nm: unknown option "B" ignored
3792 # Tru64's nm complains that /dev/null is an invalid object file
3793 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3794 lt_cv_path_NM="$tmp_nm -B"
3795 break
3796 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3797 lt_cv_path_NM="$tmp_nm -p"
3798 break
3799 else
3800 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3801 continue # so that we can try to find one that supports BSD flags
3804 done
3805 IFS="$ac_save_ifs"
3806 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3810 NM="$lt_cv_path_NM"
3811 echo "$as_me:$LINENO: result: $NM" >&5
3812 echo "${ECHO_T}$NM" >&6
3814 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3815 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3816 if test "${lt_cv_deplibs_check_method+set}" = set; then
3817 echo $ECHO_N "(cached) $ECHO_C" >&6
3818 else
3819 lt_cv_file_magic_cmd='$MAGIC_CMD'
3820 lt_cv_file_magic_test_file=
3821 lt_cv_deplibs_check_method='unknown'
3822 # Need to set the preceding variable on all platforms that support
3823 # interlibrary dependencies.
3824 # 'none' -- dependencies not supported.
3825 # `unknown' -- same as none, but documents that we really don't know.
3826 # 'pass_all' -- all dependencies passed with no checks.
3827 # 'test_compile' -- check by making test program.
3828 # 'file_magic [regex]' -- check by looking for files in library path
3829 # which responds to the $file_magic_cmd with a given egrep regex.
3830 # If you have `file' or equivalent on your system and you're not sure
3831 # whether `pass_all' will *always* work, you probably want this one.
3833 case $host_os in
3834 aix*)
3835 lt_cv_deplibs_check_method=pass_all
3838 beos*)
3839 lt_cv_deplibs_check_method=pass_all
3842 bsdi4*)
3843 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3844 lt_cv_file_magic_cmd='/usr/bin/file -L'
3845 lt_cv_file_magic_test_file=/shlib/libc.so
3848 cygwin* | mingw* |pw32*)
3849 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3850 lt_cv_file_magic_cmd='$OBJDUMP -f'
3853 darwin* | rhapsody*)
3854 # this will be overwritten by pass_all, but leave it in just in case
3855 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3856 lt_cv_file_magic_cmd='/usr/bin/file -L'
3857 case "$host_os" in
3858 rhapsody* | darwin1.012)
3859 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3861 *) # Darwin 1.3 on
3862 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3864 esac
3865 lt_cv_deplibs_check_method=pass_all
3868 freebsd* | kfreebsd*-gnu)
3869 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3870 case $host_cpu in
3871 i*86 )
3872 # Not sure whether the presence of OpenBSD here was a mistake.
3873 # Let's accept both of them until this is cleared up.
3874 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3875 lt_cv_file_magic_cmd=/usr/bin/file
3876 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3878 esac
3879 else
3880 lt_cv_deplibs_check_method=pass_all
3884 gnu*)
3885 lt_cv_deplibs_check_method=pass_all
3888 hpux10.20*|hpux11*)
3889 case $host_cpu in
3890 hppa*)
3891 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3892 lt_cv_file_magic_cmd=/usr/bin/file
3893 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3895 ia64*)
3896 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3897 lt_cv_file_magic_cmd=/usr/bin/file
3898 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3900 esac
3903 irix5* | irix6*)
3904 case $host_os in
3905 irix5*)
3906 # this will be overridden with pass_all, but let us keep it just in case
3907 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3910 case $LD in
3911 *-32|*"-32 ") libmagic=32-bit;;
3912 *-n32|*"-n32 ") libmagic=N32;;
3913 *-64|*"-64 ") libmagic=64-bit;;
3914 *) libmagic=never-match;;
3915 esac
3916 # this will be overridden with pass_all, but let us keep it just in case
3917 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3919 esac
3920 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3921 lt_cv_deplibs_check_method=pass_all
3924 # This must be Linux ELF.
3925 linux-gnu*)
3926 case $host_cpu in
3927 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* )
3928 lt_cv_deplibs_check_method=pass_all ;;
3930 # glibc up to 2.1.1 does not perform some relocations on ARM
3931 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3932 esac
3933 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3936 netbsd* | knetbsd*-gnu)
3937 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3938 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3939 else
3940 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3944 newsos6)
3945 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3946 lt_cv_file_magic_cmd=/usr/bin/file
3947 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3950 osf3* | osf4* | osf5*)
3951 # this will be overridden with pass_all, but let us keep it just in case
3952 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3953 lt_cv_file_magic_test_file=/shlib/libc.so
3954 lt_cv_deplibs_check_method=pass_all
3957 sco3.2v5*)
3958 lt_cv_deplibs_check_method=pass_all
3961 solaris*)
3962 lt_cv_deplibs_check_method=pass_all
3963 lt_cv_file_magic_test_file=/lib/libc.so
3966 sysv5uw[78]* | sysv4*uw2*)
3967 lt_cv_deplibs_check_method=pass_all
3970 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3971 case $host_vendor in
3972 ncr)
3973 lt_cv_deplibs_check_method=pass_all
3975 motorola)
3976 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]'
3977 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3979 esac
3981 esac
3984 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3985 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3986 file_magic_cmd=$lt_cv_file_magic_cmd
3987 deplibs_check_method=$lt_cv_deplibs_check_method
3992 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3994 # Only perform the check for file, if the check method requires it
3995 case $deplibs_check_method in
3996 file_magic*)
3997 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3998 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3999 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4000 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4001 echo $ECHO_N "(cached) $ECHO_C" >&6
4002 else
4003 case $MAGIC_CMD in
4005 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4007 ?:/*)
4008 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4011 ac_save_MAGIC_CMD="$MAGIC_CMD"
4012 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4013 ac_dummy="/usr/bin:$PATH"
4014 for ac_dir in $ac_dummy; do
4015 test -z "$ac_dir" && ac_dir=.
4016 if test -f $ac_dir/${ac_tool_prefix}file; then
4017 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4018 if test -n "$file_magic_test_file"; then
4019 case $deplibs_check_method in
4020 "file_magic "*)
4021 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4022 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4023 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4024 egrep "$file_magic_regex" > /dev/null; then
4026 else
4027 cat <<EOF 1>&2
4029 *** Warning: the command libtool uses to detect shared libraries,
4030 *** $file_magic_cmd, produces output that libtool cannot recognize.
4031 *** The result is that libtool may fail to recognize shared libraries
4032 *** as such. This will affect the creation of libtool libraries that
4033 *** depend on shared libraries, but programs linked with such libtool
4034 *** libraries will work regardless of this problem. Nevertheless, you
4035 *** may want to report the problem to your system manager and/or to
4036 *** bug-libtool@gnu.org
4039 fi ;;
4040 esac
4042 break
4044 done
4045 IFS="$ac_save_ifs"
4046 MAGIC_CMD="$ac_save_MAGIC_CMD"
4048 esac
4051 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4052 if test -n "$MAGIC_CMD"; then
4053 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4054 echo "${ECHO_T}$MAGIC_CMD" >&6
4055 else
4056 echo "$as_me:$LINENO: result: no" >&5
4057 echo "${ECHO_T}no" >&6
4060 if test -z "$lt_cv_path_MAGIC_CMD"; then
4061 if test -n "$ac_tool_prefix"; then
4062 echo "$as_me:$LINENO: checking for file" >&5
4063 echo $ECHO_N "checking for file... $ECHO_C" >&6
4064 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4066 else
4067 case $MAGIC_CMD in
4069 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4071 ?:/*)
4072 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4075 ac_save_MAGIC_CMD="$MAGIC_CMD"
4076 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4077 ac_dummy="/usr/bin:$PATH"
4078 for ac_dir in $ac_dummy; do
4079 test -z "$ac_dir" && ac_dir=.
4080 if test -f $ac_dir/file; then
4081 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4082 if test -n "$file_magic_test_file"; then
4083 case $deplibs_check_method in
4084 "file_magic "*)
4085 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4086 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4087 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4088 egrep "$file_magic_regex" > /dev/null; then
4090 else
4091 cat <<EOF 1>&2
4093 *** Warning: the command libtool uses to detect shared libraries,
4094 *** $file_magic_cmd, produces output that libtool cannot recognize.
4095 *** The result is that libtool may fail to recognize shared libraries
4096 *** as such. This will affect the creation of libtool libraries that
4097 *** depend on shared libraries, but programs linked with such libtool
4098 *** libraries will work regardless of this problem. Nevertheless, you
4099 *** may want to report the problem to your system manager and/or to
4100 *** bug-libtool@gnu.org
4103 fi ;;
4104 esac
4106 break
4108 done
4109 IFS="$ac_save_ifs"
4110 MAGIC_CMD="$ac_save_MAGIC_CMD"
4112 esac
4115 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4116 if test -n "$MAGIC_CMD"; then
4117 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4118 echo "${ECHO_T}$MAGIC_CMD" >&6
4119 else
4120 echo "$as_me:$LINENO: result: no" >&5
4121 echo "${ECHO_T}no" >&6
4124 else
4125 MAGIC_CMD=:
4131 esac
4133 if test -n "$ac_tool_prefix"; then
4134 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4135 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4136 echo "$as_me:$LINENO: checking for $ac_word" >&5
4137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4138 if test "${ac_cv_prog_RANLIB+set}" = set; then
4139 echo $ECHO_N "(cached) $ECHO_C" >&6
4140 else
4141 if test -n "$RANLIB"; then
4142 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4143 else
4144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4145 for as_dir in $PATH
4147 IFS=$as_save_IFS
4148 test -z "$as_dir" && as_dir=.
4149 for ac_exec_ext in '' $ac_executable_extensions; do
4150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4151 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4153 break 2
4155 done
4156 done
4160 RANLIB=$ac_cv_prog_RANLIB
4161 if test -n "$RANLIB"; then
4162 echo "$as_me:$LINENO: result: $RANLIB" >&5
4163 echo "${ECHO_T}$RANLIB" >&6
4164 else
4165 echo "$as_me:$LINENO: result: no" >&5
4166 echo "${ECHO_T}no" >&6
4170 if test -z "$ac_cv_prog_RANLIB"; then
4171 ac_ct_RANLIB=$RANLIB
4172 # Extract the first word of "ranlib", so it can be a program name with args.
4173 set dummy ranlib; ac_word=$2
4174 echo "$as_me:$LINENO: checking for $ac_word" >&5
4175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4176 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4177 echo $ECHO_N "(cached) $ECHO_C" >&6
4178 else
4179 if test -n "$ac_ct_RANLIB"; then
4180 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4181 else
4182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183 for as_dir in $PATH
4185 IFS=$as_save_IFS
4186 test -z "$as_dir" && as_dir=.
4187 for ac_exec_ext in '' $ac_executable_extensions; do
4188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4189 ac_cv_prog_ac_ct_RANLIB="ranlib"
4190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4191 break 2
4193 done
4194 done
4196 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4199 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4200 if test -n "$ac_ct_RANLIB"; then
4201 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4202 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4203 else
4204 echo "$as_me:$LINENO: result: no" >&5
4205 echo "${ECHO_T}no" >&6
4208 RANLIB=$ac_ct_RANLIB
4209 else
4210 RANLIB="$ac_cv_prog_RANLIB"
4213 if test -n "$ac_tool_prefix"; then
4214 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4215 set dummy ${ac_tool_prefix}strip; ac_word=$2
4216 echo "$as_me:$LINENO: checking for $ac_word" >&5
4217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4218 if test "${ac_cv_prog_STRIP+set}" = set; then
4219 echo $ECHO_N "(cached) $ECHO_C" >&6
4220 else
4221 if test -n "$STRIP"; then
4222 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4223 else
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225 for as_dir in $PATH
4227 IFS=$as_save_IFS
4228 test -z "$as_dir" && as_dir=.
4229 for ac_exec_ext in '' $ac_executable_extensions; do
4230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4231 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4233 break 2
4235 done
4236 done
4240 STRIP=$ac_cv_prog_STRIP
4241 if test -n "$STRIP"; then
4242 echo "$as_me:$LINENO: result: $STRIP" >&5
4243 echo "${ECHO_T}$STRIP" >&6
4244 else
4245 echo "$as_me:$LINENO: result: no" >&5
4246 echo "${ECHO_T}no" >&6
4250 if test -z "$ac_cv_prog_STRIP"; then
4251 ac_ct_STRIP=$STRIP
4252 # Extract the first word of "strip", so it can be a program name with args.
4253 set dummy strip; ac_word=$2
4254 echo "$as_me:$LINENO: checking for $ac_word" >&5
4255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4256 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4257 echo $ECHO_N "(cached) $ECHO_C" >&6
4258 else
4259 if test -n "$ac_ct_STRIP"; then
4260 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4261 else
4262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263 for as_dir in $PATH
4265 IFS=$as_save_IFS
4266 test -z "$as_dir" && as_dir=.
4267 for ac_exec_ext in '' $ac_executable_extensions; do
4268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4269 ac_cv_prog_ac_ct_STRIP="strip"
4270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4271 break 2
4273 done
4274 done
4276 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4279 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4280 if test -n "$ac_ct_STRIP"; then
4281 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4282 echo "${ECHO_T}$ac_ct_STRIP" >&6
4283 else
4284 echo "$as_me:$LINENO: result: no" >&5
4285 echo "${ECHO_T}no" >&6
4288 STRIP=$ac_ct_STRIP
4289 else
4290 STRIP="$ac_cv_prog_STRIP"
4294 # Check for any special flags to pass to ltconfig.
4295 libtool_flags="--cache-file=$cache_file"
4296 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4297 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4298 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4299 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4300 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4303 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4304 if test "${enable_libtool_lock+set}" = set; then
4305 enableval="$enable_libtool_lock"
4308 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4309 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4312 # Check whether --with-pic or --without-pic was given.
4313 if test "${with_pic+set}" = set; then
4314 withval="$with_pic"
4315 pic_mode="$withval"
4316 else
4317 pic_mode=default
4319 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4320 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4322 # Some flags need to be propagated to the compiler or linker for good
4323 # libtool support.
4324 case $host in
4325 *-*-irix6*)
4326 # Find out which ABI we are using.
4327 echo '#line 4327 "configure"' > conftest.$ac_ext
4328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4329 (eval $ac_compile) 2>&5
4330 ac_status=$?
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); }; then
4333 if test "$lt_cv_prog_gnu_ld" = yes; then
4334 case `/usr/bin/file conftest.$ac_objext` in
4335 *32-bit*)
4336 LD="${LD-ld} -melf32bsmip"
4338 *N32*)
4339 LD="${LD-ld} -melf32bmipn32"
4341 *64-bit*)
4342 LD="${LD-ld} -melf64bmip"
4344 esac
4345 else
4346 case `/usr/bin/file conftest.$ac_objext` in
4347 *32-bit*)
4348 LD="${LD-ld} -32"
4350 *N32*)
4351 LD="${LD-ld} -n32"
4353 *64-bit*)
4354 LD="${LD-ld} -64"
4356 esac
4359 rm -rf conftest*
4362 ia64-*-hpux*)
4363 # Find out which ABI we are using.
4364 echo 'int i;' > conftest.$ac_ext
4365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4366 (eval $ac_compile) 2>&5
4367 ac_status=$?
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); }; then
4370 case "`/usr/bin/file conftest.o`" in
4371 *ELF-32*)
4372 HPUX_IA64_MODE="32"
4374 *ELF-64*)
4375 HPUX_IA64_MODE="64"
4377 esac
4379 rm -rf conftest*
4382 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4383 # Find out which ABI we are using.
4384 echo 'int i;' > conftest.$ac_ext
4385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4386 (eval $ac_compile) 2>&5
4387 ac_status=$?
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); }; then
4390 case "`/usr/bin/file conftest.o`" in
4391 *32-bit*)
4392 case $host in
4393 x86_64-*linux*)
4394 LD="${LD-ld} -m elf_i386"
4396 ppc64-*linux*|powerpc64-*linux*)
4397 LD="${LD-ld} -m elf32ppclinux"
4399 s390x-*linux*)
4400 LD="${LD-ld} -m elf_s390"
4402 sparc64-*linux*)
4403 LD="${LD-ld} -m elf32_sparc"
4405 esac
4407 *64-bit*)
4408 case $host in
4409 x86_64-*linux*)
4410 LD="${LD-ld} -m elf_x86_64"
4412 ppc*-*linux*|powerpc*-*linux*)
4413 LD="${LD-ld} -m elf64ppc"
4415 s390*-*linux*)
4416 LD="${LD-ld} -m elf64_s390"
4418 sparc*-*linux*)
4419 LD="${LD-ld} -m elf64_sparc"
4421 esac
4423 esac
4425 rm -rf conftest*
4428 *-*-sco3.2v5*)
4429 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4430 SAVE_CFLAGS="$CFLAGS"
4431 CFLAGS="$CFLAGS -belf"
4432 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4433 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4434 if test "${lt_cv_cc_needs_belf+set}" = set; then
4435 echo $ECHO_N "(cached) $ECHO_C" >&6
4436 else
4439 ac_ext=c
4440 ac_cpp='$CPP $CPPFLAGS'
4441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4445 if test x$gcc_no_link = xyes; then
4446 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4447 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4448 { (exit 1); exit 1; }; }
4450 cat >conftest.$ac_ext <<_ACEOF
4451 /* confdefs.h. */
4452 _ACEOF
4453 cat confdefs.h >>conftest.$ac_ext
4454 cat >>conftest.$ac_ext <<_ACEOF
4455 /* end confdefs.h. */
4458 main ()
4462 return 0;
4464 _ACEOF
4465 rm -f conftest.$ac_objext conftest$ac_exeext
4466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4467 (eval $ac_link) 2>conftest.er1
4468 ac_status=$?
4469 grep -v '^ *+' conftest.er1 >conftest.err
4470 rm -f conftest.er1
4471 cat conftest.err >&5
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); } &&
4474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4476 (eval $ac_try) 2>&5
4477 ac_status=$?
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); }; } &&
4480 { ac_try='test -s conftest$ac_exeext'
4481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4482 (eval $ac_try) 2>&5
4483 ac_status=$?
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); }; }; then
4486 lt_cv_cc_needs_belf=yes
4487 else
4488 echo "$as_me: failed program was:" >&5
4489 sed 's/^/| /' conftest.$ac_ext >&5
4491 lt_cv_cc_needs_belf=no
4493 rm -f conftest.err conftest.$ac_objext \
4494 conftest$ac_exeext conftest.$ac_ext
4495 ac_ext=c
4496 ac_cpp='$CPP $CPPFLAGS'
4497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4502 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4503 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4504 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4505 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4506 CFLAGS="$SAVE_CFLAGS"
4511 esac
4514 # Save cache, so that ltconfig can load it
4515 cat >confcache <<\_ACEOF
4516 # This file is a shell script that caches the results of configure
4517 # tests run on this system so they can be shared between configure
4518 # scripts and configure runs, see configure's option --config-cache.
4519 # It is not useful on other systems. If it contains results you don't
4520 # want to keep, you may remove or edit it.
4522 # config.status only pays attention to the cache file if you give it
4523 # the --recheck option to rerun configure.
4525 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4526 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4527 # following values.
4529 _ACEOF
4531 # The following way of writing the cache mishandles newlines in values,
4532 # but we know of no workaround that is simple, portable, and efficient.
4533 # So, don't put newlines in cache variables' values.
4534 # Ultrix sh set writes to stderr and can't be redirected directly,
4535 # and sets the high bit in the cache file unless we assign to the vars.
4537 (set) 2>&1 |
4538 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4539 *ac_space=\ *)
4540 # `set' does not quote correctly, so add quotes (double-quote
4541 # substitution turns \\\\ into \\, and sed turns \\ into \).
4542 sed -n \
4543 "s/'/'\\\\''/g;
4544 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4547 # `set' quotes correctly as required by POSIX, so do not add quotes.
4548 sed -n \
4549 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4551 esac;
4553 sed '
4554 t clear
4555 : clear
4556 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4557 t end
4558 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4559 : end' >>confcache
4560 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4561 if test -w $cache_file; then
4562 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4563 cat confcache >$cache_file
4564 else
4565 echo "not updating unwritable cache $cache_file"
4568 rm -f confcache
4570 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4571 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4572 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4573 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4574 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4575 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4576 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4577 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4578 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4579 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4580 echo "$as_me: error: libtool configure failed" >&2;}
4581 { (exit 1); exit 1; }; }
4583 # Reload cache, that may have been modified by ltconfig
4584 if test -r "$cache_file"; then
4585 # Some versions of bash will fail to source /dev/null (special
4586 # files actually), so we avoid doing that.
4587 if test -f "$cache_file"; then
4588 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4589 echo "$as_me: loading cache $cache_file" >&6;}
4590 case $cache_file in
4591 [\\/]* | ?:[\\/]* ) . $cache_file;;
4592 *) . ./$cache_file;;
4593 esac
4595 else
4596 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4597 echo "$as_me: creating cache $cache_file" >&6;}
4598 >$cache_file
4602 # This can be used to rebuild libtool when needed
4603 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4605 # Always use our own libtool.
4606 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4608 # Redirect the config.log output again, so that the ltconfig log is not
4609 # clobbered by the next message.
4610 exec 5>>./config.log
4612 ac_ext=cc
4613 ac_cpp='$CXXCPP $CPPFLAGS'
4614 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4615 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4616 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4617 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4618 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4619 if test -z "$CXXCPP"; then
4620 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4621 echo $ECHO_N "(cached) $ECHO_C" >&6
4622 else
4623 # Double quotes because CXXCPP needs to be expanded
4624 for CXXCPP in "$CXX -E" "/lib/cpp"
4626 ac_preproc_ok=false
4627 for ac_cxx_preproc_warn_flag in '' yes
4629 # Use a header file that comes with gcc, so configuring glibc
4630 # with a fresh cross-compiler works.
4631 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4632 # <limits.h> exists even on freestanding compilers.
4633 # On the NeXT, cc -E runs the code through the compiler's parser,
4634 # not just through cpp. "Syntax error" is here to catch this case.
4635 cat >conftest.$ac_ext <<_ACEOF
4636 /* confdefs.h. */
4637 _ACEOF
4638 cat confdefs.h >>conftest.$ac_ext
4639 cat >>conftest.$ac_ext <<_ACEOF
4640 /* end confdefs.h. */
4641 #ifdef __STDC__
4642 # include <limits.h>
4643 #else
4644 # include <assert.h>
4645 #endif
4646 Syntax error
4647 _ACEOF
4648 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4649 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4650 ac_status=$?
4651 grep -v '^ *+' conftest.er1 >conftest.err
4652 rm -f conftest.er1
4653 cat conftest.err >&5
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); } >/dev/null; then
4656 if test -s conftest.err; then
4657 ac_cpp_err=$ac_cxx_preproc_warn_flag
4658 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4659 else
4660 ac_cpp_err=
4662 else
4663 ac_cpp_err=yes
4665 if test -z "$ac_cpp_err"; then
4667 else
4668 echo "$as_me: failed program was:" >&5
4669 sed 's/^/| /' conftest.$ac_ext >&5
4671 # Broken: fails on valid input.
4672 continue
4674 rm -f conftest.err conftest.$ac_ext
4676 # OK, works on sane cases. Now check whether non-existent headers
4677 # can be detected and how.
4678 cat >conftest.$ac_ext <<_ACEOF
4679 /* confdefs.h. */
4680 _ACEOF
4681 cat confdefs.h >>conftest.$ac_ext
4682 cat >>conftest.$ac_ext <<_ACEOF
4683 /* end confdefs.h. */
4684 #include <ac_nonexistent.h>
4685 _ACEOF
4686 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4687 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4688 ac_status=$?
4689 grep -v '^ *+' conftest.er1 >conftest.err
4690 rm -f conftest.er1
4691 cat conftest.err >&5
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); } >/dev/null; then
4694 if test -s conftest.err; then
4695 ac_cpp_err=$ac_cxx_preproc_warn_flag
4696 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4697 else
4698 ac_cpp_err=
4700 else
4701 ac_cpp_err=yes
4703 if test -z "$ac_cpp_err"; then
4704 # Broken: success on invalid input.
4705 continue
4706 else
4707 echo "$as_me: failed program was:" >&5
4708 sed 's/^/| /' conftest.$ac_ext >&5
4710 # Passes both tests.
4711 ac_preproc_ok=:
4712 break
4714 rm -f conftest.err conftest.$ac_ext
4716 done
4717 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4718 rm -f conftest.err conftest.$ac_ext
4719 if $ac_preproc_ok; then
4720 break
4723 done
4724 ac_cv_prog_CXXCPP=$CXXCPP
4727 CXXCPP=$ac_cv_prog_CXXCPP
4728 else
4729 ac_cv_prog_CXXCPP=$CXXCPP
4731 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4732 echo "${ECHO_T}$CXXCPP" >&6
4733 ac_preproc_ok=false
4734 for ac_cxx_preproc_warn_flag in '' yes
4736 # Use a header file that comes with gcc, so configuring glibc
4737 # with a fresh cross-compiler works.
4738 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4739 # <limits.h> exists even on freestanding compilers.
4740 # On the NeXT, cc -E runs the code through the compiler's parser,
4741 # not just through cpp. "Syntax error" is here to catch this case.
4742 cat >conftest.$ac_ext <<_ACEOF
4743 /* confdefs.h. */
4744 _ACEOF
4745 cat confdefs.h >>conftest.$ac_ext
4746 cat >>conftest.$ac_ext <<_ACEOF
4747 /* end confdefs.h. */
4748 #ifdef __STDC__
4749 # include <limits.h>
4750 #else
4751 # include <assert.h>
4752 #endif
4753 Syntax error
4754 _ACEOF
4755 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4756 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4757 ac_status=$?
4758 grep -v '^ *+' conftest.er1 >conftest.err
4759 rm -f conftest.er1
4760 cat conftest.err >&5
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); } >/dev/null; then
4763 if test -s conftest.err; then
4764 ac_cpp_err=$ac_cxx_preproc_warn_flag
4765 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4766 else
4767 ac_cpp_err=
4769 else
4770 ac_cpp_err=yes
4772 if test -z "$ac_cpp_err"; then
4774 else
4775 echo "$as_me: failed program was:" >&5
4776 sed 's/^/| /' conftest.$ac_ext >&5
4778 # Broken: fails on valid input.
4779 continue
4781 rm -f conftest.err conftest.$ac_ext
4783 # OK, works on sane cases. Now check whether non-existent headers
4784 # can be detected and how.
4785 cat >conftest.$ac_ext <<_ACEOF
4786 /* confdefs.h. */
4787 _ACEOF
4788 cat confdefs.h >>conftest.$ac_ext
4789 cat >>conftest.$ac_ext <<_ACEOF
4790 /* end confdefs.h. */
4791 #include <ac_nonexistent.h>
4792 _ACEOF
4793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4794 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4795 ac_status=$?
4796 grep -v '^ *+' conftest.er1 >conftest.err
4797 rm -f conftest.er1
4798 cat conftest.err >&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); } >/dev/null; then
4801 if test -s conftest.err; then
4802 ac_cpp_err=$ac_cxx_preproc_warn_flag
4803 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4804 else
4805 ac_cpp_err=
4807 else
4808 ac_cpp_err=yes
4810 if test -z "$ac_cpp_err"; then
4811 # Broken: success on invalid input.
4812 continue
4813 else
4814 echo "$as_me: failed program was:" >&5
4815 sed 's/^/| /' conftest.$ac_ext >&5
4817 # Passes both tests.
4818 ac_preproc_ok=:
4819 break
4821 rm -f conftest.err conftest.$ac_ext
4823 done
4824 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4825 rm -f conftest.err conftest.$ac_ext
4826 if $ac_preproc_ok; then
4828 else
4829 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4830 See \`config.log' for more details." >&5
4831 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4832 See \`config.log' for more details." >&2;}
4833 { (exit 1); exit 1; }; }
4836 ac_ext=c
4837 ac_cpp='$CPP $CPPFLAGS'
4838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4844 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
4845 lt_save_CC="$CC"
4846 lt_save_CFLAGS="$CFLAGS"
4847 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
4848 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4849 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4850 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4851 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4852 deplibs_check_method="$deplibs_check_method" \
4853 file_magic_cmd="$file_magic_cmd" \
4854 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
4855 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
4856 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
4857 echo "$as_me: error: libtool tag configuration failed" >&2;}
4858 { (exit 1); exit 1; }; }
4859 CC="$lt_save_CC"
4860 CFLAGS="$lt_save_CFLAGS"
4862 # Redirect the config.log output again, so that the ltconfig log is not
4863 # clobbered by the next message.
4864 exec 5>>./config.log
4873 subdirs="$subdirs $DIRLTDL"
4876 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
4877 COMPPATH=.
4878 else
4879 COMPPATH=..
4883 # The -no-testsuite modules omit the test subdir.
4886 if test -d $srcdir/testsuite; then
4887 TESTSUBDIR_TRUE=
4888 TESTSUBDIR_FALSE='#'
4889 else
4890 TESTSUBDIR_TRUE='#'
4891 TESTSUBDIR_FALSE=
4894 # Should the runtime set system properties by examining the
4895 # environment variable GCJ_PROPERTIES?
4896 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
4897 if test "${enable_getenv_properties+set}" = set; then
4898 enableval="$enable_getenv_properties"
4902 # Whether GCJ_PROPERTIES is used depends on the target.
4903 if test -z "$enable_getenv_properties"; then
4904 enable_getenv_properties=${enable_getenv_properties_default-yes}
4906 if test "$enable_getenv_properties" = no; then
4908 cat >>confdefs.h <<\_ACEOF
4909 #define DISABLE_GETENV_PROPERTIES 1
4910 _ACEOF
4914 # Whether we should use arguments to main()
4915 if test -z "$enable_main_args"; then
4916 enable_main_args=${enable_main_args_default-yes}
4918 if test "$enable_main_args" = no; then
4920 cat >>confdefs.h <<\_ACEOF
4921 #define DISABLE_MAIN_ARGS 1
4922 _ACEOF
4927 # Should we use hashtable-based synchronization?
4928 # Currently works only for Linux X86/ia64
4929 # Typically faster and more space-efficient
4930 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
4931 if test "${enable_hash_synchronization+set}" = set; then
4932 enableval="$enable_hash_synchronization"
4936 if test -z "$enable_hash_synchronization"; then
4937 enable_hash_synchronization=$enable_hash_synchronization_default
4940 # Do we allow intermodule optimizations (i.e. compiling many files at once)?
4941 # Check whether --enable-libgcj-multifile or --disable-libgcj-multifile was given.
4942 if test "${enable_libgcj_multifile+set}" = set; then
4943 enableval="$enable_libgcj_multifile"
4944 case "${enableval}" in
4945 yes) enable_libgcj_multifile=yes ;;
4946 no) enable_libgcj_multifile=no ;;
4947 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-libgcj-multifile" >&5
4948 echo "$as_me: error: bad value ${enableval} for --enable-libgcj-multifile" >&2;}
4949 { (exit 1); exit 1; }; } ;;
4950 esac
4951 else
4952 enable_libgcj_multifile=no
4956 if test "$enable_libgcj_multifile" = yes; then
4957 ONESTEP_TRUE=
4958 ONESTEP_FALSE='#'
4959 else
4960 ONESTEP_TRUE='#'
4961 ONESTEP_FALSE=
4964 # What is the native OS API for MinGW?
4966 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
4967 if test "${with_win32_nlsapi+set}" = set; then
4968 withval="$with_win32_nlsapi"
4969 case "${withval}" in
4970 ansi) with_win32_nlsapi=ansi ;;
4971 unicows) with_win32_nlsapi=unicows ;;
4972 unicode) with_win32_nlsapi=unicode ;;
4973 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
4974 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
4975 { (exit 1); exit 1; }; } ;;
4976 esac
4977 else
4978 with_win32_nlsapi=ansi
4981 case "${with_win32_nlsapi}" in
4982 unicows | unicode)
4984 cat >>confdefs.h <<\_ACEOF
4985 #define MINGW_LIBGCJ_UNICODE 1
4986 _ACEOF
4989 esac
4991 # configure.host sets slow_pthread_self if the synchronization code should
4992 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
4993 if test "${slow_pthread_self}" = "yes"; then
4995 cat >>confdefs.h <<\_ACEOF
4996 #define SLOW_PTHREAD_SELF 1
4997 _ACEOF
5002 # See if the user has requested runtime debugging.
5003 LIBGCJDEBUG="false"
5005 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
5006 if test "${enable_libgcj_debug+set}" = set; then
5007 enableval="$enable_libgcj_debug"
5008 if test "$enable_libgcj_debug" = yes; then
5010 cat >>confdefs.h <<\_ACEOF
5011 #define DEBUG 1
5012 _ACEOF
5014 LIBGCJDEBUG="true"
5018 # See if the user has the interpreter included.
5019 # Check whether --enable-interpreter or --disable-interpreter was given.
5020 if test "${enable_interpreter+set}" = set; then
5021 enableval="$enable_interpreter"
5022 if test "$enable_interpreter" = yes; then
5023 # This can also be set in configure.host.
5024 libgcj_interpreter=yes
5025 elif test "$enable_interpreter" = no; then
5026 libgcj_interpreter=no
5030 if test "$libgcj_interpreter" = yes; then
5032 cat >>confdefs.h <<\_ACEOF
5033 #define INTERPRETER 1
5034 _ACEOF
5037 INTERPRETER="$libgcj_interpreter"
5040 echo "$as_me:$LINENO: checking for exception model to use" >&5
5041 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
5044 ac_ext=cc
5045 ac_cpp='$CXXCPP $CPPFLAGS'
5046 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5047 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5048 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5050 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
5051 if test "${enable_sjlj_exceptions+set}" = set; then
5052 enableval="$enable_sjlj_exceptions"
5054 else
5055 cat > conftest.$ac_ext << EOF
5056 #line 5056 "configure"
5057 struct S { ~S(); };
5058 void bar();
5059 void foo()
5061 S s;
5062 bar();
5065 old_CXXFLAGS="$CXXFLAGS"
5066 CXXFLAGS=-S
5067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5068 (eval $ac_compile) 2>&5
5069 ac_status=$?
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); }; then
5072 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
5073 enable_sjlj_exceptions=yes
5074 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
5075 enable_sjlj_exceptions=no
5078 CXXFLAGS="$old_CXXFLAGS"
5079 rm -f conftest*
5081 if test x$enable_sjlj_exceptions = xyes; then
5083 cat >>confdefs.h <<\_ACEOF
5084 #define SJLJ_EXCEPTIONS 1
5085 _ACEOF
5087 ac_exception_model_name=sjlj
5088 elif test x$enable_sjlj_exceptions = xno; then
5089 ac_exception_model_name="call frame"
5090 else
5091 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
5092 echo "$as_me: error: unable to detect exception model" >&2;}
5093 { (exit 1); exit 1; }; }
5095 ac_ext=c
5096 ac_cpp='$CPP $CPPFLAGS'
5097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5101 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
5102 echo "${ECHO_T}$ac_exception_model_name" >&6
5104 # If we are non using SJLJ exceptions, and this host does not have support
5105 # for unwinding from a signal handler, enable checked dereferences and divides.
5106 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
5107 CHECKREFSPEC=-fcheck-references
5108 DIVIDESPEC=-fuse-divide-subroutine
5109 EXCEPTIONSPEC=
5112 # See if the user wants to disable java.net. This is the mildly
5113 # ugly way that we admit that target-side configuration sucks.
5114 # Check whether --enable-java-net or --disable-java-net was given.
5115 if test "${enable_java_net+set}" = set; then
5116 enableval="$enable_java_net"
5120 # Whether java.net is built by default can depend on the target.
5121 if test -z "$enable_java_net"; then
5122 enable_java_net=${enable_java_net_default-yes}
5124 if test "$enable_java_net" = no; then
5126 cat >>confdefs.h <<\_ACEOF
5127 #define DISABLE_JAVA_NET 1
5128 _ACEOF
5132 # See if the user wants to configure without libffi. Some
5133 # architectures don't support it, and default values are set in
5134 # configure.host.
5136 # Check whether --with-libffi or --without-libffi was given.
5137 if test "${with_libffi+set}" = set; then
5138 withval="$with_libffi"
5140 else
5141 with_libffi=${with_libffi_default-yes}
5144 LIBFFI=
5145 LIBFFIINCS=
5146 if test "$with_libffi" != no; then
5148 cat >>confdefs.h <<\_ACEOF
5149 #define USE_LIBFFI 1
5150 _ACEOF
5152 LIBFFI=../libffi/libffi_convenience.la
5153 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
5158 # See if the user wants to disable JVMPI support.
5159 # Check whether --enable-jvmpi or --disable-jvmpi was given.
5160 if test "${enable_jvmpi+set}" = set; then
5161 enableval="$enable_jvmpi"
5165 if test "$enable_jvmpi" != no; then
5167 cat >>confdefs.h <<\_ACEOF
5168 #define ENABLE_JVMPI 1
5169 _ACEOF
5173 # If the target is an eCos system, use the appropriate eCos
5174 # I/O routines.
5175 # FIXME: this should not be a local option but a global target
5176 # system; at present there is no eCos target.
5177 TARGET_ECOS=${PROCESS-"no"}
5179 # Check whether --with-ecos or --without-ecos was given.
5180 if test "${with_ecos+set}" = set; then
5181 withval="$with_ecos"
5182 TARGET_ECOS="$with_ecos"
5186 EXTRA_CC_FILES=
5189 PLATFORMOBJS=
5190 case "$TARGET_ECOS" in
5191 no) case "$host" in
5192 *mingw*)
5193 PLATFORM=Win32
5194 PLATFORMNET=Win32
5195 PLATFORMOBJS=win32.lo
5196 PLATFORMH=win32.h
5198 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
5199 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
5200 LD_PROG=`$CC --print-prog-name=ld`
5201 LD_VERSION=`$LD_PROG --version`
5202 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
5203 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
5204 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
5205 LD_OK="ok"
5206 else
5207 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
5208 LD_OK="ok"
5211 if test "x$LD_OK" != x; then
5212 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
5213 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
5214 else
5215 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
5216 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
5217 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
5218 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
5220 cat >>confdefs.h <<\_ACEOF
5221 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
5222 _ACEOF
5227 PLATFORM=Posix
5228 PLATFORMNET=Posix
5229 PLATFORMOBJS=posix.lo
5230 PLATFORMH=posix.h
5232 esac
5235 PLATFORM=Ecos
5236 PLATFORMNET=NoNet
5238 cat >>confdefs.h <<\_ACEOF
5239 #define ECOS 1
5240 _ACEOF
5242 PLATFORMOBJS=posix.lo
5243 PLATFORMH=posix.h
5245 esac
5247 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
5250 ac_ext=c
5251 ac_cpp='$CPP $CPPFLAGS'
5252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5255 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5256 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5257 # On Suns, sometimes $CPP names a directory.
5258 if test -n "$CPP" && test -d "$CPP"; then
5259 CPP=
5261 if test -z "$CPP"; then
5262 if test "${ac_cv_prog_CPP+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5264 else
5265 # Double quotes because CPP needs to be expanded
5266 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5268 ac_preproc_ok=false
5269 for ac_c_preproc_warn_flag in '' yes
5271 # Use a header file that comes with gcc, so configuring glibc
5272 # with a fresh cross-compiler works.
5273 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5274 # <limits.h> exists even on freestanding compilers.
5275 # On the NeXT, cc -E runs the code through the compiler's parser,
5276 # not just through cpp. "Syntax error" is here to catch this case.
5277 cat >conftest.$ac_ext <<_ACEOF
5278 /* confdefs.h. */
5279 _ACEOF
5280 cat confdefs.h >>conftest.$ac_ext
5281 cat >>conftest.$ac_ext <<_ACEOF
5282 /* end confdefs.h. */
5283 #ifdef __STDC__
5284 # include <limits.h>
5285 #else
5286 # include <assert.h>
5287 #endif
5288 Syntax error
5289 _ACEOF
5290 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5291 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5292 ac_status=$?
5293 grep -v '^ *+' conftest.er1 >conftest.err
5294 rm -f conftest.er1
5295 cat conftest.err >&5
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); } >/dev/null; then
5298 if test -s conftest.err; then
5299 ac_cpp_err=$ac_c_preproc_warn_flag
5300 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5301 else
5302 ac_cpp_err=
5304 else
5305 ac_cpp_err=yes
5307 if test -z "$ac_cpp_err"; then
5309 else
5310 echo "$as_me: failed program was:" >&5
5311 sed 's/^/| /' conftest.$ac_ext >&5
5313 # Broken: fails on valid input.
5314 continue
5316 rm -f conftest.err conftest.$ac_ext
5318 # OK, works on sane cases. Now check whether non-existent headers
5319 # can be detected and how.
5320 cat >conftest.$ac_ext <<_ACEOF
5321 /* confdefs.h. */
5322 _ACEOF
5323 cat confdefs.h >>conftest.$ac_ext
5324 cat >>conftest.$ac_ext <<_ACEOF
5325 /* end confdefs.h. */
5326 #include <ac_nonexistent.h>
5327 _ACEOF
5328 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5329 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5330 ac_status=$?
5331 grep -v '^ *+' conftest.er1 >conftest.err
5332 rm -f conftest.er1
5333 cat conftest.err >&5
5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335 (exit $ac_status); } >/dev/null; then
5336 if test -s conftest.err; then
5337 ac_cpp_err=$ac_c_preproc_warn_flag
5338 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5339 else
5340 ac_cpp_err=
5342 else
5343 ac_cpp_err=yes
5345 if test -z "$ac_cpp_err"; then
5346 # Broken: success on invalid input.
5347 continue
5348 else
5349 echo "$as_me: failed program was:" >&5
5350 sed 's/^/| /' conftest.$ac_ext >&5
5352 # Passes both tests.
5353 ac_preproc_ok=:
5354 break
5356 rm -f conftest.err conftest.$ac_ext
5358 done
5359 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5360 rm -f conftest.err conftest.$ac_ext
5361 if $ac_preproc_ok; then
5362 break
5365 done
5366 ac_cv_prog_CPP=$CPP
5369 CPP=$ac_cv_prog_CPP
5370 else
5371 ac_cv_prog_CPP=$CPP
5373 echo "$as_me:$LINENO: result: $CPP" >&5
5374 echo "${ECHO_T}$CPP" >&6
5375 ac_preproc_ok=false
5376 for ac_c_preproc_warn_flag in '' yes
5378 # Use a header file that comes with gcc, so configuring glibc
5379 # with a fresh cross-compiler works.
5380 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5381 # <limits.h> exists even on freestanding compilers.
5382 # On the NeXT, cc -E runs the code through the compiler's parser,
5383 # not just through cpp. "Syntax error" is here to catch this case.
5384 cat >conftest.$ac_ext <<_ACEOF
5385 /* confdefs.h. */
5386 _ACEOF
5387 cat confdefs.h >>conftest.$ac_ext
5388 cat >>conftest.$ac_ext <<_ACEOF
5389 /* end confdefs.h. */
5390 #ifdef __STDC__
5391 # include <limits.h>
5392 #else
5393 # include <assert.h>
5394 #endif
5395 Syntax error
5396 _ACEOF
5397 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5398 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5399 ac_status=$?
5400 grep -v '^ *+' conftest.er1 >conftest.err
5401 rm -f conftest.er1
5402 cat conftest.err >&5
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); } >/dev/null; then
5405 if test -s conftest.err; then
5406 ac_cpp_err=$ac_c_preproc_warn_flag
5407 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5408 else
5409 ac_cpp_err=
5411 else
5412 ac_cpp_err=yes
5414 if test -z "$ac_cpp_err"; then
5416 else
5417 echo "$as_me: failed program was:" >&5
5418 sed 's/^/| /' conftest.$ac_ext >&5
5420 # Broken: fails on valid input.
5421 continue
5423 rm -f conftest.err conftest.$ac_ext
5425 # OK, works on sane cases. Now check whether non-existent headers
5426 # can be detected and how.
5427 cat >conftest.$ac_ext <<_ACEOF
5428 /* confdefs.h. */
5429 _ACEOF
5430 cat confdefs.h >>conftest.$ac_ext
5431 cat >>conftest.$ac_ext <<_ACEOF
5432 /* end confdefs.h. */
5433 #include <ac_nonexistent.h>
5434 _ACEOF
5435 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5437 ac_status=$?
5438 grep -v '^ *+' conftest.er1 >conftest.err
5439 rm -f conftest.er1
5440 cat conftest.err >&5
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); } >/dev/null; then
5443 if test -s conftest.err; then
5444 ac_cpp_err=$ac_c_preproc_warn_flag
5445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5446 else
5447 ac_cpp_err=
5449 else
5450 ac_cpp_err=yes
5452 if test -z "$ac_cpp_err"; then
5453 # Broken: success on invalid input.
5454 continue
5455 else
5456 echo "$as_me: failed program was:" >&5
5457 sed 's/^/| /' conftest.$ac_ext >&5
5459 # Passes both tests.
5460 ac_preproc_ok=:
5461 break
5463 rm -f conftest.err conftest.$ac_ext
5465 done
5466 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5467 rm -f conftest.err conftest.$ac_ext
5468 if $ac_preproc_ok; then
5470 else
5471 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5472 See \`config.log' for more details." >&5
5473 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5474 See \`config.log' for more details." >&2;}
5475 { (exit 1); exit 1; }; }
5478 ac_ext=c
5479 ac_cpp='$CPP $CPPFLAGS'
5480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5485 echo "$as_me:$LINENO: checking for egrep" >&5
5486 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5487 if test "${ac_cv_prog_egrep+set}" = set; then
5488 echo $ECHO_N "(cached) $ECHO_C" >&6
5489 else
5490 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5491 then ac_cv_prog_egrep='grep -E'
5492 else ac_cv_prog_egrep='egrep'
5495 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5496 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5497 EGREP=$ac_cv_prog_egrep
5500 cat >conftest.$ac_ext <<_ACEOF
5501 /* confdefs.h. */
5502 _ACEOF
5503 cat confdefs.h >>conftest.$ac_ext
5504 cat >>conftest.$ac_ext <<_ACEOF
5505 /* end confdefs.h. */
5506 #include <stdint.h>
5508 _ACEOF
5509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5510 $EGREP "uint32_t" >/dev/null 2>&1; then
5512 cat >>confdefs.h <<\_ACEOF
5513 #define HAVE_INT32_DEFINED 1
5514 _ACEOF
5517 rm -f conftest*
5519 cat >conftest.$ac_ext <<_ACEOF
5520 /* confdefs.h. */
5521 _ACEOF
5522 cat confdefs.h >>conftest.$ac_ext
5523 cat >>conftest.$ac_ext <<_ACEOF
5524 /* end confdefs.h. */
5525 #include <inttypes.h>
5527 _ACEOF
5528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5529 $EGREP "uint32_t" >/dev/null 2>&1; then
5531 cat >>confdefs.h <<\_ACEOF
5532 #define HAVE_INT32_DEFINED 1
5533 _ACEOF
5536 rm -f conftest*
5538 cat >conftest.$ac_ext <<_ACEOF
5539 /* confdefs.h. */
5540 _ACEOF
5541 cat confdefs.h >>conftest.$ac_ext
5542 cat >>conftest.$ac_ext <<_ACEOF
5543 /* end confdefs.h. */
5544 #include <sys/types.h>
5546 _ACEOF
5547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5548 $EGREP "u_int32_t" >/dev/null 2>&1; then
5550 cat >>confdefs.h <<\_ACEOF
5551 #define HAVE_BSD_INT32_DEFINED 1
5552 _ACEOF
5555 rm -f conftest*
5557 cat >conftest.$ac_ext <<_ACEOF
5558 /* confdefs.h. */
5559 _ACEOF
5560 cat confdefs.h >>conftest.$ac_ext
5561 cat >>conftest.$ac_ext <<_ACEOF
5562 /* end confdefs.h. */
5563 #include <sys/config.h>
5565 _ACEOF
5566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5567 $EGREP "u_int32_t" >/dev/null 2>&1; then
5569 cat >>confdefs.h <<\_ACEOF
5570 #define HAVE_BSD_INT32_DEFINED 1
5571 _ACEOF
5574 rm -f conftest*
5578 # These may not be defined in a non-ANS conformant embedded system.
5579 # FIXME: Should these case a runtime exception in that case?
5580 cat >conftest.$ac_ext <<_ACEOF
5581 /* confdefs.h. */
5582 _ACEOF
5583 cat confdefs.h >>conftest.$ac_ext
5584 cat >>conftest.$ac_ext <<_ACEOF
5585 /* end confdefs.h. */
5586 #include <time.h>
5588 _ACEOF
5589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5590 $EGREP "mktime" >/dev/null 2>&1; then
5592 cat >>confdefs.h <<\_ACEOF
5593 #define HAVE_MKTIME 1
5594 _ACEOF
5597 rm -f conftest*
5599 cat >conftest.$ac_ext <<_ACEOF
5600 /* confdefs.h. */
5601 _ACEOF
5602 cat confdefs.h >>conftest.$ac_ext
5603 cat >>conftest.$ac_ext <<_ACEOF
5604 /* end confdefs.h. */
5605 #include <time.h>
5607 _ACEOF
5608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5609 $EGREP "localtime" >/dev/null 2>&1; then
5611 cat >>confdefs.h <<\_ACEOF
5612 #define HAVE_LOCALTIME 1
5613 _ACEOF
5616 rm -f conftest*
5619 # Create the subdirectory for natFile.cc, or the attempt
5620 # to create the link will fail.
5621 test -d java || mkdir java
5622 test -d java/io || mkdir java/io
5623 test -d gnu || mkdir gnu
5624 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
5627 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
5628 test -d java/lang || mkdir java/lang
5629 ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
5631 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
5634 # Likewise for natInetAddress.cc and natNetworkInterface.cc.
5635 test -d java/net || mkdir java/net
5636 ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
5638 ac_config_links="$ac_config_links java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc"
5641 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
5642 test -d gnu/java || mkdir gnu/java
5643 test -d gnu/java/net || mkdir gnu/java/net
5644 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
5646 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
5649 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
5650 test -d gnu/java/nio || mkdir gnu/java/nio
5651 ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
5653 ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
5655 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
5656 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
5659 case "${host}" in
5660 *mingw*)
5661 SYSTEMSPEC="-lgdi32 -lws2_32"
5662 if test "${with_win32_nlsapi}" = "unicows"; then
5663 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
5667 SYSTEMSPEC=
5669 esac
5672 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
5676 # Check whether --with-system-zlib or --without-system-zlib was given.
5677 if test "${with_system_zlib+set}" = set; then
5678 withval="$with_system_zlib"
5681 ZLIBSPEC=
5683 ZLIBTESTSPEC=
5687 if test "x$ac_path_x_has_been_run" != xyes; then
5688 echo "$as_me:$LINENO: checking for X" >&5
5689 echo $ECHO_N "checking for X... $ECHO_C" >&6
5691 ac_path_x_has_been_run=yes
5693 # Check whether --with-x or --without-x was given.
5694 if test "${with_x+set}" = set; then
5695 withval="$with_x"
5698 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5699 if test "x$with_x" = xno; then
5700 # The user explicitly disabled X.
5701 have_x=disabled
5702 else
5703 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5704 # Both variables are already set.
5705 have_x=yes
5706 else
5707 if test "${ac_cv_have_x+set}" = set; then
5708 echo $ECHO_N "(cached) $ECHO_C" >&6
5709 else
5710 # One or both of the vars are not set, and there is no cached value.
5711 ac_x_includes=no ac_x_libraries=no
5712 rm -fr conftest.dir
5713 if mkdir conftest.dir; then
5714 cd conftest.dir
5715 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5716 cat >Imakefile <<'_ACEOF'
5717 acfindx:
5718 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5719 _ACEOF
5720 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5721 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5722 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5723 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5724 for ac_extension in a so sl; do
5725 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5726 test -f $ac_im_libdir/libX11.$ac_extension; then
5727 ac_im_usrlibdir=$ac_im_libdir; break
5729 done
5730 # Screen out bogus values from the imake configuration. They are
5731 # bogus both because they are the default anyway, and because
5732 # using them would break gcc on systems where it needs fixed includes.
5733 case $ac_im_incroot in
5734 /usr/include) ;;
5735 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5736 esac
5737 case $ac_im_usrlibdir in
5738 /usr/lib | /lib) ;;
5739 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5740 esac
5742 cd ..
5743 rm -fr conftest.dir
5746 # Standard set of common directories for X headers.
5747 # Check X11 before X11Rn because it is often a symlink to the current release.
5748 ac_x_header_dirs='
5749 /usr/X11/include
5750 /usr/X11R6/include
5751 /usr/X11R5/include
5752 /usr/X11R4/include
5754 /usr/include/X11
5755 /usr/include/X11R6
5756 /usr/include/X11R5
5757 /usr/include/X11R4
5759 /usr/local/X11/include
5760 /usr/local/X11R6/include
5761 /usr/local/X11R5/include
5762 /usr/local/X11R4/include
5764 /usr/local/include/X11
5765 /usr/local/include/X11R6
5766 /usr/local/include/X11R5
5767 /usr/local/include/X11R4
5769 /usr/X386/include
5770 /usr/x386/include
5771 /usr/XFree86/include/X11
5773 /usr/include
5774 /usr/local/include
5775 /usr/unsupported/include
5776 /usr/athena/include
5777 /usr/local/x11r5/include
5778 /usr/lpp/Xamples/include
5780 /usr/openwin/include
5781 /usr/openwin/share/include'
5783 if test "$ac_x_includes" = no; then
5784 # Guess where to find include files, by looking for a specified header file.
5785 # First, try using that file with no special directory specified.
5786 cat >conftest.$ac_ext <<_ACEOF
5787 /* confdefs.h. */
5788 _ACEOF
5789 cat confdefs.h >>conftest.$ac_ext
5790 cat >>conftest.$ac_ext <<_ACEOF
5791 /* end confdefs.h. */
5792 #include <X11/Intrinsic.h>
5793 _ACEOF
5794 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5795 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5796 ac_status=$?
5797 grep -v '^ *+' conftest.er1 >conftest.err
5798 rm -f conftest.er1
5799 cat conftest.err >&5
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); } >/dev/null; then
5802 if test -s conftest.err; then
5803 ac_cpp_err=$ac_c_preproc_warn_flag
5804 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5805 else
5806 ac_cpp_err=
5808 else
5809 ac_cpp_err=yes
5811 if test -z "$ac_cpp_err"; then
5812 # We can compile using X headers with no special include directory.
5813 ac_x_includes=
5814 else
5815 echo "$as_me: failed program was:" >&5
5816 sed 's/^/| /' conftest.$ac_ext >&5
5818 for ac_dir in $ac_x_header_dirs; do
5819 if test -r "$ac_dir/X11/Intrinsic.h"; then
5820 ac_x_includes=$ac_dir
5821 break
5823 done
5825 rm -f conftest.err conftest.$ac_ext
5826 fi # $ac_x_includes = no
5828 if test "$ac_x_libraries" = no; then
5829 # Check for the libraries.
5830 # See if we find them without any special options.
5831 # Don't add to $LIBS permanently.
5832 ac_save_LIBS=$LIBS
5833 LIBS="-lXt $LIBS"
5834 if test x$gcc_no_link = xyes; then
5835 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5836 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5837 { (exit 1); exit 1; }; }
5839 cat >conftest.$ac_ext <<_ACEOF
5840 /* confdefs.h. */
5841 _ACEOF
5842 cat confdefs.h >>conftest.$ac_ext
5843 cat >>conftest.$ac_ext <<_ACEOF
5844 /* end confdefs.h. */
5845 #include <X11/Intrinsic.h>
5847 main ()
5849 XtMalloc (0)
5851 return 0;
5853 _ACEOF
5854 rm -f conftest.$ac_objext conftest$ac_exeext
5855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5856 (eval $ac_link) 2>conftest.er1
5857 ac_status=$?
5858 grep -v '^ *+' conftest.er1 >conftest.err
5859 rm -f conftest.er1
5860 cat conftest.err >&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } &&
5863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5865 (eval $ac_try) 2>&5
5866 ac_status=$?
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; } &&
5869 { ac_try='test -s conftest$ac_exeext'
5870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5871 (eval $ac_try) 2>&5
5872 ac_status=$?
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); }; }; then
5875 LIBS=$ac_save_LIBS
5876 # We can link X programs with no special library path.
5877 ac_x_libraries=
5878 else
5879 echo "$as_me: failed program was:" >&5
5880 sed 's/^/| /' conftest.$ac_ext >&5
5882 LIBS=$ac_save_LIBS
5883 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5885 # Don't even attempt the hair of trying to link an X program!
5886 for ac_extension in a so sl; do
5887 if test -r $ac_dir/libXt.$ac_extension; then
5888 ac_x_libraries=$ac_dir
5889 break 2
5891 done
5892 done
5894 rm -f conftest.err conftest.$ac_objext \
5895 conftest$ac_exeext conftest.$ac_ext
5896 fi # $ac_x_libraries = no
5898 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5899 # Didn't find X anywhere. Cache the known absence of X.
5900 ac_cv_have_x="have_x=no"
5901 else
5902 # Record where we found X for the cache.
5903 ac_cv_have_x="have_x=yes \
5904 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5909 eval "$ac_cv_have_x"
5910 fi # $with_x != no
5912 if test "$have_x" != yes; then
5913 echo "$as_me:$LINENO: result: $have_x" >&5
5914 echo "${ECHO_T}$have_x" >&6
5915 no_x=yes
5916 else
5917 # If each of the values was on the command line, it overrides each guess.
5918 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5919 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5920 # Update the cache value to reflect the command line values.
5921 ac_cv_have_x="have_x=yes \
5922 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5923 # It might be that x_includes is empty (headers are found in the
5924 # standard search path. Then output the corresponding message
5925 ac_out_x_includes=$x_includes
5926 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
5927 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
5928 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
5932 if test "$no_x" = yes; then
5933 # Not all programs may use this symbol, but it does not hurt to define it.
5935 cat >>confdefs.h <<\_ACEOF
5936 #define X_DISPLAY_MISSING 1
5937 _ACEOF
5939 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5940 else
5941 if test -n "$x_includes"; then
5942 X_CFLAGS="$X_CFLAGS -I$x_includes"
5945 # It would also be nice to do this for all -L options, not just this one.
5946 if test -n "$x_libraries"; then
5947 X_LIBS="$X_LIBS -L$x_libraries"
5948 # For Solaris; some versions of Sun CC require a space after -R and
5949 # others require no space. Words are not sufficient . . . .
5950 case `(uname -sr) 2>/dev/null` in
5951 "SunOS 5"*)
5952 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5953 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5954 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5955 if test x$gcc_no_link = xyes; then
5956 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5957 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5958 { (exit 1); exit 1; }; }
5960 cat >conftest.$ac_ext <<_ACEOF
5961 /* confdefs.h. */
5962 _ACEOF
5963 cat confdefs.h >>conftest.$ac_ext
5964 cat >>conftest.$ac_ext <<_ACEOF
5965 /* end confdefs.h. */
5968 main ()
5972 return 0;
5974 _ACEOF
5975 rm -f conftest.$ac_objext conftest$ac_exeext
5976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5977 (eval $ac_link) 2>conftest.er1
5978 ac_status=$?
5979 grep -v '^ *+' conftest.er1 >conftest.err
5980 rm -f conftest.er1
5981 cat conftest.err >&5
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); } &&
5984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5986 (eval $ac_try) 2>&5
5987 ac_status=$?
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); }; } &&
5990 { ac_try='test -s conftest$ac_exeext'
5991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5992 (eval $ac_try) 2>&5
5993 ac_status=$?
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); }; }; then
5996 ac_R_nospace=yes
5997 else
5998 echo "$as_me: failed program was:" >&5
5999 sed 's/^/| /' conftest.$ac_ext >&5
6001 ac_R_nospace=no
6003 rm -f conftest.err conftest.$ac_objext \
6004 conftest$ac_exeext conftest.$ac_ext
6005 if test $ac_R_nospace = yes; then
6006 echo "$as_me:$LINENO: result: no" >&5
6007 echo "${ECHO_T}no" >&6
6008 X_LIBS="$X_LIBS -R$x_libraries"
6009 else
6010 LIBS="$ac_xsave_LIBS -R $x_libraries"
6011 if test x$gcc_no_link = xyes; then
6012 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6013 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6014 { (exit 1); exit 1; }; }
6016 cat >conftest.$ac_ext <<_ACEOF
6017 /* confdefs.h. */
6018 _ACEOF
6019 cat confdefs.h >>conftest.$ac_ext
6020 cat >>conftest.$ac_ext <<_ACEOF
6021 /* end confdefs.h. */
6024 main ()
6028 return 0;
6030 _ACEOF
6031 rm -f conftest.$ac_objext conftest$ac_exeext
6032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6033 (eval $ac_link) 2>conftest.er1
6034 ac_status=$?
6035 grep -v '^ *+' conftest.er1 >conftest.err
6036 rm -f conftest.er1
6037 cat conftest.err >&5
6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); } &&
6040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6042 (eval $ac_try) 2>&5
6043 ac_status=$?
6044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045 (exit $ac_status); }; } &&
6046 { ac_try='test -s conftest$ac_exeext'
6047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6048 (eval $ac_try) 2>&5
6049 ac_status=$?
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); }; }; then
6052 ac_R_space=yes
6053 else
6054 echo "$as_me: failed program was:" >&5
6055 sed 's/^/| /' conftest.$ac_ext >&5
6057 ac_R_space=no
6059 rm -f conftest.err conftest.$ac_objext \
6060 conftest$ac_exeext conftest.$ac_ext
6061 if test $ac_R_space = yes; then
6062 echo "$as_me:$LINENO: result: yes" >&5
6063 echo "${ECHO_T}yes" >&6
6064 X_LIBS="$X_LIBS -R $x_libraries"
6065 else
6066 echo "$as_me:$LINENO: result: neither works" >&5
6067 echo "${ECHO_T}neither works" >&6
6070 LIBS=$ac_xsave_LIBS
6071 esac
6074 # Check for system-dependent libraries X programs must link with.
6075 # Do this before checking for the system-independent R6 libraries
6076 # (-lICE), since we may need -lsocket or whatever for X linking.
6078 if test "$ISC" = yes; then
6079 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6080 else
6081 # Martyn Johnson says this is needed for Ultrix, if the X
6082 # libraries were built with DECnet support. And Karl Berry says
6083 # the Alpha needs dnet_stub (dnet does not exist).
6084 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6085 if test x$gcc_no_link = xyes; then
6086 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6087 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6088 { (exit 1); exit 1; }; }
6090 cat >conftest.$ac_ext <<_ACEOF
6091 /* confdefs.h. */
6092 _ACEOF
6093 cat confdefs.h >>conftest.$ac_ext
6094 cat >>conftest.$ac_ext <<_ACEOF
6095 /* end confdefs.h. */
6097 /* Override any gcc2 internal prototype to avoid an error. */
6098 #ifdef __cplusplus
6099 extern "C"
6100 #endif
6101 /* We use char because int might match the return type of a gcc2
6102 builtin and then its argument prototype would still apply. */
6103 char XOpenDisplay ();
6105 main ()
6107 XOpenDisplay ();
6109 return 0;
6111 _ACEOF
6112 rm -f conftest.$ac_objext conftest$ac_exeext
6113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6114 (eval $ac_link) 2>conftest.er1
6115 ac_status=$?
6116 grep -v '^ *+' conftest.er1 >conftest.err
6117 rm -f conftest.er1
6118 cat conftest.err >&5
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); } &&
6121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6123 (eval $ac_try) 2>&5
6124 ac_status=$?
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); }; } &&
6127 { ac_try='test -s conftest$ac_exeext'
6128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6129 (eval $ac_try) 2>&5
6130 ac_status=$?
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); }; }; then
6134 else
6135 echo "$as_me: failed program was:" >&5
6136 sed 's/^/| /' conftest.$ac_ext >&5
6138 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6139 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6140 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
6142 else
6143 ac_check_lib_save_LIBS=$LIBS
6144 LIBS="-ldnet $LIBS"
6145 if test x$gcc_no_link = xyes; then
6146 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6147 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6148 { (exit 1); exit 1; }; }
6150 cat >conftest.$ac_ext <<_ACEOF
6151 /* confdefs.h. */
6152 _ACEOF
6153 cat confdefs.h >>conftest.$ac_ext
6154 cat >>conftest.$ac_ext <<_ACEOF
6155 /* end confdefs.h. */
6157 /* Override any gcc2 internal prototype to avoid an error. */
6158 #ifdef __cplusplus
6159 extern "C"
6160 #endif
6161 /* We use char because int might match the return type of a gcc2
6162 builtin and then its argument prototype would still apply. */
6163 char dnet_ntoa ();
6165 main ()
6167 dnet_ntoa ();
6169 return 0;
6171 _ACEOF
6172 rm -f conftest.$ac_objext conftest$ac_exeext
6173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6174 (eval $ac_link) 2>conftest.er1
6175 ac_status=$?
6176 grep -v '^ *+' conftest.er1 >conftest.err
6177 rm -f conftest.er1
6178 cat conftest.err >&5
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); } &&
6181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6183 (eval $ac_try) 2>&5
6184 ac_status=$?
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); }; } &&
6187 { ac_try='test -s conftest$ac_exeext'
6188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6189 (eval $ac_try) 2>&5
6190 ac_status=$?
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); }; }; then
6193 ac_cv_lib_dnet_dnet_ntoa=yes
6194 else
6195 echo "$as_me: failed program was:" >&5
6196 sed 's/^/| /' conftest.$ac_ext >&5
6198 ac_cv_lib_dnet_dnet_ntoa=no
6200 rm -f conftest.err conftest.$ac_objext \
6201 conftest$ac_exeext conftest.$ac_ext
6202 LIBS=$ac_check_lib_save_LIBS
6204 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6205 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6206 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6207 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6210 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6211 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6212 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
6213 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6214 echo $ECHO_N "(cached) $ECHO_C" >&6
6215 else
6216 ac_check_lib_save_LIBS=$LIBS
6217 LIBS="-ldnet_stub $LIBS"
6218 if test x$gcc_no_link = xyes; then
6219 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6220 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6221 { (exit 1); exit 1; }; }
6223 cat >conftest.$ac_ext <<_ACEOF
6224 /* confdefs.h. */
6225 _ACEOF
6226 cat confdefs.h >>conftest.$ac_ext
6227 cat >>conftest.$ac_ext <<_ACEOF
6228 /* end confdefs.h. */
6230 /* Override any gcc2 internal prototype to avoid an error. */
6231 #ifdef __cplusplus
6232 extern "C"
6233 #endif
6234 /* We use char because int might match the return type of a gcc2
6235 builtin and then its argument prototype would still apply. */
6236 char dnet_ntoa ();
6238 main ()
6240 dnet_ntoa ();
6242 return 0;
6244 _ACEOF
6245 rm -f conftest.$ac_objext conftest$ac_exeext
6246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6247 (eval $ac_link) 2>conftest.er1
6248 ac_status=$?
6249 grep -v '^ *+' conftest.er1 >conftest.err
6250 rm -f conftest.er1
6251 cat conftest.err >&5
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); } &&
6254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6256 (eval $ac_try) 2>&5
6257 ac_status=$?
6258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259 (exit $ac_status); }; } &&
6260 { ac_try='test -s conftest$ac_exeext'
6261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6262 (eval $ac_try) 2>&5
6263 ac_status=$?
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); }; }; then
6266 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6267 else
6268 echo "$as_me: failed program was:" >&5
6269 sed 's/^/| /' conftest.$ac_ext >&5
6271 ac_cv_lib_dnet_stub_dnet_ntoa=no
6273 rm -f conftest.err conftest.$ac_objext \
6274 conftest$ac_exeext conftest.$ac_ext
6275 LIBS=$ac_check_lib_save_LIBS
6277 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6278 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
6279 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
6280 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6285 rm -f conftest.err conftest.$ac_objext \
6286 conftest$ac_exeext conftest.$ac_ext
6287 LIBS="$ac_xsave_LIBS"
6289 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6290 # to get the SysV transport functions.
6291 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6292 # needs -lnsl.
6293 # The nsl library prevents programs from opening the X display
6294 # on Irix 5.2, according to T.E. Dickey.
6295 # The functions gethostbyname, getservbyname, and inet_addr are
6296 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6297 echo "$as_me:$LINENO: checking for gethostbyname" >&5
6298 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
6299 if test "${ac_cv_func_gethostbyname+set}" = set; then
6300 echo $ECHO_N "(cached) $ECHO_C" >&6
6301 else
6302 if test x$gcc_no_link = xyes; then
6303 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6304 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6305 { (exit 1); exit 1; }; }
6307 cat >conftest.$ac_ext <<_ACEOF
6308 /* confdefs.h. */
6309 _ACEOF
6310 cat confdefs.h >>conftest.$ac_ext
6311 cat >>conftest.$ac_ext <<_ACEOF
6312 /* end confdefs.h. */
6313 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6314 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6315 #define gethostbyname innocuous_gethostbyname
6317 /* System header to define __stub macros and hopefully few prototypes,
6318 which can conflict with char gethostbyname (); below.
6319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6320 <limits.h> exists even on freestanding compilers. */
6322 #ifdef __STDC__
6323 # include <limits.h>
6324 #else
6325 # include <assert.h>
6326 #endif
6328 #undef gethostbyname
6330 /* Override any gcc2 internal prototype to avoid an error. */
6331 #ifdef __cplusplus
6332 extern "C"
6334 #endif
6335 /* We use char because int might match the return type of a gcc2
6336 builtin and then its argument prototype would still apply. */
6337 char gethostbyname ();
6338 /* The GNU C library defines this for functions which it implements
6339 to always fail with ENOSYS. Some functions are actually named
6340 something starting with __ and the normal name is an alias. */
6341 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6342 choke me
6343 #else
6344 char (*f) () = gethostbyname;
6345 #endif
6346 #ifdef __cplusplus
6348 #endif
6351 main ()
6353 return f != gethostbyname;
6355 return 0;
6357 _ACEOF
6358 rm -f conftest.$ac_objext conftest$ac_exeext
6359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6360 (eval $ac_link) 2>conftest.er1
6361 ac_status=$?
6362 grep -v '^ *+' conftest.er1 >conftest.err
6363 rm -f conftest.er1
6364 cat conftest.err >&5
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); } &&
6367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6369 (eval $ac_try) 2>&5
6370 ac_status=$?
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); }; } &&
6373 { ac_try='test -s conftest$ac_exeext'
6374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6375 (eval $ac_try) 2>&5
6376 ac_status=$?
6377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378 (exit $ac_status); }; }; then
6379 ac_cv_func_gethostbyname=yes
6380 else
6381 echo "$as_me: failed program was:" >&5
6382 sed 's/^/| /' conftest.$ac_ext >&5
6384 ac_cv_func_gethostbyname=no
6386 rm -f conftest.err conftest.$ac_objext \
6387 conftest$ac_exeext conftest.$ac_ext
6389 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6390 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
6392 if test $ac_cv_func_gethostbyname = no; then
6393 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6394 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6395 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6397 else
6398 ac_check_lib_save_LIBS=$LIBS
6399 LIBS="-lnsl $LIBS"
6400 if test x$gcc_no_link = xyes; then
6401 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6402 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6403 { (exit 1); exit 1; }; }
6405 cat >conftest.$ac_ext <<_ACEOF
6406 /* confdefs.h. */
6407 _ACEOF
6408 cat confdefs.h >>conftest.$ac_ext
6409 cat >>conftest.$ac_ext <<_ACEOF
6410 /* end confdefs.h. */
6412 /* Override any gcc2 internal prototype to avoid an error. */
6413 #ifdef __cplusplus
6414 extern "C"
6415 #endif
6416 /* We use char because int might match the return type of a gcc2
6417 builtin and then its argument prototype would still apply. */
6418 char gethostbyname ();
6420 main ()
6422 gethostbyname ();
6424 return 0;
6426 _ACEOF
6427 rm -f conftest.$ac_objext conftest$ac_exeext
6428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6429 (eval $ac_link) 2>conftest.er1
6430 ac_status=$?
6431 grep -v '^ *+' conftest.er1 >conftest.err
6432 rm -f conftest.er1
6433 cat conftest.err >&5
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); } &&
6436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6438 (eval $ac_try) 2>&5
6439 ac_status=$?
6440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441 (exit $ac_status); }; } &&
6442 { ac_try='test -s conftest$ac_exeext'
6443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6444 (eval $ac_try) 2>&5
6445 ac_status=$?
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); }; }; then
6448 ac_cv_lib_nsl_gethostbyname=yes
6449 else
6450 echo "$as_me: failed program was:" >&5
6451 sed 's/^/| /' conftest.$ac_ext >&5
6453 ac_cv_lib_nsl_gethostbyname=no
6455 rm -f conftest.err conftest.$ac_objext \
6456 conftest$ac_exeext conftest.$ac_ext
6457 LIBS=$ac_check_lib_save_LIBS
6459 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6460 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6461 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6462 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6465 if test $ac_cv_lib_nsl_gethostbyname = no; then
6466 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6467 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
6468 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6469 echo $ECHO_N "(cached) $ECHO_C" >&6
6470 else
6471 ac_check_lib_save_LIBS=$LIBS
6472 LIBS="-lbsd $LIBS"
6473 if test x$gcc_no_link = xyes; then
6474 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6475 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6476 { (exit 1); exit 1; }; }
6478 cat >conftest.$ac_ext <<_ACEOF
6479 /* confdefs.h. */
6480 _ACEOF
6481 cat confdefs.h >>conftest.$ac_ext
6482 cat >>conftest.$ac_ext <<_ACEOF
6483 /* end confdefs.h. */
6485 /* Override any gcc2 internal prototype to avoid an error. */
6486 #ifdef __cplusplus
6487 extern "C"
6488 #endif
6489 /* We use char because int might match the return type of a gcc2
6490 builtin and then its argument prototype would still apply. */
6491 char gethostbyname ();
6493 main ()
6495 gethostbyname ();
6497 return 0;
6499 _ACEOF
6500 rm -f conftest.$ac_objext conftest$ac_exeext
6501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6502 (eval $ac_link) 2>conftest.er1
6503 ac_status=$?
6504 grep -v '^ *+' conftest.er1 >conftest.err
6505 rm -f conftest.er1
6506 cat conftest.err >&5
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); } &&
6509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6511 (eval $ac_try) 2>&5
6512 ac_status=$?
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); }; } &&
6515 { ac_try='test -s conftest$ac_exeext'
6516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6517 (eval $ac_try) 2>&5
6518 ac_status=$?
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); }; }; then
6521 ac_cv_lib_bsd_gethostbyname=yes
6522 else
6523 echo "$as_me: failed program was:" >&5
6524 sed 's/^/| /' conftest.$ac_ext >&5
6526 ac_cv_lib_bsd_gethostbyname=no
6528 rm -f conftest.err conftest.$ac_objext \
6529 conftest$ac_exeext conftest.$ac_ext
6530 LIBS=$ac_check_lib_save_LIBS
6532 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6533 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
6534 if test $ac_cv_lib_bsd_gethostbyname = yes; then
6535 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6541 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6542 # socket/setsockopt and other routines are undefined under SCO ODT
6543 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6544 # on later versions), says Simon Leinen: it contains gethostby*
6545 # variants that don't use the name server (or something). -lsocket
6546 # must be given before -lnsl if both are needed. We assume that
6547 # if connect needs -lnsl, so does gethostbyname.
6548 echo "$as_me:$LINENO: checking for connect" >&5
6549 echo $ECHO_N "checking for connect... $ECHO_C" >&6
6550 if test "${ac_cv_func_connect+set}" = set; then
6551 echo $ECHO_N "(cached) $ECHO_C" >&6
6552 else
6553 if test x$gcc_no_link = xyes; then
6554 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6555 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6556 { (exit 1); exit 1; }; }
6558 cat >conftest.$ac_ext <<_ACEOF
6559 /* confdefs.h. */
6560 _ACEOF
6561 cat confdefs.h >>conftest.$ac_ext
6562 cat >>conftest.$ac_ext <<_ACEOF
6563 /* end confdefs.h. */
6564 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
6565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6566 #define connect innocuous_connect
6568 /* System header to define __stub macros and hopefully few prototypes,
6569 which can conflict with char connect (); below.
6570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6571 <limits.h> exists even on freestanding compilers. */
6573 #ifdef __STDC__
6574 # include <limits.h>
6575 #else
6576 # include <assert.h>
6577 #endif
6579 #undef connect
6581 /* Override any gcc2 internal prototype to avoid an error. */
6582 #ifdef __cplusplus
6583 extern "C"
6585 #endif
6586 /* We use char because int might match the return type of a gcc2
6587 builtin and then its argument prototype would still apply. */
6588 char connect ();
6589 /* The GNU C library defines this for functions which it implements
6590 to always fail with ENOSYS. Some functions are actually named
6591 something starting with __ and the normal name is an alias. */
6592 #if defined (__stub_connect) || defined (__stub___connect)
6593 choke me
6594 #else
6595 char (*f) () = connect;
6596 #endif
6597 #ifdef __cplusplus
6599 #endif
6602 main ()
6604 return f != connect;
6606 return 0;
6608 _ACEOF
6609 rm -f conftest.$ac_objext conftest$ac_exeext
6610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6611 (eval $ac_link) 2>conftest.er1
6612 ac_status=$?
6613 grep -v '^ *+' conftest.er1 >conftest.err
6614 rm -f conftest.er1
6615 cat conftest.err >&5
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); } &&
6618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6620 (eval $ac_try) 2>&5
6621 ac_status=$?
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); }; } &&
6624 { ac_try='test -s conftest$ac_exeext'
6625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6626 (eval $ac_try) 2>&5
6627 ac_status=$?
6628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629 (exit $ac_status); }; }; then
6630 ac_cv_func_connect=yes
6631 else
6632 echo "$as_me: failed program was:" >&5
6633 sed 's/^/| /' conftest.$ac_ext >&5
6635 ac_cv_func_connect=no
6637 rm -f conftest.err conftest.$ac_objext \
6638 conftest$ac_exeext conftest.$ac_ext
6640 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6641 echo "${ECHO_T}$ac_cv_func_connect" >&6
6643 if test $ac_cv_func_connect = no; then
6644 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6645 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6646 if test "${ac_cv_lib_socket_connect+set}" = set; then
6647 echo $ECHO_N "(cached) $ECHO_C" >&6
6648 else
6649 ac_check_lib_save_LIBS=$LIBS
6650 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6651 if test x$gcc_no_link = xyes; then
6652 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6653 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6654 { (exit 1); exit 1; }; }
6656 cat >conftest.$ac_ext <<_ACEOF
6657 /* confdefs.h. */
6658 _ACEOF
6659 cat confdefs.h >>conftest.$ac_ext
6660 cat >>conftest.$ac_ext <<_ACEOF
6661 /* end confdefs.h. */
6663 /* Override any gcc2 internal prototype to avoid an error. */
6664 #ifdef __cplusplus
6665 extern "C"
6666 #endif
6667 /* We use char because int might match the return type of a gcc2
6668 builtin and then its argument prototype would still apply. */
6669 char connect ();
6671 main ()
6673 connect ();
6675 return 0;
6677 _ACEOF
6678 rm -f conftest.$ac_objext conftest$ac_exeext
6679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6680 (eval $ac_link) 2>conftest.er1
6681 ac_status=$?
6682 grep -v '^ *+' conftest.er1 >conftest.err
6683 rm -f conftest.er1
6684 cat conftest.err >&5
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); } &&
6687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6689 (eval $ac_try) 2>&5
6690 ac_status=$?
6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); }; } &&
6693 { ac_try='test -s conftest$ac_exeext'
6694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6695 (eval $ac_try) 2>&5
6696 ac_status=$?
6697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698 (exit $ac_status); }; }; then
6699 ac_cv_lib_socket_connect=yes
6700 else
6701 echo "$as_me: failed program was:" >&5
6702 sed 's/^/| /' conftest.$ac_ext >&5
6704 ac_cv_lib_socket_connect=no
6706 rm -f conftest.err conftest.$ac_objext \
6707 conftest$ac_exeext conftest.$ac_ext
6708 LIBS=$ac_check_lib_save_LIBS
6710 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6711 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6712 if test $ac_cv_lib_socket_connect = yes; then
6713 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6718 # Guillermo Gomez says -lposix is necessary on A/UX.
6719 echo "$as_me:$LINENO: checking for remove" >&5
6720 echo $ECHO_N "checking for remove... $ECHO_C" >&6
6721 if test "${ac_cv_func_remove+set}" = set; then
6722 echo $ECHO_N "(cached) $ECHO_C" >&6
6723 else
6724 if test x$gcc_no_link = xyes; then
6725 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6726 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6727 { (exit 1); exit 1; }; }
6729 cat >conftest.$ac_ext <<_ACEOF
6730 /* confdefs.h. */
6731 _ACEOF
6732 cat confdefs.h >>conftest.$ac_ext
6733 cat >>conftest.$ac_ext <<_ACEOF
6734 /* end confdefs.h. */
6735 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
6736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6737 #define remove innocuous_remove
6739 /* System header to define __stub macros and hopefully few prototypes,
6740 which can conflict with char remove (); below.
6741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6742 <limits.h> exists even on freestanding compilers. */
6744 #ifdef __STDC__
6745 # include <limits.h>
6746 #else
6747 # include <assert.h>
6748 #endif
6750 #undef remove
6752 /* Override any gcc2 internal prototype to avoid an error. */
6753 #ifdef __cplusplus
6754 extern "C"
6756 #endif
6757 /* We use char because int might match the return type of a gcc2
6758 builtin and then its argument prototype would still apply. */
6759 char remove ();
6760 /* The GNU C library defines this for functions which it implements
6761 to always fail with ENOSYS. Some functions are actually named
6762 something starting with __ and the normal name is an alias. */
6763 #if defined (__stub_remove) || defined (__stub___remove)
6764 choke me
6765 #else
6766 char (*f) () = remove;
6767 #endif
6768 #ifdef __cplusplus
6770 #endif
6773 main ()
6775 return f != remove;
6777 return 0;
6779 _ACEOF
6780 rm -f conftest.$ac_objext conftest$ac_exeext
6781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6782 (eval $ac_link) 2>conftest.er1
6783 ac_status=$?
6784 grep -v '^ *+' conftest.er1 >conftest.err
6785 rm -f conftest.er1
6786 cat conftest.err >&5
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); } &&
6789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6791 (eval $ac_try) 2>&5
6792 ac_status=$?
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); }; } &&
6795 { ac_try='test -s conftest$ac_exeext'
6796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6797 (eval $ac_try) 2>&5
6798 ac_status=$?
6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); }; }; then
6801 ac_cv_func_remove=yes
6802 else
6803 echo "$as_me: failed program was:" >&5
6804 sed 's/^/| /' conftest.$ac_ext >&5
6806 ac_cv_func_remove=no
6808 rm -f conftest.err conftest.$ac_objext \
6809 conftest$ac_exeext conftest.$ac_ext
6811 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6812 echo "${ECHO_T}$ac_cv_func_remove" >&6
6814 if test $ac_cv_func_remove = no; then
6815 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6816 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6817 if test "${ac_cv_lib_posix_remove+set}" = set; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
6819 else
6820 ac_check_lib_save_LIBS=$LIBS
6821 LIBS="-lposix $LIBS"
6822 if test x$gcc_no_link = xyes; then
6823 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6824 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6825 { (exit 1); exit 1; }; }
6827 cat >conftest.$ac_ext <<_ACEOF
6828 /* confdefs.h. */
6829 _ACEOF
6830 cat confdefs.h >>conftest.$ac_ext
6831 cat >>conftest.$ac_ext <<_ACEOF
6832 /* end confdefs.h. */
6834 /* Override any gcc2 internal prototype to avoid an error. */
6835 #ifdef __cplusplus
6836 extern "C"
6837 #endif
6838 /* We use char because int might match the return type of a gcc2
6839 builtin and then its argument prototype would still apply. */
6840 char remove ();
6842 main ()
6844 remove ();
6846 return 0;
6848 _ACEOF
6849 rm -f conftest.$ac_objext conftest$ac_exeext
6850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6851 (eval $ac_link) 2>conftest.er1
6852 ac_status=$?
6853 grep -v '^ *+' conftest.er1 >conftest.err
6854 rm -f conftest.er1
6855 cat conftest.err >&5
6856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857 (exit $ac_status); } &&
6858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6860 (eval $ac_try) 2>&5
6861 ac_status=$?
6862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863 (exit $ac_status); }; } &&
6864 { ac_try='test -s conftest$ac_exeext'
6865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6866 (eval $ac_try) 2>&5
6867 ac_status=$?
6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); }; }; then
6870 ac_cv_lib_posix_remove=yes
6871 else
6872 echo "$as_me: failed program was:" >&5
6873 sed 's/^/| /' conftest.$ac_ext >&5
6875 ac_cv_lib_posix_remove=no
6877 rm -f conftest.err conftest.$ac_objext \
6878 conftest$ac_exeext conftest.$ac_ext
6879 LIBS=$ac_check_lib_save_LIBS
6881 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6882 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
6883 if test $ac_cv_lib_posix_remove = yes; then
6884 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6889 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6890 echo "$as_me:$LINENO: checking for shmat" >&5
6891 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
6892 if test "${ac_cv_func_shmat+set}" = set; then
6893 echo $ECHO_N "(cached) $ECHO_C" >&6
6894 else
6895 if test x$gcc_no_link = xyes; then
6896 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6897 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6898 { (exit 1); exit 1; }; }
6900 cat >conftest.$ac_ext <<_ACEOF
6901 /* confdefs.h. */
6902 _ACEOF
6903 cat confdefs.h >>conftest.$ac_ext
6904 cat >>conftest.$ac_ext <<_ACEOF
6905 /* end confdefs.h. */
6906 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6908 #define shmat innocuous_shmat
6910 /* System header to define __stub macros and hopefully few prototypes,
6911 which can conflict with char shmat (); below.
6912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6913 <limits.h> exists even on freestanding compilers. */
6915 #ifdef __STDC__
6916 # include <limits.h>
6917 #else
6918 # include <assert.h>
6919 #endif
6921 #undef shmat
6923 /* Override any gcc2 internal prototype to avoid an error. */
6924 #ifdef __cplusplus
6925 extern "C"
6927 #endif
6928 /* We use char because int might match the return type of a gcc2
6929 builtin and then its argument prototype would still apply. */
6930 char shmat ();
6931 /* The GNU C library defines this for functions which it implements
6932 to always fail with ENOSYS. Some functions are actually named
6933 something starting with __ and the normal name is an alias. */
6934 #if defined (__stub_shmat) || defined (__stub___shmat)
6935 choke me
6936 #else
6937 char (*f) () = shmat;
6938 #endif
6939 #ifdef __cplusplus
6941 #endif
6944 main ()
6946 return f != shmat;
6948 return 0;
6950 _ACEOF
6951 rm -f conftest.$ac_objext conftest$ac_exeext
6952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6953 (eval $ac_link) 2>conftest.er1
6954 ac_status=$?
6955 grep -v '^ *+' conftest.er1 >conftest.err
6956 rm -f conftest.er1
6957 cat conftest.err >&5
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); } &&
6960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6962 (eval $ac_try) 2>&5
6963 ac_status=$?
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); }; } &&
6966 { ac_try='test -s conftest$ac_exeext'
6967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6968 (eval $ac_try) 2>&5
6969 ac_status=$?
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); }; }; then
6972 ac_cv_func_shmat=yes
6973 else
6974 echo "$as_me: failed program was:" >&5
6975 sed 's/^/| /' conftest.$ac_ext >&5
6977 ac_cv_func_shmat=no
6979 rm -f conftest.err conftest.$ac_objext \
6980 conftest$ac_exeext conftest.$ac_ext
6982 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6983 echo "${ECHO_T}$ac_cv_func_shmat" >&6
6985 if test $ac_cv_func_shmat = no; then
6986 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6987 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6988 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
6990 else
6991 ac_check_lib_save_LIBS=$LIBS
6992 LIBS="-lipc $LIBS"
6993 if test x$gcc_no_link = xyes; then
6994 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6995 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6996 { (exit 1); exit 1; }; }
6998 cat >conftest.$ac_ext <<_ACEOF
6999 /* confdefs.h. */
7000 _ACEOF
7001 cat confdefs.h >>conftest.$ac_ext
7002 cat >>conftest.$ac_ext <<_ACEOF
7003 /* end confdefs.h. */
7005 /* Override any gcc2 internal prototype to avoid an error. */
7006 #ifdef __cplusplus
7007 extern "C"
7008 #endif
7009 /* We use char because int might match the return type of a gcc2
7010 builtin and then its argument prototype would still apply. */
7011 char shmat ();
7013 main ()
7015 shmat ();
7017 return 0;
7019 _ACEOF
7020 rm -f conftest.$ac_objext conftest$ac_exeext
7021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7022 (eval $ac_link) 2>conftest.er1
7023 ac_status=$?
7024 grep -v '^ *+' conftest.er1 >conftest.err
7025 rm -f conftest.er1
7026 cat conftest.err >&5
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); } &&
7029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7031 (eval $ac_try) 2>&5
7032 ac_status=$?
7033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034 (exit $ac_status); }; } &&
7035 { ac_try='test -s conftest$ac_exeext'
7036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7037 (eval $ac_try) 2>&5
7038 ac_status=$?
7039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); }; }; then
7041 ac_cv_lib_ipc_shmat=yes
7042 else
7043 echo "$as_me: failed program was:" >&5
7044 sed 's/^/| /' conftest.$ac_ext >&5
7046 ac_cv_lib_ipc_shmat=no
7048 rm -f conftest.err conftest.$ac_objext \
7049 conftest$ac_exeext conftest.$ac_ext
7050 LIBS=$ac_check_lib_save_LIBS
7052 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7053 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
7054 if test $ac_cv_lib_ipc_shmat = yes; then
7055 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7061 # Check for libraries that X11R6 Xt/Xaw programs need.
7062 ac_save_LDFLAGS=$LDFLAGS
7063 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7064 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7065 # check for ICE first), but we must link in the order -lSM -lICE or
7066 # we get undefined symbols. So assume we have SM if we have ICE.
7067 # These have to be linked with before -lX11, unlike the other
7068 # libraries we check for below, so use a different variable.
7069 # John Interrante, Karl Berry
7070 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7071 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
7072 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7073 echo $ECHO_N "(cached) $ECHO_C" >&6
7074 else
7075 ac_check_lib_save_LIBS=$LIBS
7076 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7077 if test x$gcc_no_link = xyes; then
7078 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7079 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7080 { (exit 1); exit 1; }; }
7082 cat >conftest.$ac_ext <<_ACEOF
7083 /* confdefs.h. */
7084 _ACEOF
7085 cat confdefs.h >>conftest.$ac_ext
7086 cat >>conftest.$ac_ext <<_ACEOF
7087 /* end confdefs.h. */
7089 /* Override any gcc2 internal prototype to avoid an error. */
7090 #ifdef __cplusplus
7091 extern "C"
7092 #endif
7093 /* We use char because int might match the return type of a gcc2
7094 builtin and then its argument prototype would still apply. */
7095 char IceConnectionNumber ();
7097 main ()
7099 IceConnectionNumber ();
7101 return 0;
7103 _ACEOF
7104 rm -f conftest.$ac_objext conftest$ac_exeext
7105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7106 (eval $ac_link) 2>conftest.er1
7107 ac_status=$?
7108 grep -v '^ *+' conftest.er1 >conftest.err
7109 rm -f conftest.er1
7110 cat conftest.err >&5
7111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); } &&
7113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7115 (eval $ac_try) 2>&5
7116 ac_status=$?
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); }; } &&
7119 { ac_try='test -s conftest$ac_exeext'
7120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7121 (eval $ac_try) 2>&5
7122 ac_status=$?
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); }; }; then
7125 ac_cv_lib_ICE_IceConnectionNumber=yes
7126 else
7127 echo "$as_me: failed program was:" >&5
7128 sed 's/^/| /' conftest.$ac_ext >&5
7130 ac_cv_lib_ICE_IceConnectionNumber=no
7132 rm -f conftest.err conftest.$ac_objext \
7133 conftest$ac_exeext conftest.$ac_ext
7134 LIBS=$ac_check_lib_save_LIBS
7136 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7137 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
7138 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7139 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7142 LDFLAGS=$ac_save_LDFLAGS
7147 # Determine which AWT peer libraries to build
7148 # Check whether --enable-java-awt or --disable-java-awt was given.
7149 if test "${enable_java_awt+set}" = set; then
7150 enableval="$enable_java_awt"
7154 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
7155 use_xlib_awt=""
7156 use_gtk_awt=""
7157 # The default toolkit to use is the first one specified.
7158 TOOLKIT=
7161 for peer in $peerlibs ; do
7162 case $peer in
7163 xlib)
7164 if test "$no_x" = yes; then
7165 echo "*** xlib peers requested but no X library available" 1>&2
7166 exit 1
7167 else
7168 use_xlib_awt="yes"
7169 if test -z "$TOOLKIT"; then
7170 TOOLKIT=gnu.awt.xlib.XToolkit
7174 gtk)
7175 if test "$no_x" = yes; then
7176 echo "*** xlib peers requested but no X library available" 1>&2
7177 exit 1
7178 else
7179 use_gtk_awt=yes
7180 if test -z "$TOOLKIT"; then
7181 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
7183 test -d jniinclude || mkdir jniinclude
7187 use_xlib_awt=
7188 use_gtk_awt=
7189 break
7192 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
7193 exit 1
7194 esac
7195 done
7199 if test "$use_xlib_awt" = yes; then
7200 XLIB_AWT_TRUE=
7201 XLIB_AWT_FALSE='#'
7202 else
7203 XLIB_AWT_TRUE='#'
7204 XLIB_AWT_FALSE=
7208 if test "$use_gtk_awt" = yes; then
7209 GTK_AWT_TRUE=
7210 GTK_AWT_FALSE='#'
7211 else
7212 GTK_AWT_TRUE='#'
7213 GTK_AWT_FALSE=
7216 # determine whether to enable the cairo GTK Graphics2D backend
7217 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
7218 if test "${enable_gtk_cairo+set}" = set; then
7219 enableval="$enable_gtk_cairo"
7224 if test "x${enable_gtk_cairo}" = xyes; then
7225 GTK_CAIRO_TRUE=
7226 GTK_CAIRO_FALSE='#'
7227 else
7228 GTK_CAIRO_TRUE='#'
7229 GTK_CAIRO_FALSE=
7231 if test "x${enable_gtk_cairo}" = xyes
7232 then
7234 succeeded=no
7236 if test -z "$PKG_CONFIG"; then
7237 # Extract the first word of "pkg-config", so it can be a program name with args.
7238 set dummy pkg-config; ac_word=$2
7239 echo "$as_me:$LINENO: checking for $ac_word" >&5
7240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7241 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7242 echo $ECHO_N "(cached) $ECHO_C" >&6
7243 else
7244 case $PKG_CONFIG in
7245 [\\/]* | ?:[\\/]*)
7246 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7250 for as_dir in $PATH
7252 IFS=$as_save_IFS
7253 test -z "$as_dir" && as_dir=.
7254 for ac_exec_ext in '' $ac_executable_extensions; do
7255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7256 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7258 break 2
7260 done
7261 done
7263 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7265 esac
7267 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7269 if test -n "$PKG_CONFIG"; then
7270 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7271 echo "${ECHO_T}$PKG_CONFIG" >&6
7272 else
7273 echo "$as_me:$LINENO: result: no" >&5
7274 echo "${ECHO_T}no" >&6
7279 if test "$PKG_CONFIG" = "no" ; then
7280 echo "*** The pkg-config script could not be found. Make sure it is"
7281 echo "*** in your path, or set the PKG_CONFIG environment variable"
7282 echo "*** to the full path to pkg-config."
7283 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
7284 else
7285 PKG_CONFIG_MIN_VERSION=0.9.0
7286 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7287 echo "$as_me:$LINENO: checking for cairo" >&5
7288 echo $ECHO_N "checking for cairo... $ECHO_C" >&6
7290 if $PKG_CONFIG --exists "cairo" ; then
7291 echo "$as_me:$LINENO: result: yes" >&5
7292 echo "${ECHO_T}yes" >&6
7293 succeeded=yes
7295 echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
7296 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
7297 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo"`
7298 echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
7299 echo "${ECHO_T}$CAIRO_CFLAGS" >&6
7301 echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
7302 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
7303 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo"`
7304 echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
7305 echo "${ECHO_T}$CAIRO_LIBS" >&6
7306 else
7307 CAIRO_CFLAGS=""
7308 CAIRO_LIBS=""
7309 ## If we have a custom action on failure, don't print errors, but
7310 ## do set a variable so people can do so.
7311 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
7312 echo $CAIRO_PKG_ERRORS
7317 else
7318 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7319 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7323 if test $succeeded = yes; then
7325 else
7326 { { 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
7327 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;}
7328 { (exit 1); exit 1; }; }
7332 succeeded=no
7334 if test -z "$PKG_CONFIG"; then
7335 # Extract the first word of "pkg-config", so it can be a program name with args.
7336 set dummy pkg-config; ac_word=$2
7337 echo "$as_me:$LINENO: checking for $ac_word" >&5
7338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7339 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7340 echo $ECHO_N "(cached) $ECHO_C" >&6
7341 else
7342 case $PKG_CONFIG in
7343 [\\/]* | ?:[\\/]*)
7344 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348 for as_dir in $PATH
7350 IFS=$as_save_IFS
7351 test -z "$as_dir" && as_dir=.
7352 for ac_exec_ext in '' $ac_executable_extensions; do
7353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7354 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7356 break 2
7358 done
7359 done
7361 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7363 esac
7365 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7367 if test -n "$PKG_CONFIG"; then
7368 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7369 echo "${ECHO_T}$PKG_CONFIG" >&6
7370 else
7371 echo "$as_me:$LINENO: result: no" >&5
7372 echo "${ECHO_T}no" >&6
7377 if test "$PKG_CONFIG" = "no" ; then
7378 echo "*** The pkg-config script could not be found. Make sure it is"
7379 echo "*** in your path, or set the PKG_CONFIG environment variable"
7380 echo "*** to the full path to pkg-config."
7381 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
7382 else
7383 PKG_CONFIG_MIN_VERSION=0.9.0
7384 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7385 echo "$as_me:$LINENO: checking for pangoft2" >&5
7386 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
7388 if $PKG_CONFIG --exists "pangoft2" ; then
7389 echo "$as_me:$LINENO: result: yes" >&5
7390 echo "${ECHO_T}yes" >&6
7391 succeeded=yes
7393 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
7394 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
7395 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
7396 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
7397 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
7399 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
7400 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
7401 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
7402 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
7403 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
7404 else
7405 PANGOFT2_CFLAGS=""
7406 PANGOFT2_LIBS=""
7407 ## If we have a custom action on failure, don't print errors, but
7408 ## do set a variable so people can do so.
7409 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
7410 echo $PANGOFT2_PKG_ERRORS
7415 else
7416 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7417 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7421 if test $succeeded = yes; then
7423 else
7424 { { 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
7425 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;}
7426 { (exit 1); exit 1; }; }
7435 # FIXME: this should be _libs on some hosts.
7436 libsubdir=.libs
7438 # Allow the GC to be disabled. Can be useful when debugging.
7439 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
7440 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
7441 # Check whether --enable-java-gc or --disable-java-gc was given.
7442 if test "${enable_java_gc+set}" = set; then
7443 enableval="$enable_java_gc"
7444 GC=$enableval
7445 else
7446 GC=boehm
7448 GCLIBS=
7449 GCINCS=
7450 GCDEPS=
7451 GCOBJS=
7452 GCSPEC=
7453 JC1GCSPEC=
7454 GCTESTSPEC=
7455 case "$GC" in
7456 boehm)
7457 echo "$as_me:$LINENO: result: boehm" >&5
7458 echo "${ECHO_T}boehm" >&6
7459 GCLIBS=../boehm-gc/libgcjgc_convenience.la
7460 JC1GCSPEC='-fuse-boehm-gc'
7461 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
7463 # We also want to pick up some cpp flags required when including
7464 # boehm-config.h. Yuck.
7465 GCINCS="`cat ../boehm-gc/boehm-cflags`"
7466 GCOBJS=boehm.lo
7467 GCHDR=boehm-gc.h
7468 # The POSIX thread support needs to know this.
7470 cat >>confdefs.h <<\_ACEOF
7471 #define HAVE_BOEHM_GC 1
7472 _ACEOF
7476 echo "$as_me:$LINENO: result: none" >&5
7477 echo "${ECHO_T}none" >&6
7478 GCOBJS=nogc.lo
7479 GCHDR=no-gc.h
7482 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
7483 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
7484 { (exit 1); exit 1; }; }
7486 esac
7494 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
7498 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
7499 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
7500 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
7501 echo "$as_me:$LINENO: result: $THREADS" >&5
7502 echo "${ECHO_T}$THREADS" >&6
7504 case "$THREADS" in
7505 no | none | single)
7506 THREADS=none
7508 posix | pthreads)
7509 THREADS=posix
7510 case "$host" in
7511 *-*-linux*)
7513 cat >>confdefs.h <<\_ACEOF
7514 #define LINUX_THREADS 1
7515 _ACEOF
7518 esac
7520 win32)
7522 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
7523 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
7524 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
7525 { (exit 1); exit 1; }; }
7528 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
7529 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
7530 { (exit 1); exit 1; }; }
7532 esac
7534 THREADCXXFLAGS=
7535 THREADLDFLAGS=
7536 THREADLIBS=
7537 THREADINCS=
7538 THREADDEPS=
7539 THREADOBJS=
7540 THREADH=
7541 THREADSPEC=
7542 case "$THREADS" in
7543 posix)
7544 case "$host" in
7545 *-*-cygwin*)
7546 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
7548 *-*-freebsd[1234]*)
7549 # Before FreeBSD 5, it didn't have -lpthread (or any library which
7550 # merely adds pthread_* functions) but it does have a -pthread switch
7551 # which is required at link-time to select -lc_r *instead* of -lc.
7552 THREADLDFLAGS=-pthread
7553 # Don't set THREADSPEC here as might be expected since -pthread is
7554 # not processed when found within a spec file, it must come from
7555 # the command line. For now, the user must provide the -pthread
7556 # switch to link code compiled with gcj. In future, consider adding
7557 # support for weak references to pthread_* functions ala gthr.h API.
7558 THREADSPEC='%{!pthread: %eUnder this configuration, the user must provide -pthread when linking.}'
7560 *-*-freebsd*)
7561 # FreeBSD 5 implements a model much closer to other modern UNIX
7562 # which support threads. However, it still does not support
7563 # -lpthread.
7564 THREADLDFLAGS=-pthread
7565 THREADSPEC=-lc_r
7567 alpha*-dec-osf*)
7568 THREADCXXFLAGS=-pthread
7569 # boehm-gc needs some functions from librt, so link that too.
7570 THREADLIBS='-lpthread -lrt'
7571 THREADSPEC='-lpthread -lrt'
7574 THREADLIBS=-lpthread
7575 THREADSPEC=-lpthread
7577 esac
7578 THREADOBJS=posix-threads.lo
7579 THREADH=posix-threads.h
7580 # MIT pthreads doesn't seem to have the mutexattr functions.
7581 # But for now we don't check for it. We just assume you aren't
7582 # using MIT pthreads.
7584 cat >>confdefs.h <<\_ACEOF
7585 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
7586 _ACEOF
7589 # If we're using the Boehm GC, then we happen to know that it
7590 # defines _REENTRANT, so we don't bother. Eww.
7591 if test "$GC" != boehm; then
7593 cat >>confdefs.h <<\_ACEOF
7594 #define _REENTRANT 1
7595 _ACEOF
7599 cat >>confdefs.h <<\_ACEOF
7600 #define _POSIX_PTHREAD_SEMANTICS 1
7601 _ACEOF
7605 win32)
7606 THREADOBJS=win32-threads.lo
7607 THREADH=win32-threads.h
7610 none)
7611 THREADOBJS=no-threads.lo
7612 THREADH=no-threads.h
7614 esac
7615 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
7625 if test -d sysdep; then true; else mkdir sysdep; fi
7626 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
7629 HASH_SYNC_SPEC=
7630 # Hash synchronization is only useful with posix threads right now.
7631 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
7632 HASH_SYNC_SPEC=-fhash-synchronization
7634 cat >>confdefs.h <<\_ACEOF
7635 #define JV_HASH_SYNCHRONIZATION 1
7636 _ACEOF
7644 if test "$GCC" = yes; then
7645 USING_GCC_TRUE=
7646 USING_GCC_FALSE='#'
7647 else
7648 USING_GCC_TRUE='#'
7649 USING_GCC_FALSE=
7652 # We're in the tree with gcc, and need to include some of its headers.
7653 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
7655 # Figure out where generated headers like libgcj-config.h get installed.
7656 gcc_version_trigger=${libgcj_basedir}/../gcc/version.c
7657 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
7658 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
7659 tool_include_dir='$(libdir)/gcc/$(target_noncanonical)/'${gcc_version}/include
7663 if test "x${with_newlib}" = "xyes"; then
7664 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
7665 # may not work correctly, because the compiler may not be able to
7666 # link executables.
7668 # We assume newlib. This lets us hard-code the functions we know
7669 # we'll have.
7671 cat >>confdefs.h <<\_ACEOF
7672 #define HAVE_MEMMOVE 1
7673 _ACEOF
7676 cat >>confdefs.h <<\_ACEOF
7677 #define HAVE_MEMCPY 1
7678 _ACEOF
7681 cat >>confdefs.h <<\_ACEOF
7682 #define HAVE_STRERROR 1
7683 _ACEOF
7686 cat >>confdefs.h <<\_ACEOF
7687 #define HAVE_TIME 1
7688 _ACEOF
7691 cat >>confdefs.h <<\_ACEOF
7692 #define HAVE_GMTIME_R 1
7693 _ACEOF
7696 cat >>confdefs.h <<\_ACEOF
7697 #define HAVE_LOCALTIME_R 1
7698 _ACEOF
7701 cat >>confdefs.h <<\_ACEOF
7702 #define HAVE_USLEEP_DECL 1
7703 _ACEOF
7705 # This is only for POSIX threads.
7707 cat >>confdefs.h <<\_ACEOF
7708 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
7709 _ACEOF
7711 # We also assume we are using gcc, which provides alloca.
7712 cat >>confdefs.h <<\_ACEOF
7713 #define HAVE_ALLOCA 1
7714 _ACEOF
7717 # Assume we do not have getuid and friends.
7719 cat >>confdefs.h <<\_ACEOF
7720 #define NO_GETUID 1
7721 _ACEOF
7723 PLATFORMNET=NoNet
7724 else
7733 for ac_func in strerror ioctl select fstat open fsync sleep opendir
7735 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7736 echo "$as_me:$LINENO: checking for $ac_func" >&5
7737 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7738 if eval "test \"\${$as_ac_var+set}\" = set"; then
7739 echo $ECHO_N "(cached) $ECHO_C" >&6
7740 else
7741 if test x$gcc_no_link = xyes; then
7742 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7743 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7744 { (exit 1); exit 1; }; }
7746 cat >conftest.$ac_ext <<_ACEOF
7747 /* confdefs.h. */
7748 _ACEOF
7749 cat confdefs.h >>conftest.$ac_ext
7750 cat >>conftest.$ac_ext <<_ACEOF
7751 /* end confdefs.h. */
7752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7754 #define $ac_func innocuous_$ac_func
7756 /* System header to define __stub macros and hopefully few prototypes,
7757 which can conflict with char $ac_func (); below.
7758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7759 <limits.h> exists even on freestanding compilers. */
7761 #ifdef __STDC__
7762 # include <limits.h>
7763 #else
7764 # include <assert.h>
7765 #endif
7767 #undef $ac_func
7769 /* Override any gcc2 internal prototype to avoid an error. */
7770 #ifdef __cplusplus
7771 extern "C"
7773 #endif
7774 /* We use char because int might match the return type of a gcc2
7775 builtin and then its argument prototype would still apply. */
7776 char $ac_func ();
7777 /* The GNU C library defines this for functions which it implements
7778 to always fail with ENOSYS. Some functions are actually named
7779 something starting with __ and the normal name is an alias. */
7780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7781 choke me
7782 #else
7783 char (*f) () = $ac_func;
7784 #endif
7785 #ifdef __cplusplus
7787 #endif
7790 main ()
7792 return f != $ac_func;
7794 return 0;
7796 _ACEOF
7797 rm -f conftest.$ac_objext conftest$ac_exeext
7798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7799 (eval $ac_link) 2>conftest.er1
7800 ac_status=$?
7801 grep -v '^ *+' conftest.er1 >conftest.err
7802 rm -f conftest.er1
7803 cat conftest.err >&5
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); } &&
7806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7808 (eval $ac_try) 2>&5
7809 ac_status=$?
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); }; } &&
7812 { ac_try='test -s conftest$ac_exeext'
7813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7814 (eval $ac_try) 2>&5
7815 ac_status=$?
7816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817 (exit $ac_status); }; }; then
7818 eval "$as_ac_var=yes"
7819 else
7820 echo "$as_me: failed program was:" >&5
7821 sed 's/^/| /' conftest.$ac_ext >&5
7823 eval "$as_ac_var=no"
7825 rm -f conftest.err conftest.$ac_objext \
7826 conftest$ac_exeext conftest.$ac_ext
7828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7829 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7830 if test `eval echo '${'$as_ac_var'}'` = yes; then
7831 cat >>confdefs.h <<_ACEOF
7832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7833 _ACEOF
7836 done
7843 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
7845 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7846 echo "$as_me:$LINENO: checking for $ac_func" >&5
7847 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7848 if eval "test \"\${$as_ac_var+set}\" = set"; then
7849 echo $ECHO_N "(cached) $ECHO_C" >&6
7850 else
7851 if test x$gcc_no_link = xyes; then
7852 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7853 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7854 { (exit 1); exit 1; }; }
7856 cat >conftest.$ac_ext <<_ACEOF
7857 /* confdefs.h. */
7858 _ACEOF
7859 cat confdefs.h >>conftest.$ac_ext
7860 cat >>conftest.$ac_ext <<_ACEOF
7861 /* end confdefs.h. */
7862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7864 #define $ac_func innocuous_$ac_func
7866 /* System header to define __stub macros and hopefully few prototypes,
7867 which can conflict with char $ac_func (); below.
7868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7869 <limits.h> exists even on freestanding compilers. */
7871 #ifdef __STDC__
7872 # include <limits.h>
7873 #else
7874 # include <assert.h>
7875 #endif
7877 #undef $ac_func
7879 /* Override any gcc2 internal prototype to avoid an error. */
7880 #ifdef __cplusplus
7881 extern "C"
7883 #endif
7884 /* We use char because int might match the return type of a gcc2
7885 builtin and then its argument prototype would still apply. */
7886 char $ac_func ();
7887 /* The GNU C library defines this for functions which it implements
7888 to always fail with ENOSYS. Some functions are actually named
7889 something starting with __ and the normal name is an alias. */
7890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7891 choke me
7892 #else
7893 char (*f) () = $ac_func;
7894 #endif
7895 #ifdef __cplusplus
7897 #endif
7900 main ()
7902 return f != $ac_func;
7904 return 0;
7906 _ACEOF
7907 rm -f conftest.$ac_objext conftest$ac_exeext
7908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7909 (eval $ac_link) 2>conftest.er1
7910 ac_status=$?
7911 grep -v '^ *+' conftest.er1 >conftest.err
7912 rm -f conftest.er1
7913 cat conftest.err >&5
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); } &&
7916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7918 (eval $ac_try) 2>&5
7919 ac_status=$?
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); }; } &&
7922 { ac_try='test -s conftest$ac_exeext'
7923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7924 (eval $ac_try) 2>&5
7925 ac_status=$?
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); }; }; then
7928 eval "$as_ac_var=yes"
7929 else
7930 echo "$as_me: failed program was:" >&5
7931 sed 's/^/| /' conftest.$ac_ext >&5
7933 eval "$as_ac_var=no"
7935 rm -f conftest.err conftest.$ac_objext \
7936 conftest$ac_exeext conftest.$ac_ext
7938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7939 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7940 if test `eval echo '${'$as_ac_var'}'` = yes; then
7941 cat >>confdefs.h <<_ACEOF
7942 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7943 _ACEOF
7946 done
7957 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
7959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7960 echo "$as_me:$LINENO: checking for $ac_func" >&5
7961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7962 if eval "test \"\${$as_ac_var+set}\" = set"; then
7963 echo $ECHO_N "(cached) $ECHO_C" >&6
7964 else
7965 if test x$gcc_no_link = xyes; then
7966 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7967 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7968 { (exit 1); exit 1; }; }
7970 cat >conftest.$ac_ext <<_ACEOF
7971 /* confdefs.h. */
7972 _ACEOF
7973 cat confdefs.h >>conftest.$ac_ext
7974 cat >>conftest.$ac_ext <<_ACEOF
7975 /* end confdefs.h. */
7976 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7978 #define $ac_func innocuous_$ac_func
7980 /* System header to define __stub macros and hopefully few prototypes,
7981 which can conflict with char $ac_func (); below.
7982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7983 <limits.h> exists even on freestanding compilers. */
7985 #ifdef __STDC__
7986 # include <limits.h>
7987 #else
7988 # include <assert.h>
7989 #endif
7991 #undef $ac_func
7993 /* Override any gcc2 internal prototype to avoid an error. */
7994 #ifdef __cplusplus
7995 extern "C"
7997 #endif
7998 /* We use char because int might match the return type of a gcc2
7999 builtin and then its argument prototype would still apply. */
8000 char $ac_func ();
8001 /* The GNU C library defines this for functions which it implements
8002 to always fail with ENOSYS. Some functions are actually named
8003 something starting with __ and the normal name is an alias. */
8004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8005 choke me
8006 #else
8007 char (*f) () = $ac_func;
8008 #endif
8009 #ifdef __cplusplus
8011 #endif
8014 main ()
8016 return f != $ac_func;
8018 return 0;
8020 _ACEOF
8021 rm -f conftest.$ac_objext conftest$ac_exeext
8022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8023 (eval $ac_link) 2>conftest.er1
8024 ac_status=$?
8025 grep -v '^ *+' conftest.er1 >conftest.err
8026 rm -f conftest.er1
8027 cat conftest.err >&5
8028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029 (exit $ac_status); } &&
8030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8032 (eval $ac_try) 2>&5
8033 ac_status=$?
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); }; } &&
8036 { ac_try='test -s conftest$ac_exeext'
8037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8038 (eval $ac_try) 2>&5
8039 ac_status=$?
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); }; }; then
8042 eval "$as_ac_var=yes"
8043 else
8044 echo "$as_me: failed program was:" >&5
8045 sed 's/^/| /' conftest.$ac_ext >&5
8047 eval "$as_ac_var=no"
8049 rm -f conftest.err conftest.$ac_objext \
8050 conftest$ac_exeext conftest.$ac_ext
8052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8053 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8054 if test `eval echo '${'$as_ac_var'}'` = yes; then
8055 cat >>confdefs.h <<_ACEOF
8056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8057 _ACEOF
8060 done
8064 for ac_func in nl_langinfo setlocale
8066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8067 echo "$as_me:$LINENO: checking for $ac_func" >&5
8068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8069 if eval "test \"\${$as_ac_var+set}\" = set"; then
8070 echo $ECHO_N "(cached) $ECHO_C" >&6
8071 else
8072 if test x$gcc_no_link = xyes; then
8073 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8074 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8075 { (exit 1); exit 1; }; }
8077 cat >conftest.$ac_ext <<_ACEOF
8078 /* confdefs.h. */
8079 _ACEOF
8080 cat confdefs.h >>conftest.$ac_ext
8081 cat >>conftest.$ac_ext <<_ACEOF
8082 /* end confdefs.h. */
8083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8085 #define $ac_func innocuous_$ac_func
8087 /* System header to define __stub macros and hopefully few prototypes,
8088 which can conflict with char $ac_func (); below.
8089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8090 <limits.h> exists even on freestanding compilers. */
8092 #ifdef __STDC__
8093 # include <limits.h>
8094 #else
8095 # include <assert.h>
8096 #endif
8098 #undef $ac_func
8100 /* Override any gcc2 internal prototype to avoid an error. */
8101 #ifdef __cplusplus
8102 extern "C"
8104 #endif
8105 /* We use char because int might match the return type of a gcc2
8106 builtin and then its argument prototype would still apply. */
8107 char $ac_func ();
8108 /* The GNU C library defines this for functions which it implements
8109 to always fail with ENOSYS. Some functions are actually named
8110 something starting with __ and the normal name is an alias. */
8111 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8112 choke me
8113 #else
8114 char (*f) () = $ac_func;
8115 #endif
8116 #ifdef __cplusplus
8118 #endif
8121 main ()
8123 return f != $ac_func;
8125 return 0;
8127 _ACEOF
8128 rm -f conftest.$ac_objext conftest$ac_exeext
8129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8130 (eval $ac_link) 2>conftest.er1
8131 ac_status=$?
8132 grep -v '^ *+' conftest.er1 >conftest.err
8133 rm -f conftest.er1
8134 cat conftest.err >&5
8135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136 (exit $ac_status); } &&
8137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8139 (eval $ac_try) 2>&5
8140 ac_status=$?
8141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142 (exit $ac_status); }; } &&
8143 { ac_try='test -s conftest$ac_exeext'
8144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8145 (eval $ac_try) 2>&5
8146 ac_status=$?
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); }; }; then
8149 eval "$as_ac_var=yes"
8150 else
8151 echo "$as_me: failed program was:" >&5
8152 sed 's/^/| /' conftest.$ac_ext >&5
8154 eval "$as_ac_var=no"
8156 rm -f conftest.err conftest.$ac_objext \
8157 conftest$ac_exeext conftest.$ac_ext
8159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8160 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8161 if test `eval echo '${'$as_ac_var'}'` = yes; then
8162 cat >>confdefs.h <<_ACEOF
8163 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8164 _ACEOF
8167 done
8171 for ac_func in inet_aton inet_addr
8173 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8174 echo "$as_me:$LINENO: checking for $ac_func" >&5
8175 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8176 if eval "test \"\${$as_ac_var+set}\" = set"; then
8177 echo $ECHO_N "(cached) $ECHO_C" >&6
8178 else
8179 if test x$gcc_no_link = xyes; then
8180 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8181 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8182 { (exit 1); exit 1; }; }
8184 cat >conftest.$ac_ext <<_ACEOF
8185 /* confdefs.h. */
8186 _ACEOF
8187 cat confdefs.h >>conftest.$ac_ext
8188 cat >>conftest.$ac_ext <<_ACEOF
8189 /* end confdefs.h. */
8190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8192 #define $ac_func innocuous_$ac_func
8194 /* System header to define __stub macros and hopefully few prototypes,
8195 which can conflict with char $ac_func (); below.
8196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8197 <limits.h> exists even on freestanding compilers. */
8199 #ifdef __STDC__
8200 # include <limits.h>
8201 #else
8202 # include <assert.h>
8203 #endif
8205 #undef $ac_func
8207 /* Override any gcc2 internal prototype to avoid an error. */
8208 #ifdef __cplusplus
8209 extern "C"
8211 #endif
8212 /* We use char because int might match the return type of a gcc2
8213 builtin and then its argument prototype would still apply. */
8214 char $ac_func ();
8215 /* The GNU C library defines this for functions which it implements
8216 to always fail with ENOSYS. Some functions are actually named
8217 something starting with __ and the normal name is an alias. */
8218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8219 choke me
8220 #else
8221 char (*f) () = $ac_func;
8222 #endif
8223 #ifdef __cplusplus
8225 #endif
8228 main ()
8230 return f != $ac_func;
8232 return 0;
8234 _ACEOF
8235 rm -f conftest.$ac_objext conftest$ac_exeext
8236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8237 (eval $ac_link) 2>conftest.er1
8238 ac_status=$?
8239 grep -v '^ *+' conftest.er1 >conftest.err
8240 rm -f conftest.er1
8241 cat conftest.err >&5
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); } &&
8244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8246 (eval $ac_try) 2>&5
8247 ac_status=$?
8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249 (exit $ac_status); }; } &&
8250 { ac_try='test -s conftest$ac_exeext'
8251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8252 (eval $ac_try) 2>&5
8253 ac_status=$?
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); }; }; then
8256 eval "$as_ac_var=yes"
8257 else
8258 echo "$as_me: failed program was:" >&5
8259 sed 's/^/| /' conftest.$ac_ext >&5
8261 eval "$as_ac_var=no"
8263 rm -f conftest.err conftest.$ac_objext \
8264 conftest$ac_exeext conftest.$ac_ext
8266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8267 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8268 if test `eval echo '${'$as_ac_var'}'` = yes; then
8269 cat >>confdefs.h <<_ACEOF
8270 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8271 _ACEOF
8272 break
8274 done
8279 for ac_func in inet_pton uname inet_ntoa
8281 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8282 echo "$as_me:$LINENO: checking for $ac_func" >&5
8283 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8284 if eval "test \"\${$as_ac_var+set}\" = set"; then
8285 echo $ECHO_N "(cached) $ECHO_C" >&6
8286 else
8287 if test x$gcc_no_link = xyes; then
8288 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8289 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8290 { (exit 1); exit 1; }; }
8292 cat >conftest.$ac_ext <<_ACEOF
8293 /* confdefs.h. */
8294 _ACEOF
8295 cat confdefs.h >>conftest.$ac_ext
8296 cat >>conftest.$ac_ext <<_ACEOF
8297 /* end confdefs.h. */
8298 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8299 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8300 #define $ac_func innocuous_$ac_func
8302 /* System header to define __stub macros and hopefully few prototypes,
8303 which can conflict with char $ac_func (); below.
8304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8305 <limits.h> exists even on freestanding compilers. */
8307 #ifdef __STDC__
8308 # include <limits.h>
8309 #else
8310 # include <assert.h>
8311 #endif
8313 #undef $ac_func
8315 /* Override any gcc2 internal prototype to avoid an error. */
8316 #ifdef __cplusplus
8317 extern "C"
8319 #endif
8320 /* We use char because int might match the return type of a gcc2
8321 builtin and then its argument prototype would still apply. */
8322 char $ac_func ();
8323 /* The GNU C library defines this for functions which it implements
8324 to always fail with ENOSYS. Some functions are actually named
8325 something starting with __ and the normal name is an alias. */
8326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8327 choke me
8328 #else
8329 char (*f) () = $ac_func;
8330 #endif
8331 #ifdef __cplusplus
8333 #endif
8336 main ()
8338 return f != $ac_func;
8340 return 0;
8342 _ACEOF
8343 rm -f conftest.$ac_objext conftest$ac_exeext
8344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8345 (eval $ac_link) 2>conftest.er1
8346 ac_status=$?
8347 grep -v '^ *+' conftest.er1 >conftest.err
8348 rm -f conftest.er1
8349 cat conftest.err >&5
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); } &&
8352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8354 (eval $ac_try) 2>&5
8355 ac_status=$?
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); }; } &&
8358 { ac_try='test -s conftest$ac_exeext'
8359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8360 (eval $ac_try) 2>&5
8361 ac_status=$?
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); }; }; then
8364 eval "$as_ac_var=yes"
8365 else
8366 echo "$as_me: failed program was:" >&5
8367 sed 's/^/| /' conftest.$ac_ext >&5
8369 eval "$as_ac_var=no"
8371 rm -f conftest.err conftest.$ac_objext \
8372 conftest$ac_exeext conftest.$ac_ext
8374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8375 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8376 if test `eval echo '${'$as_ac_var'}'` = yes; then
8377 cat >>confdefs.h <<_ACEOF
8378 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8379 _ACEOF
8382 done
8389 for ac_func in fork execvp pipe sigaction ftruncate
8391 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8392 echo "$as_me:$LINENO: checking for $ac_func" >&5
8393 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8394 if eval "test \"\${$as_ac_var+set}\" = set"; then
8395 echo $ECHO_N "(cached) $ECHO_C" >&6
8396 else
8397 if test x$gcc_no_link = xyes; then
8398 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8399 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8400 { (exit 1); exit 1; }; }
8402 cat >conftest.$ac_ext <<_ACEOF
8403 /* confdefs.h. */
8404 _ACEOF
8405 cat confdefs.h >>conftest.$ac_ext
8406 cat >>conftest.$ac_ext <<_ACEOF
8407 /* end confdefs.h. */
8408 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8410 #define $ac_func innocuous_$ac_func
8412 /* System header to define __stub macros and hopefully few prototypes,
8413 which can conflict with char $ac_func (); below.
8414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8415 <limits.h> exists even on freestanding compilers. */
8417 #ifdef __STDC__
8418 # include <limits.h>
8419 #else
8420 # include <assert.h>
8421 #endif
8423 #undef $ac_func
8425 /* Override any gcc2 internal prototype to avoid an error. */
8426 #ifdef __cplusplus
8427 extern "C"
8429 #endif
8430 /* We use char because int might match the return type of a gcc2
8431 builtin and then its argument prototype would still apply. */
8432 char $ac_func ();
8433 /* The GNU C library defines this for functions which it implements
8434 to always fail with ENOSYS. Some functions are actually named
8435 something starting with __ and the normal name is an alias. */
8436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8437 choke me
8438 #else
8439 char (*f) () = $ac_func;
8440 #endif
8441 #ifdef __cplusplus
8443 #endif
8446 main ()
8448 return f != $ac_func;
8450 return 0;
8452 _ACEOF
8453 rm -f conftest.$ac_objext conftest$ac_exeext
8454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8455 (eval $ac_link) 2>conftest.er1
8456 ac_status=$?
8457 grep -v '^ *+' conftest.er1 >conftest.err
8458 rm -f conftest.er1
8459 cat conftest.err >&5
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); } &&
8462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8464 (eval $ac_try) 2>&5
8465 ac_status=$?
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); }; } &&
8468 { ac_try='test -s conftest$ac_exeext'
8469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8470 (eval $ac_try) 2>&5
8471 ac_status=$?
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); }; }; then
8474 eval "$as_ac_var=yes"
8475 else
8476 echo "$as_me: failed program was:" >&5
8477 sed 's/^/| /' conftest.$ac_ext >&5
8479 eval "$as_ac_var=no"
8481 rm -f conftest.err conftest.$ac_objext \
8482 conftest$ac_exeext conftest.$ac_ext
8484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8485 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8486 if test `eval echo '${'$as_ac_var'}'` = yes; then
8487 cat >>confdefs.h <<_ACEOF
8488 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8489 _ACEOF
8492 done
8494 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8495 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8496 if test "${ac_cv_header_stdc+set}" = set; then
8497 echo $ECHO_N "(cached) $ECHO_C" >&6
8498 else
8499 cat >conftest.$ac_ext <<_ACEOF
8500 /* confdefs.h. */
8501 _ACEOF
8502 cat confdefs.h >>conftest.$ac_ext
8503 cat >>conftest.$ac_ext <<_ACEOF
8504 /* end confdefs.h. */
8505 #include <stdlib.h>
8506 #include <stdarg.h>
8507 #include <string.h>
8508 #include <float.h>
8511 main ()
8515 return 0;
8517 _ACEOF
8518 rm -f conftest.$ac_objext
8519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8520 (eval $ac_compile) 2>conftest.er1
8521 ac_status=$?
8522 grep -v '^ *+' conftest.er1 >conftest.err
8523 rm -f conftest.er1
8524 cat conftest.err >&5
8525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526 (exit $ac_status); } &&
8527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8529 (eval $ac_try) 2>&5
8530 ac_status=$?
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); }; } &&
8533 { ac_try='test -s conftest.$ac_objext'
8534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8535 (eval $ac_try) 2>&5
8536 ac_status=$?
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); }; }; then
8539 ac_cv_header_stdc=yes
8540 else
8541 echo "$as_me: failed program was:" >&5
8542 sed 's/^/| /' conftest.$ac_ext >&5
8544 ac_cv_header_stdc=no
8546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8548 if test $ac_cv_header_stdc = yes; then
8549 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8550 cat >conftest.$ac_ext <<_ACEOF
8551 /* confdefs.h. */
8552 _ACEOF
8553 cat confdefs.h >>conftest.$ac_ext
8554 cat >>conftest.$ac_ext <<_ACEOF
8555 /* end confdefs.h. */
8556 #include <string.h>
8558 _ACEOF
8559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8560 $EGREP "memchr" >/dev/null 2>&1; then
8562 else
8563 ac_cv_header_stdc=no
8565 rm -f conftest*
8569 if test $ac_cv_header_stdc = yes; then
8570 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8571 cat >conftest.$ac_ext <<_ACEOF
8572 /* confdefs.h. */
8573 _ACEOF
8574 cat confdefs.h >>conftest.$ac_ext
8575 cat >>conftest.$ac_ext <<_ACEOF
8576 /* end confdefs.h. */
8577 #include <stdlib.h>
8579 _ACEOF
8580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8581 $EGREP "free" >/dev/null 2>&1; then
8583 else
8584 ac_cv_header_stdc=no
8586 rm -f conftest*
8590 if test $ac_cv_header_stdc = yes; then
8591 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8592 if test "$cross_compiling" = yes; then
8594 else
8595 cat >conftest.$ac_ext <<_ACEOF
8596 /* confdefs.h. */
8597 _ACEOF
8598 cat confdefs.h >>conftest.$ac_ext
8599 cat >>conftest.$ac_ext <<_ACEOF
8600 /* end confdefs.h. */
8601 #include <ctype.h>
8602 #if ((' ' & 0x0FF) == 0x020)
8603 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8604 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8605 #else
8606 # define ISLOWER(c) \
8607 (('a' <= (c) && (c) <= 'i') \
8608 || ('j' <= (c) && (c) <= 'r') \
8609 || ('s' <= (c) && (c) <= 'z'))
8610 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8611 #endif
8613 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8615 main ()
8617 int i;
8618 for (i = 0; i < 256; i++)
8619 if (XOR (islower (i), ISLOWER (i))
8620 || toupper (i) != TOUPPER (i))
8621 exit(2);
8622 exit (0);
8624 _ACEOF
8625 rm -f conftest$ac_exeext
8626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8627 (eval $ac_link) 2>&5
8628 ac_status=$?
8629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8632 (eval $ac_try) 2>&5
8633 ac_status=$?
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); }; }; then
8637 else
8638 echo "$as_me: program exited with status $ac_status" >&5
8639 echo "$as_me: failed program was:" >&5
8640 sed 's/^/| /' conftest.$ac_ext >&5
8642 ( exit $ac_status )
8643 ac_cv_header_stdc=no
8645 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8649 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8650 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8651 if test $ac_cv_header_stdc = yes; then
8653 cat >>confdefs.h <<\_ACEOF
8654 #define STDC_HEADERS 1
8655 _ACEOF
8659 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8669 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8670 inttypes.h stdint.h unistd.h
8672 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8673 echo "$as_me:$LINENO: checking for $ac_header" >&5
8674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8676 echo $ECHO_N "(cached) $ECHO_C" >&6
8677 else
8678 cat >conftest.$ac_ext <<_ACEOF
8679 /* confdefs.h. */
8680 _ACEOF
8681 cat confdefs.h >>conftest.$ac_ext
8682 cat >>conftest.$ac_ext <<_ACEOF
8683 /* end confdefs.h. */
8684 $ac_includes_default
8686 #include <$ac_header>
8687 _ACEOF
8688 rm -f conftest.$ac_objext
8689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8690 (eval $ac_compile) 2>conftest.er1
8691 ac_status=$?
8692 grep -v '^ *+' conftest.er1 >conftest.err
8693 rm -f conftest.er1
8694 cat conftest.err >&5
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); } &&
8697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8699 (eval $ac_try) 2>&5
8700 ac_status=$?
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); }; } &&
8703 { ac_try='test -s conftest.$ac_objext'
8704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8705 (eval $ac_try) 2>&5
8706 ac_status=$?
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); }; }; then
8709 eval "$as_ac_Header=yes"
8710 else
8711 echo "$as_me: failed program was:" >&5
8712 sed 's/^/| /' conftest.$ac_ext >&5
8714 eval "$as_ac_Header=no"
8716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8720 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8721 cat >>confdefs.h <<_ACEOF
8722 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8723 _ACEOF
8727 done
8733 for ac_header in execinfo.h unistd.h dlfcn.h
8735 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8737 echo "$as_me:$LINENO: checking for $ac_header" >&5
8738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8740 echo $ECHO_N "(cached) $ECHO_C" >&6
8742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8744 else
8745 # Is the header compilable?
8746 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8747 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8748 cat >conftest.$ac_ext <<_ACEOF
8749 /* confdefs.h. */
8750 _ACEOF
8751 cat confdefs.h >>conftest.$ac_ext
8752 cat >>conftest.$ac_ext <<_ACEOF
8753 /* end confdefs.h. */
8754 $ac_includes_default
8755 #include <$ac_header>
8756 _ACEOF
8757 rm -f conftest.$ac_objext
8758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8759 (eval $ac_compile) 2>conftest.er1
8760 ac_status=$?
8761 grep -v '^ *+' conftest.er1 >conftest.err
8762 rm -f conftest.er1
8763 cat conftest.err >&5
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); } &&
8766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8768 (eval $ac_try) 2>&5
8769 ac_status=$?
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); }; } &&
8772 { ac_try='test -s conftest.$ac_objext'
8773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8774 (eval $ac_try) 2>&5
8775 ac_status=$?
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); }; }; then
8778 ac_header_compiler=yes
8779 else
8780 echo "$as_me: failed program was:" >&5
8781 sed 's/^/| /' conftest.$ac_ext >&5
8783 ac_header_compiler=no
8785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8786 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8787 echo "${ECHO_T}$ac_header_compiler" >&6
8789 # Is the header present?
8790 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8791 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8792 cat >conftest.$ac_ext <<_ACEOF
8793 /* confdefs.h. */
8794 _ACEOF
8795 cat confdefs.h >>conftest.$ac_ext
8796 cat >>conftest.$ac_ext <<_ACEOF
8797 /* end confdefs.h. */
8798 #include <$ac_header>
8799 _ACEOF
8800 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8801 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8802 ac_status=$?
8803 grep -v '^ *+' conftest.er1 >conftest.err
8804 rm -f conftest.er1
8805 cat conftest.err >&5
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); } >/dev/null; then
8808 if test -s conftest.err; then
8809 ac_cpp_err=$ac_c_preproc_warn_flag
8810 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8811 else
8812 ac_cpp_err=
8814 else
8815 ac_cpp_err=yes
8817 if test -z "$ac_cpp_err"; then
8818 ac_header_preproc=yes
8819 else
8820 echo "$as_me: failed program was:" >&5
8821 sed 's/^/| /' conftest.$ac_ext >&5
8823 ac_header_preproc=no
8825 rm -f conftest.err conftest.$ac_ext
8826 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8827 echo "${ECHO_T}$ac_header_preproc" >&6
8829 # So? What about this header?
8830 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8831 yes:no: )
8832 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8833 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8835 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8836 ac_header_preproc=yes
8838 no:yes:* )
8839 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8840 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8841 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8842 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8843 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8844 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8845 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8846 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8848 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8849 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8850 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8852 cat <<\_ASBOX
8853 ## ------------------------------------------ ##
8854 ## Report this to the AC_PACKAGE_NAME lists. ##
8855 ## ------------------------------------------ ##
8856 _ASBOX
8858 sed "s/^/$as_me: WARNING: /" >&2
8860 esac
8861 echo "$as_me:$LINENO: checking for $ac_header" >&5
8862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8863 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8864 echo $ECHO_N "(cached) $ECHO_C" >&6
8865 else
8866 eval "$as_ac_Header=\$ac_header_preproc"
8868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8869 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8872 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8873 cat >>confdefs.h <<_ACEOF
8874 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8875 _ACEOF
8879 done
8881 echo "$as_me:$LINENO: checking for backtrace" >&5
8882 echo $ECHO_N "checking for backtrace... $ECHO_C" >&6
8883 if test "${ac_cv_func_backtrace+set}" = set; then
8884 echo $ECHO_N "(cached) $ECHO_C" >&6
8885 else
8886 if test x$gcc_no_link = xyes; then
8887 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8888 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8889 { (exit 1); exit 1; }; }
8891 cat >conftest.$ac_ext <<_ACEOF
8892 /* confdefs.h. */
8893 _ACEOF
8894 cat confdefs.h >>conftest.$ac_ext
8895 cat >>conftest.$ac_ext <<_ACEOF
8896 /* end confdefs.h. */
8897 /* Define backtrace to an innocuous variant, in case <limits.h> declares backtrace.
8898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8899 #define backtrace innocuous_backtrace
8901 /* System header to define __stub macros and hopefully few prototypes,
8902 which can conflict with char backtrace (); below.
8903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8904 <limits.h> exists even on freestanding compilers. */
8906 #ifdef __STDC__
8907 # include <limits.h>
8908 #else
8909 # include <assert.h>
8910 #endif
8912 #undef backtrace
8914 /* Override any gcc2 internal prototype to avoid an error. */
8915 #ifdef __cplusplus
8916 extern "C"
8918 #endif
8919 /* We use char because int might match the return type of a gcc2
8920 builtin and then its argument prototype would still apply. */
8921 char backtrace ();
8922 /* The GNU C library defines this for functions which it implements
8923 to always fail with ENOSYS. Some functions are actually named
8924 something starting with __ and the normal name is an alias. */
8925 #if defined (__stub_backtrace) || defined (__stub___backtrace)
8926 choke me
8927 #else
8928 char (*f) () = backtrace;
8929 #endif
8930 #ifdef __cplusplus
8932 #endif
8935 main ()
8937 return f != backtrace;
8939 return 0;
8941 _ACEOF
8942 rm -f conftest.$ac_objext conftest$ac_exeext
8943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8944 (eval $ac_link) 2>conftest.er1
8945 ac_status=$?
8946 grep -v '^ *+' conftest.er1 >conftest.err
8947 rm -f conftest.er1
8948 cat conftest.err >&5
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); } &&
8951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8953 (eval $ac_try) 2>&5
8954 ac_status=$?
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); }; } &&
8957 { ac_try='test -s conftest$ac_exeext'
8958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8959 (eval $ac_try) 2>&5
8960 ac_status=$?
8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962 (exit $ac_status); }; }; then
8963 ac_cv_func_backtrace=yes
8964 else
8965 echo "$as_me: failed program was:" >&5
8966 sed 's/^/| /' conftest.$ac_ext >&5
8968 ac_cv_func_backtrace=no
8970 rm -f conftest.err conftest.$ac_objext \
8971 conftest$ac_exeext conftest.$ac_ext
8973 echo "$as_me:$LINENO: result: $ac_cv_func_backtrace" >&5
8974 echo "${ECHO_T}$ac_cv_func_backtrace" >&6
8975 if test $ac_cv_func_backtrace = yes; then
8977 case "$host" in
8978 ia64-*-linux*)
8979 # Has broken backtrace()
8981 mips*-*-linux*)
8982 # Has broken backtrace(), but we supply our own.
8983 if test -d sysdep; then true; else mkdir -p sysdep; fi
8984 EXTRA_CC_FILES="${EXTRA_CC_FILES} sysdep/dwarf2-backtrace.cc"
8986 cat >>confdefs.h <<\_ACEOF
8987 #define HAVE_BACKTRACE 1
8988 _ACEOF
8993 cat >>confdefs.h <<\_ACEOF
8994 #define HAVE_BACKTRACE 1
8995 _ACEOF
8998 esac
9000 else
9002 case "$host" in
9003 *mingw*)
9004 # Has backtrace() defined in libgcj itself
9006 cat >>confdefs.h <<\_ACEOF
9007 #define HAVE_BACKTRACE 1
9008 _ACEOF
9011 esac
9016 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
9017 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
9018 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
9019 echo $ECHO_N "(cached) $ECHO_C" >&6
9020 else
9021 ac_check_lib_save_LIBS=$LIBS
9022 LIBS="-ldl $LIBS"
9023 if test x$gcc_no_link = xyes; then
9024 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9025 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9026 { (exit 1); exit 1; }; }
9028 cat >conftest.$ac_ext <<_ACEOF
9029 /* confdefs.h. */
9030 _ACEOF
9031 cat confdefs.h >>conftest.$ac_ext
9032 cat >>conftest.$ac_ext <<_ACEOF
9033 /* end confdefs.h. */
9035 /* Override any gcc2 internal prototype to avoid an error. */
9036 #ifdef __cplusplus
9037 extern "C"
9038 #endif
9039 /* We use char because int might match the return type of a gcc2
9040 builtin and then its argument prototype would still apply. */
9041 char dladdr ();
9043 main ()
9045 dladdr ();
9047 return 0;
9049 _ACEOF
9050 rm -f conftest.$ac_objext conftest$ac_exeext
9051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9052 (eval $ac_link) 2>conftest.er1
9053 ac_status=$?
9054 grep -v '^ *+' conftest.er1 >conftest.err
9055 rm -f conftest.er1
9056 cat conftest.err >&5
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); } &&
9059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9061 (eval $ac_try) 2>&5
9062 ac_status=$?
9063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064 (exit $ac_status); }; } &&
9065 { ac_try='test -s conftest$ac_exeext'
9066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9067 (eval $ac_try) 2>&5
9068 ac_status=$?
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); }; }; then
9071 ac_cv_lib_dl_dladdr=yes
9072 else
9073 echo "$as_me: failed program was:" >&5
9074 sed 's/^/| /' conftest.$ac_ext >&5
9076 ac_cv_lib_dl_dladdr=no
9078 rm -f conftest.err conftest.$ac_objext \
9079 conftest$ac_exeext conftest.$ac_ext
9080 LIBS=$ac_check_lib_save_LIBS
9082 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
9083 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
9084 if test $ac_cv_lib_dl_dladdr = yes; then
9086 if test "x${disable_dladdr}" = "xyes"; then
9087 #Broken dladdr().
9088 true
9089 else
9091 cat >>confdefs.h <<\_ACEOF
9092 #define HAVE_DLADDR 1
9093 _ACEOF
9099 if test x"$build" = x"$host"; then
9100 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
9101 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
9102 if test "${ac_cv_file__proc_self_exe+set}" = set; then
9103 echo $ECHO_N "(cached) $ECHO_C" >&6
9104 else
9105 test "$cross_compiling" = yes &&
9106 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
9107 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9108 { (exit 1); exit 1; }; }
9109 if test -r "/proc/self/exe"; then
9110 ac_cv_file__proc_self_exe=yes
9111 else
9112 ac_cv_file__proc_self_exe=no
9115 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
9116 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
9117 if test $ac_cv_file__proc_self_exe = yes; then
9119 cat >>confdefs.h <<_ACEOF
9120 #define HAVE__PROC_SELF_EXE 1
9121 _ACEOF
9125 cat >>confdefs.h <<\_ACEOF
9126 #define HAVE_PROC_SELF_EXE 1
9127 _ACEOF
9131 else
9132 case $host in
9133 *-linux*)
9135 cat >>confdefs.h <<\_ACEOF
9136 #define HAVE_PROC_SELF_EXE 1
9137 _ACEOF
9140 esac
9145 am_cv_lib_iconv_ldpath=
9147 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
9148 if test "${with_libiconv_prefix+set}" = set; then
9149 withval="$with_libiconv_prefix"
9151 for dir in `echo "$withval" | tr : ' '`; do
9152 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
9153 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
9154 done
9158 echo "$as_me:$LINENO: checking for iconv" >&5
9159 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
9160 if test "${am_cv_func_iconv+set}" = set; then
9161 echo $ECHO_N "(cached) $ECHO_C" >&6
9162 else
9164 am_cv_func_iconv="no, consider installing GNU libiconv"
9165 am_cv_lib_iconv=no
9166 if test x$gcc_no_link = xyes; then
9167 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9168 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9169 { (exit 1); exit 1; }; }
9171 cat >conftest.$ac_ext <<_ACEOF
9172 /* confdefs.h. */
9173 _ACEOF
9174 cat confdefs.h >>conftest.$ac_ext
9175 cat >>conftest.$ac_ext <<_ACEOF
9176 /* end confdefs.h. */
9177 #include <stdlib.h>
9178 #include <iconv.h>
9180 main ()
9182 iconv_t cd = iconv_open("","");
9183 iconv(cd,NULL,NULL,NULL,NULL);
9184 iconv_close(cd);
9186 return 0;
9188 _ACEOF
9189 rm -f conftest.$ac_objext conftest$ac_exeext
9190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9191 (eval $ac_link) 2>conftest.er1
9192 ac_status=$?
9193 grep -v '^ *+' conftest.er1 >conftest.err
9194 rm -f conftest.er1
9195 cat conftest.err >&5
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); } &&
9198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9200 (eval $ac_try) 2>&5
9201 ac_status=$?
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); }; } &&
9204 { ac_try='test -s conftest$ac_exeext'
9205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9206 (eval $ac_try) 2>&5
9207 ac_status=$?
9208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); }; }; then
9210 am_cv_func_iconv=yes
9211 else
9212 echo "$as_me: failed program was:" >&5
9213 sed 's/^/| /' conftest.$ac_ext >&5
9216 rm -f conftest.err conftest.$ac_objext \
9217 conftest$ac_exeext conftest.$ac_ext
9218 if test "$am_cv_func_iconv" != yes; then
9219 am_save_LIBS="$LIBS"
9220 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
9221 if test x$gcc_no_link = xyes; then
9222 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9223 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9224 { (exit 1); exit 1; }; }
9226 cat >conftest.$ac_ext <<_ACEOF
9227 /* confdefs.h. */
9228 _ACEOF
9229 cat confdefs.h >>conftest.$ac_ext
9230 cat >>conftest.$ac_ext <<_ACEOF
9231 /* end confdefs.h. */
9232 #include <stdlib.h>
9233 #include <iconv.h>
9235 main ()
9237 iconv_t cd = iconv_open("","");
9238 iconv(cd,NULL,NULL,NULL,NULL);
9239 iconv_close(cd);
9241 return 0;
9243 _ACEOF
9244 rm -f conftest.$ac_objext conftest$ac_exeext
9245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9246 (eval $ac_link) 2>conftest.er1
9247 ac_status=$?
9248 grep -v '^ *+' conftest.er1 >conftest.err
9249 rm -f conftest.er1
9250 cat conftest.err >&5
9251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252 (exit $ac_status); } &&
9253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255 (eval $ac_try) 2>&5
9256 ac_status=$?
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); }; } &&
9259 { ac_try='test -s conftest$ac_exeext'
9260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9261 (eval $ac_try) 2>&5
9262 ac_status=$?
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 (exit $ac_status); }; }; then
9265 am_cv_lib_iconv=yes
9266 am_cv_func_iconv=yes
9267 else
9268 echo "$as_me: failed program was:" >&5
9269 sed 's/^/| /' conftest.$ac_ext >&5
9272 rm -f conftest.err conftest.$ac_objext \
9273 conftest$ac_exeext conftest.$ac_ext
9274 LIBS="$am_save_LIBS"
9278 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9279 echo "${ECHO_T}$am_cv_func_iconv" >&6
9280 if test "$am_cv_func_iconv" = yes; then
9282 cat >>confdefs.h <<\_ACEOF
9283 #define HAVE_ICONV 1
9284 _ACEOF
9286 echo "$as_me:$LINENO: checking for iconv declaration" >&5
9287 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
9288 if test "${am_cv_proto_iconv+set}" = set; then
9289 echo $ECHO_N "(cached) $ECHO_C" >&6
9290 else
9292 cat >conftest.$ac_ext <<_ACEOF
9293 /* confdefs.h. */
9294 _ACEOF
9295 cat confdefs.h >>conftest.$ac_ext
9296 cat >>conftest.$ac_ext <<_ACEOF
9297 /* end confdefs.h. */
9299 #include <stdlib.h>
9300 #include <iconv.h>
9301 extern
9302 #ifdef __cplusplus
9304 #endif
9305 #if defined(__STDC__) || defined(__cplusplus)
9306 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9307 #else
9308 size_t iconv();
9309 #endif
9312 main ()
9316 return 0;
9318 _ACEOF
9319 rm -f conftest.$ac_objext
9320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9321 (eval $ac_compile) 2>conftest.er1
9322 ac_status=$?
9323 grep -v '^ *+' conftest.er1 >conftest.err
9324 rm -f conftest.er1
9325 cat conftest.err >&5
9326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327 (exit $ac_status); } &&
9328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9330 (eval $ac_try) 2>&5
9331 ac_status=$?
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); }; } &&
9334 { ac_try='test -s conftest.$ac_objext'
9335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9336 (eval $ac_try) 2>&5
9337 ac_status=$?
9338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339 (exit $ac_status); }; }; then
9340 am_cv_proto_iconv_arg1=""
9341 else
9342 echo "$as_me: failed program was:" >&5
9343 sed 's/^/| /' conftest.$ac_ext >&5
9345 am_cv_proto_iconv_arg1="const"
9347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9348 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);"
9351 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9352 echo "$as_me:$LINENO: result: ${ac_t:-
9353 }$am_cv_proto_iconv" >&5
9354 echo "${ECHO_T}${ac_t:-
9355 }$am_cv_proto_iconv" >&6
9357 cat >>confdefs.h <<_ACEOF
9358 #define ICONV_CONST $am_cv_proto_iconv_arg1
9359 _ACEOF
9362 LIBICONV=
9363 if test "$am_cv_lib_iconv" = yes; then
9364 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
9369 for ac_header in locale.h
9371 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9373 echo "$as_me:$LINENO: checking for $ac_header" >&5
9374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9376 echo $ECHO_N "(cached) $ECHO_C" >&6
9378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9379 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9380 else
9381 # Is the header compilable?
9382 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9383 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9384 cat >conftest.$ac_ext <<_ACEOF
9385 /* confdefs.h. */
9386 _ACEOF
9387 cat confdefs.h >>conftest.$ac_ext
9388 cat >>conftest.$ac_ext <<_ACEOF
9389 /* end confdefs.h. */
9390 $ac_includes_default
9391 #include <$ac_header>
9392 _ACEOF
9393 rm -f conftest.$ac_objext
9394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9395 (eval $ac_compile) 2>conftest.er1
9396 ac_status=$?
9397 grep -v '^ *+' conftest.er1 >conftest.err
9398 rm -f conftest.er1
9399 cat conftest.err >&5
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); } &&
9402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9404 (eval $ac_try) 2>&5
9405 ac_status=$?
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); }; } &&
9408 { ac_try='test -s conftest.$ac_objext'
9409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9410 (eval $ac_try) 2>&5
9411 ac_status=$?
9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); }; }; then
9414 ac_header_compiler=yes
9415 else
9416 echo "$as_me: failed program was:" >&5
9417 sed 's/^/| /' conftest.$ac_ext >&5
9419 ac_header_compiler=no
9421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9422 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9423 echo "${ECHO_T}$ac_header_compiler" >&6
9425 # Is the header present?
9426 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9427 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9428 cat >conftest.$ac_ext <<_ACEOF
9429 /* confdefs.h. */
9430 _ACEOF
9431 cat confdefs.h >>conftest.$ac_ext
9432 cat >>conftest.$ac_ext <<_ACEOF
9433 /* end confdefs.h. */
9434 #include <$ac_header>
9435 _ACEOF
9436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9437 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9438 ac_status=$?
9439 grep -v '^ *+' conftest.er1 >conftest.err
9440 rm -f conftest.er1
9441 cat conftest.err >&5
9442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443 (exit $ac_status); } >/dev/null; then
9444 if test -s conftest.err; then
9445 ac_cpp_err=$ac_c_preproc_warn_flag
9446 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9447 else
9448 ac_cpp_err=
9450 else
9451 ac_cpp_err=yes
9453 if test -z "$ac_cpp_err"; then
9454 ac_header_preproc=yes
9455 else
9456 echo "$as_me: failed program was:" >&5
9457 sed 's/^/| /' conftest.$ac_ext >&5
9459 ac_header_preproc=no
9461 rm -f conftest.err conftest.$ac_ext
9462 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9463 echo "${ECHO_T}$ac_header_preproc" >&6
9465 # So? What about this header?
9466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9467 yes:no: )
9468 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9469 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9471 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9472 ac_header_preproc=yes
9474 no:yes:* )
9475 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9476 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9477 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9478 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9479 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9480 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9481 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9482 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9484 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9485 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9486 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9488 cat <<\_ASBOX
9489 ## ------------------------------------------ ##
9490 ## Report this to the AC_PACKAGE_NAME lists. ##
9491 ## ------------------------------------------ ##
9492 _ASBOX
9494 sed "s/^/$as_me: WARNING: /" >&2
9496 esac
9497 echo "$as_me:$LINENO: checking for $ac_header" >&5
9498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9500 echo $ECHO_N "(cached) $ECHO_C" >&6
9501 else
9502 eval "$as_ac_Header=\$ac_header_preproc"
9504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9509 cat >>confdefs.h <<_ACEOF
9510 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9511 _ACEOF
9515 done
9517 if test $ac_cv_header_locale_h = yes; then
9518 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9519 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
9520 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9521 echo $ECHO_N "(cached) $ECHO_C" >&6
9522 else
9523 if test x$gcc_no_link = xyes; then
9524 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9525 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9526 { (exit 1); exit 1; }; }
9528 cat >conftest.$ac_ext <<_ACEOF
9529 /* confdefs.h. */
9530 _ACEOF
9531 cat confdefs.h >>conftest.$ac_ext
9532 cat >>conftest.$ac_ext <<_ACEOF
9533 /* end confdefs.h. */
9534 #include <locale.h>
9536 main ()
9538 return LC_MESSAGES
9540 return 0;
9542 _ACEOF
9543 rm -f conftest.$ac_objext conftest$ac_exeext
9544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9545 (eval $ac_link) 2>conftest.er1
9546 ac_status=$?
9547 grep -v '^ *+' conftest.er1 >conftest.err
9548 rm -f conftest.er1
9549 cat conftest.err >&5
9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 (exit $ac_status); } &&
9552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9554 (eval $ac_try) 2>&5
9555 ac_status=$?
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); }; } &&
9558 { ac_try='test -s conftest$ac_exeext'
9559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9560 (eval $ac_try) 2>&5
9561 ac_status=$?
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); }; }; then
9564 am_cv_val_LC_MESSAGES=yes
9565 else
9566 echo "$as_me: failed program was:" >&5
9567 sed 's/^/| /' conftest.$ac_ext >&5
9569 am_cv_val_LC_MESSAGES=no
9571 rm -f conftest.err conftest.$ac_objext \
9572 conftest$ac_exeext conftest.$ac_ext
9574 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9575 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
9576 if test $am_cv_val_LC_MESSAGES = yes; then
9578 cat >>confdefs.h <<\_ACEOF
9579 #define HAVE_LC_MESSAGES 1
9580 _ACEOF
9584 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9585 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9586 if test "${ac_cv_struct_tm+set}" = set; then
9587 echo $ECHO_N "(cached) $ECHO_C" >&6
9588 else
9589 cat >conftest.$ac_ext <<_ACEOF
9590 /* confdefs.h. */
9591 _ACEOF
9592 cat confdefs.h >>conftest.$ac_ext
9593 cat >>conftest.$ac_ext <<_ACEOF
9594 /* end confdefs.h. */
9595 #include <sys/types.h>
9596 #include <time.h>
9599 main ()
9601 struct tm *tp; tp->tm_sec;
9603 return 0;
9605 _ACEOF
9606 rm -f conftest.$ac_objext
9607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9608 (eval $ac_compile) 2>conftest.er1
9609 ac_status=$?
9610 grep -v '^ *+' conftest.er1 >conftest.err
9611 rm -f conftest.er1
9612 cat conftest.err >&5
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); } &&
9615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9617 (eval $ac_try) 2>&5
9618 ac_status=$?
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); }; } &&
9621 { ac_try='test -s conftest.$ac_objext'
9622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9623 (eval $ac_try) 2>&5
9624 ac_status=$?
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); }; }; then
9627 ac_cv_struct_tm=time.h
9628 else
9629 echo "$as_me: failed program was:" >&5
9630 sed 's/^/| /' conftest.$ac_ext >&5
9632 ac_cv_struct_tm=sys/time.h
9634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9636 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9637 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9638 if test $ac_cv_struct_tm = sys/time.h; then
9640 cat >>confdefs.h <<\_ACEOF
9641 #define TM_IN_SYS_TIME 1
9642 _ACEOF
9646 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9647 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9648 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9649 echo $ECHO_N "(cached) $ECHO_C" >&6
9650 else
9651 cat >conftest.$ac_ext <<_ACEOF
9652 /* confdefs.h. */
9653 _ACEOF
9654 cat confdefs.h >>conftest.$ac_ext
9655 cat >>conftest.$ac_ext <<_ACEOF
9656 /* end confdefs.h. */
9657 #include <sys/types.h>
9658 #include <$ac_cv_struct_tm>
9662 main ()
9664 static struct tm ac_aggr;
9665 if (ac_aggr.tm_zone)
9666 return 0;
9668 return 0;
9670 _ACEOF
9671 rm -f conftest.$ac_objext
9672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9673 (eval $ac_compile) 2>conftest.er1
9674 ac_status=$?
9675 grep -v '^ *+' conftest.er1 >conftest.err
9676 rm -f conftest.er1
9677 cat conftest.err >&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); } &&
9680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9682 (eval $ac_try) 2>&5
9683 ac_status=$?
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); }; } &&
9686 { ac_try='test -s conftest.$ac_objext'
9687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9688 (eval $ac_try) 2>&5
9689 ac_status=$?
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); }; }; then
9692 ac_cv_member_struct_tm_tm_zone=yes
9693 else
9694 echo "$as_me: failed program was:" >&5
9695 sed 's/^/| /' conftest.$ac_ext >&5
9697 cat >conftest.$ac_ext <<_ACEOF
9698 /* confdefs.h. */
9699 _ACEOF
9700 cat confdefs.h >>conftest.$ac_ext
9701 cat >>conftest.$ac_ext <<_ACEOF
9702 /* end confdefs.h. */
9703 #include <sys/types.h>
9704 #include <$ac_cv_struct_tm>
9708 main ()
9710 static struct tm ac_aggr;
9711 if (sizeof ac_aggr.tm_zone)
9712 return 0;
9714 return 0;
9716 _ACEOF
9717 rm -f conftest.$ac_objext
9718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9719 (eval $ac_compile) 2>conftest.er1
9720 ac_status=$?
9721 grep -v '^ *+' conftest.er1 >conftest.err
9722 rm -f conftest.er1
9723 cat conftest.err >&5
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); } &&
9726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9728 (eval $ac_try) 2>&5
9729 ac_status=$?
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); }; } &&
9732 { ac_try='test -s conftest.$ac_objext'
9733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9734 (eval $ac_try) 2>&5
9735 ac_status=$?
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); }; }; then
9738 ac_cv_member_struct_tm_tm_zone=yes
9739 else
9740 echo "$as_me: failed program was:" >&5
9741 sed 's/^/| /' conftest.$ac_ext >&5
9743 ac_cv_member_struct_tm_tm_zone=no
9745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9749 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9750 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9751 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9753 cat >>confdefs.h <<_ACEOF
9754 #define HAVE_STRUCT_TM_TM_ZONE 1
9755 _ACEOF
9760 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9762 cat >>confdefs.h <<\_ACEOF
9763 #define HAVE_TM_ZONE 1
9764 _ACEOF
9766 else
9767 echo "$as_me:$LINENO: checking for tzname" >&5
9768 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9769 if test "${ac_cv_var_tzname+set}" = set; then
9770 echo $ECHO_N "(cached) $ECHO_C" >&6
9771 else
9772 if test x$gcc_no_link = xyes; then
9773 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9774 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9775 { (exit 1); exit 1; }; }
9777 cat >conftest.$ac_ext <<_ACEOF
9778 /* confdefs.h. */
9779 _ACEOF
9780 cat confdefs.h >>conftest.$ac_ext
9781 cat >>conftest.$ac_ext <<_ACEOF
9782 /* end confdefs.h. */
9783 #include <time.h>
9784 #ifndef tzname /* For SGI. */
9785 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
9786 #endif
9789 main ()
9791 atoi(*tzname);
9793 return 0;
9795 _ACEOF
9796 rm -f conftest.$ac_objext conftest$ac_exeext
9797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9798 (eval $ac_link) 2>conftest.er1
9799 ac_status=$?
9800 grep -v '^ *+' conftest.er1 >conftest.err
9801 rm -f conftest.er1
9802 cat conftest.err >&5
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); } &&
9805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9807 (eval $ac_try) 2>&5
9808 ac_status=$?
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); }; } &&
9811 { ac_try='test -s conftest$ac_exeext'
9812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9813 (eval $ac_try) 2>&5
9814 ac_status=$?
9815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816 (exit $ac_status); }; }; then
9817 ac_cv_var_tzname=yes
9818 else
9819 echo "$as_me: failed program was:" >&5
9820 sed 's/^/| /' conftest.$ac_ext >&5
9822 ac_cv_var_tzname=no
9824 rm -f conftest.err conftest.$ac_objext \
9825 conftest$ac_exeext conftest.$ac_ext
9827 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9828 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9829 if test $ac_cv_var_tzname = yes; then
9831 cat >>confdefs.h <<\_ACEOF
9832 #define HAVE_TZNAME 1
9833 _ACEOF
9841 for ac_func in gethostbyname_r
9843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9844 echo "$as_me:$LINENO: checking for $ac_func" >&5
9845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9846 if eval "test \"\${$as_ac_var+set}\" = set"; then
9847 echo $ECHO_N "(cached) $ECHO_C" >&6
9848 else
9849 if test x$gcc_no_link = xyes; then
9850 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9851 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9852 { (exit 1); exit 1; }; }
9854 cat >conftest.$ac_ext <<_ACEOF
9855 /* confdefs.h. */
9856 _ACEOF
9857 cat confdefs.h >>conftest.$ac_ext
9858 cat >>conftest.$ac_ext <<_ACEOF
9859 /* end confdefs.h. */
9860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9862 #define $ac_func innocuous_$ac_func
9864 /* System header to define __stub macros and hopefully few prototypes,
9865 which can conflict with char $ac_func (); below.
9866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9867 <limits.h> exists even on freestanding compilers. */
9869 #ifdef __STDC__
9870 # include <limits.h>
9871 #else
9872 # include <assert.h>
9873 #endif
9875 #undef $ac_func
9877 /* Override any gcc2 internal prototype to avoid an error. */
9878 #ifdef __cplusplus
9879 extern "C"
9881 #endif
9882 /* We use char because int might match the return type of a gcc2
9883 builtin and then its argument prototype would still apply. */
9884 char $ac_func ();
9885 /* The GNU C library defines this for functions which it implements
9886 to always fail with ENOSYS. Some functions are actually named
9887 something starting with __ and the normal name is an alias. */
9888 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9889 choke me
9890 #else
9891 char (*f) () = $ac_func;
9892 #endif
9893 #ifdef __cplusplus
9895 #endif
9898 main ()
9900 return f != $ac_func;
9902 return 0;
9904 _ACEOF
9905 rm -f conftest.$ac_objext conftest$ac_exeext
9906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9907 (eval $ac_link) 2>conftest.er1
9908 ac_status=$?
9909 grep -v '^ *+' conftest.er1 >conftest.err
9910 rm -f conftest.er1
9911 cat conftest.err >&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); } &&
9914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9916 (eval $ac_try) 2>&5
9917 ac_status=$?
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); }; } &&
9920 { ac_try='test -s conftest$ac_exeext'
9921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9922 (eval $ac_try) 2>&5
9923 ac_status=$?
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); }; }; then
9926 eval "$as_ac_var=yes"
9927 else
9928 echo "$as_me: failed program was:" >&5
9929 sed 's/^/| /' conftest.$ac_ext >&5
9931 eval "$as_ac_var=no"
9933 rm -f conftest.err conftest.$ac_objext \
9934 conftest$ac_exeext conftest.$ac_ext
9936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9937 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9938 if test `eval echo '${'$as_ac_var'}'` = yes; then
9939 cat >>confdefs.h <<_ACEOF
9940 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9941 _ACEOF
9944 cat >>confdefs.h <<\_ACEOF
9945 #define HAVE_GETHOSTBYNAME_R 1
9946 _ACEOF
9948 # There are two different kinds of gethostbyname_r.
9949 # We look for the one that returns `int'.
9950 # Hopefully this check is robust enough.
9951 cat >conftest.$ac_ext <<_ACEOF
9952 /* confdefs.h. */
9953 _ACEOF
9954 cat confdefs.h >>conftest.$ac_ext
9955 cat >>conftest.$ac_ext <<_ACEOF
9956 /* end confdefs.h. */
9957 #include <netdb.h>
9959 _ACEOF
9960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9961 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
9964 cat >>confdefs.h <<\_ACEOF
9965 #define GETHOSTBYNAME_R_RETURNS_INT 1
9966 _ACEOF
9969 rm -f conftest*
9972 case " $GCINCS " in
9973 *" -D_REENTRANT "*) ;;
9975 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
9976 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
9977 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
9978 echo $ECHO_N "(cached) $ECHO_C" >&6
9979 else
9982 ac_ext=cc
9983 ac_cpp='$CXXCPP $CPPFLAGS'
9984 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9985 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9986 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9988 cat >conftest.$ac_ext <<_ACEOF
9989 /* confdefs.h. */
9990 _ACEOF
9991 cat confdefs.h >>conftest.$ac_ext
9992 cat >>conftest.$ac_ext <<_ACEOF
9993 /* end confdefs.h. */
9994 #include <netdb.h>
9996 main ()
9998 gethostbyname_r("", 0, 0);
10000 return 0;
10002 _ACEOF
10003 rm -f conftest.$ac_objext
10004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10005 (eval $ac_compile) 2>conftest.er1
10006 ac_status=$?
10007 grep -v '^ *+' conftest.er1 >conftest.err
10008 rm -f conftest.er1
10009 cat conftest.err >&5
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); } &&
10012 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10014 (eval $ac_try) 2>&5
10015 ac_status=$?
10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); }; } &&
10018 { ac_try='test -s conftest.$ac_objext'
10019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10020 (eval $ac_try) 2>&5
10021 ac_status=$?
10022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023 (exit $ac_status); }; }; then
10024 libjava_cv_gethostbyname_r_needs_reentrant=no
10025 else
10026 echo "$as_me: failed program was:" >&5
10027 sed 's/^/| /' conftest.$ac_ext >&5
10029 CPPFLAGS_SAVE="$CPPFLAGS"
10030 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
10031 cat >conftest.$ac_ext <<_ACEOF
10032 /* confdefs.h. */
10033 _ACEOF
10034 cat confdefs.h >>conftest.$ac_ext
10035 cat >>conftest.$ac_ext <<_ACEOF
10036 /* end confdefs.h. */
10037 #include <netdb.h>
10039 main ()
10041 gethostbyname_r("", 0, 0);
10043 return 0;
10045 _ACEOF
10046 rm -f conftest.$ac_objext
10047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10048 (eval $ac_compile) 2>conftest.er1
10049 ac_status=$?
10050 grep -v '^ *+' conftest.er1 >conftest.err
10051 rm -f conftest.er1
10052 cat conftest.err >&5
10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 (exit $ac_status); } &&
10055 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10057 (eval $ac_try) 2>&5
10058 ac_status=$?
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); }; } &&
10061 { ac_try='test -s conftest.$ac_objext'
10062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10063 (eval $ac_try) 2>&5
10064 ac_status=$?
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); }; }; then
10067 libjava_cv_gethostbyname_r_needs_reentrant=yes
10068 else
10069 echo "$as_me: failed program was:" >&5
10070 sed 's/^/| /' conftest.$ac_ext >&5
10072 libjava_cv_gethostbyname_r_needs_reentrant=fail
10074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10075 CPPFLAGS="$CPPFLAGS_SAVE"
10078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10079 ac_ext=c
10080 ac_cpp='$CPP $CPPFLAGS'
10081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10087 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
10088 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
10089 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
10091 cat >>confdefs.h <<\_ACEOF
10092 #define _REENTRANT 1
10093 _ACEOF
10097 esac
10099 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
10100 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
10101 if test "${libjava_cv_struct_hostent_data+set}" = set; then
10102 echo $ECHO_N "(cached) $ECHO_C" >&6
10103 else
10104 cat >conftest.$ac_ext <<_ACEOF
10105 /* confdefs.h. */
10106 _ACEOF
10107 cat confdefs.h >>conftest.$ac_ext
10108 cat >>conftest.$ac_ext <<_ACEOF
10109 /* end confdefs.h. */
10111 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
10112 # define _REENTRANT 1
10113 #endif
10114 #include <netdb.h>
10116 main ()
10118 struct hostent_data data;
10120 return 0;
10122 _ACEOF
10123 rm -f conftest.$ac_objext
10124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10125 (eval $ac_compile) 2>conftest.er1
10126 ac_status=$?
10127 grep -v '^ *+' conftest.er1 >conftest.err
10128 rm -f conftest.er1
10129 cat conftest.err >&5
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); } &&
10132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10134 (eval $ac_try) 2>&5
10135 ac_status=$?
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); }; } &&
10138 { ac_try='test -s conftest.$ac_objext'
10139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10140 (eval $ac_try) 2>&5
10141 ac_status=$?
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); }; }; then
10144 libjava_cv_struct_hostent_data=yes
10145 else
10146 echo "$as_me: failed program was:" >&5
10147 sed 's/^/| /' conftest.$ac_ext >&5
10149 libjava_cv_struct_hostent_data=no
10151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10153 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
10154 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
10155 if test "x$libjava_cv_struct_hostent_data" = xyes; then
10157 cat >>confdefs.h <<\_ACEOF
10158 #define HAVE_STRUCT_HOSTENT_DATA 1
10159 _ACEOF
10164 done
10167 # FIXME: libjava source code expects to find a prototype for
10168 # gethostbyaddr_r in netdb.h. The outer check ensures that
10169 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
10170 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
10171 # linkage check is enough, yet C++ code requires proper prototypes.)
10172 cat >conftest.$ac_ext <<_ACEOF
10173 /* confdefs.h. */
10174 _ACEOF
10175 cat confdefs.h >>conftest.$ac_ext
10176 cat >>conftest.$ac_ext <<_ACEOF
10177 /* end confdefs.h. */
10178 #include <netdb.h>
10180 _ACEOF
10181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10182 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
10185 for ac_func in gethostbyaddr_r
10187 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10188 echo "$as_me:$LINENO: checking for $ac_func" >&5
10189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10190 if eval "test \"\${$as_ac_var+set}\" = set"; then
10191 echo $ECHO_N "(cached) $ECHO_C" >&6
10192 else
10193 if test x$gcc_no_link = xyes; then
10194 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10195 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10196 { (exit 1); exit 1; }; }
10198 cat >conftest.$ac_ext <<_ACEOF
10199 /* confdefs.h. */
10200 _ACEOF
10201 cat confdefs.h >>conftest.$ac_ext
10202 cat >>conftest.$ac_ext <<_ACEOF
10203 /* end confdefs.h. */
10204 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10206 #define $ac_func innocuous_$ac_func
10208 /* System header to define __stub macros and hopefully few prototypes,
10209 which can conflict with char $ac_func (); below.
10210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10211 <limits.h> exists even on freestanding compilers. */
10213 #ifdef __STDC__
10214 # include <limits.h>
10215 #else
10216 # include <assert.h>
10217 #endif
10219 #undef $ac_func
10221 /* Override any gcc2 internal prototype to avoid an error. */
10222 #ifdef __cplusplus
10223 extern "C"
10225 #endif
10226 /* We use char because int might match the return type of a gcc2
10227 builtin and then its argument prototype would still apply. */
10228 char $ac_func ();
10229 /* The GNU C library defines this for functions which it implements
10230 to always fail with ENOSYS. Some functions are actually named
10231 something starting with __ and the normal name is an alias. */
10232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10233 choke me
10234 #else
10235 char (*f) () = $ac_func;
10236 #endif
10237 #ifdef __cplusplus
10239 #endif
10242 main ()
10244 return f != $ac_func;
10246 return 0;
10248 _ACEOF
10249 rm -f conftest.$ac_objext conftest$ac_exeext
10250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10251 (eval $ac_link) 2>conftest.er1
10252 ac_status=$?
10253 grep -v '^ *+' conftest.er1 >conftest.err
10254 rm -f conftest.er1
10255 cat conftest.err >&5
10256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257 (exit $ac_status); } &&
10258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10260 (eval $ac_try) 2>&5
10261 ac_status=$?
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); }; } &&
10264 { ac_try='test -s conftest$ac_exeext'
10265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10266 (eval $ac_try) 2>&5
10267 ac_status=$?
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); }; }; then
10270 eval "$as_ac_var=yes"
10271 else
10272 echo "$as_me: failed program was:" >&5
10273 sed 's/^/| /' conftest.$ac_ext >&5
10275 eval "$as_ac_var=no"
10277 rm -f conftest.err conftest.$ac_objext \
10278 conftest$ac_exeext conftest.$ac_ext
10280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10281 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10282 if test `eval echo '${'$as_ac_var'}'` = yes; then
10283 cat >>confdefs.h <<_ACEOF
10284 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10285 _ACEOF
10288 cat >>confdefs.h <<\_ACEOF
10289 #define HAVE_GETHOSTBYADDR_R 1
10290 _ACEOF
10292 # There are two different kinds of gethostbyaddr_r.
10293 # We look for the one that returns `int'.
10294 # Hopefully this check is robust enough.
10295 cat >conftest.$ac_ext <<_ACEOF
10296 /* confdefs.h. */
10297 _ACEOF
10298 cat confdefs.h >>conftest.$ac_ext
10299 cat >>conftest.$ac_ext <<_ACEOF
10300 /* end confdefs.h. */
10301 #include <netdb.h>
10303 _ACEOF
10304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10305 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
10308 cat >>confdefs.h <<\_ACEOF
10309 #define GETHOSTBYADDR_R_RETURNS_INT 1
10310 _ACEOF
10313 rm -f conftest*
10316 done
10319 rm -f conftest*
10323 for ac_func in gethostname
10325 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10326 echo "$as_me:$LINENO: checking for $ac_func" >&5
10327 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10328 if eval "test \"\${$as_ac_var+set}\" = set"; then
10329 echo $ECHO_N "(cached) $ECHO_C" >&6
10330 else
10331 if test x$gcc_no_link = xyes; then
10332 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10333 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10334 { (exit 1); exit 1; }; }
10336 cat >conftest.$ac_ext <<_ACEOF
10337 /* confdefs.h. */
10338 _ACEOF
10339 cat confdefs.h >>conftest.$ac_ext
10340 cat >>conftest.$ac_ext <<_ACEOF
10341 /* end confdefs.h. */
10342 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10343 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10344 #define $ac_func innocuous_$ac_func
10346 /* System header to define __stub macros and hopefully few prototypes,
10347 which can conflict with char $ac_func (); below.
10348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10349 <limits.h> exists even on freestanding compilers. */
10351 #ifdef __STDC__
10352 # include <limits.h>
10353 #else
10354 # include <assert.h>
10355 #endif
10357 #undef $ac_func
10359 /* Override any gcc2 internal prototype to avoid an error. */
10360 #ifdef __cplusplus
10361 extern "C"
10363 #endif
10364 /* We use char because int might match the return type of a gcc2
10365 builtin and then its argument prototype would still apply. */
10366 char $ac_func ();
10367 /* The GNU C library defines this for functions which it implements
10368 to always fail with ENOSYS. Some functions are actually named
10369 something starting with __ and the normal name is an alias. */
10370 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10371 choke me
10372 #else
10373 char (*f) () = $ac_func;
10374 #endif
10375 #ifdef __cplusplus
10377 #endif
10380 main ()
10382 return f != $ac_func;
10384 return 0;
10386 _ACEOF
10387 rm -f conftest.$ac_objext conftest$ac_exeext
10388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10389 (eval $ac_link) 2>conftest.er1
10390 ac_status=$?
10391 grep -v '^ *+' conftest.er1 >conftest.err
10392 rm -f conftest.er1
10393 cat conftest.err >&5
10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 (exit $ac_status); } &&
10396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10398 (eval $ac_try) 2>&5
10399 ac_status=$?
10400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401 (exit $ac_status); }; } &&
10402 { ac_try='test -s conftest$ac_exeext'
10403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10404 (eval $ac_try) 2>&5
10405 ac_status=$?
10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407 (exit $ac_status); }; }; then
10408 eval "$as_ac_var=yes"
10409 else
10410 echo "$as_me: failed program was:" >&5
10411 sed 's/^/| /' conftest.$ac_ext >&5
10413 eval "$as_ac_var=no"
10415 rm -f conftest.err conftest.$ac_objext \
10416 conftest$ac_exeext conftest.$ac_ext
10418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10419 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10420 if test `eval echo '${'$as_ac_var'}'` = yes; then
10421 cat >>confdefs.h <<_ACEOF
10422 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10423 _ACEOF
10426 cat >>confdefs.h <<\_ACEOF
10427 #define HAVE_GETHOSTNAME 1
10428 _ACEOF
10430 cat >conftest.$ac_ext <<_ACEOF
10431 /* confdefs.h. */
10432 _ACEOF
10433 cat confdefs.h >>conftest.$ac_ext
10434 cat >>conftest.$ac_ext <<_ACEOF
10435 /* end confdefs.h. */
10436 #include <unistd.h>
10438 _ACEOF
10439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10440 $EGREP "gethostname" >/dev/null 2>&1; then
10443 cat >>confdefs.h <<\_ACEOF
10444 #define HAVE_GETHOSTNAME_DECL 1
10445 _ACEOF
10448 rm -f conftest*
10451 done
10455 for ac_func in usleep
10457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10458 echo "$as_me:$LINENO: checking for $ac_func" >&5
10459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10460 if eval "test \"\${$as_ac_var+set}\" = set"; then
10461 echo $ECHO_N "(cached) $ECHO_C" >&6
10462 else
10463 if test x$gcc_no_link = xyes; then
10464 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10465 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10466 { (exit 1); exit 1; }; }
10468 cat >conftest.$ac_ext <<_ACEOF
10469 /* confdefs.h. */
10470 _ACEOF
10471 cat confdefs.h >>conftest.$ac_ext
10472 cat >>conftest.$ac_ext <<_ACEOF
10473 /* end confdefs.h. */
10474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10476 #define $ac_func innocuous_$ac_func
10478 /* System header to define __stub macros and hopefully few prototypes,
10479 which can conflict with char $ac_func (); below.
10480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10481 <limits.h> exists even on freestanding compilers. */
10483 #ifdef __STDC__
10484 # include <limits.h>
10485 #else
10486 # include <assert.h>
10487 #endif
10489 #undef $ac_func
10491 /* Override any gcc2 internal prototype to avoid an error. */
10492 #ifdef __cplusplus
10493 extern "C"
10495 #endif
10496 /* We use char because int might match the return type of a gcc2
10497 builtin and then its argument prototype would still apply. */
10498 char $ac_func ();
10499 /* The GNU C library defines this for functions which it implements
10500 to always fail with ENOSYS. Some functions are actually named
10501 something starting with __ and the normal name is an alias. */
10502 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10503 choke me
10504 #else
10505 char (*f) () = $ac_func;
10506 #endif
10507 #ifdef __cplusplus
10509 #endif
10512 main ()
10514 return f != $ac_func;
10516 return 0;
10518 _ACEOF
10519 rm -f conftest.$ac_objext conftest$ac_exeext
10520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10521 (eval $ac_link) 2>conftest.er1
10522 ac_status=$?
10523 grep -v '^ *+' conftest.er1 >conftest.err
10524 rm -f conftest.er1
10525 cat conftest.err >&5
10526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527 (exit $ac_status); } &&
10528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10530 (eval $ac_try) 2>&5
10531 ac_status=$?
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); }; } &&
10534 { ac_try='test -s conftest$ac_exeext'
10535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10536 (eval $ac_try) 2>&5
10537 ac_status=$?
10538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539 (exit $ac_status); }; }; then
10540 eval "$as_ac_var=yes"
10541 else
10542 echo "$as_me: failed program was:" >&5
10543 sed 's/^/| /' conftest.$ac_ext >&5
10545 eval "$as_ac_var=no"
10547 rm -f conftest.err conftest.$ac_objext \
10548 conftest$ac_exeext conftest.$ac_ext
10550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10551 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10552 if test `eval echo '${'$as_ac_var'}'` = yes; then
10553 cat >>confdefs.h <<_ACEOF
10554 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10555 _ACEOF
10557 cat >conftest.$ac_ext <<_ACEOF
10558 /* confdefs.h. */
10559 _ACEOF
10560 cat confdefs.h >>conftest.$ac_ext
10561 cat >>conftest.$ac_ext <<_ACEOF
10562 /* end confdefs.h. */
10563 #include <unistd.h>
10565 _ACEOF
10566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10567 $EGREP "usleep" >/dev/null 2>&1; then
10570 cat >>confdefs.h <<\_ACEOF
10571 #define HAVE_USLEEP_DECL 1
10572 _ACEOF
10575 rm -f conftest*
10578 done
10581 # Look for these functions in the thread library, but only bother
10582 # if using POSIX threads.
10583 if test "$THREADS" = posix; then
10584 save_LIBS="$LIBS"
10585 LIBS="$LIBS $THREADLIBS"
10586 # Some POSIX thread systems don't have pthread_mutexattr_settype.
10587 # E.g., Solaris.
10590 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
10592 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10593 echo "$as_me:$LINENO: checking for $ac_func" >&5
10594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10595 if eval "test \"\${$as_ac_var+set}\" = set"; then
10596 echo $ECHO_N "(cached) $ECHO_C" >&6
10597 else
10598 if test x$gcc_no_link = xyes; then
10599 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10600 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10601 { (exit 1); exit 1; }; }
10603 cat >conftest.$ac_ext <<_ACEOF
10604 /* confdefs.h. */
10605 _ACEOF
10606 cat confdefs.h >>conftest.$ac_ext
10607 cat >>conftest.$ac_ext <<_ACEOF
10608 /* end confdefs.h. */
10609 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10611 #define $ac_func innocuous_$ac_func
10613 /* System header to define __stub macros and hopefully few prototypes,
10614 which can conflict with char $ac_func (); below.
10615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10616 <limits.h> exists even on freestanding compilers. */
10618 #ifdef __STDC__
10619 # include <limits.h>
10620 #else
10621 # include <assert.h>
10622 #endif
10624 #undef $ac_func
10626 /* Override any gcc2 internal prototype to avoid an error. */
10627 #ifdef __cplusplus
10628 extern "C"
10630 #endif
10631 /* We use char because int might match the return type of a gcc2
10632 builtin and then its argument prototype would still apply. */
10633 char $ac_func ();
10634 /* The GNU C library defines this for functions which it implements
10635 to always fail with ENOSYS. Some functions are actually named
10636 something starting with __ and the normal name is an alias. */
10637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10638 choke me
10639 #else
10640 char (*f) () = $ac_func;
10641 #endif
10642 #ifdef __cplusplus
10644 #endif
10647 main ()
10649 return f != $ac_func;
10651 return 0;
10653 _ACEOF
10654 rm -f conftest.$ac_objext conftest$ac_exeext
10655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10656 (eval $ac_link) 2>conftest.er1
10657 ac_status=$?
10658 grep -v '^ *+' conftest.er1 >conftest.err
10659 rm -f conftest.er1
10660 cat conftest.err >&5
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); } &&
10663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10665 (eval $ac_try) 2>&5
10666 ac_status=$?
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); }; } &&
10669 { ac_try='test -s conftest$ac_exeext'
10670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10671 (eval $ac_try) 2>&5
10672 ac_status=$?
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); }; }; then
10675 eval "$as_ac_var=yes"
10676 else
10677 echo "$as_me: failed program was:" >&5
10678 sed 's/^/| /' conftest.$ac_ext >&5
10680 eval "$as_ac_var=no"
10682 rm -f conftest.err conftest.$ac_objext \
10683 conftest$ac_exeext conftest.$ac_ext
10685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10686 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10687 if test `eval echo '${'$as_ac_var'}'` = yes; then
10688 cat >>confdefs.h <<_ACEOF
10689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10690 _ACEOF
10693 done
10696 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
10697 # Solaris 7 the name librt is preferred.
10699 for ac_func in sched_yield
10701 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10702 echo "$as_me:$LINENO: checking for $ac_func" >&5
10703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10704 if eval "test \"\${$as_ac_var+set}\" = set"; then
10705 echo $ECHO_N "(cached) $ECHO_C" >&6
10706 else
10707 if test x$gcc_no_link = xyes; then
10708 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10709 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10710 { (exit 1); exit 1; }; }
10712 cat >conftest.$ac_ext <<_ACEOF
10713 /* confdefs.h. */
10714 _ACEOF
10715 cat confdefs.h >>conftest.$ac_ext
10716 cat >>conftest.$ac_ext <<_ACEOF
10717 /* end confdefs.h. */
10718 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10720 #define $ac_func innocuous_$ac_func
10722 /* System header to define __stub macros and hopefully few prototypes,
10723 which can conflict with char $ac_func (); below.
10724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10725 <limits.h> exists even on freestanding compilers. */
10727 #ifdef __STDC__
10728 # include <limits.h>
10729 #else
10730 # include <assert.h>
10731 #endif
10733 #undef $ac_func
10735 /* Override any gcc2 internal prototype to avoid an error. */
10736 #ifdef __cplusplus
10737 extern "C"
10739 #endif
10740 /* We use char because int might match the return type of a gcc2
10741 builtin and then its argument prototype would still apply. */
10742 char $ac_func ();
10743 /* The GNU C library defines this for functions which it implements
10744 to always fail with ENOSYS. Some functions are actually named
10745 something starting with __ and the normal name is an alias. */
10746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10747 choke me
10748 #else
10749 char (*f) () = $ac_func;
10750 #endif
10751 #ifdef __cplusplus
10753 #endif
10756 main ()
10758 return f != $ac_func;
10760 return 0;
10762 _ACEOF
10763 rm -f conftest.$ac_objext conftest$ac_exeext
10764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10765 (eval $ac_link) 2>conftest.er1
10766 ac_status=$?
10767 grep -v '^ *+' conftest.er1 >conftest.err
10768 rm -f conftest.er1
10769 cat conftest.err >&5
10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); } &&
10772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10774 (eval $ac_try) 2>&5
10775 ac_status=$?
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); }; } &&
10778 { ac_try='test -s conftest$ac_exeext'
10779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10780 (eval $ac_try) 2>&5
10781 ac_status=$?
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); }; }; then
10784 eval "$as_ac_var=yes"
10785 else
10786 echo "$as_me: failed program was:" >&5
10787 sed 's/^/| /' conftest.$ac_ext >&5
10789 eval "$as_ac_var=no"
10791 rm -f conftest.err conftest.$ac_objext \
10792 conftest$ac_exeext conftest.$ac_ext
10794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10795 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10796 if test `eval echo '${'$as_ac_var'}'` = yes; then
10797 cat >>confdefs.h <<_ACEOF
10798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10799 _ACEOF
10801 else
10803 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
10804 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
10805 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
10806 echo $ECHO_N "(cached) $ECHO_C" >&6
10807 else
10808 ac_check_lib_save_LIBS=$LIBS
10809 LIBS="-lrt $LIBS"
10810 if test x$gcc_no_link = xyes; then
10811 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10812 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10813 { (exit 1); exit 1; }; }
10815 cat >conftest.$ac_ext <<_ACEOF
10816 /* confdefs.h. */
10817 _ACEOF
10818 cat confdefs.h >>conftest.$ac_ext
10819 cat >>conftest.$ac_ext <<_ACEOF
10820 /* end confdefs.h. */
10822 /* Override any gcc2 internal prototype to avoid an error. */
10823 #ifdef __cplusplus
10824 extern "C"
10825 #endif
10826 /* We use char because int might match the return type of a gcc2
10827 builtin and then its argument prototype would still apply. */
10828 char sched_yield ();
10830 main ()
10832 sched_yield ();
10834 return 0;
10836 _ACEOF
10837 rm -f conftest.$ac_objext conftest$ac_exeext
10838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10839 (eval $ac_link) 2>conftest.er1
10840 ac_status=$?
10841 grep -v '^ *+' conftest.er1 >conftest.err
10842 rm -f conftest.er1
10843 cat conftest.err >&5
10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); } &&
10846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10848 (eval $ac_try) 2>&5
10849 ac_status=$?
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); }; } &&
10852 { ac_try='test -s conftest$ac_exeext'
10853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10854 (eval $ac_try) 2>&5
10855 ac_status=$?
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); }; }; then
10858 ac_cv_lib_rt_sched_yield=yes
10859 else
10860 echo "$as_me: failed program was:" >&5
10861 sed 's/^/| /' conftest.$ac_ext >&5
10863 ac_cv_lib_rt_sched_yield=no
10865 rm -f conftest.err conftest.$ac_objext \
10866 conftest$ac_exeext conftest.$ac_ext
10867 LIBS=$ac_check_lib_save_LIBS
10869 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
10870 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
10871 if test $ac_cv_lib_rt_sched_yield = yes; then
10873 cat >>confdefs.h <<\_ACEOF
10874 #define HAVE_SCHED_YIELD 1
10875 _ACEOF
10877 THREADLIBS="$THREADLIBS -lrt"
10878 THREADSPEC="$THREADSPEC -lrt"
10879 else
10881 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
10882 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
10883 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
10884 echo $ECHO_N "(cached) $ECHO_C" >&6
10885 else
10886 ac_check_lib_save_LIBS=$LIBS
10887 LIBS="-lposix4 $LIBS"
10888 if test x$gcc_no_link = xyes; then
10889 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10890 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10891 { (exit 1); exit 1; }; }
10893 cat >conftest.$ac_ext <<_ACEOF
10894 /* confdefs.h. */
10895 _ACEOF
10896 cat confdefs.h >>conftest.$ac_ext
10897 cat >>conftest.$ac_ext <<_ACEOF
10898 /* end confdefs.h. */
10900 /* Override any gcc2 internal prototype to avoid an error. */
10901 #ifdef __cplusplus
10902 extern "C"
10903 #endif
10904 /* We use char because int might match the return type of a gcc2
10905 builtin and then its argument prototype would still apply. */
10906 char sched_yield ();
10908 main ()
10910 sched_yield ();
10912 return 0;
10914 _ACEOF
10915 rm -f conftest.$ac_objext conftest$ac_exeext
10916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10917 (eval $ac_link) 2>conftest.er1
10918 ac_status=$?
10919 grep -v '^ *+' conftest.er1 >conftest.err
10920 rm -f conftest.er1
10921 cat conftest.err >&5
10922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 (exit $ac_status); } &&
10924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10926 (eval $ac_try) 2>&5
10927 ac_status=$?
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); }; } &&
10930 { ac_try='test -s conftest$ac_exeext'
10931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10932 (eval $ac_try) 2>&5
10933 ac_status=$?
10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); }; }; then
10936 ac_cv_lib_posix4_sched_yield=yes
10937 else
10938 echo "$as_me: failed program was:" >&5
10939 sed 's/^/| /' conftest.$ac_ext >&5
10941 ac_cv_lib_posix4_sched_yield=no
10943 rm -f conftest.err conftest.$ac_objext \
10944 conftest$ac_exeext conftest.$ac_ext
10945 LIBS=$ac_check_lib_save_LIBS
10947 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
10948 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
10949 if test $ac_cv_lib_posix4_sched_yield = yes; then
10951 cat >>confdefs.h <<\_ACEOF
10952 #define HAVE_SCHED_YIELD 1
10953 _ACEOF
10955 THREADLIBS="$THREADLIBS -lposix4"
10956 THREADSPEC="$THREADSPEC -lposix4"
10962 done
10964 LIBS="$save_LIBS"
10966 # We can save a little space at runtime if the mutex has m_count
10967 # or __m_count. This is a nice hack for Linux.
10968 cat >conftest.$ac_ext <<_ACEOF
10969 /* confdefs.h. */
10970 _ACEOF
10971 cat confdefs.h >>conftest.$ac_ext
10972 cat >>conftest.$ac_ext <<_ACEOF
10973 /* end confdefs.h. */
10974 #include <pthread.h>
10976 main ()
10979 extern pthread_mutex_t *mutex; int q = mutex->m_count;
10982 return 0;
10984 _ACEOF
10985 rm -f conftest.$ac_objext
10986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10987 (eval $ac_compile) 2>conftest.er1
10988 ac_status=$?
10989 grep -v '^ *+' conftest.er1 >conftest.err
10990 rm -f conftest.er1
10991 cat conftest.err >&5
10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); } &&
10994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10996 (eval $ac_try) 2>&5
10997 ac_status=$?
10998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); }; } &&
11000 { ac_try='test -s conftest.$ac_objext'
11001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11002 (eval $ac_try) 2>&5
11003 ac_status=$?
11004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005 (exit $ac_status); }; }; then
11007 cat >>confdefs.h <<\_ACEOF
11008 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
11009 _ACEOF
11011 else
11012 echo "$as_me: failed program was:" >&5
11013 sed 's/^/| /' conftest.$ac_ext >&5
11016 cat >conftest.$ac_ext <<_ACEOF
11017 /* confdefs.h. */
11018 _ACEOF
11019 cat confdefs.h >>conftest.$ac_ext
11020 cat >>conftest.$ac_ext <<_ACEOF
11021 /* end confdefs.h. */
11022 #include <pthread.h>
11024 main ()
11027 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
11030 return 0;
11032 _ACEOF
11033 rm -f conftest.$ac_objext
11034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11035 (eval $ac_compile) 2>conftest.er1
11036 ac_status=$?
11037 grep -v '^ *+' conftest.er1 >conftest.err
11038 rm -f conftest.er1
11039 cat conftest.err >&5
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); } &&
11042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11044 (eval $ac_try) 2>&5
11045 ac_status=$?
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); }; } &&
11048 { ac_try='test -s conftest.$ac_objext'
11049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11050 (eval $ac_try) 2>&5
11051 ac_status=$?
11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053 (exit $ac_status); }; }; then
11055 cat >>confdefs.h <<\_ACEOF
11056 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
11057 _ACEOF
11059 else
11060 echo "$as_me: failed program was:" >&5
11061 sed 's/^/| /' conftest.$ac_ext >&5
11064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11069 # We require a way to get the time.
11070 time_found=no
11074 for ac_func in gettimeofday time ftime
11076 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11077 echo "$as_me:$LINENO: checking for $ac_func" >&5
11078 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11079 if eval "test \"\${$as_ac_var+set}\" = set"; then
11080 echo $ECHO_N "(cached) $ECHO_C" >&6
11081 else
11082 if test x$gcc_no_link = xyes; then
11083 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11084 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11085 { (exit 1); exit 1; }; }
11087 cat >conftest.$ac_ext <<_ACEOF
11088 /* confdefs.h. */
11089 _ACEOF
11090 cat confdefs.h >>conftest.$ac_ext
11091 cat >>conftest.$ac_ext <<_ACEOF
11092 /* end confdefs.h. */
11093 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11095 #define $ac_func innocuous_$ac_func
11097 /* System header to define __stub macros and hopefully few prototypes,
11098 which can conflict with char $ac_func (); below.
11099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11100 <limits.h> exists even on freestanding compilers. */
11102 #ifdef __STDC__
11103 # include <limits.h>
11104 #else
11105 # include <assert.h>
11106 #endif
11108 #undef $ac_func
11110 /* Override any gcc2 internal prototype to avoid an error. */
11111 #ifdef __cplusplus
11112 extern "C"
11114 #endif
11115 /* We use char because int might match the return type of a gcc2
11116 builtin and then its argument prototype would still apply. */
11117 char $ac_func ();
11118 /* The GNU C library defines this for functions which it implements
11119 to always fail with ENOSYS. Some functions are actually named
11120 something starting with __ and the normal name is an alias. */
11121 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11122 choke me
11123 #else
11124 char (*f) () = $ac_func;
11125 #endif
11126 #ifdef __cplusplus
11128 #endif
11131 main ()
11133 return f != $ac_func;
11135 return 0;
11137 _ACEOF
11138 rm -f conftest.$ac_objext conftest$ac_exeext
11139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11140 (eval $ac_link) 2>conftest.er1
11141 ac_status=$?
11142 grep -v '^ *+' conftest.er1 >conftest.err
11143 rm -f conftest.er1
11144 cat conftest.err >&5
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); } &&
11147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11149 (eval $ac_try) 2>&5
11150 ac_status=$?
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); }; } &&
11153 { ac_try='test -s conftest$ac_exeext'
11154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11155 (eval $ac_try) 2>&5
11156 ac_status=$?
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); }; }; then
11159 eval "$as_ac_var=yes"
11160 else
11161 echo "$as_me: failed program was:" >&5
11162 sed 's/^/| /' conftest.$ac_ext >&5
11164 eval "$as_ac_var=no"
11166 rm -f conftest.err conftest.$ac_objext \
11167 conftest$ac_exeext conftest.$ac_ext
11169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11170 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11171 if test `eval echo '${'$as_ac_var'}'` = yes; then
11172 cat >>confdefs.h <<_ACEOF
11173 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11174 _ACEOF
11175 time_found=yes
11177 done
11179 if test "$time_found" = no; then
11180 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
11181 echo "$as_me: error: no function found to get the time" >&2;}
11182 { (exit 1); exit 1; }; }
11186 for ac_func in memmove
11188 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11189 echo "$as_me:$LINENO: checking for $ac_func" >&5
11190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11191 if eval "test \"\${$as_ac_var+set}\" = set"; then
11192 echo $ECHO_N "(cached) $ECHO_C" >&6
11193 else
11194 if test x$gcc_no_link = xyes; then
11195 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11196 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11197 { (exit 1); exit 1; }; }
11199 cat >conftest.$ac_ext <<_ACEOF
11200 /* confdefs.h. */
11201 _ACEOF
11202 cat confdefs.h >>conftest.$ac_ext
11203 cat >>conftest.$ac_ext <<_ACEOF
11204 /* end confdefs.h. */
11205 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11207 #define $ac_func innocuous_$ac_func
11209 /* System header to define __stub macros and hopefully few prototypes,
11210 which can conflict with char $ac_func (); below.
11211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11212 <limits.h> exists even on freestanding compilers. */
11214 #ifdef __STDC__
11215 # include <limits.h>
11216 #else
11217 # include <assert.h>
11218 #endif
11220 #undef $ac_func
11222 /* Override any gcc2 internal prototype to avoid an error. */
11223 #ifdef __cplusplus
11224 extern "C"
11226 #endif
11227 /* We use char because int might match the return type of a gcc2
11228 builtin and then its argument prototype would still apply. */
11229 char $ac_func ();
11230 /* The GNU C library defines this for functions which it implements
11231 to always fail with ENOSYS. Some functions are actually named
11232 something starting with __ and the normal name is an alias. */
11233 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11234 choke me
11235 #else
11236 char (*f) () = $ac_func;
11237 #endif
11238 #ifdef __cplusplus
11240 #endif
11243 main ()
11245 return f != $ac_func;
11247 return 0;
11249 _ACEOF
11250 rm -f conftest.$ac_objext conftest$ac_exeext
11251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11252 (eval $ac_link) 2>conftest.er1
11253 ac_status=$?
11254 grep -v '^ *+' conftest.er1 >conftest.err
11255 rm -f conftest.er1
11256 cat conftest.err >&5
11257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258 (exit $ac_status); } &&
11259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11261 (eval $ac_try) 2>&5
11262 ac_status=$?
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); }; } &&
11265 { ac_try='test -s conftest$ac_exeext'
11266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11267 (eval $ac_try) 2>&5
11268 ac_status=$?
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); }; }; then
11271 eval "$as_ac_var=yes"
11272 else
11273 echo "$as_me: failed program was:" >&5
11274 sed 's/^/| /' conftest.$ac_ext >&5
11276 eval "$as_ac_var=no"
11278 rm -f conftest.err conftest.$ac_objext \
11279 conftest$ac_exeext conftest.$ac_ext
11281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11282 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11283 if test `eval echo '${'$as_ac_var'}'` = yes; then
11284 cat >>confdefs.h <<_ACEOF
11285 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11286 _ACEOF
11289 done
11292 # We require memcpy.
11293 memcpy_found=no
11295 for ac_func in memcpy
11297 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11298 echo "$as_me:$LINENO: checking for $ac_func" >&5
11299 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11300 if eval "test \"\${$as_ac_var+set}\" = set"; then
11301 echo $ECHO_N "(cached) $ECHO_C" >&6
11302 else
11303 if test x$gcc_no_link = xyes; then
11304 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11305 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11306 { (exit 1); exit 1; }; }
11308 cat >conftest.$ac_ext <<_ACEOF
11309 /* confdefs.h. */
11310 _ACEOF
11311 cat confdefs.h >>conftest.$ac_ext
11312 cat >>conftest.$ac_ext <<_ACEOF
11313 /* end confdefs.h. */
11314 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11316 #define $ac_func innocuous_$ac_func
11318 /* System header to define __stub macros and hopefully few prototypes,
11319 which can conflict with char $ac_func (); below.
11320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11321 <limits.h> exists even on freestanding compilers. */
11323 #ifdef __STDC__
11324 # include <limits.h>
11325 #else
11326 # include <assert.h>
11327 #endif
11329 #undef $ac_func
11331 /* Override any gcc2 internal prototype to avoid an error. */
11332 #ifdef __cplusplus
11333 extern "C"
11335 #endif
11336 /* We use char because int might match the return type of a gcc2
11337 builtin and then its argument prototype would still apply. */
11338 char $ac_func ();
11339 /* The GNU C library defines this for functions which it implements
11340 to always fail with ENOSYS. Some functions are actually named
11341 something starting with __ and the normal name is an alias. */
11342 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11343 choke me
11344 #else
11345 char (*f) () = $ac_func;
11346 #endif
11347 #ifdef __cplusplus
11349 #endif
11352 main ()
11354 return f != $ac_func;
11356 return 0;
11358 _ACEOF
11359 rm -f conftest.$ac_objext conftest$ac_exeext
11360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11361 (eval $ac_link) 2>conftest.er1
11362 ac_status=$?
11363 grep -v '^ *+' conftest.er1 >conftest.err
11364 rm -f conftest.er1
11365 cat conftest.err >&5
11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 (exit $ac_status); } &&
11368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11370 (eval $ac_try) 2>&5
11371 ac_status=$?
11372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373 (exit $ac_status); }; } &&
11374 { ac_try='test -s conftest$ac_exeext'
11375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11376 (eval $ac_try) 2>&5
11377 ac_status=$?
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); }; }; then
11380 eval "$as_ac_var=yes"
11381 else
11382 echo "$as_me: failed program was:" >&5
11383 sed 's/^/| /' conftest.$ac_ext >&5
11385 eval "$as_ac_var=no"
11387 rm -f conftest.err conftest.$ac_objext \
11388 conftest$ac_exeext conftest.$ac_ext
11390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11391 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11392 if test `eval echo '${'$as_ac_var'}'` = yes; then
11393 cat >>confdefs.h <<_ACEOF
11394 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11395 _ACEOF
11396 memcpy_found=yes
11398 done
11400 if test "$memcpy_found" = no; then
11401 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
11402 echo "$as_me: error: memcpy is required" >&2;}
11403 { (exit 1); exit 1; }; }
11406 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11407 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11408 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11409 echo $ECHO_N "(cached) $ECHO_C" >&6
11410 else
11411 ac_check_lib_save_LIBS=$LIBS
11412 LIBS="-ldl $LIBS"
11413 if test x$gcc_no_link = xyes; then
11414 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11415 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11416 { (exit 1); exit 1; }; }
11418 cat >conftest.$ac_ext <<_ACEOF
11419 /* confdefs.h. */
11420 _ACEOF
11421 cat confdefs.h >>conftest.$ac_ext
11422 cat >>conftest.$ac_ext <<_ACEOF
11423 /* end confdefs.h. */
11425 /* Override any gcc2 internal prototype to avoid an error. */
11426 #ifdef __cplusplus
11427 extern "C"
11428 #endif
11429 /* We use char because int might match the return type of a gcc2
11430 builtin and then its argument prototype would still apply. */
11431 char dlopen ();
11433 main ()
11435 dlopen ();
11437 return 0;
11439 _ACEOF
11440 rm -f conftest.$ac_objext conftest$ac_exeext
11441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11442 (eval $ac_link) 2>conftest.er1
11443 ac_status=$?
11444 grep -v '^ *+' conftest.er1 >conftest.err
11445 rm -f conftest.er1
11446 cat conftest.err >&5
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); } &&
11449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11451 (eval $ac_try) 2>&5
11452 ac_status=$?
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); }; } &&
11455 { ac_try='test -s conftest$ac_exeext'
11456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11457 (eval $ac_try) 2>&5
11458 ac_status=$?
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); }; }; then
11461 ac_cv_lib_dl_dlopen=yes
11462 else
11463 echo "$as_me: failed program was:" >&5
11464 sed 's/^/| /' conftest.$ac_ext >&5
11466 ac_cv_lib_dl_dlopen=no
11468 rm -f conftest.err conftest.$ac_objext \
11469 conftest$ac_exeext conftest.$ac_ext
11470 LIBS=$ac_check_lib_save_LIBS
11472 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11473 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11474 if test $ac_cv_lib_dl_dlopen = yes; then
11477 cat >>confdefs.h <<\_ACEOF
11478 #define HAVE_DLOPEN 1
11479 _ACEOF
11484 # Some library-finding code we stole from Tcl.
11485 #--------------------------------------------------------------------
11486 # Check for the existence of the -lsocket and -lnsl libraries.
11487 # The order here is important, so that they end up in the right
11488 # order in the command line generated by make. Here are some
11489 # special considerations:
11490 # 1. Use "connect" and "accept" to check for -lsocket, and
11491 # "gethostbyname" to check for -lnsl.
11492 # 2. Use each function name only once: can't redo a check because
11493 # autoconf caches the results of the last check and won't redo it.
11494 # 3. Use -lnsl and -lsocket only if they supply procedures that
11495 # aren't already present in the normal libraries. This is because
11496 # IRIX 5.2 has libraries, but they aren't needed and they're
11497 # bogus: they goof up name resolution if used.
11498 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
11499 # To get around this problem, check for both libraries together
11500 # if -lsocket doesn't work by itself.
11501 #--------------------------------------------------------------------
11503 echo "$as_me:$LINENO: checking for socket libraries" >&5
11504 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
11505 if test "${gcj_cv_lib_sockets+set}" = set; then
11506 echo $ECHO_N "(cached) $ECHO_C" >&6
11507 else
11508 gcj_cv_lib_sockets=
11509 gcj_checkBoth=0
11510 unset ac_cv_func_connect
11511 echo "$as_me:$LINENO: checking for connect" >&5
11512 echo $ECHO_N "checking for connect... $ECHO_C" >&6
11513 if test "${ac_cv_func_connect+set}" = set; then
11514 echo $ECHO_N "(cached) $ECHO_C" >&6
11515 else
11516 if test x$gcc_no_link = xyes; then
11517 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11518 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11519 { (exit 1); exit 1; }; }
11521 cat >conftest.$ac_ext <<_ACEOF
11522 /* confdefs.h. */
11523 _ACEOF
11524 cat confdefs.h >>conftest.$ac_ext
11525 cat >>conftest.$ac_ext <<_ACEOF
11526 /* end confdefs.h. */
11527 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
11528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11529 #define connect innocuous_connect
11531 /* System header to define __stub macros and hopefully few prototypes,
11532 which can conflict with char connect (); below.
11533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11534 <limits.h> exists even on freestanding compilers. */
11536 #ifdef __STDC__
11537 # include <limits.h>
11538 #else
11539 # include <assert.h>
11540 #endif
11542 #undef connect
11544 /* Override any gcc2 internal prototype to avoid an error. */
11545 #ifdef __cplusplus
11546 extern "C"
11548 #endif
11549 /* We use char because int might match the return type of a gcc2
11550 builtin and then its argument prototype would still apply. */
11551 char connect ();
11552 /* The GNU C library defines this for functions which it implements
11553 to always fail with ENOSYS. Some functions are actually named
11554 something starting with __ and the normal name is an alias. */
11555 #if defined (__stub_connect) || defined (__stub___connect)
11556 choke me
11557 #else
11558 char (*f) () = connect;
11559 #endif
11560 #ifdef __cplusplus
11562 #endif
11565 main ()
11567 return f != connect;
11569 return 0;
11571 _ACEOF
11572 rm -f conftest.$ac_objext conftest$ac_exeext
11573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11574 (eval $ac_link) 2>conftest.er1
11575 ac_status=$?
11576 grep -v '^ *+' conftest.er1 >conftest.err
11577 rm -f conftest.er1
11578 cat conftest.err >&5
11579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580 (exit $ac_status); } &&
11581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11583 (eval $ac_try) 2>&5
11584 ac_status=$?
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); }; } &&
11587 { ac_try='test -s conftest$ac_exeext'
11588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11589 (eval $ac_try) 2>&5
11590 ac_status=$?
11591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592 (exit $ac_status); }; }; then
11593 ac_cv_func_connect=yes
11594 else
11595 echo "$as_me: failed program was:" >&5
11596 sed 's/^/| /' conftest.$ac_ext >&5
11598 ac_cv_func_connect=no
11600 rm -f conftest.err conftest.$ac_objext \
11601 conftest$ac_exeext conftest.$ac_ext
11603 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
11604 echo "${ECHO_T}$ac_cv_func_connect" >&6
11605 if test $ac_cv_func_connect = yes; then
11606 gcj_checkSocket=0
11607 else
11608 gcj_checkSocket=1
11611 if test "$gcj_checkSocket" = 1; then
11612 unset ac_cv_func_connect
11613 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
11614 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
11615 if test "${ac_cv_lib_socket_main+set}" = set; then
11616 echo $ECHO_N "(cached) $ECHO_C" >&6
11617 else
11618 ac_check_lib_save_LIBS=$LIBS
11619 LIBS="-lsocket $LIBS"
11620 if test x$gcc_no_link = xyes; then
11621 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11622 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11623 { (exit 1); exit 1; }; }
11625 cat >conftest.$ac_ext <<_ACEOF
11626 /* confdefs.h. */
11627 _ACEOF
11628 cat confdefs.h >>conftest.$ac_ext
11629 cat >>conftest.$ac_ext <<_ACEOF
11630 /* end confdefs.h. */
11634 main ()
11636 main ();
11638 return 0;
11640 _ACEOF
11641 rm -f conftest.$ac_objext conftest$ac_exeext
11642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11643 (eval $ac_link) 2>conftest.er1
11644 ac_status=$?
11645 grep -v '^ *+' conftest.er1 >conftest.err
11646 rm -f conftest.er1
11647 cat conftest.err >&5
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); } &&
11650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11652 (eval $ac_try) 2>&5
11653 ac_status=$?
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); }; } &&
11656 { ac_try='test -s conftest$ac_exeext'
11657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11658 (eval $ac_try) 2>&5
11659 ac_status=$?
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); }; }; then
11662 ac_cv_lib_socket_main=yes
11663 else
11664 echo "$as_me: failed program was:" >&5
11665 sed 's/^/| /' conftest.$ac_ext >&5
11667 ac_cv_lib_socket_main=no
11669 rm -f conftest.err conftest.$ac_objext \
11670 conftest$ac_exeext conftest.$ac_ext
11671 LIBS=$ac_check_lib_save_LIBS
11673 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
11674 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
11675 if test $ac_cv_lib_socket_main = yes; then
11676 gcj_cv_lib_sockets="-lsocket"
11677 else
11678 gcj_checkBoth=1
11682 if test "$gcj_checkBoth" = 1; then
11683 gcj_oldLibs=$LIBS
11684 LIBS="$LIBS -lsocket -lnsl"
11685 unset ac_cv_func_accept
11686 echo "$as_me:$LINENO: checking for accept" >&5
11687 echo $ECHO_N "checking for accept... $ECHO_C" >&6
11688 if test "${ac_cv_func_accept+set}" = set; then
11689 echo $ECHO_N "(cached) $ECHO_C" >&6
11690 else
11691 if test x$gcc_no_link = xyes; then
11692 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11693 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11694 { (exit 1); exit 1; }; }
11696 cat >conftest.$ac_ext <<_ACEOF
11697 /* confdefs.h. */
11698 _ACEOF
11699 cat confdefs.h >>conftest.$ac_ext
11700 cat >>conftest.$ac_ext <<_ACEOF
11701 /* end confdefs.h. */
11702 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
11703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11704 #define accept innocuous_accept
11706 /* System header to define __stub macros and hopefully few prototypes,
11707 which can conflict with char accept (); below.
11708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11709 <limits.h> exists even on freestanding compilers. */
11711 #ifdef __STDC__
11712 # include <limits.h>
11713 #else
11714 # include <assert.h>
11715 #endif
11717 #undef accept
11719 /* Override any gcc2 internal prototype to avoid an error. */
11720 #ifdef __cplusplus
11721 extern "C"
11723 #endif
11724 /* We use char because int might match the return type of a gcc2
11725 builtin and then its argument prototype would still apply. */
11726 char accept ();
11727 /* The GNU C library defines this for functions which it implements
11728 to always fail with ENOSYS. Some functions are actually named
11729 something starting with __ and the normal name is an alias. */
11730 #if defined (__stub_accept) || defined (__stub___accept)
11731 choke me
11732 #else
11733 char (*f) () = accept;
11734 #endif
11735 #ifdef __cplusplus
11737 #endif
11740 main ()
11742 return f != accept;
11744 return 0;
11746 _ACEOF
11747 rm -f conftest.$ac_objext conftest$ac_exeext
11748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11749 (eval $ac_link) 2>conftest.er1
11750 ac_status=$?
11751 grep -v '^ *+' conftest.er1 >conftest.err
11752 rm -f conftest.er1
11753 cat conftest.err >&5
11754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 (exit $ac_status); } &&
11756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11758 (eval $ac_try) 2>&5
11759 ac_status=$?
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); }; } &&
11762 { ac_try='test -s conftest$ac_exeext'
11763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11764 (eval $ac_try) 2>&5
11765 ac_status=$?
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767 (exit $ac_status); }; }; then
11768 ac_cv_func_accept=yes
11769 else
11770 echo "$as_me: failed program was:" >&5
11771 sed 's/^/| /' conftest.$ac_ext >&5
11773 ac_cv_func_accept=no
11775 rm -f conftest.err conftest.$ac_objext \
11776 conftest$ac_exeext conftest.$ac_ext
11778 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
11779 echo "${ECHO_T}$ac_cv_func_accept" >&6
11780 if test $ac_cv_func_accept = yes; then
11781 gcj_checkNsl=0
11782 gcj_cv_lib_sockets="-lsocket -lnsl"
11785 unset ac_cv_func_accept
11786 LIBS=$gcj_oldLibs
11788 unset ac_cv_func_gethostbyname
11789 gcj_oldLibs=$LIBS
11790 LIBS="$LIBS $gcj_cv_lib_sockets"
11791 echo "$as_me:$LINENO: checking for gethostbyname" >&5
11792 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
11793 if test "${ac_cv_func_gethostbyname+set}" = set; then
11794 echo $ECHO_N "(cached) $ECHO_C" >&6
11795 else
11796 if test x$gcc_no_link = xyes; then
11797 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11798 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11799 { (exit 1); exit 1; }; }
11801 cat >conftest.$ac_ext <<_ACEOF
11802 /* confdefs.h. */
11803 _ACEOF
11804 cat confdefs.h >>conftest.$ac_ext
11805 cat >>conftest.$ac_ext <<_ACEOF
11806 /* end confdefs.h. */
11807 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
11808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11809 #define gethostbyname innocuous_gethostbyname
11811 /* System header to define __stub macros and hopefully few prototypes,
11812 which can conflict with char gethostbyname (); below.
11813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11814 <limits.h> exists even on freestanding compilers. */
11816 #ifdef __STDC__
11817 # include <limits.h>
11818 #else
11819 # include <assert.h>
11820 #endif
11822 #undef gethostbyname
11824 /* Override any gcc2 internal prototype to avoid an error. */
11825 #ifdef __cplusplus
11826 extern "C"
11828 #endif
11829 /* We use char because int might match the return type of a gcc2
11830 builtin and then its argument prototype would still apply. */
11831 char gethostbyname ();
11832 /* The GNU C library defines this for functions which it implements
11833 to always fail with ENOSYS. Some functions are actually named
11834 something starting with __ and the normal name is an alias. */
11835 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
11836 choke me
11837 #else
11838 char (*f) () = gethostbyname;
11839 #endif
11840 #ifdef __cplusplus
11842 #endif
11845 main ()
11847 return f != gethostbyname;
11849 return 0;
11851 _ACEOF
11852 rm -f conftest.$ac_objext conftest$ac_exeext
11853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11854 (eval $ac_link) 2>conftest.er1
11855 ac_status=$?
11856 grep -v '^ *+' conftest.er1 >conftest.err
11857 rm -f conftest.er1
11858 cat conftest.err >&5
11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); } &&
11861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11863 (eval $ac_try) 2>&5
11864 ac_status=$?
11865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 (exit $ac_status); }; } &&
11867 { ac_try='test -s conftest$ac_exeext'
11868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11869 (eval $ac_try) 2>&5
11870 ac_status=$?
11871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872 (exit $ac_status); }; }; then
11873 ac_cv_func_gethostbyname=yes
11874 else
11875 echo "$as_me: failed program was:" >&5
11876 sed 's/^/| /' conftest.$ac_ext >&5
11878 ac_cv_func_gethostbyname=no
11880 rm -f conftest.err conftest.$ac_objext \
11881 conftest$ac_exeext conftest.$ac_ext
11883 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
11884 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
11885 if test $ac_cv_func_gethostbyname = yes; then
11887 else
11888 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
11889 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
11890 if test "${ac_cv_lib_nsl_main+set}" = set; then
11891 echo $ECHO_N "(cached) $ECHO_C" >&6
11892 else
11893 ac_check_lib_save_LIBS=$LIBS
11894 LIBS="-lnsl $LIBS"
11895 if test x$gcc_no_link = xyes; then
11896 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11897 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11898 { (exit 1); exit 1; }; }
11900 cat >conftest.$ac_ext <<_ACEOF
11901 /* confdefs.h. */
11902 _ACEOF
11903 cat confdefs.h >>conftest.$ac_ext
11904 cat >>conftest.$ac_ext <<_ACEOF
11905 /* end confdefs.h. */
11909 main ()
11911 main ();
11913 return 0;
11915 _ACEOF
11916 rm -f conftest.$ac_objext conftest$ac_exeext
11917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11918 (eval $ac_link) 2>conftest.er1
11919 ac_status=$?
11920 grep -v '^ *+' conftest.er1 >conftest.err
11921 rm -f conftest.er1
11922 cat conftest.err >&5
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); } &&
11925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11927 (eval $ac_try) 2>&5
11928 ac_status=$?
11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); }; } &&
11931 { ac_try='test -s conftest$ac_exeext'
11932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11933 (eval $ac_try) 2>&5
11934 ac_status=$?
11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); }; }; then
11937 ac_cv_lib_nsl_main=yes
11938 else
11939 echo "$as_me: failed program was:" >&5
11940 sed 's/^/| /' conftest.$ac_ext >&5
11942 ac_cv_lib_nsl_main=no
11944 rm -f conftest.err conftest.$ac_objext \
11945 conftest$ac_exeext conftest.$ac_ext
11946 LIBS=$ac_check_lib_save_LIBS
11948 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
11949 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
11950 if test $ac_cv_lib_nsl_main = yes; then
11951 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
11956 unset ac_cv_func_gethostbyname
11957 LIBS=$gcj_oldLIBS
11960 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
11961 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
11962 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
11964 if test "$with_system_zlib" = yes; then
11965 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
11966 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
11967 if test "${ac_cv_lib_z_deflate+set}" = set; then
11968 echo $ECHO_N "(cached) $ECHO_C" >&6
11969 else
11970 ac_check_lib_save_LIBS=$LIBS
11971 LIBS="-lz $LIBS"
11972 if test x$gcc_no_link = xyes; then
11973 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11974 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11975 { (exit 1); exit 1; }; }
11977 cat >conftest.$ac_ext <<_ACEOF
11978 /* confdefs.h. */
11979 _ACEOF
11980 cat confdefs.h >>conftest.$ac_ext
11981 cat >>conftest.$ac_ext <<_ACEOF
11982 /* end confdefs.h. */
11984 /* Override any gcc2 internal prototype to avoid an error. */
11985 #ifdef __cplusplus
11986 extern "C"
11987 #endif
11988 /* We use char because int might match the return type of a gcc2
11989 builtin and then its argument prototype would still apply. */
11990 char deflate ();
11992 main ()
11994 deflate ();
11996 return 0;
11998 _ACEOF
11999 rm -f conftest.$ac_objext conftest$ac_exeext
12000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12001 (eval $ac_link) 2>conftest.er1
12002 ac_status=$?
12003 grep -v '^ *+' conftest.er1 >conftest.err
12004 rm -f conftest.er1
12005 cat conftest.err >&5
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); } &&
12008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12010 (eval $ac_try) 2>&5
12011 ac_status=$?
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); }; } &&
12014 { ac_try='test -s conftest$ac_exeext'
12015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12016 (eval $ac_try) 2>&5
12017 ac_status=$?
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); }; }; then
12020 ac_cv_lib_z_deflate=yes
12021 else
12022 echo "$as_me: failed program was:" >&5
12023 sed 's/^/| /' conftest.$ac_ext >&5
12025 ac_cv_lib_z_deflate=no
12027 rm -f conftest.err conftest.$ac_objext \
12028 conftest$ac_exeext conftest.$ac_ext
12029 LIBS=$ac_check_lib_save_LIBS
12031 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
12032 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
12033 if test $ac_cv_lib_z_deflate = yes; then
12034 ZLIBSPEC=-lz
12035 else
12036 ZLIBSPEC=
12041 # Test for Gtk stuff, if asked for.
12042 if test "$use_gtk_awt" = yes; then
12044 succeeded=no
12046 if test -z "$PKG_CONFIG"; then
12047 # Extract the first word of "pkg-config", so it can be a program name with args.
12048 set dummy pkg-config; ac_word=$2
12049 echo "$as_me:$LINENO: checking for $ac_word" >&5
12050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12051 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12052 echo $ECHO_N "(cached) $ECHO_C" >&6
12053 else
12054 case $PKG_CONFIG in
12055 [\\/]* | ?:[\\/]*)
12056 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12060 for as_dir in $PATH
12062 IFS=$as_save_IFS
12063 test -z "$as_dir" && as_dir=.
12064 for ac_exec_ext in '' $ac_executable_extensions; do
12065 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12066 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12068 break 2
12070 done
12071 done
12073 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12075 esac
12077 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12079 if test -n "$PKG_CONFIG"; then
12080 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12081 echo "${ECHO_T}$PKG_CONFIG" >&6
12082 else
12083 echo "$as_me:$LINENO: result: no" >&5
12084 echo "${ECHO_T}no" >&6
12089 if test "$PKG_CONFIG" = "no" ; then
12090 echo "*** The pkg-config script could not be found. Make sure it is"
12091 echo "*** in your path, or set the PKG_CONFIG environment variable"
12092 echo "*** to the full path to pkg-config."
12093 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12094 else
12095 PKG_CONFIG_MIN_VERSION=0.9.0
12096 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12097 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
12098 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
12100 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
12101 echo "$as_me:$LINENO: result: yes" >&5
12102 echo "${ECHO_T}yes" >&6
12103 succeeded=yes
12105 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
12106 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
12107 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
12108 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
12109 echo "${ECHO_T}$GTK_CFLAGS" >&6
12111 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
12112 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
12113 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
12114 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
12115 echo "${ECHO_T}$GTK_LIBS" >&6
12116 else
12117 GTK_CFLAGS=""
12118 GTK_LIBS=""
12119 ## If we have a custom action on failure, don't print errors, but
12120 ## do set a variable so people can do so.
12121 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
12122 echo $GTK_PKG_ERRORS
12127 else
12128 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12129 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12133 if test $succeeded = yes; then
12135 else
12136 { { 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
12137 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;}
12138 { (exit 1); exit 1; }; }
12145 succeeded=no
12147 if test -z "$PKG_CONFIG"; then
12148 # Extract the first word of "pkg-config", so it can be a program name with args.
12149 set dummy pkg-config; ac_word=$2
12150 echo "$as_me:$LINENO: checking for $ac_word" >&5
12151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12152 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12153 echo $ECHO_N "(cached) $ECHO_C" >&6
12154 else
12155 case $PKG_CONFIG in
12156 [\\/]* | ?:[\\/]*)
12157 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12161 for as_dir in $PATH
12163 IFS=$as_save_IFS
12164 test -z "$as_dir" && as_dir=.
12165 for ac_exec_ext in '' $ac_executable_extensions; do
12166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12167 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12169 break 2
12171 done
12172 done
12174 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12176 esac
12178 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12180 if test -n "$PKG_CONFIG"; then
12181 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12182 echo "${ECHO_T}$PKG_CONFIG" >&6
12183 else
12184 echo "$as_me:$LINENO: result: no" >&5
12185 echo "${ECHO_T}no" >&6
12190 if test "$PKG_CONFIG" = "no" ; then
12191 echo "*** The pkg-config script could not be found. Make sure it is"
12192 echo "*** in your path, or set the PKG_CONFIG environment variable"
12193 echo "*** to the full path to pkg-config."
12194 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12195 else
12196 PKG_CONFIG_MIN_VERSION=0.9.0
12197 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12198 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
12199 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
12201 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
12202 echo "$as_me:$LINENO: result: yes" >&5
12203 echo "${ECHO_T}yes" >&6
12204 succeeded=yes
12206 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
12207 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
12208 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
12209 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
12210 echo "${ECHO_T}$GLIB_CFLAGS" >&6
12212 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
12213 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
12214 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
12215 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
12216 echo "${ECHO_T}$GLIB_LIBS" >&6
12217 else
12218 GLIB_CFLAGS=""
12219 GLIB_LIBS=""
12220 ## If we have a custom action on failure, don't print errors, but
12221 ## do set a variable so people can do so.
12222 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
12223 echo $GLIB_PKG_ERRORS
12228 else
12229 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12230 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12234 if test $succeeded = yes; then
12236 else
12237 { { 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
12238 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;}
12239 { (exit 1); exit 1; }; }
12246 succeeded=no
12248 if test -z "$PKG_CONFIG"; then
12249 # Extract the first word of "pkg-config", so it can be a program name with args.
12250 set dummy pkg-config; ac_word=$2
12251 echo "$as_me:$LINENO: checking for $ac_word" >&5
12252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12253 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12254 echo $ECHO_N "(cached) $ECHO_C" >&6
12255 else
12256 case $PKG_CONFIG in
12257 [\\/]* | ?:[\\/]*)
12258 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12262 for as_dir in $PATH
12264 IFS=$as_save_IFS
12265 test -z "$as_dir" && as_dir=.
12266 for ac_exec_ext in '' $ac_executable_extensions; do
12267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12268 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12270 break 2
12272 done
12273 done
12275 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12277 esac
12279 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12281 if test -n "$PKG_CONFIG"; then
12282 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12283 echo "${ECHO_T}$PKG_CONFIG" >&6
12284 else
12285 echo "$as_me:$LINENO: result: no" >&5
12286 echo "${ECHO_T}no" >&6
12291 if test "$PKG_CONFIG" = "no" ; then
12292 echo "*** The pkg-config script could not be found. Make sure it is"
12293 echo "*** in your path, or set the PKG_CONFIG environment variable"
12294 echo "*** to the full path to pkg-config."
12295 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12296 else
12297 PKG_CONFIG_MIN_VERSION=0.9.0
12298 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12299 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
12300 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
12302 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
12303 echo "$as_me:$LINENO: result: yes" >&5
12304 echo "${ECHO_T}yes" >&6
12305 succeeded=yes
12307 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
12308 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
12309 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
12310 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
12311 echo "${ECHO_T}$LIBART_CFLAGS" >&6
12313 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
12314 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
12315 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
12316 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
12317 echo "${ECHO_T}$LIBART_LIBS" >&6
12318 else
12319 LIBART_CFLAGS=""
12320 LIBART_LIBS=""
12321 ## If we have a custom action on failure, don't print errors, but
12322 ## do set a variable so people can do so.
12323 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
12324 echo $LIBART_PKG_ERRORS
12329 else
12330 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12331 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12335 if test $succeeded = yes; then
12337 else
12338 { { 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
12339 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;}
12340 { (exit 1); exit 1; }; }
12347 # On Solaris, and maybe other architectures, the Boehm collector
12348 # requires -ldl.
12349 if test "$GC" = boehm; then
12350 echo "$as_me:$LINENO: checking for main in -ldl" >&5
12351 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
12352 if test "${ac_cv_lib_dl_main+set}" = set; then
12353 echo $ECHO_N "(cached) $ECHO_C" >&6
12354 else
12355 ac_check_lib_save_LIBS=$LIBS
12356 LIBS="-ldl $LIBS"
12357 if test x$gcc_no_link = xyes; then
12358 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12359 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12360 { (exit 1); exit 1; }; }
12362 cat >conftest.$ac_ext <<_ACEOF
12363 /* confdefs.h. */
12364 _ACEOF
12365 cat confdefs.h >>conftest.$ac_ext
12366 cat >>conftest.$ac_ext <<_ACEOF
12367 /* end confdefs.h. */
12371 main ()
12373 main ();
12375 return 0;
12377 _ACEOF
12378 rm -f conftest.$ac_objext conftest$ac_exeext
12379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12380 (eval $ac_link) 2>conftest.er1
12381 ac_status=$?
12382 grep -v '^ *+' conftest.er1 >conftest.err
12383 rm -f conftest.er1
12384 cat conftest.err >&5
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); } &&
12387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12389 (eval $ac_try) 2>&5
12390 ac_status=$?
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); }; } &&
12393 { ac_try='test -s conftest$ac_exeext'
12394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12395 (eval $ac_try) 2>&5
12396 ac_status=$?
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); }; }; then
12399 ac_cv_lib_dl_main=yes
12400 else
12401 echo "$as_me: failed program was:" >&5
12402 sed 's/^/| /' conftest.$ac_ext >&5
12404 ac_cv_lib_dl_main=no
12406 rm -f conftest.err conftest.$ac_objext \
12407 conftest$ac_exeext conftest.$ac_ext
12408 LIBS=$ac_check_lib_save_LIBS
12410 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
12411 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
12412 if test $ac_cv_lib_dl_main = yes; then
12413 SYSTEMSPEC="$SYSTEMSPEC -ldl"
12419 if test -z "${with_multisubdir}"; then
12420 builddotdot=.
12421 else
12422 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
12425 NATIVE=yes
12427 # Which gcj do we use?
12428 which_gcj=default
12429 built_gcc_dir="`cd ${builddotdot}/../../gcc && ${PWDCMD-pwd}`"
12430 if test -n "${with_cross_host}"; then
12431 # We are being configured with a cross compiler. We can't
12432 # use ac_exeext, because that is for the target platform.
12433 NATIVE=no
12434 cross_host_exeext=
12435 case "${with_cross_host}" in
12436 *mingw* | *cygwin*)
12437 cross_host_exeext=.exe
12439 esac
12440 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
12441 if test x"$build_noncanonical" = x"$with_cross_host"; then
12442 # Ordinary cross (host!=target and host=build)
12443 which_gcj=built
12444 else
12445 # Canadian cross (host!=target and host!=build)
12446 which_gcj=cross
12448 else
12449 which_gcj=cross
12451 else
12452 # We are being configured with a native or crossed-native compiler
12453 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
12454 if test x"$build" = x"$host"; then
12455 # True native build (host=target and host=build)
12456 which_gcj=built
12457 else
12458 # Crossed-native build (host=target and host!=build)
12459 which_gcj=cross
12461 else
12462 which_gcj=path
12465 case "${which_gcj}" in
12466 built)
12467 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
12468 GCJH='$(MULTIBUILDTOP)../$(COMPPATH)/gcc/gcjh'
12469 ZIP='$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
12471 cross)
12472 if test "x${with_newlib}" = "xyes"; then
12473 # FIXME (comment): Why is this needed?
12474 GCC_UNWIND_INCLUDE=
12475 GCJ="${target_noncanonical}-gcj"
12476 else
12477 GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
12479 ZIP=jar
12480 GCJH='$(target_noncanonical)-gcjh'
12482 path)
12483 GCJ="gcj -B`${PWDCMD-pwd}`/"
12484 ## In this case, gcj is found outside the build tree. However, zip is
12485 ## found in the build tree.
12486 ZIP='$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
12487 GCJH=gcjh
12489 esac
12494 # Create it, so that compile/link tests don't fail
12495 test -f libgcj.spec || touch libgcj.spec
12497 # We must search the source tree for java.lang, since we still don't
12498 # have libgcj.jar nor java/lang/*.class
12499 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
12500 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
12502 # Since some classes depend on this one, we need its source available
12503 # before we can do any GCJ compilation test :-(
12504 if test ! -f gnu/classpath/Configuration.java; then
12505 test -d gnu || mkdir gnu
12506 test -d gnu/classpath || mkdir gnu/classpath
12507 sed -e 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
12508 -e 's,@TOOLKIT@,$TOOLKIT,' \
12509 < $srcdir/gnu/classpath/Configuration.java.in \
12510 > gnu/classpath/Configuration.java
12511 # We do not want to redirect the output of the grep below to /dev/null,
12512 # but we add /dev/null to the input list so that grep will print the
12513 # filename of Configuration.java in case it finds any matches.
12514 if grep @ gnu/classpath/Configuration.java /dev/null; then
12515 { { echo "$as_me:$LINENO: error: configure.in is missing the substitutions above" >&5
12516 echo "$as_me: error: configure.in is missing the substitutions above" >&2;}
12517 { (exit 1); exit 1; }; }
12521 if test -n "$ac_tool_prefix"; then
12522 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
12523 set dummy ${ac_tool_prefix}gcj; ac_word=$2
12524 echo "$as_me:$LINENO: checking for $ac_word" >&5
12525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12526 if test "${ac_cv_prog_GCJ+set}" = set; then
12527 echo $ECHO_N "(cached) $ECHO_C" >&6
12528 else
12529 if test -n "$GCJ"; then
12530 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
12531 else
12532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12533 for as_dir in $PATH
12535 IFS=$as_save_IFS
12536 test -z "$as_dir" && as_dir=.
12537 for ac_exec_ext in '' $ac_executable_extensions; do
12538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12539 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
12540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12541 break 2
12543 done
12544 done
12548 GCJ=$ac_cv_prog_GCJ
12549 if test -n "$GCJ"; then
12550 echo "$as_me:$LINENO: result: $GCJ" >&5
12551 echo "${ECHO_T}$GCJ" >&6
12552 else
12553 echo "$as_me:$LINENO: result: no" >&5
12554 echo "${ECHO_T}no" >&6
12558 if test -z "$ac_cv_prog_GCJ"; then
12559 ac_ct_GCJ=$GCJ
12560 # Extract the first word of "gcj", so it can be a program name with args.
12561 set dummy gcj; ac_word=$2
12562 echo "$as_me:$LINENO: checking for $ac_word" >&5
12563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12564 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
12565 echo $ECHO_N "(cached) $ECHO_C" >&6
12566 else
12567 if test -n "$ac_ct_GCJ"; then
12568 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
12569 else
12570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12571 for as_dir in $PATH
12573 IFS=$as_save_IFS
12574 test -z "$as_dir" && as_dir=.
12575 for ac_exec_ext in '' $ac_executable_extensions; do
12576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12577 ac_cv_prog_ac_ct_GCJ="gcj"
12578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12579 break 2
12581 done
12582 done
12584 test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
12587 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
12588 if test -n "$ac_ct_GCJ"; then
12589 echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
12590 echo "${ECHO_T}$ac_ct_GCJ" >&6
12591 else
12592 echo "$as_me:$LINENO: result: no" >&5
12593 echo "${ECHO_T}no" >&6
12596 GCJ=$ac_ct_GCJ
12597 else
12598 GCJ="$ac_cv_prog_GCJ"
12601 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
12605 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
12606 lt_save_CC="$CC"
12607 lt_save_CFLAGS="$CFLAGS"
12608 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
12609 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
12610 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
12611 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
12612 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
12613 deplibs_check_method="$deplibs_check_method" \
12614 file_magic_cmd="$file_magic_cmd" \
12615 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
12616 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
12617 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
12618 echo "$as_me: error: libtool tag configuration failed" >&2;}
12619 { (exit 1); exit 1; }; }
12620 CC="$lt_save_CC"
12621 CFLAGS="$lt_save_CFLAGS"
12623 # Redirect the config.log output again, so that the ltconfig log is not
12624 # clobbered by the next message.
12625 exec 5>>./config.log
12630 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
12632 echo "$as_me:$LINENO: checking size of void *" >&5
12633 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
12634 if test "${ac_cv_sizeof_void_p+set}" = set; then
12635 echo $ECHO_N "(cached) $ECHO_C" >&6
12636 else
12637 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
12638 cat >conftest.$ac_ext <<_ACEOF
12639 /* confdefs.h. */
12640 _ACEOF
12641 cat confdefs.h >>conftest.$ac_ext
12642 cat >>conftest.$ac_ext <<_ACEOF
12643 /* end confdefs.h. */
12644 #include "confdefs.h"
12645 #include <sys/types.h>
12649 main ()
12651 switch (0) case 0: case (sizeof (void *) == $ac_size):;
12653 return 0;
12655 _ACEOF
12656 rm -f conftest.$ac_objext
12657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12658 (eval $ac_compile) 2>conftest.er1
12659 ac_status=$?
12660 grep -v '^ *+' conftest.er1 >conftest.err
12661 rm -f conftest.er1
12662 cat conftest.err >&5
12663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664 (exit $ac_status); } &&
12665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12667 (eval $ac_try) 2>&5
12668 ac_status=$?
12669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670 (exit $ac_status); }; } &&
12671 { ac_try='test -s conftest.$ac_objext'
12672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12673 (eval $ac_try) 2>&5
12674 ac_status=$?
12675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676 (exit $ac_status); }; }; then
12677 ac_cv_sizeof_void_p=$ac_size
12678 else
12679 echo "$as_me: failed program was:" >&5
12680 sed 's/^/| /' conftest.$ac_ext >&5
12683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12684 if test x$ac_cv_sizeof_void_p != x ; then break; fi
12685 done
12689 if test x$ac_cv_sizeof_void_p = x ; then
12690 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
12691 echo "$as_me: error: cannot determine a size for void *" >&2;}
12692 { (exit 1); exit 1; }; }
12694 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
12695 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
12697 cat >>confdefs.h <<_ACEOF
12698 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12699 _ACEOF
12703 ZLIBS=
12704 SYS_ZLIBS=
12705 ZINCS=
12707 if test -z "$ZLIBSPEC"; then
12708 # Use zlib from the GCC tree.
12709 ZINCS='-I$(top_srcdir)/../zlib'
12710 ZLIBS=../zlib/libzgcj_convenience.la
12711 else
12712 # System's zlib.
12713 SYS_ZLIBS="$ZLIBSPEC"
12725 if test "$NATIVE" = yes; then
12726 NATIVE_TRUE=
12727 NATIVE_FALSE='#'
12728 else
12729 NATIVE_TRUE='#'
12730 NATIVE_FALSE=
12734 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
12735 NEEDS_DATA_START_TRUE=
12736 NEEDS_DATA_START_FALSE='#'
12737 else
12738 NEEDS_DATA_START_TRUE='#'
12739 NEEDS_DATA_START_FALSE=
12743 # Process the option "--enable-version-specific-runtime-libs"
12744 # Calculate toolexeclibdir
12745 case ${version_specific_libs} in
12746 yes)
12747 # Need the gcc compiler version to know where to install libraries
12748 # and header files if --enable-version-specific-runtime-libs option
12749 # is selected.
12750 includedir='${libdir}/gcc/${target_noncanonical}/'$gcc_version/include/
12751 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
12752 toolexecmainlibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
12753 toolexeclibdir=$toolexecmainlibdir
12756 if test -n "$with_cross_host" &&
12757 test x"$with_cross_host" != x"no"; then
12758 # Install a library built with a cross compiler in tooldir, not libdir.
12759 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
12760 toolexecmainlibdir='$(toolexecdir)/lib'
12761 else
12762 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
12763 toolexecmainlibdir='$(libdir)'
12765 multi_os_directory=`$CC -print-multi-os-directory`
12766 case $multi_os_directory in
12767 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
12768 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
12769 esac
12771 esac
12776 # Determine gcj version number.
12777 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
12778 GCJVERSION=$gcjversion
12781 cat >>confdefs.h <<_ACEOF
12782 #define GCJVERSION "$GCJVERSION"
12783 _ACEOF
12786 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
12787 # On that system, sys/ioctl.h will not include sys/filio.h unless
12788 # BSD_COMP is defined; just including sys/filio.h is simpler.
12808 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h sys/ioctl.h sys/filio.h sys/stat.h sys/select.h sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h pwd.h sys/config.h stdint.h langinfo.h locale.h
12810 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12812 echo "$as_me:$LINENO: checking for $ac_header" >&5
12813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12815 echo $ECHO_N "(cached) $ECHO_C" >&6
12817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12819 else
12820 # Is the header compilable?
12821 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12822 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12823 cat >conftest.$ac_ext <<_ACEOF
12824 /* confdefs.h. */
12825 _ACEOF
12826 cat confdefs.h >>conftest.$ac_ext
12827 cat >>conftest.$ac_ext <<_ACEOF
12828 /* end confdefs.h. */
12829 $ac_includes_default
12830 #include <$ac_header>
12831 _ACEOF
12832 rm -f conftest.$ac_objext
12833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12834 (eval $ac_compile) 2>conftest.er1
12835 ac_status=$?
12836 grep -v '^ *+' conftest.er1 >conftest.err
12837 rm -f conftest.er1
12838 cat conftest.err >&5
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); } &&
12841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12843 (eval $ac_try) 2>&5
12844 ac_status=$?
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); }; } &&
12847 { ac_try='test -s conftest.$ac_objext'
12848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12849 (eval $ac_try) 2>&5
12850 ac_status=$?
12851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852 (exit $ac_status); }; }; then
12853 ac_header_compiler=yes
12854 else
12855 echo "$as_me: failed program was:" >&5
12856 sed 's/^/| /' conftest.$ac_ext >&5
12858 ac_header_compiler=no
12860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12861 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12862 echo "${ECHO_T}$ac_header_compiler" >&6
12864 # Is the header present?
12865 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12866 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12867 cat >conftest.$ac_ext <<_ACEOF
12868 /* confdefs.h. */
12869 _ACEOF
12870 cat confdefs.h >>conftest.$ac_ext
12871 cat >>conftest.$ac_ext <<_ACEOF
12872 /* end confdefs.h. */
12873 #include <$ac_header>
12874 _ACEOF
12875 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12876 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12877 ac_status=$?
12878 grep -v '^ *+' conftest.er1 >conftest.err
12879 rm -f conftest.er1
12880 cat conftest.err >&5
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); } >/dev/null; then
12883 if test -s conftest.err; then
12884 ac_cpp_err=$ac_c_preproc_warn_flag
12885 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12886 else
12887 ac_cpp_err=
12889 else
12890 ac_cpp_err=yes
12892 if test -z "$ac_cpp_err"; then
12893 ac_header_preproc=yes
12894 else
12895 echo "$as_me: failed program was:" >&5
12896 sed 's/^/| /' conftest.$ac_ext >&5
12898 ac_header_preproc=no
12900 rm -f conftest.err conftest.$ac_ext
12901 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12902 echo "${ECHO_T}$ac_header_preproc" >&6
12904 # So? What about this header?
12905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12906 yes:no: )
12907 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12908 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12910 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12911 ac_header_preproc=yes
12913 no:yes:* )
12914 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12915 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12916 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12917 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12918 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12919 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12920 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12921 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12923 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12924 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12925 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12927 cat <<\_ASBOX
12928 ## ------------------------------------------ ##
12929 ## Report this to the AC_PACKAGE_NAME lists. ##
12930 ## ------------------------------------------ ##
12931 _ASBOX
12933 sed "s/^/$as_me: WARNING: /" >&2
12935 esac
12936 echo "$as_me:$LINENO: checking for $ac_header" >&5
12937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12939 echo $ECHO_N "(cached) $ECHO_C" >&6
12940 else
12941 eval "$as_ac_Header=\$ac_header_preproc"
12943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12944 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12947 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12948 cat >>confdefs.h <<_ACEOF
12949 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12950 _ACEOF
12954 done
12956 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
12957 # for now. If you change this, you also must update natFile.cc.
12959 for ac_header in dirent.h
12961 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12963 echo "$as_me:$LINENO: checking for $ac_header" >&5
12964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12966 echo $ECHO_N "(cached) $ECHO_C" >&6
12968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12970 else
12971 # Is the header compilable?
12972 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12973 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12974 cat >conftest.$ac_ext <<_ACEOF
12975 /* confdefs.h. */
12976 _ACEOF
12977 cat confdefs.h >>conftest.$ac_ext
12978 cat >>conftest.$ac_ext <<_ACEOF
12979 /* end confdefs.h. */
12980 $ac_includes_default
12981 #include <$ac_header>
12982 _ACEOF
12983 rm -f conftest.$ac_objext
12984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12985 (eval $ac_compile) 2>conftest.er1
12986 ac_status=$?
12987 grep -v '^ *+' conftest.er1 >conftest.err
12988 rm -f conftest.er1
12989 cat conftest.err >&5
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); } &&
12992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12994 (eval $ac_try) 2>&5
12995 ac_status=$?
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); }; } &&
12998 { ac_try='test -s conftest.$ac_objext'
12999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13000 (eval $ac_try) 2>&5
13001 ac_status=$?
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); }; }; then
13004 ac_header_compiler=yes
13005 else
13006 echo "$as_me: failed program was:" >&5
13007 sed 's/^/| /' conftest.$ac_ext >&5
13009 ac_header_compiler=no
13011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13012 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13013 echo "${ECHO_T}$ac_header_compiler" >&6
13015 # Is the header present?
13016 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13017 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13018 cat >conftest.$ac_ext <<_ACEOF
13019 /* confdefs.h. */
13020 _ACEOF
13021 cat confdefs.h >>conftest.$ac_ext
13022 cat >>conftest.$ac_ext <<_ACEOF
13023 /* end confdefs.h. */
13024 #include <$ac_header>
13025 _ACEOF
13026 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13027 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13028 ac_status=$?
13029 grep -v '^ *+' conftest.er1 >conftest.err
13030 rm -f conftest.er1
13031 cat conftest.err >&5
13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033 (exit $ac_status); } >/dev/null; then
13034 if test -s conftest.err; then
13035 ac_cpp_err=$ac_c_preproc_warn_flag
13036 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13037 else
13038 ac_cpp_err=
13040 else
13041 ac_cpp_err=yes
13043 if test -z "$ac_cpp_err"; then
13044 ac_header_preproc=yes
13045 else
13046 echo "$as_me: failed program was:" >&5
13047 sed 's/^/| /' conftest.$ac_ext >&5
13049 ac_header_preproc=no
13051 rm -f conftest.err conftest.$ac_ext
13052 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13053 echo "${ECHO_T}$ac_header_preproc" >&6
13055 # So? What about this header?
13056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13057 yes:no: )
13058 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13059 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13060 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13061 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13062 ac_header_preproc=yes
13064 no:yes:* )
13065 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13066 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13067 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13068 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13069 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13070 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13071 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13072 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13074 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13075 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13076 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13078 cat <<\_ASBOX
13079 ## ------------------------------------------ ##
13080 ## Report this to the AC_PACKAGE_NAME lists. ##
13081 ## ------------------------------------------ ##
13082 _ASBOX
13084 sed "s/^/$as_me: WARNING: /" >&2
13086 esac
13087 echo "$as_me:$LINENO: checking for $ac_header" >&5
13088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13090 echo $ECHO_N "(cached) $ECHO_C" >&6
13091 else
13092 eval "$as_ac_Header=\$ac_header_preproc"
13094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13095 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13098 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13099 cat >>confdefs.h <<_ACEOF
13100 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13101 _ACEOF
13105 done
13108 for ac_header in inttypes.h
13110 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13111 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13112 echo "$as_me:$LINENO: checking for $ac_header" >&5
13113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13114 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13115 echo $ECHO_N "(cached) $ECHO_C" >&6
13117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13118 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13119 else
13120 # Is the header compilable?
13121 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13122 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13123 cat >conftest.$ac_ext <<_ACEOF
13124 /* confdefs.h. */
13125 _ACEOF
13126 cat confdefs.h >>conftest.$ac_ext
13127 cat >>conftest.$ac_ext <<_ACEOF
13128 /* end confdefs.h. */
13129 $ac_includes_default
13130 #include <$ac_header>
13131 _ACEOF
13132 rm -f conftest.$ac_objext
13133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13134 (eval $ac_compile) 2>conftest.er1
13135 ac_status=$?
13136 grep -v '^ *+' conftest.er1 >conftest.err
13137 rm -f conftest.er1
13138 cat conftest.err >&5
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); } &&
13141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13143 (eval $ac_try) 2>&5
13144 ac_status=$?
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); }; } &&
13147 { ac_try='test -s conftest.$ac_objext'
13148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13149 (eval $ac_try) 2>&5
13150 ac_status=$?
13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); }; }; then
13153 ac_header_compiler=yes
13154 else
13155 echo "$as_me: failed program was:" >&5
13156 sed 's/^/| /' conftest.$ac_ext >&5
13158 ac_header_compiler=no
13160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13161 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13162 echo "${ECHO_T}$ac_header_compiler" >&6
13164 # Is the header present?
13165 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13166 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13167 cat >conftest.$ac_ext <<_ACEOF
13168 /* confdefs.h. */
13169 _ACEOF
13170 cat confdefs.h >>conftest.$ac_ext
13171 cat >>conftest.$ac_ext <<_ACEOF
13172 /* end confdefs.h. */
13173 #include <$ac_header>
13174 _ACEOF
13175 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13176 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13177 ac_status=$?
13178 grep -v '^ *+' conftest.er1 >conftest.err
13179 rm -f conftest.er1
13180 cat conftest.err >&5
13181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182 (exit $ac_status); } >/dev/null; then
13183 if test -s conftest.err; then
13184 ac_cpp_err=$ac_c_preproc_warn_flag
13185 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13186 else
13187 ac_cpp_err=
13189 else
13190 ac_cpp_err=yes
13192 if test -z "$ac_cpp_err"; then
13193 ac_header_preproc=yes
13194 else
13195 echo "$as_me: failed program was:" >&5
13196 sed 's/^/| /' conftest.$ac_ext >&5
13198 ac_header_preproc=no
13200 rm -f conftest.err conftest.$ac_ext
13201 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13202 echo "${ECHO_T}$ac_header_preproc" >&6
13204 # So? What about this header?
13205 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13206 yes:no: )
13207 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13208 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13210 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13211 ac_header_preproc=yes
13213 no:yes:* )
13214 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13215 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13216 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13217 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13218 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13219 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13220 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13221 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13222 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13223 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13224 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13225 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13227 cat <<\_ASBOX
13228 ## ------------------------------------------ ##
13229 ## Report this to the AC_PACKAGE_NAME lists. ##
13230 ## ------------------------------------------ ##
13231 _ASBOX
13233 sed "s/^/$as_me: WARNING: /" >&2
13235 esac
13236 echo "$as_me:$LINENO: checking for $ac_header" >&5
13237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13239 echo $ECHO_N "(cached) $ECHO_C" >&6
13240 else
13241 eval "$as_ac_Header=\$ac_header_preproc"
13243 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13244 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13247 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13248 cat >>confdefs.h <<_ACEOF
13249 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13250 _ACEOF
13253 cat >>confdefs.h <<\_ACEOF
13254 #define HAVE_INTTYPES_H 1
13255 _ACEOF
13258 cat >>confdefs.h <<\_ACEOF
13259 #define JV_HAVE_INTTYPES_H 1
13260 _ACEOF
13265 done
13267 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13268 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13269 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13270 echo $ECHO_N "(cached) $ECHO_C" >&6
13271 else
13272 cat >conftest.$ac_ext <<_ACEOF
13273 /* confdefs.h. */
13274 _ACEOF
13275 cat confdefs.h >>conftest.$ac_ext
13276 cat >>conftest.$ac_ext <<_ACEOF
13277 /* end confdefs.h. */
13278 #include <sys/types.h>
13279 #include <sys/wait.h>
13280 #ifndef WEXITSTATUS
13281 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13282 #endif
13283 #ifndef WIFEXITED
13284 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13285 #endif
13288 main ()
13290 int s;
13291 wait (&s);
13292 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13294 return 0;
13296 _ACEOF
13297 rm -f conftest.$ac_objext
13298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13299 (eval $ac_compile) 2>conftest.er1
13300 ac_status=$?
13301 grep -v '^ *+' conftest.er1 >conftest.err
13302 rm -f conftest.er1
13303 cat conftest.err >&5
13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); } &&
13306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13308 (eval $ac_try) 2>&5
13309 ac_status=$?
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); }; } &&
13312 { ac_try='test -s conftest.$ac_objext'
13313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13314 (eval $ac_try) 2>&5
13315 ac_status=$?
13316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317 (exit $ac_status); }; }; then
13318 ac_cv_header_sys_wait_h=yes
13319 else
13320 echo "$as_me: failed program was:" >&5
13321 sed 's/^/| /' conftest.$ac_ext >&5
13323 ac_cv_header_sys_wait_h=no
13325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13327 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13328 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13329 if test $ac_cv_header_sys_wait_h = yes; then
13331 cat >>confdefs.h <<\_ACEOF
13332 #define HAVE_SYS_WAIT_H 1
13333 _ACEOF
13338 echo "$as_me:$LINENO: checking for ssize_t" >&5
13339 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
13340 if test "${ac_cv_type_ssize_t+set}" = set; then
13341 echo $ECHO_N "(cached) $ECHO_C" >&6
13342 else
13343 cat >conftest.$ac_ext <<_ACEOF
13344 /* confdefs.h. */
13345 _ACEOF
13346 cat confdefs.h >>conftest.$ac_ext
13347 cat >>conftest.$ac_ext <<_ACEOF
13348 /* end confdefs.h. */
13349 $ac_includes_default
13351 main ()
13353 if ((ssize_t *) 0)
13354 return 0;
13355 if (sizeof (ssize_t))
13356 return 0;
13358 return 0;
13360 _ACEOF
13361 rm -f conftest.$ac_objext
13362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13363 (eval $ac_compile) 2>conftest.er1
13364 ac_status=$?
13365 grep -v '^ *+' conftest.er1 >conftest.err
13366 rm -f conftest.er1
13367 cat conftest.err >&5
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); } &&
13370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13372 (eval $ac_try) 2>&5
13373 ac_status=$?
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); }; } &&
13376 { ac_try='test -s conftest.$ac_objext'
13377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13378 (eval $ac_try) 2>&5
13379 ac_status=$?
13380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381 (exit $ac_status); }; }; then
13382 ac_cv_type_ssize_t=yes
13383 else
13384 echo "$as_me: failed program was:" >&5
13385 sed 's/^/| /' conftest.$ac_ext >&5
13387 ac_cv_type_ssize_t=no
13389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13391 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
13392 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
13393 if test $ac_cv_type_ssize_t = yes; then
13395 else
13397 cat >>confdefs.h <<_ACEOF
13398 #define ssize_t int
13399 _ACEOF
13404 echo "$as_me:$LINENO: checking for in_addr_t" >&5
13405 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
13406 cat >conftest.$ac_ext <<_ACEOF
13407 /* confdefs.h. */
13408 _ACEOF
13409 cat confdefs.h >>conftest.$ac_ext
13410 cat >>conftest.$ac_ext <<_ACEOF
13411 /* end confdefs.h. */
13412 #include <sys/types.h>
13413 #if STDC_HEADERS
13414 #include <stdlib.h>
13415 #include <stddef.h>
13416 #endif
13417 #if HAVE_NETINET_IN_H
13418 #include <netinet/in.h>
13419 #endif
13421 main ()
13423 in_addr_t foo;
13425 return 0;
13427 _ACEOF
13428 rm -f conftest.$ac_objext
13429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13430 (eval $ac_compile) 2>conftest.er1
13431 ac_status=$?
13432 grep -v '^ *+' conftest.er1 >conftest.err
13433 rm -f conftest.er1
13434 cat conftest.err >&5
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); } &&
13437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13439 (eval $ac_try) 2>&5
13440 ac_status=$?
13441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442 (exit $ac_status); }; } &&
13443 { ac_try='test -s conftest.$ac_objext'
13444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13445 (eval $ac_try) 2>&5
13446 ac_status=$?
13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); }; }; then
13450 cat >>confdefs.h <<\_ACEOF
13451 #define HAVE_IN_ADDR_T 1
13452 _ACEOF
13454 echo "$as_me:$LINENO: result: yes" >&5
13455 echo "${ECHO_T}yes" >&6
13456 else
13457 echo "$as_me: failed program was:" >&5
13458 sed 's/^/| /' conftest.$ac_ext >&5
13460 echo "$as_me:$LINENO: result: no" >&5
13461 echo "${ECHO_T}no" >&6
13463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13465 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
13466 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
13467 cat >conftest.$ac_ext <<_ACEOF
13468 /* confdefs.h. */
13469 _ACEOF
13470 cat confdefs.h >>conftest.$ac_ext
13471 cat >>conftest.$ac_ext <<_ACEOF
13472 /* end confdefs.h. */
13473 #include <netinet/in.h>
13475 main ()
13477 struct ip_mreq mreq;
13479 return 0;
13481 _ACEOF
13482 rm -f conftest.$ac_objext
13483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13484 (eval $ac_compile) 2>conftest.er1
13485 ac_status=$?
13486 grep -v '^ *+' conftest.er1 >conftest.err
13487 rm -f conftest.er1
13488 cat conftest.err >&5
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); } &&
13491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13493 (eval $ac_try) 2>&5
13494 ac_status=$?
13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496 (exit $ac_status); }; } &&
13497 { ac_try='test -s conftest.$ac_objext'
13498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13499 (eval $ac_try) 2>&5
13500 ac_status=$?
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); }; }; then
13504 cat >>confdefs.h <<\_ACEOF
13505 #define HAVE_STRUCT_IP_MREQ 1
13506 _ACEOF
13508 echo "$as_me:$LINENO: result: yes" >&5
13509 echo "${ECHO_T}yes" >&6
13510 else
13511 echo "$as_me: failed program was:" >&5
13512 sed 's/^/| /' conftest.$ac_ext >&5
13514 echo "$as_me:$LINENO: result: no" >&5
13515 echo "${ECHO_T}no" >&6
13517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13519 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
13520 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
13521 cat >conftest.$ac_ext <<_ACEOF
13522 /* confdefs.h. */
13523 _ACEOF
13524 cat confdefs.h >>conftest.$ac_ext
13525 cat >>conftest.$ac_ext <<_ACEOF
13526 /* end confdefs.h. */
13527 #include <netinet/in.h>
13529 main ()
13531 struct ipv6_mreq mreq6;
13533 return 0;
13535 _ACEOF
13536 rm -f conftest.$ac_objext
13537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13538 (eval $ac_compile) 2>conftest.er1
13539 ac_status=$?
13540 grep -v '^ *+' conftest.er1 >conftest.err
13541 rm -f conftest.er1
13542 cat conftest.err >&5
13543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544 (exit $ac_status); } &&
13545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13547 (eval $ac_try) 2>&5
13548 ac_status=$?
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); }; } &&
13551 { ac_try='test -s conftest.$ac_objext'
13552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13553 (eval $ac_try) 2>&5
13554 ac_status=$?
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); }; }; then
13558 cat >>confdefs.h <<\_ACEOF
13559 #define HAVE_STRUCT_IPV6_MREQ 1
13560 _ACEOF
13562 echo "$as_me:$LINENO: result: yes" >&5
13563 echo "${ECHO_T}yes" >&6
13564 else
13565 echo "$as_me: failed program was:" >&5
13566 sed 's/^/| /' conftest.$ac_ext >&5
13568 echo "$as_me:$LINENO: result: no" >&5
13569 echo "${ECHO_T}no" >&6
13571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13573 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
13574 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
13575 cat >conftest.$ac_ext <<_ACEOF
13576 /* confdefs.h. */
13577 _ACEOF
13578 cat confdefs.h >>conftest.$ac_ext
13579 cat >>conftest.$ac_ext <<_ACEOF
13580 /* end confdefs.h. */
13581 #include <netinet/in.h>
13583 main ()
13585 struct sockaddr_in6 addr6;
13587 return 0;
13589 _ACEOF
13590 rm -f conftest.$ac_objext
13591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13592 (eval $ac_compile) 2>conftest.er1
13593 ac_status=$?
13594 grep -v '^ *+' conftest.er1 >conftest.err
13595 rm -f conftest.er1
13596 cat conftest.err >&5
13597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 (exit $ac_status); } &&
13599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13605 { ac_try='test -s conftest.$ac_objext'
13606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13607 (eval $ac_try) 2>&5
13608 ac_status=$?
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); }; }; then
13612 cat >>confdefs.h <<\_ACEOF
13613 #define HAVE_INET6 1
13614 _ACEOF
13616 echo "$as_me:$LINENO: result: yes" >&5
13617 echo "${ECHO_T}yes" >&6
13618 else
13619 echo "$as_me: failed program was:" >&5
13620 sed 's/^/| /' conftest.$ac_ext >&5
13622 echo "$as_me:$LINENO: result: no" >&5
13623 echo "${ECHO_T}no" >&6
13625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13627 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
13628 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
13629 cat >conftest.$ac_ext <<_ACEOF
13630 /* confdefs.h. */
13631 _ACEOF
13632 cat confdefs.h >>conftest.$ac_ext
13633 cat >>conftest.$ac_ext <<_ACEOF
13634 /* end confdefs.h. */
13635 #define _POSIX_PII_SOCKET
13636 #include <sys/types.h>
13637 #include <sys/socket.h>
13639 main ()
13641 socklen_t x = 5;
13643 return 0;
13645 _ACEOF
13646 rm -f conftest.$ac_objext
13647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13648 (eval $ac_compile) 2>conftest.er1
13649 ac_status=$?
13650 grep -v '^ *+' conftest.er1 >conftest.err
13651 rm -f conftest.er1
13652 cat conftest.err >&5
13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); } &&
13655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13657 (eval $ac_try) 2>&5
13658 ac_status=$?
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); }; } &&
13661 { ac_try='test -s conftest.$ac_objext'
13662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13663 (eval $ac_try) 2>&5
13664 ac_status=$?
13665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666 (exit $ac_status); }; }; then
13668 cat >>confdefs.h <<\_ACEOF
13669 #define HAVE_SOCKLEN_T 1
13670 _ACEOF
13672 echo "$as_me:$LINENO: result: yes" >&5
13673 echo "${ECHO_T}yes" >&6
13674 else
13675 echo "$as_me: failed program was:" >&5
13676 sed 's/^/| /' conftest.$ac_ext >&5
13678 echo "$as_me:$LINENO: result: no" >&5
13679 echo "${ECHO_T}no" >&6
13681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13683 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
13684 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
13685 cat >conftest.$ac_ext <<_ACEOF
13686 /* confdefs.h. */
13687 _ACEOF
13688 cat confdefs.h >>conftest.$ac_ext
13689 cat >>conftest.$ac_ext <<_ACEOF
13690 /* end confdefs.h. */
13691 #include <time.h>
13693 main ()
13695 struct tm tim; tim.tm_gmtoff = 0;
13697 return 0;
13699 _ACEOF
13700 rm -f conftest.$ac_objext
13701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13702 (eval $ac_compile) 2>conftest.er1
13703 ac_status=$?
13704 grep -v '^ *+' conftest.er1 >conftest.err
13705 rm -f conftest.er1
13706 cat conftest.err >&5
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); } &&
13709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13711 (eval $ac_try) 2>&5
13712 ac_status=$?
13713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714 (exit $ac_status); }; } &&
13715 { ac_try='test -s conftest.$ac_objext'
13716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13717 (eval $ac_try) 2>&5
13718 ac_status=$?
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); }; }; then
13722 cat >>confdefs.h <<\_ACEOF
13723 #define STRUCT_TM_HAS_GMTOFF 1
13724 _ACEOF
13726 echo "$as_me:$LINENO: result: yes" >&5
13727 echo "${ECHO_T}yes" >&6
13728 else
13729 echo "$as_me: failed program was:" >&5
13730 sed 's/^/| /' conftest.$ac_ext >&5
13732 echo "$as_me:$LINENO: result: no" >&5
13733 echo "${ECHO_T}no" >&6
13734 echo "$as_me:$LINENO: checking for global timezone variable" >&5
13735 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
13736 cat >conftest.$ac_ext <<_ACEOF
13737 /* confdefs.h. */
13738 _ACEOF
13739 cat confdefs.h >>conftest.$ac_ext
13740 cat >>conftest.$ac_ext <<_ACEOF
13741 /* end confdefs.h. */
13742 #include <time.h>
13744 main ()
13746 void i(){long z2 = 2*timezone;}
13748 return 0;
13750 _ACEOF
13751 rm -f conftest.$ac_objext
13752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13753 (eval $ac_compile) 2>conftest.er1
13754 ac_status=$?
13755 grep -v '^ *+' conftest.er1 >conftest.err
13756 rm -f conftest.er1
13757 cat conftest.err >&5
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); } &&
13760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13762 (eval $ac_try) 2>&5
13763 ac_status=$?
13764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765 (exit $ac_status); }; } &&
13766 { ac_try='test -s conftest.$ac_objext'
13767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13768 (eval $ac_try) 2>&5
13769 ac_status=$?
13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); }; }; then
13773 cat >>confdefs.h <<\_ACEOF
13774 #define HAVE_TIMEZONE 1
13775 _ACEOF
13777 echo "$as_me:$LINENO: result: yes" >&5
13778 echo "${ECHO_T}yes" >&6
13779 else
13780 echo "$as_me: failed program was:" >&5
13781 sed 's/^/| /' conftest.$ac_ext >&5
13783 echo "$as_me:$LINENO: result: no" >&5
13784 echo "${ECHO_T}no" >&6
13785 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
13786 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
13787 cat >conftest.$ac_ext <<_ACEOF
13788 /* confdefs.h. */
13789 _ACEOF
13790 cat confdefs.h >>conftest.$ac_ext
13791 cat >>conftest.$ac_ext <<_ACEOF
13792 /* end confdefs.h. */
13793 #include <time.h>
13795 main ()
13797 long z2 = _timezone;
13799 return 0;
13801 _ACEOF
13802 rm -f conftest.$ac_objext
13803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13804 (eval $ac_compile) 2>conftest.er1
13805 ac_status=$?
13806 grep -v '^ *+' conftest.er1 >conftest.err
13807 rm -f conftest.er1
13808 cat conftest.err >&5
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); } &&
13811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13813 (eval $ac_try) 2>&5
13814 ac_status=$?
13815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); }; } &&
13817 { ac_try='test -s conftest.$ac_objext'
13818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13819 (eval $ac_try) 2>&5
13820 ac_status=$?
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); }; }; then
13824 cat >>confdefs.h <<\_ACEOF
13825 #define HAVE_UNDERSCORE_TIMEZONE 1
13826 _ACEOF
13828 echo "$as_me:$LINENO: result: yes" >&5
13829 echo "${ECHO_T}yes" >&6
13830 else
13831 echo "$as_me: failed program was:" >&5
13832 sed 's/^/| /' conftest.$ac_ext >&5
13834 echo "$as_me:$LINENO: result: no" >&5
13835 echo "${ECHO_T}no" >&6
13837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13843 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13844 # for constant arguments. Useless!
13845 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13846 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13847 if test "${ac_cv_working_alloca_h+set}" = set; then
13848 echo $ECHO_N "(cached) $ECHO_C" >&6
13849 else
13850 if test x$gcc_no_link = xyes; then
13851 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13852 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13853 { (exit 1); exit 1; }; }
13855 cat >conftest.$ac_ext <<_ACEOF
13856 /* confdefs.h. */
13857 _ACEOF
13858 cat confdefs.h >>conftest.$ac_ext
13859 cat >>conftest.$ac_ext <<_ACEOF
13860 /* end confdefs.h. */
13861 #include <alloca.h>
13863 main ()
13865 char *p = (char *) alloca (2 * sizeof (int));
13867 return 0;
13869 _ACEOF
13870 rm -f conftest.$ac_objext conftest$ac_exeext
13871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13872 (eval $ac_link) 2>conftest.er1
13873 ac_status=$?
13874 grep -v '^ *+' conftest.er1 >conftest.err
13875 rm -f conftest.er1
13876 cat conftest.err >&5
13877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878 (exit $ac_status); } &&
13879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13881 (eval $ac_try) 2>&5
13882 ac_status=$?
13883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884 (exit $ac_status); }; } &&
13885 { ac_try='test -s conftest$ac_exeext'
13886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13887 (eval $ac_try) 2>&5
13888 ac_status=$?
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); }; }; then
13891 ac_cv_working_alloca_h=yes
13892 else
13893 echo "$as_me: failed program was:" >&5
13894 sed 's/^/| /' conftest.$ac_ext >&5
13896 ac_cv_working_alloca_h=no
13898 rm -f conftest.err conftest.$ac_objext \
13899 conftest$ac_exeext conftest.$ac_ext
13901 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13902 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13903 if test $ac_cv_working_alloca_h = yes; then
13905 cat >>confdefs.h <<\_ACEOF
13906 #define HAVE_ALLOCA_H 1
13907 _ACEOF
13911 echo "$as_me:$LINENO: checking for alloca" >&5
13912 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13913 if test "${ac_cv_func_alloca_works+set}" = set; then
13914 echo $ECHO_N "(cached) $ECHO_C" >&6
13915 else
13916 if test x$gcc_no_link = xyes; then
13917 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13918 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13919 { (exit 1); exit 1; }; }
13921 cat >conftest.$ac_ext <<_ACEOF
13922 /* confdefs.h. */
13923 _ACEOF
13924 cat confdefs.h >>conftest.$ac_ext
13925 cat >>conftest.$ac_ext <<_ACEOF
13926 /* end confdefs.h. */
13927 #ifdef __GNUC__
13928 # define alloca __builtin_alloca
13929 #else
13930 # ifdef _MSC_VER
13931 # include <malloc.h>
13932 # define alloca _alloca
13933 # else
13934 # if HAVE_ALLOCA_H
13935 # include <alloca.h>
13936 # else
13937 # ifdef _AIX
13938 #pragma alloca
13939 # else
13940 # ifndef alloca /* predefined by HP cc +Olibcalls */
13941 char *alloca ();
13942 # endif
13943 # endif
13944 # endif
13945 # endif
13946 #endif
13949 main ()
13951 char *p = (char *) alloca (1);
13953 return 0;
13955 _ACEOF
13956 rm -f conftest.$ac_objext conftest$ac_exeext
13957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13958 (eval $ac_link) 2>conftest.er1
13959 ac_status=$?
13960 grep -v '^ *+' conftest.er1 >conftest.err
13961 rm -f conftest.er1
13962 cat conftest.err >&5
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); } &&
13965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13967 (eval $ac_try) 2>&5
13968 ac_status=$?
13969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970 (exit $ac_status); }; } &&
13971 { ac_try='test -s conftest$ac_exeext'
13972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13973 (eval $ac_try) 2>&5
13974 ac_status=$?
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); }; }; then
13977 ac_cv_func_alloca_works=yes
13978 else
13979 echo "$as_me: failed program was:" >&5
13980 sed 's/^/| /' conftest.$ac_ext >&5
13982 ac_cv_func_alloca_works=no
13984 rm -f conftest.err conftest.$ac_objext \
13985 conftest$ac_exeext conftest.$ac_ext
13987 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13988 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13990 if test $ac_cv_func_alloca_works = yes; then
13992 cat >>confdefs.h <<\_ACEOF
13993 #define HAVE_ALLOCA 1
13994 _ACEOF
13996 else
13997 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13998 # that cause trouble. Some versions do not even contain alloca or
13999 # contain a buggy version. If you still want to use their alloca,
14000 # use ar to extract alloca.o from them instead of compiling alloca.c.
14002 ALLOCA=alloca.$ac_objext
14004 cat >>confdefs.h <<\_ACEOF
14005 #define C_ALLOCA 1
14006 _ACEOF
14009 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14010 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14011 if test "${ac_cv_os_cray+set}" = set; then
14012 echo $ECHO_N "(cached) $ECHO_C" >&6
14013 else
14014 cat >conftest.$ac_ext <<_ACEOF
14015 /* confdefs.h. */
14016 _ACEOF
14017 cat confdefs.h >>conftest.$ac_ext
14018 cat >>conftest.$ac_ext <<_ACEOF
14019 /* end confdefs.h. */
14020 #if defined(CRAY) && ! defined(CRAY2)
14021 webecray
14022 #else
14023 wenotbecray
14024 #endif
14026 _ACEOF
14027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14028 $EGREP "webecray" >/dev/null 2>&1; then
14029 ac_cv_os_cray=yes
14030 else
14031 ac_cv_os_cray=no
14033 rm -f conftest*
14036 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14037 echo "${ECHO_T}$ac_cv_os_cray" >&6
14038 if test $ac_cv_os_cray = yes; then
14039 for ac_func in _getb67 GETB67 getb67; do
14040 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14041 echo "$as_me:$LINENO: checking for $ac_func" >&5
14042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14043 if eval "test \"\${$as_ac_var+set}\" = set"; then
14044 echo $ECHO_N "(cached) $ECHO_C" >&6
14045 else
14046 if test x$gcc_no_link = xyes; then
14047 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14048 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14049 { (exit 1); exit 1; }; }
14051 cat >conftest.$ac_ext <<_ACEOF
14052 /* confdefs.h. */
14053 _ACEOF
14054 cat confdefs.h >>conftest.$ac_ext
14055 cat >>conftest.$ac_ext <<_ACEOF
14056 /* end confdefs.h. */
14057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14059 #define $ac_func innocuous_$ac_func
14061 /* System header to define __stub macros and hopefully few prototypes,
14062 which can conflict with char $ac_func (); below.
14063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14064 <limits.h> exists even on freestanding compilers. */
14066 #ifdef __STDC__
14067 # include <limits.h>
14068 #else
14069 # include <assert.h>
14070 #endif
14072 #undef $ac_func
14074 /* Override any gcc2 internal prototype to avoid an error. */
14075 #ifdef __cplusplus
14076 extern "C"
14078 #endif
14079 /* We use char because int might match the return type of a gcc2
14080 builtin and then its argument prototype would still apply. */
14081 char $ac_func ();
14082 /* The GNU C library defines this for functions which it implements
14083 to always fail with ENOSYS. Some functions are actually named
14084 something starting with __ and the normal name is an alias. */
14085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14086 choke me
14087 #else
14088 char (*f) () = $ac_func;
14089 #endif
14090 #ifdef __cplusplus
14092 #endif
14095 main ()
14097 return f != $ac_func;
14099 return 0;
14101 _ACEOF
14102 rm -f conftest.$ac_objext conftest$ac_exeext
14103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14104 (eval $ac_link) 2>conftest.er1
14105 ac_status=$?
14106 grep -v '^ *+' conftest.er1 >conftest.err
14107 rm -f conftest.er1
14108 cat conftest.err >&5
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); } &&
14111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14113 (eval $ac_try) 2>&5
14114 ac_status=$?
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); }; } &&
14117 { ac_try='test -s conftest$ac_exeext'
14118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14119 (eval $ac_try) 2>&5
14120 ac_status=$?
14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); }; }; then
14123 eval "$as_ac_var=yes"
14124 else
14125 echo "$as_me: failed program was:" >&5
14126 sed 's/^/| /' conftest.$ac_ext >&5
14128 eval "$as_ac_var=no"
14130 rm -f conftest.err conftest.$ac_objext \
14131 conftest$ac_exeext conftest.$ac_ext
14133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14134 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14135 if test `eval echo '${'$as_ac_var'}'` = yes; then
14137 cat >>confdefs.h <<_ACEOF
14138 #define CRAY_STACKSEG_END $ac_func
14139 _ACEOF
14141 break
14144 done
14147 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14148 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14149 if test "${ac_cv_c_stack_direction+set}" = set; then
14150 echo $ECHO_N "(cached) $ECHO_C" >&6
14151 else
14152 if test "$cross_compiling" = yes; then
14153 ac_cv_c_stack_direction=0
14154 else
14155 cat >conftest.$ac_ext <<_ACEOF
14156 /* confdefs.h. */
14157 _ACEOF
14158 cat confdefs.h >>conftest.$ac_ext
14159 cat >>conftest.$ac_ext <<_ACEOF
14160 /* end confdefs.h. */
14162 find_stack_direction ()
14164 static char *addr = 0;
14165 auto char dummy;
14166 if (addr == 0)
14168 addr = &dummy;
14169 return find_stack_direction ();
14171 else
14172 return (&dummy > addr) ? 1 : -1;
14176 main ()
14178 exit (find_stack_direction () < 0);
14180 _ACEOF
14181 rm -f conftest$ac_exeext
14182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14183 (eval $ac_link) 2>&5
14184 ac_status=$?
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14188 (eval $ac_try) 2>&5
14189 ac_status=$?
14190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191 (exit $ac_status); }; }; then
14192 ac_cv_c_stack_direction=1
14193 else
14194 echo "$as_me: program exited with status $ac_status" >&5
14195 echo "$as_me: failed program was:" >&5
14196 sed 's/^/| /' conftest.$ac_ext >&5
14198 ( exit $ac_status )
14199 ac_cv_c_stack_direction=-1
14201 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14204 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14205 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14207 cat >>confdefs.h <<_ACEOF
14208 #define STACK_DIRECTION $ac_cv_c_stack_direction
14209 _ACEOF
14214 if test x$gcc_no_link = xyes; then
14215 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
14216 ac_cv_func_mmap_fixed_mapped=no
14219 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
14222 for ac_header in stdlib.h unistd.h
14224 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14226 echo "$as_me:$LINENO: checking for $ac_header" >&5
14227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14229 echo $ECHO_N "(cached) $ECHO_C" >&6
14231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14232 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14233 else
14234 # Is the header compilable?
14235 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14236 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14237 cat >conftest.$ac_ext <<_ACEOF
14238 /* confdefs.h. */
14239 _ACEOF
14240 cat confdefs.h >>conftest.$ac_ext
14241 cat >>conftest.$ac_ext <<_ACEOF
14242 /* end confdefs.h. */
14243 $ac_includes_default
14244 #include <$ac_header>
14245 _ACEOF
14246 rm -f conftest.$ac_objext
14247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14248 (eval $ac_compile) 2>conftest.er1
14249 ac_status=$?
14250 grep -v '^ *+' conftest.er1 >conftest.err
14251 rm -f conftest.er1
14252 cat conftest.err >&5
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); } &&
14255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14257 (eval $ac_try) 2>&5
14258 ac_status=$?
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); }; } &&
14261 { ac_try='test -s conftest.$ac_objext'
14262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14263 (eval $ac_try) 2>&5
14264 ac_status=$?
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); }; }; then
14267 ac_header_compiler=yes
14268 else
14269 echo "$as_me: failed program was:" >&5
14270 sed 's/^/| /' conftest.$ac_ext >&5
14272 ac_header_compiler=no
14274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14275 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14276 echo "${ECHO_T}$ac_header_compiler" >&6
14278 # Is the header present?
14279 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14280 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14281 cat >conftest.$ac_ext <<_ACEOF
14282 /* confdefs.h. */
14283 _ACEOF
14284 cat confdefs.h >>conftest.$ac_ext
14285 cat >>conftest.$ac_ext <<_ACEOF
14286 /* end confdefs.h. */
14287 #include <$ac_header>
14288 _ACEOF
14289 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14290 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14291 ac_status=$?
14292 grep -v '^ *+' conftest.er1 >conftest.err
14293 rm -f conftest.er1
14294 cat conftest.err >&5
14295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); } >/dev/null; then
14297 if test -s conftest.err; then
14298 ac_cpp_err=$ac_c_preproc_warn_flag
14299 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14300 else
14301 ac_cpp_err=
14303 else
14304 ac_cpp_err=yes
14306 if test -z "$ac_cpp_err"; then
14307 ac_header_preproc=yes
14308 else
14309 echo "$as_me: failed program was:" >&5
14310 sed 's/^/| /' conftest.$ac_ext >&5
14312 ac_header_preproc=no
14314 rm -f conftest.err conftest.$ac_ext
14315 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14316 echo "${ECHO_T}$ac_header_preproc" >&6
14318 # So? What about this header?
14319 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14320 yes:no: )
14321 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14322 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14324 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14325 ac_header_preproc=yes
14327 no:yes:* )
14328 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14329 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14330 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14331 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14332 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14333 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14334 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14335 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14337 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14338 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14339 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14341 cat <<\_ASBOX
14342 ## ------------------------------------------ ##
14343 ## Report this to the AC_PACKAGE_NAME lists. ##
14344 ## ------------------------------------------ ##
14345 _ASBOX
14347 sed "s/^/$as_me: WARNING: /" >&2
14349 esac
14350 echo "$as_me:$LINENO: checking for $ac_header" >&5
14351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14353 echo $ECHO_N "(cached) $ECHO_C" >&6
14354 else
14355 eval "$as_ac_Header=\$ac_header_preproc"
14357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14362 cat >>confdefs.h <<_ACEOF
14363 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14364 _ACEOF
14368 done
14371 for ac_func in getpagesize
14373 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14374 echo "$as_me:$LINENO: checking for $ac_func" >&5
14375 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14376 if eval "test \"\${$as_ac_var+set}\" = set"; then
14377 echo $ECHO_N "(cached) $ECHO_C" >&6
14378 else
14379 if test x$gcc_no_link = xyes; then
14380 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14381 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14382 { (exit 1); exit 1; }; }
14384 cat >conftest.$ac_ext <<_ACEOF
14385 /* confdefs.h. */
14386 _ACEOF
14387 cat confdefs.h >>conftest.$ac_ext
14388 cat >>conftest.$ac_ext <<_ACEOF
14389 /* end confdefs.h. */
14390 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14391 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14392 #define $ac_func innocuous_$ac_func
14394 /* System header to define __stub macros and hopefully few prototypes,
14395 which can conflict with char $ac_func (); below.
14396 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14397 <limits.h> exists even on freestanding compilers. */
14399 #ifdef __STDC__
14400 # include <limits.h>
14401 #else
14402 # include <assert.h>
14403 #endif
14405 #undef $ac_func
14407 /* Override any gcc2 internal prototype to avoid an error. */
14408 #ifdef __cplusplus
14409 extern "C"
14411 #endif
14412 /* We use char because int might match the return type of a gcc2
14413 builtin and then its argument prototype would still apply. */
14414 char $ac_func ();
14415 /* The GNU C library defines this for functions which it implements
14416 to always fail with ENOSYS. Some functions are actually named
14417 something starting with __ and the normal name is an alias. */
14418 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14419 choke me
14420 #else
14421 char (*f) () = $ac_func;
14422 #endif
14423 #ifdef __cplusplus
14425 #endif
14428 main ()
14430 return f != $ac_func;
14432 return 0;
14434 _ACEOF
14435 rm -f conftest.$ac_objext conftest$ac_exeext
14436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14437 (eval $ac_link) 2>conftest.er1
14438 ac_status=$?
14439 grep -v '^ *+' conftest.er1 >conftest.err
14440 rm -f conftest.er1
14441 cat conftest.err >&5
14442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443 (exit $ac_status); } &&
14444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14446 (eval $ac_try) 2>&5
14447 ac_status=$?
14448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449 (exit $ac_status); }; } &&
14450 { ac_try='test -s conftest$ac_exeext'
14451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14452 (eval $ac_try) 2>&5
14453 ac_status=$?
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); }; }; then
14456 eval "$as_ac_var=yes"
14457 else
14458 echo "$as_me: failed program was:" >&5
14459 sed 's/^/| /' conftest.$ac_ext >&5
14461 eval "$as_ac_var=no"
14463 rm -f conftest.err conftest.$ac_objext \
14464 conftest$ac_exeext conftest.$ac_ext
14466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14467 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14468 if test `eval echo '${'$as_ac_var'}'` = yes; then
14469 cat >>confdefs.h <<_ACEOF
14470 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14471 _ACEOF
14474 done
14476 echo "$as_me:$LINENO: checking for working mmap" >&5
14477 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14478 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14479 echo $ECHO_N "(cached) $ECHO_C" >&6
14480 else
14481 if test "$cross_compiling" = yes; then
14482 ac_cv_func_mmap_fixed_mapped=no
14483 else
14484 cat >conftest.$ac_ext <<_ACEOF
14485 /* confdefs.h. */
14486 _ACEOF
14487 cat confdefs.h >>conftest.$ac_ext
14488 cat >>conftest.$ac_ext <<_ACEOF
14489 /* end confdefs.h. */
14490 $ac_includes_default
14491 /* malloc might have been renamed as rpl_malloc. */
14492 #undef malloc
14494 /* Thanks to Mike Haertel and Jim Avera for this test.
14495 Here is a matrix of mmap possibilities:
14496 mmap private not fixed
14497 mmap private fixed at somewhere currently unmapped
14498 mmap private fixed at somewhere already mapped
14499 mmap shared not fixed
14500 mmap shared fixed at somewhere currently unmapped
14501 mmap shared fixed at somewhere already mapped
14502 For private mappings, we should verify that changes cannot be read()
14503 back from the file, nor mmap's back from the file at a different
14504 address. (There have been systems where private was not correctly
14505 implemented like the infamous i386 svr4.0, and systems where the
14506 VM page cache was not coherent with the file system buffer cache
14507 like early versions of FreeBSD and possibly contemporary NetBSD.)
14508 For shared mappings, we should conversely verify that changes get
14509 propagated back to all the places they're supposed to be.
14511 Grep wants private fixed already mapped.
14512 The main things grep needs to know about mmap are:
14513 * does it exist and is it safe to write into the mmap'd area
14514 * how to use it (BSD variants) */
14516 #include <fcntl.h>
14517 #include <sys/mman.h>
14519 #if !STDC_HEADERS && !HAVE_STDLIB_H
14520 char *malloc ();
14521 #endif
14523 /* This mess was copied from the GNU getpagesize.h. */
14524 #if !HAVE_GETPAGESIZE
14525 /* Assume that all systems that can run configure have sys/param.h. */
14526 # if !HAVE_SYS_PARAM_H
14527 # define HAVE_SYS_PARAM_H 1
14528 # endif
14530 # ifdef _SC_PAGESIZE
14531 # define getpagesize() sysconf(_SC_PAGESIZE)
14532 # else /* no _SC_PAGESIZE */
14533 # if HAVE_SYS_PARAM_H
14534 # include <sys/param.h>
14535 # ifdef EXEC_PAGESIZE
14536 # define getpagesize() EXEC_PAGESIZE
14537 # else /* no EXEC_PAGESIZE */
14538 # ifdef NBPG
14539 # define getpagesize() NBPG * CLSIZE
14540 # ifndef CLSIZE
14541 # define CLSIZE 1
14542 # endif /* no CLSIZE */
14543 # else /* no NBPG */
14544 # ifdef NBPC
14545 # define getpagesize() NBPC
14546 # else /* no NBPC */
14547 # ifdef PAGESIZE
14548 # define getpagesize() PAGESIZE
14549 # endif /* PAGESIZE */
14550 # endif /* no NBPC */
14551 # endif /* no NBPG */
14552 # endif /* no EXEC_PAGESIZE */
14553 # else /* no HAVE_SYS_PARAM_H */
14554 # define getpagesize() 8192 /* punt totally */
14555 # endif /* no HAVE_SYS_PARAM_H */
14556 # endif /* no _SC_PAGESIZE */
14558 #endif /* no HAVE_GETPAGESIZE */
14561 main ()
14563 char *data, *data2, *data3;
14564 int i, pagesize;
14565 int fd;
14567 pagesize = getpagesize ();
14569 /* First, make a file with some known garbage in it. */
14570 data = (char *) malloc (pagesize);
14571 if (!data)
14572 exit (1);
14573 for (i = 0; i < pagesize; ++i)
14574 *(data + i) = rand ();
14575 umask (0);
14576 fd = creat ("conftest.mmap", 0600);
14577 if (fd < 0)
14578 exit (1);
14579 if (write (fd, data, pagesize) != pagesize)
14580 exit (1);
14581 close (fd);
14583 /* Next, try to mmap the file at a fixed address which already has
14584 something else allocated at it. If we can, also make sure that
14585 we see the same garbage. */
14586 fd = open ("conftest.mmap", O_RDWR);
14587 if (fd < 0)
14588 exit (1);
14589 data2 = (char *) malloc (2 * pagesize);
14590 if (!data2)
14591 exit (1);
14592 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14593 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14594 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14595 exit (1);
14596 for (i = 0; i < pagesize; ++i)
14597 if (*(data + i) != *(data2 + i))
14598 exit (1);
14600 /* Finally, make sure that changes to the mapped area do not
14601 percolate back to the file as seen by read(). (This is a bug on
14602 some variants of i386 svr4.0.) */
14603 for (i = 0; i < pagesize; ++i)
14604 *(data2 + i) = *(data2 + i) + 1;
14605 data3 = (char *) malloc (pagesize);
14606 if (!data3)
14607 exit (1);
14608 if (read (fd, data3, pagesize) != pagesize)
14609 exit (1);
14610 for (i = 0; i < pagesize; ++i)
14611 if (*(data + i) != *(data3 + i))
14612 exit (1);
14613 close (fd);
14614 exit (0);
14616 _ACEOF
14617 rm -f conftest$ac_exeext
14618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14619 (eval $ac_link) 2>&5
14620 ac_status=$?
14621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14624 (eval $ac_try) 2>&5
14625 ac_status=$?
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); }; }; then
14628 ac_cv_func_mmap_fixed_mapped=yes
14629 else
14630 echo "$as_me: program exited with status $ac_status" >&5
14631 echo "$as_me: failed program was:" >&5
14632 sed 's/^/| /' conftest.$ac_ext >&5
14634 ( exit $ac_status )
14635 ac_cv_func_mmap_fixed_mapped=no
14637 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14640 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14641 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14642 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14644 cat >>confdefs.h <<\_ACEOF
14645 #define HAVE_MMAP 1
14646 _ACEOF
14649 rm -f conftest.mmap
14653 for ac_prog in perl
14655 # Extract the first word of "$ac_prog", so it can be a program name with args.
14656 set dummy $ac_prog; ac_word=$2
14657 echo "$as_me:$LINENO: checking for $ac_word" >&5
14658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14659 if test "${ac_cv_prog_PERL+set}" = set; then
14660 echo $ECHO_N "(cached) $ECHO_C" >&6
14661 else
14662 if test -n "$PERL"; then
14663 ac_cv_prog_PERL="$PERL" # Let the user override the test.
14664 else
14665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14666 for as_dir in $PATH
14668 IFS=$as_save_IFS
14669 test -z "$as_dir" && as_dir=.
14670 for ac_exec_ext in '' $ac_executable_extensions; do
14671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14672 ac_cv_prog_PERL="$ac_prog"
14673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14674 break 2
14676 done
14677 done
14681 PERL=$ac_cv_prog_PERL
14682 if test -n "$PERL"; then
14683 echo "$as_me:$LINENO: result: $PERL" >&5
14684 echo "${ECHO_T}$PERL" >&6
14685 else
14686 echo "$as_me:$LINENO: result: no" >&5
14687 echo "${ECHO_T}no" >&6
14690 test -n "$PERL" && break
14691 done
14692 test -n "$PERL" || PERL="false"
14695 SYSDEP_SOURCES=
14696 SIGNAL_HANDLER_AUX=
14698 case "${host}" in
14699 i?86-*-linux*)
14700 SIGNAL_HANDLER=include/i386-signal.h
14702 sparc*-sun-solaris*)
14703 SIGNAL_HANDLER=include/sparc-signal.h
14705 # ia64-*)
14706 # SYSDEP_SOURCES=sysdep/ia64.c
14707 # test -d sysdep || mkdir sysdep
14708 # ;;
14709 hppa*-*-linux*)
14710 SIGNAL_HANDLER=include/pa-signal.h
14712 ia64-*-linux*)
14713 SIGNAL_HANDLER=include/dwarf2-signal.h
14715 powerpc*-*-linux*)
14716 SIGNAL_HANDLER=include/powerpc-signal.h
14718 alpha*-*-linux*)
14719 SIGNAL_HANDLER=include/dwarf2-signal.h
14721 s390*-*-linux*)
14722 SIGNAL_HANDLER=include/s390-signal.h
14724 x86_64*-*-linux*)
14725 SIGNAL_HANDLER=include/x86_64-signal.h
14726 SIGNAL_HANDLER_AUX=include/i386-signal.h
14728 sparc*-*-linux*)
14729 SIGNAL_HANDLER=include/dwarf2-signal.h
14731 sh-*-linux* | sh[34]*-*-linux*)
14732 SIGNAL_HANDLER=include/dwarf2-signal.h
14734 *mingw*)
14735 SIGNAL_HANDLER=include/win32-signal.h
14737 mips*-*-linux*)
14738 SIGNAL_HANDLER=include/mips-signal.h
14740 *-*-darwin*)
14741 SIGNAL_HANDLER=include/darwin-signal.h
14744 SIGNAL_HANDLER=include/default-signal.h
14746 esac
14748 # If we're using sjlj exceptions, forget what we just learned.
14749 if test "$enable_sjlj_exceptions" = yes; then
14750 SIGNAL_HANDLER=include/default-signal.h
14751 SIGNAL_HANDLER_AUX=
14754 # Define here any compiler flags that you need in order to make backtrace() work.
14755 BACKTRACESPEC=
14756 case "${host}" in
14757 x86_64*-*-linux*|i?86-*)
14758 BACKTRACESPEC=-fno-omit-frame-pointer
14760 esac
14765 if test -z "$SIGNAL_HANDLER_AUX"; then
14766 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
14769 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
14772 if test "${multilib}" = "yes"; then
14773 multilib_arg="--enable-multilib"
14774 else
14775 multilib_arg=
14780 here=`${PWDCMD-pwd}`
14783 # We get this from the environment.
14786 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"
14787 ac_config_commands="$ac_config_commands default"
14788 cat >confcache <<\_ACEOF
14789 # This file is a shell script that caches the results of configure
14790 # tests run on this system so they can be shared between configure
14791 # scripts and configure runs, see configure's option --config-cache.
14792 # It is not useful on other systems. If it contains results you don't
14793 # want to keep, you may remove or edit it.
14795 # config.status only pays attention to the cache file if you give it
14796 # the --recheck option to rerun configure.
14798 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14799 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14800 # following values.
14802 _ACEOF
14804 # The following way of writing the cache mishandles newlines in values,
14805 # but we know of no workaround that is simple, portable, and efficient.
14806 # So, don't put newlines in cache variables' values.
14807 # Ultrix sh set writes to stderr and can't be redirected directly,
14808 # and sets the high bit in the cache file unless we assign to the vars.
14810 (set) 2>&1 |
14811 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14812 *ac_space=\ *)
14813 # `set' does not quote correctly, so add quotes (double-quote
14814 # substitution turns \\\\ into \\, and sed turns \\ into \).
14815 sed -n \
14816 "s/'/'\\\\''/g;
14817 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14820 # `set' quotes correctly as required by POSIX, so do not add quotes.
14821 sed -n \
14822 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14824 esac;
14826 sed '
14827 t clear
14828 : clear
14829 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14830 t end
14831 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14832 : end' >>confcache
14833 if diff $cache_file confcache >/dev/null 2>&1; then :; else
14834 if test -w $cache_file; then
14835 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14836 cat confcache >$cache_file
14837 else
14838 echo "not updating unwritable cache $cache_file"
14841 rm -f confcache
14843 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14844 # Let make expand exec_prefix.
14845 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14847 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14848 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14849 # trailing colons and then remove the whole line if VPATH becomes empty
14850 # (actually we leave an empty line to preserve line numbers).
14851 if test "x$srcdir" = x.; then
14852 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14853 s/:*\$(srcdir):*/:/;
14854 s/:*\${srcdir}:*/:/;
14855 s/:*@srcdir@:*/:/;
14856 s/^\([^=]*=[ ]*\):*/\1/;
14857 s/:*$//;
14858 s/^[^=]*=[ ]*$//;
14862 DEFS=-DHAVE_CONFIG_H
14864 ac_libobjs=
14865 ac_ltlibobjs=
14866 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14867 # 1. Remove the extension, and $U if already installed.
14868 ac_i=`echo "$ac_i" |
14869 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14870 # 2. Add them.
14871 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14872 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14873 done
14874 LIBOBJS=$ac_libobjs
14876 LTLIBOBJS=$ac_ltlibobjs
14880 : ${CONFIG_STATUS=./config.status}
14881 ac_clean_files_save=$ac_clean_files
14882 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14883 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14884 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14885 cat >$CONFIG_STATUS <<_ACEOF
14886 #! $SHELL
14887 # Generated by $as_me.
14888 # Run this file to recreate the current configuration.
14889 # Compiler output produced by configure, useful for debugging
14890 # configure, is in config.log if it exists.
14892 debug=false
14893 ac_cs_recheck=false
14894 ac_cs_silent=false
14895 SHELL=\${CONFIG_SHELL-$SHELL}
14896 _ACEOF
14898 cat >>$CONFIG_STATUS <<\_ACEOF
14899 ## --------------------- ##
14900 ## M4sh Initialization. ##
14901 ## --------------------- ##
14903 # Be Bourne compatible
14904 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14905 emulate sh
14906 NULLCMD=:
14907 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14908 # is contrary to our usage. Disable this feature.
14909 alias -g '${1+"$@"}'='"$@"'
14910 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14911 set -o posix
14913 DUALCASE=1; export DUALCASE # for MKS sh
14915 # Support unset when possible.
14916 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14917 as_unset=unset
14918 else
14919 as_unset=false
14923 # Work around bugs in pre-3.0 UWIN ksh.
14924 $as_unset ENV MAIL MAILPATH
14925 PS1='$ '
14926 PS2='> '
14927 PS4='+ '
14929 # NLS nuisances.
14930 for as_var in \
14931 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14932 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14933 LC_TELEPHONE LC_TIME
14935 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14936 eval $as_var=C; export $as_var
14937 else
14938 $as_unset $as_var
14940 done
14942 # Required to use basename.
14943 if expr a : '\(a\)' >/dev/null 2>&1; then
14944 as_expr=expr
14945 else
14946 as_expr=false
14949 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14950 as_basename=basename
14951 else
14952 as_basename=false
14956 # Name of the executable.
14957 as_me=`$as_basename "$0" ||
14958 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14959 X"$0" : 'X\(//\)$' \| \
14960 X"$0" : 'X\(/\)$' \| \
14961 . : '\(.\)' 2>/dev/null ||
14962 echo X/"$0" |
14963 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14964 /^X\/\(\/\/\)$/{ s//\1/; q; }
14965 /^X\/\(\/\).*/{ s//\1/; q; }
14966 s/.*/./; q'`
14969 # PATH needs CR, and LINENO needs CR and PATH.
14970 # Avoid depending upon Character Ranges.
14971 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14972 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14973 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14974 as_cr_digits='0123456789'
14975 as_cr_alnum=$as_cr_Letters$as_cr_digits
14977 # The user is always right.
14978 if test "${PATH_SEPARATOR+set}" != set; then
14979 echo "#! /bin/sh" >conf$$.sh
14980 echo "exit 0" >>conf$$.sh
14981 chmod +x conf$$.sh
14982 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14983 PATH_SEPARATOR=';'
14984 else
14985 PATH_SEPARATOR=:
14987 rm -f conf$$.sh
14991 as_lineno_1=$LINENO
14992 as_lineno_2=$LINENO
14993 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14994 test "x$as_lineno_1" != "x$as_lineno_2" &&
14995 test "x$as_lineno_3" = "x$as_lineno_2" || {
14996 # Find who we are. Look in the path if we contain no path at all
14997 # relative or not.
14998 case $0 in
14999 *[\\/]* ) as_myself=$0 ;;
15000 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15001 for as_dir in $PATH
15003 IFS=$as_save_IFS
15004 test -z "$as_dir" && as_dir=.
15005 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15006 done
15009 esac
15010 # We did not find ourselves, most probably we were run as `sh COMMAND'
15011 # in which case we are not to be found in the path.
15012 if test "x$as_myself" = x; then
15013 as_myself=$0
15015 if test ! -f "$as_myself"; then
15016 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15017 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15018 { (exit 1); exit 1; }; }
15020 case $CONFIG_SHELL in
15022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15023 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15025 IFS=$as_save_IFS
15026 test -z "$as_dir" && as_dir=.
15027 for as_base in sh bash ksh sh5; do
15028 case $as_dir in
15030 if ("$as_dir/$as_base" -c '
15031 as_lineno_1=$LINENO
15032 as_lineno_2=$LINENO
15033 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15034 test "x$as_lineno_1" != "x$as_lineno_2" &&
15035 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15036 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15037 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15038 CONFIG_SHELL=$as_dir/$as_base
15039 export CONFIG_SHELL
15040 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15041 fi;;
15042 esac
15043 done
15044 done
15046 esac
15048 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15049 # uniformly replaced by the line number. The first 'sed' inserts a
15050 # line-number line before each line; the second 'sed' does the real
15051 # work. The second script uses 'N' to pair each line-number line
15052 # with the numbered line, and appends trailing '-' during
15053 # substitution so that $LINENO is not a special case at line end.
15054 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15055 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15056 sed '=' <$as_myself |
15057 sed '
15059 s,$,-,
15060 : loop
15061 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15062 t loop
15063 s,-$,,
15064 s,^['$as_cr_digits']*\n,,
15065 ' >$as_me.lineno &&
15066 chmod +x $as_me.lineno ||
15067 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15068 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15069 { (exit 1); exit 1; }; }
15071 # Don't try to exec as it changes $[0], causing all sort of problems
15072 # (the dirname of $[0] is not the place where we might find the
15073 # original and so on. Autoconf is especially sensible to this).
15074 . ./$as_me.lineno
15075 # Exit status is that of the last command.
15076 exit
15080 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15081 *c*,-n*) ECHO_N= ECHO_C='
15082 ' ECHO_T=' ' ;;
15083 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15084 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15085 esac
15087 if expr a : '\(a\)' >/dev/null 2>&1; then
15088 as_expr=expr
15089 else
15090 as_expr=false
15093 rm -f conf$$ conf$$.exe conf$$.file
15094 echo >conf$$.file
15095 if ln -s conf$$.file conf$$ 2>/dev/null; then
15096 # We could just check for DJGPP; but this test a) works b) is more generic
15097 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15098 if test -f conf$$.exe; then
15099 # Don't use ln at all; we don't have any links
15100 as_ln_s='cp -p'
15101 else
15102 as_ln_s='ln -s'
15104 elif ln conf$$.file conf$$ 2>/dev/null; then
15105 as_ln_s=ln
15106 else
15107 as_ln_s='cp -p'
15109 rm -f conf$$ conf$$.exe conf$$.file
15111 if mkdir -p . 2>/dev/null; then
15112 as_mkdir_p=:
15113 else
15114 test -d ./-p && rmdir ./-p
15115 as_mkdir_p=false
15118 as_executable_p="test -f"
15120 # Sed expression to map a string onto a valid CPP name.
15121 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15123 # Sed expression to map a string onto a valid variable name.
15124 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15127 # IFS
15128 # We need space, tab and new line, in precisely that order.
15129 as_nl='
15131 IFS=" $as_nl"
15133 # CDPATH.
15134 $as_unset CDPATH
15136 exec 6>&1
15138 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15139 # report actual input values of CONFIG_FILES etc. instead of their
15140 # values after options handling. Logging --version etc. is OK.
15141 exec 5>>config.log
15143 echo
15144 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15145 ## Running $as_me. ##
15146 _ASBOX
15147 } >&5
15148 cat >&5 <<_CSEOF
15150 This file was extended by $as_me, which was
15151 generated by GNU Autoconf 2.59. Invocation command line was
15153 CONFIG_FILES = $CONFIG_FILES
15154 CONFIG_HEADERS = $CONFIG_HEADERS
15155 CONFIG_LINKS = $CONFIG_LINKS
15156 CONFIG_COMMANDS = $CONFIG_COMMANDS
15157 $ $0 $@
15159 _CSEOF
15160 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15161 echo >&5
15162 _ACEOF
15164 # Files that config.status was made for.
15165 if test -n "$ac_config_files"; then
15166 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15169 if test -n "$ac_config_headers"; then
15170 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15173 if test -n "$ac_config_links"; then
15174 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15177 if test -n "$ac_config_commands"; then
15178 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15181 cat >>$CONFIG_STATUS <<\_ACEOF
15183 ac_cs_usage="\
15184 \`$as_me' instantiates files from templates according to the
15185 current configuration.
15187 Usage: $0 [OPTIONS] [FILE]...
15189 -h, --help print this help, then exit
15190 -V, --version print version number, then exit
15191 -q, --quiet do not print progress messages
15192 -d, --debug don't remove temporary files
15193 --recheck update $as_me by reconfiguring in the same conditions
15194 --file=FILE[:TEMPLATE]
15195 instantiate the configuration file FILE
15196 --header=FILE[:TEMPLATE]
15197 instantiate the configuration header FILE
15199 Configuration files:
15200 $config_files
15202 Configuration headers:
15203 $config_headers
15205 Configuration links:
15206 $config_links
15208 Configuration commands:
15209 $config_commands
15211 Report bugs to <bug-autoconf@gnu.org>."
15212 _ACEOF
15214 cat >>$CONFIG_STATUS <<_ACEOF
15215 ac_cs_version="\\
15216 config.status
15217 configured by $0, generated by GNU Autoconf 2.59,
15218 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15220 Copyright (C) 2003 Free Software Foundation, Inc.
15221 This config.status script is free software; the Free Software Foundation
15222 gives unlimited permission to copy, distribute and modify it."
15223 srcdir=$srcdir
15224 INSTALL="$INSTALL"
15225 _ACEOF
15227 cat >>$CONFIG_STATUS <<\_ACEOF
15228 # If no file are specified by the user, then we need to provide default
15229 # value. By we need to know if files were specified by the user.
15230 ac_need_defaults=:
15231 while test $# != 0
15233 case $1 in
15234 --*=*)
15235 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15236 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15237 ac_shift=:
15240 ac_option=$1
15241 ac_optarg=$2
15242 ac_shift=shift
15244 *) # This is not an option, so the user has probably given explicit
15245 # arguments.
15246 ac_option=$1
15247 ac_need_defaults=false;;
15248 esac
15250 case $ac_option in
15251 # Handling of the options.
15252 _ACEOF
15253 cat >>$CONFIG_STATUS <<\_ACEOF
15254 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15255 ac_cs_recheck=: ;;
15256 --version | --vers* | -V )
15257 echo "$ac_cs_version"; exit 0 ;;
15258 --he | --h)
15259 # Conflict between --help and --header
15260 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15261 Try \`$0 --help' for more information." >&5
15262 echo "$as_me: error: ambiguous option: $1
15263 Try \`$0 --help' for more information." >&2;}
15264 { (exit 1); exit 1; }; };;
15265 --help | --hel | -h )
15266 echo "$ac_cs_usage"; exit 0 ;;
15267 --debug | --d* | -d )
15268 debug=: ;;
15269 --file | --fil | --fi | --f )
15270 $ac_shift
15271 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15272 ac_need_defaults=false;;
15273 --header | --heade | --head | --hea )
15274 $ac_shift
15275 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15276 ac_need_defaults=false;;
15277 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15278 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15279 ac_cs_silent=: ;;
15281 # This is an error.
15282 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15283 Try \`$0 --help' for more information." >&5
15284 echo "$as_me: error: unrecognized option: $1
15285 Try \`$0 --help' for more information." >&2;}
15286 { (exit 1); exit 1; }; } ;;
15288 *) ac_config_targets="$ac_config_targets $1" ;;
15290 esac
15291 shift
15292 done
15294 ac_configure_extra_args=
15296 if $ac_cs_silent; then
15297 exec 6>/dev/null
15298 ac_configure_extra_args="$ac_configure_extra_args --silent"
15301 _ACEOF
15302 cat >>$CONFIG_STATUS <<_ACEOF
15303 if \$ac_cs_recheck; then
15304 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15305 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15308 _ACEOF
15310 cat >>$CONFIG_STATUS <<_ACEOF
15312 # INIT-COMMANDS section.
15316 srcdir=${srcdir}
15317 host=${host}
15318 target=${target}
15319 with_multisubdir=${with_multisubdir}
15320 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15321 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15322 libgcj_basedir=${libgcj_basedir}
15323 CC="${CC}"
15324 CXX="${CXX}"
15325 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
15328 _ACEOF
15332 cat >>$CONFIG_STATUS <<\_ACEOF
15333 for ac_config_target in $ac_config_targets
15335 case "$ac_config_target" in
15336 # Handling of arguments.
15337 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15338 "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
15339 "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
15340 "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
15341 "gnu/classpath/Configuration.java" ) CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
15342 "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
15343 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15344 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
15345 "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
15346 "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
15347 "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
15348 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
15349 "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
15350 "java/net/natNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc" ;;
15351 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
15352 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
15353 "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
15354 "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
15355 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
15356 "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
15357 "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
15358 "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
15359 "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
15360 "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
15361 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15362 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15363 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
15364 "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
15365 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15366 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15367 { (exit 1); exit 1; }; };;
15368 esac
15369 done
15371 # If the user did not use the arguments to specify the items to instantiate,
15372 # then the envvar interface is used. Set only those that are not.
15373 # We use the long form for the default assignment because of an extremely
15374 # bizarre bug on SunOS 4.1.3.
15375 if $ac_need_defaults; then
15376 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15377 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15378 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
15379 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15382 # Have a temporary directory for convenience. Make it in the build tree
15383 # simply because there is no reason to put it here, and in addition,
15384 # creating and moving files from /tmp can sometimes cause problems.
15385 # Create a temporary directory, and hook for its removal unless debugging.
15386 $debug ||
15388 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15389 trap '{ (exit 1); exit 1; }' 1 2 13 15
15392 # Create a (secure) tmp directory for tmp files.
15395 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15396 test -n "$tmp" && test -d "$tmp"
15397 } ||
15399 tmp=./confstat$$-$RANDOM
15400 (umask 077 && mkdir $tmp)
15401 } ||
15403 echo "$me: cannot create a temporary directory in ." >&2
15404 { (exit 1); exit 1; }
15407 _ACEOF
15409 cat >>$CONFIG_STATUS <<_ACEOF
15412 # CONFIG_FILES section.
15415 # No need to generate the scripts if there are no CONFIG_FILES.
15416 # This happens for instance when ./config.status config.h
15417 if test -n "\$CONFIG_FILES"; then
15418 # Protect against being on the right side of a sed subst in config.status.
15419 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15420 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15421 s,@SHELL@,$SHELL,;t t
15422 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15423 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15424 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15425 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15426 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15427 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15428 s,@exec_prefix@,$exec_prefix,;t t
15429 s,@prefix@,$prefix,;t t
15430 s,@program_transform_name@,$program_transform_name,;t t
15431 s,@bindir@,$bindir,;t t
15432 s,@sbindir@,$sbindir,;t t
15433 s,@libexecdir@,$libexecdir,;t t
15434 s,@datadir@,$datadir,;t t
15435 s,@sysconfdir@,$sysconfdir,;t t
15436 s,@sharedstatedir@,$sharedstatedir,;t t
15437 s,@localstatedir@,$localstatedir,;t t
15438 s,@libdir@,$libdir,;t t
15439 s,@includedir@,$includedir,;t t
15440 s,@oldincludedir@,$oldincludedir,;t t
15441 s,@infodir@,$infodir,;t t
15442 s,@mandir@,$mandir,;t t
15443 s,@build_alias@,$build_alias,;t t
15444 s,@host_alias@,$host_alias,;t t
15445 s,@target_alias@,$target_alias,;t t
15446 s,@DEFS@,$DEFS,;t t
15447 s,@ECHO_C@,$ECHO_C,;t t
15448 s,@ECHO_N@,$ECHO_N,;t t
15449 s,@ECHO_T@,$ECHO_T,;t t
15450 s,@LIBS@,$LIBS,;t t
15451 s,@libgcj_basedir@,$libgcj_basedir,;t t
15452 s,@build@,$build,;t t
15453 s,@build_cpu@,$build_cpu,;t t
15454 s,@build_vendor@,$build_vendor,;t t
15455 s,@build_os@,$build_os,;t t
15456 s,@host@,$host,;t t
15457 s,@host_cpu@,$host_cpu,;t t
15458 s,@host_vendor@,$host_vendor,;t t
15459 s,@host_os@,$host_os,;t t
15460 s,@target@,$target,;t t
15461 s,@target_cpu@,$target_cpu,;t t
15462 s,@target_vendor@,$target_vendor,;t t
15463 s,@target_os@,$target_os,;t t
15464 s,@target_noncanonical@,$target_noncanonical,;t t
15465 s,@LN_S@,$LN_S,;t t
15466 s,@mkinstalldirs@,$mkinstalldirs,;t t
15467 s,@CC@,$CC,;t t
15468 s,@ac_ct_CC@,$ac_ct_CC,;t t
15469 s,@EXEEXT@,$EXEEXT,;t t
15470 s,@OBJEXT@,$OBJEXT,;t t
15471 s,@CXX@,$CXX,;t t
15472 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
15473 s,@CFLAGS@,$CFLAGS,;t t
15474 s,@CXXFLAGS@,$CXXFLAGS,;t t
15475 s,@LDFLAGS@,$LDFLAGS,;t t
15476 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15477 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15478 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15479 s,@PACKAGE@,$PACKAGE,;t t
15480 s,@VERSION@,$VERSION,;t t
15481 s,@ACLOCAL@,$ACLOCAL,;t t
15482 s,@AUTOCONF@,$AUTOCONF,;t t
15483 s,@AUTOMAKE@,$AUTOMAKE,;t t
15484 s,@AUTOHEADER@,$AUTOHEADER,;t t
15485 s,@MAKEINFO@,$MAKEINFO,;t t
15486 s,@SET_MAKE@,$SET_MAKE,;t t
15487 s,@AS@,$AS,;t t
15488 s,@ac_ct_AS@,$ac_ct_AS,;t t
15489 s,@AR@,$AR,;t t
15490 s,@ac_ct_AR@,$ac_ct_AR,;t t
15491 s,@RANLIB@,$RANLIB,;t t
15492 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15493 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
15494 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
15495 s,@MAINT@,$MAINT,;t t
15496 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
15497 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
15498 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
15499 s,@INCLTDL@,$INCLTDL,;t t
15500 s,@LIBLTDL@,$LIBLTDL,;t t
15501 s,@DIRLTDL@,$DIRLTDL,;t t
15502 s,@STRIP@,$STRIP,;t t
15503 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15504 s,@LIBTOOL@,$LIBTOOL,;t t
15505 s,@CXXCPP@,$CXXCPP,;t t
15506 s,@CPPFLAGS@,$CPPFLAGS,;t t
15507 s,@subdirs@,$subdirs,;t t
15508 s,@COMPPATH@,$COMPPATH,;t t
15509 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
15510 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
15511 s,@ONESTEP_TRUE@,$ONESTEP_TRUE,;t t
15512 s,@ONESTEP_FALSE@,$ONESTEP_FALSE,;t t
15513 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
15514 s,@INTERPRETER@,$INTERPRETER,;t t
15515 s,@LIBFFI@,$LIBFFI,;t t
15516 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
15517 s,@EXTRA_CC_FILES@,$EXTRA_CC_FILES,;t t
15518 s,@PLATFORMOBJS@,$PLATFORMOBJS,;t t
15519 s,@CPP@,$CPP,;t t
15520 s,@EGREP@,$EGREP,;t t
15521 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
15522 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
15523 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
15524 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
15525 s,@X_CFLAGS@,$X_CFLAGS,;t t
15526 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
15527 s,@X_LIBS@,$X_LIBS,;t t
15528 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
15529 s,@TOOLKIT@,$TOOLKIT,;t t
15530 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
15531 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
15532 s,@GTK_AWT_TRUE@,$GTK_AWT_TRUE,;t t
15533 s,@GTK_AWT_FALSE@,$GTK_AWT_FALSE,;t t
15534 s,@GTK_CAIRO_TRUE@,$GTK_CAIRO_TRUE,;t t
15535 s,@GTK_CAIRO_FALSE@,$GTK_CAIRO_FALSE,;t t
15536 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
15537 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
15538 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
15539 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
15540 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
15541 s,@GCLIBS@,$GCLIBS,;t t
15542 s,@GCINCS@,$GCINCS,;t t
15543 s,@GCDEPS@,$GCDEPS,;t t
15544 s,@GCOBJS@,$GCOBJS,;t t
15545 s,@GCSPEC@,$GCSPEC,;t t
15546 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
15547 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
15548 s,@THREADLIBS@,$THREADLIBS,;t t
15549 s,@THREADINCS@,$THREADINCS,;t t
15550 s,@THREADDEPS@,$THREADDEPS,;t t
15551 s,@THREADOBJS@,$THREADOBJS,;t t
15552 s,@THREADSPEC@,$THREADSPEC,;t t
15553 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
15554 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
15555 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
15556 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
15557 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
15558 s,@tool_include_dir@,$tool_include_dir,;t t
15559 s,@gcc_version@,$gcc_version,;t t
15560 s,@LIBICONV@,$LIBICONV,;t t
15561 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
15562 s,@GTK_LIBS@,$GTK_LIBS,;t t
15563 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
15564 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
15565 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
15566 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
15567 s,@GCJH@,$GCJH,;t t
15568 s,@ZIP@,$ZIP,;t t
15569 s,@GCJ@,$GCJ,;t t
15570 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
15571 s,@GCJFLAGS@,$GCJFLAGS,;t t
15572 s,@ZLIBS@,$ZLIBS,;t t
15573 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
15574 s,@ZINCS@,$ZINCS,;t t
15575 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
15576 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
15577 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
15578 s,@IEEESPEC@,$IEEESPEC,;t t
15579 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
15580 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
15581 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
15582 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
15583 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
15584 s,@toolexecdir@,$toolexecdir,;t t
15585 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
15586 s,@toolexeclibdir@,$toolexeclibdir,;t t
15587 s,@GCJVERSION@,$GCJVERSION,;t t
15588 s,@ALLOCA@,$ALLOCA,;t t
15589 s,@PERL@,$PERL,;t t
15590 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
15591 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
15592 s,@here@,$here,;t t
15593 s,@LIBOBJS@,$LIBOBJS,;t t
15594 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15595 CEOF
15597 _ACEOF
15599 cat >>$CONFIG_STATUS <<\_ACEOF
15600 # Split the substitutions into bite-sized pieces for seds with
15601 # small command number limits, like on Digital OSF/1 and HP-UX.
15602 ac_max_sed_lines=48
15603 ac_sed_frag=1 # Number of current file.
15604 ac_beg=1 # First line for current file.
15605 ac_end=$ac_max_sed_lines # Line after last line for current file.
15606 ac_more_lines=:
15607 ac_sed_cmds=
15608 while $ac_more_lines; do
15609 if test $ac_beg -gt 1; then
15610 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15611 else
15612 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15614 if test ! -s $tmp/subs.frag; then
15615 ac_more_lines=false
15616 else
15617 # The purpose of the label and of the branching condition is to
15618 # speed up the sed processing (if there are no `@' at all, there
15619 # is no need to browse any of the substitutions).
15620 # These are the two extra sed commands mentioned above.
15621 (echo ':t
15622 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15623 if test -z "$ac_sed_cmds"; then
15624 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15625 else
15626 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15628 ac_sed_frag=`expr $ac_sed_frag + 1`
15629 ac_beg=$ac_end
15630 ac_end=`expr $ac_end + $ac_max_sed_lines`
15632 done
15633 if test -z "$ac_sed_cmds"; then
15634 ac_sed_cmds=cat
15636 fi # test -n "$CONFIG_FILES"
15638 _ACEOF
15639 cat >>$CONFIG_STATUS <<\_ACEOF
15640 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15641 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15642 case $ac_file in
15643 - | *:- | *:-:* ) # input from stdin
15644 cat >$tmp/stdin
15645 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15646 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15647 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15648 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15649 * ) ac_file_in=$ac_file.in ;;
15650 esac
15652 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15653 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15654 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15655 X"$ac_file" : 'X\(//\)[^/]' \| \
15656 X"$ac_file" : 'X\(//\)$' \| \
15657 X"$ac_file" : 'X\(/\)' \| \
15658 . : '\(.\)' 2>/dev/null ||
15659 echo X"$ac_file" |
15660 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15661 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15662 /^X\(\/\/\)$/{ s//\1/; q; }
15663 /^X\(\/\).*/{ s//\1/; q; }
15664 s/.*/./; q'`
15665 { if $as_mkdir_p; then
15666 mkdir -p "$ac_dir"
15667 else
15668 as_dir="$ac_dir"
15669 as_dirs=
15670 while test ! -d "$as_dir"; do
15671 as_dirs="$as_dir $as_dirs"
15672 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15673 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15674 X"$as_dir" : 'X\(//\)[^/]' \| \
15675 X"$as_dir" : 'X\(//\)$' \| \
15676 X"$as_dir" : 'X\(/\)' \| \
15677 . : '\(.\)' 2>/dev/null ||
15678 echo X"$as_dir" |
15679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15681 /^X\(\/\/\)$/{ s//\1/; q; }
15682 /^X\(\/\).*/{ s//\1/; q; }
15683 s/.*/./; q'`
15684 done
15685 test ! -n "$as_dirs" || mkdir $as_dirs
15686 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15687 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15688 { (exit 1); exit 1; }; }; }
15690 ac_builddir=.
15692 if test "$ac_dir" != .; then
15693 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15694 # A "../" for each directory in $ac_dir_suffix.
15695 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15696 else
15697 ac_dir_suffix= ac_top_builddir=
15700 case $srcdir in
15701 .) # No --srcdir option. We are building in place.
15702 ac_srcdir=.
15703 if test -z "$ac_top_builddir"; then
15704 ac_top_srcdir=.
15705 else
15706 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15707 fi ;;
15708 [\\/]* | ?:[\\/]* ) # Absolute path.
15709 ac_srcdir=$srcdir$ac_dir_suffix;
15710 ac_top_srcdir=$srcdir ;;
15711 *) # Relative path.
15712 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15713 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15714 esac
15716 # Do not use `cd foo && pwd` to compute absolute paths, because
15717 # the directories may not exist.
15718 case `pwd` in
15719 .) ac_abs_builddir="$ac_dir";;
15721 case "$ac_dir" in
15722 .) ac_abs_builddir=`pwd`;;
15723 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15724 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15725 esac;;
15726 esac
15727 case $ac_abs_builddir in
15728 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15730 case ${ac_top_builddir}. in
15731 .) ac_abs_top_builddir=$ac_abs_builddir;;
15732 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15733 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15734 esac;;
15735 esac
15736 case $ac_abs_builddir in
15737 .) ac_abs_srcdir=$ac_srcdir;;
15739 case $ac_srcdir in
15740 .) ac_abs_srcdir=$ac_abs_builddir;;
15741 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15742 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15743 esac;;
15744 esac
15745 case $ac_abs_builddir in
15746 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15748 case $ac_top_srcdir in
15749 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15750 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15751 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15752 esac;;
15753 esac
15756 case $INSTALL in
15757 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15758 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15759 esac
15761 # Let's still pretend it is `configure' which instantiates (i.e., don't
15762 # use $as_me), people would be surprised to read:
15763 # /* config.h. Generated by config.status. */
15764 if test x"$ac_file" = x-; then
15765 configure_input=
15766 else
15767 configure_input="$ac_file. "
15769 configure_input=$configure_input"Generated from `echo $ac_file_in |
15770 sed 's,.*/,,'` by configure."
15772 # First look for the input files in the build tree, otherwise in the
15773 # src tree.
15774 ac_file_inputs=`IFS=:
15775 for f in $ac_file_in; do
15776 case $f in
15777 -) echo $tmp/stdin ;;
15778 [\\/$]*)
15779 # Absolute (can't be DOS-style, as IFS=:)
15780 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15781 echo "$as_me: error: cannot find input file: $f" >&2;}
15782 { (exit 1); exit 1; }; }
15783 echo "$f";;
15784 *) # Relative
15785 if test -f "$f"; then
15786 # Build tree
15787 echo "$f"
15788 elif test -f "$srcdir/$f"; then
15789 # Source tree
15790 echo "$srcdir/$f"
15791 else
15792 # /dev/null tree
15793 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15794 echo "$as_me: error: cannot find input file: $f" >&2;}
15795 { (exit 1); exit 1; }; }
15796 fi;;
15797 esac
15798 done` || { (exit 1); exit 1; }
15800 if test x"$ac_file" != x-; then
15801 { echo "$as_me:$LINENO: creating $ac_file" >&5
15802 echo "$as_me: creating $ac_file" >&6;}
15803 rm -f "$ac_file"
15805 _ACEOF
15806 cat >>$CONFIG_STATUS <<_ACEOF
15807 sed "$ac_vpsub
15808 $extrasub
15809 _ACEOF
15810 cat >>$CONFIG_STATUS <<\_ACEOF
15812 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15813 s,@configure_input@,$configure_input,;t t
15814 s,@srcdir@,$ac_srcdir,;t t
15815 s,@abs_srcdir@,$ac_abs_srcdir,;t t
15816 s,@top_srcdir@,$ac_top_srcdir,;t t
15817 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15818 s,@builddir@,$ac_builddir,;t t
15819 s,@abs_builddir@,$ac_abs_builddir,;t t
15820 s,@top_builddir@,$ac_top_builddir,;t t
15821 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15822 s,@INSTALL@,$ac_INSTALL,;t t
15823 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15824 rm -f $tmp/stdin
15825 if test x"$ac_file" != x-; then
15826 mv $tmp/out $ac_file
15827 else
15828 cat $tmp/out
15829 rm -f $tmp/out
15832 done
15833 _ACEOF
15834 cat >>$CONFIG_STATUS <<\_ACEOF
15837 # CONFIG_HEADER section.
15840 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15841 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15843 # ac_d sets the value in "#define NAME VALUE" lines.
15844 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15845 ac_dB='[ ].*$,\1#\2'
15846 ac_dC=' '
15847 ac_dD=',;t'
15848 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15849 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15850 ac_uB='$,\1#\2define\3'
15851 ac_uC=' '
15852 ac_uD=',;t'
15854 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15855 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15856 case $ac_file in
15857 - | *:- | *:-:* ) # input from stdin
15858 cat >$tmp/stdin
15859 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15860 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15861 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15862 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15863 * ) ac_file_in=$ac_file.in ;;
15864 esac
15866 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15867 echo "$as_me: creating $ac_file" >&6;}
15869 # First look for the input files in the build tree, otherwise in the
15870 # src tree.
15871 ac_file_inputs=`IFS=:
15872 for f in $ac_file_in; do
15873 case $f in
15874 -) echo $tmp/stdin ;;
15875 [\\/$]*)
15876 # Absolute (can't be DOS-style, as IFS=:)
15877 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15878 echo "$as_me: error: cannot find input file: $f" >&2;}
15879 { (exit 1); exit 1; }; }
15880 # Do quote $f, to prevent DOS paths from being IFS'd.
15881 echo "$f";;
15882 *) # Relative
15883 if test -f "$f"; then
15884 # Build tree
15885 echo "$f"
15886 elif test -f "$srcdir/$f"; then
15887 # Source tree
15888 echo "$srcdir/$f"
15889 else
15890 # /dev/null tree
15891 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15892 echo "$as_me: error: cannot find input file: $f" >&2;}
15893 { (exit 1); exit 1; }; }
15894 fi;;
15895 esac
15896 done` || { (exit 1); exit 1; }
15897 # Remove the trailing spaces.
15898 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
15900 _ACEOF
15902 # Transform confdefs.h into two sed scripts, `conftest.defines' and
15903 # `conftest.undefs', that substitutes the proper values into
15904 # config.h.in to produce config.h. The first handles `#define'
15905 # templates, and the second `#undef' templates.
15906 # And first: Protect against being on the right side of a sed subst in
15907 # config.status. Protect against being in an unquoted here document
15908 # in config.status.
15909 rm -f conftest.defines conftest.undefs
15910 # Using a here document instead of a string reduces the quoting nightmare.
15911 # Putting comments in sed scripts is not portable.
15913 # `end' is used to avoid that the second main sed command (meant for
15914 # 0-ary CPP macros) applies to n-ary macro definitions.
15915 # See the Autoconf documentation for `clear'.
15916 cat >confdef2sed.sed <<\_ACEOF
15917 s/[\\&,]/\\&/g
15918 s,[\\$`],\\&,g
15919 t clear
15920 : clear
15921 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15922 t end
15923 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15924 : end
15925 _ACEOF
15926 # If some macros were called several times there might be several times
15927 # the same #defines, which is useless. Nevertheless, we may not want to
15928 # sort them, since we want the *last* AC-DEFINE to be honored.
15929 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15930 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15931 rm -f confdef2sed.sed
15933 # This sed command replaces #undef with comments. This is necessary, for
15934 # example, in the case of _POSIX_SOURCE, which is predefined and required
15935 # on some systems where configure will not decide to define it.
15936 cat >>conftest.undefs <<\_ACEOF
15937 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15938 _ACEOF
15940 # Break up conftest.defines because some shells have a limit on the size
15941 # of here documents, and old seds have small limits too (100 cmds).
15942 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15943 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15944 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15945 echo ' :' >>$CONFIG_STATUS
15946 rm -f conftest.tail
15947 while grep . conftest.defines >/dev/null
15949 # Write a limited-size here document to $tmp/defines.sed.
15950 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15951 # Speed up: don't consider the non `#define' lines.
15952 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
15953 # Work around the forget-to-reset-the-flag bug.
15954 echo 't clr' >>$CONFIG_STATUS
15955 echo ': clr' >>$CONFIG_STATUS
15956 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15957 echo 'CEOF
15958 sed -f $tmp/defines.sed $tmp/in >$tmp/out
15959 rm -f $tmp/in
15960 mv $tmp/out $tmp/in
15961 ' >>$CONFIG_STATUS
15962 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15963 rm -f conftest.defines
15964 mv conftest.tail conftest.defines
15965 done
15966 rm -f conftest.defines
15967 echo ' fi # grep' >>$CONFIG_STATUS
15968 echo >>$CONFIG_STATUS
15970 # Break up conftest.undefs because some shells have a limit on the size
15971 # of here documents, and old seds have small limits too (100 cmds).
15972 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
15973 rm -f conftest.tail
15974 while grep . conftest.undefs >/dev/null
15976 # Write a limited-size here document to $tmp/undefs.sed.
15977 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15978 # Speed up: don't consider the non `#undef'
15979 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
15980 # Work around the forget-to-reset-the-flag bug.
15981 echo 't clr' >>$CONFIG_STATUS
15982 echo ': clr' >>$CONFIG_STATUS
15983 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15984 echo 'CEOF
15985 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15986 rm -f $tmp/in
15987 mv $tmp/out $tmp/in
15988 ' >>$CONFIG_STATUS
15989 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15990 rm -f conftest.undefs
15991 mv conftest.tail conftest.undefs
15992 done
15993 rm -f conftest.undefs
15995 cat >>$CONFIG_STATUS <<\_ACEOF
15996 # Let's still pretend it is `configure' which instantiates (i.e., don't
15997 # use $as_me), people would be surprised to read:
15998 # /* config.h. Generated by config.status. */
15999 if test x"$ac_file" = x-; then
16000 echo "/* Generated by configure. */" >$tmp/config.h
16001 else
16002 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16004 cat $tmp/in >>$tmp/config.h
16005 rm -f $tmp/in
16006 if test x"$ac_file" != x-; then
16007 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16008 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16009 echo "$as_me: $ac_file is unchanged" >&6;}
16010 else
16011 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16012 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16013 X"$ac_file" : 'X\(//\)[^/]' \| \
16014 X"$ac_file" : 'X\(//\)$' \| \
16015 X"$ac_file" : 'X\(/\)' \| \
16016 . : '\(.\)' 2>/dev/null ||
16017 echo X"$ac_file" |
16018 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16019 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16020 /^X\(\/\/\)$/{ s//\1/; q; }
16021 /^X\(\/\).*/{ s//\1/; q; }
16022 s/.*/./; q'`
16023 { if $as_mkdir_p; then
16024 mkdir -p "$ac_dir"
16025 else
16026 as_dir="$ac_dir"
16027 as_dirs=
16028 while test ! -d "$as_dir"; do
16029 as_dirs="$as_dir $as_dirs"
16030 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16031 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16032 X"$as_dir" : 'X\(//\)[^/]' \| \
16033 X"$as_dir" : 'X\(//\)$' \| \
16034 X"$as_dir" : 'X\(/\)' \| \
16035 . : '\(.\)' 2>/dev/null ||
16036 echo X"$as_dir" |
16037 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16038 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16039 /^X\(\/\/\)$/{ s//\1/; q; }
16040 /^X\(\/\).*/{ s//\1/; q; }
16041 s/.*/./; q'`
16042 done
16043 test ! -n "$as_dirs" || mkdir $as_dirs
16044 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16045 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16046 { (exit 1); exit 1; }; }; }
16048 rm -f $ac_file
16049 mv $tmp/config.h $ac_file
16051 else
16052 cat $tmp/config.h
16053 rm -f $tmp/config.h
16055 done
16056 _ACEOF
16057 cat >>$CONFIG_STATUS <<\_ACEOF
16060 # CONFIG_LINKS section.
16063 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
16064 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16065 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16067 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
16068 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
16070 if test ! -r $srcdir/$ac_source; then
16071 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
16072 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
16073 { (exit 1); exit 1; }; }
16075 rm -f $ac_dest
16077 # Make relative symlinks.
16078 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
16079 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16080 X"$ac_dest" : 'X\(//\)[^/]' \| \
16081 X"$ac_dest" : 'X\(//\)$' \| \
16082 X"$ac_dest" : 'X\(/\)' \| \
16083 . : '\(.\)' 2>/dev/null ||
16084 echo X"$ac_dest" |
16085 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16086 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16087 /^X\(\/\/\)$/{ s//\1/; q; }
16088 /^X\(\/\).*/{ s//\1/; q; }
16089 s/.*/./; q'`
16090 { if $as_mkdir_p; then
16091 mkdir -p "$ac_dest_dir"
16092 else
16093 as_dir="$ac_dest_dir"
16094 as_dirs=
16095 while test ! -d "$as_dir"; do
16096 as_dirs="$as_dir $as_dirs"
16097 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16098 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16099 X"$as_dir" : 'X\(//\)[^/]' \| \
16100 X"$as_dir" : 'X\(//\)$' \| \
16101 X"$as_dir" : 'X\(/\)' \| \
16102 . : '\(.\)' 2>/dev/null ||
16103 echo X"$as_dir" |
16104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16105 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16106 /^X\(\/\/\)$/{ s//\1/; q; }
16107 /^X\(\/\).*/{ s//\1/; q; }
16108 s/.*/./; q'`
16109 done
16110 test ! -n "$as_dirs" || mkdir $as_dirs
16111 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
16112 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
16113 { (exit 1); exit 1; }; }; }
16115 ac_builddir=.
16117 if test "$ac_dest_dir" != .; then
16118 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
16119 # A "../" for each directory in $ac_dir_suffix.
16120 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16121 else
16122 ac_dir_suffix= ac_top_builddir=
16125 case $srcdir in
16126 .) # No --srcdir option. We are building in place.
16127 ac_srcdir=.
16128 if test -z "$ac_top_builddir"; then
16129 ac_top_srcdir=.
16130 else
16131 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16132 fi ;;
16133 [\\/]* | ?:[\\/]* ) # Absolute path.
16134 ac_srcdir=$srcdir$ac_dir_suffix;
16135 ac_top_srcdir=$srcdir ;;
16136 *) # Relative path.
16137 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16138 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16139 esac
16141 # Do not use `cd foo && pwd` to compute absolute paths, because
16142 # the directories may not exist.
16143 case `pwd` in
16144 .) ac_abs_builddir="$ac_dest_dir";;
16146 case "$ac_dest_dir" in
16147 .) ac_abs_builddir=`pwd`;;
16148 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
16149 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
16150 esac;;
16151 esac
16152 case $ac_abs_builddir in
16153 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16155 case ${ac_top_builddir}. in
16156 .) ac_abs_top_builddir=$ac_abs_builddir;;
16157 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16158 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16159 esac;;
16160 esac
16161 case $ac_abs_builddir in
16162 .) ac_abs_srcdir=$ac_srcdir;;
16164 case $ac_srcdir in
16165 .) ac_abs_srcdir=$ac_abs_builddir;;
16166 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16167 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16168 esac;;
16169 esac
16170 case $ac_abs_builddir in
16171 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16173 case $ac_top_srcdir in
16174 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16175 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16176 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16177 esac;;
16178 esac
16181 case $srcdir in
16182 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
16183 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
16184 esac
16186 # Try a symlink, then a hard link, then a copy.
16187 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
16188 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
16189 cp -p $srcdir/$ac_source $ac_dest ||
16190 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
16191 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
16192 { (exit 1); exit 1; }; }
16193 done
16194 _ACEOF
16195 cat >>$CONFIG_STATUS <<\_ACEOF
16198 # CONFIG_COMMANDS section.
16200 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16201 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16202 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16203 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16204 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16205 X"$ac_dest" : 'X\(//\)[^/]' \| \
16206 X"$ac_dest" : 'X\(//\)$' \| \
16207 X"$ac_dest" : 'X\(/\)' \| \
16208 . : '\(.\)' 2>/dev/null ||
16209 echo X"$ac_dest" |
16210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16211 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16212 /^X\(\/\/\)$/{ s//\1/; q; }
16213 /^X\(\/\).*/{ s//\1/; q; }
16214 s/.*/./; q'`
16215 { if $as_mkdir_p; then
16216 mkdir -p "$ac_dir"
16217 else
16218 as_dir="$ac_dir"
16219 as_dirs=
16220 while test ! -d "$as_dir"; do
16221 as_dirs="$as_dir $as_dirs"
16222 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16223 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16224 X"$as_dir" : 'X\(//\)[^/]' \| \
16225 X"$as_dir" : 'X\(//\)$' \| \
16226 X"$as_dir" : 'X\(/\)' \| \
16227 . : '\(.\)' 2>/dev/null ||
16228 echo X"$as_dir" |
16229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16230 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16231 /^X\(\/\/\)$/{ s//\1/; q; }
16232 /^X\(\/\).*/{ s//\1/; q; }
16233 s/.*/./; q'`
16234 done
16235 test ! -n "$as_dirs" || mkdir $as_dirs
16236 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16237 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16238 { (exit 1); exit 1; }; }; }
16240 ac_builddir=.
16242 if test "$ac_dir" != .; then
16243 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16244 # A "../" for each directory in $ac_dir_suffix.
16245 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16246 else
16247 ac_dir_suffix= ac_top_builddir=
16250 case $srcdir in
16251 .) # No --srcdir option. We are building in place.
16252 ac_srcdir=.
16253 if test -z "$ac_top_builddir"; then
16254 ac_top_srcdir=.
16255 else
16256 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16257 fi ;;
16258 [\\/]* | ?:[\\/]* ) # Absolute path.
16259 ac_srcdir=$srcdir$ac_dir_suffix;
16260 ac_top_srcdir=$srcdir ;;
16261 *) # Relative path.
16262 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16263 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16264 esac
16266 # Do not use `cd foo && pwd` to compute absolute paths, because
16267 # the directories may not exist.
16268 case `pwd` in
16269 .) ac_abs_builddir="$ac_dir";;
16271 case "$ac_dir" in
16272 .) ac_abs_builddir=`pwd`;;
16273 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16274 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16275 esac;;
16276 esac
16277 case $ac_abs_builddir in
16278 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16280 case ${ac_top_builddir}. in
16281 .) ac_abs_top_builddir=$ac_abs_builddir;;
16282 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16283 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16284 esac;;
16285 esac
16286 case $ac_abs_builddir in
16287 .) ac_abs_srcdir=$ac_srcdir;;
16289 case $ac_srcdir in
16290 .) ac_abs_srcdir=$ac_abs_builddir;;
16291 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16292 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16293 esac;;
16294 esac
16295 case $ac_abs_builddir in
16296 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16298 case $ac_top_srcdir in
16299 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16300 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16301 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16302 esac;;
16303 esac
16306 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16307 echo "$as_me: executing $ac_dest commands" >&6;}
16308 case $ac_dest in
16309 default-1 ) am_indx=1
16310 for am_file in include/config.h gcj/libgcj-config.h; do
16311 case " $CONFIG_HEADERS " in
16312 *" $am_file "*)
16313 echo timestamp > `echo $am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
16315 esac
16316 am_indx=`expr "$am_indx" + 1`
16317 done ;;
16318 default ) # Only add multilib support code if we just rebuilt top-level Makefile.
16319 case " $CONFIG_FILES " in
16320 *" Makefile "*)
16321 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
16322 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
16324 esac
16326 # Make subdirectories and `.d' files. Look in both srcdir and
16327 # builddir for the .java files.
16328 h=`${PWDCMD-pwd}`
16329 : > deps.mk
16330 ( (cd $srcdir && find . \( -name '*.java' -o -name '*.cc' -o -name '*.c' \) -print) ;
16331 find . \( -name '*.java' -o -name '*.cc' -o -name '*.c' \) -print) | \
16332 fgrep -v testsuite | \
16333 sed -e 's/\.java/.d/'\;'s/\.cc/.d/'\;'s/\.c/.d/' | \
16334 while read f; do
16335 echo "include $f" >> deps.mk
16336 test -f $f || {
16337 d=`echo $f | sed -e 's,/[^/]*$,,'`
16338 if test ! -d $d; then
16339 $libgcj_basedir/../mkinstalldirs $d
16341 echo > $f
16343 done
16345 esac
16346 done
16347 _ACEOF
16349 cat >>$CONFIG_STATUS <<\_ACEOF
16351 { (exit 0); exit 0; }
16352 _ACEOF
16353 chmod +x $CONFIG_STATUS
16354 ac_clean_files=$ac_clean_files_save
16357 # configure is writing to config.log, and then calls config.status.
16358 # config.status does its own redirection, appending to config.log.
16359 # Unfortunately, on DOS this fails, as config.log is still kept open
16360 # by configure, so config.status won't be able to write to it; its
16361 # output is simply discarded. So we exec the FD to /dev/null,
16362 # effectively closing config.log, so it can be properly (re)opened and
16363 # appended to by config.status. When coming back to configure, we
16364 # need to make the FD available again.
16365 if test "$no_create" != yes; then
16366 ac_cs_success=:
16367 ac_config_status_args=
16368 test "$silent" = yes &&
16369 ac_config_status_args="$ac_config_status_args --quiet"
16370 exec 5>/dev/null
16371 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16372 exec 5>>config.log
16373 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16374 # would make configure fail if this is the last instruction.
16375 $ac_cs_success || { (exit 1); exit 1; }
16379 # CONFIG_SUBDIRS section.
16381 if test "$no_recursion" != yes; then
16383 # Remove --cache-file and --srcdir arguments so they do not pile up.
16384 ac_sub_configure_args=
16385 ac_prev=
16386 for ac_arg in $ac_configure_args; do
16387 if test -n "$ac_prev"; then
16388 ac_prev=
16389 continue
16391 case $ac_arg in
16392 -cache-file | --cache-file | --cache-fil | --cache-fi \
16393 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
16394 ac_prev=cache_file ;;
16395 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
16396 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
16397 | --c=*)
16399 --config-cache | -C)
16401 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16402 ac_prev=srcdir ;;
16403 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16405 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
16406 ac_prev=prefix ;;
16407 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
16409 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
16410 esac
16411 done
16413 # Always prepend --prefix to ensure using the same prefix
16414 # in subdir configurations.
16415 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
16417 ac_popdir=`pwd`
16418 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
16420 # Do not complain, so a configure script can configure whichever
16421 # parts of a large source tree are present.
16422 test -d $srcdir/$ac_dir || continue
16424 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
16425 echo "$as_me: configuring in $ac_dir" >&6;}
16426 { if $as_mkdir_p; then
16427 mkdir -p "$ac_dir"
16428 else
16429 as_dir="$ac_dir"
16430 as_dirs=
16431 while test ! -d "$as_dir"; do
16432 as_dirs="$as_dir $as_dirs"
16433 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16434 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16435 X"$as_dir" : 'X\(//\)[^/]' \| \
16436 X"$as_dir" : 'X\(//\)$' \| \
16437 X"$as_dir" : 'X\(/\)' \| \
16438 . : '\(.\)' 2>/dev/null ||
16439 echo X"$as_dir" |
16440 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16441 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16442 /^X\(\/\/\)$/{ s//\1/; q; }
16443 /^X\(\/\).*/{ s//\1/; q; }
16444 s/.*/./; q'`
16445 done
16446 test ! -n "$as_dirs" || mkdir $as_dirs
16447 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16448 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16449 { (exit 1); exit 1; }; }; }
16451 ac_builddir=.
16453 if test "$ac_dir" != .; then
16454 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16455 # A "../" for each directory in $ac_dir_suffix.
16456 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16457 else
16458 ac_dir_suffix= ac_top_builddir=
16461 case $srcdir in
16462 .) # No --srcdir option. We are building in place.
16463 ac_srcdir=.
16464 if test -z "$ac_top_builddir"; then
16465 ac_top_srcdir=.
16466 else
16467 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16468 fi ;;
16469 [\\/]* | ?:[\\/]* ) # Absolute path.
16470 ac_srcdir=$srcdir$ac_dir_suffix;
16471 ac_top_srcdir=$srcdir ;;
16472 *) # Relative path.
16473 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16474 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16475 esac
16477 # Do not use `cd foo && pwd` to compute absolute paths, because
16478 # the directories may not exist.
16479 case `pwd` in
16480 .) ac_abs_builddir="$ac_dir";;
16482 case "$ac_dir" in
16483 .) ac_abs_builddir=`pwd`;;
16484 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16485 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16486 esac;;
16487 esac
16488 case $ac_abs_builddir in
16489 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16491 case ${ac_top_builddir}. in
16492 .) ac_abs_top_builddir=$ac_abs_builddir;;
16493 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16494 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16495 esac;;
16496 esac
16497 case $ac_abs_builddir in
16498 .) ac_abs_srcdir=$ac_srcdir;;
16500 case $ac_srcdir in
16501 .) ac_abs_srcdir=$ac_abs_builddir;;
16502 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16503 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16504 esac;;
16505 esac
16506 case $ac_abs_builddir in
16507 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16509 case $ac_top_srcdir in
16510 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16511 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16512 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16513 esac;;
16514 esac
16517 cd $ac_dir
16519 # Check for guested configure; otherwise get Cygnus style configure.
16520 if test -f $ac_srcdir/configure.gnu; then
16521 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
16522 elif test -f $ac_srcdir/configure; then
16523 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
16524 elif test -f $ac_srcdir/configure.in; then
16525 ac_sub_configure=$ac_configure
16526 else
16527 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
16528 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
16529 ac_sub_configure=
16532 # The recursion is here.
16533 if test -n "$ac_sub_configure"; then
16534 # Make the cache file name correct relative to the subdirectory.
16535 case $cache_file in
16536 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
16537 *) # Relative path.
16538 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
16539 esac
16541 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
16542 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
16543 # The eval makes quoting arguments work.
16544 eval $ac_sub_configure $ac_sub_configure_args \
16545 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
16546 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
16547 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
16548 { (exit 1); exit 1; }; }
16551 cd "$ac_popdir"
16552 done