* ptree.c (cxx_print_identifier): Print a leading space if the
[official-gcc.git] / libjava / configure
blob047dcff4489d76f3b55940f4313525decb41c133
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 AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBGCJ_CFLAGS LIBGCJ_CXXFLAGS LIBGCJ_JAVAFLAGS LIBGCJ_LD_SYMBOLIC LIBGCJDEBUG TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE GTK_AWT_TRUE GTK_AWT_FALSE GCJH ZIP 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 GTK_CAIRO_TRUE GTK_CAIRO_FALSE PKG_CONFIG CAIRO_CFLAGS CAIRO_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS GCLIBS GCINCS GCDEPS GCSPEC JC1GCSPEC GCTESTSPEC USING_BOEHMGC_TRUE USING_BOEHMGC_FALSE USING_NOGC_TRUE USING_NOGC_FALSE THREADLIBS THREADINCS THREADDEPS THREADSPEC THREADLDFLAGS THREADCXXFLAGS USING_POSIX_THREADS_TRUE USING_POSIX_THREADS_FALSE USING_WIN32_THREADS_TRUE USING_WIN32_THREADS_FALSE USING_NO_THREADS_TRUE USING_NO_THREADS_FALSE HASH_SYNC_SPEC USING_GCC_TRUE USING_GCC_FALSE LIBICONV LTLIBICONV GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS SUPPLY_BACKTRACE_TRUE SUPPLY_BACKTRACE_FALSE CLASSPATH_SEPARATOR ac_ct_GCJ ZLIBS SYS_ZLIBS ZINCS DIVIDESPEC CHECKREFSPEC EXCEPTIONSPEC BACKTRACESPEC IEEESPEC NATIVE_TRUE NATIVE_FALSE NEEDS_DATA_START_TRUE NEEDS_DATA_START_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir GCJVERSION gxx_include_dir libstdcxx_incdir ALLOCA PERL SYSDEP_SOURCES here LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
354 ac_prev=
355 for ac_option
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
368 case $ac_option in
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
387 --config-cache | -C)
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 esac
651 done
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
726 else
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CXXCPP_set=${CXXCPP+set}
755 ac_env_CXXCPP_value=$CXXCPP
756 ac_cv_env_CXXCPP_set=${CXXCPP+set}
757 ac_cv_env_CXXCPP_value=$CXXCPP
758 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
759 ac_env_CPPFLAGS_value=$CPPFLAGS
760 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
761 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
762 ac_env_CPP_set=${CPP+set}
763 ac_env_CPP_value=$CPP
764 ac_cv_env_CPP_set=${CPP+set}
765 ac_cv_env_CPP_value=$CPP
768 # Report the --help message.
770 if test "$ac_init_help" = "long"; then
771 # Omit some internal or obsolete options to make the list less imposing.
772 # This message is too long to be a string in the A/UX 3.1 sh.
773 cat <<_ACEOF
774 \`configure' configures libjava version-unused to adapt to many kinds of systems.
776 Usage: $0 [OPTION]... [VAR=VALUE]...
778 To assign environment variables (e.g., CC, CFLAGS...), specify them as
779 VAR=VALUE. See below for descriptions of some of the useful variables.
781 Defaults for the options are specified in brackets.
783 Configuration:
784 -h, --help display this help and exit
785 --help=short display options specific to this package
786 --help=recursive display the short help of all the included packages
787 -V, --version display version information and exit
788 -q, --quiet, --silent do not print \`checking...' messages
789 --cache-file=FILE cache test results in FILE [disabled]
790 -C, --config-cache alias for \`--cache-file=config.cache'
791 -n, --no-create do not create output files
792 --srcdir=DIR find the sources in DIR [configure dir or \`..']
794 _ACEOF
796 cat <<_ACEOF
797 Installation directories:
798 --prefix=PREFIX install architecture-independent files in PREFIX
799 [$ac_default_prefix]
800 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
801 [PREFIX]
803 By default, \`make install' will install all the files in
804 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
805 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
806 for instance \`--prefix=\$HOME'.
808 For better control, use the options below.
810 Fine tuning of the installation directories:
811 --bindir=DIR user executables [EPREFIX/bin]
812 --sbindir=DIR system admin executables [EPREFIX/sbin]
813 --libexecdir=DIR program executables [EPREFIX/libexec]
814 --datadir=DIR read-only architecture-independent data [PREFIX/share]
815 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
816 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
817 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
818 --libdir=DIR object code libraries [EPREFIX/lib]
819 --includedir=DIR C header files [PREFIX/include]
820 --oldincludedir=DIR C header files for non-gcc [/usr/include]
821 --infodir=DIR info documentation [PREFIX/info]
822 --mandir=DIR man documentation [PREFIX/man]
823 _ACEOF
825 cat <<\_ACEOF
827 Program names:
828 --program-prefix=PREFIX prepend PREFIX to installed program names
829 --program-suffix=SUFFIX append SUFFIX to installed program names
830 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
832 X features:
833 --x-includes=DIR X include files are in DIR
834 --x-libraries=DIR X library files are in DIR
836 System types:
837 --build=BUILD configure for building on BUILD [guessed]
838 --host=HOST cross-compile to build programs to run on HOST [BUILD]
839 --target=TARGET configure for building compilers for TARGET [HOST]
840 _ACEOF
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive ) echo "Configuration of libjava version-unused:";;
846 esac
847 cat <<\_ACEOF
849 Optional Features:
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --enable-version-specific-runtime-libs
853 specify that runtime libraries should be installed
854 in a compiler-specific directory
855 --enable-multilib build many library versions (default)
856 --disable-dependency-tracking speeds up one-time build
857 --enable-dependency-tracking do not reject slow dependency extractors
858 --enable-maintainer-mode enable make rules and dependencies not useful
859 (and sometimes confusing) to the casual installer
860 --enable-libgcj-debug enable runtime debugging code
861 --enable-java-awt list of AWT peer implementations to be built
862 --enable-shared=PKGS build shared libraries default=yes
863 --enable-static=PKGS build static libraries default=yes
864 --enable-fast-install=PKGS optimize for fast installation default=yes
865 --disable-libtool-lock avoid locking (might break parallel builds)
866 --disable-getenv-properties
867 don't set system properties from GCJ_PROPERTIES
868 --enable-hash-synchronization
869 use global hash table for monitor locks
870 --enable-gc-debug include full support for pointer backtracing etc.
871 --enable-interpreter enable interpreter
872 --enable-sjlj-exceptions
873 force use of builtin_setjmp for exceptions
874 --disable-java-net disable java.net
875 --disable-jvmpi disable JVMPI support
876 --enable-gtk-cairo build the cairo Graphics2D implementation on GTK
877 --enable-java-gc=TYPE choose garbage collector (default is boehm)
878 --disable-rpath do not hardcode runtime library paths
880 Optional Packages:
881 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
882 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
883 --with-target-subdir=SUBDIR
884 configure in a subdirectory
885 --with-cross-host=HOST configure with a cross compiler from HOST
886 --with-newlib configure with newlib
887 --with-gnu-ld assume the C compiler uses GNU ld default=no
888 --with-pic try to use only PIC/non-PIC objects default=use both
889 --with-java-home=DIRECTORY
890 value of java.home system property
891 --with-win32-nlsapi=ansi or unicows or unicode
892 native MinGW libgcj Win32 OS API (default is ansi)
893 --without-libffi don't use libffi
894 --with-ecos enable runtime eCos target support
895 --with-system-zlib use installed libz
896 --with-x use the X Window System
897 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
898 --without-libiconv-prefix don't search for libiconv in includedir and libdir
900 Some influential environment variables:
901 CC C compiler command
902 CFLAGS C compiler flags
903 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
904 nonstandard directory <lib dir>
905 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
906 headers in a nonstandard directory <include dir>
907 CXX C++ compiler command
908 CXXFLAGS C++ compiler flags
909 CXXCPP C++ preprocessor
910 CPP C preprocessor
912 Use these variables to override the choices made by `configure' or to help
913 it to find libraries and programs with nonstandard names/locations.
915 _ACEOF
918 if test "$ac_init_help" = "recursive"; then
919 # If there are subdirs, report their specific --help.
920 ac_popdir=`pwd`
921 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
922 test -d $ac_dir || continue
923 ac_builddir=.
925 if test "$ac_dir" != .; then
926 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
927 # A "../" for each directory in $ac_dir_suffix.
928 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
929 else
930 ac_dir_suffix= ac_top_builddir=
933 case $srcdir in
934 .) # No --srcdir option. We are building in place.
935 ac_srcdir=.
936 if test -z "$ac_top_builddir"; then
937 ac_top_srcdir=.
938 else
939 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
940 fi ;;
941 [\\/]* | ?:[\\/]* ) # Absolute path.
942 ac_srcdir=$srcdir$ac_dir_suffix;
943 ac_top_srcdir=$srcdir ;;
944 *) # Relative path.
945 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
946 ac_top_srcdir=$ac_top_builddir$srcdir ;;
947 esac
949 # Do not use `cd foo && pwd` to compute absolute paths, because
950 # the directories may not exist.
951 case `pwd` in
952 .) ac_abs_builddir="$ac_dir";;
954 case "$ac_dir" in
955 .) ac_abs_builddir=`pwd`;;
956 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
957 *) ac_abs_builddir=`pwd`/"$ac_dir";;
958 esac;;
959 esac
960 case $ac_abs_builddir in
961 .) ac_abs_top_builddir=${ac_top_builddir}.;;
963 case ${ac_top_builddir}. in
964 .) ac_abs_top_builddir=$ac_abs_builddir;;
965 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
966 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
967 esac;;
968 esac
969 case $ac_abs_builddir in
970 .) ac_abs_srcdir=$ac_srcdir;;
972 case $ac_srcdir in
973 .) ac_abs_srcdir=$ac_abs_builddir;;
974 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
975 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
976 esac;;
977 esac
978 case $ac_abs_builddir in
979 .) ac_abs_top_srcdir=$ac_top_srcdir;;
981 case $ac_top_srcdir in
982 .) ac_abs_top_srcdir=$ac_abs_builddir;;
983 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
984 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
985 esac;;
986 esac
988 cd $ac_dir
989 # Check for guested configure; otherwise get Cygnus style configure.
990 if test -f $ac_srcdir/configure.gnu; then
991 echo
992 $SHELL $ac_srcdir/configure.gnu --help=recursive
993 elif test -f $ac_srcdir/configure; then
994 echo
995 $SHELL $ac_srcdir/configure --help=recursive
996 elif test -f $ac_srcdir/configure.ac ||
997 test -f $ac_srcdir/configure.in; then
998 echo
999 $ac_configure --help
1000 else
1001 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1003 cd $ac_popdir
1004 done
1007 test -n "$ac_init_help" && exit 0
1008 if $ac_init_version; then
1009 cat <<\_ACEOF
1010 libjava configure version-unused
1011 generated by GNU Autoconf 2.59
1013 Copyright (C) 2003 Free Software Foundation, Inc.
1014 This configure script is free software; the Free Software Foundation
1015 gives unlimited permission to copy, distribute and modify it.
1016 _ACEOF
1017 exit 0
1019 exec 5>config.log
1020 cat >&5 <<_ACEOF
1021 This file contains any messages produced by compilers while
1022 running configure, to aid debugging if configure makes a mistake.
1024 It was created by libjava $as_me version-unused, which was
1025 generated by GNU Autoconf 2.59. Invocation command line was
1027 $ $0 $@
1029 _ACEOF
1031 cat <<_ASUNAME
1032 ## --------- ##
1033 ## Platform. ##
1034 ## --------- ##
1036 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1037 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1038 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1039 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1040 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1042 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1043 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1045 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1046 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1047 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1048 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1049 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1050 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1051 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1053 _ASUNAME
1055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1056 for as_dir in $PATH
1058 IFS=$as_save_IFS
1059 test -z "$as_dir" && as_dir=.
1060 echo "PATH: $as_dir"
1061 done
1063 } >&5
1065 cat >&5 <<_ACEOF
1068 ## ----------- ##
1069 ## Core tests. ##
1070 ## ----------- ##
1072 _ACEOF
1075 # Keep a trace of the command line.
1076 # Strip out --no-create and --no-recursion so they do not pile up.
1077 # Strip out --silent because we don't want to record it for future runs.
1078 # Also quote any args containing shell meta-characters.
1079 # Make two passes to allow for proper duplicate-argument suppression.
1080 ac_configure_args=
1081 ac_configure_args0=
1082 ac_configure_args1=
1083 ac_sep=
1084 ac_must_keep_next=false
1085 for ac_pass in 1 2
1087 for ac_arg
1089 case $ac_arg in
1090 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092 | -silent | --silent | --silen | --sile | --sil)
1093 continue ;;
1094 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1095 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1096 esac
1097 case $ac_pass in
1098 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1100 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1101 if test $ac_must_keep_next = true; then
1102 ac_must_keep_next=false # Got value, back to normal.
1103 else
1104 case $ac_arg in
1105 *=* | --config-cache | -C | -disable-* | --disable-* \
1106 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1107 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1108 | -with-* | --with-* | -without-* | --without-* | --x)
1109 case "$ac_configure_args0 " in
1110 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1111 esac
1113 -* ) ac_must_keep_next=true ;;
1114 esac
1116 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1117 # Get rid of the leading space.
1118 ac_sep=" "
1120 esac
1121 done
1122 done
1123 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1124 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1126 # When interrupted or exit'd, cleanup temporary files, and complete
1127 # config.log. We remove comments because anyway the quotes in there
1128 # would cause problems or look ugly.
1129 # WARNING: Be sure not to use single quotes in there, as some shells,
1130 # such as our DU 5.0 friend, will then `close' the trap.
1131 trap 'exit_status=$?
1132 # Save into config.log some information that might help in debugging.
1134 echo
1136 cat <<\_ASBOX
1137 ## ---------------- ##
1138 ## Cache variables. ##
1139 ## ---------------- ##
1140 _ASBOX
1141 echo
1142 # The following way of writing the cache mishandles newlines in values,
1144 (set) 2>&1 |
1145 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1146 *ac_space=\ *)
1147 sed -n \
1148 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1149 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1152 sed -n \
1153 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1155 esac;
1157 echo
1159 cat <<\_ASBOX
1160 ## ----------------- ##
1161 ## Output variables. ##
1162 ## ----------------- ##
1163 _ASBOX
1164 echo
1165 for ac_var in $ac_subst_vars
1167 eval ac_val=$`echo $ac_var`
1168 echo "$ac_var='"'"'$ac_val'"'"'"
1169 done | sort
1170 echo
1172 if test -n "$ac_subst_files"; then
1173 cat <<\_ASBOX
1174 ## ------------- ##
1175 ## Output files. ##
1176 ## ------------- ##
1177 _ASBOX
1178 echo
1179 for ac_var in $ac_subst_files
1181 eval ac_val=$`echo $ac_var`
1182 echo "$ac_var='"'"'$ac_val'"'"'"
1183 done | sort
1184 echo
1187 if test -s confdefs.h; then
1188 cat <<\_ASBOX
1189 ## ----------- ##
1190 ## confdefs.h. ##
1191 ## ----------- ##
1192 _ASBOX
1193 echo
1194 sed "/^$/d" confdefs.h | sort
1195 echo
1197 test "$ac_signal" != 0 &&
1198 echo "$as_me: caught signal $ac_signal"
1199 echo "$as_me: exit $exit_status"
1200 } >&5
1201 rm -f core *.core &&
1202 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1203 exit $exit_status
1205 for ac_signal in 1 2 13 15; do
1206 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1207 done
1208 ac_signal=0
1210 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1211 rm -rf conftest* confdefs.h
1212 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1213 echo >confdefs.h
1215 # Predefined preprocessor variables.
1217 cat >>confdefs.h <<_ACEOF
1218 #define PACKAGE_NAME "$PACKAGE_NAME"
1219 _ACEOF
1222 cat >>confdefs.h <<_ACEOF
1223 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1224 _ACEOF
1227 cat >>confdefs.h <<_ACEOF
1228 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1229 _ACEOF
1232 cat >>confdefs.h <<_ACEOF
1233 #define PACKAGE_STRING "$PACKAGE_STRING"
1234 _ACEOF
1237 cat >>confdefs.h <<_ACEOF
1238 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1239 _ACEOF
1242 # Let the site file select an alternate cache file if it wants to.
1243 # Prefer explicitly selected file to automatically selected ones.
1244 if test -z "$CONFIG_SITE"; then
1245 if test "x$prefix" != xNONE; then
1246 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1247 else
1248 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1251 for ac_site_file in $CONFIG_SITE; do
1252 if test -r "$ac_site_file"; then
1253 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1254 echo "$as_me: loading site script $ac_site_file" >&6;}
1255 sed 's/^/| /' "$ac_site_file" >&5
1256 . "$ac_site_file"
1258 done
1260 if test -r "$cache_file"; then
1261 # Some versions of bash will fail to source /dev/null (special
1262 # files actually), so we avoid doing that.
1263 if test -f "$cache_file"; then
1264 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1265 echo "$as_me: loading cache $cache_file" >&6;}
1266 case $cache_file in
1267 [\\/]* | ?:[\\/]* ) . $cache_file;;
1268 *) . ./$cache_file;;
1269 esac
1271 else
1272 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1273 echo "$as_me: creating cache $cache_file" >&6;}
1274 >$cache_file
1277 # Check that the precious variables saved in the cache have kept the same
1278 # value.
1279 ac_cache_corrupted=false
1280 for ac_var in `(set) 2>&1 |
1281 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1282 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1283 eval ac_new_set=\$ac_env_${ac_var}_set
1284 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1285 eval ac_new_val="\$ac_env_${ac_var}_value"
1286 case $ac_old_set,$ac_new_set in
1287 set,)
1288 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1289 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1290 ac_cache_corrupted=: ;;
1291 ,set)
1292 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1293 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1294 ac_cache_corrupted=: ;;
1295 ,);;
1297 if test "x$ac_old_val" != "x$ac_new_val"; then
1298 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1299 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1300 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1301 echo "$as_me: former value: $ac_old_val" >&2;}
1302 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1303 echo "$as_me: current value: $ac_new_val" >&2;}
1304 ac_cache_corrupted=:
1305 fi;;
1306 esac
1307 # Pass precious variables to config.status.
1308 if test "$ac_new_set" = set; then
1309 case $ac_new_val in
1310 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1311 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1312 *) ac_arg=$ac_var=$ac_new_val ;;
1313 esac
1314 case " $ac_configure_args " in
1315 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1316 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1317 esac
1319 done
1320 if $ac_cache_corrupted; then
1321 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1322 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1323 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1324 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1325 { (exit 1); exit 1; }; }
1328 ac_ext=c
1329 ac_cpp='$CPP $CPPFLAGS'
1330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1363 ac_aux_dir=
1364 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1365 if test -f $ac_dir/install-sh; then
1366 ac_aux_dir=$ac_dir
1367 ac_install_sh="$ac_aux_dir/install-sh -c"
1368 break
1369 elif test -f $ac_dir/install.sh; then
1370 ac_aux_dir=$ac_dir
1371 ac_install_sh="$ac_aux_dir/install.sh -c"
1372 break
1373 elif test -f $ac_dir/shtool; then
1374 ac_aux_dir=$ac_dir
1375 ac_install_sh="$ac_aux_dir/shtool install -c"
1376 break
1378 done
1379 if test -z "$ac_aux_dir"; then
1380 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1381 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1382 { (exit 1); exit 1; }; }
1384 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1385 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1386 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1388 # Make sure we can run config.sub.
1389 $ac_config_sub sun4 >/dev/null 2>&1 ||
1390 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1391 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1392 { (exit 1); exit 1; }; }
1394 echo "$as_me:$LINENO: checking build system type" >&5
1395 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1396 if test "${ac_cv_build+set}" = set; then
1397 echo $ECHO_N "(cached) $ECHO_C" >&6
1398 else
1399 ac_cv_build_alias=$build_alias
1400 test -z "$ac_cv_build_alias" &&
1401 ac_cv_build_alias=`$ac_config_guess`
1402 test -z "$ac_cv_build_alias" &&
1403 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1404 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1405 { (exit 1); exit 1; }; }
1406 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1407 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1408 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1409 { (exit 1); exit 1; }; }
1412 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1413 echo "${ECHO_T}$ac_cv_build" >&6
1414 build=$ac_cv_build
1415 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1416 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1417 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1420 case ${build_alias} in
1421 "") build_noncanonical=${build} ;;
1422 *) build_noncanonical=${build_alias} ;;
1423 esac
1425 case ${host_alias} in
1426 "") host_noncanonical=${build_noncanonical} ;;
1427 *) host_noncanonical=${host_alias} ;;
1428 esac
1430 case ${target_alias} in
1431 "") target_noncanonical=${host_noncanonical} ;;
1432 *) target_noncanonical=${target_alias} ;;
1433 esac
1435 # Prefix 'build-' so this never conflicts with target_subdir.
1436 build_subdir="build-${build_noncanonical}"
1437 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1438 if ( test $srcdir = . && test -d gcc ) \
1439 || test -d $srcdir/../host-${host_noncanonical}; then
1440 host_subdir="host-${host_noncanonical}"
1441 else
1442 host_subdir=.
1444 # No prefix.
1445 target_subdir=${target_noncanonical}
1448 # We use these options to decide which functions to include.
1450 # Check whether --with-target-subdir or --without-target-subdir was given.
1451 if test "${with_target_subdir+set}" = set; then
1452 withval="$with_target_subdir"
1456 # We may get other options which we don't document:
1457 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1459 # When building with srcdir == objdir, links to the source files will
1460 # be created in directories within the target_subdir. We have to
1461 # adjust toplevel_srcdir accordingly, so that configure finds
1462 # install-sh and other auxiliary files that live in the top-level
1463 # source directory.
1464 if test "${srcdir}" = "."; then
1465 if test -z "${with_target_subdir}"; then
1466 toprel=".."
1467 else
1468 if test "${with_target_subdir}" != "."; then
1469 toprel="${with_multisrctop}../.."
1470 else
1471 toprel="${with_multisrctop}.."
1474 else
1475 toprel=".."
1478 libgcj_basedir=$srcdir/$toprel/./libjava
1481 echo "$as_me:$LINENO: checking host system type" >&5
1482 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1483 if test "${ac_cv_host+set}" = set; then
1484 echo $ECHO_N "(cached) $ECHO_C" >&6
1485 else
1486 ac_cv_host_alias=$host_alias
1487 test -z "$ac_cv_host_alias" &&
1488 ac_cv_host_alias=$ac_cv_build_alias
1489 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1490 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1491 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1492 { (exit 1); exit 1; }; }
1495 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1496 echo "${ECHO_T}$ac_cv_host" >&6
1497 host=$ac_cv_host
1498 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1499 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1500 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1503 echo "$as_me:$LINENO: checking target system type" >&5
1504 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1505 if test "${ac_cv_target+set}" = set; then
1506 echo $ECHO_N "(cached) $ECHO_C" >&6
1507 else
1508 ac_cv_target_alias=$target_alias
1509 test "x$ac_cv_target_alias" = "x" &&
1510 ac_cv_target_alias=$ac_cv_host_alias
1511 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1512 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1513 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1514 { (exit 1); exit 1; }; }
1517 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1518 echo "${ECHO_T}$ac_cv_target" >&6
1519 target=$ac_cv_target
1520 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1521 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1522 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1525 # The aliases save the names the user supplied, while $host etc.
1526 # will get canonicalized.
1527 test -n "$target_alias" &&
1528 test "$program_prefix$program_suffix$program_transform_name" = \
1529 NONENONEs,x,x, &&
1530 program_prefix=${target_alias}-
1531 case ${build_alias} in
1532 "") build_noncanonical=${build} ;;
1533 *) build_noncanonical=${build_alias} ;;
1534 esac
1536 case ${target_alias} in
1537 "") target_noncanonical=${host_noncanonical} ;;
1538 *) target_noncanonical=${target_alias} ;;
1539 esac
1544 # This works around the fact that libtool configuration may change LD
1545 # for this particular configuration, but some shells, instead of
1546 # keeping the changes in LD private, export them just because LD is
1547 # exported.
1548 ORIGINAL_LD_FOR_MULTILIBS=$LD
1550 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1551 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1552 LN_S=$as_ln_s
1553 if test "$LN_S" = "ln -s"; then
1554 echo "$as_me:$LINENO: result: yes" >&5
1555 echo "${ECHO_T}yes" >&6
1556 else
1557 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1558 echo "${ECHO_T}no, using $LN_S" >&6
1562 # This works around an automake problem.
1563 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1567 # Check whether --with-cross-host or --without-cross-host was given.
1568 if test "${with_cross_host+set}" = set; then
1569 withval="$with_cross_host"
1574 # Check whether --with-newlib or --without-newlib was given.
1575 if test "${with_newlib+set}" = set; then
1576 withval="$with_newlib"
1580 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1581 if test "${enable_version_specific_runtime_libs+set}" = set; then
1582 enableval="$enable_version_specific_runtime_libs"
1583 case "$enableval" in
1584 yes) version_specific_libs=yes ;;
1585 no) version_specific_libs=no ;;
1586 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1587 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1588 { (exit 1); exit 1; }; };;
1589 esac
1590 else
1591 version_specific_libs=no
1595 # Default to --enable-multilib
1596 # Check whether --enable-multilib or --disable-multilib was given.
1597 if test "${enable_multilib+set}" = set; then
1598 enableval="$enable_multilib"
1599 case "${enableval}" in
1600 yes) multilib=yes ;;
1601 no) multilib=no ;;
1602 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1603 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1604 { (exit 1); exit 1; }; } ;;
1605 esac
1606 else
1607 multilib=yes
1609 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1612 # (1) We use an abnormal CXX (without library references), so we
1613 # must cache it under a different name.
1614 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1615 # the non-multilib-adjusted value will be used in multilibs.
1616 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1617 # (4) As another side effect, automake doesn't automatically include them
1618 # in Makefile.in.
1619 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1620 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1621 # used in later tests. This may not be necessary in libjava; I don't know.
1625 save_CXXFLAGS="$CXXFLAGS"
1626 CXXFLAGS="$CXXFLAGS -fno-builtin"
1627 ac_ext=c
1628 ac_cpp='$CPP $CPPFLAGS'
1629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1632 if test -n "$ac_tool_prefix"; then
1633 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1634 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1635 echo "$as_me:$LINENO: checking for $ac_word" >&5
1636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1637 if test "${ac_cv_prog_CC+set}" = set; then
1638 echo $ECHO_N "(cached) $ECHO_C" >&6
1639 else
1640 if test -n "$CC"; then
1641 ac_cv_prog_CC="$CC" # Let the user override the test.
1642 else
1643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1644 for as_dir in $PATH
1646 IFS=$as_save_IFS
1647 test -z "$as_dir" && as_dir=.
1648 for ac_exec_ext in '' $ac_executable_extensions; do
1649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1650 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1652 break 2
1654 done
1655 done
1659 CC=$ac_cv_prog_CC
1660 if test -n "$CC"; then
1661 echo "$as_me:$LINENO: result: $CC" >&5
1662 echo "${ECHO_T}$CC" >&6
1663 else
1664 echo "$as_me:$LINENO: result: no" >&5
1665 echo "${ECHO_T}no" >&6
1669 if test -z "$ac_cv_prog_CC"; then
1670 ac_ct_CC=$CC
1671 # Extract the first word of "gcc", so it can be a program name with args.
1672 set dummy gcc; ac_word=$2
1673 echo "$as_me:$LINENO: checking for $ac_word" >&5
1674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1675 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1676 echo $ECHO_N "(cached) $ECHO_C" >&6
1677 else
1678 if test -n "$ac_ct_CC"; then
1679 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1680 else
1681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1682 for as_dir in $PATH
1684 IFS=$as_save_IFS
1685 test -z "$as_dir" && as_dir=.
1686 for ac_exec_ext in '' $ac_executable_extensions; do
1687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1688 ac_cv_prog_ac_ct_CC="gcc"
1689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1690 break 2
1692 done
1693 done
1697 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1698 if test -n "$ac_ct_CC"; then
1699 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1700 echo "${ECHO_T}$ac_ct_CC" >&6
1701 else
1702 echo "$as_me:$LINENO: result: no" >&5
1703 echo "${ECHO_T}no" >&6
1706 CC=$ac_ct_CC
1707 else
1708 CC="$ac_cv_prog_CC"
1711 if test -z "$CC"; then
1712 if test -n "$ac_tool_prefix"; then
1713 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1714 set dummy ${ac_tool_prefix}cc; ac_word=$2
1715 echo "$as_me:$LINENO: checking for $ac_word" >&5
1716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1717 if test "${ac_cv_prog_CC+set}" = set; then
1718 echo $ECHO_N "(cached) $ECHO_C" >&6
1719 else
1720 if test -n "$CC"; then
1721 ac_cv_prog_CC="$CC" # Let the user override the test.
1722 else
1723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1724 for as_dir in $PATH
1726 IFS=$as_save_IFS
1727 test -z "$as_dir" && as_dir=.
1728 for ac_exec_ext in '' $ac_executable_extensions; do
1729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1730 ac_cv_prog_CC="${ac_tool_prefix}cc"
1731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1732 break 2
1734 done
1735 done
1739 CC=$ac_cv_prog_CC
1740 if test -n "$CC"; then
1741 echo "$as_me:$LINENO: result: $CC" >&5
1742 echo "${ECHO_T}$CC" >&6
1743 else
1744 echo "$as_me:$LINENO: result: no" >&5
1745 echo "${ECHO_T}no" >&6
1749 if test -z "$ac_cv_prog_CC"; then
1750 ac_ct_CC=$CC
1751 # Extract the first word of "cc", so it can be a program name with args.
1752 set dummy cc; ac_word=$2
1753 echo "$as_me:$LINENO: checking for $ac_word" >&5
1754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1755 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1756 echo $ECHO_N "(cached) $ECHO_C" >&6
1757 else
1758 if test -n "$ac_ct_CC"; then
1759 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1760 else
1761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1762 for as_dir in $PATH
1764 IFS=$as_save_IFS
1765 test -z "$as_dir" && as_dir=.
1766 for ac_exec_ext in '' $ac_executable_extensions; do
1767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1768 ac_cv_prog_ac_ct_CC="cc"
1769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1770 break 2
1772 done
1773 done
1777 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1778 if test -n "$ac_ct_CC"; then
1779 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1780 echo "${ECHO_T}$ac_ct_CC" >&6
1781 else
1782 echo "$as_me:$LINENO: result: no" >&5
1783 echo "${ECHO_T}no" >&6
1786 CC=$ac_ct_CC
1787 else
1788 CC="$ac_cv_prog_CC"
1792 if test -z "$CC"; then
1793 # Extract the first word of "cc", so it can be a program name with args.
1794 set dummy cc; ac_word=$2
1795 echo "$as_me:$LINENO: checking for $ac_word" >&5
1796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1797 if test "${ac_cv_prog_CC+set}" = set; then
1798 echo $ECHO_N "(cached) $ECHO_C" >&6
1799 else
1800 if test -n "$CC"; then
1801 ac_cv_prog_CC="$CC" # Let the user override the test.
1802 else
1803 ac_prog_rejected=no
1804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1805 for as_dir in $PATH
1807 IFS=$as_save_IFS
1808 test -z "$as_dir" && as_dir=.
1809 for ac_exec_ext in '' $ac_executable_extensions; do
1810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1811 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1812 ac_prog_rejected=yes
1813 continue
1815 ac_cv_prog_CC="cc"
1816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1817 break 2
1819 done
1820 done
1822 if test $ac_prog_rejected = yes; then
1823 # We found a bogon in the path, so make sure we never use it.
1824 set dummy $ac_cv_prog_CC
1825 shift
1826 if test $# != 0; then
1827 # We chose a different compiler from the bogus one.
1828 # However, it has the same basename, so the bogon will be chosen
1829 # first if we set CC to just the basename; use the full file name.
1830 shift
1831 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1836 CC=$ac_cv_prog_CC
1837 if test -n "$CC"; then
1838 echo "$as_me:$LINENO: result: $CC" >&5
1839 echo "${ECHO_T}$CC" >&6
1840 else
1841 echo "$as_me:$LINENO: result: no" >&5
1842 echo "${ECHO_T}no" >&6
1846 if test -z "$CC"; then
1847 if test -n "$ac_tool_prefix"; then
1848 for ac_prog in cl
1850 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1851 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1852 echo "$as_me:$LINENO: checking for $ac_word" >&5
1853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1854 if test "${ac_cv_prog_CC+set}" = set; then
1855 echo $ECHO_N "(cached) $ECHO_C" >&6
1856 else
1857 if test -n "$CC"; then
1858 ac_cv_prog_CC="$CC" # Let the user override the test.
1859 else
1860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1861 for as_dir in $PATH
1863 IFS=$as_save_IFS
1864 test -z "$as_dir" && as_dir=.
1865 for ac_exec_ext in '' $ac_executable_extensions; do
1866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1867 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1869 break 2
1871 done
1872 done
1876 CC=$ac_cv_prog_CC
1877 if test -n "$CC"; then
1878 echo "$as_me:$LINENO: result: $CC" >&5
1879 echo "${ECHO_T}$CC" >&6
1880 else
1881 echo "$as_me:$LINENO: result: no" >&5
1882 echo "${ECHO_T}no" >&6
1885 test -n "$CC" && break
1886 done
1888 if test -z "$CC"; then
1889 ac_ct_CC=$CC
1890 for ac_prog in cl
1892 # Extract the first word of "$ac_prog", so it can be a program name with args.
1893 set dummy $ac_prog; ac_word=$2
1894 echo "$as_me:$LINENO: checking for $ac_word" >&5
1895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1896 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1897 echo $ECHO_N "(cached) $ECHO_C" >&6
1898 else
1899 if test -n "$ac_ct_CC"; then
1900 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1901 else
1902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1903 for as_dir in $PATH
1905 IFS=$as_save_IFS
1906 test -z "$as_dir" && as_dir=.
1907 for ac_exec_ext in '' $ac_executable_extensions; do
1908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1909 ac_cv_prog_ac_ct_CC="$ac_prog"
1910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1911 break 2
1913 done
1914 done
1918 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1919 if test -n "$ac_ct_CC"; then
1920 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1921 echo "${ECHO_T}$ac_ct_CC" >&6
1922 else
1923 echo "$as_me:$LINENO: result: no" >&5
1924 echo "${ECHO_T}no" >&6
1927 test -n "$ac_ct_CC" && break
1928 done
1930 CC=$ac_ct_CC
1936 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1937 See \`config.log' for more details." >&5
1938 echo "$as_me: error: no acceptable C compiler found in \$PATH
1939 See \`config.log' for more details." >&2;}
1940 { (exit 1); exit 1; }; }
1942 # Provide some information about the compiler.
1943 echo "$as_me:$LINENO:" \
1944 "checking for C compiler version" >&5
1945 ac_compiler=`set X $ac_compile; echo $2`
1946 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1947 (eval $ac_compiler --version </dev/null >&5) 2>&5
1948 ac_status=$?
1949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1950 (exit $ac_status); }
1951 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1952 (eval $ac_compiler -v </dev/null >&5) 2>&5
1953 ac_status=$?
1954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1955 (exit $ac_status); }
1956 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1957 (eval $ac_compiler -V </dev/null >&5) 2>&5
1958 ac_status=$?
1959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1960 (exit $ac_status); }
1962 cat >conftest.$ac_ext <<_ACEOF
1963 /* confdefs.h. */
1964 _ACEOF
1965 cat confdefs.h >>conftest.$ac_ext
1966 cat >>conftest.$ac_ext <<_ACEOF
1967 /* end confdefs.h. */
1970 main ()
1974 return 0;
1976 _ACEOF
1977 # FIXME: Cleanup?
1978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1979 (eval $ac_link) 2>&5
1980 ac_status=$?
1981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1982 (exit $ac_status); }; then
1983 gcc_no_link=no
1984 else
1985 gcc_no_link=yes
1988 if test x$gcc_no_link = xyes; then
1989 # Setting cross_compile will disable run tests; it will
1990 # also disable AC_CHECK_FILE but that's generally
1991 # correct if we can't link.
1992 cross_compiling=yes
1993 EXEEXT=
1994 else
1995 cat >conftest.$ac_ext <<_ACEOF
1996 /* confdefs.h. */
1997 _ACEOF
1998 cat confdefs.h >>conftest.$ac_ext
1999 cat >>conftest.$ac_ext <<_ACEOF
2000 /* end confdefs.h. */
2003 main ()
2007 return 0;
2009 _ACEOF
2010 ac_clean_files_save=$ac_clean_files
2011 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2012 # Try to create an executable without -o first, disregard a.out.
2013 # It will help us diagnose broken compilers, and finding out an intuition
2014 # of exeext.
2015 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2016 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2017 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2018 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2019 (eval $ac_link_default) 2>&5
2020 ac_status=$?
2021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2022 (exit $ac_status); }; then
2023 # Find the output, starting from the most likely. This scheme is
2024 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2025 # resort.
2027 # Be careful to initialize this variable, since it used to be cached.
2028 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2029 ac_cv_exeext=
2030 # b.out is created by i960 compilers.
2031 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2033 test -f "$ac_file" || continue
2034 case $ac_file in
2035 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2037 conftest.$ac_ext )
2038 # This is the source file.
2040 [ab].out )
2041 # We found the default executable, but exeext='' is most
2042 # certainly right.
2043 break;;
2044 *.* )
2045 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2046 # FIXME: I believe we export ac_cv_exeext for Libtool,
2047 # but it would be cool to find out if it's true. Does anybody
2048 # maintain Libtool? --akim.
2049 export ac_cv_exeext
2050 break;;
2052 break;;
2053 esac
2054 done
2055 else
2056 echo "$as_me: failed program was:" >&5
2057 sed 's/^/| /' conftest.$ac_ext >&5
2059 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2060 See \`config.log' for more details." >&5
2061 echo "$as_me: error: C compiler cannot create executables
2062 See \`config.log' for more details." >&2;}
2063 { (exit 77); exit 77; }; }
2066 ac_exeext=$ac_cv_exeext
2067 echo "$as_me:$LINENO: result: $ac_file" >&5
2068 echo "${ECHO_T}$ac_file" >&6
2070 # Check the compiler produces executables we can run. If not, either
2071 # the compiler is broken, or we cross compile.
2072 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2073 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2074 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2075 # If not cross compiling, check that we can run a simple program.
2076 if test "$cross_compiling" != yes; then
2077 if { ac_try='./$ac_file'
2078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2079 (eval $ac_try) 2>&5
2080 ac_status=$?
2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082 (exit $ac_status); }; }; then
2083 cross_compiling=no
2084 else
2085 if test "$cross_compiling" = maybe; then
2086 cross_compiling=yes
2087 else
2088 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2089 If you meant to cross compile, use \`--host'.
2090 See \`config.log' for more details." >&5
2091 echo "$as_me: error: cannot run C compiled programs.
2092 If you meant to cross compile, use \`--host'.
2093 See \`config.log' for more details." >&2;}
2094 { (exit 1); exit 1; }; }
2098 echo "$as_me:$LINENO: result: yes" >&5
2099 echo "${ECHO_T}yes" >&6
2101 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2102 ac_clean_files=$ac_clean_files_save
2103 # Check the compiler produces executables we can run. If not, either
2104 # the compiler is broken, or we cross compile.
2105 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2106 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2107 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2108 echo "${ECHO_T}$cross_compiling" >&6
2110 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2111 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2113 (eval $ac_link) 2>&5
2114 ac_status=$?
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); }; then
2117 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2118 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2119 # work properly (i.e., refer to `conftest.exe'), while it won't with
2120 # `rm'.
2121 for ac_file in conftest.exe conftest conftest.*; do
2122 test -f "$ac_file" || continue
2123 case $ac_file in
2124 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2125 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2126 export ac_cv_exeext
2127 break;;
2128 * ) break;;
2129 esac
2130 done
2131 else
2132 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2133 See \`config.log' for more details." >&5
2134 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2135 See \`config.log' for more details." >&2;}
2136 { (exit 1); exit 1; }; }
2139 rm -f conftest$ac_cv_exeext
2140 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2141 echo "${ECHO_T}$ac_cv_exeext" >&6
2143 rm -f conftest.$ac_ext
2144 EXEEXT=$ac_cv_exeext
2145 ac_exeext=$EXEEXT
2147 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2148 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2149 if test "${ac_cv_objext+set}" = set; then
2150 echo $ECHO_N "(cached) $ECHO_C" >&6
2151 else
2152 cat >conftest.$ac_ext <<_ACEOF
2153 /* confdefs.h. */
2154 _ACEOF
2155 cat confdefs.h >>conftest.$ac_ext
2156 cat >>conftest.$ac_ext <<_ACEOF
2157 /* end confdefs.h. */
2160 main ()
2164 return 0;
2166 _ACEOF
2167 rm -f conftest.o conftest.obj
2168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2169 (eval $ac_compile) 2>&5
2170 ac_status=$?
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); }; then
2173 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2174 case $ac_file in
2175 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2176 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2177 break;;
2178 esac
2179 done
2180 else
2181 echo "$as_me: failed program was:" >&5
2182 sed 's/^/| /' conftest.$ac_ext >&5
2184 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2185 See \`config.log' for more details." >&5
2186 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2187 See \`config.log' for more details." >&2;}
2188 { (exit 1); exit 1; }; }
2191 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2193 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2194 echo "${ECHO_T}$ac_cv_objext" >&6
2195 OBJEXT=$ac_cv_objext
2196 ac_objext=$OBJEXT
2197 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2198 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2199 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2200 echo $ECHO_N "(cached) $ECHO_C" >&6
2201 else
2202 cat >conftest.$ac_ext <<_ACEOF
2203 /* confdefs.h. */
2204 _ACEOF
2205 cat confdefs.h >>conftest.$ac_ext
2206 cat >>conftest.$ac_ext <<_ACEOF
2207 /* end confdefs.h. */
2210 main ()
2212 #ifndef __GNUC__
2213 choke me
2214 #endif
2217 return 0;
2219 _ACEOF
2220 rm -f conftest.$ac_objext
2221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2222 (eval $ac_compile) 2>conftest.er1
2223 ac_status=$?
2224 grep -v '^ *+' conftest.er1 >conftest.err
2225 rm -f conftest.er1
2226 cat conftest.err >&5
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); } &&
2229 { ac_try='test -z "$ac_c_werror_flag"
2230 || test ! -s conftest.err'
2231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232 (eval $ac_try) 2>&5
2233 ac_status=$?
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; } &&
2236 { ac_try='test -s conftest.$ac_objext'
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238 (eval $ac_try) 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; }; then
2242 ac_compiler_gnu=yes
2243 else
2244 echo "$as_me: failed program was:" >&5
2245 sed 's/^/| /' conftest.$ac_ext >&5
2247 ac_compiler_gnu=no
2249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2250 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2253 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2254 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2255 GCC=`test $ac_compiler_gnu = yes && echo yes`
2256 ac_test_CFLAGS=${CFLAGS+set}
2257 ac_save_CFLAGS=$CFLAGS
2258 CFLAGS="-g"
2259 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2260 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2261 if test "${ac_cv_prog_cc_g+set}" = set; then
2262 echo $ECHO_N "(cached) $ECHO_C" >&6
2263 else
2264 cat >conftest.$ac_ext <<_ACEOF
2265 /* confdefs.h. */
2266 _ACEOF
2267 cat confdefs.h >>conftest.$ac_ext
2268 cat >>conftest.$ac_ext <<_ACEOF
2269 /* end confdefs.h. */
2272 main ()
2276 return 0;
2278 _ACEOF
2279 rm -f conftest.$ac_objext
2280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2281 (eval $ac_compile) 2>conftest.er1
2282 ac_status=$?
2283 grep -v '^ *+' conftest.er1 >conftest.err
2284 rm -f conftest.er1
2285 cat conftest.err >&5
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); } &&
2288 { ac_try='test -z "$ac_c_werror_flag"
2289 || test ! -s conftest.err'
2290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2291 (eval $ac_try) 2>&5
2292 ac_status=$?
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); }; } &&
2295 { ac_try='test -s conftest.$ac_objext'
2296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2297 (eval $ac_try) 2>&5
2298 ac_status=$?
2299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300 (exit $ac_status); }; }; then
2301 ac_cv_prog_cc_g=yes
2302 else
2303 echo "$as_me: failed program was:" >&5
2304 sed 's/^/| /' conftest.$ac_ext >&5
2306 ac_cv_prog_cc_g=no
2308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2310 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2311 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2312 if test "$ac_test_CFLAGS" = set; then
2313 CFLAGS=$ac_save_CFLAGS
2314 elif test $ac_cv_prog_cc_g = yes; then
2315 if test "$GCC" = yes; then
2316 CFLAGS="-g -O2"
2317 else
2318 CFLAGS="-g"
2320 else
2321 if test "$GCC" = yes; then
2322 CFLAGS="-O2"
2323 else
2324 CFLAGS=
2327 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2328 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2329 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2331 else
2332 ac_cv_prog_cc_stdc=no
2333 ac_save_CC=$CC
2334 cat >conftest.$ac_ext <<_ACEOF
2335 /* confdefs.h. */
2336 _ACEOF
2337 cat confdefs.h >>conftest.$ac_ext
2338 cat >>conftest.$ac_ext <<_ACEOF
2339 /* end confdefs.h. */
2340 #include <stdarg.h>
2341 #include <stdio.h>
2342 #include <sys/types.h>
2343 #include <sys/stat.h>
2344 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2345 struct buf { int x; };
2346 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2347 static char *e (p, i)
2348 char **p;
2349 int i;
2351 return p[i];
2353 static char *f (char * (*g) (char **, int), char **p, ...)
2355 char *s;
2356 va_list v;
2357 va_start (v,p);
2358 s = g (p, va_arg (v,int));
2359 va_end (v);
2360 return s;
2363 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2364 function prototypes and stuff, but not '\xHH' hex character constants.
2365 These don't provoke an error unfortunately, instead are silently treated
2366 as 'x'. The following induces an error, until -std1 is added to get
2367 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2368 array size at least. It's necessary to write '\x00'==0 to get something
2369 that's true only with -std1. */
2370 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2372 int test (int i, double x);
2373 struct s1 {int (*f) (int a);};
2374 struct s2 {int (*f) (double a);};
2375 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2376 int argc;
2377 char **argv;
2379 main ()
2381 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2383 return 0;
2385 _ACEOF
2386 # Don't try gcc -ansi; that turns off useful extensions and
2387 # breaks some systems' header files.
2388 # AIX -qlanglvl=ansi
2389 # Ultrix and OSF/1 -std1
2390 # HP-UX 10.20 and later -Ae
2391 # HP-UX older versions -Aa -D_HPUX_SOURCE
2392 # SVR4 -Xc -D__EXTENSIONS__
2393 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2395 CC="$ac_save_CC $ac_arg"
2396 rm -f conftest.$ac_objext
2397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2398 (eval $ac_compile) 2>conftest.er1
2399 ac_status=$?
2400 grep -v '^ *+' conftest.er1 >conftest.err
2401 rm -f conftest.er1
2402 cat conftest.err >&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); } &&
2405 { ac_try='test -z "$ac_c_werror_flag"
2406 || test ! -s conftest.err'
2407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408 (eval $ac_try) 2>&5
2409 ac_status=$?
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; } &&
2412 { ac_try='test -s conftest.$ac_objext'
2413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414 (eval $ac_try) 2>&5
2415 ac_status=$?
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; }; then
2418 ac_cv_prog_cc_stdc=$ac_arg
2419 break
2420 else
2421 echo "$as_me: failed program was:" >&5
2422 sed 's/^/| /' conftest.$ac_ext >&5
2425 rm -f conftest.err conftest.$ac_objext
2426 done
2427 rm -f conftest.$ac_ext conftest.$ac_objext
2428 CC=$ac_save_CC
2432 case "x$ac_cv_prog_cc_stdc" in
2433 x|xno)
2434 echo "$as_me:$LINENO: result: none needed" >&5
2435 echo "${ECHO_T}none needed" >&6 ;;
2437 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2438 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2439 CC="$CC $ac_cv_prog_cc_stdc" ;;
2440 esac
2442 # Some people use a C++ compiler to compile C. Since we use `exit',
2443 # in C++ we need to declare it. In case someone uses the same compiler
2444 # for both compiling C and C++ we need to have the C++ compiler decide
2445 # the declaration of exit, since it's the most demanding environment.
2446 cat >conftest.$ac_ext <<_ACEOF
2447 #ifndef __cplusplus
2448 choke me
2449 #endif
2450 _ACEOF
2451 rm -f conftest.$ac_objext
2452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2453 (eval $ac_compile) 2>conftest.er1
2454 ac_status=$?
2455 grep -v '^ *+' conftest.er1 >conftest.err
2456 rm -f conftest.er1
2457 cat conftest.err >&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); } &&
2460 { ac_try='test -z "$ac_c_werror_flag"
2461 || test ! -s conftest.err'
2462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463 (eval $ac_try) 2>&5
2464 ac_status=$?
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; } &&
2467 { ac_try='test -s conftest.$ac_objext'
2468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2469 (eval $ac_try) 2>&5
2470 ac_status=$?
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }; }; then
2473 for ac_declaration in \
2474 '' \
2475 'extern "C" void std::exit (int) throw (); using std::exit;' \
2476 'extern "C" void std::exit (int); using std::exit;' \
2477 'extern "C" void exit (int) throw ();' \
2478 'extern "C" void exit (int);' \
2479 'void exit (int);'
2481 cat >conftest.$ac_ext <<_ACEOF
2482 /* confdefs.h. */
2483 _ACEOF
2484 cat confdefs.h >>conftest.$ac_ext
2485 cat >>conftest.$ac_ext <<_ACEOF
2486 /* end confdefs.h. */
2487 $ac_declaration
2488 #include <stdlib.h>
2490 main ()
2492 exit (42);
2494 return 0;
2496 _ACEOF
2497 rm -f conftest.$ac_objext
2498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2499 (eval $ac_compile) 2>conftest.er1
2500 ac_status=$?
2501 grep -v '^ *+' conftest.er1 >conftest.err
2502 rm -f conftest.er1
2503 cat conftest.err >&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); } &&
2506 { ac_try='test -z "$ac_c_werror_flag"
2507 || test ! -s conftest.err'
2508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509 (eval $ac_try) 2>&5
2510 ac_status=$?
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; } &&
2513 { ac_try='test -s conftest.$ac_objext'
2514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515 (eval $ac_try) 2>&5
2516 ac_status=$?
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; }; then
2520 else
2521 echo "$as_me: failed program was:" >&5
2522 sed 's/^/| /' conftest.$ac_ext >&5
2524 continue
2526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2527 cat >conftest.$ac_ext <<_ACEOF
2528 /* confdefs.h. */
2529 _ACEOF
2530 cat confdefs.h >>conftest.$ac_ext
2531 cat >>conftest.$ac_ext <<_ACEOF
2532 /* end confdefs.h. */
2533 $ac_declaration
2535 main ()
2537 exit (42);
2539 return 0;
2541 _ACEOF
2542 rm -f conftest.$ac_objext
2543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2544 (eval $ac_compile) 2>conftest.er1
2545 ac_status=$?
2546 grep -v '^ *+' conftest.er1 >conftest.err
2547 rm -f conftest.er1
2548 cat conftest.err >&5
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); } &&
2551 { ac_try='test -z "$ac_c_werror_flag"
2552 || test ! -s conftest.err'
2553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554 (eval $ac_try) 2>&5
2555 ac_status=$?
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); }; } &&
2558 { ac_try='test -s conftest.$ac_objext'
2559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560 (eval $ac_try) 2>&5
2561 ac_status=$?
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }; }; then
2564 break
2565 else
2566 echo "$as_me: failed program was:" >&5
2567 sed 's/^/| /' conftest.$ac_ext >&5
2570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2571 done
2572 rm -f conftest*
2573 if test -n "$ac_declaration"; then
2574 echo '#ifdef __cplusplus' >>confdefs.h
2575 echo $ac_declaration >>confdefs.h
2576 echo '#endif' >>confdefs.h
2579 else
2580 echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.$ac_ext >&5
2584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2585 ac_ext=c
2586 ac_cpp='$CPP $CPPFLAGS'
2587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2591 ac_ext=cc
2592 ac_cpp='$CXXCPP $CPPFLAGS'
2593 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2594 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2595 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2596 if test -n "$ac_tool_prefix"; then
2597 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2599 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2600 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2601 echo "$as_me:$LINENO: checking for $ac_word" >&5
2602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2603 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2604 echo $ECHO_N "(cached) $ECHO_C" >&6
2605 else
2606 if test -n "$CXX"; then
2607 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2608 else
2609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610 for as_dir in $PATH
2612 IFS=$as_save_IFS
2613 test -z "$as_dir" && as_dir=.
2614 for ac_exec_ext in '' $ac_executable_extensions; do
2615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2616 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2618 break 2
2620 done
2621 done
2625 CXX=$glibcxx_cv_prog_CXX
2626 if test -n "$CXX"; then
2627 echo "$as_me:$LINENO: result: $CXX" >&5
2628 echo "${ECHO_T}$CXX" >&6
2629 else
2630 echo "$as_me:$LINENO: result: no" >&5
2631 echo "${ECHO_T}no" >&6
2634 test -n "$CXX" && break
2635 done
2637 if test -z "$CXX"; then
2638 ac_ct_CXX=$CXX
2639 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2641 # Extract the first word of "$ac_prog", so it can be a program name with args.
2642 set dummy $ac_prog; ac_word=$2
2643 echo "$as_me:$LINENO: checking for $ac_word" >&5
2644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2645 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2646 echo $ECHO_N "(cached) $ECHO_C" >&6
2647 else
2648 if test -n "$ac_ct_CXX"; then
2649 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2650 else
2651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652 for as_dir in $PATH
2654 IFS=$as_save_IFS
2655 test -z "$as_dir" && as_dir=.
2656 for ac_exec_ext in '' $ac_executable_extensions; do
2657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2658 ac_cv_prog_ac_ct_CXX="$ac_prog"
2659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2660 break 2
2662 done
2663 done
2667 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2668 if test -n "$ac_ct_CXX"; then
2669 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2670 echo "${ECHO_T}$ac_ct_CXX" >&6
2671 else
2672 echo "$as_me:$LINENO: result: no" >&5
2673 echo "${ECHO_T}no" >&6
2676 test -n "$ac_ct_CXX" && break
2677 done
2678 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2680 CXX=$ac_ct_CXX
2684 # Provide some information about the compiler.
2685 echo "$as_me:$LINENO:" \
2686 "checking for C++ compiler version" >&5
2687 ac_compiler=`set X $ac_compile; echo $2`
2688 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2689 (eval $ac_compiler --version </dev/null >&5) 2>&5
2690 ac_status=$?
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); }
2693 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2694 (eval $ac_compiler -v </dev/null >&5) 2>&5
2695 ac_status=$?
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }
2698 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2699 (eval $ac_compiler -V </dev/null >&5) 2>&5
2700 ac_status=$?
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); }
2704 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2705 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2706 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2707 echo $ECHO_N "(cached) $ECHO_C" >&6
2708 else
2709 cat >conftest.$ac_ext <<_ACEOF
2710 /* confdefs.h. */
2711 _ACEOF
2712 cat confdefs.h >>conftest.$ac_ext
2713 cat >>conftest.$ac_ext <<_ACEOF
2714 /* end confdefs.h. */
2717 main ()
2719 #ifndef __GNUC__
2720 choke me
2721 #endif
2724 return 0;
2726 _ACEOF
2727 rm -f conftest.$ac_objext
2728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2729 (eval $ac_compile) 2>conftest.er1
2730 ac_status=$?
2731 grep -v '^ *+' conftest.er1 >conftest.err
2732 rm -f conftest.er1
2733 cat conftest.err >&5
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); } &&
2736 { ac_try='test -z "$ac_cxx_werror_flag"
2737 || test ! -s conftest.err'
2738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739 (eval $ac_try) 2>&5
2740 ac_status=$?
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); }; } &&
2743 { ac_try='test -s conftest.$ac_objext'
2744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745 (eval $ac_try) 2>&5
2746 ac_status=$?
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }; }; then
2749 ac_compiler_gnu=yes
2750 else
2751 echo "$as_me: failed program was:" >&5
2752 sed 's/^/| /' conftest.$ac_ext >&5
2754 ac_compiler_gnu=no
2756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2757 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2760 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2761 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2762 GXX=`test $ac_compiler_gnu = yes && echo yes`
2763 ac_test_CXXFLAGS=${CXXFLAGS+set}
2764 ac_save_CXXFLAGS=$CXXFLAGS
2765 CXXFLAGS="-g"
2766 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2767 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2768 if test "${ac_cv_prog_cxx_g+set}" = set; then
2769 echo $ECHO_N "(cached) $ECHO_C" >&6
2770 else
2771 cat >conftest.$ac_ext <<_ACEOF
2772 /* confdefs.h. */
2773 _ACEOF
2774 cat confdefs.h >>conftest.$ac_ext
2775 cat >>conftest.$ac_ext <<_ACEOF
2776 /* end confdefs.h. */
2779 main ()
2783 return 0;
2785 _ACEOF
2786 rm -f conftest.$ac_objext
2787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2788 (eval $ac_compile) 2>conftest.er1
2789 ac_status=$?
2790 grep -v '^ *+' conftest.er1 >conftest.err
2791 rm -f conftest.er1
2792 cat conftest.err >&5
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); } &&
2795 { ac_try='test -z "$ac_cxx_werror_flag"
2796 || test ! -s conftest.err'
2797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798 (eval $ac_try) 2>&5
2799 ac_status=$?
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); }; } &&
2802 { ac_try='test -s conftest.$ac_objext'
2803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2804 (eval $ac_try) 2>&5
2805 ac_status=$?
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); }; }; then
2808 ac_cv_prog_cxx_g=yes
2809 else
2810 echo "$as_me: failed program was:" >&5
2811 sed 's/^/| /' conftest.$ac_ext >&5
2813 ac_cv_prog_cxx_g=no
2815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2817 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2818 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2819 if test "$ac_test_CXXFLAGS" = set; then
2820 CXXFLAGS=$ac_save_CXXFLAGS
2821 elif test $ac_cv_prog_cxx_g = yes; then
2822 if test "$GXX" = yes; then
2823 CXXFLAGS="-g -O2"
2824 else
2825 CXXFLAGS="-g"
2827 else
2828 if test "$GXX" = yes; then
2829 CXXFLAGS="-O2"
2830 else
2831 CXXFLAGS=
2834 for ac_declaration in \
2835 '' \
2836 'extern "C" void std::exit (int) throw (); using std::exit;' \
2837 'extern "C" void std::exit (int); using std::exit;' \
2838 'extern "C" void exit (int) throw ();' \
2839 'extern "C" void exit (int);' \
2840 'void exit (int);'
2842 cat >conftest.$ac_ext <<_ACEOF
2843 /* confdefs.h. */
2844 _ACEOF
2845 cat confdefs.h >>conftest.$ac_ext
2846 cat >>conftest.$ac_ext <<_ACEOF
2847 /* end confdefs.h. */
2848 $ac_declaration
2849 #include <stdlib.h>
2851 main ()
2853 exit (42);
2855 return 0;
2857 _ACEOF
2858 rm -f conftest.$ac_objext
2859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2860 (eval $ac_compile) 2>conftest.er1
2861 ac_status=$?
2862 grep -v '^ *+' conftest.er1 >conftest.err
2863 rm -f conftest.er1
2864 cat conftest.err >&5
2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); } &&
2867 { ac_try='test -z "$ac_cxx_werror_flag"
2868 || test ! -s conftest.err'
2869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870 (eval $ac_try) 2>&5
2871 ac_status=$?
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }; } &&
2874 { ac_try='test -s conftest.$ac_objext'
2875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2876 (eval $ac_try) 2>&5
2877 ac_status=$?
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); }; }; then
2881 else
2882 echo "$as_me: failed program was:" >&5
2883 sed 's/^/| /' conftest.$ac_ext >&5
2885 continue
2887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2888 cat >conftest.$ac_ext <<_ACEOF
2889 /* confdefs.h. */
2890 _ACEOF
2891 cat confdefs.h >>conftest.$ac_ext
2892 cat >>conftest.$ac_ext <<_ACEOF
2893 /* end confdefs.h. */
2894 $ac_declaration
2896 main ()
2898 exit (42);
2900 return 0;
2902 _ACEOF
2903 rm -f conftest.$ac_objext
2904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2905 (eval $ac_compile) 2>conftest.er1
2906 ac_status=$?
2907 grep -v '^ *+' conftest.er1 >conftest.err
2908 rm -f conftest.er1
2909 cat conftest.err >&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); } &&
2912 { ac_try='test -z "$ac_cxx_werror_flag"
2913 || test ! -s conftest.err'
2914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2915 (eval $ac_try) 2>&5
2916 ac_status=$?
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); }; } &&
2919 { ac_try='test -s conftest.$ac_objext'
2920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921 (eval $ac_try) 2>&5
2922 ac_status=$?
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }; }; then
2925 break
2926 else
2927 echo "$as_me: failed program was:" >&5
2928 sed 's/^/| /' conftest.$ac_ext >&5
2931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2932 done
2933 rm -f conftest*
2934 if test -n "$ac_declaration"; then
2935 echo '#ifdef __cplusplus' >>confdefs.h
2936 echo $ac_declaration >>confdefs.h
2937 echo '#endif' >>confdefs.h
2940 ac_ext=c
2941 ac_cpp='$CPP $CPPFLAGS'
2942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2946 CXXFLAGS="$save_CXXFLAGS"
2952 am__api_version="1.9"
2953 # Find a good install program. We prefer a C program (faster),
2954 # so one script is as good as another. But avoid the broken or
2955 # incompatible versions:
2956 # SysV /etc/install, /usr/sbin/install
2957 # SunOS /usr/etc/install
2958 # IRIX /sbin/install
2959 # AIX /bin/install
2960 # AmigaOS /C/install, which installs bootblocks on floppy discs
2961 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2962 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2963 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2964 # OS/2's system install, which has a completely different semantic
2965 # ./install, which can be erroneously created by make from ./install.sh.
2966 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2967 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2968 if test -z "$INSTALL"; then
2969 if test "${ac_cv_path_install+set}" = set; then
2970 echo $ECHO_N "(cached) $ECHO_C" >&6
2971 else
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 for as_dir in $PATH
2975 IFS=$as_save_IFS
2976 test -z "$as_dir" && as_dir=.
2977 # Account for people who put trailing slashes in PATH elements.
2978 case $as_dir/ in
2979 ./ | .// | /cC/* | \
2980 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2981 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2982 /usr/ucb/* ) ;;
2984 # OSF1 and SCO ODT 3.0 have their own names for install.
2985 # Don't use installbsd from OSF since it installs stuff as root
2986 # by default.
2987 for ac_prog in ginstall scoinst install; do
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2990 if test $ac_prog = install &&
2991 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2992 # AIX install. It has an incompatible calling convention.
2994 elif test $ac_prog = install &&
2995 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2996 # program-specific install script used by HP pwplus--don't use.
2998 else
2999 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3000 break 3
3003 done
3004 done
3006 esac
3007 done
3011 if test "${ac_cv_path_install+set}" = set; then
3012 INSTALL=$ac_cv_path_install
3013 else
3014 # As a last resort, use the slow shell script. We don't cache a
3015 # path for INSTALL within a source directory, because that will
3016 # break other packages using the cache if that directory is
3017 # removed, or if the path is relative.
3018 INSTALL=$ac_install_sh
3021 echo "$as_me:$LINENO: result: $INSTALL" >&5
3022 echo "${ECHO_T}$INSTALL" >&6
3024 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3025 # It thinks the first close brace ends the variable substitution.
3026 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3028 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3030 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3032 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3033 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3034 # Just in case
3035 sleep 1
3036 echo timestamp > conftest.file
3037 # Do `set' in a subshell so we don't clobber the current shell's
3038 # arguments. Must try -L first in case configure is actually a
3039 # symlink; some systems play weird games with the mod time of symlinks
3040 # (eg FreeBSD returns the mod time of the symlink's containing
3041 # directory).
3042 if (
3043 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3044 if test "$*" = "X"; then
3045 # -L didn't work.
3046 set X `ls -t $srcdir/configure conftest.file`
3048 rm -f conftest.file
3049 if test "$*" != "X $srcdir/configure conftest.file" \
3050 && test "$*" != "X conftest.file $srcdir/configure"; then
3052 # If neither matched, then we have a broken ls. This can happen
3053 # if, for instance, CONFIG_SHELL is bash and it inherits a
3054 # broken ls alias from the environment. This has actually
3055 # happened. Such a system could not be considered "sane".
3056 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3057 alias in your environment" >&5
3058 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3059 alias in your environment" >&2;}
3060 { (exit 1); exit 1; }; }
3063 test "$2" = conftest.file
3065 then
3066 # Ok.
3068 else
3069 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3070 Check your system clock" >&5
3071 echo "$as_me: error: newly created file is older than distributed files!
3072 Check your system clock" >&2;}
3073 { (exit 1); exit 1; }; }
3075 echo "$as_me:$LINENO: result: yes" >&5
3076 echo "${ECHO_T}yes" >&6
3077 test "$program_prefix" != NONE &&
3078 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3079 # Use a double $ so make ignores it.
3080 test "$program_suffix" != NONE &&
3081 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3082 # Double any \ or $. echo might interpret backslashes.
3083 # By default was `s,x,x', remove it if useless.
3084 cat <<\_ACEOF >conftest.sed
3085 s/[\\$]/&&/g;s/;s,x,x,$//
3086 _ACEOF
3087 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3088 rm conftest.sed
3090 # expand $ac_aux_dir to an absolute path
3091 am_aux_dir=`cd $ac_aux_dir && pwd`
3093 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3094 # Use eval to expand $SHELL
3095 if eval "$MISSING --run true"; then
3096 am_missing_run="$MISSING --run "
3097 else
3098 am_missing_run=
3099 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3100 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3103 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3104 # We used to keeping the `.' as first argument, in order to
3105 # allow $(mkdir_p) to be used without argument. As in
3106 # $(mkdir_p) $(somedir)
3107 # where $(somedir) is conditionally defined. However this is wrong
3108 # for two reasons:
3109 # 1. if the package is installed by a user who cannot write `.'
3110 # make install will fail,
3111 # 2. the above comment should most certainly read
3112 # $(mkdir_p) $(DESTDIR)$(somedir)
3113 # so it does not work when $(somedir) is undefined and
3114 # $(DESTDIR) is not.
3115 # To support the latter case, we have to write
3116 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3117 # so the `.' trick is pointless.
3118 mkdir_p='mkdir -p --'
3119 else
3120 # On NextStep and OpenStep, the `mkdir' command does not
3121 # recognize any option. It will interpret all options as
3122 # directories to create, and then abort because `.' already
3123 # exists.
3124 for d in ./-p ./--version;
3126 test -d $d && rmdir $d
3127 done
3128 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3129 if test -f "$ac_aux_dir/mkinstalldirs"; then
3130 mkdir_p='$(mkinstalldirs)'
3131 else
3132 mkdir_p='$(install_sh) -d'
3136 for ac_prog in gawk mawk nawk awk
3138 # Extract the first word of "$ac_prog", so it can be a program name with args.
3139 set dummy $ac_prog; ac_word=$2
3140 echo "$as_me:$LINENO: checking for $ac_word" >&5
3141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3142 if test "${ac_cv_prog_AWK+set}" = set; then
3143 echo $ECHO_N "(cached) $ECHO_C" >&6
3144 else
3145 if test -n "$AWK"; then
3146 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3147 else
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 for as_dir in $PATH
3151 IFS=$as_save_IFS
3152 test -z "$as_dir" && as_dir=.
3153 for ac_exec_ext in '' $ac_executable_extensions; do
3154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3155 ac_cv_prog_AWK="$ac_prog"
3156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3157 break 2
3159 done
3160 done
3164 AWK=$ac_cv_prog_AWK
3165 if test -n "$AWK"; then
3166 echo "$as_me:$LINENO: result: $AWK" >&5
3167 echo "${ECHO_T}$AWK" >&6
3168 else
3169 echo "$as_me:$LINENO: result: no" >&5
3170 echo "${ECHO_T}no" >&6
3173 test -n "$AWK" && break
3174 done
3176 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3177 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3178 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3179 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3180 echo $ECHO_N "(cached) $ECHO_C" >&6
3181 else
3182 cat >conftest.make <<\_ACEOF
3183 all:
3184 @echo 'ac_maketemp="$(MAKE)"'
3185 _ACEOF
3186 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3187 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3188 if test -n "$ac_maketemp"; then
3189 eval ac_cv_prog_make_${ac_make}_set=yes
3190 else
3191 eval ac_cv_prog_make_${ac_make}_set=no
3193 rm -f conftest.make
3195 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3196 echo "$as_me:$LINENO: result: yes" >&5
3197 echo "${ECHO_T}yes" >&6
3198 SET_MAKE=
3199 else
3200 echo "$as_me:$LINENO: result: no" >&5
3201 echo "${ECHO_T}no" >&6
3202 SET_MAKE="MAKE=${MAKE-make}"
3205 rm -rf .tst 2>/dev/null
3206 mkdir .tst 2>/dev/null
3207 if test -d .tst; then
3208 am__leading_dot=.
3209 else
3210 am__leading_dot=_
3212 rmdir .tst 2>/dev/null
3214 DEPDIR="${am__leading_dot}deps"
3216 ac_config_commands="$ac_config_commands depfiles"
3219 am_make=${MAKE-make}
3220 cat > confinc << 'END'
3221 am__doit:
3222 @echo done
3223 .PHONY: am__doit
3225 # If we don't find an include directive, just comment out the code.
3226 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3227 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3228 am__include="#"
3229 am__quote=
3230 _am_result=none
3231 # First try GNU make style include.
3232 echo "include confinc" > confmf
3233 # We grep out `Entering directory' and `Leaving directory'
3234 # messages which can occur if `w' ends up in MAKEFLAGS.
3235 # In particular we don't look at `^make:' because GNU make might
3236 # be invoked under some other name (usually "gmake"), in which
3237 # case it prints its new name instead of `make'.
3238 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3239 am__include=include
3240 am__quote=
3241 _am_result=GNU
3243 # Now try BSD make style include.
3244 if test "$am__include" = "#"; then
3245 echo '.include "confinc"' > confmf
3246 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3247 am__include=.include
3248 am__quote="\""
3249 _am_result=BSD
3254 echo "$as_me:$LINENO: result: $_am_result" >&5
3255 echo "${ECHO_T}$_am_result" >&6
3256 rm -f confinc confmf
3258 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3259 if test "${enable_dependency_tracking+set}" = set; then
3260 enableval="$enable_dependency_tracking"
3263 if test "x$enable_dependency_tracking" != xno; then
3264 am_depcomp="$ac_aux_dir/depcomp"
3265 AMDEPBACKSLASH='\'
3269 if test "x$enable_dependency_tracking" != xno; then
3270 AMDEP_TRUE=
3271 AMDEP_FALSE='#'
3272 else
3273 AMDEP_TRUE='#'
3274 AMDEP_FALSE=
3279 # test to see if srcdir already configured
3280 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3281 test -f $srcdir/config.status; then
3282 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3283 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3284 { (exit 1); exit 1; }; }
3287 # test whether we have cygpath
3288 if test -z "$CYGPATH_W"; then
3289 if (cygpath --version) >/dev/null 2>/dev/null; then
3290 CYGPATH_W='cygpath -w'
3291 else
3292 CYGPATH_W=echo
3297 # Define the identity of the package.
3298 PACKAGE='libjava'
3299 VERSION='version-unused'
3302 cat >>confdefs.h <<_ACEOF
3303 #define PACKAGE "$PACKAGE"
3304 _ACEOF
3307 cat >>confdefs.h <<_ACEOF
3308 #define VERSION "$VERSION"
3309 _ACEOF
3311 # Some tools Automake needs.
3313 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3316 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3319 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3322 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3325 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3327 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3329 # Installed binaries are usually stripped using `strip' when the user
3330 # run `make install-strip'. However `strip' might not be the right
3331 # tool to use in cross-compilation environments, therefore Automake
3332 # will honor the `STRIP' environment variable to overrule this program.
3333 if test "$cross_compiling" != no; then
3334 if test -n "$ac_tool_prefix"; then
3335 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3336 set dummy ${ac_tool_prefix}strip; ac_word=$2
3337 echo "$as_me:$LINENO: checking for $ac_word" >&5
3338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3339 if test "${ac_cv_prog_STRIP+set}" = set; then
3340 echo $ECHO_N "(cached) $ECHO_C" >&6
3341 else
3342 if test -n "$STRIP"; then
3343 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3344 else
3345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346 for as_dir in $PATH
3348 IFS=$as_save_IFS
3349 test -z "$as_dir" && as_dir=.
3350 for ac_exec_ext in '' $ac_executable_extensions; do
3351 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3352 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3354 break 2
3356 done
3357 done
3361 STRIP=$ac_cv_prog_STRIP
3362 if test -n "$STRIP"; then
3363 echo "$as_me:$LINENO: result: $STRIP" >&5
3364 echo "${ECHO_T}$STRIP" >&6
3365 else
3366 echo "$as_me:$LINENO: result: no" >&5
3367 echo "${ECHO_T}no" >&6
3371 if test -z "$ac_cv_prog_STRIP"; then
3372 ac_ct_STRIP=$STRIP
3373 # Extract the first word of "strip", so it can be a program name with args.
3374 set dummy strip; ac_word=$2
3375 echo "$as_me:$LINENO: checking for $ac_word" >&5
3376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3377 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3379 else
3380 if test -n "$ac_ct_STRIP"; then
3381 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3382 else
3383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384 for as_dir in $PATH
3386 IFS=$as_save_IFS
3387 test -z "$as_dir" && as_dir=.
3388 for ac_exec_ext in '' $ac_executable_extensions; do
3389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3390 ac_cv_prog_ac_ct_STRIP="strip"
3391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3392 break 2
3394 done
3395 done
3397 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3400 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3401 if test -n "$ac_ct_STRIP"; then
3402 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3403 echo "${ECHO_T}$ac_ct_STRIP" >&6
3404 else
3405 echo "$as_me:$LINENO: result: no" >&5
3406 echo "${ECHO_T}no" >&6
3409 STRIP=$ac_ct_STRIP
3410 else
3411 STRIP="$ac_cv_prog_STRIP"
3415 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3417 # We need awk for the "check" target. The system "awk" is bad on
3418 # some platforms.
3419 # Always define AMTAR for backward compatibility.
3421 AMTAR=${AMTAR-"${am_missing_run}tar"}
3423 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3428 depcc="$CC" am_compiler_list=
3430 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3431 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3432 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3433 echo $ECHO_N "(cached) $ECHO_C" >&6
3434 else
3435 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3436 # We make a subdir and do the tests there. Otherwise we can end up
3437 # making bogus files that we don't know about and never remove. For
3438 # instance it was reported that on HP-UX the gcc test will end up
3439 # making a dummy file named `D' -- because `-MD' means `put the output
3440 # in D'.
3441 mkdir conftest.dir
3442 # Copy depcomp to subdir because otherwise we won't find it if we're
3443 # using a relative directory.
3444 cp "$am_depcomp" conftest.dir
3445 cd conftest.dir
3446 # We will build objects and dependencies in a subdirectory because
3447 # it helps to detect inapplicable dependency modes. For instance
3448 # both Tru64's cc and ICC support -MD to output dependencies as a
3449 # side effect of compilation, but ICC will put the dependencies in
3450 # the current directory while Tru64 will put them in the object
3451 # directory.
3452 mkdir sub
3454 am_cv_CC_dependencies_compiler_type=none
3455 if test "$am_compiler_list" = ""; then
3456 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3458 for depmode in $am_compiler_list; do
3459 # Setup a source with many dependencies, because some compilers
3460 # like to wrap large dependency lists on column 80 (with \), and
3461 # we should not choose a depcomp mode which is confused by this.
3463 # We need to recreate these files for each test, as the compiler may
3464 # overwrite some of them when testing with obscure command lines.
3465 # This happens at least with the AIX C compiler.
3466 : > sub/conftest.c
3467 for i in 1 2 3 4 5 6; do
3468 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3469 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3470 # Solaris 8's {/usr,}/bin/sh.
3471 touch sub/conftst$i.h
3472 done
3473 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3475 case $depmode in
3476 nosideeffect)
3477 # after this tag, mechanisms are not by side-effect, so they'll
3478 # only be used when explicitly requested
3479 if test "x$enable_dependency_tracking" = xyes; then
3480 continue
3481 else
3482 break
3485 none) break ;;
3486 esac
3487 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3488 # mode. It turns out that the SunPro C++ compiler does not properly
3489 # handle `-M -o', and we need to detect this.
3490 if depmode=$depmode \
3491 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3492 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3493 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3494 >/dev/null 2>conftest.err &&
3495 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3496 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3497 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3498 # icc doesn't choke on unknown options, it will just issue warnings
3499 # or remarks (even with -Werror). So we grep stderr for any message
3500 # that says an option was ignored or not supported.
3501 # When given -MP, icc 7.0 and 7.1 complain thusly:
3502 # icc: Command line warning: ignoring option '-M'; no argument required
3503 # The diagnosis changed in icc 8.0:
3504 # icc: Command line remark: option '-MP' not supported
3505 if (grep 'ignoring option' conftest.err ||
3506 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3507 am_cv_CC_dependencies_compiler_type=$depmode
3508 break
3511 done
3513 cd ..
3514 rm -rf conftest.dir
3515 else
3516 am_cv_CC_dependencies_compiler_type=none
3520 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3521 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3522 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3527 test "x$enable_dependency_tracking" != xno \
3528 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3529 am__fastdepCC_TRUE=
3530 am__fastdepCC_FALSE='#'
3531 else
3532 am__fastdepCC_TRUE='#'
3533 am__fastdepCC_FALSE=
3537 depcc="$CXX" am_compiler_list=
3539 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3540 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3541 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3542 echo $ECHO_N "(cached) $ECHO_C" >&6
3543 else
3544 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3545 # We make a subdir and do the tests there. Otherwise we can end up
3546 # making bogus files that we don't know about and never remove. For
3547 # instance it was reported that on HP-UX the gcc test will end up
3548 # making a dummy file named `D' -- because `-MD' means `put the output
3549 # in D'.
3550 mkdir conftest.dir
3551 # Copy depcomp to subdir because otherwise we won't find it if we're
3552 # using a relative directory.
3553 cp "$am_depcomp" conftest.dir
3554 cd conftest.dir
3555 # We will build objects and dependencies in a subdirectory because
3556 # it helps to detect inapplicable dependency modes. For instance
3557 # both Tru64's cc and ICC support -MD to output dependencies as a
3558 # side effect of compilation, but ICC will put the dependencies in
3559 # the current directory while Tru64 will put them in the object
3560 # directory.
3561 mkdir sub
3563 am_cv_CXX_dependencies_compiler_type=none
3564 if test "$am_compiler_list" = ""; then
3565 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3567 for depmode in $am_compiler_list; do
3568 # Setup a source with many dependencies, because some compilers
3569 # like to wrap large dependency lists on column 80 (with \), and
3570 # we should not choose a depcomp mode which is confused by this.
3572 # We need to recreate these files for each test, as the compiler may
3573 # overwrite some of them when testing with obscure command lines.
3574 # This happens at least with the AIX C compiler.
3575 : > sub/conftest.c
3576 for i in 1 2 3 4 5 6; do
3577 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3578 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3579 # Solaris 8's {/usr,}/bin/sh.
3580 touch sub/conftst$i.h
3581 done
3582 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3584 case $depmode in
3585 nosideeffect)
3586 # after this tag, mechanisms are not by side-effect, so they'll
3587 # only be used when explicitly requested
3588 if test "x$enable_dependency_tracking" = xyes; then
3589 continue
3590 else
3591 break
3594 none) break ;;
3595 esac
3596 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3597 # mode. It turns out that the SunPro C++ compiler does not properly
3598 # handle `-M -o', and we need to detect this.
3599 if depmode=$depmode \
3600 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3601 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3602 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3603 >/dev/null 2>conftest.err &&
3604 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3605 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3606 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3607 # icc doesn't choke on unknown options, it will just issue warnings
3608 # or remarks (even with -Werror). So we grep stderr for any message
3609 # that says an option was ignored or not supported.
3610 # When given -MP, icc 7.0 and 7.1 complain thusly:
3611 # icc: Command line warning: ignoring option '-M'; no argument required
3612 # The diagnosis changed in icc 8.0:
3613 # icc: Command line remark: option '-MP' not supported
3614 if (grep 'ignoring option' conftest.err ||
3615 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3616 am_cv_CXX_dependencies_compiler_type=$depmode
3617 break
3620 done
3622 cd ..
3623 rm -rf conftest.dir
3624 else
3625 am_cv_CXX_dependencies_compiler_type=none
3629 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3630 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3631 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3636 test "x$enable_dependency_tracking" != xno \
3637 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3638 am__fastdepCXX_TRUE=
3639 am__fastdepCXX_FALSE='#'
3640 else
3641 am__fastdepCXX_TRUE='#'
3642 am__fastdepCXX_FALSE=
3648 if test -n "$ac_tool_prefix"; then
3649 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3650 set dummy ${ac_tool_prefix}as; ac_word=$2
3651 echo "$as_me:$LINENO: checking for $ac_word" >&5
3652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3653 if test "${ac_cv_prog_AS+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3655 else
3656 if test -n "$AS"; then
3657 ac_cv_prog_AS="$AS" # Let the user override the test.
3658 else
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 for as_dir in $PATH
3662 IFS=$as_save_IFS
3663 test -z "$as_dir" && as_dir=.
3664 for ac_exec_ext in '' $ac_executable_extensions; do
3665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3666 ac_cv_prog_AS="${ac_tool_prefix}as"
3667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3668 break 2
3670 done
3671 done
3675 AS=$ac_cv_prog_AS
3676 if test -n "$AS"; then
3677 echo "$as_me:$LINENO: result: $AS" >&5
3678 echo "${ECHO_T}$AS" >&6
3679 else
3680 echo "$as_me:$LINENO: result: no" >&5
3681 echo "${ECHO_T}no" >&6
3685 if test -z "$ac_cv_prog_AS"; then
3686 ac_ct_AS=$AS
3687 # Extract the first word of "as", so it can be a program name with args.
3688 set dummy as; ac_word=$2
3689 echo "$as_me:$LINENO: checking for $ac_word" >&5
3690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3691 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3692 echo $ECHO_N "(cached) $ECHO_C" >&6
3693 else
3694 if test -n "$ac_ct_AS"; then
3695 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3696 else
3697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 for as_dir in $PATH
3700 IFS=$as_save_IFS
3701 test -z "$as_dir" && as_dir=.
3702 for ac_exec_ext in '' $ac_executable_extensions; do
3703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3704 ac_cv_prog_ac_ct_AS="as"
3705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3706 break 2
3708 done
3709 done
3713 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3714 if test -n "$ac_ct_AS"; then
3715 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3716 echo "${ECHO_T}$ac_ct_AS" >&6
3717 else
3718 echo "$as_me:$LINENO: result: no" >&5
3719 echo "${ECHO_T}no" >&6
3722 AS=$ac_ct_AS
3723 else
3724 AS="$ac_cv_prog_AS"
3727 if test -n "$ac_tool_prefix"; then
3728 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3729 set dummy ${ac_tool_prefix}ar; ac_word=$2
3730 echo "$as_me:$LINENO: checking for $ac_word" >&5
3731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3732 if test "${ac_cv_prog_AR+set}" = set; then
3733 echo $ECHO_N "(cached) $ECHO_C" >&6
3734 else
3735 if test -n "$AR"; then
3736 ac_cv_prog_AR="$AR" # Let the user override the test.
3737 else
3738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3739 for as_dir in $PATH
3741 IFS=$as_save_IFS
3742 test -z "$as_dir" && as_dir=.
3743 for ac_exec_ext in '' $ac_executable_extensions; do
3744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3745 ac_cv_prog_AR="${ac_tool_prefix}ar"
3746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3747 break 2
3749 done
3750 done
3754 AR=$ac_cv_prog_AR
3755 if test -n "$AR"; then
3756 echo "$as_me:$LINENO: result: $AR" >&5
3757 echo "${ECHO_T}$AR" >&6
3758 else
3759 echo "$as_me:$LINENO: result: no" >&5
3760 echo "${ECHO_T}no" >&6
3764 if test -z "$ac_cv_prog_AR"; then
3765 ac_ct_AR=$AR
3766 # Extract the first word of "ar", so it can be a program name with args.
3767 set dummy ar; ac_word=$2
3768 echo "$as_me:$LINENO: checking for $ac_word" >&5
3769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3770 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3771 echo $ECHO_N "(cached) $ECHO_C" >&6
3772 else
3773 if test -n "$ac_ct_AR"; then
3774 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3775 else
3776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777 for as_dir in $PATH
3779 IFS=$as_save_IFS
3780 test -z "$as_dir" && as_dir=.
3781 for ac_exec_ext in '' $ac_executable_extensions; do
3782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3783 ac_cv_prog_ac_ct_AR="ar"
3784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3785 break 2
3787 done
3788 done
3792 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3793 if test -n "$ac_ct_AR"; then
3794 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3795 echo "${ECHO_T}$ac_ct_AR" >&6
3796 else
3797 echo "$as_me:$LINENO: result: no" >&5
3798 echo "${ECHO_T}no" >&6
3801 AR=$ac_ct_AR
3802 else
3803 AR="$ac_cv_prog_AR"
3806 if test -n "$ac_tool_prefix"; then
3807 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3808 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3809 echo "$as_me:$LINENO: checking for $ac_word" >&5
3810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3811 if test "${ac_cv_prog_RANLIB+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3813 else
3814 if test -n "$RANLIB"; then
3815 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3816 else
3817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3818 for as_dir in $PATH
3820 IFS=$as_save_IFS
3821 test -z "$as_dir" && as_dir=.
3822 for ac_exec_ext in '' $ac_executable_extensions; do
3823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3824 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3826 break 2
3828 done
3829 done
3833 RANLIB=$ac_cv_prog_RANLIB
3834 if test -n "$RANLIB"; then
3835 echo "$as_me:$LINENO: result: $RANLIB" >&5
3836 echo "${ECHO_T}$RANLIB" >&6
3837 else
3838 echo "$as_me:$LINENO: result: no" >&5
3839 echo "${ECHO_T}no" >&6
3843 if test -z "$ac_cv_prog_RANLIB"; then
3844 ac_ct_RANLIB=$RANLIB
3845 # Extract the first word of "ranlib", so it can be a program name with args.
3846 set dummy ranlib; ac_word=$2
3847 echo "$as_me:$LINENO: checking for $ac_word" >&5
3848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3849 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3850 echo $ECHO_N "(cached) $ECHO_C" >&6
3851 else
3852 if test -n "$ac_ct_RANLIB"; then
3853 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3854 else
3855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856 for as_dir in $PATH
3858 IFS=$as_save_IFS
3859 test -z "$as_dir" && as_dir=.
3860 for ac_exec_ext in '' $ac_executable_extensions; do
3861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3862 ac_cv_prog_ac_ct_RANLIB="ranlib"
3863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3864 break 2
3866 done
3867 done
3869 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3872 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3873 if test -n "$ac_ct_RANLIB"; then
3874 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3875 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3876 else
3877 echo "$as_me:$LINENO: result: no" >&5
3878 echo "${ECHO_T}no" >&6
3881 RANLIB=$ac_ct_RANLIB
3882 else
3883 RANLIB="$ac_cv_prog_RANLIB"
3887 # Find a good install program. We prefer a C program (faster),
3888 # so one script is as good as another. But avoid the broken or
3889 # incompatible versions:
3890 # SysV /etc/install, /usr/sbin/install
3891 # SunOS /usr/etc/install
3892 # IRIX /sbin/install
3893 # AIX /bin/install
3894 # AmigaOS /C/install, which installs bootblocks on floppy discs
3895 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3896 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3897 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3898 # OS/2's system install, which has a completely different semantic
3899 # ./install, which can be erroneously created by make from ./install.sh.
3900 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3901 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3902 if test -z "$INSTALL"; then
3903 if test "${ac_cv_path_install+set}" = set; then
3904 echo $ECHO_N "(cached) $ECHO_C" >&6
3905 else
3906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907 for as_dir in $PATH
3909 IFS=$as_save_IFS
3910 test -z "$as_dir" && as_dir=.
3911 # Account for people who put trailing slashes in PATH elements.
3912 case $as_dir/ in
3913 ./ | .// | /cC/* | \
3914 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3915 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3916 /usr/ucb/* ) ;;
3918 # OSF1 and SCO ODT 3.0 have their own names for install.
3919 # Don't use installbsd from OSF since it installs stuff as root
3920 # by default.
3921 for ac_prog in ginstall scoinst install; do
3922 for ac_exec_ext in '' $ac_executable_extensions; do
3923 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3924 if test $ac_prog = install &&
3925 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3926 # AIX install. It has an incompatible calling convention.
3928 elif test $ac_prog = install &&
3929 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3930 # program-specific install script used by HP pwplus--don't use.
3932 else
3933 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3934 break 3
3937 done
3938 done
3940 esac
3941 done
3945 if test "${ac_cv_path_install+set}" = set; then
3946 INSTALL=$ac_cv_path_install
3947 else
3948 # As a last resort, use the slow shell script. We don't cache a
3949 # path for INSTALL within a source directory, because that will
3950 # break other packages using the cache if that directory is
3951 # removed, or if the path is relative.
3952 INSTALL=$ac_install_sh
3955 echo "$as_me:$LINENO: result: $INSTALL" >&5
3956 echo "${ECHO_T}$INSTALL" >&6
3958 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3959 # It thinks the first close brace ends the variable substitution.
3960 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3962 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3964 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3967 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3968 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3969 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3970 if test "${enable_maintainer_mode+set}" = set; then
3971 enableval="$enable_maintainer_mode"
3972 USE_MAINTAINER_MODE=$enableval
3973 else
3974 USE_MAINTAINER_MODE=no
3976 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3977 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3980 if test $USE_MAINTAINER_MODE = yes; then
3981 MAINTAINER_MODE_TRUE=
3982 MAINTAINER_MODE_FALSE='#'
3983 else
3984 MAINTAINER_MODE_TRUE='#'
3985 MAINTAINER_MODE_FALSE=
3988 MAINT=$MAINTAINER_MODE_TRUE
3994 # configure.host sets the following important variables
3995 # libgcj_cflags - host specific C compiler flags
3996 # libgcj_cxxflags - host specific C++ compiler flags
3997 # libgcj_javaflags - host specific Java compiler flags
3999 libgcj_cflags=
4000 libgcj_cxxflags=
4001 libgcj_javaflags=
4003 . ${srcdir}/configure.host
4005 LIBGCJ_CFLAGS="${libgcj_cflags}"
4006 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4007 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4008 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4014 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
4018 # See if the user has requested runtime debugging.
4019 LIBGCJDEBUG="disable"
4021 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
4022 if test "${enable_libgcj_debug+set}" = set; then
4023 enableval="$enable_libgcj_debug"
4024 if test "$enable_libgcj_debug" = yes; then
4026 cat >>confdefs.h <<\_ACEOF
4027 #define DEBUG 1
4028 _ACEOF
4030 LIBGCJDEBUG="enable"
4034 # Determine which AWT peer libraries to build
4035 # Check whether --enable-java-awt or --disable-java-awt was given.
4036 if test "${enable_java_awt+set}" = set; then
4037 enableval="$enable_java_awt"
4041 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
4042 use_xlib_awt=""
4043 use_gtk_awt=""
4044 # The default toolkit to use is the first one specified.
4045 TOOLKIT=
4048 for peer in $peerlibs ; do
4049 case $peer in
4050 xlib)
4051 if test "$no_x" = yes; then
4052 echo "*** xlib peers requested but no X library available" 1>&2
4053 exit 1
4054 else
4055 use_xlib_awt="yes"
4056 if test -z "$TOOLKIT"; then
4057 TOOLKIT=gnu.awt.xlib.XToolkit
4061 gtk)
4062 if test "$no_x" = yes; then
4063 echo "*** xlib peers requested but no X library available" 1>&2
4064 exit 1
4065 else
4066 use_gtk_awt=yes
4067 if test -z "$TOOLKIT"; then
4068 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
4073 use_xlib_awt=
4074 use_gtk_awt=
4075 break
4078 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
4079 exit 1
4080 esac
4081 done
4085 if test "$use_xlib_awt" = yes; then
4086 XLIB_AWT_TRUE=
4087 XLIB_AWT_FALSE='#'
4088 else
4089 XLIB_AWT_TRUE='#'
4090 XLIB_AWT_FALSE=
4095 if test "$use_gtk_awt" = yes; then
4096 GTK_AWT_TRUE=
4097 GTK_AWT_FALSE='#'
4098 else
4099 GTK_AWT_TRUE='#'
4100 GTK_AWT_FALSE=
4104 # Create standard.omit based on decisions we just made.
4105 cp $srcdir/standard.omit.in standard.omit
4106 if test "$use_xlib_awt" != yes; then
4107 echo gnu/awt/xlib >> standard.omit
4108 echo gnu/gcj/xlib >> standard.omit
4110 if test "$use_gtk_awt" != yes; then
4111 echo gnu/java/awt/peer/gtk >> standard.omit
4114 if test -z "${with_multisubdir}"; then
4115 builddotdot=.
4116 else
4117 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
4120 NATIVE=yes
4122 # Which gcj do we use?
4123 which_gcj=default
4124 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
4125 if test -n "${with_cross_host}"; then
4126 # We are being configured with a cross compiler. We can't
4127 # use ac_exeext, because that is for the target platform.
4128 NATIVE=no
4129 cross_host_exeext=
4130 case "${with_cross_host}" in
4131 *mingw* | *cygwin*)
4132 cross_host_exeext=.exe
4134 esac
4135 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
4136 if test x"$build_noncanonical" = x"$with_cross_host"; then
4137 # Ordinary cross (host!=target and host=build)
4138 which_gcj=built
4139 else
4140 # Canadian cross (host!=target and host!=build)
4141 which_gcj=cross
4143 else
4144 which_gcj=cross
4146 else
4147 # We are being configured with a native or crossed-native compiler
4148 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
4149 if test x"$build" = x"$host"; then
4150 # True native build (host=target and host=build)
4151 which_gcj=built
4152 else
4153 # Crossed-native build (host=target and host!=build)
4154 which_gcj=cross
4156 else
4157 which_gcj=path
4160 case "${which_gcj}" in
4161 built)
4162 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
4163 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
4164 ZIP='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/fastjar/fastjar'
4166 cross)
4167 if test "x${with_newlib}" = "xyes"; then
4168 # FIXME (comment): Why is this needed?
4169 GCC_UNWIND_INCLUDE=
4170 GCJ="${target_noncanonical}-gcj"
4171 else
4172 GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
4174 ZIP='$(target_noncanonical)-fastjar'
4175 GCJH='$(target_noncanonical)-gcjh'
4177 path)
4178 GCJ="gcj -B`${PWDCMD-pwd}`/"
4179 ## In this case, gcj is found outside the build tree. However, zip is
4180 ## found in the build tree.
4181 ZIP='$(top_builddir)/$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
4182 GCJH=gcjh
4184 esac
4189 # Create it, so that compile/link tests don't fail
4190 test -f libgcj.spec || touch libgcj.spec
4194 # Set up to configure Classpath.
4195 # FIXME: no supported way to pass args in autoconf.
4196 ac_configure_args="$ac_configure_args --disable-load-library"
4197 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
4198 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
4199 dir1=`cd $srcdir && pwd`
4200 dir2=`pwd`
4201 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
4202 ac_configure_args="$ac_configure_args --disable-core-jni"
4203 ac_configure_args="$ac_configure_args --disable-examples"
4204 ac_configure_args="$ac_configure_args --with-glibj=build"
4205 if test "$use_gtk_awt" != yes; then
4206 ac_configure_args="$ac_configure_args --disable-gtk-peer"
4209 # Only use libltdl for non-newlib builds.
4210 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4211 case $enable_ltdl_convenience in
4212 no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
4213 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
4214 { (exit 1); exit 1; }; } ;;
4215 "") enable_ltdl_convenience=yes
4216 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
4217 esac
4218 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
4219 INCLTDL='-I${top_srcdir}/''libltdl'
4222 DIRLTDL=libltdl
4224 cat >>confdefs.h <<\_ACEOF
4225 #define USE_LTDL 1
4226 _ACEOF
4228 # Sigh. Libtool's macro doesn't do the right thing.
4229 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
4230 # FIXME: this is a hack.
4231 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
4232 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
4237 # Check whether --enable-shared or --disable-shared was given.
4238 if test "${enable_shared+set}" = set; then
4239 enableval="$enable_shared"
4240 p=${PACKAGE-default}
4241 case $enableval in
4242 yes) enable_shared=yes ;;
4243 no) enable_shared=no ;;
4245 enable_shared=no
4246 # Look at the argument we got. We use all the common list separators.
4247 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4248 for pkg in $enableval; do
4249 if test "X$pkg" = "X$p"; then
4250 enable_shared=yes
4252 done
4253 IFS="$ac_save_ifs"
4255 esac
4256 else
4257 enable_shared=yes
4259 # Check whether --enable-static or --disable-static was given.
4260 if test "${enable_static+set}" = set; then
4261 enableval="$enable_static"
4262 p=${PACKAGE-default}
4263 case $enableval in
4264 yes) enable_static=yes ;;
4265 no) enable_static=no ;;
4267 enable_static=no
4268 # Look at the argument we got. We use all the common list separators.
4269 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4270 for pkg in $enableval; do
4271 if test "X$pkg" = "X$p"; then
4272 enable_static=yes
4274 done
4275 IFS="$ac_save_ifs"
4277 esac
4278 else
4279 enable_static=yes
4281 # Check whether --enable-fast-install or --disable-fast-install was given.
4282 if test "${enable_fast_install+set}" = set; then
4283 enableval="$enable_fast_install"
4284 p=${PACKAGE-default}
4285 case $enableval in
4286 yes) enable_fast_install=yes ;;
4287 no) enable_fast_install=no ;;
4289 enable_fast_install=no
4290 # Look at the argument we got. We use all the common list separators.
4291 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4292 for pkg in $enableval; do
4293 if test "X$pkg" = "X$p"; then
4294 enable_fast_install=yes
4296 done
4297 IFS="$ac_save_ifs"
4299 esac
4300 else
4301 enable_fast_install=yes
4304 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4305 if test "${with_gnu_ld+set}" = set; then
4306 withval="$with_gnu_ld"
4307 test "$withval" = no || with_gnu_ld=yes
4308 else
4309 with_gnu_ld=no
4311 ac_prog=ld
4312 if test "$GCC" = yes; then
4313 # Check if gcc -print-prog-name=ld gives a path.
4314 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4315 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4316 case $host in
4317 *-*-mingw*)
4318 # gcc leaves a trailing carriage return which upsets mingw
4319 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4321 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4322 esac
4323 case $ac_prog in
4324 # Accept absolute paths.
4325 [\\/]* | [A-Za-z]:[\\/]*)
4326 re_direlt='/[^/][^/]*/\.\./'
4327 # Canonicalize the path of ld
4328 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4329 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4330 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4331 done
4332 test -z "$LD" && LD="$ac_prog"
4335 # If it fails, then pretend we aren't using GCC.
4336 ac_prog=ld
4339 # If it is relative, then search for the first ld in PATH.
4340 with_gnu_ld=unknown
4342 esac
4343 elif test "$with_gnu_ld" = yes; then
4344 echo "$as_me:$LINENO: checking for GNU ld" >&5
4345 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4346 else
4347 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4348 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4350 if test "${lt_cv_path_LD+set}" = set; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 else
4353 if test -z "$LD"; then
4354 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4355 for ac_dir in $PATH; do
4356 test -z "$ac_dir" && ac_dir=.
4357 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4358 lt_cv_path_LD="$ac_dir/$ac_prog"
4359 # Check to see if the program is GNU ld. I'd rather use --version,
4360 # but apparently some GNU ld's only accept -v.
4361 # Break only if it was the GNU/non-GNU ld that we prefer.
4362 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4363 test "$with_gnu_ld" != no && break
4364 else
4365 test "$with_gnu_ld" != yes && break
4368 done
4369 IFS="$ac_save_ifs"
4370 else
4371 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4375 LD="$lt_cv_path_LD"
4376 if test -n "$LD"; then
4377 echo "$as_me:$LINENO: result: $LD" >&5
4378 echo "${ECHO_T}$LD" >&6
4379 else
4380 echo "$as_me:$LINENO: result: no" >&5
4381 echo "${ECHO_T}no" >&6
4383 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4384 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4385 { (exit 1); exit 1; }; }
4386 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4387 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4388 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4390 else
4391 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4392 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4393 lt_cv_prog_gnu_ld=yes
4394 else
4395 lt_cv_prog_gnu_ld=no
4398 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4399 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4400 with_gnu_ld=$lt_cv_prog_gnu_ld
4403 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4404 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4405 if test "${lt_cv_ld_reload_flag+set}" = set; then
4406 echo $ECHO_N "(cached) $ECHO_C" >&6
4407 else
4408 lt_cv_ld_reload_flag='-r'
4410 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4411 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4412 reload_flag=$lt_cv_ld_reload_flag
4413 test -n "$reload_flag" && reload_flag=" $reload_flag"
4415 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4416 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4417 if test "${lt_cv_path_NM+set}" = set; then
4418 echo $ECHO_N "(cached) $ECHO_C" >&6
4419 else
4420 if test -n "$NM"; then
4421 # Let the user override the test.
4422 lt_cv_path_NM="$NM"
4423 else
4424 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4425 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4426 test -z "$ac_dir" && ac_dir=.
4427 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4428 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4429 # Check to see if the nm accepts a BSD-compat flag.
4430 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4431 # nm: unknown option "B" ignored
4432 # Tru64's nm complains that /dev/null is an invalid object file
4433 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4434 lt_cv_path_NM="$tmp_nm -B"
4435 break
4436 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4437 lt_cv_path_NM="$tmp_nm -p"
4438 break
4439 else
4440 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4441 continue # so that we can try to find one that supports BSD flags
4444 done
4445 IFS="$ac_save_ifs"
4446 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4450 NM="$lt_cv_path_NM"
4451 echo "$as_me:$LINENO: result: $NM" >&5
4452 echo "${ECHO_T}$NM" >&6
4454 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4455 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4456 if test "${lt_cv_deplibs_check_method+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4458 else
4459 lt_cv_file_magic_cmd='$MAGIC_CMD'
4460 lt_cv_file_magic_test_file=
4461 lt_cv_deplibs_check_method='unknown'
4462 # Need to set the preceding variable on all platforms that support
4463 # interlibrary dependencies.
4464 # 'none' -- dependencies not supported.
4465 # `unknown' -- same as none, but documents that we really don't know.
4466 # 'pass_all' -- all dependencies passed with no checks.
4467 # 'test_compile' -- check by making test program.
4468 # 'file_magic [regex]' -- check by looking for files in library path
4469 # which responds to the $file_magic_cmd with a given egrep regex.
4470 # If you have `file' or equivalent on your system and you're not sure
4471 # whether `pass_all' will *always* work, you probably want this one.
4473 case $host_os in
4474 aix*)
4475 lt_cv_deplibs_check_method=pass_all
4478 beos*)
4479 lt_cv_deplibs_check_method=pass_all
4482 bsdi4*)
4483 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4484 lt_cv_file_magic_cmd='/usr/bin/file -L'
4485 lt_cv_file_magic_test_file=/shlib/libc.so
4488 cygwin* | mingw* |pw32*)
4489 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4490 lt_cv_file_magic_cmd='$OBJDUMP -f'
4493 darwin* | rhapsody*)
4494 # this will be overwritten by pass_all, but leave it in just in case
4495 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4496 lt_cv_file_magic_cmd='/usr/bin/file -L'
4497 case "$host_os" in
4498 rhapsody* | darwin1.012)
4499 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
4501 *) # Darwin 1.3 on
4502 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4504 esac
4505 lt_cv_deplibs_check_method=pass_all
4508 freebsd* | kfreebsd*-gnu)
4509 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4510 case $host_cpu in
4511 i*86 )
4512 # Not sure whether the presence of OpenBSD here was a mistake.
4513 # Let's accept both of them until this is cleared up.
4514 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4515 lt_cv_file_magic_cmd=/usr/bin/file
4516 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4518 esac
4519 else
4520 lt_cv_deplibs_check_method=pass_all
4524 gnu*)
4525 lt_cv_deplibs_check_method=pass_all
4528 hpux10.20*|hpux11*)
4529 case $host_cpu in
4530 hppa*)
4531 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4532 lt_cv_file_magic_cmd=/usr/bin/file
4533 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4535 ia64*)
4536 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4537 lt_cv_file_magic_cmd=/usr/bin/file
4538 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4540 esac
4543 irix5* | irix6*)
4544 case $host_os in
4545 irix5*)
4546 # this will be overridden with pass_all, but let us keep it just in case
4547 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4550 case $LD in
4551 *-32|*"-32 ") libmagic=32-bit;;
4552 *-n32|*"-n32 ") libmagic=N32;;
4553 *-64|*"-64 ") libmagic=64-bit;;
4554 *) libmagic=never-match;;
4555 esac
4556 # this will be overridden with pass_all, but let us keep it just in case
4557 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4559 esac
4560 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4561 lt_cv_deplibs_check_method=pass_all
4564 # This must be Linux ELF.
4565 linux-gnu*)
4566 lt_cv_deplibs_check_method=pass_all
4569 netbsd* | knetbsd*-gnu)
4570 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4571 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4572 else
4573 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4577 newsos6)
4578 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4579 lt_cv_file_magic_cmd=/usr/bin/file
4580 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4583 osf3* | osf4* | osf5*)
4584 # this will be overridden with pass_all, but let us keep it just in case
4585 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4586 lt_cv_file_magic_test_file=/shlib/libc.so
4587 lt_cv_deplibs_check_method=pass_all
4590 sco3.2v5*)
4591 lt_cv_deplibs_check_method=pass_all
4594 solaris*)
4595 lt_cv_deplibs_check_method=pass_all
4596 lt_cv_file_magic_test_file=/lib/libc.so
4599 sysv5uw[78]* | sysv4*uw2*)
4600 lt_cv_deplibs_check_method=pass_all
4603 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4604 case $host_vendor in
4605 ncr)
4606 lt_cv_deplibs_check_method=pass_all
4608 motorola)
4609 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]'
4610 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4612 esac
4614 esac
4617 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4618 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4619 file_magic_cmd=$lt_cv_file_magic_cmd
4620 deplibs_check_method=$lt_cv_deplibs_check_method
4625 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4627 # find the maximum length of command line arguments
4628 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4629 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4630 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4631 echo $ECHO_N "(cached) $ECHO_C" >&6
4632 else
4634 teststring="ABCD"
4636 case $build_os in
4637 msdosdjgpp*)
4638 # On DJGPP, this test can blow up pretty badly due to problems in libc
4639 # (any single argument exceeding 2000 bytes causes a buffer overrun
4640 # during glob expansion). Even if it were fixed, the result of this
4641 # check would be larger than it should be.
4642 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4645 cygwin* | mingw*)
4646 # On Win9x/ME, this test blows up -- it succeeds, but takes
4647 # about 5 minutes as the teststring grows exponentially.
4648 # Worse, since 9x/ME are not pre-emptively multitasking,
4649 # you end up with a "frozen" computer, even though with patience
4650 # the test eventually succeeds (with a max line length of 256k).
4651 # Instead, let's just punt: use the minimum linelength reported by
4652 # all of the supported platforms: 8192 (on NT/2K/XP).
4653 lt_cv_sys_max_cmd_len=8192;
4656 amigaos*)
4657 # On AmigaOS with pdksh, this test takes hours, literally.
4658 # So we just punt and use a minimum line length of 8192.
4659 lt_cv_sys_max_cmd_len=8192;
4662 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4663 # This has been around since 386BSD, at least. Likely further.
4664 if test -x /sbin/sysctl; then
4665 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4666 elif test -x /usr/sbin/sysctl; then
4667 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4668 else
4669 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
4671 # And add a safety zone
4672 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4673 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4675 esac
4679 if test -n "$lt_cv_sys_max_cmd_len" ; then
4680 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4681 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4682 else
4683 echo "$as_me:$LINENO: result: none" >&5
4684 echo "${ECHO_T}none" >&6
4688 # Only perform the check for file, if the check method requires it
4689 case $deplibs_check_method in
4690 file_magic*)
4691 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4692 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4693 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4694 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4695 echo $ECHO_N "(cached) $ECHO_C" >&6
4696 else
4697 case $MAGIC_CMD in
4699 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4701 ?:/*)
4702 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4705 ac_save_MAGIC_CMD="$MAGIC_CMD"
4706 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4707 ac_dummy="/usr/bin:$PATH"
4708 for ac_dir in $ac_dummy; do
4709 test -z "$ac_dir" && ac_dir=.
4710 if test -f $ac_dir/${ac_tool_prefix}file; then
4711 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4712 if test -n "$file_magic_test_file"; then
4713 case $deplibs_check_method in
4714 "file_magic "*)
4715 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4716 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4717 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4718 egrep "$file_magic_regex" > /dev/null; then
4720 else
4721 cat <<EOF 1>&2
4723 *** Warning: the command libtool uses to detect shared libraries,
4724 *** $file_magic_cmd, produces output that libtool cannot recognize.
4725 *** The result is that libtool may fail to recognize shared libraries
4726 *** as such. This will affect the creation of libtool libraries that
4727 *** depend on shared libraries, but programs linked with such libtool
4728 *** libraries will work regardless of this problem. Nevertheless, you
4729 *** may want to report the problem to your system manager and/or to
4730 *** bug-libtool@gnu.org
4733 fi ;;
4734 esac
4736 break
4738 done
4739 IFS="$ac_save_ifs"
4740 MAGIC_CMD="$ac_save_MAGIC_CMD"
4742 esac
4745 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4746 if test -n "$MAGIC_CMD"; then
4747 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4748 echo "${ECHO_T}$MAGIC_CMD" >&6
4749 else
4750 echo "$as_me:$LINENO: result: no" >&5
4751 echo "${ECHO_T}no" >&6
4754 if test -z "$lt_cv_path_MAGIC_CMD"; then
4755 if test -n "$ac_tool_prefix"; then
4756 echo "$as_me:$LINENO: checking for file" >&5
4757 echo $ECHO_N "checking for file... $ECHO_C" >&6
4758 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4760 else
4761 case $MAGIC_CMD in
4763 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4765 ?:/*)
4766 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4769 ac_save_MAGIC_CMD="$MAGIC_CMD"
4770 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4771 ac_dummy="/usr/bin:$PATH"
4772 for ac_dir in $ac_dummy; do
4773 test -z "$ac_dir" && ac_dir=.
4774 if test -f $ac_dir/file; then
4775 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4776 if test -n "$file_magic_test_file"; then
4777 case $deplibs_check_method in
4778 "file_magic "*)
4779 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4780 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4781 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4782 egrep "$file_magic_regex" > /dev/null; then
4784 else
4785 cat <<EOF 1>&2
4787 *** Warning: the command libtool uses to detect shared libraries,
4788 *** $file_magic_cmd, produces output that libtool cannot recognize.
4789 *** The result is that libtool may fail to recognize shared libraries
4790 *** as such. This will affect the creation of libtool libraries that
4791 *** depend on shared libraries, but programs linked with such libtool
4792 *** libraries will work regardless of this problem. Nevertheless, you
4793 *** may want to report the problem to your system manager and/or to
4794 *** bug-libtool@gnu.org
4797 fi ;;
4798 esac
4800 break
4802 done
4803 IFS="$ac_save_ifs"
4804 MAGIC_CMD="$ac_save_MAGIC_CMD"
4806 esac
4809 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4810 if test -n "$MAGIC_CMD"; then
4811 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4812 echo "${ECHO_T}$MAGIC_CMD" >&6
4813 else
4814 echo "$as_me:$LINENO: result: no" >&5
4815 echo "${ECHO_T}no" >&6
4818 else
4819 MAGIC_CMD=:
4825 esac
4827 if test -n "$ac_tool_prefix"; then
4828 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4829 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4830 echo "$as_me:$LINENO: checking for $ac_word" >&5
4831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4832 if test "${ac_cv_prog_RANLIB+set}" = set; then
4833 echo $ECHO_N "(cached) $ECHO_C" >&6
4834 else
4835 if test -n "$RANLIB"; then
4836 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4837 else
4838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839 for as_dir in $PATH
4841 IFS=$as_save_IFS
4842 test -z "$as_dir" && as_dir=.
4843 for ac_exec_ext in '' $ac_executable_extensions; do
4844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4845 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4847 break 2
4849 done
4850 done
4854 RANLIB=$ac_cv_prog_RANLIB
4855 if test -n "$RANLIB"; then
4856 echo "$as_me:$LINENO: result: $RANLIB" >&5
4857 echo "${ECHO_T}$RANLIB" >&6
4858 else
4859 echo "$as_me:$LINENO: result: no" >&5
4860 echo "${ECHO_T}no" >&6
4864 if test -z "$ac_cv_prog_RANLIB"; then
4865 ac_ct_RANLIB=$RANLIB
4866 # Extract the first word of "ranlib", so it can be a program name with args.
4867 set dummy ranlib; ac_word=$2
4868 echo "$as_me:$LINENO: checking for $ac_word" >&5
4869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4870 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4871 echo $ECHO_N "(cached) $ECHO_C" >&6
4872 else
4873 if test -n "$ac_ct_RANLIB"; then
4874 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4875 else
4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 for as_dir in $PATH
4879 IFS=$as_save_IFS
4880 test -z "$as_dir" && as_dir=.
4881 for ac_exec_ext in '' $ac_executable_extensions; do
4882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4883 ac_cv_prog_ac_ct_RANLIB="ranlib"
4884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4885 break 2
4887 done
4888 done
4890 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4893 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4894 if test -n "$ac_ct_RANLIB"; then
4895 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4896 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4897 else
4898 echo "$as_me:$LINENO: result: no" >&5
4899 echo "${ECHO_T}no" >&6
4902 RANLIB=$ac_ct_RANLIB
4903 else
4904 RANLIB="$ac_cv_prog_RANLIB"
4907 if test -n "$ac_tool_prefix"; then
4908 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4909 set dummy ${ac_tool_prefix}strip; ac_word=$2
4910 echo "$as_me:$LINENO: checking for $ac_word" >&5
4911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4912 if test "${ac_cv_prog_STRIP+set}" = set; then
4913 echo $ECHO_N "(cached) $ECHO_C" >&6
4914 else
4915 if test -n "$STRIP"; then
4916 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4917 else
4918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4919 for as_dir in $PATH
4921 IFS=$as_save_IFS
4922 test -z "$as_dir" && as_dir=.
4923 for ac_exec_ext in '' $ac_executable_extensions; do
4924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4925 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4927 break 2
4929 done
4930 done
4934 STRIP=$ac_cv_prog_STRIP
4935 if test -n "$STRIP"; then
4936 echo "$as_me:$LINENO: result: $STRIP" >&5
4937 echo "${ECHO_T}$STRIP" >&6
4938 else
4939 echo "$as_me:$LINENO: result: no" >&5
4940 echo "${ECHO_T}no" >&6
4944 if test -z "$ac_cv_prog_STRIP"; then
4945 ac_ct_STRIP=$STRIP
4946 # Extract the first word of "strip", so it can be a program name with args.
4947 set dummy strip; ac_word=$2
4948 echo "$as_me:$LINENO: checking for $ac_word" >&5
4949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4950 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4951 echo $ECHO_N "(cached) $ECHO_C" >&6
4952 else
4953 if test -n "$ac_ct_STRIP"; then
4954 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4955 else
4956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4957 for as_dir in $PATH
4959 IFS=$as_save_IFS
4960 test -z "$as_dir" && as_dir=.
4961 for ac_exec_ext in '' $ac_executable_extensions; do
4962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4963 ac_cv_prog_ac_ct_STRIP="strip"
4964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4965 break 2
4967 done
4968 done
4970 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4973 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4974 if test -n "$ac_ct_STRIP"; then
4975 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4976 echo "${ECHO_T}$ac_ct_STRIP" >&6
4977 else
4978 echo "$as_me:$LINENO: result: no" >&5
4979 echo "${ECHO_T}no" >&6
4982 STRIP=$ac_ct_STRIP
4983 else
4984 STRIP="$ac_cv_prog_STRIP"
4988 # Check for any special flags to pass to ltconfig.
4989 libtool_flags="--cache-file=$cache_file"
4990 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4991 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4992 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4993 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4994 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4997 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4998 if test "${enable_libtool_lock+set}" = set; then
4999 enableval="$enable_libtool_lock"
5002 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
5003 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
5006 # Check whether --with-pic or --without-pic was given.
5007 if test "${with_pic+set}" = set; then
5008 withval="$with_pic"
5009 pic_mode="$withval"
5010 else
5011 pic_mode=default
5013 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
5014 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
5016 # Some flags need to be propagated to the compiler or linker for good
5017 # libtool support.
5018 case $host in
5019 *-*-irix6*)
5020 # Find out which ABI we are using.
5021 echo '#line 5021 "configure"' > conftest.$ac_ext
5022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5023 (eval $ac_compile) 2>&5
5024 ac_status=$?
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); }; then
5027 if test "$lt_cv_prog_gnu_ld" = yes; then
5028 case `/usr/bin/file conftest.$ac_objext` in
5029 *32-bit*)
5030 LD="${LD-ld} -melf32bsmip"
5032 *N32*)
5033 LD="${LD-ld} -melf32bmipn32"
5035 *64-bit*)
5036 LD="${LD-ld} -melf64bmip"
5038 esac
5039 else
5040 case `/usr/bin/file conftest.$ac_objext` in
5041 *32-bit*)
5042 LD="${LD-ld} -32"
5044 *N32*)
5045 LD="${LD-ld} -n32"
5047 *64-bit*)
5048 LD="${LD-ld} -64"
5050 esac
5053 rm -rf conftest*
5056 ia64-*-hpux*)
5057 # Find out which ABI we are using.
5058 echo 'int i;' > conftest.$ac_ext
5059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5060 (eval $ac_compile) 2>&5
5061 ac_status=$?
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); }; then
5064 case "`/usr/bin/file conftest.o`" in
5065 *ELF-32*)
5066 HPUX_IA64_MODE="32"
5068 *ELF-64*)
5069 HPUX_IA64_MODE="64"
5071 esac
5073 rm -rf conftest*
5076 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5077 # Find out which ABI we are using.
5078 echo 'int i;' > conftest.$ac_ext
5079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5080 (eval $ac_compile) 2>&5
5081 ac_status=$?
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); }; then
5084 case "`/usr/bin/file conftest.o`" in
5085 *32-bit*)
5086 case $host in
5087 x86_64-*linux*)
5088 LD="${LD-ld} -m elf_i386"
5090 ppc64-*linux*|powerpc64-*linux*)
5091 LD="${LD-ld} -m elf32ppclinux"
5093 s390x-*linux*)
5094 LD="${LD-ld} -m elf_s390"
5096 sparc64-*linux*)
5097 LD="${LD-ld} -m elf32_sparc"
5099 esac
5101 *64-bit*)
5102 case $host in
5103 x86_64-*linux*)
5104 LD="${LD-ld} -m elf_x86_64"
5106 ppc*-*linux*|powerpc*-*linux*)
5107 LD="${LD-ld} -m elf64ppc"
5109 s390*-*linux*)
5110 LD="${LD-ld} -m elf64_s390"
5112 sparc*-*linux*)
5113 LD="${LD-ld} -m elf64_sparc"
5115 esac
5117 esac
5119 rm -rf conftest*
5122 *-*-sco3.2v5*)
5123 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5124 SAVE_CFLAGS="$CFLAGS"
5125 CFLAGS="$CFLAGS -belf"
5126 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5127 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5128 if test "${lt_cv_cc_needs_belf+set}" = set; then
5129 echo $ECHO_N "(cached) $ECHO_C" >&6
5130 else
5133 ac_ext=c
5134 ac_cpp='$CPP $CPPFLAGS'
5135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5139 if test x$gcc_no_link = xyes; then
5140 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5141 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5142 { (exit 1); exit 1; }; }
5144 cat >conftest.$ac_ext <<_ACEOF
5145 /* confdefs.h. */
5146 _ACEOF
5147 cat confdefs.h >>conftest.$ac_ext
5148 cat >>conftest.$ac_ext <<_ACEOF
5149 /* end confdefs.h. */
5152 main ()
5156 return 0;
5158 _ACEOF
5159 rm -f conftest.$ac_objext conftest$ac_exeext
5160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5161 (eval $ac_link) 2>conftest.er1
5162 ac_status=$?
5163 grep -v '^ *+' conftest.er1 >conftest.err
5164 rm -f conftest.er1
5165 cat conftest.err >&5
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); } &&
5168 { ac_try='test -z "$ac_c_werror_flag"
5169 || test ! -s conftest.err'
5170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5171 (eval $ac_try) 2>&5
5172 ac_status=$?
5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174 (exit $ac_status); }; } &&
5175 { ac_try='test -s conftest$ac_exeext'
5176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5177 (eval $ac_try) 2>&5
5178 ac_status=$?
5179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180 (exit $ac_status); }; }; then
5181 lt_cv_cc_needs_belf=yes
5182 else
5183 echo "$as_me: failed program was:" >&5
5184 sed 's/^/| /' conftest.$ac_ext >&5
5186 lt_cv_cc_needs_belf=no
5188 rm -f conftest.err conftest.$ac_objext \
5189 conftest$ac_exeext conftest.$ac_ext
5190 ac_ext=c
5191 ac_cpp='$CPP $CPPFLAGS'
5192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5197 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5198 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5199 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5200 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5201 CFLAGS="$SAVE_CFLAGS"
5206 esac
5209 # Save cache, so that ltconfig can load it
5210 cat >confcache <<\_ACEOF
5211 # This file is a shell script that caches the results of configure
5212 # tests run on this system so they can be shared between configure
5213 # scripts and configure runs, see configure's option --config-cache.
5214 # It is not useful on other systems. If it contains results you don't
5215 # want to keep, you may remove or edit it.
5217 # config.status only pays attention to the cache file if you give it
5218 # the --recheck option to rerun configure.
5220 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5221 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5222 # following values.
5224 _ACEOF
5226 # The following way of writing the cache mishandles newlines in values,
5227 # but we know of no workaround that is simple, portable, and efficient.
5228 # So, don't put newlines in cache variables' values.
5229 # Ultrix sh set writes to stderr and can't be redirected directly,
5230 # and sets the high bit in the cache file unless we assign to the vars.
5232 (set) 2>&1 |
5233 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5234 *ac_space=\ *)
5235 # `set' does not quote correctly, so add quotes (double-quote
5236 # substitution turns \\\\ into \\, and sed turns \\ into \).
5237 sed -n \
5238 "s/'/'\\\\''/g;
5239 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5242 # `set' quotes correctly as required by POSIX, so do not add quotes.
5243 sed -n \
5244 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5246 esac;
5248 sed '
5249 t clear
5250 : clear
5251 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5252 t end
5253 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5254 : end' >>confcache
5255 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5256 if test -w $cache_file; then
5257 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5258 cat confcache >$cache_file
5259 else
5260 echo "not updating unwritable cache $cache_file"
5263 rm -f confcache
5265 # Actually configure libtool. ac_aux_dir is where install-sh is found.
5266 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
5267 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5268 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5269 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5270 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5271 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
5272 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
5273 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5274 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5275 echo "$as_me: error: libtool configure failed" >&2;}
5276 { (exit 1); exit 1; }; }
5278 # Reload cache, that may have been modified by ltconfig
5279 if test -r "$cache_file"; then
5280 # Some versions of bash will fail to source /dev/null (special
5281 # files actually), so we avoid doing that.
5282 if test -f "$cache_file"; then
5283 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5284 echo "$as_me: loading cache $cache_file" >&6;}
5285 case $cache_file in
5286 [\\/]* | ?:[\\/]* ) . $cache_file;;
5287 *) . ./$cache_file;;
5288 esac
5290 else
5291 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5292 echo "$as_me: creating cache $cache_file" >&6;}
5293 >$cache_file
5297 # This can be used to rebuild libtool when needed
5298 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5300 # Always use our own libtool.
5301 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5303 # Redirect the config.log output again, so that the ltconfig log is not
5304 # clobbered by the next message.
5305 exec 5>>./config.log
5307 ac_ext=cc
5308 ac_cpp='$CXXCPP $CPPFLAGS'
5309 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5310 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5311 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5312 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5313 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5314 if test -z "$CXXCPP"; then
5315 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
5317 else
5318 # Double quotes because CXXCPP needs to be expanded
5319 for CXXCPP in "$CXX -E" "/lib/cpp"
5321 ac_preproc_ok=false
5322 for ac_cxx_preproc_warn_flag in '' yes
5324 # Use a header file that comes with gcc, so configuring glibc
5325 # with a fresh cross-compiler works.
5326 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5327 # <limits.h> exists even on freestanding compilers.
5328 # On the NeXT, cc -E runs the code through the compiler's parser,
5329 # not just through cpp. "Syntax error" is here to catch this case.
5330 cat >conftest.$ac_ext <<_ACEOF
5331 /* confdefs.h. */
5332 _ACEOF
5333 cat confdefs.h >>conftest.$ac_ext
5334 cat >>conftest.$ac_ext <<_ACEOF
5335 /* end confdefs.h. */
5336 #ifdef __STDC__
5337 # include <limits.h>
5338 #else
5339 # include <assert.h>
5340 #endif
5341 Syntax error
5342 _ACEOF
5343 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5344 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5345 ac_status=$?
5346 grep -v '^ *+' conftest.er1 >conftest.err
5347 rm -f conftest.er1
5348 cat conftest.err >&5
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); } >/dev/null; then
5351 if test -s conftest.err; then
5352 ac_cpp_err=$ac_cxx_preproc_warn_flag
5353 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5354 else
5355 ac_cpp_err=
5357 else
5358 ac_cpp_err=yes
5360 if test -z "$ac_cpp_err"; then
5362 else
5363 echo "$as_me: failed program was:" >&5
5364 sed 's/^/| /' conftest.$ac_ext >&5
5366 # Broken: fails on valid input.
5367 continue
5369 rm -f conftest.err conftest.$ac_ext
5371 # OK, works on sane cases. Now check whether non-existent headers
5372 # can be detected and how.
5373 cat >conftest.$ac_ext <<_ACEOF
5374 /* confdefs.h. */
5375 _ACEOF
5376 cat confdefs.h >>conftest.$ac_ext
5377 cat >>conftest.$ac_ext <<_ACEOF
5378 /* end confdefs.h. */
5379 #include <ac_nonexistent.h>
5380 _ACEOF
5381 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5382 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5383 ac_status=$?
5384 grep -v '^ *+' conftest.er1 >conftest.err
5385 rm -f conftest.er1
5386 cat conftest.err >&5
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); } >/dev/null; then
5389 if test -s conftest.err; then
5390 ac_cpp_err=$ac_cxx_preproc_warn_flag
5391 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5392 else
5393 ac_cpp_err=
5395 else
5396 ac_cpp_err=yes
5398 if test -z "$ac_cpp_err"; then
5399 # Broken: success on invalid input.
5400 continue
5401 else
5402 echo "$as_me: failed program was:" >&5
5403 sed 's/^/| /' conftest.$ac_ext >&5
5405 # Passes both tests.
5406 ac_preproc_ok=:
5407 break
5409 rm -f conftest.err conftest.$ac_ext
5411 done
5412 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5413 rm -f conftest.err conftest.$ac_ext
5414 if $ac_preproc_ok; then
5415 break
5418 done
5419 ac_cv_prog_CXXCPP=$CXXCPP
5422 CXXCPP=$ac_cv_prog_CXXCPP
5423 else
5424 ac_cv_prog_CXXCPP=$CXXCPP
5426 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5427 echo "${ECHO_T}$CXXCPP" >&6
5428 ac_preproc_ok=false
5429 for ac_cxx_preproc_warn_flag in '' yes
5431 # Use a header file that comes with gcc, so configuring glibc
5432 # with a fresh cross-compiler works.
5433 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5434 # <limits.h> exists even on freestanding compilers.
5435 # On the NeXT, cc -E runs the code through the compiler's parser,
5436 # not just through cpp. "Syntax error" is here to catch this case.
5437 cat >conftest.$ac_ext <<_ACEOF
5438 /* confdefs.h. */
5439 _ACEOF
5440 cat confdefs.h >>conftest.$ac_ext
5441 cat >>conftest.$ac_ext <<_ACEOF
5442 /* end confdefs.h. */
5443 #ifdef __STDC__
5444 # include <limits.h>
5445 #else
5446 # include <assert.h>
5447 #endif
5448 Syntax error
5449 _ACEOF
5450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5452 ac_status=$?
5453 grep -v '^ *+' conftest.er1 >conftest.err
5454 rm -f conftest.er1
5455 cat conftest.err >&5
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); } >/dev/null; then
5458 if test -s conftest.err; then
5459 ac_cpp_err=$ac_cxx_preproc_warn_flag
5460 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5461 else
5462 ac_cpp_err=
5464 else
5465 ac_cpp_err=yes
5467 if test -z "$ac_cpp_err"; then
5469 else
5470 echo "$as_me: failed program was:" >&5
5471 sed 's/^/| /' conftest.$ac_ext >&5
5473 # Broken: fails on valid input.
5474 continue
5476 rm -f conftest.err conftest.$ac_ext
5478 # OK, works on sane cases. Now check whether non-existent headers
5479 # can be detected and how.
5480 cat >conftest.$ac_ext <<_ACEOF
5481 /* confdefs.h. */
5482 _ACEOF
5483 cat confdefs.h >>conftest.$ac_ext
5484 cat >>conftest.$ac_ext <<_ACEOF
5485 /* end confdefs.h. */
5486 #include <ac_nonexistent.h>
5487 _ACEOF
5488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5490 ac_status=$?
5491 grep -v '^ *+' conftest.er1 >conftest.err
5492 rm -f conftest.er1
5493 cat conftest.err >&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); } >/dev/null; then
5496 if test -s conftest.err; then
5497 ac_cpp_err=$ac_cxx_preproc_warn_flag
5498 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5499 else
5500 ac_cpp_err=
5502 else
5503 ac_cpp_err=yes
5505 if test -z "$ac_cpp_err"; then
5506 # Broken: success on invalid input.
5507 continue
5508 else
5509 echo "$as_me: failed program was:" >&5
5510 sed 's/^/| /' conftest.$ac_ext >&5
5512 # Passes both tests.
5513 ac_preproc_ok=:
5514 break
5516 rm -f conftest.err conftest.$ac_ext
5518 done
5519 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5520 rm -f conftest.err conftest.$ac_ext
5521 if $ac_preproc_ok; then
5523 else
5524 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5525 See \`config.log' for more details." >&5
5526 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5527 See \`config.log' for more details." >&2;}
5528 { (exit 1); exit 1; }; }
5531 ac_ext=c
5532 ac_cpp='$CPP $CPPFLAGS'
5533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5539 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
5540 lt_save_CC="$CC"
5541 lt_save_CFLAGS="$CFLAGS"
5542 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
5543 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5544 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5545 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5546 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5547 deplibs_check_method="$deplibs_check_method" \
5548 file_magic_cmd="$file_magic_cmd" \
5549 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5550 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
5551 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5552 echo "$as_me: error: libtool tag configuration failed" >&2;}
5553 { (exit 1); exit 1; }; }
5554 CC="$lt_save_CC"
5555 CFLAGS="$lt_save_CFLAGS"
5557 # Redirect the config.log output again, so that the ltconfig log is not
5558 # clobbered by the next message.
5559 exec 5>>./config.log
5567 for ac_prog in gcj
5569 # Extract the first word of "$ac_prog", so it can be a program name with args.
5570 set dummy $ac_prog; ac_word=$2
5571 echo "$as_me:$LINENO: checking for $ac_word" >&5
5572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5573 if test "${ac_cv_prog_GCJ+set}" = set; then
5574 echo $ECHO_N "(cached) $ECHO_C" >&6
5575 else
5576 if test -n "$GCJ"; then
5577 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5578 else
5579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5580 for as_dir in $PATH
5582 IFS=$as_save_IFS
5583 test -z "$as_dir" && as_dir=.
5584 for ac_exec_ext in '' $ac_executable_extensions; do
5585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5586 ac_cv_prog_GCJ="$ac_prog"
5587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5588 break 2
5590 done
5591 done
5595 GCJ=$ac_cv_prog_GCJ
5596 if test -n "$GCJ"; then
5597 echo "$as_me:$LINENO: result: $GCJ" >&5
5598 echo "${ECHO_T}$GCJ" >&6
5599 else
5600 echo "$as_me:$LINENO: result: no" >&5
5601 echo "${ECHO_T}no" >&6
5604 test -n "$GCJ" && break
5605 done
5606 test -n "$GCJ" || GCJ="gcj"
5608 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
5609 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
5610 { (exit 1); exit 1; }; }
5611 if test "x${GCJFLAGS-unset}" = xunset; then
5612 GCJFLAGS="-g -O2"
5616 depcc="$GCJ" am_compiler_list='gcc3 gcc'
5618 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5619 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5620 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
5621 echo $ECHO_N "(cached) $ECHO_C" >&6
5622 else
5623 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5624 # We make a subdir and do the tests there. Otherwise we can end up
5625 # making bogus files that we don't know about and never remove. For
5626 # instance it was reported that on HP-UX the gcc test will end up
5627 # making a dummy file named `D' -- because `-MD' means `put the output
5628 # in D'.
5629 mkdir conftest.dir
5630 # Copy depcomp to subdir because otherwise we won't find it if we're
5631 # using a relative directory.
5632 cp "$am_depcomp" conftest.dir
5633 cd conftest.dir
5634 # We will build objects and dependencies in a subdirectory because
5635 # it helps to detect inapplicable dependency modes. For instance
5636 # both Tru64's cc and ICC support -MD to output dependencies as a
5637 # side effect of compilation, but ICC will put the dependencies in
5638 # the current directory while Tru64 will put them in the object
5639 # directory.
5640 mkdir sub
5642 am_cv_GCJ_dependencies_compiler_type=none
5643 if test "$am_compiler_list" = ""; then
5644 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5646 for depmode in $am_compiler_list; do
5647 # Setup a source with many dependencies, because some compilers
5648 # like to wrap large dependency lists on column 80 (with \), and
5649 # we should not choose a depcomp mode which is confused by this.
5651 # We need to recreate these files for each test, as the compiler may
5652 # overwrite some of them when testing with obscure command lines.
5653 # This happens at least with the AIX C compiler.
5654 : > sub/conftest.c
5655 for i in 1 2 3 4 5 6; do
5656 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5657 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5658 # Solaris 8's {/usr,}/bin/sh.
5659 touch sub/conftst$i.h
5660 done
5661 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5663 case $depmode in
5664 nosideeffect)
5665 # after this tag, mechanisms are not by side-effect, so they'll
5666 # only be used when explicitly requested
5667 if test "x$enable_dependency_tracking" = xyes; then
5668 continue
5669 else
5670 break
5673 none) break ;;
5674 esac
5675 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5676 # mode. It turns out that the SunPro C++ compiler does not properly
5677 # handle `-M -o', and we need to detect this.
5678 if depmode=$depmode \
5679 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5680 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5681 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5682 >/dev/null 2>conftest.err &&
5683 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5684 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5685 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5686 # icc doesn't choke on unknown options, it will just issue warnings
5687 # or remarks (even with -Werror). So we grep stderr for any message
5688 # that says an option was ignored or not supported.
5689 # When given -MP, icc 7.0 and 7.1 complain thusly:
5690 # icc: Command line warning: ignoring option '-M'; no argument required
5691 # The diagnosis changed in icc 8.0:
5692 # icc: Command line remark: option '-MP' not supported
5693 if (grep 'ignoring option' conftest.err ||
5694 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5695 am_cv_GCJ_dependencies_compiler_type=$depmode
5696 break
5699 done
5701 cd ..
5702 rm -rf conftest.dir
5703 else
5704 am_cv_GCJ_dependencies_compiler_type=none
5708 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
5709 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
5710 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
5715 test "x$enable_dependency_tracking" != xno \
5716 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
5717 am__fastdepGCJ_TRUE=
5718 am__fastdepGCJ_FALSE='#'
5719 else
5720 am__fastdepGCJ_TRUE='#'
5721 am__fastdepGCJ_FALSE=
5727 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
5728 lt_save_CC="$CC"
5729 lt_save_CFLAGS="$CFLAGS"
5730 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
5731 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5732 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5733 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5734 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5735 deplibs_check_method="$deplibs_check_method" \
5736 file_magic_cmd="$file_magic_cmd" \
5737 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5738 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
5739 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5740 echo "$as_me: error: libtool tag configuration failed" >&2;}
5741 { (exit 1); exit 1; }; }
5742 CC="$lt_save_CC"
5743 CFLAGS="$lt_save_CFLAGS"
5745 # Redirect the config.log output again, so that the ltconfig log is not
5746 # clobbered by the next message.
5747 exec 5>>./config.log
5751 if test "x$CC" != xcc; then
5752 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5753 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
5754 else
5755 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5756 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
5758 set dummy $CC; ac_cc=`echo $2 |
5759 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5760 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
5761 echo $ECHO_N "(cached) $ECHO_C" >&6
5762 else
5763 cat >conftest.$ac_ext <<_ACEOF
5764 /* confdefs.h. */
5765 _ACEOF
5766 cat confdefs.h >>conftest.$ac_ext
5767 cat >>conftest.$ac_ext <<_ACEOF
5768 /* end confdefs.h. */
5771 main ()
5775 return 0;
5777 _ACEOF
5778 # Make sure it works both with $CC and with simple cc.
5779 # We do the test twice because some compilers refuse to overwrite an
5780 # existing .o file with -o, though they will create one.
5781 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5782 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5783 (eval $ac_try) 2>&5
5784 ac_status=$?
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); } &&
5787 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5788 (eval $ac_try) 2>&5
5789 ac_status=$?
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); };
5792 then
5793 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5794 if test "x$CC" != xcc; then
5795 # Test first that cc exists at all.
5796 if { ac_try='cc -c conftest.$ac_ext >&5'
5797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5798 (eval $ac_try) 2>&5
5799 ac_status=$?
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); }; }; then
5802 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5803 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5804 (eval $ac_try) 2>&5
5805 ac_status=$?
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); } &&
5808 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5809 (eval $ac_try) 2>&5
5810 ac_status=$?
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); };
5813 then
5814 # cc works too.
5816 else
5817 # cc exists but doesn't like -o.
5818 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5822 else
5823 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5825 rm -f conftest*
5828 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
5829 echo "$as_me:$LINENO: result: yes" >&5
5830 echo "${ECHO_T}yes" >&6
5831 else
5832 echo "$as_me:$LINENO: result: no" >&5
5833 echo "${ECHO_T}no" >&6
5835 cat >>confdefs.h <<\_ACEOF
5836 #define NO_MINUS_C_MINUS_O 1
5837 _ACEOF
5841 # FIXME: we rely on the cache variable name because
5842 # there is no other way.
5843 set dummy $CC
5844 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5845 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
5846 # Losing compiler, so override with the script.
5847 # FIXME: It is wrong to rewrite CC.
5848 # But if we don't then we get into trouble of one sort or another.
5849 # A longer-term fix would be to have automake use am__CC in this case,
5850 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5851 CC="$am_aux_dir/compile $CC"
5857 subdirs="$subdirs classpath libltdl"
5860 # The -no-testsuite modules omit the test subdir.
5863 if test -d $srcdir/testsuite; then
5864 TESTSUBDIR_TRUE=
5865 TESTSUBDIR_FALSE='#'
5866 else
5867 TESTSUBDIR_TRUE='#'
5868 TESTSUBDIR_FALSE=
5872 # Should the runtime set system properties by examining the
5873 # environment variable GCJ_PROPERTIES?
5874 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
5875 if test "${enable_getenv_properties+set}" = set; then
5876 enableval="$enable_getenv_properties"
5880 # Whether GCJ_PROPERTIES is used depends on the target.
5881 if test -z "$enable_getenv_properties"; then
5882 enable_getenv_properties=${enable_getenv_properties_default-yes}
5884 if test "$enable_getenv_properties" = no; then
5886 cat >>confdefs.h <<\_ACEOF
5887 #define DISABLE_GETENV_PROPERTIES 1
5888 _ACEOF
5892 # Whether we should use arguments to main()
5893 if test -z "$enable_main_args"; then
5894 enable_main_args=${enable_main_args_default-yes}
5896 if test "$enable_main_args" = no; then
5898 cat >>confdefs.h <<\_ACEOF
5899 #define DISABLE_MAIN_ARGS 1
5900 _ACEOF
5905 # Should we use hashtable-based synchronization?
5906 # Currently works only for Linux X86/ia64
5907 # Typically faster and more space-efficient
5908 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
5909 if test "${enable_hash_synchronization+set}" = set; then
5910 enableval="$enable_hash_synchronization"
5914 if test -z "$enable_hash_synchronization"; then
5915 enable_hash_synchronization=$enable_hash_synchronization_default
5919 # Check whether --with-java-home or --without-java-home was given.
5920 if test "${with_java_home+set}" = set; then
5921 withval="$with_java_home"
5922 JAVA_HOME="${withval}"
5923 else
5924 JAVA_HOME=""
5928 if test ! -z "$JAVA_HOME"; then
5929 JAVA_HOME_SET_TRUE=
5930 JAVA_HOME_SET_FALSE='#'
5931 else
5932 JAVA_HOME_SET_TRUE='#'
5933 JAVA_HOME_SET_FALSE=
5938 # What is the native OS API for MinGW?
5940 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
5941 if test "${with_win32_nlsapi+set}" = set; then
5942 withval="$with_win32_nlsapi"
5943 case "${withval}" in
5944 ansi) with_win32_nlsapi=ansi ;;
5945 unicows) with_win32_nlsapi=unicows ;;
5946 unicode) with_win32_nlsapi=unicode ;;
5947 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
5948 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
5949 { (exit 1); exit 1; }; } ;;
5950 esac
5951 else
5952 with_win32_nlsapi=ansi
5955 case "${with_win32_nlsapi}" in
5956 unicows | unicode)
5958 cat >>confdefs.h <<\_ACEOF
5959 #define MINGW_LIBGCJ_UNICODE 1
5960 _ACEOF
5963 esac
5965 # configure.host sets slow_pthread_self if the synchronization code should
5966 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
5967 if test "${slow_pthread_self}" = "yes"; then
5969 cat >>confdefs.h <<\_ACEOF
5970 #define SLOW_PTHREAD_SELF 1
5971 _ACEOF
5975 # Check for gc debugging. This option is handled both here and in the GC.
5976 # Check whether --enable-gc-debug or --disable-gc-debug was given.
5977 if test "${enable_gc_debug+set}" = set; then
5978 enableval="$enable_gc_debug"
5979 if test "$enable_gc_debug" = "yes"; then
5981 cat >>confdefs.h <<\_ACEOF
5982 #define LIBGCJ_GC_DEBUG 1
5983 _ACEOF
5988 # See if the user has the interpreter included.
5989 # Check whether --enable-interpreter or --disable-interpreter was given.
5990 if test "${enable_interpreter+set}" = set; then
5991 enableval="$enable_interpreter"
5992 if test "$enable_interpreter" = yes; then
5993 # This can also be set in configure.host.
5994 libgcj_interpreter=yes
5995 elif test "$enable_interpreter" = no; then
5996 libgcj_interpreter=no
6000 if test "$libgcj_interpreter" = yes; then
6002 cat >>confdefs.h <<\_ACEOF
6003 #define INTERPRETER 1
6004 _ACEOF
6007 INTERPRETER="$libgcj_interpreter"
6010 echo "$as_me:$LINENO: checking for exception model to use" >&5
6011 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
6012 ac_ext=cc
6013 ac_cpp='$CXXCPP $CPPFLAGS'
6014 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6015 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6016 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6018 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
6019 if test "${enable_sjlj_exceptions+set}" = set; then
6020 enableval="$enable_sjlj_exceptions"
6022 else
6023 cat > conftest.$ac_ext << EOF
6024 #line 6024 "configure"
6025 struct S { ~S(); };
6026 void bar();
6027 void foo()
6029 S s;
6030 bar();
6033 old_CXXFLAGS="$CXXFLAGS"
6034 CXXFLAGS=-S
6035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6036 (eval $ac_compile) 2>&5
6037 ac_status=$?
6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); }; then
6040 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
6041 enable_sjlj_exceptions=yes
6042 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
6043 enable_sjlj_exceptions=no
6046 CXXFLAGS="$old_CXXFLAGS"
6047 rm -f conftest*
6049 if test x$enable_sjlj_exceptions = xyes; then
6051 cat >>confdefs.h <<\_ACEOF
6052 #define SJLJ_EXCEPTIONS 1
6053 _ACEOF
6055 ac_exception_model_name=sjlj
6056 elif test x$enable_sjlj_exceptions = xno; then
6057 ac_exception_model_name="call frame"
6058 else
6059 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
6060 echo "$as_me: error: unable to detect exception model" >&2;}
6061 { (exit 1); exit 1; }; }
6063 ac_ext=c
6064 ac_cpp='$CPP $CPPFLAGS'
6065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6069 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
6070 echo "${ECHO_T}$ac_exception_model_name" >&6
6072 # If we are non using SJLJ exceptions, and this host does not have support
6073 # for unwinding from a signal handler, enable checked dereferences and divides.
6074 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
6075 CHECKREFSPEC=-fcheck-references
6076 DIVIDESPEC=-fuse-divide-subroutine
6077 EXCEPTIONSPEC=
6080 # See if the user wants to disable java.net. This is the mildly
6081 # ugly way that we admit that target-side configuration sucks.
6082 # Check whether --enable-java-net or --disable-java-net was given.
6083 if test "${enable_java_net+set}" = set; then
6084 enableval="$enable_java_net"
6088 # Whether java.net is built by default can depend on the target.
6089 if test -z "$enable_java_net"; then
6090 enable_java_net=${enable_java_net_default-yes}
6092 if test "$enable_java_net" = no; then
6094 cat >>confdefs.h <<\_ACEOF
6095 #define DISABLE_JAVA_NET 1
6096 _ACEOF
6100 # See if the user wants to configure without libffi. Some
6101 # architectures don't support it, and default values are set in
6102 # configure.host.
6104 # Check whether --with-libffi or --without-libffi was given.
6105 if test "${with_libffi+set}" = set; then
6106 withval="$with_libffi"
6108 else
6109 with_libffi=${with_libffi_default-yes}
6112 LIBFFI=
6113 LIBFFIINCS=
6114 if test "$with_libffi" != no; then
6116 cat >>confdefs.h <<\_ACEOF
6117 #define USE_LIBFFI 1
6118 _ACEOF
6120 LIBFFI=../libffi/libffi_convenience.la
6121 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
6126 # See if the user wants to disable JVMPI support.
6127 # Check whether --enable-jvmpi or --disable-jvmpi was given.
6128 if test "${enable_jvmpi+set}" = set; then
6129 enableval="$enable_jvmpi"
6133 if test "$enable_jvmpi" != no; then
6135 cat >>confdefs.h <<\_ACEOF
6136 #define ENABLE_JVMPI 1
6137 _ACEOF
6141 # If the target is an eCos system, use the appropriate eCos
6142 # I/O routines.
6143 # FIXME: this should not be a local option but a global target
6144 # system; at present there is no eCos target.
6145 TARGET_ECOS=${PROCESS-"no"}
6147 # Check whether --with-ecos or --without-ecos was given.
6148 if test "${with_ecos+set}" = set; then
6149 withval="$with_ecos"
6150 TARGET_ECOS="$with_ecos"
6154 supply_backtrace=no
6156 PLATFORM_INNER_NAT_HDRS=
6157 case "$TARGET_ECOS" in
6158 no) case "$host" in
6159 *mingw*)
6160 PLATFORM=Win32
6161 PLATFORMNET=Win32
6162 PLATFORMH=win32.h
6164 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
6165 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
6166 LD_PROG=`$CC --print-prog-name=ld`
6167 LD_VERSION=`$LD_PROG --version`
6168 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
6169 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
6170 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
6171 LD_OK="ok"
6172 else
6173 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
6174 LD_OK="ok"
6177 if test "x$LD_OK" != x; then
6178 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
6179 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
6180 else
6181 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
6182 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
6183 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
6184 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
6186 cat >>confdefs.h <<\_ACEOF
6187 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
6188 _ACEOF
6193 PLATFORM=Posix
6194 PLATFORMNET=Posix
6195 PLATFORMH=posix.h
6196 PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
6198 esac
6201 PLATFORM=Ecos
6202 PLATFORMNET=NoNet
6204 cat >>confdefs.h <<\_ACEOF
6205 #define ECOS 1
6206 _ACEOF
6208 PLATFORMH=posix.h
6210 esac
6212 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
6215 ac_ext=c
6216 ac_cpp='$CPP $CPPFLAGS'
6217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6220 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6221 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6222 # On Suns, sometimes $CPP names a directory.
6223 if test -n "$CPP" && test -d "$CPP"; then
6224 CPP=
6226 if test -z "$CPP"; then
6227 if test "${ac_cv_prog_CPP+set}" = set; then
6228 echo $ECHO_N "(cached) $ECHO_C" >&6
6229 else
6230 # Double quotes because CPP needs to be expanded
6231 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6233 ac_preproc_ok=false
6234 for ac_c_preproc_warn_flag in '' yes
6236 # Use a header file that comes with gcc, so configuring glibc
6237 # with a fresh cross-compiler works.
6238 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6239 # <limits.h> exists even on freestanding compilers.
6240 # On the NeXT, cc -E runs the code through the compiler's parser,
6241 # not just through cpp. "Syntax error" is here to catch this case.
6242 cat >conftest.$ac_ext <<_ACEOF
6243 /* confdefs.h. */
6244 _ACEOF
6245 cat confdefs.h >>conftest.$ac_ext
6246 cat >>conftest.$ac_ext <<_ACEOF
6247 /* end confdefs.h. */
6248 #ifdef __STDC__
6249 # include <limits.h>
6250 #else
6251 # include <assert.h>
6252 #endif
6253 Syntax error
6254 _ACEOF
6255 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6256 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6257 ac_status=$?
6258 grep -v '^ *+' conftest.er1 >conftest.err
6259 rm -f conftest.er1
6260 cat conftest.err >&5
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); } >/dev/null; then
6263 if test -s conftest.err; then
6264 ac_cpp_err=$ac_c_preproc_warn_flag
6265 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6266 else
6267 ac_cpp_err=
6269 else
6270 ac_cpp_err=yes
6272 if test -z "$ac_cpp_err"; then
6274 else
6275 echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.$ac_ext >&5
6278 # Broken: fails on valid input.
6279 continue
6281 rm -f conftest.err conftest.$ac_ext
6283 # OK, works on sane cases. Now check whether non-existent headers
6284 # can be detected and how.
6285 cat >conftest.$ac_ext <<_ACEOF
6286 /* confdefs.h. */
6287 _ACEOF
6288 cat confdefs.h >>conftest.$ac_ext
6289 cat >>conftest.$ac_ext <<_ACEOF
6290 /* end confdefs.h. */
6291 #include <ac_nonexistent.h>
6292 _ACEOF
6293 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6294 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6295 ac_status=$?
6296 grep -v '^ *+' conftest.er1 >conftest.err
6297 rm -f conftest.er1
6298 cat conftest.err >&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); } >/dev/null; then
6301 if test -s conftest.err; then
6302 ac_cpp_err=$ac_c_preproc_warn_flag
6303 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6304 else
6305 ac_cpp_err=
6307 else
6308 ac_cpp_err=yes
6310 if test -z "$ac_cpp_err"; then
6311 # Broken: success on invalid input.
6312 continue
6313 else
6314 echo "$as_me: failed program was:" >&5
6315 sed 's/^/| /' conftest.$ac_ext >&5
6317 # Passes both tests.
6318 ac_preproc_ok=:
6319 break
6321 rm -f conftest.err conftest.$ac_ext
6323 done
6324 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6325 rm -f conftest.err conftest.$ac_ext
6326 if $ac_preproc_ok; then
6327 break
6330 done
6331 ac_cv_prog_CPP=$CPP
6334 CPP=$ac_cv_prog_CPP
6335 else
6336 ac_cv_prog_CPP=$CPP
6338 echo "$as_me:$LINENO: result: $CPP" >&5
6339 echo "${ECHO_T}$CPP" >&6
6340 ac_preproc_ok=false
6341 for ac_c_preproc_warn_flag in '' yes
6343 # Use a header file that comes with gcc, so configuring glibc
6344 # with a fresh cross-compiler works.
6345 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6346 # <limits.h> exists even on freestanding compilers.
6347 # On the NeXT, cc -E runs the code through the compiler's parser,
6348 # not just through cpp. "Syntax error" is here to catch this case.
6349 cat >conftest.$ac_ext <<_ACEOF
6350 /* confdefs.h. */
6351 _ACEOF
6352 cat confdefs.h >>conftest.$ac_ext
6353 cat >>conftest.$ac_ext <<_ACEOF
6354 /* end confdefs.h. */
6355 #ifdef __STDC__
6356 # include <limits.h>
6357 #else
6358 # include <assert.h>
6359 #endif
6360 Syntax error
6361 _ACEOF
6362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6363 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6364 ac_status=$?
6365 grep -v '^ *+' conftest.er1 >conftest.err
6366 rm -f conftest.er1
6367 cat conftest.err >&5
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); } >/dev/null; then
6370 if test -s conftest.err; then
6371 ac_cpp_err=$ac_c_preproc_warn_flag
6372 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6373 else
6374 ac_cpp_err=
6376 else
6377 ac_cpp_err=yes
6379 if test -z "$ac_cpp_err"; then
6381 else
6382 echo "$as_me: failed program was:" >&5
6383 sed 's/^/| /' conftest.$ac_ext >&5
6385 # Broken: fails on valid input.
6386 continue
6388 rm -f conftest.err conftest.$ac_ext
6390 # OK, works on sane cases. Now check whether non-existent headers
6391 # can be detected and how.
6392 cat >conftest.$ac_ext <<_ACEOF
6393 /* confdefs.h. */
6394 _ACEOF
6395 cat confdefs.h >>conftest.$ac_ext
6396 cat >>conftest.$ac_ext <<_ACEOF
6397 /* end confdefs.h. */
6398 #include <ac_nonexistent.h>
6399 _ACEOF
6400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6402 ac_status=$?
6403 grep -v '^ *+' conftest.er1 >conftest.err
6404 rm -f conftest.er1
6405 cat conftest.err >&5
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); } >/dev/null; then
6408 if test -s conftest.err; then
6409 ac_cpp_err=$ac_c_preproc_warn_flag
6410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6411 else
6412 ac_cpp_err=
6414 else
6415 ac_cpp_err=yes
6417 if test -z "$ac_cpp_err"; then
6418 # Broken: success on invalid input.
6419 continue
6420 else
6421 echo "$as_me: failed program was:" >&5
6422 sed 's/^/| /' conftest.$ac_ext >&5
6424 # Passes both tests.
6425 ac_preproc_ok=:
6426 break
6428 rm -f conftest.err conftest.$ac_ext
6430 done
6431 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6432 rm -f conftest.err conftest.$ac_ext
6433 if $ac_preproc_ok; then
6435 else
6436 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6437 See \`config.log' for more details." >&5
6438 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6439 See \`config.log' for more details." >&2;}
6440 { (exit 1); exit 1; }; }
6443 ac_ext=c
6444 ac_cpp='$CPP $CPPFLAGS'
6445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6450 echo "$as_me:$LINENO: checking for egrep" >&5
6451 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6452 if test "${ac_cv_prog_egrep+set}" = set; then
6453 echo $ECHO_N "(cached) $ECHO_C" >&6
6454 else
6455 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6456 then ac_cv_prog_egrep='grep -E'
6457 else ac_cv_prog_egrep='egrep'
6460 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6461 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6462 EGREP=$ac_cv_prog_egrep
6465 cat >conftest.$ac_ext <<_ACEOF
6466 /* confdefs.h. */
6467 _ACEOF
6468 cat confdefs.h >>conftest.$ac_ext
6469 cat >>conftest.$ac_ext <<_ACEOF
6470 /* end confdefs.h. */
6471 #include <stdint.h>
6473 _ACEOF
6474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6475 $EGREP "uint32_t" >/dev/null 2>&1; then
6477 cat >>confdefs.h <<\_ACEOF
6478 #define HAVE_INT32_DEFINED 1
6479 _ACEOF
6482 rm -f conftest*
6484 cat >conftest.$ac_ext <<_ACEOF
6485 /* confdefs.h. */
6486 _ACEOF
6487 cat confdefs.h >>conftest.$ac_ext
6488 cat >>conftest.$ac_ext <<_ACEOF
6489 /* end confdefs.h. */
6490 #include <inttypes.h>
6492 _ACEOF
6493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6494 $EGREP "uint32_t" >/dev/null 2>&1; then
6496 cat >>confdefs.h <<\_ACEOF
6497 #define HAVE_INT32_DEFINED 1
6498 _ACEOF
6501 rm -f conftest*
6503 cat >conftest.$ac_ext <<_ACEOF
6504 /* confdefs.h. */
6505 _ACEOF
6506 cat confdefs.h >>conftest.$ac_ext
6507 cat >>conftest.$ac_ext <<_ACEOF
6508 /* end confdefs.h. */
6509 #include <sys/types.h>
6511 _ACEOF
6512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6513 $EGREP "u_int32_t" >/dev/null 2>&1; then
6515 cat >>confdefs.h <<\_ACEOF
6516 #define HAVE_BSD_INT32_DEFINED 1
6517 _ACEOF
6520 rm -f conftest*
6522 cat >conftest.$ac_ext <<_ACEOF
6523 /* confdefs.h. */
6524 _ACEOF
6525 cat confdefs.h >>conftest.$ac_ext
6526 cat >>conftest.$ac_ext <<_ACEOF
6527 /* end confdefs.h. */
6528 #include <sys/config.h>
6530 _ACEOF
6531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6532 $EGREP "u_int32_t" >/dev/null 2>&1; then
6534 cat >>confdefs.h <<\_ACEOF
6535 #define HAVE_BSD_INT32_DEFINED 1
6536 _ACEOF
6539 rm -f conftest*
6544 if test "$PLATFORM" = Win32; then
6545 USING_WIN32_PLATFORM_TRUE=
6546 USING_WIN32_PLATFORM_FALSE='#'
6547 else
6548 USING_WIN32_PLATFORM_TRUE='#'
6549 USING_WIN32_PLATFORM_FALSE=
6554 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
6555 USING_POSIX_PLATFORM_TRUE=
6556 USING_POSIX_PLATFORM_FALSE='#'
6557 else
6558 USING_POSIX_PLATFORM_TRUE='#'
6559 USING_POSIX_PLATFORM_FALSE=
6563 case "$host" in
6564 *-darwin*) DARWIN_CRT=true ;;
6565 *) DARWIN_CRT=false ;;
6566 esac
6569 if $DARWIN_CRT; then
6570 USING_DARWIN_CRT_TRUE=
6571 USING_DARWIN_CRT_FALSE='#'
6572 else
6573 USING_DARWIN_CRT_TRUE='#'
6574 USING_DARWIN_CRT_FALSE=
6578 # These may not be defined in a non-ANS conformant embedded system.
6579 # FIXME: Should these case a runtime exception in that case?
6580 cat >conftest.$ac_ext <<_ACEOF
6581 /* confdefs.h. */
6582 _ACEOF
6583 cat confdefs.h >>conftest.$ac_ext
6584 cat >>conftest.$ac_ext <<_ACEOF
6585 /* end confdefs.h. */
6586 #include <time.h>
6588 _ACEOF
6589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6590 $EGREP "mktime" >/dev/null 2>&1; then
6592 cat >>confdefs.h <<\_ACEOF
6593 #define HAVE_MKTIME 1
6594 _ACEOF
6597 rm -f conftest*
6599 cat >conftest.$ac_ext <<_ACEOF
6600 /* confdefs.h. */
6601 _ACEOF
6602 cat confdefs.h >>conftest.$ac_ext
6603 cat >>conftest.$ac_ext <<_ACEOF
6604 /* end confdefs.h. */
6605 #include <time.h>
6607 _ACEOF
6608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6609 $EGREP "localtime" >/dev/null 2>&1; then
6611 cat >>confdefs.h <<\_ACEOF
6612 #define HAVE_LOCALTIME 1
6613 _ACEOF
6616 rm -f conftest*
6619 # Create the subdirectory for natFile.cc, or the attempt
6620 # to create the link will fail.
6621 test -d java || mkdir java
6622 test -d java/io || mkdir java/io
6623 test -d gnu || mkdir gnu
6624 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
6627 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
6628 test -d java/lang || mkdir java/lang
6629 ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
6631 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
6634 # Likewise for natInetAddress.cc and natVMNetworkInterface.cc.
6635 test -d java/net || mkdir java/net
6636 ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
6638 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
6641 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
6642 test -d gnu/java || mkdir gnu/java
6643 test -d gnu/java/net || mkdir gnu/java/net
6644 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
6646 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
6649 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
6650 test -d gnu/java/nio || mkdir gnu/java/nio
6651 ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
6653 ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
6655 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
6656 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
6659 case "${host}" in
6660 *mingw*)
6661 SYSTEMSPEC="-lgdi32 -lws2_32"
6662 if test "${with_win32_nlsapi}" = "unicows"; then
6663 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
6667 SYSTEMSPEC=
6669 esac
6672 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
6676 # Check whether --with-system-zlib or --without-system-zlib was given.
6677 if test "${with_system_zlib+set}" = set; then
6678 withval="$with_system_zlib"
6681 ZLIBSPEC=
6683 ZLIBTESTSPEC=
6686 echo "$as_me:$LINENO: checking for X" >&5
6687 echo $ECHO_N "checking for X... $ECHO_C" >&6
6690 # Check whether --with-x or --without-x was given.
6691 if test "${with_x+set}" = set; then
6692 withval="$with_x"
6695 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6696 if test "x$with_x" = xno; then
6697 # The user explicitly disabled X.
6698 have_x=disabled
6699 else
6700 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6701 # Both variables are already set.
6702 have_x=yes
6703 else
6704 if test "${ac_cv_have_x+set}" = set; then
6705 echo $ECHO_N "(cached) $ECHO_C" >&6
6706 else
6707 # One or both of the vars are not set, and there is no cached value.
6708 ac_x_includes=no ac_x_libraries=no
6709 rm -fr conftest.dir
6710 if mkdir conftest.dir; then
6711 cd conftest.dir
6712 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6713 cat >Imakefile <<'_ACEOF'
6714 acfindx:
6715 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6716 _ACEOF
6717 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6718 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6719 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6720 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6721 for ac_extension in a so sl; do
6722 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6723 test -f $ac_im_libdir/libX11.$ac_extension; then
6724 ac_im_usrlibdir=$ac_im_libdir; break
6726 done
6727 # Screen out bogus values from the imake configuration. They are
6728 # bogus both because they are the default anyway, and because
6729 # using them would break gcc on systems where it needs fixed includes.
6730 case $ac_im_incroot in
6731 /usr/include) ;;
6732 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6733 esac
6734 case $ac_im_usrlibdir in
6735 /usr/lib | /lib) ;;
6736 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6737 esac
6739 cd ..
6740 rm -fr conftest.dir
6743 # Standard set of common directories for X headers.
6744 # Check X11 before X11Rn because it is often a symlink to the current release.
6745 ac_x_header_dirs='
6746 /usr/X11/include
6747 /usr/X11R6/include
6748 /usr/X11R5/include
6749 /usr/X11R4/include
6751 /usr/include/X11
6752 /usr/include/X11R6
6753 /usr/include/X11R5
6754 /usr/include/X11R4
6756 /usr/local/X11/include
6757 /usr/local/X11R6/include
6758 /usr/local/X11R5/include
6759 /usr/local/X11R4/include
6761 /usr/local/include/X11
6762 /usr/local/include/X11R6
6763 /usr/local/include/X11R5
6764 /usr/local/include/X11R4
6766 /usr/X386/include
6767 /usr/x386/include
6768 /usr/XFree86/include/X11
6770 /usr/include
6771 /usr/local/include
6772 /usr/unsupported/include
6773 /usr/athena/include
6774 /usr/local/x11r5/include
6775 /usr/lpp/Xamples/include
6777 /usr/openwin/include
6778 /usr/openwin/share/include'
6780 if test "$ac_x_includes" = no; then
6781 # Guess where to find include files, by looking for Intrinsic.h.
6782 # First, try using that file with no special directory specified.
6783 cat >conftest.$ac_ext <<_ACEOF
6784 /* confdefs.h. */
6785 _ACEOF
6786 cat confdefs.h >>conftest.$ac_ext
6787 cat >>conftest.$ac_ext <<_ACEOF
6788 /* end confdefs.h. */
6789 #include <X11/Intrinsic.h>
6790 _ACEOF
6791 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6792 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6793 ac_status=$?
6794 grep -v '^ *+' conftest.er1 >conftest.err
6795 rm -f conftest.er1
6796 cat conftest.err >&5
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); } >/dev/null; then
6799 if test -s conftest.err; then
6800 ac_cpp_err=$ac_c_preproc_warn_flag
6801 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6802 else
6803 ac_cpp_err=
6805 else
6806 ac_cpp_err=yes
6808 if test -z "$ac_cpp_err"; then
6809 # We can compile using X headers with no special include directory.
6810 ac_x_includes=
6811 else
6812 echo "$as_me: failed program was:" >&5
6813 sed 's/^/| /' conftest.$ac_ext >&5
6815 for ac_dir in $ac_x_header_dirs; do
6816 if test -r "$ac_dir/X11/Intrinsic.h"; then
6817 ac_x_includes=$ac_dir
6818 break
6820 done
6822 rm -f conftest.err conftest.$ac_ext
6823 fi # $ac_x_includes = no
6825 if test "$ac_x_libraries" = no; then
6826 # Check for the libraries.
6827 # See if we find them without any special options.
6828 # Don't add to $LIBS permanently.
6829 ac_save_LIBS=$LIBS
6830 LIBS="-lXt $LIBS"
6831 if test x$gcc_no_link = xyes; then
6832 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6833 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6834 { (exit 1); exit 1; }; }
6836 cat >conftest.$ac_ext <<_ACEOF
6837 /* confdefs.h. */
6838 _ACEOF
6839 cat confdefs.h >>conftest.$ac_ext
6840 cat >>conftest.$ac_ext <<_ACEOF
6841 /* end confdefs.h. */
6842 #include <X11/Intrinsic.h>
6844 main ()
6846 XtMalloc (0)
6848 return 0;
6850 _ACEOF
6851 rm -f conftest.$ac_objext conftest$ac_exeext
6852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6853 (eval $ac_link) 2>conftest.er1
6854 ac_status=$?
6855 grep -v '^ *+' conftest.er1 >conftest.err
6856 rm -f conftest.er1
6857 cat conftest.err >&5
6858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); } &&
6860 { ac_try='test -z "$ac_c_werror_flag"
6861 || test ! -s conftest.err'
6862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6863 (eval $ac_try) 2>&5
6864 ac_status=$?
6865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866 (exit $ac_status); }; } &&
6867 { ac_try='test -s conftest$ac_exeext'
6868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6869 (eval $ac_try) 2>&5
6870 ac_status=$?
6871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872 (exit $ac_status); }; }; then
6873 LIBS=$ac_save_LIBS
6874 # We can link X programs with no special library path.
6875 ac_x_libraries=
6876 else
6877 echo "$as_me: failed program was:" >&5
6878 sed 's/^/| /' conftest.$ac_ext >&5
6880 LIBS=$ac_save_LIBS
6881 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6883 # Don't even attempt the hair of trying to link an X program!
6884 for ac_extension in a so sl; do
6885 if test -r $ac_dir/libXt.$ac_extension; then
6886 ac_x_libraries=$ac_dir
6887 break 2
6889 done
6890 done
6892 rm -f conftest.err conftest.$ac_objext \
6893 conftest$ac_exeext conftest.$ac_ext
6894 fi # $ac_x_libraries = no
6896 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6897 # Didn't find X anywhere. Cache the known absence of X.
6898 ac_cv_have_x="have_x=no"
6899 else
6900 # Record where we found X for the cache.
6901 ac_cv_have_x="have_x=yes \
6902 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6907 eval "$ac_cv_have_x"
6908 fi # $with_x != no
6910 if test "$have_x" != yes; then
6911 echo "$as_me:$LINENO: result: $have_x" >&5
6912 echo "${ECHO_T}$have_x" >&6
6913 no_x=yes
6914 else
6915 # If each of the values was on the command line, it overrides each guess.
6916 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6917 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6918 # Update the cache value to reflect the command line values.
6919 ac_cv_have_x="have_x=yes \
6920 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6921 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6922 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6925 if test "$no_x" = yes; then
6926 # Not all programs may use this symbol, but it does not hurt to define it.
6928 cat >>confdefs.h <<\_ACEOF
6929 #define X_DISPLAY_MISSING 1
6930 _ACEOF
6932 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6933 else
6934 if test -n "$x_includes"; then
6935 X_CFLAGS="$X_CFLAGS -I$x_includes"
6938 # It would also be nice to do this for all -L options, not just this one.
6939 if test -n "$x_libraries"; then
6940 X_LIBS="$X_LIBS -L$x_libraries"
6941 # For Solaris; some versions of Sun CC require a space after -R and
6942 # others require no space. Words are not sufficient . . . .
6943 case `(uname -sr) 2>/dev/null` in
6944 "SunOS 5"*)
6945 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6946 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
6947 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6948 if test x$gcc_no_link = xyes; then
6949 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6950 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6951 { (exit 1); exit 1; }; }
6953 cat >conftest.$ac_ext <<_ACEOF
6954 /* confdefs.h. */
6955 _ACEOF
6956 cat confdefs.h >>conftest.$ac_ext
6957 cat >>conftest.$ac_ext <<_ACEOF
6958 /* end confdefs.h. */
6961 main ()
6965 return 0;
6967 _ACEOF
6968 rm -f conftest.$ac_objext conftest$ac_exeext
6969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6970 (eval $ac_link) 2>conftest.er1
6971 ac_status=$?
6972 grep -v '^ *+' conftest.er1 >conftest.err
6973 rm -f conftest.er1
6974 cat conftest.err >&5
6975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976 (exit $ac_status); } &&
6977 { ac_try='test -z "$ac_c_werror_flag"
6978 || test ! -s conftest.err'
6979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6980 (eval $ac_try) 2>&5
6981 ac_status=$?
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); }; } &&
6984 { ac_try='test -s conftest$ac_exeext'
6985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6986 (eval $ac_try) 2>&5
6987 ac_status=$?
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); }; }; then
6990 ac_R_nospace=yes
6991 else
6992 echo "$as_me: failed program was:" >&5
6993 sed 's/^/| /' conftest.$ac_ext >&5
6995 ac_R_nospace=no
6997 rm -f conftest.err conftest.$ac_objext \
6998 conftest$ac_exeext conftest.$ac_ext
6999 if test $ac_R_nospace = yes; then
7000 echo "$as_me:$LINENO: result: no" >&5
7001 echo "${ECHO_T}no" >&6
7002 X_LIBS="$X_LIBS -R$x_libraries"
7003 else
7004 LIBS="$ac_xsave_LIBS -R $x_libraries"
7005 if test x$gcc_no_link = xyes; then
7006 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7007 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7008 { (exit 1); exit 1; }; }
7010 cat >conftest.$ac_ext <<_ACEOF
7011 /* confdefs.h. */
7012 _ACEOF
7013 cat confdefs.h >>conftest.$ac_ext
7014 cat >>conftest.$ac_ext <<_ACEOF
7015 /* end confdefs.h. */
7018 main ()
7022 return 0;
7024 _ACEOF
7025 rm -f conftest.$ac_objext conftest$ac_exeext
7026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7027 (eval $ac_link) 2>conftest.er1
7028 ac_status=$?
7029 grep -v '^ *+' conftest.er1 >conftest.err
7030 rm -f conftest.er1
7031 cat conftest.err >&5
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); } &&
7034 { ac_try='test -z "$ac_c_werror_flag"
7035 || test ! -s conftest.err'
7036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7037 (eval $ac_try) 2>&5
7038 ac_status=$?
7039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); }; } &&
7041 { ac_try='test -s conftest$ac_exeext'
7042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7043 (eval $ac_try) 2>&5
7044 ac_status=$?
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); }; }; then
7047 ac_R_space=yes
7048 else
7049 echo "$as_me: failed program was:" >&5
7050 sed 's/^/| /' conftest.$ac_ext >&5
7052 ac_R_space=no
7054 rm -f conftest.err conftest.$ac_objext \
7055 conftest$ac_exeext conftest.$ac_ext
7056 if test $ac_R_space = yes; then
7057 echo "$as_me:$LINENO: result: yes" >&5
7058 echo "${ECHO_T}yes" >&6
7059 X_LIBS="$X_LIBS -R $x_libraries"
7060 else
7061 echo "$as_me:$LINENO: result: neither works" >&5
7062 echo "${ECHO_T}neither works" >&6
7065 LIBS=$ac_xsave_LIBS
7066 esac
7069 # Check for system-dependent libraries X programs must link with.
7070 # Do this before checking for the system-independent R6 libraries
7071 # (-lICE), since we may need -lsocket or whatever for X linking.
7073 if test "$ISC" = yes; then
7074 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7075 else
7076 # Martyn Johnson says this is needed for Ultrix, if the X
7077 # libraries were built with DECnet support. And Karl Berry says
7078 # the Alpha needs dnet_stub (dnet does not exist).
7079 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7080 if test x$gcc_no_link = xyes; then
7081 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7082 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7083 { (exit 1); exit 1; }; }
7085 cat >conftest.$ac_ext <<_ACEOF
7086 /* confdefs.h. */
7087 _ACEOF
7088 cat confdefs.h >>conftest.$ac_ext
7089 cat >>conftest.$ac_ext <<_ACEOF
7090 /* end confdefs.h. */
7092 /* Override any gcc2 internal prototype to avoid an error. */
7093 #ifdef __cplusplus
7094 extern "C"
7095 #endif
7096 /* We use char because int might match the return type of a gcc2
7097 builtin and then its argument prototype would still apply. */
7098 char XOpenDisplay ();
7100 main ()
7102 XOpenDisplay ();
7104 return 0;
7106 _ACEOF
7107 rm -f conftest.$ac_objext conftest$ac_exeext
7108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7109 (eval $ac_link) 2>conftest.er1
7110 ac_status=$?
7111 grep -v '^ *+' conftest.er1 >conftest.err
7112 rm -f conftest.er1
7113 cat conftest.err >&5
7114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115 (exit $ac_status); } &&
7116 { ac_try='test -z "$ac_c_werror_flag"
7117 || test ! -s conftest.err'
7118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7119 (eval $ac_try) 2>&5
7120 ac_status=$?
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); }; } &&
7123 { ac_try='test -s conftest$ac_exeext'
7124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7125 (eval $ac_try) 2>&5
7126 ac_status=$?
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); }; }; then
7130 else
7131 echo "$as_me: failed program was:" >&5
7132 sed 's/^/| /' conftest.$ac_ext >&5
7134 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7135 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7136 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7137 echo $ECHO_N "(cached) $ECHO_C" >&6
7138 else
7139 ac_check_lib_save_LIBS=$LIBS
7140 LIBS="-ldnet $LIBS"
7141 if test x$gcc_no_link = xyes; then
7142 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7143 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7144 { (exit 1); exit 1; }; }
7146 cat >conftest.$ac_ext <<_ACEOF
7147 /* confdefs.h. */
7148 _ACEOF
7149 cat confdefs.h >>conftest.$ac_ext
7150 cat >>conftest.$ac_ext <<_ACEOF
7151 /* end confdefs.h. */
7153 /* Override any gcc2 internal prototype to avoid an error. */
7154 #ifdef __cplusplus
7155 extern "C"
7156 #endif
7157 /* We use char because int might match the return type of a gcc2
7158 builtin and then its argument prototype would still apply. */
7159 char dnet_ntoa ();
7161 main ()
7163 dnet_ntoa ();
7165 return 0;
7167 _ACEOF
7168 rm -f conftest.$ac_objext conftest$ac_exeext
7169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7170 (eval $ac_link) 2>conftest.er1
7171 ac_status=$?
7172 grep -v '^ *+' conftest.er1 >conftest.err
7173 rm -f conftest.er1
7174 cat conftest.err >&5
7175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); } &&
7177 { ac_try='test -z "$ac_c_werror_flag"
7178 || test ! -s conftest.err'
7179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7180 (eval $ac_try) 2>&5
7181 ac_status=$?
7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); }; } &&
7184 { ac_try='test -s conftest$ac_exeext'
7185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7186 (eval $ac_try) 2>&5
7187 ac_status=$?
7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); }; }; then
7190 ac_cv_lib_dnet_dnet_ntoa=yes
7191 else
7192 echo "$as_me: failed program was:" >&5
7193 sed 's/^/| /' conftest.$ac_ext >&5
7195 ac_cv_lib_dnet_dnet_ntoa=no
7197 rm -f conftest.err conftest.$ac_objext \
7198 conftest$ac_exeext conftest.$ac_ext
7199 LIBS=$ac_check_lib_save_LIBS
7201 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7202 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7203 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7204 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7207 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7208 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
7209 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
7210 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
7211 echo $ECHO_N "(cached) $ECHO_C" >&6
7212 else
7213 ac_check_lib_save_LIBS=$LIBS
7214 LIBS="-ldnet_stub $LIBS"
7215 if test x$gcc_no_link = xyes; then
7216 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7217 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7218 { (exit 1); exit 1; }; }
7220 cat >conftest.$ac_ext <<_ACEOF
7221 /* confdefs.h. */
7222 _ACEOF
7223 cat confdefs.h >>conftest.$ac_ext
7224 cat >>conftest.$ac_ext <<_ACEOF
7225 /* end confdefs.h. */
7227 /* Override any gcc2 internal prototype to avoid an error. */
7228 #ifdef __cplusplus
7229 extern "C"
7230 #endif
7231 /* We use char because int might match the return type of a gcc2
7232 builtin and then its argument prototype would still apply. */
7233 char dnet_ntoa ();
7235 main ()
7237 dnet_ntoa ();
7239 return 0;
7241 _ACEOF
7242 rm -f conftest.$ac_objext conftest$ac_exeext
7243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7244 (eval $ac_link) 2>conftest.er1
7245 ac_status=$?
7246 grep -v '^ *+' conftest.er1 >conftest.err
7247 rm -f conftest.er1
7248 cat conftest.err >&5
7249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250 (exit $ac_status); } &&
7251 { ac_try='test -z "$ac_c_werror_flag"
7252 || test ! -s conftest.err'
7253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7254 (eval $ac_try) 2>&5
7255 ac_status=$?
7256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257 (exit $ac_status); }; } &&
7258 { ac_try='test -s conftest$ac_exeext'
7259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7260 (eval $ac_try) 2>&5
7261 ac_status=$?
7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); }; }; then
7264 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7265 else
7266 echo "$as_me: failed program was:" >&5
7267 sed 's/^/| /' conftest.$ac_ext >&5
7269 ac_cv_lib_dnet_stub_dnet_ntoa=no
7271 rm -f conftest.err conftest.$ac_objext \
7272 conftest$ac_exeext conftest.$ac_ext
7273 LIBS=$ac_check_lib_save_LIBS
7275 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7276 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7277 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7278 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7283 rm -f conftest.err conftest.$ac_objext \
7284 conftest$ac_exeext conftest.$ac_ext
7285 LIBS="$ac_xsave_LIBS"
7287 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7288 # to get the SysV transport functions.
7289 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7290 # needs -lnsl.
7291 # The nsl library prevents programs from opening the X display
7292 # on Irix 5.2, according to T.E. Dickey.
7293 # The functions gethostbyname, getservbyname, and inet_addr are
7294 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7295 echo "$as_me:$LINENO: checking for gethostbyname" >&5
7296 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7297 if test "${ac_cv_func_gethostbyname+set}" = set; then
7298 echo $ECHO_N "(cached) $ECHO_C" >&6
7299 else
7300 if test x$gcc_no_link = xyes; then
7301 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7302 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7303 { (exit 1); exit 1; }; }
7305 cat >conftest.$ac_ext <<_ACEOF
7306 /* confdefs.h. */
7307 _ACEOF
7308 cat confdefs.h >>conftest.$ac_ext
7309 cat >>conftest.$ac_ext <<_ACEOF
7310 /* end confdefs.h. */
7311 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
7312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7313 #define gethostbyname innocuous_gethostbyname
7315 /* System header to define __stub macros and hopefully few prototypes,
7316 which can conflict with char gethostbyname (); below.
7317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7318 <limits.h> exists even on freestanding compilers. */
7320 #ifdef __STDC__
7321 # include <limits.h>
7322 #else
7323 # include <assert.h>
7324 #endif
7326 #undef gethostbyname
7328 /* Override any gcc2 internal prototype to avoid an error. */
7329 #ifdef __cplusplus
7330 extern "C"
7332 #endif
7333 /* We use char because int might match the return type of a gcc2
7334 builtin and then its argument prototype would still apply. */
7335 char gethostbyname ();
7336 /* The GNU C library defines this for functions which it implements
7337 to always fail with ENOSYS. Some functions are actually named
7338 something starting with __ and the normal name is an alias. */
7339 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7340 choke me
7341 #else
7342 char (*f) () = gethostbyname;
7343 #endif
7344 #ifdef __cplusplus
7346 #endif
7349 main ()
7351 return f != gethostbyname;
7353 return 0;
7355 _ACEOF
7356 rm -f conftest.$ac_objext conftest$ac_exeext
7357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7358 (eval $ac_link) 2>conftest.er1
7359 ac_status=$?
7360 grep -v '^ *+' conftest.er1 >conftest.err
7361 rm -f conftest.er1
7362 cat conftest.err >&5
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); } &&
7365 { ac_try='test -z "$ac_c_werror_flag"
7366 || test ! -s conftest.err'
7367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7368 (eval $ac_try) 2>&5
7369 ac_status=$?
7370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371 (exit $ac_status); }; } &&
7372 { ac_try='test -s conftest$ac_exeext'
7373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7374 (eval $ac_try) 2>&5
7375 ac_status=$?
7376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 (exit $ac_status); }; }; then
7378 ac_cv_func_gethostbyname=yes
7379 else
7380 echo "$as_me: failed program was:" >&5
7381 sed 's/^/| /' conftest.$ac_ext >&5
7383 ac_cv_func_gethostbyname=no
7385 rm -f conftest.err conftest.$ac_objext \
7386 conftest$ac_exeext conftest.$ac_ext
7388 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7389 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7391 if test $ac_cv_func_gethostbyname = no; then
7392 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7393 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7394 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7395 echo $ECHO_N "(cached) $ECHO_C" >&6
7396 else
7397 ac_check_lib_save_LIBS=$LIBS
7398 LIBS="-lnsl $LIBS"
7399 if test x$gcc_no_link = xyes; then
7400 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7401 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7402 { (exit 1); exit 1; }; }
7404 cat >conftest.$ac_ext <<_ACEOF
7405 /* confdefs.h. */
7406 _ACEOF
7407 cat confdefs.h >>conftest.$ac_ext
7408 cat >>conftest.$ac_ext <<_ACEOF
7409 /* end confdefs.h. */
7411 /* Override any gcc2 internal prototype to avoid an error. */
7412 #ifdef __cplusplus
7413 extern "C"
7414 #endif
7415 /* We use char because int might match the return type of a gcc2
7416 builtin and then its argument prototype would still apply. */
7417 char gethostbyname ();
7419 main ()
7421 gethostbyname ();
7423 return 0;
7425 _ACEOF
7426 rm -f conftest.$ac_objext conftest$ac_exeext
7427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7428 (eval $ac_link) 2>conftest.er1
7429 ac_status=$?
7430 grep -v '^ *+' conftest.er1 >conftest.err
7431 rm -f conftest.er1
7432 cat conftest.err >&5
7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 (exit $ac_status); } &&
7435 { ac_try='test -z "$ac_c_werror_flag"
7436 || test ! -s conftest.err'
7437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7438 (eval $ac_try) 2>&5
7439 ac_status=$?
7440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441 (exit $ac_status); }; } &&
7442 { ac_try='test -s conftest$ac_exeext'
7443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7444 (eval $ac_try) 2>&5
7445 ac_status=$?
7446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447 (exit $ac_status); }; }; then
7448 ac_cv_lib_nsl_gethostbyname=yes
7449 else
7450 echo "$as_me: failed program was:" >&5
7451 sed 's/^/| /' conftest.$ac_ext >&5
7453 ac_cv_lib_nsl_gethostbyname=no
7455 rm -f conftest.err conftest.$ac_objext \
7456 conftest$ac_exeext conftest.$ac_ext
7457 LIBS=$ac_check_lib_save_LIBS
7459 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7460 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7461 if test $ac_cv_lib_nsl_gethostbyname = yes; then
7462 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7465 if test $ac_cv_lib_nsl_gethostbyname = no; then
7466 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7467 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
7468 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
7470 else
7471 ac_check_lib_save_LIBS=$LIBS
7472 LIBS="-lbsd $LIBS"
7473 if test x$gcc_no_link = xyes; then
7474 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7475 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7476 { (exit 1); exit 1; }; }
7478 cat >conftest.$ac_ext <<_ACEOF
7479 /* confdefs.h. */
7480 _ACEOF
7481 cat confdefs.h >>conftest.$ac_ext
7482 cat >>conftest.$ac_ext <<_ACEOF
7483 /* end confdefs.h. */
7485 /* Override any gcc2 internal prototype to avoid an error. */
7486 #ifdef __cplusplus
7487 extern "C"
7488 #endif
7489 /* We use char because int might match the return type of a gcc2
7490 builtin and then its argument prototype would still apply. */
7491 char gethostbyname ();
7493 main ()
7495 gethostbyname ();
7497 return 0;
7499 _ACEOF
7500 rm -f conftest.$ac_objext conftest$ac_exeext
7501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7502 (eval $ac_link) 2>conftest.er1
7503 ac_status=$?
7504 grep -v '^ *+' conftest.er1 >conftest.err
7505 rm -f conftest.er1
7506 cat conftest.err >&5
7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508 (exit $ac_status); } &&
7509 { ac_try='test -z "$ac_c_werror_flag"
7510 || test ! -s conftest.err'
7511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7512 (eval $ac_try) 2>&5
7513 ac_status=$?
7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); }; } &&
7516 { ac_try='test -s conftest$ac_exeext'
7517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7518 (eval $ac_try) 2>&5
7519 ac_status=$?
7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); }; }; then
7522 ac_cv_lib_bsd_gethostbyname=yes
7523 else
7524 echo "$as_me: failed program was:" >&5
7525 sed 's/^/| /' conftest.$ac_ext >&5
7527 ac_cv_lib_bsd_gethostbyname=no
7529 rm -f conftest.err conftest.$ac_objext \
7530 conftest$ac_exeext conftest.$ac_ext
7531 LIBS=$ac_check_lib_save_LIBS
7533 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7534 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
7535 if test $ac_cv_lib_bsd_gethostbyname = yes; then
7536 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7542 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7543 # socket/setsockopt and other routines are undefined under SCO ODT
7544 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7545 # on later versions), says Simon Leinen: it contains gethostby*
7546 # variants that don't use the name server (or something). -lsocket
7547 # must be given before -lnsl if both are needed. We assume that
7548 # if connect needs -lnsl, so does gethostbyname.
7549 echo "$as_me:$LINENO: checking for connect" >&5
7550 echo $ECHO_N "checking for connect... $ECHO_C" >&6
7551 if test "${ac_cv_func_connect+set}" = set; then
7552 echo $ECHO_N "(cached) $ECHO_C" >&6
7553 else
7554 if test x$gcc_no_link = xyes; then
7555 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7556 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7557 { (exit 1); exit 1; }; }
7559 cat >conftest.$ac_ext <<_ACEOF
7560 /* confdefs.h. */
7561 _ACEOF
7562 cat confdefs.h >>conftest.$ac_ext
7563 cat >>conftest.$ac_ext <<_ACEOF
7564 /* end confdefs.h. */
7565 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7567 #define connect innocuous_connect
7569 /* System header to define __stub macros and hopefully few prototypes,
7570 which can conflict with char connect (); below.
7571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7572 <limits.h> exists even on freestanding compilers. */
7574 #ifdef __STDC__
7575 # include <limits.h>
7576 #else
7577 # include <assert.h>
7578 #endif
7580 #undef connect
7582 /* Override any gcc2 internal prototype to avoid an error. */
7583 #ifdef __cplusplus
7584 extern "C"
7586 #endif
7587 /* We use char because int might match the return type of a gcc2
7588 builtin and then its argument prototype would still apply. */
7589 char connect ();
7590 /* The GNU C library defines this for functions which it implements
7591 to always fail with ENOSYS. Some functions are actually named
7592 something starting with __ and the normal name is an alias. */
7593 #if defined (__stub_connect) || defined (__stub___connect)
7594 choke me
7595 #else
7596 char (*f) () = connect;
7597 #endif
7598 #ifdef __cplusplus
7600 #endif
7603 main ()
7605 return f != connect;
7607 return 0;
7609 _ACEOF
7610 rm -f conftest.$ac_objext conftest$ac_exeext
7611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7612 (eval $ac_link) 2>conftest.er1
7613 ac_status=$?
7614 grep -v '^ *+' conftest.er1 >conftest.err
7615 rm -f conftest.er1
7616 cat conftest.err >&5
7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618 (exit $ac_status); } &&
7619 { ac_try='test -z "$ac_c_werror_flag"
7620 || test ! -s conftest.err'
7621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7622 (eval $ac_try) 2>&5
7623 ac_status=$?
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); }; } &&
7626 { ac_try='test -s conftest$ac_exeext'
7627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7628 (eval $ac_try) 2>&5
7629 ac_status=$?
7630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631 (exit $ac_status); }; }; then
7632 ac_cv_func_connect=yes
7633 else
7634 echo "$as_me: failed program was:" >&5
7635 sed 's/^/| /' conftest.$ac_ext >&5
7637 ac_cv_func_connect=no
7639 rm -f conftest.err conftest.$ac_objext \
7640 conftest$ac_exeext conftest.$ac_ext
7642 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7643 echo "${ECHO_T}$ac_cv_func_connect" >&6
7645 if test $ac_cv_func_connect = no; then
7646 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7647 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
7648 if test "${ac_cv_lib_socket_connect+set}" = set; then
7649 echo $ECHO_N "(cached) $ECHO_C" >&6
7650 else
7651 ac_check_lib_save_LIBS=$LIBS
7652 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7653 if test x$gcc_no_link = xyes; then
7654 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7655 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7656 { (exit 1); exit 1; }; }
7658 cat >conftest.$ac_ext <<_ACEOF
7659 /* confdefs.h. */
7660 _ACEOF
7661 cat confdefs.h >>conftest.$ac_ext
7662 cat >>conftest.$ac_ext <<_ACEOF
7663 /* end confdefs.h. */
7665 /* Override any gcc2 internal prototype to avoid an error. */
7666 #ifdef __cplusplus
7667 extern "C"
7668 #endif
7669 /* We use char because int might match the return type of a gcc2
7670 builtin and then its argument prototype would still apply. */
7671 char connect ();
7673 main ()
7675 connect ();
7677 return 0;
7679 _ACEOF
7680 rm -f conftest.$ac_objext conftest$ac_exeext
7681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7682 (eval $ac_link) 2>conftest.er1
7683 ac_status=$?
7684 grep -v '^ *+' conftest.er1 >conftest.err
7685 rm -f conftest.er1
7686 cat conftest.err >&5
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); } &&
7689 { ac_try='test -z "$ac_c_werror_flag"
7690 || test ! -s conftest.err'
7691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7692 (eval $ac_try) 2>&5
7693 ac_status=$?
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); }; } &&
7696 { ac_try='test -s conftest$ac_exeext'
7697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7698 (eval $ac_try) 2>&5
7699 ac_status=$?
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); }; }; then
7702 ac_cv_lib_socket_connect=yes
7703 else
7704 echo "$as_me: failed program was:" >&5
7705 sed 's/^/| /' conftest.$ac_ext >&5
7707 ac_cv_lib_socket_connect=no
7709 rm -f conftest.err conftest.$ac_objext \
7710 conftest$ac_exeext conftest.$ac_ext
7711 LIBS=$ac_check_lib_save_LIBS
7713 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7714 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
7715 if test $ac_cv_lib_socket_connect = yes; then
7716 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7721 # Guillermo Gomez says -lposix is necessary on A/UX.
7722 echo "$as_me:$LINENO: checking for remove" >&5
7723 echo $ECHO_N "checking for remove... $ECHO_C" >&6
7724 if test "${ac_cv_func_remove+set}" = set; then
7725 echo $ECHO_N "(cached) $ECHO_C" >&6
7726 else
7727 if test x$gcc_no_link = xyes; then
7728 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7729 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7730 { (exit 1); exit 1; }; }
7732 cat >conftest.$ac_ext <<_ACEOF
7733 /* confdefs.h. */
7734 _ACEOF
7735 cat confdefs.h >>conftest.$ac_ext
7736 cat >>conftest.$ac_ext <<_ACEOF
7737 /* end confdefs.h. */
7738 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7740 #define remove innocuous_remove
7742 /* System header to define __stub macros and hopefully few prototypes,
7743 which can conflict with char remove (); below.
7744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7745 <limits.h> exists even on freestanding compilers. */
7747 #ifdef __STDC__
7748 # include <limits.h>
7749 #else
7750 # include <assert.h>
7751 #endif
7753 #undef remove
7755 /* Override any gcc2 internal prototype to avoid an error. */
7756 #ifdef __cplusplus
7757 extern "C"
7759 #endif
7760 /* We use char because int might match the return type of a gcc2
7761 builtin and then its argument prototype would still apply. */
7762 char remove ();
7763 /* The GNU C library defines this for functions which it implements
7764 to always fail with ENOSYS. Some functions are actually named
7765 something starting with __ and the normal name is an alias. */
7766 #if defined (__stub_remove) || defined (__stub___remove)
7767 choke me
7768 #else
7769 char (*f) () = remove;
7770 #endif
7771 #ifdef __cplusplus
7773 #endif
7776 main ()
7778 return f != remove;
7780 return 0;
7782 _ACEOF
7783 rm -f conftest.$ac_objext conftest$ac_exeext
7784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7785 (eval $ac_link) 2>conftest.er1
7786 ac_status=$?
7787 grep -v '^ *+' conftest.er1 >conftest.err
7788 rm -f conftest.er1
7789 cat conftest.err >&5
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); } &&
7792 { ac_try='test -z "$ac_c_werror_flag"
7793 || test ! -s conftest.err'
7794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7795 (eval $ac_try) 2>&5
7796 ac_status=$?
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); }; } &&
7799 { ac_try='test -s conftest$ac_exeext'
7800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7801 (eval $ac_try) 2>&5
7802 ac_status=$?
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); }; }; then
7805 ac_cv_func_remove=yes
7806 else
7807 echo "$as_me: failed program was:" >&5
7808 sed 's/^/| /' conftest.$ac_ext >&5
7810 ac_cv_func_remove=no
7812 rm -f conftest.err conftest.$ac_objext \
7813 conftest$ac_exeext conftest.$ac_ext
7815 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7816 echo "${ECHO_T}$ac_cv_func_remove" >&6
7818 if test $ac_cv_func_remove = no; then
7819 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7820 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
7821 if test "${ac_cv_lib_posix_remove+set}" = set; then
7822 echo $ECHO_N "(cached) $ECHO_C" >&6
7823 else
7824 ac_check_lib_save_LIBS=$LIBS
7825 LIBS="-lposix $LIBS"
7826 if test x$gcc_no_link = xyes; then
7827 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7828 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7829 { (exit 1); exit 1; }; }
7831 cat >conftest.$ac_ext <<_ACEOF
7832 /* confdefs.h. */
7833 _ACEOF
7834 cat confdefs.h >>conftest.$ac_ext
7835 cat >>conftest.$ac_ext <<_ACEOF
7836 /* end confdefs.h. */
7838 /* Override any gcc2 internal prototype to avoid an error. */
7839 #ifdef __cplusplus
7840 extern "C"
7841 #endif
7842 /* We use char because int might match the return type of a gcc2
7843 builtin and then its argument prototype would still apply. */
7844 char remove ();
7846 main ()
7848 remove ();
7850 return 0;
7852 _ACEOF
7853 rm -f conftest.$ac_objext conftest$ac_exeext
7854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7855 (eval $ac_link) 2>conftest.er1
7856 ac_status=$?
7857 grep -v '^ *+' conftest.er1 >conftest.err
7858 rm -f conftest.er1
7859 cat conftest.err >&5
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); } &&
7862 { ac_try='test -z "$ac_c_werror_flag"
7863 || test ! -s conftest.err'
7864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7865 (eval $ac_try) 2>&5
7866 ac_status=$?
7867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868 (exit $ac_status); }; } &&
7869 { ac_try='test -s conftest$ac_exeext'
7870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7871 (eval $ac_try) 2>&5
7872 ac_status=$?
7873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874 (exit $ac_status); }; }; then
7875 ac_cv_lib_posix_remove=yes
7876 else
7877 echo "$as_me: failed program was:" >&5
7878 sed 's/^/| /' conftest.$ac_ext >&5
7880 ac_cv_lib_posix_remove=no
7882 rm -f conftest.err conftest.$ac_objext \
7883 conftest$ac_exeext conftest.$ac_ext
7884 LIBS=$ac_check_lib_save_LIBS
7886 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7887 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
7888 if test $ac_cv_lib_posix_remove = yes; then
7889 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7894 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7895 echo "$as_me:$LINENO: checking for shmat" >&5
7896 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
7897 if test "${ac_cv_func_shmat+set}" = set; then
7898 echo $ECHO_N "(cached) $ECHO_C" >&6
7899 else
7900 if test x$gcc_no_link = xyes; then
7901 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7902 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7903 { (exit 1); exit 1; }; }
7905 cat >conftest.$ac_ext <<_ACEOF
7906 /* confdefs.h. */
7907 _ACEOF
7908 cat confdefs.h >>conftest.$ac_ext
7909 cat >>conftest.$ac_ext <<_ACEOF
7910 /* end confdefs.h. */
7911 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7913 #define shmat innocuous_shmat
7915 /* System header to define __stub macros and hopefully few prototypes,
7916 which can conflict with char shmat (); below.
7917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7918 <limits.h> exists even on freestanding compilers. */
7920 #ifdef __STDC__
7921 # include <limits.h>
7922 #else
7923 # include <assert.h>
7924 #endif
7926 #undef shmat
7928 /* Override any gcc2 internal prototype to avoid an error. */
7929 #ifdef __cplusplus
7930 extern "C"
7932 #endif
7933 /* We use char because int might match the return type of a gcc2
7934 builtin and then its argument prototype would still apply. */
7935 char shmat ();
7936 /* The GNU C library defines this for functions which it implements
7937 to always fail with ENOSYS. Some functions are actually named
7938 something starting with __ and the normal name is an alias. */
7939 #if defined (__stub_shmat) || defined (__stub___shmat)
7940 choke me
7941 #else
7942 char (*f) () = shmat;
7943 #endif
7944 #ifdef __cplusplus
7946 #endif
7949 main ()
7951 return f != shmat;
7953 return 0;
7955 _ACEOF
7956 rm -f conftest.$ac_objext conftest$ac_exeext
7957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7958 (eval $ac_link) 2>conftest.er1
7959 ac_status=$?
7960 grep -v '^ *+' conftest.er1 >conftest.err
7961 rm -f conftest.er1
7962 cat conftest.err >&5
7963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964 (exit $ac_status); } &&
7965 { ac_try='test -z "$ac_c_werror_flag"
7966 || test ! -s conftest.err'
7967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7968 (eval $ac_try) 2>&5
7969 ac_status=$?
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); }; } &&
7972 { ac_try='test -s conftest$ac_exeext'
7973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7974 (eval $ac_try) 2>&5
7975 ac_status=$?
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); }; }; then
7978 ac_cv_func_shmat=yes
7979 else
7980 echo "$as_me: failed program was:" >&5
7981 sed 's/^/| /' conftest.$ac_ext >&5
7983 ac_cv_func_shmat=no
7985 rm -f conftest.err conftest.$ac_objext \
7986 conftest$ac_exeext conftest.$ac_ext
7988 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7989 echo "${ECHO_T}$ac_cv_func_shmat" >&6
7991 if test $ac_cv_func_shmat = no; then
7992 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7993 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
7994 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7995 echo $ECHO_N "(cached) $ECHO_C" >&6
7996 else
7997 ac_check_lib_save_LIBS=$LIBS
7998 LIBS="-lipc $LIBS"
7999 if test x$gcc_no_link = xyes; then
8000 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8001 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8002 { (exit 1); exit 1; }; }
8004 cat >conftest.$ac_ext <<_ACEOF
8005 /* confdefs.h. */
8006 _ACEOF
8007 cat confdefs.h >>conftest.$ac_ext
8008 cat >>conftest.$ac_ext <<_ACEOF
8009 /* end confdefs.h. */
8011 /* Override any gcc2 internal prototype to avoid an error. */
8012 #ifdef __cplusplus
8013 extern "C"
8014 #endif
8015 /* We use char because int might match the return type of a gcc2
8016 builtin and then its argument prototype would still apply. */
8017 char shmat ();
8019 main ()
8021 shmat ();
8023 return 0;
8025 _ACEOF
8026 rm -f conftest.$ac_objext conftest$ac_exeext
8027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8028 (eval $ac_link) 2>conftest.er1
8029 ac_status=$?
8030 grep -v '^ *+' conftest.er1 >conftest.err
8031 rm -f conftest.er1
8032 cat conftest.err >&5
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); } &&
8035 { ac_try='test -z "$ac_c_werror_flag"
8036 || test ! -s conftest.err'
8037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8038 (eval $ac_try) 2>&5
8039 ac_status=$?
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); }; } &&
8042 { ac_try='test -s conftest$ac_exeext'
8043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8044 (eval $ac_try) 2>&5
8045 ac_status=$?
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); }; }; then
8048 ac_cv_lib_ipc_shmat=yes
8049 else
8050 echo "$as_me: failed program was:" >&5
8051 sed 's/^/| /' conftest.$ac_ext >&5
8053 ac_cv_lib_ipc_shmat=no
8055 rm -f conftest.err conftest.$ac_objext \
8056 conftest$ac_exeext conftest.$ac_ext
8057 LIBS=$ac_check_lib_save_LIBS
8059 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8060 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8061 if test $ac_cv_lib_ipc_shmat = yes; then
8062 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8068 # Check for libraries that X11R6 Xt/Xaw programs need.
8069 ac_save_LDFLAGS=$LDFLAGS
8070 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8071 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8072 # check for ICE first), but we must link in the order -lSM -lICE or
8073 # we get undefined symbols. So assume we have SM if we have ICE.
8074 # These have to be linked with before -lX11, unlike the other
8075 # libraries we check for below, so use a different variable.
8076 # John Interrante, Karl Berry
8077 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8078 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8079 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8080 echo $ECHO_N "(cached) $ECHO_C" >&6
8081 else
8082 ac_check_lib_save_LIBS=$LIBS
8083 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8084 if test x$gcc_no_link = xyes; then
8085 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8086 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8087 { (exit 1); exit 1; }; }
8089 cat >conftest.$ac_ext <<_ACEOF
8090 /* confdefs.h. */
8091 _ACEOF
8092 cat confdefs.h >>conftest.$ac_ext
8093 cat >>conftest.$ac_ext <<_ACEOF
8094 /* end confdefs.h. */
8096 /* Override any gcc2 internal prototype to avoid an error. */
8097 #ifdef __cplusplus
8098 extern "C"
8099 #endif
8100 /* We use char because int might match the return type of a gcc2
8101 builtin and then its argument prototype would still apply. */
8102 char IceConnectionNumber ();
8104 main ()
8106 IceConnectionNumber ();
8108 return 0;
8110 _ACEOF
8111 rm -f conftest.$ac_objext conftest$ac_exeext
8112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8113 (eval $ac_link) 2>conftest.er1
8114 ac_status=$?
8115 grep -v '^ *+' conftest.er1 >conftest.err
8116 rm -f conftest.er1
8117 cat conftest.err >&5
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); } &&
8120 { ac_try='test -z "$ac_c_werror_flag"
8121 || test ! -s conftest.err'
8122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8123 (eval $ac_try) 2>&5
8124 ac_status=$?
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); }; } &&
8127 { ac_try='test -s conftest$ac_exeext'
8128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8129 (eval $ac_try) 2>&5
8130 ac_status=$?
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); }; }; then
8133 ac_cv_lib_ICE_IceConnectionNumber=yes
8134 else
8135 echo "$as_me: failed program was:" >&5
8136 sed 's/^/| /' conftest.$ac_ext >&5
8138 ac_cv_lib_ICE_IceConnectionNumber=no
8140 rm -f conftest.err conftest.$ac_objext \
8141 conftest$ac_exeext conftest.$ac_ext
8142 LIBS=$ac_check_lib_save_LIBS
8144 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8145 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8146 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8147 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8150 LDFLAGS=$ac_save_LDFLAGS
8155 # determine whether to enable the cairo GTK Graphics2D backend
8156 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
8157 if test "${enable_gtk_cairo+set}" = set; then
8158 enableval="$enable_gtk_cairo"
8163 if test "x${enable_gtk_cairo}" = xyes; then
8164 GTK_CAIRO_TRUE=
8165 GTK_CAIRO_FALSE='#'
8166 else
8167 GTK_CAIRO_TRUE='#'
8168 GTK_CAIRO_FALSE=
8171 if test "x${enable_gtk_cairo}" = xyes
8172 then
8174 succeeded=no
8176 if test -z "$PKG_CONFIG"; then
8177 # Extract the first word of "pkg-config", so it can be a program name with args.
8178 set dummy pkg-config; ac_word=$2
8179 echo "$as_me:$LINENO: checking for $ac_word" >&5
8180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8181 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8182 echo $ECHO_N "(cached) $ECHO_C" >&6
8183 else
8184 case $PKG_CONFIG in
8185 [\\/]* | ?:[\\/]*)
8186 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8190 for as_dir in $PATH
8192 IFS=$as_save_IFS
8193 test -z "$as_dir" && as_dir=.
8194 for ac_exec_ext in '' $ac_executable_extensions; do
8195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8196 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8198 break 2
8200 done
8201 done
8203 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8205 esac
8207 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8209 if test -n "$PKG_CONFIG"; then
8210 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8211 echo "${ECHO_T}$PKG_CONFIG" >&6
8212 else
8213 echo "$as_me:$LINENO: result: no" >&5
8214 echo "${ECHO_T}no" >&6
8219 if test "$PKG_CONFIG" = "no" ; then
8220 echo "*** The pkg-config script could not be found. Make sure it is"
8221 echo "*** in your path, or set the PKG_CONFIG environment variable"
8222 echo "*** to the full path to pkg-config."
8223 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8224 else
8225 PKG_CONFIG_MIN_VERSION=0.9.0
8226 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8227 echo "$as_me:$LINENO: checking for cairo" >&5
8228 echo $ECHO_N "checking for cairo... $ECHO_C" >&6
8230 if $PKG_CONFIG --exists "cairo" ; then
8231 echo "$as_me:$LINENO: result: yes" >&5
8232 echo "${ECHO_T}yes" >&6
8233 succeeded=yes
8235 echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
8236 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
8237 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo"`
8238 echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
8239 echo "${ECHO_T}$CAIRO_CFLAGS" >&6
8241 echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
8242 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
8243 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo"`
8244 echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
8245 echo "${ECHO_T}$CAIRO_LIBS" >&6
8246 else
8247 CAIRO_CFLAGS=""
8248 CAIRO_LIBS=""
8249 ## If we have a custom action on failure, don't print errors, but
8250 ## do set a variable so people can do so.
8251 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
8252 echo $CAIRO_PKG_ERRORS
8257 else
8258 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8259 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8263 if test $succeeded = yes; then
8265 else
8266 { { echo "$as_me:$LINENO: error: Library requirements (cairo) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
8267 echo "$as_me: error: Library requirements (cairo) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
8268 { (exit 1); exit 1; }; }
8272 succeeded=no
8274 if test -z "$PKG_CONFIG"; then
8275 # Extract the first word of "pkg-config", so it can be a program name with args.
8276 set dummy pkg-config; ac_word=$2
8277 echo "$as_me:$LINENO: checking for $ac_word" >&5
8278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8279 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8280 echo $ECHO_N "(cached) $ECHO_C" >&6
8281 else
8282 case $PKG_CONFIG in
8283 [\\/]* | ?:[\\/]*)
8284 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8288 for as_dir in $PATH
8290 IFS=$as_save_IFS
8291 test -z "$as_dir" && as_dir=.
8292 for ac_exec_ext in '' $ac_executable_extensions; do
8293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8294 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8296 break 2
8298 done
8299 done
8301 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8303 esac
8305 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8307 if test -n "$PKG_CONFIG"; then
8308 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8309 echo "${ECHO_T}$PKG_CONFIG" >&6
8310 else
8311 echo "$as_me:$LINENO: result: no" >&5
8312 echo "${ECHO_T}no" >&6
8317 if test "$PKG_CONFIG" = "no" ; then
8318 echo "*** The pkg-config script could not be found. Make sure it is"
8319 echo "*** in your path, or set the PKG_CONFIG environment variable"
8320 echo "*** to the full path to pkg-config."
8321 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8322 else
8323 PKG_CONFIG_MIN_VERSION=0.9.0
8324 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8325 echo "$as_me:$LINENO: checking for pangoft2" >&5
8326 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
8328 if $PKG_CONFIG --exists "pangoft2" ; then
8329 echo "$as_me:$LINENO: result: yes" >&5
8330 echo "${ECHO_T}yes" >&6
8331 succeeded=yes
8333 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
8334 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
8335 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
8336 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
8337 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
8339 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
8340 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
8341 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
8342 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
8343 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
8344 else
8345 PANGOFT2_CFLAGS=""
8346 PANGOFT2_LIBS=""
8347 ## If we have a custom action on failure, don't print errors, but
8348 ## do set a variable so people can do so.
8349 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
8350 echo $PANGOFT2_PKG_ERRORS
8355 else
8356 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8357 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8361 if test $succeeded = yes; then
8363 else
8364 { { echo "$as_me:$LINENO: error: Library requirements (pangoft2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
8365 echo "$as_me: error: Library requirements (pangoft2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
8366 { (exit 1); exit 1; }; }
8375 # FIXME: this should be _libs on some hosts.
8376 libsubdir=.libs
8378 # Allow the GC to be disabled. Can be useful when debugging.
8379 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
8380 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
8381 # Check whether --enable-java-gc or --disable-java-gc was given.
8382 if test "${enable_java_gc+set}" = set; then
8383 enableval="$enable_java_gc"
8384 GC=$enableval
8385 else
8386 GC=boehm
8388 GCLIBS=
8389 GCINCS=
8390 GCDEPS=
8391 GCSPEC=
8392 JC1GCSPEC=
8393 GCTESTSPEC=
8394 case "$GC" in
8395 boehm)
8396 echo "$as_me:$LINENO: result: boehm" >&5
8397 echo "${ECHO_T}boehm" >&6
8398 GCLIBS=../boehm-gc/libgcjgc_convenience.la
8399 JC1GCSPEC='-fuse-boehm-gc'
8400 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
8401 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
8402 GCOBJS=boehm.lo
8403 GCHDR=boehm-gc.h
8404 # The POSIX thread support needs to know this.
8406 cat >>confdefs.h <<\_ACEOF
8407 #define HAVE_BOEHM_GC 1
8408 _ACEOF
8412 echo "$as_me:$LINENO: result: none" >&5
8413 echo "${ECHO_T}none" >&6
8414 GCHDR=no-gc.h
8417 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
8418 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
8419 { (exit 1); exit 1; }; }
8421 esac
8428 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
8432 if test "$GC" = boehm; then
8433 USING_BOEHMGC_TRUE=
8434 USING_BOEHMGC_FALSE='#'
8435 else
8436 USING_BOEHMGC_TRUE='#'
8437 USING_BOEHMGC_FALSE=
8442 if test "$GC" = no; then
8443 USING_NOGC_TRUE=
8444 USING_NOGC_FALSE='#'
8445 else
8446 USING_NOGC_TRUE='#'
8447 USING_NOGC_FALSE=
8452 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
8453 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
8454 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
8455 echo "$as_me:$LINENO: result: $THREADS" >&5
8456 echo "${ECHO_T}$THREADS" >&6
8458 case "$THREADS" in
8459 no | none | single)
8460 THREADS=none
8462 posix | posix95 | pthreads)
8463 THREADS=posix
8464 case "$host" in
8465 *-*-linux*)
8467 cat >>confdefs.h <<\_ACEOF
8468 #define LINUX_THREADS 1
8469 _ACEOF
8472 esac
8474 win32)
8476 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
8477 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
8478 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
8479 { (exit 1); exit 1; }; }
8482 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
8483 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
8484 { (exit 1); exit 1; }; }
8486 esac
8488 THREADCXXFLAGS=
8489 THREADLDFLAGS=
8490 THREADLIBS=
8491 THREADINCS=
8492 THREADDEPS=
8493 THREADH=
8494 THREADSPEC=
8495 case "$THREADS" in
8496 posix)
8497 case "$host" in
8498 *-*-cygwin*)
8499 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
8501 *-*-freebsd[1234]*)
8502 # Before FreeBSD 5, it didn't have -lpthread (or any library which
8503 # merely adds pthread_* functions) but it does have a -pthread switch
8504 # which is required at link-time to select -lc_r *instead* of -lc.
8505 THREADLDFLAGS=-pthread
8506 # Don't set THREADSPEC here as might be expected since -pthread is
8507 # not processed when found within a spec file, it must come from
8508 # the command line. For now, the user must provide the -pthread
8509 # switch to link code compiled with gcj. In future, consider adding
8510 # support for weak references to pthread_* functions ala gthr.h API.
8511 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
8513 *-*-freebsd*)
8514 # FreeBSD 5 implements a model much closer to other modern UNIX
8515 # which support threads. However, it still does not support
8516 # -lpthread.
8517 THREADLDFLAGS=-pthread
8518 THREADSPEC=-lc_r
8520 alpha*-dec-osf*)
8521 THREADCXXFLAGS=-pthread
8522 # boehm-gc needs some functions from librt, so link that too.
8523 THREADLIBS='-lpthread -lrt'
8524 THREADSPEC='-lpthread -lrt'
8527 THREADLIBS=-lpthread
8528 THREADSPEC=-lpthread
8530 esac
8531 THREADH=posix-threads.h
8532 # MIT pthreads doesn't seem to have the mutexattr functions.
8533 # But for now we don't check for it. We just assume you aren't
8534 # using MIT pthreads.
8536 cat >>confdefs.h <<\_ACEOF
8537 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8538 _ACEOF
8541 # If we're using the Boehm GC, then we happen to know that it
8542 # defines _REENTRANT, so we don't bother. Eww.
8543 if test "$GC" != boehm; then
8545 cat >>confdefs.h <<\_ACEOF
8546 #define _REENTRANT 1
8547 _ACEOF
8551 cat >>confdefs.h <<\_ACEOF
8552 #define _POSIX_PTHREAD_SEMANTICS 1
8553 _ACEOF
8557 win32)
8558 THREADH=win32-threads.h
8561 none)
8562 THREADH=no-threads.h
8564 esac
8565 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
8575 if test "$THREADS" = posix; then
8576 USING_POSIX_THREADS_TRUE=
8577 USING_POSIX_THREADS_FALSE='#'
8578 else
8579 USING_POSIX_THREADS_TRUE='#'
8580 USING_POSIX_THREADS_FALSE=
8585 if test "$THREADS" = win32; then
8586 USING_WIN32_THREADS_TRUE=
8587 USING_WIN32_THREADS_FALSE='#'
8588 else
8589 USING_WIN32_THREADS_TRUE='#'
8590 USING_WIN32_THREADS_FALSE=
8595 if test "$THREADS" = none; then
8596 USING_NO_THREADS_TRUE=
8597 USING_NO_THREADS_FALSE='#'
8598 else
8599 USING_NO_THREADS_TRUE='#'
8600 USING_NO_THREADS_FALSE=
8604 if test -d sysdep; then true; else mkdir sysdep; fi
8605 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
8607 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
8609 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
8612 HASH_SYNC_SPEC=
8613 # Hash synchronization is only useful with posix threads right now.
8614 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
8615 HASH_SYNC_SPEC=-fhash-synchronization
8617 cat >>confdefs.h <<\_ACEOF
8618 #define JV_HASH_SYNCHRONIZATION 1
8619 _ACEOF
8626 if test "$GCC" = yes; then
8627 USING_GCC_TRUE=
8628 USING_GCC_FALSE='#'
8629 else
8630 USING_GCC_TRUE='#'
8631 USING_GCC_FALSE=
8635 # We're in the tree with gcc, and need to include some of its headers.
8636 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
8638 if test "x${with_newlib}" = "xyes"; then
8639 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
8640 # may not work correctly, because the compiler may not be able to
8641 # link executables.
8643 # We assume newlib. This lets us hard-code the functions we know
8644 # we'll have.
8646 cat >>confdefs.h <<\_ACEOF
8647 #define HAVE_MEMMOVE 1
8648 _ACEOF
8651 cat >>confdefs.h <<\_ACEOF
8652 #define HAVE_MEMCPY 1
8653 _ACEOF
8656 cat >>confdefs.h <<\_ACEOF
8657 #define HAVE_STRERROR 1
8658 _ACEOF
8661 cat >>confdefs.h <<\_ACEOF
8662 #define HAVE_TIME 1
8663 _ACEOF
8666 cat >>confdefs.h <<\_ACEOF
8667 #define HAVE_GMTIME_R 1
8668 _ACEOF
8671 cat >>confdefs.h <<\_ACEOF
8672 #define HAVE_LOCALTIME_R 1
8673 _ACEOF
8676 cat >>confdefs.h <<\_ACEOF
8677 #define HAVE_USLEEP_DECL 1
8678 _ACEOF
8680 # This is only for POSIX threads.
8682 cat >>confdefs.h <<\_ACEOF
8683 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8684 _ACEOF
8686 # We also assume we are using gcc, which provides alloca.
8687 cat >>confdefs.h <<\_ACEOF
8688 #define HAVE_ALLOCA 1
8689 _ACEOF
8692 # Assume we do not have getuid and friends.
8694 cat >>confdefs.h <<\_ACEOF
8695 #define NO_GETUID 1
8696 _ACEOF
8698 PLATFORMNET=NoNet
8699 else
8732 for ac_func in strerror ioctl select fstat open fsync sleep opendir \
8733 gmtime_r localtime_r readdir_r getpwuid_r getcwd \
8734 access stat mkdir rename rmdir unlink realpath utime chmod \
8735 nl_langinfo setlocale \
8736 inet_pton uname inet_ntoa \
8737 fork execvp pipe sigaction ftruncate
8739 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8740 echo "$as_me:$LINENO: checking for $ac_func" >&5
8741 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8742 if eval "test \"\${$as_ac_var+set}\" = set"; then
8743 echo $ECHO_N "(cached) $ECHO_C" >&6
8744 else
8745 if test x$gcc_no_link = xyes; then
8746 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8747 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8748 { (exit 1); exit 1; }; }
8750 cat >conftest.$ac_ext <<_ACEOF
8751 /* confdefs.h. */
8752 _ACEOF
8753 cat confdefs.h >>conftest.$ac_ext
8754 cat >>conftest.$ac_ext <<_ACEOF
8755 /* end confdefs.h. */
8756 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8758 #define $ac_func innocuous_$ac_func
8760 /* System header to define __stub macros and hopefully few prototypes,
8761 which can conflict with char $ac_func (); below.
8762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8763 <limits.h> exists even on freestanding compilers. */
8765 #ifdef __STDC__
8766 # include <limits.h>
8767 #else
8768 # include <assert.h>
8769 #endif
8771 #undef $ac_func
8773 /* Override any gcc2 internal prototype to avoid an error. */
8774 #ifdef __cplusplus
8775 extern "C"
8777 #endif
8778 /* We use char because int might match the return type of a gcc2
8779 builtin and then its argument prototype would still apply. */
8780 char $ac_func ();
8781 /* The GNU C library defines this for functions which it implements
8782 to always fail with ENOSYS. Some functions are actually named
8783 something starting with __ and the normal name is an alias. */
8784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8785 choke me
8786 #else
8787 char (*f) () = $ac_func;
8788 #endif
8789 #ifdef __cplusplus
8791 #endif
8794 main ()
8796 return f != $ac_func;
8798 return 0;
8800 _ACEOF
8801 rm -f conftest.$ac_objext conftest$ac_exeext
8802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8803 (eval $ac_link) 2>conftest.er1
8804 ac_status=$?
8805 grep -v '^ *+' conftest.er1 >conftest.err
8806 rm -f conftest.er1
8807 cat conftest.err >&5
8808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809 (exit $ac_status); } &&
8810 { ac_try='test -z "$ac_c_werror_flag"
8811 || test ! -s conftest.err'
8812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8813 (eval $ac_try) 2>&5
8814 ac_status=$?
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); }; } &&
8817 { ac_try='test -s conftest$ac_exeext'
8818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8819 (eval $ac_try) 2>&5
8820 ac_status=$?
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); }; }; then
8823 eval "$as_ac_var=yes"
8824 else
8825 echo "$as_me: failed program was:" >&5
8826 sed 's/^/| /' conftest.$ac_ext >&5
8828 eval "$as_ac_var=no"
8830 rm -f conftest.err conftest.$ac_objext \
8831 conftest$ac_exeext conftest.$ac_ext
8833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8834 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8835 if test `eval echo '${'$as_ac_var'}'` = yes; then
8836 cat >>confdefs.h <<_ACEOF
8837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8838 _ACEOF
8841 done
8845 for ac_func in inet_aton inet_addr
8847 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8848 echo "$as_me:$LINENO: checking for $ac_func" >&5
8849 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8850 if eval "test \"\${$as_ac_var+set}\" = set"; then
8851 echo $ECHO_N "(cached) $ECHO_C" >&6
8852 else
8853 if test x$gcc_no_link = xyes; then
8854 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8855 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8856 { (exit 1); exit 1; }; }
8858 cat >conftest.$ac_ext <<_ACEOF
8859 /* confdefs.h. */
8860 _ACEOF
8861 cat confdefs.h >>conftest.$ac_ext
8862 cat >>conftest.$ac_ext <<_ACEOF
8863 /* end confdefs.h. */
8864 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8866 #define $ac_func innocuous_$ac_func
8868 /* System header to define __stub macros and hopefully few prototypes,
8869 which can conflict with char $ac_func (); below.
8870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8871 <limits.h> exists even on freestanding compilers. */
8873 #ifdef __STDC__
8874 # include <limits.h>
8875 #else
8876 # include <assert.h>
8877 #endif
8879 #undef $ac_func
8881 /* Override any gcc2 internal prototype to avoid an error. */
8882 #ifdef __cplusplus
8883 extern "C"
8885 #endif
8886 /* We use char because int might match the return type of a gcc2
8887 builtin and then its argument prototype would still apply. */
8888 char $ac_func ();
8889 /* The GNU C library defines this for functions which it implements
8890 to always fail with ENOSYS. Some functions are actually named
8891 something starting with __ and the normal name is an alias. */
8892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8893 choke me
8894 #else
8895 char (*f) () = $ac_func;
8896 #endif
8897 #ifdef __cplusplus
8899 #endif
8902 main ()
8904 return f != $ac_func;
8906 return 0;
8908 _ACEOF
8909 rm -f conftest.$ac_objext conftest$ac_exeext
8910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8911 (eval $ac_link) 2>conftest.er1
8912 ac_status=$?
8913 grep -v '^ *+' conftest.er1 >conftest.err
8914 rm -f conftest.er1
8915 cat conftest.err >&5
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); } &&
8918 { ac_try='test -z "$ac_c_werror_flag"
8919 || test ! -s conftest.err'
8920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8921 (eval $ac_try) 2>&5
8922 ac_status=$?
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); }; } &&
8925 { ac_try='test -s conftest$ac_exeext'
8926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8927 (eval $ac_try) 2>&5
8928 ac_status=$?
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); }; }; then
8931 eval "$as_ac_var=yes"
8932 else
8933 echo "$as_me: failed program was:" >&5
8934 sed 's/^/| /' conftest.$ac_ext >&5
8936 eval "$as_ac_var=no"
8938 rm -f conftest.err conftest.$ac_objext \
8939 conftest$ac_exeext conftest.$ac_ext
8941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8942 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8943 if test `eval echo '${'$as_ac_var'}'` = yes; then
8944 cat >>confdefs.h <<_ACEOF
8945 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8946 _ACEOF
8947 break
8949 done
8951 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8952 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8953 if test "${ac_cv_header_stdc+set}" = set; then
8954 echo $ECHO_N "(cached) $ECHO_C" >&6
8955 else
8956 cat >conftest.$ac_ext <<_ACEOF
8957 /* confdefs.h. */
8958 _ACEOF
8959 cat confdefs.h >>conftest.$ac_ext
8960 cat >>conftest.$ac_ext <<_ACEOF
8961 /* end confdefs.h. */
8962 #include <stdlib.h>
8963 #include <stdarg.h>
8964 #include <string.h>
8965 #include <float.h>
8968 main ()
8972 return 0;
8974 _ACEOF
8975 rm -f conftest.$ac_objext
8976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8977 (eval $ac_compile) 2>conftest.er1
8978 ac_status=$?
8979 grep -v '^ *+' conftest.er1 >conftest.err
8980 rm -f conftest.er1
8981 cat conftest.err >&5
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); } &&
8984 { ac_try='test -z "$ac_c_werror_flag"
8985 || test ! -s conftest.err'
8986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8987 (eval $ac_try) 2>&5
8988 ac_status=$?
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); }; } &&
8991 { ac_try='test -s conftest.$ac_objext'
8992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8993 (eval $ac_try) 2>&5
8994 ac_status=$?
8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996 (exit $ac_status); }; }; then
8997 ac_cv_header_stdc=yes
8998 else
8999 echo "$as_me: failed program was:" >&5
9000 sed 's/^/| /' conftest.$ac_ext >&5
9002 ac_cv_header_stdc=no
9004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9006 if test $ac_cv_header_stdc = yes; then
9007 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9008 cat >conftest.$ac_ext <<_ACEOF
9009 /* confdefs.h. */
9010 _ACEOF
9011 cat confdefs.h >>conftest.$ac_ext
9012 cat >>conftest.$ac_ext <<_ACEOF
9013 /* end confdefs.h. */
9014 #include <string.h>
9016 _ACEOF
9017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9018 $EGREP "memchr" >/dev/null 2>&1; then
9020 else
9021 ac_cv_header_stdc=no
9023 rm -f conftest*
9027 if test $ac_cv_header_stdc = yes; then
9028 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9029 cat >conftest.$ac_ext <<_ACEOF
9030 /* confdefs.h. */
9031 _ACEOF
9032 cat confdefs.h >>conftest.$ac_ext
9033 cat >>conftest.$ac_ext <<_ACEOF
9034 /* end confdefs.h. */
9035 #include <stdlib.h>
9037 _ACEOF
9038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9039 $EGREP "free" >/dev/null 2>&1; then
9041 else
9042 ac_cv_header_stdc=no
9044 rm -f conftest*
9048 if test $ac_cv_header_stdc = yes; then
9049 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9050 if test "$cross_compiling" = yes; then
9052 else
9053 cat >conftest.$ac_ext <<_ACEOF
9054 /* confdefs.h. */
9055 _ACEOF
9056 cat confdefs.h >>conftest.$ac_ext
9057 cat >>conftest.$ac_ext <<_ACEOF
9058 /* end confdefs.h. */
9059 #include <ctype.h>
9060 #if ((' ' & 0x0FF) == 0x020)
9061 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9062 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9063 #else
9064 # define ISLOWER(c) \
9065 (('a' <= (c) && (c) <= 'i') \
9066 || ('j' <= (c) && (c) <= 'r') \
9067 || ('s' <= (c) && (c) <= 'z'))
9068 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9069 #endif
9071 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9073 main ()
9075 int i;
9076 for (i = 0; i < 256; i++)
9077 if (XOR (islower (i), ISLOWER (i))
9078 || toupper (i) != TOUPPER (i))
9079 exit(2);
9080 exit (0);
9082 _ACEOF
9083 rm -f conftest$ac_exeext
9084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9085 (eval $ac_link) 2>&5
9086 ac_status=$?
9087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9090 (eval $ac_try) 2>&5
9091 ac_status=$?
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); }; }; then
9095 else
9096 echo "$as_me: program exited with status $ac_status" >&5
9097 echo "$as_me: failed program was:" >&5
9098 sed 's/^/| /' conftest.$ac_ext >&5
9100 ( exit $ac_status )
9101 ac_cv_header_stdc=no
9103 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9107 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9108 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9109 if test $ac_cv_header_stdc = yes; then
9111 cat >>confdefs.h <<\_ACEOF
9112 #define STDC_HEADERS 1
9113 _ACEOF
9117 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9127 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9128 inttypes.h stdint.h unistd.h
9130 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9131 echo "$as_me:$LINENO: checking for $ac_header" >&5
9132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9134 echo $ECHO_N "(cached) $ECHO_C" >&6
9135 else
9136 cat >conftest.$ac_ext <<_ACEOF
9137 /* confdefs.h. */
9138 _ACEOF
9139 cat confdefs.h >>conftest.$ac_ext
9140 cat >>conftest.$ac_ext <<_ACEOF
9141 /* end confdefs.h. */
9142 $ac_includes_default
9144 #include <$ac_header>
9145 _ACEOF
9146 rm -f conftest.$ac_objext
9147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9148 (eval $ac_compile) 2>conftest.er1
9149 ac_status=$?
9150 grep -v '^ *+' conftest.er1 >conftest.err
9151 rm -f conftest.er1
9152 cat conftest.err >&5
9153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154 (exit $ac_status); } &&
9155 { ac_try='test -z "$ac_c_werror_flag"
9156 || test ! -s conftest.err'
9157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9158 (eval $ac_try) 2>&5
9159 ac_status=$?
9160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161 (exit $ac_status); }; } &&
9162 { ac_try='test -s conftest.$ac_objext'
9163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9164 (eval $ac_try) 2>&5
9165 ac_status=$?
9166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167 (exit $ac_status); }; }; then
9168 eval "$as_ac_Header=yes"
9169 else
9170 echo "$as_me: failed program was:" >&5
9171 sed 's/^/| /' conftest.$ac_ext >&5
9173 eval "$as_ac_Header=no"
9175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9178 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9180 cat >>confdefs.h <<_ACEOF
9181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9182 _ACEOF
9186 done
9192 for ac_header in execinfo.h unistd.h dlfcn.h
9194 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9196 echo "$as_me:$LINENO: checking for $ac_header" >&5
9197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9199 echo $ECHO_N "(cached) $ECHO_C" >&6
9201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9202 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9203 else
9204 # Is the header compilable?
9205 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9207 cat >conftest.$ac_ext <<_ACEOF
9208 /* confdefs.h. */
9209 _ACEOF
9210 cat confdefs.h >>conftest.$ac_ext
9211 cat >>conftest.$ac_ext <<_ACEOF
9212 /* end confdefs.h. */
9213 $ac_includes_default
9214 #include <$ac_header>
9215 _ACEOF
9216 rm -f conftest.$ac_objext
9217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9218 (eval $ac_compile) 2>conftest.er1
9219 ac_status=$?
9220 grep -v '^ *+' conftest.er1 >conftest.err
9221 rm -f conftest.er1
9222 cat conftest.err >&5
9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); } &&
9225 { ac_try='test -z "$ac_c_werror_flag"
9226 || test ! -s conftest.err'
9227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9228 (eval $ac_try) 2>&5
9229 ac_status=$?
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); }; } &&
9232 { ac_try='test -s conftest.$ac_objext'
9233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9234 (eval $ac_try) 2>&5
9235 ac_status=$?
9236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237 (exit $ac_status); }; }; then
9238 ac_header_compiler=yes
9239 else
9240 echo "$as_me: failed program was:" >&5
9241 sed 's/^/| /' conftest.$ac_ext >&5
9243 ac_header_compiler=no
9245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9246 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9247 echo "${ECHO_T}$ac_header_compiler" >&6
9249 # Is the header present?
9250 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9251 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9252 cat >conftest.$ac_ext <<_ACEOF
9253 /* confdefs.h. */
9254 _ACEOF
9255 cat confdefs.h >>conftest.$ac_ext
9256 cat >>conftest.$ac_ext <<_ACEOF
9257 /* end confdefs.h. */
9258 #include <$ac_header>
9259 _ACEOF
9260 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9261 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9262 ac_status=$?
9263 grep -v '^ *+' conftest.er1 >conftest.err
9264 rm -f conftest.er1
9265 cat conftest.err >&5
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); } >/dev/null; then
9268 if test -s conftest.err; then
9269 ac_cpp_err=$ac_c_preproc_warn_flag
9270 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9271 else
9272 ac_cpp_err=
9274 else
9275 ac_cpp_err=yes
9277 if test -z "$ac_cpp_err"; then
9278 ac_header_preproc=yes
9279 else
9280 echo "$as_me: failed program was:" >&5
9281 sed 's/^/| /' conftest.$ac_ext >&5
9283 ac_header_preproc=no
9285 rm -f conftest.err conftest.$ac_ext
9286 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9287 echo "${ECHO_T}$ac_header_preproc" >&6
9289 # So? What about this header?
9290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9291 yes:no: )
9292 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9293 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9295 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9296 ac_header_preproc=yes
9298 no:yes:* )
9299 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9300 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9301 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9302 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9303 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9304 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9305 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9306 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9308 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9309 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9310 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9312 cat <<\_ASBOX
9313 ## ---------------------------------- ##
9314 ## Report this to the libjava lists. ##
9315 ## ---------------------------------- ##
9316 _ASBOX
9318 sed "s/^/$as_me: WARNING: /" >&2
9320 esac
9321 echo "$as_me:$LINENO: checking for $ac_header" >&5
9322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9324 echo $ECHO_N "(cached) $ECHO_C" >&6
9325 else
9326 eval "$as_ac_Header=\$ac_header_preproc"
9328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9333 cat >>confdefs.h <<_ACEOF
9334 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9335 _ACEOF
9339 done
9341 echo "$as_me:$LINENO: checking for backtrace" >&5
9342 echo $ECHO_N "checking for backtrace... $ECHO_C" >&6
9343 if test "${ac_cv_func_backtrace+set}" = set; then
9344 echo $ECHO_N "(cached) $ECHO_C" >&6
9345 else
9346 if test x$gcc_no_link = xyes; then
9347 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9348 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9349 { (exit 1); exit 1; }; }
9351 cat >conftest.$ac_ext <<_ACEOF
9352 /* confdefs.h. */
9353 _ACEOF
9354 cat confdefs.h >>conftest.$ac_ext
9355 cat >>conftest.$ac_ext <<_ACEOF
9356 /* end confdefs.h. */
9357 /* Define backtrace to an innocuous variant, in case <limits.h> declares backtrace.
9358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9359 #define backtrace innocuous_backtrace
9361 /* System header to define __stub macros and hopefully few prototypes,
9362 which can conflict with char backtrace (); below.
9363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9364 <limits.h> exists even on freestanding compilers. */
9366 #ifdef __STDC__
9367 # include <limits.h>
9368 #else
9369 # include <assert.h>
9370 #endif
9372 #undef backtrace
9374 /* Override any gcc2 internal prototype to avoid an error. */
9375 #ifdef __cplusplus
9376 extern "C"
9378 #endif
9379 /* We use char because int might match the return type of a gcc2
9380 builtin and then its argument prototype would still apply. */
9381 char backtrace ();
9382 /* The GNU C library defines this for functions which it implements
9383 to always fail with ENOSYS. Some functions are actually named
9384 something starting with __ and the normal name is an alias. */
9385 #if defined (__stub_backtrace) || defined (__stub___backtrace)
9386 choke me
9387 #else
9388 char (*f) () = backtrace;
9389 #endif
9390 #ifdef __cplusplus
9392 #endif
9395 main ()
9397 return f != backtrace;
9399 return 0;
9401 _ACEOF
9402 rm -f conftest.$ac_objext conftest$ac_exeext
9403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9404 (eval $ac_link) 2>conftest.er1
9405 ac_status=$?
9406 grep -v '^ *+' conftest.er1 >conftest.err
9407 rm -f conftest.er1
9408 cat conftest.err >&5
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); } &&
9411 { ac_try='test -z "$ac_c_werror_flag"
9412 || test ! -s conftest.err'
9413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9414 (eval $ac_try) 2>&5
9415 ac_status=$?
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); }; } &&
9418 { ac_try='test -s conftest$ac_exeext'
9419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9420 (eval $ac_try) 2>&5
9421 ac_status=$?
9422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423 (exit $ac_status); }; }; then
9424 ac_cv_func_backtrace=yes
9425 else
9426 echo "$as_me: failed program was:" >&5
9427 sed 's/^/| /' conftest.$ac_ext >&5
9429 ac_cv_func_backtrace=no
9431 rm -f conftest.err conftest.$ac_objext \
9432 conftest$ac_exeext conftest.$ac_ext
9434 echo "$as_me:$LINENO: result: $ac_cv_func_backtrace" >&5
9435 echo "${ECHO_T}$ac_cv_func_backtrace" >&6
9436 if test $ac_cv_func_backtrace = yes; then
9438 case "$host" in
9439 ia64-*-linux*)
9440 # Has broken backtrace()
9442 mips*-*-linux*)
9443 # Has broken backtrace(), but we supply our own.
9444 if test -d sysdep; then true; else mkdir -p sysdep; fi
9445 supply_backtrace=yes
9447 cat >>confdefs.h <<\_ACEOF
9448 #define HAVE_BACKTRACE 1
9449 _ACEOF
9454 cat >>confdefs.h <<\_ACEOF
9455 #define HAVE_BACKTRACE 1
9456 _ACEOF
9459 esac
9461 else
9463 case "$host" in
9464 *mingw*)
9465 # Has backtrace() defined in libgcj itself
9467 cat >>confdefs.h <<\_ACEOF
9468 #define HAVE_BACKTRACE 1
9469 _ACEOF
9472 esac
9477 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
9478 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
9479 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
9480 echo $ECHO_N "(cached) $ECHO_C" >&6
9481 else
9482 ac_check_lib_save_LIBS=$LIBS
9483 LIBS="-ldl $LIBS"
9484 if test x$gcc_no_link = xyes; then
9485 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9486 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9487 { (exit 1); exit 1; }; }
9489 cat >conftest.$ac_ext <<_ACEOF
9490 /* confdefs.h. */
9491 _ACEOF
9492 cat confdefs.h >>conftest.$ac_ext
9493 cat >>conftest.$ac_ext <<_ACEOF
9494 /* end confdefs.h. */
9496 /* Override any gcc2 internal prototype to avoid an error. */
9497 #ifdef __cplusplus
9498 extern "C"
9499 #endif
9500 /* We use char because int might match the return type of a gcc2
9501 builtin and then its argument prototype would still apply. */
9502 char dladdr ();
9504 main ()
9506 dladdr ();
9508 return 0;
9510 _ACEOF
9511 rm -f conftest.$ac_objext conftest$ac_exeext
9512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9513 (eval $ac_link) 2>conftest.er1
9514 ac_status=$?
9515 grep -v '^ *+' conftest.er1 >conftest.err
9516 rm -f conftest.er1
9517 cat conftest.err >&5
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); } &&
9520 { ac_try='test -z "$ac_c_werror_flag"
9521 || test ! -s conftest.err'
9522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9523 (eval $ac_try) 2>&5
9524 ac_status=$?
9525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 (exit $ac_status); }; } &&
9527 { ac_try='test -s conftest$ac_exeext'
9528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9529 (eval $ac_try) 2>&5
9530 ac_status=$?
9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 (exit $ac_status); }; }; then
9533 ac_cv_lib_dl_dladdr=yes
9534 else
9535 echo "$as_me: failed program was:" >&5
9536 sed 's/^/| /' conftest.$ac_ext >&5
9538 ac_cv_lib_dl_dladdr=no
9540 rm -f conftest.err conftest.$ac_objext \
9541 conftest$ac_exeext conftest.$ac_ext
9542 LIBS=$ac_check_lib_save_LIBS
9544 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
9545 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
9546 if test $ac_cv_lib_dl_dladdr = yes; then
9548 if test "x${disable_dladdr}" = "xyes"; then
9549 #Broken dladdr().
9550 true
9551 else
9553 cat >>confdefs.h <<\_ACEOF
9554 #define HAVE_DLADDR 1
9555 _ACEOF
9561 if test x"$build" = x"$host"; then
9562 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
9563 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
9564 if test "${ac_cv_file__proc_self_exe+set}" = set; then
9565 echo $ECHO_N "(cached) $ECHO_C" >&6
9566 else
9567 test "$cross_compiling" = yes &&
9568 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
9569 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9570 { (exit 1); exit 1; }; }
9571 if test -r "/proc/self/exe"; then
9572 ac_cv_file__proc_self_exe=yes
9573 else
9574 ac_cv_file__proc_self_exe=no
9577 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
9578 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
9579 if test $ac_cv_file__proc_self_exe = yes; then
9581 cat >>confdefs.h <<_ACEOF
9582 #define HAVE__PROC_SELF_EXE 1
9583 _ACEOF
9587 cat >>confdefs.h <<\_ACEOF
9588 #define HAVE_PROC_SELF_EXE 1
9589 _ACEOF
9593 else
9594 case $host in
9595 *-linux*)
9597 cat >>confdefs.h <<\_ACEOF
9598 #define HAVE_PROC_SELF_EXE 1
9599 _ACEOF
9602 esac
9606 if test "X$prefix" = "XNONE"; then
9607 acl_final_prefix="$ac_default_prefix"
9608 else
9609 acl_final_prefix="$prefix"
9611 if test "X$exec_prefix" = "XNONE"; then
9612 acl_final_exec_prefix='${prefix}'
9613 else
9614 acl_final_exec_prefix="$exec_prefix"
9616 acl_save_prefix="$prefix"
9617 prefix="$acl_final_prefix"
9618 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9619 prefix="$acl_save_prefix"
9622 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9623 if test "${with_gnu_ld+set}" = set; then
9624 withval="$with_gnu_ld"
9625 test "$withval" = no || with_gnu_ld=yes
9626 else
9627 with_gnu_ld=no
9629 # Prepare PATH_SEPARATOR.
9630 # The user is always right.
9631 if test "${PATH_SEPARATOR+set}" != set; then
9632 echo "#! /bin/sh" >conf$$.sh
9633 echo "exit 0" >>conf$$.sh
9634 chmod +x conf$$.sh
9635 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9636 PATH_SEPARATOR=';'
9637 else
9638 PATH_SEPARATOR=:
9640 rm -f conf$$.sh
9642 ac_prog=ld
9643 if test "$GCC" = yes; then
9644 # Check if gcc -print-prog-name=ld gives a path.
9645 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
9646 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
9647 case $host in
9648 *-*-mingw*)
9649 # gcc leaves a trailing carriage return which upsets mingw
9650 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9652 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9653 esac
9654 case $ac_prog in
9655 # Accept absolute paths.
9656 [\\/]* | [A-Za-z]:[\\/]*)
9657 re_direlt='/[^/][^/]*/\.\./'
9658 # Canonicalize the path of ld
9659 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9660 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9661 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9662 done
9663 test -z "$LD" && LD="$ac_prog"
9666 # If it fails, then pretend we aren't using GCC.
9667 ac_prog=ld
9670 # If it is relative, then search for the first ld in PATH.
9671 with_gnu_ld=unknown
9673 esac
9674 elif test "$with_gnu_ld" = yes; then
9675 echo "$as_me:$LINENO: checking for GNU ld" >&5
9676 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9677 else
9678 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9679 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9681 if test "${acl_cv_path_LD+set}" = set; then
9682 echo $ECHO_N "(cached) $ECHO_C" >&6
9683 else
9684 if test -z "$LD"; then
9685 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9686 for ac_dir in $PATH; do
9687 test -z "$ac_dir" && ac_dir=.
9688 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9689 acl_cv_path_LD="$ac_dir/$ac_prog"
9690 # Check to see if the program is GNU ld. I'd rather use --version,
9691 # but apparently some GNU ld's only accept -v.
9692 # Break only if it was the GNU/non-GNU ld that we prefer.
9693 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9694 test "$with_gnu_ld" != no && break
9695 else
9696 test "$with_gnu_ld" != yes && break
9699 done
9700 IFS="$ac_save_ifs"
9701 else
9702 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9706 LD="$acl_cv_path_LD"
9707 if test -n "$LD"; then
9708 echo "$as_me:$LINENO: result: $LD" >&5
9709 echo "${ECHO_T}$LD" >&6
9710 else
9711 echo "$as_me:$LINENO: result: no" >&5
9712 echo "${ECHO_T}no" >&6
9714 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9715 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9716 { (exit 1); exit 1; }; }
9717 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9718 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9719 if test "${acl_cv_prog_gnu_ld+set}" = set; then
9720 echo $ECHO_N "(cached) $ECHO_C" >&6
9721 else
9722 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9723 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9724 acl_cv_prog_gnu_ld=yes
9725 else
9726 acl_cv_prog_gnu_ld=no
9729 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9730 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
9731 with_gnu_ld=$acl_cv_prog_gnu_ld
9735 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9736 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
9737 if test "${acl_cv_rpath+set}" = set; then
9738 echo $ECHO_N "(cached) $ECHO_C" >&6
9739 else
9741 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9742 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9743 . ./conftest.sh
9744 rm -f ./conftest.sh
9745 acl_cv_rpath=done
9748 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9749 echo "${ECHO_T}$acl_cv_rpath" >&6
9750 wl="$acl_cv_wl"
9751 libext="$acl_cv_libext"
9752 shlibext="$acl_cv_shlibext"
9753 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9754 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9755 hardcode_direct="$acl_cv_hardcode_direct"
9756 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9757 # Check whether --enable-rpath or --disable-rpath was given.
9758 if test "${enable_rpath+set}" = set; then
9759 enableval="$enable_rpath"
9761 else
9762 enable_rpath=yes
9771 use_additional=yes
9773 acl_save_prefix="$prefix"
9774 prefix="$acl_final_prefix"
9775 acl_save_exec_prefix="$exec_prefix"
9776 exec_prefix="$acl_final_exec_prefix"
9778 eval additional_includedir=\"$includedir\"
9779 eval additional_libdir=\"$libdir\"
9781 exec_prefix="$acl_save_exec_prefix"
9782 prefix="$acl_save_prefix"
9785 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
9786 if test "${with_libiconv_prefix+set}" = set; then
9787 withval="$with_libiconv_prefix"
9789 if test "X$withval" = "Xno"; then
9790 use_additional=no
9791 else
9792 if test "X$withval" = "X"; then
9794 acl_save_prefix="$prefix"
9795 prefix="$acl_final_prefix"
9796 acl_save_exec_prefix="$exec_prefix"
9797 exec_prefix="$acl_final_exec_prefix"
9799 eval additional_includedir=\"$includedir\"
9800 eval additional_libdir=\"$libdir\"
9802 exec_prefix="$acl_save_exec_prefix"
9803 prefix="$acl_save_prefix"
9805 else
9806 additional_includedir="$withval/include"
9807 additional_libdir="$withval/lib"
9812 LIBICONV=
9813 LTLIBICONV=
9814 INCICONV=
9815 rpathdirs=
9816 ltrpathdirs=
9817 names_already_handled=
9818 names_next_round='iconv '
9819 while test -n "$names_next_round"; do
9820 names_this_round="$names_next_round"
9821 names_next_round=
9822 for name in $names_this_round; do
9823 already_handled=
9824 for n in $names_already_handled; do
9825 if test "$n" = "$name"; then
9826 already_handled=yes
9827 break
9829 done
9830 if test -z "$already_handled"; then
9831 names_already_handled="$names_already_handled $name"
9832 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9833 eval value=\"\$HAVE_LIB$uppername\"
9834 if test -n "$value"; then
9835 if test "$value" = yes; then
9836 eval value=\"\$LIB$uppername\"
9837 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9838 eval value=\"\$LTLIB$uppername\"
9839 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9840 else
9843 else
9844 found_dir=
9845 found_la=
9846 found_so=
9847 found_a=
9848 if test $use_additional = yes; then
9849 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9850 found_dir="$additional_libdir"
9851 found_so="$additional_libdir/lib$name.$shlibext"
9852 if test -f "$additional_libdir/lib$name.la"; then
9853 found_la="$additional_libdir/lib$name.la"
9855 else
9856 if test -f "$additional_libdir/lib$name.$libext"; then
9857 found_dir="$additional_libdir"
9858 found_a="$additional_libdir/lib$name.$libext"
9859 if test -f "$additional_libdir/lib$name.la"; then
9860 found_la="$additional_libdir/lib$name.la"
9865 if test "X$found_dir" = "X"; then
9866 for x in $LDFLAGS $LTLIBICONV; do
9868 acl_save_prefix="$prefix"
9869 prefix="$acl_final_prefix"
9870 acl_save_exec_prefix="$exec_prefix"
9871 exec_prefix="$acl_final_exec_prefix"
9872 eval x=\"$x\"
9873 exec_prefix="$acl_save_exec_prefix"
9874 prefix="$acl_save_prefix"
9876 case "$x" in
9877 -L*)
9878 dir=`echo "X$x" | sed -e 's/^X-L//'`
9879 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9880 found_dir="$dir"
9881 found_so="$dir/lib$name.$shlibext"
9882 if test -f "$dir/lib$name.la"; then
9883 found_la="$dir/lib$name.la"
9885 else
9886 if test -f "$dir/lib$name.$libext"; then
9887 found_dir="$dir"
9888 found_a="$dir/lib$name.$libext"
9889 if test -f "$dir/lib$name.la"; then
9890 found_la="$dir/lib$name.la"
9895 esac
9896 if test "X$found_dir" != "X"; then
9897 break
9899 done
9901 if test "X$found_dir" != "X"; then
9902 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9903 if test "X$found_so" != "X"; then
9904 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9905 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9906 else
9907 haveit=
9908 for x in $ltrpathdirs; do
9909 if test "X$x" = "X$found_dir"; then
9910 haveit=yes
9911 break
9913 done
9914 if test -z "$haveit"; then
9915 ltrpathdirs="$ltrpathdirs $found_dir"
9917 if test "$hardcode_direct" = yes; then
9918 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9919 else
9920 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9921 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9922 haveit=
9923 for x in $rpathdirs; do
9924 if test "X$x" = "X$found_dir"; then
9925 haveit=yes
9926 break
9928 done
9929 if test -z "$haveit"; then
9930 rpathdirs="$rpathdirs $found_dir"
9932 else
9933 haveit=
9934 for x in $LDFLAGS $LIBICONV; do
9936 acl_save_prefix="$prefix"
9937 prefix="$acl_final_prefix"
9938 acl_save_exec_prefix="$exec_prefix"
9939 exec_prefix="$acl_final_exec_prefix"
9940 eval x=\"$x\"
9941 exec_prefix="$acl_save_exec_prefix"
9942 prefix="$acl_save_prefix"
9944 if test "X$x" = "X-L$found_dir"; then
9945 haveit=yes
9946 break
9948 done
9949 if test -z "$haveit"; then
9950 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9952 if test "$hardcode_minus_L" != no; then
9953 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9954 else
9955 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9960 else
9961 if test "X$found_a" != "X"; then
9962 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9963 else
9964 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9967 additional_includedir=
9968 case "$found_dir" in
9969 */lib | */lib/)
9970 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9971 additional_includedir="$basedir/include"
9973 esac
9974 if test "X$additional_includedir" != "X"; then
9975 if test "X$additional_includedir" != "X/usr/include"; then
9976 haveit=
9977 if test "X$additional_includedir" = "X/usr/local/include"; then
9978 if test -n "$GCC"; then
9979 case $host_os in
9980 linux*) haveit=yes;;
9981 esac
9984 if test -z "$haveit"; then
9985 for x in $CPPFLAGS $INCICONV; do
9987 acl_save_prefix="$prefix"
9988 prefix="$acl_final_prefix"
9989 acl_save_exec_prefix="$exec_prefix"
9990 exec_prefix="$acl_final_exec_prefix"
9991 eval x=\"$x\"
9992 exec_prefix="$acl_save_exec_prefix"
9993 prefix="$acl_save_prefix"
9995 if test "X$x" = "X-I$additional_includedir"; then
9996 haveit=yes
9997 break
9999 done
10000 if test -z "$haveit"; then
10001 if test -d "$additional_includedir"; then
10002 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10008 if test -n "$found_la"; then
10009 save_libdir="$libdir"
10010 case "$found_la" in
10011 */* | *\\*) . "$found_la" ;;
10012 *) . "./$found_la" ;;
10013 esac
10014 libdir="$save_libdir"
10015 for dep in $dependency_libs; do
10016 case "$dep" in
10017 -L*)
10018 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10019 if test "X$additional_libdir" != "X/usr/lib"; then
10020 haveit=
10021 if test "X$additional_libdir" = "X/usr/local/lib"; then
10022 if test -n "$GCC"; then
10023 case $host_os in
10024 linux*) haveit=yes;;
10025 esac
10028 if test -z "$haveit"; then
10029 haveit=
10030 for x in $LDFLAGS $LIBICONV; do
10032 acl_save_prefix="$prefix"
10033 prefix="$acl_final_prefix"
10034 acl_save_exec_prefix="$exec_prefix"
10035 exec_prefix="$acl_final_exec_prefix"
10036 eval x=\"$x\"
10037 exec_prefix="$acl_save_exec_prefix"
10038 prefix="$acl_save_prefix"
10040 if test "X$x" = "X-L$additional_libdir"; then
10041 haveit=yes
10042 break
10044 done
10045 if test -z "$haveit"; then
10046 if test -d "$additional_libdir"; then
10047 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10050 haveit=
10051 for x in $LDFLAGS $LTLIBICONV; do
10053 acl_save_prefix="$prefix"
10054 prefix="$acl_final_prefix"
10055 acl_save_exec_prefix="$exec_prefix"
10056 exec_prefix="$acl_final_exec_prefix"
10057 eval x=\"$x\"
10058 exec_prefix="$acl_save_exec_prefix"
10059 prefix="$acl_save_prefix"
10061 if test "X$x" = "X-L$additional_libdir"; then
10062 haveit=yes
10063 break
10065 done
10066 if test -z "$haveit"; then
10067 if test -d "$additional_libdir"; then
10068 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10074 -R*)
10075 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10076 if test "$enable_rpath" != no; then
10077 haveit=
10078 for x in $rpathdirs; do
10079 if test "X$x" = "X$dir"; then
10080 haveit=yes
10081 break
10083 done
10084 if test -z "$haveit"; then
10085 rpathdirs="$rpathdirs $dir"
10087 haveit=
10088 for x in $ltrpathdirs; do
10089 if test "X$x" = "X$dir"; then
10090 haveit=yes
10091 break
10093 done
10094 if test -z "$haveit"; then
10095 ltrpathdirs="$ltrpathdirs $dir"
10099 -l*)
10100 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10102 *.la)
10103 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10106 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10107 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10109 esac
10110 done
10112 else
10113 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10114 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10118 done
10119 done
10120 if test "X$rpathdirs" != "X"; then
10121 if test -n "$hardcode_libdir_separator"; then
10122 alldirs=
10123 for found_dir in $rpathdirs; do
10124 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10125 done
10126 acl_save_libdir="$libdir"
10127 libdir="$alldirs"
10128 eval flag=\"$hardcode_libdir_flag_spec\"
10129 libdir="$acl_save_libdir"
10130 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10131 else
10132 for found_dir in $rpathdirs; do
10133 acl_save_libdir="$libdir"
10134 libdir="$found_dir"
10135 eval flag=\"$hardcode_libdir_flag_spec\"
10136 libdir="$acl_save_libdir"
10137 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10138 done
10141 if test "X$ltrpathdirs" != "X"; then
10142 for found_dir in $ltrpathdirs; do
10143 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10144 done
10153 am_save_CPPFLAGS="$CPPFLAGS"
10155 for element in $INCICONV; do
10156 haveit=
10157 for x in $CPPFLAGS; do
10159 acl_save_prefix="$prefix"
10160 prefix="$acl_final_prefix"
10161 acl_save_exec_prefix="$exec_prefix"
10162 exec_prefix="$acl_final_exec_prefix"
10163 eval x=\"$x\"
10164 exec_prefix="$acl_save_exec_prefix"
10165 prefix="$acl_save_prefix"
10167 if test "X$x" = "X$element"; then
10168 haveit=yes
10169 break
10171 done
10172 if test -z "$haveit"; then
10173 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10175 done
10178 echo "$as_me:$LINENO: checking for iconv" >&5
10179 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10180 if test "${am_cv_func_iconv+set}" = set; then
10181 echo $ECHO_N "(cached) $ECHO_C" >&6
10182 else
10184 am_cv_func_iconv="no, consider installing GNU libiconv"
10185 am_cv_lib_iconv=no
10186 if test x$gcc_no_link = xyes; then
10187 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10188 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10189 { (exit 1); exit 1; }; }
10191 cat >conftest.$ac_ext <<_ACEOF
10192 /* confdefs.h. */
10193 _ACEOF
10194 cat confdefs.h >>conftest.$ac_ext
10195 cat >>conftest.$ac_ext <<_ACEOF
10196 /* end confdefs.h. */
10197 #include <stdlib.h>
10198 #include <iconv.h>
10200 main ()
10202 iconv_t cd = iconv_open("","");
10203 iconv(cd,NULL,NULL,NULL,NULL);
10204 iconv_close(cd);
10206 return 0;
10208 _ACEOF
10209 rm -f conftest.$ac_objext conftest$ac_exeext
10210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10211 (eval $ac_link) 2>conftest.er1
10212 ac_status=$?
10213 grep -v '^ *+' conftest.er1 >conftest.err
10214 rm -f conftest.er1
10215 cat conftest.err >&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); } &&
10218 { ac_try='test -z "$ac_c_werror_flag"
10219 || test ! -s conftest.err'
10220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10221 (eval $ac_try) 2>&5
10222 ac_status=$?
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); }; } &&
10225 { ac_try='test -s conftest$ac_exeext'
10226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10227 (eval $ac_try) 2>&5
10228 ac_status=$?
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); }; }; then
10231 am_cv_func_iconv=yes
10232 else
10233 echo "$as_me: failed program was:" >&5
10234 sed 's/^/| /' conftest.$ac_ext >&5
10237 rm -f conftest.err conftest.$ac_objext \
10238 conftest$ac_exeext conftest.$ac_ext
10239 if test "$am_cv_func_iconv" != yes; then
10240 am_save_LIBS="$LIBS"
10241 LIBS="$LIBS $LIBICONV"
10242 if test x$gcc_no_link = xyes; then
10243 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10244 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10245 { (exit 1); exit 1; }; }
10247 cat >conftest.$ac_ext <<_ACEOF
10248 /* confdefs.h. */
10249 _ACEOF
10250 cat confdefs.h >>conftest.$ac_ext
10251 cat >>conftest.$ac_ext <<_ACEOF
10252 /* end confdefs.h. */
10253 #include <stdlib.h>
10254 #include <iconv.h>
10256 main ()
10258 iconv_t cd = iconv_open("","");
10259 iconv(cd,NULL,NULL,NULL,NULL);
10260 iconv_close(cd);
10262 return 0;
10264 _ACEOF
10265 rm -f conftest.$ac_objext conftest$ac_exeext
10266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10267 (eval $ac_link) 2>conftest.er1
10268 ac_status=$?
10269 grep -v '^ *+' conftest.er1 >conftest.err
10270 rm -f conftest.er1
10271 cat conftest.err >&5
10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); } &&
10274 { ac_try='test -z "$ac_c_werror_flag"
10275 || test ! -s conftest.err'
10276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10277 (eval $ac_try) 2>&5
10278 ac_status=$?
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); }; } &&
10281 { ac_try='test -s conftest$ac_exeext'
10282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10283 (eval $ac_try) 2>&5
10284 ac_status=$?
10285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286 (exit $ac_status); }; }; then
10287 am_cv_lib_iconv=yes
10288 am_cv_func_iconv=yes
10289 else
10290 echo "$as_me: failed program was:" >&5
10291 sed 's/^/| /' conftest.$ac_ext >&5
10294 rm -f conftest.err conftest.$ac_objext \
10295 conftest$ac_exeext conftest.$ac_ext
10296 LIBS="$am_save_LIBS"
10300 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10301 echo "${ECHO_T}$am_cv_func_iconv" >&6
10302 if test "$am_cv_func_iconv" = yes; then
10304 cat >>confdefs.h <<\_ACEOF
10305 #define HAVE_ICONV 1
10306 _ACEOF
10309 if test "$am_cv_lib_iconv" = yes; then
10310 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10311 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10312 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10313 echo "${ECHO_T}$LIBICONV" >&6
10314 else
10315 CPPFLAGS="$am_save_CPPFLAGS"
10316 LIBICONV=
10317 LTLIBICONV=
10322 if test "$am_cv_func_iconv" = yes; then
10323 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10324 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10325 if test "${am_cv_proto_iconv+set}" = set; then
10326 echo $ECHO_N "(cached) $ECHO_C" >&6
10327 else
10329 cat >conftest.$ac_ext <<_ACEOF
10330 /* confdefs.h. */
10331 _ACEOF
10332 cat confdefs.h >>conftest.$ac_ext
10333 cat >>conftest.$ac_ext <<_ACEOF
10334 /* end confdefs.h. */
10336 #include <stdlib.h>
10337 #include <iconv.h>
10338 extern
10339 #ifdef __cplusplus
10341 #endif
10342 #if defined(__STDC__) || defined(__cplusplus)
10343 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10344 #else
10345 size_t iconv();
10346 #endif
10349 main ()
10353 return 0;
10355 _ACEOF
10356 rm -f conftest.$ac_objext
10357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10358 (eval $ac_compile) 2>conftest.er1
10359 ac_status=$?
10360 grep -v '^ *+' conftest.er1 >conftest.err
10361 rm -f conftest.er1
10362 cat conftest.err >&5
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); } &&
10365 { ac_try='test -z "$ac_c_werror_flag"
10366 || test ! -s conftest.err'
10367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10368 (eval $ac_try) 2>&5
10369 ac_status=$?
10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 (exit $ac_status); }; } &&
10372 { ac_try='test -s conftest.$ac_objext'
10373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10374 (eval $ac_try) 2>&5
10375 ac_status=$?
10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377 (exit $ac_status); }; }; then
10378 am_cv_proto_iconv_arg1=""
10379 else
10380 echo "$as_me: failed program was:" >&5
10381 sed 's/^/| /' conftest.$ac_ext >&5
10383 am_cv_proto_iconv_arg1="const"
10385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10386 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);"
10389 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10390 echo "$as_me:$LINENO: result: ${ac_t:-
10391 }$am_cv_proto_iconv" >&5
10392 echo "${ECHO_T}${ac_t:-
10393 }$am_cv_proto_iconv" >&6
10395 cat >>confdefs.h <<_ACEOF
10396 #define ICONV_CONST $am_cv_proto_iconv_arg1
10397 _ACEOF
10402 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10403 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10404 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10405 echo $ECHO_N "(cached) $ECHO_C" >&6
10406 else
10407 if test x$gcc_no_link = xyes; then
10408 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10409 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10410 { (exit 1); exit 1; }; }
10412 cat >conftest.$ac_ext <<_ACEOF
10413 /* confdefs.h. */
10414 _ACEOF
10415 cat confdefs.h >>conftest.$ac_ext
10416 cat >>conftest.$ac_ext <<_ACEOF
10417 /* end confdefs.h. */
10418 #include <locale.h>
10420 main ()
10422 return LC_MESSAGES
10424 return 0;
10426 _ACEOF
10427 rm -f conftest.$ac_objext conftest$ac_exeext
10428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10429 (eval $ac_link) 2>conftest.er1
10430 ac_status=$?
10431 grep -v '^ *+' conftest.er1 >conftest.err
10432 rm -f conftest.er1
10433 cat conftest.err >&5
10434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435 (exit $ac_status); } &&
10436 { ac_try='test -z "$ac_c_werror_flag"
10437 || test ! -s conftest.err'
10438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10439 (eval $ac_try) 2>&5
10440 ac_status=$?
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); }; } &&
10443 { ac_try='test -s conftest$ac_exeext'
10444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10445 (eval $ac_try) 2>&5
10446 ac_status=$?
10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); }; }; then
10449 am_cv_val_LC_MESSAGES=yes
10450 else
10451 echo "$as_me: failed program was:" >&5
10452 sed 's/^/| /' conftest.$ac_ext >&5
10454 am_cv_val_LC_MESSAGES=no
10456 rm -f conftest.err conftest.$ac_objext \
10457 conftest$ac_exeext conftest.$ac_ext
10459 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10460 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10461 if test $am_cv_val_LC_MESSAGES = yes; then
10463 cat >>confdefs.h <<\_ACEOF
10464 #define HAVE_LC_MESSAGES 1
10465 _ACEOF
10469 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10470 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10471 if test "${ac_cv_struct_tm+set}" = set; then
10472 echo $ECHO_N "(cached) $ECHO_C" >&6
10473 else
10474 cat >conftest.$ac_ext <<_ACEOF
10475 /* confdefs.h. */
10476 _ACEOF
10477 cat confdefs.h >>conftest.$ac_ext
10478 cat >>conftest.$ac_ext <<_ACEOF
10479 /* end confdefs.h. */
10480 #include <sys/types.h>
10481 #include <time.h>
10484 main ()
10486 struct tm *tp; tp->tm_sec;
10488 return 0;
10490 _ACEOF
10491 rm -f conftest.$ac_objext
10492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10493 (eval $ac_compile) 2>conftest.er1
10494 ac_status=$?
10495 grep -v '^ *+' conftest.er1 >conftest.err
10496 rm -f conftest.er1
10497 cat conftest.err >&5
10498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499 (exit $ac_status); } &&
10500 { ac_try='test -z "$ac_c_werror_flag"
10501 || test ! -s conftest.err'
10502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10503 (eval $ac_try) 2>&5
10504 ac_status=$?
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); }; } &&
10507 { ac_try='test -s conftest.$ac_objext'
10508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10509 (eval $ac_try) 2>&5
10510 ac_status=$?
10511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512 (exit $ac_status); }; }; then
10513 ac_cv_struct_tm=time.h
10514 else
10515 echo "$as_me: failed program was:" >&5
10516 sed 's/^/| /' conftest.$ac_ext >&5
10518 ac_cv_struct_tm=sys/time.h
10520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10522 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10523 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10524 if test $ac_cv_struct_tm = sys/time.h; then
10526 cat >>confdefs.h <<\_ACEOF
10527 #define TM_IN_SYS_TIME 1
10528 _ACEOF
10532 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10533 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10534 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10535 echo $ECHO_N "(cached) $ECHO_C" >&6
10536 else
10537 cat >conftest.$ac_ext <<_ACEOF
10538 /* confdefs.h. */
10539 _ACEOF
10540 cat confdefs.h >>conftest.$ac_ext
10541 cat >>conftest.$ac_ext <<_ACEOF
10542 /* end confdefs.h. */
10543 #include <sys/types.h>
10544 #include <$ac_cv_struct_tm>
10548 main ()
10550 static struct tm ac_aggr;
10551 if (ac_aggr.tm_zone)
10552 return 0;
10554 return 0;
10556 _ACEOF
10557 rm -f conftest.$ac_objext
10558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10559 (eval $ac_compile) 2>conftest.er1
10560 ac_status=$?
10561 grep -v '^ *+' conftest.er1 >conftest.err
10562 rm -f conftest.er1
10563 cat conftest.err >&5
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); } &&
10566 { ac_try='test -z "$ac_c_werror_flag"
10567 || test ! -s conftest.err'
10568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10569 (eval $ac_try) 2>&5
10570 ac_status=$?
10571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); }; } &&
10573 { ac_try='test -s conftest.$ac_objext'
10574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10575 (eval $ac_try) 2>&5
10576 ac_status=$?
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); }; }; then
10579 ac_cv_member_struct_tm_tm_zone=yes
10580 else
10581 echo "$as_me: failed program was:" >&5
10582 sed 's/^/| /' conftest.$ac_ext >&5
10584 cat >conftest.$ac_ext <<_ACEOF
10585 /* confdefs.h. */
10586 _ACEOF
10587 cat confdefs.h >>conftest.$ac_ext
10588 cat >>conftest.$ac_ext <<_ACEOF
10589 /* end confdefs.h. */
10590 #include <sys/types.h>
10591 #include <$ac_cv_struct_tm>
10595 main ()
10597 static struct tm ac_aggr;
10598 if (sizeof ac_aggr.tm_zone)
10599 return 0;
10601 return 0;
10603 _ACEOF
10604 rm -f conftest.$ac_objext
10605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10606 (eval $ac_compile) 2>conftest.er1
10607 ac_status=$?
10608 grep -v '^ *+' conftest.er1 >conftest.err
10609 rm -f conftest.er1
10610 cat conftest.err >&5
10611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612 (exit $ac_status); } &&
10613 { ac_try='test -z "$ac_c_werror_flag"
10614 || test ! -s conftest.err'
10615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10616 (eval $ac_try) 2>&5
10617 ac_status=$?
10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 (exit $ac_status); }; } &&
10620 { ac_try='test -s conftest.$ac_objext'
10621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10622 (eval $ac_try) 2>&5
10623 ac_status=$?
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); }; }; then
10626 ac_cv_member_struct_tm_tm_zone=yes
10627 else
10628 echo "$as_me: failed program was:" >&5
10629 sed 's/^/| /' conftest.$ac_ext >&5
10631 ac_cv_member_struct_tm_tm_zone=no
10633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10637 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10638 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10639 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10641 cat >>confdefs.h <<_ACEOF
10642 #define HAVE_STRUCT_TM_TM_ZONE 1
10643 _ACEOF
10648 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10650 cat >>confdefs.h <<\_ACEOF
10651 #define HAVE_TM_ZONE 1
10652 _ACEOF
10654 else
10655 echo "$as_me:$LINENO: checking for tzname" >&5
10656 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10657 if test "${ac_cv_var_tzname+set}" = set; then
10658 echo $ECHO_N "(cached) $ECHO_C" >&6
10659 else
10660 if test x$gcc_no_link = xyes; then
10661 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10662 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10663 { (exit 1); exit 1; }; }
10665 cat >conftest.$ac_ext <<_ACEOF
10666 /* confdefs.h. */
10667 _ACEOF
10668 cat confdefs.h >>conftest.$ac_ext
10669 cat >>conftest.$ac_ext <<_ACEOF
10670 /* end confdefs.h. */
10671 #include <time.h>
10672 #ifndef tzname /* For SGI. */
10673 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
10674 #endif
10677 main ()
10679 atoi(*tzname);
10681 return 0;
10683 _ACEOF
10684 rm -f conftest.$ac_objext conftest$ac_exeext
10685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10686 (eval $ac_link) 2>conftest.er1
10687 ac_status=$?
10688 grep -v '^ *+' conftest.er1 >conftest.err
10689 rm -f conftest.er1
10690 cat conftest.err >&5
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); } &&
10693 { ac_try='test -z "$ac_c_werror_flag"
10694 || test ! -s conftest.err'
10695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10696 (eval $ac_try) 2>&5
10697 ac_status=$?
10698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699 (exit $ac_status); }; } &&
10700 { ac_try='test -s conftest$ac_exeext'
10701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10702 (eval $ac_try) 2>&5
10703 ac_status=$?
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); }; }; then
10706 ac_cv_var_tzname=yes
10707 else
10708 echo "$as_me: failed program was:" >&5
10709 sed 's/^/| /' conftest.$ac_ext >&5
10711 ac_cv_var_tzname=no
10713 rm -f conftest.err conftest.$ac_objext \
10714 conftest$ac_exeext conftest.$ac_ext
10716 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10717 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10718 if test $ac_cv_var_tzname = yes; then
10720 cat >>confdefs.h <<\_ACEOF
10721 #define HAVE_TZNAME 1
10722 _ACEOF
10730 for ac_func in gethostbyname_r
10732 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10733 echo "$as_me:$LINENO: checking for $ac_func" >&5
10734 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10735 if eval "test \"\${$as_ac_var+set}\" = set"; then
10736 echo $ECHO_N "(cached) $ECHO_C" >&6
10737 else
10738 if test x$gcc_no_link = xyes; then
10739 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10740 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10741 { (exit 1); exit 1; }; }
10743 cat >conftest.$ac_ext <<_ACEOF
10744 /* confdefs.h. */
10745 _ACEOF
10746 cat confdefs.h >>conftest.$ac_ext
10747 cat >>conftest.$ac_ext <<_ACEOF
10748 /* end confdefs.h. */
10749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10751 #define $ac_func innocuous_$ac_func
10753 /* System header to define __stub macros and hopefully few prototypes,
10754 which can conflict with char $ac_func (); below.
10755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10756 <limits.h> exists even on freestanding compilers. */
10758 #ifdef __STDC__
10759 # include <limits.h>
10760 #else
10761 # include <assert.h>
10762 #endif
10764 #undef $ac_func
10766 /* Override any gcc2 internal prototype to avoid an error. */
10767 #ifdef __cplusplus
10768 extern "C"
10770 #endif
10771 /* We use char because int might match the return type of a gcc2
10772 builtin and then its argument prototype would still apply. */
10773 char $ac_func ();
10774 /* The GNU C library defines this for functions which it implements
10775 to always fail with ENOSYS. Some functions are actually named
10776 something starting with __ and the normal name is an alias. */
10777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10778 choke me
10779 #else
10780 char (*f) () = $ac_func;
10781 #endif
10782 #ifdef __cplusplus
10784 #endif
10787 main ()
10789 return f != $ac_func;
10791 return 0;
10793 _ACEOF
10794 rm -f conftest.$ac_objext conftest$ac_exeext
10795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10796 (eval $ac_link) 2>conftest.er1
10797 ac_status=$?
10798 grep -v '^ *+' conftest.er1 >conftest.err
10799 rm -f conftest.er1
10800 cat conftest.err >&5
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); } &&
10803 { ac_try='test -z "$ac_c_werror_flag"
10804 || test ! -s conftest.err'
10805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10806 (eval $ac_try) 2>&5
10807 ac_status=$?
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); }; } &&
10810 { ac_try='test -s conftest$ac_exeext'
10811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10812 (eval $ac_try) 2>&5
10813 ac_status=$?
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); }; }; then
10816 eval "$as_ac_var=yes"
10817 else
10818 echo "$as_me: failed program was:" >&5
10819 sed 's/^/| /' conftest.$ac_ext >&5
10821 eval "$as_ac_var=no"
10823 rm -f conftest.err conftest.$ac_objext \
10824 conftest$ac_exeext conftest.$ac_ext
10826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10827 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10828 if test `eval echo '${'$as_ac_var'}'` = yes; then
10829 cat >>confdefs.h <<_ACEOF
10830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10831 _ACEOF
10834 cat >>confdefs.h <<\_ACEOF
10835 #define HAVE_GETHOSTBYNAME_R 1
10836 _ACEOF
10838 # There are two different kinds of gethostbyname_r.
10839 # We look for the one that returns `int'.
10840 # Hopefully this check is robust enough.
10841 cat >conftest.$ac_ext <<_ACEOF
10842 /* confdefs.h. */
10843 _ACEOF
10844 cat confdefs.h >>conftest.$ac_ext
10845 cat >>conftest.$ac_ext <<_ACEOF
10846 /* end confdefs.h. */
10847 #include <netdb.h>
10849 _ACEOF
10850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10851 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
10854 cat >>confdefs.h <<\_ACEOF
10855 #define GETHOSTBYNAME_R_RETURNS_INT 1
10856 _ACEOF
10859 rm -f conftest*
10862 case " $GCINCS " in
10863 *" -D_REENTRANT "*) ;;
10865 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
10866 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
10867 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
10868 echo $ECHO_N "(cached) $ECHO_C" >&6
10869 else
10870 ac_ext=cc
10871 ac_cpp='$CXXCPP $CPPFLAGS'
10872 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10873 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10874 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10876 cat >conftest.$ac_ext <<_ACEOF
10877 /* confdefs.h. */
10878 _ACEOF
10879 cat confdefs.h >>conftest.$ac_ext
10880 cat >>conftest.$ac_ext <<_ACEOF
10881 /* end confdefs.h. */
10882 #include <netdb.h>
10884 main ()
10886 gethostbyname_r("", 0, 0);
10888 return 0;
10890 _ACEOF
10891 rm -f conftest.$ac_objext
10892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10893 (eval $ac_compile) 2>conftest.er1
10894 ac_status=$?
10895 grep -v '^ *+' conftest.er1 >conftest.err
10896 rm -f conftest.er1
10897 cat conftest.err >&5
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); } &&
10900 { ac_try='test -z "$ac_cxx_werror_flag"
10901 || test ! -s conftest.err'
10902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10903 (eval $ac_try) 2>&5
10904 ac_status=$?
10905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906 (exit $ac_status); }; } &&
10907 { ac_try='test -s conftest.$ac_objext'
10908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10909 (eval $ac_try) 2>&5
10910 ac_status=$?
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); }; }; then
10913 libjava_cv_gethostbyname_r_needs_reentrant=no
10914 else
10915 echo "$as_me: failed program was:" >&5
10916 sed 's/^/| /' conftest.$ac_ext >&5
10918 CPPFLAGS_SAVE="$CPPFLAGS"
10919 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
10920 cat >conftest.$ac_ext <<_ACEOF
10921 /* confdefs.h. */
10922 _ACEOF
10923 cat confdefs.h >>conftest.$ac_ext
10924 cat >>conftest.$ac_ext <<_ACEOF
10925 /* end confdefs.h. */
10926 #include <netdb.h>
10928 main ()
10930 gethostbyname_r("", 0, 0);
10932 return 0;
10934 _ACEOF
10935 rm -f conftest.$ac_objext
10936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10937 (eval $ac_compile) 2>conftest.er1
10938 ac_status=$?
10939 grep -v '^ *+' conftest.er1 >conftest.err
10940 rm -f conftest.er1
10941 cat conftest.err >&5
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); } &&
10944 { ac_try='test -z "$ac_cxx_werror_flag"
10945 || test ! -s conftest.err'
10946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10947 (eval $ac_try) 2>&5
10948 ac_status=$?
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); }; } &&
10951 { ac_try='test -s conftest.$ac_objext'
10952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10953 (eval $ac_try) 2>&5
10954 ac_status=$?
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); }; }; then
10957 libjava_cv_gethostbyname_r_needs_reentrant=yes
10958 else
10959 echo "$as_me: failed program was:" >&5
10960 sed 's/^/| /' conftest.$ac_ext >&5
10962 libjava_cv_gethostbyname_r_needs_reentrant=fail
10964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10965 CPPFLAGS="$CPPFLAGS_SAVE"
10968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10969 ac_ext=c
10970 ac_cpp='$CPP $CPPFLAGS'
10971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10977 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
10978 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
10979 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
10981 cat >>confdefs.h <<\_ACEOF
10982 #define _REENTRANT 1
10983 _ACEOF
10987 esac
10989 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
10990 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
10991 if test "${libjava_cv_struct_hostent_data+set}" = set; then
10992 echo $ECHO_N "(cached) $ECHO_C" >&6
10993 else
10994 cat >conftest.$ac_ext <<_ACEOF
10995 /* confdefs.h. */
10996 _ACEOF
10997 cat confdefs.h >>conftest.$ac_ext
10998 cat >>conftest.$ac_ext <<_ACEOF
10999 /* end confdefs.h. */
11001 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
11002 # define _REENTRANT 1
11003 #endif
11004 #include <netdb.h>
11006 main ()
11008 struct hostent_data data;
11010 return 0;
11012 _ACEOF
11013 rm -f conftest.$ac_objext
11014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11015 (eval $ac_compile) 2>conftest.er1
11016 ac_status=$?
11017 grep -v '^ *+' conftest.er1 >conftest.err
11018 rm -f conftest.er1
11019 cat conftest.err >&5
11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); } &&
11022 { ac_try='test -z "$ac_c_werror_flag"
11023 || test ! -s conftest.err'
11024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11025 (eval $ac_try) 2>&5
11026 ac_status=$?
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); }; } &&
11029 { ac_try='test -s conftest.$ac_objext'
11030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11031 (eval $ac_try) 2>&5
11032 ac_status=$?
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); }; }; then
11035 libjava_cv_struct_hostent_data=yes
11036 else
11037 echo "$as_me: failed program was:" >&5
11038 sed 's/^/| /' conftest.$ac_ext >&5
11040 libjava_cv_struct_hostent_data=no
11042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11044 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
11045 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
11046 if test "x$libjava_cv_struct_hostent_data" = xyes; then
11048 cat >>confdefs.h <<\_ACEOF
11049 #define HAVE_STRUCT_HOSTENT_DATA 1
11050 _ACEOF
11055 done
11058 # FIXME: libjava source code expects to find a prototype for
11059 # gethostbyaddr_r in netdb.h. The outer check ensures that
11060 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
11061 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
11062 # linkage check is enough, yet C++ code requires proper prototypes.)
11063 cat >conftest.$ac_ext <<_ACEOF
11064 /* confdefs.h. */
11065 _ACEOF
11066 cat confdefs.h >>conftest.$ac_ext
11067 cat >>conftest.$ac_ext <<_ACEOF
11068 /* end confdefs.h. */
11069 #include <netdb.h>
11071 _ACEOF
11072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11073 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
11076 for ac_func in gethostbyaddr_r
11078 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11079 echo "$as_me:$LINENO: checking for $ac_func" >&5
11080 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11081 if eval "test \"\${$as_ac_var+set}\" = set"; then
11082 echo $ECHO_N "(cached) $ECHO_C" >&6
11083 else
11084 if test x$gcc_no_link = xyes; then
11085 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11086 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11087 { (exit 1); exit 1; }; }
11089 cat >conftest.$ac_ext <<_ACEOF
11090 /* confdefs.h. */
11091 _ACEOF
11092 cat confdefs.h >>conftest.$ac_ext
11093 cat >>conftest.$ac_ext <<_ACEOF
11094 /* end confdefs.h. */
11095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11097 #define $ac_func innocuous_$ac_func
11099 /* System header to define __stub macros and hopefully few prototypes,
11100 which can conflict with char $ac_func (); below.
11101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11102 <limits.h> exists even on freestanding compilers. */
11104 #ifdef __STDC__
11105 # include <limits.h>
11106 #else
11107 # include <assert.h>
11108 #endif
11110 #undef $ac_func
11112 /* Override any gcc2 internal prototype to avoid an error. */
11113 #ifdef __cplusplus
11114 extern "C"
11116 #endif
11117 /* We use char because int might match the return type of a gcc2
11118 builtin and then its argument prototype would still apply. */
11119 char $ac_func ();
11120 /* The GNU C library defines this for functions which it implements
11121 to always fail with ENOSYS. Some functions are actually named
11122 something starting with __ and the normal name is an alias. */
11123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11124 choke me
11125 #else
11126 char (*f) () = $ac_func;
11127 #endif
11128 #ifdef __cplusplus
11130 #endif
11133 main ()
11135 return f != $ac_func;
11137 return 0;
11139 _ACEOF
11140 rm -f conftest.$ac_objext conftest$ac_exeext
11141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11142 (eval $ac_link) 2>conftest.er1
11143 ac_status=$?
11144 grep -v '^ *+' conftest.er1 >conftest.err
11145 rm -f conftest.er1
11146 cat conftest.err >&5
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); } &&
11149 { ac_try='test -z "$ac_c_werror_flag"
11150 || test ! -s conftest.err'
11151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11152 (eval $ac_try) 2>&5
11153 ac_status=$?
11154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155 (exit $ac_status); }; } &&
11156 { ac_try='test -s conftest$ac_exeext'
11157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11158 (eval $ac_try) 2>&5
11159 ac_status=$?
11160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161 (exit $ac_status); }; }; then
11162 eval "$as_ac_var=yes"
11163 else
11164 echo "$as_me: failed program was:" >&5
11165 sed 's/^/| /' conftest.$ac_ext >&5
11167 eval "$as_ac_var=no"
11169 rm -f conftest.err conftest.$ac_objext \
11170 conftest$ac_exeext conftest.$ac_ext
11172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11173 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11174 if test `eval echo '${'$as_ac_var'}'` = yes; then
11175 cat >>confdefs.h <<_ACEOF
11176 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11177 _ACEOF
11180 cat >>confdefs.h <<\_ACEOF
11181 #define HAVE_GETHOSTBYADDR_R 1
11182 _ACEOF
11184 # There are two different kinds of gethostbyaddr_r.
11185 # We look for the one that returns `int'.
11186 # Hopefully this check is robust enough.
11187 cat >conftest.$ac_ext <<_ACEOF
11188 /* confdefs.h. */
11189 _ACEOF
11190 cat confdefs.h >>conftest.$ac_ext
11191 cat >>conftest.$ac_ext <<_ACEOF
11192 /* end confdefs.h. */
11193 #include <netdb.h>
11195 _ACEOF
11196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11197 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11200 cat >>confdefs.h <<\_ACEOF
11201 #define GETHOSTBYADDR_R_RETURNS_INT 1
11202 _ACEOF
11205 rm -f conftest*
11208 done
11211 rm -f conftest*
11215 for ac_func in gethostname
11217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11218 echo "$as_me:$LINENO: checking for $ac_func" >&5
11219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11220 if eval "test \"\${$as_ac_var+set}\" = set"; then
11221 echo $ECHO_N "(cached) $ECHO_C" >&6
11222 else
11223 if test x$gcc_no_link = xyes; then
11224 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11225 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11226 { (exit 1); exit 1; }; }
11228 cat >conftest.$ac_ext <<_ACEOF
11229 /* confdefs.h. */
11230 _ACEOF
11231 cat confdefs.h >>conftest.$ac_ext
11232 cat >>conftest.$ac_ext <<_ACEOF
11233 /* end confdefs.h. */
11234 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11235 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11236 #define $ac_func innocuous_$ac_func
11238 /* System header to define __stub macros and hopefully few prototypes,
11239 which can conflict with char $ac_func (); below.
11240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11241 <limits.h> exists even on freestanding compilers. */
11243 #ifdef __STDC__
11244 # include <limits.h>
11245 #else
11246 # include <assert.h>
11247 #endif
11249 #undef $ac_func
11251 /* Override any gcc2 internal prototype to avoid an error. */
11252 #ifdef __cplusplus
11253 extern "C"
11255 #endif
11256 /* We use char because int might match the return type of a gcc2
11257 builtin and then its argument prototype would still apply. */
11258 char $ac_func ();
11259 /* The GNU C library defines this for functions which it implements
11260 to always fail with ENOSYS. Some functions are actually named
11261 something starting with __ and the normal name is an alias. */
11262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11263 choke me
11264 #else
11265 char (*f) () = $ac_func;
11266 #endif
11267 #ifdef __cplusplus
11269 #endif
11272 main ()
11274 return f != $ac_func;
11276 return 0;
11278 _ACEOF
11279 rm -f conftest.$ac_objext conftest$ac_exeext
11280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11281 (eval $ac_link) 2>conftest.er1
11282 ac_status=$?
11283 grep -v '^ *+' conftest.er1 >conftest.err
11284 rm -f conftest.er1
11285 cat conftest.err >&5
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); } &&
11288 { ac_try='test -z "$ac_c_werror_flag"
11289 || test ! -s conftest.err'
11290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11291 (eval $ac_try) 2>&5
11292 ac_status=$?
11293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294 (exit $ac_status); }; } &&
11295 { ac_try='test -s conftest$ac_exeext'
11296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11297 (eval $ac_try) 2>&5
11298 ac_status=$?
11299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300 (exit $ac_status); }; }; then
11301 eval "$as_ac_var=yes"
11302 else
11303 echo "$as_me: failed program was:" >&5
11304 sed 's/^/| /' conftest.$ac_ext >&5
11306 eval "$as_ac_var=no"
11308 rm -f conftest.err conftest.$ac_objext \
11309 conftest$ac_exeext conftest.$ac_ext
11311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11312 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11313 if test `eval echo '${'$as_ac_var'}'` = yes; then
11314 cat >>confdefs.h <<_ACEOF
11315 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11316 _ACEOF
11319 cat >>confdefs.h <<\_ACEOF
11320 #define HAVE_GETHOSTNAME 1
11321 _ACEOF
11323 cat >conftest.$ac_ext <<_ACEOF
11324 /* confdefs.h. */
11325 _ACEOF
11326 cat confdefs.h >>conftest.$ac_ext
11327 cat >>conftest.$ac_ext <<_ACEOF
11328 /* end confdefs.h. */
11329 #include <unistd.h>
11331 _ACEOF
11332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11333 $EGREP "gethostname" >/dev/null 2>&1; then
11336 cat >>confdefs.h <<\_ACEOF
11337 #define HAVE_GETHOSTNAME_DECL 1
11338 _ACEOF
11341 rm -f conftest*
11344 done
11348 for ac_func in usleep
11350 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11351 echo "$as_me:$LINENO: checking for $ac_func" >&5
11352 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11353 if eval "test \"\${$as_ac_var+set}\" = set"; then
11354 echo $ECHO_N "(cached) $ECHO_C" >&6
11355 else
11356 if test x$gcc_no_link = xyes; then
11357 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11358 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11359 { (exit 1); exit 1; }; }
11361 cat >conftest.$ac_ext <<_ACEOF
11362 /* confdefs.h. */
11363 _ACEOF
11364 cat confdefs.h >>conftest.$ac_ext
11365 cat >>conftest.$ac_ext <<_ACEOF
11366 /* end confdefs.h. */
11367 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11369 #define $ac_func innocuous_$ac_func
11371 /* System header to define __stub macros and hopefully few prototypes,
11372 which can conflict with char $ac_func (); below.
11373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11374 <limits.h> exists even on freestanding compilers. */
11376 #ifdef __STDC__
11377 # include <limits.h>
11378 #else
11379 # include <assert.h>
11380 #endif
11382 #undef $ac_func
11384 /* Override any gcc2 internal prototype to avoid an error. */
11385 #ifdef __cplusplus
11386 extern "C"
11388 #endif
11389 /* We use char because int might match the return type of a gcc2
11390 builtin and then its argument prototype would still apply. */
11391 char $ac_func ();
11392 /* The GNU C library defines this for functions which it implements
11393 to always fail with ENOSYS. Some functions are actually named
11394 something starting with __ and the normal name is an alias. */
11395 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11396 choke me
11397 #else
11398 char (*f) () = $ac_func;
11399 #endif
11400 #ifdef __cplusplus
11402 #endif
11405 main ()
11407 return f != $ac_func;
11409 return 0;
11411 _ACEOF
11412 rm -f conftest.$ac_objext conftest$ac_exeext
11413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11414 (eval $ac_link) 2>conftest.er1
11415 ac_status=$?
11416 grep -v '^ *+' conftest.er1 >conftest.err
11417 rm -f conftest.er1
11418 cat conftest.err >&5
11419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420 (exit $ac_status); } &&
11421 { ac_try='test -z "$ac_c_werror_flag"
11422 || test ! -s conftest.err'
11423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11424 (eval $ac_try) 2>&5
11425 ac_status=$?
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); }; } &&
11428 { ac_try='test -s conftest$ac_exeext'
11429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11430 (eval $ac_try) 2>&5
11431 ac_status=$?
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); }; }; then
11434 eval "$as_ac_var=yes"
11435 else
11436 echo "$as_me: failed program was:" >&5
11437 sed 's/^/| /' conftest.$ac_ext >&5
11439 eval "$as_ac_var=no"
11441 rm -f conftest.err conftest.$ac_objext \
11442 conftest$ac_exeext conftest.$ac_ext
11444 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11445 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11446 if test `eval echo '${'$as_ac_var'}'` = yes; then
11447 cat >>confdefs.h <<_ACEOF
11448 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11449 _ACEOF
11451 cat >conftest.$ac_ext <<_ACEOF
11452 /* confdefs.h. */
11453 _ACEOF
11454 cat confdefs.h >>conftest.$ac_ext
11455 cat >>conftest.$ac_ext <<_ACEOF
11456 /* end confdefs.h. */
11457 #include <unistd.h>
11459 _ACEOF
11460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11461 $EGREP "usleep" >/dev/null 2>&1; then
11464 cat >>confdefs.h <<\_ACEOF
11465 #define HAVE_USLEEP_DECL 1
11466 _ACEOF
11469 rm -f conftest*
11472 done
11475 # Look for these functions in the thread library, but only bother
11476 # if using POSIX threads.
11477 if test "$THREADS" = posix; then
11478 save_LIBS="$LIBS"
11479 LIBS="$LIBS $THREADLIBS"
11480 # Some POSIX thread systems don't have pthread_mutexattr_settype.
11481 # E.g., Solaris.
11484 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
11486 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11487 echo "$as_me:$LINENO: checking for $ac_func" >&5
11488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11489 if eval "test \"\${$as_ac_var+set}\" = set"; then
11490 echo $ECHO_N "(cached) $ECHO_C" >&6
11491 else
11492 if test x$gcc_no_link = xyes; then
11493 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11494 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11495 { (exit 1); exit 1; }; }
11497 cat >conftest.$ac_ext <<_ACEOF
11498 /* confdefs.h. */
11499 _ACEOF
11500 cat confdefs.h >>conftest.$ac_ext
11501 cat >>conftest.$ac_ext <<_ACEOF
11502 /* end confdefs.h. */
11503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11505 #define $ac_func innocuous_$ac_func
11507 /* System header to define __stub macros and hopefully few prototypes,
11508 which can conflict with char $ac_func (); below.
11509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11510 <limits.h> exists even on freestanding compilers. */
11512 #ifdef __STDC__
11513 # include <limits.h>
11514 #else
11515 # include <assert.h>
11516 #endif
11518 #undef $ac_func
11520 /* Override any gcc2 internal prototype to avoid an error. */
11521 #ifdef __cplusplus
11522 extern "C"
11524 #endif
11525 /* We use char because int might match the return type of a gcc2
11526 builtin and then its argument prototype would still apply. */
11527 char $ac_func ();
11528 /* The GNU C library defines this for functions which it implements
11529 to always fail with ENOSYS. Some functions are actually named
11530 something starting with __ and the normal name is an alias. */
11531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11532 choke me
11533 #else
11534 char (*f) () = $ac_func;
11535 #endif
11536 #ifdef __cplusplus
11538 #endif
11541 main ()
11543 return f != $ac_func;
11545 return 0;
11547 _ACEOF
11548 rm -f conftest.$ac_objext conftest$ac_exeext
11549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11550 (eval $ac_link) 2>conftest.er1
11551 ac_status=$?
11552 grep -v '^ *+' conftest.er1 >conftest.err
11553 rm -f conftest.er1
11554 cat conftest.err >&5
11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); } &&
11557 { ac_try='test -z "$ac_c_werror_flag"
11558 || test ! -s conftest.err'
11559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11560 (eval $ac_try) 2>&5
11561 ac_status=$?
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); }; } &&
11564 { ac_try='test -s conftest$ac_exeext'
11565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11566 (eval $ac_try) 2>&5
11567 ac_status=$?
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); }; }; then
11570 eval "$as_ac_var=yes"
11571 else
11572 echo "$as_me: failed program was:" >&5
11573 sed 's/^/| /' conftest.$ac_ext >&5
11575 eval "$as_ac_var=no"
11577 rm -f conftest.err conftest.$ac_objext \
11578 conftest$ac_exeext conftest.$ac_ext
11580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11581 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11582 if test `eval echo '${'$as_ac_var'}'` = yes; then
11583 cat >>confdefs.h <<_ACEOF
11584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11585 _ACEOF
11588 done
11591 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
11592 # Solaris 7 the name librt is preferred.
11594 for ac_func in sched_yield
11596 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11597 echo "$as_me:$LINENO: checking for $ac_func" >&5
11598 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11599 if eval "test \"\${$as_ac_var+set}\" = set"; then
11600 echo $ECHO_N "(cached) $ECHO_C" >&6
11601 else
11602 if test x$gcc_no_link = xyes; then
11603 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11604 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11605 { (exit 1); exit 1; }; }
11607 cat >conftest.$ac_ext <<_ACEOF
11608 /* confdefs.h. */
11609 _ACEOF
11610 cat confdefs.h >>conftest.$ac_ext
11611 cat >>conftest.$ac_ext <<_ACEOF
11612 /* end confdefs.h. */
11613 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11615 #define $ac_func innocuous_$ac_func
11617 /* System header to define __stub macros and hopefully few prototypes,
11618 which can conflict with char $ac_func (); below.
11619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11620 <limits.h> exists even on freestanding compilers. */
11622 #ifdef __STDC__
11623 # include <limits.h>
11624 #else
11625 # include <assert.h>
11626 #endif
11628 #undef $ac_func
11630 /* Override any gcc2 internal prototype to avoid an error. */
11631 #ifdef __cplusplus
11632 extern "C"
11634 #endif
11635 /* We use char because int might match the return type of a gcc2
11636 builtin and then its argument prototype would still apply. */
11637 char $ac_func ();
11638 /* The GNU C library defines this for functions which it implements
11639 to always fail with ENOSYS. Some functions are actually named
11640 something starting with __ and the normal name is an alias. */
11641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11642 choke me
11643 #else
11644 char (*f) () = $ac_func;
11645 #endif
11646 #ifdef __cplusplus
11648 #endif
11651 main ()
11653 return f != $ac_func;
11655 return 0;
11657 _ACEOF
11658 rm -f conftest.$ac_objext conftest$ac_exeext
11659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11660 (eval $ac_link) 2>conftest.er1
11661 ac_status=$?
11662 grep -v '^ *+' conftest.er1 >conftest.err
11663 rm -f conftest.er1
11664 cat conftest.err >&5
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); } &&
11667 { ac_try='test -z "$ac_c_werror_flag"
11668 || test ! -s conftest.err'
11669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11670 (eval $ac_try) 2>&5
11671 ac_status=$?
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); }; } &&
11674 { ac_try='test -s conftest$ac_exeext'
11675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11676 (eval $ac_try) 2>&5
11677 ac_status=$?
11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); }; }; then
11680 eval "$as_ac_var=yes"
11681 else
11682 echo "$as_me: failed program was:" >&5
11683 sed 's/^/| /' conftest.$ac_ext >&5
11685 eval "$as_ac_var=no"
11687 rm -f conftest.err conftest.$ac_objext \
11688 conftest$ac_exeext conftest.$ac_ext
11690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11691 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11692 if test `eval echo '${'$as_ac_var'}'` = yes; then
11693 cat >>confdefs.h <<_ACEOF
11694 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11695 _ACEOF
11697 else
11699 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
11700 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
11701 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
11702 echo $ECHO_N "(cached) $ECHO_C" >&6
11703 else
11704 ac_check_lib_save_LIBS=$LIBS
11705 LIBS="-lrt $LIBS"
11706 if test x$gcc_no_link = xyes; then
11707 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11708 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11709 { (exit 1); exit 1; }; }
11711 cat >conftest.$ac_ext <<_ACEOF
11712 /* confdefs.h. */
11713 _ACEOF
11714 cat confdefs.h >>conftest.$ac_ext
11715 cat >>conftest.$ac_ext <<_ACEOF
11716 /* end confdefs.h. */
11718 /* Override any gcc2 internal prototype to avoid an error. */
11719 #ifdef __cplusplus
11720 extern "C"
11721 #endif
11722 /* We use char because int might match the return type of a gcc2
11723 builtin and then its argument prototype would still apply. */
11724 char sched_yield ();
11726 main ()
11728 sched_yield ();
11730 return 0;
11732 _ACEOF
11733 rm -f conftest.$ac_objext conftest$ac_exeext
11734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11735 (eval $ac_link) 2>conftest.er1
11736 ac_status=$?
11737 grep -v '^ *+' conftest.er1 >conftest.err
11738 rm -f conftest.er1
11739 cat conftest.err >&5
11740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741 (exit $ac_status); } &&
11742 { ac_try='test -z "$ac_c_werror_flag"
11743 || test ! -s conftest.err'
11744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11745 (eval $ac_try) 2>&5
11746 ac_status=$?
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); }; } &&
11749 { ac_try='test -s conftest$ac_exeext'
11750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11751 (eval $ac_try) 2>&5
11752 ac_status=$?
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); }; }; then
11755 ac_cv_lib_rt_sched_yield=yes
11756 else
11757 echo "$as_me: failed program was:" >&5
11758 sed 's/^/| /' conftest.$ac_ext >&5
11760 ac_cv_lib_rt_sched_yield=no
11762 rm -f conftest.err conftest.$ac_objext \
11763 conftest$ac_exeext conftest.$ac_ext
11764 LIBS=$ac_check_lib_save_LIBS
11766 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
11767 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
11768 if test $ac_cv_lib_rt_sched_yield = yes; then
11770 cat >>confdefs.h <<\_ACEOF
11771 #define HAVE_SCHED_YIELD 1
11772 _ACEOF
11774 THREADLIBS="$THREADLIBS -lrt"
11775 THREADSPEC="$THREADSPEC -lrt"
11776 else
11778 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
11779 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
11780 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
11781 echo $ECHO_N "(cached) $ECHO_C" >&6
11782 else
11783 ac_check_lib_save_LIBS=$LIBS
11784 LIBS="-lposix4 $LIBS"
11785 if test x$gcc_no_link = xyes; then
11786 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11787 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11788 { (exit 1); exit 1; }; }
11790 cat >conftest.$ac_ext <<_ACEOF
11791 /* confdefs.h. */
11792 _ACEOF
11793 cat confdefs.h >>conftest.$ac_ext
11794 cat >>conftest.$ac_ext <<_ACEOF
11795 /* end confdefs.h. */
11797 /* Override any gcc2 internal prototype to avoid an error. */
11798 #ifdef __cplusplus
11799 extern "C"
11800 #endif
11801 /* We use char because int might match the return type of a gcc2
11802 builtin and then its argument prototype would still apply. */
11803 char sched_yield ();
11805 main ()
11807 sched_yield ();
11809 return 0;
11811 _ACEOF
11812 rm -f conftest.$ac_objext conftest$ac_exeext
11813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11814 (eval $ac_link) 2>conftest.er1
11815 ac_status=$?
11816 grep -v '^ *+' conftest.er1 >conftest.err
11817 rm -f conftest.er1
11818 cat conftest.err >&5
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); } &&
11821 { ac_try='test -z "$ac_c_werror_flag"
11822 || test ! -s conftest.err'
11823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11824 (eval $ac_try) 2>&5
11825 ac_status=$?
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); }; } &&
11828 { ac_try='test -s conftest$ac_exeext'
11829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11830 (eval $ac_try) 2>&5
11831 ac_status=$?
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); }; }; then
11834 ac_cv_lib_posix4_sched_yield=yes
11835 else
11836 echo "$as_me: failed program was:" >&5
11837 sed 's/^/| /' conftest.$ac_ext >&5
11839 ac_cv_lib_posix4_sched_yield=no
11841 rm -f conftest.err conftest.$ac_objext \
11842 conftest$ac_exeext conftest.$ac_ext
11843 LIBS=$ac_check_lib_save_LIBS
11845 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
11846 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
11847 if test $ac_cv_lib_posix4_sched_yield = yes; then
11849 cat >>confdefs.h <<\_ACEOF
11850 #define HAVE_SCHED_YIELD 1
11851 _ACEOF
11853 THREADLIBS="$THREADLIBS -lposix4"
11854 THREADSPEC="$THREADSPEC -lposix4"
11860 done
11862 LIBS="$save_LIBS"
11864 # We can save a little space at runtime if the mutex has m_count
11865 # or __m_count. This is a nice hack for Linux.
11866 cat >conftest.$ac_ext <<_ACEOF
11867 /* confdefs.h. */
11868 _ACEOF
11869 cat confdefs.h >>conftest.$ac_ext
11870 cat >>conftest.$ac_ext <<_ACEOF
11871 /* end confdefs.h. */
11872 #include <pthread.h>
11874 main ()
11877 extern pthread_mutex_t *mutex; int q = mutex->m_count;
11880 return 0;
11882 _ACEOF
11883 rm -f conftest.$ac_objext
11884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11885 (eval $ac_compile) 2>conftest.er1
11886 ac_status=$?
11887 grep -v '^ *+' conftest.er1 >conftest.err
11888 rm -f conftest.er1
11889 cat conftest.err >&5
11890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891 (exit $ac_status); } &&
11892 { ac_try='test -z "$ac_c_werror_flag"
11893 || test ! -s conftest.err'
11894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895 (eval $ac_try) 2>&5
11896 ac_status=$?
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); }; } &&
11899 { ac_try='test -s conftest.$ac_objext'
11900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11901 (eval $ac_try) 2>&5
11902 ac_status=$?
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); }; }; then
11906 cat >>confdefs.h <<\_ACEOF
11907 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
11908 _ACEOF
11910 else
11911 echo "$as_me: failed program was:" >&5
11912 sed 's/^/| /' conftest.$ac_ext >&5
11915 cat >conftest.$ac_ext <<_ACEOF
11916 /* confdefs.h. */
11917 _ACEOF
11918 cat confdefs.h >>conftest.$ac_ext
11919 cat >>conftest.$ac_ext <<_ACEOF
11920 /* end confdefs.h. */
11921 #include <pthread.h>
11923 main ()
11926 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
11929 return 0;
11931 _ACEOF
11932 rm -f conftest.$ac_objext
11933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11934 (eval $ac_compile) 2>conftest.er1
11935 ac_status=$?
11936 grep -v '^ *+' conftest.er1 >conftest.err
11937 rm -f conftest.er1
11938 cat conftest.err >&5
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); } &&
11941 { ac_try='test -z "$ac_c_werror_flag"
11942 || test ! -s conftest.err'
11943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11944 (eval $ac_try) 2>&5
11945 ac_status=$?
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); }; } &&
11948 { ac_try='test -s conftest.$ac_objext'
11949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11950 (eval $ac_try) 2>&5
11951 ac_status=$?
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); }; }; then
11955 cat >>confdefs.h <<\_ACEOF
11956 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
11957 _ACEOF
11959 else
11960 echo "$as_me: failed program was:" >&5
11961 sed 's/^/| /' conftest.$ac_ext >&5
11964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11969 # We require a way to get the time.
11970 time_found=no
11974 for ac_func in gettimeofday time ftime
11976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11977 echo "$as_me:$LINENO: checking for $ac_func" >&5
11978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11979 if eval "test \"\${$as_ac_var+set}\" = set"; then
11980 echo $ECHO_N "(cached) $ECHO_C" >&6
11981 else
11982 if test x$gcc_no_link = xyes; then
11983 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11984 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11985 { (exit 1); exit 1; }; }
11987 cat >conftest.$ac_ext <<_ACEOF
11988 /* confdefs.h. */
11989 _ACEOF
11990 cat confdefs.h >>conftest.$ac_ext
11991 cat >>conftest.$ac_ext <<_ACEOF
11992 /* end confdefs.h. */
11993 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11995 #define $ac_func innocuous_$ac_func
11997 /* System header to define __stub macros and hopefully few prototypes,
11998 which can conflict with char $ac_func (); below.
11999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12000 <limits.h> exists even on freestanding compilers. */
12002 #ifdef __STDC__
12003 # include <limits.h>
12004 #else
12005 # include <assert.h>
12006 #endif
12008 #undef $ac_func
12010 /* Override any gcc2 internal prototype to avoid an error. */
12011 #ifdef __cplusplus
12012 extern "C"
12014 #endif
12015 /* We use char because int might match the return type of a gcc2
12016 builtin and then its argument prototype would still apply. */
12017 char $ac_func ();
12018 /* The GNU C library defines this for functions which it implements
12019 to always fail with ENOSYS. Some functions are actually named
12020 something starting with __ and the normal name is an alias. */
12021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12022 choke me
12023 #else
12024 char (*f) () = $ac_func;
12025 #endif
12026 #ifdef __cplusplus
12028 #endif
12031 main ()
12033 return f != $ac_func;
12035 return 0;
12037 _ACEOF
12038 rm -f conftest.$ac_objext conftest$ac_exeext
12039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12040 (eval $ac_link) 2>conftest.er1
12041 ac_status=$?
12042 grep -v '^ *+' conftest.er1 >conftest.err
12043 rm -f conftest.er1
12044 cat conftest.err >&5
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); } &&
12047 { ac_try='test -z "$ac_c_werror_flag"
12048 || test ! -s conftest.err'
12049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12050 (eval $ac_try) 2>&5
12051 ac_status=$?
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); }; } &&
12054 { ac_try='test -s conftest$ac_exeext'
12055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12056 (eval $ac_try) 2>&5
12057 ac_status=$?
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); }; }; then
12060 eval "$as_ac_var=yes"
12061 else
12062 echo "$as_me: failed program was:" >&5
12063 sed 's/^/| /' conftest.$ac_ext >&5
12065 eval "$as_ac_var=no"
12067 rm -f conftest.err conftest.$ac_objext \
12068 conftest$ac_exeext conftest.$ac_ext
12070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12071 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12072 if test `eval echo '${'$as_ac_var'}'` = yes; then
12073 cat >>confdefs.h <<_ACEOF
12074 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12075 _ACEOF
12076 time_found=yes
12078 done
12080 if test "$time_found" = no; then
12081 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
12082 echo "$as_me: error: no function found to get the time" >&2;}
12083 { (exit 1); exit 1; }; }
12087 for ac_func in memmove
12089 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12090 echo "$as_me:$LINENO: checking for $ac_func" >&5
12091 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12092 if eval "test \"\${$as_ac_var+set}\" = set"; then
12093 echo $ECHO_N "(cached) $ECHO_C" >&6
12094 else
12095 if test x$gcc_no_link = xyes; then
12096 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12097 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12098 { (exit 1); exit 1; }; }
12100 cat >conftest.$ac_ext <<_ACEOF
12101 /* confdefs.h. */
12102 _ACEOF
12103 cat confdefs.h >>conftest.$ac_ext
12104 cat >>conftest.$ac_ext <<_ACEOF
12105 /* end confdefs.h. */
12106 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12108 #define $ac_func innocuous_$ac_func
12110 /* System header to define __stub macros and hopefully few prototypes,
12111 which can conflict with char $ac_func (); below.
12112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12113 <limits.h> exists even on freestanding compilers. */
12115 #ifdef __STDC__
12116 # include <limits.h>
12117 #else
12118 # include <assert.h>
12119 #endif
12121 #undef $ac_func
12123 /* Override any gcc2 internal prototype to avoid an error. */
12124 #ifdef __cplusplus
12125 extern "C"
12127 #endif
12128 /* We use char because int might match the return type of a gcc2
12129 builtin and then its argument prototype would still apply. */
12130 char $ac_func ();
12131 /* The GNU C library defines this for functions which it implements
12132 to always fail with ENOSYS. Some functions are actually named
12133 something starting with __ and the normal name is an alias. */
12134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12135 choke me
12136 #else
12137 char (*f) () = $ac_func;
12138 #endif
12139 #ifdef __cplusplus
12141 #endif
12144 main ()
12146 return f != $ac_func;
12148 return 0;
12150 _ACEOF
12151 rm -f conftest.$ac_objext conftest$ac_exeext
12152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12153 (eval $ac_link) 2>conftest.er1
12154 ac_status=$?
12155 grep -v '^ *+' conftest.er1 >conftest.err
12156 rm -f conftest.er1
12157 cat conftest.err >&5
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); } &&
12160 { ac_try='test -z "$ac_c_werror_flag"
12161 || test ! -s conftest.err'
12162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12163 (eval $ac_try) 2>&5
12164 ac_status=$?
12165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166 (exit $ac_status); }; } &&
12167 { ac_try='test -s conftest$ac_exeext'
12168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12169 (eval $ac_try) 2>&5
12170 ac_status=$?
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); }; }; then
12173 eval "$as_ac_var=yes"
12174 else
12175 echo "$as_me: failed program was:" >&5
12176 sed 's/^/| /' conftest.$ac_ext >&5
12178 eval "$as_ac_var=no"
12180 rm -f conftest.err conftest.$ac_objext \
12181 conftest$ac_exeext conftest.$ac_ext
12183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12184 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12185 if test `eval echo '${'$as_ac_var'}'` = yes; then
12186 cat >>confdefs.h <<_ACEOF
12187 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12188 _ACEOF
12191 done
12194 # We require memcpy.
12195 memcpy_found=no
12197 for ac_func in memcpy
12199 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12200 echo "$as_me:$LINENO: checking for $ac_func" >&5
12201 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12202 if eval "test \"\${$as_ac_var+set}\" = set"; then
12203 echo $ECHO_N "(cached) $ECHO_C" >&6
12204 else
12205 if test x$gcc_no_link = xyes; then
12206 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12207 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12208 { (exit 1); exit 1; }; }
12210 cat >conftest.$ac_ext <<_ACEOF
12211 /* confdefs.h. */
12212 _ACEOF
12213 cat confdefs.h >>conftest.$ac_ext
12214 cat >>conftest.$ac_ext <<_ACEOF
12215 /* end confdefs.h. */
12216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12218 #define $ac_func innocuous_$ac_func
12220 /* System header to define __stub macros and hopefully few prototypes,
12221 which can conflict with char $ac_func (); below.
12222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12223 <limits.h> exists even on freestanding compilers. */
12225 #ifdef __STDC__
12226 # include <limits.h>
12227 #else
12228 # include <assert.h>
12229 #endif
12231 #undef $ac_func
12233 /* Override any gcc2 internal prototype to avoid an error. */
12234 #ifdef __cplusplus
12235 extern "C"
12237 #endif
12238 /* We use char because int might match the return type of a gcc2
12239 builtin and then its argument prototype would still apply. */
12240 char $ac_func ();
12241 /* The GNU C library defines this for functions which it implements
12242 to always fail with ENOSYS. Some functions are actually named
12243 something starting with __ and the normal name is an alias. */
12244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12245 choke me
12246 #else
12247 char (*f) () = $ac_func;
12248 #endif
12249 #ifdef __cplusplus
12251 #endif
12254 main ()
12256 return f != $ac_func;
12258 return 0;
12260 _ACEOF
12261 rm -f conftest.$ac_objext conftest$ac_exeext
12262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12263 (eval $ac_link) 2>conftest.er1
12264 ac_status=$?
12265 grep -v '^ *+' conftest.er1 >conftest.err
12266 rm -f conftest.er1
12267 cat conftest.err >&5
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); } &&
12270 { ac_try='test -z "$ac_c_werror_flag"
12271 || test ! -s conftest.err'
12272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12273 (eval $ac_try) 2>&5
12274 ac_status=$?
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); }; } &&
12277 { ac_try='test -s conftest$ac_exeext'
12278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12279 (eval $ac_try) 2>&5
12280 ac_status=$?
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); }; }; then
12283 eval "$as_ac_var=yes"
12284 else
12285 echo "$as_me: failed program was:" >&5
12286 sed 's/^/| /' conftest.$ac_ext >&5
12288 eval "$as_ac_var=no"
12290 rm -f conftest.err conftest.$ac_objext \
12291 conftest$ac_exeext conftest.$ac_ext
12293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12294 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12295 if test `eval echo '${'$as_ac_var'}'` = yes; then
12296 cat >>confdefs.h <<_ACEOF
12297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12298 _ACEOF
12299 memcpy_found=yes
12301 done
12303 if test "$memcpy_found" = no; then
12304 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
12305 echo "$as_me: error: memcpy is required" >&2;}
12306 { (exit 1); exit 1; }; }
12309 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12310 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12311 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12312 echo $ECHO_N "(cached) $ECHO_C" >&6
12313 else
12314 ac_check_lib_save_LIBS=$LIBS
12315 LIBS="-ldl $LIBS"
12316 if test x$gcc_no_link = xyes; then
12317 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12318 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12319 { (exit 1); exit 1; }; }
12321 cat >conftest.$ac_ext <<_ACEOF
12322 /* confdefs.h. */
12323 _ACEOF
12324 cat confdefs.h >>conftest.$ac_ext
12325 cat >>conftest.$ac_ext <<_ACEOF
12326 /* end confdefs.h. */
12328 /* Override any gcc2 internal prototype to avoid an error. */
12329 #ifdef __cplusplus
12330 extern "C"
12331 #endif
12332 /* We use char because int might match the return type of a gcc2
12333 builtin and then its argument prototype would still apply. */
12334 char dlopen ();
12336 main ()
12338 dlopen ();
12340 return 0;
12342 _ACEOF
12343 rm -f conftest.$ac_objext conftest$ac_exeext
12344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12345 (eval $ac_link) 2>conftest.er1
12346 ac_status=$?
12347 grep -v '^ *+' conftest.er1 >conftest.err
12348 rm -f conftest.er1
12349 cat conftest.err >&5
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); } &&
12352 { ac_try='test -z "$ac_c_werror_flag"
12353 || test ! -s conftest.err'
12354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12355 (eval $ac_try) 2>&5
12356 ac_status=$?
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); }; } &&
12359 { ac_try='test -s conftest$ac_exeext'
12360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12361 (eval $ac_try) 2>&5
12362 ac_status=$?
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); }; }; then
12365 ac_cv_lib_dl_dlopen=yes
12366 else
12367 echo "$as_me: failed program was:" >&5
12368 sed 's/^/| /' conftest.$ac_ext >&5
12370 ac_cv_lib_dl_dlopen=no
12372 rm -f conftest.err conftest.$ac_objext \
12373 conftest$ac_exeext conftest.$ac_ext
12374 LIBS=$ac_check_lib_save_LIBS
12376 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12377 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12378 if test $ac_cv_lib_dl_dlopen = yes; then
12381 cat >>confdefs.h <<\_ACEOF
12382 #define HAVE_DLOPEN 1
12383 _ACEOF
12388 # Some library-finding code we stole from Tcl.
12389 #--------------------------------------------------------------------
12390 # Check for the existence of the -lsocket and -lnsl libraries.
12391 # The order here is important, so that they end up in the right
12392 # order in the command line generated by make. Here are some
12393 # special considerations:
12394 # 1. Use "connect" and "accept" to check for -lsocket, and
12395 # "gethostbyname" to check for -lnsl.
12396 # 2. Use each function name only once: can't redo a check because
12397 # autoconf caches the results of the last check and won't redo it.
12398 # 3. Use -lnsl and -lsocket only if they supply procedures that
12399 # aren't already present in the normal libraries. This is because
12400 # IRIX 5.2 has libraries, but they aren't needed and they're
12401 # bogus: they goof up name resolution if used.
12402 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
12403 # To get around this problem, check for both libraries together
12404 # if -lsocket doesn't work by itself.
12405 #--------------------------------------------------------------------
12407 echo "$as_me:$LINENO: checking for socket libraries" >&5
12408 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
12409 if test "${gcj_cv_lib_sockets+set}" = set; then
12410 echo $ECHO_N "(cached) $ECHO_C" >&6
12411 else
12412 gcj_cv_lib_sockets=
12413 gcj_checkBoth=0
12414 unset ac_cv_func_connect
12415 echo "$as_me:$LINENO: checking for connect" >&5
12416 echo $ECHO_N "checking for connect... $ECHO_C" >&6
12417 if test "${ac_cv_func_connect+set}" = set; then
12418 echo $ECHO_N "(cached) $ECHO_C" >&6
12419 else
12420 if test x$gcc_no_link = xyes; then
12421 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12422 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12423 { (exit 1); exit 1; }; }
12425 cat >conftest.$ac_ext <<_ACEOF
12426 /* confdefs.h. */
12427 _ACEOF
12428 cat confdefs.h >>conftest.$ac_ext
12429 cat >>conftest.$ac_ext <<_ACEOF
12430 /* end confdefs.h. */
12431 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
12432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12433 #define connect innocuous_connect
12435 /* System header to define __stub macros and hopefully few prototypes,
12436 which can conflict with char connect (); below.
12437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12438 <limits.h> exists even on freestanding compilers. */
12440 #ifdef __STDC__
12441 # include <limits.h>
12442 #else
12443 # include <assert.h>
12444 #endif
12446 #undef connect
12448 /* Override any gcc2 internal prototype to avoid an error. */
12449 #ifdef __cplusplus
12450 extern "C"
12452 #endif
12453 /* We use char because int might match the return type of a gcc2
12454 builtin and then its argument prototype would still apply. */
12455 char connect ();
12456 /* The GNU C library defines this for functions which it implements
12457 to always fail with ENOSYS. Some functions are actually named
12458 something starting with __ and the normal name is an alias. */
12459 #if defined (__stub_connect) || defined (__stub___connect)
12460 choke me
12461 #else
12462 char (*f) () = connect;
12463 #endif
12464 #ifdef __cplusplus
12466 #endif
12469 main ()
12471 return f != connect;
12473 return 0;
12475 _ACEOF
12476 rm -f conftest.$ac_objext conftest$ac_exeext
12477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12478 (eval $ac_link) 2>conftest.er1
12479 ac_status=$?
12480 grep -v '^ *+' conftest.er1 >conftest.err
12481 rm -f conftest.er1
12482 cat conftest.err >&5
12483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); } &&
12485 { ac_try='test -z "$ac_c_werror_flag"
12486 || test ! -s conftest.err'
12487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12488 (eval $ac_try) 2>&5
12489 ac_status=$?
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); }; } &&
12492 { ac_try='test -s conftest$ac_exeext'
12493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12494 (eval $ac_try) 2>&5
12495 ac_status=$?
12496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497 (exit $ac_status); }; }; then
12498 ac_cv_func_connect=yes
12499 else
12500 echo "$as_me: failed program was:" >&5
12501 sed 's/^/| /' conftest.$ac_ext >&5
12503 ac_cv_func_connect=no
12505 rm -f conftest.err conftest.$ac_objext \
12506 conftest$ac_exeext conftest.$ac_ext
12508 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
12509 echo "${ECHO_T}$ac_cv_func_connect" >&6
12510 if test $ac_cv_func_connect = yes; then
12511 gcj_checkSocket=0
12512 else
12513 gcj_checkSocket=1
12516 if test "$gcj_checkSocket" = 1; then
12517 unset ac_cv_func_connect
12518 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
12519 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
12520 if test "${ac_cv_lib_socket_main+set}" = set; then
12521 echo $ECHO_N "(cached) $ECHO_C" >&6
12522 else
12523 ac_check_lib_save_LIBS=$LIBS
12524 LIBS="-lsocket $LIBS"
12525 if test x$gcc_no_link = xyes; then
12526 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12527 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12528 { (exit 1); exit 1; }; }
12530 cat >conftest.$ac_ext <<_ACEOF
12531 /* confdefs.h. */
12532 _ACEOF
12533 cat confdefs.h >>conftest.$ac_ext
12534 cat >>conftest.$ac_ext <<_ACEOF
12535 /* end confdefs.h. */
12539 main ()
12541 main ();
12543 return 0;
12545 _ACEOF
12546 rm -f conftest.$ac_objext conftest$ac_exeext
12547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12548 (eval $ac_link) 2>conftest.er1
12549 ac_status=$?
12550 grep -v '^ *+' conftest.er1 >conftest.err
12551 rm -f conftest.er1
12552 cat conftest.err >&5
12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); } &&
12555 { ac_try='test -z "$ac_c_werror_flag"
12556 || test ! -s conftest.err'
12557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12558 (eval $ac_try) 2>&5
12559 ac_status=$?
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 (exit $ac_status); }; } &&
12562 { ac_try='test -s conftest$ac_exeext'
12563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12564 (eval $ac_try) 2>&5
12565 ac_status=$?
12566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); }; }; then
12568 ac_cv_lib_socket_main=yes
12569 else
12570 echo "$as_me: failed program was:" >&5
12571 sed 's/^/| /' conftest.$ac_ext >&5
12573 ac_cv_lib_socket_main=no
12575 rm -f conftest.err conftest.$ac_objext \
12576 conftest$ac_exeext conftest.$ac_ext
12577 LIBS=$ac_check_lib_save_LIBS
12579 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
12580 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
12581 if test $ac_cv_lib_socket_main = yes; then
12582 gcj_cv_lib_sockets="-lsocket"
12583 else
12584 gcj_checkBoth=1
12588 if test "$gcj_checkBoth" = 1; then
12589 gcj_oldLibs=$LIBS
12590 LIBS="$LIBS -lsocket -lnsl"
12591 unset ac_cv_func_accept
12592 echo "$as_me:$LINENO: checking for accept" >&5
12593 echo $ECHO_N "checking for accept... $ECHO_C" >&6
12594 if test "${ac_cv_func_accept+set}" = set; then
12595 echo $ECHO_N "(cached) $ECHO_C" >&6
12596 else
12597 if test x$gcc_no_link = xyes; then
12598 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12599 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12600 { (exit 1); exit 1; }; }
12602 cat >conftest.$ac_ext <<_ACEOF
12603 /* confdefs.h. */
12604 _ACEOF
12605 cat confdefs.h >>conftest.$ac_ext
12606 cat >>conftest.$ac_ext <<_ACEOF
12607 /* end confdefs.h. */
12608 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
12609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12610 #define accept innocuous_accept
12612 /* System header to define __stub macros and hopefully few prototypes,
12613 which can conflict with char accept (); below.
12614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12615 <limits.h> exists even on freestanding compilers. */
12617 #ifdef __STDC__
12618 # include <limits.h>
12619 #else
12620 # include <assert.h>
12621 #endif
12623 #undef accept
12625 /* Override any gcc2 internal prototype to avoid an error. */
12626 #ifdef __cplusplus
12627 extern "C"
12629 #endif
12630 /* We use char because int might match the return type of a gcc2
12631 builtin and then its argument prototype would still apply. */
12632 char accept ();
12633 /* The GNU C library defines this for functions which it implements
12634 to always fail with ENOSYS. Some functions are actually named
12635 something starting with __ and the normal name is an alias. */
12636 #if defined (__stub_accept) || defined (__stub___accept)
12637 choke me
12638 #else
12639 char (*f) () = accept;
12640 #endif
12641 #ifdef __cplusplus
12643 #endif
12646 main ()
12648 return f != accept;
12650 return 0;
12652 _ACEOF
12653 rm -f conftest.$ac_objext conftest$ac_exeext
12654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12655 (eval $ac_link) 2>conftest.er1
12656 ac_status=$?
12657 grep -v '^ *+' conftest.er1 >conftest.err
12658 rm -f conftest.er1
12659 cat conftest.err >&5
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); } &&
12662 { ac_try='test -z "$ac_c_werror_flag"
12663 || test ! -s conftest.err'
12664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12665 (eval $ac_try) 2>&5
12666 ac_status=$?
12667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668 (exit $ac_status); }; } &&
12669 { ac_try='test -s conftest$ac_exeext'
12670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12671 (eval $ac_try) 2>&5
12672 ac_status=$?
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); }; }; then
12675 ac_cv_func_accept=yes
12676 else
12677 echo "$as_me: failed program was:" >&5
12678 sed 's/^/| /' conftest.$ac_ext >&5
12680 ac_cv_func_accept=no
12682 rm -f conftest.err conftest.$ac_objext \
12683 conftest$ac_exeext conftest.$ac_ext
12685 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
12686 echo "${ECHO_T}$ac_cv_func_accept" >&6
12687 if test $ac_cv_func_accept = yes; then
12688 gcj_checkNsl=0
12689 gcj_cv_lib_sockets="-lsocket -lnsl"
12692 unset ac_cv_func_accept
12693 LIBS=$gcj_oldLibs
12695 unset ac_cv_func_gethostbyname
12696 gcj_oldLibs=$LIBS
12697 LIBS="$LIBS $gcj_cv_lib_sockets"
12698 echo "$as_me:$LINENO: checking for gethostbyname" >&5
12699 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
12700 if test "${ac_cv_func_gethostbyname+set}" = set; then
12701 echo $ECHO_N "(cached) $ECHO_C" >&6
12702 else
12703 if test x$gcc_no_link = xyes; then
12704 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12705 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12706 { (exit 1); exit 1; }; }
12708 cat >conftest.$ac_ext <<_ACEOF
12709 /* confdefs.h. */
12710 _ACEOF
12711 cat confdefs.h >>conftest.$ac_ext
12712 cat >>conftest.$ac_ext <<_ACEOF
12713 /* end confdefs.h. */
12714 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
12715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12716 #define gethostbyname innocuous_gethostbyname
12718 /* System header to define __stub macros and hopefully few prototypes,
12719 which can conflict with char gethostbyname (); below.
12720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12721 <limits.h> exists even on freestanding compilers. */
12723 #ifdef __STDC__
12724 # include <limits.h>
12725 #else
12726 # include <assert.h>
12727 #endif
12729 #undef gethostbyname
12731 /* Override any gcc2 internal prototype to avoid an error. */
12732 #ifdef __cplusplus
12733 extern "C"
12735 #endif
12736 /* We use char because int might match the return type of a gcc2
12737 builtin and then its argument prototype would still apply. */
12738 char gethostbyname ();
12739 /* The GNU C library defines this for functions which it implements
12740 to always fail with ENOSYS. Some functions are actually named
12741 something starting with __ and the normal name is an alias. */
12742 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
12743 choke me
12744 #else
12745 char (*f) () = gethostbyname;
12746 #endif
12747 #ifdef __cplusplus
12749 #endif
12752 main ()
12754 return f != gethostbyname;
12756 return 0;
12758 _ACEOF
12759 rm -f conftest.$ac_objext conftest$ac_exeext
12760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12761 (eval $ac_link) 2>conftest.er1
12762 ac_status=$?
12763 grep -v '^ *+' conftest.er1 >conftest.err
12764 rm -f conftest.er1
12765 cat conftest.err >&5
12766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767 (exit $ac_status); } &&
12768 { ac_try='test -z "$ac_c_werror_flag"
12769 || test ! -s conftest.err'
12770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12771 (eval $ac_try) 2>&5
12772 ac_status=$?
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); }; } &&
12775 { ac_try='test -s conftest$ac_exeext'
12776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12777 (eval $ac_try) 2>&5
12778 ac_status=$?
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); }; }; then
12781 ac_cv_func_gethostbyname=yes
12782 else
12783 echo "$as_me: failed program was:" >&5
12784 sed 's/^/| /' conftest.$ac_ext >&5
12786 ac_cv_func_gethostbyname=no
12788 rm -f conftest.err conftest.$ac_objext \
12789 conftest$ac_exeext conftest.$ac_ext
12791 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
12792 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
12793 if test $ac_cv_func_gethostbyname = yes; then
12795 else
12796 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
12797 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
12798 if test "${ac_cv_lib_nsl_main+set}" = set; then
12799 echo $ECHO_N "(cached) $ECHO_C" >&6
12800 else
12801 ac_check_lib_save_LIBS=$LIBS
12802 LIBS="-lnsl $LIBS"
12803 if test x$gcc_no_link = xyes; then
12804 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12805 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12806 { (exit 1); exit 1; }; }
12808 cat >conftest.$ac_ext <<_ACEOF
12809 /* confdefs.h. */
12810 _ACEOF
12811 cat confdefs.h >>conftest.$ac_ext
12812 cat >>conftest.$ac_ext <<_ACEOF
12813 /* end confdefs.h. */
12817 main ()
12819 main ();
12821 return 0;
12823 _ACEOF
12824 rm -f conftest.$ac_objext conftest$ac_exeext
12825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12826 (eval $ac_link) 2>conftest.er1
12827 ac_status=$?
12828 grep -v '^ *+' conftest.er1 >conftest.err
12829 rm -f conftest.er1
12830 cat conftest.err >&5
12831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832 (exit $ac_status); } &&
12833 { ac_try='test -z "$ac_c_werror_flag"
12834 || test ! -s conftest.err'
12835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12836 (eval $ac_try) 2>&5
12837 ac_status=$?
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); }; } &&
12840 { ac_try='test -s conftest$ac_exeext'
12841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12842 (eval $ac_try) 2>&5
12843 ac_status=$?
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); }; }; then
12846 ac_cv_lib_nsl_main=yes
12847 else
12848 echo "$as_me: failed program was:" >&5
12849 sed 's/^/| /' conftest.$ac_ext >&5
12851 ac_cv_lib_nsl_main=no
12853 rm -f conftest.err conftest.$ac_objext \
12854 conftest$ac_exeext conftest.$ac_ext
12855 LIBS=$ac_check_lib_save_LIBS
12857 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
12858 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
12859 if test $ac_cv_lib_nsl_main = yes; then
12860 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
12865 unset ac_cv_func_gethostbyname
12866 LIBS=$gcj_oldLIBS
12869 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
12870 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
12871 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
12873 if test "$with_system_zlib" = yes; then
12874 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
12875 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
12876 if test "${ac_cv_lib_z_deflate+set}" = set; then
12877 echo $ECHO_N "(cached) $ECHO_C" >&6
12878 else
12879 ac_check_lib_save_LIBS=$LIBS
12880 LIBS="-lz $LIBS"
12881 if test x$gcc_no_link = xyes; then
12882 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12883 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12884 { (exit 1); exit 1; }; }
12886 cat >conftest.$ac_ext <<_ACEOF
12887 /* confdefs.h. */
12888 _ACEOF
12889 cat confdefs.h >>conftest.$ac_ext
12890 cat >>conftest.$ac_ext <<_ACEOF
12891 /* end confdefs.h. */
12893 /* Override any gcc2 internal prototype to avoid an error. */
12894 #ifdef __cplusplus
12895 extern "C"
12896 #endif
12897 /* We use char because int might match the return type of a gcc2
12898 builtin and then its argument prototype would still apply. */
12899 char deflate ();
12901 main ()
12903 deflate ();
12905 return 0;
12907 _ACEOF
12908 rm -f conftest.$ac_objext conftest$ac_exeext
12909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12910 (eval $ac_link) 2>conftest.er1
12911 ac_status=$?
12912 grep -v '^ *+' conftest.er1 >conftest.err
12913 rm -f conftest.er1
12914 cat conftest.err >&5
12915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916 (exit $ac_status); } &&
12917 { ac_try='test -z "$ac_c_werror_flag"
12918 || test ! -s conftest.err'
12919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12920 (eval $ac_try) 2>&5
12921 ac_status=$?
12922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923 (exit $ac_status); }; } &&
12924 { ac_try='test -s conftest$ac_exeext'
12925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12926 (eval $ac_try) 2>&5
12927 ac_status=$?
12928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929 (exit $ac_status); }; }; then
12930 ac_cv_lib_z_deflate=yes
12931 else
12932 echo "$as_me: failed program was:" >&5
12933 sed 's/^/| /' conftest.$ac_ext >&5
12935 ac_cv_lib_z_deflate=no
12937 rm -f conftest.err conftest.$ac_objext \
12938 conftest$ac_exeext conftest.$ac_ext
12939 LIBS=$ac_check_lib_save_LIBS
12941 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
12942 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
12943 if test $ac_cv_lib_z_deflate = yes; then
12944 ZLIBSPEC=-lz
12945 else
12946 ZLIBSPEC=
12951 # Test for Gtk stuff, if asked for.
12952 if test "$use_gtk_awt" = yes; then
12954 succeeded=no
12956 if test -z "$PKG_CONFIG"; then
12957 # Extract the first word of "pkg-config", so it can be a program name with args.
12958 set dummy pkg-config; ac_word=$2
12959 echo "$as_me:$LINENO: checking for $ac_word" >&5
12960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12961 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12962 echo $ECHO_N "(cached) $ECHO_C" >&6
12963 else
12964 case $PKG_CONFIG in
12965 [\\/]* | ?:[\\/]*)
12966 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12970 for as_dir in $PATH
12972 IFS=$as_save_IFS
12973 test -z "$as_dir" && as_dir=.
12974 for ac_exec_ext in '' $ac_executable_extensions; do
12975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12976 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12978 break 2
12980 done
12981 done
12983 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12985 esac
12987 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12989 if test -n "$PKG_CONFIG"; then
12990 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12991 echo "${ECHO_T}$PKG_CONFIG" >&6
12992 else
12993 echo "$as_me:$LINENO: result: no" >&5
12994 echo "${ECHO_T}no" >&6
12999 if test "$PKG_CONFIG" = "no" ; then
13000 echo "*** The pkg-config script could not be found. Make sure it is"
13001 echo "*** in your path, or set the PKG_CONFIG environment variable"
13002 echo "*** to the full path to pkg-config."
13003 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13004 else
13005 PKG_CONFIG_MIN_VERSION=0.9.0
13006 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13007 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
13008 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
13010 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
13011 echo "$as_me:$LINENO: result: yes" >&5
13012 echo "${ECHO_T}yes" >&6
13013 succeeded=yes
13015 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
13016 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
13017 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
13018 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
13019 echo "${ECHO_T}$GTK_CFLAGS" >&6
13021 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
13022 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
13023 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
13024 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
13025 echo "${ECHO_T}$GTK_LIBS" >&6
13026 else
13027 GTK_CFLAGS=""
13028 GTK_LIBS=""
13029 ## If we have a custom action on failure, don't print errors, but
13030 ## do set a variable so people can do so.
13031 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
13032 echo $GTK_PKG_ERRORS
13037 else
13038 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13039 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13043 if test $succeeded = yes; then
13045 else
13046 { { 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
13047 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;}
13048 { (exit 1); exit 1; }; }
13055 succeeded=no
13057 if test -z "$PKG_CONFIG"; then
13058 # Extract the first word of "pkg-config", so it can be a program name with args.
13059 set dummy pkg-config; ac_word=$2
13060 echo "$as_me:$LINENO: checking for $ac_word" >&5
13061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13062 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13063 echo $ECHO_N "(cached) $ECHO_C" >&6
13064 else
13065 case $PKG_CONFIG in
13066 [\\/]* | ?:[\\/]*)
13067 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13071 for as_dir in $PATH
13073 IFS=$as_save_IFS
13074 test -z "$as_dir" && as_dir=.
13075 for ac_exec_ext in '' $ac_executable_extensions; do
13076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13077 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13079 break 2
13081 done
13082 done
13084 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13086 esac
13088 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13090 if test -n "$PKG_CONFIG"; then
13091 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13092 echo "${ECHO_T}$PKG_CONFIG" >&6
13093 else
13094 echo "$as_me:$LINENO: result: no" >&5
13095 echo "${ECHO_T}no" >&6
13100 if test "$PKG_CONFIG" = "no" ; then
13101 echo "*** The pkg-config script could not be found. Make sure it is"
13102 echo "*** in your path, or set the PKG_CONFIG environment variable"
13103 echo "*** to the full path to pkg-config."
13104 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13105 else
13106 PKG_CONFIG_MIN_VERSION=0.9.0
13107 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13108 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
13109 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
13111 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
13112 echo "$as_me:$LINENO: result: yes" >&5
13113 echo "${ECHO_T}yes" >&6
13114 succeeded=yes
13116 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
13117 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
13118 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13119 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
13120 echo "${ECHO_T}$GLIB_CFLAGS" >&6
13122 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
13123 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
13124 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13125 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
13126 echo "${ECHO_T}$GLIB_LIBS" >&6
13127 else
13128 GLIB_CFLAGS=""
13129 GLIB_LIBS=""
13130 ## If we have a custom action on failure, don't print errors, but
13131 ## do set a variable so people can do so.
13132 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13133 echo $GLIB_PKG_ERRORS
13138 else
13139 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13140 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13144 if test $succeeded = yes; then
13146 else
13147 { { 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
13148 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;}
13149 { (exit 1); exit 1; }; }
13156 succeeded=no
13158 if test -z "$PKG_CONFIG"; then
13159 # Extract the first word of "pkg-config", so it can be a program name with args.
13160 set dummy pkg-config; ac_word=$2
13161 echo "$as_me:$LINENO: checking for $ac_word" >&5
13162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13163 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13164 echo $ECHO_N "(cached) $ECHO_C" >&6
13165 else
13166 case $PKG_CONFIG in
13167 [\\/]* | ?:[\\/]*)
13168 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13172 for as_dir in $PATH
13174 IFS=$as_save_IFS
13175 test -z "$as_dir" && as_dir=.
13176 for ac_exec_ext in '' $ac_executable_extensions; do
13177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13178 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13180 break 2
13182 done
13183 done
13185 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13187 esac
13189 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13191 if test -n "$PKG_CONFIG"; then
13192 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13193 echo "${ECHO_T}$PKG_CONFIG" >&6
13194 else
13195 echo "$as_me:$LINENO: result: no" >&5
13196 echo "${ECHO_T}no" >&6
13201 if test "$PKG_CONFIG" = "no" ; then
13202 echo "*** The pkg-config script could not be found. Make sure it is"
13203 echo "*** in your path, or set the PKG_CONFIG environment variable"
13204 echo "*** to the full path to pkg-config."
13205 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13206 else
13207 PKG_CONFIG_MIN_VERSION=0.9.0
13208 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13209 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
13210 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
13212 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
13213 echo "$as_me:$LINENO: result: yes" >&5
13214 echo "${ECHO_T}yes" >&6
13215 succeeded=yes
13217 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
13218 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
13219 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
13220 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
13221 echo "${ECHO_T}$LIBART_CFLAGS" >&6
13223 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
13224 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
13225 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
13226 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
13227 echo "${ECHO_T}$LIBART_LIBS" >&6
13228 else
13229 LIBART_CFLAGS=""
13230 LIBART_LIBS=""
13231 ## If we have a custom action on failure, don't print errors, but
13232 ## do set a variable so people can do so.
13233 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
13234 echo $LIBART_PKG_ERRORS
13239 else
13240 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13241 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13245 if test $succeeded = yes; then
13247 else
13248 { { 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
13249 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;}
13250 { (exit 1); exit 1; }; }
13256 # We require the XTest Extension to support java.awt.Robot.
13257 echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
13258 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
13259 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
13260 echo $ECHO_N "(cached) $ECHO_C" >&6
13261 else
13262 ac_check_lib_save_LIBS=$LIBS
13263 LIBS="-lXtst ${X_LIBS} $LIBS"
13264 if test x$gcc_no_link = xyes; then
13265 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13266 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13267 { (exit 1); exit 1; }; }
13269 cat >conftest.$ac_ext <<_ACEOF
13270 /* confdefs.h. */
13271 _ACEOF
13272 cat confdefs.h >>conftest.$ac_ext
13273 cat >>conftest.$ac_ext <<_ACEOF
13274 /* end confdefs.h. */
13276 /* Override any gcc2 internal prototype to avoid an error. */
13277 #ifdef __cplusplus
13278 extern "C"
13279 #endif
13280 /* We use char because int might match the return type of a gcc2
13281 builtin and then its argument prototype would still apply. */
13282 char XTestQueryExtension ();
13284 main ()
13286 XTestQueryExtension ();
13288 return 0;
13290 _ACEOF
13291 rm -f conftest.$ac_objext conftest$ac_exeext
13292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13293 (eval $ac_link) 2>conftest.er1
13294 ac_status=$?
13295 grep -v '^ *+' conftest.er1 >conftest.err
13296 rm -f conftest.er1
13297 cat conftest.err >&5
13298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); } &&
13300 { ac_try='test -z "$ac_c_werror_flag"
13301 || test ! -s conftest.err'
13302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13303 (eval $ac_try) 2>&5
13304 ac_status=$?
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); }; } &&
13307 { ac_try='test -s conftest$ac_exeext'
13308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13309 (eval $ac_try) 2>&5
13310 ac_status=$?
13311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); }; }; then
13313 ac_cv_lib_Xtst_XTestQueryExtension=yes
13314 else
13315 echo "$as_me: failed program was:" >&5
13316 sed 's/^/| /' conftest.$ac_ext >&5
13318 ac_cv_lib_Xtst_XTestQueryExtension=no
13320 rm -f conftest.err conftest.$ac_objext \
13321 conftest$ac_exeext conftest.$ac_ext
13322 LIBS=$ac_check_lib_save_LIBS
13324 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
13325 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
13326 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
13327 true
13328 else
13329 { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
13330 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
13331 { (exit 1); exit 1; }; }
13336 # On Solaris, and maybe other architectures, the Boehm collector
13337 # requires -ldl.
13338 if test "$GC" = boehm; then
13339 echo "$as_me:$LINENO: checking for main in -ldl" >&5
13340 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
13341 if test "${ac_cv_lib_dl_main+set}" = set; then
13342 echo $ECHO_N "(cached) $ECHO_C" >&6
13343 else
13344 ac_check_lib_save_LIBS=$LIBS
13345 LIBS="-ldl $LIBS"
13346 if test x$gcc_no_link = xyes; then
13347 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13348 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13349 { (exit 1); exit 1; }; }
13351 cat >conftest.$ac_ext <<_ACEOF
13352 /* confdefs.h. */
13353 _ACEOF
13354 cat confdefs.h >>conftest.$ac_ext
13355 cat >>conftest.$ac_ext <<_ACEOF
13356 /* end confdefs.h. */
13360 main ()
13362 main ();
13364 return 0;
13366 _ACEOF
13367 rm -f conftest.$ac_objext conftest$ac_exeext
13368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13369 (eval $ac_link) 2>conftest.er1
13370 ac_status=$?
13371 grep -v '^ *+' conftest.er1 >conftest.err
13372 rm -f conftest.er1
13373 cat conftest.err >&5
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); } &&
13376 { ac_try='test -z "$ac_c_werror_flag"
13377 || test ! -s conftest.err'
13378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13379 (eval $ac_try) 2>&5
13380 ac_status=$?
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); }; } &&
13383 { ac_try='test -s conftest$ac_exeext'
13384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13385 (eval $ac_try) 2>&5
13386 ac_status=$?
13387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 (exit $ac_status); }; }; then
13389 ac_cv_lib_dl_main=yes
13390 else
13391 echo "$as_me: failed program was:" >&5
13392 sed 's/^/| /' conftest.$ac_ext >&5
13394 ac_cv_lib_dl_main=no
13396 rm -f conftest.err conftest.$ac_objext \
13397 conftest$ac_exeext conftest.$ac_ext
13398 LIBS=$ac_check_lib_save_LIBS
13400 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
13401 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
13402 if test $ac_cv_lib_dl_main = yes; then
13403 SYSTEMSPEC="$SYSTEMSPEC -ldl"
13410 if test "$supply_backtrace" = yes; then
13411 SUPPLY_BACKTRACE_TRUE=
13412 SUPPLY_BACKTRACE_FALSE='#'
13413 else
13414 SUPPLY_BACKTRACE_TRUE='#'
13415 SUPPLY_BACKTRACE_FALSE=
13419 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
13420 case $build in
13421 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
13422 *) CLASSPATH_SEPARATOR=':' ;;
13423 esac
13426 # We must search the source tree for java.lang, since we still don't
13427 # have libgcj.jar nor java/lang/*.class
13428 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
13429 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
13431 # Since some classes depend on this one, we need its source available
13432 # before we can do any GCJ compilation test :-(
13433 if test ! -f gnu/classpath/Configuration.java; then
13434 test -d gnu || mkdir gnu
13435 test -d gnu/classpath || mkdir gnu/classpath
13436 sed -e "s,@LIBGCJDEBUG@,$LIBGCJDEBUG," \
13437 -e "s,@TOOLKIT@,$TOOLKIT," \
13438 < $srcdir/gnu/classpath/Configuration.java.in \
13439 > gnu/classpath/Configuration.java
13440 # We do not want to redirect the output of the grep below to /dev/null,
13441 # but we add /dev/null to the input list so that grep will print the
13442 # filename of Configuration.java in case it finds any matches.
13443 if grep @ gnu/classpath/Configuration.java /dev/null; then
13444 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
13445 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
13446 { (exit 1); exit 1; }; }
13450 if test -n "$ac_tool_prefix"; then
13451 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
13452 set dummy ${ac_tool_prefix}gcj; ac_word=$2
13453 echo "$as_me:$LINENO: checking for $ac_word" >&5
13454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13455 if test "${ac_cv_prog_GCJ+set}" = set; then
13456 echo $ECHO_N "(cached) $ECHO_C" >&6
13457 else
13458 if test -n "$GCJ"; then
13459 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
13460 else
13461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13462 for as_dir in $PATH
13464 IFS=$as_save_IFS
13465 test -z "$as_dir" && as_dir=.
13466 for ac_exec_ext in '' $ac_executable_extensions; do
13467 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13468 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
13469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13470 break 2
13472 done
13473 done
13477 GCJ=$ac_cv_prog_GCJ
13478 if test -n "$GCJ"; then
13479 echo "$as_me:$LINENO: result: $GCJ" >&5
13480 echo "${ECHO_T}$GCJ" >&6
13481 else
13482 echo "$as_me:$LINENO: result: no" >&5
13483 echo "${ECHO_T}no" >&6
13487 if test -z "$ac_cv_prog_GCJ"; then
13488 ac_ct_GCJ=$GCJ
13489 # Extract the first word of "gcj", so it can be a program name with args.
13490 set dummy gcj; ac_word=$2
13491 echo "$as_me:$LINENO: checking for $ac_word" >&5
13492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13493 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
13494 echo $ECHO_N "(cached) $ECHO_C" >&6
13495 else
13496 if test -n "$ac_ct_GCJ"; then
13497 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
13498 else
13499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13500 for as_dir in $PATH
13502 IFS=$as_save_IFS
13503 test -z "$as_dir" && as_dir=.
13504 for ac_exec_ext in '' $ac_executable_extensions; do
13505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13506 ac_cv_prog_ac_ct_GCJ="gcj"
13507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13508 break 2
13510 done
13511 done
13513 test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
13516 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
13517 if test -n "$ac_ct_GCJ"; then
13518 echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
13519 echo "${ECHO_T}$ac_ct_GCJ" >&6
13520 else
13521 echo "$as_me:$LINENO: result: no" >&5
13522 echo "${ECHO_T}no" >&6
13525 GCJ=$ac_ct_GCJ
13526 else
13527 GCJ="$ac_cv_prog_GCJ"
13530 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
13535 # Now remove it.
13536 rm -f gnu/classpath/Configuration.java
13538 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
13540 echo "$as_me:$LINENO: checking for void *" >&5
13541 echo $ECHO_N "checking for void *... $ECHO_C" >&6
13542 if test "${ac_cv_type_void_p+set}" = set; then
13543 echo $ECHO_N "(cached) $ECHO_C" >&6
13544 else
13545 cat >conftest.$ac_ext <<_ACEOF
13546 /* confdefs.h. */
13547 _ACEOF
13548 cat confdefs.h >>conftest.$ac_ext
13549 cat >>conftest.$ac_ext <<_ACEOF
13550 /* end confdefs.h. */
13551 $ac_includes_default
13553 main ()
13555 if ((void * *) 0)
13556 return 0;
13557 if (sizeof (void *))
13558 return 0;
13560 return 0;
13562 _ACEOF
13563 rm -f conftest.$ac_objext
13564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13565 (eval $ac_compile) 2>conftest.er1
13566 ac_status=$?
13567 grep -v '^ *+' conftest.er1 >conftest.err
13568 rm -f conftest.er1
13569 cat conftest.err >&5
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); } &&
13572 { ac_try='test -z "$ac_c_werror_flag"
13573 || test ! -s conftest.err'
13574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13575 (eval $ac_try) 2>&5
13576 ac_status=$?
13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); }; } &&
13579 { ac_try='test -s conftest.$ac_objext'
13580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13581 (eval $ac_try) 2>&5
13582 ac_status=$?
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); }; }; then
13585 ac_cv_type_void_p=yes
13586 else
13587 echo "$as_me: failed program was:" >&5
13588 sed 's/^/| /' conftest.$ac_ext >&5
13590 ac_cv_type_void_p=no
13592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13594 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
13595 echo "${ECHO_T}$ac_cv_type_void_p" >&6
13597 echo "$as_me:$LINENO: checking size of void *" >&5
13598 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13599 if test "${ac_cv_sizeof_void_p+set}" = set; then
13600 echo $ECHO_N "(cached) $ECHO_C" >&6
13601 else
13602 if test "$ac_cv_type_void_p" = yes; then
13603 # The cast to unsigned long works around a bug in the HP C Compiler
13604 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13605 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13606 # This bug is HP SR number 8606223364.
13607 if test "$cross_compiling" = yes; then
13608 # Depending upon the size, compute the lo and hi bounds.
13609 cat >conftest.$ac_ext <<_ACEOF
13610 /* confdefs.h. */
13611 _ACEOF
13612 cat confdefs.h >>conftest.$ac_ext
13613 cat >>conftest.$ac_ext <<_ACEOF
13614 /* end confdefs.h. */
13615 $ac_includes_default
13617 main ()
13619 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
13620 test_array [0] = 0
13623 return 0;
13625 _ACEOF
13626 rm -f conftest.$ac_objext
13627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13628 (eval $ac_compile) 2>conftest.er1
13629 ac_status=$?
13630 grep -v '^ *+' conftest.er1 >conftest.err
13631 rm -f conftest.er1
13632 cat conftest.err >&5
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); } &&
13635 { ac_try='test -z "$ac_c_werror_flag"
13636 || test ! -s conftest.err'
13637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13638 (eval $ac_try) 2>&5
13639 ac_status=$?
13640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641 (exit $ac_status); }; } &&
13642 { ac_try='test -s conftest.$ac_objext'
13643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13644 (eval $ac_try) 2>&5
13645 ac_status=$?
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); }; }; then
13648 ac_lo=0 ac_mid=0
13649 while :; do
13650 cat >conftest.$ac_ext <<_ACEOF
13651 /* confdefs.h. */
13652 _ACEOF
13653 cat confdefs.h >>conftest.$ac_ext
13654 cat >>conftest.$ac_ext <<_ACEOF
13655 /* end confdefs.h. */
13656 $ac_includes_default
13658 main ()
13660 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13661 test_array [0] = 0
13664 return 0;
13666 _ACEOF
13667 rm -f conftest.$ac_objext
13668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13669 (eval $ac_compile) 2>conftest.er1
13670 ac_status=$?
13671 grep -v '^ *+' conftest.er1 >conftest.err
13672 rm -f conftest.er1
13673 cat conftest.err >&5
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); } &&
13676 { ac_try='test -z "$ac_c_werror_flag"
13677 || test ! -s conftest.err'
13678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13679 (eval $ac_try) 2>&5
13680 ac_status=$?
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); }; } &&
13683 { ac_try='test -s conftest.$ac_objext'
13684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13685 (eval $ac_try) 2>&5
13686 ac_status=$?
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); }; }; then
13689 ac_hi=$ac_mid; break
13690 else
13691 echo "$as_me: failed program was:" >&5
13692 sed 's/^/| /' conftest.$ac_ext >&5
13694 ac_lo=`expr $ac_mid + 1`
13695 if test $ac_lo -le $ac_mid; then
13696 ac_lo= ac_hi=
13697 break
13699 ac_mid=`expr 2 '*' $ac_mid + 1`
13701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13702 done
13703 else
13704 echo "$as_me: failed program was:" >&5
13705 sed 's/^/| /' conftest.$ac_ext >&5
13707 cat >conftest.$ac_ext <<_ACEOF
13708 /* confdefs.h. */
13709 _ACEOF
13710 cat confdefs.h >>conftest.$ac_ext
13711 cat >>conftest.$ac_ext <<_ACEOF
13712 /* end confdefs.h. */
13713 $ac_includes_default
13715 main ()
13717 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
13718 test_array [0] = 0
13721 return 0;
13723 _ACEOF
13724 rm -f conftest.$ac_objext
13725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13726 (eval $ac_compile) 2>conftest.er1
13727 ac_status=$?
13728 grep -v '^ *+' conftest.er1 >conftest.err
13729 rm -f conftest.er1
13730 cat conftest.err >&5
13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); } &&
13733 { ac_try='test -z "$ac_c_werror_flag"
13734 || test ! -s conftest.err'
13735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13736 (eval $ac_try) 2>&5
13737 ac_status=$?
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); }; } &&
13740 { ac_try='test -s conftest.$ac_objext'
13741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13742 (eval $ac_try) 2>&5
13743 ac_status=$?
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); }; }; then
13746 ac_hi=-1 ac_mid=-1
13747 while :; do
13748 cat >conftest.$ac_ext <<_ACEOF
13749 /* confdefs.h. */
13750 _ACEOF
13751 cat confdefs.h >>conftest.$ac_ext
13752 cat >>conftest.$ac_ext <<_ACEOF
13753 /* end confdefs.h. */
13754 $ac_includes_default
13756 main ()
13758 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
13759 test_array [0] = 0
13762 return 0;
13764 _ACEOF
13765 rm -f conftest.$ac_objext
13766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13767 (eval $ac_compile) 2>conftest.er1
13768 ac_status=$?
13769 grep -v '^ *+' conftest.er1 >conftest.err
13770 rm -f conftest.er1
13771 cat conftest.err >&5
13772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773 (exit $ac_status); } &&
13774 { ac_try='test -z "$ac_c_werror_flag"
13775 || test ! -s conftest.err'
13776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13777 (eval $ac_try) 2>&5
13778 ac_status=$?
13779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); }; } &&
13781 { ac_try='test -s conftest.$ac_objext'
13782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13783 (eval $ac_try) 2>&5
13784 ac_status=$?
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); }; }; then
13787 ac_lo=$ac_mid; break
13788 else
13789 echo "$as_me: failed program was:" >&5
13790 sed 's/^/| /' conftest.$ac_ext >&5
13792 ac_hi=`expr '(' $ac_mid ')' - 1`
13793 if test $ac_mid -le $ac_hi; then
13794 ac_lo= ac_hi=
13795 break
13797 ac_mid=`expr 2 '*' $ac_mid`
13799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13800 done
13801 else
13802 echo "$as_me: failed program was:" >&5
13803 sed 's/^/| /' conftest.$ac_ext >&5
13805 ac_lo= ac_hi=
13807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13810 # Binary search between lo and hi bounds.
13811 while test "x$ac_lo" != "x$ac_hi"; do
13812 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13813 cat >conftest.$ac_ext <<_ACEOF
13814 /* confdefs.h. */
13815 _ACEOF
13816 cat confdefs.h >>conftest.$ac_ext
13817 cat >>conftest.$ac_ext <<_ACEOF
13818 /* end confdefs.h. */
13819 $ac_includes_default
13821 main ()
13823 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13824 test_array [0] = 0
13827 return 0;
13829 _ACEOF
13830 rm -f conftest.$ac_objext
13831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13832 (eval $ac_compile) 2>conftest.er1
13833 ac_status=$?
13834 grep -v '^ *+' conftest.er1 >conftest.err
13835 rm -f conftest.er1
13836 cat conftest.err >&5
13837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838 (exit $ac_status); } &&
13839 { ac_try='test -z "$ac_c_werror_flag"
13840 || test ! -s conftest.err'
13841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13842 (eval $ac_try) 2>&5
13843 ac_status=$?
13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); }; } &&
13846 { ac_try='test -s conftest.$ac_objext'
13847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13848 (eval $ac_try) 2>&5
13849 ac_status=$?
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); }; }; then
13852 ac_hi=$ac_mid
13853 else
13854 echo "$as_me: failed program was:" >&5
13855 sed 's/^/| /' conftest.$ac_ext >&5
13857 ac_lo=`expr '(' $ac_mid ')' + 1`
13859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13860 done
13861 case $ac_lo in
13862 ?*) ac_cv_sizeof_void_p=$ac_lo;;
13863 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13864 See \`config.log' for more details." >&5
13865 echo "$as_me: error: cannot compute sizeof (void *), 77
13866 See \`config.log' for more details." >&2;}
13867 { (exit 1); exit 1; }; } ;;
13868 esac
13869 else
13870 if test "$cross_compiling" = yes; then
13871 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13872 See \`config.log' for more details." >&5
13873 echo "$as_me: error: cannot run test program while cross compiling
13874 See \`config.log' for more details." >&2;}
13875 { (exit 1); exit 1; }; }
13876 else
13877 cat >conftest.$ac_ext <<_ACEOF
13878 /* confdefs.h. */
13879 _ACEOF
13880 cat confdefs.h >>conftest.$ac_ext
13881 cat >>conftest.$ac_ext <<_ACEOF
13882 /* end confdefs.h. */
13883 $ac_includes_default
13884 long longval () { return (long) (sizeof (void *)); }
13885 unsigned long ulongval () { return (long) (sizeof (void *)); }
13886 #include <stdio.h>
13887 #include <stdlib.h>
13889 main ()
13892 FILE *f = fopen ("conftest.val", "w");
13893 if (! f)
13894 exit (1);
13895 if (((long) (sizeof (void *))) < 0)
13897 long i = longval ();
13898 if (i != ((long) (sizeof (void *))))
13899 exit (1);
13900 fprintf (f, "%ld\n", i);
13902 else
13904 unsigned long i = ulongval ();
13905 if (i != ((long) (sizeof (void *))))
13906 exit (1);
13907 fprintf (f, "%lu\n", i);
13909 exit (ferror (f) || fclose (f) != 0);
13912 return 0;
13914 _ACEOF
13915 rm -f conftest$ac_exeext
13916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13917 (eval $ac_link) 2>&5
13918 ac_status=$?
13919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13922 (eval $ac_try) 2>&5
13923 ac_status=$?
13924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925 (exit $ac_status); }; }; then
13926 ac_cv_sizeof_void_p=`cat conftest.val`
13927 else
13928 echo "$as_me: program exited with status $ac_status" >&5
13929 echo "$as_me: failed program was:" >&5
13930 sed 's/^/| /' conftest.$ac_ext >&5
13932 ( exit $ac_status )
13933 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13934 See \`config.log' for more details." >&5
13935 echo "$as_me: error: cannot compute sizeof (void *), 77
13936 See \`config.log' for more details." >&2;}
13937 { (exit 1); exit 1; }; }
13939 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13942 rm -f conftest.val
13943 else
13944 ac_cv_sizeof_void_p=0
13947 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13948 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13949 cat >>confdefs.h <<_ACEOF
13950 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13951 _ACEOF
13955 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13956 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
13957 if test "${ac_cv_c_bigendian+set}" = set; then
13958 echo $ECHO_N "(cached) $ECHO_C" >&6
13959 else
13960 # See if sys/param.h defines the BYTE_ORDER macro.
13961 cat >conftest.$ac_ext <<_ACEOF
13962 /* confdefs.h. */
13963 _ACEOF
13964 cat confdefs.h >>conftest.$ac_ext
13965 cat >>conftest.$ac_ext <<_ACEOF
13966 /* end confdefs.h. */
13967 #include <sys/types.h>
13968 #include <sys/param.h>
13971 main ()
13973 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13974 bogus endian macros
13975 #endif
13978 return 0;
13980 _ACEOF
13981 rm -f conftest.$ac_objext
13982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13983 (eval $ac_compile) 2>conftest.er1
13984 ac_status=$?
13985 grep -v '^ *+' conftest.er1 >conftest.err
13986 rm -f conftest.er1
13987 cat conftest.err >&5
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); } &&
13990 { ac_try='test -z "$ac_c_werror_flag"
13991 || test ! -s conftest.err'
13992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13993 (eval $ac_try) 2>&5
13994 ac_status=$?
13995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); }; } &&
13997 { ac_try='test -s conftest.$ac_objext'
13998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13999 (eval $ac_try) 2>&5
14000 ac_status=$?
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); }; }; then
14003 # It does; now see whether it defined to BIG_ENDIAN or not.
14004 cat >conftest.$ac_ext <<_ACEOF
14005 /* confdefs.h. */
14006 _ACEOF
14007 cat confdefs.h >>conftest.$ac_ext
14008 cat >>conftest.$ac_ext <<_ACEOF
14009 /* end confdefs.h. */
14010 #include <sys/types.h>
14011 #include <sys/param.h>
14014 main ()
14016 #if BYTE_ORDER != BIG_ENDIAN
14017 not big endian
14018 #endif
14021 return 0;
14023 _ACEOF
14024 rm -f conftest.$ac_objext
14025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14026 (eval $ac_compile) 2>conftest.er1
14027 ac_status=$?
14028 grep -v '^ *+' conftest.er1 >conftest.err
14029 rm -f conftest.er1
14030 cat conftest.err >&5
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); } &&
14033 { ac_try='test -z "$ac_c_werror_flag"
14034 || test ! -s conftest.err'
14035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14036 (eval $ac_try) 2>&5
14037 ac_status=$?
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); }; } &&
14040 { ac_try='test -s conftest.$ac_objext'
14041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14042 (eval $ac_try) 2>&5
14043 ac_status=$?
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); }; }; then
14046 ac_cv_c_bigendian=yes
14047 else
14048 echo "$as_me: failed program was:" >&5
14049 sed 's/^/| /' conftest.$ac_ext >&5
14051 ac_cv_c_bigendian=no
14053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14054 else
14055 echo "$as_me: failed program was:" >&5
14056 sed 's/^/| /' conftest.$ac_ext >&5
14058 # It does not; compile a test program.
14059 if test "$cross_compiling" = yes; then
14060 # try to guess the endianness by grepping values into an object file
14061 ac_cv_c_bigendian=unknown
14062 cat >conftest.$ac_ext <<_ACEOF
14063 /* confdefs.h. */
14064 _ACEOF
14065 cat confdefs.h >>conftest.$ac_ext
14066 cat >>conftest.$ac_ext <<_ACEOF
14067 /* end confdefs.h. */
14068 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14069 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14070 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14071 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14072 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14073 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14075 main ()
14077 _ascii (); _ebcdic ();
14079 return 0;
14081 _ACEOF
14082 rm -f conftest.$ac_objext
14083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14084 (eval $ac_compile) 2>conftest.er1
14085 ac_status=$?
14086 grep -v '^ *+' conftest.er1 >conftest.err
14087 rm -f conftest.er1
14088 cat conftest.err >&5
14089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090 (exit $ac_status); } &&
14091 { ac_try='test -z "$ac_c_werror_flag"
14092 || test ! -s conftest.err'
14093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14094 (eval $ac_try) 2>&5
14095 ac_status=$?
14096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097 (exit $ac_status); }; } &&
14098 { ac_try='test -s conftest.$ac_objext'
14099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14100 (eval $ac_try) 2>&5
14101 ac_status=$?
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); }; }; then
14104 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14105 ac_cv_c_bigendian=yes
14107 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14108 if test "$ac_cv_c_bigendian" = unknown; then
14109 ac_cv_c_bigendian=no
14110 else
14111 # finding both strings is unlikely to happen, but who knows?
14112 ac_cv_c_bigendian=unknown
14115 else
14116 echo "$as_me: failed program was:" >&5
14117 sed 's/^/| /' conftest.$ac_ext >&5
14120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14121 else
14122 cat >conftest.$ac_ext <<_ACEOF
14123 /* confdefs.h. */
14124 _ACEOF
14125 cat confdefs.h >>conftest.$ac_ext
14126 cat >>conftest.$ac_ext <<_ACEOF
14127 /* end confdefs.h. */
14129 main ()
14131 /* Are we little or big endian? From Harbison&Steele. */
14132 union
14134 long l;
14135 char c[sizeof (long)];
14136 } u;
14137 u.l = 1;
14138 exit (u.c[sizeof (long) - 1] == 1);
14140 _ACEOF
14141 rm -f conftest$ac_exeext
14142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14143 (eval $ac_link) 2>&5
14144 ac_status=$?
14145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14148 (eval $ac_try) 2>&5
14149 ac_status=$?
14150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151 (exit $ac_status); }; }; then
14152 ac_cv_c_bigendian=no
14153 else
14154 echo "$as_me: program exited with status $ac_status" >&5
14155 echo "$as_me: failed program was:" >&5
14156 sed 's/^/| /' conftest.$ac_ext >&5
14158 ( exit $ac_status )
14159 ac_cv_c_bigendian=yes
14161 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14166 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14167 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14168 case $ac_cv_c_bigendian in
14169 yes)
14171 cat >>confdefs.h <<\_ACEOF
14172 #define WORDS_BIGENDIAN 1
14173 _ACEOF
14178 { { echo "$as_me:$LINENO: error: unknown endianness
14179 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14180 echo "$as_me: error: unknown endianness
14181 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14182 { (exit 1); exit 1; }; } ;;
14183 esac
14186 ZLIBS=
14187 SYS_ZLIBS=
14188 ZINCS=
14190 if test -z "$ZLIBSPEC"; then
14191 # Use zlib from the GCC tree.
14192 ZINCS='-I$(top_srcdir)/../zlib'
14193 ZLIBS=../zlib/libzgcj_convenience.la
14194 else
14195 # System's zlib.
14196 SYS_ZLIBS="$ZLIBSPEC"
14209 if test "$NATIVE" = yes; then
14210 NATIVE_TRUE=
14211 NATIVE_FALSE='#'
14212 else
14213 NATIVE_TRUE='#'
14214 NATIVE_FALSE=
14219 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
14220 NEEDS_DATA_START_TRUE=
14221 NEEDS_DATA_START_FALSE='#'
14222 else
14223 NEEDS_DATA_START_TRUE='#'
14224 NEEDS_DATA_START_FALSE=
14229 # Process the option "--enable-version-specific-runtime-libs"
14230 # Calculate toolexeclibdir
14231 case ${version_specific_libs} in
14232 yes)
14233 # Need the gcc compiler version to know where to install libraries
14234 # and header files if --enable-version-specific-runtime-libs option
14235 # is selected.
14236 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
14237 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
14238 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
14239 toolexeclibdir=$toolexecmainlibdir
14242 if test -n "$with_cross_host" &&
14243 test x"$with_cross_host" != x"no"; then
14244 # Install a library built with a cross compiler in tooldir, not libdir.
14245 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
14246 toolexecmainlibdir='$(toolexecdir)/lib'
14247 else
14248 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
14249 toolexecmainlibdir='$(libdir)'
14251 multi_os_directory=`$CC -print-multi-os-directory`
14252 case $multi_os_directory in
14253 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
14254 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
14255 esac
14257 esac
14262 # Determine gcj version number.
14263 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
14264 GCJVERSION=$gcjversion
14267 cat >>confdefs.h <<_ACEOF
14268 #define GCJVERSION "$GCJVERSION"
14269 _ACEOF
14273 cat >>confdefs.h <<\_ACEOF
14274 #define JV_VERSION "1.4.2"
14275 _ACEOF
14278 cat >>confdefs.h <<\_ACEOF
14279 #define JV_API_VERSION "1.4"
14280 _ACEOF
14284 case "${with_gxx_include_dir}" in
14285 yes)
14286 { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
14287 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
14288 { (exit 1); exit 1; }; }
14290 no | "")
14291 case "${enable_version_specific_runtime_libs}" in
14292 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
14294 libstdcxx_incdir='c++/$(gcc_version)'
14295 gxx_include_dir='$(prefix)/include/$(libstdcxx_incdir)' ;;
14296 esac ;;
14297 *) gxx_include_dir=${with_gxx_include_dir} ;;
14298 esac
14303 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
14304 # On that system, sys/ioctl.h will not include sys/filio.h unless
14305 # BSD_COMP is defined; just including sys/filio.h is simpler.
14306 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
14307 # for now. If you change this, you also must update natFile.cc.
14328 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
14329 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
14330 sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
14331 pwd.h sys/config.h stdint.h langinfo.h locale.h \
14332 dirent.h
14334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14336 echo "$as_me:$LINENO: checking for $ac_header" >&5
14337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14339 echo $ECHO_N "(cached) $ECHO_C" >&6
14341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14343 else
14344 # Is the header compilable?
14345 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14346 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14347 cat >conftest.$ac_ext <<_ACEOF
14348 /* confdefs.h. */
14349 _ACEOF
14350 cat confdefs.h >>conftest.$ac_ext
14351 cat >>conftest.$ac_ext <<_ACEOF
14352 /* end confdefs.h. */
14353 $ac_includes_default
14354 #include <$ac_header>
14355 _ACEOF
14356 rm -f conftest.$ac_objext
14357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14358 (eval $ac_compile) 2>conftest.er1
14359 ac_status=$?
14360 grep -v '^ *+' conftest.er1 >conftest.err
14361 rm -f conftest.er1
14362 cat conftest.err >&5
14363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364 (exit $ac_status); } &&
14365 { ac_try='test -z "$ac_c_werror_flag"
14366 || test ! -s conftest.err'
14367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14368 (eval $ac_try) 2>&5
14369 ac_status=$?
14370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371 (exit $ac_status); }; } &&
14372 { ac_try='test -s conftest.$ac_objext'
14373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14374 (eval $ac_try) 2>&5
14375 ac_status=$?
14376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377 (exit $ac_status); }; }; then
14378 ac_header_compiler=yes
14379 else
14380 echo "$as_me: failed program was:" >&5
14381 sed 's/^/| /' conftest.$ac_ext >&5
14383 ac_header_compiler=no
14385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14386 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14387 echo "${ECHO_T}$ac_header_compiler" >&6
14389 # Is the header present?
14390 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14392 cat >conftest.$ac_ext <<_ACEOF
14393 /* confdefs.h. */
14394 _ACEOF
14395 cat confdefs.h >>conftest.$ac_ext
14396 cat >>conftest.$ac_ext <<_ACEOF
14397 /* end confdefs.h. */
14398 #include <$ac_header>
14399 _ACEOF
14400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14402 ac_status=$?
14403 grep -v '^ *+' conftest.er1 >conftest.err
14404 rm -f conftest.er1
14405 cat conftest.err >&5
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); } >/dev/null; then
14408 if test -s conftest.err; then
14409 ac_cpp_err=$ac_c_preproc_warn_flag
14410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14411 else
14412 ac_cpp_err=
14414 else
14415 ac_cpp_err=yes
14417 if test -z "$ac_cpp_err"; then
14418 ac_header_preproc=yes
14419 else
14420 echo "$as_me: failed program was:" >&5
14421 sed 's/^/| /' conftest.$ac_ext >&5
14423 ac_header_preproc=no
14425 rm -f conftest.err conftest.$ac_ext
14426 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14427 echo "${ECHO_T}$ac_header_preproc" >&6
14429 # So? What about this header?
14430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14431 yes:no: )
14432 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14433 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14435 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14436 ac_header_preproc=yes
14438 no:yes:* )
14439 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14440 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14441 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14442 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14443 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14444 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14445 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14446 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14448 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14449 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14450 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14452 cat <<\_ASBOX
14453 ## ---------------------------------- ##
14454 ## Report this to the libjava lists. ##
14455 ## ---------------------------------- ##
14456 _ASBOX
14458 sed "s/^/$as_me: WARNING: /" >&2
14460 esac
14461 echo "$as_me:$LINENO: checking for $ac_header" >&5
14462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14464 echo $ECHO_N "(cached) $ECHO_C" >&6
14465 else
14466 eval "$as_ac_Header=\$ac_header_preproc"
14468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14473 cat >>confdefs.h <<_ACEOF
14474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14475 _ACEOF
14479 done
14482 for ac_header in inttypes.h
14484 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14486 echo "$as_me:$LINENO: checking for $ac_header" >&5
14487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14489 echo $ECHO_N "(cached) $ECHO_C" >&6
14491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14492 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14493 else
14494 # Is the header compilable?
14495 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14496 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14497 cat >conftest.$ac_ext <<_ACEOF
14498 /* confdefs.h. */
14499 _ACEOF
14500 cat confdefs.h >>conftest.$ac_ext
14501 cat >>conftest.$ac_ext <<_ACEOF
14502 /* end confdefs.h. */
14503 $ac_includes_default
14504 #include <$ac_header>
14505 _ACEOF
14506 rm -f conftest.$ac_objext
14507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14508 (eval $ac_compile) 2>conftest.er1
14509 ac_status=$?
14510 grep -v '^ *+' conftest.er1 >conftest.err
14511 rm -f conftest.er1
14512 cat conftest.err >&5
14513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514 (exit $ac_status); } &&
14515 { ac_try='test -z "$ac_c_werror_flag"
14516 || test ! -s conftest.err'
14517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14518 (eval $ac_try) 2>&5
14519 ac_status=$?
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); }; } &&
14522 { ac_try='test -s conftest.$ac_objext'
14523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14524 (eval $ac_try) 2>&5
14525 ac_status=$?
14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); }; }; then
14528 ac_header_compiler=yes
14529 else
14530 echo "$as_me: failed program was:" >&5
14531 sed 's/^/| /' conftest.$ac_ext >&5
14533 ac_header_compiler=no
14535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14536 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14537 echo "${ECHO_T}$ac_header_compiler" >&6
14539 # Is the header present?
14540 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14541 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
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 #include <$ac_header>
14549 _ACEOF
14550 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14551 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14552 ac_status=$?
14553 grep -v '^ *+' conftest.er1 >conftest.err
14554 rm -f conftest.er1
14555 cat conftest.err >&5
14556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557 (exit $ac_status); } >/dev/null; then
14558 if test -s conftest.err; then
14559 ac_cpp_err=$ac_c_preproc_warn_flag
14560 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14561 else
14562 ac_cpp_err=
14564 else
14565 ac_cpp_err=yes
14567 if test -z "$ac_cpp_err"; then
14568 ac_header_preproc=yes
14569 else
14570 echo "$as_me: failed program was:" >&5
14571 sed 's/^/| /' conftest.$ac_ext >&5
14573 ac_header_preproc=no
14575 rm -f conftest.err conftest.$ac_ext
14576 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14577 echo "${ECHO_T}$ac_header_preproc" >&6
14579 # So? What about this header?
14580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14581 yes:no: )
14582 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14583 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14585 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14586 ac_header_preproc=yes
14588 no:yes:* )
14589 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14590 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14591 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14592 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14593 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14594 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14595 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14596 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14598 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14599 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14600 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14602 cat <<\_ASBOX
14603 ## ---------------------------------- ##
14604 ## Report this to the libjava lists. ##
14605 ## ---------------------------------- ##
14606 _ASBOX
14608 sed "s/^/$as_me: WARNING: /" >&2
14610 esac
14611 echo "$as_me:$LINENO: checking for $ac_header" >&5
14612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14614 echo $ECHO_N "(cached) $ECHO_C" >&6
14615 else
14616 eval "$as_ac_Header=\$ac_header_preproc"
14618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14623 cat >>confdefs.h <<_ACEOF
14624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14625 _ACEOF
14628 cat >>confdefs.h <<\_ACEOF
14629 #define HAVE_INTTYPES_H 1
14630 _ACEOF
14633 cat >>confdefs.h <<\_ACEOF
14634 #define JV_HAVE_INTTYPES_H 1
14635 _ACEOF
14640 done
14642 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14643 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
14644 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14645 echo $ECHO_N "(cached) $ECHO_C" >&6
14646 else
14647 cat >conftest.$ac_ext <<_ACEOF
14648 /* confdefs.h. */
14649 _ACEOF
14650 cat confdefs.h >>conftest.$ac_ext
14651 cat >>conftest.$ac_ext <<_ACEOF
14652 /* end confdefs.h. */
14653 #include <sys/types.h>
14654 #include <sys/wait.h>
14655 #ifndef WEXITSTATUS
14656 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
14657 #endif
14658 #ifndef WIFEXITED
14659 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14660 #endif
14663 main ()
14665 int s;
14666 wait (&s);
14667 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14669 return 0;
14671 _ACEOF
14672 rm -f conftest.$ac_objext
14673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14674 (eval $ac_compile) 2>conftest.er1
14675 ac_status=$?
14676 grep -v '^ *+' conftest.er1 >conftest.err
14677 rm -f conftest.er1
14678 cat conftest.err >&5
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); } &&
14681 { ac_try='test -z "$ac_c_werror_flag"
14682 || test ! -s conftest.err'
14683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14684 (eval $ac_try) 2>&5
14685 ac_status=$?
14686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687 (exit $ac_status); }; } &&
14688 { ac_try='test -s conftest.$ac_objext'
14689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14690 (eval $ac_try) 2>&5
14691 ac_status=$?
14692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693 (exit $ac_status); }; }; then
14694 ac_cv_header_sys_wait_h=yes
14695 else
14696 echo "$as_me: failed program was:" >&5
14697 sed 's/^/| /' conftest.$ac_ext >&5
14699 ac_cv_header_sys_wait_h=no
14701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14703 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14704 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
14705 if test $ac_cv_header_sys_wait_h = yes; then
14707 cat >>confdefs.h <<\_ACEOF
14708 #define HAVE_SYS_WAIT_H 1
14709 _ACEOF
14714 echo "$as_me:$LINENO: checking for ssize_t" >&5
14715 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14716 if test "${ac_cv_type_ssize_t+set}" = set; then
14717 echo $ECHO_N "(cached) $ECHO_C" >&6
14718 else
14719 cat >conftest.$ac_ext <<_ACEOF
14720 /* confdefs.h. */
14721 _ACEOF
14722 cat confdefs.h >>conftest.$ac_ext
14723 cat >>conftest.$ac_ext <<_ACEOF
14724 /* end confdefs.h. */
14725 $ac_includes_default
14727 main ()
14729 if ((ssize_t *) 0)
14730 return 0;
14731 if (sizeof (ssize_t))
14732 return 0;
14734 return 0;
14736 _ACEOF
14737 rm -f conftest.$ac_objext
14738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14739 (eval $ac_compile) 2>conftest.er1
14740 ac_status=$?
14741 grep -v '^ *+' conftest.er1 >conftest.err
14742 rm -f conftest.er1
14743 cat conftest.err >&5
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); } &&
14746 { ac_try='test -z "$ac_c_werror_flag"
14747 || test ! -s conftest.err'
14748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14749 (eval $ac_try) 2>&5
14750 ac_status=$?
14751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752 (exit $ac_status); }; } &&
14753 { ac_try='test -s conftest.$ac_objext'
14754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14755 (eval $ac_try) 2>&5
14756 ac_status=$?
14757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758 (exit $ac_status); }; }; then
14759 ac_cv_type_ssize_t=yes
14760 else
14761 echo "$as_me: failed program was:" >&5
14762 sed 's/^/| /' conftest.$ac_ext >&5
14764 ac_cv_type_ssize_t=no
14766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14768 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14769 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14770 if test $ac_cv_type_ssize_t = yes; then
14772 else
14774 cat >>confdefs.h <<_ACEOF
14775 #define ssize_t int
14776 _ACEOF
14781 echo "$as_me:$LINENO: checking for in_addr_t" >&5
14782 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
14783 cat >conftest.$ac_ext <<_ACEOF
14784 /* confdefs.h. */
14785 _ACEOF
14786 cat confdefs.h >>conftest.$ac_ext
14787 cat >>conftest.$ac_ext <<_ACEOF
14788 /* end confdefs.h. */
14789 #include <sys/types.h>
14790 #if STDC_HEADERS
14791 #include <stdlib.h>
14792 #include <stddef.h>
14793 #endif
14794 #if HAVE_NETINET_IN_H
14795 #include <netinet/in.h>
14796 #endif
14798 main ()
14800 in_addr_t foo;
14802 return 0;
14804 _ACEOF
14805 rm -f conftest.$ac_objext
14806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14807 (eval $ac_compile) 2>conftest.er1
14808 ac_status=$?
14809 grep -v '^ *+' conftest.er1 >conftest.err
14810 rm -f conftest.er1
14811 cat conftest.err >&5
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); } &&
14814 { ac_try='test -z "$ac_c_werror_flag"
14815 || test ! -s conftest.err'
14816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14817 (eval $ac_try) 2>&5
14818 ac_status=$?
14819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820 (exit $ac_status); }; } &&
14821 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14828 cat >>confdefs.h <<\_ACEOF
14829 #define HAVE_IN_ADDR_T 1
14830 _ACEOF
14832 echo "$as_me:$LINENO: result: yes" >&5
14833 echo "${ECHO_T}yes" >&6
14834 else
14835 echo "$as_me: failed program was:" >&5
14836 sed 's/^/| /' conftest.$ac_ext >&5
14838 echo "$as_me:$LINENO: result: no" >&5
14839 echo "${ECHO_T}no" >&6
14841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14843 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
14844 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
14845 cat >conftest.$ac_ext <<_ACEOF
14846 /* confdefs.h. */
14847 _ACEOF
14848 cat confdefs.h >>conftest.$ac_ext
14849 cat >>conftest.$ac_ext <<_ACEOF
14850 /* end confdefs.h. */
14851 #include <netinet/in.h>
14853 main ()
14855 struct ip_mreq mreq;
14857 return 0;
14859 _ACEOF
14860 rm -f conftest.$ac_objext
14861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14862 (eval $ac_compile) 2>conftest.er1
14863 ac_status=$?
14864 grep -v '^ *+' conftest.er1 >conftest.err
14865 rm -f conftest.er1
14866 cat conftest.err >&5
14867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868 (exit $ac_status); } &&
14869 { ac_try='test -z "$ac_c_werror_flag"
14870 || test ! -s conftest.err'
14871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14872 (eval $ac_try) 2>&5
14873 ac_status=$?
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); }; } &&
14876 { ac_try='test -s conftest.$ac_objext'
14877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14878 (eval $ac_try) 2>&5
14879 ac_status=$?
14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); }; }; then
14883 cat >>confdefs.h <<\_ACEOF
14884 #define HAVE_STRUCT_IP_MREQ 1
14885 _ACEOF
14887 echo "$as_me:$LINENO: result: yes" >&5
14888 echo "${ECHO_T}yes" >&6
14889 else
14890 echo "$as_me: failed program was:" >&5
14891 sed 's/^/| /' conftest.$ac_ext >&5
14893 echo "$as_me:$LINENO: result: no" >&5
14894 echo "${ECHO_T}no" >&6
14896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14898 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
14899 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
14900 cat >conftest.$ac_ext <<_ACEOF
14901 /* confdefs.h. */
14902 _ACEOF
14903 cat confdefs.h >>conftest.$ac_ext
14904 cat >>conftest.$ac_ext <<_ACEOF
14905 /* end confdefs.h. */
14906 #include <netinet/in.h>
14908 main ()
14910 struct ipv6_mreq mreq6;
14912 return 0;
14914 _ACEOF
14915 rm -f conftest.$ac_objext
14916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14917 (eval $ac_compile) 2>conftest.er1
14918 ac_status=$?
14919 grep -v '^ *+' conftest.er1 >conftest.err
14920 rm -f conftest.er1
14921 cat conftest.err >&5
14922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923 (exit $ac_status); } &&
14924 { ac_try='test -z "$ac_c_werror_flag"
14925 || test ! -s conftest.err'
14926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14927 (eval $ac_try) 2>&5
14928 ac_status=$?
14929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930 (exit $ac_status); }; } &&
14931 { ac_try='test -s conftest.$ac_objext'
14932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14933 (eval $ac_try) 2>&5
14934 ac_status=$?
14935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936 (exit $ac_status); }; }; then
14938 cat >>confdefs.h <<\_ACEOF
14939 #define HAVE_STRUCT_IPV6_MREQ 1
14940 _ACEOF
14942 echo "$as_me:$LINENO: result: yes" >&5
14943 echo "${ECHO_T}yes" >&6
14944 else
14945 echo "$as_me: failed program was:" >&5
14946 sed 's/^/| /' conftest.$ac_ext >&5
14948 echo "$as_me:$LINENO: result: no" >&5
14949 echo "${ECHO_T}no" >&6
14951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14953 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
14954 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
14955 cat >conftest.$ac_ext <<_ACEOF
14956 /* confdefs.h. */
14957 _ACEOF
14958 cat confdefs.h >>conftest.$ac_ext
14959 cat >>conftest.$ac_ext <<_ACEOF
14960 /* end confdefs.h. */
14961 #include <netinet/in.h>
14963 main ()
14965 struct sockaddr_in6 addr6;
14967 return 0;
14969 _ACEOF
14970 rm -f conftest.$ac_objext
14971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14972 (eval $ac_compile) 2>conftest.er1
14973 ac_status=$?
14974 grep -v '^ *+' conftest.er1 >conftest.err
14975 rm -f conftest.er1
14976 cat conftest.err >&5
14977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); } &&
14979 { ac_try='test -z "$ac_c_werror_flag"
14980 || test ! -s conftest.err'
14981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14982 (eval $ac_try) 2>&5
14983 ac_status=$?
14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985 (exit $ac_status); }; } &&
14986 { ac_try='test -s conftest.$ac_objext'
14987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14988 (eval $ac_try) 2>&5
14989 ac_status=$?
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); }; }; then
14993 cat >>confdefs.h <<\_ACEOF
14994 #define HAVE_INET6 1
14995 _ACEOF
14997 echo "$as_me:$LINENO: result: yes" >&5
14998 echo "${ECHO_T}yes" >&6
14999 else
15000 echo "$as_me: failed program was:" >&5
15001 sed 's/^/| /' conftest.$ac_ext >&5
15003 echo "$as_me:$LINENO: result: no" >&5
15004 echo "${ECHO_T}no" >&6
15006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15008 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
15009 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
15010 cat >conftest.$ac_ext <<_ACEOF
15011 /* confdefs.h. */
15012 _ACEOF
15013 cat confdefs.h >>conftest.$ac_ext
15014 cat >>conftest.$ac_ext <<_ACEOF
15015 /* end confdefs.h. */
15016 #define _POSIX_PII_SOCKET
15017 #include <sys/types.h>
15018 #include <sys/socket.h>
15020 main ()
15022 socklen_t x = 5;
15024 return 0;
15026 _ACEOF
15027 rm -f conftest.$ac_objext
15028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15029 (eval $ac_compile) 2>conftest.er1
15030 ac_status=$?
15031 grep -v '^ *+' conftest.er1 >conftest.err
15032 rm -f conftest.er1
15033 cat conftest.err >&5
15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035 (exit $ac_status); } &&
15036 { ac_try='test -z "$ac_c_werror_flag"
15037 || test ! -s conftest.err'
15038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15039 (eval $ac_try) 2>&5
15040 ac_status=$?
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); }; } &&
15043 { ac_try='test -s conftest.$ac_objext'
15044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15045 (eval $ac_try) 2>&5
15046 ac_status=$?
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); }; }; then
15050 cat >>confdefs.h <<\_ACEOF
15051 #define HAVE_SOCKLEN_T 1
15052 _ACEOF
15054 echo "$as_me:$LINENO: result: yes" >&5
15055 echo "${ECHO_T}yes" >&6
15056 else
15057 echo "$as_me: failed program was:" >&5
15058 sed 's/^/| /' conftest.$ac_ext >&5
15060 echo "$as_me:$LINENO: result: no" >&5
15061 echo "${ECHO_T}no" >&6
15063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15065 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
15066 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
15067 cat >conftest.$ac_ext <<_ACEOF
15068 /* confdefs.h. */
15069 _ACEOF
15070 cat confdefs.h >>conftest.$ac_ext
15071 cat >>conftest.$ac_ext <<_ACEOF
15072 /* end confdefs.h. */
15073 #include <time.h>
15075 main ()
15077 struct tm tim; tim.tm_gmtoff = 0;
15079 return 0;
15081 _ACEOF
15082 rm -f conftest.$ac_objext
15083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15084 (eval $ac_compile) 2>conftest.er1
15085 ac_status=$?
15086 grep -v '^ *+' conftest.er1 >conftest.err
15087 rm -f conftest.er1
15088 cat conftest.err >&5
15089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090 (exit $ac_status); } &&
15091 { ac_try='test -z "$ac_c_werror_flag"
15092 || test ! -s conftest.err'
15093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15094 (eval $ac_try) 2>&5
15095 ac_status=$?
15096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097 (exit $ac_status); }; } &&
15098 { ac_try='test -s conftest.$ac_objext'
15099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15100 (eval $ac_try) 2>&5
15101 ac_status=$?
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); }; }; then
15105 cat >>confdefs.h <<\_ACEOF
15106 #define STRUCT_TM_HAS_GMTOFF 1
15107 _ACEOF
15109 echo "$as_me:$LINENO: result: yes" >&5
15110 echo "${ECHO_T}yes" >&6
15111 else
15112 echo "$as_me: failed program was:" >&5
15113 sed 's/^/| /' conftest.$ac_ext >&5
15115 echo "$as_me:$LINENO: result: no" >&5
15116 echo "${ECHO_T}no" >&6
15117 echo "$as_me:$LINENO: checking for global timezone variable" >&5
15118 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
15119 cat >conftest.$ac_ext <<_ACEOF
15120 /* confdefs.h. */
15121 _ACEOF
15122 cat confdefs.h >>conftest.$ac_ext
15123 cat >>conftest.$ac_ext <<_ACEOF
15124 /* end confdefs.h. */
15125 #include <time.h>
15127 main ()
15129 void i(){long z2 = 2*timezone;}
15131 return 0;
15133 _ACEOF
15134 rm -f conftest.$ac_objext
15135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15136 (eval $ac_compile) 2>conftest.er1
15137 ac_status=$?
15138 grep -v '^ *+' conftest.er1 >conftest.err
15139 rm -f conftest.er1
15140 cat conftest.err >&5
15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); } &&
15143 { ac_try='test -z "$ac_c_werror_flag"
15144 || test ! -s conftest.err'
15145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15146 (eval $ac_try) 2>&5
15147 ac_status=$?
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); }; } &&
15150 { ac_try='test -s conftest.$ac_objext'
15151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15152 (eval $ac_try) 2>&5
15153 ac_status=$?
15154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); }; }; then
15157 cat >>confdefs.h <<\_ACEOF
15158 #define HAVE_TIMEZONE 1
15159 _ACEOF
15161 echo "$as_me:$LINENO: result: yes" >&5
15162 echo "${ECHO_T}yes" >&6
15163 else
15164 echo "$as_me: failed program was:" >&5
15165 sed 's/^/| /' conftest.$ac_ext >&5
15167 echo "$as_me:$LINENO: result: no" >&5
15168 echo "${ECHO_T}no" >&6
15169 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
15170 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
15171 cat >conftest.$ac_ext <<_ACEOF
15172 /* confdefs.h. */
15173 _ACEOF
15174 cat confdefs.h >>conftest.$ac_ext
15175 cat >>conftest.$ac_ext <<_ACEOF
15176 /* end confdefs.h. */
15177 #include <time.h>
15179 main ()
15181 long z2 = _timezone;
15183 return 0;
15185 _ACEOF
15186 rm -f conftest.$ac_objext
15187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15188 (eval $ac_compile) 2>conftest.er1
15189 ac_status=$?
15190 grep -v '^ *+' conftest.er1 >conftest.err
15191 rm -f conftest.er1
15192 cat conftest.err >&5
15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); } &&
15195 { ac_try='test -z "$ac_c_werror_flag"
15196 || test ! -s conftest.err'
15197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15198 (eval $ac_try) 2>&5
15199 ac_status=$?
15200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201 (exit $ac_status); }; } &&
15202 { ac_try='test -s conftest.$ac_objext'
15203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15204 (eval $ac_try) 2>&5
15205 ac_status=$?
15206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207 (exit $ac_status); }; }; then
15209 cat >>confdefs.h <<\_ACEOF
15210 #define HAVE_UNDERSCORE_TIMEZONE 1
15211 _ACEOF
15213 echo "$as_me:$LINENO: result: yes" >&5
15214 echo "${ECHO_T}yes" >&6
15215 else
15216 echo "$as_me: failed program was:" >&5
15217 sed 's/^/| /' conftest.$ac_ext >&5
15219 echo "$as_me:$LINENO: result: no" >&5
15220 echo "${ECHO_T}no" >&6
15222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15228 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15229 # for constant arguments. Useless!
15230 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15231 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15232 if test "${ac_cv_working_alloca_h+set}" = set; then
15233 echo $ECHO_N "(cached) $ECHO_C" >&6
15234 else
15235 if test x$gcc_no_link = xyes; then
15236 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15237 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15238 { (exit 1); exit 1; }; }
15240 cat >conftest.$ac_ext <<_ACEOF
15241 /* confdefs.h. */
15242 _ACEOF
15243 cat confdefs.h >>conftest.$ac_ext
15244 cat >>conftest.$ac_ext <<_ACEOF
15245 /* end confdefs.h. */
15246 #include <alloca.h>
15248 main ()
15250 char *p = (char *) alloca (2 * sizeof (int));
15252 return 0;
15254 _ACEOF
15255 rm -f conftest.$ac_objext conftest$ac_exeext
15256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15257 (eval $ac_link) 2>conftest.er1
15258 ac_status=$?
15259 grep -v '^ *+' conftest.er1 >conftest.err
15260 rm -f conftest.er1
15261 cat conftest.err >&5
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); } &&
15264 { ac_try='test -z "$ac_c_werror_flag"
15265 || test ! -s conftest.err'
15266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15267 (eval $ac_try) 2>&5
15268 ac_status=$?
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); }; } &&
15271 { ac_try='test -s conftest$ac_exeext'
15272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15273 (eval $ac_try) 2>&5
15274 ac_status=$?
15275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15276 (exit $ac_status); }; }; then
15277 ac_cv_working_alloca_h=yes
15278 else
15279 echo "$as_me: failed program was:" >&5
15280 sed 's/^/| /' conftest.$ac_ext >&5
15282 ac_cv_working_alloca_h=no
15284 rm -f conftest.err conftest.$ac_objext \
15285 conftest$ac_exeext conftest.$ac_ext
15287 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15288 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15289 if test $ac_cv_working_alloca_h = yes; then
15291 cat >>confdefs.h <<\_ACEOF
15292 #define HAVE_ALLOCA_H 1
15293 _ACEOF
15297 echo "$as_me:$LINENO: checking for alloca" >&5
15298 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15299 if test "${ac_cv_func_alloca_works+set}" = set; then
15300 echo $ECHO_N "(cached) $ECHO_C" >&6
15301 else
15302 if test x$gcc_no_link = xyes; then
15303 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15304 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15305 { (exit 1); exit 1; }; }
15307 cat >conftest.$ac_ext <<_ACEOF
15308 /* confdefs.h. */
15309 _ACEOF
15310 cat confdefs.h >>conftest.$ac_ext
15311 cat >>conftest.$ac_ext <<_ACEOF
15312 /* end confdefs.h. */
15313 #ifdef __GNUC__
15314 # define alloca __builtin_alloca
15315 #else
15316 # ifdef _MSC_VER
15317 # include <malloc.h>
15318 # define alloca _alloca
15319 # else
15320 # if HAVE_ALLOCA_H
15321 # include <alloca.h>
15322 # else
15323 # ifdef _AIX
15324 #pragma alloca
15325 # else
15326 # ifndef alloca /* predefined by HP cc +Olibcalls */
15327 char *alloca ();
15328 # endif
15329 # endif
15330 # endif
15331 # endif
15332 #endif
15335 main ()
15337 char *p = (char *) alloca (1);
15339 return 0;
15341 _ACEOF
15342 rm -f conftest.$ac_objext conftest$ac_exeext
15343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15344 (eval $ac_link) 2>conftest.er1
15345 ac_status=$?
15346 grep -v '^ *+' conftest.er1 >conftest.err
15347 rm -f conftest.er1
15348 cat conftest.err >&5
15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350 (exit $ac_status); } &&
15351 { ac_try='test -z "$ac_c_werror_flag"
15352 || test ! -s conftest.err'
15353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15354 (eval $ac_try) 2>&5
15355 ac_status=$?
15356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357 (exit $ac_status); }; } &&
15358 { ac_try='test -s conftest$ac_exeext'
15359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15360 (eval $ac_try) 2>&5
15361 ac_status=$?
15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363 (exit $ac_status); }; }; then
15364 ac_cv_func_alloca_works=yes
15365 else
15366 echo "$as_me: failed program was:" >&5
15367 sed 's/^/| /' conftest.$ac_ext >&5
15369 ac_cv_func_alloca_works=no
15371 rm -f conftest.err conftest.$ac_objext \
15372 conftest$ac_exeext conftest.$ac_ext
15374 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15375 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15377 if test $ac_cv_func_alloca_works = yes; then
15379 cat >>confdefs.h <<\_ACEOF
15380 #define HAVE_ALLOCA 1
15381 _ACEOF
15383 else
15384 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15385 # that cause trouble. Some versions do not even contain alloca or
15386 # contain a buggy version. If you still want to use their alloca,
15387 # use ar to extract alloca.o from them instead of compiling alloca.c.
15389 ALLOCA=alloca.$ac_objext
15391 cat >>confdefs.h <<\_ACEOF
15392 #define C_ALLOCA 1
15393 _ACEOF
15396 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15397 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15398 if test "${ac_cv_os_cray+set}" = set; then
15399 echo $ECHO_N "(cached) $ECHO_C" >&6
15400 else
15401 cat >conftest.$ac_ext <<_ACEOF
15402 /* confdefs.h. */
15403 _ACEOF
15404 cat confdefs.h >>conftest.$ac_ext
15405 cat >>conftest.$ac_ext <<_ACEOF
15406 /* end confdefs.h. */
15407 #if defined(CRAY) && ! defined(CRAY2)
15408 webecray
15409 #else
15410 wenotbecray
15411 #endif
15413 _ACEOF
15414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15415 $EGREP "webecray" >/dev/null 2>&1; then
15416 ac_cv_os_cray=yes
15417 else
15418 ac_cv_os_cray=no
15420 rm -f conftest*
15423 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15424 echo "${ECHO_T}$ac_cv_os_cray" >&6
15425 if test $ac_cv_os_cray = yes; then
15426 for ac_func in _getb67 GETB67 getb67; do
15427 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15428 echo "$as_me:$LINENO: checking for $ac_func" >&5
15429 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15430 if eval "test \"\${$as_ac_var+set}\" = set"; then
15431 echo $ECHO_N "(cached) $ECHO_C" >&6
15432 else
15433 if test x$gcc_no_link = xyes; then
15434 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15435 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15436 { (exit 1); exit 1; }; }
15438 cat >conftest.$ac_ext <<_ACEOF
15439 /* confdefs.h. */
15440 _ACEOF
15441 cat confdefs.h >>conftest.$ac_ext
15442 cat >>conftest.$ac_ext <<_ACEOF
15443 /* end confdefs.h. */
15444 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15445 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15446 #define $ac_func innocuous_$ac_func
15448 /* System header to define __stub macros and hopefully few prototypes,
15449 which can conflict with char $ac_func (); below.
15450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15451 <limits.h> exists even on freestanding compilers. */
15453 #ifdef __STDC__
15454 # include <limits.h>
15455 #else
15456 # include <assert.h>
15457 #endif
15459 #undef $ac_func
15461 /* Override any gcc2 internal prototype to avoid an error. */
15462 #ifdef __cplusplus
15463 extern "C"
15465 #endif
15466 /* We use char because int might match the return type of a gcc2
15467 builtin and then its argument prototype would still apply. */
15468 char $ac_func ();
15469 /* The GNU C library defines this for functions which it implements
15470 to always fail with ENOSYS. Some functions are actually named
15471 something starting with __ and the normal name is an alias. */
15472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15473 choke me
15474 #else
15475 char (*f) () = $ac_func;
15476 #endif
15477 #ifdef __cplusplus
15479 #endif
15482 main ()
15484 return f != $ac_func;
15486 return 0;
15488 _ACEOF
15489 rm -f conftest.$ac_objext conftest$ac_exeext
15490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15491 (eval $ac_link) 2>conftest.er1
15492 ac_status=$?
15493 grep -v '^ *+' conftest.er1 >conftest.err
15494 rm -f conftest.er1
15495 cat conftest.err >&5
15496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497 (exit $ac_status); } &&
15498 { ac_try='test -z "$ac_c_werror_flag"
15499 || test ! -s conftest.err'
15500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15501 (eval $ac_try) 2>&5
15502 ac_status=$?
15503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504 (exit $ac_status); }; } &&
15505 { ac_try='test -s conftest$ac_exeext'
15506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15507 (eval $ac_try) 2>&5
15508 ac_status=$?
15509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510 (exit $ac_status); }; }; then
15511 eval "$as_ac_var=yes"
15512 else
15513 echo "$as_me: failed program was:" >&5
15514 sed 's/^/| /' conftest.$ac_ext >&5
15516 eval "$as_ac_var=no"
15518 rm -f conftest.err conftest.$ac_objext \
15519 conftest$ac_exeext conftest.$ac_ext
15521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15522 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15523 if test `eval echo '${'$as_ac_var'}'` = yes; then
15525 cat >>confdefs.h <<_ACEOF
15526 #define CRAY_STACKSEG_END $ac_func
15527 _ACEOF
15529 break
15532 done
15535 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15536 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15537 if test "${ac_cv_c_stack_direction+set}" = set; then
15538 echo $ECHO_N "(cached) $ECHO_C" >&6
15539 else
15540 if test "$cross_compiling" = yes; then
15541 ac_cv_c_stack_direction=0
15542 else
15543 cat >conftest.$ac_ext <<_ACEOF
15544 /* confdefs.h. */
15545 _ACEOF
15546 cat confdefs.h >>conftest.$ac_ext
15547 cat >>conftest.$ac_ext <<_ACEOF
15548 /* end confdefs.h. */
15550 find_stack_direction ()
15552 static char *addr = 0;
15553 auto char dummy;
15554 if (addr == 0)
15556 addr = &dummy;
15557 return find_stack_direction ();
15559 else
15560 return (&dummy > addr) ? 1 : -1;
15564 main ()
15566 exit (find_stack_direction () < 0);
15568 _ACEOF
15569 rm -f conftest$ac_exeext
15570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15571 (eval $ac_link) 2>&5
15572 ac_status=$?
15573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15576 (eval $ac_try) 2>&5
15577 ac_status=$?
15578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579 (exit $ac_status); }; }; then
15580 ac_cv_c_stack_direction=1
15581 else
15582 echo "$as_me: program exited with status $ac_status" >&5
15583 echo "$as_me: failed program was:" >&5
15584 sed 's/^/| /' conftest.$ac_ext >&5
15586 ( exit $ac_status )
15587 ac_cv_c_stack_direction=-1
15589 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15592 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15593 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
15595 cat >>confdefs.h <<_ACEOF
15596 #define STACK_DIRECTION $ac_cv_c_stack_direction
15597 _ACEOF
15602 if test x$gcc_no_link = xyes; then
15603 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
15604 ac_cv_func_mmap_fixed_mapped=no
15607 if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
15610 for ac_header in stdlib.h unistd.h
15612 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15614 echo "$as_me:$LINENO: checking for $ac_header" >&5
15615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15617 echo $ECHO_N "(cached) $ECHO_C" >&6
15619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15620 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15621 else
15622 # Is the header compilable?
15623 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15624 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15625 cat >conftest.$ac_ext <<_ACEOF
15626 /* confdefs.h. */
15627 _ACEOF
15628 cat confdefs.h >>conftest.$ac_ext
15629 cat >>conftest.$ac_ext <<_ACEOF
15630 /* end confdefs.h. */
15631 $ac_includes_default
15632 #include <$ac_header>
15633 _ACEOF
15634 rm -f conftest.$ac_objext
15635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15636 (eval $ac_compile) 2>conftest.er1
15637 ac_status=$?
15638 grep -v '^ *+' conftest.er1 >conftest.err
15639 rm -f conftest.er1
15640 cat conftest.err >&5
15641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642 (exit $ac_status); } &&
15643 { ac_try='test -z "$ac_c_werror_flag"
15644 || test ! -s conftest.err'
15645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15646 (eval $ac_try) 2>&5
15647 ac_status=$?
15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); }; } &&
15650 { ac_try='test -s conftest.$ac_objext'
15651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15652 (eval $ac_try) 2>&5
15653 ac_status=$?
15654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655 (exit $ac_status); }; }; then
15656 ac_header_compiler=yes
15657 else
15658 echo "$as_me: failed program was:" >&5
15659 sed 's/^/| /' conftest.$ac_ext >&5
15661 ac_header_compiler=no
15663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15664 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15665 echo "${ECHO_T}$ac_header_compiler" >&6
15667 # Is the header present?
15668 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15669 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15670 cat >conftest.$ac_ext <<_ACEOF
15671 /* confdefs.h. */
15672 _ACEOF
15673 cat confdefs.h >>conftest.$ac_ext
15674 cat >>conftest.$ac_ext <<_ACEOF
15675 /* end confdefs.h. */
15676 #include <$ac_header>
15677 _ACEOF
15678 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15679 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15680 ac_status=$?
15681 grep -v '^ *+' conftest.er1 >conftest.err
15682 rm -f conftest.er1
15683 cat conftest.err >&5
15684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685 (exit $ac_status); } >/dev/null; then
15686 if test -s conftest.err; then
15687 ac_cpp_err=$ac_c_preproc_warn_flag
15688 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15689 else
15690 ac_cpp_err=
15692 else
15693 ac_cpp_err=yes
15695 if test -z "$ac_cpp_err"; then
15696 ac_header_preproc=yes
15697 else
15698 echo "$as_me: failed program was:" >&5
15699 sed 's/^/| /' conftest.$ac_ext >&5
15701 ac_header_preproc=no
15703 rm -f conftest.err conftest.$ac_ext
15704 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15705 echo "${ECHO_T}$ac_header_preproc" >&6
15707 # So? What about this header?
15708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15709 yes:no: )
15710 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15711 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15713 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15714 ac_header_preproc=yes
15716 no:yes:* )
15717 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15718 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15719 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15720 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15721 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15722 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15723 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15724 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15726 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15727 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15728 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15730 cat <<\_ASBOX
15731 ## ---------------------------------- ##
15732 ## Report this to the libjava lists. ##
15733 ## ---------------------------------- ##
15734 _ASBOX
15736 sed "s/^/$as_me: WARNING: /" >&2
15738 esac
15739 echo "$as_me:$LINENO: checking for $ac_header" >&5
15740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15742 echo $ECHO_N "(cached) $ECHO_C" >&6
15743 else
15744 eval "$as_ac_Header=\$ac_header_preproc"
15746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15750 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15751 cat >>confdefs.h <<_ACEOF
15752 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15753 _ACEOF
15757 done
15760 for ac_func in getpagesize
15762 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15763 echo "$as_me:$LINENO: checking for $ac_func" >&5
15764 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15765 if eval "test \"\${$as_ac_var+set}\" = set"; then
15766 echo $ECHO_N "(cached) $ECHO_C" >&6
15767 else
15768 if test x$gcc_no_link = xyes; then
15769 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15770 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15771 { (exit 1); exit 1; }; }
15773 cat >conftest.$ac_ext <<_ACEOF
15774 /* confdefs.h. */
15775 _ACEOF
15776 cat confdefs.h >>conftest.$ac_ext
15777 cat >>conftest.$ac_ext <<_ACEOF
15778 /* end confdefs.h. */
15779 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15781 #define $ac_func innocuous_$ac_func
15783 /* System header to define __stub macros and hopefully few prototypes,
15784 which can conflict with char $ac_func (); below.
15785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15786 <limits.h> exists even on freestanding compilers. */
15788 #ifdef __STDC__
15789 # include <limits.h>
15790 #else
15791 # include <assert.h>
15792 #endif
15794 #undef $ac_func
15796 /* Override any gcc2 internal prototype to avoid an error. */
15797 #ifdef __cplusplus
15798 extern "C"
15800 #endif
15801 /* We use char because int might match the return type of a gcc2
15802 builtin and then its argument prototype would still apply. */
15803 char $ac_func ();
15804 /* The GNU C library defines this for functions which it implements
15805 to always fail with ENOSYS. Some functions are actually named
15806 something starting with __ and the normal name is an alias. */
15807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15808 choke me
15809 #else
15810 char (*f) () = $ac_func;
15811 #endif
15812 #ifdef __cplusplus
15814 #endif
15817 main ()
15819 return f != $ac_func;
15821 return 0;
15823 _ACEOF
15824 rm -f conftest.$ac_objext conftest$ac_exeext
15825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15826 (eval $ac_link) 2>conftest.er1
15827 ac_status=$?
15828 grep -v '^ *+' conftest.er1 >conftest.err
15829 rm -f conftest.er1
15830 cat conftest.err >&5
15831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832 (exit $ac_status); } &&
15833 { ac_try='test -z "$ac_c_werror_flag"
15834 || test ! -s conftest.err'
15835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15836 (eval $ac_try) 2>&5
15837 ac_status=$?
15838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839 (exit $ac_status); }; } &&
15840 { ac_try='test -s conftest$ac_exeext'
15841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15842 (eval $ac_try) 2>&5
15843 ac_status=$?
15844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); }; }; then
15846 eval "$as_ac_var=yes"
15847 else
15848 echo "$as_me: failed program was:" >&5
15849 sed 's/^/| /' conftest.$ac_ext >&5
15851 eval "$as_ac_var=no"
15853 rm -f conftest.err conftest.$ac_objext \
15854 conftest$ac_exeext conftest.$ac_ext
15856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15857 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15858 if test `eval echo '${'$as_ac_var'}'` = yes; then
15859 cat >>confdefs.h <<_ACEOF
15860 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15861 _ACEOF
15864 done
15866 echo "$as_me:$LINENO: checking for working mmap" >&5
15867 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
15868 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
15869 echo $ECHO_N "(cached) $ECHO_C" >&6
15870 else
15871 if test "$cross_compiling" = yes; then
15872 ac_cv_func_mmap_fixed_mapped=no
15873 else
15874 cat >conftest.$ac_ext <<_ACEOF
15875 /* confdefs.h. */
15876 _ACEOF
15877 cat confdefs.h >>conftest.$ac_ext
15878 cat >>conftest.$ac_ext <<_ACEOF
15879 /* end confdefs.h. */
15880 $ac_includes_default
15881 /* malloc might have been renamed as rpl_malloc. */
15882 #undef malloc
15884 /* Thanks to Mike Haertel and Jim Avera for this test.
15885 Here is a matrix of mmap possibilities:
15886 mmap private not fixed
15887 mmap private fixed at somewhere currently unmapped
15888 mmap private fixed at somewhere already mapped
15889 mmap shared not fixed
15890 mmap shared fixed at somewhere currently unmapped
15891 mmap shared fixed at somewhere already mapped
15892 For private mappings, we should verify that changes cannot be read()
15893 back from the file, nor mmap's back from the file at a different
15894 address. (There have been systems where private was not correctly
15895 implemented like the infamous i386 svr4.0, and systems where the
15896 VM page cache was not coherent with the file system buffer cache
15897 like early versions of FreeBSD and possibly contemporary NetBSD.)
15898 For shared mappings, we should conversely verify that changes get
15899 propagated back to all the places they're supposed to be.
15901 Grep wants private fixed already mapped.
15902 The main things grep needs to know about mmap are:
15903 * does it exist and is it safe to write into the mmap'd area
15904 * how to use it (BSD variants) */
15906 #include <fcntl.h>
15907 #include <sys/mman.h>
15909 #if !STDC_HEADERS && !HAVE_STDLIB_H
15910 char *malloc ();
15911 #endif
15913 /* This mess was copied from the GNU getpagesize.h. */
15914 #if !HAVE_GETPAGESIZE
15915 /* Assume that all systems that can run configure have sys/param.h. */
15916 # if !HAVE_SYS_PARAM_H
15917 # define HAVE_SYS_PARAM_H 1
15918 # endif
15920 # ifdef _SC_PAGESIZE
15921 # define getpagesize() sysconf(_SC_PAGESIZE)
15922 # else /* no _SC_PAGESIZE */
15923 # if HAVE_SYS_PARAM_H
15924 # include <sys/param.h>
15925 # ifdef EXEC_PAGESIZE
15926 # define getpagesize() EXEC_PAGESIZE
15927 # else /* no EXEC_PAGESIZE */
15928 # ifdef NBPG
15929 # define getpagesize() NBPG * CLSIZE
15930 # ifndef CLSIZE
15931 # define CLSIZE 1
15932 # endif /* no CLSIZE */
15933 # else /* no NBPG */
15934 # ifdef NBPC
15935 # define getpagesize() NBPC
15936 # else /* no NBPC */
15937 # ifdef PAGESIZE
15938 # define getpagesize() PAGESIZE
15939 # endif /* PAGESIZE */
15940 # endif /* no NBPC */
15941 # endif /* no NBPG */
15942 # endif /* no EXEC_PAGESIZE */
15943 # else /* no HAVE_SYS_PARAM_H */
15944 # define getpagesize() 8192 /* punt totally */
15945 # endif /* no HAVE_SYS_PARAM_H */
15946 # endif /* no _SC_PAGESIZE */
15948 #endif /* no HAVE_GETPAGESIZE */
15951 main ()
15953 char *data, *data2, *data3;
15954 int i, pagesize;
15955 int fd;
15957 pagesize = getpagesize ();
15959 /* First, make a file with some known garbage in it. */
15960 data = (char *) malloc (pagesize);
15961 if (!data)
15962 exit (1);
15963 for (i = 0; i < pagesize; ++i)
15964 *(data + i) = rand ();
15965 umask (0);
15966 fd = creat ("conftest.mmap", 0600);
15967 if (fd < 0)
15968 exit (1);
15969 if (write (fd, data, pagesize) != pagesize)
15970 exit (1);
15971 close (fd);
15973 /* Next, try to mmap the file at a fixed address which already has
15974 something else allocated at it. If we can, also make sure that
15975 we see the same garbage. */
15976 fd = open ("conftest.mmap", O_RDWR);
15977 if (fd < 0)
15978 exit (1);
15979 data2 = (char *) malloc (2 * pagesize);
15980 if (!data2)
15981 exit (1);
15982 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
15983 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15984 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15985 exit (1);
15986 for (i = 0; i < pagesize; ++i)
15987 if (*(data + i) != *(data2 + i))
15988 exit (1);
15990 /* Finally, make sure that changes to the mapped area do not
15991 percolate back to the file as seen by read(). (This is a bug on
15992 some variants of i386 svr4.0.) */
15993 for (i = 0; i < pagesize; ++i)
15994 *(data2 + i) = *(data2 + i) + 1;
15995 data3 = (char *) malloc (pagesize);
15996 if (!data3)
15997 exit (1);
15998 if (read (fd, data3, pagesize) != pagesize)
15999 exit (1);
16000 for (i = 0; i < pagesize; ++i)
16001 if (*(data + i) != *(data3 + i))
16002 exit (1);
16003 close (fd);
16004 exit (0);
16006 _ACEOF
16007 rm -f conftest$ac_exeext
16008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16009 (eval $ac_link) 2>&5
16010 ac_status=$?
16011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16014 (eval $ac_try) 2>&5
16015 ac_status=$?
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); }; }; then
16018 ac_cv_func_mmap_fixed_mapped=yes
16019 else
16020 echo "$as_me: program exited with status $ac_status" >&5
16021 echo "$as_me: failed program was:" >&5
16022 sed 's/^/| /' conftest.$ac_ext >&5
16024 ( exit $ac_status )
16025 ac_cv_func_mmap_fixed_mapped=no
16027 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16030 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16031 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
16032 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16034 cat >>confdefs.h <<\_ACEOF
16035 #define HAVE_MMAP 1
16036 _ACEOF
16039 rm -f conftest.mmap
16043 for ac_prog in perl
16045 # Extract the first word of "$ac_prog", so it can be a program name with args.
16046 set dummy $ac_prog; ac_word=$2
16047 echo "$as_me:$LINENO: checking for $ac_word" >&5
16048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16049 if test "${ac_cv_prog_PERL+set}" = set; then
16050 echo $ECHO_N "(cached) $ECHO_C" >&6
16051 else
16052 if test -n "$PERL"; then
16053 ac_cv_prog_PERL="$PERL" # Let the user override the test.
16054 else
16055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16056 for as_dir in $PATH
16058 IFS=$as_save_IFS
16059 test -z "$as_dir" && as_dir=.
16060 for ac_exec_ext in '' $ac_executable_extensions; do
16061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16062 ac_cv_prog_PERL="$ac_prog"
16063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16064 break 2
16066 done
16067 done
16071 PERL=$ac_cv_prog_PERL
16072 if test -n "$PERL"; then
16073 echo "$as_me:$LINENO: result: $PERL" >&5
16074 echo "${ECHO_T}$PERL" >&6
16075 else
16076 echo "$as_me:$LINENO: result: no" >&5
16077 echo "${ECHO_T}no" >&6
16080 test -n "$PERL" && break
16081 done
16082 test -n "$PERL" || PERL="false"
16085 SYSDEP_SOURCES=
16086 SIGNAL_HANDLER_AUX=
16088 case "${host}" in
16089 i?86-*-linux*)
16090 SIGNAL_HANDLER=include/i386-signal.h
16092 sparc*-sun-solaris*)
16093 SIGNAL_HANDLER=include/sparc-signal.h
16095 # ia64-*)
16096 # SYSDEP_SOURCES=sysdep/ia64.c
16097 # test -d sysdep || mkdir sysdep
16098 # ;;
16099 hppa*-*-linux*)
16100 SIGNAL_HANDLER=include/pa-signal.h
16102 ia64-*-linux*)
16103 SIGNAL_HANDLER=include/dwarf2-signal.h
16105 powerpc*-*-linux*)
16106 SIGNAL_HANDLER=include/powerpc-signal.h
16108 alpha*-*-linux*)
16109 SIGNAL_HANDLER=include/dwarf2-signal.h
16111 s390*-*-linux*)
16112 SIGNAL_HANDLER=include/s390-signal.h
16114 x86_64*-*-linux*)
16115 SIGNAL_HANDLER=include/x86_64-signal.h
16116 SIGNAL_HANDLER_AUX=include/i386-signal.h
16118 sparc*-*-linux*)
16119 SIGNAL_HANDLER=include/dwarf2-signal.h
16121 sh*-*-linux*)
16122 SIGNAL_HANDLER=include/sh-signal.h
16124 *mingw*)
16125 SIGNAL_HANDLER=include/win32-signal.h
16127 mips*-*-linux*)
16128 SIGNAL_HANDLER=include/mips-signal.h
16130 *-*-darwin*)
16131 SIGNAL_HANDLER=include/darwin-signal.h
16134 SIGNAL_HANDLER=include/default-signal.h
16136 esac
16138 # If we're using sjlj exceptions, forget what we just learned.
16139 if test "$enable_sjlj_exceptions" = yes; then
16140 SIGNAL_HANDLER=include/default-signal.h
16141 SIGNAL_HANDLER_AUX=
16146 if test -z "$SIGNAL_HANDLER_AUX"; then
16147 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
16150 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
16153 if test "${multilib}" = "yes"; then
16154 multilib_arg="--enable-multilib"
16155 else
16156 multilib_arg=
16161 here=`${PWDCMD-pwd}`
16164 # We get this from the environment.
16167 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"
16170 ac_config_commands="$ac_config_commands default"
16173 cat >confcache <<\_ACEOF
16174 # This file is a shell script that caches the results of configure
16175 # tests run on this system so they can be shared between configure
16176 # scripts and configure runs, see configure's option --config-cache.
16177 # It is not useful on other systems. If it contains results you don't
16178 # want to keep, you may remove or edit it.
16180 # config.status only pays attention to the cache file if you give it
16181 # the --recheck option to rerun configure.
16183 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16184 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16185 # following values.
16187 _ACEOF
16189 # The following way of writing the cache mishandles newlines in values,
16190 # but we know of no workaround that is simple, portable, and efficient.
16191 # So, don't put newlines in cache variables' values.
16192 # Ultrix sh set writes to stderr and can't be redirected directly,
16193 # and sets the high bit in the cache file unless we assign to the vars.
16195 (set) 2>&1 |
16196 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16197 *ac_space=\ *)
16198 # `set' does not quote correctly, so add quotes (double-quote
16199 # substitution turns \\\\ into \\, and sed turns \\ into \).
16200 sed -n \
16201 "s/'/'\\\\''/g;
16202 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16205 # `set' quotes correctly as required by POSIX, so do not add quotes.
16206 sed -n \
16207 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16209 esac;
16211 sed '
16212 t clear
16213 : clear
16214 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16215 t end
16216 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16217 : end' >>confcache
16218 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16219 if test -w $cache_file; then
16220 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16221 cat confcache >$cache_file
16222 else
16223 echo "not updating unwritable cache $cache_file"
16226 rm -f confcache
16228 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16229 # Let make expand exec_prefix.
16230 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16232 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16233 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16234 # trailing colons and then remove the whole line if VPATH becomes empty
16235 # (actually we leave an empty line to preserve line numbers).
16236 if test "x$srcdir" = x.; then
16237 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16238 s/:*\$(srcdir):*/:/;
16239 s/:*\${srcdir}:*/:/;
16240 s/:*@srcdir@:*/:/;
16241 s/^\([^=]*=[ ]*\):*/\1/;
16242 s/:*$//;
16243 s/^[^=]*=[ ]*$//;
16247 DEFS=-DHAVE_CONFIG_H
16249 ac_libobjs=
16250 ac_ltlibobjs=
16251 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16252 # 1. Remove the extension, and $U if already installed.
16253 ac_i=`echo "$ac_i" |
16254 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16255 # 2. Add them.
16256 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16257 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16258 done
16259 LIBOBJS=$ac_libobjs
16261 LTLIBOBJS=$ac_ltlibobjs
16264 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16265 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16266 Usually this means the macro was only invoked conditionally." >&5
16267 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16268 Usually this means the macro was only invoked conditionally." >&2;}
16269 { (exit 1); exit 1; }; }
16271 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16272 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16273 Usually this means the macro was only invoked conditionally." >&5
16274 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16275 Usually this means the macro was only invoked conditionally." >&2;}
16276 { (exit 1); exit 1; }; }
16278 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16279 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16280 Usually this means the macro was only invoked conditionally." >&5
16281 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16282 Usually this means the macro was only invoked conditionally." >&2;}
16283 { (exit 1); exit 1; }; }
16285 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16286 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16287 Usually this means the macro was only invoked conditionally." >&5
16288 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16289 Usually this means the macro was only invoked conditionally." >&2;}
16290 { (exit 1); exit 1; }; }
16292 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
16293 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
16294 Usually this means the macro was only invoked conditionally." >&5
16295 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
16296 Usually this means the macro was only invoked conditionally." >&2;}
16297 { (exit 1); exit 1; }; }
16299 if test -z "${GTK_AWT_TRUE}" && test -z "${GTK_AWT_FALSE}"; then
16300 { { echo "$as_me:$LINENO: error: conditional \"GTK_AWT\" was never defined.
16301 Usually this means the macro was only invoked conditionally." >&5
16302 echo "$as_me: error: conditional \"GTK_AWT\" was never defined.
16303 Usually this means the macro was only invoked conditionally." >&2;}
16304 { (exit 1); exit 1; }; }
16306 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
16307 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
16308 Usually this means the macro was only invoked conditionally." >&5
16309 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
16310 Usually this means the macro was only invoked conditionally." >&2;}
16311 { (exit 1); exit 1; }; }
16313 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
16314 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
16315 Usually this means the macro was only invoked conditionally." >&5
16316 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
16317 Usually this means the macro was only invoked conditionally." >&2;}
16318 { (exit 1); exit 1; }; }
16320 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
16321 { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
16322 Usually this means the macro was only invoked conditionally." >&5
16323 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
16324 Usually this means the macro was only invoked conditionally." >&2;}
16325 { (exit 1); exit 1; }; }
16327 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
16328 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16329 Usually this means the macro was only invoked conditionally." >&5
16330 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16331 Usually this means the macro was only invoked conditionally." >&2;}
16332 { (exit 1); exit 1; }; }
16334 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
16335 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16336 Usually this means the macro was only invoked conditionally." >&5
16337 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16338 Usually this means the macro was only invoked conditionally." >&2;}
16339 { (exit 1); exit 1; }; }
16341 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
16342 { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
16343 Usually this means the macro was only invoked conditionally." >&5
16344 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
16345 Usually this means the macro was only invoked conditionally." >&2;}
16346 { (exit 1); exit 1; }; }
16348 if test -z "${GTK_CAIRO_TRUE}" && test -z "${GTK_CAIRO_FALSE}"; then
16349 { { echo "$as_me:$LINENO: error: conditional \"GTK_CAIRO\" was never defined.
16350 Usually this means the macro was only invoked conditionally." >&5
16351 echo "$as_me: error: conditional \"GTK_CAIRO\" was never defined.
16352 Usually this means the macro was only invoked conditionally." >&2;}
16353 { (exit 1); exit 1; }; }
16355 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
16356 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
16357 Usually this means the macro was only invoked conditionally." >&5
16358 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
16359 Usually this means the macro was only invoked conditionally." >&2;}
16360 { (exit 1); exit 1; }; }
16362 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
16363 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
16364 Usually this means the macro was only invoked conditionally." >&5
16365 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
16366 Usually this means the macro was only invoked conditionally." >&2;}
16367 { (exit 1); exit 1; }; }
16369 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
16370 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
16371 Usually this means the macro was only invoked conditionally." >&5
16372 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
16373 Usually this means the macro was only invoked conditionally." >&2;}
16374 { (exit 1); exit 1; }; }
16376 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
16377 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
16378 Usually this means the macro was only invoked conditionally." >&5
16379 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
16380 Usually this means the macro was only invoked conditionally." >&2;}
16381 { (exit 1); exit 1; }; }
16383 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
16384 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
16385 Usually this means the macro was only invoked conditionally." >&5
16386 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
16387 Usually this means the macro was only invoked conditionally." >&2;}
16388 { (exit 1); exit 1; }; }
16390 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
16391 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
16392 Usually this means the macro was only invoked conditionally." >&5
16393 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
16394 Usually this means the macro was only invoked conditionally." >&2;}
16395 { (exit 1); exit 1; }; }
16397 if test -z "${SUPPLY_BACKTRACE_TRUE}" && test -z "${SUPPLY_BACKTRACE_FALSE}"; then
16398 { { echo "$as_me:$LINENO: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
16399 Usually this means the macro was only invoked conditionally." >&5
16400 echo "$as_me: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
16401 Usually this means the macro was only invoked conditionally." >&2;}
16402 { (exit 1); exit 1; }; }
16404 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
16405 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
16406 Usually this means the macro was only invoked conditionally." >&5
16407 echo "$as_me: error: conditional \"NATIVE\" was never defined.
16408 Usually this means the macro was only invoked conditionally." >&2;}
16409 { (exit 1); exit 1; }; }
16411 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
16412 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
16413 Usually this means the macro was only invoked conditionally." >&5
16414 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
16415 Usually this means the macro was only invoked conditionally." >&2;}
16416 { (exit 1); exit 1; }; }
16419 : ${CONFIG_STATUS=./config.status}
16420 ac_clean_files_save=$ac_clean_files
16421 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16422 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16423 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16424 cat >$CONFIG_STATUS <<_ACEOF
16425 #! $SHELL
16426 # Generated by $as_me.
16427 # Run this file to recreate the current configuration.
16428 # Compiler output produced by configure, useful for debugging
16429 # configure, is in config.log if it exists.
16431 debug=false
16432 ac_cs_recheck=false
16433 ac_cs_silent=false
16434 SHELL=\${CONFIG_SHELL-$SHELL}
16435 _ACEOF
16437 cat >>$CONFIG_STATUS <<\_ACEOF
16438 ## --------------------- ##
16439 ## M4sh Initialization. ##
16440 ## --------------------- ##
16442 # Be Bourne compatible
16443 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16444 emulate sh
16445 NULLCMD=:
16446 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16447 # is contrary to our usage. Disable this feature.
16448 alias -g '${1+"$@"}'='"$@"'
16449 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16450 set -o posix
16452 DUALCASE=1; export DUALCASE # for MKS sh
16454 # Support unset when possible.
16455 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16456 as_unset=unset
16457 else
16458 as_unset=false
16462 # Work around bugs in pre-3.0 UWIN ksh.
16463 $as_unset ENV MAIL MAILPATH
16464 PS1='$ '
16465 PS2='> '
16466 PS4='+ '
16468 # NLS nuisances.
16469 for as_var in \
16470 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16471 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16472 LC_TELEPHONE LC_TIME
16474 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16475 eval $as_var=C; export $as_var
16476 else
16477 $as_unset $as_var
16479 done
16481 # Required to use basename.
16482 if expr a : '\(a\)' >/dev/null 2>&1; then
16483 as_expr=expr
16484 else
16485 as_expr=false
16488 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16489 as_basename=basename
16490 else
16491 as_basename=false
16495 # Name of the executable.
16496 as_me=`$as_basename "$0" ||
16497 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16498 X"$0" : 'X\(//\)$' \| \
16499 X"$0" : 'X\(/\)$' \| \
16500 . : '\(.\)' 2>/dev/null ||
16501 echo X/"$0" |
16502 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16503 /^X\/\(\/\/\)$/{ s//\1/; q; }
16504 /^X\/\(\/\).*/{ s//\1/; q; }
16505 s/.*/./; q'`
16508 # PATH needs CR, and LINENO needs CR and PATH.
16509 # Avoid depending upon Character Ranges.
16510 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16511 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16512 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16513 as_cr_digits='0123456789'
16514 as_cr_alnum=$as_cr_Letters$as_cr_digits
16516 # The user is always right.
16517 if test "${PATH_SEPARATOR+set}" != set; then
16518 echo "#! /bin/sh" >conf$$.sh
16519 echo "exit 0" >>conf$$.sh
16520 chmod +x conf$$.sh
16521 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16522 PATH_SEPARATOR=';'
16523 else
16524 PATH_SEPARATOR=:
16526 rm -f conf$$.sh
16530 as_lineno_1=$LINENO
16531 as_lineno_2=$LINENO
16532 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16533 test "x$as_lineno_1" != "x$as_lineno_2" &&
16534 test "x$as_lineno_3" = "x$as_lineno_2" || {
16535 # Find who we are. Look in the path if we contain no path at all
16536 # relative or not.
16537 case $0 in
16538 *[\\/]* ) as_myself=$0 ;;
16539 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16540 for as_dir in $PATH
16542 IFS=$as_save_IFS
16543 test -z "$as_dir" && as_dir=.
16544 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16545 done
16548 esac
16549 # We did not find ourselves, most probably we were run as `sh COMMAND'
16550 # in which case we are not to be found in the path.
16551 if test "x$as_myself" = x; then
16552 as_myself=$0
16554 if test ! -f "$as_myself"; then
16555 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16556 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16557 { (exit 1); exit 1; }; }
16559 case $CONFIG_SHELL in
16561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16562 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16564 IFS=$as_save_IFS
16565 test -z "$as_dir" && as_dir=.
16566 for as_base in sh bash ksh sh5; do
16567 case $as_dir in
16569 if ("$as_dir/$as_base" -c '
16570 as_lineno_1=$LINENO
16571 as_lineno_2=$LINENO
16572 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16573 test "x$as_lineno_1" != "x$as_lineno_2" &&
16574 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16575 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16576 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16577 CONFIG_SHELL=$as_dir/$as_base
16578 export CONFIG_SHELL
16579 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16580 fi;;
16581 esac
16582 done
16583 done
16585 esac
16587 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16588 # uniformly replaced by the line number. The first 'sed' inserts a
16589 # line-number line before each line; the second 'sed' does the real
16590 # work. The second script uses 'N' to pair each line-number line
16591 # with the numbered line, and appends trailing '-' during
16592 # substitution so that $LINENO is not a special case at line end.
16593 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16594 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16595 sed '=' <$as_myself |
16596 sed '
16598 s,$,-,
16599 : loop
16600 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16601 t loop
16602 s,-$,,
16603 s,^['$as_cr_digits']*\n,,
16604 ' >$as_me.lineno &&
16605 chmod +x $as_me.lineno ||
16606 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16607 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16608 { (exit 1); exit 1; }; }
16610 # Don't try to exec as it changes $[0], causing all sort of problems
16611 # (the dirname of $[0] is not the place where we might find the
16612 # original and so on. Autoconf is especially sensible to this).
16613 . ./$as_me.lineno
16614 # Exit status is that of the last command.
16615 exit
16619 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16620 *c*,-n*) ECHO_N= ECHO_C='
16621 ' ECHO_T=' ' ;;
16622 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16623 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16624 esac
16626 if expr a : '\(a\)' >/dev/null 2>&1; then
16627 as_expr=expr
16628 else
16629 as_expr=false
16632 rm -f conf$$ conf$$.exe conf$$.file
16633 echo >conf$$.file
16634 if ln -s conf$$.file conf$$ 2>/dev/null; then
16635 # We could just check for DJGPP; but this test a) works b) is more generic
16636 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16637 if test -f conf$$.exe; then
16638 # Don't use ln at all; we don't have any links
16639 as_ln_s='cp -p'
16640 else
16641 as_ln_s='ln -s'
16643 elif ln conf$$.file conf$$ 2>/dev/null; then
16644 as_ln_s=ln
16645 else
16646 as_ln_s='cp -p'
16648 rm -f conf$$ conf$$.exe conf$$.file
16650 if mkdir -p . 2>/dev/null; then
16651 as_mkdir_p=:
16652 else
16653 test -d ./-p && rmdir ./-p
16654 as_mkdir_p=false
16657 as_executable_p="test -f"
16659 # Sed expression to map a string onto a valid CPP name.
16660 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16662 # Sed expression to map a string onto a valid variable name.
16663 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16666 # IFS
16667 # We need space, tab and new line, in precisely that order.
16668 as_nl='
16670 IFS=" $as_nl"
16672 # CDPATH.
16673 $as_unset CDPATH
16675 exec 6>&1
16677 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16678 # report actual input values of CONFIG_FILES etc. instead of their
16679 # values after options handling. Logging --version etc. is OK.
16680 exec 5>>config.log
16682 echo
16683 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16684 ## Running $as_me. ##
16685 _ASBOX
16686 } >&5
16687 cat >&5 <<_CSEOF
16689 This file was extended by libjava $as_me version-unused, which was
16690 generated by GNU Autoconf 2.59. Invocation command line was
16692 CONFIG_FILES = $CONFIG_FILES
16693 CONFIG_HEADERS = $CONFIG_HEADERS
16694 CONFIG_LINKS = $CONFIG_LINKS
16695 CONFIG_COMMANDS = $CONFIG_COMMANDS
16696 $ $0 $@
16698 _CSEOF
16699 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16700 echo >&5
16701 _ACEOF
16703 # Files that config.status was made for.
16704 if test -n "$ac_config_files"; then
16705 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16708 if test -n "$ac_config_headers"; then
16709 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16712 if test -n "$ac_config_links"; then
16713 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16716 if test -n "$ac_config_commands"; then
16717 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16720 cat >>$CONFIG_STATUS <<\_ACEOF
16722 ac_cs_usage="\
16723 \`$as_me' instantiates files from templates according to the
16724 current configuration.
16726 Usage: $0 [OPTIONS] [FILE]...
16728 -h, --help print this help, then exit
16729 -V, --version print version number, then exit
16730 -q, --quiet do not print progress messages
16731 -d, --debug don't remove temporary files
16732 --recheck update $as_me by reconfiguring in the same conditions
16733 --file=FILE[:TEMPLATE]
16734 instantiate the configuration file FILE
16735 --header=FILE[:TEMPLATE]
16736 instantiate the configuration header FILE
16738 Configuration files:
16739 $config_files
16741 Configuration headers:
16742 $config_headers
16744 Configuration links:
16745 $config_links
16747 Configuration commands:
16748 $config_commands
16750 Report bugs to <bug-autoconf@gnu.org>."
16751 _ACEOF
16753 cat >>$CONFIG_STATUS <<_ACEOF
16754 ac_cs_version="\\
16755 libjava config.status version-unused
16756 configured by $0, generated by GNU Autoconf 2.59,
16757 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16759 Copyright (C) 2003 Free Software Foundation, Inc.
16760 This config.status script is free software; the Free Software Foundation
16761 gives unlimited permission to copy, distribute and modify it."
16762 srcdir=$srcdir
16763 INSTALL="$INSTALL"
16764 _ACEOF
16766 cat >>$CONFIG_STATUS <<\_ACEOF
16767 # If no file are specified by the user, then we need to provide default
16768 # value. By we need to know if files were specified by the user.
16769 ac_need_defaults=:
16770 while test $# != 0
16772 case $1 in
16773 --*=*)
16774 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16775 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16776 ac_shift=:
16779 ac_option=$1
16780 ac_optarg=$2
16781 ac_shift=shift
16783 *) # This is not an option, so the user has probably given explicit
16784 # arguments.
16785 ac_option=$1
16786 ac_need_defaults=false;;
16787 esac
16789 case $ac_option in
16790 # Handling of the options.
16791 _ACEOF
16792 cat >>$CONFIG_STATUS <<\_ACEOF
16793 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16794 ac_cs_recheck=: ;;
16795 --version | --vers* | -V )
16796 echo "$ac_cs_version"; exit 0 ;;
16797 --he | --h)
16798 # Conflict between --help and --header
16799 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16800 Try \`$0 --help' for more information." >&5
16801 echo "$as_me: error: ambiguous option: $1
16802 Try \`$0 --help' for more information." >&2;}
16803 { (exit 1); exit 1; }; };;
16804 --help | --hel | -h )
16805 echo "$ac_cs_usage"; exit 0 ;;
16806 --debug | --d* | -d )
16807 debug=: ;;
16808 --file | --fil | --fi | --f )
16809 $ac_shift
16810 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16811 ac_need_defaults=false;;
16812 --header | --heade | --head | --hea )
16813 $ac_shift
16814 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16815 ac_need_defaults=false;;
16816 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16817 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16818 ac_cs_silent=: ;;
16820 # This is an error.
16821 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16822 Try \`$0 --help' for more information." >&5
16823 echo "$as_me: error: unrecognized option: $1
16824 Try \`$0 --help' for more information." >&2;}
16825 { (exit 1); exit 1; }; } ;;
16827 *) ac_config_targets="$ac_config_targets $1" ;;
16829 esac
16830 shift
16831 done
16833 ac_configure_extra_args=
16835 if $ac_cs_silent; then
16836 exec 6>/dev/null
16837 ac_configure_extra_args="$ac_configure_extra_args --silent"
16840 _ACEOF
16841 cat >>$CONFIG_STATUS <<_ACEOF
16842 if \$ac_cs_recheck; then
16843 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16844 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16847 _ACEOF
16849 cat >>$CONFIG_STATUS <<_ACEOF
16851 # INIT-COMMANDS section.
16854 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16855 srcdir=${srcdir}
16856 host=${host}
16857 target=${target}
16858 with_multisubdir=${with_multisubdir}
16859 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16860 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16861 libgcj_basedir=${libgcj_basedir}
16862 CC="${CC}"
16863 CXX="${CXX}"
16864 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
16867 _ACEOF
16871 cat >>$CONFIG_STATUS <<\_ACEOF
16872 for ac_config_target in $ac_config_targets
16874 case "$ac_config_target" in
16875 # Handling of arguments.
16876 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16877 "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
16878 "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
16879 "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
16880 "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
16881 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16882 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16883 "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
16884 "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
16885 "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
16886 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
16887 "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
16888 "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
16889 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
16890 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
16891 "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
16892 "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
16893 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
16894 "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
16895 "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
16896 "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
16897 "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
16898 "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
16899 "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
16900 "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
16901 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16902 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16903 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16904 "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
16905 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16906 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16907 { (exit 1); exit 1; }; };;
16908 esac
16909 done
16911 # If the user did not use the arguments to specify the items to instantiate,
16912 # then the envvar interface is used. Set only those that are not.
16913 # We use the long form for the default assignment because of an extremely
16914 # bizarre bug on SunOS 4.1.3.
16915 if $ac_need_defaults; then
16916 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16917 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16918 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16919 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16922 # Have a temporary directory for convenience. Make it in the build tree
16923 # simply because there is no reason to put it here, and in addition,
16924 # creating and moving files from /tmp can sometimes cause problems.
16925 # Create a temporary directory, and hook for its removal unless debugging.
16926 $debug ||
16928 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16929 trap '{ (exit 1); exit 1; }' 1 2 13 15
16932 # Create a (secure) tmp directory for tmp files.
16935 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16936 test -n "$tmp" && test -d "$tmp"
16937 } ||
16939 tmp=./confstat$$-$RANDOM
16940 (umask 077 && mkdir $tmp)
16941 } ||
16943 echo "$me: cannot create a temporary directory in ." >&2
16944 { (exit 1); exit 1; }
16947 _ACEOF
16949 cat >>$CONFIG_STATUS <<_ACEOF
16952 # CONFIG_FILES section.
16955 # No need to generate the scripts if there are no CONFIG_FILES.
16956 # This happens for instance when ./config.status config.h
16957 if test -n "\$CONFIG_FILES"; then
16958 # Protect against being on the right side of a sed subst in config.status.
16959 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16960 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16961 s,@SHELL@,$SHELL,;t t
16962 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16963 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16964 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16965 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16966 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16967 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16968 s,@exec_prefix@,$exec_prefix,;t t
16969 s,@prefix@,$prefix,;t t
16970 s,@program_transform_name@,$program_transform_name,;t t
16971 s,@bindir@,$bindir,;t t
16972 s,@sbindir@,$sbindir,;t t
16973 s,@libexecdir@,$libexecdir,;t t
16974 s,@datadir@,$datadir,;t t
16975 s,@sysconfdir@,$sysconfdir,;t t
16976 s,@sharedstatedir@,$sharedstatedir,;t t
16977 s,@localstatedir@,$localstatedir,;t t
16978 s,@libdir@,$libdir,;t t
16979 s,@includedir@,$includedir,;t t
16980 s,@oldincludedir@,$oldincludedir,;t t
16981 s,@infodir@,$infodir,;t t
16982 s,@mandir@,$mandir,;t t
16983 s,@build_alias@,$build_alias,;t t
16984 s,@host_alias@,$host_alias,;t t
16985 s,@target_alias@,$target_alias,;t t
16986 s,@DEFS@,$DEFS,;t t
16987 s,@ECHO_C@,$ECHO_C,;t t
16988 s,@ECHO_N@,$ECHO_N,;t t
16989 s,@ECHO_T@,$ECHO_T,;t t
16990 s,@LIBS@,$LIBS,;t t
16991 s,@build@,$build,;t t
16992 s,@build_cpu@,$build_cpu,;t t
16993 s,@build_vendor@,$build_vendor,;t t
16994 s,@build_os@,$build_os,;t t
16995 s,@build_subdir@,$build_subdir,;t t
16996 s,@host_subdir@,$host_subdir,;t t
16997 s,@target_subdir@,$target_subdir,;t t
16998 s,@libgcj_basedir@,$libgcj_basedir,;t t
16999 s,@host@,$host,;t t
17000 s,@host_cpu@,$host_cpu,;t t
17001 s,@host_vendor@,$host_vendor,;t t
17002 s,@host_os@,$host_os,;t t
17003 s,@target@,$target,;t t
17004 s,@target_cpu@,$target_cpu,;t t
17005 s,@target_vendor@,$target_vendor,;t t
17006 s,@target_os@,$target_os,;t t
17007 s,@target_noncanonical@,$target_noncanonical,;t t
17008 s,@LN_S@,$LN_S,;t t
17009 s,@mkinstalldirs@,$mkinstalldirs,;t t
17010 s,@CC@,$CC,;t t
17011 s,@ac_ct_CC@,$ac_ct_CC,;t t
17012 s,@EXEEXT@,$EXEEXT,;t t
17013 s,@OBJEXT@,$OBJEXT,;t t
17014 s,@CXX@,$CXX,;t t
17015 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17016 s,@CFLAGS@,$CFLAGS,;t t
17017 s,@CXXFLAGS@,$CXXFLAGS,;t t
17018 s,@LDFLAGS@,$LDFLAGS,;t t
17019 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17020 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17021 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17022 s,@CYGPATH_W@,$CYGPATH_W,;t t
17023 s,@PACKAGE@,$PACKAGE,;t t
17024 s,@VERSION@,$VERSION,;t t
17025 s,@ACLOCAL@,$ACLOCAL,;t t
17026 s,@AUTOCONF@,$AUTOCONF,;t t
17027 s,@AUTOMAKE@,$AUTOMAKE,;t t
17028 s,@AUTOHEADER@,$AUTOHEADER,;t t
17029 s,@MAKEINFO@,$MAKEINFO,;t t
17030 s,@install_sh@,$install_sh,;t t
17031 s,@STRIP@,$STRIP,;t t
17032 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17033 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17034 s,@mkdir_p@,$mkdir_p,;t t
17035 s,@AWK@,$AWK,;t t
17036 s,@SET_MAKE@,$SET_MAKE,;t t
17037 s,@am__leading_dot@,$am__leading_dot,;t t
17038 s,@AMTAR@,$AMTAR,;t t
17039 s,@am__tar@,$am__tar,;t t
17040 s,@am__untar@,$am__untar,;t t
17041 s,@DEPDIR@,$DEPDIR,;t t
17042 s,@am__include@,$am__include,;t t
17043 s,@am__quote@,$am__quote,;t t
17044 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17045 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17046 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17047 s,@CCDEPMODE@,$CCDEPMODE,;t t
17048 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17049 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17050 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17051 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17052 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17053 s,@AS@,$AS,;t t
17054 s,@ac_ct_AS@,$ac_ct_AS,;t t
17055 s,@AR@,$AR,;t t
17056 s,@ac_ct_AR@,$ac_ct_AR,;t t
17057 s,@RANLIB@,$RANLIB,;t t
17058 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17059 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17060 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17061 s,@MAINT@,$MAINT,;t t
17062 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
17063 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
17064 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
17065 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
17066 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
17067 s,@TOOLKIT@,$TOOLKIT,;t t
17068 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
17069 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
17070 s,@GTK_AWT_TRUE@,$GTK_AWT_TRUE,;t t
17071 s,@GTK_AWT_FALSE@,$GTK_AWT_FALSE,;t t
17072 s,@GCJH@,$GCJH,;t t
17073 s,@ZIP@,$ZIP,;t t
17074 s,@INCLTDL@,$INCLTDL,;t t
17075 s,@LIBLTDL@,$LIBLTDL,;t t
17076 s,@DIRLTDL@,$DIRLTDL,;t t
17077 s,@LIBTOOL@,$LIBTOOL,;t t
17078 s,@CXXCPP@,$CXXCPP,;t t
17079 s,@CPPFLAGS@,$CPPFLAGS,;t t
17080 s,@GCJ@,$GCJ,;t t
17081 s,@GCJFLAGS@,$GCJFLAGS,;t t
17082 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
17083 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
17084 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
17085 s,@subdirs@,$subdirs,;t t
17086 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
17087 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
17088 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
17089 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
17090 s,@JAVA_HOME@,$JAVA_HOME,;t t
17091 s,@INTERPRETER@,$INTERPRETER,;t t
17092 s,@LIBFFI@,$LIBFFI,;t t
17093 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
17094 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
17095 s,@CPP@,$CPP,;t t
17096 s,@EGREP@,$EGREP,;t t
17097 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
17098 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
17099 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
17100 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
17101 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
17102 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
17103 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
17104 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
17105 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
17106 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
17107 s,@X_CFLAGS@,$X_CFLAGS,;t t
17108 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17109 s,@X_LIBS@,$X_LIBS,;t t
17110 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17111 s,@GTK_CAIRO_TRUE@,$GTK_CAIRO_TRUE,;t t
17112 s,@GTK_CAIRO_FALSE@,$GTK_CAIRO_FALSE,;t t
17113 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
17114 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
17115 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
17116 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
17117 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
17118 s,@GCLIBS@,$GCLIBS,;t t
17119 s,@GCINCS@,$GCINCS,;t t
17120 s,@GCDEPS@,$GCDEPS,;t t
17121 s,@GCSPEC@,$GCSPEC,;t t
17122 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
17123 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
17124 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
17125 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
17126 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
17127 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
17128 s,@THREADLIBS@,$THREADLIBS,;t t
17129 s,@THREADINCS@,$THREADINCS,;t t
17130 s,@THREADDEPS@,$THREADDEPS,;t t
17131 s,@THREADSPEC@,$THREADSPEC,;t t
17132 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
17133 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
17134 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
17135 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
17136 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
17137 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
17138 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
17139 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
17140 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
17141 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
17142 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
17143 s,@LIBICONV@,$LIBICONV,;t t
17144 s,@LTLIBICONV@,$LTLIBICONV,;t t
17145 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
17146 s,@GTK_LIBS@,$GTK_LIBS,;t t
17147 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
17148 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
17149 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
17150 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
17151 s,@SUPPLY_BACKTRACE_TRUE@,$SUPPLY_BACKTRACE_TRUE,;t t
17152 s,@SUPPLY_BACKTRACE_FALSE@,$SUPPLY_BACKTRACE_FALSE,;t t
17153 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
17154 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
17155 s,@ZLIBS@,$ZLIBS,;t t
17156 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
17157 s,@ZINCS@,$ZINCS,;t t
17158 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
17159 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
17160 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
17161 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
17162 s,@IEEESPEC@,$IEEESPEC,;t t
17163 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
17164 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
17165 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
17166 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
17167 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
17168 s,@toolexecdir@,$toolexecdir,;t t
17169 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
17170 s,@toolexeclibdir@,$toolexeclibdir,;t t
17171 s,@GCJVERSION@,$GCJVERSION,;t t
17172 s,@gxx_include_dir@,$gxx_include_dir,;t t
17173 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
17174 s,@ALLOCA@,$ALLOCA,;t t
17175 s,@PERL@,$PERL,;t t
17176 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
17177 s,@here@,$here,;t t
17178 s,@LIBOBJS@,$LIBOBJS,;t t
17179 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17180 CEOF
17182 _ACEOF
17184 cat >>$CONFIG_STATUS <<\_ACEOF
17185 # Split the substitutions into bite-sized pieces for seds with
17186 # small command number limits, like on Digital OSF/1 and HP-UX.
17187 ac_max_sed_lines=48
17188 ac_sed_frag=1 # Number of current file.
17189 ac_beg=1 # First line for current file.
17190 ac_end=$ac_max_sed_lines # Line after last line for current file.
17191 ac_more_lines=:
17192 ac_sed_cmds=
17193 while $ac_more_lines; do
17194 if test $ac_beg -gt 1; then
17195 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17196 else
17197 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17199 if test ! -s $tmp/subs.frag; then
17200 ac_more_lines=false
17201 else
17202 # The purpose of the label and of the branching condition is to
17203 # speed up the sed processing (if there are no `@' at all, there
17204 # is no need to browse any of the substitutions).
17205 # These are the two extra sed commands mentioned above.
17206 (echo ':t
17207 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17208 if test -z "$ac_sed_cmds"; then
17209 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17210 else
17211 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17213 ac_sed_frag=`expr $ac_sed_frag + 1`
17214 ac_beg=$ac_end
17215 ac_end=`expr $ac_end + $ac_max_sed_lines`
17217 done
17218 if test -z "$ac_sed_cmds"; then
17219 ac_sed_cmds=cat
17221 fi # test -n "$CONFIG_FILES"
17223 _ACEOF
17224 cat >>$CONFIG_STATUS <<\_ACEOF
17225 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17226 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17227 case $ac_file in
17228 - | *:- | *:-:* ) # input from stdin
17229 cat >$tmp/stdin
17230 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17231 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17232 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17233 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17234 * ) ac_file_in=$ac_file.in ;;
17235 esac
17237 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17238 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17239 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17240 X"$ac_file" : 'X\(//\)[^/]' \| \
17241 X"$ac_file" : 'X\(//\)$' \| \
17242 X"$ac_file" : 'X\(/\)' \| \
17243 . : '\(.\)' 2>/dev/null ||
17244 echo X"$ac_file" |
17245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17246 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17247 /^X\(\/\/\)$/{ s//\1/; q; }
17248 /^X\(\/\).*/{ s//\1/; q; }
17249 s/.*/./; q'`
17250 { if $as_mkdir_p; then
17251 mkdir -p "$ac_dir"
17252 else
17253 as_dir="$ac_dir"
17254 as_dirs=
17255 while test ! -d "$as_dir"; do
17256 as_dirs="$as_dir $as_dirs"
17257 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17258 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17259 X"$as_dir" : 'X\(//\)[^/]' \| \
17260 X"$as_dir" : 'X\(//\)$' \| \
17261 X"$as_dir" : 'X\(/\)' \| \
17262 . : '\(.\)' 2>/dev/null ||
17263 echo X"$as_dir" |
17264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17265 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17266 /^X\(\/\/\)$/{ s//\1/; q; }
17267 /^X\(\/\).*/{ s//\1/; q; }
17268 s/.*/./; q'`
17269 done
17270 test ! -n "$as_dirs" || mkdir $as_dirs
17271 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17272 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17273 { (exit 1); exit 1; }; }; }
17275 ac_builddir=.
17277 if test "$ac_dir" != .; then
17278 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17279 # A "../" for each directory in $ac_dir_suffix.
17280 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17281 else
17282 ac_dir_suffix= ac_top_builddir=
17285 case $srcdir in
17286 .) # No --srcdir option. We are building in place.
17287 ac_srcdir=.
17288 if test -z "$ac_top_builddir"; then
17289 ac_top_srcdir=.
17290 else
17291 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17292 fi ;;
17293 [\\/]* | ?:[\\/]* ) # Absolute path.
17294 ac_srcdir=$srcdir$ac_dir_suffix;
17295 ac_top_srcdir=$srcdir ;;
17296 *) # Relative path.
17297 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17298 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17299 esac
17301 # Do not use `cd foo && pwd` to compute absolute paths, because
17302 # the directories may not exist.
17303 case `pwd` in
17304 .) ac_abs_builddir="$ac_dir";;
17306 case "$ac_dir" in
17307 .) ac_abs_builddir=`pwd`;;
17308 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17309 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17310 esac;;
17311 esac
17312 case $ac_abs_builddir in
17313 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17315 case ${ac_top_builddir}. in
17316 .) ac_abs_top_builddir=$ac_abs_builddir;;
17317 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17318 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17319 esac;;
17320 esac
17321 case $ac_abs_builddir in
17322 .) ac_abs_srcdir=$ac_srcdir;;
17324 case $ac_srcdir in
17325 .) ac_abs_srcdir=$ac_abs_builddir;;
17326 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17327 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17328 esac;;
17329 esac
17330 case $ac_abs_builddir in
17331 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17333 case $ac_top_srcdir in
17334 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17335 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17336 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17337 esac;;
17338 esac
17341 case $INSTALL in
17342 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17343 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17344 esac
17346 if test x"$ac_file" != x-; then
17347 { echo "$as_me:$LINENO: creating $ac_file" >&5
17348 echo "$as_me: creating $ac_file" >&6;}
17349 rm -f "$ac_file"
17351 # Let's still pretend it is `configure' which instantiates (i.e., don't
17352 # use $as_me), people would be surprised to read:
17353 # /* config.h. Generated by config.status. */
17354 if test x"$ac_file" = x-; then
17355 configure_input=
17356 else
17357 configure_input="$ac_file. "
17359 configure_input=$configure_input"Generated from `echo $ac_file_in |
17360 sed 's,.*/,,'` by configure."
17362 # First look for the input files in the build tree, otherwise in the
17363 # src tree.
17364 ac_file_inputs=`IFS=:
17365 for f in $ac_file_in; do
17366 case $f in
17367 -) echo $tmp/stdin ;;
17368 [\\/$]*)
17369 # Absolute (can't be DOS-style, as IFS=:)
17370 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17371 echo "$as_me: error: cannot find input file: $f" >&2;}
17372 { (exit 1); exit 1; }; }
17373 echo "$f";;
17374 *) # Relative
17375 if test -f "$f"; then
17376 # Build tree
17377 echo "$f"
17378 elif test -f "$srcdir/$f"; then
17379 # Source tree
17380 echo "$srcdir/$f"
17381 else
17382 # /dev/null tree
17383 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17384 echo "$as_me: error: cannot find input file: $f" >&2;}
17385 { (exit 1); exit 1; }; }
17386 fi;;
17387 esac
17388 done` || { (exit 1); exit 1; }
17389 _ACEOF
17390 cat >>$CONFIG_STATUS <<_ACEOF
17391 sed "$ac_vpsub
17392 $extrasub
17393 _ACEOF
17394 cat >>$CONFIG_STATUS <<\_ACEOF
17396 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17397 s,@configure_input@,$configure_input,;t t
17398 s,@srcdir@,$ac_srcdir,;t t
17399 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17400 s,@top_srcdir@,$ac_top_srcdir,;t t
17401 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17402 s,@builddir@,$ac_builddir,;t t
17403 s,@abs_builddir@,$ac_abs_builddir,;t t
17404 s,@top_builddir@,$ac_top_builddir,;t t
17405 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17406 s,@INSTALL@,$ac_INSTALL,;t t
17407 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17408 rm -f $tmp/stdin
17409 if test x"$ac_file" != x-; then
17410 mv $tmp/out $ac_file
17411 else
17412 cat $tmp/out
17413 rm -f $tmp/out
17416 done
17417 _ACEOF
17418 cat >>$CONFIG_STATUS <<\_ACEOF
17421 # CONFIG_HEADER section.
17424 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17425 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17427 # ac_d sets the value in "#define NAME VALUE" lines.
17428 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17429 ac_dB='[ ].*$,\1#\2'
17430 ac_dC=' '
17431 ac_dD=',;t'
17432 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17433 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17434 ac_uB='$,\1#\2define\3'
17435 ac_uC=' '
17436 ac_uD=',;t'
17438 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17439 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17440 case $ac_file in
17441 - | *:- | *:-:* ) # input from stdin
17442 cat >$tmp/stdin
17443 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17444 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17445 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17446 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17447 * ) ac_file_in=$ac_file.in ;;
17448 esac
17450 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17451 echo "$as_me: creating $ac_file" >&6;}
17453 # First look for the input files in the build tree, otherwise in the
17454 # src tree.
17455 ac_file_inputs=`IFS=:
17456 for f in $ac_file_in; do
17457 case $f in
17458 -) echo $tmp/stdin ;;
17459 [\\/$]*)
17460 # Absolute (can't be DOS-style, as IFS=:)
17461 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17462 echo "$as_me: error: cannot find input file: $f" >&2;}
17463 { (exit 1); exit 1; }; }
17464 # Do quote $f, to prevent DOS paths from being IFS'd.
17465 echo "$f";;
17466 *) # Relative
17467 if test -f "$f"; then
17468 # Build tree
17469 echo "$f"
17470 elif test -f "$srcdir/$f"; then
17471 # Source tree
17472 echo "$srcdir/$f"
17473 else
17474 # /dev/null tree
17475 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17476 echo "$as_me: error: cannot find input file: $f" >&2;}
17477 { (exit 1); exit 1; }; }
17478 fi;;
17479 esac
17480 done` || { (exit 1); exit 1; }
17481 # Remove the trailing spaces.
17482 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17484 _ACEOF
17486 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17487 # `conftest.undefs', that substitutes the proper values into
17488 # config.h.in to produce config.h. The first handles `#define'
17489 # templates, and the second `#undef' templates.
17490 # And first: Protect against being on the right side of a sed subst in
17491 # config.status. Protect against being in an unquoted here document
17492 # in config.status.
17493 rm -f conftest.defines conftest.undefs
17494 # Using a here document instead of a string reduces the quoting nightmare.
17495 # Putting comments in sed scripts is not portable.
17497 # `end' is used to avoid that the second main sed command (meant for
17498 # 0-ary CPP macros) applies to n-ary macro definitions.
17499 # See the Autoconf documentation for `clear'.
17500 cat >confdef2sed.sed <<\_ACEOF
17501 s/[\\&,]/\\&/g
17502 s,[\\$`],\\&,g
17503 t clear
17504 : clear
17505 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17506 t end
17507 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17508 : end
17509 _ACEOF
17510 # If some macros were called several times there might be several times
17511 # the same #defines, which is useless. Nevertheless, we may not want to
17512 # sort them, since we want the *last* AC-DEFINE to be honored.
17513 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17514 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17515 rm -f confdef2sed.sed
17517 # This sed command replaces #undef with comments. This is necessary, for
17518 # example, in the case of _POSIX_SOURCE, which is predefined and required
17519 # on some systems where configure will not decide to define it.
17520 cat >>conftest.undefs <<\_ACEOF
17521 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17522 _ACEOF
17524 # Break up conftest.defines because some shells have a limit on the size
17525 # of here documents, and old seds have small limits too (100 cmds).
17526 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17527 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17528 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17529 echo ' :' >>$CONFIG_STATUS
17530 rm -f conftest.tail
17531 while grep . conftest.defines >/dev/null
17533 # Write a limited-size here document to $tmp/defines.sed.
17534 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17535 # Speed up: don't consider the non `#define' lines.
17536 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17537 # Work around the forget-to-reset-the-flag bug.
17538 echo 't clr' >>$CONFIG_STATUS
17539 echo ': clr' >>$CONFIG_STATUS
17540 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17541 echo 'CEOF
17542 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17543 rm -f $tmp/in
17544 mv $tmp/out $tmp/in
17545 ' >>$CONFIG_STATUS
17546 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17547 rm -f conftest.defines
17548 mv conftest.tail conftest.defines
17549 done
17550 rm -f conftest.defines
17551 echo ' fi # grep' >>$CONFIG_STATUS
17552 echo >>$CONFIG_STATUS
17554 # Break up conftest.undefs because some shells have a limit on the size
17555 # of here documents, and old seds have small limits too (100 cmds).
17556 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17557 rm -f conftest.tail
17558 while grep . conftest.undefs >/dev/null
17560 # Write a limited-size here document to $tmp/undefs.sed.
17561 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17562 # Speed up: don't consider the non `#undef'
17563 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17564 # Work around the forget-to-reset-the-flag bug.
17565 echo 't clr' >>$CONFIG_STATUS
17566 echo ': clr' >>$CONFIG_STATUS
17567 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17568 echo 'CEOF
17569 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17570 rm -f $tmp/in
17571 mv $tmp/out $tmp/in
17572 ' >>$CONFIG_STATUS
17573 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17574 rm -f conftest.undefs
17575 mv conftest.tail conftest.undefs
17576 done
17577 rm -f conftest.undefs
17579 cat >>$CONFIG_STATUS <<\_ACEOF
17580 # Let's still pretend it is `configure' which instantiates (i.e., don't
17581 # use $as_me), people would be surprised to read:
17582 # /* config.h. Generated by config.status. */
17583 if test x"$ac_file" = x-; then
17584 echo "/* Generated by configure. */" >$tmp/config.h
17585 else
17586 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17588 cat $tmp/in >>$tmp/config.h
17589 rm -f $tmp/in
17590 if test x"$ac_file" != x-; then
17591 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17592 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17593 echo "$as_me: $ac_file is unchanged" >&6;}
17594 else
17595 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17596 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17597 X"$ac_file" : 'X\(//\)[^/]' \| \
17598 X"$ac_file" : 'X\(//\)$' \| \
17599 X"$ac_file" : 'X\(/\)' \| \
17600 . : '\(.\)' 2>/dev/null ||
17601 echo X"$ac_file" |
17602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17603 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17604 /^X\(\/\/\)$/{ s//\1/; q; }
17605 /^X\(\/\).*/{ s//\1/; q; }
17606 s/.*/./; q'`
17607 { if $as_mkdir_p; then
17608 mkdir -p "$ac_dir"
17609 else
17610 as_dir="$ac_dir"
17611 as_dirs=
17612 while test ! -d "$as_dir"; do
17613 as_dirs="$as_dir $as_dirs"
17614 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17615 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17616 X"$as_dir" : 'X\(//\)[^/]' \| \
17617 X"$as_dir" : 'X\(//\)$' \| \
17618 X"$as_dir" : 'X\(/\)' \| \
17619 . : '\(.\)' 2>/dev/null ||
17620 echo X"$as_dir" |
17621 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17622 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17623 /^X\(\/\/\)$/{ s//\1/; q; }
17624 /^X\(\/\).*/{ s//\1/; q; }
17625 s/.*/./; q'`
17626 done
17627 test ! -n "$as_dirs" || mkdir $as_dirs
17628 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17629 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17630 { (exit 1); exit 1; }; }; }
17632 rm -f $ac_file
17633 mv $tmp/config.h $ac_file
17635 else
17636 cat $tmp/config.h
17637 rm -f $tmp/config.h
17639 # Compute $ac_file's index in $config_headers.
17640 _am_stamp_count=1
17641 for _am_header in $config_headers :; do
17642 case $_am_header in
17643 $ac_file | $ac_file:* )
17644 break ;;
17646 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17647 esac
17648 done
17649 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17650 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17651 X$ac_file : 'X\(//\)[^/]' \| \
17652 X$ac_file : 'X\(//\)$' \| \
17653 X$ac_file : 'X\(/\)' \| \
17654 . : '\(.\)' 2>/dev/null ||
17655 echo X$ac_file |
17656 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17657 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17658 /^X\(\/\/\)$/{ s//\1/; q; }
17659 /^X\(\/\).*/{ s//\1/; q; }
17660 s/.*/./; q'`/stamp-h$_am_stamp_count
17661 done
17662 _ACEOF
17663 cat >>$CONFIG_STATUS <<\_ACEOF
17666 # CONFIG_LINKS section.
17669 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17670 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17671 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17673 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17674 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
17676 if test ! -r $srcdir/$ac_source; then
17677 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17678 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17679 { (exit 1); exit 1; }; }
17681 rm -f $ac_dest
17683 # Make relative symlinks.
17684 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17685 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17686 X"$ac_dest" : 'X\(//\)[^/]' \| \
17687 X"$ac_dest" : 'X\(//\)$' \| \
17688 X"$ac_dest" : 'X\(/\)' \| \
17689 . : '\(.\)' 2>/dev/null ||
17690 echo X"$ac_dest" |
17691 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17692 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17693 /^X\(\/\/\)$/{ s//\1/; q; }
17694 /^X\(\/\).*/{ s//\1/; q; }
17695 s/.*/./; q'`
17696 { if $as_mkdir_p; then
17697 mkdir -p "$ac_dest_dir"
17698 else
17699 as_dir="$ac_dest_dir"
17700 as_dirs=
17701 while test ! -d "$as_dir"; do
17702 as_dirs="$as_dir $as_dirs"
17703 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17704 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17705 X"$as_dir" : 'X\(//\)[^/]' \| \
17706 X"$as_dir" : 'X\(//\)$' \| \
17707 X"$as_dir" : 'X\(/\)' \| \
17708 . : '\(.\)' 2>/dev/null ||
17709 echo X"$as_dir" |
17710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17711 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17712 /^X\(\/\/\)$/{ s//\1/; q; }
17713 /^X\(\/\).*/{ s//\1/; q; }
17714 s/.*/./; q'`
17715 done
17716 test ! -n "$as_dirs" || mkdir $as_dirs
17717 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
17718 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
17719 { (exit 1); exit 1; }; }; }
17721 ac_builddir=.
17723 if test "$ac_dest_dir" != .; then
17724 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17725 # A "../" for each directory in $ac_dir_suffix.
17726 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17727 else
17728 ac_dir_suffix= ac_top_builddir=
17731 case $srcdir in
17732 .) # No --srcdir option. We are building in place.
17733 ac_srcdir=.
17734 if test -z "$ac_top_builddir"; then
17735 ac_top_srcdir=.
17736 else
17737 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17738 fi ;;
17739 [\\/]* | ?:[\\/]* ) # Absolute path.
17740 ac_srcdir=$srcdir$ac_dir_suffix;
17741 ac_top_srcdir=$srcdir ;;
17742 *) # Relative path.
17743 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17744 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17745 esac
17747 # Do not use `cd foo && pwd` to compute absolute paths, because
17748 # the directories may not exist.
17749 case `pwd` in
17750 .) ac_abs_builddir="$ac_dest_dir";;
17752 case "$ac_dest_dir" in
17753 .) ac_abs_builddir=`pwd`;;
17754 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
17755 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
17756 esac;;
17757 esac
17758 case $ac_abs_builddir in
17759 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17761 case ${ac_top_builddir}. in
17762 .) ac_abs_top_builddir=$ac_abs_builddir;;
17763 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17764 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17765 esac;;
17766 esac
17767 case $ac_abs_builddir in
17768 .) ac_abs_srcdir=$ac_srcdir;;
17770 case $ac_srcdir in
17771 .) ac_abs_srcdir=$ac_abs_builddir;;
17772 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17773 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17774 esac;;
17775 esac
17776 case $ac_abs_builddir in
17777 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17779 case $ac_top_srcdir in
17780 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17781 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17782 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17783 esac;;
17784 esac
17787 case $srcdir in
17788 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17789 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
17790 esac
17792 # Try a symlink, then a hard link, then a copy.
17793 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17794 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
17795 cp -p $srcdir/$ac_source $ac_dest ||
17796 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
17797 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
17798 { (exit 1); exit 1; }; }
17799 done
17800 _ACEOF
17801 cat >>$CONFIG_STATUS <<\_ACEOF
17804 # CONFIG_COMMANDS section.
17806 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17807 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17808 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17809 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17810 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17811 X"$ac_dest" : 'X\(//\)[^/]' \| \
17812 X"$ac_dest" : 'X\(//\)$' \| \
17813 X"$ac_dest" : 'X\(/\)' \| \
17814 . : '\(.\)' 2>/dev/null ||
17815 echo X"$ac_dest" |
17816 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17817 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17818 /^X\(\/\/\)$/{ s//\1/; q; }
17819 /^X\(\/\).*/{ s//\1/; q; }
17820 s/.*/./; q'`
17821 { if $as_mkdir_p; then
17822 mkdir -p "$ac_dir"
17823 else
17824 as_dir="$ac_dir"
17825 as_dirs=
17826 while test ! -d "$as_dir"; do
17827 as_dirs="$as_dir $as_dirs"
17828 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17829 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17830 X"$as_dir" : 'X\(//\)[^/]' \| \
17831 X"$as_dir" : 'X\(//\)$' \| \
17832 X"$as_dir" : 'X\(/\)' \| \
17833 . : '\(.\)' 2>/dev/null ||
17834 echo X"$as_dir" |
17835 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17836 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17837 /^X\(\/\/\)$/{ s//\1/; q; }
17838 /^X\(\/\).*/{ s//\1/; q; }
17839 s/.*/./; q'`
17840 done
17841 test ! -n "$as_dirs" || mkdir $as_dirs
17842 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17843 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17844 { (exit 1); exit 1; }; }; }
17846 ac_builddir=.
17848 if test "$ac_dir" != .; then
17849 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17850 # A "../" for each directory in $ac_dir_suffix.
17851 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17852 else
17853 ac_dir_suffix= ac_top_builddir=
17856 case $srcdir in
17857 .) # No --srcdir option. We are building in place.
17858 ac_srcdir=.
17859 if test -z "$ac_top_builddir"; then
17860 ac_top_srcdir=.
17861 else
17862 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17863 fi ;;
17864 [\\/]* | ?:[\\/]* ) # Absolute path.
17865 ac_srcdir=$srcdir$ac_dir_suffix;
17866 ac_top_srcdir=$srcdir ;;
17867 *) # Relative path.
17868 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17869 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17870 esac
17872 # Do not use `cd foo && pwd` to compute absolute paths, because
17873 # the directories may not exist.
17874 case `pwd` in
17875 .) ac_abs_builddir="$ac_dir";;
17877 case "$ac_dir" in
17878 .) ac_abs_builddir=`pwd`;;
17879 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17880 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17881 esac;;
17882 esac
17883 case $ac_abs_builddir in
17884 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17886 case ${ac_top_builddir}. in
17887 .) ac_abs_top_builddir=$ac_abs_builddir;;
17888 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17889 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17890 esac;;
17891 esac
17892 case $ac_abs_builddir in
17893 .) ac_abs_srcdir=$ac_srcdir;;
17895 case $ac_srcdir in
17896 .) ac_abs_srcdir=$ac_abs_builddir;;
17897 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17898 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17899 esac;;
17900 esac
17901 case $ac_abs_builddir in
17902 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17904 case $ac_top_srcdir in
17905 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17906 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17907 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17908 esac;;
17909 esac
17912 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17913 echo "$as_me: executing $ac_dest commands" >&6;}
17914 case $ac_dest in
17915 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17916 # Strip MF so we end up with the name of the file.
17917 mf=`echo "$mf" | sed -e 's/:.*$//'`
17918 # Check whether this is an Automake generated Makefile or not.
17919 # We used to match only the files named `Makefile.in', but
17920 # some people rename them; so instead we look at the file content.
17921 # Grep'ing the first line is not enough: some people post-process
17922 # each Makefile.in and add a new line on top of each file to say so.
17923 # So let's grep whole file.
17924 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17925 dirpart=`(dirname "$mf") 2>/dev/null ||
17926 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17927 X"$mf" : 'X\(//\)[^/]' \| \
17928 X"$mf" : 'X\(//\)$' \| \
17929 X"$mf" : 'X\(/\)' \| \
17930 . : '\(.\)' 2>/dev/null ||
17931 echo X"$mf" |
17932 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17933 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17934 /^X\(\/\/\)$/{ s//\1/; q; }
17935 /^X\(\/\).*/{ s//\1/; q; }
17936 s/.*/./; q'`
17937 else
17938 continue
17940 # Extract the definition of DEPDIR, am__include, and am__quote
17941 # from the Makefile without running `make'.
17942 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17943 test -z "$DEPDIR" && continue
17944 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17945 test -z "am__include" && continue
17946 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17947 # When using ansi2knr, U may be empty or an underscore; expand it
17948 U=`sed -n 's/^U = //p' < "$mf"`
17949 # Find all dependency output files, they are included files with
17950 # $(DEPDIR) in their names. We invoke sed twice because it is the
17951 # simplest approach to changing $(DEPDIR) to its actual value in the
17952 # expansion.
17953 for file in `sed -n "
17954 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17955 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17956 # Make sure the directory exists.
17957 test -f "$dirpart/$file" && continue
17958 fdir=`(dirname "$file") 2>/dev/null ||
17959 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17960 X"$file" : 'X\(//\)[^/]' \| \
17961 X"$file" : 'X\(//\)$' \| \
17962 X"$file" : 'X\(/\)' \| \
17963 . : '\(.\)' 2>/dev/null ||
17964 echo X"$file" |
17965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17966 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17967 /^X\(\/\/\)$/{ s//\1/; q; }
17968 /^X\(\/\).*/{ s//\1/; q; }
17969 s/.*/./; q'`
17970 { if $as_mkdir_p; then
17971 mkdir -p $dirpart/$fdir
17972 else
17973 as_dir=$dirpart/$fdir
17974 as_dirs=
17975 while test ! -d "$as_dir"; do
17976 as_dirs="$as_dir $as_dirs"
17977 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17978 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17979 X"$as_dir" : 'X\(//\)[^/]' \| \
17980 X"$as_dir" : 'X\(//\)$' \| \
17981 X"$as_dir" : 'X\(/\)' \| \
17982 . : '\(.\)' 2>/dev/null ||
17983 echo X"$as_dir" |
17984 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17985 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17986 /^X\(\/\/\)$/{ s//\1/; q; }
17987 /^X\(\/\).*/{ s//\1/; q; }
17988 s/.*/./; q'`
17989 done
17990 test ! -n "$as_dirs" || mkdir $as_dirs
17991 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
17992 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
17993 { (exit 1); exit 1; }; }; }
17995 # echo "creating $dirpart/$file"
17996 echo '# dummy' > "$dirpart/$file"
17997 done
17998 done
18000 default ) # Only add multilib support code if we just rebuilt top-level Makefile.
18001 case " $CONFIG_FILES " in
18002 *" Makefile "*)
18003 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
18004 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
18006 esac
18007 for ac_multi_file in $CONFIG_FILES; do
18008 case $ac_multi_file in
18009 */Makefile)
18010 grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;;
18011 esac
18012 done
18014 esac
18015 done
18016 _ACEOF
18018 cat >>$CONFIG_STATUS <<\_ACEOF
18020 { (exit 0); exit 0; }
18021 _ACEOF
18022 chmod +x $CONFIG_STATUS
18023 ac_clean_files=$ac_clean_files_save
18026 # configure is writing to config.log, and then calls config.status.
18027 # config.status does its own redirection, appending to config.log.
18028 # Unfortunately, on DOS this fails, as config.log is still kept open
18029 # by configure, so config.status won't be able to write to it; its
18030 # output is simply discarded. So we exec the FD to /dev/null,
18031 # effectively closing config.log, so it can be properly (re)opened and
18032 # appended to by config.status. When coming back to configure, we
18033 # need to make the FD available again.
18034 if test "$no_create" != yes; then
18035 ac_cs_success=:
18036 ac_config_status_args=
18037 test "$silent" = yes &&
18038 ac_config_status_args="$ac_config_status_args --quiet"
18039 exec 5>/dev/null
18040 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18041 exec 5>>config.log
18042 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18043 # would make configure fail if this is the last instruction.
18044 $ac_cs_success || { (exit 1); exit 1; }
18048 # CONFIG_SUBDIRS section.
18050 if test "$no_recursion" != yes; then
18052 # Remove --cache-file and --srcdir arguments so they do not pile up.
18053 ac_sub_configure_args=
18054 ac_prev=
18055 for ac_arg in $ac_configure_args; do
18056 if test -n "$ac_prev"; then
18057 ac_prev=
18058 continue
18060 case $ac_arg in
18061 -cache-file | --cache-file | --cache-fil | --cache-fi \
18062 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18063 ac_prev=cache_file ;;
18064 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18065 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18066 | --c=*)
18068 --config-cache | -C)
18070 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18071 ac_prev=srcdir ;;
18072 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18074 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18075 ac_prev=prefix ;;
18076 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18078 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18079 esac
18080 done
18082 # Always prepend --prefix to ensure using the same prefix
18083 # in subdir configurations.
18084 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
18086 ac_popdir=`pwd`
18087 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18089 # Do not complain, so a configure script can configure whichever
18090 # parts of a large source tree are present.
18091 test -d $srcdir/$ac_dir || continue
18093 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
18094 echo "$as_me: configuring in $ac_dir" >&6;}
18095 { if $as_mkdir_p; then
18096 mkdir -p "$ac_dir"
18097 else
18098 as_dir="$ac_dir"
18099 as_dirs=
18100 while test ! -d "$as_dir"; do
18101 as_dirs="$as_dir $as_dirs"
18102 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18103 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18104 X"$as_dir" : 'X\(//\)[^/]' \| \
18105 X"$as_dir" : 'X\(//\)$' \| \
18106 X"$as_dir" : 'X\(/\)' \| \
18107 . : '\(.\)' 2>/dev/null ||
18108 echo X"$as_dir" |
18109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18110 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18111 /^X\(\/\/\)$/{ s//\1/; q; }
18112 /^X\(\/\).*/{ s//\1/; q; }
18113 s/.*/./; q'`
18114 done
18115 test ! -n "$as_dirs" || mkdir $as_dirs
18116 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18117 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18118 { (exit 1); exit 1; }; }; }
18120 ac_builddir=.
18122 if test "$ac_dir" != .; then
18123 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18124 # A "../" for each directory in $ac_dir_suffix.
18125 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18126 else
18127 ac_dir_suffix= ac_top_builddir=
18130 case $srcdir in
18131 .) # No --srcdir option. We are building in place.
18132 ac_srcdir=.
18133 if test -z "$ac_top_builddir"; then
18134 ac_top_srcdir=.
18135 else
18136 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18137 fi ;;
18138 [\\/]* | ?:[\\/]* ) # Absolute path.
18139 ac_srcdir=$srcdir$ac_dir_suffix;
18140 ac_top_srcdir=$srcdir ;;
18141 *) # Relative path.
18142 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18143 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18144 esac
18146 # Do not use `cd foo && pwd` to compute absolute paths, because
18147 # the directories may not exist.
18148 case `pwd` in
18149 .) ac_abs_builddir="$ac_dir";;
18151 case "$ac_dir" in
18152 .) ac_abs_builddir=`pwd`;;
18153 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18154 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18155 esac;;
18156 esac
18157 case $ac_abs_builddir in
18158 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18160 case ${ac_top_builddir}. in
18161 .) ac_abs_top_builddir=$ac_abs_builddir;;
18162 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18163 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18164 esac;;
18165 esac
18166 case $ac_abs_builddir in
18167 .) ac_abs_srcdir=$ac_srcdir;;
18169 case $ac_srcdir in
18170 .) ac_abs_srcdir=$ac_abs_builddir;;
18171 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18172 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18173 esac;;
18174 esac
18175 case $ac_abs_builddir in
18176 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18178 case $ac_top_srcdir in
18179 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18180 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18181 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18182 esac;;
18183 esac
18186 cd $ac_dir
18188 # Check for guested configure; otherwise get Cygnus style configure.
18189 if test -f $ac_srcdir/configure.gnu; then
18190 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
18191 elif test -f $ac_srcdir/configure; then
18192 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
18193 elif test -f $ac_srcdir/configure.in; then
18194 ac_sub_configure=$ac_configure
18195 else
18196 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
18197 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18198 ac_sub_configure=
18201 # The recursion is here.
18202 if test -n "$ac_sub_configure"; then
18203 # Make the cache file name correct relative to the subdirectory.
18204 case $cache_file in
18205 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18206 *) # Relative path.
18207 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
18208 esac
18210 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
18211 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18212 # The eval makes quoting arguments work.
18213 eval $ac_sub_configure $ac_sub_configure_args \
18214 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
18215 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
18216 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
18217 { (exit 1); exit 1; }; }
18220 cd $ac_popdir
18221 done