* tree-nrv.c (tree_nrv): Fix to check assignments to the
[official-gcc.git] / libjava / configure
blob2c915261bc299498f1beb11c7e0482d0b984337d
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libjava version-unused.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME='libjava'
269 PACKAGE_TARNAME='libjava'
270 PACKAGE_VERSION='version-unused'
271 PACKAGE_STRING='libjava version-unused'
272 PACKAGE_BUGREPORT=''
274 ac_unique_file="java/lang/System.java"
275 ac_subdirs_all="$ac_subdirs_all libltdl"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 # include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_subdir host_subdir target_subdir libgcj_basedir host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical LN_S mkinstalldirs CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LDFLAGS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBGCJ_CFLAGS LIBGCJ_CXXFLAGS LIBGCJ_JAVAFLAGS LIBGCJ_LD_SYMBOLIC INCLTDL LIBLTDL DIRLTDL LIBTOOL CXXCPP CPPFLAGS GCJ GCJFLAGS GCJDEPMODE am__fastdepGCJ_TRUE am__fastdepGCJ_FALSE subdirs TESTSUBDIR_TRUE TESTSUBDIR_FALSE JAVA_HOME_SET_TRUE JAVA_HOME_SET_FALSE JAVA_HOME LIBGCJDEBUG INTERPRETER LIBFFI LIBFFIINCS PLATFORM_INNER_NAT_HDRS CPP EGREP USING_WIN32_PLATFORM_TRUE USING_WIN32_PLATFORM_FALSE USING_POSIX_PLATFORM_TRUE USING_POSIX_PLATFORM_FALSE USING_DARWIN_CRT_TRUE USING_DARWIN_CRT_FALSE SYSTEMSPEC LIBGCJTESTSPEC ZLIBSPEC ZLIBTESTSPEC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE GTK_AWT_TRUE GTK_AWT_FALSE GTK_CAIRO_TRUE GTK_CAIRO_FALSE PKG_CONFIG CAIRO_CFLAGS CAIRO_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS GCLIBS GCINCS GCDEPS GCSPEC JC1GCSPEC GCTESTSPEC USING_BOEHMGC_TRUE USING_BOEHMGC_FALSE USING_NOGC_TRUE USING_NOGC_FALSE THREADLIBS THREADINCS THREADDEPS THREADSPEC THREADLDFLAGS THREADCXXFLAGS USING_POSIX_THREADS_TRUE USING_POSIX_THREADS_FALSE USING_WIN32_THREADS_TRUE USING_WIN32_THREADS_FALSE USING_NO_THREADS_TRUE USING_NO_THREADS_FALSE HASH_SYNC_SPEC USING_GCC_TRUE USING_GCC_FALSE LIBICONV LTLIBICONV GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS SUPPLY_BACKTRACE_TRUE SUPPLY_BACKTRACE_FALSE GCJH ZIP CLASSPATH_SEPARATOR ac_ct_GCJ ZLIBS SYS_ZLIBS ZINCS DIVIDESPEC CHECKREFSPEC EXCEPTIONSPEC BACKTRACESPEC IEEESPEC NATIVE_TRUE NATIVE_FALSE NEEDS_DATA_START_TRUE NEEDS_DATA_START_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir GCJVERSION gxx_include_dir libstdcxx_incdir ALLOCA PERL SYSDEP_SOURCES here LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
354 ac_prev=
355 for ac_option
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
368 case $ac_option in
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
387 --config-cache | -C)
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 esac
651 done
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
726 else
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CXXCPP_set=${CXXCPP+set}
755 ac_env_CXXCPP_value=$CXXCPP
756 ac_cv_env_CXXCPP_set=${CXXCPP+set}
757 ac_cv_env_CXXCPP_value=$CXXCPP
758 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
759 ac_env_CPPFLAGS_value=$CPPFLAGS
760 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
761 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
762 ac_env_CPP_set=${CPP+set}
763 ac_env_CPP_value=$CPP
764 ac_cv_env_CPP_set=${CPP+set}
765 ac_cv_env_CPP_value=$CPP
768 # Report the --help message.
770 if test "$ac_init_help" = "long"; then
771 # Omit some internal or obsolete options to make the list less imposing.
772 # This message is too long to be a string in the A/UX 3.1 sh.
773 cat <<_ACEOF
774 \`configure' configures libjava version-unused to adapt to many kinds of systems.
776 Usage: $0 [OPTION]... [VAR=VALUE]...
778 To assign environment variables (e.g., CC, CFLAGS...), specify them as
779 VAR=VALUE. See below for descriptions of some of the useful variables.
781 Defaults for the options are specified in brackets.
783 Configuration:
784 -h, --help display this help and exit
785 --help=short display options specific to this package
786 --help=recursive display the short help of all the included packages
787 -V, --version display version information and exit
788 -q, --quiet, --silent do not print \`checking...' messages
789 --cache-file=FILE cache test results in FILE [disabled]
790 -C, --config-cache alias for \`--cache-file=config.cache'
791 -n, --no-create do not create output files
792 --srcdir=DIR find the sources in DIR [configure dir or \`..']
794 _ACEOF
796 cat <<_ACEOF
797 Installation directories:
798 --prefix=PREFIX install architecture-independent files in PREFIX
799 [$ac_default_prefix]
800 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
801 [PREFIX]
803 By default, \`make install' will install all the files in
804 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
805 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
806 for instance \`--prefix=\$HOME'.
808 For better control, use the options below.
810 Fine tuning of the installation directories:
811 --bindir=DIR user executables [EPREFIX/bin]
812 --sbindir=DIR system admin executables [EPREFIX/sbin]
813 --libexecdir=DIR program executables [EPREFIX/libexec]
814 --datadir=DIR read-only architecture-independent data [PREFIX/share]
815 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
816 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
817 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
818 --libdir=DIR object code libraries [EPREFIX/lib]
819 --includedir=DIR C header files [PREFIX/include]
820 --oldincludedir=DIR C header files for non-gcc [/usr/include]
821 --infodir=DIR info documentation [PREFIX/info]
822 --mandir=DIR man documentation [PREFIX/man]
823 _ACEOF
825 cat <<\_ACEOF
827 Program names:
828 --program-prefix=PREFIX prepend PREFIX to installed program names
829 --program-suffix=SUFFIX append SUFFIX to installed program names
830 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
832 X features:
833 --x-includes=DIR X include files are in DIR
834 --x-libraries=DIR X library files are in DIR
836 System types:
837 --build=BUILD configure for building on BUILD [guessed]
838 --host=HOST cross-compile to build programs to run on HOST [BUILD]
839 --target=TARGET configure for building compilers for TARGET [HOST]
840 _ACEOF
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive ) echo "Configuration of libjava version-unused:";;
846 esac
847 cat <<\_ACEOF
849 Optional Features:
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --enable-version-specific-runtime-libs
853 specify that runtime libraries should be installed
854 in a compiler-specific directory
855 --enable-multilib build many library versions (default)
856 --disable-dependency-tracking speeds up one-time build
857 --enable-dependency-tracking do not reject slow dependency extractors
858 --enable-maintainer-mode enable make rules and dependencies not useful
859 (and sometimes confusing) to the casual installer
860 --enable-shared=PKGS build shared libraries default=yes
861 --enable-static=PKGS build static libraries default=yes
862 --enable-fast-install=PKGS optimize for fast installation default=yes
863 --disable-libtool-lock avoid locking (might break parallel builds)
864 --disable-getenv-properties
865 don't set system properties from GCJ_PROPERTIES
866 --enable-hash-synchronization
867 use global hash table for monitor locks
868 --enable-libgcj-debug enable runtime debugging code
869 --enable-gc-debug include full support for pointer backtracing etc.
870 --enable-interpreter enable interpreter
871 --enable-sjlj-exceptions
872 force use of builtin_setjmp for exceptions
873 --disable-java-net disable java.net
874 --disable-jvmpi disable JVMPI support
875 --enable-java-awt list of AWT peer implementations to be built
876 --enable-gtk-cairo build the cairo Graphics2D implementation on GTK
877 --enable-java-gc=TYPE choose garbage collector (default is boehm)
878 --disable-rpath do not hardcode runtime library paths
880 Optional Packages:
881 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
882 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
883 --with-target-subdir=SUBDIR
884 configure in a subdirectory
885 --with-cross-host=HOST configure with a cross compiler from HOST
886 --with-newlib configure with newlib
887 --with-gnu-ld assume the C compiler uses GNU ld default=no
888 --with-pic try to use only PIC/non-PIC objects default=use both
889 --with-java-home=DIRECTORY
890 value of java.home system property
891 --with-win32-nlsapi=ansi or unicows or unicode
892 native MinGW libgcj Win32 OS API (default is ansi)
893 --without-libffi don't use libffi
894 --with-ecos enable runtime eCos target support
895 --with-system-zlib use installed libz
896 --with-x use the X Window System
897 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
898 --without-libiconv-prefix don't search for libiconv in includedir and libdir
900 Some influential environment variables:
901 CC C compiler command
902 CFLAGS C compiler flags
903 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
904 nonstandard directory <lib dir>
905 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
906 headers in a nonstandard directory <include dir>
907 CXX C++ compiler command
908 CXXFLAGS C++ compiler flags
909 CXXCPP C++ preprocessor
910 CPP C preprocessor
912 Use these variables to override the choices made by `configure' or to help
913 it to find libraries and programs with nonstandard names/locations.
915 _ACEOF
918 if test "$ac_init_help" = "recursive"; then
919 # If there are subdirs, report their specific --help.
920 ac_popdir=`pwd`
921 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
922 test -d $ac_dir || continue
923 ac_builddir=.
925 if test "$ac_dir" != .; then
926 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
927 # A "../" for each directory in $ac_dir_suffix.
928 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
929 else
930 ac_dir_suffix= ac_top_builddir=
933 case $srcdir in
934 .) # No --srcdir option. We are building in place.
935 ac_srcdir=.
936 if test -z "$ac_top_builddir"; then
937 ac_top_srcdir=.
938 else
939 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
940 fi ;;
941 [\\/]* | ?:[\\/]* ) # Absolute path.
942 ac_srcdir=$srcdir$ac_dir_suffix;
943 ac_top_srcdir=$srcdir ;;
944 *) # Relative path.
945 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
946 ac_top_srcdir=$ac_top_builddir$srcdir ;;
947 esac
949 # Do not use `cd foo && pwd` to compute absolute paths, because
950 # the directories may not exist.
951 case `pwd` in
952 .) ac_abs_builddir="$ac_dir";;
954 case "$ac_dir" in
955 .) ac_abs_builddir=`pwd`;;
956 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
957 *) ac_abs_builddir=`pwd`/"$ac_dir";;
958 esac;;
959 esac
960 case $ac_abs_builddir in
961 .) ac_abs_top_builddir=${ac_top_builddir}.;;
963 case ${ac_top_builddir}. in
964 .) ac_abs_top_builddir=$ac_abs_builddir;;
965 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
966 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
967 esac;;
968 esac
969 case $ac_abs_builddir in
970 .) ac_abs_srcdir=$ac_srcdir;;
972 case $ac_srcdir in
973 .) ac_abs_srcdir=$ac_abs_builddir;;
974 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
975 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
976 esac;;
977 esac
978 case $ac_abs_builddir in
979 .) ac_abs_top_srcdir=$ac_top_srcdir;;
981 case $ac_top_srcdir in
982 .) ac_abs_top_srcdir=$ac_abs_builddir;;
983 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
984 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
985 esac;;
986 esac
988 cd $ac_dir
989 # Check for guested configure; otherwise get Cygnus style configure.
990 if test -f $ac_srcdir/configure.gnu; then
991 echo
992 $SHELL $ac_srcdir/configure.gnu --help=recursive
993 elif test -f $ac_srcdir/configure; then
994 echo
995 $SHELL $ac_srcdir/configure --help=recursive
996 elif test -f $ac_srcdir/configure.ac ||
997 test -f $ac_srcdir/configure.in; then
998 echo
999 $ac_configure --help
1000 else
1001 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1003 cd $ac_popdir
1004 done
1007 test -n "$ac_init_help" && exit 0
1008 if $ac_init_version; then
1009 cat <<\_ACEOF
1010 libjava configure version-unused
1011 generated by GNU Autoconf 2.59
1013 Copyright (C) 2003 Free Software Foundation, Inc.
1014 This configure script is free software; the Free Software Foundation
1015 gives unlimited permission to copy, distribute and modify it.
1016 _ACEOF
1017 exit 0
1019 exec 5>config.log
1020 cat >&5 <<_ACEOF
1021 This file contains any messages produced by compilers while
1022 running configure, to aid debugging if configure makes a mistake.
1024 It was created by libjava $as_me version-unused, which was
1025 generated by GNU Autoconf 2.59. Invocation command line was
1027 $ $0 $@
1029 _ACEOF
1031 cat <<_ASUNAME
1032 ## --------- ##
1033 ## Platform. ##
1034 ## --------- ##
1036 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1037 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1038 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1039 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1040 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1042 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1043 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1045 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1046 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1047 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1048 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1049 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1050 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1051 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1053 _ASUNAME
1055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1056 for as_dir in $PATH
1058 IFS=$as_save_IFS
1059 test -z "$as_dir" && as_dir=.
1060 echo "PATH: $as_dir"
1061 done
1063 } >&5
1065 cat >&5 <<_ACEOF
1068 ## ----------- ##
1069 ## Core tests. ##
1070 ## ----------- ##
1072 _ACEOF
1075 # Keep a trace of the command line.
1076 # Strip out --no-create and --no-recursion so they do not pile up.
1077 # Strip out --silent because we don't want to record it for future runs.
1078 # Also quote any args containing shell meta-characters.
1079 # Make two passes to allow for proper duplicate-argument suppression.
1080 ac_configure_args=
1081 ac_configure_args0=
1082 ac_configure_args1=
1083 ac_sep=
1084 ac_must_keep_next=false
1085 for ac_pass in 1 2
1087 for ac_arg
1089 case $ac_arg in
1090 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092 | -silent | --silent | --silen | --sile | --sil)
1093 continue ;;
1094 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1095 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1096 esac
1097 case $ac_pass in
1098 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1100 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1101 if test $ac_must_keep_next = true; then
1102 ac_must_keep_next=false # Got value, back to normal.
1103 else
1104 case $ac_arg in
1105 *=* | --config-cache | -C | -disable-* | --disable-* \
1106 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1107 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1108 | -with-* | --with-* | -without-* | --without-* | --x)
1109 case "$ac_configure_args0 " in
1110 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1111 esac
1113 -* ) ac_must_keep_next=true ;;
1114 esac
1116 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1117 # Get rid of the leading space.
1118 ac_sep=" "
1120 esac
1121 done
1122 done
1123 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1124 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1126 # When interrupted or exit'd, cleanup temporary files, and complete
1127 # config.log. We remove comments because anyway the quotes in there
1128 # would cause problems or look ugly.
1129 # WARNING: Be sure not to use single quotes in there, as some shells,
1130 # such as our DU 5.0 friend, will then `close' the trap.
1131 trap 'exit_status=$?
1132 # Save into config.log some information that might help in debugging.
1134 echo
1136 cat <<\_ASBOX
1137 ## ---------------- ##
1138 ## Cache variables. ##
1139 ## ---------------- ##
1140 _ASBOX
1141 echo
1142 # The following way of writing the cache mishandles newlines in values,
1144 (set) 2>&1 |
1145 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1146 *ac_space=\ *)
1147 sed -n \
1148 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1149 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1152 sed -n \
1153 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1155 esac;
1157 echo
1159 cat <<\_ASBOX
1160 ## ----------------- ##
1161 ## Output variables. ##
1162 ## ----------------- ##
1163 _ASBOX
1164 echo
1165 for ac_var in $ac_subst_vars
1167 eval ac_val=$`echo $ac_var`
1168 echo "$ac_var='"'"'$ac_val'"'"'"
1169 done | sort
1170 echo
1172 if test -n "$ac_subst_files"; then
1173 cat <<\_ASBOX
1174 ## ------------- ##
1175 ## Output files. ##
1176 ## ------------- ##
1177 _ASBOX
1178 echo
1179 for ac_var in $ac_subst_files
1181 eval ac_val=$`echo $ac_var`
1182 echo "$ac_var='"'"'$ac_val'"'"'"
1183 done | sort
1184 echo
1187 if test -s confdefs.h; then
1188 cat <<\_ASBOX
1189 ## ----------- ##
1190 ## confdefs.h. ##
1191 ## ----------- ##
1192 _ASBOX
1193 echo
1194 sed "/^$/d" confdefs.h | sort
1195 echo
1197 test "$ac_signal" != 0 &&
1198 echo "$as_me: caught signal $ac_signal"
1199 echo "$as_me: exit $exit_status"
1200 } >&5
1201 rm -f core *.core &&
1202 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1203 exit $exit_status
1205 for ac_signal in 1 2 13 15; do
1206 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1207 done
1208 ac_signal=0
1210 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1211 rm -rf conftest* confdefs.h
1212 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1213 echo >confdefs.h
1215 # Predefined preprocessor variables.
1217 cat >>confdefs.h <<_ACEOF
1218 #define PACKAGE_NAME "$PACKAGE_NAME"
1219 _ACEOF
1222 cat >>confdefs.h <<_ACEOF
1223 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1224 _ACEOF
1227 cat >>confdefs.h <<_ACEOF
1228 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1229 _ACEOF
1232 cat >>confdefs.h <<_ACEOF
1233 #define PACKAGE_STRING "$PACKAGE_STRING"
1234 _ACEOF
1237 cat >>confdefs.h <<_ACEOF
1238 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1239 _ACEOF
1242 # Let the site file select an alternate cache file if it wants to.
1243 # Prefer explicitly selected file to automatically selected ones.
1244 if test -z "$CONFIG_SITE"; then
1245 if test "x$prefix" != xNONE; then
1246 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1247 else
1248 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1251 for ac_site_file in $CONFIG_SITE; do
1252 if test -r "$ac_site_file"; then
1253 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1254 echo "$as_me: loading site script $ac_site_file" >&6;}
1255 sed 's/^/| /' "$ac_site_file" >&5
1256 . "$ac_site_file"
1258 done
1260 if test -r "$cache_file"; then
1261 # Some versions of bash will fail to source /dev/null (special
1262 # files actually), so we avoid doing that.
1263 if test -f "$cache_file"; then
1264 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1265 echo "$as_me: loading cache $cache_file" >&6;}
1266 case $cache_file in
1267 [\\/]* | ?:[\\/]* ) . $cache_file;;
1268 *) . ./$cache_file;;
1269 esac
1271 else
1272 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1273 echo "$as_me: creating cache $cache_file" >&6;}
1274 >$cache_file
1277 # Check that the precious variables saved in the cache have kept the same
1278 # value.
1279 ac_cache_corrupted=false
1280 for ac_var in `(set) 2>&1 |
1281 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1282 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1283 eval ac_new_set=\$ac_env_${ac_var}_set
1284 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1285 eval ac_new_val="\$ac_env_${ac_var}_value"
1286 case $ac_old_set,$ac_new_set in
1287 set,)
1288 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1289 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1290 ac_cache_corrupted=: ;;
1291 ,set)
1292 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1293 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1294 ac_cache_corrupted=: ;;
1295 ,);;
1297 if test "x$ac_old_val" != "x$ac_new_val"; then
1298 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1299 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1300 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1301 echo "$as_me: former value: $ac_old_val" >&2;}
1302 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1303 echo "$as_me: current value: $ac_new_val" >&2;}
1304 ac_cache_corrupted=:
1305 fi;;
1306 esac
1307 # Pass precious variables to config.status.
1308 if test "$ac_new_set" = set; then
1309 case $ac_new_val in
1310 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1311 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1312 *) ac_arg=$ac_var=$ac_new_val ;;
1313 esac
1314 case " $ac_configure_args " in
1315 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1316 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1317 esac
1319 done
1320 if $ac_cache_corrupted; then
1321 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1322 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1323 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1324 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1325 { (exit 1); exit 1; }; }
1328 ac_ext=c
1329 ac_cpp='$CPP $CPPFLAGS'
1330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1363 ac_aux_dir=
1364 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1365 if test -f $ac_dir/install-sh; then
1366 ac_aux_dir=$ac_dir
1367 ac_install_sh="$ac_aux_dir/install-sh -c"
1368 break
1369 elif test -f $ac_dir/install.sh; then
1370 ac_aux_dir=$ac_dir
1371 ac_install_sh="$ac_aux_dir/install.sh -c"
1372 break
1373 elif test -f $ac_dir/shtool; then
1374 ac_aux_dir=$ac_dir
1375 ac_install_sh="$ac_aux_dir/shtool install -c"
1376 break
1378 done
1379 if test -z "$ac_aux_dir"; then
1380 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1381 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1382 { (exit 1); exit 1; }; }
1384 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1385 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1386 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1388 # Make sure we can run config.sub.
1389 $ac_config_sub sun4 >/dev/null 2>&1 ||
1390 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1391 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1392 { (exit 1); exit 1; }; }
1394 echo "$as_me:$LINENO: checking build system type" >&5
1395 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1396 if test "${ac_cv_build+set}" = set; then
1397 echo $ECHO_N "(cached) $ECHO_C" >&6
1398 else
1399 ac_cv_build_alias=$build_alias
1400 test -z "$ac_cv_build_alias" &&
1401 ac_cv_build_alias=`$ac_config_guess`
1402 test -z "$ac_cv_build_alias" &&
1403 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1404 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1405 { (exit 1); exit 1; }; }
1406 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1407 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1408 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1409 { (exit 1); exit 1; }; }
1412 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1413 echo "${ECHO_T}$ac_cv_build" >&6
1414 build=$ac_cv_build
1415 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1416 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1417 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1420 case ${build_alias} in
1421 "") build_noncanonical=${build} ;;
1422 *) build_noncanonical=${build_alias} ;;
1423 esac
1425 case ${host_alias} in
1426 "") host_noncanonical=${build_noncanonical} ;;
1427 *) host_noncanonical=${host_alias} ;;
1428 esac
1430 case ${target_alias} in
1431 "") target_noncanonical=${host_noncanonical} ;;
1432 *) target_noncanonical=${target_alias} ;;
1433 esac
1435 # Prefix 'build-' so this never conflicts with target_subdir.
1436 build_subdir="build-${build_noncanonical}"
1437 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1438 if ( test $srcdir = . && test -d gcc ) \
1439 || test -d $srcdir/../host-${host_noncanonical}; then
1440 host_subdir="host-${host_noncanonical}"
1441 else
1442 host_subdir=.
1444 # No prefix.
1445 target_subdir=${target_noncanonical}
1448 # We use these options to decide which functions to include.
1450 # Check whether --with-target-subdir or --without-target-subdir was given.
1451 if test "${with_target_subdir+set}" = set; then
1452 withval="$with_target_subdir"
1456 # We may get other options which we don't document:
1457 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1459 # When building with srcdir == objdir, links to the source files will
1460 # be created in directories within the target_subdir. We have to
1461 # adjust toplevel_srcdir accordingly, so that configure finds
1462 # install-sh and other auxiliary files that live in the top-level
1463 # source directory.
1464 if test "${srcdir}" = "."; then
1465 if test -z "${with_target_subdir}"; then
1466 toprel=".."
1467 else
1468 if test "${with_target_subdir}" != "."; then
1469 toprel="${with_multisrctop}../.."
1470 else
1471 toprel="${with_multisrctop}.."
1474 else
1475 toprel=".."
1478 libgcj_basedir=$srcdir/$toprel/./libjava
1481 echo "$as_me:$LINENO: checking host system type" >&5
1482 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1483 if test "${ac_cv_host+set}" = set; then
1484 echo $ECHO_N "(cached) $ECHO_C" >&6
1485 else
1486 ac_cv_host_alias=$host_alias
1487 test -z "$ac_cv_host_alias" &&
1488 ac_cv_host_alias=$ac_cv_build_alias
1489 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1490 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1491 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1492 { (exit 1); exit 1; }; }
1495 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1496 echo "${ECHO_T}$ac_cv_host" >&6
1497 host=$ac_cv_host
1498 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1499 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1500 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1503 echo "$as_me:$LINENO: checking target system type" >&5
1504 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1505 if test "${ac_cv_target+set}" = set; then
1506 echo $ECHO_N "(cached) $ECHO_C" >&6
1507 else
1508 ac_cv_target_alias=$target_alias
1509 test "x$ac_cv_target_alias" = "x" &&
1510 ac_cv_target_alias=$ac_cv_host_alias
1511 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1512 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1513 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1514 { (exit 1); exit 1; }; }
1517 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1518 echo "${ECHO_T}$ac_cv_target" >&6
1519 target=$ac_cv_target
1520 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1521 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1522 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1525 # The aliases save the names the user supplied, while $host etc.
1526 # will get canonicalized.
1527 test -n "$target_alias" &&
1528 test "$program_prefix$program_suffix$program_transform_name" = \
1529 NONENONEs,x,x, &&
1530 program_prefix=${target_alias}-
1531 case ${build_alias} in
1532 "") build_noncanonical=${build} ;;
1533 *) build_noncanonical=${build_alias} ;;
1534 esac
1536 case ${target_alias} in
1537 "") target_noncanonical=${host_noncanonical} ;;
1538 *) target_noncanonical=${target_alias} ;;
1539 esac
1544 # This works around the fact that libtool configuration may change LD
1545 # for this particular configuration, but some shells, instead of
1546 # keeping the changes in LD private, export them just because LD is
1547 # exported.
1548 ORIGINAL_LD_FOR_MULTILIBS=$LD
1550 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1551 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1552 LN_S=$as_ln_s
1553 if test "$LN_S" = "ln -s"; then
1554 echo "$as_me:$LINENO: result: yes" >&5
1555 echo "${ECHO_T}yes" >&6
1556 else
1557 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1558 echo "${ECHO_T}no, using $LN_S" >&6
1562 # This works around an automake problem.
1563 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1567 # Check whether --with-cross-host or --without-cross-host was given.
1568 if test "${with_cross_host+set}" = set; then
1569 withval="$with_cross_host"
1574 # Check whether --with-newlib or --without-newlib was given.
1575 if test "${with_newlib+set}" = set; then
1576 withval="$with_newlib"
1580 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1581 if test "${enable_version_specific_runtime_libs+set}" = set; then
1582 enableval="$enable_version_specific_runtime_libs"
1583 case "$enableval" in
1584 yes) version_specific_libs=yes ;;
1585 no) version_specific_libs=no ;;
1586 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1587 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1588 { (exit 1); exit 1; }; };;
1589 esac
1590 else
1591 version_specific_libs=no
1595 # Default to --enable-multilib
1596 # Check whether --enable-multilib or --disable-multilib was given.
1597 if test "${enable_multilib+set}" = set; then
1598 enableval="$enable_multilib"
1599 case "${enableval}" in
1600 yes) multilib=yes ;;
1601 no) multilib=no ;;
1602 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1603 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1604 { (exit 1); exit 1; }; } ;;
1605 esac
1606 else
1607 multilib=yes
1609 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1612 # (1) We use an abnormal CXX (without library references), so we
1613 # must cache it under a different name.
1614 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1615 # the non-multilib-adjusted value will be used in multilibs.
1616 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1617 # (4) As another side effect, automake doesn't automatically include them
1618 # in Makefile.in.
1619 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1620 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1621 # used in later tests. This may not be necessary in libjava; I don't know.
1625 save_CXXFLAGS="$CXXFLAGS"
1626 CXXFLAGS="$CXXFLAGS -fno-builtin"
1627 ac_ext=c
1628 ac_cpp='$CPP $CPPFLAGS'
1629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1632 if test -n "$ac_tool_prefix"; then
1633 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1634 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1635 echo "$as_me:$LINENO: checking for $ac_word" >&5
1636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1637 if test "${ac_cv_prog_CC+set}" = set; then
1638 echo $ECHO_N "(cached) $ECHO_C" >&6
1639 else
1640 if test -n "$CC"; then
1641 ac_cv_prog_CC="$CC" # Let the user override the test.
1642 else
1643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1644 for as_dir in $PATH
1646 IFS=$as_save_IFS
1647 test -z "$as_dir" && as_dir=.
1648 for ac_exec_ext in '' $ac_executable_extensions; do
1649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1650 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1652 break 2
1654 done
1655 done
1659 CC=$ac_cv_prog_CC
1660 if test -n "$CC"; then
1661 echo "$as_me:$LINENO: result: $CC" >&5
1662 echo "${ECHO_T}$CC" >&6
1663 else
1664 echo "$as_me:$LINENO: result: no" >&5
1665 echo "${ECHO_T}no" >&6
1669 if test -z "$ac_cv_prog_CC"; then
1670 ac_ct_CC=$CC
1671 # Extract the first word of "gcc", so it can be a program name with args.
1672 set dummy gcc; ac_word=$2
1673 echo "$as_me:$LINENO: checking for $ac_word" >&5
1674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1675 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1676 echo $ECHO_N "(cached) $ECHO_C" >&6
1677 else
1678 if test -n "$ac_ct_CC"; then
1679 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1680 else
1681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1682 for as_dir in $PATH
1684 IFS=$as_save_IFS
1685 test -z "$as_dir" && as_dir=.
1686 for ac_exec_ext in '' $ac_executable_extensions; do
1687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1688 ac_cv_prog_ac_ct_CC="gcc"
1689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1690 break 2
1692 done
1693 done
1697 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1698 if test -n "$ac_ct_CC"; then
1699 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1700 echo "${ECHO_T}$ac_ct_CC" >&6
1701 else
1702 echo "$as_me:$LINENO: result: no" >&5
1703 echo "${ECHO_T}no" >&6
1706 CC=$ac_ct_CC
1707 else
1708 CC="$ac_cv_prog_CC"
1711 if test -z "$CC"; then
1712 if test -n "$ac_tool_prefix"; then
1713 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1714 set dummy ${ac_tool_prefix}cc; ac_word=$2
1715 echo "$as_me:$LINENO: checking for $ac_word" >&5
1716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1717 if test "${ac_cv_prog_CC+set}" = set; then
1718 echo $ECHO_N "(cached) $ECHO_C" >&6
1719 else
1720 if test -n "$CC"; then
1721 ac_cv_prog_CC="$CC" # Let the user override the test.
1722 else
1723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1724 for as_dir in $PATH
1726 IFS=$as_save_IFS
1727 test -z "$as_dir" && as_dir=.
1728 for ac_exec_ext in '' $ac_executable_extensions; do
1729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1730 ac_cv_prog_CC="${ac_tool_prefix}cc"
1731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1732 break 2
1734 done
1735 done
1739 CC=$ac_cv_prog_CC
1740 if test -n "$CC"; then
1741 echo "$as_me:$LINENO: result: $CC" >&5
1742 echo "${ECHO_T}$CC" >&6
1743 else
1744 echo "$as_me:$LINENO: result: no" >&5
1745 echo "${ECHO_T}no" >&6
1749 if test -z "$ac_cv_prog_CC"; then
1750 ac_ct_CC=$CC
1751 # Extract the first word of "cc", so it can be a program name with args.
1752 set dummy cc; ac_word=$2
1753 echo "$as_me:$LINENO: checking for $ac_word" >&5
1754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1755 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1756 echo $ECHO_N "(cached) $ECHO_C" >&6
1757 else
1758 if test -n "$ac_ct_CC"; then
1759 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1760 else
1761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1762 for as_dir in $PATH
1764 IFS=$as_save_IFS
1765 test -z "$as_dir" && as_dir=.
1766 for ac_exec_ext in '' $ac_executable_extensions; do
1767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1768 ac_cv_prog_ac_ct_CC="cc"
1769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1770 break 2
1772 done
1773 done
1777 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1778 if test -n "$ac_ct_CC"; then
1779 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1780 echo "${ECHO_T}$ac_ct_CC" >&6
1781 else
1782 echo "$as_me:$LINENO: result: no" >&5
1783 echo "${ECHO_T}no" >&6
1786 CC=$ac_ct_CC
1787 else
1788 CC="$ac_cv_prog_CC"
1792 if test -z "$CC"; then
1793 # Extract the first word of "cc", so it can be a program name with args.
1794 set dummy cc; ac_word=$2
1795 echo "$as_me:$LINENO: checking for $ac_word" >&5
1796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1797 if test "${ac_cv_prog_CC+set}" = set; then
1798 echo $ECHO_N "(cached) $ECHO_C" >&6
1799 else
1800 if test -n "$CC"; then
1801 ac_cv_prog_CC="$CC" # Let the user override the test.
1802 else
1803 ac_prog_rejected=no
1804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1805 for as_dir in $PATH
1807 IFS=$as_save_IFS
1808 test -z "$as_dir" && as_dir=.
1809 for ac_exec_ext in '' $ac_executable_extensions; do
1810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1811 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1812 ac_prog_rejected=yes
1813 continue
1815 ac_cv_prog_CC="cc"
1816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1817 break 2
1819 done
1820 done
1822 if test $ac_prog_rejected = yes; then
1823 # We found a bogon in the path, so make sure we never use it.
1824 set dummy $ac_cv_prog_CC
1825 shift
1826 if test $# != 0; then
1827 # We chose a different compiler from the bogus one.
1828 # However, it has the same basename, so the bogon will be chosen
1829 # first if we set CC to just the basename; use the full file name.
1830 shift
1831 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1836 CC=$ac_cv_prog_CC
1837 if test -n "$CC"; then
1838 echo "$as_me:$LINENO: result: $CC" >&5
1839 echo "${ECHO_T}$CC" >&6
1840 else
1841 echo "$as_me:$LINENO: result: no" >&5
1842 echo "${ECHO_T}no" >&6
1846 if test -z "$CC"; then
1847 if test -n "$ac_tool_prefix"; then
1848 for ac_prog in cl
1850 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1851 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1852 echo "$as_me:$LINENO: checking for $ac_word" >&5
1853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1854 if test "${ac_cv_prog_CC+set}" = set; then
1855 echo $ECHO_N "(cached) $ECHO_C" >&6
1856 else
1857 if test -n "$CC"; then
1858 ac_cv_prog_CC="$CC" # Let the user override the test.
1859 else
1860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1861 for as_dir in $PATH
1863 IFS=$as_save_IFS
1864 test -z "$as_dir" && as_dir=.
1865 for ac_exec_ext in '' $ac_executable_extensions; do
1866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1867 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1869 break 2
1871 done
1872 done
1876 CC=$ac_cv_prog_CC
1877 if test -n "$CC"; then
1878 echo "$as_me:$LINENO: result: $CC" >&5
1879 echo "${ECHO_T}$CC" >&6
1880 else
1881 echo "$as_me:$LINENO: result: no" >&5
1882 echo "${ECHO_T}no" >&6
1885 test -n "$CC" && break
1886 done
1888 if test -z "$CC"; then
1889 ac_ct_CC=$CC
1890 for ac_prog in cl
1892 # Extract the first word of "$ac_prog", so it can be a program name with args.
1893 set dummy $ac_prog; ac_word=$2
1894 echo "$as_me:$LINENO: checking for $ac_word" >&5
1895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1896 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1897 echo $ECHO_N "(cached) $ECHO_C" >&6
1898 else
1899 if test -n "$ac_ct_CC"; then
1900 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1901 else
1902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1903 for as_dir in $PATH
1905 IFS=$as_save_IFS
1906 test -z "$as_dir" && as_dir=.
1907 for ac_exec_ext in '' $ac_executable_extensions; do
1908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1909 ac_cv_prog_ac_ct_CC="$ac_prog"
1910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1911 break 2
1913 done
1914 done
1918 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1919 if test -n "$ac_ct_CC"; then
1920 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1921 echo "${ECHO_T}$ac_ct_CC" >&6
1922 else
1923 echo "$as_me:$LINENO: result: no" >&5
1924 echo "${ECHO_T}no" >&6
1927 test -n "$ac_ct_CC" && break
1928 done
1930 CC=$ac_ct_CC
1936 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1937 See \`config.log' for more details." >&5
1938 echo "$as_me: error: no acceptable C compiler found in \$PATH
1939 See \`config.log' for more details." >&2;}
1940 { (exit 1); exit 1; }; }
1942 # Provide some information about the compiler.
1943 echo "$as_me:$LINENO:" \
1944 "checking for C compiler version" >&5
1945 ac_compiler=`set X $ac_compile; echo $2`
1946 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1947 (eval $ac_compiler --version </dev/null >&5) 2>&5
1948 ac_status=$?
1949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1950 (exit $ac_status); }
1951 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1952 (eval $ac_compiler -v </dev/null >&5) 2>&5
1953 ac_status=$?
1954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1955 (exit $ac_status); }
1956 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1957 (eval $ac_compiler -V </dev/null >&5) 2>&5
1958 ac_status=$?
1959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1960 (exit $ac_status); }
1962 cat >conftest.$ac_ext <<_ACEOF
1963 /* confdefs.h. */
1964 _ACEOF
1965 cat confdefs.h >>conftest.$ac_ext
1966 cat >>conftest.$ac_ext <<_ACEOF
1967 /* end confdefs.h. */
1970 main ()
1974 return 0;
1976 _ACEOF
1977 # FIXME: Cleanup?
1978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1979 (eval $ac_link) 2>&5
1980 ac_status=$?
1981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1982 (exit $ac_status); }; then
1983 gcc_no_link=no
1984 else
1985 gcc_no_link=yes
1988 if test x$gcc_no_link = xyes; then
1989 # Setting cross_compile will disable run tests; it will
1990 # also disable AC_CHECK_FILE but that's generally
1991 # correct if we can't link.
1992 cross_compiling=yes
1993 EXEEXT=
1994 else
1995 cat >conftest.$ac_ext <<_ACEOF
1996 /* confdefs.h. */
1997 _ACEOF
1998 cat confdefs.h >>conftest.$ac_ext
1999 cat >>conftest.$ac_ext <<_ACEOF
2000 /* end confdefs.h. */
2003 main ()
2007 return 0;
2009 _ACEOF
2010 ac_clean_files_save=$ac_clean_files
2011 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2012 # Try to create an executable without -o first, disregard a.out.
2013 # It will help us diagnose broken compilers, and finding out an intuition
2014 # of exeext.
2015 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2016 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2017 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2018 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2019 (eval $ac_link_default) 2>&5
2020 ac_status=$?
2021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2022 (exit $ac_status); }; then
2023 # Find the output, starting from the most likely. This scheme is
2024 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2025 # resort.
2027 # Be careful to initialize this variable, since it used to be cached.
2028 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2029 ac_cv_exeext=
2030 # b.out is created by i960 compilers.
2031 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2033 test -f "$ac_file" || continue
2034 case $ac_file in
2035 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2037 conftest.$ac_ext )
2038 # This is the source file.
2040 [ab].out )
2041 # We found the default executable, but exeext='' is most
2042 # certainly right.
2043 break;;
2044 *.* )
2045 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2046 # FIXME: I believe we export ac_cv_exeext for Libtool,
2047 # but it would be cool to find out if it's true. Does anybody
2048 # maintain Libtool? --akim.
2049 export ac_cv_exeext
2050 break;;
2052 break;;
2053 esac
2054 done
2055 else
2056 echo "$as_me: failed program was:" >&5
2057 sed 's/^/| /' conftest.$ac_ext >&5
2059 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2060 See \`config.log' for more details." >&5
2061 echo "$as_me: error: C compiler cannot create executables
2062 See \`config.log' for more details." >&2;}
2063 { (exit 77); exit 77; }; }
2066 ac_exeext=$ac_cv_exeext
2067 echo "$as_me:$LINENO: result: $ac_file" >&5
2068 echo "${ECHO_T}$ac_file" >&6
2070 # Check the compiler produces executables we can run. If not, either
2071 # the compiler is broken, or we cross compile.
2072 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2073 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2074 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2075 # If not cross compiling, check that we can run a simple program.
2076 if test "$cross_compiling" != yes; then
2077 if { ac_try='./$ac_file'
2078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2079 (eval $ac_try) 2>&5
2080 ac_status=$?
2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082 (exit $ac_status); }; }; then
2083 cross_compiling=no
2084 else
2085 if test "$cross_compiling" = maybe; then
2086 cross_compiling=yes
2087 else
2088 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2089 If you meant to cross compile, use \`--host'.
2090 See \`config.log' for more details." >&5
2091 echo "$as_me: error: cannot run C compiled programs.
2092 If you meant to cross compile, use \`--host'.
2093 See \`config.log' for more details." >&2;}
2094 { (exit 1); exit 1; }; }
2098 echo "$as_me:$LINENO: result: yes" >&5
2099 echo "${ECHO_T}yes" >&6
2101 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2102 ac_clean_files=$ac_clean_files_save
2103 # Check the compiler produces executables we can run. If not, either
2104 # the compiler is broken, or we cross compile.
2105 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2106 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2107 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2108 echo "${ECHO_T}$cross_compiling" >&6
2110 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2111 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2113 (eval $ac_link) 2>&5
2114 ac_status=$?
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); }; then
2117 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2118 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2119 # work properly (i.e., refer to `conftest.exe'), while it won't with
2120 # `rm'.
2121 for ac_file in conftest.exe conftest conftest.*; do
2122 test -f "$ac_file" || continue
2123 case $ac_file in
2124 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2125 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2126 export ac_cv_exeext
2127 break;;
2128 * ) break;;
2129 esac
2130 done
2131 else
2132 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2133 See \`config.log' for more details." >&5
2134 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2135 See \`config.log' for more details." >&2;}
2136 { (exit 1); exit 1; }; }
2139 rm -f conftest$ac_cv_exeext
2140 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2141 echo "${ECHO_T}$ac_cv_exeext" >&6
2143 rm -f conftest.$ac_ext
2144 EXEEXT=$ac_cv_exeext
2145 ac_exeext=$EXEEXT
2147 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2148 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2149 if test "${ac_cv_objext+set}" = set; then
2150 echo $ECHO_N "(cached) $ECHO_C" >&6
2151 else
2152 cat >conftest.$ac_ext <<_ACEOF
2153 /* confdefs.h. */
2154 _ACEOF
2155 cat confdefs.h >>conftest.$ac_ext
2156 cat >>conftest.$ac_ext <<_ACEOF
2157 /* end confdefs.h. */
2160 main ()
2164 return 0;
2166 _ACEOF
2167 rm -f conftest.o conftest.obj
2168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2169 (eval $ac_compile) 2>&5
2170 ac_status=$?
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); }; then
2173 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2174 case $ac_file in
2175 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2176 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2177 break;;
2178 esac
2179 done
2180 else
2181 echo "$as_me: failed program was:" >&5
2182 sed 's/^/| /' conftest.$ac_ext >&5
2184 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2185 See \`config.log' for more details." >&5
2186 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2187 See \`config.log' for more details." >&2;}
2188 { (exit 1); exit 1; }; }
2191 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2193 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2194 echo "${ECHO_T}$ac_cv_objext" >&6
2195 OBJEXT=$ac_cv_objext
2196 ac_objext=$OBJEXT
2197 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2198 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2199 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2200 echo $ECHO_N "(cached) $ECHO_C" >&6
2201 else
2202 cat >conftest.$ac_ext <<_ACEOF
2203 /* confdefs.h. */
2204 _ACEOF
2205 cat confdefs.h >>conftest.$ac_ext
2206 cat >>conftest.$ac_ext <<_ACEOF
2207 /* end confdefs.h. */
2210 main ()
2212 #ifndef __GNUC__
2213 choke me
2214 #endif
2217 return 0;
2219 _ACEOF
2220 rm -f conftest.$ac_objext
2221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2222 (eval $ac_compile) 2>conftest.er1
2223 ac_status=$?
2224 grep -v '^ *+' conftest.er1 >conftest.err
2225 rm -f conftest.er1
2226 cat conftest.err >&5
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); } &&
2229 { ac_try='test -z "$ac_c_werror_flag"
2230 || test ! -s conftest.err'
2231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232 (eval $ac_try) 2>&5
2233 ac_status=$?
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; } &&
2236 { ac_try='test -s conftest.$ac_objext'
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238 (eval $ac_try) 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; }; then
2242 ac_compiler_gnu=yes
2243 else
2244 echo "$as_me: failed program was:" >&5
2245 sed 's/^/| /' conftest.$ac_ext >&5
2247 ac_compiler_gnu=no
2249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2250 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2253 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2254 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2255 GCC=`test $ac_compiler_gnu = yes && echo yes`
2256 ac_test_CFLAGS=${CFLAGS+set}
2257 ac_save_CFLAGS=$CFLAGS
2258 CFLAGS="-g"
2259 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2260 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2261 if test "${ac_cv_prog_cc_g+set}" = set; then
2262 echo $ECHO_N "(cached) $ECHO_C" >&6
2263 else
2264 cat >conftest.$ac_ext <<_ACEOF
2265 /* confdefs.h. */
2266 _ACEOF
2267 cat confdefs.h >>conftest.$ac_ext
2268 cat >>conftest.$ac_ext <<_ACEOF
2269 /* end confdefs.h. */
2272 main ()
2276 return 0;
2278 _ACEOF
2279 rm -f conftest.$ac_objext
2280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2281 (eval $ac_compile) 2>conftest.er1
2282 ac_status=$?
2283 grep -v '^ *+' conftest.er1 >conftest.err
2284 rm -f conftest.er1
2285 cat conftest.err >&5
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); } &&
2288 { ac_try='test -z "$ac_c_werror_flag"
2289 || test ! -s conftest.err'
2290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2291 (eval $ac_try) 2>&5
2292 ac_status=$?
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); }; } &&
2295 { ac_try='test -s conftest.$ac_objext'
2296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2297 (eval $ac_try) 2>&5
2298 ac_status=$?
2299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300 (exit $ac_status); }; }; then
2301 ac_cv_prog_cc_g=yes
2302 else
2303 echo "$as_me: failed program was:" >&5
2304 sed 's/^/| /' conftest.$ac_ext >&5
2306 ac_cv_prog_cc_g=no
2308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2310 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2311 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2312 if test "$ac_test_CFLAGS" = set; then
2313 CFLAGS=$ac_save_CFLAGS
2314 elif test $ac_cv_prog_cc_g = yes; then
2315 if test "$GCC" = yes; then
2316 CFLAGS="-g -O2"
2317 else
2318 CFLAGS="-g"
2320 else
2321 if test "$GCC" = yes; then
2322 CFLAGS="-O2"
2323 else
2324 CFLAGS=
2327 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2328 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2329 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2331 else
2332 ac_cv_prog_cc_stdc=no
2333 ac_save_CC=$CC
2334 cat >conftest.$ac_ext <<_ACEOF
2335 /* confdefs.h. */
2336 _ACEOF
2337 cat confdefs.h >>conftest.$ac_ext
2338 cat >>conftest.$ac_ext <<_ACEOF
2339 /* end confdefs.h. */
2340 #include <stdarg.h>
2341 #include <stdio.h>
2342 #include <sys/types.h>
2343 #include <sys/stat.h>
2344 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2345 struct buf { int x; };
2346 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2347 static char *e (p, i)
2348 char **p;
2349 int i;
2351 return p[i];
2353 static char *f (char * (*g) (char **, int), char **p, ...)
2355 char *s;
2356 va_list v;
2357 va_start (v,p);
2358 s = g (p, va_arg (v,int));
2359 va_end (v);
2360 return s;
2363 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2364 function prototypes and stuff, but not '\xHH' hex character constants.
2365 These don't provoke an error unfortunately, instead are silently treated
2366 as 'x'. The following induces an error, until -std1 is added to get
2367 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2368 array size at least. It's necessary to write '\x00'==0 to get something
2369 that's true only with -std1. */
2370 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2372 int test (int i, double x);
2373 struct s1 {int (*f) (int a);};
2374 struct s2 {int (*f) (double a);};
2375 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2376 int argc;
2377 char **argv;
2379 main ()
2381 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2383 return 0;
2385 _ACEOF
2386 # Don't try gcc -ansi; that turns off useful extensions and
2387 # breaks some systems' header files.
2388 # AIX -qlanglvl=ansi
2389 # Ultrix and OSF/1 -std1
2390 # HP-UX 10.20 and later -Ae
2391 # HP-UX older versions -Aa -D_HPUX_SOURCE
2392 # SVR4 -Xc -D__EXTENSIONS__
2393 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2395 CC="$ac_save_CC $ac_arg"
2396 rm -f conftest.$ac_objext
2397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2398 (eval $ac_compile) 2>conftest.er1
2399 ac_status=$?
2400 grep -v '^ *+' conftest.er1 >conftest.err
2401 rm -f conftest.er1
2402 cat conftest.err >&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); } &&
2405 { ac_try='test -z "$ac_c_werror_flag"
2406 || test ! -s conftest.err'
2407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408 (eval $ac_try) 2>&5
2409 ac_status=$?
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; } &&
2412 { ac_try='test -s conftest.$ac_objext'
2413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414 (eval $ac_try) 2>&5
2415 ac_status=$?
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; }; then
2418 ac_cv_prog_cc_stdc=$ac_arg
2419 break
2420 else
2421 echo "$as_me: failed program was:" >&5
2422 sed 's/^/| /' conftest.$ac_ext >&5
2425 rm -f conftest.err conftest.$ac_objext
2426 done
2427 rm -f conftest.$ac_ext conftest.$ac_objext
2428 CC=$ac_save_CC
2432 case "x$ac_cv_prog_cc_stdc" in
2433 x|xno)
2434 echo "$as_me:$LINENO: result: none needed" >&5
2435 echo "${ECHO_T}none needed" >&6 ;;
2437 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2438 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2439 CC="$CC $ac_cv_prog_cc_stdc" ;;
2440 esac
2442 # Some people use a C++ compiler to compile C. Since we use `exit',
2443 # in C++ we need to declare it. In case someone uses the same compiler
2444 # for both compiling C and C++ we need to have the C++ compiler decide
2445 # the declaration of exit, since it's the most demanding environment.
2446 cat >conftest.$ac_ext <<_ACEOF
2447 #ifndef __cplusplus
2448 choke me
2449 #endif
2450 _ACEOF
2451 rm -f conftest.$ac_objext
2452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2453 (eval $ac_compile) 2>conftest.er1
2454 ac_status=$?
2455 grep -v '^ *+' conftest.er1 >conftest.err
2456 rm -f conftest.er1
2457 cat conftest.err >&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); } &&
2460 { ac_try='test -z "$ac_c_werror_flag"
2461 || test ! -s conftest.err'
2462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463 (eval $ac_try) 2>&5
2464 ac_status=$?
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; } &&
2467 { ac_try='test -s conftest.$ac_objext'
2468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2469 (eval $ac_try) 2>&5
2470 ac_status=$?
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }; }; then
2473 for ac_declaration in \
2474 '' \
2475 'extern "C" void std::exit (int) throw (); using std::exit;' \
2476 'extern "C" void std::exit (int); using std::exit;' \
2477 'extern "C" void exit (int) throw ();' \
2478 'extern "C" void exit (int);' \
2479 'void exit (int);'
2481 cat >conftest.$ac_ext <<_ACEOF
2482 /* confdefs.h. */
2483 _ACEOF
2484 cat confdefs.h >>conftest.$ac_ext
2485 cat >>conftest.$ac_ext <<_ACEOF
2486 /* end confdefs.h. */
2487 $ac_declaration
2488 #include <stdlib.h>
2490 main ()
2492 exit (42);
2494 return 0;
2496 _ACEOF
2497 rm -f conftest.$ac_objext
2498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2499 (eval $ac_compile) 2>conftest.er1
2500 ac_status=$?
2501 grep -v '^ *+' conftest.er1 >conftest.err
2502 rm -f conftest.er1
2503 cat conftest.err >&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); } &&
2506 { ac_try='test -z "$ac_c_werror_flag"
2507 || test ! -s conftest.err'
2508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509 (eval $ac_try) 2>&5
2510 ac_status=$?
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; } &&
2513 { ac_try='test -s conftest.$ac_objext'
2514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515 (eval $ac_try) 2>&5
2516 ac_status=$?
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; }; then
2520 else
2521 echo "$as_me: failed program was:" >&5
2522 sed 's/^/| /' conftest.$ac_ext >&5
2524 continue
2526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2527 cat >conftest.$ac_ext <<_ACEOF
2528 /* confdefs.h. */
2529 _ACEOF
2530 cat confdefs.h >>conftest.$ac_ext
2531 cat >>conftest.$ac_ext <<_ACEOF
2532 /* end confdefs.h. */
2533 $ac_declaration
2535 main ()
2537 exit (42);
2539 return 0;
2541 _ACEOF
2542 rm -f conftest.$ac_objext
2543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2544 (eval $ac_compile) 2>conftest.er1
2545 ac_status=$?
2546 grep -v '^ *+' conftest.er1 >conftest.err
2547 rm -f conftest.er1
2548 cat conftest.err >&5
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); } &&
2551 { ac_try='test -z "$ac_c_werror_flag"
2552 || test ! -s conftest.err'
2553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554 (eval $ac_try) 2>&5
2555 ac_status=$?
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); }; } &&
2558 { ac_try='test -s conftest.$ac_objext'
2559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560 (eval $ac_try) 2>&5
2561 ac_status=$?
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }; }; then
2564 break
2565 else
2566 echo "$as_me: failed program was:" >&5
2567 sed 's/^/| /' conftest.$ac_ext >&5
2570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2571 done
2572 rm -f conftest*
2573 if test -n "$ac_declaration"; then
2574 echo '#ifdef __cplusplus' >>confdefs.h
2575 echo $ac_declaration >>confdefs.h
2576 echo '#endif' >>confdefs.h
2579 else
2580 echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.$ac_ext >&5
2584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2585 ac_ext=c
2586 ac_cpp='$CPP $CPPFLAGS'
2587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2591 ac_ext=cc
2592 ac_cpp='$CXXCPP $CPPFLAGS'
2593 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2594 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2595 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2596 if test -n "$ac_tool_prefix"; then
2597 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2599 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2600 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2601 echo "$as_me:$LINENO: checking for $ac_word" >&5
2602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2603 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2604 echo $ECHO_N "(cached) $ECHO_C" >&6
2605 else
2606 if test -n "$CXX"; then
2607 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2608 else
2609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610 for as_dir in $PATH
2612 IFS=$as_save_IFS
2613 test -z "$as_dir" && as_dir=.
2614 for ac_exec_ext in '' $ac_executable_extensions; do
2615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2616 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2618 break 2
2620 done
2621 done
2625 CXX=$glibcxx_cv_prog_CXX
2626 if test -n "$CXX"; then
2627 echo "$as_me:$LINENO: result: $CXX" >&5
2628 echo "${ECHO_T}$CXX" >&6
2629 else
2630 echo "$as_me:$LINENO: result: no" >&5
2631 echo "${ECHO_T}no" >&6
2634 test -n "$CXX" && break
2635 done
2637 if test -z "$CXX"; then
2638 ac_ct_CXX=$CXX
2639 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2641 # Extract the first word of "$ac_prog", so it can be a program name with args.
2642 set dummy $ac_prog; ac_word=$2
2643 echo "$as_me:$LINENO: checking for $ac_word" >&5
2644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2645 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2646 echo $ECHO_N "(cached) $ECHO_C" >&6
2647 else
2648 if test -n "$ac_ct_CXX"; then
2649 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2650 else
2651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652 for as_dir in $PATH
2654 IFS=$as_save_IFS
2655 test -z "$as_dir" && as_dir=.
2656 for ac_exec_ext in '' $ac_executable_extensions; do
2657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2658 ac_cv_prog_ac_ct_CXX="$ac_prog"
2659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2660 break 2
2662 done
2663 done
2667 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2668 if test -n "$ac_ct_CXX"; then
2669 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2670 echo "${ECHO_T}$ac_ct_CXX" >&6
2671 else
2672 echo "$as_me:$LINENO: result: no" >&5
2673 echo "${ECHO_T}no" >&6
2676 test -n "$ac_ct_CXX" && break
2677 done
2678 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2680 CXX=$ac_ct_CXX
2684 # Provide some information about the compiler.
2685 echo "$as_me:$LINENO:" \
2686 "checking for C++ compiler version" >&5
2687 ac_compiler=`set X $ac_compile; echo $2`
2688 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2689 (eval $ac_compiler --version </dev/null >&5) 2>&5
2690 ac_status=$?
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); }
2693 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2694 (eval $ac_compiler -v </dev/null >&5) 2>&5
2695 ac_status=$?
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }
2698 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2699 (eval $ac_compiler -V </dev/null >&5) 2>&5
2700 ac_status=$?
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); }
2704 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2705 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2706 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2707 echo $ECHO_N "(cached) $ECHO_C" >&6
2708 else
2709 cat >conftest.$ac_ext <<_ACEOF
2710 /* confdefs.h. */
2711 _ACEOF
2712 cat confdefs.h >>conftest.$ac_ext
2713 cat >>conftest.$ac_ext <<_ACEOF
2714 /* end confdefs.h. */
2717 main ()
2719 #ifndef __GNUC__
2720 choke me
2721 #endif
2724 return 0;
2726 _ACEOF
2727 rm -f conftest.$ac_objext
2728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2729 (eval $ac_compile) 2>conftest.er1
2730 ac_status=$?
2731 grep -v '^ *+' conftest.er1 >conftest.err
2732 rm -f conftest.er1
2733 cat conftest.err >&5
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); } &&
2736 { ac_try='test -z "$ac_cxx_werror_flag"
2737 || test ! -s conftest.err'
2738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739 (eval $ac_try) 2>&5
2740 ac_status=$?
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); }; } &&
2743 { ac_try='test -s conftest.$ac_objext'
2744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745 (eval $ac_try) 2>&5
2746 ac_status=$?
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }; }; then
2749 ac_compiler_gnu=yes
2750 else
2751 echo "$as_me: failed program was:" >&5
2752 sed 's/^/| /' conftest.$ac_ext >&5
2754 ac_compiler_gnu=no
2756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2757 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2760 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2761 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2762 GXX=`test $ac_compiler_gnu = yes && echo yes`
2763 ac_test_CXXFLAGS=${CXXFLAGS+set}
2764 ac_save_CXXFLAGS=$CXXFLAGS
2765 CXXFLAGS="-g"
2766 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2767 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2768 if test "${ac_cv_prog_cxx_g+set}" = set; then
2769 echo $ECHO_N "(cached) $ECHO_C" >&6
2770 else
2771 cat >conftest.$ac_ext <<_ACEOF
2772 /* confdefs.h. */
2773 _ACEOF
2774 cat confdefs.h >>conftest.$ac_ext
2775 cat >>conftest.$ac_ext <<_ACEOF
2776 /* end confdefs.h. */
2779 main ()
2783 return 0;
2785 _ACEOF
2786 rm -f conftest.$ac_objext
2787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2788 (eval $ac_compile) 2>conftest.er1
2789 ac_status=$?
2790 grep -v '^ *+' conftest.er1 >conftest.err
2791 rm -f conftest.er1
2792 cat conftest.err >&5
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); } &&
2795 { ac_try='test -z "$ac_cxx_werror_flag"
2796 || test ! -s conftest.err'
2797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798 (eval $ac_try) 2>&5
2799 ac_status=$?
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); }; } &&
2802 { ac_try='test -s conftest.$ac_objext'
2803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2804 (eval $ac_try) 2>&5
2805 ac_status=$?
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); }; }; then
2808 ac_cv_prog_cxx_g=yes
2809 else
2810 echo "$as_me: failed program was:" >&5
2811 sed 's/^/| /' conftest.$ac_ext >&5
2813 ac_cv_prog_cxx_g=no
2815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2817 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2818 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2819 if test "$ac_test_CXXFLAGS" = set; then
2820 CXXFLAGS=$ac_save_CXXFLAGS
2821 elif test $ac_cv_prog_cxx_g = yes; then
2822 if test "$GXX" = yes; then
2823 CXXFLAGS="-g -O2"
2824 else
2825 CXXFLAGS="-g"
2827 else
2828 if test "$GXX" = yes; then
2829 CXXFLAGS="-O2"
2830 else
2831 CXXFLAGS=
2834 for ac_declaration in \
2835 '' \
2836 'extern "C" void std::exit (int) throw (); using std::exit;' \
2837 'extern "C" void std::exit (int); using std::exit;' \
2838 'extern "C" void exit (int) throw ();' \
2839 'extern "C" void exit (int);' \
2840 'void exit (int);'
2842 cat >conftest.$ac_ext <<_ACEOF
2843 /* confdefs.h. */
2844 _ACEOF
2845 cat confdefs.h >>conftest.$ac_ext
2846 cat >>conftest.$ac_ext <<_ACEOF
2847 /* end confdefs.h. */
2848 $ac_declaration
2849 #include <stdlib.h>
2851 main ()
2853 exit (42);
2855 return 0;
2857 _ACEOF
2858 rm -f conftest.$ac_objext
2859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2860 (eval $ac_compile) 2>conftest.er1
2861 ac_status=$?
2862 grep -v '^ *+' conftest.er1 >conftest.err
2863 rm -f conftest.er1
2864 cat conftest.err >&5
2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); } &&
2867 { ac_try='test -z "$ac_cxx_werror_flag"
2868 || test ! -s conftest.err'
2869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870 (eval $ac_try) 2>&5
2871 ac_status=$?
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }; } &&
2874 { ac_try='test -s conftest.$ac_objext'
2875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2876 (eval $ac_try) 2>&5
2877 ac_status=$?
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); }; }; then
2881 else
2882 echo "$as_me: failed program was:" >&5
2883 sed 's/^/| /' conftest.$ac_ext >&5
2885 continue
2887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2888 cat >conftest.$ac_ext <<_ACEOF
2889 /* confdefs.h. */
2890 _ACEOF
2891 cat confdefs.h >>conftest.$ac_ext
2892 cat >>conftest.$ac_ext <<_ACEOF
2893 /* end confdefs.h. */
2894 $ac_declaration
2896 main ()
2898 exit (42);
2900 return 0;
2902 _ACEOF
2903 rm -f conftest.$ac_objext
2904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2905 (eval $ac_compile) 2>conftest.er1
2906 ac_status=$?
2907 grep -v '^ *+' conftest.er1 >conftest.err
2908 rm -f conftest.er1
2909 cat conftest.err >&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); } &&
2912 { ac_try='test -z "$ac_cxx_werror_flag"
2913 || test ! -s conftest.err'
2914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2915 (eval $ac_try) 2>&5
2916 ac_status=$?
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); }; } &&
2919 { ac_try='test -s conftest.$ac_objext'
2920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921 (eval $ac_try) 2>&5
2922 ac_status=$?
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }; }; then
2925 break
2926 else
2927 echo "$as_me: failed program was:" >&5
2928 sed 's/^/| /' conftest.$ac_ext >&5
2931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2932 done
2933 rm -f conftest*
2934 if test -n "$ac_declaration"; then
2935 echo '#ifdef __cplusplus' >>confdefs.h
2936 echo $ac_declaration >>confdefs.h
2937 echo '#endif' >>confdefs.h
2940 ac_ext=c
2941 ac_cpp='$CPP $CPPFLAGS'
2942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2946 CXXFLAGS="$save_CXXFLAGS"
2952 am__api_version="1.9"
2953 # Find a good install program. We prefer a C program (faster),
2954 # so one script is as good as another. But avoid the broken or
2955 # incompatible versions:
2956 # SysV /etc/install, /usr/sbin/install
2957 # SunOS /usr/etc/install
2958 # IRIX /sbin/install
2959 # AIX /bin/install
2960 # AmigaOS /C/install, which installs bootblocks on floppy discs
2961 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2962 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2963 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2964 # OS/2's system install, which has a completely different semantic
2965 # ./install, which can be erroneously created by make from ./install.sh.
2966 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2967 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2968 if test -z "$INSTALL"; then
2969 if test "${ac_cv_path_install+set}" = set; then
2970 echo $ECHO_N "(cached) $ECHO_C" >&6
2971 else
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 for as_dir in $PATH
2975 IFS=$as_save_IFS
2976 test -z "$as_dir" && as_dir=.
2977 # Account for people who put trailing slashes in PATH elements.
2978 case $as_dir/ in
2979 ./ | .// | /cC/* | \
2980 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2981 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2982 /usr/ucb/* ) ;;
2984 # OSF1 and SCO ODT 3.0 have their own names for install.
2985 # Don't use installbsd from OSF since it installs stuff as root
2986 # by default.
2987 for ac_prog in ginstall scoinst install; do
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2990 if test $ac_prog = install &&
2991 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2992 # AIX install. It has an incompatible calling convention.
2994 elif test $ac_prog = install &&
2995 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2996 # program-specific install script used by HP pwplus--don't use.
2998 else
2999 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3000 break 3
3003 done
3004 done
3006 esac
3007 done
3011 if test "${ac_cv_path_install+set}" = set; then
3012 INSTALL=$ac_cv_path_install
3013 else
3014 # As a last resort, use the slow shell script. We don't cache a
3015 # path for INSTALL within a source directory, because that will
3016 # break other packages using the cache if that directory is
3017 # removed, or if the path is relative.
3018 INSTALL=$ac_install_sh
3021 echo "$as_me:$LINENO: result: $INSTALL" >&5
3022 echo "${ECHO_T}$INSTALL" >&6
3024 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3025 # It thinks the first close brace ends the variable substitution.
3026 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3028 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3030 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3032 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3033 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3034 # Just in case
3035 sleep 1
3036 echo timestamp > conftest.file
3037 # Do `set' in a subshell so we don't clobber the current shell's
3038 # arguments. Must try -L first in case configure is actually a
3039 # symlink; some systems play weird games with the mod time of symlinks
3040 # (eg FreeBSD returns the mod time of the symlink's containing
3041 # directory).
3042 if (
3043 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3044 if test "$*" = "X"; then
3045 # -L didn't work.
3046 set X `ls -t $srcdir/configure conftest.file`
3048 rm -f conftest.file
3049 if test "$*" != "X $srcdir/configure conftest.file" \
3050 && test "$*" != "X conftest.file $srcdir/configure"; then
3052 # If neither matched, then we have a broken ls. This can happen
3053 # if, for instance, CONFIG_SHELL is bash and it inherits a
3054 # broken ls alias from the environment. This has actually
3055 # happened. Such a system could not be considered "sane".
3056 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3057 alias in your environment" >&5
3058 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3059 alias in your environment" >&2;}
3060 { (exit 1); exit 1; }; }
3063 test "$2" = conftest.file
3065 then
3066 # Ok.
3068 else
3069 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3070 Check your system clock" >&5
3071 echo "$as_me: error: newly created file is older than distributed files!
3072 Check your system clock" >&2;}
3073 { (exit 1); exit 1; }; }
3075 echo "$as_me:$LINENO: result: yes" >&5
3076 echo "${ECHO_T}yes" >&6
3077 test "$program_prefix" != NONE &&
3078 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3079 # Use a double $ so make ignores it.
3080 test "$program_suffix" != NONE &&
3081 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3082 # Double any \ or $. echo might interpret backslashes.
3083 # By default was `s,x,x', remove it if useless.
3084 cat <<\_ACEOF >conftest.sed
3085 s/[\\$]/&&/g;s/;s,x,x,$//
3086 _ACEOF
3087 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3088 rm conftest.sed
3090 # expand $ac_aux_dir to an absolute path
3091 am_aux_dir=`cd $ac_aux_dir && pwd`
3093 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3094 # Use eval to expand $SHELL
3095 if eval "$MISSING --run true"; then
3096 am_missing_run="$MISSING --run "
3097 else
3098 am_missing_run=
3099 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3100 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3103 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3104 # We used to keeping the `.' as first argument, in order to
3105 # allow $(mkdir_p) to be used without argument. As in
3106 # $(mkdir_p) $(somedir)
3107 # where $(somedir) is conditionally defined. However this is wrong
3108 # for two reasons:
3109 # 1. if the package is installed by a user who cannot write `.'
3110 # make install will fail,
3111 # 2. the above comment should most certainly read
3112 # $(mkdir_p) $(DESTDIR)$(somedir)
3113 # so it does not work when $(somedir) is undefined and
3114 # $(DESTDIR) is not.
3115 # To support the latter case, we have to write
3116 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3117 # so the `.' trick is pointless.
3118 mkdir_p='mkdir -p --'
3119 else
3120 # On NextStep and OpenStep, the `mkdir' command does not
3121 # recognize any option. It will interpret all options as
3122 # directories to create, and then abort because `.' already
3123 # exists.
3124 for d in ./-p ./--version;
3126 test -d $d && rmdir $d
3127 done
3128 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3129 if test -f "$ac_aux_dir/mkinstalldirs"; then
3130 mkdir_p='$(mkinstalldirs)'
3131 else
3132 mkdir_p='$(install_sh) -d'
3136 for ac_prog in gawk mawk nawk awk
3138 # Extract the first word of "$ac_prog", so it can be a program name with args.
3139 set dummy $ac_prog; ac_word=$2
3140 echo "$as_me:$LINENO: checking for $ac_word" >&5
3141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3142 if test "${ac_cv_prog_AWK+set}" = set; then
3143 echo $ECHO_N "(cached) $ECHO_C" >&6
3144 else
3145 if test -n "$AWK"; then
3146 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3147 else
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 for as_dir in $PATH
3151 IFS=$as_save_IFS
3152 test -z "$as_dir" && as_dir=.
3153 for ac_exec_ext in '' $ac_executable_extensions; do
3154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3155 ac_cv_prog_AWK="$ac_prog"
3156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3157 break 2
3159 done
3160 done
3164 AWK=$ac_cv_prog_AWK
3165 if test -n "$AWK"; then
3166 echo "$as_me:$LINENO: result: $AWK" >&5
3167 echo "${ECHO_T}$AWK" >&6
3168 else
3169 echo "$as_me:$LINENO: result: no" >&5
3170 echo "${ECHO_T}no" >&6
3173 test -n "$AWK" && break
3174 done
3176 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3177 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3178 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3179 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3180 echo $ECHO_N "(cached) $ECHO_C" >&6
3181 else
3182 cat >conftest.make <<\_ACEOF
3183 all:
3184 @echo 'ac_maketemp="$(MAKE)"'
3185 _ACEOF
3186 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3187 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3188 if test -n "$ac_maketemp"; then
3189 eval ac_cv_prog_make_${ac_make}_set=yes
3190 else
3191 eval ac_cv_prog_make_${ac_make}_set=no
3193 rm -f conftest.make
3195 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3196 echo "$as_me:$LINENO: result: yes" >&5
3197 echo "${ECHO_T}yes" >&6
3198 SET_MAKE=
3199 else
3200 echo "$as_me:$LINENO: result: no" >&5
3201 echo "${ECHO_T}no" >&6
3202 SET_MAKE="MAKE=${MAKE-make}"
3205 rm -rf .tst 2>/dev/null
3206 mkdir .tst 2>/dev/null
3207 if test -d .tst; then
3208 am__leading_dot=.
3209 else
3210 am__leading_dot=_
3212 rmdir .tst 2>/dev/null
3214 DEPDIR="${am__leading_dot}deps"
3216 ac_config_commands="$ac_config_commands depfiles"
3219 am_make=${MAKE-make}
3220 cat > confinc << 'END'
3221 am__doit:
3222 @echo done
3223 .PHONY: am__doit
3225 # If we don't find an include directive, just comment out the code.
3226 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3227 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3228 am__include="#"
3229 am__quote=
3230 _am_result=none
3231 # First try GNU make style include.
3232 echo "include confinc" > confmf
3233 # We grep out `Entering directory' and `Leaving directory'
3234 # messages which can occur if `w' ends up in MAKEFLAGS.
3235 # In particular we don't look at `^make:' because GNU make might
3236 # be invoked under some other name (usually "gmake"), in which
3237 # case it prints its new name instead of `make'.
3238 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3239 am__include=include
3240 am__quote=
3241 _am_result=GNU
3243 # Now try BSD make style include.
3244 if test "$am__include" = "#"; then
3245 echo '.include "confinc"' > confmf
3246 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3247 am__include=.include
3248 am__quote="\""
3249 _am_result=BSD
3254 echo "$as_me:$LINENO: result: $_am_result" >&5
3255 echo "${ECHO_T}$_am_result" >&6
3256 rm -f confinc confmf
3258 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3259 if test "${enable_dependency_tracking+set}" = set; then
3260 enableval="$enable_dependency_tracking"
3263 if test "x$enable_dependency_tracking" != xno; then
3264 am_depcomp="$ac_aux_dir/depcomp"
3265 AMDEPBACKSLASH='\'
3269 if test "x$enable_dependency_tracking" != xno; then
3270 AMDEP_TRUE=
3271 AMDEP_FALSE='#'
3272 else
3273 AMDEP_TRUE='#'
3274 AMDEP_FALSE=
3279 # test to see if srcdir already configured
3280 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3281 test -f $srcdir/config.status; then
3282 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3283 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3284 { (exit 1); exit 1; }; }
3287 # test whether we have cygpath
3288 if test -z "$CYGPATH_W"; then
3289 if (cygpath --version) >/dev/null 2>/dev/null; then
3290 CYGPATH_W='cygpath -w'
3291 else
3292 CYGPATH_W=echo
3297 # Define the identity of the package.
3298 PACKAGE='libjava'
3299 VERSION='version-unused'
3302 cat >>confdefs.h <<_ACEOF
3303 #define PACKAGE "$PACKAGE"
3304 _ACEOF
3307 cat >>confdefs.h <<_ACEOF
3308 #define VERSION "$VERSION"
3309 _ACEOF
3311 # Some tools Automake needs.
3313 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3316 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3319 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3322 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3325 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3327 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3329 # Installed binaries are usually stripped using `strip' when the user
3330 # run `make install-strip'. However `strip' might not be the right
3331 # tool to use in cross-compilation environments, therefore Automake
3332 # will honor the `STRIP' environment variable to overrule this program.
3333 if test "$cross_compiling" != no; then
3334 if test -n "$ac_tool_prefix"; then
3335 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3336 set dummy ${ac_tool_prefix}strip; ac_word=$2
3337 echo "$as_me:$LINENO: checking for $ac_word" >&5
3338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3339 if test "${ac_cv_prog_STRIP+set}" = set; then
3340 echo $ECHO_N "(cached) $ECHO_C" >&6
3341 else
3342 if test -n "$STRIP"; then
3343 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3344 else
3345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346 for as_dir in $PATH
3348 IFS=$as_save_IFS
3349 test -z "$as_dir" && as_dir=.
3350 for ac_exec_ext in '' $ac_executable_extensions; do
3351 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3352 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3354 break 2
3356 done
3357 done
3361 STRIP=$ac_cv_prog_STRIP
3362 if test -n "$STRIP"; then
3363 echo "$as_me:$LINENO: result: $STRIP" >&5
3364 echo "${ECHO_T}$STRIP" >&6
3365 else
3366 echo "$as_me:$LINENO: result: no" >&5
3367 echo "${ECHO_T}no" >&6
3371 if test -z "$ac_cv_prog_STRIP"; then
3372 ac_ct_STRIP=$STRIP
3373 # Extract the first word of "strip", so it can be a program name with args.
3374 set dummy strip; ac_word=$2
3375 echo "$as_me:$LINENO: checking for $ac_word" >&5
3376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3377 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3379 else
3380 if test -n "$ac_ct_STRIP"; then
3381 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3382 else
3383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384 for as_dir in $PATH
3386 IFS=$as_save_IFS
3387 test -z "$as_dir" && as_dir=.
3388 for ac_exec_ext in '' $ac_executable_extensions; do
3389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3390 ac_cv_prog_ac_ct_STRIP="strip"
3391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3392 break 2
3394 done
3395 done
3397 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3400 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3401 if test -n "$ac_ct_STRIP"; then
3402 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3403 echo "${ECHO_T}$ac_ct_STRIP" >&6
3404 else
3405 echo "$as_me:$LINENO: result: no" >&5
3406 echo "${ECHO_T}no" >&6
3409 STRIP=$ac_ct_STRIP
3410 else
3411 STRIP="$ac_cv_prog_STRIP"
3415 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3417 # We need awk for the "check" target. The system "awk" is bad on
3418 # some platforms.
3419 # Always define AMTAR for backward compatibility.
3421 AMTAR=${AMTAR-"${am_missing_run}tar"}
3423 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3428 depcc="$CC" am_compiler_list=
3430 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3431 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3432 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3433 echo $ECHO_N "(cached) $ECHO_C" >&6
3434 else
3435 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3436 # We make a subdir and do the tests there. Otherwise we can end up
3437 # making bogus files that we don't know about and never remove. For
3438 # instance it was reported that on HP-UX the gcc test will end up
3439 # making a dummy file named `D' -- because `-MD' means `put the output
3440 # in D'.
3441 mkdir conftest.dir
3442 # Copy depcomp to subdir because otherwise we won't find it if we're
3443 # using a relative directory.
3444 cp "$am_depcomp" conftest.dir
3445 cd conftest.dir
3446 # We will build objects and dependencies in a subdirectory because
3447 # it helps to detect inapplicable dependency modes. For instance
3448 # both Tru64's cc and ICC support -MD to output dependencies as a
3449 # side effect of compilation, but ICC will put the dependencies in
3450 # the current directory while Tru64 will put them in the object
3451 # directory.
3452 mkdir sub
3454 am_cv_CC_dependencies_compiler_type=none
3455 if test "$am_compiler_list" = ""; then
3456 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3458 for depmode in $am_compiler_list; do
3459 # Setup a source with many dependencies, because some compilers
3460 # like to wrap large dependency lists on column 80 (with \), and
3461 # we should not choose a depcomp mode which is confused by this.
3463 # We need to recreate these files for each test, as the compiler may
3464 # overwrite some of them when testing with obscure command lines.
3465 # This happens at least with the AIX C compiler.
3466 : > sub/conftest.c
3467 for i in 1 2 3 4 5 6; do
3468 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3469 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3470 # Solaris 8's {/usr,}/bin/sh.
3471 touch sub/conftst$i.h
3472 done
3473 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3475 case $depmode in
3476 nosideeffect)
3477 # after this tag, mechanisms are not by side-effect, so they'll
3478 # only be used when explicitly requested
3479 if test "x$enable_dependency_tracking" = xyes; then
3480 continue
3481 else
3482 break
3485 none) break ;;
3486 esac
3487 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3488 # mode. It turns out that the SunPro C++ compiler does not properly
3489 # handle `-M -o', and we need to detect this.
3490 if depmode=$depmode \
3491 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3492 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3493 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3494 >/dev/null 2>conftest.err &&
3495 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3496 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3497 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3498 # icc doesn't choke on unknown options, it will just issue warnings
3499 # or remarks (even with -Werror). So we grep stderr for any message
3500 # that says an option was ignored or not supported.
3501 # When given -MP, icc 7.0 and 7.1 complain thusly:
3502 # icc: Command line warning: ignoring option '-M'; no argument required
3503 # The diagnosis changed in icc 8.0:
3504 # icc: Command line remark: option '-MP' not supported
3505 if (grep 'ignoring option' conftest.err ||
3506 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3507 am_cv_CC_dependencies_compiler_type=$depmode
3508 break
3511 done
3513 cd ..
3514 rm -rf conftest.dir
3515 else
3516 am_cv_CC_dependencies_compiler_type=none
3520 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3521 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3522 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3527 test "x$enable_dependency_tracking" != xno \
3528 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3529 am__fastdepCC_TRUE=
3530 am__fastdepCC_FALSE='#'
3531 else
3532 am__fastdepCC_TRUE='#'
3533 am__fastdepCC_FALSE=
3537 depcc="$CXX" am_compiler_list=
3539 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3540 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3541 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3542 echo $ECHO_N "(cached) $ECHO_C" >&6
3543 else
3544 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3545 # We make a subdir and do the tests there. Otherwise we can end up
3546 # making bogus files that we don't know about and never remove. For
3547 # instance it was reported that on HP-UX the gcc test will end up
3548 # making a dummy file named `D' -- because `-MD' means `put the output
3549 # in D'.
3550 mkdir conftest.dir
3551 # Copy depcomp to subdir because otherwise we won't find it if we're
3552 # using a relative directory.
3553 cp "$am_depcomp" conftest.dir
3554 cd conftest.dir
3555 # We will build objects and dependencies in a subdirectory because
3556 # it helps to detect inapplicable dependency modes. For instance
3557 # both Tru64's cc and ICC support -MD to output dependencies as a
3558 # side effect of compilation, but ICC will put the dependencies in
3559 # the current directory while Tru64 will put them in the object
3560 # directory.
3561 mkdir sub
3563 am_cv_CXX_dependencies_compiler_type=none
3564 if test "$am_compiler_list" = ""; then
3565 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3567 for depmode in $am_compiler_list; do
3568 # Setup a source with many dependencies, because some compilers
3569 # like to wrap large dependency lists on column 80 (with \), and
3570 # we should not choose a depcomp mode which is confused by this.
3572 # We need to recreate these files for each test, as the compiler may
3573 # overwrite some of them when testing with obscure command lines.
3574 # This happens at least with the AIX C compiler.
3575 : > sub/conftest.c
3576 for i in 1 2 3 4 5 6; do
3577 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3578 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3579 # Solaris 8's {/usr,}/bin/sh.
3580 touch sub/conftst$i.h
3581 done
3582 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3584 case $depmode in
3585 nosideeffect)
3586 # after this tag, mechanisms are not by side-effect, so they'll
3587 # only be used when explicitly requested
3588 if test "x$enable_dependency_tracking" = xyes; then
3589 continue
3590 else
3591 break
3594 none) break ;;
3595 esac
3596 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3597 # mode. It turns out that the SunPro C++ compiler does not properly
3598 # handle `-M -o', and we need to detect this.
3599 if depmode=$depmode \
3600 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3601 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3602 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3603 >/dev/null 2>conftest.err &&
3604 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3605 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3606 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3607 # icc doesn't choke on unknown options, it will just issue warnings
3608 # or remarks (even with -Werror). So we grep stderr for any message
3609 # that says an option was ignored or not supported.
3610 # When given -MP, icc 7.0 and 7.1 complain thusly:
3611 # icc: Command line warning: ignoring option '-M'; no argument required
3612 # The diagnosis changed in icc 8.0:
3613 # icc: Command line remark: option '-MP' not supported
3614 if (grep 'ignoring option' conftest.err ||
3615 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3616 am_cv_CXX_dependencies_compiler_type=$depmode
3617 break
3620 done
3622 cd ..
3623 rm -rf conftest.dir
3624 else
3625 am_cv_CXX_dependencies_compiler_type=none
3629 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3630 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3631 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3636 test "x$enable_dependency_tracking" != xno \
3637 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3638 am__fastdepCXX_TRUE=
3639 am__fastdepCXX_FALSE='#'
3640 else
3641 am__fastdepCXX_TRUE='#'
3642 am__fastdepCXX_FALSE=
3648 if test -n "$ac_tool_prefix"; then
3649 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3650 set dummy ${ac_tool_prefix}as; ac_word=$2
3651 echo "$as_me:$LINENO: checking for $ac_word" >&5
3652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3653 if test "${ac_cv_prog_AS+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3655 else
3656 if test -n "$AS"; then
3657 ac_cv_prog_AS="$AS" # Let the user override the test.
3658 else
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 for as_dir in $PATH
3662 IFS=$as_save_IFS
3663 test -z "$as_dir" && as_dir=.
3664 for ac_exec_ext in '' $ac_executable_extensions; do
3665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3666 ac_cv_prog_AS="${ac_tool_prefix}as"
3667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3668 break 2
3670 done
3671 done
3675 AS=$ac_cv_prog_AS
3676 if test -n "$AS"; then
3677 echo "$as_me:$LINENO: result: $AS" >&5
3678 echo "${ECHO_T}$AS" >&6
3679 else
3680 echo "$as_me:$LINENO: result: no" >&5
3681 echo "${ECHO_T}no" >&6
3685 if test -z "$ac_cv_prog_AS"; then
3686 ac_ct_AS=$AS
3687 # Extract the first word of "as", so it can be a program name with args.
3688 set dummy as; ac_word=$2
3689 echo "$as_me:$LINENO: checking for $ac_word" >&5
3690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3691 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3692 echo $ECHO_N "(cached) $ECHO_C" >&6
3693 else
3694 if test -n "$ac_ct_AS"; then
3695 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3696 else
3697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 for as_dir in $PATH
3700 IFS=$as_save_IFS
3701 test -z "$as_dir" && as_dir=.
3702 for ac_exec_ext in '' $ac_executable_extensions; do
3703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3704 ac_cv_prog_ac_ct_AS="as"
3705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3706 break 2
3708 done
3709 done
3713 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3714 if test -n "$ac_ct_AS"; then
3715 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3716 echo "${ECHO_T}$ac_ct_AS" >&6
3717 else
3718 echo "$as_me:$LINENO: result: no" >&5
3719 echo "${ECHO_T}no" >&6
3722 AS=$ac_ct_AS
3723 else
3724 AS="$ac_cv_prog_AS"
3727 if test -n "$ac_tool_prefix"; then
3728 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3729 set dummy ${ac_tool_prefix}ar; ac_word=$2
3730 echo "$as_me:$LINENO: checking for $ac_word" >&5
3731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3732 if test "${ac_cv_prog_AR+set}" = set; then
3733 echo $ECHO_N "(cached) $ECHO_C" >&6
3734 else
3735 if test -n "$AR"; then
3736 ac_cv_prog_AR="$AR" # Let the user override the test.
3737 else
3738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3739 for as_dir in $PATH
3741 IFS=$as_save_IFS
3742 test -z "$as_dir" && as_dir=.
3743 for ac_exec_ext in '' $ac_executable_extensions; do
3744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3745 ac_cv_prog_AR="${ac_tool_prefix}ar"
3746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3747 break 2
3749 done
3750 done
3754 AR=$ac_cv_prog_AR
3755 if test -n "$AR"; then
3756 echo "$as_me:$LINENO: result: $AR" >&5
3757 echo "${ECHO_T}$AR" >&6
3758 else
3759 echo "$as_me:$LINENO: result: no" >&5
3760 echo "${ECHO_T}no" >&6
3764 if test -z "$ac_cv_prog_AR"; then
3765 ac_ct_AR=$AR
3766 # Extract the first word of "ar", so it can be a program name with args.
3767 set dummy ar; ac_word=$2
3768 echo "$as_me:$LINENO: checking for $ac_word" >&5
3769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3770 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3771 echo $ECHO_N "(cached) $ECHO_C" >&6
3772 else
3773 if test -n "$ac_ct_AR"; then
3774 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3775 else
3776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777 for as_dir in $PATH
3779 IFS=$as_save_IFS
3780 test -z "$as_dir" && as_dir=.
3781 for ac_exec_ext in '' $ac_executable_extensions; do
3782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3783 ac_cv_prog_ac_ct_AR="ar"
3784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3785 break 2
3787 done
3788 done
3792 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3793 if test -n "$ac_ct_AR"; then
3794 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3795 echo "${ECHO_T}$ac_ct_AR" >&6
3796 else
3797 echo "$as_me:$LINENO: result: no" >&5
3798 echo "${ECHO_T}no" >&6
3801 AR=$ac_ct_AR
3802 else
3803 AR="$ac_cv_prog_AR"
3806 if test -n "$ac_tool_prefix"; then
3807 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3808 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3809 echo "$as_me:$LINENO: checking for $ac_word" >&5
3810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3811 if test "${ac_cv_prog_RANLIB+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3813 else
3814 if test -n "$RANLIB"; then
3815 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3816 else
3817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3818 for as_dir in $PATH
3820 IFS=$as_save_IFS
3821 test -z "$as_dir" && as_dir=.
3822 for ac_exec_ext in '' $ac_executable_extensions; do
3823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3824 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3826 break 2
3828 done
3829 done
3833 RANLIB=$ac_cv_prog_RANLIB
3834 if test -n "$RANLIB"; then
3835 echo "$as_me:$LINENO: result: $RANLIB" >&5
3836 echo "${ECHO_T}$RANLIB" >&6
3837 else
3838 echo "$as_me:$LINENO: result: no" >&5
3839 echo "${ECHO_T}no" >&6
3843 if test -z "$ac_cv_prog_RANLIB"; then
3844 ac_ct_RANLIB=$RANLIB
3845 # Extract the first word of "ranlib", so it can be a program name with args.
3846 set dummy ranlib; ac_word=$2
3847 echo "$as_me:$LINENO: checking for $ac_word" >&5
3848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3849 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3850 echo $ECHO_N "(cached) $ECHO_C" >&6
3851 else
3852 if test -n "$ac_ct_RANLIB"; then
3853 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3854 else
3855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856 for as_dir in $PATH
3858 IFS=$as_save_IFS
3859 test -z "$as_dir" && as_dir=.
3860 for ac_exec_ext in '' $ac_executable_extensions; do
3861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3862 ac_cv_prog_ac_ct_RANLIB="ranlib"
3863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3864 break 2
3866 done
3867 done
3869 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3872 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3873 if test -n "$ac_ct_RANLIB"; then
3874 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3875 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3876 else
3877 echo "$as_me:$LINENO: result: no" >&5
3878 echo "${ECHO_T}no" >&6
3881 RANLIB=$ac_ct_RANLIB
3882 else
3883 RANLIB="$ac_cv_prog_RANLIB"
3887 # Find a good install program. We prefer a C program (faster),
3888 # so one script is as good as another. But avoid the broken or
3889 # incompatible versions:
3890 # SysV /etc/install, /usr/sbin/install
3891 # SunOS /usr/etc/install
3892 # IRIX /sbin/install
3893 # AIX /bin/install
3894 # AmigaOS /C/install, which installs bootblocks on floppy discs
3895 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3896 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3897 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3898 # OS/2's system install, which has a completely different semantic
3899 # ./install, which can be erroneously created by make from ./install.sh.
3900 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3901 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3902 if test -z "$INSTALL"; then
3903 if test "${ac_cv_path_install+set}" = set; then
3904 echo $ECHO_N "(cached) $ECHO_C" >&6
3905 else
3906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907 for as_dir in $PATH
3909 IFS=$as_save_IFS
3910 test -z "$as_dir" && as_dir=.
3911 # Account for people who put trailing slashes in PATH elements.
3912 case $as_dir/ in
3913 ./ | .// | /cC/* | \
3914 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3915 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3916 /usr/ucb/* ) ;;
3918 # OSF1 and SCO ODT 3.0 have their own names for install.
3919 # Don't use installbsd from OSF since it installs stuff as root
3920 # by default.
3921 for ac_prog in ginstall scoinst install; do
3922 for ac_exec_ext in '' $ac_executable_extensions; do
3923 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3924 if test $ac_prog = install &&
3925 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3926 # AIX install. It has an incompatible calling convention.
3928 elif test $ac_prog = install &&
3929 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3930 # program-specific install script used by HP pwplus--don't use.
3932 else
3933 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3934 break 3
3937 done
3938 done
3940 esac
3941 done
3945 if test "${ac_cv_path_install+set}" = set; then
3946 INSTALL=$ac_cv_path_install
3947 else
3948 # As a last resort, use the slow shell script. We don't cache a
3949 # path for INSTALL within a source directory, because that will
3950 # break other packages using the cache if that directory is
3951 # removed, or if the path is relative.
3952 INSTALL=$ac_install_sh
3955 echo "$as_me:$LINENO: result: $INSTALL" >&5
3956 echo "${ECHO_T}$INSTALL" >&6
3958 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3959 # It thinks the first close brace ends the variable substitution.
3960 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3962 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3964 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3967 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3968 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3969 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3970 if test "${enable_maintainer_mode+set}" = set; then
3971 enableval="$enable_maintainer_mode"
3972 USE_MAINTAINER_MODE=$enableval
3973 else
3974 USE_MAINTAINER_MODE=no
3976 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3977 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3980 if test $USE_MAINTAINER_MODE = yes; then
3981 MAINTAINER_MODE_TRUE=
3982 MAINTAINER_MODE_FALSE='#'
3983 else
3984 MAINTAINER_MODE_TRUE='#'
3985 MAINTAINER_MODE_FALSE=
3988 MAINT=$MAINTAINER_MODE_TRUE
3994 # configure.host sets the following important variables
3995 # libgcj_cflags - host specific C compiler flags
3996 # libgcj_cxxflags - host specific C++ compiler flags
3997 # libgcj_javaflags - host specific Java compiler flags
3999 libgcj_cflags=
4000 libgcj_cxxflags=
4001 libgcj_javaflags=
4003 . ${srcdir}/configure.host
4005 LIBGCJ_CFLAGS="${libgcj_cflags}"
4006 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4007 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4008 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4014 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
4017 # Only use libltdl for non-newlib builds.
4018 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4019 case $enable_ltdl_convenience in
4020 no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
4021 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
4022 { (exit 1); exit 1; }; } ;;
4023 "") enable_ltdl_convenience=yes
4024 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
4025 esac
4026 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
4027 INCLTDL='-I${top_srcdir}/''libltdl'
4030 DIRLTDL=libltdl
4032 cat >>confdefs.h <<\_ACEOF
4033 #define USE_LTDL 1
4034 _ACEOF
4036 # Sigh. Libtool's macro doesn't do the right thing.
4037 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
4038 # FIXME: this is a hack.
4039 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
4040 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
4045 # Check whether --enable-shared or --disable-shared was given.
4046 if test "${enable_shared+set}" = set; then
4047 enableval="$enable_shared"
4048 p=${PACKAGE-default}
4049 case $enableval in
4050 yes) enable_shared=yes ;;
4051 no) enable_shared=no ;;
4053 enable_shared=no
4054 # Look at the argument we got. We use all the common list separators.
4055 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4056 for pkg in $enableval; do
4057 if test "X$pkg" = "X$p"; then
4058 enable_shared=yes
4060 done
4061 IFS="$ac_save_ifs"
4063 esac
4064 else
4065 enable_shared=yes
4067 # Check whether --enable-static or --disable-static was given.
4068 if test "${enable_static+set}" = set; then
4069 enableval="$enable_static"
4070 p=${PACKAGE-default}
4071 case $enableval in
4072 yes) enable_static=yes ;;
4073 no) enable_static=no ;;
4075 enable_static=no
4076 # Look at the argument we got. We use all the common list separators.
4077 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4078 for pkg in $enableval; do
4079 if test "X$pkg" = "X$p"; then
4080 enable_static=yes
4082 done
4083 IFS="$ac_save_ifs"
4085 esac
4086 else
4087 enable_static=yes
4089 # Check whether --enable-fast-install or --disable-fast-install was given.
4090 if test "${enable_fast_install+set}" = set; then
4091 enableval="$enable_fast_install"
4092 p=${PACKAGE-default}
4093 case $enableval in
4094 yes) enable_fast_install=yes ;;
4095 no) enable_fast_install=no ;;
4097 enable_fast_install=no
4098 # Look at the argument we got. We use all the common list separators.
4099 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4100 for pkg in $enableval; do
4101 if test "X$pkg" = "X$p"; then
4102 enable_fast_install=yes
4104 done
4105 IFS="$ac_save_ifs"
4107 esac
4108 else
4109 enable_fast_install=yes
4112 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4113 if test "${with_gnu_ld+set}" = set; then
4114 withval="$with_gnu_ld"
4115 test "$withval" = no || with_gnu_ld=yes
4116 else
4117 with_gnu_ld=no
4119 ac_prog=ld
4120 if test "$GCC" = yes; then
4121 # Check if gcc -print-prog-name=ld gives a path.
4122 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4123 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4124 case $host in
4125 *-*-mingw*)
4126 # gcc leaves a trailing carriage return which upsets mingw
4127 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4129 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4130 esac
4131 case $ac_prog in
4132 # Accept absolute paths.
4133 [\\/]* | [A-Za-z]:[\\/]*)
4134 re_direlt='/[^/][^/]*/\.\./'
4135 # Canonicalize the path of ld
4136 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4137 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4138 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4139 done
4140 test -z "$LD" && LD="$ac_prog"
4143 # If it fails, then pretend we aren't using GCC.
4144 ac_prog=ld
4147 # If it is relative, then search for the first ld in PATH.
4148 with_gnu_ld=unknown
4150 esac
4151 elif test "$with_gnu_ld" = yes; then
4152 echo "$as_me:$LINENO: checking for GNU ld" >&5
4153 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4154 else
4155 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4156 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4158 if test "${lt_cv_path_LD+set}" = set; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4160 else
4161 if test -z "$LD"; then
4162 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4163 for ac_dir in $PATH; do
4164 test -z "$ac_dir" && ac_dir=.
4165 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4166 lt_cv_path_LD="$ac_dir/$ac_prog"
4167 # Check to see if the program is GNU ld. I'd rather use --version,
4168 # but apparently some GNU ld's only accept -v.
4169 # Break only if it was the GNU/non-GNU ld that we prefer.
4170 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4171 test "$with_gnu_ld" != no && break
4172 else
4173 test "$with_gnu_ld" != yes && break
4176 done
4177 IFS="$ac_save_ifs"
4178 else
4179 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4183 LD="$lt_cv_path_LD"
4184 if test -n "$LD"; then
4185 echo "$as_me:$LINENO: result: $LD" >&5
4186 echo "${ECHO_T}$LD" >&6
4187 else
4188 echo "$as_me:$LINENO: result: no" >&5
4189 echo "${ECHO_T}no" >&6
4191 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4192 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4193 { (exit 1); exit 1; }; }
4194 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4195 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4196 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4197 echo $ECHO_N "(cached) $ECHO_C" >&6
4198 else
4199 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4200 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4201 lt_cv_prog_gnu_ld=yes
4202 else
4203 lt_cv_prog_gnu_ld=no
4206 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4207 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4208 with_gnu_ld=$lt_cv_prog_gnu_ld
4211 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4212 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4213 if test "${lt_cv_ld_reload_flag+set}" = set; then
4214 echo $ECHO_N "(cached) $ECHO_C" >&6
4215 else
4216 lt_cv_ld_reload_flag='-r'
4218 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4219 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4220 reload_flag=$lt_cv_ld_reload_flag
4221 test -n "$reload_flag" && reload_flag=" $reload_flag"
4223 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4224 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4225 if test "${lt_cv_path_NM+set}" = set; then
4226 echo $ECHO_N "(cached) $ECHO_C" >&6
4227 else
4228 if test -n "$NM"; then
4229 # Let the user override the test.
4230 lt_cv_path_NM="$NM"
4231 else
4232 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4233 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4234 test -z "$ac_dir" && ac_dir=.
4235 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4236 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4237 # Check to see if the nm accepts a BSD-compat flag.
4238 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4239 # nm: unknown option "B" ignored
4240 # Tru64's nm complains that /dev/null is an invalid object file
4241 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4242 lt_cv_path_NM="$tmp_nm -B"
4243 break
4244 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4245 lt_cv_path_NM="$tmp_nm -p"
4246 break
4247 else
4248 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4249 continue # so that we can try to find one that supports BSD flags
4252 done
4253 IFS="$ac_save_ifs"
4254 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4258 NM="$lt_cv_path_NM"
4259 echo "$as_me:$LINENO: result: $NM" >&5
4260 echo "${ECHO_T}$NM" >&6
4262 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4263 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4264 if test "${lt_cv_deplibs_check_method+set}" = set; then
4265 echo $ECHO_N "(cached) $ECHO_C" >&6
4266 else
4267 lt_cv_file_magic_cmd='$MAGIC_CMD'
4268 lt_cv_file_magic_test_file=
4269 lt_cv_deplibs_check_method='unknown'
4270 # Need to set the preceding variable on all platforms that support
4271 # interlibrary dependencies.
4272 # 'none' -- dependencies not supported.
4273 # `unknown' -- same as none, but documents that we really don't know.
4274 # 'pass_all' -- all dependencies passed with no checks.
4275 # 'test_compile' -- check by making test program.
4276 # 'file_magic [regex]' -- check by looking for files in library path
4277 # which responds to the $file_magic_cmd with a given egrep regex.
4278 # If you have `file' or equivalent on your system and you're not sure
4279 # whether `pass_all' will *always* work, you probably want this one.
4281 case $host_os in
4282 aix*)
4283 lt_cv_deplibs_check_method=pass_all
4286 beos*)
4287 lt_cv_deplibs_check_method=pass_all
4290 bsdi4*)
4291 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4292 lt_cv_file_magic_cmd='/usr/bin/file -L'
4293 lt_cv_file_magic_test_file=/shlib/libc.so
4296 cygwin* | mingw* |pw32*)
4297 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4298 lt_cv_file_magic_cmd='$OBJDUMP -f'
4301 darwin* | rhapsody*)
4302 # this will be overwritten by pass_all, but leave it in just in case
4303 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4304 lt_cv_file_magic_cmd='/usr/bin/file -L'
4305 case "$host_os" in
4306 rhapsody* | darwin1.012)
4307 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
4309 *) # Darwin 1.3 on
4310 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4312 esac
4313 lt_cv_deplibs_check_method=pass_all
4316 freebsd* | kfreebsd*-gnu)
4317 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4318 case $host_cpu in
4319 i*86 )
4320 # Not sure whether the presence of OpenBSD here was a mistake.
4321 # Let's accept both of them until this is cleared up.
4322 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4323 lt_cv_file_magic_cmd=/usr/bin/file
4324 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4326 esac
4327 else
4328 lt_cv_deplibs_check_method=pass_all
4332 gnu*)
4333 lt_cv_deplibs_check_method=pass_all
4336 hpux10.20*|hpux11*)
4337 case $host_cpu in
4338 hppa*)
4339 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4340 lt_cv_file_magic_cmd=/usr/bin/file
4341 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4343 ia64*)
4344 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4345 lt_cv_file_magic_cmd=/usr/bin/file
4346 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4348 esac
4351 irix5* | irix6*)
4352 case $host_os in
4353 irix5*)
4354 # this will be overridden with pass_all, but let us keep it just in case
4355 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4358 case $LD in
4359 *-32|*"-32 ") libmagic=32-bit;;
4360 *-n32|*"-n32 ") libmagic=N32;;
4361 *-64|*"-64 ") libmagic=64-bit;;
4362 *) libmagic=never-match;;
4363 esac
4364 # this will be overridden with pass_all, but let us keep it just in case
4365 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4367 esac
4368 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4369 lt_cv_deplibs_check_method=pass_all
4372 # This must be Linux ELF.
4373 linux-gnu*)
4374 lt_cv_deplibs_check_method=pass_all
4377 netbsd* | knetbsd*-gnu)
4378 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4379 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4380 else
4381 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4385 newsos6)
4386 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4387 lt_cv_file_magic_cmd=/usr/bin/file
4388 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4391 osf3* | osf4* | osf5*)
4392 # this will be overridden with pass_all, but let us keep it just in case
4393 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4394 lt_cv_file_magic_test_file=/shlib/libc.so
4395 lt_cv_deplibs_check_method=pass_all
4398 sco3.2v5*)
4399 lt_cv_deplibs_check_method=pass_all
4402 solaris*)
4403 lt_cv_deplibs_check_method=pass_all
4404 lt_cv_file_magic_test_file=/lib/libc.so
4407 sysv5uw[78]* | sysv4*uw2*)
4408 lt_cv_deplibs_check_method=pass_all
4411 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4412 case $host_vendor in
4413 ncr)
4414 lt_cv_deplibs_check_method=pass_all
4416 motorola)
4417 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]'
4418 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4420 esac
4422 esac
4425 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4426 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4427 file_magic_cmd=$lt_cv_file_magic_cmd
4428 deplibs_check_method=$lt_cv_deplibs_check_method
4433 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4435 # find the maximum length of command line arguments
4436 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4437 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4438 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4440 else
4442 teststring="ABCD"
4444 case $build_os in
4445 msdosdjgpp*)
4446 # On DJGPP, this test can blow up pretty badly due to problems in libc
4447 # (any single argument exceeding 2000 bytes causes a buffer overrun
4448 # during glob expansion). Even if it were fixed, the result of this
4449 # check would be larger than it should be.
4450 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4453 cygwin* | mingw*)
4454 # On Win9x/ME, this test blows up -- it succeeds, but takes
4455 # about 5 minutes as the teststring grows exponentially.
4456 # Worse, since 9x/ME are not pre-emptively multitasking,
4457 # you end up with a "frozen" computer, even though with patience
4458 # the test eventually succeeds (with a max line length of 256k).
4459 # Instead, let's just punt: use the minimum linelength reported by
4460 # all of the supported platforms: 8192 (on NT/2K/XP).
4461 lt_cv_sys_max_cmd_len=8192;
4464 amigaos*)
4465 # On AmigaOS with pdksh, this test takes hours, literally.
4466 # So we just punt and use a minimum line length of 8192.
4467 lt_cv_sys_max_cmd_len=8192;
4470 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4471 # This has been around since 386BSD, at least. Likely further.
4472 if test -x /sbin/sysctl; then
4473 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4474 elif test -x /usr/sbin/sysctl; then
4475 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4476 else
4477 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
4479 # And add a safety zone
4480 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4481 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4483 esac
4487 if test -n "$lt_cv_sys_max_cmd_len" ; then
4488 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4489 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4490 else
4491 echo "$as_me:$LINENO: result: none" >&5
4492 echo "${ECHO_T}none" >&6
4496 # Only perform the check for file, if the check method requires it
4497 case $deplibs_check_method in
4498 file_magic*)
4499 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4500 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4501 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4502 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4503 echo $ECHO_N "(cached) $ECHO_C" >&6
4504 else
4505 case $MAGIC_CMD in
4507 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4509 ?:/*)
4510 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4513 ac_save_MAGIC_CMD="$MAGIC_CMD"
4514 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4515 ac_dummy="/usr/bin:$PATH"
4516 for ac_dir in $ac_dummy; do
4517 test -z "$ac_dir" && ac_dir=.
4518 if test -f $ac_dir/${ac_tool_prefix}file; then
4519 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4520 if test -n "$file_magic_test_file"; then
4521 case $deplibs_check_method in
4522 "file_magic "*)
4523 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4524 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4525 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4526 egrep "$file_magic_regex" > /dev/null; then
4528 else
4529 cat <<EOF 1>&2
4531 *** Warning: the command libtool uses to detect shared libraries,
4532 *** $file_magic_cmd, produces output that libtool cannot recognize.
4533 *** The result is that libtool may fail to recognize shared libraries
4534 *** as such. This will affect the creation of libtool libraries that
4535 *** depend on shared libraries, but programs linked with such libtool
4536 *** libraries will work regardless of this problem. Nevertheless, you
4537 *** may want to report the problem to your system manager and/or to
4538 *** bug-libtool@gnu.org
4541 fi ;;
4542 esac
4544 break
4546 done
4547 IFS="$ac_save_ifs"
4548 MAGIC_CMD="$ac_save_MAGIC_CMD"
4550 esac
4553 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4554 if test -n "$MAGIC_CMD"; then
4555 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4556 echo "${ECHO_T}$MAGIC_CMD" >&6
4557 else
4558 echo "$as_me:$LINENO: result: no" >&5
4559 echo "${ECHO_T}no" >&6
4562 if test -z "$lt_cv_path_MAGIC_CMD"; then
4563 if test -n "$ac_tool_prefix"; then
4564 echo "$as_me:$LINENO: checking for file" >&5
4565 echo $ECHO_N "checking for file... $ECHO_C" >&6
4566 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4568 else
4569 case $MAGIC_CMD in
4571 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4573 ?:/*)
4574 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4577 ac_save_MAGIC_CMD="$MAGIC_CMD"
4578 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4579 ac_dummy="/usr/bin:$PATH"
4580 for ac_dir in $ac_dummy; do
4581 test -z "$ac_dir" && ac_dir=.
4582 if test -f $ac_dir/file; then
4583 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4584 if test -n "$file_magic_test_file"; then
4585 case $deplibs_check_method in
4586 "file_magic "*)
4587 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4588 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4589 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4590 egrep "$file_magic_regex" > /dev/null; then
4592 else
4593 cat <<EOF 1>&2
4595 *** Warning: the command libtool uses to detect shared libraries,
4596 *** $file_magic_cmd, produces output that libtool cannot recognize.
4597 *** The result is that libtool may fail to recognize shared libraries
4598 *** as such. This will affect the creation of libtool libraries that
4599 *** depend on shared libraries, but programs linked with such libtool
4600 *** libraries will work regardless of this problem. Nevertheless, you
4601 *** may want to report the problem to your system manager and/or to
4602 *** bug-libtool@gnu.org
4605 fi ;;
4606 esac
4608 break
4610 done
4611 IFS="$ac_save_ifs"
4612 MAGIC_CMD="$ac_save_MAGIC_CMD"
4614 esac
4617 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4618 if test -n "$MAGIC_CMD"; then
4619 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4620 echo "${ECHO_T}$MAGIC_CMD" >&6
4621 else
4622 echo "$as_me:$LINENO: result: no" >&5
4623 echo "${ECHO_T}no" >&6
4626 else
4627 MAGIC_CMD=:
4633 esac
4635 if test -n "$ac_tool_prefix"; then
4636 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4637 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4638 echo "$as_me:$LINENO: checking for $ac_word" >&5
4639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4640 if test "${ac_cv_prog_RANLIB+set}" = set; then
4641 echo $ECHO_N "(cached) $ECHO_C" >&6
4642 else
4643 if test -n "$RANLIB"; then
4644 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4645 else
4646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647 for as_dir in $PATH
4649 IFS=$as_save_IFS
4650 test -z "$as_dir" && as_dir=.
4651 for ac_exec_ext in '' $ac_executable_extensions; do
4652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4653 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4655 break 2
4657 done
4658 done
4662 RANLIB=$ac_cv_prog_RANLIB
4663 if test -n "$RANLIB"; then
4664 echo "$as_me:$LINENO: result: $RANLIB" >&5
4665 echo "${ECHO_T}$RANLIB" >&6
4666 else
4667 echo "$as_me:$LINENO: result: no" >&5
4668 echo "${ECHO_T}no" >&6
4672 if test -z "$ac_cv_prog_RANLIB"; then
4673 ac_ct_RANLIB=$RANLIB
4674 # Extract the first word of "ranlib", so it can be a program name with args.
4675 set dummy ranlib; ac_word=$2
4676 echo "$as_me:$LINENO: checking for $ac_word" >&5
4677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4678 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4679 echo $ECHO_N "(cached) $ECHO_C" >&6
4680 else
4681 if test -n "$ac_ct_RANLIB"; then
4682 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4683 else
4684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4685 for as_dir in $PATH
4687 IFS=$as_save_IFS
4688 test -z "$as_dir" && as_dir=.
4689 for ac_exec_ext in '' $ac_executable_extensions; do
4690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4691 ac_cv_prog_ac_ct_RANLIB="ranlib"
4692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4693 break 2
4695 done
4696 done
4698 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4701 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4702 if test -n "$ac_ct_RANLIB"; then
4703 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4704 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4705 else
4706 echo "$as_me:$LINENO: result: no" >&5
4707 echo "${ECHO_T}no" >&6
4710 RANLIB=$ac_ct_RANLIB
4711 else
4712 RANLIB="$ac_cv_prog_RANLIB"
4715 if test -n "$ac_tool_prefix"; then
4716 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4717 set dummy ${ac_tool_prefix}strip; ac_word=$2
4718 echo "$as_me:$LINENO: checking for $ac_word" >&5
4719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4720 if test "${ac_cv_prog_STRIP+set}" = set; then
4721 echo $ECHO_N "(cached) $ECHO_C" >&6
4722 else
4723 if test -n "$STRIP"; then
4724 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4725 else
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 for as_dir in $PATH
4729 IFS=$as_save_IFS
4730 test -z "$as_dir" && as_dir=.
4731 for ac_exec_ext in '' $ac_executable_extensions; do
4732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4733 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4735 break 2
4737 done
4738 done
4742 STRIP=$ac_cv_prog_STRIP
4743 if test -n "$STRIP"; then
4744 echo "$as_me:$LINENO: result: $STRIP" >&5
4745 echo "${ECHO_T}$STRIP" >&6
4746 else
4747 echo "$as_me:$LINENO: result: no" >&5
4748 echo "${ECHO_T}no" >&6
4752 if test -z "$ac_cv_prog_STRIP"; then
4753 ac_ct_STRIP=$STRIP
4754 # Extract the first word of "strip", so it can be a program name with args.
4755 set dummy strip; ac_word=$2
4756 echo "$as_me:$LINENO: checking for $ac_word" >&5
4757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4758 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4760 else
4761 if test -n "$ac_ct_STRIP"; then
4762 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4763 else
4764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765 for as_dir in $PATH
4767 IFS=$as_save_IFS
4768 test -z "$as_dir" && as_dir=.
4769 for ac_exec_ext in '' $ac_executable_extensions; do
4770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4771 ac_cv_prog_ac_ct_STRIP="strip"
4772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4773 break 2
4775 done
4776 done
4778 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4781 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4782 if test -n "$ac_ct_STRIP"; then
4783 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4784 echo "${ECHO_T}$ac_ct_STRIP" >&6
4785 else
4786 echo "$as_me:$LINENO: result: no" >&5
4787 echo "${ECHO_T}no" >&6
4790 STRIP=$ac_ct_STRIP
4791 else
4792 STRIP="$ac_cv_prog_STRIP"
4796 # Check for any special flags to pass to ltconfig.
4797 libtool_flags="--cache-file=$cache_file"
4798 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4799 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4800 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4801 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4802 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4805 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4806 if test "${enable_libtool_lock+set}" = set; then
4807 enableval="$enable_libtool_lock"
4810 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4811 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4814 # Check whether --with-pic or --without-pic was given.
4815 if test "${with_pic+set}" = set; then
4816 withval="$with_pic"
4817 pic_mode="$withval"
4818 else
4819 pic_mode=default
4821 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4822 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4824 # Some flags need to be propagated to the compiler or linker for good
4825 # libtool support.
4826 case $host in
4827 *-*-irix6*)
4828 # Find out which ABI we are using.
4829 echo '#line 4829 "configure"' > conftest.$ac_ext
4830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4831 (eval $ac_compile) 2>&5
4832 ac_status=$?
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); }; then
4835 if test "$lt_cv_prog_gnu_ld" = yes; then
4836 case `/usr/bin/file conftest.$ac_objext` in
4837 *32-bit*)
4838 LD="${LD-ld} -melf32bsmip"
4840 *N32*)
4841 LD="${LD-ld} -melf32bmipn32"
4843 *64-bit*)
4844 LD="${LD-ld} -melf64bmip"
4846 esac
4847 else
4848 case `/usr/bin/file conftest.$ac_objext` in
4849 *32-bit*)
4850 LD="${LD-ld} -32"
4852 *N32*)
4853 LD="${LD-ld} -n32"
4855 *64-bit*)
4856 LD="${LD-ld} -64"
4858 esac
4861 rm -rf conftest*
4864 ia64-*-hpux*)
4865 # Find out which ABI we are using.
4866 echo 'int i;' > conftest.$ac_ext
4867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4868 (eval $ac_compile) 2>&5
4869 ac_status=$?
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); }; then
4872 case "`/usr/bin/file conftest.o`" in
4873 *ELF-32*)
4874 HPUX_IA64_MODE="32"
4876 *ELF-64*)
4877 HPUX_IA64_MODE="64"
4879 esac
4881 rm -rf conftest*
4884 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4885 # Find out which ABI we are using.
4886 echo 'int i;' > conftest.$ac_ext
4887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4888 (eval $ac_compile) 2>&5
4889 ac_status=$?
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); }; then
4892 case "`/usr/bin/file conftest.o`" in
4893 *32-bit*)
4894 case $host in
4895 x86_64-*linux*)
4896 LD="${LD-ld} -m elf_i386"
4898 ppc64-*linux*|powerpc64-*linux*)
4899 LD="${LD-ld} -m elf32ppclinux"
4901 s390x-*linux*)
4902 LD="${LD-ld} -m elf_s390"
4904 sparc64-*linux*)
4905 LD="${LD-ld} -m elf32_sparc"
4907 esac
4909 *64-bit*)
4910 case $host in
4911 x86_64-*linux*)
4912 LD="${LD-ld} -m elf_x86_64"
4914 ppc*-*linux*|powerpc*-*linux*)
4915 LD="${LD-ld} -m elf64ppc"
4917 s390*-*linux*)
4918 LD="${LD-ld} -m elf64_s390"
4920 sparc*-*linux*)
4921 LD="${LD-ld} -m elf64_sparc"
4923 esac
4925 esac
4927 rm -rf conftest*
4930 *-*-sco3.2v5*)
4931 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4932 SAVE_CFLAGS="$CFLAGS"
4933 CFLAGS="$CFLAGS -belf"
4934 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4935 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4936 if test "${lt_cv_cc_needs_belf+set}" = set; then
4937 echo $ECHO_N "(cached) $ECHO_C" >&6
4938 else
4941 ac_ext=c
4942 ac_cpp='$CPP $CPPFLAGS'
4943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4947 if test x$gcc_no_link = xyes; then
4948 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4949 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4950 { (exit 1); exit 1; }; }
4952 cat >conftest.$ac_ext <<_ACEOF
4953 /* confdefs.h. */
4954 _ACEOF
4955 cat confdefs.h >>conftest.$ac_ext
4956 cat >>conftest.$ac_ext <<_ACEOF
4957 /* end confdefs.h. */
4960 main ()
4964 return 0;
4966 _ACEOF
4967 rm -f conftest.$ac_objext conftest$ac_exeext
4968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4969 (eval $ac_link) 2>conftest.er1
4970 ac_status=$?
4971 grep -v '^ *+' conftest.er1 >conftest.err
4972 rm -f conftest.er1
4973 cat conftest.err >&5
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); } &&
4976 { ac_try='test -z "$ac_c_werror_flag"
4977 || test ! -s conftest.err'
4978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4979 (eval $ac_try) 2>&5
4980 ac_status=$?
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); }; } &&
4983 { ac_try='test -s conftest$ac_exeext'
4984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4985 (eval $ac_try) 2>&5
4986 ac_status=$?
4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); }; }; then
4989 lt_cv_cc_needs_belf=yes
4990 else
4991 echo "$as_me: failed program was:" >&5
4992 sed 's/^/| /' conftest.$ac_ext >&5
4994 lt_cv_cc_needs_belf=no
4996 rm -f conftest.err conftest.$ac_objext \
4997 conftest$ac_exeext conftest.$ac_ext
4998 ac_ext=c
4999 ac_cpp='$CPP $CPPFLAGS'
5000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5005 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5006 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5007 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5008 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5009 CFLAGS="$SAVE_CFLAGS"
5014 esac
5017 # Save cache, so that ltconfig can load it
5018 cat >confcache <<\_ACEOF
5019 # This file is a shell script that caches the results of configure
5020 # tests run on this system so they can be shared between configure
5021 # scripts and configure runs, see configure's option --config-cache.
5022 # It is not useful on other systems. If it contains results you don't
5023 # want to keep, you may remove or edit it.
5025 # config.status only pays attention to the cache file if you give it
5026 # the --recheck option to rerun configure.
5028 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5029 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5030 # following values.
5032 _ACEOF
5034 # The following way of writing the cache mishandles newlines in values,
5035 # but we know of no workaround that is simple, portable, and efficient.
5036 # So, don't put newlines in cache variables' values.
5037 # Ultrix sh set writes to stderr and can't be redirected directly,
5038 # and sets the high bit in the cache file unless we assign to the vars.
5040 (set) 2>&1 |
5041 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5042 *ac_space=\ *)
5043 # `set' does not quote correctly, so add quotes (double-quote
5044 # substitution turns \\\\ into \\, and sed turns \\ into \).
5045 sed -n \
5046 "s/'/'\\\\''/g;
5047 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5050 # `set' quotes correctly as required by POSIX, so do not add quotes.
5051 sed -n \
5052 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5054 esac;
5056 sed '
5057 t clear
5058 : clear
5059 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5060 t end
5061 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5062 : end' >>confcache
5063 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5064 if test -w $cache_file; then
5065 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5066 cat confcache >$cache_file
5067 else
5068 echo "not updating unwritable cache $cache_file"
5071 rm -f confcache
5073 # Actually configure libtool. ac_aux_dir is where install-sh is found.
5074 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
5075 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5076 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5077 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5078 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5079 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
5080 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
5081 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5082 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5083 echo "$as_me: error: libtool configure failed" >&2;}
5084 { (exit 1); exit 1; }; }
5086 # Reload cache, that may have been modified by ltconfig
5087 if test -r "$cache_file"; then
5088 # Some versions of bash will fail to source /dev/null (special
5089 # files actually), so we avoid doing that.
5090 if test -f "$cache_file"; then
5091 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5092 echo "$as_me: loading cache $cache_file" >&6;}
5093 case $cache_file in
5094 [\\/]* | ?:[\\/]* ) . $cache_file;;
5095 *) . ./$cache_file;;
5096 esac
5098 else
5099 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5100 echo "$as_me: creating cache $cache_file" >&6;}
5101 >$cache_file
5105 # This can be used to rebuild libtool when needed
5106 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5108 # Always use our own libtool.
5109 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5111 # Redirect the config.log output again, so that the ltconfig log is not
5112 # clobbered by the next message.
5113 exec 5>>./config.log
5115 ac_ext=cc
5116 ac_cpp='$CXXCPP $CPPFLAGS'
5117 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5118 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5119 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5120 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5121 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5122 if test -z "$CXXCPP"; then
5123 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5124 echo $ECHO_N "(cached) $ECHO_C" >&6
5125 else
5126 # Double quotes because CXXCPP needs to be expanded
5127 for CXXCPP in "$CXX -E" "/lib/cpp"
5129 ac_preproc_ok=false
5130 for ac_cxx_preproc_warn_flag in '' yes
5132 # Use a header file that comes with gcc, so configuring glibc
5133 # with a fresh cross-compiler works.
5134 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5135 # <limits.h> exists even on freestanding compilers.
5136 # On the NeXT, cc -E runs the code through the compiler's parser,
5137 # not just through cpp. "Syntax error" is here to catch this case.
5138 cat >conftest.$ac_ext <<_ACEOF
5139 /* confdefs.h. */
5140 _ACEOF
5141 cat confdefs.h >>conftest.$ac_ext
5142 cat >>conftest.$ac_ext <<_ACEOF
5143 /* end confdefs.h. */
5144 #ifdef __STDC__
5145 # include <limits.h>
5146 #else
5147 # include <assert.h>
5148 #endif
5149 Syntax error
5150 _ACEOF
5151 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5152 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5153 ac_status=$?
5154 grep -v '^ *+' conftest.er1 >conftest.err
5155 rm -f conftest.er1
5156 cat conftest.err >&5
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); } >/dev/null; then
5159 if test -s conftest.err; then
5160 ac_cpp_err=$ac_cxx_preproc_warn_flag
5161 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5162 else
5163 ac_cpp_err=
5165 else
5166 ac_cpp_err=yes
5168 if test -z "$ac_cpp_err"; then
5170 else
5171 echo "$as_me: failed program was:" >&5
5172 sed 's/^/| /' conftest.$ac_ext >&5
5174 # Broken: fails on valid input.
5175 continue
5177 rm -f conftest.err conftest.$ac_ext
5179 # OK, works on sane cases. Now check whether non-existent headers
5180 # can be detected and how.
5181 cat >conftest.$ac_ext <<_ACEOF
5182 /* confdefs.h. */
5183 _ACEOF
5184 cat confdefs.h >>conftest.$ac_ext
5185 cat >>conftest.$ac_ext <<_ACEOF
5186 /* end confdefs.h. */
5187 #include <ac_nonexistent.h>
5188 _ACEOF
5189 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5191 ac_status=$?
5192 grep -v '^ *+' conftest.er1 >conftest.err
5193 rm -f conftest.er1
5194 cat conftest.err >&5
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); } >/dev/null; then
5197 if test -s conftest.err; then
5198 ac_cpp_err=$ac_cxx_preproc_warn_flag
5199 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5200 else
5201 ac_cpp_err=
5203 else
5204 ac_cpp_err=yes
5206 if test -z "$ac_cpp_err"; then
5207 # Broken: success on invalid input.
5208 continue
5209 else
5210 echo "$as_me: failed program was:" >&5
5211 sed 's/^/| /' conftest.$ac_ext >&5
5213 # Passes both tests.
5214 ac_preproc_ok=:
5215 break
5217 rm -f conftest.err conftest.$ac_ext
5219 done
5220 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5221 rm -f conftest.err conftest.$ac_ext
5222 if $ac_preproc_ok; then
5223 break
5226 done
5227 ac_cv_prog_CXXCPP=$CXXCPP
5230 CXXCPP=$ac_cv_prog_CXXCPP
5231 else
5232 ac_cv_prog_CXXCPP=$CXXCPP
5234 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5235 echo "${ECHO_T}$CXXCPP" >&6
5236 ac_preproc_ok=false
5237 for ac_cxx_preproc_warn_flag in '' yes
5239 # Use a header file that comes with gcc, so configuring glibc
5240 # with a fresh cross-compiler works.
5241 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5242 # <limits.h> exists even on freestanding compilers.
5243 # On the NeXT, cc -E runs the code through the compiler's parser,
5244 # not just through cpp. "Syntax error" is here to catch this case.
5245 cat >conftest.$ac_ext <<_ACEOF
5246 /* confdefs.h. */
5247 _ACEOF
5248 cat confdefs.h >>conftest.$ac_ext
5249 cat >>conftest.$ac_ext <<_ACEOF
5250 /* end confdefs.h. */
5251 #ifdef __STDC__
5252 # include <limits.h>
5253 #else
5254 # include <assert.h>
5255 #endif
5256 Syntax error
5257 _ACEOF
5258 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5259 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5260 ac_status=$?
5261 grep -v '^ *+' conftest.er1 >conftest.err
5262 rm -f conftest.er1
5263 cat conftest.err >&5
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); } >/dev/null; then
5266 if test -s conftest.err; then
5267 ac_cpp_err=$ac_cxx_preproc_warn_flag
5268 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5269 else
5270 ac_cpp_err=
5272 else
5273 ac_cpp_err=yes
5275 if test -z "$ac_cpp_err"; then
5277 else
5278 echo "$as_me: failed program was:" >&5
5279 sed 's/^/| /' conftest.$ac_ext >&5
5281 # Broken: fails on valid input.
5282 continue
5284 rm -f conftest.err conftest.$ac_ext
5286 # OK, works on sane cases. Now check whether non-existent headers
5287 # can be detected and how.
5288 cat >conftest.$ac_ext <<_ACEOF
5289 /* confdefs.h. */
5290 _ACEOF
5291 cat confdefs.h >>conftest.$ac_ext
5292 cat >>conftest.$ac_ext <<_ACEOF
5293 /* end confdefs.h. */
5294 #include <ac_nonexistent.h>
5295 _ACEOF
5296 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5297 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5298 ac_status=$?
5299 grep -v '^ *+' conftest.er1 >conftest.err
5300 rm -f conftest.er1
5301 cat conftest.err >&5
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); } >/dev/null; then
5304 if test -s conftest.err; then
5305 ac_cpp_err=$ac_cxx_preproc_warn_flag
5306 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5307 else
5308 ac_cpp_err=
5310 else
5311 ac_cpp_err=yes
5313 if test -z "$ac_cpp_err"; then
5314 # Broken: success on invalid input.
5315 continue
5316 else
5317 echo "$as_me: failed program was:" >&5
5318 sed 's/^/| /' conftest.$ac_ext >&5
5320 # Passes both tests.
5321 ac_preproc_ok=:
5322 break
5324 rm -f conftest.err conftest.$ac_ext
5326 done
5327 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5328 rm -f conftest.err conftest.$ac_ext
5329 if $ac_preproc_ok; then
5331 else
5332 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5333 See \`config.log' for more details." >&5
5334 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5335 See \`config.log' for more details." >&2;}
5336 { (exit 1); exit 1; }; }
5339 ac_ext=c
5340 ac_cpp='$CPP $CPPFLAGS'
5341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5347 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
5348 lt_save_CC="$CC"
5349 lt_save_CFLAGS="$CFLAGS"
5350 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
5351 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5352 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5353 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5354 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5355 deplibs_check_method="$deplibs_check_method" \
5356 file_magic_cmd="$file_magic_cmd" \
5357 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5358 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
5359 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5360 echo "$as_me: error: libtool tag configuration failed" >&2;}
5361 { (exit 1); exit 1; }; }
5362 CC="$lt_save_CC"
5363 CFLAGS="$lt_save_CFLAGS"
5365 # Redirect the config.log output again, so that the ltconfig log is not
5366 # clobbered by the next message.
5367 exec 5>>./config.log
5375 for ac_prog in gcj
5377 # Extract the first word of "$ac_prog", so it can be a program name with args.
5378 set dummy $ac_prog; ac_word=$2
5379 echo "$as_me:$LINENO: checking for $ac_word" >&5
5380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5381 if test "${ac_cv_prog_GCJ+set}" = set; then
5382 echo $ECHO_N "(cached) $ECHO_C" >&6
5383 else
5384 if test -n "$GCJ"; then
5385 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5386 else
5387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388 for as_dir in $PATH
5390 IFS=$as_save_IFS
5391 test -z "$as_dir" && as_dir=.
5392 for ac_exec_ext in '' $ac_executable_extensions; do
5393 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5394 ac_cv_prog_GCJ="$ac_prog"
5395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5396 break 2
5398 done
5399 done
5403 GCJ=$ac_cv_prog_GCJ
5404 if test -n "$GCJ"; then
5405 echo "$as_me:$LINENO: result: $GCJ" >&5
5406 echo "${ECHO_T}$GCJ" >&6
5407 else
5408 echo "$as_me:$LINENO: result: no" >&5
5409 echo "${ECHO_T}no" >&6
5412 test -n "$GCJ" && break
5413 done
5414 test -n "$GCJ" || GCJ="gcj"
5416 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
5417 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
5418 { (exit 1); exit 1; }; }
5419 if test "x${GCJFLAGS-unset}" = xunset; then
5420 GCJFLAGS="-g -O2"
5424 depcc="$GCJ" am_compiler_list='gcc3 gcc'
5426 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5427 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5428 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
5429 echo $ECHO_N "(cached) $ECHO_C" >&6
5430 else
5431 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5432 # We make a subdir and do the tests there. Otherwise we can end up
5433 # making bogus files that we don't know about and never remove. For
5434 # instance it was reported that on HP-UX the gcc test will end up
5435 # making a dummy file named `D' -- because `-MD' means `put the output
5436 # in D'.
5437 mkdir conftest.dir
5438 # Copy depcomp to subdir because otherwise we won't find it if we're
5439 # using a relative directory.
5440 cp "$am_depcomp" conftest.dir
5441 cd conftest.dir
5442 # We will build objects and dependencies in a subdirectory because
5443 # it helps to detect inapplicable dependency modes. For instance
5444 # both Tru64's cc and ICC support -MD to output dependencies as a
5445 # side effect of compilation, but ICC will put the dependencies in
5446 # the current directory while Tru64 will put them in the object
5447 # directory.
5448 mkdir sub
5450 am_cv_GCJ_dependencies_compiler_type=none
5451 if test "$am_compiler_list" = ""; then
5452 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5454 for depmode in $am_compiler_list; do
5455 # Setup a source with many dependencies, because some compilers
5456 # like to wrap large dependency lists on column 80 (with \), and
5457 # we should not choose a depcomp mode which is confused by this.
5459 # We need to recreate these files for each test, as the compiler may
5460 # overwrite some of them when testing with obscure command lines.
5461 # This happens at least with the AIX C compiler.
5462 : > sub/conftest.c
5463 for i in 1 2 3 4 5 6; do
5464 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5465 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5466 # Solaris 8's {/usr,}/bin/sh.
5467 touch sub/conftst$i.h
5468 done
5469 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5471 case $depmode in
5472 nosideeffect)
5473 # after this tag, mechanisms are not by side-effect, so they'll
5474 # only be used when explicitly requested
5475 if test "x$enable_dependency_tracking" = xyes; then
5476 continue
5477 else
5478 break
5481 none) break ;;
5482 esac
5483 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5484 # mode. It turns out that the SunPro C++ compiler does not properly
5485 # handle `-M -o', and we need to detect this.
5486 if depmode=$depmode \
5487 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5488 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5489 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5490 >/dev/null 2>conftest.err &&
5491 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5492 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5493 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5494 # icc doesn't choke on unknown options, it will just issue warnings
5495 # or remarks (even with -Werror). So we grep stderr for any message
5496 # that says an option was ignored or not supported.
5497 # When given -MP, icc 7.0 and 7.1 complain thusly:
5498 # icc: Command line warning: ignoring option '-M'; no argument required
5499 # The diagnosis changed in icc 8.0:
5500 # icc: Command line remark: option '-MP' not supported
5501 if (grep 'ignoring option' conftest.err ||
5502 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5503 am_cv_GCJ_dependencies_compiler_type=$depmode
5504 break
5507 done
5509 cd ..
5510 rm -rf conftest.dir
5511 else
5512 am_cv_GCJ_dependencies_compiler_type=none
5516 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
5517 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
5518 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
5523 test "x$enable_dependency_tracking" != xno \
5524 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
5525 am__fastdepGCJ_TRUE=
5526 am__fastdepGCJ_FALSE='#'
5527 else
5528 am__fastdepGCJ_TRUE='#'
5529 am__fastdepGCJ_FALSE=
5535 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
5536 lt_save_CC="$CC"
5537 lt_save_CFLAGS="$CFLAGS"
5538 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
5539 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5540 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5541 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5542 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5543 deplibs_check_method="$deplibs_check_method" \
5544 file_magic_cmd="$file_magic_cmd" \
5545 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5546 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
5547 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5548 echo "$as_me: error: libtool tag configuration failed" >&2;}
5549 { (exit 1); exit 1; }; }
5550 CC="$lt_save_CC"
5551 CFLAGS="$lt_save_CFLAGS"
5553 # Redirect the config.log output again, so that the ltconfig log is not
5554 # clobbered by the next message.
5555 exec 5>>./config.log
5559 if test "x$CC" != xcc; then
5560 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5561 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
5562 else
5563 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5564 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
5566 set dummy $CC; ac_cc=`echo $2 |
5567 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5568 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
5569 echo $ECHO_N "(cached) $ECHO_C" >&6
5570 else
5571 cat >conftest.$ac_ext <<_ACEOF
5572 /* confdefs.h. */
5573 _ACEOF
5574 cat confdefs.h >>conftest.$ac_ext
5575 cat >>conftest.$ac_ext <<_ACEOF
5576 /* end confdefs.h. */
5579 main ()
5583 return 0;
5585 _ACEOF
5586 # Make sure it works both with $CC and with simple cc.
5587 # We do the test twice because some compilers refuse to overwrite an
5588 # existing .o file with -o, though they will create one.
5589 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5590 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5591 (eval $ac_try) 2>&5
5592 ac_status=$?
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); } &&
5595 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5596 (eval $ac_try) 2>&5
5597 ac_status=$?
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); };
5600 then
5601 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5602 if test "x$CC" != xcc; then
5603 # Test first that cc exists at all.
5604 if { ac_try='cc -c conftest.$ac_ext >&5'
5605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5606 (eval $ac_try) 2>&5
5607 ac_status=$?
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); }; }; then
5610 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5611 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5612 (eval $ac_try) 2>&5
5613 ac_status=$?
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); } &&
5616 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5617 (eval $ac_try) 2>&5
5618 ac_status=$?
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); };
5621 then
5622 # cc works too.
5624 else
5625 # cc exists but doesn't like -o.
5626 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5630 else
5631 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5633 rm -f conftest*
5636 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
5637 echo "$as_me:$LINENO: result: yes" >&5
5638 echo "${ECHO_T}yes" >&6
5639 else
5640 echo "$as_me:$LINENO: result: no" >&5
5641 echo "${ECHO_T}no" >&6
5643 cat >>confdefs.h <<\_ACEOF
5644 #define NO_MINUS_C_MINUS_O 1
5645 _ACEOF
5649 # FIXME: we rely on the cache variable name because
5650 # there is no other way.
5651 set dummy $CC
5652 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5653 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
5654 # Losing compiler, so override with the script.
5655 # FIXME: It is wrong to rewrite CC.
5656 # But if we don't then we get into trouble of one sort or another.
5657 # A longer-term fix would be to have automake use am__CC in this case,
5658 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5659 CC="$am_aux_dir/compile $CC"
5664 subdirs="$subdirs libltdl"
5667 # The -no-testsuite modules omit the test subdir.
5670 if test -d $srcdir/testsuite; then
5671 TESTSUBDIR_TRUE=
5672 TESTSUBDIR_FALSE='#'
5673 else
5674 TESTSUBDIR_TRUE='#'
5675 TESTSUBDIR_FALSE=
5679 # Should the runtime set system properties by examining the
5680 # environment variable GCJ_PROPERTIES?
5681 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
5682 if test "${enable_getenv_properties+set}" = set; then
5683 enableval="$enable_getenv_properties"
5687 # Whether GCJ_PROPERTIES is used depends on the target.
5688 if test -z "$enable_getenv_properties"; then
5689 enable_getenv_properties=${enable_getenv_properties_default-yes}
5691 if test "$enable_getenv_properties" = no; then
5693 cat >>confdefs.h <<\_ACEOF
5694 #define DISABLE_GETENV_PROPERTIES 1
5695 _ACEOF
5699 # Whether we should use arguments to main()
5700 if test -z "$enable_main_args"; then
5701 enable_main_args=${enable_main_args_default-yes}
5703 if test "$enable_main_args" = no; then
5705 cat >>confdefs.h <<\_ACEOF
5706 #define DISABLE_MAIN_ARGS 1
5707 _ACEOF
5712 # Should we use hashtable-based synchronization?
5713 # Currently works only for Linux X86/ia64
5714 # Typically faster and more space-efficient
5715 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
5716 if test "${enable_hash_synchronization+set}" = set; then
5717 enableval="$enable_hash_synchronization"
5721 if test -z "$enable_hash_synchronization"; then
5722 enable_hash_synchronization=$enable_hash_synchronization_default
5726 # Check whether --with-java-home or --without-java-home was given.
5727 if test "${with_java_home+set}" = set; then
5728 withval="$with_java_home"
5729 JAVA_HOME="${withval}"
5730 else
5731 JAVA_HOME=""
5735 if test ! -z "$JAVA_HOME"; then
5736 JAVA_HOME_SET_TRUE=
5737 JAVA_HOME_SET_FALSE='#'
5738 else
5739 JAVA_HOME_SET_TRUE='#'
5740 JAVA_HOME_SET_FALSE=
5745 # What is the native OS API for MinGW?
5747 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
5748 if test "${with_win32_nlsapi+set}" = set; then
5749 withval="$with_win32_nlsapi"
5750 case "${withval}" in
5751 ansi) with_win32_nlsapi=ansi ;;
5752 unicows) with_win32_nlsapi=unicows ;;
5753 unicode) with_win32_nlsapi=unicode ;;
5754 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
5755 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
5756 { (exit 1); exit 1; }; } ;;
5757 esac
5758 else
5759 with_win32_nlsapi=ansi
5762 case "${with_win32_nlsapi}" in
5763 unicows | unicode)
5765 cat >>confdefs.h <<\_ACEOF
5766 #define MINGW_LIBGCJ_UNICODE 1
5767 _ACEOF
5770 esac
5772 # configure.host sets slow_pthread_self if the synchronization code should
5773 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
5774 if test "${slow_pthread_self}" = "yes"; then
5776 cat >>confdefs.h <<\_ACEOF
5777 #define SLOW_PTHREAD_SELF 1
5778 _ACEOF
5783 # See if the user has requested runtime debugging.
5784 LIBGCJDEBUG="false"
5786 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
5787 if test "${enable_libgcj_debug+set}" = set; then
5788 enableval="$enable_libgcj_debug"
5789 if test "$enable_libgcj_debug" = yes; then
5791 cat >>confdefs.h <<\_ACEOF
5792 #define DEBUG 1
5793 _ACEOF
5795 LIBGCJDEBUG="true"
5799 # Check for gc debugging. This option is handled both here and in the GC.
5800 # Check whether --enable-gc-debug or --disable-gc-debug was given.
5801 if test "${enable_gc_debug+set}" = set; then
5802 enableval="$enable_gc_debug"
5803 if test "$enable_gc_debug" = "yes"; then
5805 cat >>confdefs.h <<\_ACEOF
5806 #define LIBGCJ_GC_DEBUG 1
5807 _ACEOF
5812 # See if the user has the interpreter included.
5813 # Check whether --enable-interpreter or --disable-interpreter was given.
5814 if test "${enable_interpreter+set}" = set; then
5815 enableval="$enable_interpreter"
5816 if test "$enable_interpreter" = yes; then
5817 # This can also be set in configure.host.
5818 libgcj_interpreter=yes
5819 elif test "$enable_interpreter" = no; then
5820 libgcj_interpreter=no
5824 if test "$libgcj_interpreter" = yes; then
5826 cat >>confdefs.h <<\_ACEOF
5827 #define INTERPRETER 1
5828 _ACEOF
5831 INTERPRETER="$libgcj_interpreter"
5834 echo "$as_me:$LINENO: checking for exception model to use" >&5
5835 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
5836 ac_ext=cc
5837 ac_cpp='$CXXCPP $CPPFLAGS'
5838 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5839 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5840 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5842 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
5843 if test "${enable_sjlj_exceptions+set}" = set; then
5844 enableval="$enable_sjlj_exceptions"
5846 else
5847 cat > conftest.$ac_ext << EOF
5848 #line 5848 "configure"
5849 struct S { ~S(); };
5850 void bar();
5851 void foo()
5853 S s;
5854 bar();
5857 old_CXXFLAGS="$CXXFLAGS"
5858 CXXFLAGS=-S
5859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5860 (eval $ac_compile) 2>&5
5861 ac_status=$?
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); }; then
5864 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
5865 enable_sjlj_exceptions=yes
5866 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
5867 enable_sjlj_exceptions=no
5870 CXXFLAGS="$old_CXXFLAGS"
5871 rm -f conftest*
5873 if test x$enable_sjlj_exceptions = xyes; then
5875 cat >>confdefs.h <<\_ACEOF
5876 #define SJLJ_EXCEPTIONS 1
5877 _ACEOF
5879 ac_exception_model_name=sjlj
5880 elif test x$enable_sjlj_exceptions = xno; then
5881 ac_exception_model_name="call frame"
5882 else
5883 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
5884 echo "$as_me: error: unable to detect exception model" >&2;}
5885 { (exit 1); exit 1; }; }
5887 ac_ext=c
5888 ac_cpp='$CPP $CPPFLAGS'
5889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5893 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
5894 echo "${ECHO_T}$ac_exception_model_name" >&6
5896 # If we are non using SJLJ exceptions, and this host does not have support
5897 # for unwinding from a signal handler, enable checked dereferences and divides.
5898 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
5899 CHECKREFSPEC=-fcheck-references
5900 DIVIDESPEC=-fuse-divide-subroutine
5901 EXCEPTIONSPEC=
5904 # See if the user wants to disable java.net. This is the mildly
5905 # ugly way that we admit that target-side configuration sucks.
5906 # Check whether --enable-java-net or --disable-java-net was given.
5907 if test "${enable_java_net+set}" = set; then
5908 enableval="$enable_java_net"
5912 # Whether java.net is built by default can depend on the target.
5913 if test -z "$enable_java_net"; then
5914 enable_java_net=${enable_java_net_default-yes}
5916 if test "$enable_java_net" = no; then
5918 cat >>confdefs.h <<\_ACEOF
5919 #define DISABLE_JAVA_NET 1
5920 _ACEOF
5924 # See if the user wants to configure without libffi. Some
5925 # architectures don't support it, and default values are set in
5926 # configure.host.
5928 # Check whether --with-libffi or --without-libffi was given.
5929 if test "${with_libffi+set}" = set; then
5930 withval="$with_libffi"
5932 else
5933 with_libffi=${with_libffi_default-yes}
5936 LIBFFI=
5937 LIBFFIINCS=
5938 if test "$with_libffi" != no; then
5940 cat >>confdefs.h <<\_ACEOF
5941 #define USE_LIBFFI 1
5942 _ACEOF
5944 LIBFFI=../libffi/libffi_convenience.la
5945 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
5950 # See if the user wants to disable JVMPI support.
5951 # Check whether --enable-jvmpi or --disable-jvmpi was given.
5952 if test "${enable_jvmpi+set}" = set; then
5953 enableval="$enable_jvmpi"
5957 if test "$enable_jvmpi" != no; then
5959 cat >>confdefs.h <<\_ACEOF
5960 #define ENABLE_JVMPI 1
5961 _ACEOF
5965 # If the target is an eCos system, use the appropriate eCos
5966 # I/O routines.
5967 # FIXME: this should not be a local option but a global target
5968 # system; at present there is no eCos target.
5969 TARGET_ECOS=${PROCESS-"no"}
5971 # Check whether --with-ecos or --without-ecos was given.
5972 if test "${with_ecos+set}" = set; then
5973 withval="$with_ecos"
5974 TARGET_ECOS="$with_ecos"
5978 supply_backtrace=no
5980 PLATFORM_INNER_NAT_HDRS=
5981 case "$TARGET_ECOS" in
5982 no) case "$host" in
5983 *mingw*)
5984 PLATFORM=Win32
5985 PLATFORMNET=Win32
5986 PLATFORMH=win32.h
5988 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
5989 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
5990 LD_PROG=`$CC --print-prog-name=ld`
5991 LD_VERSION=`$LD_PROG --version`
5992 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
5993 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
5994 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
5995 LD_OK="ok"
5996 else
5997 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
5998 LD_OK="ok"
6001 if test "x$LD_OK" != x; then
6002 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
6003 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
6004 else
6005 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
6006 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
6007 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
6008 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
6010 cat >>confdefs.h <<\_ACEOF
6011 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
6012 _ACEOF
6017 PLATFORM=Posix
6018 PLATFORMNET=Posix
6019 PLATFORMH=posix.h
6020 PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
6022 esac
6025 PLATFORM=Ecos
6026 PLATFORMNET=NoNet
6028 cat >>confdefs.h <<\_ACEOF
6029 #define ECOS 1
6030 _ACEOF
6032 PLATFORMH=posix.h
6034 esac
6036 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
6039 ac_ext=c
6040 ac_cpp='$CPP $CPPFLAGS'
6041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6044 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6045 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6046 # On Suns, sometimes $CPP names a directory.
6047 if test -n "$CPP" && test -d "$CPP"; then
6048 CPP=
6050 if test -z "$CPP"; then
6051 if test "${ac_cv_prog_CPP+set}" = set; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
6053 else
6054 # Double quotes because CPP needs to be expanded
6055 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6057 ac_preproc_ok=false
6058 for ac_c_preproc_warn_flag in '' yes
6060 # Use a header file that comes with gcc, so configuring glibc
6061 # with a fresh cross-compiler works.
6062 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6063 # <limits.h> exists even on freestanding compilers.
6064 # On the NeXT, cc -E runs the code through the compiler's parser,
6065 # not just through cpp. "Syntax error" is here to catch this case.
6066 cat >conftest.$ac_ext <<_ACEOF
6067 /* confdefs.h. */
6068 _ACEOF
6069 cat confdefs.h >>conftest.$ac_ext
6070 cat >>conftest.$ac_ext <<_ACEOF
6071 /* end confdefs.h. */
6072 #ifdef __STDC__
6073 # include <limits.h>
6074 #else
6075 # include <assert.h>
6076 #endif
6077 Syntax error
6078 _ACEOF
6079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6080 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6081 ac_status=$?
6082 grep -v '^ *+' conftest.er1 >conftest.err
6083 rm -f conftest.er1
6084 cat conftest.err >&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); } >/dev/null; then
6087 if test -s conftest.err; then
6088 ac_cpp_err=$ac_c_preproc_warn_flag
6089 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6090 else
6091 ac_cpp_err=
6093 else
6094 ac_cpp_err=yes
6096 if test -z "$ac_cpp_err"; then
6098 else
6099 echo "$as_me: failed program was:" >&5
6100 sed 's/^/| /' conftest.$ac_ext >&5
6102 # Broken: fails on valid input.
6103 continue
6105 rm -f conftest.err conftest.$ac_ext
6107 # OK, works on sane cases. Now check whether non-existent headers
6108 # can be detected and how.
6109 cat >conftest.$ac_ext <<_ACEOF
6110 /* confdefs.h. */
6111 _ACEOF
6112 cat confdefs.h >>conftest.$ac_ext
6113 cat >>conftest.$ac_ext <<_ACEOF
6114 /* end confdefs.h. */
6115 #include <ac_nonexistent.h>
6116 _ACEOF
6117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6118 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6119 ac_status=$?
6120 grep -v '^ *+' conftest.er1 >conftest.err
6121 rm -f conftest.er1
6122 cat conftest.err >&5
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); } >/dev/null; then
6125 if test -s conftest.err; then
6126 ac_cpp_err=$ac_c_preproc_warn_flag
6127 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6128 else
6129 ac_cpp_err=
6131 else
6132 ac_cpp_err=yes
6134 if test -z "$ac_cpp_err"; then
6135 # Broken: success on invalid input.
6136 continue
6137 else
6138 echo "$as_me: failed program was:" >&5
6139 sed 's/^/| /' conftest.$ac_ext >&5
6141 # Passes both tests.
6142 ac_preproc_ok=:
6143 break
6145 rm -f conftest.err conftest.$ac_ext
6147 done
6148 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6149 rm -f conftest.err conftest.$ac_ext
6150 if $ac_preproc_ok; then
6151 break
6154 done
6155 ac_cv_prog_CPP=$CPP
6158 CPP=$ac_cv_prog_CPP
6159 else
6160 ac_cv_prog_CPP=$CPP
6162 echo "$as_me:$LINENO: result: $CPP" >&5
6163 echo "${ECHO_T}$CPP" >&6
6164 ac_preproc_ok=false
6165 for ac_c_preproc_warn_flag in '' yes
6167 # Use a header file that comes with gcc, so configuring glibc
6168 # with a fresh cross-compiler works.
6169 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6170 # <limits.h> exists even on freestanding compilers.
6171 # On the NeXT, cc -E runs the code through the compiler's parser,
6172 # not just through cpp. "Syntax error" is here to catch this case.
6173 cat >conftest.$ac_ext <<_ACEOF
6174 /* confdefs.h. */
6175 _ACEOF
6176 cat confdefs.h >>conftest.$ac_ext
6177 cat >>conftest.$ac_ext <<_ACEOF
6178 /* end confdefs.h. */
6179 #ifdef __STDC__
6180 # include <limits.h>
6181 #else
6182 # include <assert.h>
6183 #endif
6184 Syntax error
6185 _ACEOF
6186 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6187 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6188 ac_status=$?
6189 grep -v '^ *+' conftest.er1 >conftest.err
6190 rm -f conftest.er1
6191 cat conftest.err >&5
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); } >/dev/null; then
6194 if test -s conftest.err; then
6195 ac_cpp_err=$ac_c_preproc_warn_flag
6196 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6197 else
6198 ac_cpp_err=
6200 else
6201 ac_cpp_err=yes
6203 if test -z "$ac_cpp_err"; then
6205 else
6206 echo "$as_me: failed program was:" >&5
6207 sed 's/^/| /' conftest.$ac_ext >&5
6209 # Broken: fails on valid input.
6210 continue
6212 rm -f conftest.err conftest.$ac_ext
6214 # OK, works on sane cases. Now check whether non-existent headers
6215 # can be detected and how.
6216 cat >conftest.$ac_ext <<_ACEOF
6217 /* confdefs.h. */
6218 _ACEOF
6219 cat confdefs.h >>conftest.$ac_ext
6220 cat >>conftest.$ac_ext <<_ACEOF
6221 /* end confdefs.h. */
6222 #include <ac_nonexistent.h>
6223 _ACEOF
6224 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6225 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6226 ac_status=$?
6227 grep -v '^ *+' conftest.er1 >conftest.err
6228 rm -f conftest.er1
6229 cat conftest.err >&5
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); } >/dev/null; then
6232 if test -s conftest.err; then
6233 ac_cpp_err=$ac_c_preproc_warn_flag
6234 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6235 else
6236 ac_cpp_err=
6238 else
6239 ac_cpp_err=yes
6241 if test -z "$ac_cpp_err"; then
6242 # Broken: success on invalid input.
6243 continue
6244 else
6245 echo "$as_me: failed program was:" >&5
6246 sed 's/^/| /' conftest.$ac_ext >&5
6248 # Passes both tests.
6249 ac_preproc_ok=:
6250 break
6252 rm -f conftest.err conftest.$ac_ext
6254 done
6255 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6256 rm -f conftest.err conftest.$ac_ext
6257 if $ac_preproc_ok; then
6259 else
6260 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6261 See \`config.log' for more details." >&5
6262 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6263 See \`config.log' for more details." >&2;}
6264 { (exit 1); exit 1; }; }
6267 ac_ext=c
6268 ac_cpp='$CPP $CPPFLAGS'
6269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6274 echo "$as_me:$LINENO: checking for egrep" >&5
6275 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6276 if test "${ac_cv_prog_egrep+set}" = set; then
6277 echo $ECHO_N "(cached) $ECHO_C" >&6
6278 else
6279 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6280 then ac_cv_prog_egrep='grep -E'
6281 else ac_cv_prog_egrep='egrep'
6284 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6285 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6286 EGREP=$ac_cv_prog_egrep
6289 cat >conftest.$ac_ext <<_ACEOF
6290 /* confdefs.h. */
6291 _ACEOF
6292 cat confdefs.h >>conftest.$ac_ext
6293 cat >>conftest.$ac_ext <<_ACEOF
6294 /* end confdefs.h. */
6295 #include <stdint.h>
6297 _ACEOF
6298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6299 $EGREP "uint32_t" >/dev/null 2>&1; then
6301 cat >>confdefs.h <<\_ACEOF
6302 #define HAVE_INT32_DEFINED 1
6303 _ACEOF
6306 rm -f conftest*
6308 cat >conftest.$ac_ext <<_ACEOF
6309 /* confdefs.h. */
6310 _ACEOF
6311 cat confdefs.h >>conftest.$ac_ext
6312 cat >>conftest.$ac_ext <<_ACEOF
6313 /* end confdefs.h. */
6314 #include <inttypes.h>
6316 _ACEOF
6317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6318 $EGREP "uint32_t" >/dev/null 2>&1; then
6320 cat >>confdefs.h <<\_ACEOF
6321 #define HAVE_INT32_DEFINED 1
6322 _ACEOF
6325 rm -f conftest*
6327 cat >conftest.$ac_ext <<_ACEOF
6328 /* confdefs.h. */
6329 _ACEOF
6330 cat confdefs.h >>conftest.$ac_ext
6331 cat >>conftest.$ac_ext <<_ACEOF
6332 /* end confdefs.h. */
6333 #include <sys/types.h>
6335 _ACEOF
6336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6337 $EGREP "u_int32_t" >/dev/null 2>&1; then
6339 cat >>confdefs.h <<\_ACEOF
6340 #define HAVE_BSD_INT32_DEFINED 1
6341 _ACEOF
6344 rm -f conftest*
6346 cat >conftest.$ac_ext <<_ACEOF
6347 /* confdefs.h. */
6348 _ACEOF
6349 cat confdefs.h >>conftest.$ac_ext
6350 cat >>conftest.$ac_ext <<_ACEOF
6351 /* end confdefs.h. */
6352 #include <sys/config.h>
6354 _ACEOF
6355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6356 $EGREP "u_int32_t" >/dev/null 2>&1; then
6358 cat >>confdefs.h <<\_ACEOF
6359 #define HAVE_BSD_INT32_DEFINED 1
6360 _ACEOF
6363 rm -f conftest*
6368 if test "$PLATFORM" = Win32; then
6369 USING_WIN32_PLATFORM_TRUE=
6370 USING_WIN32_PLATFORM_FALSE='#'
6371 else
6372 USING_WIN32_PLATFORM_TRUE='#'
6373 USING_WIN32_PLATFORM_FALSE=
6378 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
6379 USING_POSIX_PLATFORM_TRUE=
6380 USING_POSIX_PLATFORM_FALSE='#'
6381 else
6382 USING_POSIX_PLATFORM_TRUE='#'
6383 USING_POSIX_PLATFORM_FALSE=
6387 case "$host" in
6388 *-darwin*) DARWIN_CRT=true ;;
6389 *) DARWIN_CRT=false ;;
6390 esac
6393 if $DARWIN_CRT; then
6394 USING_DARWIN_CRT_TRUE=
6395 USING_DARWIN_CRT_FALSE='#'
6396 else
6397 USING_DARWIN_CRT_TRUE='#'
6398 USING_DARWIN_CRT_FALSE=
6402 # These may not be defined in a non-ANS conformant embedded system.
6403 # FIXME: Should these case a runtime exception in that case?
6404 cat >conftest.$ac_ext <<_ACEOF
6405 /* confdefs.h. */
6406 _ACEOF
6407 cat confdefs.h >>conftest.$ac_ext
6408 cat >>conftest.$ac_ext <<_ACEOF
6409 /* end confdefs.h. */
6410 #include <time.h>
6412 _ACEOF
6413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6414 $EGREP "mktime" >/dev/null 2>&1; then
6416 cat >>confdefs.h <<\_ACEOF
6417 #define HAVE_MKTIME 1
6418 _ACEOF
6421 rm -f conftest*
6423 cat >conftest.$ac_ext <<_ACEOF
6424 /* confdefs.h. */
6425 _ACEOF
6426 cat confdefs.h >>conftest.$ac_ext
6427 cat >>conftest.$ac_ext <<_ACEOF
6428 /* end confdefs.h. */
6429 #include <time.h>
6431 _ACEOF
6432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6433 $EGREP "localtime" >/dev/null 2>&1; then
6435 cat >>confdefs.h <<\_ACEOF
6436 #define HAVE_LOCALTIME 1
6437 _ACEOF
6440 rm -f conftest*
6443 # Create the subdirectory for natFile.cc, or the attempt
6444 # to create the link will fail.
6445 test -d java || mkdir java
6446 test -d java/io || mkdir java/io
6447 test -d gnu || mkdir gnu
6448 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
6451 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
6452 test -d java/lang || mkdir java/lang
6453 ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
6455 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
6458 # Likewise for natInetAddress.cc and natVMNetworkInterface.cc.
6459 test -d java/net || mkdir java/net
6460 ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
6462 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
6465 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
6466 test -d gnu/java || mkdir gnu/java
6467 test -d gnu/java/net || mkdir gnu/java/net
6468 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
6470 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
6473 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
6474 test -d gnu/java/nio || mkdir gnu/java/nio
6475 ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
6477 ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
6479 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
6480 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
6483 case "${host}" in
6484 *mingw*)
6485 SYSTEMSPEC="-lgdi32 -lws2_32"
6486 if test "${with_win32_nlsapi}" = "unicows"; then
6487 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
6491 SYSTEMSPEC=
6493 esac
6496 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
6500 # Check whether --with-system-zlib or --without-system-zlib was given.
6501 if test "${with_system_zlib+set}" = set; then
6502 withval="$with_system_zlib"
6505 ZLIBSPEC=
6507 ZLIBTESTSPEC=
6510 echo "$as_me:$LINENO: checking for X" >&5
6511 echo $ECHO_N "checking for X... $ECHO_C" >&6
6514 # Check whether --with-x or --without-x was given.
6515 if test "${with_x+set}" = set; then
6516 withval="$with_x"
6519 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6520 if test "x$with_x" = xno; then
6521 # The user explicitly disabled X.
6522 have_x=disabled
6523 else
6524 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6525 # Both variables are already set.
6526 have_x=yes
6527 else
6528 if test "${ac_cv_have_x+set}" = set; then
6529 echo $ECHO_N "(cached) $ECHO_C" >&6
6530 else
6531 # One or both of the vars are not set, and there is no cached value.
6532 ac_x_includes=no ac_x_libraries=no
6533 rm -fr conftest.dir
6534 if mkdir conftest.dir; then
6535 cd conftest.dir
6536 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6537 cat >Imakefile <<'_ACEOF'
6538 acfindx:
6539 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6540 _ACEOF
6541 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6542 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6543 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6544 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6545 for ac_extension in a so sl; do
6546 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6547 test -f $ac_im_libdir/libX11.$ac_extension; then
6548 ac_im_usrlibdir=$ac_im_libdir; break
6550 done
6551 # Screen out bogus values from the imake configuration. They are
6552 # bogus both because they are the default anyway, and because
6553 # using them would break gcc on systems where it needs fixed includes.
6554 case $ac_im_incroot in
6555 /usr/include) ;;
6556 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6557 esac
6558 case $ac_im_usrlibdir in
6559 /usr/lib | /lib) ;;
6560 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6561 esac
6563 cd ..
6564 rm -fr conftest.dir
6567 # Standard set of common directories for X headers.
6568 # Check X11 before X11Rn because it is often a symlink to the current release.
6569 ac_x_header_dirs='
6570 /usr/X11/include
6571 /usr/X11R6/include
6572 /usr/X11R5/include
6573 /usr/X11R4/include
6575 /usr/include/X11
6576 /usr/include/X11R6
6577 /usr/include/X11R5
6578 /usr/include/X11R4
6580 /usr/local/X11/include
6581 /usr/local/X11R6/include
6582 /usr/local/X11R5/include
6583 /usr/local/X11R4/include
6585 /usr/local/include/X11
6586 /usr/local/include/X11R6
6587 /usr/local/include/X11R5
6588 /usr/local/include/X11R4
6590 /usr/X386/include
6591 /usr/x386/include
6592 /usr/XFree86/include/X11
6594 /usr/include
6595 /usr/local/include
6596 /usr/unsupported/include
6597 /usr/athena/include
6598 /usr/local/x11r5/include
6599 /usr/lpp/Xamples/include
6601 /usr/openwin/include
6602 /usr/openwin/share/include'
6604 if test "$ac_x_includes" = no; then
6605 # Guess where to find include files, by looking for Intrinsic.h.
6606 # First, try using that file with no special directory specified.
6607 cat >conftest.$ac_ext <<_ACEOF
6608 /* confdefs.h. */
6609 _ACEOF
6610 cat confdefs.h >>conftest.$ac_ext
6611 cat >>conftest.$ac_ext <<_ACEOF
6612 /* end confdefs.h. */
6613 #include <X11/Intrinsic.h>
6614 _ACEOF
6615 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6616 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6617 ac_status=$?
6618 grep -v '^ *+' conftest.er1 >conftest.err
6619 rm -f conftest.er1
6620 cat conftest.err >&5
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); } >/dev/null; then
6623 if test -s conftest.err; then
6624 ac_cpp_err=$ac_c_preproc_warn_flag
6625 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6626 else
6627 ac_cpp_err=
6629 else
6630 ac_cpp_err=yes
6632 if test -z "$ac_cpp_err"; then
6633 # We can compile using X headers with no special include directory.
6634 ac_x_includes=
6635 else
6636 echo "$as_me: failed program was:" >&5
6637 sed 's/^/| /' conftest.$ac_ext >&5
6639 for ac_dir in $ac_x_header_dirs; do
6640 if test -r "$ac_dir/X11/Intrinsic.h"; then
6641 ac_x_includes=$ac_dir
6642 break
6644 done
6646 rm -f conftest.err conftest.$ac_ext
6647 fi # $ac_x_includes = no
6649 if test "$ac_x_libraries" = no; then
6650 # Check for the libraries.
6651 # See if we find them without any special options.
6652 # Don't add to $LIBS permanently.
6653 ac_save_LIBS=$LIBS
6654 LIBS="-lXt $LIBS"
6655 if test x$gcc_no_link = xyes; then
6656 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6657 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6658 { (exit 1); exit 1; }; }
6660 cat >conftest.$ac_ext <<_ACEOF
6661 /* confdefs.h. */
6662 _ACEOF
6663 cat confdefs.h >>conftest.$ac_ext
6664 cat >>conftest.$ac_ext <<_ACEOF
6665 /* end confdefs.h. */
6666 #include <X11/Intrinsic.h>
6668 main ()
6670 XtMalloc (0)
6672 return 0;
6674 _ACEOF
6675 rm -f conftest.$ac_objext conftest$ac_exeext
6676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6677 (eval $ac_link) 2>conftest.er1
6678 ac_status=$?
6679 grep -v '^ *+' conftest.er1 >conftest.err
6680 rm -f conftest.er1
6681 cat conftest.err >&5
6682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); } &&
6684 { ac_try='test -z "$ac_c_werror_flag"
6685 || test ! -s conftest.err'
6686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6687 (eval $ac_try) 2>&5
6688 ac_status=$?
6689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690 (exit $ac_status); }; } &&
6691 { ac_try='test -s conftest$ac_exeext'
6692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6693 (eval $ac_try) 2>&5
6694 ac_status=$?
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); }; }; then
6697 LIBS=$ac_save_LIBS
6698 # We can link X programs with no special library path.
6699 ac_x_libraries=
6700 else
6701 echo "$as_me: failed program was:" >&5
6702 sed 's/^/| /' conftest.$ac_ext >&5
6704 LIBS=$ac_save_LIBS
6705 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6707 # Don't even attempt the hair of trying to link an X program!
6708 for ac_extension in a so sl; do
6709 if test -r $ac_dir/libXt.$ac_extension; then
6710 ac_x_libraries=$ac_dir
6711 break 2
6713 done
6714 done
6716 rm -f conftest.err conftest.$ac_objext \
6717 conftest$ac_exeext conftest.$ac_ext
6718 fi # $ac_x_libraries = no
6720 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6721 # Didn't find X anywhere. Cache the known absence of X.
6722 ac_cv_have_x="have_x=no"
6723 else
6724 # Record where we found X for the cache.
6725 ac_cv_have_x="have_x=yes \
6726 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6731 eval "$ac_cv_have_x"
6732 fi # $with_x != no
6734 if test "$have_x" != yes; then
6735 echo "$as_me:$LINENO: result: $have_x" >&5
6736 echo "${ECHO_T}$have_x" >&6
6737 no_x=yes
6738 else
6739 # If each of the values was on the command line, it overrides each guess.
6740 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6741 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6742 # Update the cache value to reflect the command line values.
6743 ac_cv_have_x="have_x=yes \
6744 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6745 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6746 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6749 if test "$no_x" = yes; then
6750 # Not all programs may use this symbol, but it does not hurt to define it.
6752 cat >>confdefs.h <<\_ACEOF
6753 #define X_DISPLAY_MISSING 1
6754 _ACEOF
6756 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6757 else
6758 if test -n "$x_includes"; then
6759 X_CFLAGS="$X_CFLAGS -I$x_includes"
6762 # It would also be nice to do this for all -L options, not just this one.
6763 if test -n "$x_libraries"; then
6764 X_LIBS="$X_LIBS -L$x_libraries"
6765 # For Solaris; some versions of Sun CC require a space after -R and
6766 # others require no space. Words are not sufficient . . . .
6767 case `(uname -sr) 2>/dev/null` in
6768 "SunOS 5"*)
6769 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6770 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
6771 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6772 if test x$gcc_no_link = xyes; then
6773 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6774 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6775 { (exit 1); exit 1; }; }
6777 cat >conftest.$ac_ext <<_ACEOF
6778 /* confdefs.h. */
6779 _ACEOF
6780 cat confdefs.h >>conftest.$ac_ext
6781 cat >>conftest.$ac_ext <<_ACEOF
6782 /* end confdefs.h. */
6785 main ()
6789 return 0;
6791 _ACEOF
6792 rm -f conftest.$ac_objext conftest$ac_exeext
6793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6794 (eval $ac_link) 2>conftest.er1
6795 ac_status=$?
6796 grep -v '^ *+' conftest.er1 >conftest.err
6797 rm -f conftest.er1
6798 cat conftest.err >&5
6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); } &&
6801 { ac_try='test -z "$ac_c_werror_flag"
6802 || test ! -s conftest.err'
6803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6804 (eval $ac_try) 2>&5
6805 ac_status=$?
6806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807 (exit $ac_status); }; } &&
6808 { ac_try='test -s conftest$ac_exeext'
6809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6810 (eval $ac_try) 2>&5
6811 ac_status=$?
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); }; }; then
6814 ac_R_nospace=yes
6815 else
6816 echo "$as_me: failed program was:" >&5
6817 sed 's/^/| /' conftest.$ac_ext >&5
6819 ac_R_nospace=no
6821 rm -f conftest.err conftest.$ac_objext \
6822 conftest$ac_exeext conftest.$ac_ext
6823 if test $ac_R_nospace = yes; then
6824 echo "$as_me:$LINENO: result: no" >&5
6825 echo "${ECHO_T}no" >&6
6826 X_LIBS="$X_LIBS -R$x_libraries"
6827 else
6828 LIBS="$ac_xsave_LIBS -R $x_libraries"
6829 if test x$gcc_no_link = xyes; then
6830 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6831 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6832 { (exit 1); exit 1; }; }
6834 cat >conftest.$ac_ext <<_ACEOF
6835 /* confdefs.h. */
6836 _ACEOF
6837 cat confdefs.h >>conftest.$ac_ext
6838 cat >>conftest.$ac_ext <<_ACEOF
6839 /* end confdefs.h. */
6842 main ()
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"
6859 || test ! -s conftest.err'
6860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6861 (eval $ac_try) 2>&5
6862 ac_status=$?
6863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864 (exit $ac_status); }; } &&
6865 { ac_try='test -s conftest$ac_exeext'
6866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6867 (eval $ac_try) 2>&5
6868 ac_status=$?
6869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870 (exit $ac_status); }; }; then
6871 ac_R_space=yes
6872 else
6873 echo "$as_me: failed program was:" >&5
6874 sed 's/^/| /' conftest.$ac_ext >&5
6876 ac_R_space=no
6878 rm -f conftest.err conftest.$ac_objext \
6879 conftest$ac_exeext conftest.$ac_ext
6880 if test $ac_R_space = yes; then
6881 echo "$as_me:$LINENO: result: yes" >&5
6882 echo "${ECHO_T}yes" >&6
6883 X_LIBS="$X_LIBS -R $x_libraries"
6884 else
6885 echo "$as_me:$LINENO: result: neither works" >&5
6886 echo "${ECHO_T}neither works" >&6
6889 LIBS=$ac_xsave_LIBS
6890 esac
6893 # Check for system-dependent libraries X programs must link with.
6894 # Do this before checking for the system-independent R6 libraries
6895 # (-lICE), since we may need -lsocket or whatever for X linking.
6897 if test "$ISC" = yes; then
6898 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6899 else
6900 # Martyn Johnson says this is needed for Ultrix, if the X
6901 # libraries were built with DECnet support. And Karl Berry says
6902 # the Alpha needs dnet_stub (dnet does not exist).
6903 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6904 if test x$gcc_no_link = xyes; then
6905 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6906 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6907 { (exit 1); exit 1; }; }
6909 cat >conftest.$ac_ext <<_ACEOF
6910 /* confdefs.h. */
6911 _ACEOF
6912 cat confdefs.h >>conftest.$ac_ext
6913 cat >>conftest.$ac_ext <<_ACEOF
6914 /* end confdefs.h. */
6916 /* Override any gcc2 internal prototype to avoid an error. */
6917 #ifdef __cplusplus
6918 extern "C"
6919 #endif
6920 /* We use char because int might match the return type of a gcc2
6921 builtin and then its argument prototype would still apply. */
6922 char XOpenDisplay ();
6924 main ()
6926 XOpenDisplay ();
6928 return 0;
6930 _ACEOF
6931 rm -f conftest.$ac_objext conftest$ac_exeext
6932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6933 (eval $ac_link) 2>conftest.er1
6934 ac_status=$?
6935 grep -v '^ *+' conftest.er1 >conftest.err
6936 rm -f conftest.er1
6937 cat conftest.err >&5
6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); } &&
6940 { ac_try='test -z "$ac_c_werror_flag"
6941 || test ! -s conftest.err'
6942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6943 (eval $ac_try) 2>&5
6944 ac_status=$?
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); }; } &&
6947 { ac_try='test -s conftest$ac_exeext'
6948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6949 (eval $ac_try) 2>&5
6950 ac_status=$?
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); }; }; then
6954 else
6955 echo "$as_me: failed program was:" >&5
6956 sed 's/^/| /' conftest.$ac_ext >&5
6958 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6959 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6960 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6961 echo $ECHO_N "(cached) $ECHO_C" >&6
6962 else
6963 ac_check_lib_save_LIBS=$LIBS
6964 LIBS="-ldnet $LIBS"
6965 if test x$gcc_no_link = xyes; then
6966 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6967 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6968 { (exit 1); exit 1; }; }
6970 cat >conftest.$ac_ext <<_ACEOF
6971 /* confdefs.h. */
6972 _ACEOF
6973 cat confdefs.h >>conftest.$ac_ext
6974 cat >>conftest.$ac_ext <<_ACEOF
6975 /* end confdefs.h. */
6977 /* Override any gcc2 internal prototype to avoid an error. */
6978 #ifdef __cplusplus
6979 extern "C"
6980 #endif
6981 /* We use char because int might match the return type of a gcc2
6982 builtin and then its argument prototype would still apply. */
6983 char dnet_ntoa ();
6985 main ()
6987 dnet_ntoa ();
6989 return 0;
6991 _ACEOF
6992 rm -f conftest.$ac_objext conftest$ac_exeext
6993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6994 (eval $ac_link) 2>conftest.er1
6995 ac_status=$?
6996 grep -v '^ *+' conftest.er1 >conftest.err
6997 rm -f conftest.er1
6998 cat conftest.err >&5
6999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); } &&
7001 { ac_try='test -z "$ac_c_werror_flag"
7002 || test ! -s conftest.err'
7003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7004 (eval $ac_try) 2>&5
7005 ac_status=$?
7006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); }; } &&
7008 { ac_try='test -s conftest$ac_exeext'
7009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7010 (eval $ac_try) 2>&5
7011 ac_status=$?
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); }; }; then
7014 ac_cv_lib_dnet_dnet_ntoa=yes
7015 else
7016 echo "$as_me: failed program was:" >&5
7017 sed 's/^/| /' conftest.$ac_ext >&5
7019 ac_cv_lib_dnet_dnet_ntoa=no
7021 rm -f conftest.err conftest.$ac_objext \
7022 conftest$ac_exeext conftest.$ac_ext
7023 LIBS=$ac_check_lib_save_LIBS
7025 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7026 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7027 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7028 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7031 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7032 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
7033 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
7034 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
7035 echo $ECHO_N "(cached) $ECHO_C" >&6
7036 else
7037 ac_check_lib_save_LIBS=$LIBS
7038 LIBS="-ldnet_stub $LIBS"
7039 if test x$gcc_no_link = xyes; then
7040 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7041 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7042 { (exit 1); exit 1; }; }
7044 cat >conftest.$ac_ext <<_ACEOF
7045 /* confdefs.h. */
7046 _ACEOF
7047 cat confdefs.h >>conftest.$ac_ext
7048 cat >>conftest.$ac_ext <<_ACEOF
7049 /* end confdefs.h. */
7051 /* Override any gcc2 internal prototype to avoid an error. */
7052 #ifdef __cplusplus
7053 extern "C"
7054 #endif
7055 /* We use char because int might match the return type of a gcc2
7056 builtin and then its argument prototype would still apply. */
7057 char dnet_ntoa ();
7059 main ()
7061 dnet_ntoa ();
7063 return 0;
7065 _ACEOF
7066 rm -f conftest.$ac_objext conftest$ac_exeext
7067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7068 (eval $ac_link) 2>conftest.er1
7069 ac_status=$?
7070 grep -v '^ *+' conftest.er1 >conftest.err
7071 rm -f conftest.er1
7072 cat conftest.err >&5
7073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); } &&
7075 { ac_try='test -z "$ac_c_werror_flag"
7076 || test ! -s conftest.err'
7077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7078 (eval $ac_try) 2>&5
7079 ac_status=$?
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); }; } &&
7082 { ac_try='test -s conftest$ac_exeext'
7083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7084 (eval $ac_try) 2>&5
7085 ac_status=$?
7086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087 (exit $ac_status); }; }; then
7088 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7089 else
7090 echo "$as_me: failed program was:" >&5
7091 sed 's/^/| /' conftest.$ac_ext >&5
7093 ac_cv_lib_dnet_stub_dnet_ntoa=no
7095 rm -f conftest.err conftest.$ac_objext \
7096 conftest$ac_exeext conftest.$ac_ext
7097 LIBS=$ac_check_lib_save_LIBS
7099 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7100 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7101 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7102 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7107 rm -f conftest.err conftest.$ac_objext \
7108 conftest$ac_exeext conftest.$ac_ext
7109 LIBS="$ac_xsave_LIBS"
7111 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7112 # to get the SysV transport functions.
7113 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7114 # needs -lnsl.
7115 # The nsl library prevents programs from opening the X display
7116 # on Irix 5.2, according to T.E. Dickey.
7117 # The functions gethostbyname, getservbyname, and inet_addr are
7118 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7119 echo "$as_me:$LINENO: checking for gethostbyname" >&5
7120 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7121 if test "${ac_cv_func_gethostbyname+set}" = set; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7123 else
7124 if test x$gcc_no_link = xyes; then
7125 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7126 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7127 { (exit 1); exit 1; }; }
7129 cat >conftest.$ac_ext <<_ACEOF
7130 /* confdefs.h. */
7131 _ACEOF
7132 cat confdefs.h >>conftest.$ac_ext
7133 cat >>conftest.$ac_ext <<_ACEOF
7134 /* end confdefs.h. */
7135 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
7136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7137 #define gethostbyname innocuous_gethostbyname
7139 /* System header to define __stub macros and hopefully few prototypes,
7140 which can conflict with char gethostbyname (); below.
7141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7142 <limits.h> exists even on freestanding compilers. */
7144 #ifdef __STDC__
7145 # include <limits.h>
7146 #else
7147 # include <assert.h>
7148 #endif
7150 #undef gethostbyname
7152 /* Override any gcc2 internal prototype to avoid an error. */
7153 #ifdef __cplusplus
7154 extern "C"
7156 #endif
7157 /* We use char because int might match the return type of a gcc2
7158 builtin and then its argument prototype would still apply. */
7159 char gethostbyname ();
7160 /* The GNU C library defines this for functions which it implements
7161 to always fail with ENOSYS. Some functions are actually named
7162 something starting with __ and the normal name is an alias. */
7163 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7164 choke me
7165 #else
7166 char (*f) () = gethostbyname;
7167 #endif
7168 #ifdef __cplusplus
7170 #endif
7173 main ()
7175 return f != gethostbyname;
7177 return 0;
7179 _ACEOF
7180 rm -f conftest.$ac_objext conftest$ac_exeext
7181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7182 (eval $ac_link) 2>conftest.er1
7183 ac_status=$?
7184 grep -v '^ *+' conftest.er1 >conftest.err
7185 rm -f conftest.er1
7186 cat conftest.err >&5
7187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188 (exit $ac_status); } &&
7189 { ac_try='test -z "$ac_c_werror_flag"
7190 || test ! -s conftest.err'
7191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7192 (eval $ac_try) 2>&5
7193 ac_status=$?
7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); }; } &&
7196 { ac_try='test -s conftest$ac_exeext'
7197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7198 (eval $ac_try) 2>&5
7199 ac_status=$?
7200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201 (exit $ac_status); }; }; then
7202 ac_cv_func_gethostbyname=yes
7203 else
7204 echo "$as_me: failed program was:" >&5
7205 sed 's/^/| /' conftest.$ac_ext >&5
7207 ac_cv_func_gethostbyname=no
7209 rm -f conftest.err conftest.$ac_objext \
7210 conftest$ac_exeext conftest.$ac_ext
7212 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7213 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7215 if test $ac_cv_func_gethostbyname = no; then
7216 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7217 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7218 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7219 echo $ECHO_N "(cached) $ECHO_C" >&6
7220 else
7221 ac_check_lib_save_LIBS=$LIBS
7222 LIBS="-lnsl $LIBS"
7223 if test x$gcc_no_link = xyes; then
7224 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7225 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7226 { (exit 1); exit 1; }; }
7228 cat >conftest.$ac_ext <<_ACEOF
7229 /* confdefs.h. */
7230 _ACEOF
7231 cat confdefs.h >>conftest.$ac_ext
7232 cat >>conftest.$ac_ext <<_ACEOF
7233 /* end confdefs.h. */
7235 /* Override any gcc2 internal prototype to avoid an error. */
7236 #ifdef __cplusplus
7237 extern "C"
7238 #endif
7239 /* We use char because int might match the return type of a gcc2
7240 builtin and then its argument prototype would still apply. */
7241 char gethostbyname ();
7243 main ()
7245 gethostbyname ();
7247 return 0;
7249 _ACEOF
7250 rm -f conftest.$ac_objext conftest$ac_exeext
7251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7252 (eval $ac_link) 2>conftest.er1
7253 ac_status=$?
7254 grep -v '^ *+' conftest.er1 >conftest.err
7255 rm -f conftest.er1
7256 cat conftest.err >&5
7257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258 (exit $ac_status); } &&
7259 { ac_try='test -z "$ac_c_werror_flag"
7260 || test ! -s conftest.err'
7261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7262 (eval $ac_try) 2>&5
7263 ac_status=$?
7264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 (exit $ac_status); }; } &&
7266 { ac_try='test -s conftest$ac_exeext'
7267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7268 (eval $ac_try) 2>&5
7269 ac_status=$?
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); }; }; then
7272 ac_cv_lib_nsl_gethostbyname=yes
7273 else
7274 echo "$as_me: failed program was:" >&5
7275 sed 's/^/| /' conftest.$ac_ext >&5
7277 ac_cv_lib_nsl_gethostbyname=no
7279 rm -f conftest.err conftest.$ac_objext \
7280 conftest$ac_exeext conftest.$ac_ext
7281 LIBS=$ac_check_lib_save_LIBS
7283 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7284 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7285 if test $ac_cv_lib_nsl_gethostbyname = yes; then
7286 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7289 if test $ac_cv_lib_nsl_gethostbyname = no; then
7290 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7291 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
7292 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7293 echo $ECHO_N "(cached) $ECHO_C" >&6
7294 else
7295 ac_check_lib_save_LIBS=$LIBS
7296 LIBS="-lbsd $LIBS"
7297 if test x$gcc_no_link = xyes; then
7298 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7299 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7300 { (exit 1); exit 1; }; }
7302 cat >conftest.$ac_ext <<_ACEOF
7303 /* confdefs.h. */
7304 _ACEOF
7305 cat confdefs.h >>conftest.$ac_ext
7306 cat >>conftest.$ac_ext <<_ACEOF
7307 /* end confdefs.h. */
7309 /* Override any gcc2 internal prototype to avoid an error. */
7310 #ifdef __cplusplus
7311 extern "C"
7312 #endif
7313 /* We use char because int might match the return type of a gcc2
7314 builtin and then its argument prototype would still apply. */
7315 char gethostbyname ();
7317 main ()
7319 gethostbyname ();
7321 return 0;
7323 _ACEOF
7324 rm -f conftest.$ac_objext conftest$ac_exeext
7325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7326 (eval $ac_link) 2>conftest.er1
7327 ac_status=$?
7328 grep -v '^ *+' conftest.er1 >conftest.err
7329 rm -f conftest.er1
7330 cat conftest.err >&5
7331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 (exit $ac_status); } &&
7333 { ac_try='test -z "$ac_c_werror_flag"
7334 || test ! -s conftest.err'
7335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7336 (eval $ac_try) 2>&5
7337 ac_status=$?
7338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339 (exit $ac_status); }; } &&
7340 { ac_try='test -s conftest$ac_exeext'
7341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7342 (eval $ac_try) 2>&5
7343 ac_status=$?
7344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345 (exit $ac_status); }; }; then
7346 ac_cv_lib_bsd_gethostbyname=yes
7347 else
7348 echo "$as_me: failed program was:" >&5
7349 sed 's/^/| /' conftest.$ac_ext >&5
7351 ac_cv_lib_bsd_gethostbyname=no
7353 rm -f conftest.err conftest.$ac_objext \
7354 conftest$ac_exeext conftest.$ac_ext
7355 LIBS=$ac_check_lib_save_LIBS
7357 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7358 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
7359 if test $ac_cv_lib_bsd_gethostbyname = yes; then
7360 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7366 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7367 # socket/setsockopt and other routines are undefined under SCO ODT
7368 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7369 # on later versions), says Simon Leinen: it contains gethostby*
7370 # variants that don't use the name server (or something). -lsocket
7371 # must be given before -lnsl if both are needed. We assume that
7372 # if connect needs -lnsl, so does gethostbyname.
7373 echo "$as_me:$LINENO: checking for connect" >&5
7374 echo $ECHO_N "checking for connect... $ECHO_C" >&6
7375 if test "${ac_cv_func_connect+set}" = set; then
7376 echo $ECHO_N "(cached) $ECHO_C" >&6
7377 else
7378 if test x$gcc_no_link = xyes; then
7379 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7380 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7381 { (exit 1); exit 1; }; }
7383 cat >conftest.$ac_ext <<_ACEOF
7384 /* confdefs.h. */
7385 _ACEOF
7386 cat confdefs.h >>conftest.$ac_ext
7387 cat >>conftest.$ac_ext <<_ACEOF
7388 /* end confdefs.h. */
7389 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7391 #define connect innocuous_connect
7393 /* System header to define __stub macros and hopefully few prototypes,
7394 which can conflict with char connect (); below.
7395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7396 <limits.h> exists even on freestanding compilers. */
7398 #ifdef __STDC__
7399 # include <limits.h>
7400 #else
7401 # include <assert.h>
7402 #endif
7404 #undef connect
7406 /* Override any gcc2 internal prototype to avoid an error. */
7407 #ifdef __cplusplus
7408 extern "C"
7410 #endif
7411 /* We use char because int might match the return type of a gcc2
7412 builtin and then its argument prototype would still apply. */
7413 char connect ();
7414 /* The GNU C library defines this for functions which it implements
7415 to always fail with ENOSYS. Some functions are actually named
7416 something starting with __ and the normal name is an alias. */
7417 #if defined (__stub_connect) || defined (__stub___connect)
7418 choke me
7419 #else
7420 char (*f) () = connect;
7421 #endif
7422 #ifdef __cplusplus
7424 #endif
7427 main ()
7429 return f != connect;
7431 return 0;
7433 _ACEOF
7434 rm -f conftest.$ac_objext conftest$ac_exeext
7435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7436 (eval $ac_link) 2>conftest.er1
7437 ac_status=$?
7438 grep -v '^ *+' conftest.er1 >conftest.err
7439 rm -f conftest.er1
7440 cat conftest.err >&5
7441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442 (exit $ac_status); } &&
7443 { ac_try='test -z "$ac_c_werror_flag"
7444 || test ! -s conftest.err'
7445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7446 (eval $ac_try) 2>&5
7447 ac_status=$?
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); }; } &&
7450 { ac_try='test -s conftest$ac_exeext'
7451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7452 (eval $ac_try) 2>&5
7453 ac_status=$?
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); }; }; then
7456 ac_cv_func_connect=yes
7457 else
7458 echo "$as_me: failed program was:" >&5
7459 sed 's/^/| /' conftest.$ac_ext >&5
7461 ac_cv_func_connect=no
7463 rm -f conftest.err conftest.$ac_objext \
7464 conftest$ac_exeext conftest.$ac_ext
7466 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7467 echo "${ECHO_T}$ac_cv_func_connect" >&6
7469 if test $ac_cv_func_connect = no; then
7470 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7471 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
7472 if test "${ac_cv_lib_socket_connect+set}" = set; then
7473 echo $ECHO_N "(cached) $ECHO_C" >&6
7474 else
7475 ac_check_lib_save_LIBS=$LIBS
7476 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7477 if test x$gcc_no_link = xyes; then
7478 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7479 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7480 { (exit 1); exit 1; }; }
7482 cat >conftest.$ac_ext <<_ACEOF
7483 /* confdefs.h. */
7484 _ACEOF
7485 cat confdefs.h >>conftest.$ac_ext
7486 cat >>conftest.$ac_ext <<_ACEOF
7487 /* end confdefs.h. */
7489 /* Override any gcc2 internal prototype to avoid an error. */
7490 #ifdef __cplusplus
7491 extern "C"
7492 #endif
7493 /* We use char because int might match the return type of a gcc2
7494 builtin and then its argument prototype would still apply. */
7495 char connect ();
7497 main ()
7499 connect ();
7501 return 0;
7503 _ACEOF
7504 rm -f conftest.$ac_objext conftest$ac_exeext
7505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7506 (eval $ac_link) 2>conftest.er1
7507 ac_status=$?
7508 grep -v '^ *+' conftest.er1 >conftest.err
7509 rm -f conftest.er1
7510 cat conftest.err >&5
7511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512 (exit $ac_status); } &&
7513 { ac_try='test -z "$ac_c_werror_flag"
7514 || test ! -s conftest.err'
7515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7516 (eval $ac_try) 2>&5
7517 ac_status=$?
7518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519 (exit $ac_status); }; } &&
7520 { ac_try='test -s conftest$ac_exeext'
7521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7522 (eval $ac_try) 2>&5
7523 ac_status=$?
7524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); }; }; then
7526 ac_cv_lib_socket_connect=yes
7527 else
7528 echo "$as_me: failed program was:" >&5
7529 sed 's/^/| /' conftest.$ac_ext >&5
7531 ac_cv_lib_socket_connect=no
7533 rm -f conftest.err conftest.$ac_objext \
7534 conftest$ac_exeext conftest.$ac_ext
7535 LIBS=$ac_check_lib_save_LIBS
7537 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7538 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
7539 if test $ac_cv_lib_socket_connect = yes; then
7540 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7545 # Guillermo Gomez says -lposix is necessary on A/UX.
7546 echo "$as_me:$LINENO: checking for remove" >&5
7547 echo $ECHO_N "checking for remove... $ECHO_C" >&6
7548 if test "${ac_cv_func_remove+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7550 else
7551 if test x$gcc_no_link = xyes; then
7552 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7553 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7554 { (exit 1); exit 1; }; }
7556 cat >conftest.$ac_ext <<_ACEOF
7557 /* confdefs.h. */
7558 _ACEOF
7559 cat confdefs.h >>conftest.$ac_ext
7560 cat >>conftest.$ac_ext <<_ACEOF
7561 /* end confdefs.h. */
7562 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7564 #define remove innocuous_remove
7566 /* System header to define __stub macros and hopefully few prototypes,
7567 which can conflict with char remove (); below.
7568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7569 <limits.h> exists even on freestanding compilers. */
7571 #ifdef __STDC__
7572 # include <limits.h>
7573 #else
7574 # include <assert.h>
7575 #endif
7577 #undef remove
7579 /* Override any gcc2 internal prototype to avoid an error. */
7580 #ifdef __cplusplus
7581 extern "C"
7583 #endif
7584 /* We use char because int might match the return type of a gcc2
7585 builtin and then its argument prototype would still apply. */
7586 char remove ();
7587 /* The GNU C library defines this for functions which it implements
7588 to always fail with ENOSYS. Some functions are actually named
7589 something starting with __ and the normal name is an alias. */
7590 #if defined (__stub_remove) || defined (__stub___remove)
7591 choke me
7592 #else
7593 char (*f) () = remove;
7594 #endif
7595 #ifdef __cplusplus
7597 #endif
7600 main ()
7602 return f != remove;
7604 return 0;
7606 _ACEOF
7607 rm -f conftest.$ac_objext conftest$ac_exeext
7608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7609 (eval $ac_link) 2>conftest.er1
7610 ac_status=$?
7611 grep -v '^ *+' conftest.er1 >conftest.err
7612 rm -f conftest.er1
7613 cat conftest.err >&5
7614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615 (exit $ac_status); } &&
7616 { ac_try='test -z "$ac_c_werror_flag"
7617 || test ! -s conftest.err'
7618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7619 (eval $ac_try) 2>&5
7620 ac_status=$?
7621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622 (exit $ac_status); }; } &&
7623 { ac_try='test -s conftest$ac_exeext'
7624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7625 (eval $ac_try) 2>&5
7626 ac_status=$?
7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); }; }; then
7629 ac_cv_func_remove=yes
7630 else
7631 echo "$as_me: failed program was:" >&5
7632 sed 's/^/| /' conftest.$ac_ext >&5
7634 ac_cv_func_remove=no
7636 rm -f conftest.err conftest.$ac_objext \
7637 conftest$ac_exeext conftest.$ac_ext
7639 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7640 echo "${ECHO_T}$ac_cv_func_remove" >&6
7642 if test $ac_cv_func_remove = no; then
7643 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7644 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
7645 if test "${ac_cv_lib_posix_remove+set}" = set; then
7646 echo $ECHO_N "(cached) $ECHO_C" >&6
7647 else
7648 ac_check_lib_save_LIBS=$LIBS
7649 LIBS="-lposix $LIBS"
7650 if test x$gcc_no_link = xyes; then
7651 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7652 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7653 { (exit 1); exit 1; }; }
7655 cat >conftest.$ac_ext <<_ACEOF
7656 /* confdefs.h. */
7657 _ACEOF
7658 cat confdefs.h >>conftest.$ac_ext
7659 cat >>conftest.$ac_ext <<_ACEOF
7660 /* end confdefs.h. */
7662 /* Override any gcc2 internal prototype to avoid an error. */
7663 #ifdef __cplusplus
7664 extern "C"
7665 #endif
7666 /* We use char because int might match the return type of a gcc2
7667 builtin and then its argument prototype would still apply. */
7668 char remove ();
7670 main ()
7672 remove ();
7674 return 0;
7676 _ACEOF
7677 rm -f conftest.$ac_objext conftest$ac_exeext
7678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7679 (eval $ac_link) 2>conftest.er1
7680 ac_status=$?
7681 grep -v '^ *+' conftest.er1 >conftest.err
7682 rm -f conftest.er1
7683 cat conftest.err >&5
7684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685 (exit $ac_status); } &&
7686 { ac_try='test -z "$ac_c_werror_flag"
7687 || test ! -s conftest.err'
7688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7689 (eval $ac_try) 2>&5
7690 ac_status=$?
7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); }; } &&
7693 { ac_try='test -s conftest$ac_exeext'
7694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7695 (eval $ac_try) 2>&5
7696 ac_status=$?
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); }; }; then
7699 ac_cv_lib_posix_remove=yes
7700 else
7701 echo "$as_me: failed program was:" >&5
7702 sed 's/^/| /' conftest.$ac_ext >&5
7704 ac_cv_lib_posix_remove=no
7706 rm -f conftest.err conftest.$ac_objext \
7707 conftest$ac_exeext conftest.$ac_ext
7708 LIBS=$ac_check_lib_save_LIBS
7710 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7711 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
7712 if test $ac_cv_lib_posix_remove = yes; then
7713 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7718 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7719 echo "$as_me:$LINENO: checking for shmat" >&5
7720 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
7721 if test "${ac_cv_func_shmat+set}" = set; then
7722 echo $ECHO_N "(cached) $ECHO_C" >&6
7723 else
7724 if test x$gcc_no_link = xyes; then
7725 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7726 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7727 { (exit 1); exit 1; }; }
7729 cat >conftest.$ac_ext <<_ACEOF
7730 /* confdefs.h. */
7731 _ACEOF
7732 cat confdefs.h >>conftest.$ac_ext
7733 cat >>conftest.$ac_ext <<_ACEOF
7734 /* end confdefs.h. */
7735 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7737 #define shmat innocuous_shmat
7739 /* System header to define __stub macros and hopefully few prototypes,
7740 which can conflict with char shmat (); below.
7741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7742 <limits.h> exists even on freestanding compilers. */
7744 #ifdef __STDC__
7745 # include <limits.h>
7746 #else
7747 # include <assert.h>
7748 #endif
7750 #undef shmat
7752 /* Override any gcc2 internal prototype to avoid an error. */
7753 #ifdef __cplusplus
7754 extern "C"
7756 #endif
7757 /* We use char because int might match the return type of a gcc2
7758 builtin and then its argument prototype would still apply. */
7759 char shmat ();
7760 /* The GNU C library defines this for functions which it implements
7761 to always fail with ENOSYS. Some functions are actually named
7762 something starting with __ and the normal name is an alias. */
7763 #if defined (__stub_shmat) || defined (__stub___shmat)
7764 choke me
7765 #else
7766 char (*f) () = shmat;
7767 #endif
7768 #ifdef __cplusplus
7770 #endif
7773 main ()
7775 return f != shmat;
7777 return 0;
7779 _ACEOF
7780 rm -f conftest.$ac_objext conftest$ac_exeext
7781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7782 (eval $ac_link) 2>conftest.er1
7783 ac_status=$?
7784 grep -v '^ *+' conftest.er1 >conftest.err
7785 rm -f conftest.er1
7786 cat conftest.err >&5
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); } &&
7789 { ac_try='test -z "$ac_c_werror_flag"
7790 || test ! -s conftest.err'
7791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7792 (eval $ac_try) 2>&5
7793 ac_status=$?
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); }; } &&
7796 { ac_try='test -s conftest$ac_exeext'
7797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7798 (eval $ac_try) 2>&5
7799 ac_status=$?
7800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); }; }; then
7802 ac_cv_func_shmat=yes
7803 else
7804 echo "$as_me: failed program was:" >&5
7805 sed 's/^/| /' conftest.$ac_ext >&5
7807 ac_cv_func_shmat=no
7809 rm -f conftest.err conftest.$ac_objext \
7810 conftest$ac_exeext conftest.$ac_ext
7812 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7813 echo "${ECHO_T}$ac_cv_func_shmat" >&6
7815 if test $ac_cv_func_shmat = no; then
7816 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7817 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
7818 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7819 echo $ECHO_N "(cached) $ECHO_C" >&6
7820 else
7821 ac_check_lib_save_LIBS=$LIBS
7822 LIBS="-lipc $LIBS"
7823 if test x$gcc_no_link = xyes; then
7824 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7825 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7826 { (exit 1); exit 1; }; }
7828 cat >conftest.$ac_ext <<_ACEOF
7829 /* confdefs.h. */
7830 _ACEOF
7831 cat confdefs.h >>conftest.$ac_ext
7832 cat >>conftest.$ac_ext <<_ACEOF
7833 /* end confdefs.h. */
7835 /* Override any gcc2 internal prototype to avoid an error. */
7836 #ifdef __cplusplus
7837 extern "C"
7838 #endif
7839 /* We use char because int might match the return type of a gcc2
7840 builtin and then its argument prototype would still apply. */
7841 char shmat ();
7843 main ()
7845 shmat ();
7847 return 0;
7849 _ACEOF
7850 rm -f conftest.$ac_objext conftest$ac_exeext
7851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7852 (eval $ac_link) 2>conftest.er1
7853 ac_status=$?
7854 grep -v '^ *+' conftest.er1 >conftest.err
7855 rm -f conftest.er1
7856 cat conftest.err >&5
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); } &&
7859 { ac_try='test -z "$ac_c_werror_flag"
7860 || test ! -s conftest.err'
7861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7862 (eval $ac_try) 2>&5
7863 ac_status=$?
7864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865 (exit $ac_status); }; } &&
7866 { ac_try='test -s conftest$ac_exeext'
7867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7868 (eval $ac_try) 2>&5
7869 ac_status=$?
7870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871 (exit $ac_status); }; }; then
7872 ac_cv_lib_ipc_shmat=yes
7873 else
7874 echo "$as_me: failed program was:" >&5
7875 sed 's/^/| /' conftest.$ac_ext >&5
7877 ac_cv_lib_ipc_shmat=no
7879 rm -f conftest.err conftest.$ac_objext \
7880 conftest$ac_exeext conftest.$ac_ext
7881 LIBS=$ac_check_lib_save_LIBS
7883 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7884 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
7885 if test $ac_cv_lib_ipc_shmat = yes; then
7886 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7892 # Check for libraries that X11R6 Xt/Xaw programs need.
7893 ac_save_LDFLAGS=$LDFLAGS
7894 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7895 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7896 # check for ICE first), but we must link in the order -lSM -lICE or
7897 # we get undefined symbols. So assume we have SM if we have ICE.
7898 # These have to be linked with before -lX11, unlike the other
7899 # libraries we check for below, so use a different variable.
7900 # John Interrante, Karl Berry
7901 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7902 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
7903 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7904 echo $ECHO_N "(cached) $ECHO_C" >&6
7905 else
7906 ac_check_lib_save_LIBS=$LIBS
7907 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7908 if test x$gcc_no_link = xyes; then
7909 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7910 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7911 { (exit 1); exit 1; }; }
7913 cat >conftest.$ac_ext <<_ACEOF
7914 /* confdefs.h. */
7915 _ACEOF
7916 cat confdefs.h >>conftest.$ac_ext
7917 cat >>conftest.$ac_ext <<_ACEOF
7918 /* end confdefs.h. */
7920 /* Override any gcc2 internal prototype to avoid an error. */
7921 #ifdef __cplusplus
7922 extern "C"
7923 #endif
7924 /* We use char because int might match the return type of a gcc2
7925 builtin and then its argument prototype would still apply. */
7926 char IceConnectionNumber ();
7928 main ()
7930 IceConnectionNumber ();
7932 return 0;
7934 _ACEOF
7935 rm -f conftest.$ac_objext conftest$ac_exeext
7936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7937 (eval $ac_link) 2>conftest.er1
7938 ac_status=$?
7939 grep -v '^ *+' conftest.er1 >conftest.err
7940 rm -f conftest.er1
7941 cat conftest.err >&5
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); } &&
7944 { ac_try='test -z "$ac_c_werror_flag"
7945 || test ! -s conftest.err'
7946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7947 (eval $ac_try) 2>&5
7948 ac_status=$?
7949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950 (exit $ac_status); }; } &&
7951 { ac_try='test -s conftest$ac_exeext'
7952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7953 (eval $ac_try) 2>&5
7954 ac_status=$?
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); }; }; then
7957 ac_cv_lib_ICE_IceConnectionNumber=yes
7958 else
7959 echo "$as_me: failed program was:" >&5
7960 sed 's/^/| /' conftest.$ac_ext >&5
7962 ac_cv_lib_ICE_IceConnectionNumber=no
7964 rm -f conftest.err conftest.$ac_objext \
7965 conftest$ac_exeext conftest.$ac_ext
7966 LIBS=$ac_check_lib_save_LIBS
7968 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7969 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
7970 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7971 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7974 LDFLAGS=$ac_save_LDFLAGS
7979 # Determine which AWT peer libraries to build
7980 # Check whether --enable-java-awt or --disable-java-awt was given.
7981 if test "${enable_java_awt+set}" = set; then
7982 enableval="$enable_java_awt"
7986 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
7987 use_xlib_awt=""
7988 use_gtk_awt=""
7989 # The default toolkit to use is the first one specified.
7990 TOOLKIT=
7993 for peer in $peerlibs ; do
7994 case $peer in
7995 xlib)
7996 if test "$no_x" = yes; then
7997 echo "*** xlib peers requested but no X library available" 1>&2
7998 exit 1
7999 else
8000 use_xlib_awt="yes"
8001 if test -z "$TOOLKIT"; then
8002 TOOLKIT=gnu.awt.xlib.XToolkit
8006 gtk)
8007 if test "$no_x" = yes; then
8008 echo "*** xlib peers requested but no X library available" 1>&2
8009 exit 1
8010 else
8011 use_gtk_awt=yes
8012 if test -z "$TOOLKIT"; then
8013 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
8015 test -d jniinclude || mkdir jniinclude
8019 use_xlib_awt=
8020 use_gtk_awt=
8021 break
8024 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
8025 exit 1
8026 esac
8027 done
8031 if test "$use_xlib_awt" = yes; then
8032 XLIB_AWT_TRUE=
8033 XLIB_AWT_FALSE='#'
8034 else
8035 XLIB_AWT_TRUE='#'
8036 XLIB_AWT_FALSE=
8041 if test "$use_gtk_awt" = yes; then
8042 GTK_AWT_TRUE=
8043 GTK_AWT_FALSE='#'
8044 else
8045 GTK_AWT_TRUE='#'
8046 GTK_AWT_FALSE=
8050 # determine whether to enable the cairo GTK Graphics2D backend
8051 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
8052 if test "${enable_gtk_cairo+set}" = set; then
8053 enableval="$enable_gtk_cairo"
8058 if test "x${enable_gtk_cairo}" = xyes; then
8059 GTK_CAIRO_TRUE=
8060 GTK_CAIRO_FALSE='#'
8061 else
8062 GTK_CAIRO_TRUE='#'
8063 GTK_CAIRO_FALSE=
8066 if test "x${enable_gtk_cairo}" = xyes
8067 then
8069 succeeded=no
8071 if test -z "$PKG_CONFIG"; then
8072 # Extract the first word of "pkg-config", so it can be a program name with args.
8073 set dummy pkg-config; ac_word=$2
8074 echo "$as_me:$LINENO: checking for $ac_word" >&5
8075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8076 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8077 echo $ECHO_N "(cached) $ECHO_C" >&6
8078 else
8079 case $PKG_CONFIG in
8080 [\\/]* | ?:[\\/]*)
8081 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8085 for as_dir in $PATH
8087 IFS=$as_save_IFS
8088 test -z "$as_dir" && as_dir=.
8089 for ac_exec_ext in '' $ac_executable_extensions; do
8090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8091 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8093 break 2
8095 done
8096 done
8098 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8100 esac
8102 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8104 if test -n "$PKG_CONFIG"; then
8105 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8106 echo "${ECHO_T}$PKG_CONFIG" >&6
8107 else
8108 echo "$as_me:$LINENO: result: no" >&5
8109 echo "${ECHO_T}no" >&6
8114 if test "$PKG_CONFIG" = "no" ; then
8115 echo "*** The pkg-config script could not be found. Make sure it is"
8116 echo "*** in your path, or set the PKG_CONFIG environment variable"
8117 echo "*** to the full path to pkg-config."
8118 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8119 else
8120 PKG_CONFIG_MIN_VERSION=0.9.0
8121 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8122 echo "$as_me:$LINENO: checking for cairo" >&5
8123 echo $ECHO_N "checking for cairo... $ECHO_C" >&6
8125 if $PKG_CONFIG --exists "cairo" ; then
8126 echo "$as_me:$LINENO: result: yes" >&5
8127 echo "${ECHO_T}yes" >&6
8128 succeeded=yes
8130 echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
8131 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
8132 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo"`
8133 echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
8134 echo "${ECHO_T}$CAIRO_CFLAGS" >&6
8136 echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
8137 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
8138 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo"`
8139 echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
8140 echo "${ECHO_T}$CAIRO_LIBS" >&6
8141 else
8142 CAIRO_CFLAGS=""
8143 CAIRO_LIBS=""
8144 ## If we have a custom action on failure, don't print errors, but
8145 ## do set a variable so people can do so.
8146 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
8147 echo $CAIRO_PKG_ERRORS
8152 else
8153 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8154 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8158 if test $succeeded = yes; then
8160 else
8161 { { 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
8162 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;}
8163 { (exit 1); exit 1; }; }
8167 succeeded=no
8169 if test -z "$PKG_CONFIG"; then
8170 # Extract the first word of "pkg-config", so it can be a program name with args.
8171 set dummy pkg-config; ac_word=$2
8172 echo "$as_me:$LINENO: checking for $ac_word" >&5
8173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8174 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8175 echo $ECHO_N "(cached) $ECHO_C" >&6
8176 else
8177 case $PKG_CONFIG in
8178 [\\/]* | ?:[\\/]*)
8179 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8183 for as_dir in $PATH
8185 IFS=$as_save_IFS
8186 test -z "$as_dir" && as_dir=.
8187 for ac_exec_ext in '' $ac_executable_extensions; do
8188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8189 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8191 break 2
8193 done
8194 done
8196 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8198 esac
8200 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8202 if test -n "$PKG_CONFIG"; then
8203 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8204 echo "${ECHO_T}$PKG_CONFIG" >&6
8205 else
8206 echo "$as_me:$LINENO: result: no" >&5
8207 echo "${ECHO_T}no" >&6
8212 if test "$PKG_CONFIG" = "no" ; then
8213 echo "*** The pkg-config script could not be found. Make sure it is"
8214 echo "*** in your path, or set the PKG_CONFIG environment variable"
8215 echo "*** to the full path to pkg-config."
8216 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8217 else
8218 PKG_CONFIG_MIN_VERSION=0.9.0
8219 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8220 echo "$as_me:$LINENO: checking for pangoft2" >&5
8221 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
8223 if $PKG_CONFIG --exists "pangoft2" ; then
8224 echo "$as_me:$LINENO: result: yes" >&5
8225 echo "${ECHO_T}yes" >&6
8226 succeeded=yes
8228 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
8229 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
8230 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
8231 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
8232 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
8234 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
8235 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
8236 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
8237 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
8238 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
8239 else
8240 PANGOFT2_CFLAGS=""
8241 PANGOFT2_LIBS=""
8242 ## If we have a custom action on failure, don't print errors, but
8243 ## do set a variable so people can do so.
8244 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
8245 echo $PANGOFT2_PKG_ERRORS
8250 else
8251 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8252 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8256 if test $succeeded = yes; then
8258 else
8259 { { 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
8260 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;}
8261 { (exit 1); exit 1; }; }
8270 # FIXME: this should be _libs on some hosts.
8271 libsubdir=.libs
8273 # Allow the GC to be disabled. Can be useful when debugging.
8274 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
8275 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
8276 # Check whether --enable-java-gc or --disable-java-gc was given.
8277 if test "${enable_java_gc+set}" = set; then
8278 enableval="$enable_java_gc"
8279 GC=$enableval
8280 else
8281 GC=boehm
8283 GCLIBS=
8284 GCINCS=
8285 GCDEPS=
8286 GCSPEC=
8287 JC1GCSPEC=
8288 GCTESTSPEC=
8289 case "$GC" in
8290 boehm)
8291 echo "$as_me:$LINENO: result: boehm" >&5
8292 echo "${ECHO_T}boehm" >&6
8293 GCLIBS=../boehm-gc/libgcjgc_convenience.la
8294 JC1GCSPEC='-fuse-boehm-gc'
8295 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
8296 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
8297 GCOBJS=boehm.lo
8298 GCHDR=boehm-gc.h
8299 # The POSIX thread support needs to know this.
8301 cat >>confdefs.h <<\_ACEOF
8302 #define HAVE_BOEHM_GC 1
8303 _ACEOF
8307 echo "$as_me:$LINENO: result: none" >&5
8308 echo "${ECHO_T}none" >&6
8309 GCHDR=no-gc.h
8312 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
8313 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
8314 { (exit 1); exit 1; }; }
8316 esac
8323 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
8327 if test "$GC" = boehm; then
8328 USING_BOEHMGC_TRUE=
8329 USING_BOEHMGC_FALSE='#'
8330 else
8331 USING_BOEHMGC_TRUE='#'
8332 USING_BOEHMGC_FALSE=
8337 if test "$GC" = no; then
8338 USING_NOGC_TRUE=
8339 USING_NOGC_FALSE='#'
8340 else
8341 USING_NOGC_TRUE='#'
8342 USING_NOGC_FALSE=
8347 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
8348 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
8349 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
8350 echo "$as_me:$LINENO: result: $THREADS" >&5
8351 echo "${ECHO_T}$THREADS" >&6
8353 case "$THREADS" in
8354 no | none | single)
8355 THREADS=none
8357 posix | posix95 | pthreads)
8358 THREADS=posix
8359 case "$host" in
8360 *-*-linux*)
8362 cat >>confdefs.h <<\_ACEOF
8363 #define LINUX_THREADS 1
8364 _ACEOF
8367 esac
8369 win32)
8371 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
8372 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
8373 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
8374 { (exit 1); exit 1; }; }
8377 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
8378 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
8379 { (exit 1); exit 1; }; }
8381 esac
8383 THREADCXXFLAGS=
8384 THREADLDFLAGS=
8385 THREADLIBS=
8386 THREADINCS=
8387 THREADDEPS=
8388 THREADH=
8389 THREADSPEC=
8390 case "$THREADS" in
8391 posix)
8392 case "$host" in
8393 *-*-cygwin*)
8394 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
8396 *-*-freebsd[1234]*)
8397 # Before FreeBSD 5, it didn't have -lpthread (or any library which
8398 # merely adds pthread_* functions) but it does have a -pthread switch
8399 # which is required at link-time to select -lc_r *instead* of -lc.
8400 THREADLDFLAGS=-pthread
8401 # Don't set THREADSPEC here as might be expected since -pthread is
8402 # not processed when found within a spec file, it must come from
8403 # the command line. For now, the user must provide the -pthread
8404 # switch to link code compiled with gcj. In future, consider adding
8405 # support for weak references to pthread_* functions ala gthr.h API.
8406 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
8408 *-*-freebsd*)
8409 # FreeBSD 5 implements a model much closer to other modern UNIX
8410 # which support threads. However, it still does not support
8411 # -lpthread.
8412 THREADLDFLAGS=-pthread
8413 THREADSPEC=-lc_r
8415 alpha*-dec-osf*)
8416 THREADCXXFLAGS=-pthread
8417 # boehm-gc needs some functions from librt, so link that too.
8418 THREADLIBS='-lpthread -lrt'
8419 THREADSPEC='-lpthread -lrt'
8422 THREADLIBS=-lpthread
8423 THREADSPEC=-lpthread
8425 esac
8426 THREADH=posix-threads.h
8427 # MIT pthreads doesn't seem to have the mutexattr functions.
8428 # But for now we don't check for it. We just assume you aren't
8429 # using MIT pthreads.
8431 cat >>confdefs.h <<\_ACEOF
8432 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8433 _ACEOF
8436 # If we're using the Boehm GC, then we happen to know that it
8437 # defines _REENTRANT, so we don't bother. Eww.
8438 if test "$GC" != boehm; then
8440 cat >>confdefs.h <<\_ACEOF
8441 #define _REENTRANT 1
8442 _ACEOF
8446 cat >>confdefs.h <<\_ACEOF
8447 #define _POSIX_PTHREAD_SEMANTICS 1
8448 _ACEOF
8452 win32)
8453 THREADH=win32-threads.h
8456 none)
8457 THREADH=no-threads.h
8459 esac
8460 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
8470 if test "$THREADS" = posix; then
8471 USING_POSIX_THREADS_TRUE=
8472 USING_POSIX_THREADS_FALSE='#'
8473 else
8474 USING_POSIX_THREADS_TRUE='#'
8475 USING_POSIX_THREADS_FALSE=
8480 if test "$THREADS" = win32; then
8481 USING_WIN32_THREADS_TRUE=
8482 USING_WIN32_THREADS_FALSE='#'
8483 else
8484 USING_WIN32_THREADS_TRUE='#'
8485 USING_WIN32_THREADS_FALSE=
8490 if test "$THREADS" = none; then
8491 USING_NO_THREADS_TRUE=
8492 USING_NO_THREADS_FALSE='#'
8493 else
8494 USING_NO_THREADS_TRUE='#'
8495 USING_NO_THREADS_FALSE=
8499 if test -d sysdep; then true; else mkdir sysdep; fi
8500 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
8502 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
8504 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
8507 HASH_SYNC_SPEC=
8508 # Hash synchronization is only useful with posix threads right now.
8509 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
8510 HASH_SYNC_SPEC=-fhash-synchronization
8512 cat >>confdefs.h <<\_ACEOF
8513 #define JV_HASH_SYNCHRONIZATION 1
8514 _ACEOF
8521 if test "$GCC" = yes; then
8522 USING_GCC_TRUE=
8523 USING_GCC_FALSE='#'
8524 else
8525 USING_GCC_TRUE='#'
8526 USING_GCC_FALSE=
8530 # We're in the tree with gcc, and need to include some of its headers.
8531 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
8533 if test "x${with_newlib}" = "xyes"; then
8534 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
8535 # may not work correctly, because the compiler may not be able to
8536 # link executables.
8538 # We assume newlib. This lets us hard-code the functions we know
8539 # we'll have.
8541 cat >>confdefs.h <<\_ACEOF
8542 #define HAVE_MEMMOVE 1
8543 _ACEOF
8546 cat >>confdefs.h <<\_ACEOF
8547 #define HAVE_MEMCPY 1
8548 _ACEOF
8551 cat >>confdefs.h <<\_ACEOF
8552 #define HAVE_STRERROR 1
8553 _ACEOF
8556 cat >>confdefs.h <<\_ACEOF
8557 #define HAVE_TIME 1
8558 _ACEOF
8561 cat >>confdefs.h <<\_ACEOF
8562 #define HAVE_GMTIME_R 1
8563 _ACEOF
8566 cat >>confdefs.h <<\_ACEOF
8567 #define HAVE_LOCALTIME_R 1
8568 _ACEOF
8571 cat >>confdefs.h <<\_ACEOF
8572 #define HAVE_USLEEP_DECL 1
8573 _ACEOF
8575 # This is only for POSIX threads.
8577 cat >>confdefs.h <<\_ACEOF
8578 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8579 _ACEOF
8581 # We also assume we are using gcc, which provides alloca.
8582 cat >>confdefs.h <<\_ACEOF
8583 #define HAVE_ALLOCA 1
8584 _ACEOF
8587 # Assume we do not have getuid and friends.
8589 cat >>confdefs.h <<\_ACEOF
8590 #define NO_GETUID 1
8591 _ACEOF
8593 PLATFORMNET=NoNet
8594 else
8627 for ac_func in strerror ioctl select fstat open fsync sleep opendir \
8628 gmtime_r localtime_r readdir_r getpwuid_r getcwd \
8629 access stat mkdir rename rmdir unlink realpath utime chmod \
8630 nl_langinfo setlocale \
8631 inet_pton uname inet_ntoa \
8632 fork execvp pipe sigaction ftruncate
8634 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8635 echo "$as_me:$LINENO: checking for $ac_func" >&5
8636 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8637 if eval "test \"\${$as_ac_var+set}\" = set"; then
8638 echo $ECHO_N "(cached) $ECHO_C" >&6
8639 else
8640 if test x$gcc_no_link = xyes; then
8641 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8642 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8643 { (exit 1); exit 1; }; }
8645 cat >conftest.$ac_ext <<_ACEOF
8646 /* confdefs.h. */
8647 _ACEOF
8648 cat confdefs.h >>conftest.$ac_ext
8649 cat >>conftest.$ac_ext <<_ACEOF
8650 /* end confdefs.h. */
8651 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8653 #define $ac_func innocuous_$ac_func
8655 /* System header to define __stub macros and hopefully few prototypes,
8656 which can conflict with char $ac_func (); below.
8657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8658 <limits.h> exists even on freestanding compilers. */
8660 #ifdef __STDC__
8661 # include <limits.h>
8662 #else
8663 # include <assert.h>
8664 #endif
8666 #undef $ac_func
8668 /* Override any gcc2 internal prototype to avoid an error. */
8669 #ifdef __cplusplus
8670 extern "C"
8672 #endif
8673 /* We use char because int might match the return type of a gcc2
8674 builtin and then its argument prototype would still apply. */
8675 char $ac_func ();
8676 /* The GNU C library defines this for functions which it implements
8677 to always fail with ENOSYS. Some functions are actually named
8678 something starting with __ and the normal name is an alias. */
8679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8680 choke me
8681 #else
8682 char (*f) () = $ac_func;
8683 #endif
8684 #ifdef __cplusplus
8686 #endif
8689 main ()
8691 return f != $ac_func;
8693 return 0;
8695 _ACEOF
8696 rm -f conftest.$ac_objext conftest$ac_exeext
8697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8698 (eval $ac_link) 2>conftest.er1
8699 ac_status=$?
8700 grep -v '^ *+' conftest.er1 >conftest.err
8701 rm -f conftest.er1
8702 cat conftest.err >&5
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); } &&
8705 { ac_try='test -z "$ac_c_werror_flag"
8706 || test ! -s conftest.err'
8707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8708 (eval $ac_try) 2>&5
8709 ac_status=$?
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); }; } &&
8712 { ac_try='test -s conftest$ac_exeext'
8713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8714 (eval $ac_try) 2>&5
8715 ac_status=$?
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); }; }; then
8718 eval "$as_ac_var=yes"
8719 else
8720 echo "$as_me: failed program was:" >&5
8721 sed 's/^/| /' conftest.$ac_ext >&5
8723 eval "$as_ac_var=no"
8725 rm -f conftest.err conftest.$ac_objext \
8726 conftest$ac_exeext conftest.$ac_ext
8728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8729 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8730 if test `eval echo '${'$as_ac_var'}'` = yes; then
8731 cat >>confdefs.h <<_ACEOF
8732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8733 _ACEOF
8736 done
8740 for ac_func in inet_aton inet_addr
8742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8743 echo "$as_me:$LINENO: checking for $ac_func" >&5
8744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8745 if eval "test \"\${$as_ac_var+set}\" = set"; then
8746 echo $ECHO_N "(cached) $ECHO_C" >&6
8747 else
8748 if test x$gcc_no_link = xyes; then
8749 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8750 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8751 { (exit 1); exit 1; }; }
8753 cat >conftest.$ac_ext <<_ACEOF
8754 /* confdefs.h. */
8755 _ACEOF
8756 cat confdefs.h >>conftest.$ac_ext
8757 cat >>conftest.$ac_ext <<_ACEOF
8758 /* end confdefs.h. */
8759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8761 #define $ac_func innocuous_$ac_func
8763 /* System header to define __stub macros and hopefully few prototypes,
8764 which can conflict with char $ac_func (); below.
8765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8766 <limits.h> exists even on freestanding compilers. */
8768 #ifdef __STDC__
8769 # include <limits.h>
8770 #else
8771 # include <assert.h>
8772 #endif
8774 #undef $ac_func
8776 /* Override any gcc2 internal prototype to avoid an error. */
8777 #ifdef __cplusplus
8778 extern "C"
8780 #endif
8781 /* We use char because int might match the return type of a gcc2
8782 builtin and then its argument prototype would still apply. */
8783 char $ac_func ();
8784 /* The GNU C library defines this for functions which it implements
8785 to always fail with ENOSYS. Some functions are actually named
8786 something starting with __ and the normal name is an alias. */
8787 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8788 choke me
8789 #else
8790 char (*f) () = $ac_func;
8791 #endif
8792 #ifdef __cplusplus
8794 #endif
8797 main ()
8799 return f != $ac_func;
8801 return 0;
8803 _ACEOF
8804 rm -f conftest.$ac_objext conftest$ac_exeext
8805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8806 (eval $ac_link) 2>conftest.er1
8807 ac_status=$?
8808 grep -v '^ *+' conftest.er1 >conftest.err
8809 rm -f conftest.er1
8810 cat conftest.err >&5
8811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 (exit $ac_status); } &&
8813 { ac_try='test -z "$ac_c_werror_flag"
8814 || test ! -s conftest.err'
8815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8816 (eval $ac_try) 2>&5
8817 ac_status=$?
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); }; } &&
8820 { ac_try='test -s conftest$ac_exeext'
8821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8822 (eval $ac_try) 2>&5
8823 ac_status=$?
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); }; }; then
8826 eval "$as_ac_var=yes"
8827 else
8828 echo "$as_me: failed program was:" >&5
8829 sed 's/^/| /' conftest.$ac_ext >&5
8831 eval "$as_ac_var=no"
8833 rm -f conftest.err conftest.$ac_objext \
8834 conftest$ac_exeext conftest.$ac_ext
8836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8837 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8838 if test `eval echo '${'$as_ac_var'}'` = yes; then
8839 cat >>confdefs.h <<_ACEOF
8840 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8841 _ACEOF
8842 break
8844 done
8846 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8847 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8848 if test "${ac_cv_header_stdc+set}" = set; then
8849 echo $ECHO_N "(cached) $ECHO_C" >&6
8850 else
8851 cat >conftest.$ac_ext <<_ACEOF
8852 /* confdefs.h. */
8853 _ACEOF
8854 cat confdefs.h >>conftest.$ac_ext
8855 cat >>conftest.$ac_ext <<_ACEOF
8856 /* end confdefs.h. */
8857 #include <stdlib.h>
8858 #include <stdarg.h>
8859 #include <string.h>
8860 #include <float.h>
8863 main ()
8867 return 0;
8869 _ACEOF
8870 rm -f conftest.$ac_objext
8871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8872 (eval $ac_compile) 2>conftest.er1
8873 ac_status=$?
8874 grep -v '^ *+' conftest.er1 >conftest.err
8875 rm -f conftest.er1
8876 cat conftest.err >&5
8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878 (exit $ac_status); } &&
8879 { ac_try='test -z "$ac_c_werror_flag"
8880 || test ! -s conftest.err'
8881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8882 (eval $ac_try) 2>&5
8883 ac_status=$?
8884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885 (exit $ac_status); }; } &&
8886 { ac_try='test -s conftest.$ac_objext'
8887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8888 (eval $ac_try) 2>&5
8889 ac_status=$?
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); }; }; then
8892 ac_cv_header_stdc=yes
8893 else
8894 echo "$as_me: failed program was:" >&5
8895 sed 's/^/| /' conftest.$ac_ext >&5
8897 ac_cv_header_stdc=no
8899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8901 if test $ac_cv_header_stdc = yes; then
8902 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8903 cat >conftest.$ac_ext <<_ACEOF
8904 /* confdefs.h. */
8905 _ACEOF
8906 cat confdefs.h >>conftest.$ac_ext
8907 cat >>conftest.$ac_ext <<_ACEOF
8908 /* end confdefs.h. */
8909 #include <string.h>
8911 _ACEOF
8912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8913 $EGREP "memchr" >/dev/null 2>&1; then
8915 else
8916 ac_cv_header_stdc=no
8918 rm -f conftest*
8922 if test $ac_cv_header_stdc = yes; then
8923 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8924 cat >conftest.$ac_ext <<_ACEOF
8925 /* confdefs.h. */
8926 _ACEOF
8927 cat confdefs.h >>conftest.$ac_ext
8928 cat >>conftest.$ac_ext <<_ACEOF
8929 /* end confdefs.h. */
8930 #include <stdlib.h>
8932 _ACEOF
8933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8934 $EGREP "free" >/dev/null 2>&1; then
8936 else
8937 ac_cv_header_stdc=no
8939 rm -f conftest*
8943 if test $ac_cv_header_stdc = yes; then
8944 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8945 if test "$cross_compiling" = yes; then
8947 else
8948 cat >conftest.$ac_ext <<_ACEOF
8949 /* confdefs.h. */
8950 _ACEOF
8951 cat confdefs.h >>conftest.$ac_ext
8952 cat >>conftest.$ac_ext <<_ACEOF
8953 /* end confdefs.h. */
8954 #include <ctype.h>
8955 #if ((' ' & 0x0FF) == 0x020)
8956 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8957 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8958 #else
8959 # define ISLOWER(c) \
8960 (('a' <= (c) && (c) <= 'i') \
8961 || ('j' <= (c) && (c) <= 'r') \
8962 || ('s' <= (c) && (c) <= 'z'))
8963 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8964 #endif
8966 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8968 main ()
8970 int i;
8971 for (i = 0; i < 256; i++)
8972 if (XOR (islower (i), ISLOWER (i))
8973 || toupper (i) != TOUPPER (i))
8974 exit(2);
8975 exit (0);
8977 _ACEOF
8978 rm -f conftest$ac_exeext
8979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8980 (eval $ac_link) 2>&5
8981 ac_status=$?
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8985 (eval $ac_try) 2>&5
8986 ac_status=$?
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); }; }; then
8990 else
8991 echo "$as_me: program exited with status $ac_status" >&5
8992 echo "$as_me: failed program was:" >&5
8993 sed 's/^/| /' conftest.$ac_ext >&5
8995 ( exit $ac_status )
8996 ac_cv_header_stdc=no
8998 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9002 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9003 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9004 if test $ac_cv_header_stdc = yes; then
9006 cat >>confdefs.h <<\_ACEOF
9007 #define STDC_HEADERS 1
9008 _ACEOF
9012 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9022 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9023 inttypes.h stdint.h unistd.h
9025 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9026 echo "$as_me:$LINENO: checking for $ac_header" >&5
9027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9029 echo $ECHO_N "(cached) $ECHO_C" >&6
9030 else
9031 cat >conftest.$ac_ext <<_ACEOF
9032 /* confdefs.h. */
9033 _ACEOF
9034 cat confdefs.h >>conftest.$ac_ext
9035 cat >>conftest.$ac_ext <<_ACEOF
9036 /* end confdefs.h. */
9037 $ac_includes_default
9039 #include <$ac_header>
9040 _ACEOF
9041 rm -f conftest.$ac_objext
9042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9043 (eval $ac_compile) 2>conftest.er1
9044 ac_status=$?
9045 grep -v '^ *+' conftest.er1 >conftest.err
9046 rm -f conftest.er1
9047 cat conftest.err >&5
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); } &&
9050 { ac_try='test -z "$ac_c_werror_flag"
9051 || test ! -s conftest.err'
9052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9053 (eval $ac_try) 2>&5
9054 ac_status=$?
9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056 (exit $ac_status); }; } &&
9057 { ac_try='test -s conftest.$ac_objext'
9058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9059 (eval $ac_try) 2>&5
9060 ac_status=$?
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); }; }; then
9063 eval "$as_ac_Header=yes"
9064 else
9065 echo "$as_me: failed program was:" >&5
9066 sed 's/^/| /' conftest.$ac_ext >&5
9068 eval "$as_ac_Header=no"
9070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9073 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9075 cat >>confdefs.h <<_ACEOF
9076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9077 _ACEOF
9081 done
9087 for ac_header in execinfo.h unistd.h dlfcn.h
9089 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9091 echo "$as_me:$LINENO: checking for $ac_header" >&5
9092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9093 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9094 echo $ECHO_N "(cached) $ECHO_C" >&6
9096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9098 else
9099 # Is the header compilable?
9100 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9101 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9102 cat >conftest.$ac_ext <<_ACEOF
9103 /* confdefs.h. */
9104 _ACEOF
9105 cat confdefs.h >>conftest.$ac_ext
9106 cat >>conftest.$ac_ext <<_ACEOF
9107 /* end confdefs.h. */
9108 $ac_includes_default
9109 #include <$ac_header>
9110 _ACEOF
9111 rm -f conftest.$ac_objext
9112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9113 (eval $ac_compile) 2>conftest.er1
9114 ac_status=$?
9115 grep -v '^ *+' conftest.er1 >conftest.err
9116 rm -f conftest.er1
9117 cat conftest.err >&5
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); } &&
9120 { ac_try='test -z "$ac_c_werror_flag"
9121 || test ! -s conftest.err'
9122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9123 (eval $ac_try) 2>&5
9124 ac_status=$?
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); }; } &&
9127 { ac_try='test -s conftest.$ac_objext'
9128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9129 (eval $ac_try) 2>&5
9130 ac_status=$?
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); }; }; then
9133 ac_header_compiler=yes
9134 else
9135 echo "$as_me: failed program was:" >&5
9136 sed 's/^/| /' conftest.$ac_ext >&5
9138 ac_header_compiler=no
9140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9141 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9142 echo "${ECHO_T}$ac_header_compiler" >&6
9144 # Is the header present?
9145 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9146 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9147 cat >conftest.$ac_ext <<_ACEOF
9148 /* confdefs.h. */
9149 _ACEOF
9150 cat confdefs.h >>conftest.$ac_ext
9151 cat >>conftest.$ac_ext <<_ACEOF
9152 /* end confdefs.h. */
9153 #include <$ac_header>
9154 _ACEOF
9155 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9156 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9157 ac_status=$?
9158 grep -v '^ *+' conftest.er1 >conftest.err
9159 rm -f conftest.er1
9160 cat conftest.err >&5
9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162 (exit $ac_status); } >/dev/null; then
9163 if test -s conftest.err; then
9164 ac_cpp_err=$ac_c_preproc_warn_flag
9165 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9166 else
9167 ac_cpp_err=
9169 else
9170 ac_cpp_err=yes
9172 if test -z "$ac_cpp_err"; then
9173 ac_header_preproc=yes
9174 else
9175 echo "$as_me: failed program was:" >&5
9176 sed 's/^/| /' conftest.$ac_ext >&5
9178 ac_header_preproc=no
9180 rm -f conftest.err conftest.$ac_ext
9181 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9182 echo "${ECHO_T}$ac_header_preproc" >&6
9184 # So? What about this header?
9185 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9186 yes:no: )
9187 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9188 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9190 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9191 ac_header_preproc=yes
9193 no:yes:* )
9194 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9195 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9196 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9197 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9198 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9199 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9200 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9201 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9203 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9204 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9205 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9207 cat <<\_ASBOX
9208 ## ---------------------------------- ##
9209 ## Report this to the libjava lists. ##
9210 ## ---------------------------------- ##
9211 _ASBOX
9213 sed "s/^/$as_me: WARNING: /" >&2
9215 esac
9216 echo "$as_me:$LINENO: checking for $ac_header" >&5
9217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9219 echo $ECHO_N "(cached) $ECHO_C" >&6
9220 else
9221 eval "$as_ac_Header=\$ac_header_preproc"
9223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9224 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9227 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9228 cat >>confdefs.h <<_ACEOF
9229 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9230 _ACEOF
9234 done
9236 echo "$as_me:$LINENO: checking for backtrace" >&5
9237 echo $ECHO_N "checking for backtrace... $ECHO_C" >&6
9238 if test "${ac_cv_func_backtrace+set}" = set; then
9239 echo $ECHO_N "(cached) $ECHO_C" >&6
9240 else
9241 if test x$gcc_no_link = xyes; then
9242 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9243 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9244 { (exit 1); exit 1; }; }
9246 cat >conftest.$ac_ext <<_ACEOF
9247 /* confdefs.h. */
9248 _ACEOF
9249 cat confdefs.h >>conftest.$ac_ext
9250 cat >>conftest.$ac_ext <<_ACEOF
9251 /* end confdefs.h. */
9252 /* Define backtrace to an innocuous variant, in case <limits.h> declares backtrace.
9253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9254 #define backtrace innocuous_backtrace
9256 /* System header to define __stub macros and hopefully few prototypes,
9257 which can conflict with char backtrace (); below.
9258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9259 <limits.h> exists even on freestanding compilers. */
9261 #ifdef __STDC__
9262 # include <limits.h>
9263 #else
9264 # include <assert.h>
9265 #endif
9267 #undef backtrace
9269 /* Override any gcc2 internal prototype to avoid an error. */
9270 #ifdef __cplusplus
9271 extern "C"
9273 #endif
9274 /* We use char because int might match the return type of a gcc2
9275 builtin and then its argument prototype would still apply. */
9276 char backtrace ();
9277 /* The GNU C library defines this for functions which it implements
9278 to always fail with ENOSYS. Some functions are actually named
9279 something starting with __ and the normal name is an alias. */
9280 #if defined (__stub_backtrace) || defined (__stub___backtrace)
9281 choke me
9282 #else
9283 char (*f) () = backtrace;
9284 #endif
9285 #ifdef __cplusplus
9287 #endif
9290 main ()
9292 return f != backtrace;
9294 return 0;
9296 _ACEOF
9297 rm -f conftest.$ac_objext conftest$ac_exeext
9298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9299 (eval $ac_link) 2>conftest.er1
9300 ac_status=$?
9301 grep -v '^ *+' conftest.er1 >conftest.err
9302 rm -f conftest.er1
9303 cat conftest.err >&5
9304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305 (exit $ac_status); } &&
9306 { ac_try='test -z "$ac_c_werror_flag"
9307 || test ! -s conftest.err'
9308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9309 (eval $ac_try) 2>&5
9310 ac_status=$?
9311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312 (exit $ac_status); }; } &&
9313 { ac_try='test -s conftest$ac_exeext'
9314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9315 (eval $ac_try) 2>&5
9316 ac_status=$?
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); }; }; then
9319 ac_cv_func_backtrace=yes
9320 else
9321 echo "$as_me: failed program was:" >&5
9322 sed 's/^/| /' conftest.$ac_ext >&5
9324 ac_cv_func_backtrace=no
9326 rm -f conftest.err conftest.$ac_objext \
9327 conftest$ac_exeext conftest.$ac_ext
9329 echo "$as_me:$LINENO: result: $ac_cv_func_backtrace" >&5
9330 echo "${ECHO_T}$ac_cv_func_backtrace" >&6
9331 if test $ac_cv_func_backtrace = yes; then
9333 case "$host" in
9334 ia64-*-linux*)
9335 # Has broken backtrace()
9337 mips*-*-linux*)
9338 # Has broken backtrace(), but we supply our own.
9339 if test -d sysdep; then true; else mkdir -p sysdep; fi
9340 supply_backtrace=yes
9342 cat >>confdefs.h <<\_ACEOF
9343 #define HAVE_BACKTRACE 1
9344 _ACEOF
9349 cat >>confdefs.h <<\_ACEOF
9350 #define HAVE_BACKTRACE 1
9351 _ACEOF
9354 esac
9356 else
9358 case "$host" in
9359 *mingw*)
9360 # Has backtrace() defined in libgcj itself
9362 cat >>confdefs.h <<\_ACEOF
9363 #define HAVE_BACKTRACE 1
9364 _ACEOF
9367 esac
9372 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
9373 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
9374 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
9375 echo $ECHO_N "(cached) $ECHO_C" >&6
9376 else
9377 ac_check_lib_save_LIBS=$LIBS
9378 LIBS="-ldl $LIBS"
9379 if test x$gcc_no_link = xyes; then
9380 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9381 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9382 { (exit 1); exit 1; }; }
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. */
9391 /* Override any gcc2 internal prototype to avoid an error. */
9392 #ifdef __cplusplus
9393 extern "C"
9394 #endif
9395 /* We use char because int might match the return type of a gcc2
9396 builtin and then its argument prototype would still apply. */
9397 char dladdr ();
9399 main ()
9401 dladdr ();
9403 return 0;
9405 _ACEOF
9406 rm -f conftest.$ac_objext conftest$ac_exeext
9407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9408 (eval $ac_link) 2>conftest.er1
9409 ac_status=$?
9410 grep -v '^ *+' conftest.er1 >conftest.err
9411 rm -f conftest.er1
9412 cat conftest.err >&5
9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414 (exit $ac_status); } &&
9415 { ac_try='test -z "$ac_c_werror_flag"
9416 || test ! -s conftest.err'
9417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9418 (eval $ac_try) 2>&5
9419 ac_status=$?
9420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421 (exit $ac_status); }; } &&
9422 { ac_try='test -s conftest$ac_exeext'
9423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9424 (eval $ac_try) 2>&5
9425 ac_status=$?
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 (exit $ac_status); }; }; then
9428 ac_cv_lib_dl_dladdr=yes
9429 else
9430 echo "$as_me: failed program was:" >&5
9431 sed 's/^/| /' conftest.$ac_ext >&5
9433 ac_cv_lib_dl_dladdr=no
9435 rm -f conftest.err conftest.$ac_objext \
9436 conftest$ac_exeext conftest.$ac_ext
9437 LIBS=$ac_check_lib_save_LIBS
9439 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
9440 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
9441 if test $ac_cv_lib_dl_dladdr = yes; then
9443 if test "x${disable_dladdr}" = "xyes"; then
9444 #Broken dladdr().
9445 true
9446 else
9448 cat >>confdefs.h <<\_ACEOF
9449 #define HAVE_DLADDR 1
9450 _ACEOF
9456 if test x"$build" = x"$host"; then
9457 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
9458 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
9459 if test "${ac_cv_file__proc_self_exe+set}" = set; then
9460 echo $ECHO_N "(cached) $ECHO_C" >&6
9461 else
9462 test "$cross_compiling" = yes &&
9463 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
9464 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9465 { (exit 1); exit 1; }; }
9466 if test -r "/proc/self/exe"; then
9467 ac_cv_file__proc_self_exe=yes
9468 else
9469 ac_cv_file__proc_self_exe=no
9472 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
9473 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
9474 if test $ac_cv_file__proc_self_exe = yes; then
9476 cat >>confdefs.h <<_ACEOF
9477 #define HAVE__PROC_SELF_EXE 1
9478 _ACEOF
9482 cat >>confdefs.h <<\_ACEOF
9483 #define HAVE_PROC_SELF_EXE 1
9484 _ACEOF
9488 else
9489 case $host in
9490 *-linux*)
9492 cat >>confdefs.h <<\_ACEOF
9493 #define HAVE_PROC_SELF_EXE 1
9494 _ACEOF
9497 esac
9501 if test "X$prefix" = "XNONE"; then
9502 acl_final_prefix="$ac_default_prefix"
9503 else
9504 acl_final_prefix="$prefix"
9506 if test "X$exec_prefix" = "XNONE"; then
9507 acl_final_exec_prefix='${prefix}'
9508 else
9509 acl_final_exec_prefix="$exec_prefix"
9511 acl_save_prefix="$prefix"
9512 prefix="$acl_final_prefix"
9513 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9514 prefix="$acl_save_prefix"
9517 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9518 if test "${with_gnu_ld+set}" = set; then
9519 withval="$with_gnu_ld"
9520 test "$withval" = no || with_gnu_ld=yes
9521 else
9522 with_gnu_ld=no
9524 # Prepare PATH_SEPARATOR.
9525 # The user is always right.
9526 if test "${PATH_SEPARATOR+set}" != set; then
9527 echo "#! /bin/sh" >conf$$.sh
9528 echo "exit 0" >>conf$$.sh
9529 chmod +x conf$$.sh
9530 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9531 PATH_SEPARATOR=';'
9532 else
9533 PATH_SEPARATOR=:
9535 rm -f conf$$.sh
9537 ac_prog=ld
9538 if test "$GCC" = yes; then
9539 # Check if gcc -print-prog-name=ld gives a path.
9540 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
9541 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
9542 case $host in
9543 *-*-mingw*)
9544 # gcc leaves a trailing carriage return which upsets mingw
9545 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9547 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9548 esac
9549 case $ac_prog in
9550 # Accept absolute paths.
9551 [\\/]* | [A-Za-z]:[\\/]*)
9552 re_direlt='/[^/][^/]*/\.\./'
9553 # Canonicalize the path of ld
9554 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9555 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9556 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9557 done
9558 test -z "$LD" && LD="$ac_prog"
9561 # If it fails, then pretend we aren't using GCC.
9562 ac_prog=ld
9565 # If it is relative, then search for the first ld in PATH.
9566 with_gnu_ld=unknown
9568 esac
9569 elif test "$with_gnu_ld" = yes; then
9570 echo "$as_me:$LINENO: checking for GNU ld" >&5
9571 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9572 else
9573 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9574 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9576 if test "${acl_cv_path_LD+set}" = set; then
9577 echo $ECHO_N "(cached) $ECHO_C" >&6
9578 else
9579 if test -z "$LD"; then
9580 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9581 for ac_dir in $PATH; do
9582 test -z "$ac_dir" && ac_dir=.
9583 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9584 acl_cv_path_LD="$ac_dir/$ac_prog"
9585 # Check to see if the program is GNU ld. I'd rather use --version,
9586 # but apparently some GNU ld's only accept -v.
9587 # Break only if it was the GNU/non-GNU ld that we prefer.
9588 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9589 test "$with_gnu_ld" != no && break
9590 else
9591 test "$with_gnu_ld" != yes && break
9594 done
9595 IFS="$ac_save_ifs"
9596 else
9597 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9601 LD="$acl_cv_path_LD"
9602 if test -n "$LD"; then
9603 echo "$as_me:$LINENO: result: $LD" >&5
9604 echo "${ECHO_T}$LD" >&6
9605 else
9606 echo "$as_me:$LINENO: result: no" >&5
9607 echo "${ECHO_T}no" >&6
9609 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9610 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9611 { (exit 1); exit 1; }; }
9612 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9613 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9614 if test "${acl_cv_prog_gnu_ld+set}" = set; then
9615 echo $ECHO_N "(cached) $ECHO_C" >&6
9616 else
9617 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9618 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9619 acl_cv_prog_gnu_ld=yes
9620 else
9621 acl_cv_prog_gnu_ld=no
9624 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9625 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
9626 with_gnu_ld=$acl_cv_prog_gnu_ld
9630 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9631 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
9632 if test "${acl_cv_rpath+set}" = set; then
9633 echo $ECHO_N "(cached) $ECHO_C" >&6
9634 else
9636 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9637 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9638 . ./conftest.sh
9639 rm -f ./conftest.sh
9640 acl_cv_rpath=done
9643 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9644 echo "${ECHO_T}$acl_cv_rpath" >&6
9645 wl="$acl_cv_wl"
9646 libext="$acl_cv_libext"
9647 shlibext="$acl_cv_shlibext"
9648 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9649 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9650 hardcode_direct="$acl_cv_hardcode_direct"
9651 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9652 # Check whether --enable-rpath or --disable-rpath was given.
9653 if test "${enable_rpath+set}" = set; then
9654 enableval="$enable_rpath"
9656 else
9657 enable_rpath=yes
9666 use_additional=yes
9668 acl_save_prefix="$prefix"
9669 prefix="$acl_final_prefix"
9670 acl_save_exec_prefix="$exec_prefix"
9671 exec_prefix="$acl_final_exec_prefix"
9673 eval additional_includedir=\"$includedir\"
9674 eval additional_libdir=\"$libdir\"
9676 exec_prefix="$acl_save_exec_prefix"
9677 prefix="$acl_save_prefix"
9680 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
9681 if test "${with_libiconv_prefix+set}" = set; then
9682 withval="$with_libiconv_prefix"
9684 if test "X$withval" = "Xno"; then
9685 use_additional=no
9686 else
9687 if test "X$withval" = "X"; then
9689 acl_save_prefix="$prefix"
9690 prefix="$acl_final_prefix"
9691 acl_save_exec_prefix="$exec_prefix"
9692 exec_prefix="$acl_final_exec_prefix"
9694 eval additional_includedir=\"$includedir\"
9695 eval additional_libdir=\"$libdir\"
9697 exec_prefix="$acl_save_exec_prefix"
9698 prefix="$acl_save_prefix"
9700 else
9701 additional_includedir="$withval/include"
9702 additional_libdir="$withval/lib"
9707 LIBICONV=
9708 LTLIBICONV=
9709 INCICONV=
9710 rpathdirs=
9711 ltrpathdirs=
9712 names_already_handled=
9713 names_next_round='iconv '
9714 while test -n "$names_next_round"; do
9715 names_this_round="$names_next_round"
9716 names_next_round=
9717 for name in $names_this_round; do
9718 already_handled=
9719 for n in $names_already_handled; do
9720 if test "$n" = "$name"; then
9721 already_handled=yes
9722 break
9724 done
9725 if test -z "$already_handled"; then
9726 names_already_handled="$names_already_handled $name"
9727 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9728 eval value=\"\$HAVE_LIB$uppername\"
9729 if test -n "$value"; then
9730 if test "$value" = yes; then
9731 eval value=\"\$LIB$uppername\"
9732 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9733 eval value=\"\$LTLIB$uppername\"
9734 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9735 else
9738 else
9739 found_dir=
9740 found_la=
9741 found_so=
9742 found_a=
9743 if test $use_additional = yes; then
9744 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9745 found_dir="$additional_libdir"
9746 found_so="$additional_libdir/lib$name.$shlibext"
9747 if test -f "$additional_libdir/lib$name.la"; then
9748 found_la="$additional_libdir/lib$name.la"
9750 else
9751 if test -f "$additional_libdir/lib$name.$libext"; then
9752 found_dir="$additional_libdir"
9753 found_a="$additional_libdir/lib$name.$libext"
9754 if test -f "$additional_libdir/lib$name.la"; then
9755 found_la="$additional_libdir/lib$name.la"
9760 if test "X$found_dir" = "X"; then
9761 for x in $LDFLAGS $LTLIBICONV; do
9763 acl_save_prefix="$prefix"
9764 prefix="$acl_final_prefix"
9765 acl_save_exec_prefix="$exec_prefix"
9766 exec_prefix="$acl_final_exec_prefix"
9767 eval x=\"$x\"
9768 exec_prefix="$acl_save_exec_prefix"
9769 prefix="$acl_save_prefix"
9771 case "$x" in
9772 -L*)
9773 dir=`echo "X$x" | sed -e 's/^X-L//'`
9774 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9775 found_dir="$dir"
9776 found_so="$dir/lib$name.$shlibext"
9777 if test -f "$dir/lib$name.la"; then
9778 found_la="$dir/lib$name.la"
9780 else
9781 if test -f "$dir/lib$name.$libext"; then
9782 found_dir="$dir"
9783 found_a="$dir/lib$name.$libext"
9784 if test -f "$dir/lib$name.la"; then
9785 found_la="$dir/lib$name.la"
9790 esac
9791 if test "X$found_dir" != "X"; then
9792 break
9794 done
9796 if test "X$found_dir" != "X"; then
9797 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9798 if test "X$found_so" != "X"; then
9799 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9800 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9801 else
9802 haveit=
9803 for x in $ltrpathdirs; do
9804 if test "X$x" = "X$found_dir"; then
9805 haveit=yes
9806 break
9808 done
9809 if test -z "$haveit"; then
9810 ltrpathdirs="$ltrpathdirs $found_dir"
9812 if test "$hardcode_direct" = yes; then
9813 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9814 else
9815 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9816 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9817 haveit=
9818 for x in $rpathdirs; do
9819 if test "X$x" = "X$found_dir"; then
9820 haveit=yes
9821 break
9823 done
9824 if test -z "$haveit"; then
9825 rpathdirs="$rpathdirs $found_dir"
9827 else
9828 haveit=
9829 for x in $LDFLAGS $LIBICONV; do
9831 acl_save_prefix="$prefix"
9832 prefix="$acl_final_prefix"
9833 acl_save_exec_prefix="$exec_prefix"
9834 exec_prefix="$acl_final_exec_prefix"
9835 eval x=\"$x\"
9836 exec_prefix="$acl_save_exec_prefix"
9837 prefix="$acl_save_prefix"
9839 if test "X$x" = "X-L$found_dir"; then
9840 haveit=yes
9841 break
9843 done
9844 if test -z "$haveit"; then
9845 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9847 if test "$hardcode_minus_L" != no; then
9848 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9849 else
9850 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9855 else
9856 if test "X$found_a" != "X"; then
9857 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9858 else
9859 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9862 additional_includedir=
9863 case "$found_dir" in
9864 */lib | */lib/)
9865 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9866 additional_includedir="$basedir/include"
9868 esac
9869 if test "X$additional_includedir" != "X"; then
9870 if test "X$additional_includedir" != "X/usr/include"; then
9871 haveit=
9872 if test "X$additional_includedir" = "X/usr/local/include"; then
9873 if test -n "$GCC"; then
9874 case $host_os in
9875 linux*) haveit=yes;;
9876 esac
9879 if test -z "$haveit"; then
9880 for x in $CPPFLAGS $INCICONV; do
9882 acl_save_prefix="$prefix"
9883 prefix="$acl_final_prefix"
9884 acl_save_exec_prefix="$exec_prefix"
9885 exec_prefix="$acl_final_exec_prefix"
9886 eval x=\"$x\"
9887 exec_prefix="$acl_save_exec_prefix"
9888 prefix="$acl_save_prefix"
9890 if test "X$x" = "X-I$additional_includedir"; then
9891 haveit=yes
9892 break
9894 done
9895 if test -z "$haveit"; then
9896 if test -d "$additional_includedir"; then
9897 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9903 if test -n "$found_la"; then
9904 save_libdir="$libdir"
9905 case "$found_la" in
9906 */* | *\\*) . "$found_la" ;;
9907 *) . "./$found_la" ;;
9908 esac
9909 libdir="$save_libdir"
9910 for dep in $dependency_libs; do
9911 case "$dep" in
9912 -L*)
9913 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9914 if test "X$additional_libdir" != "X/usr/lib"; then
9915 haveit=
9916 if test "X$additional_libdir" = "X/usr/local/lib"; then
9917 if test -n "$GCC"; then
9918 case $host_os in
9919 linux*) haveit=yes;;
9920 esac
9923 if test -z "$haveit"; then
9924 haveit=
9925 for x in $LDFLAGS $LIBICONV; do
9927 acl_save_prefix="$prefix"
9928 prefix="$acl_final_prefix"
9929 acl_save_exec_prefix="$exec_prefix"
9930 exec_prefix="$acl_final_exec_prefix"
9931 eval x=\"$x\"
9932 exec_prefix="$acl_save_exec_prefix"
9933 prefix="$acl_save_prefix"
9935 if test "X$x" = "X-L$additional_libdir"; then
9936 haveit=yes
9937 break
9939 done
9940 if test -z "$haveit"; then
9941 if test -d "$additional_libdir"; then
9942 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9945 haveit=
9946 for x in $LDFLAGS $LTLIBICONV; do
9948 acl_save_prefix="$prefix"
9949 prefix="$acl_final_prefix"
9950 acl_save_exec_prefix="$exec_prefix"
9951 exec_prefix="$acl_final_exec_prefix"
9952 eval x=\"$x\"
9953 exec_prefix="$acl_save_exec_prefix"
9954 prefix="$acl_save_prefix"
9956 if test "X$x" = "X-L$additional_libdir"; then
9957 haveit=yes
9958 break
9960 done
9961 if test -z "$haveit"; then
9962 if test -d "$additional_libdir"; then
9963 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9969 -R*)
9970 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9971 if test "$enable_rpath" != no; then
9972 haveit=
9973 for x in $rpathdirs; do
9974 if test "X$x" = "X$dir"; then
9975 haveit=yes
9976 break
9978 done
9979 if test -z "$haveit"; then
9980 rpathdirs="$rpathdirs $dir"
9982 haveit=
9983 for x in $ltrpathdirs; do
9984 if test "X$x" = "X$dir"; then
9985 haveit=yes
9986 break
9988 done
9989 if test -z "$haveit"; then
9990 ltrpathdirs="$ltrpathdirs $dir"
9994 -l*)
9995 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9997 *.la)
9998 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10001 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10002 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10004 esac
10005 done
10007 else
10008 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10009 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10013 done
10014 done
10015 if test "X$rpathdirs" != "X"; then
10016 if test -n "$hardcode_libdir_separator"; then
10017 alldirs=
10018 for found_dir in $rpathdirs; do
10019 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10020 done
10021 acl_save_libdir="$libdir"
10022 libdir="$alldirs"
10023 eval flag=\"$hardcode_libdir_flag_spec\"
10024 libdir="$acl_save_libdir"
10025 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10026 else
10027 for found_dir in $rpathdirs; do
10028 acl_save_libdir="$libdir"
10029 libdir="$found_dir"
10030 eval flag=\"$hardcode_libdir_flag_spec\"
10031 libdir="$acl_save_libdir"
10032 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10033 done
10036 if test "X$ltrpathdirs" != "X"; then
10037 for found_dir in $ltrpathdirs; do
10038 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10039 done
10048 am_save_CPPFLAGS="$CPPFLAGS"
10050 for element in $INCICONV; do
10051 haveit=
10052 for x in $CPPFLAGS; do
10054 acl_save_prefix="$prefix"
10055 prefix="$acl_final_prefix"
10056 acl_save_exec_prefix="$exec_prefix"
10057 exec_prefix="$acl_final_exec_prefix"
10058 eval x=\"$x\"
10059 exec_prefix="$acl_save_exec_prefix"
10060 prefix="$acl_save_prefix"
10062 if test "X$x" = "X$element"; then
10063 haveit=yes
10064 break
10066 done
10067 if test -z "$haveit"; then
10068 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10070 done
10073 echo "$as_me:$LINENO: checking for iconv" >&5
10074 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10075 if test "${am_cv_func_iconv+set}" = set; then
10076 echo $ECHO_N "(cached) $ECHO_C" >&6
10077 else
10079 am_cv_func_iconv="no, consider installing GNU libiconv"
10080 am_cv_lib_iconv=no
10081 if test x$gcc_no_link = xyes; then
10082 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10083 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10084 { (exit 1); exit 1; }; }
10086 cat >conftest.$ac_ext <<_ACEOF
10087 /* confdefs.h. */
10088 _ACEOF
10089 cat confdefs.h >>conftest.$ac_ext
10090 cat >>conftest.$ac_ext <<_ACEOF
10091 /* end confdefs.h. */
10092 #include <stdlib.h>
10093 #include <iconv.h>
10095 main ()
10097 iconv_t cd = iconv_open("","");
10098 iconv(cd,NULL,NULL,NULL,NULL);
10099 iconv_close(cd);
10101 return 0;
10103 _ACEOF
10104 rm -f conftest.$ac_objext conftest$ac_exeext
10105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10106 (eval $ac_link) 2>conftest.er1
10107 ac_status=$?
10108 grep -v '^ *+' conftest.er1 >conftest.err
10109 rm -f conftest.er1
10110 cat conftest.err >&5
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); } &&
10113 { ac_try='test -z "$ac_c_werror_flag"
10114 || test ! -s conftest.err'
10115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10116 (eval $ac_try) 2>&5
10117 ac_status=$?
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); }; } &&
10120 { ac_try='test -s conftest$ac_exeext'
10121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10122 (eval $ac_try) 2>&5
10123 ac_status=$?
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); }; }; then
10126 am_cv_func_iconv=yes
10127 else
10128 echo "$as_me: failed program was:" >&5
10129 sed 's/^/| /' conftest.$ac_ext >&5
10132 rm -f conftest.err conftest.$ac_objext \
10133 conftest$ac_exeext conftest.$ac_ext
10134 if test "$am_cv_func_iconv" != yes; then
10135 am_save_LIBS="$LIBS"
10136 LIBS="$LIBS $LIBICONV"
10137 if test x$gcc_no_link = xyes; then
10138 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10139 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10140 { (exit 1); exit 1; }; }
10142 cat >conftest.$ac_ext <<_ACEOF
10143 /* confdefs.h. */
10144 _ACEOF
10145 cat confdefs.h >>conftest.$ac_ext
10146 cat >>conftest.$ac_ext <<_ACEOF
10147 /* end confdefs.h. */
10148 #include <stdlib.h>
10149 #include <iconv.h>
10151 main ()
10153 iconv_t cd = iconv_open("","");
10154 iconv(cd,NULL,NULL,NULL,NULL);
10155 iconv_close(cd);
10157 return 0;
10159 _ACEOF
10160 rm -f conftest.$ac_objext conftest$ac_exeext
10161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10162 (eval $ac_link) 2>conftest.er1
10163 ac_status=$?
10164 grep -v '^ *+' conftest.er1 >conftest.err
10165 rm -f conftest.er1
10166 cat conftest.err >&5
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); } &&
10169 { ac_try='test -z "$ac_c_werror_flag"
10170 || test ! -s conftest.err'
10171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10172 (eval $ac_try) 2>&5
10173 ac_status=$?
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); }; } &&
10176 { ac_try='test -s conftest$ac_exeext'
10177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10178 (eval $ac_try) 2>&5
10179 ac_status=$?
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); }; }; then
10182 am_cv_lib_iconv=yes
10183 am_cv_func_iconv=yes
10184 else
10185 echo "$as_me: failed program was:" >&5
10186 sed 's/^/| /' conftest.$ac_ext >&5
10189 rm -f conftest.err conftest.$ac_objext \
10190 conftest$ac_exeext conftest.$ac_ext
10191 LIBS="$am_save_LIBS"
10195 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10196 echo "${ECHO_T}$am_cv_func_iconv" >&6
10197 if test "$am_cv_func_iconv" = yes; then
10199 cat >>confdefs.h <<\_ACEOF
10200 #define HAVE_ICONV 1
10201 _ACEOF
10204 if test "$am_cv_lib_iconv" = yes; then
10205 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10206 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10207 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10208 echo "${ECHO_T}$LIBICONV" >&6
10209 else
10210 CPPFLAGS="$am_save_CPPFLAGS"
10211 LIBICONV=
10212 LTLIBICONV=
10217 if test "$am_cv_func_iconv" = yes; then
10218 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10219 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10220 if test "${am_cv_proto_iconv+set}" = set; then
10221 echo $ECHO_N "(cached) $ECHO_C" >&6
10222 else
10224 cat >conftest.$ac_ext <<_ACEOF
10225 /* confdefs.h. */
10226 _ACEOF
10227 cat confdefs.h >>conftest.$ac_ext
10228 cat >>conftest.$ac_ext <<_ACEOF
10229 /* end confdefs.h. */
10231 #include <stdlib.h>
10232 #include <iconv.h>
10233 extern
10234 #ifdef __cplusplus
10236 #endif
10237 #if defined(__STDC__) || defined(__cplusplus)
10238 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10239 #else
10240 size_t iconv();
10241 #endif
10244 main ()
10248 return 0;
10250 _ACEOF
10251 rm -f conftest.$ac_objext
10252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10253 (eval $ac_compile) 2>conftest.er1
10254 ac_status=$?
10255 grep -v '^ *+' conftest.er1 >conftest.err
10256 rm -f conftest.er1
10257 cat conftest.err >&5
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); } &&
10260 { ac_try='test -z "$ac_c_werror_flag"
10261 || test ! -s conftest.err'
10262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10263 (eval $ac_try) 2>&5
10264 ac_status=$?
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); }; } &&
10267 { ac_try='test -s conftest.$ac_objext'
10268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10269 (eval $ac_try) 2>&5
10270 ac_status=$?
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); }; }; then
10273 am_cv_proto_iconv_arg1=""
10274 else
10275 echo "$as_me: failed program was:" >&5
10276 sed 's/^/| /' conftest.$ac_ext >&5
10278 am_cv_proto_iconv_arg1="const"
10280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10281 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);"
10284 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10285 echo "$as_me:$LINENO: result: ${ac_t:-
10286 }$am_cv_proto_iconv" >&5
10287 echo "${ECHO_T}${ac_t:-
10288 }$am_cv_proto_iconv" >&6
10290 cat >>confdefs.h <<_ACEOF
10291 #define ICONV_CONST $am_cv_proto_iconv_arg1
10292 _ACEOF
10297 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10298 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10299 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10300 echo $ECHO_N "(cached) $ECHO_C" >&6
10301 else
10302 if test x$gcc_no_link = xyes; then
10303 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10304 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10305 { (exit 1); exit 1; }; }
10307 cat >conftest.$ac_ext <<_ACEOF
10308 /* confdefs.h. */
10309 _ACEOF
10310 cat confdefs.h >>conftest.$ac_ext
10311 cat >>conftest.$ac_ext <<_ACEOF
10312 /* end confdefs.h. */
10313 #include <locale.h>
10315 main ()
10317 return LC_MESSAGES
10319 return 0;
10321 _ACEOF
10322 rm -f conftest.$ac_objext conftest$ac_exeext
10323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10324 (eval $ac_link) 2>conftest.er1
10325 ac_status=$?
10326 grep -v '^ *+' conftest.er1 >conftest.err
10327 rm -f conftest.er1
10328 cat conftest.err >&5
10329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 (exit $ac_status); } &&
10331 { ac_try='test -z "$ac_c_werror_flag"
10332 || test ! -s conftest.err'
10333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10334 (eval $ac_try) 2>&5
10335 ac_status=$?
10336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337 (exit $ac_status); }; } &&
10338 { ac_try='test -s conftest$ac_exeext'
10339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10340 (eval $ac_try) 2>&5
10341 ac_status=$?
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); }; }; then
10344 am_cv_val_LC_MESSAGES=yes
10345 else
10346 echo "$as_me: failed program was:" >&5
10347 sed 's/^/| /' conftest.$ac_ext >&5
10349 am_cv_val_LC_MESSAGES=no
10351 rm -f conftest.err conftest.$ac_objext \
10352 conftest$ac_exeext conftest.$ac_ext
10354 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10355 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10356 if test $am_cv_val_LC_MESSAGES = yes; then
10358 cat >>confdefs.h <<\_ACEOF
10359 #define HAVE_LC_MESSAGES 1
10360 _ACEOF
10364 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10365 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10366 if test "${ac_cv_struct_tm+set}" = set; then
10367 echo $ECHO_N "(cached) $ECHO_C" >&6
10368 else
10369 cat >conftest.$ac_ext <<_ACEOF
10370 /* confdefs.h. */
10371 _ACEOF
10372 cat confdefs.h >>conftest.$ac_ext
10373 cat >>conftest.$ac_ext <<_ACEOF
10374 /* end confdefs.h. */
10375 #include <sys/types.h>
10376 #include <time.h>
10379 main ()
10381 struct tm *tp; tp->tm_sec;
10383 return 0;
10385 _ACEOF
10386 rm -f conftest.$ac_objext
10387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10388 (eval $ac_compile) 2>conftest.er1
10389 ac_status=$?
10390 grep -v '^ *+' conftest.er1 >conftest.err
10391 rm -f conftest.er1
10392 cat conftest.err >&5
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); } &&
10395 { ac_try='test -z "$ac_c_werror_flag"
10396 || 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_objext'
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 ac_cv_struct_tm=time.h
10409 else
10410 echo "$as_me: failed program was:" >&5
10411 sed 's/^/| /' conftest.$ac_ext >&5
10413 ac_cv_struct_tm=sys/time.h
10415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10417 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10418 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10419 if test $ac_cv_struct_tm = sys/time.h; then
10421 cat >>confdefs.h <<\_ACEOF
10422 #define TM_IN_SYS_TIME 1
10423 _ACEOF
10427 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10428 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10429 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10430 echo $ECHO_N "(cached) $ECHO_C" >&6
10431 else
10432 cat >conftest.$ac_ext <<_ACEOF
10433 /* confdefs.h. */
10434 _ACEOF
10435 cat confdefs.h >>conftest.$ac_ext
10436 cat >>conftest.$ac_ext <<_ACEOF
10437 /* end confdefs.h. */
10438 #include <sys/types.h>
10439 #include <$ac_cv_struct_tm>
10443 main ()
10445 static struct tm ac_aggr;
10446 if (ac_aggr.tm_zone)
10447 return 0;
10449 return 0;
10451 _ACEOF
10452 rm -f conftest.$ac_objext
10453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10454 (eval $ac_compile) 2>conftest.er1
10455 ac_status=$?
10456 grep -v '^ *+' conftest.er1 >conftest.err
10457 rm -f conftest.er1
10458 cat conftest.err >&5
10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); } &&
10461 { ac_try='test -z "$ac_c_werror_flag"
10462 || test ! -s conftest.err'
10463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10464 (eval $ac_try) 2>&5
10465 ac_status=$?
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); }; } &&
10468 { ac_try='test -s conftest.$ac_objext'
10469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10470 (eval $ac_try) 2>&5
10471 ac_status=$?
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); }; }; then
10474 ac_cv_member_struct_tm_tm_zone=yes
10475 else
10476 echo "$as_me: failed program was:" >&5
10477 sed 's/^/| /' conftest.$ac_ext >&5
10479 cat >conftest.$ac_ext <<_ACEOF
10480 /* confdefs.h. */
10481 _ACEOF
10482 cat confdefs.h >>conftest.$ac_ext
10483 cat >>conftest.$ac_ext <<_ACEOF
10484 /* end confdefs.h. */
10485 #include <sys/types.h>
10486 #include <$ac_cv_struct_tm>
10490 main ()
10492 static struct tm ac_aggr;
10493 if (sizeof ac_aggr.tm_zone)
10494 return 0;
10496 return 0;
10498 _ACEOF
10499 rm -f conftest.$ac_objext
10500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10501 (eval $ac_compile) 2>conftest.er1
10502 ac_status=$?
10503 grep -v '^ *+' conftest.er1 >conftest.err
10504 rm -f conftest.er1
10505 cat conftest.err >&5
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); } &&
10508 { ac_try='test -z "$ac_c_werror_flag"
10509 || test ! -s conftest.err'
10510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10511 (eval $ac_try) 2>&5
10512 ac_status=$?
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); }; } &&
10515 { ac_try='test -s conftest.$ac_objext'
10516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10517 (eval $ac_try) 2>&5
10518 ac_status=$?
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); }; }; then
10521 ac_cv_member_struct_tm_tm_zone=yes
10522 else
10523 echo "$as_me: failed program was:" >&5
10524 sed 's/^/| /' conftest.$ac_ext >&5
10526 ac_cv_member_struct_tm_tm_zone=no
10528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10532 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10533 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10534 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10536 cat >>confdefs.h <<_ACEOF
10537 #define HAVE_STRUCT_TM_TM_ZONE 1
10538 _ACEOF
10543 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10545 cat >>confdefs.h <<\_ACEOF
10546 #define HAVE_TM_ZONE 1
10547 _ACEOF
10549 else
10550 echo "$as_me:$LINENO: checking for tzname" >&5
10551 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10552 if test "${ac_cv_var_tzname+set}" = set; then
10553 echo $ECHO_N "(cached) $ECHO_C" >&6
10554 else
10555 if test x$gcc_no_link = xyes; then
10556 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10557 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10558 { (exit 1); exit 1; }; }
10560 cat >conftest.$ac_ext <<_ACEOF
10561 /* confdefs.h. */
10562 _ACEOF
10563 cat confdefs.h >>conftest.$ac_ext
10564 cat >>conftest.$ac_ext <<_ACEOF
10565 /* end confdefs.h. */
10566 #include <time.h>
10567 #ifndef tzname /* For SGI. */
10568 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
10569 #endif
10572 main ()
10574 atoi(*tzname);
10576 return 0;
10578 _ACEOF
10579 rm -f conftest.$ac_objext conftest$ac_exeext
10580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10581 (eval $ac_link) 2>conftest.er1
10582 ac_status=$?
10583 grep -v '^ *+' conftest.er1 >conftest.err
10584 rm -f conftest.er1
10585 cat conftest.err >&5
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); } &&
10588 { ac_try='test -z "$ac_c_werror_flag"
10589 || test ! -s conftest.err'
10590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10591 (eval $ac_try) 2>&5
10592 ac_status=$?
10593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594 (exit $ac_status); }; } &&
10595 { ac_try='test -s conftest$ac_exeext'
10596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10597 (eval $ac_try) 2>&5
10598 ac_status=$?
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); }; }; then
10601 ac_cv_var_tzname=yes
10602 else
10603 echo "$as_me: failed program was:" >&5
10604 sed 's/^/| /' conftest.$ac_ext >&5
10606 ac_cv_var_tzname=no
10608 rm -f conftest.err conftest.$ac_objext \
10609 conftest$ac_exeext conftest.$ac_ext
10611 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10612 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10613 if test $ac_cv_var_tzname = yes; then
10615 cat >>confdefs.h <<\_ACEOF
10616 #define HAVE_TZNAME 1
10617 _ACEOF
10625 for ac_func in gethostbyname_r
10627 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10628 echo "$as_me:$LINENO: checking for $ac_func" >&5
10629 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10630 if eval "test \"\${$as_ac_var+set}\" = set"; then
10631 echo $ECHO_N "(cached) $ECHO_C" >&6
10632 else
10633 if test x$gcc_no_link = xyes; then
10634 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10635 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10636 { (exit 1); exit 1; }; }
10638 cat >conftest.$ac_ext <<_ACEOF
10639 /* confdefs.h. */
10640 _ACEOF
10641 cat confdefs.h >>conftest.$ac_ext
10642 cat >>conftest.$ac_ext <<_ACEOF
10643 /* end confdefs.h. */
10644 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10646 #define $ac_func innocuous_$ac_func
10648 /* System header to define __stub macros and hopefully few prototypes,
10649 which can conflict with char $ac_func (); below.
10650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10651 <limits.h> exists even on freestanding compilers. */
10653 #ifdef __STDC__
10654 # include <limits.h>
10655 #else
10656 # include <assert.h>
10657 #endif
10659 #undef $ac_func
10661 /* Override any gcc2 internal prototype to avoid an error. */
10662 #ifdef __cplusplus
10663 extern "C"
10665 #endif
10666 /* We use char because int might match the return type of a gcc2
10667 builtin and then its argument prototype would still apply. */
10668 char $ac_func ();
10669 /* The GNU C library defines this for functions which it implements
10670 to always fail with ENOSYS. Some functions are actually named
10671 something starting with __ and the normal name is an alias. */
10672 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10673 choke me
10674 #else
10675 char (*f) () = $ac_func;
10676 #endif
10677 #ifdef __cplusplus
10679 #endif
10682 main ()
10684 return f != $ac_func;
10686 return 0;
10688 _ACEOF
10689 rm -f conftest.$ac_objext conftest$ac_exeext
10690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10691 (eval $ac_link) 2>conftest.er1
10692 ac_status=$?
10693 grep -v '^ *+' conftest.er1 >conftest.err
10694 rm -f conftest.er1
10695 cat conftest.err >&5
10696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 (exit $ac_status); } &&
10698 { ac_try='test -z "$ac_c_werror_flag"
10699 || test ! -s conftest.err'
10700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10701 (eval $ac_try) 2>&5
10702 ac_status=$?
10703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704 (exit $ac_status); }; } &&
10705 { ac_try='test -s conftest$ac_exeext'
10706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10707 (eval $ac_try) 2>&5
10708 ac_status=$?
10709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); }; }; then
10711 eval "$as_ac_var=yes"
10712 else
10713 echo "$as_me: failed program was:" >&5
10714 sed 's/^/| /' conftest.$ac_ext >&5
10716 eval "$as_ac_var=no"
10718 rm -f conftest.err conftest.$ac_objext \
10719 conftest$ac_exeext conftest.$ac_ext
10721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10722 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10723 if test `eval echo '${'$as_ac_var'}'` = yes; then
10724 cat >>confdefs.h <<_ACEOF
10725 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10726 _ACEOF
10729 cat >>confdefs.h <<\_ACEOF
10730 #define HAVE_GETHOSTBYNAME_R 1
10731 _ACEOF
10733 # There are two different kinds of gethostbyname_r.
10734 # We look for the one that returns `int'.
10735 # Hopefully this check is robust enough.
10736 cat >conftest.$ac_ext <<_ACEOF
10737 /* confdefs.h. */
10738 _ACEOF
10739 cat confdefs.h >>conftest.$ac_ext
10740 cat >>conftest.$ac_ext <<_ACEOF
10741 /* end confdefs.h. */
10742 #include <netdb.h>
10744 _ACEOF
10745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10746 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
10749 cat >>confdefs.h <<\_ACEOF
10750 #define GETHOSTBYNAME_R_RETURNS_INT 1
10751 _ACEOF
10754 rm -f conftest*
10757 case " $GCINCS " in
10758 *" -D_REENTRANT "*) ;;
10760 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
10761 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
10762 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
10763 echo $ECHO_N "(cached) $ECHO_C" >&6
10764 else
10765 ac_ext=cc
10766 ac_cpp='$CXXCPP $CPPFLAGS'
10767 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10768 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10769 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10771 cat >conftest.$ac_ext <<_ACEOF
10772 /* confdefs.h. */
10773 _ACEOF
10774 cat confdefs.h >>conftest.$ac_ext
10775 cat >>conftest.$ac_ext <<_ACEOF
10776 /* end confdefs.h. */
10777 #include <netdb.h>
10779 main ()
10781 gethostbyname_r("", 0, 0);
10783 return 0;
10785 _ACEOF
10786 rm -f conftest.$ac_objext
10787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10788 (eval $ac_compile) 2>conftest.er1
10789 ac_status=$?
10790 grep -v '^ *+' conftest.er1 >conftest.err
10791 rm -f conftest.er1
10792 cat conftest.err >&5
10793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794 (exit $ac_status); } &&
10795 { ac_try='test -z "$ac_cxx_werror_flag"
10796 || test ! -s conftest.err'
10797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10798 (eval $ac_try) 2>&5
10799 ac_status=$?
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); }; } &&
10802 { ac_try='test -s conftest.$ac_objext'
10803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10804 (eval $ac_try) 2>&5
10805 ac_status=$?
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); }; }; then
10808 libjava_cv_gethostbyname_r_needs_reentrant=no
10809 else
10810 echo "$as_me: failed program was:" >&5
10811 sed 's/^/| /' conftest.$ac_ext >&5
10813 CPPFLAGS_SAVE="$CPPFLAGS"
10814 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
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. */
10821 #include <netdb.h>
10823 main ()
10825 gethostbyname_r("", 0, 0);
10827 return 0;
10829 _ACEOF
10830 rm -f conftest.$ac_objext
10831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10832 (eval $ac_compile) 2>conftest.er1
10833 ac_status=$?
10834 grep -v '^ *+' conftest.er1 >conftest.err
10835 rm -f conftest.er1
10836 cat conftest.err >&5
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); } &&
10839 { ac_try='test -z "$ac_cxx_werror_flag"
10840 || test ! -s conftest.err'
10841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10842 (eval $ac_try) 2>&5
10843 ac_status=$?
10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); }; } &&
10846 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10852 libjava_cv_gethostbyname_r_needs_reentrant=yes
10853 else
10854 echo "$as_me: failed program was:" >&5
10855 sed 's/^/| /' conftest.$ac_ext >&5
10857 libjava_cv_gethostbyname_r_needs_reentrant=fail
10859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10860 CPPFLAGS="$CPPFLAGS_SAVE"
10863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10864 ac_ext=c
10865 ac_cpp='$CPP $CPPFLAGS'
10866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10872 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
10873 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
10874 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
10876 cat >>confdefs.h <<\_ACEOF
10877 #define _REENTRANT 1
10878 _ACEOF
10882 esac
10884 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
10885 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
10886 if test "${libjava_cv_struct_hostent_data+set}" = set; then
10887 echo $ECHO_N "(cached) $ECHO_C" >&6
10888 else
10889 cat >conftest.$ac_ext <<_ACEOF
10890 /* confdefs.h. */
10891 _ACEOF
10892 cat confdefs.h >>conftest.$ac_ext
10893 cat >>conftest.$ac_ext <<_ACEOF
10894 /* end confdefs.h. */
10896 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
10897 # define _REENTRANT 1
10898 #endif
10899 #include <netdb.h>
10901 main ()
10903 struct hostent_data data;
10905 return 0;
10907 _ACEOF
10908 rm -f conftest.$ac_objext
10909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10910 (eval $ac_compile) 2>conftest.er1
10911 ac_status=$?
10912 grep -v '^ *+' conftest.er1 >conftest.err
10913 rm -f conftest.er1
10914 cat conftest.err >&5
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); } &&
10917 { ac_try='test -z "$ac_c_werror_flag"
10918 || test ! -s conftest.err'
10919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10920 (eval $ac_try) 2>&5
10921 ac_status=$?
10922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 (exit $ac_status); }; } &&
10924 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10930 libjava_cv_struct_hostent_data=yes
10931 else
10932 echo "$as_me: failed program was:" >&5
10933 sed 's/^/| /' conftest.$ac_ext >&5
10935 libjava_cv_struct_hostent_data=no
10937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10939 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
10940 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
10941 if test "x$libjava_cv_struct_hostent_data" = xyes; then
10943 cat >>confdefs.h <<\_ACEOF
10944 #define HAVE_STRUCT_HOSTENT_DATA 1
10945 _ACEOF
10950 done
10953 # FIXME: libjava source code expects to find a prototype for
10954 # gethostbyaddr_r in netdb.h. The outer check ensures that
10955 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
10956 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
10957 # linkage check is enough, yet C++ code requires proper prototypes.)
10958 cat >conftest.$ac_ext <<_ACEOF
10959 /* confdefs.h. */
10960 _ACEOF
10961 cat confdefs.h >>conftest.$ac_ext
10962 cat >>conftest.$ac_ext <<_ACEOF
10963 /* end confdefs.h. */
10964 #include <netdb.h>
10966 _ACEOF
10967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10968 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
10971 for ac_func in gethostbyaddr_r
10973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10974 echo "$as_me:$LINENO: checking for $ac_func" >&5
10975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10976 if eval "test \"\${$as_ac_var+set}\" = set"; then
10977 echo $ECHO_N "(cached) $ECHO_C" >&6
10978 else
10979 if test x$gcc_no_link = xyes; then
10980 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10981 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10982 { (exit 1); exit 1; }; }
10984 cat >conftest.$ac_ext <<_ACEOF
10985 /* confdefs.h. */
10986 _ACEOF
10987 cat confdefs.h >>conftest.$ac_ext
10988 cat >>conftest.$ac_ext <<_ACEOF
10989 /* end confdefs.h. */
10990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10992 #define $ac_func innocuous_$ac_func
10994 /* System header to define __stub macros and hopefully few prototypes,
10995 which can conflict with char $ac_func (); below.
10996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10997 <limits.h> exists even on freestanding compilers. */
10999 #ifdef __STDC__
11000 # include <limits.h>
11001 #else
11002 # include <assert.h>
11003 #endif
11005 #undef $ac_func
11007 /* Override any gcc2 internal prototype to avoid an error. */
11008 #ifdef __cplusplus
11009 extern "C"
11011 #endif
11012 /* We use char because int might match the return type of a gcc2
11013 builtin and then its argument prototype would still apply. */
11014 char $ac_func ();
11015 /* The GNU C library defines this for functions which it implements
11016 to always fail with ENOSYS. Some functions are actually named
11017 something starting with __ and the normal name is an alias. */
11018 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11019 choke me
11020 #else
11021 char (*f) () = $ac_func;
11022 #endif
11023 #ifdef __cplusplus
11025 #endif
11028 main ()
11030 return f != $ac_func;
11032 return 0;
11034 _ACEOF
11035 rm -f conftest.$ac_objext conftest$ac_exeext
11036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11037 (eval $ac_link) 2>conftest.er1
11038 ac_status=$?
11039 grep -v '^ *+' conftest.er1 >conftest.err
11040 rm -f conftest.er1
11041 cat conftest.err >&5
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); } &&
11044 { ac_try='test -z "$ac_c_werror_flag"
11045 || test ! -s conftest.err'
11046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11047 (eval $ac_try) 2>&5
11048 ac_status=$?
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); }; } &&
11051 { ac_try='test -s conftest$ac_exeext'
11052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11053 (eval $ac_try) 2>&5
11054 ac_status=$?
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); }; }; then
11057 eval "$as_ac_var=yes"
11058 else
11059 echo "$as_me: failed program was:" >&5
11060 sed 's/^/| /' conftest.$ac_ext >&5
11062 eval "$as_ac_var=no"
11064 rm -f conftest.err conftest.$ac_objext \
11065 conftest$ac_exeext conftest.$ac_ext
11067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11068 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11069 if test `eval echo '${'$as_ac_var'}'` = yes; then
11070 cat >>confdefs.h <<_ACEOF
11071 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11072 _ACEOF
11075 cat >>confdefs.h <<\_ACEOF
11076 #define HAVE_GETHOSTBYADDR_R 1
11077 _ACEOF
11079 # There are two different kinds of gethostbyaddr_r.
11080 # We look for the one that returns `int'.
11081 # Hopefully this check is robust enough.
11082 cat >conftest.$ac_ext <<_ACEOF
11083 /* confdefs.h. */
11084 _ACEOF
11085 cat confdefs.h >>conftest.$ac_ext
11086 cat >>conftest.$ac_ext <<_ACEOF
11087 /* end confdefs.h. */
11088 #include <netdb.h>
11090 _ACEOF
11091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11092 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11095 cat >>confdefs.h <<\_ACEOF
11096 #define GETHOSTBYADDR_R_RETURNS_INT 1
11097 _ACEOF
11100 rm -f conftest*
11103 done
11106 rm -f conftest*
11110 for ac_func in gethostname
11112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11113 echo "$as_me:$LINENO: checking for $ac_func" >&5
11114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11115 if eval "test \"\${$as_ac_var+set}\" = set"; then
11116 echo $ECHO_N "(cached) $ECHO_C" >&6
11117 else
11118 if test x$gcc_no_link = xyes; then
11119 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11120 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11121 { (exit 1); exit 1; }; }
11123 cat >conftest.$ac_ext <<_ACEOF
11124 /* confdefs.h. */
11125 _ACEOF
11126 cat confdefs.h >>conftest.$ac_ext
11127 cat >>conftest.$ac_ext <<_ACEOF
11128 /* end confdefs.h. */
11129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11131 #define $ac_func innocuous_$ac_func
11133 /* System header to define __stub macros and hopefully few prototypes,
11134 which can conflict with char $ac_func (); below.
11135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11136 <limits.h> exists even on freestanding compilers. */
11138 #ifdef __STDC__
11139 # include <limits.h>
11140 #else
11141 # include <assert.h>
11142 #endif
11144 #undef $ac_func
11146 /* Override any gcc2 internal prototype to avoid an error. */
11147 #ifdef __cplusplus
11148 extern "C"
11150 #endif
11151 /* We use char because int might match the return type of a gcc2
11152 builtin and then its argument prototype would still apply. */
11153 char $ac_func ();
11154 /* The GNU C library defines this for functions which it implements
11155 to always fail with ENOSYS. Some functions are actually named
11156 something starting with __ and the normal name is an alias. */
11157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11158 choke me
11159 #else
11160 char (*f) () = $ac_func;
11161 #endif
11162 #ifdef __cplusplus
11164 #endif
11167 main ()
11169 return f != $ac_func;
11171 return 0;
11173 _ACEOF
11174 rm -f conftest.$ac_objext conftest$ac_exeext
11175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11176 (eval $ac_link) 2>conftest.er1
11177 ac_status=$?
11178 grep -v '^ *+' conftest.er1 >conftest.err
11179 rm -f conftest.er1
11180 cat conftest.err >&5
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); } &&
11183 { ac_try='test -z "$ac_c_werror_flag"
11184 || test ! -s conftest.err'
11185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11186 (eval $ac_try) 2>&5
11187 ac_status=$?
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); }; } &&
11190 { ac_try='test -s conftest$ac_exeext'
11191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11192 (eval $ac_try) 2>&5
11193 ac_status=$?
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); }; }; then
11196 eval "$as_ac_var=yes"
11197 else
11198 echo "$as_me: failed program was:" >&5
11199 sed 's/^/| /' conftest.$ac_ext >&5
11201 eval "$as_ac_var=no"
11203 rm -f conftest.err conftest.$ac_objext \
11204 conftest$ac_exeext conftest.$ac_ext
11206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11207 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11208 if test `eval echo '${'$as_ac_var'}'` = yes; then
11209 cat >>confdefs.h <<_ACEOF
11210 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11211 _ACEOF
11214 cat >>confdefs.h <<\_ACEOF
11215 #define HAVE_GETHOSTNAME 1
11216 _ACEOF
11218 cat >conftest.$ac_ext <<_ACEOF
11219 /* confdefs.h. */
11220 _ACEOF
11221 cat confdefs.h >>conftest.$ac_ext
11222 cat >>conftest.$ac_ext <<_ACEOF
11223 /* end confdefs.h. */
11224 #include <unistd.h>
11226 _ACEOF
11227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11228 $EGREP "gethostname" >/dev/null 2>&1; then
11231 cat >>confdefs.h <<\_ACEOF
11232 #define HAVE_GETHOSTNAME_DECL 1
11233 _ACEOF
11236 rm -f conftest*
11239 done
11243 for ac_func in usleep
11245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11246 echo "$as_me:$LINENO: checking for $ac_func" >&5
11247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11248 if eval "test \"\${$as_ac_var+set}\" = set"; then
11249 echo $ECHO_N "(cached) $ECHO_C" >&6
11250 else
11251 if test x$gcc_no_link = xyes; then
11252 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11253 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11254 { (exit 1); exit 1; }; }
11256 cat >conftest.$ac_ext <<_ACEOF
11257 /* confdefs.h. */
11258 _ACEOF
11259 cat confdefs.h >>conftest.$ac_ext
11260 cat >>conftest.$ac_ext <<_ACEOF
11261 /* end confdefs.h. */
11262 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11264 #define $ac_func innocuous_$ac_func
11266 /* System header to define __stub macros and hopefully few prototypes,
11267 which can conflict with char $ac_func (); below.
11268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11269 <limits.h> exists even on freestanding compilers. */
11271 #ifdef __STDC__
11272 # include <limits.h>
11273 #else
11274 # include <assert.h>
11275 #endif
11277 #undef $ac_func
11279 /* Override any gcc2 internal prototype to avoid an error. */
11280 #ifdef __cplusplus
11281 extern "C"
11283 #endif
11284 /* We use char because int might match the return type of a gcc2
11285 builtin and then its argument prototype would still apply. */
11286 char $ac_func ();
11287 /* The GNU C library defines this for functions which it implements
11288 to always fail with ENOSYS. Some functions are actually named
11289 something starting with __ and the normal name is an alias. */
11290 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11291 choke me
11292 #else
11293 char (*f) () = $ac_func;
11294 #endif
11295 #ifdef __cplusplus
11297 #endif
11300 main ()
11302 return f != $ac_func;
11304 return 0;
11306 _ACEOF
11307 rm -f conftest.$ac_objext conftest$ac_exeext
11308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11309 (eval $ac_link) 2>conftest.er1
11310 ac_status=$?
11311 grep -v '^ *+' conftest.er1 >conftest.err
11312 rm -f conftest.er1
11313 cat conftest.err >&5
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); } &&
11316 { ac_try='test -z "$ac_c_werror_flag"
11317 || test ! -s conftest.err'
11318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11319 (eval $ac_try) 2>&5
11320 ac_status=$?
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); }; } &&
11323 { ac_try='test -s conftest$ac_exeext'
11324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11325 (eval $ac_try) 2>&5
11326 ac_status=$?
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); }; }; then
11329 eval "$as_ac_var=yes"
11330 else
11331 echo "$as_me: failed program was:" >&5
11332 sed 's/^/| /' conftest.$ac_ext >&5
11334 eval "$as_ac_var=no"
11336 rm -f conftest.err conftest.$ac_objext \
11337 conftest$ac_exeext conftest.$ac_ext
11339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11340 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11341 if test `eval echo '${'$as_ac_var'}'` = yes; then
11342 cat >>confdefs.h <<_ACEOF
11343 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11344 _ACEOF
11346 cat >conftest.$ac_ext <<_ACEOF
11347 /* confdefs.h. */
11348 _ACEOF
11349 cat confdefs.h >>conftest.$ac_ext
11350 cat >>conftest.$ac_ext <<_ACEOF
11351 /* end confdefs.h. */
11352 #include <unistd.h>
11354 _ACEOF
11355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11356 $EGREP "usleep" >/dev/null 2>&1; then
11359 cat >>confdefs.h <<\_ACEOF
11360 #define HAVE_USLEEP_DECL 1
11361 _ACEOF
11364 rm -f conftest*
11367 done
11370 # Look for these functions in the thread library, but only bother
11371 # if using POSIX threads.
11372 if test "$THREADS" = posix; then
11373 save_LIBS="$LIBS"
11374 LIBS="$LIBS $THREADLIBS"
11375 # Some POSIX thread systems don't have pthread_mutexattr_settype.
11376 # E.g., Solaris.
11379 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
11381 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11382 echo "$as_me:$LINENO: checking for $ac_func" >&5
11383 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11384 if eval "test \"\${$as_ac_var+set}\" = set"; then
11385 echo $ECHO_N "(cached) $ECHO_C" >&6
11386 else
11387 if test x$gcc_no_link = xyes; then
11388 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11389 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11390 { (exit 1); exit 1; }; }
11392 cat >conftest.$ac_ext <<_ACEOF
11393 /* confdefs.h. */
11394 _ACEOF
11395 cat confdefs.h >>conftest.$ac_ext
11396 cat >>conftest.$ac_ext <<_ACEOF
11397 /* end confdefs.h. */
11398 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11400 #define $ac_func innocuous_$ac_func
11402 /* System header to define __stub macros and hopefully few prototypes,
11403 which can conflict with char $ac_func (); below.
11404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11405 <limits.h> exists even on freestanding compilers. */
11407 #ifdef __STDC__
11408 # include <limits.h>
11409 #else
11410 # include <assert.h>
11411 #endif
11413 #undef $ac_func
11415 /* Override any gcc2 internal prototype to avoid an error. */
11416 #ifdef __cplusplus
11417 extern "C"
11419 #endif
11420 /* We use char because int might match the return type of a gcc2
11421 builtin and then its argument prototype would still apply. */
11422 char $ac_func ();
11423 /* The GNU C library defines this for functions which it implements
11424 to always fail with ENOSYS. Some functions are actually named
11425 something starting with __ and the normal name is an alias. */
11426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11427 choke me
11428 #else
11429 char (*f) () = $ac_func;
11430 #endif
11431 #ifdef __cplusplus
11433 #endif
11436 main ()
11438 return f != $ac_func;
11440 return 0;
11442 _ACEOF
11443 rm -f conftest.$ac_objext conftest$ac_exeext
11444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11445 (eval $ac_link) 2>conftest.er1
11446 ac_status=$?
11447 grep -v '^ *+' conftest.er1 >conftest.err
11448 rm -f conftest.er1
11449 cat conftest.err >&5
11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451 (exit $ac_status); } &&
11452 { ac_try='test -z "$ac_c_werror_flag"
11453 || test ! -s conftest.err'
11454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11455 (eval $ac_try) 2>&5
11456 ac_status=$?
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); }; } &&
11459 { ac_try='test -s conftest$ac_exeext'
11460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11461 (eval $ac_try) 2>&5
11462 ac_status=$?
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); }; }; then
11465 eval "$as_ac_var=yes"
11466 else
11467 echo "$as_me: failed program was:" >&5
11468 sed 's/^/| /' conftest.$ac_ext >&5
11470 eval "$as_ac_var=no"
11472 rm -f conftest.err conftest.$ac_objext \
11473 conftest$ac_exeext conftest.$ac_ext
11475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11476 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11477 if test `eval echo '${'$as_ac_var'}'` = yes; then
11478 cat >>confdefs.h <<_ACEOF
11479 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11480 _ACEOF
11483 done
11486 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
11487 # Solaris 7 the name librt is preferred.
11489 for ac_func in sched_yield
11491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11492 echo "$as_me:$LINENO: checking for $ac_func" >&5
11493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11494 if eval "test \"\${$as_ac_var+set}\" = set"; then
11495 echo $ECHO_N "(cached) $ECHO_C" >&6
11496 else
11497 if test x$gcc_no_link = xyes; then
11498 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11499 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11500 { (exit 1); exit 1; }; }
11502 cat >conftest.$ac_ext <<_ACEOF
11503 /* confdefs.h. */
11504 _ACEOF
11505 cat confdefs.h >>conftest.$ac_ext
11506 cat >>conftest.$ac_ext <<_ACEOF
11507 /* end confdefs.h. */
11508 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11510 #define $ac_func innocuous_$ac_func
11512 /* System header to define __stub macros and hopefully few prototypes,
11513 which can conflict with char $ac_func (); below.
11514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11515 <limits.h> exists even on freestanding compilers. */
11517 #ifdef __STDC__
11518 # include <limits.h>
11519 #else
11520 # include <assert.h>
11521 #endif
11523 #undef $ac_func
11525 /* Override any gcc2 internal prototype to avoid an error. */
11526 #ifdef __cplusplus
11527 extern "C"
11529 #endif
11530 /* We use char because int might match the return type of a gcc2
11531 builtin and then its argument prototype would still apply. */
11532 char $ac_func ();
11533 /* The GNU C library defines this for functions which it implements
11534 to always fail with ENOSYS. Some functions are actually named
11535 something starting with __ and the normal name is an alias. */
11536 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11537 choke me
11538 #else
11539 char (*f) () = $ac_func;
11540 #endif
11541 #ifdef __cplusplus
11543 #endif
11546 main ()
11548 return f != $ac_func;
11550 return 0;
11552 _ACEOF
11553 rm -f conftest.$ac_objext conftest$ac_exeext
11554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11555 (eval $ac_link) 2>conftest.er1
11556 ac_status=$?
11557 grep -v '^ *+' conftest.er1 >conftest.err
11558 rm -f conftest.er1
11559 cat conftest.err >&5
11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); } &&
11562 { ac_try='test -z "$ac_c_werror_flag"
11563 || test ! -s conftest.err'
11564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11565 (eval $ac_try) 2>&5
11566 ac_status=$?
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); }; } &&
11569 { ac_try='test -s conftest$ac_exeext'
11570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11571 (eval $ac_try) 2>&5
11572 ac_status=$?
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); }; }; then
11575 eval "$as_ac_var=yes"
11576 else
11577 echo "$as_me: failed program was:" >&5
11578 sed 's/^/| /' conftest.$ac_ext >&5
11580 eval "$as_ac_var=no"
11582 rm -f conftest.err conftest.$ac_objext \
11583 conftest$ac_exeext conftest.$ac_ext
11585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11586 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11587 if test `eval echo '${'$as_ac_var'}'` = yes; then
11588 cat >>confdefs.h <<_ACEOF
11589 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11590 _ACEOF
11592 else
11594 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
11595 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
11596 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
11597 echo $ECHO_N "(cached) $ECHO_C" >&6
11598 else
11599 ac_check_lib_save_LIBS=$LIBS
11600 LIBS="-lrt $LIBS"
11601 if test x$gcc_no_link = xyes; then
11602 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11603 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11604 { (exit 1); exit 1; }; }
11606 cat >conftest.$ac_ext <<_ACEOF
11607 /* confdefs.h. */
11608 _ACEOF
11609 cat confdefs.h >>conftest.$ac_ext
11610 cat >>conftest.$ac_ext <<_ACEOF
11611 /* end confdefs.h. */
11613 /* Override any gcc2 internal prototype to avoid an error. */
11614 #ifdef __cplusplus
11615 extern "C"
11616 #endif
11617 /* We use char because int might match the return type of a gcc2
11618 builtin and then its argument prototype would still apply. */
11619 char sched_yield ();
11621 main ()
11623 sched_yield ();
11625 return 0;
11627 _ACEOF
11628 rm -f conftest.$ac_objext conftest$ac_exeext
11629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11630 (eval $ac_link) 2>conftest.er1
11631 ac_status=$?
11632 grep -v '^ *+' conftest.er1 >conftest.err
11633 rm -f conftest.er1
11634 cat conftest.err >&5
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); } &&
11637 { ac_try='test -z "$ac_c_werror_flag"
11638 || test ! -s conftest.err'
11639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11640 (eval $ac_try) 2>&5
11641 ac_status=$?
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); }; } &&
11644 { ac_try='test -s conftest$ac_exeext'
11645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11646 (eval $ac_try) 2>&5
11647 ac_status=$?
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); }; }; then
11650 ac_cv_lib_rt_sched_yield=yes
11651 else
11652 echo "$as_me: failed program was:" >&5
11653 sed 's/^/| /' conftest.$ac_ext >&5
11655 ac_cv_lib_rt_sched_yield=no
11657 rm -f conftest.err conftest.$ac_objext \
11658 conftest$ac_exeext conftest.$ac_ext
11659 LIBS=$ac_check_lib_save_LIBS
11661 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
11662 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
11663 if test $ac_cv_lib_rt_sched_yield = yes; then
11665 cat >>confdefs.h <<\_ACEOF
11666 #define HAVE_SCHED_YIELD 1
11667 _ACEOF
11669 THREADLIBS="$THREADLIBS -lrt"
11670 THREADSPEC="$THREADSPEC -lrt"
11671 else
11673 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
11674 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
11675 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
11676 echo $ECHO_N "(cached) $ECHO_C" >&6
11677 else
11678 ac_check_lib_save_LIBS=$LIBS
11679 LIBS="-lposix4 $LIBS"
11680 if test x$gcc_no_link = xyes; then
11681 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11682 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11683 { (exit 1); exit 1; }; }
11685 cat >conftest.$ac_ext <<_ACEOF
11686 /* confdefs.h. */
11687 _ACEOF
11688 cat confdefs.h >>conftest.$ac_ext
11689 cat >>conftest.$ac_ext <<_ACEOF
11690 /* end confdefs.h. */
11692 /* Override any gcc2 internal prototype to avoid an error. */
11693 #ifdef __cplusplus
11694 extern "C"
11695 #endif
11696 /* We use char because int might match the return type of a gcc2
11697 builtin and then its argument prototype would still apply. */
11698 char sched_yield ();
11700 main ()
11702 sched_yield ();
11704 return 0;
11706 _ACEOF
11707 rm -f conftest.$ac_objext conftest$ac_exeext
11708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11709 (eval $ac_link) 2>conftest.er1
11710 ac_status=$?
11711 grep -v '^ *+' conftest.er1 >conftest.err
11712 rm -f conftest.er1
11713 cat conftest.err >&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } &&
11716 { ac_try='test -z "$ac_c_werror_flag"
11717 || test ! -s conftest.err'
11718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11719 (eval $ac_try) 2>&5
11720 ac_status=$?
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); }; } &&
11723 { ac_try='test -s conftest$ac_exeext'
11724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11725 (eval $ac_try) 2>&5
11726 ac_status=$?
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); }; }; then
11729 ac_cv_lib_posix4_sched_yield=yes
11730 else
11731 echo "$as_me: failed program was:" >&5
11732 sed 's/^/| /' conftest.$ac_ext >&5
11734 ac_cv_lib_posix4_sched_yield=no
11736 rm -f conftest.err conftest.$ac_objext \
11737 conftest$ac_exeext conftest.$ac_ext
11738 LIBS=$ac_check_lib_save_LIBS
11740 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
11741 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
11742 if test $ac_cv_lib_posix4_sched_yield = yes; then
11744 cat >>confdefs.h <<\_ACEOF
11745 #define HAVE_SCHED_YIELD 1
11746 _ACEOF
11748 THREADLIBS="$THREADLIBS -lposix4"
11749 THREADSPEC="$THREADSPEC -lposix4"
11755 done
11757 LIBS="$save_LIBS"
11759 # We can save a little space at runtime if the mutex has m_count
11760 # or __m_count. This is a nice hack for Linux.
11761 cat >conftest.$ac_ext <<_ACEOF
11762 /* confdefs.h. */
11763 _ACEOF
11764 cat confdefs.h >>conftest.$ac_ext
11765 cat >>conftest.$ac_ext <<_ACEOF
11766 /* end confdefs.h. */
11767 #include <pthread.h>
11769 main ()
11772 extern pthread_mutex_t *mutex; int q = mutex->m_count;
11775 return 0;
11777 _ACEOF
11778 rm -f conftest.$ac_objext
11779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11780 (eval $ac_compile) 2>conftest.er1
11781 ac_status=$?
11782 grep -v '^ *+' conftest.er1 >conftest.err
11783 rm -f conftest.er1
11784 cat conftest.err >&5
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); } &&
11787 { ac_try='test -z "$ac_c_werror_flag"
11788 || test ! -s conftest.err'
11789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11790 (eval $ac_try) 2>&5
11791 ac_status=$?
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); }; } &&
11794 { ac_try='test -s conftest.$ac_objext'
11795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11796 (eval $ac_try) 2>&5
11797 ac_status=$?
11798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799 (exit $ac_status); }; }; then
11801 cat >>confdefs.h <<\_ACEOF
11802 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
11803 _ACEOF
11805 else
11806 echo "$as_me: failed program was:" >&5
11807 sed 's/^/| /' conftest.$ac_ext >&5
11810 cat >conftest.$ac_ext <<_ACEOF
11811 /* confdefs.h. */
11812 _ACEOF
11813 cat confdefs.h >>conftest.$ac_ext
11814 cat >>conftest.$ac_ext <<_ACEOF
11815 /* end confdefs.h. */
11816 #include <pthread.h>
11818 main ()
11821 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
11824 return 0;
11826 _ACEOF
11827 rm -f conftest.$ac_objext
11828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11829 (eval $ac_compile) 2>conftest.er1
11830 ac_status=$?
11831 grep -v '^ *+' conftest.er1 >conftest.err
11832 rm -f conftest.er1
11833 cat conftest.err >&5
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); } &&
11836 { ac_try='test -z "$ac_c_werror_flag"
11837 || test ! -s conftest.err'
11838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11839 (eval $ac_try) 2>&5
11840 ac_status=$?
11841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842 (exit $ac_status); }; } &&
11843 { ac_try='test -s conftest.$ac_objext'
11844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11845 (eval $ac_try) 2>&5
11846 ac_status=$?
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); }; }; then
11850 cat >>confdefs.h <<\_ACEOF
11851 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
11852 _ACEOF
11854 else
11855 echo "$as_me: failed program was:" >&5
11856 sed 's/^/| /' conftest.$ac_ext >&5
11859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11864 # We require a way to get the time.
11865 time_found=no
11869 for ac_func in gettimeofday time ftime
11871 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11872 echo "$as_me:$LINENO: checking for $ac_func" >&5
11873 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11874 if eval "test \"\${$as_ac_var+set}\" = set"; then
11875 echo $ECHO_N "(cached) $ECHO_C" >&6
11876 else
11877 if test x$gcc_no_link = xyes; then
11878 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11879 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11880 { (exit 1); exit 1; }; }
11882 cat >conftest.$ac_ext <<_ACEOF
11883 /* confdefs.h. */
11884 _ACEOF
11885 cat confdefs.h >>conftest.$ac_ext
11886 cat >>conftest.$ac_ext <<_ACEOF
11887 /* end confdefs.h. */
11888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11890 #define $ac_func innocuous_$ac_func
11892 /* System header to define __stub macros and hopefully few prototypes,
11893 which can conflict with char $ac_func (); below.
11894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11895 <limits.h> exists even on freestanding compilers. */
11897 #ifdef __STDC__
11898 # include <limits.h>
11899 #else
11900 # include <assert.h>
11901 #endif
11903 #undef $ac_func
11905 /* Override any gcc2 internal prototype to avoid an error. */
11906 #ifdef __cplusplus
11907 extern "C"
11909 #endif
11910 /* We use char because int might match the return type of a gcc2
11911 builtin and then its argument prototype would still apply. */
11912 char $ac_func ();
11913 /* The GNU C library defines this for functions which it implements
11914 to always fail with ENOSYS. Some functions are actually named
11915 something starting with __ and the normal name is an alias. */
11916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11917 choke me
11918 #else
11919 char (*f) () = $ac_func;
11920 #endif
11921 #ifdef __cplusplus
11923 #endif
11926 main ()
11928 return f != $ac_func;
11930 return 0;
11932 _ACEOF
11933 rm -f conftest.$ac_objext conftest$ac_exeext
11934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11935 (eval $ac_link) 2>conftest.er1
11936 ac_status=$?
11937 grep -v '^ *+' conftest.er1 >conftest.err
11938 rm -f conftest.er1
11939 cat conftest.err >&5
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); } &&
11942 { ac_try='test -z "$ac_c_werror_flag"
11943 || test ! -s conftest.err'
11944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11945 (eval $ac_try) 2>&5
11946 ac_status=$?
11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); }; } &&
11949 { ac_try='test -s conftest$ac_exeext'
11950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11951 (eval $ac_try) 2>&5
11952 ac_status=$?
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); }; }; then
11955 eval "$as_ac_var=yes"
11956 else
11957 echo "$as_me: failed program was:" >&5
11958 sed 's/^/| /' conftest.$ac_ext >&5
11960 eval "$as_ac_var=no"
11962 rm -f conftest.err conftest.$ac_objext \
11963 conftest$ac_exeext conftest.$ac_ext
11965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11966 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11967 if test `eval echo '${'$as_ac_var'}'` = yes; then
11968 cat >>confdefs.h <<_ACEOF
11969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11970 _ACEOF
11971 time_found=yes
11973 done
11975 if test "$time_found" = no; then
11976 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
11977 echo "$as_me: error: no function found to get the time" >&2;}
11978 { (exit 1); exit 1; }; }
11982 for ac_func in memmove
11984 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11985 echo "$as_me:$LINENO: checking for $ac_func" >&5
11986 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11987 if eval "test \"\${$as_ac_var+set}\" = set"; then
11988 echo $ECHO_N "(cached) $ECHO_C" >&6
11989 else
11990 if test x$gcc_no_link = xyes; then
11991 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11992 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11993 { (exit 1); exit 1; }; }
11995 cat >conftest.$ac_ext <<_ACEOF
11996 /* confdefs.h. */
11997 _ACEOF
11998 cat confdefs.h >>conftest.$ac_ext
11999 cat >>conftest.$ac_ext <<_ACEOF
12000 /* end confdefs.h. */
12001 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12003 #define $ac_func innocuous_$ac_func
12005 /* System header to define __stub macros and hopefully few prototypes,
12006 which can conflict with char $ac_func (); below.
12007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12008 <limits.h> exists even on freestanding compilers. */
12010 #ifdef __STDC__
12011 # include <limits.h>
12012 #else
12013 # include <assert.h>
12014 #endif
12016 #undef $ac_func
12018 /* Override any gcc2 internal prototype to avoid an error. */
12019 #ifdef __cplusplus
12020 extern "C"
12022 #endif
12023 /* We use char because int might match the return type of a gcc2
12024 builtin and then its argument prototype would still apply. */
12025 char $ac_func ();
12026 /* The GNU C library defines this for functions which it implements
12027 to always fail with ENOSYS. Some functions are actually named
12028 something starting with __ and the normal name is an alias. */
12029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12030 choke me
12031 #else
12032 char (*f) () = $ac_func;
12033 #endif
12034 #ifdef __cplusplus
12036 #endif
12039 main ()
12041 return f != $ac_func;
12043 return 0;
12045 _ACEOF
12046 rm -f conftest.$ac_objext conftest$ac_exeext
12047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12048 (eval $ac_link) 2>conftest.er1
12049 ac_status=$?
12050 grep -v '^ *+' conftest.er1 >conftest.err
12051 rm -f conftest.er1
12052 cat conftest.err >&5
12053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054 (exit $ac_status); } &&
12055 { ac_try='test -z "$ac_c_werror_flag"
12056 || test ! -s conftest.err'
12057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12058 (eval $ac_try) 2>&5
12059 ac_status=$?
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); }; } &&
12062 { ac_try='test -s conftest$ac_exeext'
12063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12064 (eval $ac_try) 2>&5
12065 ac_status=$?
12066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); }; }; then
12068 eval "$as_ac_var=yes"
12069 else
12070 echo "$as_me: failed program was:" >&5
12071 sed 's/^/| /' conftest.$ac_ext >&5
12073 eval "$as_ac_var=no"
12075 rm -f conftest.err conftest.$ac_objext \
12076 conftest$ac_exeext conftest.$ac_ext
12078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12079 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12080 if test `eval echo '${'$as_ac_var'}'` = yes; then
12081 cat >>confdefs.h <<_ACEOF
12082 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12083 _ACEOF
12086 done
12089 # We require memcpy.
12090 memcpy_found=no
12092 for ac_func in memcpy
12094 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12095 echo "$as_me:$LINENO: checking for $ac_func" >&5
12096 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12097 if eval "test \"\${$as_ac_var+set}\" = set"; then
12098 echo $ECHO_N "(cached) $ECHO_C" >&6
12099 else
12100 if test x$gcc_no_link = xyes; then
12101 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12102 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12103 { (exit 1); exit 1; }; }
12105 cat >conftest.$ac_ext <<_ACEOF
12106 /* confdefs.h. */
12107 _ACEOF
12108 cat confdefs.h >>conftest.$ac_ext
12109 cat >>conftest.$ac_ext <<_ACEOF
12110 /* end confdefs.h. */
12111 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12113 #define $ac_func innocuous_$ac_func
12115 /* System header to define __stub macros and hopefully few prototypes,
12116 which can conflict with char $ac_func (); below.
12117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12118 <limits.h> exists even on freestanding compilers. */
12120 #ifdef __STDC__
12121 # include <limits.h>
12122 #else
12123 # include <assert.h>
12124 #endif
12126 #undef $ac_func
12128 /* Override any gcc2 internal prototype to avoid an error. */
12129 #ifdef __cplusplus
12130 extern "C"
12132 #endif
12133 /* We use char because int might match the return type of a gcc2
12134 builtin and then its argument prototype would still apply. */
12135 char $ac_func ();
12136 /* The GNU C library defines this for functions which it implements
12137 to always fail with ENOSYS. Some functions are actually named
12138 something starting with __ and the normal name is an alias. */
12139 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12140 choke me
12141 #else
12142 char (*f) () = $ac_func;
12143 #endif
12144 #ifdef __cplusplus
12146 #endif
12149 main ()
12151 return f != $ac_func;
12153 return 0;
12155 _ACEOF
12156 rm -f conftest.$ac_objext conftest$ac_exeext
12157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12158 (eval $ac_link) 2>conftest.er1
12159 ac_status=$?
12160 grep -v '^ *+' conftest.er1 >conftest.err
12161 rm -f conftest.er1
12162 cat conftest.err >&5
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); } &&
12165 { ac_try='test -z "$ac_c_werror_flag"
12166 || test ! -s conftest.err'
12167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12168 (eval $ac_try) 2>&5
12169 ac_status=$?
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); }; } &&
12172 { ac_try='test -s conftest$ac_exeext'
12173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12174 (eval $ac_try) 2>&5
12175 ac_status=$?
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); }; }; then
12178 eval "$as_ac_var=yes"
12179 else
12180 echo "$as_me: failed program was:" >&5
12181 sed 's/^/| /' conftest.$ac_ext >&5
12183 eval "$as_ac_var=no"
12185 rm -f conftest.err conftest.$ac_objext \
12186 conftest$ac_exeext conftest.$ac_ext
12188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12189 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12190 if test `eval echo '${'$as_ac_var'}'` = yes; then
12191 cat >>confdefs.h <<_ACEOF
12192 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12193 _ACEOF
12194 memcpy_found=yes
12196 done
12198 if test "$memcpy_found" = no; then
12199 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
12200 echo "$as_me: error: memcpy is required" >&2;}
12201 { (exit 1); exit 1; }; }
12204 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12205 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12206 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12207 echo $ECHO_N "(cached) $ECHO_C" >&6
12208 else
12209 ac_check_lib_save_LIBS=$LIBS
12210 LIBS="-ldl $LIBS"
12211 if test x$gcc_no_link = xyes; then
12212 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12213 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12214 { (exit 1); exit 1; }; }
12216 cat >conftest.$ac_ext <<_ACEOF
12217 /* confdefs.h. */
12218 _ACEOF
12219 cat confdefs.h >>conftest.$ac_ext
12220 cat >>conftest.$ac_ext <<_ACEOF
12221 /* end confdefs.h. */
12223 /* Override any gcc2 internal prototype to avoid an error. */
12224 #ifdef __cplusplus
12225 extern "C"
12226 #endif
12227 /* We use char because int might match the return type of a gcc2
12228 builtin and then its argument prototype would still apply. */
12229 char dlopen ();
12231 main ()
12233 dlopen ();
12235 return 0;
12237 _ACEOF
12238 rm -f conftest.$ac_objext conftest$ac_exeext
12239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12240 (eval $ac_link) 2>conftest.er1
12241 ac_status=$?
12242 grep -v '^ *+' conftest.er1 >conftest.err
12243 rm -f conftest.er1
12244 cat conftest.err >&5
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); } &&
12247 { ac_try='test -z "$ac_c_werror_flag"
12248 || test ! -s conftest.err'
12249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12250 (eval $ac_try) 2>&5
12251 ac_status=$?
12252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253 (exit $ac_status); }; } &&
12254 { ac_try='test -s conftest$ac_exeext'
12255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12256 (eval $ac_try) 2>&5
12257 ac_status=$?
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); }; }; then
12260 ac_cv_lib_dl_dlopen=yes
12261 else
12262 echo "$as_me: failed program was:" >&5
12263 sed 's/^/| /' conftest.$ac_ext >&5
12265 ac_cv_lib_dl_dlopen=no
12267 rm -f conftest.err conftest.$ac_objext \
12268 conftest$ac_exeext conftest.$ac_ext
12269 LIBS=$ac_check_lib_save_LIBS
12271 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12272 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12273 if test $ac_cv_lib_dl_dlopen = yes; then
12276 cat >>confdefs.h <<\_ACEOF
12277 #define HAVE_DLOPEN 1
12278 _ACEOF
12283 # Some library-finding code we stole from Tcl.
12284 #--------------------------------------------------------------------
12285 # Check for the existence of the -lsocket and -lnsl libraries.
12286 # The order here is important, so that they end up in the right
12287 # order in the command line generated by make. Here are some
12288 # special considerations:
12289 # 1. Use "connect" and "accept" to check for -lsocket, and
12290 # "gethostbyname" to check for -lnsl.
12291 # 2. Use each function name only once: can't redo a check because
12292 # autoconf caches the results of the last check and won't redo it.
12293 # 3. Use -lnsl and -lsocket only if they supply procedures that
12294 # aren't already present in the normal libraries. This is because
12295 # IRIX 5.2 has libraries, but they aren't needed and they're
12296 # bogus: they goof up name resolution if used.
12297 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
12298 # To get around this problem, check for both libraries together
12299 # if -lsocket doesn't work by itself.
12300 #--------------------------------------------------------------------
12302 echo "$as_me:$LINENO: checking for socket libraries" >&5
12303 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
12304 if test "${gcj_cv_lib_sockets+set}" = set; then
12305 echo $ECHO_N "(cached) $ECHO_C" >&6
12306 else
12307 gcj_cv_lib_sockets=
12308 gcj_checkBoth=0
12309 unset ac_cv_func_connect
12310 echo "$as_me:$LINENO: checking for connect" >&5
12311 echo $ECHO_N "checking for connect... $ECHO_C" >&6
12312 if test "${ac_cv_func_connect+set}" = set; then
12313 echo $ECHO_N "(cached) $ECHO_C" >&6
12314 else
12315 if test x$gcc_no_link = xyes; then
12316 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12317 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12318 { (exit 1); exit 1; }; }
12320 cat >conftest.$ac_ext <<_ACEOF
12321 /* confdefs.h. */
12322 _ACEOF
12323 cat confdefs.h >>conftest.$ac_ext
12324 cat >>conftest.$ac_ext <<_ACEOF
12325 /* end confdefs.h. */
12326 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
12327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12328 #define connect innocuous_connect
12330 /* System header to define __stub macros and hopefully few prototypes,
12331 which can conflict with char connect (); below.
12332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12333 <limits.h> exists even on freestanding compilers. */
12335 #ifdef __STDC__
12336 # include <limits.h>
12337 #else
12338 # include <assert.h>
12339 #endif
12341 #undef connect
12343 /* Override any gcc2 internal prototype to avoid an error. */
12344 #ifdef __cplusplus
12345 extern "C"
12347 #endif
12348 /* We use char because int might match the return type of a gcc2
12349 builtin and then its argument prototype would still apply. */
12350 char connect ();
12351 /* The GNU C library defines this for functions which it implements
12352 to always fail with ENOSYS. Some functions are actually named
12353 something starting with __ and the normal name is an alias. */
12354 #if defined (__stub_connect) || defined (__stub___connect)
12355 choke me
12356 #else
12357 char (*f) () = connect;
12358 #endif
12359 #ifdef __cplusplus
12361 #endif
12364 main ()
12366 return f != connect;
12368 return 0;
12370 _ACEOF
12371 rm -f conftest.$ac_objext conftest$ac_exeext
12372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12373 (eval $ac_link) 2>conftest.er1
12374 ac_status=$?
12375 grep -v '^ *+' conftest.er1 >conftest.err
12376 rm -f conftest.er1
12377 cat conftest.err >&5
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); } &&
12380 { ac_try='test -z "$ac_c_werror_flag"
12381 || test ! -s conftest.err'
12382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12383 (eval $ac_try) 2>&5
12384 ac_status=$?
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); }; } &&
12387 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12393 ac_cv_func_connect=yes
12394 else
12395 echo "$as_me: failed program was:" >&5
12396 sed 's/^/| /' conftest.$ac_ext >&5
12398 ac_cv_func_connect=no
12400 rm -f conftest.err conftest.$ac_objext \
12401 conftest$ac_exeext conftest.$ac_ext
12403 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
12404 echo "${ECHO_T}$ac_cv_func_connect" >&6
12405 if test $ac_cv_func_connect = yes; then
12406 gcj_checkSocket=0
12407 else
12408 gcj_checkSocket=1
12411 if test "$gcj_checkSocket" = 1; then
12412 unset ac_cv_func_connect
12413 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
12414 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
12415 if test "${ac_cv_lib_socket_main+set}" = set; then
12416 echo $ECHO_N "(cached) $ECHO_C" >&6
12417 else
12418 ac_check_lib_save_LIBS=$LIBS
12419 LIBS="-lsocket $LIBS"
12420 if test x$gcc_no_link = xyes; then
12421 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12422 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12423 { (exit 1); exit 1; }; }
12425 cat >conftest.$ac_ext <<_ACEOF
12426 /* confdefs.h. */
12427 _ACEOF
12428 cat confdefs.h >>conftest.$ac_ext
12429 cat >>conftest.$ac_ext <<_ACEOF
12430 /* end confdefs.h. */
12434 main ()
12436 main ();
12438 return 0;
12440 _ACEOF
12441 rm -f conftest.$ac_objext conftest$ac_exeext
12442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12443 (eval $ac_link) 2>conftest.er1
12444 ac_status=$?
12445 grep -v '^ *+' conftest.er1 >conftest.err
12446 rm -f conftest.er1
12447 cat conftest.err >&5
12448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449 (exit $ac_status); } &&
12450 { ac_try='test -z "$ac_c_werror_flag"
12451 || test ! -s conftest.err'
12452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12453 (eval $ac_try) 2>&5
12454 ac_status=$?
12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); }; } &&
12457 { ac_try='test -s conftest$ac_exeext'
12458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12459 (eval $ac_try) 2>&5
12460 ac_status=$?
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); }; }; then
12463 ac_cv_lib_socket_main=yes
12464 else
12465 echo "$as_me: failed program was:" >&5
12466 sed 's/^/| /' conftest.$ac_ext >&5
12468 ac_cv_lib_socket_main=no
12470 rm -f conftest.err conftest.$ac_objext \
12471 conftest$ac_exeext conftest.$ac_ext
12472 LIBS=$ac_check_lib_save_LIBS
12474 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
12475 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
12476 if test $ac_cv_lib_socket_main = yes; then
12477 gcj_cv_lib_sockets="-lsocket"
12478 else
12479 gcj_checkBoth=1
12483 if test "$gcj_checkBoth" = 1; then
12484 gcj_oldLibs=$LIBS
12485 LIBS="$LIBS -lsocket -lnsl"
12486 unset ac_cv_func_accept
12487 echo "$as_me:$LINENO: checking for accept" >&5
12488 echo $ECHO_N "checking for accept... $ECHO_C" >&6
12489 if test "${ac_cv_func_accept+set}" = set; then
12490 echo $ECHO_N "(cached) $ECHO_C" >&6
12491 else
12492 if test x$gcc_no_link = xyes; then
12493 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12494 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12495 { (exit 1); exit 1; }; }
12497 cat >conftest.$ac_ext <<_ACEOF
12498 /* confdefs.h. */
12499 _ACEOF
12500 cat confdefs.h >>conftest.$ac_ext
12501 cat >>conftest.$ac_ext <<_ACEOF
12502 /* end confdefs.h. */
12503 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
12504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12505 #define accept innocuous_accept
12507 /* System header to define __stub macros and hopefully few prototypes,
12508 which can conflict with char accept (); below.
12509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12510 <limits.h> exists even on freestanding compilers. */
12512 #ifdef __STDC__
12513 # include <limits.h>
12514 #else
12515 # include <assert.h>
12516 #endif
12518 #undef accept
12520 /* Override any gcc2 internal prototype to avoid an error. */
12521 #ifdef __cplusplus
12522 extern "C"
12524 #endif
12525 /* We use char because int might match the return type of a gcc2
12526 builtin and then its argument prototype would still apply. */
12527 char accept ();
12528 /* The GNU C library defines this for functions which it implements
12529 to always fail with ENOSYS. Some functions are actually named
12530 something starting with __ and the normal name is an alias. */
12531 #if defined (__stub_accept) || defined (__stub___accept)
12532 choke me
12533 #else
12534 char (*f) () = accept;
12535 #endif
12536 #ifdef __cplusplus
12538 #endif
12541 main ()
12543 return f != accept;
12545 return 0;
12547 _ACEOF
12548 rm -f conftest.$ac_objext conftest$ac_exeext
12549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12550 (eval $ac_link) 2>conftest.er1
12551 ac_status=$?
12552 grep -v '^ *+' conftest.er1 >conftest.err
12553 rm -f conftest.er1
12554 cat conftest.err >&5
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); } &&
12557 { ac_try='test -z "$ac_c_werror_flag"
12558 || test ! -s conftest.err'
12559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12560 (eval $ac_try) 2>&5
12561 ac_status=$?
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); }; } &&
12564 { ac_try='test -s conftest$ac_exeext'
12565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12566 (eval $ac_try) 2>&5
12567 ac_status=$?
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); }; }; then
12570 ac_cv_func_accept=yes
12571 else
12572 echo "$as_me: failed program was:" >&5
12573 sed 's/^/| /' conftest.$ac_ext >&5
12575 ac_cv_func_accept=no
12577 rm -f conftest.err conftest.$ac_objext \
12578 conftest$ac_exeext conftest.$ac_ext
12580 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
12581 echo "${ECHO_T}$ac_cv_func_accept" >&6
12582 if test $ac_cv_func_accept = yes; then
12583 gcj_checkNsl=0
12584 gcj_cv_lib_sockets="-lsocket -lnsl"
12587 unset ac_cv_func_accept
12588 LIBS=$gcj_oldLibs
12590 unset ac_cv_func_gethostbyname
12591 gcj_oldLibs=$LIBS
12592 LIBS="$LIBS $gcj_cv_lib_sockets"
12593 echo "$as_me:$LINENO: checking for gethostbyname" >&5
12594 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
12595 if test "${ac_cv_func_gethostbyname+set}" = set; then
12596 echo $ECHO_N "(cached) $ECHO_C" >&6
12597 else
12598 if test x$gcc_no_link = xyes; then
12599 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12600 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12601 { (exit 1); exit 1; }; }
12603 cat >conftest.$ac_ext <<_ACEOF
12604 /* confdefs.h. */
12605 _ACEOF
12606 cat confdefs.h >>conftest.$ac_ext
12607 cat >>conftest.$ac_ext <<_ACEOF
12608 /* end confdefs.h. */
12609 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
12610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12611 #define gethostbyname innocuous_gethostbyname
12613 /* System header to define __stub macros and hopefully few prototypes,
12614 which can conflict with char gethostbyname (); below.
12615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12616 <limits.h> exists even on freestanding compilers. */
12618 #ifdef __STDC__
12619 # include <limits.h>
12620 #else
12621 # include <assert.h>
12622 #endif
12624 #undef gethostbyname
12626 /* Override any gcc2 internal prototype to avoid an error. */
12627 #ifdef __cplusplus
12628 extern "C"
12630 #endif
12631 /* We use char because int might match the return type of a gcc2
12632 builtin and then its argument prototype would still apply. */
12633 char gethostbyname ();
12634 /* The GNU C library defines this for functions which it implements
12635 to always fail with ENOSYS. Some functions are actually named
12636 something starting with __ and the normal name is an alias. */
12637 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
12638 choke me
12639 #else
12640 char (*f) () = gethostbyname;
12641 #endif
12642 #ifdef __cplusplus
12644 #endif
12647 main ()
12649 return f != gethostbyname;
12651 return 0;
12653 _ACEOF
12654 rm -f conftest.$ac_objext conftest$ac_exeext
12655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12656 (eval $ac_link) 2>conftest.er1
12657 ac_status=$?
12658 grep -v '^ *+' conftest.er1 >conftest.err
12659 rm -f conftest.er1
12660 cat conftest.err >&5
12661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 (exit $ac_status); } &&
12663 { ac_try='test -z "$ac_c_werror_flag"
12664 || test ! -s conftest.err'
12665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12666 (eval $ac_try) 2>&5
12667 ac_status=$?
12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); }; } &&
12670 { ac_try='test -s conftest$ac_exeext'
12671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12672 (eval $ac_try) 2>&5
12673 ac_status=$?
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); }; }; then
12676 ac_cv_func_gethostbyname=yes
12677 else
12678 echo "$as_me: failed program was:" >&5
12679 sed 's/^/| /' conftest.$ac_ext >&5
12681 ac_cv_func_gethostbyname=no
12683 rm -f conftest.err conftest.$ac_objext \
12684 conftest$ac_exeext conftest.$ac_ext
12686 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
12687 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
12688 if test $ac_cv_func_gethostbyname = yes; then
12690 else
12691 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
12692 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
12693 if test "${ac_cv_lib_nsl_main+set}" = set; then
12694 echo $ECHO_N "(cached) $ECHO_C" >&6
12695 else
12696 ac_check_lib_save_LIBS=$LIBS
12697 LIBS="-lnsl $LIBS"
12698 if test x$gcc_no_link = xyes; then
12699 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12700 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12701 { (exit 1); exit 1; }; }
12703 cat >conftest.$ac_ext <<_ACEOF
12704 /* confdefs.h. */
12705 _ACEOF
12706 cat confdefs.h >>conftest.$ac_ext
12707 cat >>conftest.$ac_ext <<_ACEOF
12708 /* end confdefs.h. */
12712 main ()
12714 main ();
12716 return 0;
12718 _ACEOF
12719 rm -f conftest.$ac_objext conftest$ac_exeext
12720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12721 (eval $ac_link) 2>conftest.er1
12722 ac_status=$?
12723 grep -v '^ *+' conftest.er1 >conftest.err
12724 rm -f conftest.er1
12725 cat conftest.err >&5
12726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727 (exit $ac_status); } &&
12728 { ac_try='test -z "$ac_c_werror_flag"
12729 || test ! -s conftest.err'
12730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12731 (eval $ac_try) 2>&5
12732 ac_status=$?
12733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734 (exit $ac_status); }; } &&
12735 { ac_try='test -s conftest$ac_exeext'
12736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12737 (eval $ac_try) 2>&5
12738 ac_status=$?
12739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740 (exit $ac_status); }; }; then
12741 ac_cv_lib_nsl_main=yes
12742 else
12743 echo "$as_me: failed program was:" >&5
12744 sed 's/^/| /' conftest.$ac_ext >&5
12746 ac_cv_lib_nsl_main=no
12748 rm -f conftest.err conftest.$ac_objext \
12749 conftest$ac_exeext conftest.$ac_ext
12750 LIBS=$ac_check_lib_save_LIBS
12752 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
12753 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
12754 if test $ac_cv_lib_nsl_main = yes; then
12755 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
12760 unset ac_cv_func_gethostbyname
12761 LIBS=$gcj_oldLIBS
12764 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
12765 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
12766 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
12768 if test "$with_system_zlib" = yes; then
12769 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
12770 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
12771 if test "${ac_cv_lib_z_deflate+set}" = set; then
12772 echo $ECHO_N "(cached) $ECHO_C" >&6
12773 else
12774 ac_check_lib_save_LIBS=$LIBS
12775 LIBS="-lz $LIBS"
12776 if test x$gcc_no_link = xyes; then
12777 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12778 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12779 { (exit 1); exit 1; }; }
12781 cat >conftest.$ac_ext <<_ACEOF
12782 /* confdefs.h. */
12783 _ACEOF
12784 cat confdefs.h >>conftest.$ac_ext
12785 cat >>conftest.$ac_ext <<_ACEOF
12786 /* end confdefs.h. */
12788 /* Override any gcc2 internal prototype to avoid an error. */
12789 #ifdef __cplusplus
12790 extern "C"
12791 #endif
12792 /* We use char because int might match the return type of a gcc2
12793 builtin and then its argument prototype would still apply. */
12794 char deflate ();
12796 main ()
12798 deflate ();
12800 return 0;
12802 _ACEOF
12803 rm -f conftest.$ac_objext conftest$ac_exeext
12804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12805 (eval $ac_link) 2>conftest.er1
12806 ac_status=$?
12807 grep -v '^ *+' conftest.er1 >conftest.err
12808 rm -f conftest.er1
12809 cat conftest.err >&5
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); } &&
12812 { ac_try='test -z "$ac_c_werror_flag"
12813 || test ! -s conftest.err'
12814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12815 (eval $ac_try) 2>&5
12816 ac_status=$?
12817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818 (exit $ac_status); }; } &&
12819 { ac_try='test -s conftest$ac_exeext'
12820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12821 (eval $ac_try) 2>&5
12822 ac_status=$?
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824 (exit $ac_status); }; }; then
12825 ac_cv_lib_z_deflate=yes
12826 else
12827 echo "$as_me: failed program was:" >&5
12828 sed 's/^/| /' conftest.$ac_ext >&5
12830 ac_cv_lib_z_deflate=no
12832 rm -f conftest.err conftest.$ac_objext \
12833 conftest$ac_exeext conftest.$ac_ext
12834 LIBS=$ac_check_lib_save_LIBS
12836 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
12837 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
12838 if test $ac_cv_lib_z_deflate = yes; then
12839 ZLIBSPEC=-lz
12840 else
12841 ZLIBSPEC=
12846 # Test for Gtk stuff, if asked for.
12847 if test "$use_gtk_awt" = yes; then
12849 succeeded=no
12851 if test -z "$PKG_CONFIG"; then
12852 # Extract the first word of "pkg-config", so it can be a program name with args.
12853 set dummy pkg-config; ac_word=$2
12854 echo "$as_me:$LINENO: checking for $ac_word" >&5
12855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12856 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12857 echo $ECHO_N "(cached) $ECHO_C" >&6
12858 else
12859 case $PKG_CONFIG in
12860 [\\/]* | ?:[\\/]*)
12861 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12865 for as_dir in $PATH
12867 IFS=$as_save_IFS
12868 test -z "$as_dir" && as_dir=.
12869 for ac_exec_ext in '' $ac_executable_extensions; do
12870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12871 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12873 break 2
12875 done
12876 done
12878 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12880 esac
12882 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12884 if test -n "$PKG_CONFIG"; then
12885 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12886 echo "${ECHO_T}$PKG_CONFIG" >&6
12887 else
12888 echo "$as_me:$LINENO: result: no" >&5
12889 echo "${ECHO_T}no" >&6
12894 if test "$PKG_CONFIG" = "no" ; then
12895 echo "*** The pkg-config script could not be found. Make sure it is"
12896 echo "*** in your path, or set the PKG_CONFIG environment variable"
12897 echo "*** to the full path to pkg-config."
12898 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12899 else
12900 PKG_CONFIG_MIN_VERSION=0.9.0
12901 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12902 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
12903 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
12905 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
12906 echo "$as_me:$LINENO: result: yes" >&5
12907 echo "${ECHO_T}yes" >&6
12908 succeeded=yes
12910 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
12911 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
12912 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
12913 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
12914 echo "${ECHO_T}$GTK_CFLAGS" >&6
12916 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
12917 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
12918 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
12919 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
12920 echo "${ECHO_T}$GTK_LIBS" >&6
12921 else
12922 GTK_CFLAGS=""
12923 GTK_LIBS=""
12924 ## If we have a custom action on failure, don't print errors, but
12925 ## do set a variable so people can do so.
12926 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
12927 echo $GTK_PKG_ERRORS
12932 else
12933 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12934 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12938 if test $succeeded = yes; then
12940 else
12941 { { 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
12942 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;}
12943 { (exit 1); exit 1; }; }
12950 succeeded=no
12952 if test -z "$PKG_CONFIG"; then
12953 # Extract the first word of "pkg-config", so it can be a program name with args.
12954 set dummy pkg-config; ac_word=$2
12955 echo "$as_me:$LINENO: checking for $ac_word" >&5
12956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12957 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12958 echo $ECHO_N "(cached) $ECHO_C" >&6
12959 else
12960 case $PKG_CONFIG in
12961 [\\/]* | ?:[\\/]*)
12962 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12966 for as_dir in $PATH
12968 IFS=$as_save_IFS
12969 test -z "$as_dir" && as_dir=.
12970 for ac_exec_ext in '' $ac_executable_extensions; do
12971 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12972 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12974 break 2
12976 done
12977 done
12979 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12981 esac
12983 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12985 if test -n "$PKG_CONFIG"; then
12986 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12987 echo "${ECHO_T}$PKG_CONFIG" >&6
12988 else
12989 echo "$as_me:$LINENO: result: no" >&5
12990 echo "${ECHO_T}no" >&6
12995 if test "$PKG_CONFIG" = "no" ; then
12996 echo "*** The pkg-config script could not be found. Make sure it is"
12997 echo "*** in your path, or set the PKG_CONFIG environment variable"
12998 echo "*** to the full path to pkg-config."
12999 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13000 else
13001 PKG_CONFIG_MIN_VERSION=0.9.0
13002 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13003 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
13004 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
13006 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
13007 echo "$as_me:$LINENO: result: yes" >&5
13008 echo "${ECHO_T}yes" >&6
13009 succeeded=yes
13011 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
13012 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
13013 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13014 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
13015 echo "${ECHO_T}$GLIB_CFLAGS" >&6
13017 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
13018 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
13019 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13020 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
13021 echo "${ECHO_T}$GLIB_LIBS" >&6
13022 else
13023 GLIB_CFLAGS=""
13024 GLIB_LIBS=""
13025 ## If we have a custom action on failure, don't print errors, but
13026 ## do set a variable so people can do so.
13027 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13028 echo $GLIB_PKG_ERRORS
13033 else
13034 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13035 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13039 if test $succeeded = yes; then
13041 else
13042 { { 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
13043 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;}
13044 { (exit 1); exit 1; }; }
13051 succeeded=no
13053 if test -z "$PKG_CONFIG"; then
13054 # Extract the first word of "pkg-config", so it can be a program name with args.
13055 set dummy pkg-config; ac_word=$2
13056 echo "$as_me:$LINENO: checking for $ac_word" >&5
13057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13058 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13059 echo $ECHO_N "(cached) $ECHO_C" >&6
13060 else
13061 case $PKG_CONFIG in
13062 [\\/]* | ?:[\\/]*)
13063 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13067 for as_dir in $PATH
13069 IFS=$as_save_IFS
13070 test -z "$as_dir" && as_dir=.
13071 for ac_exec_ext in '' $ac_executable_extensions; do
13072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13073 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13075 break 2
13077 done
13078 done
13080 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13082 esac
13084 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13086 if test -n "$PKG_CONFIG"; then
13087 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13088 echo "${ECHO_T}$PKG_CONFIG" >&6
13089 else
13090 echo "$as_me:$LINENO: result: no" >&5
13091 echo "${ECHO_T}no" >&6
13096 if test "$PKG_CONFIG" = "no" ; then
13097 echo "*** The pkg-config script could not be found. Make sure it is"
13098 echo "*** in your path, or set the PKG_CONFIG environment variable"
13099 echo "*** to the full path to pkg-config."
13100 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13101 else
13102 PKG_CONFIG_MIN_VERSION=0.9.0
13103 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13104 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
13105 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
13107 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
13108 echo "$as_me:$LINENO: result: yes" >&5
13109 echo "${ECHO_T}yes" >&6
13110 succeeded=yes
13112 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
13113 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
13114 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
13115 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
13116 echo "${ECHO_T}$LIBART_CFLAGS" >&6
13118 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
13119 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
13120 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
13121 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
13122 echo "${ECHO_T}$LIBART_LIBS" >&6
13123 else
13124 LIBART_CFLAGS=""
13125 LIBART_LIBS=""
13126 ## If we have a custom action on failure, don't print errors, but
13127 ## do set a variable so people can do so.
13128 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
13129 echo $LIBART_PKG_ERRORS
13134 else
13135 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13136 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13140 if test $succeeded = yes; then
13142 else
13143 { { 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
13144 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;}
13145 { (exit 1); exit 1; }; }
13151 # We require the XTest Extension to support java.awt.Robot.
13152 echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
13153 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
13154 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
13155 echo $ECHO_N "(cached) $ECHO_C" >&6
13156 else
13157 ac_check_lib_save_LIBS=$LIBS
13158 LIBS="-lXtst ${X_LIBS} $LIBS"
13159 if test x$gcc_no_link = xyes; then
13160 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13161 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13162 { (exit 1); exit 1; }; }
13164 cat >conftest.$ac_ext <<_ACEOF
13165 /* confdefs.h. */
13166 _ACEOF
13167 cat confdefs.h >>conftest.$ac_ext
13168 cat >>conftest.$ac_ext <<_ACEOF
13169 /* end confdefs.h. */
13171 /* Override any gcc2 internal prototype to avoid an error. */
13172 #ifdef __cplusplus
13173 extern "C"
13174 #endif
13175 /* We use char because int might match the return type of a gcc2
13176 builtin and then its argument prototype would still apply. */
13177 char XTestQueryExtension ();
13179 main ()
13181 XTestQueryExtension ();
13183 return 0;
13185 _ACEOF
13186 rm -f conftest.$ac_objext conftest$ac_exeext
13187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13188 (eval $ac_link) 2>conftest.er1
13189 ac_status=$?
13190 grep -v '^ *+' conftest.er1 >conftest.err
13191 rm -f conftest.er1
13192 cat conftest.err >&5
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); } &&
13195 { ac_try='test -z "$ac_c_werror_flag"
13196 || test ! -s conftest.err'
13197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13198 (eval $ac_try) 2>&5
13199 ac_status=$?
13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); }; } &&
13202 { ac_try='test -s conftest$ac_exeext'
13203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13204 (eval $ac_try) 2>&5
13205 ac_status=$?
13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); }; }; then
13208 ac_cv_lib_Xtst_XTestQueryExtension=yes
13209 else
13210 echo "$as_me: failed program was:" >&5
13211 sed 's/^/| /' conftest.$ac_ext >&5
13213 ac_cv_lib_Xtst_XTestQueryExtension=no
13215 rm -f conftest.err conftest.$ac_objext \
13216 conftest$ac_exeext conftest.$ac_ext
13217 LIBS=$ac_check_lib_save_LIBS
13219 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
13220 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
13221 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
13222 true
13223 else
13224 { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
13225 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
13226 { (exit 1); exit 1; }; }
13231 # On Solaris, and maybe other architectures, the Boehm collector
13232 # requires -ldl.
13233 if test "$GC" = boehm; then
13234 echo "$as_me:$LINENO: checking for main in -ldl" >&5
13235 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
13236 if test "${ac_cv_lib_dl_main+set}" = set; then
13237 echo $ECHO_N "(cached) $ECHO_C" >&6
13238 else
13239 ac_check_lib_save_LIBS=$LIBS
13240 LIBS="-ldl $LIBS"
13241 if test x$gcc_no_link = xyes; then
13242 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13243 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13244 { (exit 1); exit 1; }; }
13246 cat >conftest.$ac_ext <<_ACEOF
13247 /* confdefs.h. */
13248 _ACEOF
13249 cat confdefs.h >>conftest.$ac_ext
13250 cat >>conftest.$ac_ext <<_ACEOF
13251 /* end confdefs.h. */
13255 main ()
13257 main ();
13259 return 0;
13261 _ACEOF
13262 rm -f conftest.$ac_objext conftest$ac_exeext
13263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13264 (eval $ac_link) 2>conftest.er1
13265 ac_status=$?
13266 grep -v '^ *+' conftest.er1 >conftest.err
13267 rm -f conftest.er1
13268 cat conftest.err >&5
13269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 (exit $ac_status); } &&
13271 { ac_try='test -z "$ac_c_werror_flag"
13272 || test ! -s conftest.err'
13273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13274 (eval $ac_try) 2>&5
13275 ac_status=$?
13276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277 (exit $ac_status); }; } &&
13278 { ac_try='test -s conftest$ac_exeext'
13279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13280 (eval $ac_try) 2>&5
13281 ac_status=$?
13282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283 (exit $ac_status); }; }; then
13284 ac_cv_lib_dl_main=yes
13285 else
13286 echo "$as_me: failed program was:" >&5
13287 sed 's/^/| /' conftest.$ac_ext >&5
13289 ac_cv_lib_dl_main=no
13291 rm -f conftest.err conftest.$ac_objext \
13292 conftest$ac_exeext conftest.$ac_ext
13293 LIBS=$ac_check_lib_save_LIBS
13295 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
13296 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
13297 if test $ac_cv_lib_dl_main = yes; then
13298 SYSTEMSPEC="$SYSTEMSPEC -ldl"
13305 if test "$supply_backtrace" = yes; then
13306 SUPPLY_BACKTRACE_TRUE=
13307 SUPPLY_BACKTRACE_FALSE='#'
13308 else
13309 SUPPLY_BACKTRACE_TRUE='#'
13310 SUPPLY_BACKTRACE_FALSE=
13314 if test -z "${with_multisubdir}"; then
13315 builddotdot=.
13316 else
13317 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
13320 NATIVE=yes
13322 # Which gcj do we use?
13323 which_gcj=default
13324 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
13325 if test -n "${with_cross_host}"; then
13326 # We are being configured with a cross compiler. We can't
13327 # use ac_exeext, because that is for the target platform.
13328 NATIVE=no
13329 cross_host_exeext=
13330 case "${with_cross_host}" in
13331 *mingw* | *cygwin*)
13332 cross_host_exeext=.exe
13334 esac
13335 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
13336 if test x"$build_noncanonical" = x"$with_cross_host"; then
13337 # Ordinary cross (host!=target and host=build)
13338 which_gcj=built
13339 else
13340 # Canadian cross (host!=target and host!=build)
13341 which_gcj=cross
13343 else
13344 which_gcj=cross
13346 else
13347 # We are being configured with a native or crossed-native compiler
13348 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
13349 if test x"$build" = x"$host"; then
13350 # True native build (host=target and host=build)
13351 which_gcj=built
13352 else
13353 # Crossed-native build (host=target and host!=build)
13354 which_gcj=cross
13356 else
13357 which_gcj=path
13360 case "${which_gcj}" in
13361 built)
13362 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
13363 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
13364 ZIP='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/fastjar/fastjar'
13366 cross)
13367 if test "x${with_newlib}" = "xyes"; then
13368 # FIXME (comment): Why is this needed?
13369 GCC_UNWIND_INCLUDE=
13370 GCJ="${target_noncanonical}-gcj"
13371 else
13372 GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
13374 ZIP='$(target_noncanonical)-fastjar'
13375 GCJH='$(target_noncanonical)-gcjh'
13377 path)
13378 GCJ="gcj -B`${PWDCMD-pwd}`/"
13379 ## In this case, gcj is found outside the build tree. However, zip is
13380 ## found in the build tree.
13381 ZIP='$(top_builddir)/$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
13382 GCJH=gcjh
13384 esac
13389 # Create it, so that compile/link tests don't fail
13390 test -f libgcj.spec || touch libgcj.spec
13392 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
13393 case $build in
13394 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
13395 *) CLASSPATH_SEPARATOR=':' ;;
13396 esac
13399 # We must search the source tree for java.lang, since we still don't
13400 # have libgcj.jar nor java/lang/*.class
13401 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
13402 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
13404 # Since some classes depend on this one, we need its source available
13405 # before we can do any GCJ compilation test :-(
13406 if test ! -f gnu/classpath/Configuration.java; then
13407 test -d gnu || mkdir gnu
13408 test -d gnu/classpath || mkdir gnu/classpath
13409 sed -e 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
13410 -e 's,@TOOLKIT@,$TOOLKIT,' \
13411 < $srcdir/gnu/classpath/Configuration.java.in \
13412 > gnu/classpath/Configuration.java
13413 # We do not want to redirect the output of the grep below to /dev/null,
13414 # but we add /dev/null to the input list so that grep will print the
13415 # filename of Configuration.java in case it finds any matches.
13416 if grep @ gnu/classpath/Configuration.java /dev/null; then
13417 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
13418 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
13419 { (exit 1); exit 1; }; }
13423 if test -n "$ac_tool_prefix"; then
13424 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
13425 set dummy ${ac_tool_prefix}gcj; ac_word=$2
13426 echo "$as_me:$LINENO: checking for $ac_word" >&5
13427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13428 if test "${ac_cv_prog_GCJ+set}" = set; then
13429 echo $ECHO_N "(cached) $ECHO_C" >&6
13430 else
13431 if test -n "$GCJ"; then
13432 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
13433 else
13434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13435 for as_dir in $PATH
13437 IFS=$as_save_IFS
13438 test -z "$as_dir" && as_dir=.
13439 for ac_exec_ext in '' $ac_executable_extensions; do
13440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13441 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
13442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13443 break 2
13445 done
13446 done
13450 GCJ=$ac_cv_prog_GCJ
13451 if test -n "$GCJ"; then
13452 echo "$as_me:$LINENO: result: $GCJ" >&5
13453 echo "${ECHO_T}$GCJ" >&6
13454 else
13455 echo "$as_me:$LINENO: result: no" >&5
13456 echo "${ECHO_T}no" >&6
13460 if test -z "$ac_cv_prog_GCJ"; then
13461 ac_ct_GCJ=$GCJ
13462 # Extract the first word of "gcj", so it can be a program name with args.
13463 set dummy gcj; ac_word=$2
13464 echo "$as_me:$LINENO: checking for $ac_word" >&5
13465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13466 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
13467 echo $ECHO_N "(cached) $ECHO_C" >&6
13468 else
13469 if test -n "$ac_ct_GCJ"; then
13470 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
13471 else
13472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13473 for as_dir in $PATH
13475 IFS=$as_save_IFS
13476 test -z "$as_dir" && as_dir=.
13477 for ac_exec_ext in '' $ac_executable_extensions; do
13478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13479 ac_cv_prog_ac_ct_GCJ="gcj"
13480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13481 break 2
13483 done
13484 done
13486 test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
13489 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
13490 if test -n "$ac_ct_GCJ"; then
13491 echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
13492 echo "${ECHO_T}$ac_ct_GCJ" >&6
13493 else
13494 echo "$as_me:$LINENO: result: no" >&5
13495 echo "${ECHO_T}no" >&6
13498 GCJ=$ac_ct_GCJ
13499 else
13500 GCJ="$ac_cv_prog_GCJ"
13503 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
13508 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
13510 echo "$as_me:$LINENO: checking for void *" >&5
13511 echo $ECHO_N "checking for void *... $ECHO_C" >&6
13512 if test "${ac_cv_type_void_p+set}" = set; then
13513 echo $ECHO_N "(cached) $ECHO_C" >&6
13514 else
13515 cat >conftest.$ac_ext <<_ACEOF
13516 /* confdefs.h. */
13517 _ACEOF
13518 cat confdefs.h >>conftest.$ac_ext
13519 cat >>conftest.$ac_ext <<_ACEOF
13520 /* end confdefs.h. */
13521 $ac_includes_default
13523 main ()
13525 if ((void * *) 0)
13526 return 0;
13527 if (sizeof (void *))
13528 return 0;
13530 return 0;
13532 _ACEOF
13533 rm -f conftest.$ac_objext
13534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13535 (eval $ac_compile) 2>conftest.er1
13536 ac_status=$?
13537 grep -v '^ *+' conftest.er1 >conftest.err
13538 rm -f conftest.er1
13539 cat conftest.err >&5
13540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541 (exit $ac_status); } &&
13542 { ac_try='test -z "$ac_c_werror_flag"
13543 || test ! -s conftest.err'
13544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13545 (eval $ac_try) 2>&5
13546 ac_status=$?
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); }; } &&
13549 { ac_try='test -s conftest.$ac_objext'
13550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13551 (eval $ac_try) 2>&5
13552 ac_status=$?
13553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554 (exit $ac_status); }; }; then
13555 ac_cv_type_void_p=yes
13556 else
13557 echo "$as_me: failed program was:" >&5
13558 sed 's/^/| /' conftest.$ac_ext >&5
13560 ac_cv_type_void_p=no
13562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13564 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
13565 echo "${ECHO_T}$ac_cv_type_void_p" >&6
13567 echo "$as_me:$LINENO: checking size of void *" >&5
13568 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13569 if test "${ac_cv_sizeof_void_p+set}" = set; then
13570 echo $ECHO_N "(cached) $ECHO_C" >&6
13571 else
13572 if test "$ac_cv_type_void_p" = yes; then
13573 # The cast to unsigned long works around a bug in the HP C Compiler
13574 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13575 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13576 # This bug is HP SR number 8606223364.
13577 if test "$cross_compiling" = yes; then
13578 # Depending upon the size, compute the lo and hi bounds.
13579 cat >conftest.$ac_ext <<_ACEOF
13580 /* confdefs.h. */
13581 _ACEOF
13582 cat confdefs.h >>conftest.$ac_ext
13583 cat >>conftest.$ac_ext <<_ACEOF
13584 /* end confdefs.h. */
13585 $ac_includes_default
13587 main ()
13589 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
13590 test_array [0] = 0
13593 return 0;
13595 _ACEOF
13596 rm -f conftest.$ac_objext
13597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13598 (eval $ac_compile) 2>conftest.er1
13599 ac_status=$?
13600 grep -v '^ *+' conftest.er1 >conftest.err
13601 rm -f conftest.er1
13602 cat conftest.err >&5
13603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604 (exit $ac_status); } &&
13605 { ac_try='test -z "$ac_c_werror_flag"
13606 || test ! -s conftest.err'
13607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13608 (eval $ac_try) 2>&5
13609 ac_status=$?
13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); }; } &&
13612 { ac_try='test -s conftest.$ac_objext'
13613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13614 (eval $ac_try) 2>&5
13615 ac_status=$?
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); }; }; then
13618 ac_lo=0 ac_mid=0
13619 while :; do
13620 cat >conftest.$ac_ext <<_ACEOF
13621 /* confdefs.h. */
13622 _ACEOF
13623 cat confdefs.h >>conftest.$ac_ext
13624 cat >>conftest.$ac_ext <<_ACEOF
13625 /* end confdefs.h. */
13626 $ac_includes_default
13628 main ()
13630 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13631 test_array [0] = 0
13634 return 0;
13636 _ACEOF
13637 rm -f conftest.$ac_objext
13638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13639 (eval $ac_compile) 2>conftest.er1
13640 ac_status=$?
13641 grep -v '^ *+' conftest.er1 >conftest.err
13642 rm -f conftest.er1
13643 cat conftest.err >&5
13644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645 (exit $ac_status); } &&
13646 { ac_try='test -z "$ac_c_werror_flag"
13647 || test ! -s conftest.err'
13648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13649 (eval $ac_try) 2>&5
13650 ac_status=$?
13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); }; } &&
13653 { ac_try='test -s conftest.$ac_objext'
13654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13655 (eval $ac_try) 2>&5
13656 ac_status=$?
13657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658 (exit $ac_status); }; }; then
13659 ac_hi=$ac_mid; break
13660 else
13661 echo "$as_me: failed program was:" >&5
13662 sed 's/^/| /' conftest.$ac_ext >&5
13664 ac_lo=`expr $ac_mid + 1`
13665 if test $ac_lo -le $ac_mid; then
13666 ac_lo= ac_hi=
13667 break
13669 ac_mid=`expr 2 '*' $ac_mid + 1`
13671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13672 done
13673 else
13674 echo "$as_me: failed program was:" >&5
13675 sed 's/^/| /' conftest.$ac_ext >&5
13677 cat >conftest.$ac_ext <<_ACEOF
13678 /* confdefs.h. */
13679 _ACEOF
13680 cat confdefs.h >>conftest.$ac_ext
13681 cat >>conftest.$ac_ext <<_ACEOF
13682 /* end confdefs.h. */
13683 $ac_includes_default
13685 main ()
13687 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
13688 test_array [0] = 0
13691 return 0;
13693 _ACEOF
13694 rm -f conftest.$ac_objext
13695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13696 (eval $ac_compile) 2>conftest.er1
13697 ac_status=$?
13698 grep -v '^ *+' conftest.er1 >conftest.err
13699 rm -f conftest.er1
13700 cat conftest.err >&5
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); } &&
13703 { ac_try='test -z "$ac_c_werror_flag"
13704 || test ! -s conftest.err'
13705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13706 (eval $ac_try) 2>&5
13707 ac_status=$?
13708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709 (exit $ac_status); }; } &&
13710 { ac_try='test -s conftest.$ac_objext'
13711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13712 (eval $ac_try) 2>&5
13713 ac_status=$?
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); }; }; then
13716 ac_hi=-1 ac_mid=-1
13717 while :; do
13718 cat >conftest.$ac_ext <<_ACEOF
13719 /* confdefs.h. */
13720 _ACEOF
13721 cat confdefs.h >>conftest.$ac_ext
13722 cat >>conftest.$ac_ext <<_ACEOF
13723 /* end confdefs.h. */
13724 $ac_includes_default
13726 main ()
13728 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
13729 test_array [0] = 0
13732 return 0;
13734 _ACEOF
13735 rm -f conftest.$ac_objext
13736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13737 (eval $ac_compile) 2>conftest.er1
13738 ac_status=$?
13739 grep -v '^ *+' conftest.er1 >conftest.err
13740 rm -f conftest.er1
13741 cat conftest.err >&5
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); } &&
13744 { ac_try='test -z "$ac_c_werror_flag"
13745 || test ! -s conftest.err'
13746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13747 (eval $ac_try) 2>&5
13748 ac_status=$?
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); }; } &&
13751 { ac_try='test -s conftest.$ac_objext'
13752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13753 (eval $ac_try) 2>&5
13754 ac_status=$?
13755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756 (exit $ac_status); }; }; then
13757 ac_lo=$ac_mid; break
13758 else
13759 echo "$as_me: failed program was:" >&5
13760 sed 's/^/| /' conftest.$ac_ext >&5
13762 ac_hi=`expr '(' $ac_mid ')' - 1`
13763 if test $ac_mid -le $ac_hi; then
13764 ac_lo= ac_hi=
13765 break
13767 ac_mid=`expr 2 '*' $ac_mid`
13769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13770 done
13771 else
13772 echo "$as_me: failed program was:" >&5
13773 sed 's/^/| /' conftest.$ac_ext >&5
13775 ac_lo= ac_hi=
13777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13780 # Binary search between lo and hi bounds.
13781 while test "x$ac_lo" != "x$ac_hi"; do
13782 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13783 cat >conftest.$ac_ext <<_ACEOF
13784 /* confdefs.h. */
13785 _ACEOF
13786 cat confdefs.h >>conftest.$ac_ext
13787 cat >>conftest.$ac_ext <<_ACEOF
13788 /* end confdefs.h. */
13789 $ac_includes_default
13791 main ()
13793 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13794 test_array [0] = 0
13797 return 0;
13799 _ACEOF
13800 rm -f conftest.$ac_objext
13801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13802 (eval $ac_compile) 2>conftest.er1
13803 ac_status=$?
13804 grep -v '^ *+' conftest.er1 >conftest.err
13805 rm -f conftest.er1
13806 cat conftest.err >&5
13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808 (exit $ac_status); } &&
13809 { ac_try='test -z "$ac_c_werror_flag"
13810 || test ! -s conftest.err'
13811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13812 (eval $ac_try) 2>&5
13813 ac_status=$?
13814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815 (exit $ac_status); }; } &&
13816 { ac_try='test -s conftest.$ac_objext'
13817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13818 (eval $ac_try) 2>&5
13819 ac_status=$?
13820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); }; }; then
13822 ac_hi=$ac_mid
13823 else
13824 echo "$as_me: failed program was:" >&5
13825 sed 's/^/| /' conftest.$ac_ext >&5
13827 ac_lo=`expr '(' $ac_mid ')' + 1`
13829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13830 done
13831 case $ac_lo in
13832 ?*) ac_cv_sizeof_void_p=$ac_lo;;
13833 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13834 See \`config.log' for more details." >&5
13835 echo "$as_me: error: cannot compute sizeof (void *), 77
13836 See \`config.log' for more details." >&2;}
13837 { (exit 1); exit 1; }; } ;;
13838 esac
13839 else
13840 if test "$cross_compiling" = yes; then
13841 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13842 See \`config.log' for more details." >&5
13843 echo "$as_me: error: cannot run test program while cross compiling
13844 See \`config.log' for more details." >&2;}
13845 { (exit 1); exit 1; }; }
13846 else
13847 cat >conftest.$ac_ext <<_ACEOF
13848 /* confdefs.h. */
13849 _ACEOF
13850 cat confdefs.h >>conftest.$ac_ext
13851 cat >>conftest.$ac_ext <<_ACEOF
13852 /* end confdefs.h. */
13853 $ac_includes_default
13854 long longval () { return (long) (sizeof (void *)); }
13855 unsigned long ulongval () { return (long) (sizeof (void *)); }
13856 #include <stdio.h>
13857 #include <stdlib.h>
13859 main ()
13862 FILE *f = fopen ("conftest.val", "w");
13863 if (! f)
13864 exit (1);
13865 if (((long) (sizeof (void *))) < 0)
13867 long i = longval ();
13868 if (i != ((long) (sizeof (void *))))
13869 exit (1);
13870 fprintf (f, "%ld\n", i);
13872 else
13874 unsigned long i = ulongval ();
13875 if (i != ((long) (sizeof (void *))))
13876 exit (1);
13877 fprintf (f, "%lu\n", i);
13879 exit (ferror (f) || fclose (f) != 0);
13882 return 0;
13884 _ACEOF
13885 rm -f conftest$ac_exeext
13886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13887 (eval $ac_link) 2>&5
13888 ac_status=$?
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13892 (eval $ac_try) 2>&5
13893 ac_status=$?
13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); }; }; then
13896 ac_cv_sizeof_void_p=`cat conftest.val`
13897 else
13898 echo "$as_me: program exited with status $ac_status" >&5
13899 echo "$as_me: failed program was:" >&5
13900 sed 's/^/| /' conftest.$ac_ext >&5
13902 ( exit $ac_status )
13903 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13904 See \`config.log' for more details." >&5
13905 echo "$as_me: error: cannot compute sizeof (void *), 77
13906 See \`config.log' for more details." >&2;}
13907 { (exit 1); exit 1; }; }
13909 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13912 rm -f conftest.val
13913 else
13914 ac_cv_sizeof_void_p=0
13917 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13918 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13919 cat >>confdefs.h <<_ACEOF
13920 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13921 _ACEOF
13925 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13926 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
13927 if test "${ac_cv_c_bigendian+set}" = set; then
13928 echo $ECHO_N "(cached) $ECHO_C" >&6
13929 else
13930 # See if sys/param.h defines the BYTE_ORDER macro.
13931 cat >conftest.$ac_ext <<_ACEOF
13932 /* confdefs.h. */
13933 _ACEOF
13934 cat confdefs.h >>conftest.$ac_ext
13935 cat >>conftest.$ac_ext <<_ACEOF
13936 /* end confdefs.h. */
13937 #include <sys/types.h>
13938 #include <sys/param.h>
13941 main ()
13943 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13944 bogus endian macros
13945 #endif
13948 return 0;
13950 _ACEOF
13951 rm -f conftest.$ac_objext
13952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13953 (eval $ac_compile) 2>conftest.er1
13954 ac_status=$?
13955 grep -v '^ *+' conftest.er1 >conftest.err
13956 rm -f conftest.er1
13957 cat conftest.err >&5
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); } &&
13960 { ac_try='test -z "$ac_c_werror_flag"
13961 || test ! -s conftest.err'
13962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13963 (eval $ac_try) 2>&5
13964 ac_status=$?
13965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966 (exit $ac_status); }; } &&
13967 { ac_try='test -s conftest.$ac_objext'
13968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13969 (eval $ac_try) 2>&5
13970 ac_status=$?
13971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972 (exit $ac_status); }; }; then
13973 # It does; now see whether it defined to BIG_ENDIAN or not.
13974 cat >conftest.$ac_ext <<_ACEOF
13975 /* confdefs.h. */
13976 _ACEOF
13977 cat confdefs.h >>conftest.$ac_ext
13978 cat >>conftest.$ac_ext <<_ACEOF
13979 /* end confdefs.h. */
13980 #include <sys/types.h>
13981 #include <sys/param.h>
13984 main ()
13986 #if BYTE_ORDER != BIG_ENDIAN
13987 not big endian
13988 #endif
13991 return 0;
13993 _ACEOF
13994 rm -f conftest.$ac_objext
13995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13996 (eval $ac_compile) 2>conftest.er1
13997 ac_status=$?
13998 grep -v '^ *+' conftest.er1 >conftest.err
13999 rm -f conftest.er1
14000 cat conftest.err >&5
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); } &&
14003 { ac_try='test -z "$ac_c_werror_flag"
14004 || test ! -s conftest.err'
14005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14006 (eval $ac_try) 2>&5
14007 ac_status=$?
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); }; } &&
14010 { ac_try='test -s conftest.$ac_objext'
14011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14012 (eval $ac_try) 2>&5
14013 ac_status=$?
14014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015 (exit $ac_status); }; }; then
14016 ac_cv_c_bigendian=yes
14017 else
14018 echo "$as_me: failed program was:" >&5
14019 sed 's/^/| /' conftest.$ac_ext >&5
14021 ac_cv_c_bigendian=no
14023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14024 else
14025 echo "$as_me: failed program was:" >&5
14026 sed 's/^/| /' conftest.$ac_ext >&5
14028 # It does not; compile a test program.
14029 if test "$cross_compiling" = yes; then
14030 # try to guess the endianness by grepping values into an object file
14031 ac_cv_c_bigendian=unknown
14032 cat >conftest.$ac_ext <<_ACEOF
14033 /* confdefs.h. */
14034 _ACEOF
14035 cat confdefs.h >>conftest.$ac_ext
14036 cat >>conftest.$ac_ext <<_ACEOF
14037 /* end confdefs.h. */
14038 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14039 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14040 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14041 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14042 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14043 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14045 main ()
14047 _ascii (); _ebcdic ();
14049 return 0;
14051 _ACEOF
14052 rm -f conftest.$ac_objext
14053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14054 (eval $ac_compile) 2>conftest.er1
14055 ac_status=$?
14056 grep -v '^ *+' conftest.er1 >conftest.err
14057 rm -f conftest.er1
14058 cat conftest.err >&5
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); } &&
14061 { ac_try='test -z "$ac_c_werror_flag"
14062 || test ! -s conftest.err'
14063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14064 (eval $ac_try) 2>&5
14065 ac_status=$?
14066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067 (exit $ac_status); }; } &&
14068 { ac_try='test -s conftest.$ac_objext'
14069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14070 (eval $ac_try) 2>&5
14071 ac_status=$?
14072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14073 (exit $ac_status); }; }; then
14074 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14075 ac_cv_c_bigendian=yes
14077 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14078 if test "$ac_cv_c_bigendian" = unknown; then
14079 ac_cv_c_bigendian=no
14080 else
14081 # finding both strings is unlikely to happen, but who knows?
14082 ac_cv_c_bigendian=unknown
14085 else
14086 echo "$as_me: failed program was:" >&5
14087 sed 's/^/| /' conftest.$ac_ext >&5
14090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14091 else
14092 cat >conftest.$ac_ext <<_ACEOF
14093 /* confdefs.h. */
14094 _ACEOF
14095 cat confdefs.h >>conftest.$ac_ext
14096 cat >>conftest.$ac_ext <<_ACEOF
14097 /* end confdefs.h. */
14099 main ()
14101 /* Are we little or big endian? From Harbison&Steele. */
14102 union
14104 long l;
14105 char c[sizeof (long)];
14106 } u;
14107 u.l = 1;
14108 exit (u.c[sizeof (long) - 1] == 1);
14110 _ACEOF
14111 rm -f conftest$ac_exeext
14112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14113 (eval $ac_link) 2>&5
14114 ac_status=$?
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14118 (eval $ac_try) 2>&5
14119 ac_status=$?
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); }; }; then
14122 ac_cv_c_bigendian=no
14123 else
14124 echo "$as_me: program exited with status $ac_status" >&5
14125 echo "$as_me: failed program was:" >&5
14126 sed 's/^/| /' conftest.$ac_ext >&5
14128 ( exit $ac_status )
14129 ac_cv_c_bigendian=yes
14131 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14136 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14137 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14138 case $ac_cv_c_bigendian in
14139 yes)
14141 cat >>confdefs.h <<\_ACEOF
14142 #define WORDS_BIGENDIAN 1
14143 _ACEOF
14148 { { echo "$as_me:$LINENO: error: unknown endianness
14149 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14150 echo "$as_me: error: unknown endianness
14151 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14152 { (exit 1); exit 1; }; } ;;
14153 esac
14156 ZLIBS=
14157 SYS_ZLIBS=
14158 ZINCS=
14160 if test -z "$ZLIBSPEC"; then
14161 # Use zlib from the GCC tree.
14162 ZINCS='-I$(top_srcdir)/../zlib'
14163 ZLIBS=../zlib/libzgcj_convenience.la
14164 else
14165 # System's zlib.
14166 SYS_ZLIBS="$ZLIBSPEC"
14179 if test "$NATIVE" = yes; then
14180 NATIVE_TRUE=
14181 NATIVE_FALSE='#'
14182 else
14183 NATIVE_TRUE='#'
14184 NATIVE_FALSE=
14189 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
14190 NEEDS_DATA_START_TRUE=
14191 NEEDS_DATA_START_FALSE='#'
14192 else
14193 NEEDS_DATA_START_TRUE='#'
14194 NEEDS_DATA_START_FALSE=
14199 # Process the option "--enable-version-specific-runtime-libs"
14200 # Calculate toolexeclibdir
14201 case ${version_specific_libs} in
14202 yes)
14203 # Need the gcc compiler version to know where to install libraries
14204 # and header files if --enable-version-specific-runtime-libs option
14205 # is selected.
14206 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
14207 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
14208 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
14209 toolexeclibdir=$toolexecmainlibdir
14212 if test -n "$with_cross_host" &&
14213 test x"$with_cross_host" != x"no"; then
14214 # Install a library built with a cross compiler in tooldir, not libdir.
14215 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
14216 toolexecmainlibdir='$(toolexecdir)/lib'
14217 else
14218 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
14219 toolexecmainlibdir='$(libdir)'
14221 multi_os_directory=`$CC -print-multi-os-directory`
14222 case $multi_os_directory in
14223 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
14224 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
14225 esac
14227 esac
14232 # Determine gcj version number.
14233 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
14234 GCJVERSION=$gcjversion
14237 cat >>confdefs.h <<_ACEOF
14238 #define GCJVERSION "$GCJVERSION"
14239 _ACEOF
14243 cat >>confdefs.h <<\_ACEOF
14244 #define JV_VERSION "1.4.2"
14245 _ACEOF
14248 cat >>confdefs.h <<\_ACEOF
14249 #define JV_API_VERSION "1.4"
14250 _ACEOF
14254 case "${with_gxx_include_dir}" in
14255 yes)
14256 { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
14257 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
14258 { (exit 1); exit 1; }; }
14260 no | "")
14261 case "${enable_version_specific_runtime_libs}" in
14262 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
14264 libstdcxx_incdir='c++/$(gcc_version)'
14265 gxx_include_dir='$(prefix)/include/$(libstdcxx_incdir)' ;;
14266 esac ;;
14267 *) gxx_include_dir=${with_gxx_include_dir} ;;
14268 esac
14273 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
14274 # On that system, sys/ioctl.h will not include sys/filio.h unless
14275 # BSD_COMP is defined; just including sys/filio.h is simpler.
14276 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
14277 # for now. If you change this, you also must update natFile.cc.
14298 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
14299 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
14300 sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
14301 pwd.h sys/config.h stdint.h langinfo.h locale.h \
14302 dirent.h
14304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14306 echo "$as_me:$LINENO: checking for $ac_header" >&5
14307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14309 echo $ECHO_N "(cached) $ECHO_C" >&6
14311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14313 else
14314 # Is the header compilable?
14315 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14316 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14317 cat >conftest.$ac_ext <<_ACEOF
14318 /* confdefs.h. */
14319 _ACEOF
14320 cat confdefs.h >>conftest.$ac_ext
14321 cat >>conftest.$ac_ext <<_ACEOF
14322 /* end confdefs.h. */
14323 $ac_includes_default
14324 #include <$ac_header>
14325 _ACEOF
14326 rm -f conftest.$ac_objext
14327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14328 (eval $ac_compile) 2>conftest.er1
14329 ac_status=$?
14330 grep -v '^ *+' conftest.er1 >conftest.err
14331 rm -f conftest.er1
14332 cat conftest.err >&5
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); } &&
14335 { ac_try='test -z "$ac_c_werror_flag"
14336 || test ! -s conftest.err'
14337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14338 (eval $ac_try) 2>&5
14339 ac_status=$?
14340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341 (exit $ac_status); }; } &&
14342 { ac_try='test -s conftest.$ac_objext'
14343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14344 (eval $ac_try) 2>&5
14345 ac_status=$?
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); }; }; then
14348 ac_header_compiler=yes
14349 else
14350 echo "$as_me: failed program was:" >&5
14351 sed 's/^/| /' conftest.$ac_ext >&5
14353 ac_header_compiler=no
14355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14356 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14357 echo "${ECHO_T}$ac_header_compiler" >&6
14359 # Is the header present?
14360 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14361 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14362 cat >conftest.$ac_ext <<_ACEOF
14363 /* confdefs.h. */
14364 _ACEOF
14365 cat confdefs.h >>conftest.$ac_ext
14366 cat >>conftest.$ac_ext <<_ACEOF
14367 /* end confdefs.h. */
14368 #include <$ac_header>
14369 _ACEOF
14370 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14371 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14372 ac_status=$?
14373 grep -v '^ *+' conftest.er1 >conftest.err
14374 rm -f conftest.er1
14375 cat conftest.err >&5
14376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377 (exit $ac_status); } >/dev/null; then
14378 if test -s conftest.err; then
14379 ac_cpp_err=$ac_c_preproc_warn_flag
14380 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14381 else
14382 ac_cpp_err=
14384 else
14385 ac_cpp_err=yes
14387 if test -z "$ac_cpp_err"; then
14388 ac_header_preproc=yes
14389 else
14390 echo "$as_me: failed program was:" >&5
14391 sed 's/^/| /' conftest.$ac_ext >&5
14393 ac_header_preproc=no
14395 rm -f conftest.err conftest.$ac_ext
14396 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14397 echo "${ECHO_T}$ac_header_preproc" >&6
14399 # So? What about this header?
14400 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14401 yes:no: )
14402 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14403 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14405 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14406 ac_header_preproc=yes
14408 no:yes:* )
14409 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14410 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14411 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14412 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14413 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14414 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14415 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14416 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14418 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14419 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14420 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14422 cat <<\_ASBOX
14423 ## ---------------------------------- ##
14424 ## Report this to the libjava lists. ##
14425 ## ---------------------------------- ##
14426 _ASBOX
14428 sed "s/^/$as_me: WARNING: /" >&2
14430 esac
14431 echo "$as_me:$LINENO: checking for $ac_header" >&5
14432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14434 echo $ECHO_N "(cached) $ECHO_C" >&6
14435 else
14436 eval "$as_ac_Header=\$ac_header_preproc"
14438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14439 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14443 cat >>confdefs.h <<_ACEOF
14444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14445 _ACEOF
14449 done
14452 for ac_header in inttypes.h
14454 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14456 echo "$as_me:$LINENO: checking for $ac_header" >&5
14457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14459 echo $ECHO_N "(cached) $ECHO_C" >&6
14461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14463 else
14464 # Is the header compilable?
14465 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14467 cat >conftest.$ac_ext <<_ACEOF
14468 /* confdefs.h. */
14469 _ACEOF
14470 cat confdefs.h >>conftest.$ac_ext
14471 cat >>conftest.$ac_ext <<_ACEOF
14472 /* end confdefs.h. */
14473 $ac_includes_default
14474 #include <$ac_header>
14475 _ACEOF
14476 rm -f conftest.$ac_objext
14477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14478 (eval $ac_compile) 2>conftest.er1
14479 ac_status=$?
14480 grep -v '^ *+' conftest.er1 >conftest.err
14481 rm -f conftest.er1
14482 cat conftest.err >&5
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); } &&
14485 { ac_try='test -z "$ac_c_werror_flag"
14486 || test ! -s conftest.err'
14487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14488 (eval $ac_try) 2>&5
14489 ac_status=$?
14490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491 (exit $ac_status); }; } &&
14492 { ac_try='test -s conftest.$ac_objext'
14493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14494 (eval $ac_try) 2>&5
14495 ac_status=$?
14496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497 (exit $ac_status); }; }; then
14498 ac_header_compiler=yes
14499 else
14500 echo "$as_me: failed program was:" >&5
14501 sed 's/^/| /' conftest.$ac_ext >&5
14503 ac_header_compiler=no
14505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14506 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14507 echo "${ECHO_T}$ac_header_compiler" >&6
14509 # Is the header present?
14510 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14511 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14512 cat >conftest.$ac_ext <<_ACEOF
14513 /* confdefs.h. */
14514 _ACEOF
14515 cat confdefs.h >>conftest.$ac_ext
14516 cat >>conftest.$ac_ext <<_ACEOF
14517 /* end confdefs.h. */
14518 #include <$ac_header>
14519 _ACEOF
14520 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14521 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14522 ac_status=$?
14523 grep -v '^ *+' conftest.er1 >conftest.err
14524 rm -f conftest.er1
14525 cat conftest.err >&5
14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); } >/dev/null; then
14528 if test -s conftest.err; then
14529 ac_cpp_err=$ac_c_preproc_warn_flag
14530 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14531 else
14532 ac_cpp_err=
14534 else
14535 ac_cpp_err=yes
14537 if test -z "$ac_cpp_err"; then
14538 ac_header_preproc=yes
14539 else
14540 echo "$as_me: failed program was:" >&5
14541 sed 's/^/| /' conftest.$ac_ext >&5
14543 ac_header_preproc=no
14545 rm -f conftest.err conftest.$ac_ext
14546 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14547 echo "${ECHO_T}$ac_header_preproc" >&6
14549 # So? What about this header?
14550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14551 yes:no: )
14552 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14553 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14555 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14556 ac_header_preproc=yes
14558 no:yes:* )
14559 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14560 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14561 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14562 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14563 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14564 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14565 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14566 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14569 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14570 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14572 cat <<\_ASBOX
14573 ## ---------------------------------- ##
14574 ## Report this to the libjava lists. ##
14575 ## ---------------------------------- ##
14576 _ASBOX
14578 sed "s/^/$as_me: WARNING: /" >&2
14580 esac
14581 echo "$as_me:$LINENO: checking for $ac_header" >&5
14582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14584 echo $ECHO_N "(cached) $ECHO_C" >&6
14585 else
14586 eval "$as_ac_Header=\$ac_header_preproc"
14588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14593 cat >>confdefs.h <<_ACEOF
14594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14595 _ACEOF
14598 cat >>confdefs.h <<\_ACEOF
14599 #define HAVE_INTTYPES_H 1
14600 _ACEOF
14603 cat >>confdefs.h <<\_ACEOF
14604 #define JV_HAVE_INTTYPES_H 1
14605 _ACEOF
14610 done
14612 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14613 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
14614 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14615 echo $ECHO_N "(cached) $ECHO_C" >&6
14616 else
14617 cat >conftest.$ac_ext <<_ACEOF
14618 /* confdefs.h. */
14619 _ACEOF
14620 cat confdefs.h >>conftest.$ac_ext
14621 cat >>conftest.$ac_ext <<_ACEOF
14622 /* end confdefs.h. */
14623 #include <sys/types.h>
14624 #include <sys/wait.h>
14625 #ifndef WEXITSTATUS
14626 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
14627 #endif
14628 #ifndef WIFEXITED
14629 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14630 #endif
14633 main ()
14635 int s;
14636 wait (&s);
14637 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14639 return 0;
14641 _ACEOF
14642 rm -f conftest.$ac_objext
14643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14644 (eval $ac_compile) 2>conftest.er1
14645 ac_status=$?
14646 grep -v '^ *+' conftest.er1 >conftest.err
14647 rm -f conftest.er1
14648 cat conftest.err >&5
14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); } &&
14651 { ac_try='test -z "$ac_c_werror_flag"
14652 || test ! -s conftest.err'
14653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14654 (eval $ac_try) 2>&5
14655 ac_status=$?
14656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); }; } &&
14658 { ac_try='test -s conftest.$ac_objext'
14659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14660 (eval $ac_try) 2>&5
14661 ac_status=$?
14662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663 (exit $ac_status); }; }; then
14664 ac_cv_header_sys_wait_h=yes
14665 else
14666 echo "$as_me: failed program was:" >&5
14667 sed 's/^/| /' conftest.$ac_ext >&5
14669 ac_cv_header_sys_wait_h=no
14671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14673 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14674 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
14675 if test $ac_cv_header_sys_wait_h = yes; then
14677 cat >>confdefs.h <<\_ACEOF
14678 #define HAVE_SYS_WAIT_H 1
14679 _ACEOF
14684 echo "$as_me:$LINENO: checking for ssize_t" >&5
14685 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14686 if test "${ac_cv_type_ssize_t+set}" = set; then
14687 echo $ECHO_N "(cached) $ECHO_C" >&6
14688 else
14689 cat >conftest.$ac_ext <<_ACEOF
14690 /* confdefs.h. */
14691 _ACEOF
14692 cat confdefs.h >>conftest.$ac_ext
14693 cat >>conftest.$ac_ext <<_ACEOF
14694 /* end confdefs.h. */
14695 $ac_includes_default
14697 main ()
14699 if ((ssize_t *) 0)
14700 return 0;
14701 if (sizeof (ssize_t))
14702 return 0;
14704 return 0;
14706 _ACEOF
14707 rm -f conftest.$ac_objext
14708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14709 (eval $ac_compile) 2>conftest.er1
14710 ac_status=$?
14711 grep -v '^ *+' conftest.er1 >conftest.err
14712 rm -f conftest.er1
14713 cat conftest.err >&5
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); } &&
14716 { ac_try='test -z "$ac_c_werror_flag"
14717 || test ! -s conftest.err'
14718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14719 (eval $ac_try) 2>&5
14720 ac_status=$?
14721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722 (exit $ac_status); }; } &&
14723 { ac_try='test -s conftest.$ac_objext'
14724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14725 (eval $ac_try) 2>&5
14726 ac_status=$?
14727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728 (exit $ac_status); }; }; then
14729 ac_cv_type_ssize_t=yes
14730 else
14731 echo "$as_me: failed program was:" >&5
14732 sed 's/^/| /' conftest.$ac_ext >&5
14734 ac_cv_type_ssize_t=no
14736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14738 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14739 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14740 if test $ac_cv_type_ssize_t = yes; then
14742 else
14744 cat >>confdefs.h <<_ACEOF
14745 #define ssize_t int
14746 _ACEOF
14751 echo "$as_me:$LINENO: checking for in_addr_t" >&5
14752 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
14753 cat >conftest.$ac_ext <<_ACEOF
14754 /* confdefs.h. */
14755 _ACEOF
14756 cat confdefs.h >>conftest.$ac_ext
14757 cat >>conftest.$ac_ext <<_ACEOF
14758 /* end confdefs.h. */
14759 #include <sys/types.h>
14760 #if STDC_HEADERS
14761 #include <stdlib.h>
14762 #include <stddef.h>
14763 #endif
14764 #if HAVE_NETINET_IN_H
14765 #include <netinet/in.h>
14766 #endif
14768 main ()
14770 in_addr_t foo;
14772 return 0;
14774 _ACEOF
14775 rm -f conftest.$ac_objext
14776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14777 (eval $ac_compile) 2>conftest.er1
14778 ac_status=$?
14779 grep -v '^ *+' conftest.er1 >conftest.err
14780 rm -f conftest.er1
14781 cat conftest.err >&5
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); } &&
14784 { ac_try='test -z "$ac_c_werror_flag"
14785 || test ! -s conftest.err'
14786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14787 (eval $ac_try) 2>&5
14788 ac_status=$?
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); }; } &&
14791 { ac_try='test -s conftest.$ac_objext'
14792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14793 (eval $ac_try) 2>&5
14794 ac_status=$?
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); }; }; then
14798 cat >>confdefs.h <<\_ACEOF
14799 #define HAVE_IN_ADDR_T 1
14800 _ACEOF
14802 echo "$as_me:$LINENO: result: yes" >&5
14803 echo "${ECHO_T}yes" >&6
14804 else
14805 echo "$as_me: failed program was:" >&5
14806 sed 's/^/| /' conftest.$ac_ext >&5
14808 echo "$as_me:$LINENO: result: no" >&5
14809 echo "${ECHO_T}no" >&6
14811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14813 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
14814 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
14815 cat >conftest.$ac_ext <<_ACEOF
14816 /* confdefs.h. */
14817 _ACEOF
14818 cat confdefs.h >>conftest.$ac_ext
14819 cat >>conftest.$ac_ext <<_ACEOF
14820 /* end confdefs.h. */
14821 #include <netinet/in.h>
14823 main ()
14825 struct ip_mreq mreq;
14827 return 0;
14829 _ACEOF
14830 rm -f conftest.$ac_objext
14831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14832 (eval $ac_compile) 2>conftest.er1
14833 ac_status=$?
14834 grep -v '^ *+' conftest.er1 >conftest.err
14835 rm -f conftest.er1
14836 cat conftest.err >&5
14837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838 (exit $ac_status); } &&
14839 { ac_try='test -z "$ac_c_werror_flag"
14840 || test ! -s conftest.err'
14841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14842 (eval $ac_try) 2>&5
14843 ac_status=$?
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); }; } &&
14846 { ac_try='test -s conftest.$ac_objext'
14847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14848 (eval $ac_try) 2>&5
14849 ac_status=$?
14850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851 (exit $ac_status); }; }; then
14853 cat >>confdefs.h <<\_ACEOF
14854 #define HAVE_STRUCT_IP_MREQ 1
14855 _ACEOF
14857 echo "$as_me:$LINENO: result: yes" >&5
14858 echo "${ECHO_T}yes" >&6
14859 else
14860 echo "$as_me: failed program was:" >&5
14861 sed 's/^/| /' conftest.$ac_ext >&5
14863 echo "$as_me:$LINENO: result: no" >&5
14864 echo "${ECHO_T}no" >&6
14866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14868 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
14869 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
14870 cat >conftest.$ac_ext <<_ACEOF
14871 /* confdefs.h. */
14872 _ACEOF
14873 cat confdefs.h >>conftest.$ac_ext
14874 cat >>conftest.$ac_ext <<_ACEOF
14875 /* end confdefs.h. */
14876 #include <netinet/in.h>
14878 main ()
14880 struct ipv6_mreq mreq6;
14882 return 0;
14884 _ACEOF
14885 rm -f conftest.$ac_objext
14886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14887 (eval $ac_compile) 2>conftest.er1
14888 ac_status=$?
14889 grep -v '^ *+' conftest.er1 >conftest.err
14890 rm -f conftest.er1
14891 cat conftest.err >&5
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); } &&
14894 { ac_try='test -z "$ac_c_werror_flag"
14895 || test ! -s conftest.err'
14896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14897 (eval $ac_try) 2>&5
14898 ac_status=$?
14899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900 (exit $ac_status); }; } &&
14901 { ac_try='test -s conftest.$ac_objext'
14902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14903 (eval $ac_try) 2>&5
14904 ac_status=$?
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); }; }; then
14908 cat >>confdefs.h <<\_ACEOF
14909 #define HAVE_STRUCT_IPV6_MREQ 1
14910 _ACEOF
14912 echo "$as_me:$LINENO: result: yes" >&5
14913 echo "${ECHO_T}yes" >&6
14914 else
14915 echo "$as_me: failed program was:" >&5
14916 sed 's/^/| /' conftest.$ac_ext >&5
14918 echo "$as_me:$LINENO: result: no" >&5
14919 echo "${ECHO_T}no" >&6
14921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14923 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
14924 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
14925 cat >conftest.$ac_ext <<_ACEOF
14926 /* confdefs.h. */
14927 _ACEOF
14928 cat confdefs.h >>conftest.$ac_ext
14929 cat >>conftest.$ac_ext <<_ACEOF
14930 /* end confdefs.h. */
14931 #include <netinet/in.h>
14933 main ()
14935 struct sockaddr_in6 addr6;
14937 return 0;
14939 _ACEOF
14940 rm -f conftest.$ac_objext
14941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14942 (eval $ac_compile) 2>conftest.er1
14943 ac_status=$?
14944 grep -v '^ *+' conftest.er1 >conftest.err
14945 rm -f conftest.er1
14946 cat conftest.err >&5
14947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948 (exit $ac_status); } &&
14949 { ac_try='test -z "$ac_c_werror_flag"
14950 || test ! -s conftest.err'
14951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14952 (eval $ac_try) 2>&5
14953 ac_status=$?
14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); }; } &&
14956 { ac_try='test -s conftest.$ac_objext'
14957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14958 (eval $ac_try) 2>&5
14959 ac_status=$?
14960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961 (exit $ac_status); }; }; then
14963 cat >>confdefs.h <<\_ACEOF
14964 #define HAVE_INET6 1
14965 _ACEOF
14967 echo "$as_me:$LINENO: result: yes" >&5
14968 echo "${ECHO_T}yes" >&6
14969 else
14970 echo "$as_me: failed program was:" >&5
14971 sed 's/^/| /' conftest.$ac_ext >&5
14973 echo "$as_me:$LINENO: result: no" >&5
14974 echo "${ECHO_T}no" >&6
14976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14978 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
14979 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
14980 cat >conftest.$ac_ext <<_ACEOF
14981 /* confdefs.h. */
14982 _ACEOF
14983 cat confdefs.h >>conftest.$ac_ext
14984 cat >>conftest.$ac_ext <<_ACEOF
14985 /* end confdefs.h. */
14986 #define _POSIX_PII_SOCKET
14987 #include <sys/types.h>
14988 #include <sys/socket.h>
14990 main ()
14992 socklen_t x = 5;
14994 return 0;
14996 _ACEOF
14997 rm -f conftest.$ac_objext
14998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14999 (eval $ac_compile) 2>conftest.er1
15000 ac_status=$?
15001 grep -v '^ *+' conftest.er1 >conftest.err
15002 rm -f conftest.er1
15003 cat conftest.err >&5
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); } &&
15006 { ac_try='test -z "$ac_c_werror_flag"
15007 || test ! -s conftest.err'
15008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15009 (eval $ac_try) 2>&5
15010 ac_status=$?
15011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012 (exit $ac_status); }; } &&
15013 { ac_try='test -s conftest.$ac_objext'
15014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15015 (eval $ac_try) 2>&5
15016 ac_status=$?
15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); }; }; then
15020 cat >>confdefs.h <<\_ACEOF
15021 #define HAVE_SOCKLEN_T 1
15022 _ACEOF
15024 echo "$as_me:$LINENO: result: yes" >&5
15025 echo "${ECHO_T}yes" >&6
15026 else
15027 echo "$as_me: failed program was:" >&5
15028 sed 's/^/| /' conftest.$ac_ext >&5
15030 echo "$as_me:$LINENO: result: no" >&5
15031 echo "${ECHO_T}no" >&6
15033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15035 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
15036 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
15037 cat >conftest.$ac_ext <<_ACEOF
15038 /* confdefs.h. */
15039 _ACEOF
15040 cat confdefs.h >>conftest.$ac_ext
15041 cat >>conftest.$ac_ext <<_ACEOF
15042 /* end confdefs.h. */
15043 #include <time.h>
15045 main ()
15047 struct tm tim; tim.tm_gmtoff = 0;
15049 return 0;
15051 _ACEOF
15052 rm -f conftest.$ac_objext
15053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15054 (eval $ac_compile) 2>conftest.er1
15055 ac_status=$?
15056 grep -v '^ *+' conftest.er1 >conftest.err
15057 rm -f conftest.er1
15058 cat conftest.err >&5
15059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060 (exit $ac_status); } &&
15061 { ac_try='test -z "$ac_c_werror_flag"
15062 || test ! -s conftest.err'
15063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15064 (eval $ac_try) 2>&5
15065 ac_status=$?
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); }; } &&
15068 { ac_try='test -s conftest.$ac_objext'
15069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15070 (eval $ac_try) 2>&5
15071 ac_status=$?
15072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073 (exit $ac_status); }; }; then
15075 cat >>confdefs.h <<\_ACEOF
15076 #define STRUCT_TM_HAS_GMTOFF 1
15077 _ACEOF
15079 echo "$as_me:$LINENO: result: yes" >&5
15080 echo "${ECHO_T}yes" >&6
15081 else
15082 echo "$as_me: failed program was:" >&5
15083 sed 's/^/| /' conftest.$ac_ext >&5
15085 echo "$as_me:$LINENO: result: no" >&5
15086 echo "${ECHO_T}no" >&6
15087 echo "$as_me:$LINENO: checking for global timezone variable" >&5
15088 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
15089 cat >conftest.$ac_ext <<_ACEOF
15090 /* confdefs.h. */
15091 _ACEOF
15092 cat confdefs.h >>conftest.$ac_ext
15093 cat >>conftest.$ac_ext <<_ACEOF
15094 /* end confdefs.h. */
15095 #include <time.h>
15097 main ()
15099 void i(){long z2 = 2*timezone;}
15101 return 0;
15103 _ACEOF
15104 rm -f conftest.$ac_objext
15105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15106 (eval $ac_compile) 2>conftest.er1
15107 ac_status=$?
15108 grep -v '^ *+' conftest.er1 >conftest.err
15109 rm -f conftest.er1
15110 cat conftest.err >&5
15111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112 (exit $ac_status); } &&
15113 { ac_try='test -z "$ac_c_werror_flag"
15114 || test ! -s conftest.err'
15115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15116 (eval $ac_try) 2>&5
15117 ac_status=$?
15118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119 (exit $ac_status); }; } &&
15120 { ac_try='test -s conftest.$ac_objext'
15121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15122 (eval $ac_try) 2>&5
15123 ac_status=$?
15124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125 (exit $ac_status); }; }; then
15127 cat >>confdefs.h <<\_ACEOF
15128 #define HAVE_TIMEZONE 1
15129 _ACEOF
15131 echo "$as_me:$LINENO: result: yes" >&5
15132 echo "${ECHO_T}yes" >&6
15133 else
15134 echo "$as_me: failed program was:" >&5
15135 sed 's/^/| /' conftest.$ac_ext >&5
15137 echo "$as_me:$LINENO: result: no" >&5
15138 echo "${ECHO_T}no" >&6
15139 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
15140 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
15141 cat >conftest.$ac_ext <<_ACEOF
15142 /* confdefs.h. */
15143 _ACEOF
15144 cat confdefs.h >>conftest.$ac_ext
15145 cat >>conftest.$ac_ext <<_ACEOF
15146 /* end confdefs.h. */
15147 #include <time.h>
15149 main ()
15151 long z2 = _timezone;
15153 return 0;
15155 _ACEOF
15156 rm -f conftest.$ac_objext
15157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15158 (eval $ac_compile) 2>conftest.er1
15159 ac_status=$?
15160 grep -v '^ *+' conftest.er1 >conftest.err
15161 rm -f conftest.er1
15162 cat conftest.err >&5
15163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); } &&
15165 { ac_try='test -z "$ac_c_werror_flag"
15166 || test ! -s conftest.err'
15167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15168 (eval $ac_try) 2>&5
15169 ac_status=$?
15170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171 (exit $ac_status); }; } &&
15172 { ac_try='test -s conftest.$ac_objext'
15173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15174 (eval $ac_try) 2>&5
15175 ac_status=$?
15176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 (exit $ac_status); }; }; then
15179 cat >>confdefs.h <<\_ACEOF
15180 #define HAVE_UNDERSCORE_TIMEZONE 1
15181 _ACEOF
15183 echo "$as_me:$LINENO: result: yes" >&5
15184 echo "${ECHO_T}yes" >&6
15185 else
15186 echo "$as_me: failed program was:" >&5
15187 sed 's/^/| /' conftest.$ac_ext >&5
15189 echo "$as_me:$LINENO: result: no" >&5
15190 echo "${ECHO_T}no" >&6
15192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15198 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15199 # for constant arguments. Useless!
15200 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15201 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15202 if test "${ac_cv_working_alloca_h+set}" = set; then
15203 echo $ECHO_N "(cached) $ECHO_C" >&6
15204 else
15205 if test x$gcc_no_link = xyes; then
15206 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15207 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15208 { (exit 1); exit 1; }; }
15210 cat >conftest.$ac_ext <<_ACEOF
15211 /* confdefs.h. */
15212 _ACEOF
15213 cat confdefs.h >>conftest.$ac_ext
15214 cat >>conftest.$ac_ext <<_ACEOF
15215 /* end confdefs.h. */
15216 #include <alloca.h>
15218 main ()
15220 char *p = (char *) alloca (2 * sizeof (int));
15222 return 0;
15224 _ACEOF
15225 rm -f conftest.$ac_objext conftest$ac_exeext
15226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15227 (eval $ac_link) 2>conftest.er1
15228 ac_status=$?
15229 grep -v '^ *+' conftest.er1 >conftest.err
15230 rm -f conftest.er1
15231 cat conftest.err >&5
15232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233 (exit $ac_status); } &&
15234 { ac_try='test -z "$ac_c_werror_flag"
15235 || test ! -s conftest.err'
15236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15237 (eval $ac_try) 2>&5
15238 ac_status=$?
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); }; } &&
15241 { ac_try='test -s conftest$ac_exeext'
15242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15243 (eval $ac_try) 2>&5
15244 ac_status=$?
15245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246 (exit $ac_status); }; }; then
15247 ac_cv_working_alloca_h=yes
15248 else
15249 echo "$as_me: failed program was:" >&5
15250 sed 's/^/| /' conftest.$ac_ext >&5
15252 ac_cv_working_alloca_h=no
15254 rm -f conftest.err conftest.$ac_objext \
15255 conftest$ac_exeext conftest.$ac_ext
15257 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15258 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15259 if test $ac_cv_working_alloca_h = yes; then
15261 cat >>confdefs.h <<\_ACEOF
15262 #define HAVE_ALLOCA_H 1
15263 _ACEOF
15267 echo "$as_me:$LINENO: checking for alloca" >&5
15268 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15269 if test "${ac_cv_func_alloca_works+set}" = set; then
15270 echo $ECHO_N "(cached) $ECHO_C" >&6
15271 else
15272 if test x$gcc_no_link = xyes; then
15273 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15274 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15275 { (exit 1); exit 1; }; }
15277 cat >conftest.$ac_ext <<_ACEOF
15278 /* confdefs.h. */
15279 _ACEOF
15280 cat confdefs.h >>conftest.$ac_ext
15281 cat >>conftest.$ac_ext <<_ACEOF
15282 /* end confdefs.h. */
15283 #ifdef __GNUC__
15284 # define alloca __builtin_alloca
15285 #else
15286 # ifdef _MSC_VER
15287 # include <malloc.h>
15288 # define alloca _alloca
15289 # else
15290 # if HAVE_ALLOCA_H
15291 # include <alloca.h>
15292 # else
15293 # ifdef _AIX
15294 #pragma alloca
15295 # else
15296 # ifndef alloca /* predefined by HP cc +Olibcalls */
15297 char *alloca ();
15298 # endif
15299 # endif
15300 # endif
15301 # endif
15302 #endif
15305 main ()
15307 char *p = (char *) alloca (1);
15309 return 0;
15311 _ACEOF
15312 rm -f conftest.$ac_objext conftest$ac_exeext
15313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15314 (eval $ac_link) 2>conftest.er1
15315 ac_status=$?
15316 grep -v '^ *+' conftest.er1 >conftest.err
15317 rm -f conftest.er1
15318 cat conftest.err >&5
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); } &&
15321 { ac_try='test -z "$ac_c_werror_flag"
15322 || test ! -s conftest.err'
15323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15324 (eval $ac_try) 2>&5
15325 ac_status=$?
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); }; } &&
15328 { ac_try='test -s conftest$ac_exeext'
15329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15330 (eval $ac_try) 2>&5
15331 ac_status=$?
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); }; }; then
15334 ac_cv_func_alloca_works=yes
15335 else
15336 echo "$as_me: failed program was:" >&5
15337 sed 's/^/| /' conftest.$ac_ext >&5
15339 ac_cv_func_alloca_works=no
15341 rm -f conftest.err conftest.$ac_objext \
15342 conftest$ac_exeext conftest.$ac_ext
15344 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15345 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15347 if test $ac_cv_func_alloca_works = yes; then
15349 cat >>confdefs.h <<\_ACEOF
15350 #define HAVE_ALLOCA 1
15351 _ACEOF
15353 else
15354 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15355 # that cause trouble. Some versions do not even contain alloca or
15356 # contain a buggy version. If you still want to use their alloca,
15357 # use ar to extract alloca.o from them instead of compiling alloca.c.
15359 ALLOCA=alloca.$ac_objext
15361 cat >>confdefs.h <<\_ACEOF
15362 #define C_ALLOCA 1
15363 _ACEOF
15366 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15367 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15368 if test "${ac_cv_os_cray+set}" = set; then
15369 echo $ECHO_N "(cached) $ECHO_C" >&6
15370 else
15371 cat >conftest.$ac_ext <<_ACEOF
15372 /* confdefs.h. */
15373 _ACEOF
15374 cat confdefs.h >>conftest.$ac_ext
15375 cat >>conftest.$ac_ext <<_ACEOF
15376 /* end confdefs.h. */
15377 #if defined(CRAY) && ! defined(CRAY2)
15378 webecray
15379 #else
15380 wenotbecray
15381 #endif
15383 _ACEOF
15384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15385 $EGREP "webecray" >/dev/null 2>&1; then
15386 ac_cv_os_cray=yes
15387 else
15388 ac_cv_os_cray=no
15390 rm -f conftest*
15393 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15394 echo "${ECHO_T}$ac_cv_os_cray" >&6
15395 if test $ac_cv_os_cray = yes; then
15396 for ac_func in _getb67 GETB67 getb67; do
15397 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15398 echo "$as_me:$LINENO: checking for $ac_func" >&5
15399 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15400 if eval "test \"\${$as_ac_var+set}\" = set"; then
15401 echo $ECHO_N "(cached) $ECHO_C" >&6
15402 else
15403 if test x$gcc_no_link = xyes; then
15404 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15405 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15406 { (exit 1); exit 1; }; }
15408 cat >conftest.$ac_ext <<_ACEOF
15409 /* confdefs.h. */
15410 _ACEOF
15411 cat confdefs.h >>conftest.$ac_ext
15412 cat >>conftest.$ac_ext <<_ACEOF
15413 /* end confdefs.h. */
15414 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15416 #define $ac_func innocuous_$ac_func
15418 /* System header to define __stub macros and hopefully few prototypes,
15419 which can conflict with char $ac_func (); below.
15420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15421 <limits.h> exists even on freestanding compilers. */
15423 #ifdef __STDC__
15424 # include <limits.h>
15425 #else
15426 # include <assert.h>
15427 #endif
15429 #undef $ac_func
15431 /* Override any gcc2 internal prototype to avoid an error. */
15432 #ifdef __cplusplus
15433 extern "C"
15435 #endif
15436 /* We use char because int might match the return type of a gcc2
15437 builtin and then its argument prototype would still apply. */
15438 char $ac_func ();
15439 /* The GNU C library defines this for functions which it implements
15440 to always fail with ENOSYS. Some functions are actually named
15441 something starting with __ and the normal name is an alias. */
15442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15443 choke me
15444 #else
15445 char (*f) () = $ac_func;
15446 #endif
15447 #ifdef __cplusplus
15449 #endif
15452 main ()
15454 return f != $ac_func;
15456 return 0;
15458 _ACEOF
15459 rm -f conftest.$ac_objext conftest$ac_exeext
15460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15461 (eval $ac_link) 2>conftest.er1
15462 ac_status=$?
15463 grep -v '^ *+' conftest.er1 >conftest.err
15464 rm -f conftest.er1
15465 cat conftest.err >&5
15466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); } &&
15468 { ac_try='test -z "$ac_c_werror_flag"
15469 || test ! -s conftest.err'
15470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15471 (eval $ac_try) 2>&5
15472 ac_status=$?
15473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474 (exit $ac_status); }; } &&
15475 { ac_try='test -s conftest$ac_exeext'
15476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15477 (eval $ac_try) 2>&5
15478 ac_status=$?
15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480 (exit $ac_status); }; }; then
15481 eval "$as_ac_var=yes"
15482 else
15483 echo "$as_me: failed program was:" >&5
15484 sed 's/^/| /' conftest.$ac_ext >&5
15486 eval "$as_ac_var=no"
15488 rm -f conftest.err conftest.$ac_objext \
15489 conftest$ac_exeext conftest.$ac_ext
15491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15492 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15493 if test `eval echo '${'$as_ac_var'}'` = yes; then
15495 cat >>confdefs.h <<_ACEOF
15496 #define CRAY_STACKSEG_END $ac_func
15497 _ACEOF
15499 break
15502 done
15505 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15506 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15507 if test "${ac_cv_c_stack_direction+set}" = set; then
15508 echo $ECHO_N "(cached) $ECHO_C" >&6
15509 else
15510 if test "$cross_compiling" = yes; then
15511 ac_cv_c_stack_direction=0
15512 else
15513 cat >conftest.$ac_ext <<_ACEOF
15514 /* confdefs.h. */
15515 _ACEOF
15516 cat confdefs.h >>conftest.$ac_ext
15517 cat >>conftest.$ac_ext <<_ACEOF
15518 /* end confdefs.h. */
15520 find_stack_direction ()
15522 static char *addr = 0;
15523 auto char dummy;
15524 if (addr == 0)
15526 addr = &dummy;
15527 return find_stack_direction ();
15529 else
15530 return (&dummy > addr) ? 1 : -1;
15534 main ()
15536 exit (find_stack_direction () < 0);
15538 _ACEOF
15539 rm -f conftest$ac_exeext
15540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15541 (eval $ac_link) 2>&5
15542 ac_status=$?
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15546 (eval $ac_try) 2>&5
15547 ac_status=$?
15548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549 (exit $ac_status); }; }; then
15550 ac_cv_c_stack_direction=1
15551 else
15552 echo "$as_me: program exited with status $ac_status" >&5
15553 echo "$as_me: failed program was:" >&5
15554 sed 's/^/| /' conftest.$ac_ext >&5
15556 ( exit $ac_status )
15557 ac_cv_c_stack_direction=-1
15559 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15562 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15563 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
15565 cat >>confdefs.h <<_ACEOF
15566 #define STACK_DIRECTION $ac_cv_c_stack_direction
15567 _ACEOF
15572 if test x$gcc_no_link = xyes; then
15573 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
15574 ac_cv_func_mmap_fixed_mapped=no
15577 if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
15580 for ac_header in stdlib.h unistd.h
15582 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15584 echo "$as_me:$LINENO: checking for $ac_header" >&5
15585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15587 echo $ECHO_N "(cached) $ECHO_C" >&6
15589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15590 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15591 else
15592 # Is the header compilable?
15593 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15594 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15595 cat >conftest.$ac_ext <<_ACEOF
15596 /* confdefs.h. */
15597 _ACEOF
15598 cat confdefs.h >>conftest.$ac_ext
15599 cat >>conftest.$ac_ext <<_ACEOF
15600 /* end confdefs.h. */
15601 $ac_includes_default
15602 #include <$ac_header>
15603 _ACEOF
15604 rm -f conftest.$ac_objext
15605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15606 (eval $ac_compile) 2>conftest.er1
15607 ac_status=$?
15608 grep -v '^ *+' conftest.er1 >conftest.err
15609 rm -f conftest.er1
15610 cat conftest.err >&5
15611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612 (exit $ac_status); } &&
15613 { ac_try='test -z "$ac_c_werror_flag"
15614 || test ! -s conftest.err'
15615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15616 (eval $ac_try) 2>&5
15617 ac_status=$?
15618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619 (exit $ac_status); }; } &&
15620 { ac_try='test -s conftest.$ac_objext'
15621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15622 (eval $ac_try) 2>&5
15623 ac_status=$?
15624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15625 (exit $ac_status); }; }; then
15626 ac_header_compiler=yes
15627 else
15628 echo "$as_me: failed program was:" >&5
15629 sed 's/^/| /' conftest.$ac_ext >&5
15631 ac_header_compiler=no
15633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15634 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15635 echo "${ECHO_T}$ac_header_compiler" >&6
15637 # Is the header present?
15638 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15639 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15640 cat >conftest.$ac_ext <<_ACEOF
15641 /* confdefs.h. */
15642 _ACEOF
15643 cat confdefs.h >>conftest.$ac_ext
15644 cat >>conftest.$ac_ext <<_ACEOF
15645 /* end confdefs.h. */
15646 #include <$ac_header>
15647 _ACEOF
15648 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15649 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15650 ac_status=$?
15651 grep -v '^ *+' conftest.er1 >conftest.err
15652 rm -f conftest.er1
15653 cat conftest.err >&5
15654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655 (exit $ac_status); } >/dev/null; then
15656 if test -s conftest.err; then
15657 ac_cpp_err=$ac_c_preproc_warn_flag
15658 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15659 else
15660 ac_cpp_err=
15662 else
15663 ac_cpp_err=yes
15665 if test -z "$ac_cpp_err"; then
15666 ac_header_preproc=yes
15667 else
15668 echo "$as_me: failed program was:" >&5
15669 sed 's/^/| /' conftest.$ac_ext >&5
15671 ac_header_preproc=no
15673 rm -f conftest.err conftest.$ac_ext
15674 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15675 echo "${ECHO_T}$ac_header_preproc" >&6
15677 # So? What about this header?
15678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15679 yes:no: )
15680 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15681 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15683 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15684 ac_header_preproc=yes
15686 no:yes:* )
15687 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15688 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15689 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15690 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15691 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15692 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15693 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15694 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15696 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15697 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15698 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15700 cat <<\_ASBOX
15701 ## ---------------------------------- ##
15702 ## Report this to the libjava lists. ##
15703 ## ---------------------------------- ##
15704 _ASBOX
15706 sed "s/^/$as_me: WARNING: /" >&2
15708 esac
15709 echo "$as_me:$LINENO: checking for $ac_header" >&5
15710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15712 echo $ECHO_N "(cached) $ECHO_C" >&6
15713 else
15714 eval "$as_ac_Header=\$ac_header_preproc"
15716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15717 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15720 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15721 cat >>confdefs.h <<_ACEOF
15722 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15723 _ACEOF
15727 done
15730 for ac_func in getpagesize
15732 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15733 echo "$as_me:$LINENO: checking for $ac_func" >&5
15734 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15735 if eval "test \"\${$as_ac_var+set}\" = set"; then
15736 echo $ECHO_N "(cached) $ECHO_C" >&6
15737 else
15738 if test x$gcc_no_link = xyes; then
15739 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15740 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15741 { (exit 1); exit 1; }; }
15743 cat >conftest.$ac_ext <<_ACEOF
15744 /* confdefs.h. */
15745 _ACEOF
15746 cat confdefs.h >>conftest.$ac_ext
15747 cat >>conftest.$ac_ext <<_ACEOF
15748 /* end confdefs.h. */
15749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15751 #define $ac_func innocuous_$ac_func
15753 /* System header to define __stub macros and hopefully few prototypes,
15754 which can conflict with char $ac_func (); below.
15755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15756 <limits.h> exists even on freestanding compilers. */
15758 #ifdef __STDC__
15759 # include <limits.h>
15760 #else
15761 # include <assert.h>
15762 #endif
15764 #undef $ac_func
15766 /* Override any gcc2 internal prototype to avoid an error. */
15767 #ifdef __cplusplus
15768 extern "C"
15770 #endif
15771 /* We use char because int might match the return type of a gcc2
15772 builtin and then its argument prototype would still apply. */
15773 char $ac_func ();
15774 /* The GNU C library defines this for functions which it implements
15775 to always fail with ENOSYS. Some functions are actually named
15776 something starting with __ and the normal name is an alias. */
15777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15778 choke me
15779 #else
15780 char (*f) () = $ac_func;
15781 #endif
15782 #ifdef __cplusplus
15784 #endif
15787 main ()
15789 return f != $ac_func;
15791 return 0;
15793 _ACEOF
15794 rm -f conftest.$ac_objext conftest$ac_exeext
15795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15796 (eval $ac_link) 2>conftest.er1
15797 ac_status=$?
15798 grep -v '^ *+' conftest.er1 >conftest.err
15799 rm -f conftest.er1
15800 cat conftest.err >&5
15801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802 (exit $ac_status); } &&
15803 { ac_try='test -z "$ac_c_werror_flag"
15804 || test ! -s conftest.err'
15805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15806 (eval $ac_try) 2>&5
15807 ac_status=$?
15808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809 (exit $ac_status); }; } &&
15810 { ac_try='test -s conftest$ac_exeext'
15811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15812 (eval $ac_try) 2>&5
15813 ac_status=$?
15814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815 (exit $ac_status); }; }; then
15816 eval "$as_ac_var=yes"
15817 else
15818 echo "$as_me: failed program was:" >&5
15819 sed 's/^/| /' conftest.$ac_ext >&5
15821 eval "$as_ac_var=no"
15823 rm -f conftest.err conftest.$ac_objext \
15824 conftest$ac_exeext conftest.$ac_ext
15826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15827 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15828 if test `eval echo '${'$as_ac_var'}'` = yes; then
15829 cat >>confdefs.h <<_ACEOF
15830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15831 _ACEOF
15834 done
15836 echo "$as_me:$LINENO: checking for working mmap" >&5
15837 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
15838 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
15839 echo $ECHO_N "(cached) $ECHO_C" >&6
15840 else
15841 if test "$cross_compiling" = yes; then
15842 ac_cv_func_mmap_fixed_mapped=no
15843 else
15844 cat >conftest.$ac_ext <<_ACEOF
15845 /* confdefs.h. */
15846 _ACEOF
15847 cat confdefs.h >>conftest.$ac_ext
15848 cat >>conftest.$ac_ext <<_ACEOF
15849 /* end confdefs.h. */
15850 $ac_includes_default
15851 /* malloc might have been renamed as rpl_malloc. */
15852 #undef malloc
15854 /* Thanks to Mike Haertel and Jim Avera for this test.
15855 Here is a matrix of mmap possibilities:
15856 mmap private not fixed
15857 mmap private fixed at somewhere currently unmapped
15858 mmap private fixed at somewhere already mapped
15859 mmap shared not fixed
15860 mmap shared fixed at somewhere currently unmapped
15861 mmap shared fixed at somewhere already mapped
15862 For private mappings, we should verify that changes cannot be read()
15863 back from the file, nor mmap's back from the file at a different
15864 address. (There have been systems where private was not correctly
15865 implemented like the infamous i386 svr4.0, and systems where the
15866 VM page cache was not coherent with the file system buffer cache
15867 like early versions of FreeBSD and possibly contemporary NetBSD.)
15868 For shared mappings, we should conversely verify that changes get
15869 propagated back to all the places they're supposed to be.
15871 Grep wants private fixed already mapped.
15872 The main things grep needs to know about mmap are:
15873 * does it exist and is it safe to write into the mmap'd area
15874 * how to use it (BSD variants) */
15876 #include <fcntl.h>
15877 #include <sys/mman.h>
15879 #if !STDC_HEADERS && !HAVE_STDLIB_H
15880 char *malloc ();
15881 #endif
15883 /* This mess was copied from the GNU getpagesize.h. */
15884 #if !HAVE_GETPAGESIZE
15885 /* Assume that all systems that can run configure have sys/param.h. */
15886 # if !HAVE_SYS_PARAM_H
15887 # define HAVE_SYS_PARAM_H 1
15888 # endif
15890 # ifdef _SC_PAGESIZE
15891 # define getpagesize() sysconf(_SC_PAGESIZE)
15892 # else /* no _SC_PAGESIZE */
15893 # if HAVE_SYS_PARAM_H
15894 # include <sys/param.h>
15895 # ifdef EXEC_PAGESIZE
15896 # define getpagesize() EXEC_PAGESIZE
15897 # else /* no EXEC_PAGESIZE */
15898 # ifdef NBPG
15899 # define getpagesize() NBPG * CLSIZE
15900 # ifndef CLSIZE
15901 # define CLSIZE 1
15902 # endif /* no CLSIZE */
15903 # else /* no NBPG */
15904 # ifdef NBPC
15905 # define getpagesize() NBPC
15906 # else /* no NBPC */
15907 # ifdef PAGESIZE
15908 # define getpagesize() PAGESIZE
15909 # endif /* PAGESIZE */
15910 # endif /* no NBPC */
15911 # endif /* no NBPG */
15912 # endif /* no EXEC_PAGESIZE */
15913 # else /* no HAVE_SYS_PARAM_H */
15914 # define getpagesize() 8192 /* punt totally */
15915 # endif /* no HAVE_SYS_PARAM_H */
15916 # endif /* no _SC_PAGESIZE */
15918 #endif /* no HAVE_GETPAGESIZE */
15921 main ()
15923 char *data, *data2, *data3;
15924 int i, pagesize;
15925 int fd;
15927 pagesize = getpagesize ();
15929 /* First, make a file with some known garbage in it. */
15930 data = (char *) malloc (pagesize);
15931 if (!data)
15932 exit (1);
15933 for (i = 0; i < pagesize; ++i)
15934 *(data + i) = rand ();
15935 umask (0);
15936 fd = creat ("conftest.mmap", 0600);
15937 if (fd < 0)
15938 exit (1);
15939 if (write (fd, data, pagesize) != pagesize)
15940 exit (1);
15941 close (fd);
15943 /* Next, try to mmap the file at a fixed address which already has
15944 something else allocated at it. If we can, also make sure that
15945 we see the same garbage. */
15946 fd = open ("conftest.mmap", O_RDWR);
15947 if (fd < 0)
15948 exit (1);
15949 data2 = (char *) malloc (2 * pagesize);
15950 if (!data2)
15951 exit (1);
15952 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
15953 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15954 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15955 exit (1);
15956 for (i = 0; i < pagesize; ++i)
15957 if (*(data + i) != *(data2 + i))
15958 exit (1);
15960 /* Finally, make sure that changes to the mapped area do not
15961 percolate back to the file as seen by read(). (This is a bug on
15962 some variants of i386 svr4.0.) */
15963 for (i = 0; i < pagesize; ++i)
15964 *(data2 + i) = *(data2 + i) + 1;
15965 data3 = (char *) malloc (pagesize);
15966 if (!data3)
15967 exit (1);
15968 if (read (fd, data3, pagesize) != pagesize)
15969 exit (1);
15970 for (i = 0; i < pagesize; ++i)
15971 if (*(data + i) != *(data3 + i))
15972 exit (1);
15973 close (fd);
15974 exit (0);
15976 _ACEOF
15977 rm -f conftest$ac_exeext
15978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15979 (eval $ac_link) 2>&5
15980 ac_status=$?
15981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15984 (eval $ac_try) 2>&5
15985 ac_status=$?
15986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987 (exit $ac_status); }; }; then
15988 ac_cv_func_mmap_fixed_mapped=yes
15989 else
15990 echo "$as_me: program exited with status $ac_status" >&5
15991 echo "$as_me: failed program was:" >&5
15992 sed 's/^/| /' conftest.$ac_ext >&5
15994 ( exit $ac_status )
15995 ac_cv_func_mmap_fixed_mapped=no
15997 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16000 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16001 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
16002 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16004 cat >>confdefs.h <<\_ACEOF
16005 #define HAVE_MMAP 1
16006 _ACEOF
16009 rm -f conftest.mmap
16013 for ac_prog in perl
16015 # Extract the first word of "$ac_prog", so it can be a program name with args.
16016 set dummy $ac_prog; ac_word=$2
16017 echo "$as_me:$LINENO: checking for $ac_word" >&5
16018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16019 if test "${ac_cv_prog_PERL+set}" = set; then
16020 echo $ECHO_N "(cached) $ECHO_C" >&6
16021 else
16022 if test -n "$PERL"; then
16023 ac_cv_prog_PERL="$PERL" # Let the user override the test.
16024 else
16025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16026 for as_dir in $PATH
16028 IFS=$as_save_IFS
16029 test -z "$as_dir" && as_dir=.
16030 for ac_exec_ext in '' $ac_executable_extensions; do
16031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16032 ac_cv_prog_PERL="$ac_prog"
16033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16034 break 2
16036 done
16037 done
16041 PERL=$ac_cv_prog_PERL
16042 if test -n "$PERL"; then
16043 echo "$as_me:$LINENO: result: $PERL" >&5
16044 echo "${ECHO_T}$PERL" >&6
16045 else
16046 echo "$as_me:$LINENO: result: no" >&5
16047 echo "${ECHO_T}no" >&6
16050 test -n "$PERL" && break
16051 done
16052 test -n "$PERL" || PERL="false"
16055 SYSDEP_SOURCES=
16056 SIGNAL_HANDLER_AUX=
16058 case "${host}" in
16059 i?86-*-linux*)
16060 SIGNAL_HANDLER=include/i386-signal.h
16062 sparc*-sun-solaris*)
16063 SIGNAL_HANDLER=include/sparc-signal.h
16065 # ia64-*)
16066 # SYSDEP_SOURCES=sysdep/ia64.c
16067 # test -d sysdep || mkdir sysdep
16068 # ;;
16069 hppa*-*-linux*)
16070 SIGNAL_HANDLER=include/pa-signal.h
16072 ia64-*-linux*)
16073 SIGNAL_HANDLER=include/dwarf2-signal.h
16075 powerpc*-*-linux*)
16076 SIGNAL_HANDLER=include/powerpc-signal.h
16078 alpha*-*-linux*)
16079 SIGNAL_HANDLER=include/dwarf2-signal.h
16081 s390*-*-linux*)
16082 SIGNAL_HANDLER=include/s390-signal.h
16084 x86_64*-*-linux*)
16085 SIGNAL_HANDLER=include/x86_64-signal.h
16086 SIGNAL_HANDLER_AUX=include/i386-signal.h
16088 sparc*-*-linux*)
16089 SIGNAL_HANDLER=include/dwarf2-signal.h
16091 sh*-*-linux*)
16092 SIGNAL_HANDLER=include/sh-signal.h
16094 *mingw*)
16095 SIGNAL_HANDLER=include/win32-signal.h
16097 mips*-*-linux*)
16098 SIGNAL_HANDLER=include/mips-signal.h
16100 *-*-darwin*)
16101 SIGNAL_HANDLER=include/darwin-signal.h
16104 SIGNAL_HANDLER=include/default-signal.h
16106 esac
16108 # If we're using sjlj exceptions, forget what we just learned.
16109 if test "$enable_sjlj_exceptions" = yes; then
16110 SIGNAL_HANDLER=include/default-signal.h
16111 SIGNAL_HANDLER_AUX=
16116 if test -z "$SIGNAL_HANDLER_AUX"; then
16117 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
16120 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
16123 if test "${multilib}" = "yes"; then
16124 multilib_arg="--enable-multilib"
16125 else
16126 multilib_arg=
16131 here=`${PWDCMD-pwd}`
16134 # We get this from the environment.
16137 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile external/Makefile external/sax/Makefile external/w3c_dom/Makefile"
16140 ac_config_commands="$ac_config_commands default"
16143 cat >confcache <<\_ACEOF
16144 # This file is a shell script that caches the results of configure
16145 # tests run on this system so they can be shared between configure
16146 # scripts and configure runs, see configure's option --config-cache.
16147 # It is not useful on other systems. If it contains results you don't
16148 # want to keep, you may remove or edit it.
16150 # config.status only pays attention to the cache file if you give it
16151 # the --recheck option to rerun configure.
16153 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16154 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16155 # following values.
16157 _ACEOF
16159 # The following way of writing the cache mishandles newlines in values,
16160 # but we know of no workaround that is simple, portable, and efficient.
16161 # So, don't put newlines in cache variables' values.
16162 # Ultrix sh set writes to stderr and can't be redirected directly,
16163 # and sets the high bit in the cache file unless we assign to the vars.
16165 (set) 2>&1 |
16166 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16167 *ac_space=\ *)
16168 # `set' does not quote correctly, so add quotes (double-quote
16169 # substitution turns \\\\ into \\, and sed turns \\ into \).
16170 sed -n \
16171 "s/'/'\\\\''/g;
16172 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16175 # `set' quotes correctly as required by POSIX, so do not add quotes.
16176 sed -n \
16177 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16179 esac;
16181 sed '
16182 t clear
16183 : clear
16184 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16185 t end
16186 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16187 : end' >>confcache
16188 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16189 if test -w $cache_file; then
16190 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16191 cat confcache >$cache_file
16192 else
16193 echo "not updating unwritable cache $cache_file"
16196 rm -f confcache
16198 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16199 # Let make expand exec_prefix.
16200 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16202 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16203 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16204 # trailing colons and then remove the whole line if VPATH becomes empty
16205 # (actually we leave an empty line to preserve line numbers).
16206 if test "x$srcdir" = x.; then
16207 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16208 s/:*\$(srcdir):*/:/;
16209 s/:*\${srcdir}:*/:/;
16210 s/:*@srcdir@:*/:/;
16211 s/^\([^=]*=[ ]*\):*/\1/;
16212 s/:*$//;
16213 s/^[^=]*=[ ]*$//;
16217 DEFS=-DHAVE_CONFIG_H
16219 ac_libobjs=
16220 ac_ltlibobjs=
16221 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16222 # 1. Remove the extension, and $U if already installed.
16223 ac_i=`echo "$ac_i" |
16224 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16225 # 2. Add them.
16226 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16227 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16228 done
16229 LIBOBJS=$ac_libobjs
16231 LTLIBOBJS=$ac_ltlibobjs
16234 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16235 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16236 Usually this means the macro was only invoked conditionally." >&5
16237 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16238 Usually this means the macro was only invoked conditionally." >&2;}
16239 { (exit 1); exit 1; }; }
16241 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16242 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16243 Usually this means the macro was only invoked conditionally." >&5
16244 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16245 Usually this means the macro was only invoked conditionally." >&2;}
16246 { (exit 1); exit 1; }; }
16248 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16249 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16250 Usually this means the macro was only invoked conditionally." >&5
16251 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16252 Usually this means the macro was only invoked conditionally." >&2;}
16253 { (exit 1); exit 1; }; }
16255 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16256 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16257 Usually this means the macro was only invoked conditionally." >&5
16258 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16259 Usually this means the macro was only invoked conditionally." >&2;}
16260 { (exit 1); exit 1; }; }
16262 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
16263 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
16264 Usually this means the macro was only invoked conditionally." >&5
16265 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
16266 Usually this means the macro was only invoked conditionally." >&2;}
16267 { (exit 1); exit 1; }; }
16269 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
16270 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
16271 Usually this means the macro was only invoked conditionally." >&5
16272 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
16273 Usually this means the macro was only invoked conditionally." >&2;}
16274 { (exit 1); exit 1; }; }
16276 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
16277 { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
16278 Usually this means the macro was only invoked conditionally." >&5
16279 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
16280 Usually this means the macro was only invoked conditionally." >&2;}
16281 { (exit 1); exit 1; }; }
16283 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
16284 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16285 Usually this means the macro was only invoked conditionally." >&5
16286 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16287 Usually this means the macro was only invoked conditionally." >&2;}
16288 { (exit 1); exit 1; }; }
16290 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
16291 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16292 Usually this means the macro was only invoked conditionally." >&5
16293 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16294 Usually this means the macro was only invoked conditionally." >&2;}
16295 { (exit 1); exit 1; }; }
16297 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
16298 { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
16299 Usually this means the macro was only invoked conditionally." >&5
16300 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
16301 Usually this means the macro was only invoked conditionally." >&2;}
16302 { (exit 1); exit 1; }; }
16304 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
16305 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
16306 Usually this means the macro was only invoked conditionally." >&5
16307 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
16308 Usually this means the macro was only invoked conditionally." >&2;}
16309 { (exit 1); exit 1; }; }
16311 if test -z "${GTK_AWT_TRUE}" && test -z "${GTK_AWT_FALSE}"; then
16312 { { echo "$as_me:$LINENO: error: conditional \"GTK_AWT\" was never defined.
16313 Usually this means the macro was only invoked conditionally." >&5
16314 echo "$as_me: error: conditional \"GTK_AWT\" was never defined.
16315 Usually this means the macro was only invoked conditionally." >&2;}
16316 { (exit 1); exit 1; }; }
16318 if test -z "${GTK_CAIRO_TRUE}" && test -z "${GTK_CAIRO_FALSE}"; then
16319 { { echo "$as_me:$LINENO: error: conditional \"GTK_CAIRO\" was never defined.
16320 Usually this means the macro was only invoked conditionally." >&5
16321 echo "$as_me: error: conditional \"GTK_CAIRO\" was never defined.
16322 Usually this means the macro was only invoked conditionally." >&2;}
16323 { (exit 1); exit 1; }; }
16325 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
16326 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
16327 Usually this means the macro was only invoked conditionally." >&5
16328 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
16329 Usually this means the macro was only invoked conditionally." >&2;}
16330 { (exit 1); exit 1; }; }
16332 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
16333 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
16334 Usually this means the macro was only invoked conditionally." >&5
16335 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
16336 Usually this means the macro was only invoked conditionally." >&2;}
16337 { (exit 1); exit 1; }; }
16339 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
16340 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
16341 Usually this means the macro was only invoked conditionally." >&5
16342 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
16343 Usually this means the macro was only invoked conditionally." >&2;}
16344 { (exit 1); exit 1; }; }
16346 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
16347 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
16348 Usually this means the macro was only invoked conditionally." >&5
16349 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
16350 Usually this means the macro was only invoked conditionally." >&2;}
16351 { (exit 1); exit 1; }; }
16353 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
16354 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
16355 Usually this means the macro was only invoked conditionally." >&5
16356 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
16357 Usually this means the macro was only invoked conditionally." >&2;}
16358 { (exit 1); exit 1; }; }
16360 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
16361 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
16362 Usually this means the macro was only invoked conditionally." >&5
16363 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
16364 Usually this means the macro was only invoked conditionally." >&2;}
16365 { (exit 1); exit 1; }; }
16367 if test -z "${SUPPLY_BACKTRACE_TRUE}" && test -z "${SUPPLY_BACKTRACE_FALSE}"; then
16368 { { echo "$as_me:$LINENO: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
16369 Usually this means the macro was only invoked conditionally." >&5
16370 echo "$as_me: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
16371 Usually this means the macro was only invoked conditionally." >&2;}
16372 { (exit 1); exit 1; }; }
16374 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
16375 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
16376 Usually this means the macro was only invoked conditionally." >&5
16377 echo "$as_me: error: conditional \"NATIVE\" was never defined.
16378 Usually this means the macro was only invoked conditionally." >&2;}
16379 { (exit 1); exit 1; }; }
16381 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
16382 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
16383 Usually this means the macro was only invoked conditionally." >&5
16384 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
16385 Usually this means the macro was only invoked conditionally." >&2;}
16386 { (exit 1); exit 1; }; }
16389 : ${CONFIG_STATUS=./config.status}
16390 ac_clean_files_save=$ac_clean_files
16391 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16392 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16393 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16394 cat >$CONFIG_STATUS <<_ACEOF
16395 #! $SHELL
16396 # Generated by $as_me.
16397 # Run this file to recreate the current configuration.
16398 # Compiler output produced by configure, useful for debugging
16399 # configure, is in config.log if it exists.
16401 debug=false
16402 ac_cs_recheck=false
16403 ac_cs_silent=false
16404 SHELL=\${CONFIG_SHELL-$SHELL}
16405 _ACEOF
16407 cat >>$CONFIG_STATUS <<\_ACEOF
16408 ## --------------------- ##
16409 ## M4sh Initialization. ##
16410 ## --------------------- ##
16412 # Be Bourne compatible
16413 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16414 emulate sh
16415 NULLCMD=:
16416 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16417 # is contrary to our usage. Disable this feature.
16418 alias -g '${1+"$@"}'='"$@"'
16419 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16420 set -o posix
16422 DUALCASE=1; export DUALCASE # for MKS sh
16424 # Support unset when possible.
16425 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16426 as_unset=unset
16427 else
16428 as_unset=false
16432 # Work around bugs in pre-3.0 UWIN ksh.
16433 $as_unset ENV MAIL MAILPATH
16434 PS1='$ '
16435 PS2='> '
16436 PS4='+ '
16438 # NLS nuisances.
16439 for as_var in \
16440 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16441 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16442 LC_TELEPHONE LC_TIME
16444 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16445 eval $as_var=C; export $as_var
16446 else
16447 $as_unset $as_var
16449 done
16451 # Required to use basename.
16452 if expr a : '\(a\)' >/dev/null 2>&1; then
16453 as_expr=expr
16454 else
16455 as_expr=false
16458 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16459 as_basename=basename
16460 else
16461 as_basename=false
16465 # Name of the executable.
16466 as_me=`$as_basename "$0" ||
16467 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16468 X"$0" : 'X\(//\)$' \| \
16469 X"$0" : 'X\(/\)$' \| \
16470 . : '\(.\)' 2>/dev/null ||
16471 echo X/"$0" |
16472 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16473 /^X\/\(\/\/\)$/{ s//\1/; q; }
16474 /^X\/\(\/\).*/{ s//\1/; q; }
16475 s/.*/./; q'`
16478 # PATH needs CR, and LINENO needs CR and PATH.
16479 # Avoid depending upon Character Ranges.
16480 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16481 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16482 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16483 as_cr_digits='0123456789'
16484 as_cr_alnum=$as_cr_Letters$as_cr_digits
16486 # The user is always right.
16487 if test "${PATH_SEPARATOR+set}" != set; then
16488 echo "#! /bin/sh" >conf$$.sh
16489 echo "exit 0" >>conf$$.sh
16490 chmod +x conf$$.sh
16491 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16492 PATH_SEPARATOR=';'
16493 else
16494 PATH_SEPARATOR=:
16496 rm -f conf$$.sh
16500 as_lineno_1=$LINENO
16501 as_lineno_2=$LINENO
16502 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16503 test "x$as_lineno_1" != "x$as_lineno_2" &&
16504 test "x$as_lineno_3" = "x$as_lineno_2" || {
16505 # Find who we are. Look in the path if we contain no path at all
16506 # relative or not.
16507 case $0 in
16508 *[\\/]* ) as_myself=$0 ;;
16509 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16510 for as_dir in $PATH
16512 IFS=$as_save_IFS
16513 test -z "$as_dir" && as_dir=.
16514 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16515 done
16518 esac
16519 # We did not find ourselves, most probably we were run as `sh COMMAND'
16520 # in which case we are not to be found in the path.
16521 if test "x$as_myself" = x; then
16522 as_myself=$0
16524 if test ! -f "$as_myself"; then
16525 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16526 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16527 { (exit 1); exit 1; }; }
16529 case $CONFIG_SHELL in
16531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16532 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16534 IFS=$as_save_IFS
16535 test -z "$as_dir" && as_dir=.
16536 for as_base in sh bash ksh sh5; do
16537 case $as_dir in
16539 if ("$as_dir/$as_base" -c '
16540 as_lineno_1=$LINENO
16541 as_lineno_2=$LINENO
16542 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16543 test "x$as_lineno_1" != "x$as_lineno_2" &&
16544 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16545 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16546 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16547 CONFIG_SHELL=$as_dir/$as_base
16548 export CONFIG_SHELL
16549 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16550 fi;;
16551 esac
16552 done
16553 done
16555 esac
16557 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16558 # uniformly replaced by the line number. The first 'sed' inserts a
16559 # line-number line before each line; the second 'sed' does the real
16560 # work. The second script uses 'N' to pair each line-number line
16561 # with the numbered line, and appends trailing '-' during
16562 # substitution so that $LINENO is not a special case at line end.
16563 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16564 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16565 sed '=' <$as_myself |
16566 sed '
16568 s,$,-,
16569 : loop
16570 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16571 t loop
16572 s,-$,,
16573 s,^['$as_cr_digits']*\n,,
16574 ' >$as_me.lineno &&
16575 chmod +x $as_me.lineno ||
16576 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16577 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16578 { (exit 1); exit 1; }; }
16580 # Don't try to exec as it changes $[0], causing all sort of problems
16581 # (the dirname of $[0] is not the place where we might find the
16582 # original and so on. Autoconf is especially sensible to this).
16583 . ./$as_me.lineno
16584 # Exit status is that of the last command.
16585 exit
16589 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16590 *c*,-n*) ECHO_N= ECHO_C='
16591 ' ECHO_T=' ' ;;
16592 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16593 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16594 esac
16596 if expr a : '\(a\)' >/dev/null 2>&1; then
16597 as_expr=expr
16598 else
16599 as_expr=false
16602 rm -f conf$$ conf$$.exe conf$$.file
16603 echo >conf$$.file
16604 if ln -s conf$$.file conf$$ 2>/dev/null; then
16605 # We could just check for DJGPP; but this test a) works b) is more generic
16606 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16607 if test -f conf$$.exe; then
16608 # Don't use ln at all; we don't have any links
16609 as_ln_s='cp -p'
16610 else
16611 as_ln_s='ln -s'
16613 elif ln conf$$.file conf$$ 2>/dev/null; then
16614 as_ln_s=ln
16615 else
16616 as_ln_s='cp -p'
16618 rm -f conf$$ conf$$.exe conf$$.file
16620 if mkdir -p . 2>/dev/null; then
16621 as_mkdir_p=:
16622 else
16623 test -d ./-p && rmdir ./-p
16624 as_mkdir_p=false
16627 as_executable_p="test -f"
16629 # Sed expression to map a string onto a valid CPP name.
16630 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16632 # Sed expression to map a string onto a valid variable name.
16633 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16636 # IFS
16637 # We need space, tab and new line, in precisely that order.
16638 as_nl='
16640 IFS=" $as_nl"
16642 # CDPATH.
16643 $as_unset CDPATH
16645 exec 6>&1
16647 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16648 # report actual input values of CONFIG_FILES etc. instead of their
16649 # values after options handling. Logging --version etc. is OK.
16650 exec 5>>config.log
16652 echo
16653 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16654 ## Running $as_me. ##
16655 _ASBOX
16656 } >&5
16657 cat >&5 <<_CSEOF
16659 This file was extended by libjava $as_me version-unused, which was
16660 generated by GNU Autoconf 2.59. Invocation command line was
16662 CONFIG_FILES = $CONFIG_FILES
16663 CONFIG_HEADERS = $CONFIG_HEADERS
16664 CONFIG_LINKS = $CONFIG_LINKS
16665 CONFIG_COMMANDS = $CONFIG_COMMANDS
16666 $ $0 $@
16668 _CSEOF
16669 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16670 echo >&5
16671 _ACEOF
16673 # Files that config.status was made for.
16674 if test -n "$ac_config_files"; then
16675 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16678 if test -n "$ac_config_headers"; then
16679 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16682 if test -n "$ac_config_links"; then
16683 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16686 if test -n "$ac_config_commands"; then
16687 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16690 cat >>$CONFIG_STATUS <<\_ACEOF
16692 ac_cs_usage="\
16693 \`$as_me' instantiates files from templates according to the
16694 current configuration.
16696 Usage: $0 [OPTIONS] [FILE]...
16698 -h, --help print this help, then exit
16699 -V, --version print version number, then exit
16700 -q, --quiet do not print progress messages
16701 -d, --debug don't remove temporary files
16702 --recheck update $as_me by reconfiguring in the same conditions
16703 --file=FILE[:TEMPLATE]
16704 instantiate the configuration file FILE
16705 --header=FILE[:TEMPLATE]
16706 instantiate the configuration header FILE
16708 Configuration files:
16709 $config_files
16711 Configuration headers:
16712 $config_headers
16714 Configuration links:
16715 $config_links
16717 Configuration commands:
16718 $config_commands
16720 Report bugs to <bug-autoconf@gnu.org>."
16721 _ACEOF
16723 cat >>$CONFIG_STATUS <<_ACEOF
16724 ac_cs_version="\\
16725 libjava config.status version-unused
16726 configured by $0, generated by GNU Autoconf 2.59,
16727 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16729 Copyright (C) 2003 Free Software Foundation, Inc.
16730 This config.status script is free software; the Free Software Foundation
16731 gives unlimited permission to copy, distribute and modify it."
16732 srcdir=$srcdir
16733 INSTALL="$INSTALL"
16734 _ACEOF
16736 cat >>$CONFIG_STATUS <<\_ACEOF
16737 # If no file are specified by the user, then we need to provide default
16738 # value. By we need to know if files were specified by the user.
16739 ac_need_defaults=:
16740 while test $# != 0
16742 case $1 in
16743 --*=*)
16744 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16745 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16746 ac_shift=:
16749 ac_option=$1
16750 ac_optarg=$2
16751 ac_shift=shift
16753 *) # This is not an option, so the user has probably given explicit
16754 # arguments.
16755 ac_option=$1
16756 ac_need_defaults=false;;
16757 esac
16759 case $ac_option in
16760 # Handling of the options.
16761 _ACEOF
16762 cat >>$CONFIG_STATUS <<\_ACEOF
16763 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16764 ac_cs_recheck=: ;;
16765 --version | --vers* | -V )
16766 echo "$ac_cs_version"; exit 0 ;;
16767 --he | --h)
16768 # Conflict between --help and --header
16769 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16770 Try \`$0 --help' for more information." >&5
16771 echo "$as_me: error: ambiguous option: $1
16772 Try \`$0 --help' for more information." >&2;}
16773 { (exit 1); exit 1; }; };;
16774 --help | --hel | -h )
16775 echo "$ac_cs_usage"; exit 0 ;;
16776 --debug | --d* | -d )
16777 debug=: ;;
16778 --file | --fil | --fi | --f )
16779 $ac_shift
16780 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16781 ac_need_defaults=false;;
16782 --header | --heade | --head | --hea )
16783 $ac_shift
16784 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16785 ac_need_defaults=false;;
16786 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16787 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16788 ac_cs_silent=: ;;
16790 # This is an error.
16791 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16792 Try \`$0 --help' for more information." >&5
16793 echo "$as_me: error: unrecognized option: $1
16794 Try \`$0 --help' for more information." >&2;}
16795 { (exit 1); exit 1; }; } ;;
16797 *) ac_config_targets="$ac_config_targets $1" ;;
16799 esac
16800 shift
16801 done
16803 ac_configure_extra_args=
16805 if $ac_cs_silent; then
16806 exec 6>/dev/null
16807 ac_configure_extra_args="$ac_configure_extra_args --silent"
16810 _ACEOF
16811 cat >>$CONFIG_STATUS <<_ACEOF
16812 if \$ac_cs_recheck; then
16813 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16814 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16817 _ACEOF
16819 cat >>$CONFIG_STATUS <<_ACEOF
16821 # INIT-COMMANDS section.
16824 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16825 srcdir=${srcdir}
16826 host=${host}
16827 target=${target}
16828 with_multisubdir=${with_multisubdir}
16829 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16830 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16831 libgcj_basedir=${libgcj_basedir}
16832 CC="${CC}"
16833 CXX="${CXX}"
16834 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
16837 _ACEOF
16841 cat >>$CONFIG_STATUS <<\_ACEOF
16842 for ac_config_target in $ac_config_targets
16844 case "$ac_config_target" in
16845 # Handling of arguments.
16846 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16847 "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
16848 "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
16849 "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
16850 "gnu/classpath/Configuration.java" ) CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
16851 "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
16852 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16853 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16854 "external/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/Makefile" ;;
16855 "external/sax/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/sax/Makefile" ;;
16856 "external/w3c_dom/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/w3c_dom/Makefile" ;;
16857 "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
16858 "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
16859 "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
16860 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
16861 "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
16862 "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
16863 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
16864 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
16865 "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
16866 "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
16867 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
16868 "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
16869 "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
16870 "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
16871 "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
16872 "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
16873 "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
16874 "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
16875 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16876 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16877 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16878 "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
16879 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16880 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16881 { (exit 1); exit 1; }; };;
16882 esac
16883 done
16885 # If the user did not use the arguments to specify the items to instantiate,
16886 # then the envvar interface is used. Set only those that are not.
16887 # We use the long form for the default assignment because of an extremely
16888 # bizarre bug on SunOS 4.1.3.
16889 if $ac_need_defaults; then
16890 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16891 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16892 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16893 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16896 # Have a temporary directory for convenience. Make it in the build tree
16897 # simply because there is no reason to put it here, and in addition,
16898 # creating and moving files from /tmp can sometimes cause problems.
16899 # Create a temporary directory, and hook for its removal unless debugging.
16900 $debug ||
16902 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16903 trap '{ (exit 1); exit 1; }' 1 2 13 15
16906 # Create a (secure) tmp directory for tmp files.
16909 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16910 test -n "$tmp" && test -d "$tmp"
16911 } ||
16913 tmp=./confstat$$-$RANDOM
16914 (umask 077 && mkdir $tmp)
16915 } ||
16917 echo "$me: cannot create a temporary directory in ." >&2
16918 { (exit 1); exit 1; }
16921 _ACEOF
16923 cat >>$CONFIG_STATUS <<_ACEOF
16926 # CONFIG_FILES section.
16929 # No need to generate the scripts if there are no CONFIG_FILES.
16930 # This happens for instance when ./config.status config.h
16931 if test -n "\$CONFIG_FILES"; then
16932 # Protect against being on the right side of a sed subst in config.status.
16933 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16934 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16935 s,@SHELL@,$SHELL,;t t
16936 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16937 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16938 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16939 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16940 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16941 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16942 s,@exec_prefix@,$exec_prefix,;t t
16943 s,@prefix@,$prefix,;t t
16944 s,@program_transform_name@,$program_transform_name,;t t
16945 s,@bindir@,$bindir,;t t
16946 s,@sbindir@,$sbindir,;t t
16947 s,@libexecdir@,$libexecdir,;t t
16948 s,@datadir@,$datadir,;t t
16949 s,@sysconfdir@,$sysconfdir,;t t
16950 s,@sharedstatedir@,$sharedstatedir,;t t
16951 s,@localstatedir@,$localstatedir,;t t
16952 s,@libdir@,$libdir,;t t
16953 s,@includedir@,$includedir,;t t
16954 s,@oldincludedir@,$oldincludedir,;t t
16955 s,@infodir@,$infodir,;t t
16956 s,@mandir@,$mandir,;t t
16957 s,@build_alias@,$build_alias,;t t
16958 s,@host_alias@,$host_alias,;t t
16959 s,@target_alias@,$target_alias,;t t
16960 s,@DEFS@,$DEFS,;t t
16961 s,@ECHO_C@,$ECHO_C,;t t
16962 s,@ECHO_N@,$ECHO_N,;t t
16963 s,@ECHO_T@,$ECHO_T,;t t
16964 s,@LIBS@,$LIBS,;t t
16965 s,@build@,$build,;t t
16966 s,@build_cpu@,$build_cpu,;t t
16967 s,@build_vendor@,$build_vendor,;t t
16968 s,@build_os@,$build_os,;t t
16969 s,@build_subdir@,$build_subdir,;t t
16970 s,@host_subdir@,$host_subdir,;t t
16971 s,@target_subdir@,$target_subdir,;t t
16972 s,@libgcj_basedir@,$libgcj_basedir,;t t
16973 s,@host@,$host,;t t
16974 s,@host_cpu@,$host_cpu,;t t
16975 s,@host_vendor@,$host_vendor,;t t
16976 s,@host_os@,$host_os,;t t
16977 s,@target@,$target,;t t
16978 s,@target_cpu@,$target_cpu,;t t
16979 s,@target_vendor@,$target_vendor,;t t
16980 s,@target_os@,$target_os,;t t
16981 s,@target_noncanonical@,$target_noncanonical,;t t
16982 s,@LN_S@,$LN_S,;t t
16983 s,@mkinstalldirs@,$mkinstalldirs,;t t
16984 s,@CC@,$CC,;t t
16985 s,@ac_ct_CC@,$ac_ct_CC,;t t
16986 s,@EXEEXT@,$EXEEXT,;t t
16987 s,@OBJEXT@,$OBJEXT,;t t
16988 s,@CXX@,$CXX,;t t
16989 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
16990 s,@CFLAGS@,$CFLAGS,;t t
16991 s,@CXXFLAGS@,$CXXFLAGS,;t t
16992 s,@LDFLAGS@,$LDFLAGS,;t t
16993 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16994 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16995 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16996 s,@CYGPATH_W@,$CYGPATH_W,;t t
16997 s,@PACKAGE@,$PACKAGE,;t t
16998 s,@VERSION@,$VERSION,;t t
16999 s,@ACLOCAL@,$ACLOCAL,;t t
17000 s,@AUTOCONF@,$AUTOCONF,;t t
17001 s,@AUTOMAKE@,$AUTOMAKE,;t t
17002 s,@AUTOHEADER@,$AUTOHEADER,;t t
17003 s,@MAKEINFO@,$MAKEINFO,;t t
17004 s,@install_sh@,$install_sh,;t t
17005 s,@STRIP@,$STRIP,;t t
17006 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17007 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17008 s,@mkdir_p@,$mkdir_p,;t t
17009 s,@AWK@,$AWK,;t t
17010 s,@SET_MAKE@,$SET_MAKE,;t t
17011 s,@am__leading_dot@,$am__leading_dot,;t t
17012 s,@AMTAR@,$AMTAR,;t t
17013 s,@am__tar@,$am__tar,;t t
17014 s,@am__untar@,$am__untar,;t t
17015 s,@DEPDIR@,$DEPDIR,;t t
17016 s,@am__include@,$am__include,;t t
17017 s,@am__quote@,$am__quote,;t t
17018 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17019 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17020 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17021 s,@CCDEPMODE@,$CCDEPMODE,;t t
17022 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17023 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17024 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17025 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17026 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17027 s,@AS@,$AS,;t t
17028 s,@ac_ct_AS@,$ac_ct_AS,;t t
17029 s,@AR@,$AR,;t t
17030 s,@ac_ct_AR@,$ac_ct_AR,;t t
17031 s,@RANLIB@,$RANLIB,;t t
17032 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17033 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17034 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17035 s,@MAINT@,$MAINT,;t t
17036 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
17037 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
17038 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
17039 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
17040 s,@INCLTDL@,$INCLTDL,;t t
17041 s,@LIBLTDL@,$LIBLTDL,;t t
17042 s,@DIRLTDL@,$DIRLTDL,;t t
17043 s,@LIBTOOL@,$LIBTOOL,;t t
17044 s,@CXXCPP@,$CXXCPP,;t t
17045 s,@CPPFLAGS@,$CPPFLAGS,;t t
17046 s,@GCJ@,$GCJ,;t t
17047 s,@GCJFLAGS@,$GCJFLAGS,;t t
17048 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
17049 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
17050 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
17051 s,@subdirs@,$subdirs,;t t
17052 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
17053 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
17054 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
17055 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
17056 s,@JAVA_HOME@,$JAVA_HOME,;t t
17057 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
17058 s,@INTERPRETER@,$INTERPRETER,;t t
17059 s,@LIBFFI@,$LIBFFI,;t t
17060 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
17061 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
17062 s,@CPP@,$CPP,;t t
17063 s,@EGREP@,$EGREP,;t t
17064 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
17065 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
17066 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
17067 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
17068 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
17069 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
17070 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
17071 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
17072 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
17073 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
17074 s,@X_CFLAGS@,$X_CFLAGS,;t t
17075 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17076 s,@X_LIBS@,$X_LIBS,;t t
17077 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17078 s,@TOOLKIT@,$TOOLKIT,;t t
17079 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
17080 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
17081 s,@GTK_AWT_TRUE@,$GTK_AWT_TRUE,;t t
17082 s,@GTK_AWT_FALSE@,$GTK_AWT_FALSE,;t t
17083 s,@GTK_CAIRO_TRUE@,$GTK_CAIRO_TRUE,;t t
17084 s,@GTK_CAIRO_FALSE@,$GTK_CAIRO_FALSE,;t t
17085 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
17086 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
17087 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
17088 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
17089 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
17090 s,@GCLIBS@,$GCLIBS,;t t
17091 s,@GCINCS@,$GCINCS,;t t
17092 s,@GCDEPS@,$GCDEPS,;t t
17093 s,@GCSPEC@,$GCSPEC,;t t
17094 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
17095 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
17096 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
17097 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
17098 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
17099 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
17100 s,@THREADLIBS@,$THREADLIBS,;t t
17101 s,@THREADINCS@,$THREADINCS,;t t
17102 s,@THREADDEPS@,$THREADDEPS,;t t
17103 s,@THREADSPEC@,$THREADSPEC,;t t
17104 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
17105 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
17106 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
17107 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
17108 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
17109 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
17110 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
17111 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
17112 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
17113 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
17114 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
17115 s,@LIBICONV@,$LIBICONV,;t t
17116 s,@LTLIBICONV@,$LTLIBICONV,;t t
17117 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
17118 s,@GTK_LIBS@,$GTK_LIBS,;t t
17119 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
17120 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
17121 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
17122 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
17123 s,@SUPPLY_BACKTRACE_TRUE@,$SUPPLY_BACKTRACE_TRUE,;t t
17124 s,@SUPPLY_BACKTRACE_FALSE@,$SUPPLY_BACKTRACE_FALSE,;t t
17125 s,@GCJH@,$GCJH,;t t
17126 s,@ZIP@,$ZIP,;t t
17127 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
17128 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
17129 s,@ZLIBS@,$ZLIBS,;t t
17130 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
17131 s,@ZINCS@,$ZINCS,;t t
17132 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
17133 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
17134 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
17135 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
17136 s,@IEEESPEC@,$IEEESPEC,;t t
17137 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
17138 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
17139 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
17140 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
17141 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
17142 s,@toolexecdir@,$toolexecdir,;t t
17143 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
17144 s,@toolexeclibdir@,$toolexeclibdir,;t t
17145 s,@GCJVERSION@,$GCJVERSION,;t t
17146 s,@gxx_include_dir@,$gxx_include_dir,;t t
17147 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
17148 s,@ALLOCA@,$ALLOCA,;t t
17149 s,@PERL@,$PERL,;t t
17150 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
17151 s,@here@,$here,;t t
17152 s,@LIBOBJS@,$LIBOBJS,;t t
17153 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17154 CEOF
17156 _ACEOF
17158 cat >>$CONFIG_STATUS <<\_ACEOF
17159 # Split the substitutions into bite-sized pieces for seds with
17160 # small command number limits, like on Digital OSF/1 and HP-UX.
17161 ac_max_sed_lines=48
17162 ac_sed_frag=1 # Number of current file.
17163 ac_beg=1 # First line for current file.
17164 ac_end=$ac_max_sed_lines # Line after last line for current file.
17165 ac_more_lines=:
17166 ac_sed_cmds=
17167 while $ac_more_lines; do
17168 if test $ac_beg -gt 1; then
17169 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17170 else
17171 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17173 if test ! -s $tmp/subs.frag; then
17174 ac_more_lines=false
17175 else
17176 # The purpose of the label and of the branching condition is to
17177 # speed up the sed processing (if there are no `@' at all, there
17178 # is no need to browse any of the substitutions).
17179 # These are the two extra sed commands mentioned above.
17180 (echo ':t
17181 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17182 if test -z "$ac_sed_cmds"; then
17183 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17184 else
17185 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17187 ac_sed_frag=`expr $ac_sed_frag + 1`
17188 ac_beg=$ac_end
17189 ac_end=`expr $ac_end + $ac_max_sed_lines`
17191 done
17192 if test -z "$ac_sed_cmds"; then
17193 ac_sed_cmds=cat
17195 fi # test -n "$CONFIG_FILES"
17197 _ACEOF
17198 cat >>$CONFIG_STATUS <<\_ACEOF
17199 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17200 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17201 case $ac_file in
17202 - | *:- | *:-:* ) # input from stdin
17203 cat >$tmp/stdin
17204 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17205 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17206 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17207 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17208 * ) ac_file_in=$ac_file.in ;;
17209 esac
17211 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17212 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17213 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17214 X"$ac_file" : 'X\(//\)[^/]' \| \
17215 X"$ac_file" : 'X\(//\)$' \| \
17216 X"$ac_file" : 'X\(/\)' \| \
17217 . : '\(.\)' 2>/dev/null ||
17218 echo X"$ac_file" |
17219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17220 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17221 /^X\(\/\/\)$/{ s//\1/; q; }
17222 /^X\(\/\).*/{ s//\1/; q; }
17223 s/.*/./; q'`
17224 { if $as_mkdir_p; then
17225 mkdir -p "$ac_dir"
17226 else
17227 as_dir="$ac_dir"
17228 as_dirs=
17229 while test ! -d "$as_dir"; do
17230 as_dirs="$as_dir $as_dirs"
17231 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17232 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17233 X"$as_dir" : 'X\(//\)[^/]' \| \
17234 X"$as_dir" : 'X\(//\)$' \| \
17235 X"$as_dir" : 'X\(/\)' \| \
17236 . : '\(.\)' 2>/dev/null ||
17237 echo X"$as_dir" |
17238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17239 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17240 /^X\(\/\/\)$/{ s//\1/; q; }
17241 /^X\(\/\).*/{ s//\1/; q; }
17242 s/.*/./; q'`
17243 done
17244 test ! -n "$as_dirs" || mkdir $as_dirs
17245 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17246 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17247 { (exit 1); exit 1; }; }; }
17249 ac_builddir=.
17251 if test "$ac_dir" != .; then
17252 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17253 # A "../" for each directory in $ac_dir_suffix.
17254 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17255 else
17256 ac_dir_suffix= ac_top_builddir=
17259 case $srcdir in
17260 .) # No --srcdir option. We are building in place.
17261 ac_srcdir=.
17262 if test -z "$ac_top_builddir"; then
17263 ac_top_srcdir=.
17264 else
17265 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17266 fi ;;
17267 [\\/]* | ?:[\\/]* ) # Absolute path.
17268 ac_srcdir=$srcdir$ac_dir_suffix;
17269 ac_top_srcdir=$srcdir ;;
17270 *) # Relative path.
17271 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17272 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17273 esac
17275 # Do not use `cd foo && pwd` to compute absolute paths, because
17276 # the directories may not exist.
17277 case `pwd` in
17278 .) ac_abs_builddir="$ac_dir";;
17280 case "$ac_dir" in
17281 .) ac_abs_builddir=`pwd`;;
17282 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17283 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17284 esac;;
17285 esac
17286 case $ac_abs_builddir in
17287 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17289 case ${ac_top_builddir}. in
17290 .) ac_abs_top_builddir=$ac_abs_builddir;;
17291 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17292 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17293 esac;;
17294 esac
17295 case $ac_abs_builddir in
17296 .) ac_abs_srcdir=$ac_srcdir;;
17298 case $ac_srcdir in
17299 .) ac_abs_srcdir=$ac_abs_builddir;;
17300 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17301 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17302 esac;;
17303 esac
17304 case $ac_abs_builddir in
17305 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17307 case $ac_top_srcdir in
17308 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17309 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17310 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17311 esac;;
17312 esac
17315 case $INSTALL in
17316 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17317 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17318 esac
17320 if test x"$ac_file" != x-; then
17321 { echo "$as_me:$LINENO: creating $ac_file" >&5
17322 echo "$as_me: creating $ac_file" >&6;}
17323 rm -f "$ac_file"
17325 # Let's still pretend it is `configure' which instantiates (i.e., don't
17326 # use $as_me), people would be surprised to read:
17327 # /* config.h. Generated by config.status. */
17328 if test x"$ac_file" = x-; then
17329 configure_input=
17330 else
17331 configure_input="$ac_file. "
17333 configure_input=$configure_input"Generated from `echo $ac_file_in |
17334 sed 's,.*/,,'` by configure."
17336 # First look for the input files in the build tree, otherwise in the
17337 # src tree.
17338 ac_file_inputs=`IFS=:
17339 for f in $ac_file_in; do
17340 case $f in
17341 -) echo $tmp/stdin ;;
17342 [\\/$]*)
17343 # Absolute (can't be DOS-style, as IFS=:)
17344 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17345 echo "$as_me: error: cannot find input file: $f" >&2;}
17346 { (exit 1); exit 1; }; }
17347 echo "$f";;
17348 *) # Relative
17349 if test -f "$f"; then
17350 # Build tree
17351 echo "$f"
17352 elif test -f "$srcdir/$f"; then
17353 # Source tree
17354 echo "$srcdir/$f"
17355 else
17356 # /dev/null tree
17357 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17358 echo "$as_me: error: cannot find input file: $f" >&2;}
17359 { (exit 1); exit 1; }; }
17360 fi;;
17361 esac
17362 done` || { (exit 1); exit 1; }
17363 _ACEOF
17364 cat >>$CONFIG_STATUS <<_ACEOF
17365 sed "$ac_vpsub
17366 $extrasub
17367 _ACEOF
17368 cat >>$CONFIG_STATUS <<\_ACEOF
17370 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17371 s,@configure_input@,$configure_input,;t t
17372 s,@srcdir@,$ac_srcdir,;t t
17373 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17374 s,@top_srcdir@,$ac_top_srcdir,;t t
17375 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17376 s,@builddir@,$ac_builddir,;t t
17377 s,@abs_builddir@,$ac_abs_builddir,;t t
17378 s,@top_builddir@,$ac_top_builddir,;t t
17379 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17380 s,@INSTALL@,$ac_INSTALL,;t t
17381 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17382 rm -f $tmp/stdin
17383 if test x"$ac_file" != x-; then
17384 mv $tmp/out $ac_file
17385 else
17386 cat $tmp/out
17387 rm -f $tmp/out
17390 done
17391 _ACEOF
17392 cat >>$CONFIG_STATUS <<\_ACEOF
17395 # CONFIG_HEADER section.
17398 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17399 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17401 # ac_d sets the value in "#define NAME VALUE" lines.
17402 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17403 ac_dB='[ ].*$,\1#\2'
17404 ac_dC=' '
17405 ac_dD=',;t'
17406 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17407 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17408 ac_uB='$,\1#\2define\3'
17409 ac_uC=' '
17410 ac_uD=',;t'
17412 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17413 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17414 case $ac_file in
17415 - | *:- | *:-:* ) # input from stdin
17416 cat >$tmp/stdin
17417 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17418 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17419 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17420 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17421 * ) ac_file_in=$ac_file.in ;;
17422 esac
17424 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17425 echo "$as_me: creating $ac_file" >&6;}
17427 # First look for the input files in the build tree, otherwise in the
17428 # src tree.
17429 ac_file_inputs=`IFS=:
17430 for f in $ac_file_in; do
17431 case $f in
17432 -) echo $tmp/stdin ;;
17433 [\\/$]*)
17434 # Absolute (can't be DOS-style, as IFS=:)
17435 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17436 echo "$as_me: error: cannot find input file: $f" >&2;}
17437 { (exit 1); exit 1; }; }
17438 # Do quote $f, to prevent DOS paths from being IFS'd.
17439 echo "$f";;
17440 *) # Relative
17441 if test -f "$f"; then
17442 # Build tree
17443 echo "$f"
17444 elif test -f "$srcdir/$f"; then
17445 # Source tree
17446 echo "$srcdir/$f"
17447 else
17448 # /dev/null tree
17449 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17450 echo "$as_me: error: cannot find input file: $f" >&2;}
17451 { (exit 1); exit 1; }; }
17452 fi;;
17453 esac
17454 done` || { (exit 1); exit 1; }
17455 # Remove the trailing spaces.
17456 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17458 _ACEOF
17460 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17461 # `conftest.undefs', that substitutes the proper values into
17462 # config.h.in to produce config.h. The first handles `#define'
17463 # templates, and the second `#undef' templates.
17464 # And first: Protect against being on the right side of a sed subst in
17465 # config.status. Protect against being in an unquoted here document
17466 # in config.status.
17467 rm -f conftest.defines conftest.undefs
17468 # Using a here document instead of a string reduces the quoting nightmare.
17469 # Putting comments in sed scripts is not portable.
17471 # `end' is used to avoid that the second main sed command (meant for
17472 # 0-ary CPP macros) applies to n-ary macro definitions.
17473 # See the Autoconf documentation for `clear'.
17474 cat >confdef2sed.sed <<\_ACEOF
17475 s/[\\&,]/\\&/g
17476 s,[\\$`],\\&,g
17477 t clear
17478 : clear
17479 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17480 t end
17481 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17482 : end
17483 _ACEOF
17484 # If some macros were called several times there might be several times
17485 # the same #defines, which is useless. Nevertheless, we may not want to
17486 # sort them, since we want the *last* AC-DEFINE to be honored.
17487 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17488 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17489 rm -f confdef2sed.sed
17491 # This sed command replaces #undef with comments. This is necessary, for
17492 # example, in the case of _POSIX_SOURCE, which is predefined and required
17493 # on some systems where configure will not decide to define it.
17494 cat >>conftest.undefs <<\_ACEOF
17495 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17496 _ACEOF
17498 # Break up conftest.defines because some shells have a limit on the size
17499 # of here documents, and old seds have small limits too (100 cmds).
17500 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17501 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17502 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17503 echo ' :' >>$CONFIG_STATUS
17504 rm -f conftest.tail
17505 while grep . conftest.defines >/dev/null
17507 # Write a limited-size here document to $tmp/defines.sed.
17508 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17509 # Speed up: don't consider the non `#define' lines.
17510 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17511 # Work around the forget-to-reset-the-flag bug.
17512 echo 't clr' >>$CONFIG_STATUS
17513 echo ': clr' >>$CONFIG_STATUS
17514 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17515 echo 'CEOF
17516 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17517 rm -f $tmp/in
17518 mv $tmp/out $tmp/in
17519 ' >>$CONFIG_STATUS
17520 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17521 rm -f conftest.defines
17522 mv conftest.tail conftest.defines
17523 done
17524 rm -f conftest.defines
17525 echo ' fi # grep' >>$CONFIG_STATUS
17526 echo >>$CONFIG_STATUS
17528 # Break up conftest.undefs because some shells have a limit on the size
17529 # of here documents, and old seds have small limits too (100 cmds).
17530 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17531 rm -f conftest.tail
17532 while grep . conftest.undefs >/dev/null
17534 # Write a limited-size here document to $tmp/undefs.sed.
17535 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17536 # Speed up: don't consider the non `#undef'
17537 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17538 # Work around the forget-to-reset-the-flag bug.
17539 echo 't clr' >>$CONFIG_STATUS
17540 echo ': clr' >>$CONFIG_STATUS
17541 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17542 echo 'CEOF
17543 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17544 rm -f $tmp/in
17545 mv $tmp/out $tmp/in
17546 ' >>$CONFIG_STATUS
17547 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17548 rm -f conftest.undefs
17549 mv conftest.tail conftest.undefs
17550 done
17551 rm -f conftest.undefs
17553 cat >>$CONFIG_STATUS <<\_ACEOF
17554 # Let's still pretend it is `configure' which instantiates (i.e., don't
17555 # use $as_me), people would be surprised to read:
17556 # /* config.h. Generated by config.status. */
17557 if test x"$ac_file" = x-; then
17558 echo "/* Generated by configure. */" >$tmp/config.h
17559 else
17560 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17562 cat $tmp/in >>$tmp/config.h
17563 rm -f $tmp/in
17564 if test x"$ac_file" != x-; then
17565 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17566 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17567 echo "$as_me: $ac_file is unchanged" >&6;}
17568 else
17569 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17570 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17571 X"$ac_file" : 'X\(//\)[^/]' \| \
17572 X"$ac_file" : 'X\(//\)$' \| \
17573 X"$ac_file" : 'X\(/\)' \| \
17574 . : '\(.\)' 2>/dev/null ||
17575 echo X"$ac_file" |
17576 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17577 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17578 /^X\(\/\/\)$/{ s//\1/; q; }
17579 /^X\(\/\).*/{ s//\1/; q; }
17580 s/.*/./; q'`
17581 { if $as_mkdir_p; then
17582 mkdir -p "$ac_dir"
17583 else
17584 as_dir="$ac_dir"
17585 as_dirs=
17586 while test ! -d "$as_dir"; do
17587 as_dirs="$as_dir $as_dirs"
17588 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17589 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17590 X"$as_dir" : 'X\(//\)[^/]' \| \
17591 X"$as_dir" : 'X\(//\)$' \| \
17592 X"$as_dir" : 'X\(/\)' \| \
17593 . : '\(.\)' 2>/dev/null ||
17594 echo X"$as_dir" |
17595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17596 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17597 /^X\(\/\/\)$/{ s//\1/; q; }
17598 /^X\(\/\).*/{ s//\1/; q; }
17599 s/.*/./; q'`
17600 done
17601 test ! -n "$as_dirs" || mkdir $as_dirs
17602 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17603 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17604 { (exit 1); exit 1; }; }; }
17606 rm -f $ac_file
17607 mv $tmp/config.h $ac_file
17609 else
17610 cat $tmp/config.h
17611 rm -f $tmp/config.h
17613 # Compute $ac_file's index in $config_headers.
17614 _am_stamp_count=1
17615 for _am_header in $config_headers :; do
17616 case $_am_header in
17617 $ac_file | $ac_file:* )
17618 break ;;
17620 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17621 esac
17622 done
17623 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17624 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17625 X$ac_file : 'X\(//\)[^/]' \| \
17626 X$ac_file : 'X\(//\)$' \| \
17627 X$ac_file : 'X\(/\)' \| \
17628 . : '\(.\)' 2>/dev/null ||
17629 echo X$ac_file |
17630 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17631 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17632 /^X\(\/\/\)$/{ s//\1/; q; }
17633 /^X\(\/\).*/{ s//\1/; q; }
17634 s/.*/./; q'`/stamp-h$_am_stamp_count
17635 done
17636 _ACEOF
17637 cat >>$CONFIG_STATUS <<\_ACEOF
17640 # CONFIG_LINKS section.
17643 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17644 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17645 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17647 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17648 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
17650 if test ! -r $srcdir/$ac_source; then
17651 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17652 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17653 { (exit 1); exit 1; }; }
17655 rm -f $ac_dest
17657 # Make relative symlinks.
17658 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17659 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17660 X"$ac_dest" : 'X\(//\)[^/]' \| \
17661 X"$ac_dest" : 'X\(//\)$' \| \
17662 X"$ac_dest" : 'X\(/\)' \| \
17663 . : '\(.\)' 2>/dev/null ||
17664 echo X"$ac_dest" |
17665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17666 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17667 /^X\(\/\/\)$/{ s//\1/; q; }
17668 /^X\(\/\).*/{ s//\1/; q; }
17669 s/.*/./; q'`
17670 { if $as_mkdir_p; then
17671 mkdir -p "$ac_dest_dir"
17672 else
17673 as_dir="$ac_dest_dir"
17674 as_dirs=
17675 while test ! -d "$as_dir"; do
17676 as_dirs="$as_dir $as_dirs"
17677 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17678 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17679 X"$as_dir" : 'X\(//\)[^/]' \| \
17680 X"$as_dir" : 'X\(//\)$' \| \
17681 X"$as_dir" : 'X\(/\)' \| \
17682 . : '\(.\)' 2>/dev/null ||
17683 echo X"$as_dir" |
17684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17685 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17686 /^X\(\/\/\)$/{ s//\1/; q; }
17687 /^X\(\/\).*/{ s//\1/; q; }
17688 s/.*/./; q'`
17689 done
17690 test ! -n "$as_dirs" || mkdir $as_dirs
17691 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
17692 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
17693 { (exit 1); exit 1; }; }; }
17695 ac_builddir=.
17697 if test "$ac_dest_dir" != .; then
17698 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17699 # A "../" for each directory in $ac_dir_suffix.
17700 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17701 else
17702 ac_dir_suffix= ac_top_builddir=
17705 case $srcdir in
17706 .) # No --srcdir option. We are building in place.
17707 ac_srcdir=.
17708 if test -z "$ac_top_builddir"; then
17709 ac_top_srcdir=.
17710 else
17711 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17712 fi ;;
17713 [\\/]* | ?:[\\/]* ) # Absolute path.
17714 ac_srcdir=$srcdir$ac_dir_suffix;
17715 ac_top_srcdir=$srcdir ;;
17716 *) # Relative path.
17717 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17718 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17719 esac
17721 # Do not use `cd foo && pwd` to compute absolute paths, because
17722 # the directories may not exist.
17723 case `pwd` in
17724 .) ac_abs_builddir="$ac_dest_dir";;
17726 case "$ac_dest_dir" in
17727 .) ac_abs_builddir=`pwd`;;
17728 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
17729 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
17730 esac;;
17731 esac
17732 case $ac_abs_builddir in
17733 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17735 case ${ac_top_builddir}. in
17736 .) ac_abs_top_builddir=$ac_abs_builddir;;
17737 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17738 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17739 esac;;
17740 esac
17741 case $ac_abs_builddir in
17742 .) ac_abs_srcdir=$ac_srcdir;;
17744 case $ac_srcdir in
17745 .) ac_abs_srcdir=$ac_abs_builddir;;
17746 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17747 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17748 esac;;
17749 esac
17750 case $ac_abs_builddir in
17751 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17753 case $ac_top_srcdir in
17754 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17755 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17756 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17757 esac;;
17758 esac
17761 case $srcdir in
17762 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17763 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
17764 esac
17766 # Try a symlink, then a hard link, then a copy.
17767 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17768 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
17769 cp -p $srcdir/$ac_source $ac_dest ||
17770 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
17771 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
17772 { (exit 1); exit 1; }; }
17773 done
17774 _ACEOF
17775 cat >>$CONFIG_STATUS <<\_ACEOF
17778 # CONFIG_COMMANDS section.
17780 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17781 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17782 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17783 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17784 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17785 X"$ac_dest" : 'X\(//\)[^/]' \| \
17786 X"$ac_dest" : 'X\(//\)$' \| \
17787 X"$ac_dest" : 'X\(/\)' \| \
17788 . : '\(.\)' 2>/dev/null ||
17789 echo X"$ac_dest" |
17790 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17791 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17792 /^X\(\/\/\)$/{ s//\1/; q; }
17793 /^X\(\/\).*/{ s//\1/; q; }
17794 s/.*/./; q'`
17795 { if $as_mkdir_p; then
17796 mkdir -p "$ac_dir"
17797 else
17798 as_dir="$ac_dir"
17799 as_dirs=
17800 while test ! -d "$as_dir"; do
17801 as_dirs="$as_dir $as_dirs"
17802 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17803 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17804 X"$as_dir" : 'X\(//\)[^/]' \| \
17805 X"$as_dir" : 'X\(//\)$' \| \
17806 X"$as_dir" : 'X\(/\)' \| \
17807 . : '\(.\)' 2>/dev/null ||
17808 echo X"$as_dir" |
17809 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17810 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17811 /^X\(\/\/\)$/{ s//\1/; q; }
17812 /^X\(\/\).*/{ s//\1/; q; }
17813 s/.*/./; q'`
17814 done
17815 test ! -n "$as_dirs" || mkdir $as_dirs
17816 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17817 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17818 { (exit 1); exit 1; }; }; }
17820 ac_builddir=.
17822 if test "$ac_dir" != .; then
17823 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17824 # A "../" for each directory in $ac_dir_suffix.
17825 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17826 else
17827 ac_dir_suffix= ac_top_builddir=
17830 case $srcdir in
17831 .) # No --srcdir option. We are building in place.
17832 ac_srcdir=.
17833 if test -z "$ac_top_builddir"; then
17834 ac_top_srcdir=.
17835 else
17836 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17837 fi ;;
17838 [\\/]* | ?:[\\/]* ) # Absolute path.
17839 ac_srcdir=$srcdir$ac_dir_suffix;
17840 ac_top_srcdir=$srcdir ;;
17841 *) # Relative path.
17842 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17843 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17844 esac
17846 # Do not use `cd foo && pwd` to compute absolute paths, because
17847 # the directories may not exist.
17848 case `pwd` in
17849 .) ac_abs_builddir="$ac_dir";;
17851 case "$ac_dir" in
17852 .) ac_abs_builddir=`pwd`;;
17853 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17854 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17855 esac;;
17856 esac
17857 case $ac_abs_builddir in
17858 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17860 case ${ac_top_builddir}. in
17861 .) ac_abs_top_builddir=$ac_abs_builddir;;
17862 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17863 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17864 esac;;
17865 esac
17866 case $ac_abs_builddir in
17867 .) ac_abs_srcdir=$ac_srcdir;;
17869 case $ac_srcdir in
17870 .) ac_abs_srcdir=$ac_abs_builddir;;
17871 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17872 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17873 esac;;
17874 esac
17875 case $ac_abs_builddir in
17876 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17878 case $ac_top_srcdir in
17879 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17880 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17881 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17882 esac;;
17883 esac
17886 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17887 echo "$as_me: executing $ac_dest commands" >&6;}
17888 case $ac_dest in
17889 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17890 # Strip MF so we end up with the name of the file.
17891 mf=`echo "$mf" | sed -e 's/:.*$//'`
17892 # Check whether this is an Automake generated Makefile or not.
17893 # We used to match only the files named `Makefile.in', but
17894 # some people rename them; so instead we look at the file content.
17895 # Grep'ing the first line is not enough: some people post-process
17896 # each Makefile.in and add a new line on top of each file to say so.
17897 # So let's grep whole file.
17898 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17899 dirpart=`(dirname "$mf") 2>/dev/null ||
17900 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17901 X"$mf" : 'X\(//\)[^/]' \| \
17902 X"$mf" : 'X\(//\)$' \| \
17903 X"$mf" : 'X\(/\)' \| \
17904 . : '\(.\)' 2>/dev/null ||
17905 echo X"$mf" |
17906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17907 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17908 /^X\(\/\/\)$/{ s//\1/; q; }
17909 /^X\(\/\).*/{ s//\1/; q; }
17910 s/.*/./; q'`
17911 else
17912 continue
17914 # Extract the definition of DEPDIR, am__include, and am__quote
17915 # from the Makefile without running `make'.
17916 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17917 test -z "$DEPDIR" && continue
17918 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17919 test -z "am__include" && continue
17920 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17921 # When using ansi2knr, U may be empty or an underscore; expand it
17922 U=`sed -n 's/^U = //p' < "$mf"`
17923 # Find all dependency output files, they are included files with
17924 # $(DEPDIR) in their names. We invoke sed twice because it is the
17925 # simplest approach to changing $(DEPDIR) to its actual value in the
17926 # expansion.
17927 for file in `sed -n "
17928 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17929 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17930 # Make sure the directory exists.
17931 test -f "$dirpart/$file" && continue
17932 fdir=`(dirname "$file") 2>/dev/null ||
17933 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17934 X"$file" : 'X\(//\)[^/]' \| \
17935 X"$file" : 'X\(//\)$' \| \
17936 X"$file" : 'X\(/\)' \| \
17937 . : '\(.\)' 2>/dev/null ||
17938 echo X"$file" |
17939 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17940 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17941 /^X\(\/\/\)$/{ s//\1/; q; }
17942 /^X\(\/\).*/{ s//\1/; q; }
17943 s/.*/./; q'`
17944 { if $as_mkdir_p; then
17945 mkdir -p $dirpart/$fdir
17946 else
17947 as_dir=$dirpart/$fdir
17948 as_dirs=
17949 while test ! -d "$as_dir"; do
17950 as_dirs="$as_dir $as_dirs"
17951 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17952 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17953 X"$as_dir" : 'X\(//\)[^/]' \| \
17954 X"$as_dir" : 'X\(//\)$' \| \
17955 X"$as_dir" : 'X\(/\)' \| \
17956 . : '\(.\)' 2>/dev/null ||
17957 echo X"$as_dir" |
17958 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17959 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17960 /^X\(\/\/\)$/{ s//\1/; q; }
17961 /^X\(\/\).*/{ s//\1/; q; }
17962 s/.*/./; q'`
17963 done
17964 test ! -n "$as_dirs" || mkdir $as_dirs
17965 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
17966 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
17967 { (exit 1); exit 1; }; }; }
17969 # echo "creating $dirpart/$file"
17970 echo '# dummy' > "$dirpart/$file"
17971 done
17972 done
17974 default ) # Only add multilib support code if we just rebuilt top-level Makefile.
17975 case " $CONFIG_FILES " in
17976 *" Makefile "*)
17977 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
17978 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
17980 esac
17981 for ac_multi_file in $CONFIG_FILES; do
17982 case $ac_multi_file in
17983 */Makefile)
17984 grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;;
17985 esac
17986 done
17988 esac
17989 done
17990 _ACEOF
17992 cat >>$CONFIG_STATUS <<\_ACEOF
17994 { (exit 0); exit 0; }
17995 _ACEOF
17996 chmod +x $CONFIG_STATUS
17997 ac_clean_files=$ac_clean_files_save
18000 # configure is writing to config.log, and then calls config.status.
18001 # config.status does its own redirection, appending to config.log.
18002 # Unfortunately, on DOS this fails, as config.log is still kept open
18003 # by configure, so config.status won't be able to write to it; its
18004 # output is simply discarded. So we exec the FD to /dev/null,
18005 # effectively closing config.log, so it can be properly (re)opened and
18006 # appended to by config.status. When coming back to configure, we
18007 # need to make the FD available again.
18008 if test "$no_create" != yes; then
18009 ac_cs_success=:
18010 ac_config_status_args=
18011 test "$silent" = yes &&
18012 ac_config_status_args="$ac_config_status_args --quiet"
18013 exec 5>/dev/null
18014 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18015 exec 5>>config.log
18016 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18017 # would make configure fail if this is the last instruction.
18018 $ac_cs_success || { (exit 1); exit 1; }
18022 # CONFIG_SUBDIRS section.
18024 if test "$no_recursion" != yes; then
18026 # Remove --cache-file and --srcdir arguments so they do not pile up.
18027 ac_sub_configure_args=
18028 ac_prev=
18029 for ac_arg in $ac_configure_args; do
18030 if test -n "$ac_prev"; then
18031 ac_prev=
18032 continue
18034 case $ac_arg in
18035 -cache-file | --cache-file | --cache-fil | --cache-fi \
18036 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18037 ac_prev=cache_file ;;
18038 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18039 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18040 | --c=*)
18042 --config-cache | -C)
18044 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18045 ac_prev=srcdir ;;
18046 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18048 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18049 ac_prev=prefix ;;
18050 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18052 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18053 esac
18054 done
18056 # Always prepend --prefix to ensure using the same prefix
18057 # in subdir configurations.
18058 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
18060 ac_popdir=`pwd`
18061 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18063 # Do not complain, so a configure script can configure whichever
18064 # parts of a large source tree are present.
18065 test -d $srcdir/$ac_dir || continue
18067 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
18068 echo "$as_me: configuring in $ac_dir" >&6;}
18069 { if $as_mkdir_p; then
18070 mkdir -p "$ac_dir"
18071 else
18072 as_dir="$ac_dir"
18073 as_dirs=
18074 while test ! -d "$as_dir"; do
18075 as_dirs="$as_dir $as_dirs"
18076 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18077 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18078 X"$as_dir" : 'X\(//\)[^/]' \| \
18079 X"$as_dir" : 'X\(//\)$' \| \
18080 X"$as_dir" : 'X\(/\)' \| \
18081 . : '\(.\)' 2>/dev/null ||
18082 echo X"$as_dir" |
18083 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18084 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18085 /^X\(\/\/\)$/{ s//\1/; q; }
18086 /^X\(\/\).*/{ s//\1/; q; }
18087 s/.*/./; q'`
18088 done
18089 test ! -n "$as_dirs" || mkdir $as_dirs
18090 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18091 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18092 { (exit 1); exit 1; }; }; }
18094 ac_builddir=.
18096 if test "$ac_dir" != .; then
18097 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18098 # A "../" for each directory in $ac_dir_suffix.
18099 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18100 else
18101 ac_dir_suffix= ac_top_builddir=
18104 case $srcdir in
18105 .) # No --srcdir option. We are building in place.
18106 ac_srcdir=.
18107 if test -z "$ac_top_builddir"; then
18108 ac_top_srcdir=.
18109 else
18110 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18111 fi ;;
18112 [\\/]* | ?:[\\/]* ) # Absolute path.
18113 ac_srcdir=$srcdir$ac_dir_suffix;
18114 ac_top_srcdir=$srcdir ;;
18115 *) # Relative path.
18116 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18117 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18118 esac
18120 # Do not use `cd foo && pwd` to compute absolute paths, because
18121 # the directories may not exist.
18122 case `pwd` in
18123 .) ac_abs_builddir="$ac_dir";;
18125 case "$ac_dir" in
18126 .) ac_abs_builddir=`pwd`;;
18127 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18128 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18129 esac;;
18130 esac
18131 case $ac_abs_builddir in
18132 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18134 case ${ac_top_builddir}. in
18135 .) ac_abs_top_builddir=$ac_abs_builddir;;
18136 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18137 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18138 esac;;
18139 esac
18140 case $ac_abs_builddir in
18141 .) ac_abs_srcdir=$ac_srcdir;;
18143 case $ac_srcdir in
18144 .) ac_abs_srcdir=$ac_abs_builddir;;
18145 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18146 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18147 esac;;
18148 esac
18149 case $ac_abs_builddir in
18150 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18152 case $ac_top_srcdir in
18153 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18154 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18155 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18156 esac;;
18157 esac
18160 cd $ac_dir
18162 # Check for guested configure; otherwise get Cygnus style configure.
18163 if test -f $ac_srcdir/configure.gnu; then
18164 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
18165 elif test -f $ac_srcdir/configure; then
18166 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
18167 elif test -f $ac_srcdir/configure.in; then
18168 ac_sub_configure=$ac_configure
18169 else
18170 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
18171 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18172 ac_sub_configure=
18175 # The recursion is here.
18176 if test -n "$ac_sub_configure"; then
18177 # Make the cache file name correct relative to the subdirectory.
18178 case $cache_file in
18179 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18180 *) # Relative path.
18181 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
18182 esac
18184 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
18185 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18186 # The eval makes quoting arguments work.
18187 eval $ac_sub_configure $ac_sub_configure_args \
18188 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
18189 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
18190 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
18191 { (exit 1); exit 1; }; }
18194 cd $ac_popdir
18195 done