PR middle-end/28160
[official-gcc.git] / libjava / configure
blob3ebf6ded83a22653e293a833db492db4e070606d
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libjava version-unused.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME='libjava'
269 PACKAGE_TARNAME='libjava'
270 PACKAGE_VERSION='version-unused'
271 PACKAGE_STRING='libjava version-unused'
272 PACKAGE_BUGREPORT=''
274 ac_unique_file="java/lang/System.java"
275 ac_subdirs_all="$ac_subdirs_all classpath libltdl"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 # include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_subdir host_subdir target_subdir libgcj_basedir host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical LN_S mkinstalldirs CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LDFLAGS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB JAR ZIP UNZIP BASH_JAR_TRUE BASH_JAR_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBGCJ_CFLAGS LIBGCJ_CXXFLAGS LIBGCJ_JAVAFLAGS LIBGCJ_LD_SYMBOLIC LIBGCJDEBUG TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE GCJH INCLTDL LIBLTDL DIRLTDL LIBTOOL CXXCPP CPPFLAGS GCJ GCJFLAGS GCJDEPMODE am__fastdepGCJ_TRUE am__fastdepGCJ_FALSE subdirs TESTSUBDIR_TRUE TESTSUBDIR_FALSE JAVA_HOME_SET_TRUE JAVA_HOME_SET_FALSE JAVA_HOME INTERPRETER LIBFFI LIBFFIINCS PLATFORM_INNER_NAT_HDRS CPP EGREP USING_WIN32_PLATFORM_TRUE USING_WIN32_PLATFORM_FALSE USING_POSIX_PLATFORM_TRUE USING_POSIX_PLATFORM_FALSE USING_DARWIN_CRT_TRUE USING_DARWIN_CRT_FALSE SYSTEMSPEC LIBGCJTESTSPEC ZLIBSPEC ZLIBTESTSPEC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS extra_ldflags_libjava GCLIBS GCINCS GCDEPS GCSPEC JC1GCSPEC GCTESTSPEC USING_BOEHMGC_TRUE USING_BOEHMGC_FALSE USING_NOGC_TRUE USING_NOGC_FALSE THREADLIBS THREADINCS THREADDEPS THREADSPEC THREADSTARTFILESPEC THREADLDFLAGS THREADCXXFLAGS USING_POSIX_THREADS_TRUE USING_POSIX_THREADS_FALSE USING_WIN32_THREADS_TRUE USING_WIN32_THREADS_FALSE USING_NO_THREADS_TRUE USING_NO_THREADS_FALSE HASH_SYNC_SPEC USING_GCC_TRUE USING_GCC_FALSE LIBICONV LTLIBICONV PKG_CONFIG GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS CLASSPATH_SEPARATOR ac_ct_GCJ ZLIBS SYS_ZLIBS ZINCS DIVIDESPEC CHECKREFSPEC EXCEPTIONSPEC BACKTRACESPEC IEEESPEC NATIVE_TRUE NATIVE_FALSE NEEDS_DATA_START_TRUE NEEDS_DATA_START_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir dbexecdir GCJVERSION gxx_include_dir libstdcxx_incdir ALLOCA PERL SYSDEP_SOURCES LD_START_STATIC_SPEC LD_FINISH_STATIC_SPEC here LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
354 ac_prev=
355 for ac_option
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
368 case $ac_option in
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
387 --config-cache | -C)
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 esac
651 done
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
726 else
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CXXCPP_set=${CXXCPP+set}
755 ac_env_CXXCPP_value=$CXXCPP
756 ac_cv_env_CXXCPP_set=${CXXCPP+set}
757 ac_cv_env_CXXCPP_value=$CXXCPP
758 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
759 ac_env_CPPFLAGS_value=$CPPFLAGS
760 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
761 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
762 ac_env_CPP_set=${CPP+set}
763 ac_env_CPP_value=$CPP
764 ac_cv_env_CPP_set=${CPP+set}
765 ac_cv_env_CPP_value=$CPP
768 # Report the --help message.
770 if test "$ac_init_help" = "long"; then
771 # Omit some internal or obsolete options to make the list less imposing.
772 # This message is too long to be a string in the A/UX 3.1 sh.
773 cat <<_ACEOF
774 \`configure' configures libjava version-unused to adapt to many kinds of systems.
776 Usage: $0 [OPTION]... [VAR=VALUE]...
778 To assign environment variables (e.g., CC, CFLAGS...), specify them as
779 VAR=VALUE. See below for descriptions of some of the useful variables.
781 Defaults for the options are specified in brackets.
783 Configuration:
784 -h, --help display this help and exit
785 --help=short display options specific to this package
786 --help=recursive display the short help of all the included packages
787 -V, --version display version information and exit
788 -q, --quiet, --silent do not print \`checking...' messages
789 --cache-file=FILE cache test results in FILE [disabled]
790 -C, --config-cache alias for \`--cache-file=config.cache'
791 -n, --no-create do not create output files
792 --srcdir=DIR find the sources in DIR [configure dir or \`..']
794 _ACEOF
796 cat <<_ACEOF
797 Installation directories:
798 --prefix=PREFIX install architecture-independent files in PREFIX
799 [$ac_default_prefix]
800 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
801 [PREFIX]
803 By default, \`make install' will install all the files in
804 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
805 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
806 for instance \`--prefix=\$HOME'.
808 For better control, use the options below.
810 Fine tuning of the installation directories:
811 --bindir=DIR user executables [EPREFIX/bin]
812 --sbindir=DIR system admin executables [EPREFIX/sbin]
813 --libexecdir=DIR program executables [EPREFIX/libexec]
814 --datadir=DIR read-only architecture-independent data [PREFIX/share]
815 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
816 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
817 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
818 --libdir=DIR object code libraries [EPREFIX/lib]
819 --includedir=DIR C header files [PREFIX/include]
820 --oldincludedir=DIR C header files for non-gcc [/usr/include]
821 --infodir=DIR info documentation [PREFIX/info]
822 --mandir=DIR man documentation [PREFIX/man]
823 _ACEOF
825 cat <<\_ACEOF
827 Program names:
828 --program-prefix=PREFIX prepend PREFIX to installed program names
829 --program-suffix=SUFFIX append SUFFIX to installed program names
830 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
832 X features:
833 --x-includes=DIR X include files are in DIR
834 --x-libraries=DIR X library files are in DIR
836 System types:
837 --build=BUILD configure for building on BUILD [guessed]
838 --host=HOST cross-compile to build programs to run on HOST [BUILD]
839 --target=TARGET configure for building compilers for TARGET [HOST]
840 _ACEOF
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive ) echo "Configuration of libjava version-unused:";;
846 esac
847 cat <<\_ACEOF
849 Optional Features:
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --enable-version-specific-runtime-libs
853 specify that runtime libraries should be installed
854 in a compiler-specific directory
855 --enable-multilib build many library versions (default)
856 --enable-plugin build gcjwebplugin web browser plugin
857 --disable-dependency-tracking speeds up one-time build
858 --enable-dependency-tracking do not reject slow dependency extractors
859 --enable-maintainer-mode enable make rules and dependencies not useful
860 (and sometimes confusing) to the casual installer
861 --enable-libgcj-debug enable runtime debugging code
862 --enable-java-awt list of AWT peer implementations to be built
863 --enable-shared=PKGS build shared libraries default=yes
864 --enable-static=PKGS build static libraries default=yes
865 --enable-fast-install=PKGS optimize for fast installation default=yes
866 --disable-libtool-lock avoid locking (might break parallel builds)
867 --disable-getenv-properties
868 don't set system properties from GCJ_PROPERTIES
869 --enable-hash-synchronization
870 use global hash table for monitor locks
871 --enable-gc-debug include full support for pointer backtracing etc.
872 --enable-interpreter enable interpreter
873 --enable-sjlj-exceptions
874 force use of builtin_setjmp for exceptions
875 --disable-java-net disable java.net
876 --disable-jvmpi disable JVMPI support
877 --enable-java-gc=TYPE choose garbage collector (default is boehm)
878 --disable-rpath do not hardcode runtime library paths
879 _g_switchUse thread-local storage
880 [default=yes]
882 Optional Packages:
883 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
884 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
885 --with-target-subdir=SUBDIR
886 configure in a subdirectory
887 --with-cross-host=HOST configure with a cross compiler from HOST
888 --with-newlib configure with newlib
889 --with-gnu-ld assume the C compiler uses GNU ld default=no
890 --with-pic try to use only PIC/non-PIC objects default=use both
891 --with-java-home=DIRECTORY
892 value of java.home system property
893 --with-win32-nlsapi=ansi or unicows or unicode
894 native MinGW libgcj Win32 OS API (default is ansi)
895 --without-libffi don't use libffi
896 --with-ecos enable runtime eCos target support
897 --with-system-zlib use installed libz
898 --with-x use the X Window System
899 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
900 --without-libiconv-prefix don't search for libiconv in includedir and libdir
902 Some influential environment variables:
903 CC C compiler command
904 CFLAGS C compiler flags
905 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
906 nonstandard directory <lib dir>
907 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
908 headers in a nonstandard directory <include dir>
909 CXX C++ compiler command
910 CXXFLAGS C++ compiler flags
911 CXXCPP C++ preprocessor
912 CPP C preprocessor
914 Use these variables to override the choices made by `configure' or to help
915 it to find libraries and programs with nonstandard names/locations.
917 _ACEOF
920 if test "$ac_init_help" = "recursive"; then
921 # If there are subdirs, report their specific --help.
922 ac_popdir=`pwd`
923 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
924 test -d $ac_dir || continue
925 ac_builddir=.
927 if test "$ac_dir" != .; then
928 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
929 # A "../" for each directory in $ac_dir_suffix.
930 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
931 else
932 ac_dir_suffix= ac_top_builddir=
935 case $srcdir in
936 .) # No --srcdir option. We are building in place.
937 ac_srcdir=.
938 if test -z "$ac_top_builddir"; then
939 ac_top_srcdir=.
940 else
941 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
942 fi ;;
943 [\\/]* | ?:[\\/]* ) # Absolute path.
944 ac_srcdir=$srcdir$ac_dir_suffix;
945 ac_top_srcdir=$srcdir ;;
946 *) # Relative path.
947 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
948 ac_top_srcdir=$ac_top_builddir$srcdir ;;
949 esac
951 # Do not use `cd foo && pwd` to compute absolute paths, because
952 # the directories may not exist.
953 case `pwd` in
954 .) ac_abs_builddir="$ac_dir";;
956 case "$ac_dir" in
957 .) ac_abs_builddir=`pwd`;;
958 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
959 *) ac_abs_builddir=`pwd`/"$ac_dir";;
960 esac;;
961 esac
962 case $ac_abs_builddir in
963 .) ac_abs_top_builddir=${ac_top_builddir}.;;
965 case ${ac_top_builddir}. in
966 .) ac_abs_top_builddir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
968 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
969 esac;;
970 esac
971 case $ac_abs_builddir in
972 .) ac_abs_srcdir=$ac_srcdir;;
974 case $ac_srcdir in
975 .) ac_abs_srcdir=$ac_abs_builddir;;
976 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
977 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
978 esac;;
979 esac
980 case $ac_abs_builddir in
981 .) ac_abs_top_srcdir=$ac_top_srcdir;;
983 case $ac_top_srcdir in
984 .) ac_abs_top_srcdir=$ac_abs_builddir;;
985 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
986 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
987 esac;;
988 esac
990 cd $ac_dir
991 # Check for guested configure; otherwise get Cygnus style configure.
992 if test -f $ac_srcdir/configure.gnu; then
993 echo
994 $SHELL $ac_srcdir/configure.gnu --help=recursive
995 elif test -f $ac_srcdir/configure; then
996 echo
997 $SHELL $ac_srcdir/configure --help=recursive
998 elif test -f $ac_srcdir/configure.ac ||
999 test -f $ac_srcdir/configure.in; then
1000 echo
1001 $ac_configure --help
1002 else
1003 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1005 cd $ac_popdir
1006 done
1009 test -n "$ac_init_help" && exit 0
1010 if $ac_init_version; then
1011 cat <<\_ACEOF
1012 libjava configure version-unused
1013 generated by GNU Autoconf 2.59
1015 Copyright (C) 2003 Free Software Foundation, Inc.
1016 This configure script is free software; the Free Software Foundation
1017 gives unlimited permission to copy, distribute and modify it.
1018 _ACEOF
1019 exit 0
1021 exec 5>config.log
1022 cat >&5 <<_ACEOF
1023 This file contains any messages produced by compilers while
1024 running configure, to aid debugging if configure makes a mistake.
1026 It was created by libjava $as_me version-unused, which was
1027 generated by GNU Autoconf 2.59. Invocation command line was
1029 $ $0 $@
1031 _ACEOF
1033 cat <<_ASUNAME
1034 ## --------- ##
1035 ## Platform. ##
1036 ## --------- ##
1038 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1039 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1040 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1041 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1042 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1044 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1045 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1047 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1048 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1049 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1050 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1051 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1052 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1053 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1055 _ASUNAME
1057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1058 for as_dir in $PATH
1060 IFS=$as_save_IFS
1061 test -z "$as_dir" && as_dir=.
1062 echo "PATH: $as_dir"
1063 done
1065 } >&5
1067 cat >&5 <<_ACEOF
1070 ## ----------- ##
1071 ## Core tests. ##
1072 ## ----------- ##
1074 _ACEOF
1077 # Keep a trace of the command line.
1078 # Strip out --no-create and --no-recursion so they do not pile up.
1079 # Strip out --silent because we don't want to record it for future runs.
1080 # Also quote any args containing shell meta-characters.
1081 # Make two passes to allow for proper duplicate-argument suppression.
1082 ac_configure_args=
1083 ac_configure_args0=
1084 ac_configure_args1=
1085 ac_sep=
1086 ac_must_keep_next=false
1087 for ac_pass in 1 2
1089 for ac_arg
1091 case $ac_arg in
1092 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1094 | -silent | --silent | --silen | --sile | --sil)
1095 continue ;;
1096 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1097 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1098 esac
1099 case $ac_pass in
1100 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1102 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1103 if test $ac_must_keep_next = true; then
1104 ac_must_keep_next=false # Got value, back to normal.
1105 else
1106 case $ac_arg in
1107 *=* | --config-cache | -C | -disable-* | --disable-* \
1108 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1109 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1110 | -with-* | --with-* | -without-* | --without-* | --x)
1111 case "$ac_configure_args0 " in
1112 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1113 esac
1115 -* ) ac_must_keep_next=true ;;
1116 esac
1118 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1119 # Get rid of the leading space.
1120 ac_sep=" "
1122 esac
1123 done
1124 done
1125 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1126 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1128 # When interrupted or exit'd, cleanup temporary files, and complete
1129 # config.log. We remove comments because anyway the quotes in there
1130 # would cause problems or look ugly.
1131 # WARNING: Be sure not to use single quotes in there, as some shells,
1132 # such as our DU 5.0 friend, will then `close' the trap.
1133 trap 'exit_status=$?
1134 # Save into config.log some information that might help in debugging.
1136 echo
1138 cat <<\_ASBOX
1139 ## ---------------- ##
1140 ## Cache variables. ##
1141 ## ---------------- ##
1142 _ASBOX
1143 echo
1144 # The following way of writing the cache mishandles newlines in values,
1146 (set) 2>&1 |
1147 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1148 *ac_space=\ *)
1149 sed -n \
1150 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1151 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1154 sed -n \
1155 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1157 esac;
1159 echo
1161 cat <<\_ASBOX
1162 ## ----------------- ##
1163 ## Output variables. ##
1164 ## ----------------- ##
1165 _ASBOX
1166 echo
1167 for ac_var in $ac_subst_vars
1169 eval ac_val=$`echo $ac_var`
1170 echo "$ac_var='"'"'$ac_val'"'"'"
1171 done | sort
1172 echo
1174 if test -n "$ac_subst_files"; then
1175 cat <<\_ASBOX
1176 ## ------------- ##
1177 ## Output files. ##
1178 ## ------------- ##
1179 _ASBOX
1180 echo
1181 for ac_var in $ac_subst_files
1183 eval ac_val=$`echo $ac_var`
1184 echo "$ac_var='"'"'$ac_val'"'"'"
1185 done | sort
1186 echo
1189 if test -s confdefs.h; then
1190 cat <<\_ASBOX
1191 ## ----------- ##
1192 ## confdefs.h. ##
1193 ## ----------- ##
1194 _ASBOX
1195 echo
1196 sed "/^$/d" confdefs.h | sort
1197 echo
1199 test "$ac_signal" != 0 &&
1200 echo "$as_me: caught signal $ac_signal"
1201 echo "$as_me: exit $exit_status"
1202 } >&5
1203 rm -f core *.core &&
1204 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1205 exit $exit_status
1207 for ac_signal in 1 2 13 15; do
1208 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1209 done
1210 ac_signal=0
1212 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1213 rm -rf conftest* confdefs.h
1214 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1215 echo >confdefs.h
1217 # Predefined preprocessor variables.
1219 cat >>confdefs.h <<_ACEOF
1220 #define PACKAGE_NAME "$PACKAGE_NAME"
1221 _ACEOF
1224 cat >>confdefs.h <<_ACEOF
1225 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1226 _ACEOF
1229 cat >>confdefs.h <<_ACEOF
1230 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1231 _ACEOF
1234 cat >>confdefs.h <<_ACEOF
1235 #define PACKAGE_STRING "$PACKAGE_STRING"
1236 _ACEOF
1239 cat >>confdefs.h <<_ACEOF
1240 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1241 _ACEOF
1244 # Let the site file select an alternate cache file if it wants to.
1245 # Prefer explicitly selected file to automatically selected ones.
1246 if test -z "$CONFIG_SITE"; then
1247 if test "x$prefix" != xNONE; then
1248 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1249 else
1250 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1253 for ac_site_file in $CONFIG_SITE; do
1254 if test -r "$ac_site_file"; then
1255 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1256 echo "$as_me: loading site script $ac_site_file" >&6;}
1257 sed 's/^/| /' "$ac_site_file" >&5
1258 . "$ac_site_file"
1260 done
1262 if test -r "$cache_file"; then
1263 # Some versions of bash will fail to source /dev/null (special
1264 # files actually), so we avoid doing that.
1265 if test -f "$cache_file"; then
1266 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1267 echo "$as_me: loading cache $cache_file" >&6;}
1268 case $cache_file in
1269 [\\/]* | ?:[\\/]* ) . $cache_file;;
1270 *) . ./$cache_file;;
1271 esac
1273 else
1274 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1275 echo "$as_me: creating cache $cache_file" >&6;}
1276 >$cache_file
1279 # Check that the precious variables saved in the cache have kept the same
1280 # value.
1281 ac_cache_corrupted=false
1282 for ac_var in `(set) 2>&1 |
1283 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1284 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1285 eval ac_new_set=\$ac_env_${ac_var}_set
1286 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1287 eval ac_new_val="\$ac_env_${ac_var}_value"
1288 case $ac_old_set,$ac_new_set in
1289 set,)
1290 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1291 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1292 ac_cache_corrupted=: ;;
1293 ,set)
1294 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1295 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1296 ac_cache_corrupted=: ;;
1297 ,);;
1299 if test "x$ac_old_val" != "x$ac_new_val"; then
1300 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1301 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1302 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1303 echo "$as_me: former value: $ac_old_val" >&2;}
1304 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1305 echo "$as_me: current value: $ac_new_val" >&2;}
1306 ac_cache_corrupted=:
1307 fi;;
1308 esac
1309 # Pass precious variables to config.status.
1310 if test "$ac_new_set" = set; then
1311 case $ac_new_val in
1312 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1313 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1314 *) ac_arg=$ac_var=$ac_new_val ;;
1315 esac
1316 case " $ac_configure_args " in
1317 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1318 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1319 esac
1321 done
1322 if $ac_cache_corrupted; then
1323 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1324 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1325 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1326 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1327 { (exit 1); exit 1; }; }
1330 ac_ext=c
1331 ac_cpp='$CPP $CPPFLAGS'
1332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1365 ac_aux_dir=
1366 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1367 if test -f $ac_dir/install-sh; then
1368 ac_aux_dir=$ac_dir
1369 ac_install_sh="$ac_aux_dir/install-sh -c"
1370 break
1371 elif test -f $ac_dir/install.sh; then
1372 ac_aux_dir=$ac_dir
1373 ac_install_sh="$ac_aux_dir/install.sh -c"
1374 break
1375 elif test -f $ac_dir/shtool; then
1376 ac_aux_dir=$ac_dir
1377 ac_install_sh="$ac_aux_dir/shtool install -c"
1378 break
1380 done
1381 if test -z "$ac_aux_dir"; then
1382 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1383 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1384 { (exit 1); exit 1; }; }
1386 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1387 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1388 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1390 # Make sure we can run config.sub.
1391 $ac_config_sub sun4 >/dev/null 2>&1 ||
1392 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1393 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1394 { (exit 1); exit 1; }; }
1396 echo "$as_me:$LINENO: checking build system type" >&5
1397 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1398 if test "${ac_cv_build+set}" = set; then
1399 echo $ECHO_N "(cached) $ECHO_C" >&6
1400 else
1401 ac_cv_build_alias=$build_alias
1402 test -z "$ac_cv_build_alias" &&
1403 ac_cv_build_alias=`$ac_config_guess`
1404 test -z "$ac_cv_build_alias" &&
1405 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1406 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1407 { (exit 1); exit 1; }; }
1408 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1409 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1410 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1411 { (exit 1); exit 1; }; }
1414 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1415 echo "${ECHO_T}$ac_cv_build" >&6
1416 build=$ac_cv_build
1417 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1418 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1419 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1422 case ${build_alias} in
1423 "") build_noncanonical=${build} ;;
1424 *) build_noncanonical=${build_alias} ;;
1425 esac
1427 case ${host_alias} in
1428 "") host_noncanonical=${build_noncanonical} ;;
1429 *) host_noncanonical=${host_alias} ;;
1430 esac
1432 case ${target_alias} in
1433 "") target_noncanonical=${host_noncanonical} ;;
1434 *) target_noncanonical=${target_alias} ;;
1435 esac
1437 # Prefix 'build-' so this never conflicts with target_subdir.
1438 build_subdir="build-${build_noncanonical}"
1439 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1440 if ( test $srcdir = . && test -d gcc ) \
1441 || test -d $srcdir/../host-${host_noncanonical}; then
1442 host_subdir="host-${host_noncanonical}"
1443 else
1444 host_subdir=.
1446 # No prefix.
1447 target_subdir=${target_noncanonical}
1450 # We use these options to decide which functions to include.
1452 # Check whether --with-target-subdir or --without-target-subdir was given.
1453 if test "${with_target_subdir+set}" = set; then
1454 withval="$with_target_subdir"
1458 # We may get other options which we don't document:
1459 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1461 # When building with srcdir == objdir, links to the source files will
1462 # be created in directories within the target_subdir. We have to
1463 # adjust toplevel_srcdir accordingly, so that configure finds
1464 # install-sh and other auxiliary files that live in the top-level
1465 # source directory.
1466 if test "${srcdir}" = "."; then
1467 if test -z "${with_target_subdir}"; then
1468 toprel=".."
1469 else
1470 if test "${with_target_subdir}" != "."; then
1471 toprel="${with_multisrctop}../.."
1472 else
1473 toprel="${with_multisrctop}.."
1476 else
1477 toprel=".."
1480 libgcj_basedir=$srcdir/$toprel/./libjava
1483 echo "$as_me:$LINENO: checking host system type" >&5
1484 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1485 if test "${ac_cv_host+set}" = set; then
1486 echo $ECHO_N "(cached) $ECHO_C" >&6
1487 else
1488 ac_cv_host_alias=$host_alias
1489 test -z "$ac_cv_host_alias" &&
1490 ac_cv_host_alias=$ac_cv_build_alias
1491 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1492 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1493 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1494 { (exit 1); exit 1; }; }
1497 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1498 echo "${ECHO_T}$ac_cv_host" >&6
1499 host=$ac_cv_host
1500 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1501 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1502 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1505 echo "$as_me:$LINENO: checking target system type" >&5
1506 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1507 if test "${ac_cv_target+set}" = set; then
1508 echo $ECHO_N "(cached) $ECHO_C" >&6
1509 else
1510 ac_cv_target_alias=$target_alias
1511 test "x$ac_cv_target_alias" = "x" &&
1512 ac_cv_target_alias=$ac_cv_host_alias
1513 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1514 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1515 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1516 { (exit 1); exit 1; }; }
1519 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1520 echo "${ECHO_T}$ac_cv_target" >&6
1521 target=$ac_cv_target
1522 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1523 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1524 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1527 # The aliases save the names the user supplied, while $host etc.
1528 # will get canonicalized.
1529 test -n "$target_alias" &&
1530 test "$program_prefix$program_suffix$program_transform_name" = \
1531 NONENONEs,x,x, &&
1532 program_prefix=${target_alias}-
1533 case ${build_alias} in
1534 "") build_noncanonical=${build} ;;
1535 *) build_noncanonical=${build_alias} ;;
1536 esac
1538 case ${target_alias} in
1539 "") target_noncanonical=${host_noncanonical} ;;
1540 *) target_noncanonical=${target_alias} ;;
1541 esac
1546 # This works around the fact that libtool configuration may change LD
1547 # for this particular configuration, but some shells, instead of
1548 # keeping the changes in LD private, export them just because LD is
1549 # exported.
1550 ORIGINAL_LD_FOR_MULTILIBS=$LD
1552 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1553 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1554 LN_S=$as_ln_s
1555 if test "$LN_S" = "ln -s"; then
1556 echo "$as_me:$LINENO: result: yes" >&5
1557 echo "${ECHO_T}yes" >&6
1558 else
1559 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1560 echo "${ECHO_T}no, using $LN_S" >&6
1564 # This works around an automake problem.
1565 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1569 # Check whether --with-cross-host or --without-cross-host was given.
1570 if test "${with_cross_host+set}" = set; then
1571 withval="$with_cross_host"
1576 # Check whether --with-newlib or --without-newlib was given.
1577 if test "${with_newlib+set}" = set; then
1578 withval="$with_newlib"
1582 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1583 if test "${enable_version_specific_runtime_libs+set}" = set; then
1584 enableval="$enable_version_specific_runtime_libs"
1585 case "$enableval" in
1586 yes) version_specific_libs=yes ;;
1587 no) version_specific_libs=no ;;
1588 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1589 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1590 { (exit 1); exit 1; }; };;
1591 esac
1592 else
1593 version_specific_libs=no
1597 # Default to --enable-multilib
1598 # Check whether --enable-multilib or --disable-multilib was given.
1599 if test "${enable_multilib+set}" = set; then
1600 enableval="$enable_multilib"
1601 case "${enableval}" in
1602 yes) multilib=yes ;;
1603 no) multilib=no ;;
1604 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1605 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1606 { (exit 1); exit 1; }; } ;;
1607 esac
1608 else
1609 multilib=yes
1611 # Check whether --enable-plugin or --disable-plugin was given.
1612 if test "${enable_plugin+set}" = set; then
1613 enableval="$enable_plugin"
1614 case "$enableval" in
1615 yes) plugin_enabled=yes ;;
1616 no) plugin_enabled=no ;;
1617 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable plugin" >&5
1618 echo "$as_me: error: Unknown argument to enable/disable plugin" >&2;}
1619 { (exit 1); exit 1; }; };;
1620 esac
1621 else
1622 plugin_enabled=no
1626 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1629 # (1) We use an abnormal CXX (without library references), so we
1630 # must cache it under a different name.
1631 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1632 # the non-multilib-adjusted value will be used in multilibs.
1633 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1634 # (4) As another side effect, automake doesn't automatically include them
1635 # in Makefile.in.
1636 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1637 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1638 # used in later tests. This may not be necessary in libjava; I don't know.
1642 save_CXXFLAGS="$CXXFLAGS"
1643 CXXFLAGS="$CXXFLAGS -fno-builtin"
1644 ac_ext=c
1645 ac_cpp='$CPP $CPPFLAGS'
1646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1649 if test -n "$ac_tool_prefix"; then
1650 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1651 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1652 echo "$as_me:$LINENO: checking for $ac_word" >&5
1653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1654 if test "${ac_cv_prog_CC+set}" = set; then
1655 echo $ECHO_N "(cached) $ECHO_C" >&6
1656 else
1657 if test -n "$CC"; then
1658 ac_cv_prog_CC="$CC" # Let the user override the test.
1659 else
1660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1661 for as_dir in $PATH
1663 IFS=$as_save_IFS
1664 test -z "$as_dir" && as_dir=.
1665 for ac_exec_ext in '' $ac_executable_extensions; do
1666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1667 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1669 break 2
1671 done
1672 done
1676 CC=$ac_cv_prog_CC
1677 if test -n "$CC"; then
1678 echo "$as_me:$LINENO: result: $CC" >&5
1679 echo "${ECHO_T}$CC" >&6
1680 else
1681 echo "$as_me:$LINENO: result: no" >&5
1682 echo "${ECHO_T}no" >&6
1686 if test -z "$ac_cv_prog_CC"; then
1687 ac_ct_CC=$CC
1688 # Extract the first word of "gcc", so it can be a program name with args.
1689 set dummy gcc; ac_word=$2
1690 echo "$as_me:$LINENO: checking for $ac_word" >&5
1691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1692 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1693 echo $ECHO_N "(cached) $ECHO_C" >&6
1694 else
1695 if test -n "$ac_ct_CC"; then
1696 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1697 else
1698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699 for as_dir in $PATH
1701 IFS=$as_save_IFS
1702 test -z "$as_dir" && as_dir=.
1703 for ac_exec_ext in '' $ac_executable_extensions; do
1704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705 ac_cv_prog_ac_ct_CC="gcc"
1706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1707 break 2
1709 done
1710 done
1714 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1715 if test -n "$ac_ct_CC"; then
1716 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1717 echo "${ECHO_T}$ac_ct_CC" >&6
1718 else
1719 echo "$as_me:$LINENO: result: no" >&5
1720 echo "${ECHO_T}no" >&6
1723 CC=$ac_ct_CC
1724 else
1725 CC="$ac_cv_prog_CC"
1728 if test -z "$CC"; then
1729 if test -n "$ac_tool_prefix"; then
1730 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1731 set dummy ${ac_tool_prefix}cc; ac_word=$2
1732 echo "$as_me:$LINENO: checking for $ac_word" >&5
1733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1734 if test "${ac_cv_prog_CC+set}" = set; then
1735 echo $ECHO_N "(cached) $ECHO_C" >&6
1736 else
1737 if test -n "$CC"; then
1738 ac_cv_prog_CC="$CC" # Let the user override the test.
1739 else
1740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1741 for as_dir in $PATH
1743 IFS=$as_save_IFS
1744 test -z "$as_dir" && as_dir=.
1745 for ac_exec_ext in '' $ac_executable_extensions; do
1746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1747 ac_cv_prog_CC="${ac_tool_prefix}cc"
1748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1749 break 2
1751 done
1752 done
1756 CC=$ac_cv_prog_CC
1757 if test -n "$CC"; then
1758 echo "$as_me:$LINENO: result: $CC" >&5
1759 echo "${ECHO_T}$CC" >&6
1760 else
1761 echo "$as_me:$LINENO: result: no" >&5
1762 echo "${ECHO_T}no" >&6
1766 if test -z "$ac_cv_prog_CC"; then
1767 ac_ct_CC=$CC
1768 # Extract the first word of "cc", so it can be a program name with args.
1769 set dummy cc; ac_word=$2
1770 echo "$as_me:$LINENO: checking for $ac_word" >&5
1771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1772 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1773 echo $ECHO_N "(cached) $ECHO_C" >&6
1774 else
1775 if test -n "$ac_ct_CC"; then
1776 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1777 else
1778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1779 for as_dir in $PATH
1781 IFS=$as_save_IFS
1782 test -z "$as_dir" && as_dir=.
1783 for ac_exec_ext in '' $ac_executable_extensions; do
1784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1785 ac_cv_prog_ac_ct_CC="cc"
1786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1787 break 2
1789 done
1790 done
1794 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1795 if test -n "$ac_ct_CC"; then
1796 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1797 echo "${ECHO_T}$ac_ct_CC" >&6
1798 else
1799 echo "$as_me:$LINENO: result: no" >&5
1800 echo "${ECHO_T}no" >&6
1803 CC=$ac_ct_CC
1804 else
1805 CC="$ac_cv_prog_CC"
1809 if test -z "$CC"; then
1810 # Extract the first word of "cc", so it can be a program name with args.
1811 set dummy cc; ac_word=$2
1812 echo "$as_me:$LINENO: checking for $ac_word" >&5
1813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1814 if test "${ac_cv_prog_CC+set}" = set; then
1815 echo $ECHO_N "(cached) $ECHO_C" >&6
1816 else
1817 if test -n "$CC"; then
1818 ac_cv_prog_CC="$CC" # Let the user override the test.
1819 else
1820 ac_prog_rejected=no
1821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1822 for as_dir in $PATH
1824 IFS=$as_save_IFS
1825 test -z "$as_dir" && as_dir=.
1826 for ac_exec_ext in '' $ac_executable_extensions; do
1827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1828 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1829 ac_prog_rejected=yes
1830 continue
1832 ac_cv_prog_CC="cc"
1833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1834 break 2
1836 done
1837 done
1839 if test $ac_prog_rejected = yes; then
1840 # We found a bogon in the path, so make sure we never use it.
1841 set dummy $ac_cv_prog_CC
1842 shift
1843 if test $# != 0; then
1844 # We chose a different compiler from the bogus one.
1845 # However, it has the same basename, so the bogon will be chosen
1846 # first if we set CC to just the basename; use the full file name.
1847 shift
1848 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1853 CC=$ac_cv_prog_CC
1854 if test -n "$CC"; then
1855 echo "$as_me:$LINENO: result: $CC" >&5
1856 echo "${ECHO_T}$CC" >&6
1857 else
1858 echo "$as_me:$LINENO: result: no" >&5
1859 echo "${ECHO_T}no" >&6
1863 if test -z "$CC"; then
1864 if test -n "$ac_tool_prefix"; then
1865 for ac_prog in cl
1867 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1868 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1869 echo "$as_me:$LINENO: checking for $ac_word" >&5
1870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1871 if test "${ac_cv_prog_CC+set}" = set; then
1872 echo $ECHO_N "(cached) $ECHO_C" >&6
1873 else
1874 if test -n "$CC"; then
1875 ac_cv_prog_CC="$CC" # Let the user override the test.
1876 else
1877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878 for as_dir in $PATH
1880 IFS=$as_save_IFS
1881 test -z "$as_dir" && as_dir=.
1882 for ac_exec_ext in '' $ac_executable_extensions; do
1883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1884 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1886 break 2
1888 done
1889 done
1893 CC=$ac_cv_prog_CC
1894 if test -n "$CC"; then
1895 echo "$as_me:$LINENO: result: $CC" >&5
1896 echo "${ECHO_T}$CC" >&6
1897 else
1898 echo "$as_me:$LINENO: result: no" >&5
1899 echo "${ECHO_T}no" >&6
1902 test -n "$CC" && break
1903 done
1905 if test -z "$CC"; then
1906 ac_ct_CC=$CC
1907 for ac_prog in cl
1909 # Extract the first word of "$ac_prog", so it can be a program name with args.
1910 set dummy $ac_prog; ac_word=$2
1911 echo "$as_me:$LINENO: checking for $ac_word" >&5
1912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1913 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1914 echo $ECHO_N "(cached) $ECHO_C" >&6
1915 else
1916 if test -n "$ac_ct_CC"; then
1917 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1918 else
1919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920 for as_dir in $PATH
1922 IFS=$as_save_IFS
1923 test -z "$as_dir" && as_dir=.
1924 for ac_exec_ext in '' $ac_executable_extensions; do
1925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1926 ac_cv_prog_ac_ct_CC="$ac_prog"
1927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1928 break 2
1930 done
1931 done
1935 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1936 if test -n "$ac_ct_CC"; then
1937 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1938 echo "${ECHO_T}$ac_ct_CC" >&6
1939 else
1940 echo "$as_me:$LINENO: result: no" >&5
1941 echo "${ECHO_T}no" >&6
1944 test -n "$ac_ct_CC" && break
1945 done
1947 CC=$ac_ct_CC
1953 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1954 See \`config.log' for more details." >&5
1955 echo "$as_me: error: no acceptable C compiler found in \$PATH
1956 See \`config.log' for more details." >&2;}
1957 { (exit 1); exit 1; }; }
1959 # Provide some information about the compiler.
1960 echo "$as_me:$LINENO:" \
1961 "checking for C compiler version" >&5
1962 ac_compiler=`set X $ac_compile; echo $2`
1963 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1964 (eval $ac_compiler --version </dev/null >&5) 2>&5
1965 ac_status=$?
1966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1967 (exit $ac_status); }
1968 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1969 (eval $ac_compiler -v </dev/null >&5) 2>&5
1970 ac_status=$?
1971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972 (exit $ac_status); }
1973 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1974 (eval $ac_compiler -V </dev/null >&5) 2>&5
1975 ac_status=$?
1976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1977 (exit $ac_status); }
1979 cat >conftest.$ac_ext <<_ACEOF
1980 /* confdefs.h. */
1981 _ACEOF
1982 cat confdefs.h >>conftest.$ac_ext
1983 cat >>conftest.$ac_ext <<_ACEOF
1984 /* end confdefs.h. */
1987 main ()
1991 return 0;
1993 _ACEOF
1994 # FIXME: Cleanup?
1995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1996 (eval $ac_link) 2>&5
1997 ac_status=$?
1998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1999 (exit $ac_status); }; then
2000 gcc_no_link=no
2001 else
2002 gcc_no_link=yes
2005 if test x$gcc_no_link = xyes; then
2006 # Setting cross_compile will disable run tests; it will
2007 # also disable AC_CHECK_FILE but that's generally
2008 # correct if we can't link.
2009 cross_compiling=yes
2010 EXEEXT=
2011 else
2012 cat >conftest.$ac_ext <<_ACEOF
2013 /* confdefs.h. */
2014 _ACEOF
2015 cat confdefs.h >>conftest.$ac_ext
2016 cat >>conftest.$ac_ext <<_ACEOF
2017 /* end confdefs.h. */
2020 main ()
2024 return 0;
2026 _ACEOF
2027 ac_clean_files_save=$ac_clean_files
2028 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2029 # Try to create an executable without -o first, disregard a.out.
2030 # It will help us diagnose broken compilers, and finding out an intuition
2031 # of exeext.
2032 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2033 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2034 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2035 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2036 (eval $ac_link_default) 2>&5
2037 ac_status=$?
2038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2039 (exit $ac_status); }; then
2040 # Find the output, starting from the most likely. This scheme is
2041 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2042 # resort.
2044 # Be careful to initialize this variable, since it used to be cached.
2045 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2046 ac_cv_exeext=
2047 # b.out is created by i960 compilers.
2048 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2050 test -f "$ac_file" || continue
2051 case $ac_file in
2052 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2054 conftest.$ac_ext )
2055 # This is the source file.
2057 [ab].out )
2058 # We found the default executable, but exeext='' is most
2059 # certainly right.
2060 break;;
2061 *.* )
2062 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2063 # FIXME: I believe we export ac_cv_exeext for Libtool,
2064 # but it would be cool to find out if it's true. Does anybody
2065 # maintain Libtool? --akim.
2066 export ac_cv_exeext
2067 break;;
2069 break;;
2070 esac
2071 done
2072 else
2073 echo "$as_me: failed program was:" >&5
2074 sed 's/^/| /' conftest.$ac_ext >&5
2076 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2077 See \`config.log' for more details." >&5
2078 echo "$as_me: error: C compiler cannot create executables
2079 See \`config.log' for more details." >&2;}
2080 { (exit 77); exit 77; }; }
2083 ac_exeext=$ac_cv_exeext
2084 echo "$as_me:$LINENO: result: $ac_file" >&5
2085 echo "${ECHO_T}$ac_file" >&6
2087 # Check the compiler produces executables we can run. If not, either
2088 # the compiler is broken, or we cross compile.
2089 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2090 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2091 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2092 # If not cross compiling, check that we can run a simple program.
2093 if test "$cross_compiling" != yes; then
2094 if { ac_try='./$ac_file'
2095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2096 (eval $ac_try) 2>&5
2097 ac_status=$?
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }; }; then
2100 cross_compiling=no
2101 else
2102 if test "$cross_compiling" = maybe; then
2103 cross_compiling=yes
2104 else
2105 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2106 If you meant to cross compile, use \`--host'.
2107 See \`config.log' for more details." >&5
2108 echo "$as_me: error: cannot run C compiled programs.
2109 If you meant to cross compile, use \`--host'.
2110 See \`config.log' for more details." >&2;}
2111 { (exit 1); exit 1; }; }
2115 echo "$as_me:$LINENO: result: yes" >&5
2116 echo "${ECHO_T}yes" >&6
2118 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2119 ac_clean_files=$ac_clean_files_save
2120 # Check the compiler produces executables we can run. If not, either
2121 # the compiler is broken, or we cross compile.
2122 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2123 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2124 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2125 echo "${ECHO_T}$cross_compiling" >&6
2127 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2128 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2130 (eval $ac_link) 2>&5
2131 ac_status=$?
2132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133 (exit $ac_status); }; then
2134 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2135 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2136 # work properly (i.e., refer to `conftest.exe'), while it won't with
2137 # `rm'.
2138 for ac_file in conftest.exe conftest conftest.*; do
2139 test -f "$ac_file" || continue
2140 case $ac_file in
2141 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2142 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2143 export ac_cv_exeext
2144 break;;
2145 * ) break;;
2146 esac
2147 done
2148 else
2149 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2150 See \`config.log' for more details." >&5
2151 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2152 See \`config.log' for more details." >&2;}
2153 { (exit 1); exit 1; }; }
2156 rm -f conftest$ac_cv_exeext
2157 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2158 echo "${ECHO_T}$ac_cv_exeext" >&6
2160 rm -f conftest.$ac_ext
2161 EXEEXT=$ac_cv_exeext
2162 ac_exeext=$EXEEXT
2164 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2165 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2166 if test "${ac_cv_objext+set}" = set; then
2167 echo $ECHO_N "(cached) $ECHO_C" >&6
2168 else
2169 cat >conftest.$ac_ext <<_ACEOF
2170 /* confdefs.h. */
2171 _ACEOF
2172 cat confdefs.h >>conftest.$ac_ext
2173 cat >>conftest.$ac_ext <<_ACEOF
2174 /* end confdefs.h. */
2177 main ()
2181 return 0;
2183 _ACEOF
2184 rm -f conftest.o conftest.obj
2185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2186 (eval $ac_compile) 2>&5
2187 ac_status=$?
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }; then
2190 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2191 case $ac_file in
2192 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2193 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2194 break;;
2195 esac
2196 done
2197 else
2198 echo "$as_me: failed program was:" >&5
2199 sed 's/^/| /' conftest.$ac_ext >&5
2201 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2202 See \`config.log' for more details." >&5
2203 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2204 See \`config.log' for more details." >&2;}
2205 { (exit 1); exit 1; }; }
2208 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2210 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2211 echo "${ECHO_T}$ac_cv_objext" >&6
2212 OBJEXT=$ac_cv_objext
2213 ac_objext=$OBJEXT
2214 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2215 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2216 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2217 echo $ECHO_N "(cached) $ECHO_C" >&6
2218 else
2219 cat >conftest.$ac_ext <<_ACEOF
2220 /* confdefs.h. */
2221 _ACEOF
2222 cat confdefs.h >>conftest.$ac_ext
2223 cat >>conftest.$ac_ext <<_ACEOF
2224 /* end confdefs.h. */
2227 main ()
2229 #ifndef __GNUC__
2230 choke me
2231 #endif
2234 return 0;
2236 _ACEOF
2237 rm -f conftest.$ac_objext
2238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2239 (eval $ac_compile) 2>conftest.er1
2240 ac_status=$?
2241 grep -v '^ *+' conftest.er1 >conftest.err
2242 rm -f conftest.er1
2243 cat conftest.err >&5
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); } &&
2246 { ac_try='test -z "$ac_c_werror_flag"
2247 || test ! -s conftest.err'
2248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2249 (eval $ac_try) 2>&5
2250 ac_status=$?
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }; } &&
2253 { ac_try='test -s conftest.$ac_objext'
2254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2255 (eval $ac_try) 2>&5
2256 ac_status=$?
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; }; then
2259 ac_compiler_gnu=yes
2260 else
2261 echo "$as_me: failed program was:" >&5
2262 sed 's/^/| /' conftest.$ac_ext >&5
2264 ac_compiler_gnu=no
2266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2267 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2270 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2271 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2272 GCC=`test $ac_compiler_gnu = yes && echo yes`
2273 ac_test_CFLAGS=${CFLAGS+set}
2274 ac_save_CFLAGS=$CFLAGS
2275 CFLAGS="-g"
2276 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2277 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2278 if test "${ac_cv_prog_cc_g+set}" = set; then
2279 echo $ECHO_N "(cached) $ECHO_C" >&6
2280 else
2281 cat >conftest.$ac_ext <<_ACEOF
2282 /* confdefs.h. */
2283 _ACEOF
2284 cat confdefs.h >>conftest.$ac_ext
2285 cat >>conftest.$ac_ext <<_ACEOF
2286 /* end confdefs.h. */
2289 main ()
2293 return 0;
2295 _ACEOF
2296 rm -f conftest.$ac_objext
2297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2298 (eval $ac_compile) 2>conftest.er1
2299 ac_status=$?
2300 grep -v '^ *+' conftest.er1 >conftest.err
2301 rm -f conftest.er1
2302 cat conftest.err >&5
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); } &&
2305 { ac_try='test -z "$ac_c_werror_flag"
2306 || test ! -s conftest.err'
2307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2308 (eval $ac_try) 2>&5
2309 ac_status=$?
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311 (exit $ac_status); }; } &&
2312 { ac_try='test -s conftest.$ac_objext'
2313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2314 (eval $ac_try) 2>&5
2315 ac_status=$?
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); }; }; then
2318 ac_cv_prog_cc_g=yes
2319 else
2320 echo "$as_me: failed program was:" >&5
2321 sed 's/^/| /' conftest.$ac_ext >&5
2323 ac_cv_prog_cc_g=no
2325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2327 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2328 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2329 if test "$ac_test_CFLAGS" = set; then
2330 CFLAGS=$ac_save_CFLAGS
2331 elif test $ac_cv_prog_cc_g = yes; then
2332 if test "$GCC" = yes; then
2333 CFLAGS="-g -O2"
2334 else
2335 CFLAGS="-g"
2337 else
2338 if test "$GCC" = yes; then
2339 CFLAGS="-O2"
2340 else
2341 CFLAGS=
2344 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2345 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2346 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2347 echo $ECHO_N "(cached) $ECHO_C" >&6
2348 else
2349 ac_cv_prog_cc_stdc=no
2350 ac_save_CC=$CC
2351 cat >conftest.$ac_ext <<_ACEOF
2352 /* confdefs.h. */
2353 _ACEOF
2354 cat confdefs.h >>conftest.$ac_ext
2355 cat >>conftest.$ac_ext <<_ACEOF
2356 /* end confdefs.h. */
2357 #include <stdarg.h>
2358 #include <stdio.h>
2359 #include <sys/types.h>
2360 #include <sys/stat.h>
2361 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2362 struct buf { int x; };
2363 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2364 static char *e (p, i)
2365 char **p;
2366 int i;
2368 return p[i];
2370 static char *f (char * (*g) (char **, int), char **p, ...)
2372 char *s;
2373 va_list v;
2374 va_start (v,p);
2375 s = g (p, va_arg (v,int));
2376 va_end (v);
2377 return s;
2380 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2381 function prototypes and stuff, but not '\xHH' hex character constants.
2382 These don't provoke an error unfortunately, instead are silently treated
2383 as 'x'. The following induces an error, until -std1 is added to get
2384 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2385 array size at least. It's necessary to write '\x00'==0 to get something
2386 that's true only with -std1. */
2387 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2389 int test (int i, double x);
2390 struct s1 {int (*f) (int a);};
2391 struct s2 {int (*f) (double a);};
2392 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2393 int argc;
2394 char **argv;
2396 main ()
2398 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2400 return 0;
2402 _ACEOF
2403 # Don't try gcc -ansi; that turns off useful extensions and
2404 # breaks some systems' header files.
2405 # AIX -qlanglvl=ansi
2406 # Ultrix and OSF/1 -std1
2407 # HP-UX 10.20 and later -Ae
2408 # HP-UX older versions -Aa -D_HPUX_SOURCE
2409 # SVR4 -Xc -D__EXTENSIONS__
2410 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2412 CC="$ac_save_CC $ac_arg"
2413 rm -f conftest.$ac_objext
2414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2415 (eval $ac_compile) 2>conftest.er1
2416 ac_status=$?
2417 grep -v '^ *+' conftest.er1 >conftest.err
2418 rm -f conftest.er1
2419 cat conftest.err >&5
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); } &&
2422 { ac_try='test -z "$ac_c_werror_flag"
2423 || test ! -s conftest.err'
2424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2425 (eval $ac_try) 2>&5
2426 ac_status=$?
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); }; } &&
2429 { ac_try='test -s conftest.$ac_objext'
2430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2431 (eval $ac_try) 2>&5
2432 ac_status=$?
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }; }; then
2435 ac_cv_prog_cc_stdc=$ac_arg
2436 break
2437 else
2438 echo "$as_me: failed program was:" >&5
2439 sed 's/^/| /' conftest.$ac_ext >&5
2442 rm -f conftest.err conftest.$ac_objext
2443 done
2444 rm -f conftest.$ac_ext conftest.$ac_objext
2445 CC=$ac_save_CC
2449 case "x$ac_cv_prog_cc_stdc" in
2450 x|xno)
2451 echo "$as_me:$LINENO: result: none needed" >&5
2452 echo "${ECHO_T}none needed" >&6 ;;
2454 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2455 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2456 CC="$CC $ac_cv_prog_cc_stdc" ;;
2457 esac
2459 # Some people use a C++ compiler to compile C. Since we use `exit',
2460 # in C++ we need to declare it. In case someone uses the same compiler
2461 # for both compiling C and C++ we need to have the C++ compiler decide
2462 # the declaration of exit, since it's the most demanding environment.
2463 cat >conftest.$ac_ext <<_ACEOF
2464 #ifndef __cplusplus
2465 choke me
2466 #endif
2467 _ACEOF
2468 rm -f conftest.$ac_objext
2469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2470 (eval $ac_compile) 2>conftest.er1
2471 ac_status=$?
2472 grep -v '^ *+' conftest.er1 >conftest.err
2473 rm -f conftest.er1
2474 cat conftest.err >&5
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); } &&
2477 { ac_try='test -z "$ac_c_werror_flag"
2478 || test ! -s conftest.err'
2479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2480 (eval $ac_try) 2>&5
2481 ac_status=$?
2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483 (exit $ac_status); }; } &&
2484 { ac_try='test -s conftest.$ac_objext'
2485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2486 (eval $ac_try) 2>&5
2487 ac_status=$?
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); }; }; then
2490 for ac_declaration in \
2491 '' \
2492 'extern "C" void std::exit (int) throw (); using std::exit;' \
2493 'extern "C" void std::exit (int); using std::exit;' \
2494 'extern "C" void exit (int) throw ();' \
2495 'extern "C" void exit (int);' \
2496 'void exit (int);'
2498 cat >conftest.$ac_ext <<_ACEOF
2499 /* confdefs.h. */
2500 _ACEOF
2501 cat confdefs.h >>conftest.$ac_ext
2502 cat >>conftest.$ac_ext <<_ACEOF
2503 /* end confdefs.h. */
2504 $ac_declaration
2505 #include <stdlib.h>
2507 main ()
2509 exit (42);
2511 return 0;
2513 _ACEOF
2514 rm -f conftest.$ac_objext
2515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2516 (eval $ac_compile) 2>conftest.er1
2517 ac_status=$?
2518 grep -v '^ *+' conftest.er1 >conftest.err
2519 rm -f conftest.er1
2520 cat conftest.err >&5
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); } &&
2523 { ac_try='test -z "$ac_c_werror_flag"
2524 || test ! -s conftest.err'
2525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2526 (eval $ac_try) 2>&5
2527 ac_status=$?
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }; } &&
2530 { ac_try='test -s conftest.$ac_objext'
2531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532 (eval $ac_try) 2>&5
2533 ac_status=$?
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; }; then
2537 else
2538 echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2541 continue
2543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2544 cat >conftest.$ac_ext <<_ACEOF
2545 /* confdefs.h. */
2546 _ACEOF
2547 cat confdefs.h >>conftest.$ac_ext
2548 cat >>conftest.$ac_ext <<_ACEOF
2549 /* end confdefs.h. */
2550 $ac_declaration
2552 main ()
2554 exit (42);
2556 return 0;
2558 _ACEOF
2559 rm -f conftest.$ac_objext
2560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2561 (eval $ac_compile) 2>conftest.er1
2562 ac_status=$?
2563 grep -v '^ *+' conftest.er1 >conftest.err
2564 rm -f conftest.er1
2565 cat conftest.err >&5
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); } &&
2568 { ac_try='test -z "$ac_c_werror_flag"
2569 || test ! -s conftest.err'
2570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571 (eval $ac_try) 2>&5
2572 ac_status=$?
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); }; } &&
2575 { ac_try='test -s conftest.$ac_objext'
2576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577 (eval $ac_try) 2>&5
2578 ac_status=$?
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; }; then
2581 break
2582 else
2583 echo "$as_me: failed program was:" >&5
2584 sed 's/^/| /' conftest.$ac_ext >&5
2587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2588 done
2589 rm -f conftest*
2590 if test -n "$ac_declaration"; then
2591 echo '#ifdef __cplusplus' >>confdefs.h
2592 echo $ac_declaration >>confdefs.h
2593 echo '#endif' >>confdefs.h
2596 else
2597 echo "$as_me: failed program was:" >&5
2598 sed 's/^/| /' conftest.$ac_ext >&5
2601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2602 ac_ext=c
2603 ac_cpp='$CPP $CPPFLAGS'
2604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2608 ac_ext=cc
2609 ac_cpp='$CXXCPP $CPPFLAGS'
2610 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2611 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2612 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2613 if test -n "$ac_tool_prefix"; then
2614 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2616 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2617 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2618 echo "$as_me:$LINENO: checking for $ac_word" >&5
2619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2620 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2621 echo $ECHO_N "(cached) $ECHO_C" >&6
2622 else
2623 if test -n "$CXX"; then
2624 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2625 else
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627 for as_dir in $PATH
2629 IFS=$as_save_IFS
2630 test -z "$as_dir" && as_dir=.
2631 for ac_exec_ext in '' $ac_executable_extensions; do
2632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2633 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2635 break 2
2637 done
2638 done
2642 CXX=$glibcxx_cv_prog_CXX
2643 if test -n "$CXX"; then
2644 echo "$as_me:$LINENO: result: $CXX" >&5
2645 echo "${ECHO_T}$CXX" >&6
2646 else
2647 echo "$as_me:$LINENO: result: no" >&5
2648 echo "${ECHO_T}no" >&6
2651 test -n "$CXX" && break
2652 done
2654 if test -z "$CXX"; then
2655 ac_ct_CXX=$CXX
2656 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2658 # Extract the first word of "$ac_prog", so it can be a program name with args.
2659 set dummy $ac_prog; ac_word=$2
2660 echo "$as_me:$LINENO: checking for $ac_word" >&5
2661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2662 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2663 echo $ECHO_N "(cached) $ECHO_C" >&6
2664 else
2665 if test -n "$ac_ct_CXX"; then
2666 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2667 else
2668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669 for as_dir in $PATH
2671 IFS=$as_save_IFS
2672 test -z "$as_dir" && as_dir=.
2673 for ac_exec_ext in '' $ac_executable_extensions; do
2674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2675 ac_cv_prog_ac_ct_CXX="$ac_prog"
2676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2677 break 2
2679 done
2680 done
2684 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2685 if test -n "$ac_ct_CXX"; then
2686 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2687 echo "${ECHO_T}$ac_ct_CXX" >&6
2688 else
2689 echo "$as_me:$LINENO: result: no" >&5
2690 echo "${ECHO_T}no" >&6
2693 test -n "$ac_ct_CXX" && break
2694 done
2695 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2697 CXX=$ac_ct_CXX
2701 # Provide some information about the compiler.
2702 echo "$as_me:$LINENO:" \
2703 "checking for C++ compiler version" >&5
2704 ac_compiler=`set X $ac_compile; echo $2`
2705 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2706 (eval $ac_compiler --version </dev/null >&5) 2>&5
2707 ac_status=$?
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); }
2710 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2711 (eval $ac_compiler -v </dev/null >&5) 2>&5
2712 ac_status=$?
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); }
2715 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2716 (eval $ac_compiler -V </dev/null >&5) 2>&5
2717 ac_status=$?
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }
2721 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2722 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2723 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2724 echo $ECHO_N "(cached) $ECHO_C" >&6
2725 else
2726 cat >conftest.$ac_ext <<_ACEOF
2727 /* confdefs.h. */
2728 _ACEOF
2729 cat confdefs.h >>conftest.$ac_ext
2730 cat >>conftest.$ac_ext <<_ACEOF
2731 /* end confdefs.h. */
2734 main ()
2736 #ifndef __GNUC__
2737 choke me
2738 #endif
2741 return 0;
2743 _ACEOF
2744 rm -f conftest.$ac_objext
2745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2746 (eval $ac_compile) 2>conftest.er1
2747 ac_status=$?
2748 grep -v '^ *+' conftest.er1 >conftest.err
2749 rm -f conftest.er1
2750 cat conftest.err >&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); } &&
2753 { ac_try='test -z "$ac_cxx_werror_flag"
2754 || test ! -s conftest.err'
2755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756 (eval $ac_try) 2>&5
2757 ac_status=$?
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); }; } &&
2760 { ac_try='test -s conftest.$ac_objext'
2761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762 (eval $ac_try) 2>&5
2763 ac_status=$?
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }; }; then
2766 ac_compiler_gnu=yes
2767 else
2768 echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2771 ac_compiler_gnu=no
2773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2774 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2777 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2778 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2779 GXX=`test $ac_compiler_gnu = yes && echo yes`
2780 ac_test_CXXFLAGS=${CXXFLAGS+set}
2781 ac_save_CXXFLAGS=$CXXFLAGS
2782 CXXFLAGS="-g"
2783 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2784 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2785 if test "${ac_cv_prog_cxx_g+set}" = set; then
2786 echo $ECHO_N "(cached) $ECHO_C" >&6
2787 else
2788 cat >conftest.$ac_ext <<_ACEOF
2789 /* confdefs.h. */
2790 _ACEOF
2791 cat confdefs.h >>conftest.$ac_ext
2792 cat >>conftest.$ac_ext <<_ACEOF
2793 /* end confdefs.h. */
2796 main ()
2800 return 0;
2802 _ACEOF
2803 rm -f conftest.$ac_objext
2804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2805 (eval $ac_compile) 2>conftest.er1
2806 ac_status=$?
2807 grep -v '^ *+' conftest.er1 >conftest.err
2808 rm -f conftest.er1
2809 cat conftest.err >&5
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); } &&
2812 { ac_try='test -z "$ac_cxx_werror_flag"
2813 || test ! -s conftest.err'
2814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2815 (eval $ac_try) 2>&5
2816 ac_status=$?
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); }; } &&
2819 { ac_try='test -s conftest.$ac_objext'
2820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2821 (eval $ac_try) 2>&5
2822 ac_status=$?
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); }; }; then
2825 ac_cv_prog_cxx_g=yes
2826 else
2827 echo "$as_me: failed program was:" >&5
2828 sed 's/^/| /' conftest.$ac_ext >&5
2830 ac_cv_prog_cxx_g=no
2832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2834 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2835 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2836 if test "$ac_test_CXXFLAGS" = set; then
2837 CXXFLAGS=$ac_save_CXXFLAGS
2838 elif test $ac_cv_prog_cxx_g = yes; then
2839 if test "$GXX" = yes; then
2840 CXXFLAGS="-g -O2"
2841 else
2842 CXXFLAGS="-g"
2844 else
2845 if test "$GXX" = yes; then
2846 CXXFLAGS="-O2"
2847 else
2848 CXXFLAGS=
2851 for ac_declaration in \
2852 '' \
2853 'extern "C" void std::exit (int) throw (); using std::exit;' \
2854 'extern "C" void std::exit (int); using std::exit;' \
2855 'extern "C" void exit (int) throw ();' \
2856 'extern "C" void exit (int);' \
2857 'void exit (int);'
2859 cat >conftest.$ac_ext <<_ACEOF
2860 /* confdefs.h. */
2861 _ACEOF
2862 cat confdefs.h >>conftest.$ac_ext
2863 cat >>conftest.$ac_ext <<_ACEOF
2864 /* end confdefs.h. */
2865 $ac_declaration
2866 #include <stdlib.h>
2868 main ()
2870 exit (42);
2872 return 0;
2874 _ACEOF
2875 rm -f conftest.$ac_objext
2876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2877 (eval $ac_compile) 2>conftest.er1
2878 ac_status=$?
2879 grep -v '^ *+' conftest.er1 >conftest.err
2880 rm -f conftest.er1
2881 cat conftest.err >&5
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); } &&
2884 { ac_try='test -z "$ac_cxx_werror_flag"
2885 || test ! -s conftest.err'
2886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2887 (eval $ac_try) 2>&5
2888 ac_status=$?
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }; } &&
2891 { ac_try='test -s conftest.$ac_objext'
2892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2893 (eval $ac_try) 2>&5
2894 ac_status=$?
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); }; }; then
2898 else
2899 echo "$as_me: failed program was:" >&5
2900 sed 's/^/| /' conftest.$ac_ext >&5
2902 continue
2904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2905 cat >conftest.$ac_ext <<_ACEOF
2906 /* confdefs.h. */
2907 _ACEOF
2908 cat confdefs.h >>conftest.$ac_ext
2909 cat >>conftest.$ac_ext <<_ACEOF
2910 /* end confdefs.h. */
2911 $ac_declaration
2913 main ()
2915 exit (42);
2917 return 0;
2919 _ACEOF
2920 rm -f conftest.$ac_objext
2921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2922 (eval $ac_compile) 2>conftest.er1
2923 ac_status=$?
2924 grep -v '^ *+' conftest.er1 >conftest.err
2925 rm -f conftest.er1
2926 cat conftest.err >&5
2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); } &&
2929 { ac_try='test -z "$ac_cxx_werror_flag"
2930 || test ! -s conftest.err'
2931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2932 (eval $ac_try) 2>&5
2933 ac_status=$?
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }; } &&
2936 { ac_try='test -s conftest.$ac_objext'
2937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938 (eval $ac_try) 2>&5
2939 ac_status=$?
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }; }; then
2942 break
2943 else
2944 echo "$as_me: failed program was:" >&5
2945 sed 's/^/| /' conftest.$ac_ext >&5
2948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2949 done
2950 rm -f conftest*
2951 if test -n "$ac_declaration"; then
2952 echo '#ifdef __cplusplus' >>confdefs.h
2953 echo $ac_declaration >>confdefs.h
2954 echo '#endif' >>confdefs.h
2957 ac_ext=c
2958 ac_cpp='$CPP $CPPFLAGS'
2959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2963 CXXFLAGS="$save_CXXFLAGS"
2969 am__api_version="1.9"
2970 # Find a good install program. We prefer a C program (faster),
2971 # so one script is as good as another. But avoid the broken or
2972 # incompatible versions:
2973 # SysV /etc/install, /usr/sbin/install
2974 # SunOS /usr/etc/install
2975 # IRIX /sbin/install
2976 # AIX /bin/install
2977 # AmigaOS /C/install, which installs bootblocks on floppy discs
2978 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2979 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2980 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2981 # OS/2's system install, which has a completely different semantic
2982 # ./install, which can be erroneously created by make from ./install.sh.
2983 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2984 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2985 if test -z "$INSTALL"; then
2986 if test "${ac_cv_path_install+set}" = set; then
2987 echo $ECHO_N "(cached) $ECHO_C" >&6
2988 else
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 for as_dir in $PATH
2992 IFS=$as_save_IFS
2993 test -z "$as_dir" && as_dir=.
2994 # Account for people who put trailing slashes in PATH elements.
2995 case $as_dir/ in
2996 ./ | .// | /cC/* | \
2997 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2998 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2999 /usr/ucb/* ) ;;
3001 # OSF1 and SCO ODT 3.0 have their own names for install.
3002 # Don't use installbsd from OSF since it installs stuff as root
3003 # by default.
3004 for ac_prog in ginstall scoinst install; do
3005 for ac_exec_ext in '' $ac_executable_extensions; do
3006 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3007 if test $ac_prog = install &&
3008 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3009 # AIX install. It has an incompatible calling convention.
3011 elif test $ac_prog = install &&
3012 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3013 # program-specific install script used by HP pwplus--don't use.
3015 else
3016 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3017 break 3
3020 done
3021 done
3023 esac
3024 done
3028 if test "${ac_cv_path_install+set}" = set; then
3029 INSTALL=$ac_cv_path_install
3030 else
3031 # As a last resort, use the slow shell script. We don't cache a
3032 # path for INSTALL within a source directory, because that will
3033 # break other packages using the cache if that directory is
3034 # removed, or if the path is relative.
3035 INSTALL=$ac_install_sh
3038 echo "$as_me:$LINENO: result: $INSTALL" >&5
3039 echo "${ECHO_T}$INSTALL" >&6
3041 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3042 # It thinks the first close brace ends the variable substitution.
3043 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3045 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3047 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3049 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3050 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3051 # Just in case
3052 sleep 1
3053 echo timestamp > conftest.file
3054 # Do `set' in a subshell so we don't clobber the current shell's
3055 # arguments. Must try -L first in case configure is actually a
3056 # symlink; some systems play weird games with the mod time of symlinks
3057 # (eg FreeBSD returns the mod time of the symlink's containing
3058 # directory).
3059 if (
3060 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3061 if test "$*" = "X"; then
3062 # -L didn't work.
3063 set X `ls -t $srcdir/configure conftest.file`
3065 rm -f conftest.file
3066 if test "$*" != "X $srcdir/configure conftest.file" \
3067 && test "$*" != "X conftest.file $srcdir/configure"; then
3069 # If neither matched, then we have a broken ls. This can happen
3070 # if, for instance, CONFIG_SHELL is bash and it inherits a
3071 # broken ls alias from the environment. This has actually
3072 # happened. Such a system could not be considered "sane".
3073 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3074 alias in your environment" >&5
3075 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3076 alias in your environment" >&2;}
3077 { (exit 1); exit 1; }; }
3080 test "$2" = conftest.file
3082 then
3083 # Ok.
3085 else
3086 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3087 Check your system clock" >&5
3088 echo "$as_me: error: newly created file is older than distributed files!
3089 Check your system clock" >&2;}
3090 { (exit 1); exit 1; }; }
3092 echo "$as_me:$LINENO: result: yes" >&5
3093 echo "${ECHO_T}yes" >&6
3094 test "$program_prefix" != NONE &&
3095 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3096 # Use a double $ so make ignores it.
3097 test "$program_suffix" != NONE &&
3098 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3099 # Double any \ or $. echo might interpret backslashes.
3100 # By default was `s,x,x', remove it if useless.
3101 cat <<\_ACEOF >conftest.sed
3102 s/[\\$]/&&/g;s/;s,x,x,$//
3103 _ACEOF
3104 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3105 rm conftest.sed
3107 # expand $ac_aux_dir to an absolute path
3108 am_aux_dir=`cd $ac_aux_dir && pwd`
3110 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3111 # Use eval to expand $SHELL
3112 if eval "$MISSING --run true"; then
3113 am_missing_run="$MISSING --run "
3114 else
3115 am_missing_run=
3116 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3117 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3120 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3121 # We used to keeping the `.' as first argument, in order to
3122 # allow $(mkdir_p) to be used without argument. As in
3123 # $(mkdir_p) $(somedir)
3124 # where $(somedir) is conditionally defined. However this is wrong
3125 # for two reasons:
3126 # 1. if the package is installed by a user who cannot write `.'
3127 # make install will fail,
3128 # 2. the above comment should most certainly read
3129 # $(mkdir_p) $(DESTDIR)$(somedir)
3130 # so it does not work when $(somedir) is undefined and
3131 # $(DESTDIR) is not.
3132 # To support the latter case, we have to write
3133 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3134 # so the `.' trick is pointless.
3135 mkdir_p='mkdir -p --'
3136 else
3137 # On NextStep and OpenStep, the `mkdir' command does not
3138 # recognize any option. It will interpret all options as
3139 # directories to create, and then abort because `.' already
3140 # exists.
3141 for d in ./-p ./--version;
3143 test -d $d && rmdir $d
3144 done
3145 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3146 if test -f "$ac_aux_dir/mkinstalldirs"; then
3147 mkdir_p='$(mkinstalldirs)'
3148 else
3149 mkdir_p='$(install_sh) -d'
3153 for ac_prog in gawk mawk nawk awk
3155 # Extract the first word of "$ac_prog", so it can be a program name with args.
3156 set dummy $ac_prog; ac_word=$2
3157 echo "$as_me:$LINENO: checking for $ac_word" >&5
3158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3159 if test "${ac_cv_prog_AWK+set}" = set; then
3160 echo $ECHO_N "(cached) $ECHO_C" >&6
3161 else
3162 if test -n "$AWK"; then
3163 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3164 else
3165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3166 for as_dir in $PATH
3168 IFS=$as_save_IFS
3169 test -z "$as_dir" && as_dir=.
3170 for ac_exec_ext in '' $ac_executable_extensions; do
3171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3172 ac_cv_prog_AWK="$ac_prog"
3173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3174 break 2
3176 done
3177 done
3181 AWK=$ac_cv_prog_AWK
3182 if test -n "$AWK"; then
3183 echo "$as_me:$LINENO: result: $AWK" >&5
3184 echo "${ECHO_T}$AWK" >&6
3185 else
3186 echo "$as_me:$LINENO: result: no" >&5
3187 echo "${ECHO_T}no" >&6
3190 test -n "$AWK" && break
3191 done
3193 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3194 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3195 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3196 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3197 echo $ECHO_N "(cached) $ECHO_C" >&6
3198 else
3199 cat >conftest.make <<\_ACEOF
3200 all:
3201 @echo 'ac_maketemp="$(MAKE)"'
3202 _ACEOF
3203 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3204 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3205 if test -n "$ac_maketemp"; then
3206 eval ac_cv_prog_make_${ac_make}_set=yes
3207 else
3208 eval ac_cv_prog_make_${ac_make}_set=no
3210 rm -f conftest.make
3212 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3213 echo "$as_me:$LINENO: result: yes" >&5
3214 echo "${ECHO_T}yes" >&6
3215 SET_MAKE=
3216 else
3217 echo "$as_me:$LINENO: result: no" >&5
3218 echo "${ECHO_T}no" >&6
3219 SET_MAKE="MAKE=${MAKE-make}"
3222 rm -rf .tst 2>/dev/null
3223 mkdir .tst 2>/dev/null
3224 if test -d .tst; then
3225 am__leading_dot=.
3226 else
3227 am__leading_dot=_
3229 rmdir .tst 2>/dev/null
3231 DEPDIR="${am__leading_dot}deps"
3233 ac_config_commands="$ac_config_commands depfiles"
3236 am_make=${MAKE-make}
3237 cat > confinc << 'END'
3238 am__doit:
3239 @echo done
3240 .PHONY: am__doit
3242 # If we don't find an include directive, just comment out the code.
3243 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3244 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3245 am__include="#"
3246 am__quote=
3247 _am_result=none
3248 # First try GNU make style include.
3249 echo "include confinc" > confmf
3250 # We grep out `Entering directory' and `Leaving directory'
3251 # messages which can occur if `w' ends up in MAKEFLAGS.
3252 # In particular we don't look at `^make:' because GNU make might
3253 # be invoked under some other name (usually "gmake"), in which
3254 # case it prints its new name instead of `make'.
3255 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3256 am__include=include
3257 am__quote=
3258 _am_result=GNU
3260 # Now try BSD make style include.
3261 if test "$am__include" = "#"; then
3262 echo '.include "confinc"' > confmf
3263 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3264 am__include=.include
3265 am__quote="\""
3266 _am_result=BSD
3271 echo "$as_me:$LINENO: result: $_am_result" >&5
3272 echo "${ECHO_T}$_am_result" >&6
3273 rm -f confinc confmf
3275 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3276 if test "${enable_dependency_tracking+set}" = set; then
3277 enableval="$enable_dependency_tracking"
3280 if test "x$enable_dependency_tracking" != xno; then
3281 am_depcomp="$ac_aux_dir/depcomp"
3282 AMDEPBACKSLASH='\'
3286 if test "x$enable_dependency_tracking" != xno; then
3287 AMDEP_TRUE=
3288 AMDEP_FALSE='#'
3289 else
3290 AMDEP_TRUE='#'
3291 AMDEP_FALSE=
3296 # test to see if srcdir already configured
3297 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3298 test -f $srcdir/config.status; then
3299 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3300 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3301 { (exit 1); exit 1; }; }
3304 # test whether we have cygpath
3305 if test -z "$CYGPATH_W"; then
3306 if (cygpath --version) >/dev/null 2>/dev/null; then
3307 CYGPATH_W='cygpath -w'
3308 else
3309 CYGPATH_W=echo
3314 # Define the identity of the package.
3315 PACKAGE='libjava'
3316 VERSION='version-unused'
3319 cat >>confdefs.h <<_ACEOF
3320 #define PACKAGE "$PACKAGE"
3321 _ACEOF
3324 cat >>confdefs.h <<_ACEOF
3325 #define VERSION "$VERSION"
3326 _ACEOF
3328 # Some tools Automake needs.
3330 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3333 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3336 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3339 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3342 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3344 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3346 # Installed binaries are usually stripped using `strip' when the user
3347 # run `make install-strip'. However `strip' might not be the right
3348 # tool to use in cross-compilation environments, therefore Automake
3349 # will honor the `STRIP' environment variable to overrule this program.
3350 if test "$cross_compiling" != no; then
3351 if test -n "$ac_tool_prefix"; then
3352 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3353 set dummy ${ac_tool_prefix}strip; ac_word=$2
3354 echo "$as_me:$LINENO: checking for $ac_word" >&5
3355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3356 if test "${ac_cv_prog_STRIP+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3358 else
3359 if test -n "$STRIP"; then
3360 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3361 else
3362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363 for as_dir in $PATH
3365 IFS=$as_save_IFS
3366 test -z "$as_dir" && as_dir=.
3367 for ac_exec_ext in '' $ac_executable_extensions; do
3368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3369 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3371 break 2
3373 done
3374 done
3378 STRIP=$ac_cv_prog_STRIP
3379 if test -n "$STRIP"; then
3380 echo "$as_me:$LINENO: result: $STRIP" >&5
3381 echo "${ECHO_T}$STRIP" >&6
3382 else
3383 echo "$as_me:$LINENO: result: no" >&5
3384 echo "${ECHO_T}no" >&6
3388 if test -z "$ac_cv_prog_STRIP"; then
3389 ac_ct_STRIP=$STRIP
3390 # Extract the first word of "strip", so it can be a program name with args.
3391 set dummy strip; ac_word=$2
3392 echo "$as_me:$LINENO: checking for $ac_word" >&5
3393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3394 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3395 echo $ECHO_N "(cached) $ECHO_C" >&6
3396 else
3397 if test -n "$ac_ct_STRIP"; then
3398 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3399 else
3400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3401 for as_dir in $PATH
3403 IFS=$as_save_IFS
3404 test -z "$as_dir" && as_dir=.
3405 for ac_exec_ext in '' $ac_executable_extensions; do
3406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3407 ac_cv_prog_ac_ct_STRIP="strip"
3408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3409 break 2
3411 done
3412 done
3414 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3417 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3418 if test -n "$ac_ct_STRIP"; then
3419 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3420 echo "${ECHO_T}$ac_ct_STRIP" >&6
3421 else
3422 echo "$as_me:$LINENO: result: no" >&5
3423 echo "${ECHO_T}no" >&6
3426 STRIP=$ac_ct_STRIP
3427 else
3428 STRIP="$ac_cv_prog_STRIP"
3432 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3434 # We need awk for the "check" target. The system "awk" is bad on
3435 # some platforms.
3436 # Always define AMTAR for backward compatibility.
3438 AMTAR=${AMTAR-"${am_missing_run}tar"}
3440 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3445 depcc="$CC" am_compiler_list=
3447 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3448 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3449 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3451 else
3452 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3453 # We make a subdir and do the tests there. Otherwise we can end up
3454 # making bogus files that we don't know about and never remove. For
3455 # instance it was reported that on HP-UX the gcc test will end up
3456 # making a dummy file named `D' -- because `-MD' means `put the output
3457 # in D'.
3458 mkdir conftest.dir
3459 # Copy depcomp to subdir because otherwise we won't find it if we're
3460 # using a relative directory.
3461 cp "$am_depcomp" conftest.dir
3462 cd conftest.dir
3463 # We will build objects and dependencies in a subdirectory because
3464 # it helps to detect inapplicable dependency modes. For instance
3465 # both Tru64's cc and ICC support -MD to output dependencies as a
3466 # side effect of compilation, but ICC will put the dependencies in
3467 # the current directory while Tru64 will put them in the object
3468 # directory.
3469 mkdir sub
3471 am_cv_CC_dependencies_compiler_type=none
3472 if test "$am_compiler_list" = ""; then
3473 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3475 for depmode in $am_compiler_list; do
3476 # Setup a source with many dependencies, because some compilers
3477 # like to wrap large dependency lists on column 80 (with \), and
3478 # we should not choose a depcomp mode which is confused by this.
3480 # We need to recreate these files for each test, as the compiler may
3481 # overwrite some of them when testing with obscure command lines.
3482 # This happens at least with the AIX C compiler.
3483 : > sub/conftest.c
3484 for i in 1 2 3 4 5 6; do
3485 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3486 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3487 # Solaris 8's {/usr,}/bin/sh.
3488 touch sub/conftst$i.h
3489 done
3490 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3492 case $depmode in
3493 nosideeffect)
3494 # after this tag, mechanisms are not by side-effect, so they'll
3495 # only be used when explicitly requested
3496 if test "x$enable_dependency_tracking" = xyes; then
3497 continue
3498 else
3499 break
3502 none) break ;;
3503 esac
3504 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3505 # mode. It turns out that the SunPro C++ compiler does not properly
3506 # handle `-M -o', and we need to detect this.
3507 if depmode=$depmode \
3508 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3509 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3510 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3511 >/dev/null 2>conftest.err &&
3512 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3513 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3514 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3515 # icc doesn't choke on unknown options, it will just issue warnings
3516 # or remarks (even with -Werror). So we grep stderr for any message
3517 # that says an option was ignored or not supported.
3518 # When given -MP, icc 7.0 and 7.1 complain thusly:
3519 # icc: Command line warning: ignoring option '-M'; no argument required
3520 # The diagnosis changed in icc 8.0:
3521 # icc: Command line remark: option '-MP' not supported
3522 if (grep 'ignoring option' conftest.err ||
3523 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3524 am_cv_CC_dependencies_compiler_type=$depmode
3525 break
3528 done
3530 cd ..
3531 rm -rf conftest.dir
3532 else
3533 am_cv_CC_dependencies_compiler_type=none
3537 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3538 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3539 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3544 test "x$enable_dependency_tracking" != xno \
3545 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3546 am__fastdepCC_TRUE=
3547 am__fastdepCC_FALSE='#'
3548 else
3549 am__fastdepCC_TRUE='#'
3550 am__fastdepCC_FALSE=
3554 depcc="$CXX" am_compiler_list=
3556 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3557 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3558 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3559 echo $ECHO_N "(cached) $ECHO_C" >&6
3560 else
3561 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3562 # We make a subdir and do the tests there. Otherwise we can end up
3563 # making bogus files that we don't know about and never remove. For
3564 # instance it was reported that on HP-UX the gcc test will end up
3565 # making a dummy file named `D' -- because `-MD' means `put the output
3566 # in D'.
3567 mkdir conftest.dir
3568 # Copy depcomp to subdir because otherwise we won't find it if we're
3569 # using a relative directory.
3570 cp "$am_depcomp" conftest.dir
3571 cd conftest.dir
3572 # We will build objects and dependencies in a subdirectory because
3573 # it helps to detect inapplicable dependency modes. For instance
3574 # both Tru64's cc and ICC support -MD to output dependencies as a
3575 # side effect of compilation, but ICC will put the dependencies in
3576 # the current directory while Tru64 will put them in the object
3577 # directory.
3578 mkdir sub
3580 am_cv_CXX_dependencies_compiler_type=none
3581 if test "$am_compiler_list" = ""; then
3582 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3584 for depmode in $am_compiler_list; do
3585 # Setup a source with many dependencies, because some compilers
3586 # like to wrap large dependency lists on column 80 (with \), and
3587 # we should not choose a depcomp mode which is confused by this.
3589 # We need to recreate these files for each test, as the compiler may
3590 # overwrite some of them when testing with obscure command lines.
3591 # This happens at least with the AIX C compiler.
3592 : > sub/conftest.c
3593 for i in 1 2 3 4 5 6; do
3594 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3595 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3596 # Solaris 8's {/usr,}/bin/sh.
3597 touch sub/conftst$i.h
3598 done
3599 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3601 case $depmode in
3602 nosideeffect)
3603 # after this tag, mechanisms are not by side-effect, so they'll
3604 # only be used when explicitly requested
3605 if test "x$enable_dependency_tracking" = xyes; then
3606 continue
3607 else
3608 break
3611 none) break ;;
3612 esac
3613 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3614 # mode. It turns out that the SunPro C++ compiler does not properly
3615 # handle `-M -o', and we need to detect this.
3616 if depmode=$depmode \
3617 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3618 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3619 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3620 >/dev/null 2>conftest.err &&
3621 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3622 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3623 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3624 # icc doesn't choke on unknown options, it will just issue warnings
3625 # or remarks (even with -Werror). So we grep stderr for any message
3626 # that says an option was ignored or not supported.
3627 # When given -MP, icc 7.0 and 7.1 complain thusly:
3628 # icc: Command line warning: ignoring option '-M'; no argument required
3629 # The diagnosis changed in icc 8.0:
3630 # icc: Command line remark: option '-MP' not supported
3631 if (grep 'ignoring option' conftest.err ||
3632 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3633 am_cv_CXX_dependencies_compiler_type=$depmode
3634 break
3637 done
3639 cd ..
3640 rm -rf conftest.dir
3641 else
3642 am_cv_CXX_dependencies_compiler_type=none
3646 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3647 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3648 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3653 test "x$enable_dependency_tracking" != xno \
3654 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3655 am__fastdepCXX_TRUE=
3656 am__fastdepCXX_FALSE='#'
3657 else
3658 am__fastdepCXX_TRUE='#'
3659 am__fastdepCXX_FALSE=
3665 if test -n "$ac_tool_prefix"; then
3666 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3667 set dummy ${ac_tool_prefix}as; ac_word=$2
3668 echo "$as_me:$LINENO: checking for $ac_word" >&5
3669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3670 if test "${ac_cv_prog_AS+set}" = set; then
3671 echo $ECHO_N "(cached) $ECHO_C" >&6
3672 else
3673 if test -n "$AS"; then
3674 ac_cv_prog_AS="$AS" # Let the user override the test.
3675 else
3676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677 for as_dir in $PATH
3679 IFS=$as_save_IFS
3680 test -z "$as_dir" && as_dir=.
3681 for ac_exec_ext in '' $ac_executable_extensions; do
3682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3683 ac_cv_prog_AS="${ac_tool_prefix}as"
3684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3685 break 2
3687 done
3688 done
3692 AS=$ac_cv_prog_AS
3693 if test -n "$AS"; then
3694 echo "$as_me:$LINENO: result: $AS" >&5
3695 echo "${ECHO_T}$AS" >&6
3696 else
3697 echo "$as_me:$LINENO: result: no" >&5
3698 echo "${ECHO_T}no" >&6
3702 if test -z "$ac_cv_prog_AS"; then
3703 ac_ct_AS=$AS
3704 # Extract the first word of "as", so it can be a program name with args.
3705 set dummy as; ac_word=$2
3706 echo "$as_me:$LINENO: checking for $ac_word" >&5
3707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3708 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
3710 else
3711 if test -n "$ac_ct_AS"; then
3712 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3713 else
3714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715 for as_dir in $PATH
3717 IFS=$as_save_IFS
3718 test -z "$as_dir" && as_dir=.
3719 for ac_exec_ext in '' $ac_executable_extensions; do
3720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3721 ac_cv_prog_ac_ct_AS="as"
3722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3723 break 2
3725 done
3726 done
3730 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3731 if test -n "$ac_ct_AS"; then
3732 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3733 echo "${ECHO_T}$ac_ct_AS" >&6
3734 else
3735 echo "$as_me:$LINENO: result: no" >&5
3736 echo "${ECHO_T}no" >&6
3739 AS=$ac_ct_AS
3740 else
3741 AS="$ac_cv_prog_AS"
3744 if test -n "$ac_tool_prefix"; then
3745 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3746 set dummy ${ac_tool_prefix}ld; ac_word=$2
3747 echo "$as_me:$LINENO: checking for $ac_word" >&5
3748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3749 if test "${ac_cv_prog_LD+set}" = set; then
3750 echo $ECHO_N "(cached) $ECHO_C" >&6
3751 else
3752 if test -n "$LD"; then
3753 ac_cv_prog_LD="$LD" # Let the user override the test.
3754 else
3755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3756 for as_dir in $PATH
3758 IFS=$as_save_IFS
3759 test -z "$as_dir" && as_dir=.
3760 for ac_exec_ext in '' $ac_executable_extensions; do
3761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3762 ac_cv_prog_LD="${ac_tool_prefix}ld"
3763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3764 break 2
3766 done
3767 done
3771 LD=$ac_cv_prog_LD
3772 if test -n "$LD"; then
3773 echo "$as_me:$LINENO: result: $LD" >&5
3774 echo "${ECHO_T}$LD" >&6
3775 else
3776 echo "$as_me:$LINENO: result: no" >&5
3777 echo "${ECHO_T}no" >&6
3781 if test -z "$ac_cv_prog_LD"; then
3782 ac_ct_LD=$LD
3783 # Extract the first word of "ld", so it can be a program name with args.
3784 set dummy ld; ac_word=$2
3785 echo "$as_me:$LINENO: checking for $ac_word" >&5
3786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3787 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3788 echo $ECHO_N "(cached) $ECHO_C" >&6
3789 else
3790 if test -n "$ac_ct_LD"; then
3791 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3792 else
3793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794 for as_dir in $PATH
3796 IFS=$as_save_IFS
3797 test -z "$as_dir" && as_dir=.
3798 for ac_exec_ext in '' $ac_executable_extensions; do
3799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3800 ac_cv_prog_ac_ct_LD="ld"
3801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3802 break 2
3804 done
3805 done
3809 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3810 if test -n "$ac_ct_LD"; then
3811 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
3812 echo "${ECHO_T}$ac_ct_LD" >&6
3813 else
3814 echo "$as_me:$LINENO: result: no" >&5
3815 echo "${ECHO_T}no" >&6
3818 LD=$ac_ct_LD
3819 else
3820 LD="$ac_cv_prog_LD"
3823 if test -n "$ac_tool_prefix"; then
3824 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3825 set dummy ${ac_tool_prefix}ar; ac_word=$2
3826 echo "$as_me:$LINENO: checking for $ac_word" >&5
3827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3828 if test "${ac_cv_prog_AR+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3830 else
3831 if test -n "$AR"; then
3832 ac_cv_prog_AR="$AR" # Let the user override the test.
3833 else
3834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3835 for as_dir in $PATH
3837 IFS=$as_save_IFS
3838 test -z "$as_dir" && as_dir=.
3839 for ac_exec_ext in '' $ac_executable_extensions; do
3840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3841 ac_cv_prog_AR="${ac_tool_prefix}ar"
3842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3843 break 2
3845 done
3846 done
3850 AR=$ac_cv_prog_AR
3851 if test -n "$AR"; then
3852 echo "$as_me:$LINENO: result: $AR" >&5
3853 echo "${ECHO_T}$AR" >&6
3854 else
3855 echo "$as_me:$LINENO: result: no" >&5
3856 echo "${ECHO_T}no" >&6
3860 if test -z "$ac_cv_prog_AR"; then
3861 ac_ct_AR=$AR
3862 # Extract the first word of "ar", so it can be a program name with args.
3863 set dummy ar; ac_word=$2
3864 echo "$as_me:$LINENO: checking for $ac_word" >&5
3865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3866 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
3868 else
3869 if test -n "$ac_ct_AR"; then
3870 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3871 else
3872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873 for as_dir in $PATH
3875 IFS=$as_save_IFS
3876 test -z "$as_dir" && as_dir=.
3877 for ac_exec_ext in '' $ac_executable_extensions; do
3878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3879 ac_cv_prog_ac_ct_AR="ar"
3880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3881 break 2
3883 done
3884 done
3888 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3889 if test -n "$ac_ct_AR"; then
3890 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3891 echo "${ECHO_T}$ac_ct_AR" >&6
3892 else
3893 echo "$as_me:$LINENO: result: no" >&5
3894 echo "${ECHO_T}no" >&6
3897 AR=$ac_ct_AR
3898 else
3899 AR="$ac_cv_prog_AR"
3902 if test -n "$ac_tool_prefix"; then
3903 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3904 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3905 echo "$as_me:$LINENO: checking for $ac_word" >&5
3906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3907 if test "${ac_cv_prog_RANLIB+set}" = set; then
3908 echo $ECHO_N "(cached) $ECHO_C" >&6
3909 else
3910 if test -n "$RANLIB"; then
3911 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3912 else
3913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914 for as_dir in $PATH
3916 IFS=$as_save_IFS
3917 test -z "$as_dir" && as_dir=.
3918 for ac_exec_ext in '' $ac_executable_extensions; do
3919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3920 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3922 break 2
3924 done
3925 done
3929 RANLIB=$ac_cv_prog_RANLIB
3930 if test -n "$RANLIB"; then
3931 echo "$as_me:$LINENO: result: $RANLIB" >&5
3932 echo "${ECHO_T}$RANLIB" >&6
3933 else
3934 echo "$as_me:$LINENO: result: no" >&5
3935 echo "${ECHO_T}no" >&6
3939 if test -z "$ac_cv_prog_RANLIB"; then
3940 ac_ct_RANLIB=$RANLIB
3941 # Extract the first word of "ranlib", so it can be a program name with args.
3942 set dummy ranlib; ac_word=$2
3943 echo "$as_me:$LINENO: checking for $ac_word" >&5
3944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3945 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3946 echo $ECHO_N "(cached) $ECHO_C" >&6
3947 else
3948 if test -n "$ac_ct_RANLIB"; then
3949 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3950 else
3951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3952 for as_dir in $PATH
3954 IFS=$as_save_IFS
3955 test -z "$as_dir" && as_dir=.
3956 for ac_exec_ext in '' $ac_executable_extensions; do
3957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3958 ac_cv_prog_ac_ct_RANLIB="ranlib"
3959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3960 break 2
3962 done
3963 done
3965 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3968 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3969 if test -n "$ac_ct_RANLIB"; then
3970 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3971 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3972 else
3973 echo "$as_me:$LINENO: result: no" >&5
3974 echo "${ECHO_T}no" >&6
3977 RANLIB=$ac_ct_RANLIB
3978 else
3979 RANLIB="$ac_cv_prog_RANLIB"
3982 for ac_prog in gawk mawk nawk awk
3984 # Extract the first word of "$ac_prog", so it can be a program name with args.
3985 set dummy $ac_prog; ac_word=$2
3986 echo "$as_me:$LINENO: checking for $ac_word" >&5
3987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3988 if test "${ac_cv_prog_AWK+set}" = set; then
3989 echo $ECHO_N "(cached) $ECHO_C" >&6
3990 else
3991 if test -n "$AWK"; then
3992 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3993 else
3994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995 for as_dir in $PATH
3997 IFS=$as_save_IFS
3998 test -z "$as_dir" && as_dir=.
3999 for ac_exec_ext in '' $ac_executable_extensions; do
4000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4001 ac_cv_prog_AWK="$ac_prog"
4002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4003 break 2
4005 done
4006 done
4010 AWK=$ac_cv_prog_AWK
4011 if test -n "$AWK"; then
4012 echo "$as_me:$LINENO: result: $AWK" >&5
4013 echo "${ECHO_T}$AWK" >&6
4014 else
4015 echo "$as_me:$LINENO: result: no" >&5
4016 echo "${ECHO_T}no" >&6
4019 test -n "$AWK" && break
4020 done
4022 for ac_prog in jar fastjar
4024 # Extract the first word of "$ac_prog", so it can be a program name with args.
4025 set dummy $ac_prog; ac_word=$2
4026 echo "$as_me:$LINENO: checking for $ac_word" >&5
4027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4028 if test "${ac_cv_prog_JAR+set}" = set; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 else
4031 if test -n "$JAR"; then
4032 ac_cv_prog_JAR="$JAR" # Let the user override the test.
4033 else
4034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4035 for as_dir in $PATH
4037 IFS=$as_save_IFS
4038 test -z "$as_dir" && as_dir=.
4039 for ac_exec_ext in '' $ac_executable_extensions; do
4040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4041 ac_cv_prog_JAR="$ac_prog"
4042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4043 break 2
4045 done
4046 done
4050 JAR=$ac_cv_prog_JAR
4051 if test -n "$JAR"; then
4052 echo "$as_me:$LINENO: result: $JAR" >&5
4053 echo "${ECHO_T}$JAR" >&6
4054 else
4055 echo "$as_me:$LINENO: result: no" >&5
4056 echo "${ECHO_T}no" >&6
4059 test -n "$JAR" && break
4060 done
4061 test -n "$JAR" || JAR="no"
4063 # Extract the first word of "zip", so it can be a program name with args.
4064 set dummy zip; ac_word=$2
4065 echo "$as_me:$LINENO: checking for $ac_word" >&5
4066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4067 if test "${ac_cv_path_ZIP+set}" = set; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4069 else
4070 case $ZIP in
4071 [\\/]* | ?:[\\/]*)
4072 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
4075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076 for as_dir in $PATH
4078 IFS=$as_save_IFS
4079 test -z "$as_dir" && as_dir=.
4080 for ac_exec_ext in '' $ac_executable_extensions; do
4081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4082 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
4083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4084 break 2
4086 done
4087 done
4089 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
4091 esac
4093 ZIP=$ac_cv_path_ZIP
4095 if test -n "$ZIP"; then
4096 echo "$as_me:$LINENO: result: $ZIP" >&5
4097 echo "${ECHO_T}$ZIP" >&6
4098 else
4099 echo "$as_me:$LINENO: result: no" >&5
4100 echo "${ECHO_T}no" >&6
4103 # Extract the first word of "unzip", so it can be a program name with args.
4104 set dummy unzip; ac_word=$2
4105 echo "$as_me:$LINENO: checking for $ac_word" >&5
4106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4107 if test "${ac_cv_path_UNZIP+set}" = set; then
4108 echo $ECHO_N "(cached) $ECHO_C" >&6
4109 else
4110 case $UNZIP in
4111 [\\/]* | ?:[\\/]*)
4112 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
4115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4116 for as_dir in $PATH
4118 IFS=$as_save_IFS
4119 test -z "$as_dir" && as_dir=.
4120 for ac_exec_ext in '' $ac_executable_extensions; do
4121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4122 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
4123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4124 break 2
4126 done
4127 done
4129 test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
4131 esac
4133 UNZIP=$ac_cv_path_UNZIP
4135 if test -n "$UNZIP"; then
4136 echo "$as_me:$LINENO: result: $UNZIP" >&5
4137 echo "${ECHO_T}$UNZIP" >&6
4138 else
4139 echo "$as_me:$LINENO: result: no" >&5
4140 echo "${ECHO_T}no" >&6
4145 if test "$JAR" = no; then
4146 BASH_JAR_TRUE=
4147 BASH_JAR_FALSE='#'
4148 else
4149 BASH_JAR_TRUE='#'
4150 BASH_JAR_FALSE=
4153 if test "$ZIP" = no; then
4154 if test "$JAR" = no; then
4155 { { echo "$as_me:$LINENO: error: cannot find neither zip nor jar, cannot continue" >&5
4156 echo "$as_me: error: cannot find neither zip nor jar, cannot continue" >&2;}
4157 { (exit 1); exit 1; }; }
4159 else
4160 # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
4161 JAR=`pwd`/scripts/jar
4164 # Find a good install program. We prefer a C program (faster),
4165 # so one script is as good as another. But avoid the broken or
4166 # incompatible versions:
4167 # SysV /etc/install, /usr/sbin/install
4168 # SunOS /usr/etc/install
4169 # IRIX /sbin/install
4170 # AIX /bin/install
4171 # AmigaOS /C/install, which installs bootblocks on floppy discs
4172 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4173 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4174 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4175 # OS/2's system install, which has a completely different semantic
4176 # ./install, which can be erroneously created by make from ./install.sh.
4177 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4178 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4179 if test -z "$INSTALL"; then
4180 if test "${ac_cv_path_install+set}" = set; then
4181 echo $ECHO_N "(cached) $ECHO_C" >&6
4182 else
4183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184 for as_dir in $PATH
4186 IFS=$as_save_IFS
4187 test -z "$as_dir" && as_dir=.
4188 # Account for people who put trailing slashes in PATH elements.
4189 case $as_dir/ in
4190 ./ | .// | /cC/* | \
4191 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4192 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4193 /usr/ucb/* ) ;;
4195 # OSF1 and SCO ODT 3.0 have their own names for install.
4196 # Don't use installbsd from OSF since it installs stuff as root
4197 # by default.
4198 for ac_prog in ginstall scoinst install; do
4199 for ac_exec_ext in '' $ac_executable_extensions; do
4200 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4201 if test $ac_prog = install &&
4202 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4203 # AIX install. It has an incompatible calling convention.
4205 elif test $ac_prog = install &&
4206 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4207 # program-specific install script used by HP pwplus--don't use.
4209 else
4210 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4211 break 3
4214 done
4215 done
4217 esac
4218 done
4222 if test "${ac_cv_path_install+set}" = set; then
4223 INSTALL=$ac_cv_path_install
4224 else
4225 # As a last resort, use the slow shell script. We don't cache a
4226 # path for INSTALL within a source directory, because that will
4227 # break other packages using the cache if that directory is
4228 # removed, or if the path is relative.
4229 INSTALL=$ac_install_sh
4232 echo "$as_me:$LINENO: result: $INSTALL" >&5
4233 echo "${ECHO_T}$INSTALL" >&6
4235 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4236 # It thinks the first close brace ends the variable substitution.
4237 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4239 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4241 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4244 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4245 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4246 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4247 if test "${enable_maintainer_mode+set}" = set; then
4248 enableval="$enable_maintainer_mode"
4249 USE_MAINTAINER_MODE=$enableval
4250 else
4251 USE_MAINTAINER_MODE=no
4253 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4254 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4257 if test $USE_MAINTAINER_MODE = yes; then
4258 MAINTAINER_MODE_TRUE=
4259 MAINTAINER_MODE_FALSE='#'
4260 else
4261 MAINTAINER_MODE_TRUE='#'
4262 MAINTAINER_MODE_FALSE=
4265 MAINT=$MAINTAINER_MODE_TRUE
4271 # configure.host sets the following important variables
4272 # libgcj_cflags - host specific C compiler flags
4273 # libgcj_cxxflags - host specific C++ compiler flags
4274 # libgcj_javaflags - host specific Java compiler flags
4276 libgcj_cflags=
4277 libgcj_cxxflags=
4278 libgcj_javaflags=
4280 . ${srcdir}/configure.host
4282 LIBGCJ_CFLAGS="${libgcj_cflags}"
4283 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4284 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4285 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4291 # Only use libltdl for non-newlib builds.
4292 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4293 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
4294 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4295 library_names_spec=
4296 libname_spec='lib$name'
4297 soname_spec=
4298 shrext=".so"
4299 postinstall_cmds=
4300 postuninstall_cmds=
4301 finish_cmds=
4302 finish_eval=
4303 shlibpath_var=
4304 shlibpath_overrides_runpath=unknown
4305 version_type=none
4306 dynamic_linker="$host_os ld.so"
4307 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4308 if test "$GCC" = yes; then
4309 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4310 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
4311 # if the path contains ";" then we assume it to be the separator
4312 # otherwise default to the standard path separator (i.e. ":") - it is
4313 # assumed that no part of a normal pathname contains ";" but that should
4314 # okay in the real world where ";" in dirpaths is itself problematic.
4315 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4316 else
4317 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4319 else
4320 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4322 need_lib_prefix=unknown
4323 hardcode_into_libs=no
4325 # when you set need_version to no, make sure it does not cause -set_version
4326 # flags to be left without arguments
4327 need_version=unknown
4329 case $host_os in
4330 aix3*)
4331 version_type=linux
4332 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4333 shlibpath_var=LIBPATH
4335 # AIX 3 has no versioning support, so we append a major version to the name.
4336 soname_spec='${libname}${release}${shared_ext}$major'
4339 aix4* | aix5*)
4340 version_type=linux
4341 need_lib_prefix=no
4342 need_version=no
4343 hardcode_into_libs=yes
4344 if test "$host_cpu" = ia64; then
4345 # AIX 5 supports IA64
4346 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4347 shlibpath_var=LD_LIBRARY_PATH
4348 else
4349 # With GCC up to 2.95.x, collect2 would create an import file
4350 # for dependence libraries. The import file would start with
4351 # the line `#! .'. This would cause the generated library to
4352 # depend on `.', always an invalid library. This was fixed in
4353 # development snapshots of GCC prior to 3.0.
4354 case $host_os in
4355 aix4 | aix4.[01] | aix4.[01].*)
4356 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4357 echo ' yes '
4358 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4360 else
4361 can_build_shared=no
4364 esac
4365 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4366 # soname into executable. Probably we can add versioning support to
4367 # collect2, so additional links can be useful in future.
4368 if test "$aix_use_runtimelinking" = yes; then
4369 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4370 # instead of lib<name>.a to let people know that these are not
4371 # typical AIX shared libraries.
4372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4373 else
4374 # We preserve .a as extension for shared libraries through AIX4.2
4375 # and later when we are not doing run time linking.
4376 library_names_spec='${libname}${release}.a $libname.a'
4377 soname_spec='${libname}${release}${shared_ext}$major'
4379 shlibpath_var=LIBPATH
4383 amigaos*)
4384 library_names_spec='$libname.ixlibrary $libname.a'
4385 # Create ${libname}_ixlibrary.a entries in /sys/libs.
4386 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
4389 beos*)
4390 library_names_spec='${libname}${shared_ext}'
4391 dynamic_linker="$host_os ld.so"
4392 shlibpath_var=LIBRARY_PATH
4395 bsdi4*)
4396 version_type=linux
4397 need_version=no
4398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4399 soname_spec='${libname}${release}${shared_ext}$major'
4400 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4401 shlibpath_var=LD_LIBRARY_PATH
4402 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4403 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4404 # the default ld.so.conf also contains /usr/contrib/lib and
4405 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4406 # libtool to hard-code these into programs
4409 cygwin* | mingw* | pw32*)
4410 version_type=windows
4411 shrext=".dll"
4412 need_version=no
4413 need_lib_prefix=no
4415 case $GCC,$host_os in
4416 yes,cygwin* | yes,mingw* | yes,pw32*)
4417 library_names_spec='$libname.dll.a'
4418 # DLL is installed to $(libdir)/../bin by postinstall_cmds
4419 postinstall_cmds='base_file=`basename \${file}`~
4420 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
4421 dldir=$destdir/`dirname \$dlpath`~
4422 test -d \$dldir || mkdir -p \$dldir~
4423 $install_prog $dir/$dlname \$dldir/$dlname'
4424 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4425 dlpath=$dir/\$dldll~
4426 $rm \$dlpath'
4427 shlibpath_overrides_runpath=yes
4429 case $host_os in
4430 cygwin*)
4431 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4432 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4433 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
4435 mingw*)
4436 # MinGW DLLs use traditional 'lib' prefix
4437 soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4438 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4439 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
4440 # It is most probably a Windows format PATH printed by
4441 # mingw gcc, but we are running on Cygwin. Gcc prints its search
4442 # path with ; separators, and with drive letters. We can handle the
4443 # drive letters (cygwin fileutils understands them), so leave them,
4444 # especially as we might pass files found there to a mingw objdump,
4445 # which wouldn't understand a cygwinified path. Ahh.
4446 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4447 else
4448 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4451 pw32*)
4452 # pw32 DLLs use 'pw' prefix rather than 'lib'
4453 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
4455 esac
4459 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
4461 esac
4462 dynamic_linker='Win32 ld.exe'
4463 # FIXME: first we should search . and the directory the executable is in
4464 shlibpath_var=PATH
4467 darwin* | rhapsody*)
4468 dynamic_linker="$host_os dyld"
4469 version_type=darwin
4470 need_lib_prefix=no
4471 need_version=no
4472 # FIXME: Relying on posixy $() will cause problems for
4473 # cross-compilation, but unfortunately the echo tests do not
4474 # yet detect zsh echo's removal of \ escapes.
4475 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4476 soname_spec='${libname}${release}${major}$shared_ext'
4477 shlibpath_overrides_runpath=yes
4478 shlibpath_var=DYLD_LIBRARY_PATH
4479 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
4480 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
4481 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
4482 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
4484 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4487 dgux*)
4488 version_type=linux
4489 need_lib_prefix=no
4490 need_version=no
4491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4492 soname_spec='${libname}${release}${shared_ext}$major'
4493 shlibpath_var=LD_LIBRARY_PATH
4496 freebsd1*)
4497 dynamic_linker=no
4500 freebsd*)
4501 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4502 version_type=freebsd-$objformat
4503 case $version_type in
4504 freebsd-elf*)
4505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4506 need_version=no
4507 need_lib_prefix=no
4509 freebsd-*)
4510 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4511 need_version=yes
4513 esac
4514 shlibpath_var=LD_LIBRARY_PATH
4515 case $host_os in
4516 freebsd2*)
4517 shlibpath_overrides_runpath=yes
4519 freebsd3.01* | freebsdelf3.01*)
4520 shlibpath_overrides_runpath=yes
4521 hardcode_into_libs=yes
4523 *) # from 3.2 on
4524 shlibpath_overrides_runpath=no
4525 hardcode_into_libs=yes
4527 esac
4530 gnu*)
4531 version_type=linux
4532 need_lib_prefix=no
4533 need_version=no
4534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4535 soname_spec='${libname}${release}${shared_ext}$major'
4536 shlibpath_var=LD_LIBRARY_PATH
4537 hardcode_into_libs=yes
4540 hpux9* | hpux10* | hpux11*)
4541 # Give a soname corresponding to the major version so that dld.sl refuses to
4542 # link against other versions.
4543 version_type=sunos
4544 need_lib_prefix=no
4545 need_version=no
4546 case "$host_cpu" in
4547 ia64*)
4548 shrext='.so'
4549 hardcode_into_libs=yes
4550 dynamic_linker="$host_os dld.so"
4551 shlibpath_var=LD_LIBRARY_PATH
4552 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4554 soname_spec='${libname}${release}${shared_ext}$major'
4555 if test "X$HPUX_IA64_MODE" = X32; then
4556 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4557 else
4558 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4560 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4562 hppa*64*)
4563 shrext='.sl'
4564 hardcode_into_libs=yes
4565 dynamic_linker="$host_os dld.sl"
4566 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4567 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4569 soname_spec='${libname}${release}${shared_ext}$major'
4570 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
4571 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4574 shrext='.sl'
4575 dynamic_linker="$host_os dld.sl"
4576 shlibpath_var=SHLIB_PATH
4577 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4579 soname_spec='${libname}${release}${shared_ext}$major'
4581 esac
4582 # HP-UX runs *really* slowly unless shared libraries are mode 555.
4583 postinstall_cmds='chmod 555 $lib'
4586 irix5* | irix6* | nonstopux*)
4587 case $host_os in
4588 nonstopux*) version_type=nonstopux ;;
4590 if test "$lt_cv_prog_gnu_ld" = yes; then
4591 version_type=linux
4592 else
4593 version_type=irix
4594 fi ;;
4595 esac
4596 need_lib_prefix=no
4597 need_version=no
4598 soname_spec='${libname}${release}${shared_ext}$major'
4599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4600 case $host_os in
4601 irix5* | nonstopux*)
4602 libsuff= shlibsuff=
4605 case $LD in # libtool.m4 will add one of these switches to LD
4606 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
4607 libsuff= shlibsuff= libmagic=32-bit;;
4608 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
4609 libsuff=32 shlibsuff=N32 libmagic=N32;;
4610 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
4611 libsuff=64 shlibsuff=64 libmagic=64-bit;;
4612 *) libsuff= shlibsuff= libmagic=never-match;;
4613 esac
4615 esac
4616 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4617 shlibpath_overrides_runpath=no
4618 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4619 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4620 hardcode_into_libs=yes
4623 # No shared lib support for Linux oldld, aout, or coff.
4624 linux*oldld* | linux*aout* | linux*coff*)
4625 dynamic_linker=no
4628 # This must be Linux ELF.
4629 linux*)
4630 version_type=linux
4631 need_lib_prefix=no
4632 need_version=no
4633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4634 soname_spec='${libname}${release}${shared_ext}$major'
4635 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4636 shlibpath_var=LD_LIBRARY_PATH
4637 shlibpath_overrides_runpath=no
4638 # This implies no fast_install, which is unacceptable.
4639 # Some rework will be needed to allow for fast_install
4640 # before this can be enabled.
4641 hardcode_into_libs=yes
4643 # We used to test for /lib/ld.so.1 and disable shared libraries on
4644 # powerpc, because MkLinux only supported shared libraries with the
4645 # GNU dynamic linker. Since this was broken with cross compilers,
4646 # most powerpc-linux boxes support dynamic linking these days and
4647 # people can always --disable-shared, the test was removed, and we
4648 # assume the GNU/Linux dynamic linker is in use.
4649 dynamic_linker='GNU/Linux ld.so'
4652 netbsd*)
4653 version_type=sunos
4654 need_lib_prefix=no
4655 need_version=no
4656 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4658 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4659 dynamic_linker='NetBSD (a.out) ld.so'
4660 else
4661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
4662 soname_spec='${libname}${release}${shared_ext}$major'
4663 dynamic_linker='NetBSD ld.elf_so'
4665 shlibpath_var=LD_LIBRARY_PATH
4666 shlibpath_overrides_runpath=yes
4667 hardcode_into_libs=yes
4670 newsos6)
4671 version_type=linux
4672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4673 shlibpath_var=LD_LIBRARY_PATH
4674 shlibpath_overrides_runpath=yes
4677 nto-qnx)
4678 version_type=linux
4679 need_lib_prefix=no
4680 need_version=no
4681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4682 soname_spec='${libname}${release}${shared_ext}$major'
4683 shlibpath_var=LD_LIBRARY_PATH
4684 shlibpath_overrides_runpath=yes
4687 openbsd*)
4688 version_type=sunos
4689 need_lib_prefix=no
4690 need_version=no
4691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4692 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4693 shlibpath_var=LD_LIBRARY_PATH
4694 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4695 case $host_os in
4696 openbsd2.[89] | openbsd2.[89].*)
4697 shlibpath_overrides_runpath=no
4700 shlibpath_overrides_runpath=yes
4702 esac
4703 else
4704 shlibpath_overrides_runpath=yes
4708 os2*)
4709 libname_spec='$name'
4710 shrext=".dll"
4711 need_lib_prefix=no
4712 library_names_spec='$libname${shared_ext} $libname.a'
4713 dynamic_linker='OS/2 ld.exe'
4714 shlibpath_var=LIBPATH
4717 osf3* | osf4* | osf5*)
4718 version_type=osf
4719 need_lib_prefix=no
4720 need_version=no
4721 soname_spec='${libname}${release}${shared_ext}$major'
4722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4723 shlibpath_var=LD_LIBRARY_PATH
4724 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4725 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4728 sco3.2v5*)
4729 version_type=osf
4730 soname_spec='${libname}${release}${shared_ext}$major'
4731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4732 shlibpath_var=LD_LIBRARY_PATH
4735 solaris*)
4736 version_type=linux
4737 need_lib_prefix=no
4738 need_version=no
4739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4740 soname_spec='${libname}${release}${shared_ext}$major'
4741 shlibpath_var=LD_LIBRARY_PATH
4742 shlibpath_overrides_runpath=yes
4743 hardcode_into_libs=yes
4744 # ldd complains unless libraries are executable
4745 postinstall_cmds='chmod +x $lib'
4748 sunos4*)
4749 version_type=sunos
4750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4751 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4752 shlibpath_var=LD_LIBRARY_PATH
4753 shlibpath_overrides_runpath=yes
4754 if test "$with_gnu_ld" = yes; then
4755 need_lib_prefix=no
4757 need_version=yes
4760 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4761 version_type=linux
4762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4763 soname_spec='${libname}${release}${shared_ext}$major'
4764 shlibpath_var=LD_LIBRARY_PATH
4765 case $host_vendor in
4766 sni)
4767 shlibpath_overrides_runpath=no
4768 need_lib_prefix=no
4769 export_dynamic_flag_spec='${wl}-Blargedynsym'
4770 runpath_var=LD_RUN_PATH
4772 siemens)
4773 need_lib_prefix=no
4775 motorola)
4776 need_lib_prefix=no
4777 need_version=no
4778 shlibpath_overrides_runpath=no
4779 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4781 esac
4784 sysv4*MP*)
4785 if test -d /usr/nec ;then
4786 version_type=linux
4787 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
4788 soname_spec='$libname${shared_ext}.$major'
4789 shlibpath_var=LD_LIBRARY_PATH
4793 uts4*)
4794 version_type=linux
4795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4796 soname_spec='${libname}${release}${shared_ext}$major'
4797 shlibpath_var=LD_LIBRARY_PATH
4801 dynamic_linker=no
4803 esac
4804 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
4805 echo "${ECHO_T}$dynamic_linker" >&6
4806 test "$dynamic_linker" = no && can_build_shared=no
4809 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
4810 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
4811 if test "${libltdl_cv_shlibpath_var+set}" = set; then
4812 echo $ECHO_N "(cached) $ECHO_C" >&6
4813 else
4814 libltdl_cv_shlibpath_var="$shlibpath_var"
4816 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
4817 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
4818 if test -n "$libltdl_cv_shlibpath_var"; then
4820 cat >>confdefs.h <<_ACEOF
4821 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
4822 _ACEOF
4828 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
4831 # See if the user has requested runtime debugging.
4832 LIBGCJDEBUG="disable"
4834 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
4835 if test "${enable_libgcj_debug+set}" = set; then
4836 enableval="$enable_libgcj_debug"
4837 if test "$enable_libgcj_debug" = yes; then
4839 cat >>confdefs.h <<\_ACEOF
4840 #define DEBUG 1
4841 _ACEOF
4843 LIBGCJDEBUG="enable"
4847 # Determine which AWT peer libraries to build
4848 # Check whether --enable-java-awt or --disable-java-awt was given.
4849 if test "${enable_java_awt+set}" = set; then
4850 enableval="$enable_java_awt"
4854 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
4855 use_xlib_awt=""
4856 use_gtk_awt=""
4857 use_qt_awt=""
4858 # The default toolkit to use is the first one specified.
4859 TOOLKIT=
4862 for peer in $peerlibs ; do
4863 case $peer in
4864 xlib)
4865 if test "$no_x" = yes; then
4866 echo "*** xlib peers requested but no X library available" 1>&2
4867 exit 1
4868 else
4869 use_xlib_awt="yes"
4870 if test -z "$TOOLKIT"; then
4871 TOOLKIT=gnu.awt.xlib.XToolkit
4875 gtk)
4876 if test "$no_x" = yes; then
4877 echo "*** gtk peers requested but no X library available" 1>&2
4878 exit 1
4879 else
4880 use_gtk_awt=yes
4881 if test -z "$TOOLKIT"; then
4882 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
4887 if test "$no_x" = yes; then
4888 # Perhaps we should admit the possibility of embedded Qt.
4889 echo "*** Qt peers requested but no X library available" 1>&2
4890 exit 1
4891 else
4892 use_qt_awt=yes
4893 if test -z "$TOOLKIT"; then
4894 TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
4899 use_xlib_awt=
4900 use_gtk_awt=
4901 use_qt_awt=
4902 break
4905 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
4906 exit 1
4907 esac
4908 done
4912 if test "$use_xlib_awt" = yes; then
4913 XLIB_AWT_TRUE=
4914 XLIB_AWT_FALSE='#'
4915 else
4916 XLIB_AWT_TRUE='#'
4917 XLIB_AWT_FALSE=
4921 # Create standard.omit based on decisions we just made.
4922 cp $srcdir/standard.omit.in standard.omit
4923 if test "$use_xlib_awt" != yes; then
4924 echo gnu/awt/xlib >> standard.omit
4925 echo gnu/gcj/xlib >> standard.omit
4928 if test -z "${with_multisubdir}"; then
4929 builddotdot=.
4930 else
4931 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
4934 NATIVE=yes
4936 # Which gcj do we use?
4937 which_gcj=default
4938 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
4939 if test -n "${with_cross_host}"; then
4940 # We are being configured with a cross compiler. We can't
4941 # use ac_exeext, because that is for the target platform.
4942 NATIVE=no
4943 cross_host_exeext=
4944 case "${with_cross_host}" in
4945 *mingw* | *cygwin*)
4946 cross_host_exeext=.exe
4948 esac
4949 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
4950 if test x"$build_noncanonical" = x"$with_cross_host"; then
4951 # Ordinary cross (host!=target and host=build)
4952 which_gcj=built
4953 else
4954 # Canadian cross (host!=target and host!=build)
4955 which_gcj=cross
4957 else
4958 which_gcj=cross
4960 else
4961 # We are being configured with a native or crossed-native compiler
4962 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
4963 if test x"$build" = x"$host"; then
4964 # True native build (host=target and host=build)
4965 which_gcj=built
4966 else
4967 # Crossed-native build (host=target and host!=build)
4968 which_gcj=cross
4970 else
4971 which_gcj=path
4974 case "${which_gcj}" in
4975 built)
4976 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
4977 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
4979 cross)
4980 if test "x${with_newlib}" = "xyes"; then
4981 # FIXME (comment): Why is this needed?
4982 GCC_UNWIND_INCLUDE=
4983 GCJ="${target_noncanonical}-gcj"
4984 else
4985 GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
4987 GCJH='$(target_noncanonical)-gcjh'
4989 path)
4990 GCJ="gcj -B`${PWDCMD-pwd}`/"
4991 GCJH=gcjh
4993 esac
4997 # Create it, so that compile/link tests don't fail
4998 test -f libgcj.spec || touch libgcj.spec
5002 # Set up to configure Classpath.
5003 # FIXME: no supported way to pass args in autoconf.
5004 ac_configure_args="$ac_configure_args --with-fastjar=$JAR"
5005 ac_configure_args="$ac_configure_args --enable-tool-wrappers"
5006 ac_configure_args="$ac_configure_args --disable-load-library"
5007 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
5008 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
5009 dir1=`cd $srcdir && pwd`
5010 dir2=`pwd`
5011 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
5012 ac_configure_args="$ac_configure_args --disable-core-jni"
5013 ac_configure_args="$ac_configure_args --disable-examples"
5014 ac_configure_args="$ac_configure_args --with-glibj=build"
5015 if test "$plugin_enabled" != yes; then
5016 ac_configure_args="$ac_configure_args --disable-plugin"
5018 if test "$use_gtk_awt" != yes; then
5019 ac_configure_args="$ac_configure_args --disable-gtk-peer"
5021 if test "$use_qt_awt" != yes; then
5022 ac_configure_args="$ac_configure_args --disable-qt-peer"
5023 else
5024 # We need this as qt is disabled by default in classpath.
5025 ac_configure_args="$ac_configure_args --enable-qt-peer"
5028 # Only use libltdl for non-newlib builds.
5029 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5030 case $enable_ltdl_convenience in
5031 no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
5032 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
5033 { (exit 1); exit 1; }; } ;;
5034 "") enable_ltdl_convenience=yes
5035 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
5036 esac
5037 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
5038 INCLTDL='-I${top_srcdir}/''libltdl'
5041 DIRLTDL=libltdl
5043 cat >>confdefs.h <<\_ACEOF
5044 #define USE_LTDL 1
5045 _ACEOF
5047 # Sigh. Libtool's macro doesn't do the right thing.
5048 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
5049 # FIXME: this is a hack.
5050 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
5051 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
5056 # Check whether --enable-shared or --disable-shared was given.
5057 if test "${enable_shared+set}" = set; then
5058 enableval="$enable_shared"
5059 p=${PACKAGE-default}
5060 case $enableval in
5061 yes) enable_shared=yes ;;
5062 no) enable_shared=no ;;
5064 enable_shared=no
5065 # Look at the argument we got. We use all the common list separators.
5066 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5067 for pkg in $enableval; do
5068 if test "X$pkg" = "X$p"; then
5069 enable_shared=yes
5071 done
5072 IFS="$ac_save_ifs"
5074 esac
5075 else
5076 enable_shared=yes
5078 # Check whether --enable-static or --disable-static was given.
5079 if test "${enable_static+set}" = set; then
5080 enableval="$enable_static"
5081 p=${PACKAGE-default}
5082 case $enableval in
5083 yes) enable_static=yes ;;
5084 no) enable_static=no ;;
5086 enable_static=no
5087 # Look at the argument we got. We use all the common list separators.
5088 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5089 for pkg in $enableval; do
5090 if test "X$pkg" = "X$p"; then
5091 enable_static=yes
5093 done
5094 IFS="$ac_save_ifs"
5096 esac
5097 else
5098 enable_static=yes
5100 # Check whether --enable-fast-install or --disable-fast-install was given.
5101 if test "${enable_fast_install+set}" = set; then
5102 enableval="$enable_fast_install"
5103 p=${PACKAGE-default}
5104 case $enableval in
5105 yes) enable_fast_install=yes ;;
5106 no) enable_fast_install=no ;;
5108 enable_fast_install=no
5109 # Look at the argument we got. We use all the common list separators.
5110 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5111 for pkg in $enableval; do
5112 if test "X$pkg" = "X$p"; then
5113 enable_fast_install=yes
5115 done
5116 IFS="$ac_save_ifs"
5118 esac
5119 else
5120 enable_fast_install=yes
5123 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5124 if test "${with_gnu_ld+set}" = set; then
5125 withval="$with_gnu_ld"
5126 test "$withval" = no || with_gnu_ld=yes
5127 else
5128 with_gnu_ld=no
5130 ac_prog=ld
5131 if test "$GCC" = yes; then
5132 # Check if gcc -print-prog-name=ld gives a path.
5133 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5134 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5135 case $host in
5136 *-*-mingw*)
5137 # gcc leaves a trailing carriage return which upsets mingw
5138 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5140 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5141 esac
5142 case $ac_prog in
5143 # Accept absolute paths.
5144 [\\/]* | [A-Za-z]:[\\/]*)
5145 re_direlt='/[^/][^/]*/\.\./'
5146 # Canonicalize the path of ld
5147 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5148 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5149 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5150 done
5151 test -z "$LD" && LD="$ac_prog"
5154 # If it fails, then pretend we aren't using GCC.
5155 ac_prog=ld
5158 # If it is relative, then search for the first ld in PATH.
5159 with_gnu_ld=unknown
5161 esac
5162 elif test "$with_gnu_ld" = yes; then
5163 echo "$as_me:$LINENO: checking for GNU ld" >&5
5164 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5165 else
5166 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5167 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5169 if test "${lt_cv_path_LD+set}" = set; then
5170 echo $ECHO_N "(cached) $ECHO_C" >&6
5171 else
5172 if test -z "$LD"; then
5173 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5174 for ac_dir in $PATH; do
5175 test -z "$ac_dir" && ac_dir=.
5176 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5177 lt_cv_path_LD="$ac_dir/$ac_prog"
5178 # Check to see if the program is GNU ld. I'd rather use --version,
5179 # but apparently some GNU ld's only accept -v.
5180 # Break only if it was the GNU/non-GNU ld that we prefer.
5181 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5182 test "$with_gnu_ld" != no && break
5183 else
5184 test "$with_gnu_ld" != yes && break
5187 done
5188 IFS="$ac_save_ifs"
5189 else
5190 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5194 LD="$lt_cv_path_LD"
5195 if test -n "$LD"; then
5196 echo "$as_me:$LINENO: result: $LD" >&5
5197 echo "${ECHO_T}$LD" >&6
5198 else
5199 echo "$as_me:$LINENO: result: no" >&5
5200 echo "${ECHO_T}no" >&6
5202 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5203 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5204 { (exit 1); exit 1; }; }
5205 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5206 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5207 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5208 echo $ECHO_N "(cached) $ECHO_C" >&6
5209 else
5210 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5211 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5212 lt_cv_prog_gnu_ld=yes
5213 else
5214 lt_cv_prog_gnu_ld=no
5217 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5218 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5219 with_gnu_ld=$lt_cv_prog_gnu_ld
5222 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5223 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5224 if test "${lt_cv_ld_reload_flag+set}" = set; then
5225 echo $ECHO_N "(cached) $ECHO_C" >&6
5226 else
5227 lt_cv_ld_reload_flag='-r'
5229 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5230 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5231 reload_flag=$lt_cv_ld_reload_flag
5232 test -n "$reload_flag" && reload_flag=" $reload_flag"
5234 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5235 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5236 if test "${lt_cv_path_NM+set}" = set; then
5237 echo $ECHO_N "(cached) $ECHO_C" >&6
5238 else
5239 if test -n "$NM"; then
5240 # Let the user override the test.
5241 lt_cv_path_NM="$NM"
5242 else
5243 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5244 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5245 test -z "$ac_dir" && ac_dir=.
5246 tmp_nm=$ac_dir/${ac_tool_prefix}nm
5247 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
5248 # Check to see if the nm accepts a BSD-compat flag.
5249 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5250 # nm: unknown option "B" ignored
5251 # Tru64's nm complains that /dev/null is an invalid object file
5252 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
5253 lt_cv_path_NM="$tmp_nm -B"
5254 break
5255 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
5256 lt_cv_path_NM="$tmp_nm -p"
5257 break
5258 else
5259 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5260 continue # so that we can try to find one that supports BSD flags
5263 done
5264 IFS="$ac_save_ifs"
5265 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5269 NM="$lt_cv_path_NM"
5270 echo "$as_me:$LINENO: result: $NM" >&5
5271 echo "${ECHO_T}$NM" >&6
5273 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
5274 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
5275 if test "${lt_cv_deplibs_check_method+set}" = set; then
5276 echo $ECHO_N "(cached) $ECHO_C" >&6
5277 else
5278 lt_cv_file_magic_cmd='$MAGIC_CMD'
5279 lt_cv_file_magic_test_file=
5280 lt_cv_deplibs_check_method='unknown'
5281 # Need to set the preceding variable on all platforms that support
5282 # interlibrary dependencies.
5283 # 'none' -- dependencies not supported.
5284 # `unknown' -- same as none, but documents that we really don't know.
5285 # 'pass_all' -- all dependencies passed with no checks.
5286 # 'test_compile' -- check by making test program.
5287 # 'file_magic [regex]' -- check by looking for files in library path
5288 # which responds to the $file_magic_cmd with a given egrep regex.
5289 # If you have `file' or equivalent on your system and you're not sure
5290 # whether `pass_all' will *always* work, you probably want this one.
5292 case $host_os in
5293 aix*)
5294 lt_cv_deplibs_check_method=pass_all
5297 beos*)
5298 lt_cv_deplibs_check_method=pass_all
5301 bsdi4*)
5302 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5303 lt_cv_file_magic_cmd='/usr/bin/file -L'
5304 lt_cv_file_magic_test_file=/shlib/libc.so
5307 cygwin* | mingw* |pw32*)
5308 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5309 lt_cv_file_magic_cmd='$OBJDUMP -f'
5312 darwin* | rhapsody*)
5313 # this will be overwritten by pass_all, but leave it in just in case
5314 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5315 lt_cv_file_magic_cmd='/usr/bin/file -L'
5316 case "$host_os" in
5317 rhapsody* | darwin1.012)
5318 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
5320 *) # Darwin 1.3 on
5321 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5323 esac
5324 lt_cv_deplibs_check_method=pass_all
5327 freebsd* | kfreebsd*-gnu)
5328 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5329 case $host_cpu in
5330 i*86 )
5331 # Not sure whether the presence of OpenBSD here was a mistake.
5332 # Let's accept both of them until this is cleared up.
5333 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5334 lt_cv_file_magic_cmd=/usr/bin/file
5335 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5337 esac
5338 else
5339 lt_cv_deplibs_check_method=pass_all
5343 gnu*)
5344 lt_cv_deplibs_check_method=pass_all
5347 hpux10.20*|hpux11*)
5348 case $host_cpu in
5349 hppa*)
5350 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5351 lt_cv_file_magic_cmd=/usr/bin/file
5352 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5354 ia64*)
5355 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5356 lt_cv_file_magic_cmd=/usr/bin/file
5357 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5359 esac
5362 irix5* | irix6*)
5363 case $host_os in
5364 irix5*)
5365 # this will be overridden with pass_all, but let us keep it just in case
5366 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5369 case $LD in
5370 *-32|*"-32 ") libmagic=32-bit;;
5371 *-n32|*"-n32 ") libmagic=N32;;
5372 *-64|*"-64 ") libmagic=64-bit;;
5373 *) libmagic=never-match;;
5374 esac
5375 # this will be overridden with pass_all, but let us keep it just in case
5376 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5378 esac
5379 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5380 lt_cv_deplibs_check_method=pass_all
5383 # This must be Linux ELF.
5384 linux-gnu*)
5385 lt_cv_deplibs_check_method=pass_all
5388 netbsd* | knetbsd*-gnu)
5389 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5390 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
5391 else
5392 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
5396 newsos6)
5397 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5398 lt_cv_file_magic_cmd=/usr/bin/file
5399 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5402 osf3* | osf4* | osf5*)
5403 # this will be overridden with pass_all, but let us keep it just in case
5404 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5405 lt_cv_file_magic_test_file=/shlib/libc.so
5406 lt_cv_deplibs_check_method=pass_all
5409 sco3.2v5*)
5410 lt_cv_deplibs_check_method=pass_all
5413 solaris*)
5414 lt_cv_deplibs_check_method=pass_all
5415 lt_cv_file_magic_test_file=/lib/libc.so
5418 sysv5uw[78]* | sysv4*uw2*)
5419 lt_cv_deplibs_check_method=pass_all
5422 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5423 case $host_vendor in
5424 ncr)
5425 lt_cv_deplibs_check_method=pass_all
5427 motorola)
5428 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]'
5429 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5431 esac
5433 esac
5436 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5437 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5438 file_magic_cmd=$lt_cv_file_magic_cmd
5439 deplibs_check_method=$lt_cv_deplibs_check_method
5444 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5446 # find the maximum length of command line arguments
5447 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5448 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5449 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5450 echo $ECHO_N "(cached) $ECHO_C" >&6
5451 else
5453 teststring="ABCD"
5455 case $build_os in
5456 msdosdjgpp*)
5457 # On DJGPP, this test can blow up pretty badly due to problems in libc
5458 # (any single argument exceeding 2000 bytes causes a buffer overrun
5459 # during glob expansion). Even if it were fixed, the result of this
5460 # check would be larger than it should be.
5461 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5464 cygwin* | mingw*)
5465 # On Win9x/ME, this test blows up -- it succeeds, but takes
5466 # about 5 minutes as the teststring grows exponentially.
5467 # Worse, since 9x/ME are not pre-emptively multitasking,
5468 # you end up with a "frozen" computer, even though with patience
5469 # the test eventually succeeds (with a max line length of 256k).
5470 # Instead, let's just punt: use the minimum linelength reported by
5471 # all of the supported platforms: 8192 (on NT/2K/XP).
5472 lt_cv_sys_max_cmd_len=8192;
5475 amigaos*)
5476 # On AmigaOS with pdksh, this test takes hours, literally.
5477 # So we just punt and use a minimum line length of 8192.
5478 lt_cv_sys_max_cmd_len=8192;
5481 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5482 # This has been around since 386BSD, at least. Likely further.
5483 if test -x /sbin/sysctl; then
5484 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5485 elif test -x /usr/sbin/sysctl; then
5486 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5487 else
5488 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5490 # And add a safety zone
5491 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5492 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5494 esac
5498 if test -n "$lt_cv_sys_max_cmd_len" ; then
5499 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5500 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5501 else
5502 echo "$as_me:$LINENO: result: none" >&5
5503 echo "${ECHO_T}none" >&6
5507 # Only perform the check for file, if the check method requires it
5508 case $deplibs_check_method in
5509 file_magic*)
5510 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5511 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5512 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5513 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5514 echo $ECHO_N "(cached) $ECHO_C" >&6
5515 else
5516 case $MAGIC_CMD in
5518 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5520 ?:/*)
5521 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5524 ac_save_MAGIC_CMD="$MAGIC_CMD"
5525 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5526 ac_dummy="/usr/bin:$PATH"
5527 for ac_dir in $ac_dummy; do
5528 test -z "$ac_dir" && ac_dir=.
5529 if test -f $ac_dir/${ac_tool_prefix}file; then
5530 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5531 if test -n "$file_magic_test_file"; then
5532 case $deplibs_check_method in
5533 "file_magic "*)
5534 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5535 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5536 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5537 egrep "$file_magic_regex" > /dev/null; then
5539 else
5540 cat <<EOF 1>&2
5542 *** Warning: the command libtool uses to detect shared libraries,
5543 *** $file_magic_cmd, produces output that libtool cannot recognize.
5544 *** The result is that libtool may fail to recognize shared libraries
5545 *** as such. This will affect the creation of libtool libraries that
5546 *** depend on shared libraries, but programs linked with such libtool
5547 *** libraries will work regardless of this problem. Nevertheless, you
5548 *** may want to report the problem to your system manager and/or to
5549 *** bug-libtool@gnu.org
5552 fi ;;
5553 esac
5555 break
5557 done
5558 IFS="$ac_save_ifs"
5559 MAGIC_CMD="$ac_save_MAGIC_CMD"
5561 esac
5564 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5565 if test -n "$MAGIC_CMD"; then
5566 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5567 echo "${ECHO_T}$MAGIC_CMD" >&6
5568 else
5569 echo "$as_me:$LINENO: result: no" >&5
5570 echo "${ECHO_T}no" >&6
5573 if test -z "$lt_cv_path_MAGIC_CMD"; then
5574 if test -n "$ac_tool_prefix"; then
5575 echo "$as_me:$LINENO: checking for file" >&5
5576 echo $ECHO_N "checking for file... $ECHO_C" >&6
5577 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5578 echo $ECHO_N "(cached) $ECHO_C" >&6
5579 else
5580 case $MAGIC_CMD in
5582 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5584 ?:/*)
5585 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5588 ac_save_MAGIC_CMD="$MAGIC_CMD"
5589 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5590 ac_dummy="/usr/bin:$PATH"
5591 for ac_dir in $ac_dummy; do
5592 test -z "$ac_dir" && ac_dir=.
5593 if test -f $ac_dir/file; then
5594 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5595 if test -n "$file_magic_test_file"; then
5596 case $deplibs_check_method in
5597 "file_magic "*)
5598 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5599 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5600 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5601 egrep "$file_magic_regex" > /dev/null; then
5603 else
5604 cat <<EOF 1>&2
5606 *** Warning: the command libtool uses to detect shared libraries,
5607 *** $file_magic_cmd, produces output that libtool cannot recognize.
5608 *** The result is that libtool may fail to recognize shared libraries
5609 *** as such. This will affect the creation of libtool libraries that
5610 *** depend on shared libraries, but programs linked with such libtool
5611 *** libraries will work regardless of this problem. Nevertheless, you
5612 *** may want to report the problem to your system manager and/or to
5613 *** bug-libtool@gnu.org
5616 fi ;;
5617 esac
5619 break
5621 done
5622 IFS="$ac_save_ifs"
5623 MAGIC_CMD="$ac_save_MAGIC_CMD"
5625 esac
5628 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5629 if test -n "$MAGIC_CMD"; then
5630 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5631 echo "${ECHO_T}$MAGIC_CMD" >&6
5632 else
5633 echo "$as_me:$LINENO: result: no" >&5
5634 echo "${ECHO_T}no" >&6
5637 else
5638 MAGIC_CMD=:
5644 esac
5646 if test -n "$ac_tool_prefix"; then
5647 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5648 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5649 echo "$as_me:$LINENO: checking for $ac_word" >&5
5650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5651 if test "${ac_cv_prog_RANLIB+set}" = set; then
5652 echo $ECHO_N "(cached) $ECHO_C" >&6
5653 else
5654 if test -n "$RANLIB"; then
5655 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5656 else
5657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658 for as_dir in $PATH
5660 IFS=$as_save_IFS
5661 test -z "$as_dir" && as_dir=.
5662 for ac_exec_ext in '' $ac_executable_extensions; do
5663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5664 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5666 break 2
5668 done
5669 done
5673 RANLIB=$ac_cv_prog_RANLIB
5674 if test -n "$RANLIB"; then
5675 echo "$as_me:$LINENO: result: $RANLIB" >&5
5676 echo "${ECHO_T}$RANLIB" >&6
5677 else
5678 echo "$as_me:$LINENO: result: no" >&5
5679 echo "${ECHO_T}no" >&6
5683 if test -z "$ac_cv_prog_RANLIB"; then
5684 ac_ct_RANLIB=$RANLIB
5685 # Extract the first word of "ranlib", so it can be a program name with args.
5686 set dummy ranlib; ac_word=$2
5687 echo "$as_me:$LINENO: checking for $ac_word" >&5
5688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5689 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5690 echo $ECHO_N "(cached) $ECHO_C" >&6
5691 else
5692 if test -n "$ac_ct_RANLIB"; then
5693 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5694 else
5695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696 for as_dir in $PATH
5698 IFS=$as_save_IFS
5699 test -z "$as_dir" && as_dir=.
5700 for ac_exec_ext in '' $ac_executable_extensions; do
5701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5702 ac_cv_prog_ac_ct_RANLIB="ranlib"
5703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5704 break 2
5706 done
5707 done
5709 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5712 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5713 if test -n "$ac_ct_RANLIB"; then
5714 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5715 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5716 else
5717 echo "$as_me:$LINENO: result: no" >&5
5718 echo "${ECHO_T}no" >&6
5721 RANLIB=$ac_ct_RANLIB
5722 else
5723 RANLIB="$ac_cv_prog_RANLIB"
5726 if test -n "$ac_tool_prefix"; then
5727 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5728 set dummy ${ac_tool_prefix}strip; ac_word=$2
5729 echo "$as_me:$LINENO: checking for $ac_word" >&5
5730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5731 if test "${ac_cv_prog_STRIP+set}" = set; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5733 else
5734 if test -n "$STRIP"; then
5735 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5736 else
5737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738 for as_dir in $PATH
5740 IFS=$as_save_IFS
5741 test -z "$as_dir" && as_dir=.
5742 for ac_exec_ext in '' $ac_executable_extensions; do
5743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5744 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5746 break 2
5748 done
5749 done
5753 STRIP=$ac_cv_prog_STRIP
5754 if test -n "$STRIP"; then
5755 echo "$as_me:$LINENO: result: $STRIP" >&5
5756 echo "${ECHO_T}$STRIP" >&6
5757 else
5758 echo "$as_me:$LINENO: result: no" >&5
5759 echo "${ECHO_T}no" >&6
5763 if test -z "$ac_cv_prog_STRIP"; then
5764 ac_ct_STRIP=$STRIP
5765 # Extract the first word of "strip", so it can be a program name with args.
5766 set dummy strip; ac_word=$2
5767 echo "$as_me:$LINENO: checking for $ac_word" >&5
5768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5769 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5770 echo $ECHO_N "(cached) $ECHO_C" >&6
5771 else
5772 if test -n "$ac_ct_STRIP"; then
5773 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5774 else
5775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776 for as_dir in $PATH
5778 IFS=$as_save_IFS
5779 test -z "$as_dir" && as_dir=.
5780 for ac_exec_ext in '' $ac_executable_extensions; do
5781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5782 ac_cv_prog_ac_ct_STRIP="strip"
5783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5784 break 2
5786 done
5787 done
5789 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5792 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5793 if test -n "$ac_ct_STRIP"; then
5794 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5795 echo "${ECHO_T}$ac_ct_STRIP" >&6
5796 else
5797 echo "$as_me:$LINENO: result: no" >&5
5798 echo "${ECHO_T}no" >&6
5801 STRIP=$ac_ct_STRIP
5802 else
5803 STRIP="$ac_cv_prog_STRIP"
5807 # Check for any special flags to pass to ltconfig.
5808 libtool_flags="--cache-file=$cache_file"
5809 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
5810 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
5811 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
5812 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
5813 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
5816 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5817 if test "${enable_libtool_lock+set}" = set; then
5818 enableval="$enable_libtool_lock"
5821 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
5822 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
5825 # Check whether --with-pic or --without-pic was given.
5826 if test "${with_pic+set}" = set; then
5827 withval="$with_pic"
5828 pic_mode="$withval"
5829 else
5830 pic_mode=default
5832 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
5833 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
5835 # Some flags need to be propagated to the compiler or linker for good
5836 # libtool support.
5837 case $host in
5838 *-*-irix6*)
5839 # Find out which ABI we are using.
5840 echo '#line 5840 "configure"' > conftest.$ac_ext
5841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5842 (eval $ac_compile) 2>&5
5843 ac_status=$?
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); }; then
5846 if test "$lt_cv_prog_gnu_ld" = yes; then
5847 case `/usr/bin/file conftest.$ac_objext` in
5848 *32-bit*)
5849 LD="${LD-ld} -melf32bsmip"
5851 *N32*)
5852 LD="${LD-ld} -melf32bmipn32"
5854 *64-bit*)
5855 LD="${LD-ld} -melf64bmip"
5857 esac
5858 else
5859 case `/usr/bin/file conftest.$ac_objext` in
5860 *32-bit*)
5861 LD="${LD-ld} -32"
5863 *N32*)
5864 LD="${LD-ld} -n32"
5866 *64-bit*)
5867 LD="${LD-ld} -64"
5869 esac
5872 rm -rf conftest*
5875 ia64-*-hpux*)
5876 # Find out which ABI we are using.
5877 echo 'int i;' > conftest.$ac_ext
5878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5879 (eval $ac_compile) 2>&5
5880 ac_status=$?
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); }; then
5883 case "`/usr/bin/file conftest.o`" in
5884 *ELF-32*)
5885 HPUX_IA64_MODE="32"
5887 *ELF-64*)
5888 HPUX_IA64_MODE="64"
5890 esac
5892 rm -rf conftest*
5895 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5896 # Find out which ABI we are using.
5897 echo 'int i;' > conftest.$ac_ext
5898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5899 (eval $ac_compile) 2>&5
5900 ac_status=$?
5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902 (exit $ac_status); }; then
5903 case "`/usr/bin/file conftest.o`" in
5904 *32-bit*)
5905 case $host in
5906 x86_64-*linux*)
5907 LD="${LD-ld} -m elf_i386"
5909 ppc64-*linux*|powerpc64-*linux*)
5910 LD="${LD-ld} -m elf32ppclinux"
5912 s390x-*linux*)
5913 LD="${LD-ld} -m elf_s390"
5915 sparc64-*linux*)
5916 LD="${LD-ld} -m elf32_sparc"
5918 esac
5920 *64-bit*)
5921 case $host in
5922 x86_64-*linux*)
5923 LD="${LD-ld} -m elf_x86_64"
5925 ppc*-*linux*|powerpc*-*linux*)
5926 LD="${LD-ld} -m elf64ppc"
5928 s390*-*linux*)
5929 LD="${LD-ld} -m elf64_s390"
5931 sparc*-*linux*)
5932 LD="${LD-ld} -m elf64_sparc"
5934 esac
5936 esac
5938 rm -rf conftest*
5941 *-*-sco3.2v5*)
5942 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5943 SAVE_CFLAGS="$CFLAGS"
5944 CFLAGS="$CFLAGS -belf"
5945 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5946 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5947 if test "${lt_cv_cc_needs_belf+set}" = set; then
5948 echo $ECHO_N "(cached) $ECHO_C" >&6
5949 else
5952 ac_ext=c
5953 ac_cpp='$CPP $CPPFLAGS'
5954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5958 if test x$gcc_no_link = xyes; then
5959 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5960 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5961 { (exit 1); exit 1; }; }
5963 cat >conftest.$ac_ext <<_ACEOF
5964 /* confdefs.h. */
5965 _ACEOF
5966 cat confdefs.h >>conftest.$ac_ext
5967 cat >>conftest.$ac_ext <<_ACEOF
5968 /* end confdefs.h. */
5971 main ()
5975 return 0;
5977 _ACEOF
5978 rm -f conftest.$ac_objext conftest$ac_exeext
5979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5980 (eval $ac_link) 2>conftest.er1
5981 ac_status=$?
5982 grep -v '^ *+' conftest.er1 >conftest.err
5983 rm -f conftest.er1
5984 cat conftest.err >&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); } &&
5987 { ac_try='test -z "$ac_c_werror_flag"
5988 || test ! -s conftest.err'
5989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5990 (eval $ac_try) 2>&5
5991 ac_status=$?
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); }; } &&
5994 { ac_try='test -s conftest$ac_exeext'
5995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5996 (eval $ac_try) 2>&5
5997 ac_status=$?
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); }; }; then
6000 lt_cv_cc_needs_belf=yes
6001 else
6002 echo "$as_me: failed program was:" >&5
6003 sed 's/^/| /' conftest.$ac_ext >&5
6005 lt_cv_cc_needs_belf=no
6007 rm -f conftest.err conftest.$ac_objext \
6008 conftest$ac_exeext conftest.$ac_ext
6009 ac_ext=c
6010 ac_cpp='$CPP $CPPFLAGS'
6011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6016 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6017 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6018 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6019 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6020 CFLAGS="$SAVE_CFLAGS"
6025 esac
6028 # Save cache, so that ltconfig can load it
6029 cat >confcache <<\_ACEOF
6030 # This file is a shell script that caches the results of configure
6031 # tests run on this system so they can be shared between configure
6032 # scripts and configure runs, see configure's option --config-cache.
6033 # It is not useful on other systems. If it contains results you don't
6034 # want to keep, you may remove or edit it.
6036 # config.status only pays attention to the cache file if you give it
6037 # the --recheck option to rerun configure.
6039 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6040 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6041 # following values.
6043 _ACEOF
6045 # The following way of writing the cache mishandles newlines in values,
6046 # but we know of no workaround that is simple, portable, and efficient.
6047 # So, don't put newlines in cache variables' values.
6048 # Ultrix sh set writes to stderr and can't be redirected directly,
6049 # and sets the high bit in the cache file unless we assign to the vars.
6051 (set) 2>&1 |
6052 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6053 *ac_space=\ *)
6054 # `set' does not quote correctly, so add quotes (double-quote
6055 # substitution turns \\\\ into \\, and sed turns \\ into \).
6056 sed -n \
6057 "s/'/'\\\\''/g;
6058 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6061 # `set' quotes correctly as required by POSIX, so do not add quotes.
6062 sed -n \
6063 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6065 esac;
6067 sed '
6068 t clear
6069 : clear
6070 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6071 t end
6072 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6073 : end' >>confcache
6074 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6075 if test -w $cache_file; then
6076 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6077 cat confcache >$cache_file
6078 else
6079 echo "not updating unwritable cache $cache_file"
6082 rm -f confcache
6084 # Actually configure libtool. ac_aux_dir is where install-sh is found.
6085 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
6086 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6087 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6088 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6089 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6090 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
6091 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
6092 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
6093 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
6094 echo "$as_me: error: libtool configure failed" >&2;}
6095 { (exit 1); exit 1; }; }
6097 # Reload cache, that may have been modified by ltconfig
6098 if test -r "$cache_file"; then
6099 # Some versions of bash will fail to source /dev/null (special
6100 # files actually), so we avoid doing that.
6101 if test -f "$cache_file"; then
6102 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
6103 echo "$as_me: loading cache $cache_file" >&6;}
6104 case $cache_file in
6105 [\\/]* | ?:[\\/]* ) . $cache_file;;
6106 *) . ./$cache_file;;
6107 esac
6109 else
6110 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
6111 echo "$as_me: creating cache $cache_file" >&6;}
6112 >$cache_file
6116 # This can be used to rebuild libtool when needed
6117 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
6119 # Always use our own libtool.
6120 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6122 # Redirect the config.log output again, so that the ltconfig log is not
6123 # clobbered by the next message.
6124 exec 5>>./config.log
6126 ac_ext=cc
6127 ac_cpp='$CXXCPP $CPPFLAGS'
6128 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6129 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6130 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6131 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6132 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6133 if test -z "$CXXCPP"; then
6134 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6135 echo $ECHO_N "(cached) $ECHO_C" >&6
6136 else
6137 # Double quotes because CXXCPP needs to be expanded
6138 for CXXCPP in "$CXX -E" "/lib/cpp"
6140 ac_preproc_ok=false
6141 for ac_cxx_preproc_warn_flag in '' yes
6143 # Use a header file that comes with gcc, so configuring glibc
6144 # with a fresh cross-compiler works.
6145 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6146 # <limits.h> exists even on freestanding compilers.
6147 # On the NeXT, cc -E runs the code through the compiler's parser,
6148 # not just through cpp. "Syntax error" is here to catch this case.
6149 cat >conftest.$ac_ext <<_ACEOF
6150 /* confdefs.h. */
6151 _ACEOF
6152 cat confdefs.h >>conftest.$ac_ext
6153 cat >>conftest.$ac_ext <<_ACEOF
6154 /* end confdefs.h. */
6155 #ifdef __STDC__
6156 # include <limits.h>
6157 #else
6158 # include <assert.h>
6159 #endif
6160 Syntax error
6161 _ACEOF
6162 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6163 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6164 ac_status=$?
6165 grep -v '^ *+' conftest.er1 >conftest.err
6166 rm -f conftest.er1
6167 cat conftest.err >&5
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); } >/dev/null; then
6170 if test -s conftest.err; then
6171 ac_cpp_err=$ac_cxx_preproc_warn_flag
6172 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6173 else
6174 ac_cpp_err=
6176 else
6177 ac_cpp_err=yes
6179 if test -z "$ac_cpp_err"; then
6181 else
6182 echo "$as_me: failed program was:" >&5
6183 sed 's/^/| /' conftest.$ac_ext >&5
6185 # Broken: fails on valid input.
6186 continue
6188 rm -f conftest.err conftest.$ac_ext
6190 # OK, works on sane cases. Now check whether non-existent headers
6191 # can be detected and how.
6192 cat >conftest.$ac_ext <<_ACEOF
6193 /* confdefs.h. */
6194 _ACEOF
6195 cat confdefs.h >>conftest.$ac_ext
6196 cat >>conftest.$ac_ext <<_ACEOF
6197 /* end confdefs.h. */
6198 #include <ac_nonexistent.h>
6199 _ACEOF
6200 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6201 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6202 ac_status=$?
6203 grep -v '^ *+' conftest.er1 >conftest.err
6204 rm -f conftest.er1
6205 cat conftest.err >&5
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); } >/dev/null; then
6208 if test -s conftest.err; then
6209 ac_cpp_err=$ac_cxx_preproc_warn_flag
6210 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6211 else
6212 ac_cpp_err=
6214 else
6215 ac_cpp_err=yes
6217 if test -z "$ac_cpp_err"; then
6218 # Broken: success on invalid input.
6219 continue
6220 else
6221 echo "$as_me: failed program was:" >&5
6222 sed 's/^/| /' conftest.$ac_ext >&5
6224 # Passes both tests.
6225 ac_preproc_ok=:
6226 break
6228 rm -f conftest.err conftest.$ac_ext
6230 done
6231 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6232 rm -f conftest.err conftest.$ac_ext
6233 if $ac_preproc_ok; then
6234 break
6237 done
6238 ac_cv_prog_CXXCPP=$CXXCPP
6241 CXXCPP=$ac_cv_prog_CXXCPP
6242 else
6243 ac_cv_prog_CXXCPP=$CXXCPP
6245 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6246 echo "${ECHO_T}$CXXCPP" >&6
6247 ac_preproc_ok=false
6248 for ac_cxx_preproc_warn_flag in '' yes
6250 # Use a header file that comes with gcc, so configuring glibc
6251 # with a fresh cross-compiler works.
6252 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6253 # <limits.h> exists even on freestanding compilers.
6254 # On the NeXT, cc -E runs the code through the compiler's parser,
6255 # not just through cpp. "Syntax error" is here to catch this case.
6256 cat >conftest.$ac_ext <<_ACEOF
6257 /* confdefs.h. */
6258 _ACEOF
6259 cat confdefs.h >>conftest.$ac_ext
6260 cat >>conftest.$ac_ext <<_ACEOF
6261 /* end confdefs.h. */
6262 #ifdef __STDC__
6263 # include <limits.h>
6264 #else
6265 # include <assert.h>
6266 #endif
6267 Syntax error
6268 _ACEOF
6269 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6270 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6271 ac_status=$?
6272 grep -v '^ *+' conftest.er1 >conftest.err
6273 rm -f conftest.er1
6274 cat conftest.err >&5
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); } >/dev/null; then
6277 if test -s conftest.err; then
6278 ac_cpp_err=$ac_cxx_preproc_warn_flag
6279 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6280 else
6281 ac_cpp_err=
6283 else
6284 ac_cpp_err=yes
6286 if test -z "$ac_cpp_err"; then
6288 else
6289 echo "$as_me: failed program was:" >&5
6290 sed 's/^/| /' conftest.$ac_ext >&5
6292 # Broken: fails on valid input.
6293 continue
6295 rm -f conftest.err conftest.$ac_ext
6297 # OK, works on sane cases. Now check whether non-existent headers
6298 # can be detected and how.
6299 cat >conftest.$ac_ext <<_ACEOF
6300 /* confdefs.h. */
6301 _ACEOF
6302 cat confdefs.h >>conftest.$ac_ext
6303 cat >>conftest.$ac_ext <<_ACEOF
6304 /* end confdefs.h. */
6305 #include <ac_nonexistent.h>
6306 _ACEOF
6307 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6308 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6309 ac_status=$?
6310 grep -v '^ *+' conftest.er1 >conftest.err
6311 rm -f conftest.er1
6312 cat conftest.err >&5
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); } >/dev/null; then
6315 if test -s conftest.err; then
6316 ac_cpp_err=$ac_cxx_preproc_warn_flag
6317 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6318 else
6319 ac_cpp_err=
6321 else
6322 ac_cpp_err=yes
6324 if test -z "$ac_cpp_err"; then
6325 # Broken: success on invalid input.
6326 continue
6327 else
6328 echo "$as_me: failed program was:" >&5
6329 sed 's/^/| /' conftest.$ac_ext >&5
6331 # Passes both tests.
6332 ac_preproc_ok=:
6333 break
6335 rm -f conftest.err conftest.$ac_ext
6337 done
6338 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6339 rm -f conftest.err conftest.$ac_ext
6340 if $ac_preproc_ok; then
6342 else
6343 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6344 See \`config.log' for more details." >&5
6345 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6346 See \`config.log' for more details." >&2;}
6347 { (exit 1); exit 1; }; }
6350 ac_ext=c
6351 ac_cpp='$CPP $CPPFLAGS'
6352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6358 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
6359 lt_save_CC="$CC"
6360 lt_save_CFLAGS="$CFLAGS"
6361 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
6362 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6363 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6364 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6365 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6366 deplibs_check_method="$deplibs_check_method" \
6367 file_magic_cmd="$file_magic_cmd" \
6368 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6369 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
6370 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6371 echo "$as_me: error: libtool tag configuration failed" >&2;}
6372 { (exit 1); exit 1; }; }
6373 CC="$lt_save_CC"
6374 CFLAGS="$lt_save_CFLAGS"
6376 # Redirect the config.log output again, so that the ltconfig log is not
6377 # clobbered by the next message.
6378 exec 5>>./config.log
6386 for ac_prog in gcj gcj-3.2 gcj-3.1 gcj-3.0 gcj-2.95
6388 # Extract the first word of "$ac_prog", so it can be a program name with args.
6389 set dummy $ac_prog; ac_word=$2
6390 echo "$as_me:$LINENO: checking for $ac_word" >&5
6391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6392 if test "${ac_cv_prog_GCJ+set}" = set; then
6393 echo $ECHO_N "(cached) $ECHO_C" >&6
6394 else
6395 if test -n "$GCJ"; then
6396 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
6397 else
6398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399 for as_dir in $PATH
6401 IFS=$as_save_IFS
6402 test -z "$as_dir" && as_dir=.
6403 for ac_exec_ext in '' $ac_executable_extensions; do
6404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6405 ac_cv_prog_GCJ="$ac_prog"
6406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6407 break 2
6409 done
6410 done
6414 GCJ=$ac_cv_prog_GCJ
6415 if test -n "$GCJ"; then
6416 echo "$as_me:$LINENO: result: $GCJ" >&5
6417 echo "${ECHO_T}$GCJ" >&6
6418 else
6419 echo "$as_me:$LINENO: result: no" >&5
6420 echo "${ECHO_T}no" >&6
6423 test -n "$GCJ" && break
6424 done
6425 test -n "$GCJ" || GCJ="gcj"
6427 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
6428 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
6429 { (exit 1); exit 1; }; }
6430 if test "x${GCJFLAGS-unset}" = xunset; then
6431 GCJFLAGS="-g -O2"
6435 depcc="$GCJ" am_compiler_list='gcc3 gcc'
6437 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6438 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6439 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
6440 echo $ECHO_N "(cached) $ECHO_C" >&6
6441 else
6442 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6443 # We make a subdir and do the tests there. Otherwise we can end up
6444 # making bogus files that we don't know about and never remove. For
6445 # instance it was reported that on HP-UX the gcc test will end up
6446 # making a dummy file named `D' -- because `-MD' means `put the output
6447 # in D'.
6448 mkdir conftest.dir
6449 # Copy depcomp to subdir because otherwise we won't find it if we're
6450 # using a relative directory.
6451 cp "$am_depcomp" conftest.dir
6452 cd conftest.dir
6453 # We will build objects and dependencies in a subdirectory because
6454 # it helps to detect inapplicable dependency modes. For instance
6455 # both Tru64's cc and ICC support -MD to output dependencies as a
6456 # side effect of compilation, but ICC will put the dependencies in
6457 # the current directory while Tru64 will put them in the object
6458 # directory.
6459 mkdir sub
6461 am_cv_GCJ_dependencies_compiler_type=none
6462 if test "$am_compiler_list" = ""; then
6463 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6465 for depmode in $am_compiler_list; do
6466 # Setup a source with many dependencies, because some compilers
6467 # like to wrap large dependency lists on column 80 (with \), and
6468 # we should not choose a depcomp mode which is confused by this.
6470 # We need to recreate these files for each test, as the compiler may
6471 # overwrite some of them when testing with obscure command lines.
6472 # This happens at least with the AIX C compiler.
6473 : > sub/conftest.c
6474 for i in 1 2 3 4 5 6; do
6475 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6476 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6477 # Solaris 8's {/usr,}/bin/sh.
6478 touch sub/conftst$i.h
6479 done
6480 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6482 case $depmode in
6483 nosideeffect)
6484 # after this tag, mechanisms are not by side-effect, so they'll
6485 # only be used when explicitly requested
6486 if test "x$enable_dependency_tracking" = xyes; then
6487 continue
6488 else
6489 break
6492 none) break ;;
6493 esac
6494 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6495 # mode. It turns out that the SunPro C++ compiler does not properly
6496 # handle `-M -o', and we need to detect this.
6497 if depmode=$depmode \
6498 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6499 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6500 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6501 >/dev/null 2>conftest.err &&
6502 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6503 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6504 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6505 # icc doesn't choke on unknown options, it will just issue warnings
6506 # or remarks (even with -Werror). So we grep stderr for any message
6507 # that says an option was ignored or not supported.
6508 # When given -MP, icc 7.0 and 7.1 complain thusly:
6509 # icc: Command line warning: ignoring option '-M'; no argument required
6510 # The diagnosis changed in icc 8.0:
6511 # icc: Command line remark: option '-MP' not supported
6512 if (grep 'ignoring option' conftest.err ||
6513 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6514 am_cv_GCJ_dependencies_compiler_type=$depmode
6515 break
6518 done
6520 cd ..
6521 rm -rf conftest.dir
6522 else
6523 am_cv_GCJ_dependencies_compiler_type=none
6527 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
6528 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
6529 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
6534 test "x$enable_dependency_tracking" != xno \
6535 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
6536 am__fastdepGCJ_TRUE=
6537 am__fastdepGCJ_FALSE='#'
6538 else
6539 am__fastdepGCJ_TRUE='#'
6540 am__fastdepGCJ_FALSE=
6546 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
6547 lt_save_CC="$CC"
6548 lt_save_CFLAGS="$CFLAGS"
6549 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
6550 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6551 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6552 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6553 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6554 deplibs_check_method="$deplibs_check_method" \
6555 file_magic_cmd="$file_magic_cmd" \
6556 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6557 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
6558 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6559 echo "$as_me: error: libtool tag configuration failed" >&2;}
6560 { (exit 1); exit 1; }; }
6561 CC="$lt_save_CC"
6562 CFLAGS="$lt_save_CFLAGS"
6564 # Redirect the config.log output again, so that the ltconfig log is not
6565 # clobbered by the next message.
6566 exec 5>>./config.log
6570 if test "x$CC" != xcc; then
6571 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
6572 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
6573 else
6574 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
6575 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
6577 set dummy $CC; ac_cc=`echo $2 |
6578 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6579 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
6580 echo $ECHO_N "(cached) $ECHO_C" >&6
6581 else
6582 cat >conftest.$ac_ext <<_ACEOF
6583 /* confdefs.h. */
6584 _ACEOF
6585 cat confdefs.h >>conftest.$ac_ext
6586 cat >>conftest.$ac_ext <<_ACEOF
6587 /* end confdefs.h. */
6590 main ()
6594 return 0;
6596 _ACEOF
6597 # Make sure it works both with $CC and with simple cc.
6598 # We do the test twice because some compilers refuse to overwrite an
6599 # existing .o file with -o, though they will create one.
6600 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6601 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6602 (eval $ac_try) 2>&5
6603 ac_status=$?
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); } &&
6606 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6607 (eval $ac_try) 2>&5
6608 ac_status=$?
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); };
6611 then
6612 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6613 if test "x$CC" != xcc; then
6614 # Test first that cc exists at all.
6615 if { ac_try='cc -c conftest.$ac_ext >&5'
6616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6617 (eval $ac_try) 2>&5
6618 ac_status=$?
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); }; }; then
6621 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6622 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6623 (eval $ac_try) 2>&5
6624 ac_status=$?
6625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); } &&
6627 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6628 (eval $ac_try) 2>&5
6629 ac_status=$?
6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); };
6632 then
6633 # cc works too.
6635 else
6636 # cc exists but doesn't like -o.
6637 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6641 else
6642 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6644 rm -f conftest*
6647 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
6648 echo "$as_me:$LINENO: result: yes" >&5
6649 echo "${ECHO_T}yes" >&6
6650 else
6651 echo "$as_me:$LINENO: result: no" >&5
6652 echo "${ECHO_T}no" >&6
6654 cat >>confdefs.h <<\_ACEOF
6655 #define NO_MINUS_C_MINUS_O 1
6656 _ACEOF
6660 # FIXME: we rely on the cache variable name because
6661 # there is no other way.
6662 set dummy $CC
6663 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6664 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
6665 # Losing compiler, so override with the script.
6666 # FIXME: It is wrong to rewrite CC.
6667 # But if we don't then we get into trouble of one sort or another.
6668 # A longer-term fix would be to have automake use am__CC in this case,
6669 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6670 CC="$am_aux_dir/compile $CC"
6676 subdirs="$subdirs classpath libltdl"
6679 # The -no-testsuite modules omit the test subdir.
6682 if test -d $srcdir/testsuite; then
6683 TESTSUBDIR_TRUE=
6684 TESTSUBDIR_FALSE='#'
6685 else
6686 TESTSUBDIR_TRUE='#'
6687 TESTSUBDIR_FALSE=
6691 # Should the runtime set system properties by examining the
6692 # environment variable GCJ_PROPERTIES?
6693 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
6694 if test "${enable_getenv_properties+set}" = set; then
6695 enableval="$enable_getenv_properties"
6699 # Whether GCJ_PROPERTIES is used depends on the target.
6700 if test -z "$enable_getenv_properties"; then
6701 enable_getenv_properties=${enable_getenv_properties_default-yes}
6703 if test "$enable_getenv_properties" = no; then
6705 cat >>confdefs.h <<\_ACEOF
6706 #define DISABLE_GETENV_PROPERTIES 1
6707 _ACEOF
6711 # Whether we should use arguments to main()
6712 if test -z "$enable_main_args"; then
6713 enable_main_args=${enable_main_args_default-yes}
6715 if test "$enable_main_args" = no; then
6717 cat >>confdefs.h <<\_ACEOF
6718 #define DISABLE_MAIN_ARGS 1
6719 _ACEOF
6724 # Should we use hashtable-based synchronization?
6725 # Currently works only for Linux X86/ia64
6726 # Typically faster and more space-efficient
6727 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
6728 if test "${enable_hash_synchronization+set}" = set; then
6729 enableval="$enable_hash_synchronization"
6733 if test -z "$enable_hash_synchronization"; then
6734 enable_hash_synchronization=$enable_hash_synchronization_default
6738 # Check whether --with-java-home or --without-java-home was given.
6739 if test "${with_java_home+set}" = set; then
6740 withval="$with_java_home"
6741 JAVA_HOME="${withval}"
6742 else
6743 JAVA_HOME=""
6747 if test ! -z "$JAVA_HOME"; then
6748 JAVA_HOME_SET_TRUE=
6749 JAVA_HOME_SET_FALSE='#'
6750 else
6751 JAVA_HOME_SET_TRUE='#'
6752 JAVA_HOME_SET_FALSE=
6757 # What is the native OS API for MinGW?
6759 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
6760 if test "${with_win32_nlsapi+set}" = set; then
6761 withval="$with_win32_nlsapi"
6762 case "${withval}" in
6763 ansi) with_win32_nlsapi=ansi ;;
6764 unicows) with_win32_nlsapi=unicows ;;
6765 unicode) with_win32_nlsapi=unicode ;;
6766 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
6767 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
6768 { (exit 1); exit 1; }; } ;;
6769 esac
6770 else
6771 with_win32_nlsapi=ansi
6774 case "${with_win32_nlsapi}" in
6775 unicows | unicode)
6777 cat >>confdefs.h <<\_ACEOF
6778 #define MINGW_LIBGCJ_UNICODE 1
6779 _ACEOF
6782 esac
6784 # configure.host sets slow_pthread_self if the synchronization code should
6785 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
6786 if test "${slow_pthread_self}" = "yes"; then
6788 cat >>confdefs.h <<\_ACEOF
6789 #define SLOW_PTHREAD_SELF 1
6790 _ACEOF
6794 # Check for gc debugging. This option is handled both here and in the GC.
6795 # Check whether --enable-gc-debug or --disable-gc-debug was given.
6796 if test "${enable_gc_debug+set}" = set; then
6797 enableval="$enable_gc_debug"
6798 if test "$enable_gc_debug" = "yes"; then
6800 cat >>confdefs.h <<\_ACEOF
6801 #define LIBGCJ_GC_DEBUG 1
6802 _ACEOF
6807 # See if the user has the interpreter included.
6808 # Check whether --enable-interpreter or --disable-interpreter was given.
6809 if test "${enable_interpreter+set}" = set; then
6810 enableval="$enable_interpreter"
6811 if test "$enable_interpreter" = yes; then
6812 # This can also be set in configure.host.
6813 libgcj_interpreter=yes
6814 elif test "$enable_interpreter" = no; then
6815 libgcj_interpreter=no
6819 if test "$libgcj_interpreter" = yes; then
6821 cat >>confdefs.h <<\_ACEOF
6822 #define INTERPRETER 1
6823 _ACEOF
6826 INTERPRETER="$libgcj_interpreter"
6829 echo "$as_me:$LINENO: checking for exception model to use" >&5
6830 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
6831 ac_ext=cc
6832 ac_cpp='$CXXCPP $CPPFLAGS'
6833 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6834 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6835 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6837 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
6838 if test "${enable_sjlj_exceptions+set}" = set; then
6839 enableval="$enable_sjlj_exceptions"
6841 else
6842 cat > conftest.$ac_ext << EOF
6843 #line 6843 "configure"
6844 struct S { ~S(); };
6845 void bar();
6846 void foo()
6848 S s;
6849 bar();
6852 old_CXXFLAGS="$CXXFLAGS"
6853 CXXFLAGS=-S
6854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6855 (eval $ac_compile) 2>&5
6856 ac_status=$?
6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); }; then
6859 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
6860 enable_sjlj_exceptions=yes
6861 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
6862 enable_sjlj_exceptions=no
6865 CXXFLAGS="$old_CXXFLAGS"
6866 rm -f conftest*
6868 if test x$enable_sjlj_exceptions = xyes; then
6870 cat >>confdefs.h <<\_ACEOF
6871 #define SJLJ_EXCEPTIONS 1
6872 _ACEOF
6874 ac_exception_model_name=sjlj
6875 elif test x$enable_sjlj_exceptions = xno; then
6876 ac_exception_model_name="call frame"
6877 else
6878 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
6879 echo "$as_me: error: unable to detect exception model" >&2;}
6880 { (exit 1); exit 1; }; }
6882 ac_ext=c
6883 ac_cpp='$CPP $CPPFLAGS'
6884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6888 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
6889 echo "${ECHO_T}$ac_exception_model_name" >&6
6891 # If we are non using SJLJ exceptions, and this host does not have support
6892 # for unwinding from a signal handler, enable checked dereferences and divides.
6893 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
6894 CHECKREFSPEC=-fcheck-references
6895 DIVIDESPEC=-fuse-divide-subroutine
6896 EXCEPTIONSPEC=
6899 # See if the user wants to disable java.net. This is the mildly
6900 # ugly way that we admit that target-side configuration sucks.
6901 # Check whether --enable-java-net or --disable-java-net was given.
6902 if test "${enable_java_net+set}" = set; then
6903 enableval="$enable_java_net"
6907 # Whether java.net is built by default can depend on the target.
6908 if test -z "$enable_java_net"; then
6909 enable_java_net=${enable_java_net_default-yes}
6911 if test "$enable_java_net" = no; then
6913 cat >>confdefs.h <<\_ACEOF
6914 #define DISABLE_JAVA_NET 1
6915 _ACEOF
6919 # See if the user wants to configure without libffi. Some
6920 # architectures don't support it, and default values are set in
6921 # configure.host.
6923 # Check whether --with-libffi or --without-libffi was given.
6924 if test "${with_libffi+set}" = set; then
6925 withval="$with_libffi"
6927 else
6928 with_libffi=${with_libffi_default-yes}
6931 LIBFFI=
6932 LIBFFIINCS=
6933 if test "$with_libffi" != no; then
6935 cat >>confdefs.h <<\_ACEOF
6936 #define USE_LIBFFI 1
6937 _ACEOF
6939 LIBFFI=../libffi/libffi_convenience.la
6940 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
6945 # See if the user wants to disable JVMPI support.
6946 # Check whether --enable-jvmpi or --disable-jvmpi was given.
6947 if test "${enable_jvmpi+set}" = set; then
6948 enableval="$enable_jvmpi"
6952 if test "$enable_jvmpi" != no; then
6954 cat >>confdefs.h <<\_ACEOF
6955 #define ENABLE_JVMPI 1
6956 _ACEOF
6960 # If the target is an eCos system, use the appropriate eCos
6961 # I/O routines.
6962 # FIXME: this should not be a local option but a global target
6963 # system; at present there is no eCos target.
6964 TARGET_ECOS=${PROCESS-"no"}
6966 # Check whether --with-ecos or --without-ecos was given.
6967 if test "${with_ecos+set}" = set; then
6968 withval="$with_ecos"
6969 TARGET_ECOS="$with_ecos"
6973 PLATFORM_INNER_NAT_HDRS=
6974 case "$TARGET_ECOS" in
6975 no) case "$host" in
6976 *mingw*)
6977 PLATFORM=Win32
6978 PLATFORMNET=Win32
6979 PLATFORMH=win32.h
6981 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
6982 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
6983 LD_PROG=`$CC --print-prog-name=ld`
6984 LD_VERSION=`$LD_PROG --version`
6985 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
6986 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
6987 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
6988 LD_OK="ok"
6989 else
6990 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
6991 LD_OK="ok"
6994 if test "x$LD_OK" != x; then
6995 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
6996 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
6997 else
6998 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
6999 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
7000 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
7001 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
7003 cat >>confdefs.h <<\_ACEOF
7004 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
7005 _ACEOF
7010 PLATFORM=Posix
7011 PLATFORMNET=Posix
7012 PLATFORMH=posix.h
7013 PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
7015 esac
7018 PLATFORM=Ecos
7019 PLATFORMNET=NoNet
7021 cat >>confdefs.h <<\_ACEOF
7022 #define ECOS 1
7023 _ACEOF
7025 PLATFORMH=posix.h
7027 esac
7029 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
7032 ac_ext=c
7033 ac_cpp='$CPP $CPPFLAGS'
7034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7037 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7038 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7039 # On Suns, sometimes $CPP names a directory.
7040 if test -n "$CPP" && test -d "$CPP"; then
7041 CPP=
7043 if test -z "$CPP"; then
7044 if test "${ac_cv_prog_CPP+set}" = set; then
7045 echo $ECHO_N "(cached) $ECHO_C" >&6
7046 else
7047 # Double quotes because CPP needs to be expanded
7048 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7050 ac_preproc_ok=false
7051 for ac_c_preproc_warn_flag in '' yes
7053 # Use a header file that comes with gcc, so configuring glibc
7054 # with a fresh cross-compiler works.
7055 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7056 # <limits.h> exists even on freestanding compilers.
7057 # On the NeXT, cc -E runs the code through the compiler's parser,
7058 # not just through cpp. "Syntax error" is here to catch this case.
7059 cat >conftest.$ac_ext <<_ACEOF
7060 /* confdefs.h. */
7061 _ACEOF
7062 cat confdefs.h >>conftest.$ac_ext
7063 cat >>conftest.$ac_ext <<_ACEOF
7064 /* end confdefs.h. */
7065 #ifdef __STDC__
7066 # include <limits.h>
7067 #else
7068 # include <assert.h>
7069 #endif
7070 Syntax error
7071 _ACEOF
7072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7074 ac_status=$?
7075 grep -v '^ *+' conftest.er1 >conftest.err
7076 rm -f conftest.er1
7077 cat conftest.err >&5
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); } >/dev/null; then
7080 if test -s conftest.err; then
7081 ac_cpp_err=$ac_c_preproc_warn_flag
7082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7083 else
7084 ac_cpp_err=
7086 else
7087 ac_cpp_err=yes
7089 if test -z "$ac_cpp_err"; then
7091 else
7092 echo "$as_me: failed program was:" >&5
7093 sed 's/^/| /' conftest.$ac_ext >&5
7095 # Broken: fails on valid input.
7096 continue
7098 rm -f conftest.err conftest.$ac_ext
7100 # OK, works on sane cases. Now check whether non-existent headers
7101 # can be detected and how.
7102 cat >conftest.$ac_ext <<_ACEOF
7103 /* confdefs.h. */
7104 _ACEOF
7105 cat confdefs.h >>conftest.$ac_ext
7106 cat >>conftest.$ac_ext <<_ACEOF
7107 /* end confdefs.h. */
7108 #include <ac_nonexistent.h>
7109 _ACEOF
7110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7112 ac_status=$?
7113 grep -v '^ *+' conftest.er1 >conftest.err
7114 rm -f conftest.er1
7115 cat conftest.err >&5
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); } >/dev/null; then
7118 if test -s conftest.err; then
7119 ac_cpp_err=$ac_c_preproc_warn_flag
7120 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7121 else
7122 ac_cpp_err=
7124 else
7125 ac_cpp_err=yes
7127 if test -z "$ac_cpp_err"; then
7128 # Broken: success on invalid input.
7129 continue
7130 else
7131 echo "$as_me: failed program was:" >&5
7132 sed 's/^/| /' conftest.$ac_ext >&5
7134 # Passes both tests.
7135 ac_preproc_ok=:
7136 break
7138 rm -f conftest.err conftest.$ac_ext
7140 done
7141 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7142 rm -f conftest.err conftest.$ac_ext
7143 if $ac_preproc_ok; then
7144 break
7147 done
7148 ac_cv_prog_CPP=$CPP
7151 CPP=$ac_cv_prog_CPP
7152 else
7153 ac_cv_prog_CPP=$CPP
7155 echo "$as_me:$LINENO: result: $CPP" >&5
7156 echo "${ECHO_T}$CPP" >&6
7157 ac_preproc_ok=false
7158 for ac_c_preproc_warn_flag in '' yes
7160 # Use a header file that comes with gcc, so configuring glibc
7161 # with a fresh cross-compiler works.
7162 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7163 # <limits.h> exists even on freestanding compilers.
7164 # On the NeXT, cc -E runs the code through the compiler's parser,
7165 # not just through cpp. "Syntax error" is here to catch this case.
7166 cat >conftest.$ac_ext <<_ACEOF
7167 /* confdefs.h. */
7168 _ACEOF
7169 cat confdefs.h >>conftest.$ac_ext
7170 cat >>conftest.$ac_ext <<_ACEOF
7171 /* end confdefs.h. */
7172 #ifdef __STDC__
7173 # include <limits.h>
7174 #else
7175 # include <assert.h>
7176 #endif
7177 Syntax error
7178 _ACEOF
7179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7181 ac_status=$?
7182 grep -v '^ *+' conftest.er1 >conftest.err
7183 rm -f conftest.er1
7184 cat conftest.err >&5
7185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186 (exit $ac_status); } >/dev/null; then
7187 if test -s conftest.err; then
7188 ac_cpp_err=$ac_c_preproc_warn_flag
7189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7190 else
7191 ac_cpp_err=
7193 else
7194 ac_cpp_err=yes
7196 if test -z "$ac_cpp_err"; then
7198 else
7199 echo "$as_me: failed program was:" >&5
7200 sed 's/^/| /' conftest.$ac_ext >&5
7202 # Broken: fails on valid input.
7203 continue
7205 rm -f conftest.err conftest.$ac_ext
7207 # OK, works on sane cases. Now check whether non-existent headers
7208 # can be detected and how.
7209 cat >conftest.$ac_ext <<_ACEOF
7210 /* confdefs.h. */
7211 _ACEOF
7212 cat confdefs.h >>conftest.$ac_ext
7213 cat >>conftest.$ac_ext <<_ACEOF
7214 /* end confdefs.h. */
7215 #include <ac_nonexistent.h>
7216 _ACEOF
7217 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7218 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7219 ac_status=$?
7220 grep -v '^ *+' conftest.er1 >conftest.err
7221 rm -f conftest.er1
7222 cat conftest.err >&5
7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); } >/dev/null; then
7225 if test -s conftest.err; then
7226 ac_cpp_err=$ac_c_preproc_warn_flag
7227 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7228 else
7229 ac_cpp_err=
7231 else
7232 ac_cpp_err=yes
7234 if test -z "$ac_cpp_err"; then
7235 # Broken: success on invalid input.
7236 continue
7237 else
7238 echo "$as_me: failed program was:" >&5
7239 sed 's/^/| /' conftest.$ac_ext >&5
7241 # Passes both tests.
7242 ac_preproc_ok=:
7243 break
7245 rm -f conftest.err conftest.$ac_ext
7247 done
7248 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7249 rm -f conftest.err conftest.$ac_ext
7250 if $ac_preproc_ok; then
7252 else
7253 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7254 See \`config.log' for more details." >&5
7255 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7256 See \`config.log' for more details." >&2;}
7257 { (exit 1); exit 1; }; }
7260 ac_ext=c
7261 ac_cpp='$CPP $CPPFLAGS'
7262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7267 echo "$as_me:$LINENO: checking for egrep" >&5
7268 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
7269 if test "${ac_cv_prog_egrep+set}" = set; then
7270 echo $ECHO_N "(cached) $ECHO_C" >&6
7271 else
7272 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
7273 then ac_cv_prog_egrep='grep -E'
7274 else ac_cv_prog_egrep='egrep'
7277 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
7278 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
7279 EGREP=$ac_cv_prog_egrep
7282 cat >conftest.$ac_ext <<_ACEOF
7283 /* confdefs.h. */
7284 _ACEOF
7285 cat confdefs.h >>conftest.$ac_ext
7286 cat >>conftest.$ac_ext <<_ACEOF
7287 /* end confdefs.h. */
7288 #include <stdint.h>
7290 _ACEOF
7291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7292 $EGREP "uint32_t" >/dev/null 2>&1; then
7294 cat >>confdefs.h <<\_ACEOF
7295 #define HAVE_INT32_DEFINED 1
7296 _ACEOF
7299 rm -f conftest*
7301 cat >conftest.$ac_ext <<_ACEOF
7302 /* confdefs.h. */
7303 _ACEOF
7304 cat confdefs.h >>conftest.$ac_ext
7305 cat >>conftest.$ac_ext <<_ACEOF
7306 /* end confdefs.h. */
7307 #include <inttypes.h>
7309 _ACEOF
7310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7311 $EGREP "uint32_t" >/dev/null 2>&1; then
7313 cat >>confdefs.h <<\_ACEOF
7314 #define HAVE_INT32_DEFINED 1
7315 _ACEOF
7318 rm -f conftest*
7320 cat >conftest.$ac_ext <<_ACEOF
7321 /* confdefs.h. */
7322 _ACEOF
7323 cat confdefs.h >>conftest.$ac_ext
7324 cat >>conftest.$ac_ext <<_ACEOF
7325 /* end confdefs.h. */
7326 #include <sys/types.h>
7328 _ACEOF
7329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7330 $EGREP "u_int32_t" >/dev/null 2>&1; then
7332 cat >>confdefs.h <<\_ACEOF
7333 #define HAVE_BSD_INT32_DEFINED 1
7334 _ACEOF
7337 rm -f conftest*
7339 cat >conftest.$ac_ext <<_ACEOF
7340 /* confdefs.h. */
7341 _ACEOF
7342 cat confdefs.h >>conftest.$ac_ext
7343 cat >>conftest.$ac_ext <<_ACEOF
7344 /* end confdefs.h. */
7345 #include <sys/config.h>
7347 _ACEOF
7348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7349 $EGREP "u_int32_t" >/dev/null 2>&1; then
7351 cat >>confdefs.h <<\_ACEOF
7352 #define HAVE_BSD_INT32_DEFINED 1
7353 _ACEOF
7356 rm -f conftest*
7361 if test "$PLATFORM" = Win32; then
7362 USING_WIN32_PLATFORM_TRUE=
7363 USING_WIN32_PLATFORM_FALSE='#'
7364 else
7365 USING_WIN32_PLATFORM_TRUE='#'
7366 USING_WIN32_PLATFORM_FALSE=
7371 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
7372 USING_POSIX_PLATFORM_TRUE=
7373 USING_POSIX_PLATFORM_FALSE='#'
7374 else
7375 USING_POSIX_PLATFORM_TRUE='#'
7376 USING_POSIX_PLATFORM_FALSE=
7380 case "$host" in
7381 *-darwin*) DARWIN_CRT=true ;;
7382 *) DARWIN_CRT=false ;;
7383 esac
7386 if $DARWIN_CRT; then
7387 USING_DARWIN_CRT_TRUE=
7388 USING_DARWIN_CRT_FALSE='#'
7389 else
7390 USING_DARWIN_CRT_TRUE='#'
7391 USING_DARWIN_CRT_FALSE=
7395 # These may not be defined in a non-ANS conformant embedded system.
7396 # FIXME: Should these case a runtime exception in that case?
7397 cat >conftest.$ac_ext <<_ACEOF
7398 /* confdefs.h. */
7399 _ACEOF
7400 cat confdefs.h >>conftest.$ac_ext
7401 cat >>conftest.$ac_ext <<_ACEOF
7402 /* end confdefs.h. */
7403 #include <time.h>
7405 _ACEOF
7406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7407 $EGREP "mktime" >/dev/null 2>&1; then
7409 cat >>confdefs.h <<\_ACEOF
7410 #define HAVE_MKTIME 1
7411 _ACEOF
7414 rm -f conftest*
7416 cat >conftest.$ac_ext <<_ACEOF
7417 /* confdefs.h. */
7418 _ACEOF
7419 cat confdefs.h >>conftest.$ac_ext
7420 cat >>conftest.$ac_ext <<_ACEOF
7421 /* end confdefs.h. */
7422 #include <time.h>
7424 _ACEOF
7425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7426 $EGREP "localtime" >/dev/null 2>&1; then
7428 cat >>confdefs.h <<\_ACEOF
7429 #define HAVE_LOCALTIME 1
7430 _ACEOF
7433 rm -f conftest*
7436 # Create the subdirectory for natFile.cc, or the attempt
7437 # to create the link will fail.
7438 test -d java || mkdir java
7439 test -d java/io || mkdir java/io
7440 test -d gnu || mkdir gnu
7441 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
7444 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
7445 test -d java/lang || mkdir java/lang
7446 ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
7448 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
7451 # Likewise for natInetAddress.cc and natVMNetworkInterface.cc.
7452 test -d java/net || mkdir java/net
7453 ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
7455 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
7458 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
7459 test -d gnu/java || mkdir gnu/java
7460 test -d gnu/java/net || mkdir gnu/java/net
7461 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
7463 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
7466 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
7467 test -d gnu/java/nio || mkdir gnu/java/nio
7468 ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
7470 ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
7472 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
7473 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
7476 case "${host}" in
7477 *mingw*)
7478 SYSTEMSPEC="-lgdi32 -lws2_32"
7479 if test "${with_win32_nlsapi}" = "unicows"; then
7480 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
7484 SYSTEMSPEC=
7486 esac
7489 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
7493 # Check whether --with-system-zlib or --without-system-zlib was given.
7494 if test "${with_system_zlib+set}" = set; then
7495 withval="$with_system_zlib"
7498 ZLIBSPEC=
7500 ZLIBTESTSPEC=
7503 echo "$as_me:$LINENO: checking for X" >&5
7504 echo $ECHO_N "checking for X... $ECHO_C" >&6
7507 # Check whether --with-x or --without-x was given.
7508 if test "${with_x+set}" = set; then
7509 withval="$with_x"
7512 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7513 if test "x$with_x" = xno; then
7514 # The user explicitly disabled X.
7515 have_x=disabled
7516 else
7517 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7518 # Both variables are already set.
7519 have_x=yes
7520 else
7521 if test "${ac_cv_have_x+set}" = set; then
7522 echo $ECHO_N "(cached) $ECHO_C" >&6
7523 else
7524 # One or both of the vars are not set, and there is no cached value.
7525 ac_x_includes=no ac_x_libraries=no
7526 rm -fr conftest.dir
7527 if mkdir conftest.dir; then
7528 cd conftest.dir
7529 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7530 cat >Imakefile <<'_ACEOF'
7531 acfindx:
7532 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7533 _ACEOF
7534 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7535 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7536 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7537 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7538 for ac_extension in a so sl; do
7539 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7540 test -f $ac_im_libdir/libX11.$ac_extension; then
7541 ac_im_usrlibdir=$ac_im_libdir; break
7543 done
7544 # Screen out bogus values from the imake configuration. They are
7545 # bogus both because they are the default anyway, and because
7546 # using them would break gcc on systems where it needs fixed includes.
7547 case $ac_im_incroot in
7548 /usr/include) ;;
7549 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7550 esac
7551 case $ac_im_usrlibdir in
7552 /usr/lib | /lib) ;;
7553 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7554 esac
7556 cd ..
7557 rm -fr conftest.dir
7560 # Standard set of common directories for X headers.
7561 # Check X11 before X11Rn because it is often a symlink to the current release.
7562 ac_x_header_dirs='
7563 /usr/X11/include
7564 /usr/X11R6/include
7565 /usr/X11R5/include
7566 /usr/X11R4/include
7568 /usr/include/X11
7569 /usr/include/X11R6
7570 /usr/include/X11R5
7571 /usr/include/X11R4
7573 /usr/local/X11/include
7574 /usr/local/X11R6/include
7575 /usr/local/X11R5/include
7576 /usr/local/X11R4/include
7578 /usr/local/include/X11
7579 /usr/local/include/X11R6
7580 /usr/local/include/X11R5
7581 /usr/local/include/X11R4
7583 /usr/X386/include
7584 /usr/x386/include
7585 /usr/XFree86/include/X11
7587 /usr/include
7588 /usr/local/include
7589 /usr/unsupported/include
7590 /usr/athena/include
7591 /usr/local/x11r5/include
7592 /usr/lpp/Xamples/include
7594 /usr/openwin/include
7595 /usr/openwin/share/include'
7597 if test "$ac_x_includes" = no; then
7598 # Guess where to find include files, by looking for Intrinsic.h.
7599 # First, try using that file with no special directory specified.
7600 cat >conftest.$ac_ext <<_ACEOF
7601 /* confdefs.h. */
7602 _ACEOF
7603 cat confdefs.h >>conftest.$ac_ext
7604 cat >>conftest.$ac_ext <<_ACEOF
7605 /* end confdefs.h. */
7606 #include <X11/Intrinsic.h>
7607 _ACEOF
7608 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7609 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
7616 if test -s conftest.err; then
7617 ac_cpp_err=$ac_c_preproc_warn_flag
7618 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7619 else
7620 ac_cpp_err=
7622 else
7623 ac_cpp_err=yes
7625 if test -z "$ac_cpp_err"; then
7626 # We can compile using X headers with no special include directory.
7627 ac_x_includes=
7628 else
7629 echo "$as_me: failed program was:" >&5
7630 sed 's/^/| /' conftest.$ac_ext >&5
7632 for ac_dir in $ac_x_header_dirs; do
7633 if test -r "$ac_dir/X11/Intrinsic.h"; then
7634 ac_x_includes=$ac_dir
7635 break
7637 done
7639 rm -f conftest.err conftest.$ac_ext
7640 fi # $ac_x_includes = no
7642 if test "$ac_x_libraries" = no; then
7643 # Check for the libraries.
7644 # See if we find them without any special options.
7645 # Don't add to $LIBS permanently.
7646 ac_save_LIBS=$LIBS
7647 LIBS="-lXt $LIBS"
7648 if test x$gcc_no_link = xyes; then
7649 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7650 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7651 { (exit 1); exit 1; }; }
7653 cat >conftest.$ac_ext <<_ACEOF
7654 /* confdefs.h. */
7655 _ACEOF
7656 cat confdefs.h >>conftest.$ac_ext
7657 cat >>conftest.$ac_ext <<_ACEOF
7658 /* end confdefs.h. */
7659 #include <X11/Intrinsic.h>
7661 main ()
7663 XtMalloc (0)
7665 return 0;
7667 _ACEOF
7668 rm -f conftest.$ac_objext conftest$ac_exeext
7669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7670 (eval $ac_link) 2>conftest.er1
7671 ac_status=$?
7672 grep -v '^ *+' conftest.er1 >conftest.err
7673 rm -f conftest.er1
7674 cat conftest.err >&5
7675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); } &&
7677 { ac_try='test -z "$ac_c_werror_flag"
7678 || test ! -s conftest.err'
7679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7680 (eval $ac_try) 2>&5
7681 ac_status=$?
7682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683 (exit $ac_status); }; } &&
7684 { ac_try='test -s conftest$ac_exeext'
7685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7686 (eval $ac_try) 2>&5
7687 ac_status=$?
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); }; }; then
7690 LIBS=$ac_save_LIBS
7691 # We can link X programs with no special library path.
7692 ac_x_libraries=
7693 else
7694 echo "$as_me: failed program was:" >&5
7695 sed 's/^/| /' conftest.$ac_ext >&5
7697 LIBS=$ac_save_LIBS
7698 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7700 # Don't even attempt the hair of trying to link an X program!
7701 for ac_extension in a so sl; do
7702 if test -r $ac_dir/libXt.$ac_extension; then
7703 ac_x_libraries=$ac_dir
7704 break 2
7706 done
7707 done
7709 rm -f conftest.err conftest.$ac_objext \
7710 conftest$ac_exeext conftest.$ac_ext
7711 fi # $ac_x_libraries = no
7713 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7714 # Didn't find X anywhere. Cache the known absence of X.
7715 ac_cv_have_x="have_x=no"
7716 else
7717 # Record where we found X for the cache.
7718 ac_cv_have_x="have_x=yes \
7719 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7724 eval "$ac_cv_have_x"
7725 fi # $with_x != no
7727 if test "$have_x" != yes; then
7728 echo "$as_me:$LINENO: result: $have_x" >&5
7729 echo "${ECHO_T}$have_x" >&6
7730 no_x=yes
7731 else
7732 # If each of the values was on the command line, it overrides each guess.
7733 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7734 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7735 # Update the cache value to reflect the command line values.
7736 ac_cv_have_x="have_x=yes \
7737 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7738 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7739 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7742 if test "$no_x" = yes; then
7743 # Not all programs may use this symbol, but it does not hurt to define it.
7745 cat >>confdefs.h <<\_ACEOF
7746 #define X_DISPLAY_MISSING 1
7747 _ACEOF
7749 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7750 else
7751 if test -n "$x_includes"; then
7752 X_CFLAGS="$X_CFLAGS -I$x_includes"
7755 # It would also be nice to do this for all -L options, not just this one.
7756 if test -n "$x_libraries"; then
7757 X_LIBS="$X_LIBS -L$x_libraries"
7758 # For Solaris; some versions of Sun CC require a space after -R and
7759 # others require no space. Words are not sufficient . . . .
7760 case `(uname -sr) 2>/dev/null` in
7761 "SunOS 5"*)
7762 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7763 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7764 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7765 if test x$gcc_no_link = xyes; then
7766 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7767 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7768 { (exit 1); exit 1; }; }
7770 cat >conftest.$ac_ext <<_ACEOF
7771 /* confdefs.h. */
7772 _ACEOF
7773 cat confdefs.h >>conftest.$ac_ext
7774 cat >>conftest.$ac_ext <<_ACEOF
7775 /* end confdefs.h. */
7778 main ()
7782 return 0;
7784 _ACEOF
7785 rm -f conftest.$ac_objext conftest$ac_exeext
7786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7787 (eval $ac_link) 2>conftest.er1
7788 ac_status=$?
7789 grep -v '^ *+' conftest.er1 >conftest.err
7790 rm -f conftest.er1
7791 cat conftest.err >&5
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); } &&
7794 { ac_try='test -z "$ac_c_werror_flag"
7795 || test ! -s conftest.err'
7796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7797 (eval $ac_try) 2>&5
7798 ac_status=$?
7799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800 (exit $ac_status); }; } &&
7801 { ac_try='test -s conftest$ac_exeext'
7802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7803 (eval $ac_try) 2>&5
7804 ac_status=$?
7805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806 (exit $ac_status); }; }; then
7807 ac_R_nospace=yes
7808 else
7809 echo "$as_me: failed program was:" >&5
7810 sed 's/^/| /' conftest.$ac_ext >&5
7812 ac_R_nospace=no
7814 rm -f conftest.err conftest.$ac_objext \
7815 conftest$ac_exeext conftest.$ac_ext
7816 if test $ac_R_nospace = yes; then
7817 echo "$as_me:$LINENO: result: no" >&5
7818 echo "${ECHO_T}no" >&6
7819 X_LIBS="$X_LIBS -R$x_libraries"
7820 else
7821 LIBS="$ac_xsave_LIBS -R $x_libraries"
7822 if test x$gcc_no_link = xyes; then
7823 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7824 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7825 { (exit 1); exit 1; }; }
7827 cat >conftest.$ac_ext <<_ACEOF
7828 /* confdefs.h. */
7829 _ACEOF
7830 cat confdefs.h >>conftest.$ac_ext
7831 cat >>conftest.$ac_ext <<_ACEOF
7832 /* end confdefs.h. */
7835 main ()
7839 return 0;
7841 _ACEOF
7842 rm -f conftest.$ac_objext conftest$ac_exeext
7843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7844 (eval $ac_link) 2>conftest.er1
7845 ac_status=$?
7846 grep -v '^ *+' conftest.er1 >conftest.err
7847 rm -f conftest.er1
7848 cat conftest.err >&5
7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 (exit $ac_status); } &&
7851 { ac_try='test -z "$ac_c_werror_flag"
7852 || test ! -s conftest.err'
7853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7854 (eval $ac_try) 2>&5
7855 ac_status=$?
7856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857 (exit $ac_status); }; } &&
7858 { ac_try='test -s conftest$ac_exeext'
7859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7860 (eval $ac_try) 2>&5
7861 ac_status=$?
7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 (exit $ac_status); }; }; then
7864 ac_R_space=yes
7865 else
7866 echo "$as_me: failed program was:" >&5
7867 sed 's/^/| /' conftest.$ac_ext >&5
7869 ac_R_space=no
7871 rm -f conftest.err conftest.$ac_objext \
7872 conftest$ac_exeext conftest.$ac_ext
7873 if test $ac_R_space = yes; then
7874 echo "$as_me:$LINENO: result: yes" >&5
7875 echo "${ECHO_T}yes" >&6
7876 X_LIBS="$X_LIBS -R $x_libraries"
7877 else
7878 echo "$as_me:$LINENO: result: neither works" >&5
7879 echo "${ECHO_T}neither works" >&6
7882 LIBS=$ac_xsave_LIBS
7883 esac
7886 # Check for system-dependent libraries X programs must link with.
7887 # Do this before checking for the system-independent R6 libraries
7888 # (-lICE), since we may need -lsocket or whatever for X linking.
7890 if test "$ISC" = yes; then
7891 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7892 else
7893 # Martyn Johnson says this is needed for Ultrix, if the X
7894 # libraries were built with DECnet support. And Karl Berry says
7895 # the Alpha needs dnet_stub (dnet does not exist).
7896 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7897 if test x$gcc_no_link = xyes; then
7898 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7899 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7900 { (exit 1); exit 1; }; }
7902 cat >conftest.$ac_ext <<_ACEOF
7903 /* confdefs.h. */
7904 _ACEOF
7905 cat confdefs.h >>conftest.$ac_ext
7906 cat >>conftest.$ac_ext <<_ACEOF
7907 /* end confdefs.h. */
7909 /* Override any gcc2 internal prototype to avoid an error. */
7910 #ifdef __cplusplus
7911 extern "C"
7912 #endif
7913 /* We use char because int might match the return type of a gcc2
7914 builtin and then its argument prototype would still apply. */
7915 char XOpenDisplay ();
7917 main ()
7919 XOpenDisplay ();
7921 return 0;
7923 _ACEOF
7924 rm -f conftest.$ac_objext conftest$ac_exeext
7925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7926 (eval $ac_link) 2>conftest.er1
7927 ac_status=$?
7928 grep -v '^ *+' conftest.er1 >conftest.err
7929 rm -f conftest.er1
7930 cat conftest.err >&5
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); } &&
7933 { ac_try='test -z "$ac_c_werror_flag"
7934 || test ! -s conftest.err'
7935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7936 (eval $ac_try) 2>&5
7937 ac_status=$?
7938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939 (exit $ac_status); }; } &&
7940 { ac_try='test -s conftest$ac_exeext'
7941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7942 (eval $ac_try) 2>&5
7943 ac_status=$?
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); }; }; then
7947 else
7948 echo "$as_me: failed program was:" >&5
7949 sed 's/^/| /' conftest.$ac_ext >&5
7951 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7952 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7953 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7954 echo $ECHO_N "(cached) $ECHO_C" >&6
7955 else
7956 ac_check_lib_save_LIBS=$LIBS
7957 LIBS="-ldnet $LIBS"
7958 if test x$gcc_no_link = xyes; then
7959 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7960 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7961 { (exit 1); exit 1; }; }
7963 cat >conftest.$ac_ext <<_ACEOF
7964 /* confdefs.h. */
7965 _ACEOF
7966 cat confdefs.h >>conftest.$ac_ext
7967 cat >>conftest.$ac_ext <<_ACEOF
7968 /* end confdefs.h. */
7970 /* Override any gcc2 internal prototype to avoid an error. */
7971 #ifdef __cplusplus
7972 extern "C"
7973 #endif
7974 /* We use char because int might match the return type of a gcc2
7975 builtin and then its argument prototype would still apply. */
7976 char dnet_ntoa ();
7978 main ()
7980 dnet_ntoa ();
7982 return 0;
7984 _ACEOF
7985 rm -f conftest.$ac_objext conftest$ac_exeext
7986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7987 (eval $ac_link) 2>conftest.er1
7988 ac_status=$?
7989 grep -v '^ *+' conftest.er1 >conftest.err
7990 rm -f conftest.er1
7991 cat conftest.err >&5
7992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993 (exit $ac_status); } &&
7994 { ac_try='test -z "$ac_c_werror_flag"
7995 || test ! -s conftest.err'
7996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7997 (eval $ac_try) 2>&5
7998 ac_status=$?
7999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000 (exit $ac_status); }; } &&
8001 { ac_try='test -s conftest$ac_exeext'
8002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8003 (eval $ac_try) 2>&5
8004 ac_status=$?
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); }; }; then
8007 ac_cv_lib_dnet_dnet_ntoa=yes
8008 else
8009 echo "$as_me: failed program was:" >&5
8010 sed 's/^/| /' conftest.$ac_ext >&5
8012 ac_cv_lib_dnet_dnet_ntoa=no
8014 rm -f conftest.err conftest.$ac_objext \
8015 conftest$ac_exeext conftest.$ac_ext
8016 LIBS=$ac_check_lib_save_LIBS
8018 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8019 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8020 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8021 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8024 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8025 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8026 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8027 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8028 echo $ECHO_N "(cached) $ECHO_C" >&6
8029 else
8030 ac_check_lib_save_LIBS=$LIBS
8031 LIBS="-ldnet_stub $LIBS"
8032 if test x$gcc_no_link = xyes; then
8033 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8034 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8035 { (exit 1); exit 1; }; }
8037 cat >conftest.$ac_ext <<_ACEOF
8038 /* confdefs.h. */
8039 _ACEOF
8040 cat confdefs.h >>conftest.$ac_ext
8041 cat >>conftest.$ac_ext <<_ACEOF
8042 /* end confdefs.h. */
8044 /* Override any gcc2 internal prototype to avoid an error. */
8045 #ifdef __cplusplus
8046 extern "C"
8047 #endif
8048 /* We use char because int might match the return type of a gcc2
8049 builtin and then its argument prototype would still apply. */
8050 char dnet_ntoa ();
8052 main ()
8054 dnet_ntoa ();
8056 return 0;
8058 _ACEOF
8059 rm -f conftest.$ac_objext conftest$ac_exeext
8060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8061 (eval $ac_link) 2>conftest.er1
8062 ac_status=$?
8063 grep -v '^ *+' conftest.er1 >conftest.err
8064 rm -f conftest.er1
8065 cat conftest.err >&5
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); } &&
8068 { ac_try='test -z "$ac_c_werror_flag"
8069 || test ! -s conftest.err'
8070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8071 (eval $ac_try) 2>&5
8072 ac_status=$?
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); }; } &&
8075 { ac_try='test -s conftest$ac_exeext'
8076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8077 (eval $ac_try) 2>&5
8078 ac_status=$?
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); }; }; then
8081 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8082 else
8083 echo "$as_me: failed program was:" >&5
8084 sed 's/^/| /' conftest.$ac_ext >&5
8086 ac_cv_lib_dnet_stub_dnet_ntoa=no
8088 rm -f conftest.err conftest.$ac_objext \
8089 conftest$ac_exeext conftest.$ac_ext
8090 LIBS=$ac_check_lib_save_LIBS
8092 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8093 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8094 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8095 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8100 rm -f conftest.err conftest.$ac_objext \
8101 conftest$ac_exeext conftest.$ac_ext
8102 LIBS="$ac_xsave_LIBS"
8104 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8105 # to get the SysV transport functions.
8106 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8107 # needs -lnsl.
8108 # The nsl library prevents programs from opening the X display
8109 # on Irix 5.2, according to T.E. Dickey.
8110 # The functions gethostbyname, getservbyname, and inet_addr are
8111 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8112 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8113 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8114 if test "${ac_cv_func_gethostbyname+set}" = set; then
8115 echo $ECHO_N "(cached) $ECHO_C" >&6
8116 else
8117 if test x$gcc_no_link = xyes; then
8118 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8119 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8120 { (exit 1); exit 1; }; }
8122 cat >conftest.$ac_ext <<_ACEOF
8123 /* confdefs.h. */
8124 _ACEOF
8125 cat confdefs.h >>conftest.$ac_ext
8126 cat >>conftest.$ac_ext <<_ACEOF
8127 /* end confdefs.h. */
8128 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
8129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8130 #define gethostbyname innocuous_gethostbyname
8132 /* System header to define __stub macros and hopefully few prototypes,
8133 which can conflict with char gethostbyname (); below.
8134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8135 <limits.h> exists even on freestanding compilers. */
8137 #ifdef __STDC__
8138 # include <limits.h>
8139 #else
8140 # include <assert.h>
8141 #endif
8143 #undef gethostbyname
8145 /* Override any gcc2 internal prototype to avoid an error. */
8146 #ifdef __cplusplus
8147 extern "C"
8149 #endif
8150 /* We use char because int might match the return type of a gcc2
8151 builtin and then its argument prototype would still apply. */
8152 char gethostbyname ();
8153 /* The GNU C library defines this for functions which it implements
8154 to always fail with ENOSYS. Some functions are actually named
8155 something starting with __ and the normal name is an alias. */
8156 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8157 choke me
8158 #else
8159 char (*f) () = gethostbyname;
8160 #endif
8161 #ifdef __cplusplus
8163 #endif
8166 main ()
8168 return f != gethostbyname;
8170 return 0;
8172 _ACEOF
8173 rm -f conftest.$ac_objext conftest$ac_exeext
8174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8175 (eval $ac_link) 2>conftest.er1
8176 ac_status=$?
8177 grep -v '^ *+' conftest.er1 >conftest.err
8178 rm -f conftest.er1
8179 cat conftest.err >&5
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); } &&
8182 { ac_try='test -z "$ac_c_werror_flag"
8183 || test ! -s conftest.err'
8184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8185 (eval $ac_try) 2>&5
8186 ac_status=$?
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); }; } &&
8189 { ac_try='test -s conftest$ac_exeext'
8190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8191 (eval $ac_try) 2>&5
8192 ac_status=$?
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); }; }; then
8195 ac_cv_func_gethostbyname=yes
8196 else
8197 echo "$as_me: failed program was:" >&5
8198 sed 's/^/| /' conftest.$ac_ext >&5
8200 ac_cv_func_gethostbyname=no
8202 rm -f conftest.err conftest.$ac_objext \
8203 conftest$ac_exeext conftest.$ac_ext
8205 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8206 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8208 if test $ac_cv_func_gethostbyname = no; then
8209 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8210 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8211 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8212 echo $ECHO_N "(cached) $ECHO_C" >&6
8213 else
8214 ac_check_lib_save_LIBS=$LIBS
8215 LIBS="-lnsl $LIBS"
8216 if test x$gcc_no_link = xyes; then
8217 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8218 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8219 { (exit 1); exit 1; }; }
8221 cat >conftest.$ac_ext <<_ACEOF
8222 /* confdefs.h. */
8223 _ACEOF
8224 cat confdefs.h >>conftest.$ac_ext
8225 cat >>conftest.$ac_ext <<_ACEOF
8226 /* end confdefs.h. */
8228 /* Override any gcc2 internal prototype to avoid an error. */
8229 #ifdef __cplusplus
8230 extern "C"
8231 #endif
8232 /* We use char because int might match the return type of a gcc2
8233 builtin and then its argument prototype would still apply. */
8234 char gethostbyname ();
8236 main ()
8238 gethostbyname ();
8240 return 0;
8242 _ACEOF
8243 rm -f conftest.$ac_objext conftest$ac_exeext
8244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8245 (eval $ac_link) 2>conftest.er1
8246 ac_status=$?
8247 grep -v '^ *+' conftest.er1 >conftest.err
8248 rm -f conftest.er1
8249 cat conftest.err >&5
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); } &&
8252 { ac_try='test -z "$ac_c_werror_flag"
8253 || test ! -s conftest.err'
8254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8255 (eval $ac_try) 2>&5
8256 ac_status=$?
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); }; } &&
8259 { ac_try='test -s conftest$ac_exeext'
8260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8261 (eval $ac_try) 2>&5
8262 ac_status=$?
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); }; }; then
8265 ac_cv_lib_nsl_gethostbyname=yes
8266 else
8267 echo "$as_me: failed program was:" >&5
8268 sed 's/^/| /' conftest.$ac_ext >&5
8270 ac_cv_lib_nsl_gethostbyname=no
8272 rm -f conftest.err conftest.$ac_objext \
8273 conftest$ac_exeext conftest.$ac_ext
8274 LIBS=$ac_check_lib_save_LIBS
8276 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8277 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8278 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8279 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8282 if test $ac_cv_lib_nsl_gethostbyname = no; then
8283 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8284 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8285 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8286 echo $ECHO_N "(cached) $ECHO_C" >&6
8287 else
8288 ac_check_lib_save_LIBS=$LIBS
8289 LIBS="-lbsd $LIBS"
8290 if test x$gcc_no_link = xyes; then
8291 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8292 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8293 { (exit 1); exit 1; }; }
8295 cat >conftest.$ac_ext <<_ACEOF
8296 /* confdefs.h. */
8297 _ACEOF
8298 cat confdefs.h >>conftest.$ac_ext
8299 cat >>conftest.$ac_ext <<_ACEOF
8300 /* end confdefs.h. */
8302 /* Override any gcc2 internal prototype to avoid an error. */
8303 #ifdef __cplusplus
8304 extern "C"
8305 #endif
8306 /* We use char because int might match the return type of a gcc2
8307 builtin and then its argument prototype would still apply. */
8308 char gethostbyname ();
8310 main ()
8312 gethostbyname ();
8314 return 0;
8316 _ACEOF
8317 rm -f conftest.$ac_objext conftest$ac_exeext
8318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8319 (eval $ac_link) 2>conftest.er1
8320 ac_status=$?
8321 grep -v '^ *+' conftest.er1 >conftest.err
8322 rm -f conftest.er1
8323 cat conftest.err >&5
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); } &&
8326 { ac_try='test -z "$ac_c_werror_flag"
8327 || test ! -s conftest.err'
8328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8329 (eval $ac_try) 2>&5
8330 ac_status=$?
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); }; } &&
8333 { ac_try='test -s conftest$ac_exeext'
8334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8335 (eval $ac_try) 2>&5
8336 ac_status=$?
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); }; }; then
8339 ac_cv_lib_bsd_gethostbyname=yes
8340 else
8341 echo "$as_me: failed program was:" >&5
8342 sed 's/^/| /' conftest.$ac_ext >&5
8344 ac_cv_lib_bsd_gethostbyname=no
8346 rm -f conftest.err conftest.$ac_objext \
8347 conftest$ac_exeext conftest.$ac_ext
8348 LIBS=$ac_check_lib_save_LIBS
8350 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8351 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8352 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8353 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8359 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8360 # socket/setsockopt and other routines are undefined under SCO ODT
8361 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8362 # on later versions), says Simon Leinen: it contains gethostby*
8363 # variants that don't use the name server (or something). -lsocket
8364 # must be given before -lnsl if both are needed. We assume that
8365 # if connect needs -lnsl, so does gethostbyname.
8366 echo "$as_me:$LINENO: checking for connect" >&5
8367 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8368 if test "${ac_cv_func_connect+set}" = set; then
8369 echo $ECHO_N "(cached) $ECHO_C" >&6
8370 else
8371 if test x$gcc_no_link = xyes; then
8372 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8373 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8374 { (exit 1); exit 1; }; }
8376 cat >conftest.$ac_ext <<_ACEOF
8377 /* confdefs.h. */
8378 _ACEOF
8379 cat confdefs.h >>conftest.$ac_ext
8380 cat >>conftest.$ac_ext <<_ACEOF
8381 /* end confdefs.h. */
8382 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
8383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8384 #define connect innocuous_connect
8386 /* System header to define __stub macros and hopefully few prototypes,
8387 which can conflict with char connect (); below.
8388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8389 <limits.h> exists even on freestanding compilers. */
8391 #ifdef __STDC__
8392 # include <limits.h>
8393 #else
8394 # include <assert.h>
8395 #endif
8397 #undef connect
8399 /* Override any gcc2 internal prototype to avoid an error. */
8400 #ifdef __cplusplus
8401 extern "C"
8403 #endif
8404 /* We use char because int might match the return type of a gcc2
8405 builtin and then its argument prototype would still apply. */
8406 char connect ();
8407 /* The GNU C library defines this for functions which it implements
8408 to always fail with ENOSYS. Some functions are actually named
8409 something starting with __ and the normal name is an alias. */
8410 #if defined (__stub_connect) || defined (__stub___connect)
8411 choke me
8412 #else
8413 char (*f) () = connect;
8414 #endif
8415 #ifdef __cplusplus
8417 #endif
8420 main ()
8422 return f != connect;
8424 return 0;
8426 _ACEOF
8427 rm -f conftest.$ac_objext conftest$ac_exeext
8428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8429 (eval $ac_link) 2>conftest.er1
8430 ac_status=$?
8431 grep -v '^ *+' conftest.er1 >conftest.err
8432 rm -f conftest.er1
8433 cat conftest.err >&5
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); } &&
8436 { ac_try='test -z "$ac_c_werror_flag"
8437 || test ! -s conftest.err'
8438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8439 (eval $ac_try) 2>&5
8440 ac_status=$?
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); }; } &&
8443 { ac_try='test -s conftest$ac_exeext'
8444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8445 (eval $ac_try) 2>&5
8446 ac_status=$?
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); }; }; then
8449 ac_cv_func_connect=yes
8450 else
8451 echo "$as_me: failed program was:" >&5
8452 sed 's/^/| /' conftest.$ac_ext >&5
8454 ac_cv_func_connect=no
8456 rm -f conftest.err conftest.$ac_objext \
8457 conftest$ac_exeext conftest.$ac_ext
8459 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8460 echo "${ECHO_T}$ac_cv_func_connect" >&6
8462 if test $ac_cv_func_connect = no; then
8463 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8464 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8465 if test "${ac_cv_lib_socket_connect+set}" = set; then
8466 echo $ECHO_N "(cached) $ECHO_C" >&6
8467 else
8468 ac_check_lib_save_LIBS=$LIBS
8469 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8470 if test x$gcc_no_link = xyes; then
8471 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8472 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8473 { (exit 1); exit 1; }; }
8475 cat >conftest.$ac_ext <<_ACEOF
8476 /* confdefs.h. */
8477 _ACEOF
8478 cat confdefs.h >>conftest.$ac_ext
8479 cat >>conftest.$ac_ext <<_ACEOF
8480 /* end confdefs.h. */
8482 /* Override any gcc2 internal prototype to avoid an error. */
8483 #ifdef __cplusplus
8484 extern "C"
8485 #endif
8486 /* We use char because int might match the return type of a gcc2
8487 builtin and then its argument prototype would still apply. */
8488 char connect ();
8490 main ()
8492 connect ();
8494 return 0;
8496 _ACEOF
8497 rm -f conftest.$ac_objext conftest$ac_exeext
8498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8499 (eval $ac_link) 2>conftest.er1
8500 ac_status=$?
8501 grep -v '^ *+' conftest.er1 >conftest.err
8502 rm -f conftest.er1
8503 cat conftest.err >&5
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); } &&
8506 { ac_try='test -z "$ac_c_werror_flag"
8507 || test ! -s conftest.err'
8508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8509 (eval $ac_try) 2>&5
8510 ac_status=$?
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); }; } &&
8513 { ac_try='test -s conftest$ac_exeext'
8514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8515 (eval $ac_try) 2>&5
8516 ac_status=$?
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); }; }; then
8519 ac_cv_lib_socket_connect=yes
8520 else
8521 echo "$as_me: failed program was:" >&5
8522 sed 's/^/| /' conftest.$ac_ext >&5
8524 ac_cv_lib_socket_connect=no
8526 rm -f conftest.err conftest.$ac_objext \
8527 conftest$ac_exeext conftest.$ac_ext
8528 LIBS=$ac_check_lib_save_LIBS
8530 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8531 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8532 if test $ac_cv_lib_socket_connect = yes; then
8533 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8538 # Guillermo Gomez says -lposix is necessary on A/UX.
8539 echo "$as_me:$LINENO: checking for remove" >&5
8540 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8541 if test "${ac_cv_func_remove+set}" = set; then
8542 echo $ECHO_N "(cached) $ECHO_C" >&6
8543 else
8544 if test x$gcc_no_link = xyes; then
8545 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8546 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8547 { (exit 1); exit 1; }; }
8549 cat >conftest.$ac_ext <<_ACEOF
8550 /* confdefs.h. */
8551 _ACEOF
8552 cat confdefs.h >>conftest.$ac_ext
8553 cat >>conftest.$ac_ext <<_ACEOF
8554 /* end confdefs.h. */
8555 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
8556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8557 #define remove innocuous_remove
8559 /* System header to define __stub macros and hopefully few prototypes,
8560 which can conflict with char remove (); below.
8561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8562 <limits.h> exists even on freestanding compilers. */
8564 #ifdef __STDC__
8565 # include <limits.h>
8566 #else
8567 # include <assert.h>
8568 #endif
8570 #undef remove
8572 /* Override any gcc2 internal prototype to avoid an error. */
8573 #ifdef __cplusplus
8574 extern "C"
8576 #endif
8577 /* We use char because int might match the return type of a gcc2
8578 builtin and then its argument prototype would still apply. */
8579 char remove ();
8580 /* The GNU C library defines this for functions which it implements
8581 to always fail with ENOSYS. Some functions are actually named
8582 something starting with __ and the normal name is an alias. */
8583 #if defined (__stub_remove) || defined (__stub___remove)
8584 choke me
8585 #else
8586 char (*f) () = remove;
8587 #endif
8588 #ifdef __cplusplus
8590 #endif
8593 main ()
8595 return f != remove;
8597 return 0;
8599 _ACEOF
8600 rm -f conftest.$ac_objext conftest$ac_exeext
8601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8602 (eval $ac_link) 2>conftest.er1
8603 ac_status=$?
8604 grep -v '^ *+' conftest.er1 >conftest.err
8605 rm -f conftest.er1
8606 cat conftest.err >&5
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); } &&
8609 { ac_try='test -z "$ac_c_werror_flag"
8610 || test ! -s conftest.err'
8611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8612 (eval $ac_try) 2>&5
8613 ac_status=$?
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); }; } &&
8616 { ac_try='test -s conftest$ac_exeext'
8617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8618 (eval $ac_try) 2>&5
8619 ac_status=$?
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); }; }; then
8622 ac_cv_func_remove=yes
8623 else
8624 echo "$as_me: failed program was:" >&5
8625 sed 's/^/| /' conftest.$ac_ext >&5
8627 ac_cv_func_remove=no
8629 rm -f conftest.err conftest.$ac_objext \
8630 conftest$ac_exeext conftest.$ac_ext
8632 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8633 echo "${ECHO_T}$ac_cv_func_remove" >&6
8635 if test $ac_cv_func_remove = no; then
8636 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8637 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8638 if test "${ac_cv_lib_posix_remove+set}" = set; then
8639 echo $ECHO_N "(cached) $ECHO_C" >&6
8640 else
8641 ac_check_lib_save_LIBS=$LIBS
8642 LIBS="-lposix $LIBS"
8643 if test x$gcc_no_link = xyes; then
8644 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8645 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8646 { (exit 1); exit 1; }; }
8648 cat >conftest.$ac_ext <<_ACEOF
8649 /* confdefs.h. */
8650 _ACEOF
8651 cat confdefs.h >>conftest.$ac_ext
8652 cat >>conftest.$ac_ext <<_ACEOF
8653 /* end confdefs.h. */
8655 /* Override any gcc2 internal prototype to avoid an error. */
8656 #ifdef __cplusplus
8657 extern "C"
8658 #endif
8659 /* We use char because int might match the return type of a gcc2
8660 builtin and then its argument prototype would still apply. */
8661 char remove ();
8663 main ()
8665 remove ();
8667 return 0;
8669 _ACEOF
8670 rm -f conftest.$ac_objext conftest$ac_exeext
8671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8672 (eval $ac_link) 2>conftest.er1
8673 ac_status=$?
8674 grep -v '^ *+' conftest.er1 >conftest.err
8675 rm -f conftest.er1
8676 cat conftest.err >&5
8677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678 (exit $ac_status); } &&
8679 { ac_try='test -z "$ac_c_werror_flag"
8680 || test ! -s conftest.err'
8681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8682 (eval $ac_try) 2>&5
8683 ac_status=$?
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); }; } &&
8686 { ac_try='test -s conftest$ac_exeext'
8687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8688 (eval $ac_try) 2>&5
8689 ac_status=$?
8690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 (exit $ac_status); }; }; then
8692 ac_cv_lib_posix_remove=yes
8693 else
8694 echo "$as_me: failed program was:" >&5
8695 sed 's/^/| /' conftest.$ac_ext >&5
8697 ac_cv_lib_posix_remove=no
8699 rm -f conftest.err conftest.$ac_objext \
8700 conftest$ac_exeext conftest.$ac_ext
8701 LIBS=$ac_check_lib_save_LIBS
8703 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8704 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8705 if test $ac_cv_lib_posix_remove = yes; then
8706 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8711 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8712 echo "$as_me:$LINENO: checking for shmat" >&5
8713 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8714 if test "${ac_cv_func_shmat+set}" = set; then
8715 echo $ECHO_N "(cached) $ECHO_C" >&6
8716 else
8717 if test x$gcc_no_link = xyes; then
8718 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8719 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8720 { (exit 1); exit 1; }; }
8722 cat >conftest.$ac_ext <<_ACEOF
8723 /* confdefs.h. */
8724 _ACEOF
8725 cat confdefs.h >>conftest.$ac_ext
8726 cat >>conftest.$ac_ext <<_ACEOF
8727 /* end confdefs.h. */
8728 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
8729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8730 #define shmat innocuous_shmat
8732 /* System header to define __stub macros and hopefully few prototypes,
8733 which can conflict with char shmat (); below.
8734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8735 <limits.h> exists even on freestanding compilers. */
8737 #ifdef __STDC__
8738 # include <limits.h>
8739 #else
8740 # include <assert.h>
8741 #endif
8743 #undef shmat
8745 /* Override any gcc2 internal prototype to avoid an error. */
8746 #ifdef __cplusplus
8747 extern "C"
8749 #endif
8750 /* We use char because int might match the return type of a gcc2
8751 builtin and then its argument prototype would still apply. */
8752 char shmat ();
8753 /* The GNU C library defines this for functions which it implements
8754 to always fail with ENOSYS. Some functions are actually named
8755 something starting with __ and the normal name is an alias. */
8756 #if defined (__stub_shmat) || defined (__stub___shmat)
8757 choke me
8758 #else
8759 char (*f) () = shmat;
8760 #endif
8761 #ifdef __cplusplus
8763 #endif
8766 main ()
8768 return f != shmat;
8770 return 0;
8772 _ACEOF
8773 rm -f conftest.$ac_objext conftest$ac_exeext
8774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8775 (eval $ac_link) 2>conftest.er1
8776 ac_status=$?
8777 grep -v '^ *+' conftest.er1 >conftest.err
8778 rm -f conftest.er1
8779 cat conftest.err >&5
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); } &&
8782 { ac_try='test -z "$ac_c_werror_flag"
8783 || test ! -s conftest.err'
8784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8785 (eval $ac_try) 2>&5
8786 ac_status=$?
8787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788 (exit $ac_status); }; } &&
8789 { ac_try='test -s conftest$ac_exeext'
8790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8791 (eval $ac_try) 2>&5
8792 ac_status=$?
8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); }; }; then
8795 ac_cv_func_shmat=yes
8796 else
8797 echo "$as_me: failed program was:" >&5
8798 sed 's/^/| /' conftest.$ac_ext >&5
8800 ac_cv_func_shmat=no
8802 rm -f conftest.err conftest.$ac_objext \
8803 conftest$ac_exeext conftest.$ac_ext
8805 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8806 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8808 if test $ac_cv_func_shmat = no; then
8809 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8810 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8811 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8812 echo $ECHO_N "(cached) $ECHO_C" >&6
8813 else
8814 ac_check_lib_save_LIBS=$LIBS
8815 LIBS="-lipc $LIBS"
8816 if test x$gcc_no_link = xyes; then
8817 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8818 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8819 { (exit 1); exit 1; }; }
8821 cat >conftest.$ac_ext <<_ACEOF
8822 /* confdefs.h. */
8823 _ACEOF
8824 cat confdefs.h >>conftest.$ac_ext
8825 cat >>conftest.$ac_ext <<_ACEOF
8826 /* end confdefs.h. */
8828 /* Override any gcc2 internal prototype to avoid an error. */
8829 #ifdef __cplusplus
8830 extern "C"
8831 #endif
8832 /* We use char because int might match the return type of a gcc2
8833 builtin and then its argument prototype would still apply. */
8834 char shmat ();
8836 main ()
8838 shmat ();
8840 return 0;
8842 _ACEOF
8843 rm -f conftest.$ac_objext conftest$ac_exeext
8844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8845 (eval $ac_link) 2>conftest.er1
8846 ac_status=$?
8847 grep -v '^ *+' conftest.er1 >conftest.err
8848 rm -f conftest.er1
8849 cat conftest.err >&5
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); } &&
8852 { ac_try='test -z "$ac_c_werror_flag"
8853 || test ! -s conftest.err'
8854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8855 (eval $ac_try) 2>&5
8856 ac_status=$?
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); }; } &&
8859 { ac_try='test -s conftest$ac_exeext'
8860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8861 (eval $ac_try) 2>&5
8862 ac_status=$?
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); }; }; then
8865 ac_cv_lib_ipc_shmat=yes
8866 else
8867 echo "$as_me: failed program was:" >&5
8868 sed 's/^/| /' conftest.$ac_ext >&5
8870 ac_cv_lib_ipc_shmat=no
8872 rm -f conftest.err conftest.$ac_objext \
8873 conftest$ac_exeext conftest.$ac_ext
8874 LIBS=$ac_check_lib_save_LIBS
8876 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8877 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8878 if test $ac_cv_lib_ipc_shmat = yes; then
8879 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8885 # Check for libraries that X11R6 Xt/Xaw programs need.
8886 ac_save_LDFLAGS=$LDFLAGS
8887 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8888 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8889 # check for ICE first), but we must link in the order -lSM -lICE or
8890 # we get undefined symbols. So assume we have SM if we have ICE.
8891 # These have to be linked with before -lX11, unlike the other
8892 # libraries we check for below, so use a different variable.
8893 # John Interrante, Karl Berry
8894 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8895 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8896 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8897 echo $ECHO_N "(cached) $ECHO_C" >&6
8898 else
8899 ac_check_lib_save_LIBS=$LIBS
8900 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8901 if test x$gcc_no_link = xyes; then
8902 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8903 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8904 { (exit 1); exit 1; }; }
8906 cat >conftest.$ac_ext <<_ACEOF
8907 /* confdefs.h. */
8908 _ACEOF
8909 cat confdefs.h >>conftest.$ac_ext
8910 cat >>conftest.$ac_ext <<_ACEOF
8911 /* end confdefs.h. */
8913 /* Override any gcc2 internal prototype to avoid an error. */
8914 #ifdef __cplusplus
8915 extern "C"
8916 #endif
8917 /* We use char because int might match the return type of a gcc2
8918 builtin and then its argument prototype would still apply. */
8919 char IceConnectionNumber ();
8921 main ()
8923 IceConnectionNumber ();
8925 return 0;
8927 _ACEOF
8928 rm -f conftest.$ac_objext conftest$ac_exeext
8929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8930 (eval $ac_link) 2>conftest.er1
8931 ac_status=$?
8932 grep -v '^ *+' conftest.er1 >conftest.err
8933 rm -f conftest.er1
8934 cat conftest.err >&5
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); } &&
8937 { ac_try='test -z "$ac_c_werror_flag"
8938 || test ! -s conftest.err'
8939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8940 (eval $ac_try) 2>&5
8941 ac_status=$?
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); }; } &&
8944 { ac_try='test -s conftest$ac_exeext'
8945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8946 (eval $ac_try) 2>&5
8947 ac_status=$?
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); }; }; then
8950 ac_cv_lib_ICE_IceConnectionNumber=yes
8951 else
8952 echo "$as_me: failed program was:" >&5
8953 sed 's/^/| /' conftest.$ac_ext >&5
8955 ac_cv_lib_ICE_IceConnectionNumber=no
8957 rm -f conftest.err conftest.$ac_objext \
8958 conftest$ac_exeext conftest.$ac_ext
8959 LIBS=$ac_check_lib_save_LIBS
8961 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8962 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8963 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8964 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8967 LDFLAGS=$ac_save_LDFLAGS
8972 # FIXME: this should be _libs on some hosts.
8973 libsubdir=.libs
8975 # extra LD Flags which are required for targets
8976 case "${host}" in
8977 *-*-darwin[0-7].*)
8978 # For now we have to disable it on darwin[8-9] because it slows down
8979 # the linking phase. A possible bug in ld?
8980 # on Darwin -single_module speeds up loading of the dynamic libraries.
8981 extra_ldflags_libjava=-Wl,-single_module
8983 esac
8986 # Allow the GC to be disabled. Can be useful when debugging.
8987 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
8988 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
8989 # Check whether --enable-java-gc or --disable-java-gc was given.
8990 if test "${enable_java_gc+set}" = set; then
8991 enableval="$enable_java_gc"
8992 GC=$enableval
8993 else
8994 GC=boehm
8996 GCLIBS=
8997 GCINCS=
8998 GCDEPS=
8999 GCSPEC=
9000 JC1GCSPEC=
9001 GCTESTSPEC=
9002 case "$GC" in
9003 boehm)
9004 echo "$as_me:$LINENO: result: boehm" >&5
9005 echo "${ECHO_T}boehm" >&6
9006 GCLIBS=../boehm-gc/libgcjgc_convenience.la
9007 JC1GCSPEC='-fuse-boehm-gc'
9008 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
9009 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
9010 GCOBJS=boehm.lo
9011 GCHDR=boehm-gc.h
9012 # The POSIX thread support needs to know this.
9014 cat >>confdefs.h <<\_ACEOF
9015 #define HAVE_BOEHM_GC 1
9016 _ACEOF
9020 echo "$as_me:$LINENO: result: none" >&5
9021 echo "${ECHO_T}none" >&6
9022 GCHDR=no-gc.h
9025 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
9026 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
9027 { (exit 1); exit 1; }; }
9029 esac
9036 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
9040 if test "$GC" = boehm; then
9041 USING_BOEHMGC_TRUE=
9042 USING_BOEHMGC_FALSE='#'
9043 else
9044 USING_BOEHMGC_TRUE='#'
9045 USING_BOEHMGC_FALSE=
9050 if test "$GC" = no; then
9051 USING_NOGC_TRUE=
9052 USING_NOGC_FALSE='#'
9053 else
9054 USING_NOGC_TRUE='#'
9055 USING_NOGC_FALSE=
9060 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
9061 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
9062 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
9063 echo "$as_me:$LINENO: result: $THREADS" >&5
9064 echo "${ECHO_T}$THREADS" >&6
9066 case "$THREADS" in
9067 no | none | single)
9068 THREADS=none
9070 posix | posix95 | pthreads)
9071 THREADS=posix
9072 case "$host" in
9073 *-*-linux*)
9075 cat >>confdefs.h <<\_ACEOF
9076 #define LINUX_THREADS 1
9077 _ACEOF
9080 esac
9082 win32)
9084 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
9085 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
9086 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
9087 { (exit 1); exit 1; }; }
9090 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
9091 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
9092 { (exit 1); exit 1; }; }
9094 esac
9096 THREADCXXFLAGS=
9097 THREADLDFLAGS=
9098 THREADLIBS=
9099 THREADINCS=
9100 THREADDEPS=
9101 THREADH=
9102 THREADSPEC=
9103 THREADSTARTFILESPEC=
9104 case "$THREADS" in
9105 posix)
9106 case "$host" in
9107 *-*-cygwin*)
9108 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
9110 *-*-freebsd[1234]*)
9111 # Before FreeBSD 5, it didn't have -lpthread (or any library which
9112 # merely adds pthread_* functions) but it does have a -pthread switch
9113 # which is required at link-time to select -lc_r *instead* of -lc.
9114 THREADLDFLAGS=-pthread
9115 # Don't set THREADSPEC here as might be expected since -pthread is
9116 # not processed when found within a spec file, it must come from
9117 # the command line. For now, the user must provide the -pthread
9118 # switch to link code compiled with gcj. In future, consider adding
9119 # support for weak references to pthread_* functions ala gthr.h API.
9120 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
9122 *-*-freebsd*)
9123 # FreeBSD >=5.3 implements a model much closer to other modern UNIX
9124 # systems which support threads and -lpthread.
9125 THREADLDFLAGS=-pthread
9126 THREADSPEC=-lpthread
9128 alpha*-dec-osf* | hppa*-hp-hpux*)
9129 THREADCXXFLAGS=-pthread
9130 # boehm-gc needs some functions from librt, so link that too.
9131 THREADLIBS='-lpthread -lrt'
9132 THREADSPEC='-lpthread -lrt'
9135 THREADLIBS=-lpthread
9136 THREADSPEC=-lpthread
9138 esac
9139 THREADH=posix-threads.h
9140 # MIT pthreads doesn't seem to have the mutexattr functions.
9141 # But for now we don't check for it. We just assume you aren't
9142 # using MIT pthreads.
9144 cat >>confdefs.h <<\_ACEOF
9145 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9146 _ACEOF
9149 # If we're using the Boehm GC, then we happen to know that it
9150 # defines _REENTRANT, so we don't bother. Eww.
9151 if test "$GC" != boehm; then
9153 cat >>confdefs.h <<\_ACEOF
9154 #define _REENTRANT 1
9155 _ACEOF
9159 cat >>confdefs.h <<\_ACEOF
9160 #define _POSIX_PTHREAD_SEMANTICS 1
9161 _ACEOF
9165 win32)
9166 THREADH=win32-threads.h
9167 THREADCXXFLAGS=-mthreads
9168 # We need thread-safe exception handling so _CRT_MT should be set to 1.
9169 # But we do not want the executables created to be dependent on
9170 # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
9171 # exception handling contexts. The following kludge achieves this effect
9172 # and causes a dummy __mingwthr_key_dtor() to be linked in from
9173 # libmingw32.a. This causes a memory leak of about 24 bytes per thread.
9174 # A workaround is to explicitly use -mthreads while linking Java programs.
9175 # See PR libgcj/28263.
9177 # FIXME: In Java we are able to detect thread death at the end of
9178 # Thread.run() so we should be able to clean up the exception handling
9179 # contexts ourselves.
9180 THREADSTARTFILESPEC='crtmt%O%s'
9183 none)
9184 THREADH=no-threads.h
9186 esac
9187 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
9198 if test "$THREADS" = posix; then
9199 USING_POSIX_THREADS_TRUE=
9200 USING_POSIX_THREADS_FALSE='#'
9201 else
9202 USING_POSIX_THREADS_TRUE='#'
9203 USING_POSIX_THREADS_FALSE=
9208 if test "$THREADS" = win32; then
9209 USING_WIN32_THREADS_TRUE=
9210 USING_WIN32_THREADS_FALSE='#'
9211 else
9212 USING_WIN32_THREADS_TRUE='#'
9213 USING_WIN32_THREADS_FALSE=
9218 if test "$THREADS" = none; then
9219 USING_NO_THREADS_TRUE=
9220 USING_NO_THREADS_FALSE='#'
9221 else
9222 USING_NO_THREADS_TRUE='#'
9223 USING_NO_THREADS_FALSE=
9227 if test -d sysdep; then true; else mkdir sysdep; fi
9228 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
9230 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
9232 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
9235 HASH_SYNC_SPEC=
9236 # Hash synchronization is only useful with posix threads right now.
9237 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
9238 HASH_SYNC_SPEC=-fhash-synchronization
9240 cat >>confdefs.h <<\_ACEOF
9241 #define JV_HASH_SYNCHRONIZATION 1
9242 _ACEOF
9249 if test "$GCC" = yes; then
9250 USING_GCC_TRUE=
9251 USING_GCC_FALSE='#'
9252 else
9253 USING_GCC_TRUE='#'
9254 USING_GCC_FALSE=
9258 # We're in the tree with gcc, and need to include some of its headers.
9259 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
9261 if test "x${with_newlib}" = "xyes"; then
9262 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
9263 # may not work correctly, because the compiler may not be able to
9264 # link executables.
9266 # We assume newlib. This lets us hard-code the functions we know
9267 # we'll have.
9269 cat >>confdefs.h <<\_ACEOF
9270 #define HAVE_MEMMOVE 1
9271 _ACEOF
9274 cat >>confdefs.h <<\_ACEOF
9275 #define HAVE_MEMCPY 1
9276 _ACEOF
9279 cat >>confdefs.h <<\_ACEOF
9280 #define HAVE_STRERROR 1
9281 _ACEOF
9284 cat >>confdefs.h <<\_ACEOF
9285 #define HAVE_TIME 1
9286 _ACEOF
9289 cat >>confdefs.h <<\_ACEOF
9290 #define HAVE_GMTIME_R 1
9291 _ACEOF
9294 cat >>confdefs.h <<\_ACEOF
9295 #define HAVE_LOCALTIME_R 1
9296 _ACEOF
9299 cat >>confdefs.h <<\_ACEOF
9300 #define HAVE_USLEEP_DECL 1
9301 _ACEOF
9303 # This is only for POSIX threads.
9305 cat >>confdefs.h <<\_ACEOF
9306 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9307 _ACEOF
9309 # We also assume we are using gcc, which provides alloca.
9310 cat >>confdefs.h <<\_ACEOF
9311 #define HAVE_ALLOCA 1
9312 _ACEOF
9315 # Assume we do not have getuid and friends.
9317 cat >>confdefs.h <<\_ACEOF
9318 #define NO_GETUID 1
9319 _ACEOF
9321 PLATFORMNET=NoNet
9322 else
9357 for ac_func in strerror ioctl select fstat open fsync sleep opendir \
9358 gmtime_r localtime_r readdir_r getpwuid_r getcwd \
9359 access stat lstat mkdir rename rmdir unlink utime chmod readlink \
9360 nl_langinfo setlocale \
9361 inet_pton uname inet_ntoa \
9362 fork execvp pipe sigaction ftruncate mmap
9364 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9365 echo "$as_me:$LINENO: checking for $ac_func" >&5
9366 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9367 if eval "test \"\${$as_ac_var+set}\" = set"; then
9368 echo $ECHO_N "(cached) $ECHO_C" >&6
9369 else
9370 if test x$gcc_no_link = xyes; then
9371 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9372 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9373 { (exit 1); exit 1; }; }
9375 cat >conftest.$ac_ext <<_ACEOF
9376 /* confdefs.h. */
9377 _ACEOF
9378 cat confdefs.h >>conftest.$ac_ext
9379 cat >>conftest.$ac_ext <<_ACEOF
9380 /* end confdefs.h. */
9381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9383 #define $ac_func innocuous_$ac_func
9385 /* System header to define __stub macros and hopefully few prototypes,
9386 which can conflict with char $ac_func (); below.
9387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9388 <limits.h> exists even on freestanding compilers. */
9390 #ifdef __STDC__
9391 # include <limits.h>
9392 #else
9393 # include <assert.h>
9394 #endif
9396 #undef $ac_func
9398 /* Override any gcc2 internal prototype to avoid an error. */
9399 #ifdef __cplusplus
9400 extern "C"
9402 #endif
9403 /* We use char because int might match the return type of a gcc2
9404 builtin and then its argument prototype would still apply. */
9405 char $ac_func ();
9406 /* The GNU C library defines this for functions which it implements
9407 to always fail with ENOSYS. Some functions are actually named
9408 something starting with __ and the normal name is an alias. */
9409 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9410 choke me
9411 #else
9412 char (*f) () = $ac_func;
9413 #endif
9414 #ifdef __cplusplus
9416 #endif
9419 main ()
9421 return f != $ac_func;
9423 return 0;
9425 _ACEOF
9426 rm -f conftest.$ac_objext conftest$ac_exeext
9427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9428 (eval $ac_link) 2>conftest.er1
9429 ac_status=$?
9430 grep -v '^ *+' conftest.er1 >conftest.err
9431 rm -f conftest.er1
9432 cat conftest.err >&5
9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 (exit $ac_status); } &&
9435 { ac_try='test -z "$ac_c_werror_flag"
9436 || test ! -s conftest.err'
9437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9438 (eval $ac_try) 2>&5
9439 ac_status=$?
9440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441 (exit $ac_status); }; } &&
9442 { ac_try='test -s conftest$ac_exeext'
9443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9444 (eval $ac_try) 2>&5
9445 ac_status=$?
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 (exit $ac_status); }; }; then
9448 eval "$as_ac_var=yes"
9449 else
9450 echo "$as_me: failed program was:" >&5
9451 sed 's/^/| /' conftest.$ac_ext >&5
9453 eval "$as_ac_var=no"
9455 rm -f conftest.err conftest.$ac_objext \
9456 conftest$ac_exeext conftest.$ac_ext
9458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9459 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9460 if test `eval echo '${'$as_ac_var'}'` = yes; then
9461 cat >>confdefs.h <<_ACEOF
9462 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9463 _ACEOF
9466 done
9470 for ac_func in inet_aton inet_addr
9472 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9473 echo "$as_me:$LINENO: checking for $ac_func" >&5
9474 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9475 if eval "test \"\${$as_ac_var+set}\" = set"; then
9476 echo $ECHO_N "(cached) $ECHO_C" >&6
9477 else
9478 if test x$gcc_no_link = xyes; then
9479 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9480 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9481 { (exit 1); exit 1; }; }
9483 cat >conftest.$ac_ext <<_ACEOF
9484 /* confdefs.h. */
9485 _ACEOF
9486 cat confdefs.h >>conftest.$ac_ext
9487 cat >>conftest.$ac_ext <<_ACEOF
9488 /* end confdefs.h. */
9489 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9490 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9491 #define $ac_func innocuous_$ac_func
9493 /* System header to define __stub macros and hopefully few prototypes,
9494 which can conflict with char $ac_func (); below.
9495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9496 <limits.h> exists even on freestanding compilers. */
9498 #ifdef __STDC__
9499 # include <limits.h>
9500 #else
9501 # include <assert.h>
9502 #endif
9504 #undef $ac_func
9506 /* Override any gcc2 internal prototype to avoid an error. */
9507 #ifdef __cplusplus
9508 extern "C"
9510 #endif
9511 /* We use char because int might match the return type of a gcc2
9512 builtin and then its argument prototype would still apply. */
9513 char $ac_func ();
9514 /* The GNU C library defines this for functions which it implements
9515 to always fail with ENOSYS. Some functions are actually named
9516 something starting with __ and the normal name is an alias. */
9517 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9518 choke me
9519 #else
9520 char (*f) () = $ac_func;
9521 #endif
9522 #ifdef __cplusplus
9524 #endif
9527 main ()
9529 return f != $ac_func;
9531 return 0;
9533 _ACEOF
9534 rm -f conftest.$ac_objext conftest$ac_exeext
9535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9536 (eval $ac_link) 2>conftest.er1
9537 ac_status=$?
9538 grep -v '^ *+' conftest.er1 >conftest.err
9539 rm -f conftest.er1
9540 cat conftest.err >&5
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); } &&
9543 { ac_try='test -z "$ac_c_werror_flag"
9544 || test ! -s conftest.err'
9545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9546 (eval $ac_try) 2>&5
9547 ac_status=$?
9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 (exit $ac_status); }; } &&
9550 { ac_try='test -s conftest$ac_exeext'
9551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9552 (eval $ac_try) 2>&5
9553 ac_status=$?
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); }; }; then
9556 eval "$as_ac_var=yes"
9557 else
9558 echo "$as_me: failed program was:" >&5
9559 sed 's/^/| /' conftest.$ac_ext >&5
9561 eval "$as_ac_var=no"
9563 rm -f conftest.err conftest.$ac_objext \
9564 conftest$ac_exeext conftest.$ac_ext
9566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9567 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9568 if test `eval echo '${'$as_ac_var'}'` = yes; then
9569 cat >>confdefs.h <<_ACEOF
9570 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9571 _ACEOF
9572 break
9574 done
9576 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9577 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9578 if test "${ac_cv_header_stdc+set}" = set; then
9579 echo $ECHO_N "(cached) $ECHO_C" >&6
9580 else
9581 cat >conftest.$ac_ext <<_ACEOF
9582 /* confdefs.h. */
9583 _ACEOF
9584 cat confdefs.h >>conftest.$ac_ext
9585 cat >>conftest.$ac_ext <<_ACEOF
9586 /* end confdefs.h. */
9587 #include <stdlib.h>
9588 #include <stdarg.h>
9589 #include <string.h>
9590 #include <float.h>
9593 main ()
9597 return 0;
9599 _ACEOF
9600 rm -f conftest.$ac_objext
9601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9602 (eval $ac_compile) 2>conftest.er1
9603 ac_status=$?
9604 grep -v '^ *+' conftest.er1 >conftest.err
9605 rm -f conftest.er1
9606 cat conftest.err >&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); } &&
9609 { ac_try='test -z "$ac_c_werror_flag"
9610 || test ! -s conftest.err'
9611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9612 (eval $ac_try) 2>&5
9613 ac_status=$?
9614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615 (exit $ac_status); }; } &&
9616 { ac_try='test -s conftest.$ac_objext'
9617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9618 (eval $ac_try) 2>&5
9619 ac_status=$?
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); }; }; then
9622 ac_cv_header_stdc=yes
9623 else
9624 echo "$as_me: failed program was:" >&5
9625 sed 's/^/| /' conftest.$ac_ext >&5
9627 ac_cv_header_stdc=no
9629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9631 if test $ac_cv_header_stdc = yes; then
9632 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9633 cat >conftest.$ac_ext <<_ACEOF
9634 /* confdefs.h. */
9635 _ACEOF
9636 cat confdefs.h >>conftest.$ac_ext
9637 cat >>conftest.$ac_ext <<_ACEOF
9638 /* end confdefs.h. */
9639 #include <string.h>
9641 _ACEOF
9642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9643 $EGREP "memchr" >/dev/null 2>&1; then
9645 else
9646 ac_cv_header_stdc=no
9648 rm -f conftest*
9652 if test $ac_cv_header_stdc = yes; then
9653 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9654 cat >conftest.$ac_ext <<_ACEOF
9655 /* confdefs.h. */
9656 _ACEOF
9657 cat confdefs.h >>conftest.$ac_ext
9658 cat >>conftest.$ac_ext <<_ACEOF
9659 /* end confdefs.h. */
9660 #include <stdlib.h>
9662 _ACEOF
9663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9664 $EGREP "free" >/dev/null 2>&1; then
9666 else
9667 ac_cv_header_stdc=no
9669 rm -f conftest*
9673 if test $ac_cv_header_stdc = yes; then
9674 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9675 if test "$cross_compiling" = yes; then
9677 else
9678 cat >conftest.$ac_ext <<_ACEOF
9679 /* confdefs.h. */
9680 _ACEOF
9681 cat confdefs.h >>conftest.$ac_ext
9682 cat >>conftest.$ac_ext <<_ACEOF
9683 /* end confdefs.h. */
9684 #include <ctype.h>
9685 #if ((' ' & 0x0FF) == 0x020)
9686 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9687 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9688 #else
9689 # define ISLOWER(c) \
9690 (('a' <= (c) && (c) <= 'i') \
9691 || ('j' <= (c) && (c) <= 'r') \
9692 || ('s' <= (c) && (c) <= 'z'))
9693 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9694 #endif
9696 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9698 main ()
9700 int i;
9701 for (i = 0; i < 256; i++)
9702 if (XOR (islower (i), ISLOWER (i))
9703 || toupper (i) != TOUPPER (i))
9704 exit(2);
9705 exit (0);
9707 _ACEOF
9708 rm -f conftest$ac_exeext
9709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9710 (eval $ac_link) 2>&5
9711 ac_status=$?
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9715 (eval $ac_try) 2>&5
9716 ac_status=$?
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); }; }; then
9720 else
9721 echo "$as_me: program exited with status $ac_status" >&5
9722 echo "$as_me: failed program was:" >&5
9723 sed 's/^/| /' conftest.$ac_ext >&5
9725 ( exit $ac_status )
9726 ac_cv_header_stdc=no
9728 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9732 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9733 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9734 if test $ac_cv_header_stdc = yes; then
9736 cat >>confdefs.h <<\_ACEOF
9737 #define STDC_HEADERS 1
9738 _ACEOF
9742 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9752 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9753 inttypes.h stdint.h unistd.h
9755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9756 echo "$as_me:$LINENO: checking for $ac_header" >&5
9757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9759 echo $ECHO_N "(cached) $ECHO_C" >&6
9760 else
9761 cat >conftest.$ac_ext <<_ACEOF
9762 /* confdefs.h. */
9763 _ACEOF
9764 cat confdefs.h >>conftest.$ac_ext
9765 cat >>conftest.$ac_ext <<_ACEOF
9766 /* end confdefs.h. */
9767 $ac_includes_default
9769 #include <$ac_header>
9770 _ACEOF
9771 rm -f conftest.$ac_objext
9772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9773 (eval $ac_compile) 2>conftest.er1
9774 ac_status=$?
9775 grep -v '^ *+' conftest.er1 >conftest.err
9776 rm -f conftest.er1
9777 cat conftest.err >&5
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); } &&
9780 { ac_try='test -z "$ac_c_werror_flag"
9781 || test ! -s conftest.err'
9782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9783 (eval $ac_try) 2>&5
9784 ac_status=$?
9785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786 (exit $ac_status); }; } &&
9787 { ac_try='test -s conftest.$ac_objext'
9788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9789 (eval $ac_try) 2>&5
9790 ac_status=$?
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); }; }; then
9793 eval "$as_ac_Header=yes"
9794 else
9795 echo "$as_me: failed program was:" >&5
9796 sed 's/^/| /' conftest.$ac_ext >&5
9798 eval "$as_ac_Header=no"
9800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9803 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9805 cat >>confdefs.h <<_ACEOF
9806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9807 _ACEOF
9811 done
9817 for ac_header in execinfo.h unistd.h dlfcn.h
9819 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9821 echo "$as_me:$LINENO: checking for $ac_header" >&5
9822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9824 echo $ECHO_N "(cached) $ECHO_C" >&6
9826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9827 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9828 else
9829 # Is the header compilable?
9830 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9831 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9832 cat >conftest.$ac_ext <<_ACEOF
9833 /* confdefs.h. */
9834 _ACEOF
9835 cat confdefs.h >>conftest.$ac_ext
9836 cat >>conftest.$ac_ext <<_ACEOF
9837 /* end confdefs.h. */
9838 $ac_includes_default
9839 #include <$ac_header>
9840 _ACEOF
9841 rm -f conftest.$ac_objext
9842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9843 (eval $ac_compile) 2>conftest.er1
9844 ac_status=$?
9845 grep -v '^ *+' conftest.er1 >conftest.err
9846 rm -f conftest.er1
9847 cat conftest.err >&5
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); } &&
9850 { ac_try='test -z "$ac_c_werror_flag"
9851 || test ! -s conftest.err'
9852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9853 (eval $ac_try) 2>&5
9854 ac_status=$?
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); }; } &&
9857 { ac_try='test -s conftest.$ac_objext'
9858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9859 (eval $ac_try) 2>&5
9860 ac_status=$?
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); }; }; then
9863 ac_header_compiler=yes
9864 else
9865 echo "$as_me: failed program was:" >&5
9866 sed 's/^/| /' conftest.$ac_ext >&5
9868 ac_header_compiler=no
9870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9871 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9872 echo "${ECHO_T}$ac_header_compiler" >&6
9874 # Is the header present?
9875 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9876 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9877 cat >conftest.$ac_ext <<_ACEOF
9878 /* confdefs.h. */
9879 _ACEOF
9880 cat confdefs.h >>conftest.$ac_ext
9881 cat >>conftest.$ac_ext <<_ACEOF
9882 /* end confdefs.h. */
9883 #include <$ac_header>
9884 _ACEOF
9885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9887 ac_status=$?
9888 grep -v '^ *+' conftest.er1 >conftest.err
9889 rm -f conftest.er1
9890 cat conftest.err >&5
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 (exit $ac_status); } >/dev/null; then
9893 if test -s conftest.err; then
9894 ac_cpp_err=$ac_c_preproc_warn_flag
9895 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9896 else
9897 ac_cpp_err=
9899 else
9900 ac_cpp_err=yes
9902 if test -z "$ac_cpp_err"; then
9903 ac_header_preproc=yes
9904 else
9905 echo "$as_me: failed program was:" >&5
9906 sed 's/^/| /' conftest.$ac_ext >&5
9908 ac_header_preproc=no
9910 rm -f conftest.err conftest.$ac_ext
9911 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9912 echo "${ECHO_T}$ac_header_preproc" >&6
9914 # So? What about this header?
9915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9916 yes:no: )
9917 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9920 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9921 ac_header_preproc=yes
9923 no:yes:* )
9924 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9925 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9926 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9927 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9928 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9929 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9930 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9931 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9934 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9935 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9937 cat <<\_ASBOX
9938 ## ---------------------------------- ##
9939 ## Report this to the libjava lists. ##
9940 ## ---------------------------------- ##
9941 _ASBOX
9943 sed "s/^/$as_me: WARNING: /" >&2
9945 esac
9946 echo "$as_me:$LINENO: checking for $ac_header" >&5
9947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9949 echo $ECHO_N "(cached) $ECHO_C" >&6
9950 else
9951 eval "$as_ac_Header=\$ac_header_preproc"
9953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9954 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9957 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9958 cat >>confdefs.h <<_ACEOF
9959 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9960 _ACEOF
9964 done
9966 # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
9967 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
9968 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
9969 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
9970 echo $ECHO_N "(cached) $ECHO_C" >&6
9971 else
9972 ac_check_lib_save_LIBS=$LIBS
9973 LIBS="-ldl $LIBS"
9974 if test x$gcc_no_link = xyes; then
9975 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9976 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9977 { (exit 1); exit 1; }; }
9979 cat >conftest.$ac_ext <<_ACEOF
9980 /* confdefs.h. */
9981 _ACEOF
9982 cat confdefs.h >>conftest.$ac_ext
9983 cat >>conftest.$ac_ext <<_ACEOF
9984 /* end confdefs.h. */
9986 /* Override any gcc2 internal prototype to avoid an error. */
9987 #ifdef __cplusplus
9988 extern "C"
9989 #endif
9990 /* We use char because int might match the return type of a gcc2
9991 builtin and then its argument prototype would still apply. */
9992 char dladdr ();
9994 main ()
9996 dladdr ();
9998 return 0;
10000 _ACEOF
10001 rm -f conftest.$ac_objext conftest$ac_exeext
10002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10003 (eval $ac_link) 2>conftest.er1
10004 ac_status=$?
10005 grep -v '^ *+' conftest.er1 >conftest.err
10006 rm -f conftest.er1
10007 cat conftest.err >&5
10008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); } &&
10010 { ac_try='test -z "$ac_c_werror_flag"
10011 || test ! -s conftest.err'
10012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10013 (eval $ac_try) 2>&5
10014 ac_status=$?
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); }; } &&
10017 { ac_try='test -s conftest$ac_exeext'
10018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10019 (eval $ac_try) 2>&5
10020 ac_status=$?
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); }; }; then
10023 ac_cv_lib_dl_dladdr=yes
10024 else
10025 echo "$as_me: failed program was:" >&5
10026 sed 's/^/| /' conftest.$ac_ext >&5
10028 ac_cv_lib_dl_dladdr=no
10030 rm -f conftest.err conftest.$ac_objext \
10031 conftest$ac_exeext conftest.$ac_ext
10032 LIBS=$ac_check_lib_save_LIBS
10034 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
10035 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
10036 if test $ac_cv_lib_dl_dladdr = yes; then
10039 cat >>confdefs.h <<\_ACEOF
10040 #define HAVE_DLADDR 1
10041 _ACEOF
10043 else
10045 echo "$as_me:$LINENO: checking for dladdr in -ldld" >&5
10046 echo $ECHO_N "checking for dladdr in -ldld... $ECHO_C" >&6
10047 if test "${ac_cv_lib_dld_dladdr+set}" = set; then
10048 echo $ECHO_N "(cached) $ECHO_C" >&6
10049 else
10050 ac_check_lib_save_LIBS=$LIBS
10051 LIBS="-ldld $LIBS"
10052 if test x$gcc_no_link = xyes; then
10053 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10054 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10055 { (exit 1); exit 1; }; }
10057 cat >conftest.$ac_ext <<_ACEOF
10058 /* confdefs.h. */
10059 _ACEOF
10060 cat confdefs.h >>conftest.$ac_ext
10061 cat >>conftest.$ac_ext <<_ACEOF
10062 /* end confdefs.h. */
10064 /* Override any gcc2 internal prototype to avoid an error. */
10065 #ifdef __cplusplus
10066 extern "C"
10067 #endif
10068 /* We use char because int might match the return type of a gcc2
10069 builtin and then its argument prototype would still apply. */
10070 char dladdr ();
10072 main ()
10074 dladdr ();
10076 return 0;
10078 _ACEOF
10079 rm -f conftest.$ac_objext conftest$ac_exeext
10080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10081 (eval $ac_link) 2>conftest.er1
10082 ac_status=$?
10083 grep -v '^ *+' conftest.er1 >conftest.err
10084 rm -f conftest.er1
10085 cat conftest.err >&5
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); } &&
10088 { ac_try='test -z "$ac_c_werror_flag"
10089 || test ! -s conftest.err'
10090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10091 (eval $ac_try) 2>&5
10092 ac_status=$?
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); }; } &&
10095 { ac_try='test -s conftest$ac_exeext'
10096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10097 (eval $ac_try) 2>&5
10098 ac_status=$?
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); }; }; then
10101 ac_cv_lib_dld_dladdr=yes
10102 else
10103 echo "$as_me: failed program was:" >&5
10104 sed 's/^/| /' conftest.$ac_ext >&5
10106 ac_cv_lib_dld_dladdr=no
10108 rm -f conftest.err conftest.$ac_objext \
10109 conftest$ac_exeext conftest.$ac_ext
10110 LIBS=$ac_check_lib_save_LIBS
10112 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dladdr" >&5
10113 echo "${ECHO_T}$ac_cv_lib_dld_dladdr" >&6
10114 if test $ac_cv_lib_dld_dladdr = yes; then
10117 cat >>confdefs.h <<\_ACEOF
10118 #define HAVE_DLADDR 1
10119 _ACEOF
10126 if test x"$build" = x"$host"; then
10127 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
10128 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
10129 if test "${ac_cv_file__proc_self_exe+set}" = set; then
10130 echo $ECHO_N "(cached) $ECHO_C" >&6
10131 else
10132 test "$cross_compiling" = yes &&
10133 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10134 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10135 { (exit 1); exit 1; }; }
10136 if test -r "/proc/self/exe"; then
10137 ac_cv_file__proc_self_exe=yes
10138 else
10139 ac_cv_file__proc_self_exe=no
10142 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
10143 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
10144 if test $ac_cv_file__proc_self_exe = yes; then
10146 cat >>confdefs.h <<_ACEOF
10147 #define HAVE__PROC_SELF_EXE 1
10148 _ACEOF
10152 cat >>confdefs.h <<\_ACEOF
10153 #define HAVE_PROC_SELF_EXE 1
10154 _ACEOF
10158 else
10159 case $host in
10160 *-linux*)
10162 cat >>confdefs.h <<\_ACEOF
10163 #define HAVE_PROC_SELF_EXE 1
10164 _ACEOF
10167 esac
10171 if test "X$prefix" = "XNONE"; then
10172 acl_final_prefix="$ac_default_prefix"
10173 else
10174 acl_final_prefix="$prefix"
10176 if test "X$exec_prefix" = "XNONE"; then
10177 acl_final_exec_prefix='${prefix}'
10178 else
10179 acl_final_exec_prefix="$exec_prefix"
10181 acl_save_prefix="$prefix"
10182 prefix="$acl_final_prefix"
10183 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10184 prefix="$acl_save_prefix"
10187 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10188 if test "${with_gnu_ld+set}" = set; then
10189 withval="$with_gnu_ld"
10190 test "$withval" = no || with_gnu_ld=yes
10191 else
10192 with_gnu_ld=no
10194 # Prepare PATH_SEPARATOR.
10195 # The user is always right.
10196 if test "${PATH_SEPARATOR+set}" != set; then
10197 echo "#! /bin/sh" >conf$$.sh
10198 echo "exit 0" >>conf$$.sh
10199 chmod +x conf$$.sh
10200 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10201 PATH_SEPARATOR=';'
10202 else
10203 PATH_SEPARATOR=:
10205 rm -f conf$$.sh
10207 ac_prog=ld
10208 if test "$GCC" = yes; then
10209 # Check if gcc -print-prog-name=ld gives a path.
10210 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10211 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10212 case $host in
10213 *-*-mingw*)
10214 # gcc leaves a trailing carriage return which upsets mingw
10215 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10217 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10218 esac
10219 case $ac_prog in
10220 # Accept absolute paths.
10221 [\\/]* | [A-Za-z]:[\\/]*)
10222 re_direlt='/[^/][^/]*/\.\./'
10223 # Canonicalize the path of ld
10224 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10225 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10226 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10227 done
10228 test -z "$LD" && LD="$ac_prog"
10231 # If it fails, then pretend we aren't using GCC.
10232 ac_prog=ld
10235 # If it is relative, then search for the first ld in PATH.
10236 with_gnu_ld=unknown
10238 esac
10239 elif test "$with_gnu_ld" = yes; then
10240 echo "$as_me:$LINENO: checking for GNU ld" >&5
10241 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10242 else
10243 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10244 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10246 if test "${acl_cv_path_LD+set}" = set; then
10247 echo $ECHO_N "(cached) $ECHO_C" >&6
10248 else
10249 if test -z "$LD"; then
10250 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10251 for ac_dir in $PATH; do
10252 test -z "$ac_dir" && ac_dir=.
10253 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10254 acl_cv_path_LD="$ac_dir/$ac_prog"
10255 # Check to see if the program is GNU ld. I'd rather use --version,
10256 # but apparently some GNU ld's only accept -v.
10257 # Break only if it was the GNU/non-GNU ld that we prefer.
10258 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10259 test "$with_gnu_ld" != no && break
10260 else
10261 test "$with_gnu_ld" != yes && break
10264 done
10265 IFS="$ac_save_ifs"
10266 else
10267 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10271 LD="$acl_cv_path_LD"
10272 if test -n "$LD"; then
10273 echo "$as_me:$LINENO: result: $LD" >&5
10274 echo "${ECHO_T}$LD" >&6
10275 else
10276 echo "$as_me:$LINENO: result: no" >&5
10277 echo "${ECHO_T}no" >&6
10279 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10280 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10281 { (exit 1); exit 1; }; }
10282 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10283 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10284 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10285 echo $ECHO_N "(cached) $ECHO_C" >&6
10286 else
10287 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10288 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10289 acl_cv_prog_gnu_ld=yes
10290 else
10291 acl_cv_prog_gnu_ld=no
10294 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10295 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10296 with_gnu_ld=$acl_cv_prog_gnu_ld
10300 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10301 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10302 if test "${acl_cv_rpath+set}" = set; then
10303 echo $ECHO_N "(cached) $ECHO_C" >&6
10304 else
10306 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10307 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10308 . ./conftest.sh
10309 rm -f ./conftest.sh
10310 acl_cv_rpath=done
10313 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10314 echo "${ECHO_T}$acl_cv_rpath" >&6
10315 wl="$acl_cv_wl"
10316 libext="$acl_cv_libext"
10317 shlibext="$acl_cv_shlibext"
10318 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10319 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10320 hardcode_direct="$acl_cv_hardcode_direct"
10321 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10322 # Check whether --enable-rpath or --disable-rpath was given.
10323 if test "${enable_rpath+set}" = set; then
10324 enableval="$enable_rpath"
10326 else
10327 enable_rpath=yes
10336 use_additional=yes
10338 acl_save_prefix="$prefix"
10339 prefix="$acl_final_prefix"
10340 acl_save_exec_prefix="$exec_prefix"
10341 exec_prefix="$acl_final_exec_prefix"
10343 eval additional_includedir=\"$includedir\"
10344 eval additional_libdir=\"$libdir\"
10346 exec_prefix="$acl_save_exec_prefix"
10347 prefix="$acl_save_prefix"
10350 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10351 if test "${with_libiconv_prefix+set}" = set; then
10352 withval="$with_libiconv_prefix"
10354 if test "X$withval" = "Xno"; then
10355 use_additional=no
10356 else
10357 if test "X$withval" = "X"; then
10359 acl_save_prefix="$prefix"
10360 prefix="$acl_final_prefix"
10361 acl_save_exec_prefix="$exec_prefix"
10362 exec_prefix="$acl_final_exec_prefix"
10364 eval additional_includedir=\"$includedir\"
10365 eval additional_libdir=\"$libdir\"
10367 exec_prefix="$acl_save_exec_prefix"
10368 prefix="$acl_save_prefix"
10370 else
10371 additional_includedir="$withval/include"
10372 additional_libdir="$withval/lib"
10377 LIBICONV=
10378 LTLIBICONV=
10379 INCICONV=
10380 rpathdirs=
10381 ltrpathdirs=
10382 names_already_handled=
10383 names_next_round='iconv '
10384 while test -n "$names_next_round"; do
10385 names_this_round="$names_next_round"
10386 names_next_round=
10387 for name in $names_this_round; do
10388 already_handled=
10389 for n in $names_already_handled; do
10390 if test "$n" = "$name"; then
10391 already_handled=yes
10392 break
10394 done
10395 if test -z "$already_handled"; then
10396 names_already_handled="$names_already_handled $name"
10397 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10398 eval value=\"\$HAVE_LIB$uppername\"
10399 if test -n "$value"; then
10400 if test "$value" = yes; then
10401 eval value=\"\$LIB$uppername\"
10402 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10403 eval value=\"\$LTLIB$uppername\"
10404 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10405 else
10408 else
10409 found_dir=
10410 found_la=
10411 found_so=
10412 found_a=
10413 if test $use_additional = yes; then
10414 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10415 found_dir="$additional_libdir"
10416 found_so="$additional_libdir/lib$name.$shlibext"
10417 if test -f "$additional_libdir/lib$name.la"; then
10418 found_la="$additional_libdir/lib$name.la"
10420 else
10421 if test -f "$additional_libdir/lib$name.$libext"; then
10422 found_dir="$additional_libdir"
10423 found_a="$additional_libdir/lib$name.$libext"
10424 if test -f "$additional_libdir/lib$name.la"; then
10425 found_la="$additional_libdir/lib$name.la"
10430 if test "X$found_dir" = "X"; then
10431 for x in $LDFLAGS $LTLIBICONV; do
10433 acl_save_prefix="$prefix"
10434 prefix="$acl_final_prefix"
10435 acl_save_exec_prefix="$exec_prefix"
10436 exec_prefix="$acl_final_exec_prefix"
10437 eval x=\"$x\"
10438 exec_prefix="$acl_save_exec_prefix"
10439 prefix="$acl_save_prefix"
10441 case "$x" in
10442 -L*)
10443 dir=`echo "X$x" | sed -e 's/^X-L//'`
10444 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10445 found_dir="$dir"
10446 found_so="$dir/lib$name.$shlibext"
10447 if test -f "$dir/lib$name.la"; then
10448 found_la="$dir/lib$name.la"
10450 else
10451 if test -f "$dir/lib$name.$libext"; then
10452 found_dir="$dir"
10453 found_a="$dir/lib$name.$libext"
10454 if test -f "$dir/lib$name.la"; then
10455 found_la="$dir/lib$name.la"
10460 esac
10461 if test "X$found_dir" != "X"; then
10462 break
10464 done
10466 if test "X$found_dir" != "X"; then
10467 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10468 if test "X$found_so" != "X"; then
10469 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10470 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10471 else
10472 haveit=
10473 for x in $ltrpathdirs; do
10474 if test "X$x" = "X$found_dir"; then
10475 haveit=yes
10476 break
10478 done
10479 if test -z "$haveit"; then
10480 ltrpathdirs="$ltrpathdirs $found_dir"
10482 if test "$hardcode_direct" = yes; then
10483 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10484 else
10485 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10486 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10487 haveit=
10488 for x in $rpathdirs; do
10489 if test "X$x" = "X$found_dir"; then
10490 haveit=yes
10491 break
10493 done
10494 if test -z "$haveit"; then
10495 rpathdirs="$rpathdirs $found_dir"
10497 else
10498 haveit=
10499 for x in $LDFLAGS $LIBICONV; do
10501 acl_save_prefix="$prefix"
10502 prefix="$acl_final_prefix"
10503 acl_save_exec_prefix="$exec_prefix"
10504 exec_prefix="$acl_final_exec_prefix"
10505 eval x=\"$x\"
10506 exec_prefix="$acl_save_exec_prefix"
10507 prefix="$acl_save_prefix"
10509 if test "X$x" = "X-L$found_dir"; then
10510 haveit=yes
10511 break
10513 done
10514 if test -z "$haveit"; then
10515 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10517 if test "$hardcode_minus_L" != no; then
10518 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10519 else
10520 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10525 else
10526 if test "X$found_a" != "X"; then
10527 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10528 else
10529 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10532 additional_includedir=
10533 case "$found_dir" in
10534 */lib | */lib/)
10535 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10536 additional_includedir="$basedir/include"
10538 esac
10539 if test "X$additional_includedir" != "X"; then
10540 if test "X$additional_includedir" != "X/usr/include"; then
10541 haveit=
10542 if test "X$additional_includedir" = "X/usr/local/include"; then
10543 if test -n "$GCC"; then
10544 case $host_os in
10545 linux*) haveit=yes;;
10546 esac
10549 if test -z "$haveit"; then
10550 for x in $CPPFLAGS $INCICONV; do
10552 acl_save_prefix="$prefix"
10553 prefix="$acl_final_prefix"
10554 acl_save_exec_prefix="$exec_prefix"
10555 exec_prefix="$acl_final_exec_prefix"
10556 eval x=\"$x\"
10557 exec_prefix="$acl_save_exec_prefix"
10558 prefix="$acl_save_prefix"
10560 if test "X$x" = "X-I$additional_includedir"; then
10561 haveit=yes
10562 break
10564 done
10565 if test -z "$haveit"; then
10566 if test -d "$additional_includedir"; then
10567 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10573 if test -n "$found_la"; then
10574 save_libdir="$libdir"
10575 case "$found_la" in
10576 */* | *\\*) . "$found_la" ;;
10577 *) . "./$found_la" ;;
10578 esac
10579 libdir="$save_libdir"
10580 for dep in $dependency_libs; do
10581 case "$dep" in
10582 -L*)
10583 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10584 if test "X$additional_libdir" != "X/usr/lib"; then
10585 haveit=
10586 if test "X$additional_libdir" = "X/usr/local/lib"; then
10587 if test -n "$GCC"; then
10588 case $host_os in
10589 linux*) haveit=yes;;
10590 esac
10593 if test -z "$haveit"; then
10594 haveit=
10595 for x in $LDFLAGS $LIBICONV; do
10597 acl_save_prefix="$prefix"
10598 prefix="$acl_final_prefix"
10599 acl_save_exec_prefix="$exec_prefix"
10600 exec_prefix="$acl_final_exec_prefix"
10601 eval x=\"$x\"
10602 exec_prefix="$acl_save_exec_prefix"
10603 prefix="$acl_save_prefix"
10605 if test "X$x" = "X-L$additional_libdir"; then
10606 haveit=yes
10607 break
10609 done
10610 if test -z "$haveit"; then
10611 if test -d "$additional_libdir"; then
10612 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10615 haveit=
10616 for x in $LDFLAGS $LTLIBICONV; do
10618 acl_save_prefix="$prefix"
10619 prefix="$acl_final_prefix"
10620 acl_save_exec_prefix="$exec_prefix"
10621 exec_prefix="$acl_final_exec_prefix"
10622 eval x=\"$x\"
10623 exec_prefix="$acl_save_exec_prefix"
10624 prefix="$acl_save_prefix"
10626 if test "X$x" = "X-L$additional_libdir"; then
10627 haveit=yes
10628 break
10630 done
10631 if test -z "$haveit"; then
10632 if test -d "$additional_libdir"; then
10633 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10639 -R*)
10640 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10641 if test "$enable_rpath" != no; then
10642 haveit=
10643 for x in $rpathdirs; do
10644 if test "X$x" = "X$dir"; then
10645 haveit=yes
10646 break
10648 done
10649 if test -z "$haveit"; then
10650 rpathdirs="$rpathdirs $dir"
10652 haveit=
10653 for x in $ltrpathdirs; do
10654 if test "X$x" = "X$dir"; then
10655 haveit=yes
10656 break
10658 done
10659 if test -z "$haveit"; then
10660 ltrpathdirs="$ltrpathdirs $dir"
10664 -l*)
10665 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10667 *.la)
10668 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10671 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10672 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10674 esac
10675 done
10677 else
10678 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10679 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10683 done
10684 done
10685 if test "X$rpathdirs" != "X"; then
10686 if test -n "$hardcode_libdir_separator"; then
10687 alldirs=
10688 for found_dir in $rpathdirs; do
10689 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10690 done
10691 acl_save_libdir="$libdir"
10692 libdir="$alldirs"
10693 eval flag=\"$hardcode_libdir_flag_spec\"
10694 libdir="$acl_save_libdir"
10695 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10696 else
10697 for found_dir in $rpathdirs; do
10698 acl_save_libdir="$libdir"
10699 libdir="$found_dir"
10700 eval flag=\"$hardcode_libdir_flag_spec\"
10701 libdir="$acl_save_libdir"
10702 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10703 done
10706 if test "X$ltrpathdirs" != "X"; then
10707 for found_dir in $ltrpathdirs; do
10708 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10709 done
10718 am_save_CPPFLAGS="$CPPFLAGS"
10720 for element in $INCICONV; do
10721 haveit=
10722 for x in $CPPFLAGS; do
10724 acl_save_prefix="$prefix"
10725 prefix="$acl_final_prefix"
10726 acl_save_exec_prefix="$exec_prefix"
10727 exec_prefix="$acl_final_exec_prefix"
10728 eval x=\"$x\"
10729 exec_prefix="$acl_save_exec_prefix"
10730 prefix="$acl_save_prefix"
10732 if test "X$x" = "X$element"; then
10733 haveit=yes
10734 break
10736 done
10737 if test -z "$haveit"; then
10738 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10740 done
10743 echo "$as_me:$LINENO: checking for iconv" >&5
10744 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10745 if test "${am_cv_func_iconv+set}" = set; then
10746 echo $ECHO_N "(cached) $ECHO_C" >&6
10747 else
10749 am_cv_func_iconv="no, consider installing GNU libiconv"
10750 am_cv_lib_iconv=no
10751 if test x$gcc_no_link = xyes; then
10752 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10753 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10754 { (exit 1); exit 1; }; }
10756 cat >conftest.$ac_ext <<_ACEOF
10757 /* confdefs.h. */
10758 _ACEOF
10759 cat confdefs.h >>conftest.$ac_ext
10760 cat >>conftest.$ac_ext <<_ACEOF
10761 /* end confdefs.h. */
10762 #include <stdlib.h>
10763 #include <iconv.h>
10765 main ()
10767 iconv_t cd = iconv_open("","");
10768 iconv(cd,NULL,NULL,NULL,NULL);
10769 iconv_close(cd);
10771 return 0;
10773 _ACEOF
10774 rm -f conftest.$ac_objext conftest$ac_exeext
10775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10776 (eval $ac_link) 2>conftest.er1
10777 ac_status=$?
10778 grep -v '^ *+' conftest.er1 >conftest.err
10779 rm -f conftest.er1
10780 cat conftest.err >&5
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); } &&
10783 { ac_try='test -z "$ac_c_werror_flag"
10784 || test ! -s conftest.err'
10785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10786 (eval $ac_try) 2>&5
10787 ac_status=$?
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); }; } &&
10790 { ac_try='test -s conftest$ac_exeext'
10791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10792 (eval $ac_try) 2>&5
10793 ac_status=$?
10794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795 (exit $ac_status); }; }; then
10796 am_cv_func_iconv=yes
10797 else
10798 echo "$as_me: failed program was:" >&5
10799 sed 's/^/| /' conftest.$ac_ext >&5
10802 rm -f conftest.err conftest.$ac_objext \
10803 conftest$ac_exeext conftest.$ac_ext
10804 if test "$am_cv_func_iconv" != yes; then
10805 am_save_LIBS="$LIBS"
10806 LIBS="$LIBS $LIBICONV"
10807 if test x$gcc_no_link = xyes; then
10808 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10809 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10810 { (exit 1); exit 1; }; }
10812 cat >conftest.$ac_ext <<_ACEOF
10813 /* confdefs.h. */
10814 _ACEOF
10815 cat confdefs.h >>conftest.$ac_ext
10816 cat >>conftest.$ac_ext <<_ACEOF
10817 /* end confdefs.h. */
10818 #include <stdlib.h>
10819 #include <iconv.h>
10821 main ()
10823 iconv_t cd = iconv_open("","");
10824 iconv(cd,NULL,NULL,NULL,NULL);
10825 iconv_close(cd);
10827 return 0;
10829 _ACEOF
10830 rm -f conftest.$ac_objext conftest$ac_exeext
10831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10832 (eval $ac_link) 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_c_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_exeext'
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 am_cv_lib_iconv=yes
10853 am_cv_func_iconv=yes
10854 else
10855 echo "$as_me: failed program was:" >&5
10856 sed 's/^/| /' conftest.$ac_ext >&5
10859 rm -f conftest.err conftest.$ac_objext \
10860 conftest$ac_exeext conftest.$ac_ext
10861 LIBS="$am_save_LIBS"
10865 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10866 echo "${ECHO_T}$am_cv_func_iconv" >&6
10867 if test "$am_cv_func_iconv" = yes; then
10869 cat >>confdefs.h <<\_ACEOF
10870 #define HAVE_ICONV 1
10871 _ACEOF
10874 if test "$am_cv_lib_iconv" = yes; then
10875 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10876 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10877 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10878 echo "${ECHO_T}$LIBICONV" >&6
10879 else
10880 CPPFLAGS="$am_save_CPPFLAGS"
10881 LIBICONV=
10882 LTLIBICONV=
10887 if test "$am_cv_func_iconv" = yes; then
10888 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10889 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10890 if test "${am_cv_proto_iconv+set}" = set; then
10891 echo $ECHO_N "(cached) $ECHO_C" >&6
10892 else
10894 cat >conftest.$ac_ext <<_ACEOF
10895 /* confdefs.h. */
10896 _ACEOF
10897 cat confdefs.h >>conftest.$ac_ext
10898 cat >>conftest.$ac_ext <<_ACEOF
10899 /* end confdefs.h. */
10901 #include <stdlib.h>
10902 #include <iconv.h>
10903 extern
10904 #ifdef __cplusplus
10906 #endif
10907 #if defined(__STDC__) || defined(__cplusplus)
10908 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10909 #else
10910 size_t iconv();
10911 #endif
10914 main ()
10918 return 0;
10920 _ACEOF
10921 rm -f conftest.$ac_objext
10922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10923 (eval $ac_compile) 2>conftest.er1
10924 ac_status=$?
10925 grep -v '^ *+' conftest.er1 >conftest.err
10926 rm -f conftest.er1
10927 cat conftest.err >&5
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); } &&
10930 { ac_try='test -z "$ac_c_werror_flag"
10931 || test ! -s conftest.err'
10932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10933 (eval $ac_try) 2>&5
10934 ac_status=$?
10935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936 (exit $ac_status); }; } &&
10937 { ac_try='test -s conftest.$ac_objext'
10938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10939 (eval $ac_try) 2>&5
10940 ac_status=$?
10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); }; }; then
10943 am_cv_proto_iconv_arg1=""
10944 else
10945 echo "$as_me: failed program was:" >&5
10946 sed 's/^/| /' conftest.$ac_ext >&5
10948 am_cv_proto_iconv_arg1="const"
10950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10951 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);"
10954 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10955 echo "$as_me:$LINENO: result: ${ac_t:-
10956 }$am_cv_proto_iconv" >&5
10957 echo "${ECHO_T}${ac_t:-
10958 }$am_cv_proto_iconv" >&6
10960 cat >>confdefs.h <<_ACEOF
10961 #define ICONV_CONST $am_cv_proto_iconv_arg1
10962 _ACEOF
10967 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10968 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10969 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10970 echo $ECHO_N "(cached) $ECHO_C" >&6
10971 else
10972 if test x$gcc_no_link = xyes; then
10973 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10974 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10975 { (exit 1); exit 1; }; }
10977 cat >conftest.$ac_ext <<_ACEOF
10978 /* confdefs.h. */
10979 _ACEOF
10980 cat confdefs.h >>conftest.$ac_ext
10981 cat >>conftest.$ac_ext <<_ACEOF
10982 /* end confdefs.h. */
10983 #include <locale.h>
10985 main ()
10987 return LC_MESSAGES
10989 return 0;
10991 _ACEOF
10992 rm -f conftest.$ac_objext conftest$ac_exeext
10993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10994 (eval $ac_link) 2>conftest.er1
10995 ac_status=$?
10996 grep -v '^ *+' conftest.er1 >conftest.err
10997 rm -f conftest.er1
10998 cat conftest.err >&5
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); } &&
11001 { ac_try='test -z "$ac_c_werror_flag"
11002 || test ! -s conftest.err'
11003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11004 (eval $ac_try) 2>&5
11005 ac_status=$?
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); }; } &&
11008 { ac_try='test -s conftest$ac_exeext'
11009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11010 (eval $ac_try) 2>&5
11011 ac_status=$?
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); }; }; then
11014 am_cv_val_LC_MESSAGES=yes
11015 else
11016 echo "$as_me: failed program was:" >&5
11017 sed 's/^/| /' conftest.$ac_ext >&5
11019 am_cv_val_LC_MESSAGES=no
11021 rm -f conftest.err conftest.$ac_objext \
11022 conftest$ac_exeext conftest.$ac_ext
11024 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11025 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11026 if test $am_cv_val_LC_MESSAGES = yes; then
11028 cat >>confdefs.h <<\_ACEOF
11029 #define HAVE_LC_MESSAGES 1
11030 _ACEOF
11034 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11035 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11036 if test "${ac_cv_struct_tm+set}" = set; then
11037 echo $ECHO_N "(cached) $ECHO_C" >&6
11038 else
11039 cat >conftest.$ac_ext <<_ACEOF
11040 /* confdefs.h. */
11041 _ACEOF
11042 cat confdefs.h >>conftest.$ac_ext
11043 cat >>conftest.$ac_ext <<_ACEOF
11044 /* end confdefs.h. */
11045 #include <sys/types.h>
11046 #include <time.h>
11049 main ()
11051 struct tm *tp; tp->tm_sec;
11053 return 0;
11055 _ACEOF
11056 rm -f conftest.$ac_objext
11057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11058 (eval $ac_compile) 2>conftest.er1
11059 ac_status=$?
11060 grep -v '^ *+' conftest.er1 >conftest.err
11061 rm -f conftest.er1
11062 cat conftest.err >&5
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); } &&
11065 { ac_try='test -z "$ac_c_werror_flag"
11066 || test ! -s conftest.err'
11067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11068 (eval $ac_try) 2>&5
11069 ac_status=$?
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); }; } &&
11072 { ac_try='test -s conftest.$ac_objext'
11073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11074 (eval $ac_try) 2>&5
11075 ac_status=$?
11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); }; }; then
11078 ac_cv_struct_tm=time.h
11079 else
11080 echo "$as_me: failed program was:" >&5
11081 sed 's/^/| /' conftest.$ac_ext >&5
11083 ac_cv_struct_tm=sys/time.h
11085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11087 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11088 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11089 if test $ac_cv_struct_tm = sys/time.h; then
11091 cat >>confdefs.h <<\_ACEOF
11092 #define TM_IN_SYS_TIME 1
11093 _ACEOF
11097 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11098 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11099 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11100 echo $ECHO_N "(cached) $ECHO_C" >&6
11101 else
11102 cat >conftest.$ac_ext <<_ACEOF
11103 /* confdefs.h. */
11104 _ACEOF
11105 cat confdefs.h >>conftest.$ac_ext
11106 cat >>conftest.$ac_ext <<_ACEOF
11107 /* end confdefs.h. */
11108 #include <sys/types.h>
11109 #include <$ac_cv_struct_tm>
11113 main ()
11115 static struct tm ac_aggr;
11116 if (ac_aggr.tm_zone)
11117 return 0;
11119 return 0;
11121 _ACEOF
11122 rm -f conftest.$ac_objext
11123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11124 (eval $ac_compile) 2>conftest.er1
11125 ac_status=$?
11126 grep -v '^ *+' conftest.er1 >conftest.err
11127 rm -f conftest.er1
11128 cat conftest.err >&5
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); } &&
11131 { ac_try='test -z "$ac_c_werror_flag"
11132 || test ! -s conftest.err'
11133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11134 (eval $ac_try) 2>&5
11135 ac_status=$?
11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); }; } &&
11138 { ac_try='test -s conftest.$ac_objext'
11139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11140 (eval $ac_try) 2>&5
11141 ac_status=$?
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); }; }; then
11144 ac_cv_member_struct_tm_tm_zone=yes
11145 else
11146 echo "$as_me: failed program was:" >&5
11147 sed 's/^/| /' conftest.$ac_ext >&5
11149 cat >conftest.$ac_ext <<_ACEOF
11150 /* confdefs.h. */
11151 _ACEOF
11152 cat confdefs.h >>conftest.$ac_ext
11153 cat >>conftest.$ac_ext <<_ACEOF
11154 /* end confdefs.h. */
11155 #include <sys/types.h>
11156 #include <$ac_cv_struct_tm>
11160 main ()
11162 static struct tm ac_aggr;
11163 if (sizeof ac_aggr.tm_zone)
11164 return 0;
11166 return 0;
11168 _ACEOF
11169 rm -f conftest.$ac_objext
11170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11171 (eval $ac_compile) 2>conftest.er1
11172 ac_status=$?
11173 grep -v '^ *+' conftest.er1 >conftest.err
11174 rm -f conftest.er1
11175 cat conftest.err >&5
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); } &&
11178 { ac_try='test -z "$ac_c_werror_flag"
11179 || test ! -s conftest.err'
11180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11181 (eval $ac_try) 2>&5
11182 ac_status=$?
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); }; } &&
11185 { ac_try='test -s conftest.$ac_objext'
11186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11187 (eval $ac_try) 2>&5
11188 ac_status=$?
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); }; }; then
11191 ac_cv_member_struct_tm_tm_zone=yes
11192 else
11193 echo "$as_me: failed program was:" >&5
11194 sed 's/^/| /' conftest.$ac_ext >&5
11196 ac_cv_member_struct_tm_tm_zone=no
11198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11202 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11203 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11204 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11206 cat >>confdefs.h <<_ACEOF
11207 #define HAVE_STRUCT_TM_TM_ZONE 1
11208 _ACEOF
11213 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11215 cat >>confdefs.h <<\_ACEOF
11216 #define HAVE_TM_ZONE 1
11217 _ACEOF
11219 else
11220 echo "$as_me:$LINENO: checking for tzname" >&5
11221 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11222 if test "${ac_cv_var_tzname+set}" = set; then
11223 echo $ECHO_N "(cached) $ECHO_C" >&6
11224 else
11225 if test x$gcc_no_link = xyes; then
11226 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11227 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11228 { (exit 1); exit 1; }; }
11230 cat >conftest.$ac_ext <<_ACEOF
11231 /* confdefs.h. */
11232 _ACEOF
11233 cat confdefs.h >>conftest.$ac_ext
11234 cat >>conftest.$ac_ext <<_ACEOF
11235 /* end confdefs.h. */
11236 #include <time.h>
11237 #ifndef tzname /* For SGI. */
11238 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11239 #endif
11242 main ()
11244 atoi(*tzname);
11246 return 0;
11248 _ACEOF
11249 rm -f conftest.$ac_objext conftest$ac_exeext
11250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11251 (eval $ac_link) 2>conftest.er1
11252 ac_status=$?
11253 grep -v '^ *+' conftest.er1 >conftest.err
11254 rm -f conftest.er1
11255 cat conftest.err >&5
11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); } &&
11258 { ac_try='test -z "$ac_c_werror_flag"
11259 || test ! -s conftest.err'
11260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11261 (eval $ac_try) 2>&5
11262 ac_status=$?
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); }; } &&
11265 { ac_try='test -s conftest$ac_exeext'
11266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11267 (eval $ac_try) 2>&5
11268 ac_status=$?
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); }; }; then
11271 ac_cv_var_tzname=yes
11272 else
11273 echo "$as_me: failed program was:" >&5
11274 sed 's/^/| /' conftest.$ac_ext >&5
11276 ac_cv_var_tzname=no
11278 rm -f conftest.err conftest.$ac_objext \
11279 conftest$ac_exeext conftest.$ac_ext
11281 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11282 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11283 if test $ac_cv_var_tzname = yes; then
11285 cat >>confdefs.h <<\_ACEOF
11286 #define HAVE_TZNAME 1
11287 _ACEOF
11295 for ac_func in gethostbyname_r
11297 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11298 echo "$as_me:$LINENO: checking for $ac_func" >&5
11299 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11300 if eval "test \"\${$as_ac_var+set}\" = set"; then
11301 echo $ECHO_N "(cached) $ECHO_C" >&6
11302 else
11303 if test x$gcc_no_link = xyes; then
11304 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11305 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11306 { (exit 1); exit 1; }; }
11308 cat >conftest.$ac_ext <<_ACEOF
11309 /* confdefs.h. */
11310 _ACEOF
11311 cat confdefs.h >>conftest.$ac_ext
11312 cat >>conftest.$ac_ext <<_ACEOF
11313 /* end confdefs.h. */
11314 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11316 #define $ac_func innocuous_$ac_func
11318 /* System header to define __stub macros and hopefully few prototypes,
11319 which can conflict with char $ac_func (); below.
11320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11321 <limits.h> exists even on freestanding compilers. */
11323 #ifdef __STDC__
11324 # include <limits.h>
11325 #else
11326 # include <assert.h>
11327 #endif
11329 #undef $ac_func
11331 /* Override any gcc2 internal prototype to avoid an error. */
11332 #ifdef __cplusplus
11333 extern "C"
11335 #endif
11336 /* We use char because int might match the return type of a gcc2
11337 builtin and then its argument prototype would still apply. */
11338 char $ac_func ();
11339 /* The GNU C library defines this for functions which it implements
11340 to always fail with ENOSYS. Some functions are actually named
11341 something starting with __ and the normal name is an alias. */
11342 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11343 choke me
11344 #else
11345 char (*f) () = $ac_func;
11346 #endif
11347 #ifdef __cplusplus
11349 #endif
11352 main ()
11354 return f != $ac_func;
11356 return 0;
11358 _ACEOF
11359 rm -f conftest.$ac_objext conftest$ac_exeext
11360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11361 (eval $ac_link) 2>conftest.er1
11362 ac_status=$?
11363 grep -v '^ *+' conftest.er1 >conftest.err
11364 rm -f conftest.er1
11365 cat conftest.err >&5
11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 (exit $ac_status); } &&
11368 { ac_try='test -z "$ac_c_werror_flag"
11369 || test ! -s conftest.err'
11370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11371 (eval $ac_try) 2>&5
11372 ac_status=$?
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); }; } &&
11375 { ac_try='test -s conftest$ac_exeext'
11376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11377 (eval $ac_try) 2>&5
11378 ac_status=$?
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); }; }; then
11381 eval "$as_ac_var=yes"
11382 else
11383 echo "$as_me: failed program was:" >&5
11384 sed 's/^/| /' conftest.$ac_ext >&5
11386 eval "$as_ac_var=no"
11388 rm -f conftest.err conftest.$ac_objext \
11389 conftest$ac_exeext conftest.$ac_ext
11391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11392 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11393 if test `eval echo '${'$as_ac_var'}'` = yes; then
11394 cat >>confdefs.h <<_ACEOF
11395 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11396 _ACEOF
11399 cat >>confdefs.h <<\_ACEOF
11400 #define HAVE_GETHOSTBYNAME_R 1
11401 _ACEOF
11403 # There are two different kinds of gethostbyname_r.
11404 # We look for the one that returns `int'.
11405 # Hopefully this check is robust enough.
11406 cat >conftest.$ac_ext <<_ACEOF
11407 /* confdefs.h. */
11408 _ACEOF
11409 cat confdefs.h >>conftest.$ac_ext
11410 cat >>conftest.$ac_ext <<_ACEOF
11411 /* end confdefs.h. */
11412 #include <netdb.h>
11414 _ACEOF
11415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11416 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
11419 cat >>confdefs.h <<\_ACEOF
11420 #define GETHOSTBYNAME_R_RETURNS_INT 1
11421 _ACEOF
11424 rm -f conftest*
11427 case " $GCINCS " in
11428 *" -D_REENTRANT "*) ;;
11430 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
11431 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
11432 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
11433 echo $ECHO_N "(cached) $ECHO_C" >&6
11434 else
11435 ac_ext=cc
11436 ac_cpp='$CXXCPP $CPPFLAGS'
11437 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11438 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11439 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11441 cat >conftest.$ac_ext <<_ACEOF
11442 /* confdefs.h. */
11443 _ACEOF
11444 cat confdefs.h >>conftest.$ac_ext
11445 cat >>conftest.$ac_ext <<_ACEOF
11446 /* end confdefs.h. */
11447 #include <netdb.h>
11449 main ()
11451 gethostbyname_r("", 0, 0);
11453 return 0;
11455 _ACEOF
11456 rm -f conftest.$ac_objext
11457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11458 (eval $ac_compile) 2>conftest.er1
11459 ac_status=$?
11460 grep -v '^ *+' conftest.er1 >conftest.err
11461 rm -f conftest.er1
11462 cat conftest.err >&5
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); } &&
11465 { ac_try='test -z "$ac_cxx_werror_flag"
11466 || test ! -s conftest.err'
11467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11468 (eval $ac_try) 2>&5
11469 ac_status=$?
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); }; } &&
11472 { ac_try='test -s conftest.$ac_objext'
11473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11474 (eval $ac_try) 2>&5
11475 ac_status=$?
11476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477 (exit $ac_status); }; }; then
11478 libjava_cv_gethostbyname_r_needs_reentrant=no
11479 else
11480 echo "$as_me: failed program was:" >&5
11481 sed 's/^/| /' conftest.$ac_ext >&5
11483 CPPFLAGS_SAVE="$CPPFLAGS"
11484 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
11485 cat >conftest.$ac_ext <<_ACEOF
11486 /* confdefs.h. */
11487 _ACEOF
11488 cat confdefs.h >>conftest.$ac_ext
11489 cat >>conftest.$ac_ext <<_ACEOF
11490 /* end confdefs.h. */
11491 #include <netdb.h>
11493 main ()
11495 gethostbyname_r("", 0, 0);
11497 return 0;
11499 _ACEOF
11500 rm -f conftest.$ac_objext
11501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11502 (eval $ac_compile) 2>conftest.er1
11503 ac_status=$?
11504 grep -v '^ *+' conftest.er1 >conftest.err
11505 rm -f conftest.er1
11506 cat conftest.err >&5
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); } &&
11509 { ac_try='test -z "$ac_cxx_werror_flag"
11510 || test ! -s conftest.err'
11511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11512 (eval $ac_try) 2>&5
11513 ac_status=$?
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); }; } &&
11516 { ac_try='test -s conftest.$ac_objext'
11517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11518 (eval $ac_try) 2>&5
11519 ac_status=$?
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); }; }; then
11522 libjava_cv_gethostbyname_r_needs_reentrant=yes
11523 else
11524 echo "$as_me: failed program was:" >&5
11525 sed 's/^/| /' conftest.$ac_ext >&5
11527 libjava_cv_gethostbyname_r_needs_reentrant=fail
11529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11530 CPPFLAGS="$CPPFLAGS_SAVE"
11533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11534 ac_ext=c
11535 ac_cpp='$CPP $CPPFLAGS'
11536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11542 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
11543 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
11544 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
11546 cat >>confdefs.h <<\_ACEOF
11547 #define _REENTRANT 1
11548 _ACEOF
11552 esac
11554 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
11555 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
11556 if test "${libjava_cv_struct_hostent_data+set}" = set; then
11557 echo $ECHO_N "(cached) $ECHO_C" >&6
11558 else
11559 cat >conftest.$ac_ext <<_ACEOF
11560 /* confdefs.h. */
11561 _ACEOF
11562 cat confdefs.h >>conftest.$ac_ext
11563 cat >>conftest.$ac_ext <<_ACEOF
11564 /* end confdefs.h. */
11566 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
11567 # define _REENTRANT 1
11568 #endif
11569 #include <netdb.h>
11571 main ()
11573 struct hostent_data data;
11575 return 0;
11577 _ACEOF
11578 rm -f conftest.$ac_objext
11579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11580 (eval $ac_compile) 2>conftest.er1
11581 ac_status=$?
11582 grep -v '^ *+' conftest.er1 >conftest.err
11583 rm -f conftest.er1
11584 cat conftest.err >&5
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); } &&
11587 { ac_try='test -z "$ac_c_werror_flag"
11588 || test ! -s conftest.err'
11589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11590 (eval $ac_try) 2>&5
11591 ac_status=$?
11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); }; } &&
11594 { ac_try='test -s conftest.$ac_objext'
11595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11596 (eval $ac_try) 2>&5
11597 ac_status=$?
11598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599 (exit $ac_status); }; }; then
11600 libjava_cv_struct_hostent_data=yes
11601 else
11602 echo "$as_me: failed program was:" >&5
11603 sed 's/^/| /' conftest.$ac_ext >&5
11605 libjava_cv_struct_hostent_data=no
11607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11609 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
11610 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
11611 if test "x$libjava_cv_struct_hostent_data" = xyes; then
11613 cat >>confdefs.h <<\_ACEOF
11614 #define HAVE_STRUCT_HOSTENT_DATA 1
11615 _ACEOF
11620 done
11623 # FIXME: libjava source code expects to find a prototype for
11624 # gethostbyaddr_r in netdb.h. The outer check ensures that
11625 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
11626 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
11627 # linkage check is enough, yet C++ code requires proper prototypes.)
11628 cat >conftest.$ac_ext <<_ACEOF
11629 /* confdefs.h. */
11630 _ACEOF
11631 cat confdefs.h >>conftest.$ac_ext
11632 cat >>conftest.$ac_ext <<_ACEOF
11633 /* end confdefs.h. */
11634 #include <netdb.h>
11636 _ACEOF
11637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11638 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
11641 for ac_func in gethostbyaddr_r
11643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11644 echo "$as_me:$LINENO: checking for $ac_func" >&5
11645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11646 if eval "test \"\${$as_ac_var+set}\" = set"; then
11647 echo $ECHO_N "(cached) $ECHO_C" >&6
11648 else
11649 if test x$gcc_no_link = xyes; then
11650 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11651 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11652 { (exit 1); exit 1; }; }
11654 cat >conftest.$ac_ext <<_ACEOF
11655 /* confdefs.h. */
11656 _ACEOF
11657 cat confdefs.h >>conftest.$ac_ext
11658 cat >>conftest.$ac_ext <<_ACEOF
11659 /* end confdefs.h. */
11660 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11662 #define $ac_func innocuous_$ac_func
11664 /* System header to define __stub macros and hopefully few prototypes,
11665 which can conflict with char $ac_func (); below.
11666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11667 <limits.h> exists even on freestanding compilers. */
11669 #ifdef __STDC__
11670 # include <limits.h>
11671 #else
11672 # include <assert.h>
11673 #endif
11675 #undef $ac_func
11677 /* Override any gcc2 internal prototype to avoid an error. */
11678 #ifdef __cplusplus
11679 extern "C"
11681 #endif
11682 /* We use char because int might match the return type of a gcc2
11683 builtin and then its argument prototype would still apply. */
11684 char $ac_func ();
11685 /* The GNU C library defines this for functions which it implements
11686 to always fail with ENOSYS. Some functions are actually named
11687 something starting with __ and the normal name is an alias. */
11688 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11689 choke me
11690 #else
11691 char (*f) () = $ac_func;
11692 #endif
11693 #ifdef __cplusplus
11695 #endif
11698 main ()
11700 return f != $ac_func;
11702 return 0;
11704 _ACEOF
11705 rm -f conftest.$ac_objext conftest$ac_exeext
11706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11707 (eval $ac_link) 2>conftest.er1
11708 ac_status=$?
11709 grep -v '^ *+' conftest.er1 >conftest.err
11710 rm -f conftest.er1
11711 cat conftest.err >&5
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); } &&
11714 { ac_try='test -z "$ac_c_werror_flag"
11715 || test ! -s conftest.err'
11716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11717 (eval $ac_try) 2>&5
11718 ac_status=$?
11719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720 (exit $ac_status); }; } &&
11721 { ac_try='test -s conftest$ac_exeext'
11722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11723 (eval $ac_try) 2>&5
11724 ac_status=$?
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); }; }; then
11727 eval "$as_ac_var=yes"
11728 else
11729 echo "$as_me: failed program was:" >&5
11730 sed 's/^/| /' conftest.$ac_ext >&5
11732 eval "$as_ac_var=no"
11734 rm -f conftest.err conftest.$ac_objext \
11735 conftest$ac_exeext conftest.$ac_ext
11737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11738 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11739 if test `eval echo '${'$as_ac_var'}'` = yes; then
11740 cat >>confdefs.h <<_ACEOF
11741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11742 _ACEOF
11745 cat >>confdefs.h <<\_ACEOF
11746 #define HAVE_GETHOSTBYADDR_R 1
11747 _ACEOF
11749 # There are two different kinds of gethostbyaddr_r.
11750 # We look for the one that returns `int'.
11751 # Hopefully this check is robust enough.
11752 cat >conftest.$ac_ext <<_ACEOF
11753 /* confdefs.h. */
11754 _ACEOF
11755 cat confdefs.h >>conftest.$ac_ext
11756 cat >>conftest.$ac_ext <<_ACEOF
11757 /* end confdefs.h. */
11758 #include <netdb.h>
11760 _ACEOF
11761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11762 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11765 cat >>confdefs.h <<\_ACEOF
11766 #define GETHOSTBYADDR_R_RETURNS_INT 1
11767 _ACEOF
11770 rm -f conftest*
11773 done
11776 rm -f conftest*
11780 for ac_func in gethostname
11782 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11783 echo "$as_me:$LINENO: checking for $ac_func" >&5
11784 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11785 if eval "test \"\${$as_ac_var+set}\" = set"; then
11786 echo $ECHO_N "(cached) $ECHO_C" >&6
11787 else
11788 if test x$gcc_no_link = xyes; then
11789 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11790 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11791 { (exit 1); exit 1; }; }
11793 cat >conftest.$ac_ext <<_ACEOF
11794 /* confdefs.h. */
11795 _ACEOF
11796 cat confdefs.h >>conftest.$ac_ext
11797 cat >>conftest.$ac_ext <<_ACEOF
11798 /* end confdefs.h. */
11799 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11801 #define $ac_func innocuous_$ac_func
11803 /* System header to define __stub macros and hopefully few prototypes,
11804 which can conflict with char $ac_func (); below.
11805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11806 <limits.h> exists even on freestanding compilers. */
11808 #ifdef __STDC__
11809 # include <limits.h>
11810 #else
11811 # include <assert.h>
11812 #endif
11814 #undef $ac_func
11816 /* Override any gcc2 internal prototype to avoid an error. */
11817 #ifdef __cplusplus
11818 extern "C"
11820 #endif
11821 /* We use char because int might match the return type of a gcc2
11822 builtin and then its argument prototype would still apply. */
11823 char $ac_func ();
11824 /* The GNU C library defines this for functions which it implements
11825 to always fail with ENOSYS. Some functions are actually named
11826 something starting with __ and the normal name is an alias. */
11827 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11828 choke me
11829 #else
11830 char (*f) () = $ac_func;
11831 #endif
11832 #ifdef __cplusplus
11834 #endif
11837 main ()
11839 return f != $ac_func;
11841 return 0;
11843 _ACEOF
11844 rm -f conftest.$ac_objext conftest$ac_exeext
11845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11846 (eval $ac_link) 2>conftest.er1
11847 ac_status=$?
11848 grep -v '^ *+' conftest.er1 >conftest.err
11849 rm -f conftest.er1
11850 cat conftest.err >&5
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); } &&
11853 { ac_try='test -z "$ac_c_werror_flag"
11854 || test ! -s conftest.err'
11855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11856 (eval $ac_try) 2>&5
11857 ac_status=$?
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); }; } &&
11860 { ac_try='test -s conftest$ac_exeext'
11861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11862 (eval $ac_try) 2>&5
11863 ac_status=$?
11864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865 (exit $ac_status); }; }; then
11866 eval "$as_ac_var=yes"
11867 else
11868 echo "$as_me: failed program was:" >&5
11869 sed 's/^/| /' conftest.$ac_ext >&5
11871 eval "$as_ac_var=no"
11873 rm -f conftest.err conftest.$ac_objext \
11874 conftest$ac_exeext conftest.$ac_ext
11876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11877 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11878 if test `eval echo '${'$as_ac_var'}'` = yes; then
11879 cat >>confdefs.h <<_ACEOF
11880 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11881 _ACEOF
11884 cat >>confdefs.h <<\_ACEOF
11885 #define HAVE_GETHOSTNAME 1
11886 _ACEOF
11888 cat >conftest.$ac_ext <<_ACEOF
11889 /* confdefs.h. */
11890 _ACEOF
11891 cat confdefs.h >>conftest.$ac_ext
11892 cat >>conftest.$ac_ext <<_ACEOF
11893 /* end confdefs.h. */
11894 #include <unistd.h>
11896 _ACEOF
11897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11898 $EGREP "gethostname" >/dev/null 2>&1; then
11901 cat >>confdefs.h <<\_ACEOF
11902 #define HAVE_GETHOSTNAME_DECL 1
11903 _ACEOF
11906 rm -f conftest*
11909 done
11913 for ac_func in usleep
11915 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11916 echo "$as_me:$LINENO: checking for $ac_func" >&5
11917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11918 if eval "test \"\${$as_ac_var+set}\" = set"; then
11919 echo $ECHO_N "(cached) $ECHO_C" >&6
11920 else
11921 if test x$gcc_no_link = xyes; then
11922 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11923 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11924 { (exit 1); exit 1; }; }
11926 cat >conftest.$ac_ext <<_ACEOF
11927 /* confdefs.h. */
11928 _ACEOF
11929 cat confdefs.h >>conftest.$ac_ext
11930 cat >>conftest.$ac_ext <<_ACEOF
11931 /* end confdefs.h. */
11932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11934 #define $ac_func innocuous_$ac_func
11936 /* System header to define __stub macros and hopefully few prototypes,
11937 which can conflict with char $ac_func (); below.
11938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11939 <limits.h> exists even on freestanding compilers. */
11941 #ifdef __STDC__
11942 # include <limits.h>
11943 #else
11944 # include <assert.h>
11945 #endif
11947 #undef $ac_func
11949 /* Override any gcc2 internal prototype to avoid an error. */
11950 #ifdef __cplusplus
11951 extern "C"
11953 #endif
11954 /* We use char because int might match the return type of a gcc2
11955 builtin and then its argument prototype would still apply. */
11956 char $ac_func ();
11957 /* The GNU C library defines this for functions which it implements
11958 to always fail with ENOSYS. Some functions are actually named
11959 something starting with __ and the normal name is an alias. */
11960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11961 choke me
11962 #else
11963 char (*f) () = $ac_func;
11964 #endif
11965 #ifdef __cplusplus
11967 #endif
11970 main ()
11972 return f != $ac_func;
11974 return 0;
11976 _ACEOF
11977 rm -f conftest.$ac_objext conftest$ac_exeext
11978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11979 (eval $ac_link) 2>conftest.er1
11980 ac_status=$?
11981 grep -v '^ *+' conftest.er1 >conftest.err
11982 rm -f conftest.er1
11983 cat conftest.err >&5
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); } &&
11986 { ac_try='test -z "$ac_c_werror_flag"
11987 || test ! -s conftest.err'
11988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11989 (eval $ac_try) 2>&5
11990 ac_status=$?
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); }; } &&
11993 { ac_try='test -s conftest$ac_exeext'
11994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11995 (eval $ac_try) 2>&5
11996 ac_status=$?
11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); }; }; then
11999 eval "$as_ac_var=yes"
12000 else
12001 echo "$as_me: failed program was:" >&5
12002 sed 's/^/| /' conftest.$ac_ext >&5
12004 eval "$as_ac_var=no"
12006 rm -f conftest.err conftest.$ac_objext \
12007 conftest$ac_exeext conftest.$ac_ext
12009 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12010 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12011 if test `eval echo '${'$as_ac_var'}'` = yes; then
12012 cat >>confdefs.h <<_ACEOF
12013 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12014 _ACEOF
12016 cat >conftest.$ac_ext <<_ACEOF
12017 /* confdefs.h. */
12018 _ACEOF
12019 cat confdefs.h >>conftest.$ac_ext
12020 cat >>conftest.$ac_ext <<_ACEOF
12021 /* end confdefs.h. */
12022 #include <unistd.h>
12024 _ACEOF
12025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12026 $EGREP "usleep" >/dev/null 2>&1; then
12029 cat >>confdefs.h <<\_ACEOF
12030 #define HAVE_USLEEP_DECL 1
12031 _ACEOF
12034 rm -f conftest*
12037 done
12040 # Look for these functions in the thread library, but only bother
12041 # if using POSIX threads.
12042 if test "$THREADS" = posix; then
12043 save_LIBS="$LIBS"
12044 LIBS="$LIBS $THREADLIBS"
12045 # Some POSIX thread systems don't have pthread_mutexattr_settype.
12046 # E.g., Solaris.
12049 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
12051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12052 echo "$as_me:$LINENO: checking for $ac_func" >&5
12053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12054 if eval "test \"\${$as_ac_var+set}\" = set"; then
12055 echo $ECHO_N "(cached) $ECHO_C" >&6
12056 else
12057 if test x$gcc_no_link = xyes; then
12058 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12059 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12060 { (exit 1); exit 1; }; }
12062 cat >conftest.$ac_ext <<_ACEOF
12063 /* confdefs.h. */
12064 _ACEOF
12065 cat confdefs.h >>conftest.$ac_ext
12066 cat >>conftest.$ac_ext <<_ACEOF
12067 /* end confdefs.h. */
12068 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12070 #define $ac_func innocuous_$ac_func
12072 /* System header to define __stub macros and hopefully few prototypes,
12073 which can conflict with char $ac_func (); below.
12074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12075 <limits.h> exists even on freestanding compilers. */
12077 #ifdef __STDC__
12078 # include <limits.h>
12079 #else
12080 # include <assert.h>
12081 #endif
12083 #undef $ac_func
12085 /* Override any gcc2 internal prototype to avoid an error. */
12086 #ifdef __cplusplus
12087 extern "C"
12089 #endif
12090 /* We use char because int might match the return type of a gcc2
12091 builtin and then its argument prototype would still apply. */
12092 char $ac_func ();
12093 /* The GNU C library defines this for functions which it implements
12094 to always fail with ENOSYS. Some functions are actually named
12095 something starting with __ and the normal name is an alias. */
12096 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12097 choke me
12098 #else
12099 char (*f) () = $ac_func;
12100 #endif
12101 #ifdef __cplusplus
12103 #endif
12106 main ()
12108 return f != $ac_func;
12110 return 0;
12112 _ACEOF
12113 rm -f conftest.$ac_objext conftest$ac_exeext
12114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12115 (eval $ac_link) 2>conftest.er1
12116 ac_status=$?
12117 grep -v '^ *+' conftest.er1 >conftest.err
12118 rm -f conftest.er1
12119 cat conftest.err >&5
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); } &&
12122 { ac_try='test -z "$ac_c_werror_flag"
12123 || test ! -s conftest.err'
12124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12125 (eval $ac_try) 2>&5
12126 ac_status=$?
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); }; } &&
12129 { ac_try='test -s conftest$ac_exeext'
12130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12131 (eval $ac_try) 2>&5
12132 ac_status=$?
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); }; }; then
12135 eval "$as_ac_var=yes"
12136 else
12137 echo "$as_me: failed program was:" >&5
12138 sed 's/^/| /' conftest.$ac_ext >&5
12140 eval "$as_ac_var=no"
12142 rm -f conftest.err conftest.$ac_objext \
12143 conftest$ac_exeext conftest.$ac_ext
12145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12146 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12147 if test `eval echo '${'$as_ac_var'}'` = yes; then
12148 cat >>confdefs.h <<_ACEOF
12149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12150 _ACEOF
12153 done
12156 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
12157 # Solaris 7 the name librt is preferred.
12159 for ac_func in sched_yield
12161 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12162 echo "$as_me:$LINENO: checking for $ac_func" >&5
12163 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12164 if eval "test \"\${$as_ac_var+set}\" = set"; then
12165 echo $ECHO_N "(cached) $ECHO_C" >&6
12166 else
12167 if test x$gcc_no_link = xyes; then
12168 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12169 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12170 { (exit 1); exit 1; }; }
12172 cat >conftest.$ac_ext <<_ACEOF
12173 /* confdefs.h. */
12174 _ACEOF
12175 cat confdefs.h >>conftest.$ac_ext
12176 cat >>conftest.$ac_ext <<_ACEOF
12177 /* end confdefs.h. */
12178 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12180 #define $ac_func innocuous_$ac_func
12182 /* System header to define __stub macros and hopefully few prototypes,
12183 which can conflict with char $ac_func (); below.
12184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12185 <limits.h> exists even on freestanding compilers. */
12187 #ifdef __STDC__
12188 # include <limits.h>
12189 #else
12190 # include <assert.h>
12191 #endif
12193 #undef $ac_func
12195 /* Override any gcc2 internal prototype to avoid an error. */
12196 #ifdef __cplusplus
12197 extern "C"
12199 #endif
12200 /* We use char because int might match the return type of a gcc2
12201 builtin and then its argument prototype would still apply. */
12202 char $ac_func ();
12203 /* The GNU C library defines this for functions which it implements
12204 to always fail with ENOSYS. Some functions are actually named
12205 something starting with __ and the normal name is an alias. */
12206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12207 choke me
12208 #else
12209 char (*f) () = $ac_func;
12210 #endif
12211 #ifdef __cplusplus
12213 #endif
12216 main ()
12218 return f != $ac_func;
12220 return 0;
12222 _ACEOF
12223 rm -f conftest.$ac_objext conftest$ac_exeext
12224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12225 (eval $ac_link) 2>conftest.er1
12226 ac_status=$?
12227 grep -v '^ *+' conftest.er1 >conftest.err
12228 rm -f conftest.er1
12229 cat conftest.err >&5
12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); } &&
12232 { ac_try='test -z "$ac_c_werror_flag"
12233 || test ! -s conftest.err'
12234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12235 (eval $ac_try) 2>&5
12236 ac_status=$?
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); }; } &&
12239 { ac_try='test -s conftest$ac_exeext'
12240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12241 (eval $ac_try) 2>&5
12242 ac_status=$?
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); }; }; then
12245 eval "$as_ac_var=yes"
12246 else
12247 echo "$as_me: failed program was:" >&5
12248 sed 's/^/| /' conftest.$ac_ext >&5
12250 eval "$as_ac_var=no"
12252 rm -f conftest.err conftest.$ac_objext \
12253 conftest$ac_exeext conftest.$ac_ext
12255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12256 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12257 if test `eval echo '${'$as_ac_var'}'` = yes; then
12258 cat >>confdefs.h <<_ACEOF
12259 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12260 _ACEOF
12262 else
12264 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
12265 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
12266 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
12267 echo $ECHO_N "(cached) $ECHO_C" >&6
12268 else
12269 ac_check_lib_save_LIBS=$LIBS
12270 LIBS="-lrt $LIBS"
12271 if test x$gcc_no_link = xyes; then
12272 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12273 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12274 { (exit 1); exit 1; }; }
12276 cat >conftest.$ac_ext <<_ACEOF
12277 /* confdefs.h. */
12278 _ACEOF
12279 cat confdefs.h >>conftest.$ac_ext
12280 cat >>conftest.$ac_ext <<_ACEOF
12281 /* end confdefs.h. */
12283 /* Override any gcc2 internal prototype to avoid an error. */
12284 #ifdef __cplusplus
12285 extern "C"
12286 #endif
12287 /* We use char because int might match the return type of a gcc2
12288 builtin and then its argument prototype would still apply. */
12289 char sched_yield ();
12291 main ()
12293 sched_yield ();
12295 return 0;
12297 _ACEOF
12298 rm -f conftest.$ac_objext conftest$ac_exeext
12299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12300 (eval $ac_link) 2>conftest.er1
12301 ac_status=$?
12302 grep -v '^ *+' conftest.er1 >conftest.err
12303 rm -f conftest.er1
12304 cat conftest.err >&5
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); } &&
12307 { ac_try='test -z "$ac_c_werror_flag"
12308 || test ! -s conftest.err'
12309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12310 (eval $ac_try) 2>&5
12311 ac_status=$?
12312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313 (exit $ac_status); }; } &&
12314 { ac_try='test -s conftest$ac_exeext'
12315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12316 (eval $ac_try) 2>&5
12317 ac_status=$?
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); }; }; then
12320 ac_cv_lib_rt_sched_yield=yes
12321 else
12322 echo "$as_me: failed program was:" >&5
12323 sed 's/^/| /' conftest.$ac_ext >&5
12325 ac_cv_lib_rt_sched_yield=no
12327 rm -f conftest.err conftest.$ac_objext \
12328 conftest$ac_exeext conftest.$ac_ext
12329 LIBS=$ac_check_lib_save_LIBS
12331 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
12332 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
12333 if test $ac_cv_lib_rt_sched_yield = yes; then
12335 cat >>confdefs.h <<\_ACEOF
12336 #define HAVE_SCHED_YIELD 1
12337 _ACEOF
12339 THREADLIBS="$THREADLIBS -lrt"
12340 THREADSPEC="$THREADSPEC -lrt"
12341 else
12343 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
12344 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
12345 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
12346 echo $ECHO_N "(cached) $ECHO_C" >&6
12347 else
12348 ac_check_lib_save_LIBS=$LIBS
12349 LIBS="-lposix4 $LIBS"
12350 if test x$gcc_no_link = xyes; then
12351 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12352 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12353 { (exit 1); exit 1; }; }
12355 cat >conftest.$ac_ext <<_ACEOF
12356 /* confdefs.h. */
12357 _ACEOF
12358 cat confdefs.h >>conftest.$ac_ext
12359 cat >>conftest.$ac_ext <<_ACEOF
12360 /* end confdefs.h. */
12362 /* Override any gcc2 internal prototype to avoid an error. */
12363 #ifdef __cplusplus
12364 extern "C"
12365 #endif
12366 /* We use char because int might match the return type of a gcc2
12367 builtin and then its argument prototype would still apply. */
12368 char sched_yield ();
12370 main ()
12372 sched_yield ();
12374 return 0;
12376 _ACEOF
12377 rm -f conftest.$ac_objext conftest$ac_exeext
12378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12379 (eval $ac_link) 2>conftest.er1
12380 ac_status=$?
12381 grep -v '^ *+' conftest.er1 >conftest.err
12382 rm -f conftest.er1
12383 cat conftest.err >&5
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); } &&
12386 { ac_try='test -z "$ac_c_werror_flag"
12387 || test ! -s conftest.err'
12388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12389 (eval $ac_try) 2>&5
12390 ac_status=$?
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); }; } &&
12393 { ac_try='test -s conftest$ac_exeext'
12394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12395 (eval $ac_try) 2>&5
12396 ac_status=$?
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); }; }; then
12399 ac_cv_lib_posix4_sched_yield=yes
12400 else
12401 echo "$as_me: failed program was:" >&5
12402 sed 's/^/| /' conftest.$ac_ext >&5
12404 ac_cv_lib_posix4_sched_yield=no
12406 rm -f conftest.err conftest.$ac_objext \
12407 conftest$ac_exeext conftest.$ac_ext
12408 LIBS=$ac_check_lib_save_LIBS
12410 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
12411 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
12412 if test $ac_cv_lib_posix4_sched_yield = yes; then
12414 cat >>confdefs.h <<\_ACEOF
12415 #define HAVE_SCHED_YIELD 1
12416 _ACEOF
12418 THREADLIBS="$THREADLIBS -lposix4"
12419 THREADSPEC="$THREADSPEC -lposix4"
12425 done
12428 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
12429 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
12430 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
12431 echo $ECHO_N "(cached) $ECHO_C" >&6
12432 else
12433 ac_check_lib_save_LIBS=$LIBS
12434 LIBS="-lrt $LIBS"
12435 if test x$gcc_no_link = xyes; then
12436 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12437 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12438 { (exit 1); exit 1; }; }
12440 cat >conftest.$ac_ext <<_ACEOF
12441 /* confdefs.h. */
12442 _ACEOF
12443 cat confdefs.h >>conftest.$ac_ext
12444 cat >>conftest.$ac_ext <<_ACEOF
12445 /* end confdefs.h. */
12447 /* Override any gcc2 internal prototype to avoid an error. */
12448 #ifdef __cplusplus
12449 extern "C"
12450 #endif
12451 /* We use char because int might match the return type of a gcc2
12452 builtin and then its argument prototype would still apply. */
12453 char clock_gettime ();
12455 main ()
12457 clock_gettime ();
12459 return 0;
12461 _ACEOF
12462 rm -f conftest.$ac_objext conftest$ac_exeext
12463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12464 (eval $ac_link) 2>conftest.er1
12465 ac_status=$?
12466 grep -v '^ *+' conftest.er1 >conftest.err
12467 rm -f conftest.er1
12468 cat conftest.err >&5
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); } &&
12471 { ac_try='test -z "$ac_c_werror_flag"
12472 || test ! -s conftest.err'
12473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12474 (eval $ac_try) 2>&5
12475 ac_status=$?
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); }; } &&
12478 { ac_try='test -s conftest$ac_exeext'
12479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12480 (eval $ac_try) 2>&5
12481 ac_status=$?
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); }; }; then
12484 ac_cv_lib_rt_clock_gettime=yes
12485 else
12486 echo "$as_me: failed program was:" >&5
12487 sed 's/^/| /' conftest.$ac_ext >&5
12489 ac_cv_lib_rt_clock_gettime=no
12491 rm -f conftest.err conftest.$ac_objext \
12492 conftest$ac_exeext conftest.$ac_ext
12493 LIBS=$ac_check_lib_save_LIBS
12495 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
12496 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
12497 if test $ac_cv_lib_rt_clock_gettime = yes; then
12500 cat >>confdefs.h <<\_ACEOF
12501 #define HAVE_CLOCK_GETTIME 1
12502 _ACEOF
12504 case "$THREADSPEC" in
12505 *-lrt*) ;;
12507 THREADSPEC="$THREADSPEC -lrt"
12508 THREADLIBS="$THREADLIBS -lrt"
12510 esac
12514 LIBS="$save_LIBS"
12516 # We can save a little space at runtime if the mutex has m_count
12517 # or __m_count. This is a nice hack for Linux.
12518 cat >conftest.$ac_ext <<_ACEOF
12519 /* confdefs.h. */
12520 _ACEOF
12521 cat confdefs.h >>conftest.$ac_ext
12522 cat >>conftest.$ac_ext <<_ACEOF
12523 /* end confdefs.h. */
12524 #include <pthread.h>
12526 main ()
12529 extern pthread_mutex_t *mutex; int q = mutex->m_count;
12532 return 0;
12534 _ACEOF
12535 rm -f conftest.$ac_objext
12536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12537 (eval $ac_compile) 2>conftest.er1
12538 ac_status=$?
12539 grep -v '^ *+' conftest.er1 >conftest.err
12540 rm -f conftest.er1
12541 cat conftest.err >&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); } &&
12544 { ac_try='test -z "$ac_c_werror_flag"
12545 || test ! -s conftest.err'
12546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12547 (eval $ac_try) 2>&5
12548 ac_status=$?
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); }; } &&
12551 { ac_try='test -s conftest.$ac_objext'
12552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553 (eval $ac_try) 2>&5
12554 ac_status=$?
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; }; then
12558 cat >>confdefs.h <<\_ACEOF
12559 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
12560 _ACEOF
12562 else
12563 echo "$as_me: failed program was:" >&5
12564 sed 's/^/| /' conftest.$ac_ext >&5
12567 cat >conftest.$ac_ext <<_ACEOF
12568 /* confdefs.h. */
12569 _ACEOF
12570 cat confdefs.h >>conftest.$ac_ext
12571 cat >>conftest.$ac_ext <<_ACEOF
12572 /* end confdefs.h. */
12573 #include <pthread.h>
12575 main ()
12578 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
12581 return 0;
12583 _ACEOF
12584 rm -f conftest.$ac_objext
12585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12586 (eval $ac_compile) 2>conftest.er1
12587 ac_status=$?
12588 grep -v '^ *+' conftest.er1 >conftest.err
12589 rm -f conftest.er1
12590 cat conftest.err >&5
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); } &&
12593 { ac_try='test -z "$ac_c_werror_flag"
12594 || test ! -s conftest.err'
12595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12596 (eval $ac_try) 2>&5
12597 ac_status=$?
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); }; } &&
12600 { ac_try='test -s conftest.$ac_objext'
12601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12602 (eval $ac_try) 2>&5
12603 ac_status=$?
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); }; }; then
12607 cat >>confdefs.h <<\_ACEOF
12608 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
12609 _ACEOF
12611 else
12612 echo "$as_me: failed program was:" >&5
12613 sed 's/^/| /' conftest.$ac_ext >&5
12616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12621 # We require a way to get the time.
12622 time_found=no
12626 for ac_func in gettimeofday time ftime
12628 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12629 echo "$as_me:$LINENO: checking for $ac_func" >&5
12630 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12631 if eval "test \"\${$as_ac_var+set}\" = set"; then
12632 echo $ECHO_N "(cached) $ECHO_C" >&6
12633 else
12634 if test x$gcc_no_link = xyes; then
12635 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12636 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12637 { (exit 1); exit 1; }; }
12639 cat >conftest.$ac_ext <<_ACEOF
12640 /* confdefs.h. */
12641 _ACEOF
12642 cat confdefs.h >>conftest.$ac_ext
12643 cat >>conftest.$ac_ext <<_ACEOF
12644 /* end confdefs.h. */
12645 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12647 #define $ac_func innocuous_$ac_func
12649 /* System header to define __stub macros and hopefully few prototypes,
12650 which can conflict with char $ac_func (); below.
12651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12652 <limits.h> exists even on freestanding compilers. */
12654 #ifdef __STDC__
12655 # include <limits.h>
12656 #else
12657 # include <assert.h>
12658 #endif
12660 #undef $ac_func
12662 /* Override any gcc2 internal prototype to avoid an error. */
12663 #ifdef __cplusplus
12664 extern "C"
12666 #endif
12667 /* We use char because int might match the return type of a gcc2
12668 builtin and then its argument prototype would still apply. */
12669 char $ac_func ();
12670 /* The GNU C library defines this for functions which it implements
12671 to always fail with ENOSYS. Some functions are actually named
12672 something starting with __ and the normal name is an alias. */
12673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12674 choke me
12675 #else
12676 char (*f) () = $ac_func;
12677 #endif
12678 #ifdef __cplusplus
12680 #endif
12683 main ()
12685 return f != $ac_func;
12687 return 0;
12689 _ACEOF
12690 rm -f conftest.$ac_objext conftest$ac_exeext
12691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12692 (eval $ac_link) 2>conftest.er1
12693 ac_status=$?
12694 grep -v '^ *+' conftest.er1 >conftest.err
12695 rm -f conftest.er1
12696 cat conftest.err >&5
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); } &&
12699 { ac_try='test -z "$ac_c_werror_flag"
12700 || test ! -s conftest.err'
12701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12702 (eval $ac_try) 2>&5
12703 ac_status=$?
12704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705 (exit $ac_status); }; } &&
12706 { ac_try='test -s conftest$ac_exeext'
12707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12708 (eval $ac_try) 2>&5
12709 ac_status=$?
12710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); }; }; then
12712 eval "$as_ac_var=yes"
12713 else
12714 echo "$as_me: failed program was:" >&5
12715 sed 's/^/| /' conftest.$ac_ext >&5
12717 eval "$as_ac_var=no"
12719 rm -f conftest.err conftest.$ac_objext \
12720 conftest$ac_exeext conftest.$ac_ext
12722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12723 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12724 if test `eval echo '${'$as_ac_var'}'` = yes; then
12725 cat >>confdefs.h <<_ACEOF
12726 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12727 _ACEOF
12728 time_found=yes
12730 done
12732 if test "$time_found" = no; then
12733 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
12734 echo "$as_me: error: no function found to get the time" >&2;}
12735 { (exit 1); exit 1; }; }
12739 for ac_func in memmove
12741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12742 echo "$as_me:$LINENO: checking for $ac_func" >&5
12743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12744 if eval "test \"\${$as_ac_var+set}\" = set"; then
12745 echo $ECHO_N "(cached) $ECHO_C" >&6
12746 else
12747 if test x$gcc_no_link = xyes; then
12748 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12749 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12750 { (exit 1); exit 1; }; }
12752 cat >conftest.$ac_ext <<_ACEOF
12753 /* confdefs.h. */
12754 _ACEOF
12755 cat confdefs.h >>conftest.$ac_ext
12756 cat >>conftest.$ac_ext <<_ACEOF
12757 /* end confdefs.h. */
12758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12760 #define $ac_func innocuous_$ac_func
12762 /* System header to define __stub macros and hopefully few prototypes,
12763 which can conflict with char $ac_func (); below.
12764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12765 <limits.h> exists even on freestanding compilers. */
12767 #ifdef __STDC__
12768 # include <limits.h>
12769 #else
12770 # include <assert.h>
12771 #endif
12773 #undef $ac_func
12775 /* Override any gcc2 internal prototype to avoid an error. */
12776 #ifdef __cplusplus
12777 extern "C"
12779 #endif
12780 /* We use char because int might match the return type of a gcc2
12781 builtin and then its argument prototype would still apply. */
12782 char $ac_func ();
12783 /* The GNU C library defines this for functions which it implements
12784 to always fail with ENOSYS. Some functions are actually named
12785 something starting with __ and the normal name is an alias. */
12786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12787 choke me
12788 #else
12789 char (*f) () = $ac_func;
12790 #endif
12791 #ifdef __cplusplus
12793 #endif
12796 main ()
12798 return f != $ac_func;
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 eval "$as_ac_var=yes"
12826 else
12827 echo "$as_me: failed program was:" >&5
12828 sed 's/^/| /' conftest.$ac_ext >&5
12830 eval "$as_ac_var=no"
12832 rm -f conftest.err conftest.$ac_objext \
12833 conftest$ac_exeext conftest.$ac_ext
12835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12836 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12837 if test `eval echo '${'$as_ac_var'}'` = yes; then
12838 cat >>confdefs.h <<_ACEOF
12839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12840 _ACEOF
12843 done
12846 # We require memcpy.
12847 memcpy_found=no
12849 for ac_func in memcpy
12851 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12852 echo "$as_me:$LINENO: checking for $ac_func" >&5
12853 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12854 if eval "test \"\${$as_ac_var+set}\" = set"; then
12855 echo $ECHO_N "(cached) $ECHO_C" >&6
12856 else
12857 if test x$gcc_no_link = xyes; then
12858 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12859 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12860 { (exit 1); exit 1; }; }
12862 cat >conftest.$ac_ext <<_ACEOF
12863 /* confdefs.h. */
12864 _ACEOF
12865 cat confdefs.h >>conftest.$ac_ext
12866 cat >>conftest.$ac_ext <<_ACEOF
12867 /* end confdefs.h. */
12868 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12870 #define $ac_func innocuous_$ac_func
12872 /* System header to define __stub macros and hopefully few prototypes,
12873 which can conflict with char $ac_func (); below.
12874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12875 <limits.h> exists even on freestanding compilers. */
12877 #ifdef __STDC__
12878 # include <limits.h>
12879 #else
12880 # include <assert.h>
12881 #endif
12883 #undef $ac_func
12885 /* Override any gcc2 internal prototype to avoid an error. */
12886 #ifdef __cplusplus
12887 extern "C"
12889 #endif
12890 /* We use char because int might match the return type of a gcc2
12891 builtin and then its argument prototype would still apply. */
12892 char $ac_func ();
12893 /* The GNU C library defines this for functions which it implements
12894 to always fail with ENOSYS. Some functions are actually named
12895 something starting with __ and the normal name is an alias. */
12896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12897 choke me
12898 #else
12899 char (*f) () = $ac_func;
12900 #endif
12901 #ifdef __cplusplus
12903 #endif
12906 main ()
12908 return f != $ac_func;
12910 return 0;
12912 _ACEOF
12913 rm -f conftest.$ac_objext conftest$ac_exeext
12914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12915 (eval $ac_link) 2>conftest.er1
12916 ac_status=$?
12917 grep -v '^ *+' conftest.er1 >conftest.err
12918 rm -f conftest.er1
12919 cat conftest.err >&5
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); } &&
12922 { ac_try='test -z "$ac_c_werror_flag"
12923 || test ! -s conftest.err'
12924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12925 (eval $ac_try) 2>&5
12926 ac_status=$?
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); }; } &&
12929 { ac_try='test -s conftest$ac_exeext'
12930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12931 (eval $ac_try) 2>&5
12932 ac_status=$?
12933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 (exit $ac_status); }; }; then
12935 eval "$as_ac_var=yes"
12936 else
12937 echo "$as_me: failed program was:" >&5
12938 sed 's/^/| /' conftest.$ac_ext >&5
12940 eval "$as_ac_var=no"
12942 rm -f conftest.err conftest.$ac_objext \
12943 conftest$ac_exeext conftest.$ac_ext
12945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12946 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12947 if test `eval echo '${'$as_ac_var'}'` = yes; then
12948 cat >>confdefs.h <<_ACEOF
12949 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12950 _ACEOF
12951 memcpy_found=yes
12953 done
12955 if test "$memcpy_found" = no; then
12956 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
12957 echo "$as_me: error: memcpy is required" >&2;}
12958 { (exit 1); exit 1; }; }
12960 # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
12961 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12962 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12963 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12964 echo $ECHO_N "(cached) $ECHO_C" >&6
12965 else
12966 ac_check_lib_save_LIBS=$LIBS
12967 LIBS="-ldl $LIBS"
12968 if test x$gcc_no_link = xyes; then
12969 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12970 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12971 { (exit 1); exit 1; }; }
12973 cat >conftest.$ac_ext <<_ACEOF
12974 /* confdefs.h. */
12975 _ACEOF
12976 cat confdefs.h >>conftest.$ac_ext
12977 cat >>conftest.$ac_ext <<_ACEOF
12978 /* end confdefs.h. */
12980 /* Override any gcc2 internal prototype to avoid an error. */
12981 #ifdef __cplusplus
12982 extern "C"
12983 #endif
12984 /* We use char because int might match the return type of a gcc2
12985 builtin and then its argument prototype would still apply. */
12986 char dlopen ();
12988 main ()
12990 dlopen ();
12992 return 0;
12994 _ACEOF
12995 rm -f conftest.$ac_objext conftest$ac_exeext
12996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12997 (eval $ac_link) 2>conftest.er1
12998 ac_status=$?
12999 grep -v '^ *+' conftest.er1 >conftest.err
13000 rm -f conftest.er1
13001 cat conftest.err >&5
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); } &&
13004 { ac_try='test -z "$ac_c_werror_flag"
13005 || test ! -s conftest.err'
13006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13007 (eval $ac_try) 2>&5
13008 ac_status=$?
13009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010 (exit $ac_status); }; } &&
13011 { ac_try='test -s conftest$ac_exeext'
13012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13013 (eval $ac_try) 2>&5
13014 ac_status=$?
13015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016 (exit $ac_status); }; }; then
13017 ac_cv_lib_dl_dlopen=yes
13018 else
13019 echo "$as_me: failed program was:" >&5
13020 sed 's/^/| /' conftest.$ac_ext >&5
13022 ac_cv_lib_dl_dlopen=no
13024 rm -f conftest.err conftest.$ac_objext \
13025 conftest$ac_exeext conftest.$ac_ext
13026 LIBS=$ac_check_lib_save_LIBS
13028 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13029 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13030 if test $ac_cv_lib_dl_dlopen = yes; then
13033 cat >>confdefs.h <<\_ACEOF
13034 #define HAVE_DLOPEN 1
13035 _ACEOF
13037 else
13039 echo "$as_me:$LINENO: checking for dlopen in -ldld" >&5
13040 echo $ECHO_N "checking for dlopen in -ldld... $ECHO_C" >&6
13041 if test "${ac_cv_lib_dld_dlopen+set}" = set; then
13042 echo $ECHO_N "(cached) $ECHO_C" >&6
13043 else
13044 ac_check_lib_save_LIBS=$LIBS
13045 LIBS="-ldld $LIBS"
13046 if test x$gcc_no_link = xyes; then
13047 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13048 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13049 { (exit 1); exit 1; }; }
13051 cat >conftest.$ac_ext <<_ACEOF
13052 /* confdefs.h. */
13053 _ACEOF
13054 cat confdefs.h >>conftest.$ac_ext
13055 cat >>conftest.$ac_ext <<_ACEOF
13056 /* end confdefs.h. */
13058 /* Override any gcc2 internal prototype to avoid an error. */
13059 #ifdef __cplusplus
13060 extern "C"
13061 #endif
13062 /* We use char because int might match the return type of a gcc2
13063 builtin and then its argument prototype would still apply. */
13064 char dlopen ();
13066 main ()
13068 dlopen ();
13070 return 0;
13072 _ACEOF
13073 rm -f conftest.$ac_objext conftest$ac_exeext
13074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13075 (eval $ac_link) 2>conftest.er1
13076 ac_status=$?
13077 grep -v '^ *+' conftest.er1 >conftest.err
13078 rm -f conftest.er1
13079 cat conftest.err >&5
13080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081 (exit $ac_status); } &&
13082 { ac_try='test -z "$ac_c_werror_flag"
13083 || test ! -s conftest.err'
13084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13085 (eval $ac_try) 2>&5
13086 ac_status=$?
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); }; } &&
13089 { ac_try='test -s conftest$ac_exeext'
13090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13091 (eval $ac_try) 2>&5
13092 ac_status=$?
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); }; }; then
13095 ac_cv_lib_dld_dlopen=yes
13096 else
13097 echo "$as_me: failed program was:" >&5
13098 sed 's/^/| /' conftest.$ac_ext >&5
13100 ac_cv_lib_dld_dlopen=no
13102 rm -f conftest.err conftest.$ac_objext \
13103 conftest$ac_exeext conftest.$ac_ext
13104 LIBS=$ac_check_lib_save_LIBS
13106 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dlopen" >&5
13107 echo "${ECHO_T}$ac_cv_lib_dld_dlopen" >&6
13108 if test $ac_cv_lib_dld_dlopen = yes; then
13111 cat >>confdefs.h <<\_ACEOF
13112 #define HAVE_DLOPEN 1
13113 _ACEOF
13120 # Some library-finding code we stole from Tcl.
13121 #--------------------------------------------------------------------
13122 # Check for the existence of the -lsocket and -lnsl libraries.
13123 # The order here is important, so that they end up in the right
13124 # order in the command line generated by make. Here are some
13125 # special considerations:
13126 # 1. Use "connect" and "accept" to check for -lsocket, and
13127 # "gethostbyname" to check for -lnsl.
13128 # 2. Use each function name only once: can't redo a check because
13129 # autoconf caches the results of the last check and won't redo it.
13130 # 3. Use -lnsl and -lsocket only if they supply procedures that
13131 # aren't already present in the normal libraries. This is because
13132 # IRIX 5.2 has libraries, but they aren't needed and they're
13133 # bogus: they goof up name resolution if used.
13134 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
13135 # To get around this problem, check for both libraries together
13136 # if -lsocket doesn't work by itself.
13137 #--------------------------------------------------------------------
13139 echo "$as_me:$LINENO: checking for socket libraries" >&5
13140 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
13141 if test "${gcj_cv_lib_sockets+set}" = set; then
13142 echo $ECHO_N "(cached) $ECHO_C" >&6
13143 else
13144 gcj_cv_lib_sockets=
13145 gcj_checkBoth=0
13146 unset ac_cv_func_connect
13147 echo "$as_me:$LINENO: checking for connect" >&5
13148 echo $ECHO_N "checking for connect... $ECHO_C" >&6
13149 if test "${ac_cv_func_connect+set}" = set; then
13150 echo $ECHO_N "(cached) $ECHO_C" >&6
13151 else
13152 if test x$gcc_no_link = xyes; then
13153 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13154 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13155 { (exit 1); exit 1; }; }
13157 cat >conftest.$ac_ext <<_ACEOF
13158 /* confdefs.h. */
13159 _ACEOF
13160 cat confdefs.h >>conftest.$ac_ext
13161 cat >>conftest.$ac_ext <<_ACEOF
13162 /* end confdefs.h. */
13163 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
13164 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13165 #define connect innocuous_connect
13167 /* System header to define __stub macros and hopefully few prototypes,
13168 which can conflict with char connect (); below.
13169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13170 <limits.h> exists even on freestanding compilers. */
13172 #ifdef __STDC__
13173 # include <limits.h>
13174 #else
13175 # include <assert.h>
13176 #endif
13178 #undef connect
13180 /* Override any gcc2 internal prototype to avoid an error. */
13181 #ifdef __cplusplus
13182 extern "C"
13184 #endif
13185 /* We use char because int might match the return type of a gcc2
13186 builtin and then its argument prototype would still apply. */
13187 char connect ();
13188 /* The GNU C library defines this for functions which it implements
13189 to always fail with ENOSYS. Some functions are actually named
13190 something starting with __ and the normal name is an alias. */
13191 #if defined (__stub_connect) || defined (__stub___connect)
13192 choke me
13193 #else
13194 char (*f) () = connect;
13195 #endif
13196 #ifdef __cplusplus
13198 #endif
13201 main ()
13203 return f != connect;
13205 return 0;
13207 _ACEOF
13208 rm -f conftest.$ac_objext conftest$ac_exeext
13209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13210 (eval $ac_link) 2>conftest.er1
13211 ac_status=$?
13212 grep -v '^ *+' conftest.er1 >conftest.err
13213 rm -f conftest.er1
13214 cat conftest.err >&5
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); } &&
13217 { ac_try='test -z "$ac_c_werror_flag"
13218 || test ! -s conftest.err'
13219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13220 (eval $ac_try) 2>&5
13221 ac_status=$?
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); }; } &&
13224 { ac_try='test -s conftest$ac_exeext'
13225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13226 (eval $ac_try) 2>&5
13227 ac_status=$?
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); }; }; then
13230 ac_cv_func_connect=yes
13231 else
13232 echo "$as_me: failed program was:" >&5
13233 sed 's/^/| /' conftest.$ac_ext >&5
13235 ac_cv_func_connect=no
13237 rm -f conftest.err conftest.$ac_objext \
13238 conftest$ac_exeext conftest.$ac_ext
13240 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
13241 echo "${ECHO_T}$ac_cv_func_connect" >&6
13242 if test $ac_cv_func_connect = yes; then
13243 gcj_checkSocket=0
13244 else
13245 gcj_checkSocket=1
13248 if test "$gcj_checkSocket" = 1; then
13249 unset ac_cv_func_connect
13250 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
13251 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
13252 if test "${ac_cv_lib_socket_main+set}" = set; then
13253 echo $ECHO_N "(cached) $ECHO_C" >&6
13254 else
13255 ac_check_lib_save_LIBS=$LIBS
13256 LIBS="-lsocket $LIBS"
13257 if test x$gcc_no_link = xyes; then
13258 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13259 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13260 { (exit 1); exit 1; }; }
13262 cat >conftest.$ac_ext <<_ACEOF
13263 /* confdefs.h. */
13264 _ACEOF
13265 cat confdefs.h >>conftest.$ac_ext
13266 cat >>conftest.$ac_ext <<_ACEOF
13267 /* end confdefs.h. */
13271 main ()
13273 main ();
13275 return 0;
13277 _ACEOF
13278 rm -f conftest.$ac_objext conftest$ac_exeext
13279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13280 (eval $ac_link) 2>conftest.er1
13281 ac_status=$?
13282 grep -v '^ *+' conftest.er1 >conftest.err
13283 rm -f conftest.er1
13284 cat conftest.err >&5
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); } &&
13287 { ac_try='test -z "$ac_c_werror_flag"
13288 || test ! -s conftest.err'
13289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13290 (eval $ac_try) 2>&5
13291 ac_status=$?
13292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 (exit $ac_status); }; } &&
13294 { ac_try='test -s conftest$ac_exeext'
13295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13296 (eval $ac_try) 2>&5
13297 ac_status=$?
13298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); }; }; then
13300 ac_cv_lib_socket_main=yes
13301 else
13302 echo "$as_me: failed program was:" >&5
13303 sed 's/^/| /' conftest.$ac_ext >&5
13305 ac_cv_lib_socket_main=no
13307 rm -f conftest.err conftest.$ac_objext \
13308 conftest$ac_exeext conftest.$ac_ext
13309 LIBS=$ac_check_lib_save_LIBS
13311 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
13312 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
13313 if test $ac_cv_lib_socket_main = yes; then
13314 gcj_cv_lib_sockets="-lsocket"
13315 else
13316 gcj_checkBoth=1
13320 if test "$gcj_checkBoth" = 1; then
13321 gcj_oldLibs=$LIBS
13322 LIBS="$LIBS -lsocket -lnsl"
13323 unset ac_cv_func_accept
13324 echo "$as_me:$LINENO: checking for accept" >&5
13325 echo $ECHO_N "checking for accept... $ECHO_C" >&6
13326 if test "${ac_cv_func_accept+set}" = set; then
13327 echo $ECHO_N "(cached) $ECHO_C" >&6
13328 else
13329 if test x$gcc_no_link = xyes; then
13330 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13331 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13332 { (exit 1); exit 1; }; }
13334 cat >conftest.$ac_ext <<_ACEOF
13335 /* confdefs.h. */
13336 _ACEOF
13337 cat confdefs.h >>conftest.$ac_ext
13338 cat >>conftest.$ac_ext <<_ACEOF
13339 /* end confdefs.h. */
13340 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
13341 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13342 #define accept innocuous_accept
13344 /* System header to define __stub macros and hopefully few prototypes,
13345 which can conflict with char accept (); below.
13346 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13347 <limits.h> exists even on freestanding compilers. */
13349 #ifdef __STDC__
13350 # include <limits.h>
13351 #else
13352 # include <assert.h>
13353 #endif
13355 #undef accept
13357 /* Override any gcc2 internal prototype to avoid an error. */
13358 #ifdef __cplusplus
13359 extern "C"
13361 #endif
13362 /* We use char because int might match the return type of a gcc2
13363 builtin and then its argument prototype would still apply. */
13364 char accept ();
13365 /* The GNU C library defines this for functions which it implements
13366 to always fail with ENOSYS. Some functions are actually named
13367 something starting with __ and the normal name is an alias. */
13368 #if defined (__stub_accept) || defined (__stub___accept)
13369 choke me
13370 #else
13371 char (*f) () = accept;
13372 #endif
13373 #ifdef __cplusplus
13375 #endif
13378 main ()
13380 return f != accept;
13382 return 0;
13384 _ACEOF
13385 rm -f conftest.$ac_objext conftest$ac_exeext
13386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13387 (eval $ac_link) 2>conftest.er1
13388 ac_status=$?
13389 grep -v '^ *+' conftest.er1 >conftest.err
13390 rm -f conftest.er1
13391 cat conftest.err >&5
13392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); } &&
13394 { ac_try='test -z "$ac_c_werror_flag"
13395 || test ! -s conftest.err'
13396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13397 (eval $ac_try) 2>&5
13398 ac_status=$?
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); }; } &&
13401 { ac_try='test -s conftest$ac_exeext'
13402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13403 (eval $ac_try) 2>&5
13404 ac_status=$?
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); }; }; then
13407 ac_cv_func_accept=yes
13408 else
13409 echo "$as_me: failed program was:" >&5
13410 sed 's/^/| /' conftest.$ac_ext >&5
13412 ac_cv_func_accept=no
13414 rm -f conftest.err conftest.$ac_objext \
13415 conftest$ac_exeext conftest.$ac_ext
13417 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
13418 echo "${ECHO_T}$ac_cv_func_accept" >&6
13419 if test $ac_cv_func_accept = yes; then
13420 gcj_checkNsl=0
13421 gcj_cv_lib_sockets="-lsocket -lnsl"
13424 unset ac_cv_func_accept
13425 LIBS=$gcj_oldLibs
13427 unset ac_cv_func_gethostbyname
13428 gcj_oldLibs=$LIBS
13429 LIBS="$LIBS $gcj_cv_lib_sockets"
13430 echo "$as_me:$LINENO: checking for gethostbyname" >&5
13431 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
13432 if test "${ac_cv_func_gethostbyname+set}" = set; then
13433 echo $ECHO_N "(cached) $ECHO_C" >&6
13434 else
13435 if test x$gcc_no_link = xyes; then
13436 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13437 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13438 { (exit 1); exit 1; }; }
13440 cat >conftest.$ac_ext <<_ACEOF
13441 /* confdefs.h. */
13442 _ACEOF
13443 cat confdefs.h >>conftest.$ac_ext
13444 cat >>conftest.$ac_ext <<_ACEOF
13445 /* end confdefs.h. */
13446 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
13447 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13448 #define gethostbyname innocuous_gethostbyname
13450 /* System header to define __stub macros and hopefully few prototypes,
13451 which can conflict with char gethostbyname (); below.
13452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13453 <limits.h> exists even on freestanding compilers. */
13455 #ifdef __STDC__
13456 # include <limits.h>
13457 #else
13458 # include <assert.h>
13459 #endif
13461 #undef gethostbyname
13463 /* Override any gcc2 internal prototype to avoid an error. */
13464 #ifdef __cplusplus
13465 extern "C"
13467 #endif
13468 /* We use char because int might match the return type of a gcc2
13469 builtin and then its argument prototype would still apply. */
13470 char gethostbyname ();
13471 /* The GNU C library defines this for functions which it implements
13472 to always fail with ENOSYS. Some functions are actually named
13473 something starting with __ and the normal name is an alias. */
13474 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13475 choke me
13476 #else
13477 char (*f) () = gethostbyname;
13478 #endif
13479 #ifdef __cplusplus
13481 #endif
13484 main ()
13486 return f != gethostbyname;
13488 return 0;
13490 _ACEOF
13491 rm -f conftest.$ac_objext conftest$ac_exeext
13492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13493 (eval $ac_link) 2>conftest.er1
13494 ac_status=$?
13495 grep -v '^ *+' conftest.er1 >conftest.err
13496 rm -f conftest.er1
13497 cat conftest.err >&5
13498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499 (exit $ac_status); } &&
13500 { ac_try='test -z "$ac_c_werror_flag"
13501 || test ! -s conftest.err'
13502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13503 (eval $ac_try) 2>&5
13504 ac_status=$?
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); }; } &&
13507 { ac_try='test -s conftest$ac_exeext'
13508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13509 (eval $ac_try) 2>&5
13510 ac_status=$?
13511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); }; }; then
13513 ac_cv_func_gethostbyname=yes
13514 else
13515 echo "$as_me: failed program was:" >&5
13516 sed 's/^/| /' conftest.$ac_ext >&5
13518 ac_cv_func_gethostbyname=no
13520 rm -f conftest.err conftest.$ac_objext \
13521 conftest$ac_exeext conftest.$ac_ext
13523 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
13524 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
13525 if test $ac_cv_func_gethostbyname = yes; then
13527 else
13528 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
13529 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
13530 if test "${ac_cv_lib_nsl_main+set}" = set; then
13531 echo $ECHO_N "(cached) $ECHO_C" >&6
13532 else
13533 ac_check_lib_save_LIBS=$LIBS
13534 LIBS="-lnsl $LIBS"
13535 if test x$gcc_no_link = xyes; then
13536 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13537 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13538 { (exit 1); exit 1; }; }
13540 cat >conftest.$ac_ext <<_ACEOF
13541 /* confdefs.h. */
13542 _ACEOF
13543 cat confdefs.h >>conftest.$ac_ext
13544 cat >>conftest.$ac_ext <<_ACEOF
13545 /* end confdefs.h. */
13549 main ()
13551 main ();
13553 return 0;
13555 _ACEOF
13556 rm -f conftest.$ac_objext conftest$ac_exeext
13557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13558 (eval $ac_link) 2>conftest.er1
13559 ac_status=$?
13560 grep -v '^ *+' conftest.er1 >conftest.err
13561 rm -f conftest.er1
13562 cat conftest.err >&5
13563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564 (exit $ac_status); } &&
13565 { ac_try='test -z "$ac_c_werror_flag"
13566 || test ! -s conftest.err'
13567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13568 (eval $ac_try) 2>&5
13569 ac_status=$?
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); }; } &&
13572 { ac_try='test -s conftest$ac_exeext'
13573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13574 (eval $ac_try) 2>&5
13575 ac_status=$?
13576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577 (exit $ac_status); }; }; then
13578 ac_cv_lib_nsl_main=yes
13579 else
13580 echo "$as_me: failed program was:" >&5
13581 sed 's/^/| /' conftest.$ac_ext >&5
13583 ac_cv_lib_nsl_main=no
13585 rm -f conftest.err conftest.$ac_objext \
13586 conftest$ac_exeext conftest.$ac_ext
13587 LIBS=$ac_check_lib_save_LIBS
13589 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
13590 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
13591 if test $ac_cv_lib_nsl_main = yes; then
13592 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
13597 unset ac_cv_func_gethostbyname
13598 LIBS=$gcj_oldLIBS
13601 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
13602 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
13603 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
13605 if test "$with_system_zlib" = yes; then
13606 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
13607 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
13608 if test "${ac_cv_lib_z_deflate+set}" = set; then
13609 echo $ECHO_N "(cached) $ECHO_C" >&6
13610 else
13611 ac_check_lib_save_LIBS=$LIBS
13612 LIBS="-lz $LIBS"
13613 if test x$gcc_no_link = xyes; then
13614 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13615 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13616 { (exit 1); exit 1; }; }
13618 cat >conftest.$ac_ext <<_ACEOF
13619 /* confdefs.h. */
13620 _ACEOF
13621 cat confdefs.h >>conftest.$ac_ext
13622 cat >>conftest.$ac_ext <<_ACEOF
13623 /* end confdefs.h. */
13625 /* Override any gcc2 internal prototype to avoid an error. */
13626 #ifdef __cplusplus
13627 extern "C"
13628 #endif
13629 /* We use char because int might match the return type of a gcc2
13630 builtin and then its argument prototype would still apply. */
13631 char deflate ();
13633 main ()
13635 deflate ();
13637 return 0;
13639 _ACEOF
13640 rm -f conftest.$ac_objext conftest$ac_exeext
13641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13642 (eval $ac_link) 2>conftest.er1
13643 ac_status=$?
13644 grep -v '^ *+' conftest.er1 >conftest.err
13645 rm -f conftest.er1
13646 cat conftest.err >&5
13647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648 (exit $ac_status); } &&
13649 { ac_try='test -z "$ac_c_werror_flag"
13650 || test ! -s conftest.err'
13651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13652 (eval $ac_try) 2>&5
13653 ac_status=$?
13654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655 (exit $ac_status); }; } &&
13656 { ac_try='test -s conftest$ac_exeext'
13657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13658 (eval $ac_try) 2>&5
13659 ac_status=$?
13660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 (exit $ac_status); }; }; then
13662 ac_cv_lib_z_deflate=yes
13663 else
13664 echo "$as_me: failed program was:" >&5
13665 sed 's/^/| /' conftest.$ac_ext >&5
13667 ac_cv_lib_z_deflate=no
13669 rm -f conftest.err conftest.$ac_objext \
13670 conftest$ac_exeext conftest.$ac_ext
13671 LIBS=$ac_check_lib_save_LIBS
13673 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
13674 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
13675 if test $ac_cv_lib_z_deflate = yes; then
13676 ZLIBSPEC=-lz
13677 else
13678 ZLIBSPEC=
13683 # Test for Gtk stuff, if asked for.
13684 if test "$use_gtk_awt" = yes; then
13686 succeeded=no
13688 if test -z "$PKG_CONFIG"; then
13689 # Extract the first word of "pkg-config", so it can be a program name with args.
13690 set dummy pkg-config; ac_word=$2
13691 echo "$as_me:$LINENO: checking for $ac_word" >&5
13692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13693 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13694 echo $ECHO_N "(cached) $ECHO_C" >&6
13695 else
13696 case $PKG_CONFIG in
13697 [\\/]* | ?:[\\/]*)
13698 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13702 for as_dir in $PATH
13704 IFS=$as_save_IFS
13705 test -z "$as_dir" && as_dir=.
13706 for ac_exec_ext in '' $ac_executable_extensions; do
13707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13708 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13710 break 2
13712 done
13713 done
13715 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13717 esac
13719 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13721 if test -n "$PKG_CONFIG"; then
13722 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13723 echo "${ECHO_T}$PKG_CONFIG" >&6
13724 else
13725 echo "$as_me:$LINENO: result: no" >&5
13726 echo "${ECHO_T}no" >&6
13731 if test "$PKG_CONFIG" = "no" ; then
13732 echo "*** The pkg-config script could not be found. Make sure it is"
13733 echo "*** in your path, or set the PKG_CONFIG environment variable"
13734 echo "*** to the full path to pkg-config."
13735 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13736 else
13737 PKG_CONFIG_MIN_VERSION=0.9.0
13738 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13739 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
13740 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
13742 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
13743 echo "$as_me:$LINENO: result: yes" >&5
13744 echo "${ECHO_T}yes" >&6
13745 succeeded=yes
13747 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
13748 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
13749 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
13750 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
13751 echo "${ECHO_T}$GTK_CFLAGS" >&6
13753 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
13754 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
13755 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
13756 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
13757 echo "${ECHO_T}$GTK_LIBS" >&6
13758 else
13759 GTK_CFLAGS=""
13760 GTK_LIBS=""
13761 ## If we have a custom action on failure, don't print errors, but
13762 ## do set a variable so people can do so.
13763 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
13764 echo $GTK_PKG_ERRORS
13769 else
13770 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13771 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13775 if test $succeeded = yes; then
13777 else
13778 { { 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
13779 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;}
13780 { (exit 1); exit 1; }; }
13787 succeeded=no
13789 if test -z "$PKG_CONFIG"; then
13790 # Extract the first word of "pkg-config", so it can be a program name with args.
13791 set dummy pkg-config; ac_word=$2
13792 echo "$as_me:$LINENO: checking for $ac_word" >&5
13793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13794 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13795 echo $ECHO_N "(cached) $ECHO_C" >&6
13796 else
13797 case $PKG_CONFIG in
13798 [\\/]* | ?:[\\/]*)
13799 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13803 for as_dir in $PATH
13805 IFS=$as_save_IFS
13806 test -z "$as_dir" && as_dir=.
13807 for ac_exec_ext in '' $ac_executable_extensions; do
13808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13809 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13811 break 2
13813 done
13814 done
13816 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13818 esac
13820 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13822 if test -n "$PKG_CONFIG"; then
13823 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13824 echo "${ECHO_T}$PKG_CONFIG" >&6
13825 else
13826 echo "$as_me:$LINENO: result: no" >&5
13827 echo "${ECHO_T}no" >&6
13832 if test "$PKG_CONFIG" = "no" ; then
13833 echo "*** The pkg-config script could not be found. Make sure it is"
13834 echo "*** in your path, or set the PKG_CONFIG environment variable"
13835 echo "*** to the full path to pkg-config."
13836 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13837 else
13838 PKG_CONFIG_MIN_VERSION=0.9.0
13839 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13840 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
13841 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
13843 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
13844 echo "$as_me:$LINENO: result: yes" >&5
13845 echo "${ECHO_T}yes" >&6
13846 succeeded=yes
13848 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
13849 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
13850 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13851 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
13852 echo "${ECHO_T}$GLIB_CFLAGS" >&6
13854 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
13855 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
13856 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13857 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
13858 echo "${ECHO_T}$GLIB_LIBS" >&6
13859 else
13860 GLIB_CFLAGS=""
13861 GLIB_LIBS=""
13862 ## If we have a custom action on failure, don't print errors, but
13863 ## do set a variable so people can do so.
13864 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13865 echo $GLIB_PKG_ERRORS
13870 else
13871 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13872 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13876 if test $succeeded = yes; then
13878 else
13879 { { 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
13880 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;}
13881 { (exit 1); exit 1; }; }
13888 succeeded=no
13890 if test -z "$PKG_CONFIG"; then
13891 # Extract the first word of "pkg-config", so it can be a program name with args.
13892 set dummy pkg-config; ac_word=$2
13893 echo "$as_me:$LINENO: checking for $ac_word" >&5
13894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13895 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13896 echo $ECHO_N "(cached) $ECHO_C" >&6
13897 else
13898 case $PKG_CONFIG in
13899 [\\/]* | ?:[\\/]*)
13900 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13904 for as_dir in $PATH
13906 IFS=$as_save_IFS
13907 test -z "$as_dir" && as_dir=.
13908 for ac_exec_ext in '' $ac_executable_extensions; do
13909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13910 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13912 break 2
13914 done
13915 done
13917 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13919 esac
13921 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13923 if test -n "$PKG_CONFIG"; then
13924 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13925 echo "${ECHO_T}$PKG_CONFIG" >&6
13926 else
13927 echo "$as_me:$LINENO: result: no" >&5
13928 echo "${ECHO_T}no" >&6
13933 if test "$PKG_CONFIG" = "no" ; then
13934 echo "*** The pkg-config script could not be found. Make sure it is"
13935 echo "*** in your path, or set the PKG_CONFIG environment variable"
13936 echo "*** to the full path to pkg-config."
13937 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13938 else
13939 PKG_CONFIG_MIN_VERSION=0.9.0
13940 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13941 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
13942 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
13944 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
13945 echo "$as_me:$LINENO: result: yes" >&5
13946 echo "${ECHO_T}yes" >&6
13947 succeeded=yes
13949 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
13950 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
13951 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
13952 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
13953 echo "${ECHO_T}$LIBART_CFLAGS" >&6
13955 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
13956 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
13957 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
13958 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
13959 echo "${ECHO_T}$LIBART_LIBS" >&6
13960 else
13961 LIBART_CFLAGS=""
13962 LIBART_LIBS=""
13963 ## If we have a custom action on failure, don't print errors, but
13964 ## do set a variable so people can do so.
13965 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
13966 echo $LIBART_PKG_ERRORS
13971 else
13972 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13973 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13977 if test $succeeded = yes; then
13979 else
13980 { { 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
13981 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;}
13982 { (exit 1); exit 1; }; }
13988 # We require the XTest Extension to support java.awt.Robot.
13989 echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
13990 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
13991 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
13992 echo $ECHO_N "(cached) $ECHO_C" >&6
13993 else
13994 ac_check_lib_save_LIBS=$LIBS
13995 LIBS="-lXtst ${X_LIBS} $LIBS"
13996 if test x$gcc_no_link = xyes; then
13997 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13998 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13999 { (exit 1); exit 1; }; }
14001 cat >conftest.$ac_ext <<_ACEOF
14002 /* confdefs.h. */
14003 _ACEOF
14004 cat confdefs.h >>conftest.$ac_ext
14005 cat >>conftest.$ac_ext <<_ACEOF
14006 /* end confdefs.h. */
14008 /* Override any gcc2 internal prototype to avoid an error. */
14009 #ifdef __cplusplus
14010 extern "C"
14011 #endif
14012 /* We use char because int might match the return type of a gcc2
14013 builtin and then its argument prototype would still apply. */
14014 char XTestQueryExtension ();
14016 main ()
14018 XTestQueryExtension ();
14020 return 0;
14022 _ACEOF
14023 rm -f conftest.$ac_objext conftest$ac_exeext
14024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14025 (eval $ac_link) 2>conftest.er1
14026 ac_status=$?
14027 grep -v '^ *+' conftest.er1 >conftest.err
14028 rm -f conftest.er1
14029 cat conftest.err >&5
14030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031 (exit $ac_status); } &&
14032 { ac_try='test -z "$ac_c_werror_flag"
14033 || test ! -s conftest.err'
14034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14035 (eval $ac_try) 2>&5
14036 ac_status=$?
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); }; } &&
14039 { ac_try='test -s conftest$ac_exeext'
14040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14041 (eval $ac_try) 2>&5
14042 ac_status=$?
14043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); }; }; then
14045 ac_cv_lib_Xtst_XTestQueryExtension=yes
14046 else
14047 echo "$as_me: failed program was:" >&5
14048 sed 's/^/| /' conftest.$ac_ext >&5
14050 ac_cv_lib_Xtst_XTestQueryExtension=no
14052 rm -f conftest.err conftest.$ac_objext \
14053 conftest$ac_exeext conftest.$ac_ext
14054 LIBS=$ac_check_lib_save_LIBS
14056 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
14057 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
14058 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
14059 true
14060 else
14061 { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
14062 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
14063 { (exit 1); exit 1; }; }
14068 # On Solaris, and maybe other architectures, the Boehm collector
14069 # requires -ldl.
14070 if test "$GC" = boehm; then
14071 echo "$as_me:$LINENO: checking for main in -ldl" >&5
14072 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
14073 if test "${ac_cv_lib_dl_main+set}" = set; then
14074 echo $ECHO_N "(cached) $ECHO_C" >&6
14075 else
14076 ac_check_lib_save_LIBS=$LIBS
14077 LIBS="-ldl $LIBS"
14078 if test x$gcc_no_link = xyes; then
14079 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14080 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14081 { (exit 1); exit 1; }; }
14083 cat >conftest.$ac_ext <<_ACEOF
14084 /* confdefs.h. */
14085 _ACEOF
14086 cat confdefs.h >>conftest.$ac_ext
14087 cat >>conftest.$ac_ext <<_ACEOF
14088 /* end confdefs.h. */
14092 main ()
14094 main ();
14096 return 0;
14098 _ACEOF
14099 rm -f conftest.$ac_objext conftest$ac_exeext
14100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14101 (eval $ac_link) 2>conftest.er1
14102 ac_status=$?
14103 grep -v '^ *+' conftest.er1 >conftest.err
14104 rm -f conftest.er1
14105 cat conftest.err >&5
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); } &&
14108 { ac_try='test -z "$ac_c_werror_flag"
14109 || test ! -s conftest.err'
14110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14111 (eval $ac_try) 2>&5
14112 ac_status=$?
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); }; } &&
14115 { ac_try='test -s conftest$ac_exeext'
14116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14117 (eval $ac_try) 2>&5
14118 ac_status=$?
14119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120 (exit $ac_status); }; }; then
14121 ac_cv_lib_dl_main=yes
14122 else
14123 echo "$as_me: failed program was:" >&5
14124 sed 's/^/| /' conftest.$ac_ext >&5
14126 ac_cv_lib_dl_main=no
14128 rm -f conftest.err conftest.$ac_objext \
14129 conftest$ac_exeext conftest.$ac_ext
14130 LIBS=$ac_check_lib_save_LIBS
14132 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
14133 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
14134 if test $ac_cv_lib_dl_main = yes; then
14135 SYSTEMSPEC="$SYSTEMSPEC -ldl"
14141 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
14142 case $build in
14143 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
14144 *) CLASSPATH_SEPARATOR=':' ;;
14145 esac
14148 # We must search the source tree for java.lang, since we still don't
14149 # have libgcj.jar nor java/lang/*.class
14150 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
14151 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
14153 # Since some classes depend on this one, we need its source available
14154 # before we can do any GCJ compilation test :-(
14155 if test ! -f gnu/classpath/Configuration.java; then
14156 test -d gnu || mkdir gnu
14157 test -d gnu/classpath || mkdir gnu/classpath
14158 # Note that it is not crucial that all the values here be correct.
14159 sed -e "s,@prefix@,$prefix," \
14160 -e "s,@VERSION@,$VERSION," \
14161 -e "s,@LIBDEBUG@,false," \
14162 -e "s,@INIT_LOAD_LIBRARY@,false," \
14163 -e "s,@@,$LIBGCJDEBUG," \
14164 -e "s,@default_toolkit@,$TOOLKIT," \
14165 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
14166 -e "s,@GTK_CAIRO_ENABLED@,false," \
14167 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
14168 > gnu/classpath/Configuration.java
14169 # We do not want to redirect the output of the grep below to /dev/null,
14170 # but we add /dev/null to the input list so that grep will print the
14171 # filename of Configuration.java in case it finds any matches.
14172 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
14173 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
14174 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
14175 { (exit 1); exit 1; }; }
14179 if test -n "$ac_tool_prefix"; then
14180 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
14181 set dummy ${ac_tool_prefix}gcj; ac_word=$2
14182 echo "$as_me:$LINENO: checking for $ac_word" >&5
14183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14184 if test "${ac_cv_prog_GCJ+set}" = set; then
14185 echo $ECHO_N "(cached) $ECHO_C" >&6
14186 else
14187 if test -n "$GCJ"; then
14188 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
14189 else
14190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14191 for as_dir in $PATH
14193 IFS=$as_save_IFS
14194 test -z "$as_dir" && as_dir=.
14195 for ac_exec_ext in '' $ac_executable_extensions; do
14196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14197 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
14198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14199 break 2
14201 done
14202 done
14206 GCJ=$ac_cv_prog_GCJ
14207 if test -n "$GCJ"; then
14208 echo "$as_me:$LINENO: result: $GCJ" >&5
14209 echo "${ECHO_T}$GCJ" >&6
14210 else
14211 echo "$as_me:$LINENO: result: no" >&5
14212 echo "${ECHO_T}no" >&6
14216 if test -z "$ac_cv_prog_GCJ"; then
14217 ac_ct_GCJ=$GCJ
14218 # Extract the first word of "gcj", so it can be a program name with args.
14219 set dummy gcj; ac_word=$2
14220 echo "$as_me:$LINENO: checking for $ac_word" >&5
14221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14222 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
14223 echo $ECHO_N "(cached) $ECHO_C" >&6
14224 else
14225 if test -n "$ac_ct_GCJ"; then
14226 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
14227 else
14228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14229 for as_dir in $PATH
14231 IFS=$as_save_IFS
14232 test -z "$as_dir" && as_dir=.
14233 for ac_exec_ext in '' $ac_executable_extensions; do
14234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14235 ac_cv_prog_ac_ct_GCJ="gcj"
14236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14237 break 2
14239 done
14240 done
14242 test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
14245 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
14246 if test -n "$ac_ct_GCJ"; then
14247 echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
14248 echo "${ECHO_T}$ac_ct_GCJ" >&6
14249 else
14250 echo "$as_me:$LINENO: result: no" >&5
14251 echo "${ECHO_T}no" >&6
14254 GCJ=$ac_ct_GCJ
14255 else
14256 GCJ="$ac_cv_prog_GCJ"
14259 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
14264 # Now remove it.
14265 rm -f gnu/classpath/Configuration.java
14267 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
14269 echo "$as_me:$LINENO: checking for void *" >&5
14270 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14271 if test "${ac_cv_type_void_p+set}" = set; then
14272 echo $ECHO_N "(cached) $ECHO_C" >&6
14273 else
14274 cat >conftest.$ac_ext <<_ACEOF
14275 /* confdefs.h. */
14276 _ACEOF
14277 cat confdefs.h >>conftest.$ac_ext
14278 cat >>conftest.$ac_ext <<_ACEOF
14279 /* end confdefs.h. */
14280 $ac_includes_default
14282 main ()
14284 if ((void * *) 0)
14285 return 0;
14286 if (sizeof (void *))
14287 return 0;
14289 return 0;
14291 _ACEOF
14292 rm -f conftest.$ac_objext
14293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14294 (eval $ac_compile) 2>conftest.er1
14295 ac_status=$?
14296 grep -v '^ *+' conftest.er1 >conftest.err
14297 rm -f conftest.er1
14298 cat conftest.err >&5
14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); } &&
14301 { ac_try='test -z "$ac_c_werror_flag"
14302 || test ! -s conftest.err'
14303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14304 (eval $ac_try) 2>&5
14305 ac_status=$?
14306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307 (exit $ac_status); }; } &&
14308 { ac_try='test -s conftest.$ac_objext'
14309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14310 (eval $ac_try) 2>&5
14311 ac_status=$?
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); }; }; then
14314 ac_cv_type_void_p=yes
14315 else
14316 echo "$as_me: failed program was:" >&5
14317 sed 's/^/| /' conftest.$ac_ext >&5
14319 ac_cv_type_void_p=no
14321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14323 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14324 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14326 echo "$as_me:$LINENO: checking size of void *" >&5
14327 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14328 if test "${ac_cv_sizeof_void_p+set}" = set; then
14329 echo $ECHO_N "(cached) $ECHO_C" >&6
14330 else
14331 if test "$ac_cv_type_void_p" = yes; then
14332 # The cast to unsigned long works around a bug in the HP C Compiler
14333 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14334 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14335 # This bug is HP SR number 8606223364.
14336 if test "$cross_compiling" = yes; then
14337 # Depending upon the size, compute the lo and hi bounds.
14338 cat >conftest.$ac_ext <<_ACEOF
14339 /* confdefs.h. */
14340 _ACEOF
14341 cat confdefs.h >>conftest.$ac_ext
14342 cat >>conftest.$ac_ext <<_ACEOF
14343 /* end confdefs.h. */
14344 $ac_includes_default
14346 main ()
14348 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14349 test_array [0] = 0
14352 return 0;
14354 _ACEOF
14355 rm -f conftest.$ac_objext
14356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14357 (eval $ac_compile) 2>conftest.er1
14358 ac_status=$?
14359 grep -v '^ *+' conftest.er1 >conftest.err
14360 rm -f conftest.er1
14361 cat conftest.err >&5
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); } &&
14364 { ac_try='test -z "$ac_c_werror_flag"
14365 || test ! -s conftest.err'
14366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14367 (eval $ac_try) 2>&5
14368 ac_status=$?
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); }; } &&
14371 { ac_try='test -s conftest.$ac_objext'
14372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14373 (eval $ac_try) 2>&5
14374 ac_status=$?
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); }; }; then
14377 ac_lo=0 ac_mid=0
14378 while :; do
14379 cat >conftest.$ac_ext <<_ACEOF
14380 /* confdefs.h. */
14381 _ACEOF
14382 cat confdefs.h >>conftest.$ac_ext
14383 cat >>conftest.$ac_ext <<_ACEOF
14384 /* end confdefs.h. */
14385 $ac_includes_default
14387 main ()
14389 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14390 test_array [0] = 0
14393 return 0;
14395 _ACEOF
14396 rm -f conftest.$ac_objext
14397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14398 (eval $ac_compile) 2>conftest.er1
14399 ac_status=$?
14400 grep -v '^ *+' conftest.er1 >conftest.err
14401 rm -f conftest.er1
14402 cat conftest.err >&5
14403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404 (exit $ac_status); } &&
14405 { ac_try='test -z "$ac_c_werror_flag"
14406 || test ! -s conftest.err'
14407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14408 (eval $ac_try) 2>&5
14409 ac_status=$?
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); }; } &&
14412 { ac_try='test -s conftest.$ac_objext'
14413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14414 (eval $ac_try) 2>&5
14415 ac_status=$?
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); }; }; then
14418 ac_hi=$ac_mid; break
14419 else
14420 echo "$as_me: failed program was:" >&5
14421 sed 's/^/| /' conftest.$ac_ext >&5
14423 ac_lo=`expr $ac_mid + 1`
14424 if test $ac_lo -le $ac_mid; then
14425 ac_lo= ac_hi=
14426 break
14428 ac_mid=`expr 2 '*' $ac_mid + 1`
14430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14431 done
14432 else
14433 echo "$as_me: failed program was:" >&5
14434 sed 's/^/| /' conftest.$ac_ext >&5
14436 cat >conftest.$ac_ext <<_ACEOF
14437 /* confdefs.h. */
14438 _ACEOF
14439 cat confdefs.h >>conftest.$ac_ext
14440 cat >>conftest.$ac_ext <<_ACEOF
14441 /* end confdefs.h. */
14442 $ac_includes_default
14444 main ()
14446 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14447 test_array [0] = 0
14450 return 0;
14452 _ACEOF
14453 rm -f conftest.$ac_objext
14454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14455 (eval $ac_compile) 2>conftest.er1
14456 ac_status=$?
14457 grep -v '^ *+' conftest.er1 >conftest.err
14458 rm -f conftest.er1
14459 cat conftest.err >&5
14460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461 (exit $ac_status); } &&
14462 { ac_try='test -z "$ac_c_werror_flag"
14463 || test ! -s conftest.err'
14464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14465 (eval $ac_try) 2>&5
14466 ac_status=$?
14467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468 (exit $ac_status); }; } &&
14469 { ac_try='test -s conftest.$ac_objext'
14470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14471 (eval $ac_try) 2>&5
14472 ac_status=$?
14473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474 (exit $ac_status); }; }; then
14475 ac_hi=-1 ac_mid=-1
14476 while :; do
14477 cat >conftest.$ac_ext <<_ACEOF
14478 /* confdefs.h. */
14479 _ACEOF
14480 cat confdefs.h >>conftest.$ac_ext
14481 cat >>conftest.$ac_ext <<_ACEOF
14482 /* end confdefs.h. */
14483 $ac_includes_default
14485 main ()
14487 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14488 test_array [0] = 0
14491 return 0;
14493 _ACEOF
14494 rm -f conftest.$ac_objext
14495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14496 (eval $ac_compile) 2>conftest.er1
14497 ac_status=$?
14498 grep -v '^ *+' conftest.er1 >conftest.err
14499 rm -f conftest.er1
14500 cat conftest.err >&5
14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 (exit $ac_status); } &&
14503 { ac_try='test -z "$ac_c_werror_flag"
14504 || test ! -s conftest.err'
14505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14506 (eval $ac_try) 2>&5
14507 ac_status=$?
14508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509 (exit $ac_status); }; } &&
14510 { ac_try='test -s conftest.$ac_objext'
14511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14512 (eval $ac_try) 2>&5
14513 ac_status=$?
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); }; }; then
14516 ac_lo=$ac_mid; break
14517 else
14518 echo "$as_me: failed program was:" >&5
14519 sed 's/^/| /' conftest.$ac_ext >&5
14521 ac_hi=`expr '(' $ac_mid ')' - 1`
14522 if test $ac_mid -le $ac_hi; then
14523 ac_lo= ac_hi=
14524 break
14526 ac_mid=`expr 2 '*' $ac_mid`
14528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14529 done
14530 else
14531 echo "$as_me: failed program was:" >&5
14532 sed 's/^/| /' conftest.$ac_ext >&5
14534 ac_lo= ac_hi=
14536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14539 # Binary search between lo and hi bounds.
14540 while test "x$ac_lo" != "x$ac_hi"; do
14541 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14542 cat >conftest.$ac_ext <<_ACEOF
14543 /* confdefs.h. */
14544 _ACEOF
14545 cat confdefs.h >>conftest.$ac_ext
14546 cat >>conftest.$ac_ext <<_ACEOF
14547 /* end confdefs.h. */
14548 $ac_includes_default
14550 main ()
14552 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14553 test_array [0] = 0
14556 return 0;
14558 _ACEOF
14559 rm -f conftest.$ac_objext
14560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14561 (eval $ac_compile) 2>conftest.er1
14562 ac_status=$?
14563 grep -v '^ *+' conftest.er1 >conftest.err
14564 rm -f conftest.er1
14565 cat conftest.err >&5
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); } &&
14568 { ac_try='test -z "$ac_c_werror_flag"
14569 || test ! -s conftest.err'
14570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14571 (eval $ac_try) 2>&5
14572 ac_status=$?
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); }; } &&
14575 { ac_try='test -s conftest.$ac_objext'
14576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14577 (eval $ac_try) 2>&5
14578 ac_status=$?
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); }; }; then
14581 ac_hi=$ac_mid
14582 else
14583 echo "$as_me: failed program was:" >&5
14584 sed 's/^/| /' conftest.$ac_ext >&5
14586 ac_lo=`expr '(' $ac_mid ')' + 1`
14588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14589 done
14590 case $ac_lo in
14591 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14592 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14593 See \`config.log' for more details." >&5
14594 echo "$as_me: error: cannot compute sizeof (void *), 77
14595 See \`config.log' for more details." >&2;}
14596 { (exit 1); exit 1; }; } ;;
14597 esac
14598 else
14599 if test "$cross_compiling" = yes; then
14600 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14601 See \`config.log' for more details." >&5
14602 echo "$as_me: error: cannot run test program while cross compiling
14603 See \`config.log' for more details." >&2;}
14604 { (exit 1); exit 1; }; }
14605 else
14606 cat >conftest.$ac_ext <<_ACEOF
14607 /* confdefs.h. */
14608 _ACEOF
14609 cat confdefs.h >>conftest.$ac_ext
14610 cat >>conftest.$ac_ext <<_ACEOF
14611 /* end confdefs.h. */
14612 $ac_includes_default
14613 long longval () { return (long) (sizeof (void *)); }
14614 unsigned long ulongval () { return (long) (sizeof (void *)); }
14615 #include <stdio.h>
14616 #include <stdlib.h>
14618 main ()
14621 FILE *f = fopen ("conftest.val", "w");
14622 if (! f)
14623 exit (1);
14624 if (((long) (sizeof (void *))) < 0)
14626 long i = longval ();
14627 if (i != ((long) (sizeof (void *))))
14628 exit (1);
14629 fprintf (f, "%ld\n", i);
14631 else
14633 unsigned long i = ulongval ();
14634 if (i != ((long) (sizeof (void *))))
14635 exit (1);
14636 fprintf (f, "%lu\n", i);
14638 exit (ferror (f) || fclose (f) != 0);
14641 return 0;
14643 _ACEOF
14644 rm -f conftest$ac_exeext
14645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14646 (eval $ac_link) 2>&5
14647 ac_status=$?
14648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14651 (eval $ac_try) 2>&5
14652 ac_status=$?
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); }; }; then
14655 ac_cv_sizeof_void_p=`cat conftest.val`
14656 else
14657 echo "$as_me: program exited with status $ac_status" >&5
14658 echo "$as_me: failed program was:" >&5
14659 sed 's/^/| /' conftest.$ac_ext >&5
14661 ( exit $ac_status )
14662 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14663 See \`config.log' for more details." >&5
14664 echo "$as_me: error: cannot compute sizeof (void *), 77
14665 See \`config.log' for more details." >&2;}
14666 { (exit 1); exit 1; }; }
14668 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14671 rm -f conftest.val
14672 else
14673 ac_cv_sizeof_void_p=0
14676 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14677 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14678 cat >>confdefs.h <<_ACEOF
14679 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14680 _ACEOF
14684 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14685 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
14686 if test "${ac_cv_c_bigendian+set}" = set; then
14687 echo $ECHO_N "(cached) $ECHO_C" >&6
14688 else
14689 # See if sys/param.h defines the BYTE_ORDER macro.
14690 cat >conftest.$ac_ext <<_ACEOF
14691 /* confdefs.h. */
14692 _ACEOF
14693 cat confdefs.h >>conftest.$ac_ext
14694 cat >>conftest.$ac_ext <<_ACEOF
14695 /* end confdefs.h. */
14696 #include <sys/types.h>
14697 #include <sys/param.h>
14700 main ()
14702 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14703 bogus endian macros
14704 #endif
14707 return 0;
14709 _ACEOF
14710 rm -f conftest.$ac_objext
14711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14712 (eval $ac_compile) 2>conftest.er1
14713 ac_status=$?
14714 grep -v '^ *+' conftest.er1 >conftest.err
14715 rm -f conftest.er1
14716 cat conftest.err >&5
14717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14718 (exit $ac_status); } &&
14719 { ac_try='test -z "$ac_c_werror_flag"
14720 || test ! -s conftest.err'
14721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14722 (eval $ac_try) 2>&5
14723 ac_status=$?
14724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 (exit $ac_status); }; } &&
14726 { ac_try='test -s conftest.$ac_objext'
14727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14728 (eval $ac_try) 2>&5
14729 ac_status=$?
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); }; }; then
14732 # It does; now see whether it defined to BIG_ENDIAN or not.
14733 cat >conftest.$ac_ext <<_ACEOF
14734 /* confdefs.h. */
14735 _ACEOF
14736 cat confdefs.h >>conftest.$ac_ext
14737 cat >>conftest.$ac_ext <<_ACEOF
14738 /* end confdefs.h. */
14739 #include <sys/types.h>
14740 #include <sys/param.h>
14743 main ()
14745 #if BYTE_ORDER != BIG_ENDIAN
14746 not big endian
14747 #endif
14750 return 0;
14752 _ACEOF
14753 rm -f conftest.$ac_objext
14754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14755 (eval $ac_compile) 2>conftest.er1
14756 ac_status=$?
14757 grep -v '^ *+' conftest.er1 >conftest.err
14758 rm -f conftest.er1
14759 cat conftest.err >&5
14760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); } &&
14762 { ac_try='test -z "$ac_c_werror_flag"
14763 || test ! -s conftest.err'
14764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14765 (eval $ac_try) 2>&5
14766 ac_status=$?
14767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768 (exit $ac_status); }; } &&
14769 { ac_try='test -s conftest.$ac_objext'
14770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14771 (eval $ac_try) 2>&5
14772 ac_status=$?
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); }; }; then
14775 ac_cv_c_bigendian=yes
14776 else
14777 echo "$as_me: failed program was:" >&5
14778 sed 's/^/| /' conftest.$ac_ext >&5
14780 ac_cv_c_bigendian=no
14782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14783 else
14784 echo "$as_me: failed program was:" >&5
14785 sed 's/^/| /' conftest.$ac_ext >&5
14787 # It does not; compile a test program.
14788 if test "$cross_compiling" = yes; then
14789 # try to guess the endianness by grepping values into an object file
14790 ac_cv_c_bigendian=unknown
14791 cat >conftest.$ac_ext <<_ACEOF
14792 /* confdefs.h. */
14793 _ACEOF
14794 cat confdefs.h >>conftest.$ac_ext
14795 cat >>conftest.$ac_ext <<_ACEOF
14796 /* end confdefs.h. */
14797 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14798 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14799 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14800 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14801 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14802 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14804 main ()
14806 _ascii (); _ebcdic ();
14808 return 0;
14810 _ACEOF
14811 rm -f conftest.$ac_objext
14812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14813 (eval $ac_compile) 2>conftest.er1
14814 ac_status=$?
14815 grep -v '^ *+' conftest.er1 >conftest.err
14816 rm -f conftest.er1
14817 cat conftest.err >&5
14818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 (exit $ac_status); } &&
14820 { ac_try='test -z "$ac_c_werror_flag"
14821 || test ! -s conftest.err'
14822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14823 (eval $ac_try) 2>&5
14824 ac_status=$?
14825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826 (exit $ac_status); }; } &&
14827 { ac_try='test -s conftest.$ac_objext'
14828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14829 (eval $ac_try) 2>&5
14830 ac_status=$?
14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); }; }; then
14833 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14834 ac_cv_c_bigendian=yes
14836 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14837 if test "$ac_cv_c_bigendian" = unknown; then
14838 ac_cv_c_bigendian=no
14839 else
14840 # finding both strings is unlikely to happen, but who knows?
14841 ac_cv_c_bigendian=unknown
14844 else
14845 echo "$as_me: failed program was:" >&5
14846 sed 's/^/| /' conftest.$ac_ext >&5
14849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14850 else
14851 cat >conftest.$ac_ext <<_ACEOF
14852 /* confdefs.h. */
14853 _ACEOF
14854 cat confdefs.h >>conftest.$ac_ext
14855 cat >>conftest.$ac_ext <<_ACEOF
14856 /* end confdefs.h. */
14858 main ()
14860 /* Are we little or big endian? From Harbison&Steele. */
14861 union
14863 long l;
14864 char c[sizeof (long)];
14865 } u;
14866 u.l = 1;
14867 exit (u.c[sizeof (long) - 1] == 1);
14869 _ACEOF
14870 rm -f conftest$ac_exeext
14871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14872 (eval $ac_link) 2>&5
14873 ac_status=$?
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14877 (eval $ac_try) 2>&5
14878 ac_status=$?
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); }; }; then
14881 ac_cv_c_bigendian=no
14882 else
14883 echo "$as_me: program exited with status $ac_status" >&5
14884 echo "$as_me: failed program was:" >&5
14885 sed 's/^/| /' conftest.$ac_ext >&5
14887 ( exit $ac_status )
14888 ac_cv_c_bigendian=yes
14890 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14895 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14896 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14897 case $ac_cv_c_bigendian in
14898 yes)
14900 cat >>confdefs.h <<\_ACEOF
14901 #define WORDS_BIGENDIAN 1
14902 _ACEOF
14907 { { echo "$as_me:$LINENO: error: unknown endianness
14908 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14909 echo "$as_me: error: unknown endianness
14910 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14911 { (exit 1); exit 1; }; } ;;
14912 esac
14915 ZLIBS=
14916 SYS_ZLIBS=
14917 ZINCS=
14919 if test -z "$ZLIBSPEC"; then
14920 # Use zlib from the GCC tree.
14921 ZINCS='-I$(top_srcdir)/../zlib'
14922 ZLIBS=../zlib/libzgcj_convenience.la
14923 else
14924 # System's zlib.
14925 SYS_ZLIBS="$ZLIBSPEC"
14938 if test "$NATIVE" = yes; then
14939 NATIVE_TRUE=
14940 NATIVE_FALSE='#'
14941 else
14942 NATIVE_TRUE='#'
14943 NATIVE_FALSE=
14948 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
14949 NEEDS_DATA_START_TRUE=
14950 NEEDS_DATA_START_FALSE='#'
14951 else
14952 NEEDS_DATA_START_TRUE='#'
14953 NEEDS_DATA_START_FALSE=
14958 # Process the option "--enable-version-specific-runtime-libs"
14959 # Calculate toolexeclibdir
14960 case ${version_specific_libs} in
14961 yes)
14962 # Need the gcc compiler version to know where to install libraries
14963 # and header files if --enable-version-specific-runtime-libs option
14964 # is selected.
14965 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
14966 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
14967 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
14968 toolexeclibdir=$toolexecmainlibdir
14971 if test -n "$with_cross_host" &&
14972 test x"$with_cross_host" != x"no"; then
14973 # Install a library built with a cross compiler in tooldir, not libdir.
14974 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
14975 toolexecmainlibdir='$(toolexecdir)/lib'
14976 else
14977 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
14978 toolexecmainlibdir='$(libdir)'
14980 multi_os_directory=`$CC -print-multi-os-directory`
14981 case $multi_os_directory in
14982 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
14983 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
14984 esac
14986 esac
14991 # Determine where the standard .db file and GNU Classpath JNI
14992 # libraries are found.
14993 multi_os_directory=`$CC -print-multi-os-directory`
14994 case $multi_os_directory in
14996 dbexecdir='$(libdir)/gcj-$(gcc_version)' # Avoid /.
14997 ac_configure_args="$ac_configure_args --with-native-libdir=\$\(libdir\)/gcj-`cat $srcdir/../gcc/BASE-VER`"
15000 dbexecdir='$(libdir)/'$multi_os_directory'/gcj-$(gcc_version)'
15001 ac_configure_args="$ac_configure_args --with-native-libdir=\$\(libdir\)/$multi_os_directory/gcj-`cat $srcdir/../gcc/BASE-VER`"
15003 esac
15006 # Determine gcj version number.
15007 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
15008 GCJVERSION=$gcjversion
15011 cat >>confdefs.h <<_ACEOF
15012 #define GCJVERSION "$GCJVERSION"
15013 _ACEOF
15017 cat >>confdefs.h <<\_ACEOF
15018 #define JV_VERSION "1.4.2"
15019 _ACEOF
15022 cat >>confdefs.h <<\_ACEOF
15023 #define JV_API_VERSION "1.4"
15024 _ACEOF
15028 case "${with_gxx_include_dir}" in
15029 yes)
15030 { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
15031 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
15032 { (exit 1); exit 1; }; }
15034 no | "")
15035 case "${enable_version_specific_runtime_libs}" in
15036 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
15038 libstdcxx_incdir='c++/$(gcc_version)'
15039 gxx_include_dir='$(prefix)/include/$(libstdcxx_incdir)' ;;
15040 esac ;;
15041 *) gxx_include_dir=${with_gxx_include_dir} ;;
15042 esac
15047 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
15048 # On that system, sys/ioctl.h will not include sys/filio.h unless
15049 # BSD_COMP is defined; just including sys/filio.h is simpler.
15050 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
15051 # for now. If you change this, you also must update natFile.cc.
15073 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
15074 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
15075 sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
15076 pwd.h sys/config.h stdint.h langinfo.h locale.h \
15077 dirent.h sys/rw_lock.h
15079 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15081 echo "$as_me:$LINENO: checking for $ac_header" >&5
15082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15084 echo $ECHO_N "(cached) $ECHO_C" >&6
15086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15088 else
15089 # Is the header compilable?
15090 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15091 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15092 cat >conftest.$ac_ext <<_ACEOF
15093 /* confdefs.h. */
15094 _ACEOF
15095 cat confdefs.h >>conftest.$ac_ext
15096 cat >>conftest.$ac_ext <<_ACEOF
15097 /* end confdefs.h. */
15098 $ac_includes_default
15099 #include <$ac_header>
15100 _ACEOF
15101 rm -f conftest.$ac_objext
15102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15103 (eval $ac_compile) 2>conftest.er1
15104 ac_status=$?
15105 grep -v '^ *+' conftest.er1 >conftest.err
15106 rm -f conftest.er1
15107 cat conftest.err >&5
15108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109 (exit $ac_status); } &&
15110 { ac_try='test -z "$ac_c_werror_flag"
15111 || test ! -s conftest.err'
15112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15113 (eval $ac_try) 2>&5
15114 ac_status=$?
15115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116 (exit $ac_status); }; } &&
15117 { ac_try='test -s conftest.$ac_objext'
15118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15119 (eval $ac_try) 2>&5
15120 ac_status=$?
15121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122 (exit $ac_status); }; }; then
15123 ac_header_compiler=yes
15124 else
15125 echo "$as_me: failed program was:" >&5
15126 sed 's/^/| /' conftest.$ac_ext >&5
15128 ac_header_compiler=no
15130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15131 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15132 echo "${ECHO_T}$ac_header_compiler" >&6
15134 # Is the header present?
15135 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15136 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15137 cat >conftest.$ac_ext <<_ACEOF
15138 /* confdefs.h. */
15139 _ACEOF
15140 cat confdefs.h >>conftest.$ac_ext
15141 cat >>conftest.$ac_ext <<_ACEOF
15142 /* end confdefs.h. */
15143 #include <$ac_header>
15144 _ACEOF
15145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15147 ac_status=$?
15148 grep -v '^ *+' conftest.er1 >conftest.err
15149 rm -f conftest.er1
15150 cat conftest.err >&5
15151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152 (exit $ac_status); } >/dev/null; then
15153 if test -s conftest.err; then
15154 ac_cpp_err=$ac_c_preproc_warn_flag
15155 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15156 else
15157 ac_cpp_err=
15159 else
15160 ac_cpp_err=yes
15162 if test -z "$ac_cpp_err"; then
15163 ac_header_preproc=yes
15164 else
15165 echo "$as_me: failed program was:" >&5
15166 sed 's/^/| /' conftest.$ac_ext >&5
15168 ac_header_preproc=no
15170 rm -f conftest.err conftest.$ac_ext
15171 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15172 echo "${ECHO_T}$ac_header_preproc" >&6
15174 # So? What about this header?
15175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15176 yes:no: )
15177 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15178 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15180 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15181 ac_header_preproc=yes
15183 no:yes:* )
15184 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15185 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15186 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15187 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15188 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15189 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15190 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15191 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15193 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15194 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15195 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15197 cat <<\_ASBOX
15198 ## ---------------------------------- ##
15199 ## Report this to the libjava lists. ##
15200 ## ---------------------------------- ##
15201 _ASBOX
15203 sed "s/^/$as_me: WARNING: /" >&2
15205 esac
15206 echo "$as_me:$LINENO: checking for $ac_header" >&5
15207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15209 echo $ECHO_N "(cached) $ECHO_C" >&6
15210 else
15211 eval "$as_ac_Header=\$ac_header_preproc"
15213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15218 cat >>confdefs.h <<_ACEOF
15219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15220 _ACEOF
15224 done
15227 for ac_header in inttypes.h
15229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15231 echo "$as_me:$LINENO: checking for $ac_header" >&5
15232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15234 echo $ECHO_N "(cached) $ECHO_C" >&6
15236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15237 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15238 else
15239 # Is the header compilable?
15240 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15241 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15242 cat >conftest.$ac_ext <<_ACEOF
15243 /* confdefs.h. */
15244 _ACEOF
15245 cat confdefs.h >>conftest.$ac_ext
15246 cat >>conftest.$ac_ext <<_ACEOF
15247 /* end confdefs.h. */
15248 $ac_includes_default
15249 #include <$ac_header>
15250 _ACEOF
15251 rm -f conftest.$ac_objext
15252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15253 (eval $ac_compile) 2>conftest.er1
15254 ac_status=$?
15255 grep -v '^ *+' conftest.er1 >conftest.err
15256 rm -f conftest.er1
15257 cat conftest.err >&5
15258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259 (exit $ac_status); } &&
15260 { ac_try='test -z "$ac_c_werror_flag"
15261 || test ! -s conftest.err'
15262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15263 (eval $ac_try) 2>&5
15264 ac_status=$?
15265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); }; } &&
15267 { ac_try='test -s conftest.$ac_objext'
15268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15269 (eval $ac_try) 2>&5
15270 ac_status=$?
15271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272 (exit $ac_status); }; }; then
15273 ac_header_compiler=yes
15274 else
15275 echo "$as_me: failed program was:" >&5
15276 sed 's/^/| /' conftest.$ac_ext >&5
15278 ac_header_compiler=no
15280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15281 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15282 echo "${ECHO_T}$ac_header_compiler" >&6
15284 # Is the header present?
15285 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15286 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15287 cat >conftest.$ac_ext <<_ACEOF
15288 /* confdefs.h. */
15289 _ACEOF
15290 cat confdefs.h >>conftest.$ac_ext
15291 cat >>conftest.$ac_ext <<_ACEOF
15292 /* end confdefs.h. */
15293 #include <$ac_header>
15294 _ACEOF
15295 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15296 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15297 ac_status=$?
15298 grep -v '^ *+' conftest.er1 >conftest.err
15299 rm -f conftest.er1
15300 cat conftest.err >&5
15301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302 (exit $ac_status); } >/dev/null; then
15303 if test -s conftest.err; then
15304 ac_cpp_err=$ac_c_preproc_warn_flag
15305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15306 else
15307 ac_cpp_err=
15309 else
15310 ac_cpp_err=yes
15312 if test -z "$ac_cpp_err"; then
15313 ac_header_preproc=yes
15314 else
15315 echo "$as_me: failed program was:" >&5
15316 sed 's/^/| /' conftest.$ac_ext >&5
15318 ac_header_preproc=no
15320 rm -f conftest.err conftest.$ac_ext
15321 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15322 echo "${ECHO_T}$ac_header_preproc" >&6
15324 # So? What about this header?
15325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15326 yes:no: )
15327 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15328 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15330 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15331 ac_header_preproc=yes
15333 no:yes:* )
15334 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15335 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15336 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15337 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15338 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15339 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15340 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15341 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15343 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15344 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15345 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15347 cat <<\_ASBOX
15348 ## ---------------------------------- ##
15349 ## Report this to the libjava lists. ##
15350 ## ---------------------------------- ##
15351 _ASBOX
15353 sed "s/^/$as_me: WARNING: /" >&2
15355 esac
15356 echo "$as_me:$LINENO: checking for $ac_header" >&5
15357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15359 echo $ECHO_N "(cached) $ECHO_C" >&6
15360 else
15361 eval "$as_ac_Header=\$ac_header_preproc"
15363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15364 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15368 cat >>confdefs.h <<_ACEOF
15369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15370 _ACEOF
15373 cat >>confdefs.h <<\_ACEOF
15374 #define HAVE_INTTYPES_H 1
15375 _ACEOF
15378 cat >>confdefs.h <<\_ACEOF
15379 #define JV_HAVE_INTTYPES_H 1
15380 _ACEOF
15385 done
15387 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15388 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
15389 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15390 echo $ECHO_N "(cached) $ECHO_C" >&6
15391 else
15392 cat >conftest.$ac_ext <<_ACEOF
15393 /* confdefs.h. */
15394 _ACEOF
15395 cat confdefs.h >>conftest.$ac_ext
15396 cat >>conftest.$ac_ext <<_ACEOF
15397 /* end confdefs.h. */
15398 #include <sys/types.h>
15399 #include <sys/wait.h>
15400 #ifndef WEXITSTATUS
15401 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
15402 #endif
15403 #ifndef WIFEXITED
15404 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15405 #endif
15408 main ()
15410 int s;
15411 wait (&s);
15412 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15414 return 0;
15416 _ACEOF
15417 rm -f conftest.$ac_objext
15418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15419 (eval $ac_compile) 2>conftest.er1
15420 ac_status=$?
15421 grep -v '^ *+' conftest.er1 >conftest.err
15422 rm -f conftest.er1
15423 cat conftest.err >&5
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); } &&
15426 { ac_try='test -z "$ac_c_werror_flag"
15427 || test ! -s conftest.err'
15428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15429 (eval $ac_try) 2>&5
15430 ac_status=$?
15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432 (exit $ac_status); }; } &&
15433 { ac_try='test -s conftest.$ac_objext'
15434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15435 (eval $ac_try) 2>&5
15436 ac_status=$?
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); }; }; then
15439 ac_cv_header_sys_wait_h=yes
15440 else
15441 echo "$as_me: failed program was:" >&5
15442 sed 's/^/| /' conftest.$ac_ext >&5
15444 ac_cv_header_sys_wait_h=no
15446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15448 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15449 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
15450 if test $ac_cv_header_sys_wait_h = yes; then
15452 cat >>confdefs.h <<\_ACEOF
15453 #define HAVE_SYS_WAIT_H 1
15454 _ACEOF
15459 echo "$as_me:$LINENO: checking for ssize_t" >&5
15460 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15461 if test "${ac_cv_type_ssize_t+set}" = set; then
15462 echo $ECHO_N "(cached) $ECHO_C" >&6
15463 else
15464 cat >conftest.$ac_ext <<_ACEOF
15465 /* confdefs.h. */
15466 _ACEOF
15467 cat confdefs.h >>conftest.$ac_ext
15468 cat >>conftest.$ac_ext <<_ACEOF
15469 /* end confdefs.h. */
15470 $ac_includes_default
15472 main ()
15474 if ((ssize_t *) 0)
15475 return 0;
15476 if (sizeof (ssize_t))
15477 return 0;
15479 return 0;
15481 _ACEOF
15482 rm -f conftest.$ac_objext
15483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15484 (eval $ac_compile) 2>conftest.er1
15485 ac_status=$?
15486 grep -v '^ *+' conftest.er1 >conftest.err
15487 rm -f conftest.er1
15488 cat conftest.err >&5
15489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490 (exit $ac_status); } &&
15491 { ac_try='test -z "$ac_c_werror_flag"
15492 || test ! -s conftest.err'
15493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15494 (eval $ac_try) 2>&5
15495 ac_status=$?
15496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497 (exit $ac_status); }; } &&
15498 { ac_try='test -s conftest.$ac_objext'
15499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15500 (eval $ac_try) 2>&5
15501 ac_status=$?
15502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); }; }; then
15504 ac_cv_type_ssize_t=yes
15505 else
15506 echo "$as_me: failed program was:" >&5
15507 sed 's/^/| /' conftest.$ac_ext >&5
15509 ac_cv_type_ssize_t=no
15511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15513 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
15514 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
15515 if test $ac_cv_type_ssize_t = yes; then
15517 else
15519 cat >>confdefs.h <<_ACEOF
15520 #define ssize_t int
15521 _ACEOF
15526 echo "$as_me:$LINENO: checking for in_addr_t" >&5
15527 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
15528 cat >conftest.$ac_ext <<_ACEOF
15529 /* confdefs.h. */
15530 _ACEOF
15531 cat confdefs.h >>conftest.$ac_ext
15532 cat >>conftest.$ac_ext <<_ACEOF
15533 /* end confdefs.h. */
15534 #include <sys/types.h>
15535 #if STDC_HEADERS
15536 #include <stdlib.h>
15537 #include <stddef.h>
15538 #endif
15539 #if HAVE_NETINET_IN_H
15540 #include <netinet/in.h>
15541 #endif
15543 main ()
15545 in_addr_t foo;
15547 return 0;
15549 _ACEOF
15550 rm -f conftest.$ac_objext
15551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15552 (eval $ac_compile) 2>conftest.er1
15553 ac_status=$?
15554 grep -v '^ *+' conftest.er1 >conftest.err
15555 rm -f conftest.er1
15556 cat conftest.err >&5
15557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558 (exit $ac_status); } &&
15559 { ac_try='test -z "$ac_c_werror_flag"
15560 || test ! -s conftest.err'
15561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15562 (eval $ac_try) 2>&5
15563 ac_status=$?
15564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565 (exit $ac_status); }; } &&
15566 { ac_try='test -s conftest.$ac_objext'
15567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15568 (eval $ac_try) 2>&5
15569 ac_status=$?
15570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571 (exit $ac_status); }; }; then
15573 cat >>confdefs.h <<\_ACEOF
15574 #define HAVE_IN_ADDR_T 1
15575 _ACEOF
15577 echo "$as_me:$LINENO: result: yes" >&5
15578 echo "${ECHO_T}yes" >&6
15579 else
15580 echo "$as_me: failed program was:" >&5
15581 sed 's/^/| /' conftest.$ac_ext >&5
15583 echo "$as_me:$LINENO: result: no" >&5
15584 echo "${ECHO_T}no" >&6
15586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15588 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
15589 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
15590 cat >conftest.$ac_ext <<_ACEOF
15591 /* confdefs.h. */
15592 _ACEOF
15593 cat confdefs.h >>conftest.$ac_ext
15594 cat >>conftest.$ac_ext <<_ACEOF
15595 /* end confdefs.h. */
15596 #include <netinet/in.h>
15598 main ()
15600 struct ip_mreq mreq;
15602 return 0;
15604 _ACEOF
15605 rm -f conftest.$ac_objext
15606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15607 (eval $ac_compile) 2>conftest.er1
15608 ac_status=$?
15609 grep -v '^ *+' conftest.er1 >conftest.err
15610 rm -f conftest.er1
15611 cat conftest.err >&5
15612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613 (exit $ac_status); } &&
15614 { ac_try='test -z "$ac_c_werror_flag"
15615 || test ! -s conftest.err'
15616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15617 (eval $ac_try) 2>&5
15618 ac_status=$?
15619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620 (exit $ac_status); }; } &&
15621 { ac_try='test -s conftest.$ac_objext'
15622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15623 (eval $ac_try) 2>&5
15624 ac_status=$?
15625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); }; }; then
15628 cat >>confdefs.h <<\_ACEOF
15629 #define HAVE_STRUCT_IP_MREQ 1
15630 _ACEOF
15632 echo "$as_me:$LINENO: result: yes" >&5
15633 echo "${ECHO_T}yes" >&6
15634 else
15635 echo "$as_me: failed program was:" >&5
15636 sed 's/^/| /' conftest.$ac_ext >&5
15638 echo "$as_me:$LINENO: result: no" >&5
15639 echo "${ECHO_T}no" >&6
15641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15643 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
15644 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
15645 cat >conftest.$ac_ext <<_ACEOF
15646 /* confdefs.h. */
15647 _ACEOF
15648 cat confdefs.h >>conftest.$ac_ext
15649 cat >>conftest.$ac_ext <<_ACEOF
15650 /* end confdefs.h. */
15651 #include <netinet/in.h>
15653 main ()
15655 struct ipv6_mreq mreq6;
15657 return 0;
15659 _ACEOF
15660 rm -f conftest.$ac_objext
15661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15662 (eval $ac_compile) 2>conftest.er1
15663 ac_status=$?
15664 grep -v '^ *+' conftest.er1 >conftest.err
15665 rm -f conftest.er1
15666 cat conftest.err >&5
15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668 (exit $ac_status); } &&
15669 { ac_try='test -z "$ac_c_werror_flag"
15670 || test ! -s conftest.err'
15671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15672 (eval $ac_try) 2>&5
15673 ac_status=$?
15674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675 (exit $ac_status); }; } &&
15676 { ac_try='test -s conftest.$ac_objext'
15677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15678 (eval $ac_try) 2>&5
15679 ac_status=$?
15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681 (exit $ac_status); }; }; then
15683 cat >>confdefs.h <<\_ACEOF
15684 #define HAVE_STRUCT_IPV6_MREQ 1
15685 _ACEOF
15687 echo "$as_me:$LINENO: result: yes" >&5
15688 echo "${ECHO_T}yes" >&6
15689 else
15690 echo "$as_me: failed program was:" >&5
15691 sed 's/^/| /' conftest.$ac_ext >&5
15693 echo "$as_me:$LINENO: result: no" >&5
15694 echo "${ECHO_T}no" >&6
15696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15698 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
15699 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
15700 cat >conftest.$ac_ext <<_ACEOF
15701 /* confdefs.h. */
15702 _ACEOF
15703 cat confdefs.h >>conftest.$ac_ext
15704 cat >>conftest.$ac_ext <<_ACEOF
15705 /* end confdefs.h. */
15706 #include <netinet/in.h>
15708 main ()
15710 struct sockaddr_in6 addr6;
15712 return 0;
15714 _ACEOF
15715 rm -f conftest.$ac_objext
15716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15717 (eval $ac_compile) 2>conftest.er1
15718 ac_status=$?
15719 grep -v '^ *+' conftest.er1 >conftest.err
15720 rm -f conftest.er1
15721 cat conftest.err >&5
15722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723 (exit $ac_status); } &&
15724 { ac_try='test -z "$ac_c_werror_flag"
15725 || test ! -s conftest.err'
15726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15727 (eval $ac_try) 2>&5
15728 ac_status=$?
15729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); }; } &&
15731 { ac_try='test -s conftest.$ac_objext'
15732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15733 (eval $ac_try) 2>&5
15734 ac_status=$?
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); }; }; then
15738 cat >>confdefs.h <<\_ACEOF
15739 #define HAVE_INET6 1
15740 _ACEOF
15742 echo "$as_me:$LINENO: result: yes" >&5
15743 echo "${ECHO_T}yes" >&6
15744 else
15745 echo "$as_me: failed program was:" >&5
15746 sed 's/^/| /' conftest.$ac_ext >&5
15748 echo "$as_me:$LINENO: result: no" >&5
15749 echo "${ECHO_T}no" >&6
15751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15753 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
15754 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
15755 cat >conftest.$ac_ext <<_ACEOF
15756 /* confdefs.h. */
15757 _ACEOF
15758 cat confdefs.h >>conftest.$ac_ext
15759 cat >>conftest.$ac_ext <<_ACEOF
15760 /* end confdefs.h. */
15761 #define _POSIX_PII_SOCKET
15762 #include <sys/types.h>
15763 #include <sys/socket.h>
15765 main ()
15767 socklen_t x = 5;
15769 return 0;
15771 _ACEOF
15772 rm -f conftest.$ac_objext
15773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15774 (eval $ac_compile) 2>conftest.er1
15775 ac_status=$?
15776 grep -v '^ *+' conftest.er1 >conftest.err
15777 rm -f conftest.er1
15778 cat conftest.err >&5
15779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780 (exit $ac_status); } &&
15781 { ac_try='test -z "$ac_c_werror_flag"
15782 || test ! -s conftest.err'
15783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15784 (eval $ac_try) 2>&5
15785 ac_status=$?
15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 (exit $ac_status); }; } &&
15788 { ac_try='test -s conftest.$ac_objext'
15789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15790 (eval $ac_try) 2>&5
15791 ac_status=$?
15792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793 (exit $ac_status); }; }; then
15795 cat >>confdefs.h <<\_ACEOF
15796 #define HAVE_SOCKLEN_T 1
15797 _ACEOF
15799 echo "$as_me:$LINENO: result: yes" >&5
15800 echo "${ECHO_T}yes" >&6
15801 else
15802 echo "$as_me: failed program was:" >&5
15803 sed 's/^/| /' conftest.$ac_ext >&5
15805 echo "$as_me:$LINENO: result: no" >&5
15806 echo "${ECHO_T}no" >&6
15808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15810 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
15811 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
15812 cat >conftest.$ac_ext <<_ACEOF
15813 /* confdefs.h. */
15814 _ACEOF
15815 cat confdefs.h >>conftest.$ac_ext
15816 cat >>conftest.$ac_ext <<_ACEOF
15817 /* end confdefs.h. */
15818 #include <time.h>
15820 main ()
15822 struct tm tim; tim.tm_gmtoff = 0;
15824 return 0;
15826 _ACEOF
15827 rm -f conftest.$ac_objext
15828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15829 (eval $ac_compile) 2>conftest.er1
15830 ac_status=$?
15831 grep -v '^ *+' conftest.er1 >conftest.err
15832 rm -f conftest.er1
15833 cat conftest.err >&5
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); } &&
15836 { ac_try='test -z "$ac_c_werror_flag"
15837 || test ! -s conftest.err'
15838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15839 (eval $ac_try) 2>&5
15840 ac_status=$?
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); }; } &&
15843 { ac_try='test -s conftest.$ac_objext'
15844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15845 (eval $ac_try) 2>&5
15846 ac_status=$?
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); }; }; then
15850 cat >>confdefs.h <<\_ACEOF
15851 #define STRUCT_TM_HAS_GMTOFF 1
15852 _ACEOF
15854 echo "$as_me:$LINENO: result: yes" >&5
15855 echo "${ECHO_T}yes" >&6
15856 else
15857 echo "$as_me: failed program was:" >&5
15858 sed 's/^/| /' conftest.$ac_ext >&5
15860 echo "$as_me:$LINENO: result: no" >&5
15861 echo "${ECHO_T}no" >&6
15862 echo "$as_me:$LINENO: checking for global timezone variable" >&5
15863 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
15864 cat >conftest.$ac_ext <<_ACEOF
15865 /* confdefs.h. */
15866 _ACEOF
15867 cat confdefs.h >>conftest.$ac_ext
15868 cat >>conftest.$ac_ext <<_ACEOF
15869 /* end confdefs.h. */
15870 #include <time.h>
15872 main ()
15874 void i(){long z2 = 2*timezone;}
15876 return 0;
15878 _ACEOF
15879 rm -f conftest.$ac_objext
15880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15881 (eval $ac_compile) 2>conftest.er1
15882 ac_status=$?
15883 grep -v '^ *+' conftest.er1 >conftest.err
15884 rm -f conftest.er1
15885 cat conftest.err >&5
15886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887 (exit $ac_status); } &&
15888 { ac_try='test -z "$ac_c_werror_flag"
15889 || test ! -s conftest.err'
15890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15891 (eval $ac_try) 2>&5
15892 ac_status=$?
15893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894 (exit $ac_status); }; } &&
15895 { ac_try='test -s conftest.$ac_objext'
15896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15897 (eval $ac_try) 2>&5
15898 ac_status=$?
15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); }; }; then
15902 cat >>confdefs.h <<\_ACEOF
15903 #define HAVE_TIMEZONE 1
15904 _ACEOF
15906 echo "$as_me:$LINENO: result: yes" >&5
15907 echo "${ECHO_T}yes" >&6
15908 else
15909 echo "$as_me: failed program was:" >&5
15910 sed 's/^/| /' conftest.$ac_ext >&5
15912 echo "$as_me:$LINENO: result: no" >&5
15913 echo "${ECHO_T}no" >&6
15914 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
15915 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
15916 cat >conftest.$ac_ext <<_ACEOF
15917 /* confdefs.h. */
15918 _ACEOF
15919 cat confdefs.h >>conftest.$ac_ext
15920 cat >>conftest.$ac_ext <<_ACEOF
15921 /* end confdefs.h. */
15922 #include <time.h>
15924 main ()
15926 long z2 = _timezone;
15928 return 0;
15930 _ACEOF
15931 rm -f conftest.$ac_objext
15932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15933 (eval $ac_compile) 2>conftest.er1
15934 ac_status=$?
15935 grep -v '^ *+' conftest.er1 >conftest.err
15936 rm -f conftest.er1
15937 cat conftest.err >&5
15938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); } &&
15940 { ac_try='test -z "$ac_c_werror_flag"
15941 || test ! -s conftest.err'
15942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15943 (eval $ac_try) 2>&5
15944 ac_status=$?
15945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946 (exit $ac_status); }; } &&
15947 { ac_try='test -s conftest.$ac_objext'
15948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15949 (eval $ac_try) 2>&5
15950 ac_status=$?
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); }; }; then
15954 cat >>confdefs.h <<\_ACEOF
15955 #define HAVE_UNDERSCORE_TIMEZONE 1
15956 _ACEOF
15958 echo "$as_me:$LINENO: result: yes" >&5
15959 echo "${ECHO_T}yes" >&6
15960 else
15961 echo "$as_me: failed program was:" >&5
15962 sed 's/^/| /' conftest.$ac_ext >&5
15964 echo "$as_me:$LINENO: result: no" >&5
15965 echo "${ECHO_T}no" >&6
15967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15973 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15974 # for constant arguments. Useless!
15975 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15976 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15977 if test "${ac_cv_working_alloca_h+set}" = set; then
15978 echo $ECHO_N "(cached) $ECHO_C" >&6
15979 else
15980 if test x$gcc_no_link = xyes; then
15981 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15982 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15983 { (exit 1); exit 1; }; }
15985 cat >conftest.$ac_ext <<_ACEOF
15986 /* confdefs.h. */
15987 _ACEOF
15988 cat confdefs.h >>conftest.$ac_ext
15989 cat >>conftest.$ac_ext <<_ACEOF
15990 /* end confdefs.h. */
15991 #include <alloca.h>
15993 main ()
15995 char *p = (char *) alloca (2 * sizeof (int));
15997 return 0;
15999 _ACEOF
16000 rm -f conftest.$ac_objext conftest$ac_exeext
16001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16002 (eval $ac_link) 2>conftest.er1
16003 ac_status=$?
16004 grep -v '^ *+' conftest.er1 >conftest.err
16005 rm -f conftest.er1
16006 cat conftest.err >&5
16007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008 (exit $ac_status); } &&
16009 { ac_try='test -z "$ac_c_werror_flag"
16010 || test ! -s conftest.err'
16011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16012 (eval $ac_try) 2>&5
16013 ac_status=$?
16014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015 (exit $ac_status); }; } &&
16016 { ac_try='test -s conftest$ac_exeext'
16017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16018 (eval $ac_try) 2>&5
16019 ac_status=$?
16020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021 (exit $ac_status); }; }; then
16022 ac_cv_working_alloca_h=yes
16023 else
16024 echo "$as_me: failed program was:" >&5
16025 sed 's/^/| /' conftest.$ac_ext >&5
16027 ac_cv_working_alloca_h=no
16029 rm -f conftest.err conftest.$ac_objext \
16030 conftest$ac_exeext conftest.$ac_ext
16032 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16033 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16034 if test $ac_cv_working_alloca_h = yes; then
16036 cat >>confdefs.h <<\_ACEOF
16037 #define HAVE_ALLOCA_H 1
16038 _ACEOF
16042 echo "$as_me:$LINENO: checking for alloca" >&5
16043 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16044 if test "${ac_cv_func_alloca_works+set}" = set; then
16045 echo $ECHO_N "(cached) $ECHO_C" >&6
16046 else
16047 if test x$gcc_no_link = xyes; then
16048 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16049 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16050 { (exit 1); exit 1; }; }
16052 cat >conftest.$ac_ext <<_ACEOF
16053 /* confdefs.h. */
16054 _ACEOF
16055 cat confdefs.h >>conftest.$ac_ext
16056 cat >>conftest.$ac_ext <<_ACEOF
16057 /* end confdefs.h. */
16058 #ifdef __GNUC__
16059 # define alloca __builtin_alloca
16060 #else
16061 # ifdef _MSC_VER
16062 # include <malloc.h>
16063 # define alloca _alloca
16064 # else
16065 # if HAVE_ALLOCA_H
16066 # include <alloca.h>
16067 # else
16068 # ifdef _AIX
16069 #pragma alloca
16070 # else
16071 # ifndef alloca /* predefined by HP cc +Olibcalls */
16072 char *alloca ();
16073 # endif
16074 # endif
16075 # endif
16076 # endif
16077 #endif
16080 main ()
16082 char *p = (char *) alloca (1);
16084 return 0;
16086 _ACEOF
16087 rm -f conftest.$ac_objext conftest$ac_exeext
16088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16089 (eval $ac_link) 2>conftest.er1
16090 ac_status=$?
16091 grep -v '^ *+' conftest.er1 >conftest.err
16092 rm -f conftest.er1
16093 cat conftest.err >&5
16094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095 (exit $ac_status); } &&
16096 { ac_try='test -z "$ac_c_werror_flag"
16097 || test ! -s conftest.err'
16098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16099 (eval $ac_try) 2>&5
16100 ac_status=$?
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); }; } &&
16103 { ac_try='test -s conftest$ac_exeext'
16104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16105 (eval $ac_try) 2>&5
16106 ac_status=$?
16107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108 (exit $ac_status); }; }; then
16109 ac_cv_func_alloca_works=yes
16110 else
16111 echo "$as_me: failed program was:" >&5
16112 sed 's/^/| /' conftest.$ac_ext >&5
16114 ac_cv_func_alloca_works=no
16116 rm -f conftest.err conftest.$ac_objext \
16117 conftest$ac_exeext conftest.$ac_ext
16119 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16120 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16122 if test $ac_cv_func_alloca_works = yes; then
16124 cat >>confdefs.h <<\_ACEOF
16125 #define HAVE_ALLOCA 1
16126 _ACEOF
16128 else
16129 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16130 # that cause trouble. Some versions do not even contain alloca or
16131 # contain a buggy version. If you still want to use their alloca,
16132 # use ar to extract alloca.o from them instead of compiling alloca.c.
16134 ALLOCA=alloca.$ac_objext
16136 cat >>confdefs.h <<\_ACEOF
16137 #define C_ALLOCA 1
16138 _ACEOF
16141 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16142 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16143 if test "${ac_cv_os_cray+set}" = set; then
16144 echo $ECHO_N "(cached) $ECHO_C" >&6
16145 else
16146 cat >conftest.$ac_ext <<_ACEOF
16147 /* confdefs.h. */
16148 _ACEOF
16149 cat confdefs.h >>conftest.$ac_ext
16150 cat >>conftest.$ac_ext <<_ACEOF
16151 /* end confdefs.h. */
16152 #if defined(CRAY) && ! defined(CRAY2)
16153 webecray
16154 #else
16155 wenotbecray
16156 #endif
16158 _ACEOF
16159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16160 $EGREP "webecray" >/dev/null 2>&1; then
16161 ac_cv_os_cray=yes
16162 else
16163 ac_cv_os_cray=no
16165 rm -f conftest*
16168 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16169 echo "${ECHO_T}$ac_cv_os_cray" >&6
16170 if test $ac_cv_os_cray = yes; then
16171 for ac_func in _getb67 GETB67 getb67; do
16172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16173 echo "$as_me:$LINENO: checking for $ac_func" >&5
16174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16175 if eval "test \"\${$as_ac_var+set}\" = set"; then
16176 echo $ECHO_N "(cached) $ECHO_C" >&6
16177 else
16178 if test x$gcc_no_link = xyes; then
16179 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16180 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16181 { (exit 1); exit 1; }; }
16183 cat >conftest.$ac_ext <<_ACEOF
16184 /* confdefs.h. */
16185 _ACEOF
16186 cat confdefs.h >>conftest.$ac_ext
16187 cat >>conftest.$ac_ext <<_ACEOF
16188 /* end confdefs.h. */
16189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16191 #define $ac_func innocuous_$ac_func
16193 /* System header to define __stub macros and hopefully few prototypes,
16194 which can conflict with char $ac_func (); below.
16195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16196 <limits.h> exists even on freestanding compilers. */
16198 #ifdef __STDC__
16199 # include <limits.h>
16200 #else
16201 # include <assert.h>
16202 #endif
16204 #undef $ac_func
16206 /* Override any gcc2 internal prototype to avoid an error. */
16207 #ifdef __cplusplus
16208 extern "C"
16210 #endif
16211 /* We use char because int might match the return type of a gcc2
16212 builtin and then its argument prototype would still apply. */
16213 char $ac_func ();
16214 /* The GNU C library defines this for functions which it implements
16215 to always fail with ENOSYS. Some functions are actually named
16216 something starting with __ and the normal name is an alias. */
16217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16218 choke me
16219 #else
16220 char (*f) () = $ac_func;
16221 #endif
16222 #ifdef __cplusplus
16224 #endif
16227 main ()
16229 return f != $ac_func;
16231 return 0;
16233 _ACEOF
16234 rm -f conftest.$ac_objext conftest$ac_exeext
16235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16236 (eval $ac_link) 2>conftest.er1
16237 ac_status=$?
16238 grep -v '^ *+' conftest.er1 >conftest.err
16239 rm -f conftest.er1
16240 cat conftest.err >&5
16241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242 (exit $ac_status); } &&
16243 { ac_try='test -z "$ac_c_werror_flag"
16244 || test ! -s conftest.err'
16245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16246 (eval $ac_try) 2>&5
16247 ac_status=$?
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); }; } &&
16250 { ac_try='test -s conftest$ac_exeext'
16251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16252 (eval $ac_try) 2>&5
16253 ac_status=$?
16254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255 (exit $ac_status); }; }; then
16256 eval "$as_ac_var=yes"
16257 else
16258 echo "$as_me: failed program was:" >&5
16259 sed 's/^/| /' conftest.$ac_ext >&5
16261 eval "$as_ac_var=no"
16263 rm -f conftest.err conftest.$ac_objext \
16264 conftest$ac_exeext conftest.$ac_ext
16266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16267 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16268 if test `eval echo '${'$as_ac_var'}'` = yes; then
16270 cat >>confdefs.h <<_ACEOF
16271 #define CRAY_STACKSEG_END $ac_func
16272 _ACEOF
16274 break
16277 done
16280 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16281 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16282 if test "${ac_cv_c_stack_direction+set}" = set; then
16283 echo $ECHO_N "(cached) $ECHO_C" >&6
16284 else
16285 if test "$cross_compiling" = yes; then
16286 ac_cv_c_stack_direction=0
16287 else
16288 cat >conftest.$ac_ext <<_ACEOF
16289 /* confdefs.h. */
16290 _ACEOF
16291 cat confdefs.h >>conftest.$ac_ext
16292 cat >>conftest.$ac_ext <<_ACEOF
16293 /* end confdefs.h. */
16295 find_stack_direction ()
16297 static char *addr = 0;
16298 auto char dummy;
16299 if (addr == 0)
16301 addr = &dummy;
16302 return find_stack_direction ();
16304 else
16305 return (&dummy > addr) ? 1 : -1;
16309 main ()
16311 exit (find_stack_direction () < 0);
16313 _ACEOF
16314 rm -f conftest$ac_exeext
16315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16316 (eval $ac_link) 2>&5
16317 ac_status=$?
16318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16321 (eval $ac_try) 2>&5
16322 ac_status=$?
16323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324 (exit $ac_status); }; }; then
16325 ac_cv_c_stack_direction=1
16326 else
16327 echo "$as_me: program exited with status $ac_status" >&5
16328 echo "$as_me: failed program was:" >&5
16329 sed 's/^/| /' conftest.$ac_ext >&5
16331 ( exit $ac_status )
16332 ac_cv_c_stack_direction=-1
16334 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16337 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16338 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16340 cat >>confdefs.h <<_ACEOF
16341 #define STACK_DIRECTION $ac_cv_c_stack_direction
16342 _ACEOF
16348 for ac_prog in perl
16350 # Extract the first word of "$ac_prog", so it can be a program name with args.
16351 set dummy $ac_prog; ac_word=$2
16352 echo "$as_me:$LINENO: checking for $ac_word" >&5
16353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16354 if test "${ac_cv_prog_PERL+set}" = set; then
16355 echo $ECHO_N "(cached) $ECHO_C" >&6
16356 else
16357 if test -n "$PERL"; then
16358 ac_cv_prog_PERL="$PERL" # Let the user override the test.
16359 else
16360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16361 for as_dir in $PATH
16363 IFS=$as_save_IFS
16364 test -z "$as_dir" && as_dir=.
16365 for ac_exec_ext in '' $ac_executable_extensions; do
16366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16367 ac_cv_prog_PERL="$ac_prog"
16368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16369 break 2
16371 done
16372 done
16376 PERL=$ac_cv_prog_PERL
16377 if test -n "$PERL"; then
16378 echo "$as_me:$LINENO: result: $PERL" >&5
16379 echo "${ECHO_T}$PERL" >&6
16380 else
16381 echo "$as_me:$LINENO: result: no" >&5
16382 echo "${ECHO_T}no" >&6
16385 test -n "$PERL" && break
16386 done
16387 test -n "$PERL" || PERL="false"
16390 SYSDEP_SOURCES=
16391 SIGNAL_HANDLER_AUX=
16393 case "${host}" in
16394 i?86-*-linux*)
16395 SIGNAL_HANDLER=include/i386-signal.h
16397 sparc*-sun-solaris*)
16398 SIGNAL_HANDLER=include/sparc-signal.h
16400 # ia64-*)
16401 # SYSDEP_SOURCES=sysdep/ia64.c
16402 # test -d sysdep || mkdir sysdep
16403 # ;;
16404 hppa*-*-linux*)
16405 SIGNAL_HANDLER=include/pa-signal.h
16407 hppa*-hp-hpux*)
16408 SIGNAL_HANDLER=include/hppa-signal.h
16410 ia64-*-linux*)
16411 SIGNAL_HANDLER=include/dwarf2-signal.h
16413 powerpc*-*-linux*)
16414 SIGNAL_HANDLER=include/powerpc-signal.h
16416 alpha*-*-linux*)
16417 SIGNAL_HANDLER=include/dwarf2-signal.h
16419 s390*-*-linux*)
16420 SIGNAL_HANDLER=include/s390-signal.h
16422 x86_64*-*-linux*)
16423 SIGNAL_HANDLER=include/x86_64-signal.h
16424 SIGNAL_HANDLER_AUX=include/i386-signal.h
16426 sparc*-*-linux*)
16427 SIGNAL_HANDLER=include/dwarf2-signal.h
16429 sh*-*-linux*)
16430 SIGNAL_HANDLER=include/sh-signal.h
16432 *mingw*)
16433 SIGNAL_HANDLER=include/win32-signal.h
16435 mips*-*-linux*)
16436 SIGNAL_HANDLER=include/mips-signal.h
16438 *-*-darwin*)
16439 SIGNAL_HANDLER=include/darwin-signal.h
16442 SIGNAL_HANDLER=include/default-signal.h
16444 esac
16446 # If we're using sjlj exceptions, forget what we just learned.
16447 if test "$enable_sjlj_exceptions" = yes; then
16448 SIGNAL_HANDLER=include/default-signal.h
16449 SIGNAL_HANDLER_AUX=
16454 if test -z "$SIGNAL_HANDLER_AUX"; then
16455 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
16458 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
16461 if test "${multilib}" = "yes"; then
16462 multilib_arg="--enable-multilib"
16463 else
16464 multilib_arg=
16467 # See if we support thread-local storage.
16469 # Check whether --enable-tls or --disable-tls was given.
16470 if test "${enable_tls+set}" = set; then
16471 enableval="$enable_tls"
16473 case "$enableval" in
16474 yes|no) ;;
16475 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
16476 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
16477 { (exit 1); exit 1; }; } ;;
16478 esac
16480 else
16481 enable_tls=yes
16484 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
16485 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
16486 if test "${have_tls+set}" = set; then
16487 echo $ECHO_N "(cached) $ECHO_C" >&6
16488 else
16490 if test "$cross_compiling" = yes; then
16491 cat >conftest.$ac_ext <<_ACEOF
16492 __thread int foo;
16493 _ACEOF
16494 rm -f conftest.$ac_objext
16495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16496 (eval $ac_compile) 2>conftest.er1
16497 ac_status=$?
16498 grep -v '^ *+' conftest.er1 >conftest.err
16499 rm -f conftest.er1
16500 cat conftest.err >&5
16501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16502 (exit $ac_status); } &&
16503 { ac_try='test -z "$ac_c_werror_flag"
16504 || test ! -s conftest.err'
16505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16506 (eval $ac_try) 2>&5
16507 ac_status=$?
16508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509 (exit $ac_status); }; } &&
16510 { ac_try='test -s conftest.$ac_objext'
16511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16512 (eval $ac_try) 2>&5
16513 ac_status=$?
16514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16515 (exit $ac_status); }; }; then
16516 have_tls=yes
16517 else
16518 echo "$as_me: failed program was:" >&5
16519 sed 's/^/| /' conftest.$ac_ext >&5
16521 have_tls=no
16523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16525 else
16526 cat >conftest.$ac_ext <<_ACEOF
16527 __thread int a; int b; int main() { return a = b; }
16528 _ACEOF
16529 rm -f conftest$ac_exeext
16530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16531 (eval $ac_link) 2>&5
16532 ac_status=$?
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16536 (eval $ac_try) 2>&5
16537 ac_status=$?
16538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539 (exit $ac_status); }; }; then
16540 save_LDFLAGS="$LDFLAGS"
16541 LDFLAGS="-static $LDFLAGS"
16542 if test "$cross_compiling" = yes; then
16543 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16544 See \`config.log' for more details." >&5
16545 echo "$as_me: error: cannot run test program while cross compiling
16546 See \`config.log' for more details." >&2;}
16547 { (exit 1); exit 1; }; }
16548 else
16549 cat >conftest.$ac_ext <<_ACEOF
16550 __thread int a; int b; int main() { return a = b; }
16551 _ACEOF
16552 rm -f conftest$ac_exeext
16553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16554 (eval $ac_link) 2>&5
16555 ac_status=$?
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16559 (eval $ac_try) 2>&5
16560 ac_status=$?
16561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562 (exit $ac_status); }; }; then
16563 have_tls=yes
16564 else
16565 echo "$as_me: program exited with status $ac_status" >&5
16566 echo "$as_me: failed program was:" >&5
16567 sed 's/^/| /' conftest.$ac_ext >&5
16569 ( exit $ac_status )
16570 have_tls=no
16572 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16574 LDFLAGS="$save_LDFLAGS"
16575 else
16576 echo "$as_me: program exited with status $ac_status" >&5
16577 echo "$as_me: failed program was:" >&5
16578 sed 's/^/| /' conftest.$ac_ext >&5
16580 ( exit $ac_status )
16581 have_tls=no
16583 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16586 echo "$as_me:$LINENO: result: $have_tls" >&5
16587 echo "${ECHO_T}$have_tls" >&6
16588 if test "$enable_tls $have_tls" = "yes yes"; then
16590 cat >>confdefs.h <<\_ACEOF
16591 #define HAVE_TLS 1
16592 _ACEOF
16596 # Check if linker supports static linking on a per library basis
16597 LD_START_STATIC_SPEC=
16598 LD_FINISH_STATIC_SPEC=
16599 if $LD --help 2>&1 | grep -q -e -call_shared ; then
16600 if $LD --help 2>&1 | grep -q -e -non_shared ; then
16601 LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
16602 LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
16608 here=`${PWDCMD-pwd}`
16611 # We get this from the environment.
16614 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"
16617 ac_config_files="$ac_config_files scripts/jar"
16620 ac_config_commands="$ac_config_commands default"
16623 cat >confcache <<\_ACEOF
16624 # This file is a shell script that caches the results of configure
16625 # tests run on this system so they can be shared between configure
16626 # scripts and configure runs, see configure's option --config-cache.
16627 # It is not useful on other systems. If it contains results you don't
16628 # want to keep, you may remove or edit it.
16630 # config.status only pays attention to the cache file if you give it
16631 # the --recheck option to rerun configure.
16633 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16634 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16635 # following values.
16637 _ACEOF
16639 # The following way of writing the cache mishandles newlines in values,
16640 # but we know of no workaround that is simple, portable, and efficient.
16641 # So, don't put newlines in cache variables' values.
16642 # Ultrix sh set writes to stderr and can't be redirected directly,
16643 # and sets the high bit in the cache file unless we assign to the vars.
16645 (set) 2>&1 |
16646 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16647 *ac_space=\ *)
16648 # `set' does not quote correctly, so add quotes (double-quote
16649 # substitution turns \\\\ into \\, and sed turns \\ into \).
16650 sed -n \
16651 "s/'/'\\\\''/g;
16652 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16655 # `set' quotes correctly as required by POSIX, so do not add quotes.
16656 sed -n \
16657 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16659 esac;
16661 sed '
16662 t clear
16663 : clear
16664 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16665 t end
16666 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16667 : end' >>confcache
16668 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16669 if test -w $cache_file; then
16670 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16671 cat confcache >$cache_file
16672 else
16673 echo "not updating unwritable cache $cache_file"
16676 rm -f confcache
16678 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16679 # Let make expand exec_prefix.
16680 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16682 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16683 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16684 # trailing colons and then remove the whole line if VPATH becomes empty
16685 # (actually we leave an empty line to preserve line numbers).
16686 if test "x$srcdir" = x.; then
16687 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16688 s/:*\$(srcdir):*/:/;
16689 s/:*\${srcdir}:*/:/;
16690 s/:*@srcdir@:*/:/;
16691 s/^\([^=]*=[ ]*\):*/\1/;
16692 s/:*$//;
16693 s/^[^=]*=[ ]*$//;
16697 DEFS=-DHAVE_CONFIG_H
16699 ac_libobjs=
16700 ac_ltlibobjs=
16701 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16702 # 1. Remove the extension, and $U if already installed.
16703 ac_i=`echo "$ac_i" |
16704 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16705 # 2. Add them.
16706 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16707 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16708 done
16709 LIBOBJS=$ac_libobjs
16711 LTLIBOBJS=$ac_ltlibobjs
16714 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16715 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16716 Usually this means the macro was only invoked conditionally." >&5
16717 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16718 Usually this means the macro was only invoked conditionally." >&2;}
16719 { (exit 1); exit 1; }; }
16721 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16722 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16723 Usually this means the macro was only invoked conditionally." >&5
16724 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16725 Usually this means the macro was only invoked conditionally." >&2;}
16726 { (exit 1); exit 1; }; }
16728 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16729 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16730 Usually this means the macro was only invoked conditionally." >&5
16731 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16732 Usually this means the macro was only invoked conditionally." >&2;}
16733 { (exit 1); exit 1; }; }
16735 if test -z "${BASH_JAR_TRUE}" && test -z "${BASH_JAR_FALSE}"; then
16736 { { echo "$as_me:$LINENO: error: conditional \"BASH_JAR\" was never defined.
16737 Usually this means the macro was only invoked conditionally." >&5
16738 echo "$as_me: error: conditional \"BASH_JAR\" was never defined.
16739 Usually this means the macro was only invoked conditionally." >&2;}
16740 { (exit 1); exit 1; }; }
16742 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16743 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16744 Usually this means the macro was only invoked conditionally." >&5
16745 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16746 Usually this means the macro was only invoked conditionally." >&2;}
16747 { (exit 1); exit 1; }; }
16749 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
16750 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
16751 Usually this means the macro was only invoked conditionally." >&5
16752 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
16753 Usually this means the macro was only invoked conditionally." >&2;}
16754 { (exit 1); exit 1; }; }
16756 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
16757 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
16758 Usually this means the macro was only invoked conditionally." >&5
16759 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
16760 Usually this means the macro was only invoked conditionally." >&2;}
16761 { (exit 1); exit 1; }; }
16763 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
16764 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
16765 Usually this means the macro was only invoked conditionally." >&5
16766 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
16767 Usually this means the macro was only invoked conditionally." >&2;}
16768 { (exit 1); exit 1; }; }
16770 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
16771 { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
16772 Usually this means the macro was only invoked conditionally." >&5
16773 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
16774 Usually this means the macro was only invoked conditionally." >&2;}
16775 { (exit 1); exit 1; }; }
16777 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
16778 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16779 Usually this means the macro was only invoked conditionally." >&5
16780 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16781 Usually this means the macro was only invoked conditionally." >&2;}
16782 { (exit 1); exit 1; }; }
16784 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
16785 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16786 Usually this means the macro was only invoked conditionally." >&5
16787 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16788 Usually this means the macro was only invoked conditionally." >&2;}
16789 { (exit 1); exit 1; }; }
16791 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
16792 { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
16793 Usually this means the macro was only invoked conditionally." >&5
16794 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
16795 Usually this means the macro was only invoked conditionally." >&2;}
16796 { (exit 1); exit 1; }; }
16798 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
16799 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
16800 Usually this means the macro was only invoked conditionally." >&5
16801 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
16802 Usually this means the macro was only invoked conditionally." >&2;}
16803 { (exit 1); exit 1; }; }
16805 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
16806 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
16807 Usually this means the macro was only invoked conditionally." >&5
16808 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
16809 Usually this means the macro was only invoked conditionally." >&2;}
16810 { (exit 1); exit 1; }; }
16812 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
16813 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
16814 Usually this means the macro was only invoked conditionally." >&5
16815 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
16816 Usually this means the macro was only invoked conditionally." >&2;}
16817 { (exit 1); exit 1; }; }
16819 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
16820 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
16821 Usually this means the macro was only invoked conditionally." >&5
16822 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
16823 Usually this means the macro was only invoked conditionally." >&2;}
16824 { (exit 1); exit 1; }; }
16826 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
16827 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
16828 Usually this means the macro was only invoked conditionally." >&5
16829 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
16830 Usually this means the macro was only invoked conditionally." >&2;}
16831 { (exit 1); exit 1; }; }
16833 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
16834 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
16835 Usually this means the macro was only invoked conditionally." >&5
16836 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
16837 Usually this means the macro was only invoked conditionally." >&2;}
16838 { (exit 1); exit 1; }; }
16840 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
16841 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
16842 Usually this means the macro was only invoked conditionally." >&5
16843 echo "$as_me: error: conditional \"NATIVE\" was never defined.
16844 Usually this means the macro was only invoked conditionally." >&2;}
16845 { (exit 1); exit 1; }; }
16847 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
16848 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
16849 Usually this means the macro was only invoked conditionally." >&5
16850 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
16851 Usually this means the macro was only invoked conditionally." >&2;}
16852 { (exit 1); exit 1; }; }
16855 : ${CONFIG_STATUS=./config.status}
16856 ac_clean_files_save=$ac_clean_files
16857 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16858 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16859 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16860 cat >$CONFIG_STATUS <<_ACEOF
16861 #! $SHELL
16862 # Generated by $as_me.
16863 # Run this file to recreate the current configuration.
16864 # Compiler output produced by configure, useful for debugging
16865 # configure, is in config.log if it exists.
16867 debug=false
16868 ac_cs_recheck=false
16869 ac_cs_silent=false
16870 SHELL=\${CONFIG_SHELL-$SHELL}
16871 _ACEOF
16873 cat >>$CONFIG_STATUS <<\_ACEOF
16874 ## --------------------- ##
16875 ## M4sh Initialization. ##
16876 ## --------------------- ##
16878 # Be Bourne compatible
16879 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16880 emulate sh
16881 NULLCMD=:
16882 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16883 # is contrary to our usage. Disable this feature.
16884 alias -g '${1+"$@"}'='"$@"'
16885 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16886 set -o posix
16888 DUALCASE=1; export DUALCASE # for MKS sh
16890 # Support unset when possible.
16891 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16892 as_unset=unset
16893 else
16894 as_unset=false
16898 # Work around bugs in pre-3.0 UWIN ksh.
16899 $as_unset ENV MAIL MAILPATH
16900 PS1='$ '
16901 PS2='> '
16902 PS4='+ '
16904 # NLS nuisances.
16905 for as_var in \
16906 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16907 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16908 LC_TELEPHONE LC_TIME
16910 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16911 eval $as_var=C; export $as_var
16912 else
16913 $as_unset $as_var
16915 done
16917 # Required to use basename.
16918 if expr a : '\(a\)' >/dev/null 2>&1; then
16919 as_expr=expr
16920 else
16921 as_expr=false
16924 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16925 as_basename=basename
16926 else
16927 as_basename=false
16931 # Name of the executable.
16932 as_me=`$as_basename "$0" ||
16933 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16934 X"$0" : 'X\(//\)$' \| \
16935 X"$0" : 'X\(/\)$' \| \
16936 . : '\(.\)' 2>/dev/null ||
16937 echo X/"$0" |
16938 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16939 /^X\/\(\/\/\)$/{ s//\1/; q; }
16940 /^X\/\(\/\).*/{ s//\1/; q; }
16941 s/.*/./; q'`
16944 # PATH needs CR, and LINENO needs CR and PATH.
16945 # Avoid depending upon Character Ranges.
16946 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16947 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16948 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16949 as_cr_digits='0123456789'
16950 as_cr_alnum=$as_cr_Letters$as_cr_digits
16952 # The user is always right.
16953 if test "${PATH_SEPARATOR+set}" != set; then
16954 echo "#! /bin/sh" >conf$$.sh
16955 echo "exit 0" >>conf$$.sh
16956 chmod +x conf$$.sh
16957 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16958 PATH_SEPARATOR=';'
16959 else
16960 PATH_SEPARATOR=:
16962 rm -f conf$$.sh
16966 as_lineno_1=$LINENO
16967 as_lineno_2=$LINENO
16968 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16969 test "x$as_lineno_1" != "x$as_lineno_2" &&
16970 test "x$as_lineno_3" = "x$as_lineno_2" || {
16971 # Find who we are. Look in the path if we contain no path at all
16972 # relative or not.
16973 case $0 in
16974 *[\\/]* ) as_myself=$0 ;;
16975 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16976 for as_dir in $PATH
16978 IFS=$as_save_IFS
16979 test -z "$as_dir" && as_dir=.
16980 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16981 done
16984 esac
16985 # We did not find ourselves, most probably we were run as `sh COMMAND'
16986 # in which case we are not to be found in the path.
16987 if test "x$as_myself" = x; then
16988 as_myself=$0
16990 if test ! -f "$as_myself"; then
16991 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16992 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16993 { (exit 1); exit 1; }; }
16995 case $CONFIG_SHELL in
16997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16998 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17000 IFS=$as_save_IFS
17001 test -z "$as_dir" && as_dir=.
17002 for as_base in sh bash ksh sh5; do
17003 case $as_dir in
17005 if ("$as_dir/$as_base" -c '
17006 as_lineno_1=$LINENO
17007 as_lineno_2=$LINENO
17008 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17009 test "x$as_lineno_1" != "x$as_lineno_2" &&
17010 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17011 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17012 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17013 CONFIG_SHELL=$as_dir/$as_base
17014 export CONFIG_SHELL
17015 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17016 fi;;
17017 esac
17018 done
17019 done
17021 esac
17023 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17024 # uniformly replaced by the line number. The first 'sed' inserts a
17025 # line-number line before each line; the second 'sed' does the real
17026 # work. The second script uses 'N' to pair each line-number line
17027 # with the numbered line, and appends trailing '-' during
17028 # substitution so that $LINENO is not a special case at line end.
17029 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17030 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17031 sed '=' <$as_myself |
17032 sed '
17034 s,$,-,
17035 : loop
17036 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17037 t loop
17038 s,-$,,
17039 s,^['$as_cr_digits']*\n,,
17040 ' >$as_me.lineno &&
17041 chmod +x $as_me.lineno ||
17042 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17043 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17044 { (exit 1); exit 1; }; }
17046 # Don't try to exec as it changes $[0], causing all sort of problems
17047 # (the dirname of $[0] is not the place where we might find the
17048 # original and so on. Autoconf is especially sensible to this).
17049 . ./$as_me.lineno
17050 # Exit status is that of the last command.
17051 exit
17055 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17056 *c*,-n*) ECHO_N= ECHO_C='
17057 ' ECHO_T=' ' ;;
17058 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17059 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17060 esac
17062 if expr a : '\(a\)' >/dev/null 2>&1; then
17063 as_expr=expr
17064 else
17065 as_expr=false
17068 rm -f conf$$ conf$$.exe conf$$.file
17069 echo >conf$$.file
17070 if ln -s conf$$.file conf$$ 2>/dev/null; then
17071 # We could just check for DJGPP; but this test a) works b) is more generic
17072 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17073 if test -f conf$$.exe; then
17074 # Don't use ln at all; we don't have any links
17075 as_ln_s='cp -p'
17076 else
17077 as_ln_s='ln -s'
17079 elif ln conf$$.file conf$$ 2>/dev/null; then
17080 as_ln_s=ln
17081 else
17082 as_ln_s='cp -p'
17084 rm -f conf$$ conf$$.exe conf$$.file
17086 if mkdir -p . 2>/dev/null; then
17087 as_mkdir_p=:
17088 else
17089 test -d ./-p && rmdir ./-p
17090 as_mkdir_p=false
17093 as_executable_p="test -f"
17095 # Sed expression to map a string onto a valid CPP name.
17096 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17098 # Sed expression to map a string onto a valid variable name.
17099 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17102 # IFS
17103 # We need space, tab and new line, in precisely that order.
17104 as_nl='
17106 IFS=" $as_nl"
17108 # CDPATH.
17109 $as_unset CDPATH
17111 exec 6>&1
17113 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17114 # report actual input values of CONFIG_FILES etc. instead of their
17115 # values after options handling. Logging --version etc. is OK.
17116 exec 5>>config.log
17118 echo
17119 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17120 ## Running $as_me. ##
17121 _ASBOX
17122 } >&5
17123 cat >&5 <<_CSEOF
17125 This file was extended by libjava $as_me version-unused, which was
17126 generated by GNU Autoconf 2.59. Invocation command line was
17128 CONFIG_FILES = $CONFIG_FILES
17129 CONFIG_HEADERS = $CONFIG_HEADERS
17130 CONFIG_LINKS = $CONFIG_LINKS
17131 CONFIG_COMMANDS = $CONFIG_COMMANDS
17132 $ $0 $@
17134 _CSEOF
17135 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17136 echo >&5
17137 _ACEOF
17139 # Files that config.status was made for.
17140 if test -n "$ac_config_files"; then
17141 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17144 if test -n "$ac_config_headers"; then
17145 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17148 if test -n "$ac_config_links"; then
17149 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17152 if test -n "$ac_config_commands"; then
17153 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17156 cat >>$CONFIG_STATUS <<\_ACEOF
17158 ac_cs_usage="\
17159 \`$as_me' instantiates files from templates according to the
17160 current configuration.
17162 Usage: $0 [OPTIONS] [FILE]...
17164 -h, --help print this help, then exit
17165 -V, --version print version number, then exit
17166 -q, --quiet do not print progress messages
17167 -d, --debug don't remove temporary files
17168 --recheck update $as_me by reconfiguring in the same conditions
17169 --file=FILE[:TEMPLATE]
17170 instantiate the configuration file FILE
17171 --header=FILE[:TEMPLATE]
17172 instantiate the configuration header FILE
17174 Configuration files:
17175 $config_files
17177 Configuration headers:
17178 $config_headers
17180 Configuration links:
17181 $config_links
17183 Configuration commands:
17184 $config_commands
17186 Report bugs to <bug-autoconf@gnu.org>."
17187 _ACEOF
17189 cat >>$CONFIG_STATUS <<_ACEOF
17190 ac_cs_version="\\
17191 libjava config.status version-unused
17192 configured by $0, generated by GNU Autoconf 2.59,
17193 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17195 Copyright (C) 2003 Free Software Foundation, Inc.
17196 This config.status script is free software; the Free Software Foundation
17197 gives unlimited permission to copy, distribute and modify it."
17198 srcdir=$srcdir
17199 INSTALL="$INSTALL"
17200 _ACEOF
17202 cat >>$CONFIG_STATUS <<\_ACEOF
17203 # If no file are specified by the user, then we need to provide default
17204 # value. By we need to know if files were specified by the user.
17205 ac_need_defaults=:
17206 while test $# != 0
17208 case $1 in
17209 --*=*)
17210 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17211 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17212 ac_shift=:
17215 ac_option=$1
17216 ac_optarg=$2
17217 ac_shift=shift
17219 *) # This is not an option, so the user has probably given explicit
17220 # arguments.
17221 ac_option=$1
17222 ac_need_defaults=false;;
17223 esac
17225 case $ac_option in
17226 # Handling of the options.
17227 _ACEOF
17228 cat >>$CONFIG_STATUS <<\_ACEOF
17229 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17230 ac_cs_recheck=: ;;
17231 --version | --vers* | -V )
17232 echo "$ac_cs_version"; exit 0 ;;
17233 --he | --h)
17234 # Conflict between --help and --header
17235 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17236 Try \`$0 --help' for more information." >&5
17237 echo "$as_me: error: ambiguous option: $1
17238 Try \`$0 --help' for more information." >&2;}
17239 { (exit 1); exit 1; }; };;
17240 --help | --hel | -h )
17241 echo "$ac_cs_usage"; exit 0 ;;
17242 --debug | --d* | -d )
17243 debug=: ;;
17244 --file | --fil | --fi | --f )
17245 $ac_shift
17246 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17247 ac_need_defaults=false;;
17248 --header | --heade | --head | --hea )
17249 $ac_shift
17250 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17251 ac_need_defaults=false;;
17252 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17253 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17254 ac_cs_silent=: ;;
17256 # This is an error.
17257 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17258 Try \`$0 --help' for more information." >&5
17259 echo "$as_me: error: unrecognized option: $1
17260 Try \`$0 --help' for more information." >&2;}
17261 { (exit 1); exit 1; }; } ;;
17263 *) ac_config_targets="$ac_config_targets $1" ;;
17265 esac
17266 shift
17267 done
17269 ac_configure_extra_args=
17271 if $ac_cs_silent; then
17272 exec 6>/dev/null
17273 ac_configure_extra_args="$ac_configure_extra_args --silent"
17276 _ACEOF
17277 cat >>$CONFIG_STATUS <<_ACEOF
17278 if \$ac_cs_recheck; then
17279 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17280 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17283 _ACEOF
17285 cat >>$CONFIG_STATUS <<_ACEOF
17287 # INIT-COMMANDS section.
17290 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17291 srcdir=${srcdir}
17292 host=${host}
17293 target=${target}
17294 with_multisubdir=${with_multisubdir}
17295 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17296 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17297 libgcj_basedir=${libgcj_basedir}
17298 CC="${CC}"
17299 CXX="${CXX}"
17300 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
17303 _ACEOF
17307 cat >>$CONFIG_STATUS <<\_ACEOF
17308 for ac_config_target in $ac_config_targets
17310 case "$ac_config_target" in
17311 # Handling of arguments.
17312 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17313 "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
17314 "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
17315 "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
17316 "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
17317 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17318 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17319 "scripts/jar" ) CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
17320 "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
17321 "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
17322 "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
17323 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
17324 "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
17325 "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
17326 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
17327 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
17328 "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
17329 "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
17330 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
17331 "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
17332 "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
17333 "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
17334 "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
17335 "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
17336 "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
17337 "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
17338 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17339 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17340 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17341 "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
17342 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17343 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17344 { (exit 1); exit 1; }; };;
17345 esac
17346 done
17348 # If the user did not use the arguments to specify the items to instantiate,
17349 # then the envvar interface is used. Set only those that are not.
17350 # We use the long form for the default assignment because of an extremely
17351 # bizarre bug on SunOS 4.1.3.
17352 if $ac_need_defaults; then
17353 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17354 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17355 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17356 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17359 # Have a temporary directory for convenience. Make it in the build tree
17360 # simply because there is no reason to put it here, and in addition,
17361 # creating and moving files from /tmp can sometimes cause problems.
17362 # Create a temporary directory, and hook for its removal unless debugging.
17363 $debug ||
17365 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17366 trap '{ (exit 1); exit 1; }' 1 2 13 15
17369 # Create a (secure) tmp directory for tmp files.
17372 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17373 test -n "$tmp" && test -d "$tmp"
17374 } ||
17376 tmp=./confstat$$-$RANDOM
17377 (umask 077 && mkdir $tmp)
17378 } ||
17380 echo "$me: cannot create a temporary directory in ." >&2
17381 { (exit 1); exit 1; }
17384 _ACEOF
17386 cat >>$CONFIG_STATUS <<_ACEOF
17389 # CONFIG_FILES section.
17392 # No need to generate the scripts if there are no CONFIG_FILES.
17393 # This happens for instance when ./config.status config.h
17394 if test -n "\$CONFIG_FILES"; then
17395 # Protect against being on the right side of a sed subst in config.status.
17396 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17397 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17398 s,@SHELL@,$SHELL,;t t
17399 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17400 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17401 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17402 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17403 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17404 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17405 s,@exec_prefix@,$exec_prefix,;t t
17406 s,@prefix@,$prefix,;t t
17407 s,@program_transform_name@,$program_transform_name,;t t
17408 s,@bindir@,$bindir,;t t
17409 s,@sbindir@,$sbindir,;t t
17410 s,@libexecdir@,$libexecdir,;t t
17411 s,@datadir@,$datadir,;t t
17412 s,@sysconfdir@,$sysconfdir,;t t
17413 s,@sharedstatedir@,$sharedstatedir,;t t
17414 s,@localstatedir@,$localstatedir,;t t
17415 s,@libdir@,$libdir,;t t
17416 s,@includedir@,$includedir,;t t
17417 s,@oldincludedir@,$oldincludedir,;t t
17418 s,@infodir@,$infodir,;t t
17419 s,@mandir@,$mandir,;t t
17420 s,@build_alias@,$build_alias,;t t
17421 s,@host_alias@,$host_alias,;t t
17422 s,@target_alias@,$target_alias,;t t
17423 s,@DEFS@,$DEFS,;t t
17424 s,@ECHO_C@,$ECHO_C,;t t
17425 s,@ECHO_N@,$ECHO_N,;t t
17426 s,@ECHO_T@,$ECHO_T,;t t
17427 s,@LIBS@,$LIBS,;t t
17428 s,@build@,$build,;t t
17429 s,@build_cpu@,$build_cpu,;t t
17430 s,@build_vendor@,$build_vendor,;t t
17431 s,@build_os@,$build_os,;t t
17432 s,@build_subdir@,$build_subdir,;t t
17433 s,@host_subdir@,$host_subdir,;t t
17434 s,@target_subdir@,$target_subdir,;t t
17435 s,@libgcj_basedir@,$libgcj_basedir,;t t
17436 s,@host@,$host,;t t
17437 s,@host_cpu@,$host_cpu,;t t
17438 s,@host_vendor@,$host_vendor,;t t
17439 s,@host_os@,$host_os,;t t
17440 s,@target@,$target,;t t
17441 s,@target_cpu@,$target_cpu,;t t
17442 s,@target_vendor@,$target_vendor,;t t
17443 s,@target_os@,$target_os,;t t
17444 s,@target_noncanonical@,$target_noncanonical,;t t
17445 s,@LN_S@,$LN_S,;t t
17446 s,@mkinstalldirs@,$mkinstalldirs,;t t
17447 s,@CC@,$CC,;t t
17448 s,@ac_ct_CC@,$ac_ct_CC,;t t
17449 s,@EXEEXT@,$EXEEXT,;t t
17450 s,@OBJEXT@,$OBJEXT,;t t
17451 s,@CXX@,$CXX,;t t
17452 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17453 s,@CFLAGS@,$CFLAGS,;t t
17454 s,@CXXFLAGS@,$CXXFLAGS,;t t
17455 s,@LDFLAGS@,$LDFLAGS,;t t
17456 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17457 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17458 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17459 s,@CYGPATH_W@,$CYGPATH_W,;t t
17460 s,@PACKAGE@,$PACKAGE,;t t
17461 s,@VERSION@,$VERSION,;t t
17462 s,@ACLOCAL@,$ACLOCAL,;t t
17463 s,@AUTOCONF@,$AUTOCONF,;t t
17464 s,@AUTOMAKE@,$AUTOMAKE,;t t
17465 s,@AUTOHEADER@,$AUTOHEADER,;t t
17466 s,@MAKEINFO@,$MAKEINFO,;t t
17467 s,@install_sh@,$install_sh,;t t
17468 s,@STRIP@,$STRIP,;t t
17469 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17470 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17471 s,@mkdir_p@,$mkdir_p,;t t
17472 s,@AWK@,$AWK,;t t
17473 s,@SET_MAKE@,$SET_MAKE,;t t
17474 s,@am__leading_dot@,$am__leading_dot,;t t
17475 s,@AMTAR@,$AMTAR,;t t
17476 s,@am__tar@,$am__tar,;t t
17477 s,@am__untar@,$am__untar,;t t
17478 s,@DEPDIR@,$DEPDIR,;t t
17479 s,@am__include@,$am__include,;t t
17480 s,@am__quote@,$am__quote,;t t
17481 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17482 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17483 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17484 s,@CCDEPMODE@,$CCDEPMODE,;t t
17485 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17486 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17487 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17488 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17489 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17490 s,@AS@,$AS,;t t
17491 s,@ac_ct_AS@,$ac_ct_AS,;t t
17492 s,@LD@,$LD,;t t
17493 s,@ac_ct_LD@,$ac_ct_LD,;t t
17494 s,@AR@,$AR,;t t
17495 s,@ac_ct_AR@,$ac_ct_AR,;t t
17496 s,@RANLIB@,$RANLIB,;t t
17497 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17498 s,@JAR@,$JAR,;t t
17499 s,@ZIP@,$ZIP,;t t
17500 s,@UNZIP@,$UNZIP,;t t
17501 s,@BASH_JAR_TRUE@,$BASH_JAR_TRUE,;t t
17502 s,@BASH_JAR_FALSE@,$BASH_JAR_FALSE,;t t
17503 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17504 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17505 s,@MAINT@,$MAINT,;t t
17506 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
17507 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
17508 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
17509 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
17510 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
17511 s,@TOOLKIT@,$TOOLKIT,;t t
17512 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
17513 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
17514 s,@GCJH@,$GCJH,;t t
17515 s,@INCLTDL@,$INCLTDL,;t t
17516 s,@LIBLTDL@,$LIBLTDL,;t t
17517 s,@DIRLTDL@,$DIRLTDL,;t t
17518 s,@LIBTOOL@,$LIBTOOL,;t t
17519 s,@CXXCPP@,$CXXCPP,;t t
17520 s,@CPPFLAGS@,$CPPFLAGS,;t t
17521 s,@GCJ@,$GCJ,;t t
17522 s,@GCJFLAGS@,$GCJFLAGS,;t t
17523 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
17524 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
17525 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
17526 s,@subdirs@,$subdirs,;t t
17527 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
17528 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
17529 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
17530 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
17531 s,@JAVA_HOME@,$JAVA_HOME,;t t
17532 s,@INTERPRETER@,$INTERPRETER,;t t
17533 s,@LIBFFI@,$LIBFFI,;t t
17534 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
17535 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
17536 s,@CPP@,$CPP,;t t
17537 s,@EGREP@,$EGREP,;t t
17538 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
17539 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
17540 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
17541 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
17542 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
17543 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
17544 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
17545 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
17546 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
17547 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
17548 s,@X_CFLAGS@,$X_CFLAGS,;t t
17549 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17550 s,@X_LIBS@,$X_LIBS,;t t
17551 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17552 s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
17553 s,@GCLIBS@,$GCLIBS,;t t
17554 s,@GCINCS@,$GCINCS,;t t
17555 s,@GCDEPS@,$GCDEPS,;t t
17556 s,@GCSPEC@,$GCSPEC,;t t
17557 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
17558 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
17559 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
17560 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
17561 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
17562 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
17563 s,@THREADLIBS@,$THREADLIBS,;t t
17564 s,@THREADINCS@,$THREADINCS,;t t
17565 s,@THREADDEPS@,$THREADDEPS,;t t
17566 s,@THREADSPEC@,$THREADSPEC,;t t
17567 s,@THREADSTARTFILESPEC@,$THREADSTARTFILESPEC,;t t
17568 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
17569 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
17570 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
17571 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
17572 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
17573 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
17574 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
17575 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
17576 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
17577 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
17578 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
17579 s,@LIBICONV@,$LIBICONV,;t t
17580 s,@LTLIBICONV@,$LTLIBICONV,;t t
17581 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
17582 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
17583 s,@GTK_LIBS@,$GTK_LIBS,;t t
17584 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
17585 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
17586 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
17587 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
17588 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
17589 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
17590 s,@ZLIBS@,$ZLIBS,;t t
17591 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
17592 s,@ZINCS@,$ZINCS,;t t
17593 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
17594 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
17595 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
17596 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
17597 s,@IEEESPEC@,$IEEESPEC,;t t
17598 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
17599 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
17600 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
17601 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
17602 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
17603 s,@toolexecdir@,$toolexecdir,;t t
17604 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
17605 s,@toolexeclibdir@,$toolexeclibdir,;t t
17606 s,@dbexecdir@,$dbexecdir,;t t
17607 s,@GCJVERSION@,$GCJVERSION,;t t
17608 s,@gxx_include_dir@,$gxx_include_dir,;t t
17609 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
17610 s,@ALLOCA@,$ALLOCA,;t t
17611 s,@PERL@,$PERL,;t t
17612 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
17613 s,@LD_START_STATIC_SPEC@,$LD_START_STATIC_SPEC,;t t
17614 s,@LD_FINISH_STATIC_SPEC@,$LD_FINISH_STATIC_SPEC,;t t
17615 s,@here@,$here,;t t
17616 s,@LIBOBJS@,$LIBOBJS,;t t
17617 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17618 CEOF
17620 _ACEOF
17622 cat >>$CONFIG_STATUS <<\_ACEOF
17623 # Split the substitutions into bite-sized pieces for seds with
17624 # small command number limits, like on Digital OSF/1 and HP-UX.
17625 ac_max_sed_lines=48
17626 ac_sed_frag=1 # Number of current file.
17627 ac_beg=1 # First line for current file.
17628 ac_end=$ac_max_sed_lines # Line after last line for current file.
17629 ac_more_lines=:
17630 ac_sed_cmds=
17631 while $ac_more_lines; do
17632 if test $ac_beg -gt 1; then
17633 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17634 else
17635 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17637 if test ! -s $tmp/subs.frag; then
17638 ac_more_lines=false
17639 else
17640 # The purpose of the label and of the branching condition is to
17641 # speed up the sed processing (if there are no `@' at all, there
17642 # is no need to browse any of the substitutions).
17643 # These are the two extra sed commands mentioned above.
17644 (echo ':t
17645 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17646 if test -z "$ac_sed_cmds"; then
17647 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17648 else
17649 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17651 ac_sed_frag=`expr $ac_sed_frag + 1`
17652 ac_beg=$ac_end
17653 ac_end=`expr $ac_end + $ac_max_sed_lines`
17655 done
17656 if test -z "$ac_sed_cmds"; then
17657 ac_sed_cmds=cat
17659 fi # test -n "$CONFIG_FILES"
17661 _ACEOF
17662 cat >>$CONFIG_STATUS <<\_ACEOF
17663 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17664 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17665 case $ac_file in
17666 - | *:- | *:-:* ) # input from stdin
17667 cat >$tmp/stdin
17668 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17669 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17670 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17671 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17672 * ) ac_file_in=$ac_file.in ;;
17673 esac
17675 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17676 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17677 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17678 X"$ac_file" : 'X\(//\)[^/]' \| \
17679 X"$ac_file" : 'X\(//\)$' \| \
17680 X"$ac_file" : 'X\(/\)' \| \
17681 . : '\(.\)' 2>/dev/null ||
17682 echo X"$ac_file" |
17683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17684 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17685 /^X\(\/\/\)$/{ s//\1/; q; }
17686 /^X\(\/\).*/{ s//\1/; q; }
17687 s/.*/./; q'`
17688 { if $as_mkdir_p; then
17689 mkdir -p "$ac_dir"
17690 else
17691 as_dir="$ac_dir"
17692 as_dirs=
17693 while test ! -d "$as_dir"; do
17694 as_dirs="$as_dir $as_dirs"
17695 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17696 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17697 X"$as_dir" : 'X\(//\)[^/]' \| \
17698 X"$as_dir" : 'X\(//\)$' \| \
17699 X"$as_dir" : 'X\(/\)' \| \
17700 . : '\(.\)' 2>/dev/null ||
17701 echo X"$as_dir" |
17702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17703 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17704 /^X\(\/\/\)$/{ s//\1/; q; }
17705 /^X\(\/\).*/{ s//\1/; q; }
17706 s/.*/./; q'`
17707 done
17708 test ! -n "$as_dirs" || mkdir $as_dirs
17709 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17710 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17711 { (exit 1); exit 1; }; }; }
17713 ac_builddir=.
17715 if test "$ac_dir" != .; then
17716 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17717 # A "../" for each directory in $ac_dir_suffix.
17718 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17719 else
17720 ac_dir_suffix= ac_top_builddir=
17723 case $srcdir in
17724 .) # No --srcdir option. We are building in place.
17725 ac_srcdir=.
17726 if test -z "$ac_top_builddir"; then
17727 ac_top_srcdir=.
17728 else
17729 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17730 fi ;;
17731 [\\/]* | ?:[\\/]* ) # Absolute path.
17732 ac_srcdir=$srcdir$ac_dir_suffix;
17733 ac_top_srcdir=$srcdir ;;
17734 *) # Relative path.
17735 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17736 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17737 esac
17739 # Do not use `cd foo && pwd` to compute absolute paths, because
17740 # the directories may not exist.
17741 case `pwd` in
17742 .) ac_abs_builddir="$ac_dir";;
17744 case "$ac_dir" in
17745 .) ac_abs_builddir=`pwd`;;
17746 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17747 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17748 esac;;
17749 esac
17750 case $ac_abs_builddir in
17751 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17753 case ${ac_top_builddir}. in
17754 .) ac_abs_top_builddir=$ac_abs_builddir;;
17755 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17756 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17757 esac;;
17758 esac
17759 case $ac_abs_builddir in
17760 .) ac_abs_srcdir=$ac_srcdir;;
17762 case $ac_srcdir in
17763 .) ac_abs_srcdir=$ac_abs_builddir;;
17764 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17765 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17766 esac;;
17767 esac
17768 case $ac_abs_builddir in
17769 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17771 case $ac_top_srcdir in
17772 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17773 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17774 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17775 esac;;
17776 esac
17779 case $INSTALL in
17780 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17781 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17782 esac
17784 if test x"$ac_file" != x-; then
17785 { echo "$as_me:$LINENO: creating $ac_file" >&5
17786 echo "$as_me: creating $ac_file" >&6;}
17787 rm -f "$ac_file"
17789 # Let's still pretend it is `configure' which instantiates (i.e., don't
17790 # use $as_me), people would be surprised to read:
17791 # /* config.h. Generated by config.status. */
17792 if test x"$ac_file" = x-; then
17793 configure_input=
17794 else
17795 configure_input="$ac_file. "
17797 configure_input=$configure_input"Generated from `echo $ac_file_in |
17798 sed 's,.*/,,'` by configure."
17800 # First look for the input files in the build tree, otherwise in the
17801 # src tree.
17802 ac_file_inputs=`IFS=:
17803 for f in $ac_file_in; do
17804 case $f in
17805 -) echo $tmp/stdin ;;
17806 [\\/$]*)
17807 # Absolute (can't be DOS-style, as IFS=:)
17808 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17809 echo "$as_me: error: cannot find input file: $f" >&2;}
17810 { (exit 1); exit 1; }; }
17811 echo "$f";;
17812 *) # Relative
17813 if test -f "$f"; then
17814 # Build tree
17815 echo "$f"
17816 elif test -f "$srcdir/$f"; then
17817 # Source tree
17818 echo "$srcdir/$f"
17819 else
17820 # /dev/null tree
17821 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17822 echo "$as_me: error: cannot find input file: $f" >&2;}
17823 { (exit 1); exit 1; }; }
17824 fi;;
17825 esac
17826 done` || { (exit 1); exit 1; }
17827 _ACEOF
17828 cat >>$CONFIG_STATUS <<_ACEOF
17829 sed "$ac_vpsub
17830 $extrasub
17831 _ACEOF
17832 cat >>$CONFIG_STATUS <<\_ACEOF
17834 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17835 s,@configure_input@,$configure_input,;t t
17836 s,@srcdir@,$ac_srcdir,;t t
17837 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17838 s,@top_srcdir@,$ac_top_srcdir,;t t
17839 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17840 s,@builddir@,$ac_builddir,;t t
17841 s,@abs_builddir@,$ac_abs_builddir,;t t
17842 s,@top_builddir@,$ac_top_builddir,;t t
17843 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17844 s,@INSTALL@,$ac_INSTALL,;t t
17845 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17846 rm -f $tmp/stdin
17847 if test x"$ac_file" != x-; then
17848 mv $tmp/out $ac_file
17849 else
17850 cat $tmp/out
17851 rm -f $tmp/out
17854 # Run the commands associated with the file.
17855 case $ac_file in
17856 scripts/jar ) chmod +x scripts/jar ;;
17857 esac
17858 done
17859 _ACEOF
17860 cat >>$CONFIG_STATUS <<\_ACEOF
17863 # CONFIG_HEADER section.
17866 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17867 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17869 # ac_d sets the value in "#define NAME VALUE" lines.
17870 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17871 ac_dB='[ ].*$,\1#\2'
17872 ac_dC=' '
17873 ac_dD=',;t'
17874 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17875 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17876 ac_uB='$,\1#\2define\3'
17877 ac_uC=' '
17878 ac_uD=',;t'
17880 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17881 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17882 case $ac_file in
17883 - | *:- | *:-:* ) # input from stdin
17884 cat >$tmp/stdin
17885 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17886 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17887 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17888 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17889 * ) ac_file_in=$ac_file.in ;;
17890 esac
17892 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17893 echo "$as_me: creating $ac_file" >&6;}
17895 # First look for the input files in the build tree, otherwise in the
17896 # src tree.
17897 ac_file_inputs=`IFS=:
17898 for f in $ac_file_in; do
17899 case $f in
17900 -) echo $tmp/stdin ;;
17901 [\\/$]*)
17902 # Absolute (can't be DOS-style, as IFS=:)
17903 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17904 echo "$as_me: error: cannot find input file: $f" >&2;}
17905 { (exit 1); exit 1; }; }
17906 # Do quote $f, to prevent DOS paths from being IFS'd.
17907 echo "$f";;
17908 *) # Relative
17909 if test -f "$f"; then
17910 # Build tree
17911 echo "$f"
17912 elif test -f "$srcdir/$f"; then
17913 # Source tree
17914 echo "$srcdir/$f"
17915 else
17916 # /dev/null tree
17917 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17918 echo "$as_me: error: cannot find input file: $f" >&2;}
17919 { (exit 1); exit 1; }; }
17920 fi;;
17921 esac
17922 done` || { (exit 1); exit 1; }
17923 # Remove the trailing spaces.
17924 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17926 _ACEOF
17928 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17929 # `conftest.undefs', that substitutes the proper values into
17930 # config.h.in to produce config.h. The first handles `#define'
17931 # templates, and the second `#undef' templates.
17932 # And first: Protect against being on the right side of a sed subst in
17933 # config.status. Protect against being in an unquoted here document
17934 # in config.status.
17935 rm -f conftest.defines conftest.undefs
17936 # Using a here document instead of a string reduces the quoting nightmare.
17937 # Putting comments in sed scripts is not portable.
17939 # `end' is used to avoid that the second main sed command (meant for
17940 # 0-ary CPP macros) applies to n-ary macro definitions.
17941 # See the Autoconf documentation for `clear'.
17942 cat >confdef2sed.sed <<\_ACEOF
17943 s/[\\&,]/\\&/g
17944 s,[\\$`],\\&,g
17945 t clear
17946 : clear
17947 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17948 t end
17949 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17950 : end
17951 _ACEOF
17952 # If some macros were called several times there might be several times
17953 # the same #defines, which is useless. Nevertheless, we may not want to
17954 # sort them, since we want the *last* AC-DEFINE to be honored.
17955 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17956 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17957 rm -f confdef2sed.sed
17959 # This sed command replaces #undef with comments. This is necessary, for
17960 # example, in the case of _POSIX_SOURCE, which is predefined and required
17961 # on some systems where configure will not decide to define it.
17962 cat >>conftest.undefs <<\_ACEOF
17963 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17964 _ACEOF
17966 # Break up conftest.defines because some shells have a limit on the size
17967 # of here documents, and old seds have small limits too (100 cmds).
17968 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17969 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17970 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17971 echo ' :' >>$CONFIG_STATUS
17972 rm -f conftest.tail
17973 while grep . conftest.defines >/dev/null
17975 # Write a limited-size here document to $tmp/defines.sed.
17976 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17977 # Speed up: don't consider the non `#define' lines.
17978 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17979 # Work around the forget-to-reset-the-flag bug.
17980 echo 't clr' >>$CONFIG_STATUS
17981 echo ': clr' >>$CONFIG_STATUS
17982 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17983 echo 'CEOF
17984 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17985 rm -f $tmp/in
17986 mv $tmp/out $tmp/in
17987 ' >>$CONFIG_STATUS
17988 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17989 rm -f conftest.defines
17990 mv conftest.tail conftest.defines
17991 done
17992 rm -f conftest.defines
17993 echo ' fi # grep' >>$CONFIG_STATUS
17994 echo >>$CONFIG_STATUS
17996 # Break up conftest.undefs because some shells have a limit on the size
17997 # of here documents, and old seds have small limits too (100 cmds).
17998 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17999 rm -f conftest.tail
18000 while grep . conftest.undefs >/dev/null
18002 # Write a limited-size here document to $tmp/undefs.sed.
18003 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18004 # Speed up: don't consider the non `#undef'
18005 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18006 # Work around the forget-to-reset-the-flag bug.
18007 echo 't clr' >>$CONFIG_STATUS
18008 echo ': clr' >>$CONFIG_STATUS
18009 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18010 echo 'CEOF
18011 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18012 rm -f $tmp/in
18013 mv $tmp/out $tmp/in
18014 ' >>$CONFIG_STATUS
18015 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18016 rm -f conftest.undefs
18017 mv conftest.tail conftest.undefs
18018 done
18019 rm -f conftest.undefs
18021 cat >>$CONFIG_STATUS <<\_ACEOF
18022 # Let's still pretend it is `configure' which instantiates (i.e., don't
18023 # use $as_me), people would be surprised to read:
18024 # /* config.h. Generated by config.status. */
18025 if test x"$ac_file" = x-; then
18026 echo "/* Generated by configure. */" >$tmp/config.h
18027 else
18028 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18030 cat $tmp/in >>$tmp/config.h
18031 rm -f $tmp/in
18032 if test x"$ac_file" != x-; then
18033 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18034 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18035 echo "$as_me: $ac_file is unchanged" >&6;}
18036 else
18037 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18038 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18039 X"$ac_file" : 'X\(//\)[^/]' \| \
18040 X"$ac_file" : 'X\(//\)$' \| \
18041 X"$ac_file" : 'X\(/\)' \| \
18042 . : '\(.\)' 2>/dev/null ||
18043 echo X"$ac_file" |
18044 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18045 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18046 /^X\(\/\/\)$/{ s//\1/; q; }
18047 /^X\(\/\).*/{ s//\1/; q; }
18048 s/.*/./; q'`
18049 { if $as_mkdir_p; then
18050 mkdir -p "$ac_dir"
18051 else
18052 as_dir="$ac_dir"
18053 as_dirs=
18054 while test ! -d "$as_dir"; do
18055 as_dirs="$as_dir $as_dirs"
18056 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18057 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18058 X"$as_dir" : 'X\(//\)[^/]' \| \
18059 X"$as_dir" : 'X\(//\)$' \| \
18060 X"$as_dir" : 'X\(/\)' \| \
18061 . : '\(.\)' 2>/dev/null ||
18062 echo X"$as_dir" |
18063 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18064 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18065 /^X\(\/\/\)$/{ s//\1/; q; }
18066 /^X\(\/\).*/{ s//\1/; q; }
18067 s/.*/./; q'`
18068 done
18069 test ! -n "$as_dirs" || mkdir $as_dirs
18070 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18071 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18072 { (exit 1); exit 1; }; }; }
18074 rm -f $ac_file
18075 mv $tmp/config.h $ac_file
18077 else
18078 cat $tmp/config.h
18079 rm -f $tmp/config.h
18081 # Compute $ac_file's index in $config_headers.
18082 _am_stamp_count=1
18083 for _am_header in $config_headers :; do
18084 case $_am_header in
18085 $ac_file | $ac_file:* )
18086 break ;;
18088 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18089 esac
18090 done
18091 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
18092 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18093 X$ac_file : 'X\(//\)[^/]' \| \
18094 X$ac_file : 'X\(//\)$' \| \
18095 X$ac_file : 'X\(/\)' \| \
18096 . : '\(.\)' 2>/dev/null ||
18097 echo X$ac_file |
18098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18099 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18100 /^X\(\/\/\)$/{ s//\1/; q; }
18101 /^X\(\/\).*/{ s//\1/; q; }
18102 s/.*/./; q'`/stamp-h$_am_stamp_count
18103 done
18104 _ACEOF
18105 cat >>$CONFIG_STATUS <<\_ACEOF
18108 # CONFIG_LINKS section.
18111 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18112 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18113 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18115 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18116 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18118 if test ! -r $srcdir/$ac_source; then
18119 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18120 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18121 { (exit 1); exit 1; }; }
18123 rm -f $ac_dest
18125 # Make relative symlinks.
18126 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18127 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18128 X"$ac_dest" : 'X\(//\)[^/]' \| \
18129 X"$ac_dest" : 'X\(//\)$' \| \
18130 X"$ac_dest" : 'X\(/\)' \| \
18131 . : '\(.\)' 2>/dev/null ||
18132 echo X"$ac_dest" |
18133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18134 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18135 /^X\(\/\/\)$/{ s//\1/; q; }
18136 /^X\(\/\).*/{ s//\1/; q; }
18137 s/.*/./; q'`
18138 { if $as_mkdir_p; then
18139 mkdir -p "$ac_dest_dir"
18140 else
18141 as_dir="$ac_dest_dir"
18142 as_dirs=
18143 while test ! -d "$as_dir"; do
18144 as_dirs="$as_dir $as_dirs"
18145 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18146 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18147 X"$as_dir" : 'X\(//\)[^/]' \| \
18148 X"$as_dir" : 'X\(//\)$' \| \
18149 X"$as_dir" : 'X\(/\)' \| \
18150 . : '\(.\)' 2>/dev/null ||
18151 echo X"$as_dir" |
18152 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18153 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18154 /^X\(\/\/\)$/{ s//\1/; q; }
18155 /^X\(\/\).*/{ s//\1/; q; }
18156 s/.*/./; q'`
18157 done
18158 test ! -n "$as_dirs" || mkdir $as_dirs
18159 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
18160 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
18161 { (exit 1); exit 1; }; }; }
18163 ac_builddir=.
18165 if test "$ac_dest_dir" != .; then
18166 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18167 # A "../" for each directory in $ac_dir_suffix.
18168 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18169 else
18170 ac_dir_suffix= ac_top_builddir=
18173 case $srcdir in
18174 .) # No --srcdir option. We are building in place.
18175 ac_srcdir=.
18176 if test -z "$ac_top_builddir"; then
18177 ac_top_srcdir=.
18178 else
18179 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18180 fi ;;
18181 [\\/]* | ?:[\\/]* ) # Absolute path.
18182 ac_srcdir=$srcdir$ac_dir_suffix;
18183 ac_top_srcdir=$srcdir ;;
18184 *) # Relative path.
18185 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18186 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18187 esac
18189 # Do not use `cd foo && pwd` to compute absolute paths, because
18190 # the directories may not exist.
18191 case `pwd` in
18192 .) ac_abs_builddir="$ac_dest_dir";;
18194 case "$ac_dest_dir" in
18195 .) ac_abs_builddir=`pwd`;;
18196 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
18197 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
18198 esac;;
18199 esac
18200 case $ac_abs_builddir in
18201 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18203 case ${ac_top_builddir}. in
18204 .) ac_abs_top_builddir=$ac_abs_builddir;;
18205 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18206 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18207 esac;;
18208 esac
18209 case $ac_abs_builddir in
18210 .) ac_abs_srcdir=$ac_srcdir;;
18212 case $ac_srcdir in
18213 .) ac_abs_srcdir=$ac_abs_builddir;;
18214 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18215 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18216 esac;;
18217 esac
18218 case $ac_abs_builddir in
18219 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18221 case $ac_top_srcdir in
18222 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18223 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18224 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18225 esac;;
18226 esac
18229 case $srcdir in
18230 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18231 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18232 esac
18234 # Try a symlink, then a hard link, then a copy.
18235 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18236 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
18237 cp -p $srcdir/$ac_source $ac_dest ||
18238 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
18239 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
18240 { (exit 1); exit 1; }; }
18241 done
18242 _ACEOF
18243 cat >>$CONFIG_STATUS <<\_ACEOF
18246 # CONFIG_COMMANDS section.
18248 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18249 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18250 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18251 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18252 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18253 X"$ac_dest" : 'X\(//\)[^/]' \| \
18254 X"$ac_dest" : 'X\(//\)$' \| \
18255 X"$ac_dest" : 'X\(/\)' \| \
18256 . : '\(.\)' 2>/dev/null ||
18257 echo X"$ac_dest" |
18258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18259 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18260 /^X\(\/\/\)$/{ s//\1/; q; }
18261 /^X\(\/\).*/{ s//\1/; q; }
18262 s/.*/./; q'`
18263 { if $as_mkdir_p; then
18264 mkdir -p "$ac_dir"
18265 else
18266 as_dir="$ac_dir"
18267 as_dirs=
18268 while test ! -d "$as_dir"; do
18269 as_dirs="$as_dir $as_dirs"
18270 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18271 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18272 X"$as_dir" : 'X\(//\)[^/]' \| \
18273 X"$as_dir" : 'X\(//\)$' \| \
18274 X"$as_dir" : 'X\(/\)' \| \
18275 . : '\(.\)' 2>/dev/null ||
18276 echo X"$as_dir" |
18277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18278 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18279 /^X\(\/\/\)$/{ s//\1/; q; }
18280 /^X\(\/\).*/{ s//\1/; q; }
18281 s/.*/./; q'`
18282 done
18283 test ! -n "$as_dirs" || mkdir $as_dirs
18284 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18285 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18286 { (exit 1); exit 1; }; }; }
18288 ac_builddir=.
18290 if test "$ac_dir" != .; then
18291 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18292 # A "../" for each directory in $ac_dir_suffix.
18293 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18294 else
18295 ac_dir_suffix= ac_top_builddir=
18298 case $srcdir in
18299 .) # No --srcdir option. We are building in place.
18300 ac_srcdir=.
18301 if test -z "$ac_top_builddir"; then
18302 ac_top_srcdir=.
18303 else
18304 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18305 fi ;;
18306 [\\/]* | ?:[\\/]* ) # Absolute path.
18307 ac_srcdir=$srcdir$ac_dir_suffix;
18308 ac_top_srcdir=$srcdir ;;
18309 *) # Relative path.
18310 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18311 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18312 esac
18314 # Do not use `cd foo && pwd` to compute absolute paths, because
18315 # the directories may not exist.
18316 case `pwd` in
18317 .) ac_abs_builddir="$ac_dir";;
18319 case "$ac_dir" in
18320 .) ac_abs_builddir=`pwd`;;
18321 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18322 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18323 esac;;
18324 esac
18325 case $ac_abs_builddir in
18326 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18328 case ${ac_top_builddir}. in
18329 .) ac_abs_top_builddir=$ac_abs_builddir;;
18330 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18331 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18332 esac;;
18333 esac
18334 case $ac_abs_builddir in
18335 .) ac_abs_srcdir=$ac_srcdir;;
18337 case $ac_srcdir in
18338 .) ac_abs_srcdir=$ac_abs_builddir;;
18339 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18340 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18341 esac;;
18342 esac
18343 case $ac_abs_builddir in
18344 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18346 case $ac_top_srcdir in
18347 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18348 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18349 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18350 esac;;
18351 esac
18354 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18355 echo "$as_me: executing $ac_dest commands" >&6;}
18356 case $ac_dest in
18357 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18358 # Strip MF so we end up with the name of the file.
18359 mf=`echo "$mf" | sed -e 's/:.*$//'`
18360 # Check whether this is an Automake generated Makefile or not.
18361 # We used to match only the files named `Makefile.in', but
18362 # some people rename them; so instead we look at the file content.
18363 # Grep'ing the first line is not enough: some people post-process
18364 # each Makefile.in and add a new line on top of each file to say so.
18365 # So let's grep whole file.
18366 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18367 dirpart=`(dirname "$mf") 2>/dev/null ||
18368 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18369 X"$mf" : 'X\(//\)[^/]' \| \
18370 X"$mf" : 'X\(//\)$' \| \
18371 X"$mf" : 'X\(/\)' \| \
18372 . : '\(.\)' 2>/dev/null ||
18373 echo X"$mf" |
18374 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18375 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18376 /^X\(\/\/\)$/{ s//\1/; q; }
18377 /^X\(\/\).*/{ s//\1/; q; }
18378 s/.*/./; q'`
18379 else
18380 continue
18382 # Extract the definition of DEPDIR, am__include, and am__quote
18383 # from the Makefile without running `make'.
18384 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18385 test -z "$DEPDIR" && continue
18386 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18387 test -z "am__include" && continue
18388 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18389 # When using ansi2knr, U may be empty or an underscore; expand it
18390 U=`sed -n 's/^U = //p' < "$mf"`
18391 # Find all dependency output files, they are included files with
18392 # $(DEPDIR) in their names. We invoke sed twice because it is the
18393 # simplest approach to changing $(DEPDIR) to its actual value in the
18394 # expansion.
18395 for file in `sed -n "
18396 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18397 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18398 # Make sure the directory exists.
18399 test -f "$dirpart/$file" && continue
18400 fdir=`(dirname "$file") 2>/dev/null ||
18401 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18402 X"$file" : 'X\(//\)[^/]' \| \
18403 X"$file" : 'X\(//\)$' \| \
18404 X"$file" : 'X\(/\)' \| \
18405 . : '\(.\)' 2>/dev/null ||
18406 echo X"$file" |
18407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18408 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18409 /^X\(\/\/\)$/{ s//\1/; q; }
18410 /^X\(\/\).*/{ s//\1/; q; }
18411 s/.*/./; q'`
18412 { if $as_mkdir_p; then
18413 mkdir -p $dirpart/$fdir
18414 else
18415 as_dir=$dirpart/$fdir
18416 as_dirs=
18417 while test ! -d "$as_dir"; do
18418 as_dirs="$as_dir $as_dirs"
18419 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18420 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18421 X"$as_dir" : 'X\(//\)[^/]' \| \
18422 X"$as_dir" : 'X\(//\)$' \| \
18423 X"$as_dir" : 'X\(/\)' \| \
18424 . : '\(.\)' 2>/dev/null ||
18425 echo X"$as_dir" |
18426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18427 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18428 /^X\(\/\/\)$/{ s//\1/; q; }
18429 /^X\(\/\).*/{ s//\1/; q; }
18430 s/.*/./; q'`
18431 done
18432 test ! -n "$as_dirs" || mkdir $as_dirs
18433 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18434 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18435 { (exit 1); exit 1; }; }; }
18437 # echo "creating $dirpart/$file"
18438 echo '# dummy' > "$dirpart/$file"
18439 done
18440 done
18442 default ) # Only add multilib support code if we just rebuilt top-level Makefile.
18443 case " $CONFIG_FILES " in
18444 *" Makefile "*)
18445 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
18446 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
18448 esac
18449 for ac_multi_file in $CONFIG_FILES; do
18450 case $ac_multi_file in
18451 */Makefile)
18452 grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;;
18453 esac
18454 done
18456 esac
18457 done
18458 _ACEOF
18460 cat >>$CONFIG_STATUS <<\_ACEOF
18462 { (exit 0); exit 0; }
18463 _ACEOF
18464 chmod +x $CONFIG_STATUS
18465 ac_clean_files=$ac_clean_files_save
18468 # configure is writing to config.log, and then calls config.status.
18469 # config.status does its own redirection, appending to config.log.
18470 # Unfortunately, on DOS this fails, as config.log is still kept open
18471 # by configure, so config.status won't be able to write to it; its
18472 # output is simply discarded. So we exec the FD to /dev/null,
18473 # effectively closing config.log, so it can be properly (re)opened and
18474 # appended to by config.status. When coming back to configure, we
18475 # need to make the FD available again.
18476 if test "$no_create" != yes; then
18477 ac_cs_success=:
18478 ac_config_status_args=
18479 test "$silent" = yes &&
18480 ac_config_status_args="$ac_config_status_args --quiet"
18481 exec 5>/dev/null
18482 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18483 exec 5>>config.log
18484 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18485 # would make configure fail if this is the last instruction.
18486 $ac_cs_success || { (exit 1); exit 1; }
18490 # CONFIG_SUBDIRS section.
18492 if test "$no_recursion" != yes; then
18494 # Remove --cache-file and --srcdir arguments so they do not pile up.
18495 ac_sub_configure_args=
18496 ac_prev=
18497 for ac_arg in $ac_configure_args; do
18498 if test -n "$ac_prev"; then
18499 ac_prev=
18500 continue
18502 case $ac_arg in
18503 -cache-file | --cache-file | --cache-fil | --cache-fi \
18504 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18505 ac_prev=cache_file ;;
18506 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18507 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18508 | --c=*)
18510 --config-cache | -C)
18512 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18513 ac_prev=srcdir ;;
18514 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18516 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18517 ac_prev=prefix ;;
18518 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18520 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18521 esac
18522 done
18524 # Always prepend --prefix to ensure using the same prefix
18525 # in subdir configurations.
18526 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
18528 ac_popdir=`pwd`
18529 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18531 # Do not complain, so a configure script can configure whichever
18532 # parts of a large source tree are present.
18533 test -d $srcdir/$ac_dir || continue
18535 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
18536 echo "$as_me: configuring in $ac_dir" >&6;}
18537 { if $as_mkdir_p; then
18538 mkdir -p "$ac_dir"
18539 else
18540 as_dir="$ac_dir"
18541 as_dirs=
18542 while test ! -d "$as_dir"; do
18543 as_dirs="$as_dir $as_dirs"
18544 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18545 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18546 X"$as_dir" : 'X\(//\)[^/]' \| \
18547 X"$as_dir" : 'X\(//\)$' \| \
18548 X"$as_dir" : 'X\(/\)' \| \
18549 . : '\(.\)' 2>/dev/null ||
18550 echo X"$as_dir" |
18551 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18552 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18553 /^X\(\/\/\)$/{ s//\1/; q; }
18554 /^X\(\/\).*/{ s//\1/; q; }
18555 s/.*/./; q'`
18556 done
18557 test ! -n "$as_dirs" || mkdir $as_dirs
18558 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18559 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18560 { (exit 1); exit 1; }; }; }
18562 ac_builddir=.
18564 if test "$ac_dir" != .; then
18565 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18566 # A "../" for each directory in $ac_dir_suffix.
18567 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18568 else
18569 ac_dir_suffix= ac_top_builddir=
18572 case $srcdir in
18573 .) # No --srcdir option. We are building in place.
18574 ac_srcdir=.
18575 if test -z "$ac_top_builddir"; then
18576 ac_top_srcdir=.
18577 else
18578 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18579 fi ;;
18580 [\\/]* | ?:[\\/]* ) # Absolute path.
18581 ac_srcdir=$srcdir$ac_dir_suffix;
18582 ac_top_srcdir=$srcdir ;;
18583 *) # Relative path.
18584 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18585 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18586 esac
18588 # Do not use `cd foo && pwd` to compute absolute paths, because
18589 # the directories may not exist.
18590 case `pwd` in
18591 .) ac_abs_builddir="$ac_dir";;
18593 case "$ac_dir" in
18594 .) ac_abs_builddir=`pwd`;;
18595 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18596 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18597 esac;;
18598 esac
18599 case $ac_abs_builddir in
18600 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18602 case ${ac_top_builddir}. in
18603 .) ac_abs_top_builddir=$ac_abs_builddir;;
18604 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18605 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18606 esac;;
18607 esac
18608 case $ac_abs_builddir in
18609 .) ac_abs_srcdir=$ac_srcdir;;
18611 case $ac_srcdir in
18612 .) ac_abs_srcdir=$ac_abs_builddir;;
18613 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18614 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18615 esac;;
18616 esac
18617 case $ac_abs_builddir in
18618 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18620 case $ac_top_srcdir in
18621 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18622 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18623 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18624 esac;;
18625 esac
18628 cd $ac_dir
18630 # Check for guested configure; otherwise get Cygnus style configure.
18631 if test -f $ac_srcdir/configure.gnu; then
18632 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
18633 elif test -f $ac_srcdir/configure; then
18634 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
18635 elif test -f $ac_srcdir/configure.in; then
18636 ac_sub_configure=$ac_configure
18637 else
18638 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
18639 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18640 ac_sub_configure=
18643 # The recursion is here.
18644 if test -n "$ac_sub_configure"; then
18645 # Make the cache file name correct relative to the subdirectory.
18646 case $cache_file in
18647 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18648 *) # Relative path.
18649 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
18650 esac
18652 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
18653 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18654 # The eval makes quoting arguments work.
18655 eval $ac_sub_configure $ac_sub_configure_args \
18656 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
18657 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
18658 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
18659 { (exit 1); exit 1; }; }
18662 cd $ac_popdir
18663 done