Add comment to expand_mult max_cost change.
[official-gcc.git] / libjava / configure
blobed859c0beffd36974e0aae3c631a54c6835e5ee2
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 extra_ldflags_libjava GCLIBS GCINCS GCDEPS GCSPEC JC1GCSPEC GCTESTSPEC USING_BOEHMGC_TRUE USING_BOEHMGC_FALSE USING_NOGC_TRUE USING_NOGC_FALSE THREADLIBS THREADINCS THREADDEPS THREADSPEC 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 # Only use libltdl for non-newlib builds.
4015 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4016 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
4017 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4018 library_names_spec=
4019 libname_spec='lib$name'
4020 soname_spec=
4021 shrext=".so"
4022 postinstall_cmds=
4023 postuninstall_cmds=
4024 finish_cmds=
4025 finish_eval=
4026 shlibpath_var=
4027 shlibpath_overrides_runpath=unknown
4028 version_type=none
4029 dynamic_linker="$host_os ld.so"
4030 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4031 if test "$GCC" = yes; then
4032 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
4033 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
4034 # if the path contains ";" then we assume it to be the separator
4035 # otherwise default to the standard path separator (i.e. ":") - it is
4036 # assumed that no part of a normal pathname contains ";" but that should
4037 # okay in the real world where ";" in dirpaths is itself problematic.
4038 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
4039 else
4040 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
4042 else
4043 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4045 need_lib_prefix=unknown
4046 hardcode_into_libs=no
4048 # when you set need_version to no, make sure it does not cause -set_version
4049 # flags to be left without arguments
4050 need_version=unknown
4052 case $host_os in
4053 aix3*)
4054 version_type=linux
4055 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4056 shlibpath_var=LIBPATH
4058 # AIX 3 has no versioning support, so we append a major version to the name.
4059 soname_spec='${libname}${release}${shared_ext}$major'
4062 aix4* | aix5*)
4063 version_type=linux
4064 need_lib_prefix=no
4065 need_version=no
4066 hardcode_into_libs=yes
4067 if test "$host_cpu" = ia64; then
4068 # AIX 5 supports IA64
4069 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4070 shlibpath_var=LD_LIBRARY_PATH
4071 else
4072 # With GCC up to 2.95.x, collect2 would create an import file
4073 # for dependence libraries. The import file would start with
4074 # the line `#! .'. This would cause the generated library to
4075 # depend on `.', always an invalid library. This was fixed in
4076 # development snapshots of GCC prior to 3.0.
4077 case $host_os in
4078 aix4 | aix4.[01] | aix4.[01].*)
4079 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4080 echo ' yes '
4081 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4083 else
4084 can_build_shared=no
4087 esac
4088 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4089 # soname into executable. Probably we can add versioning support to
4090 # collect2, so additional links can be useful in future.
4091 if test "$aix_use_runtimelinking" = yes; then
4092 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4093 # instead of lib<name>.a to let people know that these are not
4094 # typical AIX shared libraries.
4095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4096 else
4097 # We preserve .a as extension for shared libraries through AIX4.2
4098 # and later when we are not doing run time linking.
4099 library_names_spec='${libname}${release}.a $libname.a'
4100 soname_spec='${libname}${release}${shared_ext}$major'
4102 shlibpath_var=LIBPATH
4106 amigaos*)
4107 library_names_spec='$libname.ixlibrary $libname.a'
4108 # Create ${libname}_ixlibrary.a entries in /sys/libs.
4109 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
4112 beos*)
4113 library_names_spec='${libname}${shared_ext}'
4114 dynamic_linker="$host_os ld.so"
4115 shlibpath_var=LIBRARY_PATH
4118 bsdi4*)
4119 version_type=linux
4120 need_version=no
4121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4122 soname_spec='${libname}${release}${shared_ext}$major'
4123 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4124 shlibpath_var=LD_LIBRARY_PATH
4125 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4126 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4127 # the default ld.so.conf also contains /usr/contrib/lib and
4128 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4129 # libtool to hard-code these into programs
4132 cygwin* | mingw* | pw32*)
4133 version_type=windows
4134 shrext=".dll"
4135 need_version=no
4136 need_lib_prefix=no
4138 case $GCC,$host_os in
4139 yes,cygwin* | yes,mingw* | yes,pw32*)
4140 library_names_spec='$libname.dll.a'
4141 # DLL is installed to $(libdir)/../bin by postinstall_cmds
4142 postinstall_cmds='base_file=`basename \${file}`~
4143 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
4144 dldir=$destdir/`dirname \$dlpath`~
4145 test -d \$dldir || mkdir -p \$dldir~
4146 $install_prog $dir/$dlname \$dldir/$dlname'
4147 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4148 dlpath=$dir/\$dldll~
4149 $rm \$dlpath'
4150 shlibpath_overrides_runpath=yes
4152 case $host_os in
4153 cygwin*)
4154 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4155 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4156 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
4158 mingw*)
4159 # MinGW DLLs use traditional 'lib' prefix
4160 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4161 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
4162 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
4163 # It is most probably a Windows format PATH printed by
4164 # mingw gcc, but we are running on Cygwin. Gcc prints its search
4165 # path with ; separators, and with drive letters. We can handle the
4166 # drive letters (cygwin fileutils understands them), so leave them,
4167 # especially as we might pass files found there to a mingw objdump,
4168 # which wouldn't understand a cygwinified path. Ahh.
4169 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
4170 else
4171 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
4174 pw32*)
4175 # pw32 DLLs use 'pw' prefix rather than 'lib'
4176 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
4178 esac
4182 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
4184 esac
4185 dynamic_linker='Win32 ld.exe'
4186 # FIXME: first we should search . and the directory the executable is in
4187 shlibpath_var=PATH
4190 darwin* | rhapsody*)
4191 dynamic_linker="$host_os dyld"
4192 version_type=darwin
4193 need_lib_prefix=no
4194 need_version=no
4195 # FIXME: Relying on posixy $() will cause problems for
4196 # cross-compilation, but unfortunately the echo tests do not
4197 # yet detect zsh echo's removal of \ escapes.
4198 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4199 soname_spec='${libname}${release}${major}$shared_ext'
4200 shlibpath_overrides_runpath=yes
4201 shlibpath_var=DYLD_LIBRARY_PATH
4202 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
4203 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
4204 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
4205 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
4207 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4210 dgux*)
4211 version_type=linux
4212 need_lib_prefix=no
4213 need_version=no
4214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4215 soname_spec='${libname}${release}${shared_ext}$major'
4216 shlibpath_var=LD_LIBRARY_PATH
4219 freebsd1*)
4220 dynamic_linker=no
4223 freebsd*)
4224 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4225 version_type=freebsd-$objformat
4226 case $version_type in
4227 freebsd-elf*)
4228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4229 need_version=no
4230 need_lib_prefix=no
4232 freebsd-*)
4233 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4234 need_version=yes
4236 esac
4237 shlibpath_var=LD_LIBRARY_PATH
4238 case $host_os in
4239 freebsd2*)
4240 shlibpath_overrides_runpath=yes
4242 freebsd3.01* | freebsdelf3.01*)
4243 shlibpath_overrides_runpath=yes
4244 hardcode_into_libs=yes
4246 *) # from 3.2 on
4247 shlibpath_overrides_runpath=no
4248 hardcode_into_libs=yes
4250 esac
4253 gnu*)
4254 version_type=linux
4255 need_lib_prefix=no
4256 need_version=no
4257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4258 soname_spec='${libname}${release}${shared_ext}$major'
4259 shlibpath_var=LD_LIBRARY_PATH
4260 hardcode_into_libs=yes
4263 hpux9* | hpux10* | hpux11*)
4264 # Give a soname corresponding to the major version so that dld.sl refuses to
4265 # link against other versions.
4266 version_type=sunos
4267 need_lib_prefix=no
4268 need_version=no
4269 case "$host_cpu" in
4270 ia64*)
4271 shrext='.so'
4272 hardcode_into_libs=yes
4273 dynamic_linker="$host_os dld.so"
4274 shlibpath_var=LD_LIBRARY_PATH
4275 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4277 soname_spec='${libname}${release}${shared_ext}$major'
4278 if test "X$HPUX_IA64_MODE" = X32; then
4279 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4280 else
4281 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4283 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4285 hppa*64*)
4286 shrext='.sl'
4287 hardcode_into_libs=yes
4288 dynamic_linker="$host_os dld.sl"
4289 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4290 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4292 soname_spec='${libname}${release}${shared_ext}$major'
4293 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
4294 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4297 shrext='.sl'
4298 dynamic_linker="$host_os dld.sl"
4299 shlibpath_var=SHLIB_PATH
4300 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4302 soname_spec='${libname}${release}${shared_ext}$major'
4304 esac
4305 # HP-UX runs *really* slowly unless shared libraries are mode 555.
4306 postinstall_cmds='chmod 555 $lib'
4309 irix5* | irix6* | nonstopux*)
4310 case $host_os in
4311 nonstopux*) version_type=nonstopux ;;
4313 if test "$lt_cv_prog_gnu_ld" = yes; then
4314 version_type=linux
4315 else
4316 version_type=irix
4317 fi ;;
4318 esac
4319 need_lib_prefix=no
4320 need_version=no
4321 soname_spec='${libname}${release}${shared_ext}$major'
4322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4323 case $host_os in
4324 irix5* | nonstopux*)
4325 libsuff= shlibsuff=
4328 case $LD in # libtool.m4 will add one of these switches to LD
4329 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
4330 libsuff= shlibsuff= libmagic=32-bit;;
4331 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
4332 libsuff=32 shlibsuff=N32 libmagic=N32;;
4333 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
4334 libsuff=64 shlibsuff=64 libmagic=64-bit;;
4335 *) libsuff= shlibsuff= libmagic=never-match;;
4336 esac
4338 esac
4339 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4340 shlibpath_overrides_runpath=no
4341 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4342 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4343 hardcode_into_libs=yes
4346 # No shared lib support for Linux oldld, aout, or coff.
4347 linux*oldld* | linux*aout* | linux*coff*)
4348 dynamic_linker=no
4351 # This must be Linux ELF.
4352 linux*)
4353 version_type=linux
4354 need_lib_prefix=no
4355 need_version=no
4356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4357 soname_spec='${libname}${release}${shared_ext}$major'
4358 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4359 shlibpath_var=LD_LIBRARY_PATH
4360 shlibpath_overrides_runpath=no
4361 # This implies no fast_install, which is unacceptable.
4362 # Some rework will be needed to allow for fast_install
4363 # before this can be enabled.
4364 hardcode_into_libs=yes
4366 # We used to test for /lib/ld.so.1 and disable shared libraries on
4367 # powerpc, because MkLinux only supported shared libraries with the
4368 # GNU dynamic linker. Since this was broken with cross compilers,
4369 # most powerpc-linux boxes support dynamic linking these days and
4370 # people can always --disable-shared, the test was removed, and we
4371 # assume the GNU/Linux dynamic linker is in use.
4372 dynamic_linker='GNU/Linux ld.so'
4375 netbsd*)
4376 version_type=sunos
4377 need_lib_prefix=no
4378 need_version=no
4379 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4381 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4382 dynamic_linker='NetBSD (a.out) ld.so'
4383 else
4384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
4385 soname_spec='${libname}${release}${shared_ext}$major'
4386 dynamic_linker='NetBSD ld.elf_so'
4388 shlibpath_var=LD_LIBRARY_PATH
4389 shlibpath_overrides_runpath=yes
4390 hardcode_into_libs=yes
4393 newsos6)
4394 version_type=linux
4395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4396 shlibpath_var=LD_LIBRARY_PATH
4397 shlibpath_overrides_runpath=yes
4400 nto-qnx)
4401 version_type=linux
4402 need_lib_prefix=no
4403 need_version=no
4404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4405 soname_spec='${libname}${release}${shared_ext}$major'
4406 shlibpath_var=LD_LIBRARY_PATH
4407 shlibpath_overrides_runpath=yes
4410 openbsd*)
4411 version_type=sunos
4412 need_lib_prefix=no
4413 need_version=no
4414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4415 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4416 shlibpath_var=LD_LIBRARY_PATH
4417 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4418 case $host_os in
4419 openbsd2.[89] | openbsd2.[89].*)
4420 shlibpath_overrides_runpath=no
4423 shlibpath_overrides_runpath=yes
4425 esac
4426 else
4427 shlibpath_overrides_runpath=yes
4431 os2*)
4432 libname_spec='$name'
4433 shrext=".dll"
4434 need_lib_prefix=no
4435 library_names_spec='$libname${shared_ext} $libname.a'
4436 dynamic_linker='OS/2 ld.exe'
4437 shlibpath_var=LIBPATH
4440 osf3* | osf4* | osf5*)
4441 version_type=osf
4442 need_lib_prefix=no
4443 need_version=no
4444 soname_spec='${libname}${release}${shared_ext}$major'
4445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4446 shlibpath_var=LD_LIBRARY_PATH
4447 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4448 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4451 sco3.2v5*)
4452 version_type=osf
4453 soname_spec='${libname}${release}${shared_ext}$major'
4454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4455 shlibpath_var=LD_LIBRARY_PATH
4458 solaris*)
4459 version_type=linux
4460 need_lib_prefix=no
4461 need_version=no
4462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4463 soname_spec='${libname}${release}${shared_ext}$major'
4464 shlibpath_var=LD_LIBRARY_PATH
4465 shlibpath_overrides_runpath=yes
4466 hardcode_into_libs=yes
4467 # ldd complains unless libraries are executable
4468 postinstall_cmds='chmod +x $lib'
4471 sunos4*)
4472 version_type=sunos
4473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4474 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4475 shlibpath_var=LD_LIBRARY_PATH
4476 shlibpath_overrides_runpath=yes
4477 if test "$with_gnu_ld" = yes; then
4478 need_lib_prefix=no
4480 need_version=yes
4483 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4484 version_type=linux
4485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4486 soname_spec='${libname}${release}${shared_ext}$major'
4487 shlibpath_var=LD_LIBRARY_PATH
4488 case $host_vendor in
4489 sni)
4490 shlibpath_overrides_runpath=no
4491 need_lib_prefix=no
4492 export_dynamic_flag_spec='${wl}-Blargedynsym'
4493 runpath_var=LD_RUN_PATH
4495 siemens)
4496 need_lib_prefix=no
4498 motorola)
4499 need_lib_prefix=no
4500 need_version=no
4501 shlibpath_overrides_runpath=no
4502 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4504 esac
4507 sysv4*MP*)
4508 if test -d /usr/nec ;then
4509 version_type=linux
4510 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
4511 soname_spec='$libname${shared_ext}.$major'
4512 shlibpath_var=LD_LIBRARY_PATH
4516 uts4*)
4517 version_type=linux
4518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4519 soname_spec='${libname}${release}${shared_ext}$major'
4520 shlibpath_var=LD_LIBRARY_PATH
4524 dynamic_linker=no
4526 esac
4527 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
4528 echo "${ECHO_T}$dynamic_linker" >&6
4529 test "$dynamic_linker" = no && can_build_shared=no
4532 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
4533 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
4534 if test "${libltdl_cv_shlibpath_var+set}" = set; then
4535 echo $ECHO_N "(cached) $ECHO_C" >&6
4536 else
4537 libltdl_cv_shlibpath_var="$shlibpath_var"
4539 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
4540 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
4541 if test -n "$libltdl_cv_shlibpath_var"; then
4543 cat >>confdefs.h <<_ACEOF
4544 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
4545 _ACEOF
4551 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
4554 # See if the user has requested runtime debugging.
4555 LIBGCJDEBUG="disable"
4557 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
4558 if test "${enable_libgcj_debug+set}" = set; then
4559 enableval="$enable_libgcj_debug"
4560 if test "$enable_libgcj_debug" = yes; then
4562 cat >>confdefs.h <<\_ACEOF
4563 #define DEBUG 1
4564 _ACEOF
4566 LIBGCJDEBUG="enable"
4570 # Determine which AWT peer libraries to build
4571 # Check whether --enable-java-awt or --disable-java-awt was given.
4572 if test "${enable_java_awt+set}" = set; then
4573 enableval="$enable_java_awt"
4577 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
4578 use_xlib_awt=""
4579 use_gtk_awt=""
4580 # The default toolkit to use is the first one specified.
4581 TOOLKIT=
4584 for peer in $peerlibs ; do
4585 case $peer in
4586 xlib)
4587 if test "$no_x" = yes; then
4588 echo "*** xlib peers requested but no X library available" 1>&2
4589 exit 1
4590 else
4591 use_xlib_awt="yes"
4592 if test -z "$TOOLKIT"; then
4593 TOOLKIT=gnu.awt.xlib.XToolkit
4597 gtk)
4598 if test "$no_x" = yes; then
4599 echo "*** xlib peers requested but no X library available" 1>&2
4600 exit 1
4601 else
4602 use_gtk_awt=yes
4603 if test -z "$TOOLKIT"; then
4604 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
4609 use_xlib_awt=
4610 use_gtk_awt=
4611 break
4614 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
4615 exit 1
4616 esac
4617 done
4621 if test "$use_xlib_awt" = yes; then
4622 XLIB_AWT_TRUE=
4623 XLIB_AWT_FALSE='#'
4624 else
4625 XLIB_AWT_TRUE='#'
4626 XLIB_AWT_FALSE=
4631 if test "$use_gtk_awt" = yes; then
4632 GTK_AWT_TRUE=
4633 GTK_AWT_FALSE='#'
4634 else
4635 GTK_AWT_TRUE='#'
4636 GTK_AWT_FALSE=
4640 # Create standard.omit based on decisions we just made.
4641 cp $srcdir/standard.omit.in standard.omit
4642 if test "$use_xlib_awt" != yes; then
4643 echo gnu/awt/xlib >> standard.omit
4644 echo gnu/gcj/xlib >> standard.omit
4646 if test "$use_gtk_awt" != yes; then
4647 echo gnu/java/awt/peer/gtk >> standard.omit
4650 if test -z "${with_multisubdir}"; then
4651 builddotdot=.
4652 else
4653 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
4656 NATIVE=yes
4658 # Which gcj do we use?
4659 which_gcj=default
4660 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
4661 if test -n "${with_cross_host}"; then
4662 # We are being configured with a cross compiler. We can't
4663 # use ac_exeext, because that is for the target platform.
4664 NATIVE=no
4665 cross_host_exeext=
4666 case "${with_cross_host}" in
4667 *mingw* | *cygwin*)
4668 cross_host_exeext=.exe
4670 esac
4671 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
4672 if test x"$build_noncanonical" = x"$with_cross_host"; then
4673 # Ordinary cross (host!=target and host=build)
4674 which_gcj=built
4675 else
4676 # Canadian cross (host!=target and host!=build)
4677 which_gcj=cross
4679 else
4680 which_gcj=cross
4682 else
4683 # We are being configured with a native or crossed-native compiler
4684 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
4685 if test x"$build" = x"$host"; then
4686 # True native build (host=target and host=build)
4687 which_gcj=built
4688 else
4689 # Crossed-native build (host=target and host!=build)
4690 which_gcj=cross
4692 else
4693 which_gcj=path
4696 case "${which_gcj}" in
4697 built)
4698 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
4699 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
4700 ZIP='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/fastjar/fastjar'
4702 cross)
4703 if test "x${with_newlib}" = "xyes"; then
4704 # FIXME (comment): Why is this needed?
4705 GCC_UNWIND_INCLUDE=
4706 GCJ="${target_noncanonical}-gcj"
4707 else
4708 GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
4710 ZIP='$(target_noncanonical)-fastjar'
4711 GCJH='$(target_noncanonical)-gcjh'
4713 path)
4714 GCJ="gcj -B`${PWDCMD-pwd}`/"
4715 ## In this case, gcj is found outside the build tree. However, zip is
4716 ## found in the build tree.
4717 ZIP='$(top_builddir)/$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
4718 GCJH=gcjh
4720 esac
4725 # Create it, so that compile/link tests don't fail
4726 test -f libgcj.spec || touch libgcj.spec
4730 # Set up to configure Classpath.
4731 # FIXME: no supported way to pass args in autoconf.
4732 ac_configure_args="$ac_configure_args --disable-load-library"
4733 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
4734 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
4735 dir1=`cd $srcdir && pwd`
4736 dir2=`pwd`
4737 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
4738 ac_configure_args="$ac_configure_args --disable-core-jni"
4739 ac_configure_args="$ac_configure_args --disable-examples"
4740 ac_configure_args="$ac_configure_args --with-glibj=build"
4741 if test "$use_gtk_awt" != yes; then
4742 ac_configure_args="$ac_configure_args --disable-gtk-peer"
4745 # Only use libltdl for non-newlib builds.
4746 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4747 case $enable_ltdl_convenience in
4748 no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
4749 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
4750 { (exit 1); exit 1; }; } ;;
4751 "") enable_ltdl_convenience=yes
4752 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
4753 esac
4754 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
4755 INCLTDL='-I${top_srcdir}/''libltdl'
4758 DIRLTDL=libltdl
4760 cat >>confdefs.h <<\_ACEOF
4761 #define USE_LTDL 1
4762 _ACEOF
4764 # Sigh. Libtool's macro doesn't do the right thing.
4765 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
4766 # FIXME: this is a hack.
4767 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
4768 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
4773 # Check whether --enable-shared or --disable-shared was given.
4774 if test "${enable_shared+set}" = set; then
4775 enableval="$enable_shared"
4776 p=${PACKAGE-default}
4777 case $enableval in
4778 yes) enable_shared=yes ;;
4779 no) enable_shared=no ;;
4781 enable_shared=no
4782 # Look at the argument we got. We use all the common list separators.
4783 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4784 for pkg in $enableval; do
4785 if test "X$pkg" = "X$p"; then
4786 enable_shared=yes
4788 done
4789 IFS="$ac_save_ifs"
4791 esac
4792 else
4793 enable_shared=yes
4795 # Check whether --enable-static or --disable-static was given.
4796 if test "${enable_static+set}" = set; then
4797 enableval="$enable_static"
4798 p=${PACKAGE-default}
4799 case $enableval in
4800 yes) enable_static=yes ;;
4801 no) enable_static=no ;;
4803 enable_static=no
4804 # Look at the argument we got. We use all the common list separators.
4805 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4806 for pkg in $enableval; do
4807 if test "X$pkg" = "X$p"; then
4808 enable_static=yes
4810 done
4811 IFS="$ac_save_ifs"
4813 esac
4814 else
4815 enable_static=yes
4817 # Check whether --enable-fast-install or --disable-fast-install was given.
4818 if test "${enable_fast_install+set}" = set; then
4819 enableval="$enable_fast_install"
4820 p=${PACKAGE-default}
4821 case $enableval in
4822 yes) enable_fast_install=yes ;;
4823 no) enable_fast_install=no ;;
4825 enable_fast_install=no
4826 # Look at the argument we got. We use all the common list separators.
4827 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4828 for pkg in $enableval; do
4829 if test "X$pkg" = "X$p"; then
4830 enable_fast_install=yes
4832 done
4833 IFS="$ac_save_ifs"
4835 esac
4836 else
4837 enable_fast_install=yes
4840 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4841 if test "${with_gnu_ld+set}" = set; then
4842 withval="$with_gnu_ld"
4843 test "$withval" = no || with_gnu_ld=yes
4844 else
4845 with_gnu_ld=no
4847 ac_prog=ld
4848 if test "$GCC" = yes; then
4849 # Check if gcc -print-prog-name=ld gives a path.
4850 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4851 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4852 case $host in
4853 *-*-mingw*)
4854 # gcc leaves a trailing carriage return which upsets mingw
4855 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4857 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4858 esac
4859 case $ac_prog in
4860 # Accept absolute paths.
4861 [\\/]* | [A-Za-z]:[\\/]*)
4862 re_direlt='/[^/][^/]*/\.\./'
4863 # Canonicalize the path of ld
4864 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4865 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4866 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4867 done
4868 test -z "$LD" && LD="$ac_prog"
4871 # If it fails, then pretend we aren't using GCC.
4872 ac_prog=ld
4875 # If it is relative, then search for the first ld in PATH.
4876 with_gnu_ld=unknown
4878 esac
4879 elif test "$with_gnu_ld" = yes; then
4880 echo "$as_me:$LINENO: checking for GNU ld" >&5
4881 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4882 else
4883 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4884 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4886 if test "${lt_cv_path_LD+set}" = set; then
4887 echo $ECHO_N "(cached) $ECHO_C" >&6
4888 else
4889 if test -z "$LD"; then
4890 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4891 for ac_dir in $PATH; do
4892 test -z "$ac_dir" && ac_dir=.
4893 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4894 lt_cv_path_LD="$ac_dir/$ac_prog"
4895 # Check to see if the program is GNU ld. I'd rather use --version,
4896 # but apparently some GNU ld's only accept -v.
4897 # Break only if it was the GNU/non-GNU ld that we prefer.
4898 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4899 test "$with_gnu_ld" != no && break
4900 else
4901 test "$with_gnu_ld" != yes && break
4904 done
4905 IFS="$ac_save_ifs"
4906 else
4907 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4911 LD="$lt_cv_path_LD"
4912 if test -n "$LD"; then
4913 echo "$as_me:$LINENO: result: $LD" >&5
4914 echo "${ECHO_T}$LD" >&6
4915 else
4916 echo "$as_me:$LINENO: result: no" >&5
4917 echo "${ECHO_T}no" >&6
4919 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4920 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4921 { (exit 1); exit 1; }; }
4922 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4923 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4924 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4925 echo $ECHO_N "(cached) $ECHO_C" >&6
4926 else
4927 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4928 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4929 lt_cv_prog_gnu_ld=yes
4930 else
4931 lt_cv_prog_gnu_ld=no
4934 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4935 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4936 with_gnu_ld=$lt_cv_prog_gnu_ld
4939 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4940 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4941 if test "${lt_cv_ld_reload_flag+set}" = set; then
4942 echo $ECHO_N "(cached) $ECHO_C" >&6
4943 else
4944 lt_cv_ld_reload_flag='-r'
4946 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4947 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4948 reload_flag=$lt_cv_ld_reload_flag
4949 test -n "$reload_flag" && reload_flag=" $reload_flag"
4951 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4952 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4953 if test "${lt_cv_path_NM+set}" = set; then
4954 echo $ECHO_N "(cached) $ECHO_C" >&6
4955 else
4956 if test -n "$NM"; then
4957 # Let the user override the test.
4958 lt_cv_path_NM="$NM"
4959 else
4960 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4961 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4962 test -z "$ac_dir" && ac_dir=.
4963 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4964 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4965 # Check to see if the nm accepts a BSD-compat flag.
4966 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4967 # nm: unknown option "B" ignored
4968 # Tru64's nm complains that /dev/null is an invalid object file
4969 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4970 lt_cv_path_NM="$tmp_nm -B"
4971 break
4972 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4973 lt_cv_path_NM="$tmp_nm -p"
4974 break
4975 else
4976 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4977 continue # so that we can try to find one that supports BSD flags
4980 done
4981 IFS="$ac_save_ifs"
4982 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4986 NM="$lt_cv_path_NM"
4987 echo "$as_me:$LINENO: result: $NM" >&5
4988 echo "${ECHO_T}$NM" >&6
4990 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4991 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4992 if test "${lt_cv_deplibs_check_method+set}" = set; then
4993 echo $ECHO_N "(cached) $ECHO_C" >&6
4994 else
4995 lt_cv_file_magic_cmd='$MAGIC_CMD'
4996 lt_cv_file_magic_test_file=
4997 lt_cv_deplibs_check_method='unknown'
4998 # Need to set the preceding variable on all platforms that support
4999 # interlibrary dependencies.
5000 # 'none' -- dependencies not supported.
5001 # `unknown' -- same as none, but documents that we really don't know.
5002 # 'pass_all' -- all dependencies passed with no checks.
5003 # 'test_compile' -- check by making test program.
5004 # 'file_magic [regex]' -- check by looking for files in library path
5005 # which responds to the $file_magic_cmd with a given egrep regex.
5006 # If you have `file' or equivalent on your system and you're not sure
5007 # whether `pass_all' will *always* work, you probably want this one.
5009 case $host_os in
5010 aix*)
5011 lt_cv_deplibs_check_method=pass_all
5014 beos*)
5015 lt_cv_deplibs_check_method=pass_all
5018 bsdi4*)
5019 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5020 lt_cv_file_magic_cmd='/usr/bin/file -L'
5021 lt_cv_file_magic_test_file=/shlib/libc.so
5024 cygwin* | mingw* |pw32*)
5025 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5026 lt_cv_file_magic_cmd='$OBJDUMP -f'
5029 darwin* | rhapsody*)
5030 # this will be overwritten by pass_all, but leave it in just in case
5031 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5032 lt_cv_file_magic_cmd='/usr/bin/file -L'
5033 case "$host_os" in
5034 rhapsody* | darwin1.012)
5035 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
5037 *) # Darwin 1.3 on
5038 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5040 esac
5041 lt_cv_deplibs_check_method=pass_all
5044 freebsd* | kfreebsd*-gnu)
5045 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5046 case $host_cpu in
5047 i*86 )
5048 # Not sure whether the presence of OpenBSD here was a mistake.
5049 # Let's accept both of them until this is cleared up.
5050 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5051 lt_cv_file_magic_cmd=/usr/bin/file
5052 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5054 esac
5055 else
5056 lt_cv_deplibs_check_method=pass_all
5060 gnu*)
5061 lt_cv_deplibs_check_method=pass_all
5064 hpux10.20*|hpux11*)
5065 case $host_cpu in
5066 hppa*)
5067 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5068 lt_cv_file_magic_cmd=/usr/bin/file
5069 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5071 ia64*)
5072 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5073 lt_cv_file_magic_cmd=/usr/bin/file
5074 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5076 esac
5079 irix5* | irix6*)
5080 case $host_os in
5081 irix5*)
5082 # this will be overridden with pass_all, but let us keep it just in case
5083 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5086 case $LD in
5087 *-32|*"-32 ") libmagic=32-bit;;
5088 *-n32|*"-n32 ") libmagic=N32;;
5089 *-64|*"-64 ") libmagic=64-bit;;
5090 *) libmagic=never-match;;
5091 esac
5092 # this will be overridden with pass_all, but let us keep it just in case
5093 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5095 esac
5096 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5097 lt_cv_deplibs_check_method=pass_all
5100 # This must be Linux ELF.
5101 linux-gnu*)
5102 lt_cv_deplibs_check_method=pass_all
5105 netbsd* | knetbsd*-gnu)
5106 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5107 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
5108 else
5109 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
5113 newsos6)
5114 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5115 lt_cv_file_magic_cmd=/usr/bin/file
5116 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5119 osf3* | osf4* | osf5*)
5120 # this will be overridden with pass_all, but let us keep it just in case
5121 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5122 lt_cv_file_magic_test_file=/shlib/libc.so
5123 lt_cv_deplibs_check_method=pass_all
5126 sco3.2v5*)
5127 lt_cv_deplibs_check_method=pass_all
5130 solaris*)
5131 lt_cv_deplibs_check_method=pass_all
5132 lt_cv_file_magic_test_file=/lib/libc.so
5135 sysv5uw[78]* | sysv4*uw2*)
5136 lt_cv_deplibs_check_method=pass_all
5139 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5140 case $host_vendor in
5141 ncr)
5142 lt_cv_deplibs_check_method=pass_all
5144 motorola)
5145 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]'
5146 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5148 esac
5150 esac
5153 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5154 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5155 file_magic_cmd=$lt_cv_file_magic_cmd
5156 deplibs_check_method=$lt_cv_deplibs_check_method
5161 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5163 # find the maximum length of command line arguments
5164 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5165 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5166 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5167 echo $ECHO_N "(cached) $ECHO_C" >&6
5168 else
5170 teststring="ABCD"
5172 case $build_os in
5173 msdosdjgpp*)
5174 # On DJGPP, this test can blow up pretty badly due to problems in libc
5175 # (any single argument exceeding 2000 bytes causes a buffer overrun
5176 # during glob expansion). Even if it were fixed, the result of this
5177 # check would be larger than it should be.
5178 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5181 cygwin* | mingw*)
5182 # On Win9x/ME, this test blows up -- it succeeds, but takes
5183 # about 5 minutes as the teststring grows exponentially.
5184 # Worse, since 9x/ME are not pre-emptively multitasking,
5185 # you end up with a "frozen" computer, even though with patience
5186 # the test eventually succeeds (with a max line length of 256k).
5187 # Instead, let's just punt: use the minimum linelength reported by
5188 # all of the supported platforms: 8192 (on NT/2K/XP).
5189 lt_cv_sys_max_cmd_len=8192;
5192 amigaos*)
5193 # On AmigaOS with pdksh, this test takes hours, literally.
5194 # So we just punt and use a minimum line length of 8192.
5195 lt_cv_sys_max_cmd_len=8192;
5198 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5199 # This has been around since 386BSD, at least. Likely further.
5200 if test -x /sbin/sysctl; then
5201 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5202 elif test -x /usr/sbin/sysctl; then
5203 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5204 else
5205 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5207 # And add a safety zone
5208 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5209 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5211 esac
5215 if test -n "$lt_cv_sys_max_cmd_len" ; then
5216 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5217 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5218 else
5219 echo "$as_me:$LINENO: result: none" >&5
5220 echo "${ECHO_T}none" >&6
5224 # Only perform the check for file, if the check method requires it
5225 case $deplibs_check_method in
5226 file_magic*)
5227 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5228 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5229 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5230 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5231 echo $ECHO_N "(cached) $ECHO_C" >&6
5232 else
5233 case $MAGIC_CMD in
5235 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5237 ?:/*)
5238 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5241 ac_save_MAGIC_CMD="$MAGIC_CMD"
5242 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5243 ac_dummy="/usr/bin:$PATH"
5244 for ac_dir in $ac_dummy; do
5245 test -z "$ac_dir" && ac_dir=.
5246 if test -f $ac_dir/${ac_tool_prefix}file; then
5247 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5248 if test -n "$file_magic_test_file"; then
5249 case $deplibs_check_method in
5250 "file_magic "*)
5251 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5252 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5253 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5254 egrep "$file_magic_regex" > /dev/null; then
5256 else
5257 cat <<EOF 1>&2
5259 *** Warning: the command libtool uses to detect shared libraries,
5260 *** $file_magic_cmd, produces output that libtool cannot recognize.
5261 *** The result is that libtool may fail to recognize shared libraries
5262 *** as such. This will affect the creation of libtool libraries that
5263 *** depend on shared libraries, but programs linked with such libtool
5264 *** libraries will work regardless of this problem. Nevertheless, you
5265 *** may want to report the problem to your system manager and/or to
5266 *** bug-libtool@gnu.org
5269 fi ;;
5270 esac
5272 break
5274 done
5275 IFS="$ac_save_ifs"
5276 MAGIC_CMD="$ac_save_MAGIC_CMD"
5278 esac
5281 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5282 if test -n "$MAGIC_CMD"; then
5283 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5284 echo "${ECHO_T}$MAGIC_CMD" >&6
5285 else
5286 echo "$as_me:$LINENO: result: no" >&5
5287 echo "${ECHO_T}no" >&6
5290 if test -z "$lt_cv_path_MAGIC_CMD"; then
5291 if test -n "$ac_tool_prefix"; then
5292 echo "$as_me:$LINENO: checking for file" >&5
5293 echo $ECHO_N "checking for file... $ECHO_C" >&6
5294 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5295 echo $ECHO_N "(cached) $ECHO_C" >&6
5296 else
5297 case $MAGIC_CMD in
5299 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5301 ?:/*)
5302 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5305 ac_save_MAGIC_CMD="$MAGIC_CMD"
5306 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5307 ac_dummy="/usr/bin:$PATH"
5308 for ac_dir in $ac_dummy; do
5309 test -z "$ac_dir" && ac_dir=.
5310 if test -f $ac_dir/file; then
5311 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5312 if test -n "$file_magic_test_file"; then
5313 case $deplibs_check_method in
5314 "file_magic "*)
5315 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5316 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5317 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5318 egrep "$file_magic_regex" > /dev/null; then
5320 else
5321 cat <<EOF 1>&2
5323 *** Warning: the command libtool uses to detect shared libraries,
5324 *** $file_magic_cmd, produces output that libtool cannot recognize.
5325 *** The result is that libtool may fail to recognize shared libraries
5326 *** as such. This will affect the creation of libtool libraries that
5327 *** depend on shared libraries, but programs linked with such libtool
5328 *** libraries will work regardless of this problem. Nevertheless, you
5329 *** may want to report the problem to your system manager and/or to
5330 *** bug-libtool@gnu.org
5333 fi ;;
5334 esac
5336 break
5338 done
5339 IFS="$ac_save_ifs"
5340 MAGIC_CMD="$ac_save_MAGIC_CMD"
5342 esac
5345 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5346 if test -n "$MAGIC_CMD"; then
5347 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5348 echo "${ECHO_T}$MAGIC_CMD" >&6
5349 else
5350 echo "$as_me:$LINENO: result: no" >&5
5351 echo "${ECHO_T}no" >&6
5354 else
5355 MAGIC_CMD=:
5361 esac
5363 if test -n "$ac_tool_prefix"; then
5364 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5365 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5366 echo "$as_me:$LINENO: checking for $ac_word" >&5
5367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5368 if test "${ac_cv_prog_RANLIB+set}" = set; then
5369 echo $ECHO_N "(cached) $ECHO_C" >&6
5370 else
5371 if test -n "$RANLIB"; then
5372 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5373 else
5374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5375 for as_dir in $PATH
5377 IFS=$as_save_IFS
5378 test -z "$as_dir" && as_dir=.
5379 for ac_exec_ext in '' $ac_executable_extensions; do
5380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5381 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5383 break 2
5385 done
5386 done
5390 RANLIB=$ac_cv_prog_RANLIB
5391 if test -n "$RANLIB"; then
5392 echo "$as_me:$LINENO: result: $RANLIB" >&5
5393 echo "${ECHO_T}$RANLIB" >&6
5394 else
5395 echo "$as_me:$LINENO: result: no" >&5
5396 echo "${ECHO_T}no" >&6
5400 if test -z "$ac_cv_prog_RANLIB"; then
5401 ac_ct_RANLIB=$RANLIB
5402 # Extract the first word of "ranlib", so it can be a program name with args.
5403 set dummy ranlib; ac_word=$2
5404 echo "$as_me:$LINENO: checking for $ac_word" >&5
5405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5406 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5407 echo $ECHO_N "(cached) $ECHO_C" >&6
5408 else
5409 if test -n "$ac_ct_RANLIB"; then
5410 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5411 else
5412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5413 for as_dir in $PATH
5415 IFS=$as_save_IFS
5416 test -z "$as_dir" && as_dir=.
5417 for ac_exec_ext in '' $ac_executable_extensions; do
5418 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5419 ac_cv_prog_ac_ct_RANLIB="ranlib"
5420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5421 break 2
5423 done
5424 done
5426 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5429 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5430 if test -n "$ac_ct_RANLIB"; then
5431 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5432 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5433 else
5434 echo "$as_me:$LINENO: result: no" >&5
5435 echo "${ECHO_T}no" >&6
5438 RANLIB=$ac_ct_RANLIB
5439 else
5440 RANLIB="$ac_cv_prog_RANLIB"
5443 if test -n "$ac_tool_prefix"; then
5444 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5445 set dummy ${ac_tool_prefix}strip; ac_word=$2
5446 echo "$as_me:$LINENO: checking for $ac_word" >&5
5447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5448 if test "${ac_cv_prog_STRIP+set}" = set; then
5449 echo $ECHO_N "(cached) $ECHO_C" >&6
5450 else
5451 if test -n "$STRIP"; then
5452 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5453 else
5454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455 for as_dir in $PATH
5457 IFS=$as_save_IFS
5458 test -z "$as_dir" && as_dir=.
5459 for ac_exec_ext in '' $ac_executable_extensions; do
5460 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5461 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5463 break 2
5465 done
5466 done
5470 STRIP=$ac_cv_prog_STRIP
5471 if test -n "$STRIP"; then
5472 echo "$as_me:$LINENO: result: $STRIP" >&5
5473 echo "${ECHO_T}$STRIP" >&6
5474 else
5475 echo "$as_me:$LINENO: result: no" >&5
5476 echo "${ECHO_T}no" >&6
5480 if test -z "$ac_cv_prog_STRIP"; then
5481 ac_ct_STRIP=$STRIP
5482 # Extract the first word of "strip", so it can be a program name with args.
5483 set dummy strip; ac_word=$2
5484 echo "$as_me:$LINENO: checking for $ac_word" >&5
5485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5486 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5487 echo $ECHO_N "(cached) $ECHO_C" >&6
5488 else
5489 if test -n "$ac_ct_STRIP"; then
5490 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5491 else
5492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493 for as_dir in $PATH
5495 IFS=$as_save_IFS
5496 test -z "$as_dir" && as_dir=.
5497 for ac_exec_ext in '' $ac_executable_extensions; do
5498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5499 ac_cv_prog_ac_ct_STRIP="strip"
5500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5501 break 2
5503 done
5504 done
5506 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5509 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5510 if test -n "$ac_ct_STRIP"; then
5511 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5512 echo "${ECHO_T}$ac_ct_STRIP" >&6
5513 else
5514 echo "$as_me:$LINENO: result: no" >&5
5515 echo "${ECHO_T}no" >&6
5518 STRIP=$ac_ct_STRIP
5519 else
5520 STRIP="$ac_cv_prog_STRIP"
5524 # Check for any special flags to pass to ltconfig.
5525 libtool_flags="--cache-file=$cache_file"
5526 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
5527 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
5528 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
5529 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
5530 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
5533 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5534 if test "${enable_libtool_lock+set}" = set; then
5535 enableval="$enable_libtool_lock"
5538 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
5539 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
5542 # Check whether --with-pic or --without-pic was given.
5543 if test "${with_pic+set}" = set; then
5544 withval="$with_pic"
5545 pic_mode="$withval"
5546 else
5547 pic_mode=default
5549 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
5550 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
5552 # Some flags need to be propagated to the compiler or linker for good
5553 # libtool support.
5554 case $host in
5555 *-*-irix6*)
5556 # Find out which ABI we are using.
5557 echo '#line 5557 "configure"' > conftest.$ac_ext
5558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5559 (eval $ac_compile) 2>&5
5560 ac_status=$?
5561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562 (exit $ac_status); }; then
5563 if test "$lt_cv_prog_gnu_ld" = yes; then
5564 case `/usr/bin/file conftest.$ac_objext` in
5565 *32-bit*)
5566 LD="${LD-ld} -melf32bsmip"
5568 *N32*)
5569 LD="${LD-ld} -melf32bmipn32"
5571 *64-bit*)
5572 LD="${LD-ld} -melf64bmip"
5574 esac
5575 else
5576 case `/usr/bin/file conftest.$ac_objext` in
5577 *32-bit*)
5578 LD="${LD-ld} -32"
5580 *N32*)
5581 LD="${LD-ld} -n32"
5583 *64-bit*)
5584 LD="${LD-ld} -64"
5586 esac
5589 rm -rf conftest*
5592 ia64-*-hpux*)
5593 # Find out which ABI we are using.
5594 echo 'int i;' > conftest.$ac_ext
5595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5596 (eval $ac_compile) 2>&5
5597 ac_status=$?
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); }; then
5600 case "`/usr/bin/file conftest.o`" in
5601 *ELF-32*)
5602 HPUX_IA64_MODE="32"
5604 *ELF-64*)
5605 HPUX_IA64_MODE="64"
5607 esac
5609 rm -rf conftest*
5612 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5613 # Find out which ABI we are using.
5614 echo 'int i;' > conftest.$ac_ext
5615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5616 (eval $ac_compile) 2>&5
5617 ac_status=$?
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); }; then
5620 case "`/usr/bin/file conftest.o`" in
5621 *32-bit*)
5622 case $host in
5623 x86_64-*linux*)
5624 LD="${LD-ld} -m elf_i386"
5626 ppc64-*linux*|powerpc64-*linux*)
5627 LD="${LD-ld} -m elf32ppclinux"
5629 s390x-*linux*)
5630 LD="${LD-ld} -m elf_s390"
5632 sparc64-*linux*)
5633 LD="${LD-ld} -m elf32_sparc"
5635 esac
5637 *64-bit*)
5638 case $host in
5639 x86_64-*linux*)
5640 LD="${LD-ld} -m elf_x86_64"
5642 ppc*-*linux*|powerpc*-*linux*)
5643 LD="${LD-ld} -m elf64ppc"
5645 s390*-*linux*)
5646 LD="${LD-ld} -m elf64_s390"
5648 sparc*-*linux*)
5649 LD="${LD-ld} -m elf64_sparc"
5651 esac
5653 esac
5655 rm -rf conftest*
5658 *-*-sco3.2v5*)
5659 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5660 SAVE_CFLAGS="$CFLAGS"
5661 CFLAGS="$CFLAGS -belf"
5662 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5663 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5664 if test "${lt_cv_cc_needs_belf+set}" = set; then
5665 echo $ECHO_N "(cached) $ECHO_C" >&6
5666 else
5669 ac_ext=c
5670 ac_cpp='$CPP $CPPFLAGS'
5671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5675 if test x$gcc_no_link = xyes; then
5676 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5677 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5678 { (exit 1); exit 1; }; }
5680 cat >conftest.$ac_ext <<_ACEOF
5681 /* confdefs.h. */
5682 _ACEOF
5683 cat confdefs.h >>conftest.$ac_ext
5684 cat >>conftest.$ac_ext <<_ACEOF
5685 /* end confdefs.h. */
5688 main ()
5692 return 0;
5694 _ACEOF
5695 rm -f conftest.$ac_objext conftest$ac_exeext
5696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5697 (eval $ac_link) 2>conftest.er1
5698 ac_status=$?
5699 grep -v '^ *+' conftest.er1 >conftest.err
5700 rm -f conftest.er1
5701 cat conftest.err >&5
5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703 (exit $ac_status); } &&
5704 { ac_try='test -z "$ac_c_werror_flag"
5705 || test ! -s conftest.err'
5706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5707 (eval $ac_try) 2>&5
5708 ac_status=$?
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); }; } &&
5711 { ac_try='test -s conftest$ac_exeext'
5712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713 (eval $ac_try) 2>&5
5714 ac_status=$?
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; }; then
5717 lt_cv_cc_needs_belf=yes
5718 else
5719 echo "$as_me: failed program was:" >&5
5720 sed 's/^/| /' conftest.$ac_ext >&5
5722 lt_cv_cc_needs_belf=no
5724 rm -f conftest.err conftest.$ac_objext \
5725 conftest$ac_exeext conftest.$ac_ext
5726 ac_ext=c
5727 ac_cpp='$CPP $CPPFLAGS'
5728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5733 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5734 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5735 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5736 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5737 CFLAGS="$SAVE_CFLAGS"
5742 esac
5745 # Save cache, so that ltconfig can load it
5746 cat >confcache <<\_ACEOF
5747 # This file is a shell script that caches the results of configure
5748 # tests run on this system so they can be shared between configure
5749 # scripts and configure runs, see configure's option --config-cache.
5750 # It is not useful on other systems. If it contains results you don't
5751 # want to keep, you may remove or edit it.
5753 # config.status only pays attention to the cache file if you give it
5754 # the --recheck option to rerun configure.
5756 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5757 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5758 # following values.
5760 _ACEOF
5762 # The following way of writing the cache mishandles newlines in values,
5763 # but we know of no workaround that is simple, portable, and efficient.
5764 # So, don't put newlines in cache variables' values.
5765 # Ultrix sh set writes to stderr and can't be redirected directly,
5766 # and sets the high bit in the cache file unless we assign to the vars.
5768 (set) 2>&1 |
5769 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5770 *ac_space=\ *)
5771 # `set' does not quote correctly, so add quotes (double-quote
5772 # substitution turns \\\\ into \\, and sed turns \\ into \).
5773 sed -n \
5774 "s/'/'\\\\''/g;
5775 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5778 # `set' quotes correctly as required by POSIX, so do not add quotes.
5779 sed -n \
5780 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5782 esac;
5784 sed '
5785 t clear
5786 : clear
5787 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5788 t end
5789 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5790 : end' >>confcache
5791 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5792 if test -w $cache_file; then
5793 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5794 cat confcache >$cache_file
5795 else
5796 echo "not updating unwritable cache $cache_file"
5799 rm -f confcache
5801 # Actually configure libtool. ac_aux_dir is where install-sh is found.
5802 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
5803 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5804 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5805 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5806 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5807 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
5808 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
5809 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5810 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5811 echo "$as_me: error: libtool configure failed" >&2;}
5812 { (exit 1); exit 1; }; }
5814 # Reload cache, that may have been modified by ltconfig
5815 if test -r "$cache_file"; then
5816 # Some versions of bash will fail to source /dev/null (special
5817 # files actually), so we avoid doing that.
5818 if test -f "$cache_file"; then
5819 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5820 echo "$as_me: loading cache $cache_file" >&6;}
5821 case $cache_file in
5822 [\\/]* | ?:[\\/]* ) . $cache_file;;
5823 *) . ./$cache_file;;
5824 esac
5826 else
5827 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5828 echo "$as_me: creating cache $cache_file" >&6;}
5829 >$cache_file
5833 # This can be used to rebuild libtool when needed
5834 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5836 # Always use our own libtool.
5837 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5839 # Redirect the config.log output again, so that the ltconfig log is not
5840 # clobbered by the next message.
5841 exec 5>>./config.log
5843 ac_ext=cc
5844 ac_cpp='$CXXCPP $CPPFLAGS'
5845 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5846 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5847 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5848 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5849 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5850 if test -z "$CXXCPP"; then
5851 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5852 echo $ECHO_N "(cached) $ECHO_C" >&6
5853 else
5854 # Double quotes because CXXCPP needs to be expanded
5855 for CXXCPP in "$CXX -E" "/lib/cpp"
5857 ac_preproc_ok=false
5858 for ac_cxx_preproc_warn_flag in '' yes
5860 # Use a header file that comes with gcc, so configuring glibc
5861 # with a fresh cross-compiler works.
5862 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5863 # <limits.h> exists even on freestanding compilers.
5864 # On the NeXT, cc -E runs the code through the compiler's parser,
5865 # not just through cpp. "Syntax error" is here to catch this case.
5866 cat >conftest.$ac_ext <<_ACEOF
5867 /* confdefs.h. */
5868 _ACEOF
5869 cat confdefs.h >>conftest.$ac_ext
5870 cat >>conftest.$ac_ext <<_ACEOF
5871 /* end confdefs.h. */
5872 #ifdef __STDC__
5873 # include <limits.h>
5874 #else
5875 # include <assert.h>
5876 #endif
5877 Syntax error
5878 _ACEOF
5879 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5880 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5881 ac_status=$?
5882 grep -v '^ *+' conftest.er1 >conftest.err
5883 rm -f conftest.er1
5884 cat conftest.err >&5
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); } >/dev/null; then
5887 if test -s conftest.err; then
5888 ac_cpp_err=$ac_cxx_preproc_warn_flag
5889 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5890 else
5891 ac_cpp_err=
5893 else
5894 ac_cpp_err=yes
5896 if test -z "$ac_cpp_err"; then
5898 else
5899 echo "$as_me: failed program was:" >&5
5900 sed 's/^/| /' conftest.$ac_ext >&5
5902 # Broken: fails on valid input.
5903 continue
5905 rm -f conftest.err conftest.$ac_ext
5907 # OK, works on sane cases. Now check whether non-existent headers
5908 # can be detected and how.
5909 cat >conftest.$ac_ext <<_ACEOF
5910 /* confdefs.h. */
5911 _ACEOF
5912 cat confdefs.h >>conftest.$ac_ext
5913 cat >>conftest.$ac_ext <<_ACEOF
5914 /* end confdefs.h. */
5915 #include <ac_nonexistent.h>
5916 _ACEOF
5917 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5918 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5919 ac_status=$?
5920 grep -v '^ *+' conftest.er1 >conftest.err
5921 rm -f conftest.er1
5922 cat conftest.err >&5
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); } >/dev/null; then
5925 if test -s conftest.err; then
5926 ac_cpp_err=$ac_cxx_preproc_warn_flag
5927 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5928 else
5929 ac_cpp_err=
5931 else
5932 ac_cpp_err=yes
5934 if test -z "$ac_cpp_err"; then
5935 # Broken: success on invalid input.
5936 continue
5937 else
5938 echo "$as_me: failed program was:" >&5
5939 sed 's/^/| /' conftest.$ac_ext >&5
5941 # Passes both tests.
5942 ac_preproc_ok=:
5943 break
5945 rm -f conftest.err conftest.$ac_ext
5947 done
5948 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5949 rm -f conftest.err conftest.$ac_ext
5950 if $ac_preproc_ok; then
5951 break
5954 done
5955 ac_cv_prog_CXXCPP=$CXXCPP
5958 CXXCPP=$ac_cv_prog_CXXCPP
5959 else
5960 ac_cv_prog_CXXCPP=$CXXCPP
5962 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5963 echo "${ECHO_T}$CXXCPP" >&6
5964 ac_preproc_ok=false
5965 for ac_cxx_preproc_warn_flag in '' yes
5967 # Use a header file that comes with gcc, so configuring glibc
5968 # with a fresh cross-compiler works.
5969 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5970 # <limits.h> exists even on freestanding compilers.
5971 # On the NeXT, cc -E runs the code through the compiler's parser,
5972 # not just through cpp. "Syntax error" is here to catch this case.
5973 cat >conftest.$ac_ext <<_ACEOF
5974 /* confdefs.h. */
5975 _ACEOF
5976 cat confdefs.h >>conftest.$ac_ext
5977 cat >>conftest.$ac_ext <<_ACEOF
5978 /* end confdefs.h. */
5979 #ifdef __STDC__
5980 # include <limits.h>
5981 #else
5982 # include <assert.h>
5983 #endif
5984 Syntax error
5985 _ACEOF
5986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5988 ac_status=$?
5989 grep -v '^ *+' conftest.er1 >conftest.err
5990 rm -f conftest.er1
5991 cat conftest.err >&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); } >/dev/null; then
5994 if test -s conftest.err; then
5995 ac_cpp_err=$ac_cxx_preproc_warn_flag
5996 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5997 else
5998 ac_cpp_err=
6000 else
6001 ac_cpp_err=yes
6003 if test -z "$ac_cpp_err"; then
6005 else
6006 echo "$as_me: failed program was:" >&5
6007 sed 's/^/| /' conftest.$ac_ext >&5
6009 # Broken: fails on valid input.
6010 continue
6012 rm -f conftest.err conftest.$ac_ext
6014 # OK, works on sane cases. Now check whether non-existent headers
6015 # can be detected and how.
6016 cat >conftest.$ac_ext <<_ACEOF
6017 /* confdefs.h. */
6018 _ACEOF
6019 cat confdefs.h >>conftest.$ac_ext
6020 cat >>conftest.$ac_ext <<_ACEOF
6021 /* end confdefs.h. */
6022 #include <ac_nonexistent.h>
6023 _ACEOF
6024 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6025 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6026 ac_status=$?
6027 grep -v '^ *+' conftest.er1 >conftest.err
6028 rm -f conftest.er1
6029 cat conftest.err >&5
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); } >/dev/null; then
6032 if test -s conftest.err; then
6033 ac_cpp_err=$ac_cxx_preproc_warn_flag
6034 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6035 else
6036 ac_cpp_err=
6038 else
6039 ac_cpp_err=yes
6041 if test -z "$ac_cpp_err"; then
6042 # Broken: success on invalid input.
6043 continue
6044 else
6045 echo "$as_me: failed program was:" >&5
6046 sed 's/^/| /' conftest.$ac_ext >&5
6048 # Passes both tests.
6049 ac_preproc_ok=:
6050 break
6052 rm -f conftest.err conftest.$ac_ext
6054 done
6055 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6056 rm -f conftest.err conftest.$ac_ext
6057 if $ac_preproc_ok; then
6059 else
6060 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6061 See \`config.log' for more details." >&5
6062 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6063 See \`config.log' for more details." >&2;}
6064 { (exit 1); exit 1; }; }
6067 ac_ext=c
6068 ac_cpp='$CPP $CPPFLAGS'
6069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6075 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
6076 lt_save_CC="$CC"
6077 lt_save_CFLAGS="$CFLAGS"
6078 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
6079 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6080 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6081 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6082 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6083 deplibs_check_method="$deplibs_check_method" \
6084 file_magic_cmd="$file_magic_cmd" \
6085 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6086 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
6087 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6088 echo "$as_me: error: libtool tag configuration failed" >&2;}
6089 { (exit 1); exit 1; }; }
6090 CC="$lt_save_CC"
6091 CFLAGS="$lt_save_CFLAGS"
6093 # Redirect the config.log output again, so that the ltconfig log is not
6094 # clobbered by the next message.
6095 exec 5>>./config.log
6103 for ac_prog in gcj
6105 # Extract the first word of "$ac_prog", so it can be a program name with args.
6106 set dummy $ac_prog; ac_word=$2
6107 echo "$as_me:$LINENO: checking for $ac_word" >&5
6108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6109 if test "${ac_cv_prog_GCJ+set}" = set; then
6110 echo $ECHO_N "(cached) $ECHO_C" >&6
6111 else
6112 if test -n "$GCJ"; then
6113 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
6114 else
6115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6116 for as_dir in $PATH
6118 IFS=$as_save_IFS
6119 test -z "$as_dir" && as_dir=.
6120 for ac_exec_ext in '' $ac_executable_extensions; do
6121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6122 ac_cv_prog_GCJ="$ac_prog"
6123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6124 break 2
6126 done
6127 done
6131 GCJ=$ac_cv_prog_GCJ
6132 if test -n "$GCJ"; then
6133 echo "$as_me:$LINENO: result: $GCJ" >&5
6134 echo "${ECHO_T}$GCJ" >&6
6135 else
6136 echo "$as_me:$LINENO: result: no" >&5
6137 echo "${ECHO_T}no" >&6
6140 test -n "$GCJ" && break
6141 done
6142 test -n "$GCJ" || GCJ="gcj"
6144 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
6145 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
6146 { (exit 1); exit 1; }; }
6147 if test "x${GCJFLAGS-unset}" = xunset; then
6148 GCJFLAGS="-g -O2"
6152 depcc="$GCJ" am_compiler_list='gcc3 gcc'
6154 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6155 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6156 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
6158 else
6159 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6160 # We make a subdir and do the tests there. Otherwise we can end up
6161 # making bogus files that we don't know about and never remove. For
6162 # instance it was reported that on HP-UX the gcc test will end up
6163 # making a dummy file named `D' -- because `-MD' means `put the output
6164 # in D'.
6165 mkdir conftest.dir
6166 # Copy depcomp to subdir because otherwise we won't find it if we're
6167 # using a relative directory.
6168 cp "$am_depcomp" conftest.dir
6169 cd conftest.dir
6170 # We will build objects and dependencies in a subdirectory because
6171 # it helps to detect inapplicable dependency modes. For instance
6172 # both Tru64's cc and ICC support -MD to output dependencies as a
6173 # side effect of compilation, but ICC will put the dependencies in
6174 # the current directory while Tru64 will put them in the object
6175 # directory.
6176 mkdir sub
6178 am_cv_GCJ_dependencies_compiler_type=none
6179 if test "$am_compiler_list" = ""; then
6180 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6182 for depmode in $am_compiler_list; do
6183 # Setup a source with many dependencies, because some compilers
6184 # like to wrap large dependency lists on column 80 (with \), and
6185 # we should not choose a depcomp mode which is confused by this.
6187 # We need to recreate these files for each test, as the compiler may
6188 # overwrite some of them when testing with obscure command lines.
6189 # This happens at least with the AIX C compiler.
6190 : > sub/conftest.c
6191 for i in 1 2 3 4 5 6; do
6192 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6193 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6194 # Solaris 8's {/usr,}/bin/sh.
6195 touch sub/conftst$i.h
6196 done
6197 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6199 case $depmode in
6200 nosideeffect)
6201 # after this tag, mechanisms are not by side-effect, so they'll
6202 # only be used when explicitly requested
6203 if test "x$enable_dependency_tracking" = xyes; then
6204 continue
6205 else
6206 break
6209 none) break ;;
6210 esac
6211 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6212 # mode. It turns out that the SunPro C++ compiler does not properly
6213 # handle `-M -o', and we need to detect this.
6214 if depmode=$depmode \
6215 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6216 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6217 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6218 >/dev/null 2>conftest.err &&
6219 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6220 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6221 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6222 # icc doesn't choke on unknown options, it will just issue warnings
6223 # or remarks (even with -Werror). So we grep stderr for any message
6224 # that says an option was ignored or not supported.
6225 # When given -MP, icc 7.0 and 7.1 complain thusly:
6226 # icc: Command line warning: ignoring option '-M'; no argument required
6227 # The diagnosis changed in icc 8.0:
6228 # icc: Command line remark: option '-MP' not supported
6229 if (grep 'ignoring option' conftest.err ||
6230 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6231 am_cv_GCJ_dependencies_compiler_type=$depmode
6232 break
6235 done
6237 cd ..
6238 rm -rf conftest.dir
6239 else
6240 am_cv_GCJ_dependencies_compiler_type=none
6244 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
6245 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
6246 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
6251 test "x$enable_dependency_tracking" != xno \
6252 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
6253 am__fastdepGCJ_TRUE=
6254 am__fastdepGCJ_FALSE='#'
6255 else
6256 am__fastdepGCJ_TRUE='#'
6257 am__fastdepGCJ_FALSE=
6263 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
6264 lt_save_CC="$CC"
6265 lt_save_CFLAGS="$CFLAGS"
6266 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
6267 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6268 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6269 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6270 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6271 deplibs_check_method="$deplibs_check_method" \
6272 file_magic_cmd="$file_magic_cmd" \
6273 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6274 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
6275 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6276 echo "$as_me: error: libtool tag configuration failed" >&2;}
6277 { (exit 1); exit 1; }; }
6278 CC="$lt_save_CC"
6279 CFLAGS="$lt_save_CFLAGS"
6281 # Redirect the config.log output again, so that the ltconfig log is not
6282 # clobbered by the next message.
6283 exec 5>>./config.log
6287 if test "x$CC" != xcc; then
6288 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
6289 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
6290 else
6291 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
6292 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
6294 set dummy $CC; ac_cc=`echo $2 |
6295 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6296 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
6297 echo $ECHO_N "(cached) $ECHO_C" >&6
6298 else
6299 cat >conftest.$ac_ext <<_ACEOF
6300 /* confdefs.h. */
6301 _ACEOF
6302 cat confdefs.h >>conftest.$ac_ext
6303 cat >>conftest.$ac_ext <<_ACEOF
6304 /* end confdefs.h. */
6307 main ()
6311 return 0;
6313 _ACEOF
6314 # Make sure it works both with $CC and with simple cc.
6315 # We do the test twice because some compilers refuse to overwrite an
6316 # existing .o file with -o, though they will create one.
6317 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6318 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6319 (eval $ac_try) 2>&5
6320 ac_status=$?
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); } &&
6323 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6324 (eval $ac_try) 2>&5
6325 ac_status=$?
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); };
6328 then
6329 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6330 if test "x$CC" != xcc; then
6331 # Test first that cc exists at all.
6332 if { ac_try='cc -c conftest.$ac_ext >&5'
6333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6334 (eval $ac_try) 2>&5
6335 ac_status=$?
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); }; }; then
6338 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6339 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6340 (eval $ac_try) 2>&5
6341 ac_status=$?
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); } &&
6344 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6345 (eval $ac_try) 2>&5
6346 ac_status=$?
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); };
6349 then
6350 # cc works too.
6352 else
6353 # cc exists but doesn't like -o.
6354 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6358 else
6359 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6361 rm -f conftest*
6364 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
6365 echo "$as_me:$LINENO: result: yes" >&5
6366 echo "${ECHO_T}yes" >&6
6367 else
6368 echo "$as_me:$LINENO: result: no" >&5
6369 echo "${ECHO_T}no" >&6
6371 cat >>confdefs.h <<\_ACEOF
6372 #define NO_MINUS_C_MINUS_O 1
6373 _ACEOF
6377 # FIXME: we rely on the cache variable name because
6378 # there is no other way.
6379 set dummy $CC
6380 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6381 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
6382 # Losing compiler, so override with the script.
6383 # FIXME: It is wrong to rewrite CC.
6384 # But if we don't then we get into trouble of one sort or another.
6385 # A longer-term fix would be to have automake use am__CC in this case,
6386 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6387 CC="$am_aux_dir/compile $CC"
6393 subdirs="$subdirs classpath libltdl"
6396 # The -no-testsuite modules omit the test subdir.
6399 if test -d $srcdir/testsuite; then
6400 TESTSUBDIR_TRUE=
6401 TESTSUBDIR_FALSE='#'
6402 else
6403 TESTSUBDIR_TRUE='#'
6404 TESTSUBDIR_FALSE=
6408 # Should the runtime set system properties by examining the
6409 # environment variable GCJ_PROPERTIES?
6410 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
6411 if test "${enable_getenv_properties+set}" = set; then
6412 enableval="$enable_getenv_properties"
6416 # Whether GCJ_PROPERTIES is used depends on the target.
6417 if test -z "$enable_getenv_properties"; then
6418 enable_getenv_properties=${enable_getenv_properties_default-yes}
6420 if test "$enable_getenv_properties" = no; then
6422 cat >>confdefs.h <<\_ACEOF
6423 #define DISABLE_GETENV_PROPERTIES 1
6424 _ACEOF
6428 # Whether we should use arguments to main()
6429 if test -z "$enable_main_args"; then
6430 enable_main_args=${enable_main_args_default-yes}
6432 if test "$enable_main_args" = no; then
6434 cat >>confdefs.h <<\_ACEOF
6435 #define DISABLE_MAIN_ARGS 1
6436 _ACEOF
6441 # Should we use hashtable-based synchronization?
6442 # Currently works only for Linux X86/ia64
6443 # Typically faster and more space-efficient
6444 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
6445 if test "${enable_hash_synchronization+set}" = set; then
6446 enableval="$enable_hash_synchronization"
6450 if test -z "$enable_hash_synchronization"; then
6451 enable_hash_synchronization=$enable_hash_synchronization_default
6455 # Check whether --with-java-home or --without-java-home was given.
6456 if test "${with_java_home+set}" = set; then
6457 withval="$with_java_home"
6458 JAVA_HOME="${withval}"
6459 else
6460 JAVA_HOME=""
6464 if test ! -z "$JAVA_HOME"; then
6465 JAVA_HOME_SET_TRUE=
6466 JAVA_HOME_SET_FALSE='#'
6467 else
6468 JAVA_HOME_SET_TRUE='#'
6469 JAVA_HOME_SET_FALSE=
6474 # What is the native OS API for MinGW?
6476 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
6477 if test "${with_win32_nlsapi+set}" = set; then
6478 withval="$with_win32_nlsapi"
6479 case "${withval}" in
6480 ansi) with_win32_nlsapi=ansi ;;
6481 unicows) with_win32_nlsapi=unicows ;;
6482 unicode) with_win32_nlsapi=unicode ;;
6483 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
6484 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
6485 { (exit 1); exit 1; }; } ;;
6486 esac
6487 else
6488 with_win32_nlsapi=ansi
6491 case "${with_win32_nlsapi}" in
6492 unicows | unicode)
6494 cat >>confdefs.h <<\_ACEOF
6495 #define MINGW_LIBGCJ_UNICODE 1
6496 _ACEOF
6499 esac
6501 # configure.host sets slow_pthread_self if the synchronization code should
6502 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
6503 if test "${slow_pthread_self}" = "yes"; then
6505 cat >>confdefs.h <<\_ACEOF
6506 #define SLOW_PTHREAD_SELF 1
6507 _ACEOF
6511 # Check for gc debugging. This option is handled both here and in the GC.
6512 # Check whether --enable-gc-debug or --disable-gc-debug was given.
6513 if test "${enable_gc_debug+set}" = set; then
6514 enableval="$enable_gc_debug"
6515 if test "$enable_gc_debug" = "yes"; then
6517 cat >>confdefs.h <<\_ACEOF
6518 #define LIBGCJ_GC_DEBUG 1
6519 _ACEOF
6524 # See if the user has the interpreter included.
6525 # Check whether --enable-interpreter or --disable-interpreter was given.
6526 if test "${enable_interpreter+set}" = set; then
6527 enableval="$enable_interpreter"
6528 if test "$enable_interpreter" = yes; then
6529 # This can also be set in configure.host.
6530 libgcj_interpreter=yes
6531 elif test "$enable_interpreter" = no; then
6532 libgcj_interpreter=no
6536 if test "$libgcj_interpreter" = yes; then
6538 cat >>confdefs.h <<\_ACEOF
6539 #define INTERPRETER 1
6540 _ACEOF
6543 INTERPRETER="$libgcj_interpreter"
6546 echo "$as_me:$LINENO: checking for exception model to use" >&5
6547 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
6548 ac_ext=cc
6549 ac_cpp='$CXXCPP $CPPFLAGS'
6550 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6551 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6552 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6554 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
6555 if test "${enable_sjlj_exceptions+set}" = set; then
6556 enableval="$enable_sjlj_exceptions"
6558 else
6559 cat > conftest.$ac_ext << EOF
6560 #line 6560 "configure"
6561 struct S { ~S(); };
6562 void bar();
6563 void foo()
6565 S s;
6566 bar();
6569 old_CXXFLAGS="$CXXFLAGS"
6570 CXXFLAGS=-S
6571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6572 (eval $ac_compile) 2>&5
6573 ac_status=$?
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); }; then
6576 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
6577 enable_sjlj_exceptions=yes
6578 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
6579 enable_sjlj_exceptions=no
6582 CXXFLAGS="$old_CXXFLAGS"
6583 rm -f conftest*
6585 if test x$enable_sjlj_exceptions = xyes; then
6587 cat >>confdefs.h <<\_ACEOF
6588 #define SJLJ_EXCEPTIONS 1
6589 _ACEOF
6591 ac_exception_model_name=sjlj
6592 elif test x$enable_sjlj_exceptions = xno; then
6593 ac_exception_model_name="call frame"
6594 else
6595 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
6596 echo "$as_me: error: unable to detect exception model" >&2;}
6597 { (exit 1); exit 1; }; }
6599 ac_ext=c
6600 ac_cpp='$CPP $CPPFLAGS'
6601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6605 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
6606 echo "${ECHO_T}$ac_exception_model_name" >&6
6608 # If we are non using SJLJ exceptions, and this host does not have support
6609 # for unwinding from a signal handler, enable checked dereferences and divides.
6610 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
6611 CHECKREFSPEC=-fcheck-references
6612 DIVIDESPEC=-fuse-divide-subroutine
6613 EXCEPTIONSPEC=
6616 # See if the user wants to disable java.net. This is the mildly
6617 # ugly way that we admit that target-side configuration sucks.
6618 # Check whether --enable-java-net or --disable-java-net was given.
6619 if test "${enable_java_net+set}" = set; then
6620 enableval="$enable_java_net"
6624 # Whether java.net is built by default can depend on the target.
6625 if test -z "$enable_java_net"; then
6626 enable_java_net=${enable_java_net_default-yes}
6628 if test "$enable_java_net" = no; then
6630 cat >>confdefs.h <<\_ACEOF
6631 #define DISABLE_JAVA_NET 1
6632 _ACEOF
6636 # See if the user wants to configure without libffi. Some
6637 # architectures don't support it, and default values are set in
6638 # configure.host.
6640 # Check whether --with-libffi or --without-libffi was given.
6641 if test "${with_libffi+set}" = set; then
6642 withval="$with_libffi"
6644 else
6645 with_libffi=${with_libffi_default-yes}
6648 LIBFFI=
6649 LIBFFIINCS=
6650 if test "$with_libffi" != no; then
6652 cat >>confdefs.h <<\_ACEOF
6653 #define USE_LIBFFI 1
6654 _ACEOF
6656 LIBFFI=../libffi/libffi_convenience.la
6657 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
6662 # See if the user wants to disable JVMPI support.
6663 # Check whether --enable-jvmpi or --disable-jvmpi was given.
6664 if test "${enable_jvmpi+set}" = set; then
6665 enableval="$enable_jvmpi"
6669 if test "$enable_jvmpi" != no; then
6671 cat >>confdefs.h <<\_ACEOF
6672 #define ENABLE_JVMPI 1
6673 _ACEOF
6677 # If the target is an eCos system, use the appropriate eCos
6678 # I/O routines.
6679 # FIXME: this should not be a local option but a global target
6680 # system; at present there is no eCos target.
6681 TARGET_ECOS=${PROCESS-"no"}
6683 # Check whether --with-ecos or --without-ecos was given.
6684 if test "${with_ecos+set}" = set; then
6685 withval="$with_ecos"
6686 TARGET_ECOS="$with_ecos"
6690 supply_backtrace=no
6692 PLATFORM_INNER_NAT_HDRS=
6693 case "$TARGET_ECOS" in
6694 no) case "$host" in
6695 *mingw*)
6696 PLATFORM=Win32
6697 PLATFORMNET=Win32
6698 PLATFORMH=win32.h
6700 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
6701 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
6702 LD_PROG=`$CC --print-prog-name=ld`
6703 LD_VERSION=`$LD_PROG --version`
6704 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
6705 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
6706 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
6707 LD_OK="ok"
6708 else
6709 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
6710 LD_OK="ok"
6713 if test "x$LD_OK" != x; then
6714 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
6715 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
6716 else
6717 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
6718 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
6719 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
6720 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
6722 cat >>confdefs.h <<\_ACEOF
6723 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
6724 _ACEOF
6729 PLATFORM=Posix
6730 PLATFORMNET=Posix
6731 PLATFORMH=posix.h
6732 PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
6734 esac
6737 PLATFORM=Ecos
6738 PLATFORMNET=NoNet
6740 cat >>confdefs.h <<\_ACEOF
6741 #define ECOS 1
6742 _ACEOF
6744 PLATFORMH=posix.h
6746 esac
6748 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
6751 ac_ext=c
6752 ac_cpp='$CPP $CPPFLAGS'
6753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6756 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6757 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6758 # On Suns, sometimes $CPP names a directory.
6759 if test -n "$CPP" && test -d "$CPP"; then
6760 CPP=
6762 if test -z "$CPP"; then
6763 if test "${ac_cv_prog_CPP+set}" = set; then
6764 echo $ECHO_N "(cached) $ECHO_C" >&6
6765 else
6766 # Double quotes because CPP needs to be expanded
6767 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6769 ac_preproc_ok=false
6770 for ac_c_preproc_warn_flag in '' yes
6772 # Use a header file that comes with gcc, so configuring glibc
6773 # with a fresh cross-compiler works.
6774 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6775 # <limits.h> exists even on freestanding compilers.
6776 # On the NeXT, cc -E runs the code through the compiler's parser,
6777 # not just through cpp. "Syntax error" is here to catch this case.
6778 cat >conftest.$ac_ext <<_ACEOF
6779 /* confdefs.h. */
6780 _ACEOF
6781 cat confdefs.h >>conftest.$ac_ext
6782 cat >>conftest.$ac_ext <<_ACEOF
6783 /* end confdefs.h. */
6784 #ifdef __STDC__
6785 # include <limits.h>
6786 #else
6787 # include <assert.h>
6788 #endif
6789 Syntax error
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
6810 else
6811 echo "$as_me: failed program was:" >&5
6812 sed 's/^/| /' conftest.$ac_ext >&5
6814 # Broken: fails on valid input.
6815 continue
6817 rm -f conftest.err conftest.$ac_ext
6819 # OK, works on sane cases. Now check whether non-existent headers
6820 # can be detected and how.
6821 cat >conftest.$ac_ext <<_ACEOF
6822 /* confdefs.h. */
6823 _ACEOF
6824 cat confdefs.h >>conftest.$ac_ext
6825 cat >>conftest.$ac_ext <<_ACEOF
6826 /* end confdefs.h. */
6827 #include <ac_nonexistent.h>
6828 _ACEOF
6829 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6830 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6831 ac_status=$?
6832 grep -v '^ *+' conftest.er1 >conftest.err
6833 rm -f conftest.er1
6834 cat conftest.err >&5
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); } >/dev/null; then
6837 if test -s conftest.err; then
6838 ac_cpp_err=$ac_c_preproc_warn_flag
6839 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6840 else
6841 ac_cpp_err=
6843 else
6844 ac_cpp_err=yes
6846 if test -z "$ac_cpp_err"; then
6847 # Broken: success on invalid input.
6848 continue
6849 else
6850 echo "$as_me: failed program was:" >&5
6851 sed 's/^/| /' conftest.$ac_ext >&5
6853 # Passes both tests.
6854 ac_preproc_ok=:
6855 break
6857 rm -f conftest.err conftest.$ac_ext
6859 done
6860 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6861 rm -f conftest.err conftest.$ac_ext
6862 if $ac_preproc_ok; then
6863 break
6866 done
6867 ac_cv_prog_CPP=$CPP
6870 CPP=$ac_cv_prog_CPP
6871 else
6872 ac_cv_prog_CPP=$CPP
6874 echo "$as_me:$LINENO: result: $CPP" >&5
6875 echo "${ECHO_T}$CPP" >&6
6876 ac_preproc_ok=false
6877 for ac_c_preproc_warn_flag in '' yes
6879 # Use a header file that comes with gcc, so configuring glibc
6880 # with a fresh cross-compiler works.
6881 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6882 # <limits.h> exists even on freestanding compilers.
6883 # On the NeXT, cc -E runs the code through the compiler's parser,
6884 # not just through cpp. "Syntax error" is here to catch this case.
6885 cat >conftest.$ac_ext <<_ACEOF
6886 /* confdefs.h. */
6887 _ACEOF
6888 cat confdefs.h >>conftest.$ac_ext
6889 cat >>conftest.$ac_ext <<_ACEOF
6890 /* end confdefs.h. */
6891 #ifdef __STDC__
6892 # include <limits.h>
6893 #else
6894 # include <assert.h>
6895 #endif
6896 Syntax error
6897 _ACEOF
6898 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6899 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6900 ac_status=$?
6901 grep -v '^ *+' conftest.er1 >conftest.err
6902 rm -f conftest.er1
6903 cat conftest.err >&5
6904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); } >/dev/null; then
6906 if test -s conftest.err; then
6907 ac_cpp_err=$ac_c_preproc_warn_flag
6908 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6909 else
6910 ac_cpp_err=
6912 else
6913 ac_cpp_err=yes
6915 if test -z "$ac_cpp_err"; then
6917 else
6918 echo "$as_me: failed program was:" >&5
6919 sed 's/^/| /' conftest.$ac_ext >&5
6921 # Broken: fails on valid input.
6922 continue
6924 rm -f conftest.err conftest.$ac_ext
6926 # OK, works on sane cases. Now check whether non-existent headers
6927 # can be detected and how.
6928 cat >conftest.$ac_ext <<_ACEOF
6929 /* confdefs.h. */
6930 _ACEOF
6931 cat confdefs.h >>conftest.$ac_ext
6932 cat >>conftest.$ac_ext <<_ACEOF
6933 /* end confdefs.h. */
6934 #include <ac_nonexistent.h>
6935 _ACEOF
6936 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6937 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6938 ac_status=$?
6939 grep -v '^ *+' conftest.er1 >conftest.err
6940 rm -f conftest.er1
6941 cat conftest.err >&5
6942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943 (exit $ac_status); } >/dev/null; then
6944 if test -s conftest.err; then
6945 ac_cpp_err=$ac_c_preproc_warn_flag
6946 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6947 else
6948 ac_cpp_err=
6950 else
6951 ac_cpp_err=yes
6953 if test -z "$ac_cpp_err"; then
6954 # Broken: success on invalid input.
6955 continue
6956 else
6957 echo "$as_me: failed program was:" >&5
6958 sed 's/^/| /' conftest.$ac_ext >&5
6960 # Passes both tests.
6961 ac_preproc_ok=:
6962 break
6964 rm -f conftest.err conftest.$ac_ext
6966 done
6967 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6968 rm -f conftest.err conftest.$ac_ext
6969 if $ac_preproc_ok; then
6971 else
6972 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6973 See \`config.log' for more details." >&5
6974 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6975 See \`config.log' for more details." >&2;}
6976 { (exit 1); exit 1; }; }
6979 ac_ext=c
6980 ac_cpp='$CPP $CPPFLAGS'
6981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6986 echo "$as_me:$LINENO: checking for egrep" >&5
6987 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6988 if test "${ac_cv_prog_egrep+set}" = set; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
6990 else
6991 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6992 then ac_cv_prog_egrep='grep -E'
6993 else ac_cv_prog_egrep='egrep'
6996 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6997 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6998 EGREP=$ac_cv_prog_egrep
7001 cat >conftest.$ac_ext <<_ACEOF
7002 /* confdefs.h. */
7003 _ACEOF
7004 cat confdefs.h >>conftest.$ac_ext
7005 cat >>conftest.$ac_ext <<_ACEOF
7006 /* end confdefs.h. */
7007 #include <stdint.h>
7009 _ACEOF
7010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7011 $EGREP "uint32_t" >/dev/null 2>&1; then
7013 cat >>confdefs.h <<\_ACEOF
7014 #define HAVE_INT32_DEFINED 1
7015 _ACEOF
7018 rm -f conftest*
7020 cat >conftest.$ac_ext <<_ACEOF
7021 /* confdefs.h. */
7022 _ACEOF
7023 cat confdefs.h >>conftest.$ac_ext
7024 cat >>conftest.$ac_ext <<_ACEOF
7025 /* end confdefs.h. */
7026 #include <inttypes.h>
7028 _ACEOF
7029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7030 $EGREP "uint32_t" >/dev/null 2>&1; then
7032 cat >>confdefs.h <<\_ACEOF
7033 #define HAVE_INT32_DEFINED 1
7034 _ACEOF
7037 rm -f conftest*
7039 cat >conftest.$ac_ext <<_ACEOF
7040 /* confdefs.h. */
7041 _ACEOF
7042 cat confdefs.h >>conftest.$ac_ext
7043 cat >>conftest.$ac_ext <<_ACEOF
7044 /* end confdefs.h. */
7045 #include <sys/types.h>
7047 _ACEOF
7048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7049 $EGREP "u_int32_t" >/dev/null 2>&1; then
7051 cat >>confdefs.h <<\_ACEOF
7052 #define HAVE_BSD_INT32_DEFINED 1
7053 _ACEOF
7056 rm -f conftest*
7058 cat >conftest.$ac_ext <<_ACEOF
7059 /* confdefs.h. */
7060 _ACEOF
7061 cat confdefs.h >>conftest.$ac_ext
7062 cat >>conftest.$ac_ext <<_ACEOF
7063 /* end confdefs.h. */
7064 #include <sys/config.h>
7066 _ACEOF
7067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7068 $EGREP "u_int32_t" >/dev/null 2>&1; then
7070 cat >>confdefs.h <<\_ACEOF
7071 #define HAVE_BSD_INT32_DEFINED 1
7072 _ACEOF
7075 rm -f conftest*
7080 if test "$PLATFORM" = Win32; then
7081 USING_WIN32_PLATFORM_TRUE=
7082 USING_WIN32_PLATFORM_FALSE='#'
7083 else
7084 USING_WIN32_PLATFORM_TRUE='#'
7085 USING_WIN32_PLATFORM_FALSE=
7090 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
7091 USING_POSIX_PLATFORM_TRUE=
7092 USING_POSIX_PLATFORM_FALSE='#'
7093 else
7094 USING_POSIX_PLATFORM_TRUE='#'
7095 USING_POSIX_PLATFORM_FALSE=
7099 case "$host" in
7100 *-darwin*) DARWIN_CRT=true ;;
7101 *) DARWIN_CRT=false ;;
7102 esac
7105 if $DARWIN_CRT; then
7106 USING_DARWIN_CRT_TRUE=
7107 USING_DARWIN_CRT_FALSE='#'
7108 else
7109 USING_DARWIN_CRT_TRUE='#'
7110 USING_DARWIN_CRT_FALSE=
7114 # These may not be defined in a non-ANS conformant embedded system.
7115 # FIXME: Should these case a runtime exception in that case?
7116 cat >conftest.$ac_ext <<_ACEOF
7117 /* confdefs.h. */
7118 _ACEOF
7119 cat confdefs.h >>conftest.$ac_ext
7120 cat >>conftest.$ac_ext <<_ACEOF
7121 /* end confdefs.h. */
7122 #include <time.h>
7124 _ACEOF
7125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7126 $EGREP "mktime" >/dev/null 2>&1; then
7128 cat >>confdefs.h <<\_ACEOF
7129 #define HAVE_MKTIME 1
7130 _ACEOF
7133 rm -f conftest*
7135 cat >conftest.$ac_ext <<_ACEOF
7136 /* confdefs.h. */
7137 _ACEOF
7138 cat confdefs.h >>conftest.$ac_ext
7139 cat >>conftest.$ac_ext <<_ACEOF
7140 /* end confdefs.h. */
7141 #include <time.h>
7143 _ACEOF
7144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7145 $EGREP "localtime" >/dev/null 2>&1; then
7147 cat >>confdefs.h <<\_ACEOF
7148 #define HAVE_LOCALTIME 1
7149 _ACEOF
7152 rm -f conftest*
7155 # Create the subdirectory for natFile.cc, or the attempt
7156 # to create the link will fail.
7157 test -d java || mkdir java
7158 test -d java/io || mkdir java/io
7159 test -d gnu || mkdir gnu
7160 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
7163 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
7164 test -d java/lang || mkdir java/lang
7165 ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
7167 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
7170 # Likewise for natInetAddress.cc and natVMNetworkInterface.cc.
7171 test -d java/net || mkdir java/net
7172 ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
7174 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
7177 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
7178 test -d gnu/java || mkdir gnu/java
7179 test -d gnu/java/net || mkdir gnu/java/net
7180 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
7182 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
7185 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
7186 test -d gnu/java/nio || mkdir gnu/java/nio
7187 ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
7189 ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
7191 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
7192 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
7195 case "${host}" in
7196 *mingw*)
7197 SYSTEMSPEC="-lgdi32 -lws2_32"
7198 if test "${with_win32_nlsapi}" = "unicows"; then
7199 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
7203 SYSTEMSPEC=
7205 esac
7208 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
7212 # Check whether --with-system-zlib or --without-system-zlib was given.
7213 if test "${with_system_zlib+set}" = set; then
7214 withval="$with_system_zlib"
7217 ZLIBSPEC=
7219 ZLIBTESTSPEC=
7222 echo "$as_me:$LINENO: checking for X" >&5
7223 echo $ECHO_N "checking for X... $ECHO_C" >&6
7226 # Check whether --with-x or --without-x was given.
7227 if test "${with_x+set}" = set; then
7228 withval="$with_x"
7231 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7232 if test "x$with_x" = xno; then
7233 # The user explicitly disabled X.
7234 have_x=disabled
7235 else
7236 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7237 # Both variables are already set.
7238 have_x=yes
7239 else
7240 if test "${ac_cv_have_x+set}" = set; then
7241 echo $ECHO_N "(cached) $ECHO_C" >&6
7242 else
7243 # One or both of the vars are not set, and there is no cached value.
7244 ac_x_includes=no ac_x_libraries=no
7245 rm -fr conftest.dir
7246 if mkdir conftest.dir; then
7247 cd conftest.dir
7248 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7249 cat >Imakefile <<'_ACEOF'
7250 acfindx:
7251 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7252 _ACEOF
7253 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7254 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7255 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7256 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7257 for ac_extension in a so sl; do
7258 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7259 test -f $ac_im_libdir/libX11.$ac_extension; then
7260 ac_im_usrlibdir=$ac_im_libdir; break
7262 done
7263 # Screen out bogus values from the imake configuration. They are
7264 # bogus both because they are the default anyway, and because
7265 # using them would break gcc on systems where it needs fixed includes.
7266 case $ac_im_incroot in
7267 /usr/include) ;;
7268 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7269 esac
7270 case $ac_im_usrlibdir in
7271 /usr/lib | /lib) ;;
7272 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7273 esac
7275 cd ..
7276 rm -fr conftest.dir
7279 # Standard set of common directories for X headers.
7280 # Check X11 before X11Rn because it is often a symlink to the current release.
7281 ac_x_header_dirs='
7282 /usr/X11/include
7283 /usr/X11R6/include
7284 /usr/X11R5/include
7285 /usr/X11R4/include
7287 /usr/include/X11
7288 /usr/include/X11R6
7289 /usr/include/X11R5
7290 /usr/include/X11R4
7292 /usr/local/X11/include
7293 /usr/local/X11R6/include
7294 /usr/local/X11R5/include
7295 /usr/local/X11R4/include
7297 /usr/local/include/X11
7298 /usr/local/include/X11R6
7299 /usr/local/include/X11R5
7300 /usr/local/include/X11R4
7302 /usr/X386/include
7303 /usr/x386/include
7304 /usr/XFree86/include/X11
7306 /usr/include
7307 /usr/local/include
7308 /usr/unsupported/include
7309 /usr/athena/include
7310 /usr/local/x11r5/include
7311 /usr/lpp/Xamples/include
7313 /usr/openwin/include
7314 /usr/openwin/share/include'
7316 if test "$ac_x_includes" = no; then
7317 # Guess where to find include files, by looking for Intrinsic.h.
7318 # First, try using that file with no special directory specified.
7319 cat >conftest.$ac_ext <<_ACEOF
7320 /* confdefs.h. */
7321 _ACEOF
7322 cat confdefs.h >>conftest.$ac_ext
7323 cat >>conftest.$ac_ext <<_ACEOF
7324 /* end confdefs.h. */
7325 #include <X11/Intrinsic.h>
7326 _ACEOF
7327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7329 ac_status=$?
7330 grep -v '^ *+' conftest.er1 >conftest.err
7331 rm -f conftest.er1
7332 cat conftest.err >&5
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); } >/dev/null; then
7335 if test -s conftest.err; then
7336 ac_cpp_err=$ac_c_preproc_warn_flag
7337 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7338 else
7339 ac_cpp_err=
7341 else
7342 ac_cpp_err=yes
7344 if test -z "$ac_cpp_err"; then
7345 # We can compile using X headers with no special include directory.
7346 ac_x_includes=
7347 else
7348 echo "$as_me: failed program was:" >&5
7349 sed 's/^/| /' conftest.$ac_ext >&5
7351 for ac_dir in $ac_x_header_dirs; do
7352 if test -r "$ac_dir/X11/Intrinsic.h"; then
7353 ac_x_includes=$ac_dir
7354 break
7356 done
7358 rm -f conftest.err conftest.$ac_ext
7359 fi # $ac_x_includes = no
7361 if test "$ac_x_libraries" = no; then
7362 # Check for the libraries.
7363 # See if we find them without any special options.
7364 # Don't add to $LIBS permanently.
7365 ac_save_LIBS=$LIBS
7366 LIBS="-lXt $LIBS"
7367 if test x$gcc_no_link = xyes; then
7368 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7369 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7370 { (exit 1); exit 1; }; }
7372 cat >conftest.$ac_ext <<_ACEOF
7373 /* confdefs.h. */
7374 _ACEOF
7375 cat confdefs.h >>conftest.$ac_ext
7376 cat >>conftest.$ac_ext <<_ACEOF
7377 /* end confdefs.h. */
7378 #include <X11/Intrinsic.h>
7380 main ()
7382 XtMalloc (0)
7384 return 0;
7386 _ACEOF
7387 rm -f conftest.$ac_objext conftest$ac_exeext
7388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7389 (eval $ac_link) 2>conftest.er1
7390 ac_status=$?
7391 grep -v '^ *+' conftest.er1 >conftest.err
7392 rm -f conftest.er1
7393 cat conftest.err >&5
7394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395 (exit $ac_status); } &&
7396 { ac_try='test -z "$ac_c_werror_flag"
7397 || test ! -s conftest.err'
7398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7399 (eval $ac_try) 2>&5
7400 ac_status=$?
7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402 (exit $ac_status); }; } &&
7403 { ac_try='test -s conftest$ac_exeext'
7404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7405 (eval $ac_try) 2>&5
7406 ac_status=$?
7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408 (exit $ac_status); }; }; then
7409 LIBS=$ac_save_LIBS
7410 # We can link X programs with no special library path.
7411 ac_x_libraries=
7412 else
7413 echo "$as_me: failed program was:" >&5
7414 sed 's/^/| /' conftest.$ac_ext >&5
7416 LIBS=$ac_save_LIBS
7417 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7419 # Don't even attempt the hair of trying to link an X program!
7420 for ac_extension in a so sl; do
7421 if test -r $ac_dir/libXt.$ac_extension; then
7422 ac_x_libraries=$ac_dir
7423 break 2
7425 done
7426 done
7428 rm -f conftest.err conftest.$ac_objext \
7429 conftest$ac_exeext conftest.$ac_ext
7430 fi # $ac_x_libraries = no
7432 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7433 # Didn't find X anywhere. Cache the known absence of X.
7434 ac_cv_have_x="have_x=no"
7435 else
7436 # Record where we found X for the cache.
7437 ac_cv_have_x="have_x=yes \
7438 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7443 eval "$ac_cv_have_x"
7444 fi # $with_x != no
7446 if test "$have_x" != yes; then
7447 echo "$as_me:$LINENO: result: $have_x" >&5
7448 echo "${ECHO_T}$have_x" >&6
7449 no_x=yes
7450 else
7451 # If each of the values was on the command line, it overrides each guess.
7452 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7453 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7454 # Update the cache value to reflect the command line values.
7455 ac_cv_have_x="have_x=yes \
7456 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7457 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7458 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7461 if test "$no_x" = yes; then
7462 # Not all programs may use this symbol, but it does not hurt to define it.
7464 cat >>confdefs.h <<\_ACEOF
7465 #define X_DISPLAY_MISSING 1
7466 _ACEOF
7468 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7469 else
7470 if test -n "$x_includes"; then
7471 X_CFLAGS="$X_CFLAGS -I$x_includes"
7474 # It would also be nice to do this for all -L options, not just this one.
7475 if test -n "$x_libraries"; then
7476 X_LIBS="$X_LIBS -L$x_libraries"
7477 # For Solaris; some versions of Sun CC require a space after -R and
7478 # others require no space. Words are not sufficient . . . .
7479 case `(uname -sr) 2>/dev/null` in
7480 "SunOS 5"*)
7481 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7482 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7483 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7484 if test x$gcc_no_link = xyes; then
7485 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7486 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7487 { (exit 1); exit 1; }; }
7489 cat >conftest.$ac_ext <<_ACEOF
7490 /* confdefs.h. */
7491 _ACEOF
7492 cat confdefs.h >>conftest.$ac_ext
7493 cat >>conftest.$ac_ext <<_ACEOF
7494 /* end confdefs.h. */
7497 main ()
7501 return 0;
7503 _ACEOF
7504 rm -f conftest.$ac_objext conftest$ac_exeext
7505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7506 (eval $ac_link) 2>conftest.er1
7507 ac_status=$?
7508 grep -v '^ *+' conftest.er1 >conftest.err
7509 rm -f conftest.er1
7510 cat conftest.err >&5
7511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512 (exit $ac_status); } &&
7513 { ac_try='test -z "$ac_c_werror_flag"
7514 || test ! -s conftest.err'
7515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7516 (eval $ac_try) 2>&5
7517 ac_status=$?
7518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519 (exit $ac_status); }; } &&
7520 { ac_try='test -s conftest$ac_exeext'
7521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7522 (eval $ac_try) 2>&5
7523 ac_status=$?
7524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); }; }; then
7526 ac_R_nospace=yes
7527 else
7528 echo "$as_me: failed program was:" >&5
7529 sed 's/^/| /' conftest.$ac_ext >&5
7531 ac_R_nospace=no
7533 rm -f conftest.err conftest.$ac_objext \
7534 conftest$ac_exeext conftest.$ac_ext
7535 if test $ac_R_nospace = yes; then
7536 echo "$as_me:$LINENO: result: no" >&5
7537 echo "${ECHO_T}no" >&6
7538 X_LIBS="$X_LIBS -R$x_libraries"
7539 else
7540 LIBS="$ac_xsave_LIBS -R $x_libraries"
7541 if test x$gcc_no_link = xyes; then
7542 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7543 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7544 { (exit 1); exit 1; }; }
7546 cat >conftest.$ac_ext <<_ACEOF
7547 /* confdefs.h. */
7548 _ACEOF
7549 cat confdefs.h >>conftest.$ac_ext
7550 cat >>conftest.$ac_ext <<_ACEOF
7551 /* end confdefs.h. */
7554 main ()
7558 return 0;
7560 _ACEOF
7561 rm -f conftest.$ac_objext conftest$ac_exeext
7562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7563 (eval $ac_link) 2>conftest.er1
7564 ac_status=$?
7565 grep -v '^ *+' conftest.er1 >conftest.err
7566 rm -f conftest.er1
7567 cat conftest.err >&5
7568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569 (exit $ac_status); } &&
7570 { ac_try='test -z "$ac_c_werror_flag"
7571 || test ! -s conftest.err'
7572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7573 (eval $ac_try) 2>&5
7574 ac_status=$?
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); }; } &&
7577 { ac_try='test -s conftest$ac_exeext'
7578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7579 (eval $ac_try) 2>&5
7580 ac_status=$?
7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); }; }; then
7583 ac_R_space=yes
7584 else
7585 echo "$as_me: failed program was:" >&5
7586 sed 's/^/| /' conftest.$ac_ext >&5
7588 ac_R_space=no
7590 rm -f conftest.err conftest.$ac_objext \
7591 conftest$ac_exeext conftest.$ac_ext
7592 if test $ac_R_space = yes; then
7593 echo "$as_me:$LINENO: result: yes" >&5
7594 echo "${ECHO_T}yes" >&6
7595 X_LIBS="$X_LIBS -R $x_libraries"
7596 else
7597 echo "$as_me:$LINENO: result: neither works" >&5
7598 echo "${ECHO_T}neither works" >&6
7601 LIBS=$ac_xsave_LIBS
7602 esac
7605 # Check for system-dependent libraries X programs must link with.
7606 # Do this before checking for the system-independent R6 libraries
7607 # (-lICE), since we may need -lsocket or whatever for X linking.
7609 if test "$ISC" = yes; then
7610 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7611 else
7612 # Martyn Johnson says this is needed for Ultrix, if the X
7613 # libraries were built with DECnet support. And Karl Berry says
7614 # the Alpha needs dnet_stub (dnet does not exist).
7615 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7616 if test x$gcc_no_link = xyes; then
7617 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7618 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7619 { (exit 1); exit 1; }; }
7621 cat >conftest.$ac_ext <<_ACEOF
7622 /* confdefs.h. */
7623 _ACEOF
7624 cat confdefs.h >>conftest.$ac_ext
7625 cat >>conftest.$ac_ext <<_ACEOF
7626 /* end confdefs.h. */
7628 /* Override any gcc2 internal prototype to avoid an error. */
7629 #ifdef __cplusplus
7630 extern "C"
7631 #endif
7632 /* We use char because int might match the return type of a gcc2
7633 builtin and then its argument prototype would still apply. */
7634 char XOpenDisplay ();
7636 main ()
7638 XOpenDisplay ();
7640 return 0;
7642 _ACEOF
7643 rm -f conftest.$ac_objext conftest$ac_exeext
7644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7645 (eval $ac_link) 2>conftest.er1
7646 ac_status=$?
7647 grep -v '^ *+' conftest.er1 >conftest.err
7648 rm -f conftest.er1
7649 cat conftest.err >&5
7650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651 (exit $ac_status); } &&
7652 { ac_try='test -z "$ac_c_werror_flag"
7653 || test ! -s conftest.err'
7654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7655 (eval $ac_try) 2>&5
7656 ac_status=$?
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); }; } &&
7659 { ac_try='test -s conftest$ac_exeext'
7660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7661 (eval $ac_try) 2>&5
7662 ac_status=$?
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); }; }; then
7666 else
7667 echo "$as_me: failed program was:" >&5
7668 sed 's/^/| /' conftest.$ac_ext >&5
7670 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7671 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7672 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7673 echo $ECHO_N "(cached) $ECHO_C" >&6
7674 else
7675 ac_check_lib_save_LIBS=$LIBS
7676 LIBS="-ldnet $LIBS"
7677 if test x$gcc_no_link = xyes; then
7678 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7679 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7680 { (exit 1); exit 1; }; }
7682 cat >conftest.$ac_ext <<_ACEOF
7683 /* confdefs.h. */
7684 _ACEOF
7685 cat confdefs.h >>conftest.$ac_ext
7686 cat >>conftest.$ac_ext <<_ACEOF
7687 /* end confdefs.h. */
7689 /* Override any gcc2 internal prototype to avoid an error. */
7690 #ifdef __cplusplus
7691 extern "C"
7692 #endif
7693 /* We use char because int might match the return type of a gcc2
7694 builtin and then its argument prototype would still apply. */
7695 char dnet_ntoa ();
7697 main ()
7699 dnet_ntoa ();
7701 return 0;
7703 _ACEOF
7704 rm -f conftest.$ac_objext conftest$ac_exeext
7705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7706 (eval $ac_link) 2>conftest.er1
7707 ac_status=$?
7708 grep -v '^ *+' conftest.er1 >conftest.err
7709 rm -f conftest.er1
7710 cat conftest.err >&5
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); } &&
7713 { ac_try='test -z "$ac_c_werror_flag"
7714 || test ! -s conftest.err'
7715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7716 (eval $ac_try) 2>&5
7717 ac_status=$?
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); }; } &&
7720 { ac_try='test -s conftest$ac_exeext'
7721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7722 (eval $ac_try) 2>&5
7723 ac_status=$?
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); }; }; then
7726 ac_cv_lib_dnet_dnet_ntoa=yes
7727 else
7728 echo "$as_me: failed program was:" >&5
7729 sed 's/^/| /' conftest.$ac_ext >&5
7731 ac_cv_lib_dnet_dnet_ntoa=no
7733 rm -f conftest.err conftest.$ac_objext \
7734 conftest$ac_exeext conftest.$ac_ext
7735 LIBS=$ac_check_lib_save_LIBS
7737 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7738 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7739 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7740 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7743 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7744 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
7745 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
7746 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
7747 echo $ECHO_N "(cached) $ECHO_C" >&6
7748 else
7749 ac_check_lib_save_LIBS=$LIBS
7750 LIBS="-ldnet_stub $LIBS"
7751 if test x$gcc_no_link = xyes; then
7752 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7753 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7754 { (exit 1); exit 1; }; }
7756 cat >conftest.$ac_ext <<_ACEOF
7757 /* confdefs.h. */
7758 _ACEOF
7759 cat confdefs.h >>conftest.$ac_ext
7760 cat >>conftest.$ac_ext <<_ACEOF
7761 /* end confdefs.h. */
7763 /* Override any gcc2 internal prototype to avoid an error. */
7764 #ifdef __cplusplus
7765 extern "C"
7766 #endif
7767 /* We use char because int might match the return type of a gcc2
7768 builtin and then its argument prototype would still apply. */
7769 char dnet_ntoa ();
7771 main ()
7773 dnet_ntoa ();
7775 return 0;
7777 _ACEOF
7778 rm -f conftest.$ac_objext conftest$ac_exeext
7779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7780 (eval $ac_link) 2>conftest.er1
7781 ac_status=$?
7782 grep -v '^ *+' conftest.er1 >conftest.err
7783 rm -f conftest.er1
7784 cat conftest.err >&5
7785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786 (exit $ac_status); } &&
7787 { ac_try='test -z "$ac_c_werror_flag"
7788 || test ! -s conftest.err'
7789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7790 (eval $ac_try) 2>&5
7791 ac_status=$?
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); }; } &&
7794 { ac_try='test -s conftest$ac_exeext'
7795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7796 (eval $ac_try) 2>&5
7797 ac_status=$?
7798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799 (exit $ac_status); }; }; then
7800 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7801 else
7802 echo "$as_me: failed program was:" >&5
7803 sed 's/^/| /' conftest.$ac_ext >&5
7805 ac_cv_lib_dnet_stub_dnet_ntoa=no
7807 rm -f conftest.err conftest.$ac_objext \
7808 conftest$ac_exeext conftest.$ac_ext
7809 LIBS=$ac_check_lib_save_LIBS
7811 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7812 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7813 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7814 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7819 rm -f conftest.err conftest.$ac_objext \
7820 conftest$ac_exeext conftest.$ac_ext
7821 LIBS="$ac_xsave_LIBS"
7823 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7824 # to get the SysV transport functions.
7825 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7826 # needs -lnsl.
7827 # The nsl library prevents programs from opening the X display
7828 # on Irix 5.2, according to T.E. Dickey.
7829 # The functions gethostbyname, getservbyname, and inet_addr are
7830 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7831 echo "$as_me:$LINENO: checking for gethostbyname" >&5
7832 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7833 if test "${ac_cv_func_gethostbyname+set}" = set; then
7834 echo $ECHO_N "(cached) $ECHO_C" >&6
7835 else
7836 if test x$gcc_no_link = xyes; then
7837 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7838 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7839 { (exit 1); exit 1; }; }
7841 cat >conftest.$ac_ext <<_ACEOF
7842 /* confdefs.h. */
7843 _ACEOF
7844 cat confdefs.h >>conftest.$ac_ext
7845 cat >>conftest.$ac_ext <<_ACEOF
7846 /* end confdefs.h. */
7847 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
7848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7849 #define gethostbyname innocuous_gethostbyname
7851 /* System header to define __stub macros and hopefully few prototypes,
7852 which can conflict with char gethostbyname (); below.
7853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7854 <limits.h> exists even on freestanding compilers. */
7856 #ifdef __STDC__
7857 # include <limits.h>
7858 #else
7859 # include <assert.h>
7860 #endif
7862 #undef gethostbyname
7864 /* Override any gcc2 internal prototype to avoid an error. */
7865 #ifdef __cplusplus
7866 extern "C"
7868 #endif
7869 /* We use char because int might match the return type of a gcc2
7870 builtin and then its argument prototype would still apply. */
7871 char gethostbyname ();
7872 /* The GNU C library defines this for functions which it implements
7873 to always fail with ENOSYS. Some functions are actually named
7874 something starting with __ and the normal name is an alias. */
7875 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7876 choke me
7877 #else
7878 char (*f) () = gethostbyname;
7879 #endif
7880 #ifdef __cplusplus
7882 #endif
7885 main ()
7887 return f != gethostbyname;
7889 return 0;
7891 _ACEOF
7892 rm -f conftest.$ac_objext conftest$ac_exeext
7893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7894 (eval $ac_link) 2>conftest.er1
7895 ac_status=$?
7896 grep -v '^ *+' conftest.er1 >conftest.err
7897 rm -f conftest.er1
7898 cat conftest.err >&5
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); } &&
7901 { ac_try='test -z "$ac_c_werror_flag"
7902 || test ! -s conftest.err'
7903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7904 (eval $ac_try) 2>&5
7905 ac_status=$?
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); }; } &&
7908 { ac_try='test -s conftest$ac_exeext'
7909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7910 (eval $ac_try) 2>&5
7911 ac_status=$?
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); }; }; then
7914 ac_cv_func_gethostbyname=yes
7915 else
7916 echo "$as_me: failed program was:" >&5
7917 sed 's/^/| /' conftest.$ac_ext >&5
7919 ac_cv_func_gethostbyname=no
7921 rm -f conftest.err conftest.$ac_objext \
7922 conftest$ac_exeext conftest.$ac_ext
7924 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7925 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7927 if test $ac_cv_func_gethostbyname = no; then
7928 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7929 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7930 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7931 echo $ECHO_N "(cached) $ECHO_C" >&6
7932 else
7933 ac_check_lib_save_LIBS=$LIBS
7934 LIBS="-lnsl $LIBS"
7935 if test x$gcc_no_link = xyes; then
7936 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7937 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7938 { (exit 1); exit 1; }; }
7940 cat >conftest.$ac_ext <<_ACEOF
7941 /* confdefs.h. */
7942 _ACEOF
7943 cat confdefs.h >>conftest.$ac_ext
7944 cat >>conftest.$ac_ext <<_ACEOF
7945 /* end confdefs.h. */
7947 /* Override any gcc2 internal prototype to avoid an error. */
7948 #ifdef __cplusplus
7949 extern "C"
7950 #endif
7951 /* We use char because int might match the return type of a gcc2
7952 builtin and then its argument prototype would still apply. */
7953 char gethostbyname ();
7955 main ()
7957 gethostbyname ();
7959 return 0;
7961 _ACEOF
7962 rm -f conftest.$ac_objext conftest$ac_exeext
7963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7964 (eval $ac_link) 2>conftest.er1
7965 ac_status=$?
7966 grep -v '^ *+' conftest.er1 >conftest.err
7967 rm -f conftest.er1
7968 cat conftest.err >&5
7969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970 (exit $ac_status); } &&
7971 { ac_try='test -z "$ac_c_werror_flag"
7972 || test ! -s conftest.err'
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); }; } &&
7978 { ac_try='test -s conftest$ac_exeext'
7979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7980 (eval $ac_try) 2>&5
7981 ac_status=$?
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); }; }; then
7984 ac_cv_lib_nsl_gethostbyname=yes
7985 else
7986 echo "$as_me: failed program was:" >&5
7987 sed 's/^/| /' conftest.$ac_ext >&5
7989 ac_cv_lib_nsl_gethostbyname=no
7991 rm -f conftest.err conftest.$ac_objext \
7992 conftest$ac_exeext conftest.$ac_ext
7993 LIBS=$ac_check_lib_save_LIBS
7995 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7996 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7997 if test $ac_cv_lib_nsl_gethostbyname = yes; then
7998 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8001 if test $ac_cv_lib_nsl_gethostbyname = no; then
8002 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8003 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8004 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8005 echo $ECHO_N "(cached) $ECHO_C" >&6
8006 else
8007 ac_check_lib_save_LIBS=$LIBS
8008 LIBS="-lbsd $LIBS"
8009 if test x$gcc_no_link = xyes; then
8010 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8011 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8012 { (exit 1); exit 1; }; }
8014 cat >conftest.$ac_ext <<_ACEOF
8015 /* confdefs.h. */
8016 _ACEOF
8017 cat confdefs.h >>conftest.$ac_ext
8018 cat >>conftest.$ac_ext <<_ACEOF
8019 /* end confdefs.h. */
8021 /* Override any gcc2 internal prototype to avoid an error. */
8022 #ifdef __cplusplus
8023 extern "C"
8024 #endif
8025 /* We use char because int might match the return type of a gcc2
8026 builtin and then its argument prototype would still apply. */
8027 char gethostbyname ();
8029 main ()
8031 gethostbyname ();
8033 return 0;
8035 _ACEOF
8036 rm -f conftest.$ac_objext conftest$ac_exeext
8037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8038 (eval $ac_link) 2>conftest.er1
8039 ac_status=$?
8040 grep -v '^ *+' conftest.er1 >conftest.err
8041 rm -f conftest.er1
8042 cat conftest.err >&5
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); } &&
8045 { ac_try='test -z "$ac_c_werror_flag"
8046 || test ! -s conftest.err'
8047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8048 (eval $ac_try) 2>&5
8049 ac_status=$?
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); }; } &&
8052 { ac_try='test -s conftest$ac_exeext'
8053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8054 (eval $ac_try) 2>&5
8055 ac_status=$?
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); }; }; then
8058 ac_cv_lib_bsd_gethostbyname=yes
8059 else
8060 echo "$as_me: failed program was:" >&5
8061 sed 's/^/| /' conftest.$ac_ext >&5
8063 ac_cv_lib_bsd_gethostbyname=no
8065 rm -f conftest.err conftest.$ac_objext \
8066 conftest$ac_exeext conftest.$ac_ext
8067 LIBS=$ac_check_lib_save_LIBS
8069 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8070 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8071 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8072 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8078 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8079 # socket/setsockopt and other routines are undefined under SCO ODT
8080 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8081 # on later versions), says Simon Leinen: it contains gethostby*
8082 # variants that don't use the name server (or something). -lsocket
8083 # must be given before -lnsl if both are needed. We assume that
8084 # if connect needs -lnsl, so does gethostbyname.
8085 echo "$as_me:$LINENO: checking for connect" >&5
8086 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8087 if test "${ac_cv_func_connect+set}" = set; then
8088 echo $ECHO_N "(cached) $ECHO_C" >&6
8089 else
8090 if test x$gcc_no_link = xyes; then
8091 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8092 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8093 { (exit 1); exit 1; }; }
8095 cat >conftest.$ac_ext <<_ACEOF
8096 /* confdefs.h. */
8097 _ACEOF
8098 cat confdefs.h >>conftest.$ac_ext
8099 cat >>conftest.$ac_ext <<_ACEOF
8100 /* end confdefs.h. */
8101 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
8102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8103 #define connect innocuous_connect
8105 /* System header to define __stub macros and hopefully few prototypes,
8106 which can conflict with char connect (); below.
8107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8108 <limits.h> exists even on freestanding compilers. */
8110 #ifdef __STDC__
8111 # include <limits.h>
8112 #else
8113 # include <assert.h>
8114 #endif
8116 #undef connect
8118 /* Override any gcc2 internal prototype to avoid an error. */
8119 #ifdef __cplusplus
8120 extern "C"
8122 #endif
8123 /* We use char because int might match the return type of a gcc2
8124 builtin and then its argument prototype would still apply. */
8125 char connect ();
8126 /* The GNU C library defines this for functions which it implements
8127 to always fail with ENOSYS. Some functions are actually named
8128 something starting with __ and the normal name is an alias. */
8129 #if defined (__stub_connect) || defined (__stub___connect)
8130 choke me
8131 #else
8132 char (*f) () = connect;
8133 #endif
8134 #ifdef __cplusplus
8136 #endif
8139 main ()
8141 return f != connect;
8143 return 0;
8145 _ACEOF
8146 rm -f conftest.$ac_objext conftest$ac_exeext
8147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8148 (eval $ac_link) 2>conftest.er1
8149 ac_status=$?
8150 grep -v '^ *+' conftest.er1 >conftest.err
8151 rm -f conftest.er1
8152 cat conftest.err >&5
8153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154 (exit $ac_status); } &&
8155 { ac_try='test -z "$ac_c_werror_flag"
8156 || test ! -s conftest.err'
8157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8158 (eval $ac_try) 2>&5
8159 ac_status=$?
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); }; } &&
8162 { ac_try='test -s conftest$ac_exeext'
8163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8164 (eval $ac_try) 2>&5
8165 ac_status=$?
8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 (exit $ac_status); }; }; then
8168 ac_cv_func_connect=yes
8169 else
8170 echo "$as_me: failed program was:" >&5
8171 sed 's/^/| /' conftest.$ac_ext >&5
8173 ac_cv_func_connect=no
8175 rm -f conftest.err conftest.$ac_objext \
8176 conftest$ac_exeext conftest.$ac_ext
8178 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8179 echo "${ECHO_T}$ac_cv_func_connect" >&6
8181 if test $ac_cv_func_connect = no; then
8182 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8183 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8184 if test "${ac_cv_lib_socket_connect+set}" = set; then
8185 echo $ECHO_N "(cached) $ECHO_C" >&6
8186 else
8187 ac_check_lib_save_LIBS=$LIBS
8188 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8189 if test x$gcc_no_link = xyes; then
8190 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8191 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8192 { (exit 1); exit 1; }; }
8194 cat >conftest.$ac_ext <<_ACEOF
8195 /* confdefs.h. */
8196 _ACEOF
8197 cat confdefs.h >>conftest.$ac_ext
8198 cat >>conftest.$ac_ext <<_ACEOF
8199 /* end confdefs.h. */
8201 /* Override any gcc2 internal prototype to avoid an error. */
8202 #ifdef __cplusplus
8203 extern "C"
8204 #endif
8205 /* We use char because int might match the return type of a gcc2
8206 builtin and then its argument prototype would still apply. */
8207 char connect ();
8209 main ()
8211 connect ();
8213 return 0;
8215 _ACEOF
8216 rm -f conftest.$ac_objext conftest$ac_exeext
8217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8218 (eval $ac_link) 2>conftest.er1
8219 ac_status=$?
8220 grep -v '^ *+' conftest.er1 >conftest.err
8221 rm -f conftest.er1
8222 cat conftest.err >&5
8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224 (exit $ac_status); } &&
8225 { ac_try='test -z "$ac_c_werror_flag"
8226 || test ! -s conftest.err'
8227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8228 (eval $ac_try) 2>&5
8229 ac_status=$?
8230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231 (exit $ac_status); }; } &&
8232 { ac_try='test -s conftest$ac_exeext'
8233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8234 (eval $ac_try) 2>&5
8235 ac_status=$?
8236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237 (exit $ac_status); }; }; then
8238 ac_cv_lib_socket_connect=yes
8239 else
8240 echo "$as_me: failed program was:" >&5
8241 sed 's/^/| /' conftest.$ac_ext >&5
8243 ac_cv_lib_socket_connect=no
8245 rm -f conftest.err conftest.$ac_objext \
8246 conftest$ac_exeext conftest.$ac_ext
8247 LIBS=$ac_check_lib_save_LIBS
8249 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8250 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8251 if test $ac_cv_lib_socket_connect = yes; then
8252 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8257 # Guillermo Gomez says -lposix is necessary on A/UX.
8258 echo "$as_me:$LINENO: checking for remove" >&5
8259 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8260 if test "${ac_cv_func_remove+set}" = set; then
8261 echo $ECHO_N "(cached) $ECHO_C" >&6
8262 else
8263 if test x$gcc_no_link = xyes; then
8264 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8265 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8266 { (exit 1); exit 1; }; }
8268 cat >conftest.$ac_ext <<_ACEOF
8269 /* confdefs.h. */
8270 _ACEOF
8271 cat confdefs.h >>conftest.$ac_ext
8272 cat >>conftest.$ac_ext <<_ACEOF
8273 /* end confdefs.h. */
8274 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
8275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8276 #define remove innocuous_remove
8278 /* System header to define __stub macros and hopefully few prototypes,
8279 which can conflict with char remove (); below.
8280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8281 <limits.h> exists even on freestanding compilers. */
8283 #ifdef __STDC__
8284 # include <limits.h>
8285 #else
8286 # include <assert.h>
8287 #endif
8289 #undef remove
8291 /* Override any gcc2 internal prototype to avoid an error. */
8292 #ifdef __cplusplus
8293 extern "C"
8295 #endif
8296 /* We use char because int might match the return type of a gcc2
8297 builtin and then its argument prototype would still apply. */
8298 char remove ();
8299 /* The GNU C library defines this for functions which it implements
8300 to always fail with ENOSYS. Some functions are actually named
8301 something starting with __ and the normal name is an alias. */
8302 #if defined (__stub_remove) || defined (__stub___remove)
8303 choke me
8304 #else
8305 char (*f) () = remove;
8306 #endif
8307 #ifdef __cplusplus
8309 #endif
8312 main ()
8314 return f != remove;
8316 return 0;
8318 _ACEOF
8319 rm -f conftest.$ac_objext conftest$ac_exeext
8320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8321 (eval $ac_link) 2>conftest.er1
8322 ac_status=$?
8323 grep -v '^ *+' conftest.er1 >conftest.err
8324 rm -f conftest.er1
8325 cat conftest.err >&5
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); } &&
8328 { ac_try='test -z "$ac_c_werror_flag"
8329 || test ! -s conftest.err'
8330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8331 (eval $ac_try) 2>&5
8332 ac_status=$?
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 (exit $ac_status); }; } &&
8335 { ac_try='test -s conftest$ac_exeext'
8336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8337 (eval $ac_try) 2>&5
8338 ac_status=$?
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); }; }; then
8341 ac_cv_func_remove=yes
8342 else
8343 echo "$as_me: failed program was:" >&5
8344 sed 's/^/| /' conftest.$ac_ext >&5
8346 ac_cv_func_remove=no
8348 rm -f conftest.err conftest.$ac_objext \
8349 conftest$ac_exeext conftest.$ac_ext
8351 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8352 echo "${ECHO_T}$ac_cv_func_remove" >&6
8354 if test $ac_cv_func_remove = no; then
8355 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8356 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8357 if test "${ac_cv_lib_posix_remove+set}" = set; then
8358 echo $ECHO_N "(cached) $ECHO_C" >&6
8359 else
8360 ac_check_lib_save_LIBS=$LIBS
8361 LIBS="-lposix $LIBS"
8362 if test x$gcc_no_link = xyes; then
8363 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8364 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8365 { (exit 1); exit 1; }; }
8367 cat >conftest.$ac_ext <<_ACEOF
8368 /* confdefs.h. */
8369 _ACEOF
8370 cat confdefs.h >>conftest.$ac_ext
8371 cat >>conftest.$ac_ext <<_ACEOF
8372 /* end confdefs.h. */
8374 /* Override any gcc2 internal prototype to avoid an error. */
8375 #ifdef __cplusplus
8376 extern "C"
8377 #endif
8378 /* We use char because int might match the return type of a gcc2
8379 builtin and then its argument prototype would still apply. */
8380 char remove ();
8382 main ()
8384 remove ();
8386 return 0;
8388 _ACEOF
8389 rm -f conftest.$ac_objext conftest$ac_exeext
8390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8391 (eval $ac_link) 2>conftest.er1
8392 ac_status=$?
8393 grep -v '^ *+' conftest.er1 >conftest.err
8394 rm -f conftest.er1
8395 cat conftest.err >&5
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); } &&
8398 { ac_try='test -z "$ac_c_werror_flag"
8399 || test ! -s conftest.err'
8400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8401 (eval $ac_try) 2>&5
8402 ac_status=$?
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); }; } &&
8405 { ac_try='test -s conftest$ac_exeext'
8406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8407 (eval $ac_try) 2>&5
8408 ac_status=$?
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); }; }; then
8411 ac_cv_lib_posix_remove=yes
8412 else
8413 echo "$as_me: failed program was:" >&5
8414 sed 's/^/| /' conftest.$ac_ext >&5
8416 ac_cv_lib_posix_remove=no
8418 rm -f conftest.err conftest.$ac_objext \
8419 conftest$ac_exeext conftest.$ac_ext
8420 LIBS=$ac_check_lib_save_LIBS
8422 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8423 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8424 if test $ac_cv_lib_posix_remove = yes; then
8425 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8430 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8431 echo "$as_me:$LINENO: checking for shmat" >&5
8432 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8433 if test "${ac_cv_func_shmat+set}" = set; then
8434 echo $ECHO_N "(cached) $ECHO_C" >&6
8435 else
8436 if test x$gcc_no_link = xyes; then
8437 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8438 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8439 { (exit 1); exit 1; }; }
8441 cat >conftest.$ac_ext <<_ACEOF
8442 /* confdefs.h. */
8443 _ACEOF
8444 cat confdefs.h >>conftest.$ac_ext
8445 cat >>conftest.$ac_ext <<_ACEOF
8446 /* end confdefs.h. */
8447 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
8448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8449 #define shmat innocuous_shmat
8451 /* System header to define __stub macros and hopefully few prototypes,
8452 which can conflict with char shmat (); below.
8453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8454 <limits.h> exists even on freestanding compilers. */
8456 #ifdef __STDC__
8457 # include <limits.h>
8458 #else
8459 # include <assert.h>
8460 #endif
8462 #undef shmat
8464 /* Override any gcc2 internal prototype to avoid an error. */
8465 #ifdef __cplusplus
8466 extern "C"
8468 #endif
8469 /* We use char because int might match the return type of a gcc2
8470 builtin and then its argument prototype would still apply. */
8471 char shmat ();
8472 /* The GNU C library defines this for functions which it implements
8473 to always fail with ENOSYS. Some functions are actually named
8474 something starting with __ and the normal name is an alias. */
8475 #if defined (__stub_shmat) || defined (__stub___shmat)
8476 choke me
8477 #else
8478 char (*f) () = shmat;
8479 #endif
8480 #ifdef __cplusplus
8482 #endif
8485 main ()
8487 return f != shmat;
8489 return 0;
8491 _ACEOF
8492 rm -f conftest.$ac_objext conftest$ac_exeext
8493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8494 (eval $ac_link) 2>conftest.er1
8495 ac_status=$?
8496 grep -v '^ *+' conftest.er1 >conftest.err
8497 rm -f conftest.er1
8498 cat conftest.err >&5
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); } &&
8501 { ac_try='test -z "$ac_c_werror_flag"
8502 || test ! -s conftest.err'
8503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8504 (eval $ac_try) 2>&5
8505 ac_status=$?
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); }; } &&
8508 { ac_try='test -s conftest$ac_exeext'
8509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8510 (eval $ac_try) 2>&5
8511 ac_status=$?
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 (exit $ac_status); }; }; then
8514 ac_cv_func_shmat=yes
8515 else
8516 echo "$as_me: failed program was:" >&5
8517 sed 's/^/| /' conftest.$ac_ext >&5
8519 ac_cv_func_shmat=no
8521 rm -f conftest.err conftest.$ac_objext \
8522 conftest$ac_exeext conftest.$ac_ext
8524 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8525 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8527 if test $ac_cv_func_shmat = no; then
8528 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8529 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8530 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8531 echo $ECHO_N "(cached) $ECHO_C" >&6
8532 else
8533 ac_check_lib_save_LIBS=$LIBS
8534 LIBS="-lipc $LIBS"
8535 if test x$gcc_no_link = xyes; then
8536 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8537 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8538 { (exit 1); exit 1; }; }
8540 cat >conftest.$ac_ext <<_ACEOF
8541 /* confdefs.h. */
8542 _ACEOF
8543 cat confdefs.h >>conftest.$ac_ext
8544 cat >>conftest.$ac_ext <<_ACEOF
8545 /* end confdefs.h. */
8547 /* Override any gcc2 internal prototype to avoid an error. */
8548 #ifdef __cplusplus
8549 extern "C"
8550 #endif
8551 /* We use char because int might match the return type of a gcc2
8552 builtin and then its argument prototype would still apply. */
8553 char shmat ();
8555 main ()
8557 shmat ();
8559 return 0;
8561 _ACEOF
8562 rm -f conftest.$ac_objext conftest$ac_exeext
8563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8564 (eval $ac_link) 2>conftest.er1
8565 ac_status=$?
8566 grep -v '^ *+' conftest.er1 >conftest.err
8567 rm -f conftest.er1
8568 cat conftest.err >&5
8569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570 (exit $ac_status); } &&
8571 { ac_try='test -z "$ac_c_werror_flag"
8572 || test ! -s conftest.err'
8573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8574 (eval $ac_try) 2>&5
8575 ac_status=$?
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); }; } &&
8578 { ac_try='test -s conftest$ac_exeext'
8579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8580 (eval $ac_try) 2>&5
8581 ac_status=$?
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); }; }; then
8584 ac_cv_lib_ipc_shmat=yes
8585 else
8586 echo "$as_me: failed program was:" >&5
8587 sed 's/^/| /' conftest.$ac_ext >&5
8589 ac_cv_lib_ipc_shmat=no
8591 rm -f conftest.err conftest.$ac_objext \
8592 conftest$ac_exeext conftest.$ac_ext
8593 LIBS=$ac_check_lib_save_LIBS
8595 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8596 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8597 if test $ac_cv_lib_ipc_shmat = yes; then
8598 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8604 # Check for libraries that X11R6 Xt/Xaw programs need.
8605 ac_save_LDFLAGS=$LDFLAGS
8606 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8607 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8608 # check for ICE first), but we must link in the order -lSM -lICE or
8609 # we get undefined symbols. So assume we have SM if we have ICE.
8610 # These have to be linked with before -lX11, unlike the other
8611 # libraries we check for below, so use a different variable.
8612 # John Interrante, Karl Berry
8613 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8614 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8615 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8616 echo $ECHO_N "(cached) $ECHO_C" >&6
8617 else
8618 ac_check_lib_save_LIBS=$LIBS
8619 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8620 if test x$gcc_no_link = xyes; then
8621 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8622 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8623 { (exit 1); exit 1; }; }
8625 cat >conftest.$ac_ext <<_ACEOF
8626 /* confdefs.h. */
8627 _ACEOF
8628 cat confdefs.h >>conftest.$ac_ext
8629 cat >>conftest.$ac_ext <<_ACEOF
8630 /* end confdefs.h. */
8632 /* Override any gcc2 internal prototype to avoid an error. */
8633 #ifdef __cplusplus
8634 extern "C"
8635 #endif
8636 /* We use char because int might match the return type of a gcc2
8637 builtin and then its argument prototype would still apply. */
8638 char IceConnectionNumber ();
8640 main ()
8642 IceConnectionNumber ();
8644 return 0;
8646 _ACEOF
8647 rm -f conftest.$ac_objext conftest$ac_exeext
8648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8649 (eval $ac_link) 2>conftest.er1
8650 ac_status=$?
8651 grep -v '^ *+' conftest.er1 >conftest.err
8652 rm -f conftest.er1
8653 cat conftest.err >&5
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); } &&
8656 { ac_try='test -z "$ac_c_werror_flag"
8657 || test ! -s conftest.err'
8658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8659 (eval $ac_try) 2>&5
8660 ac_status=$?
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); }; } &&
8663 { ac_try='test -s conftest$ac_exeext'
8664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8665 (eval $ac_try) 2>&5
8666 ac_status=$?
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); }; }; then
8669 ac_cv_lib_ICE_IceConnectionNumber=yes
8670 else
8671 echo "$as_me: failed program was:" >&5
8672 sed 's/^/| /' conftest.$ac_ext >&5
8674 ac_cv_lib_ICE_IceConnectionNumber=no
8676 rm -f conftest.err conftest.$ac_objext \
8677 conftest$ac_exeext conftest.$ac_ext
8678 LIBS=$ac_check_lib_save_LIBS
8680 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8681 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8682 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8683 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8686 LDFLAGS=$ac_save_LDFLAGS
8691 # determine whether to enable the cairo GTK Graphics2D backend
8692 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
8693 if test "${enable_gtk_cairo+set}" = set; then
8694 enableval="$enable_gtk_cairo"
8699 if test "x${enable_gtk_cairo}" = xyes; then
8700 GTK_CAIRO_TRUE=
8701 GTK_CAIRO_FALSE='#'
8702 else
8703 GTK_CAIRO_TRUE='#'
8704 GTK_CAIRO_FALSE=
8707 if test "x${enable_gtk_cairo}" = xyes
8708 then
8710 succeeded=no
8712 if test -z "$PKG_CONFIG"; then
8713 # Extract the first word of "pkg-config", so it can be a program name with args.
8714 set dummy pkg-config; ac_word=$2
8715 echo "$as_me:$LINENO: checking for $ac_word" >&5
8716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8717 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8718 echo $ECHO_N "(cached) $ECHO_C" >&6
8719 else
8720 case $PKG_CONFIG in
8721 [\\/]* | ?:[\\/]*)
8722 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8726 for as_dir in $PATH
8728 IFS=$as_save_IFS
8729 test -z "$as_dir" && as_dir=.
8730 for ac_exec_ext in '' $ac_executable_extensions; do
8731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8732 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8734 break 2
8736 done
8737 done
8739 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8741 esac
8743 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8745 if test -n "$PKG_CONFIG"; then
8746 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8747 echo "${ECHO_T}$PKG_CONFIG" >&6
8748 else
8749 echo "$as_me:$LINENO: result: no" >&5
8750 echo "${ECHO_T}no" >&6
8755 if test "$PKG_CONFIG" = "no" ; then
8756 echo "*** The pkg-config script could not be found. Make sure it is"
8757 echo "*** in your path, or set the PKG_CONFIG environment variable"
8758 echo "*** to the full path to pkg-config."
8759 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8760 else
8761 PKG_CONFIG_MIN_VERSION=0.9.0
8762 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8763 echo "$as_me:$LINENO: checking for cairo" >&5
8764 echo $ECHO_N "checking for cairo... $ECHO_C" >&6
8766 if $PKG_CONFIG --exists "cairo" ; then
8767 echo "$as_me:$LINENO: result: yes" >&5
8768 echo "${ECHO_T}yes" >&6
8769 succeeded=yes
8771 echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
8772 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
8773 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo"`
8774 echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
8775 echo "${ECHO_T}$CAIRO_CFLAGS" >&6
8777 echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
8778 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
8779 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo"`
8780 echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
8781 echo "${ECHO_T}$CAIRO_LIBS" >&6
8782 else
8783 CAIRO_CFLAGS=""
8784 CAIRO_LIBS=""
8785 ## If we have a custom action on failure, don't print errors, but
8786 ## do set a variable so people can do so.
8787 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
8788 echo $CAIRO_PKG_ERRORS
8793 else
8794 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8795 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8799 if test $succeeded = yes; then
8801 else
8802 { { 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
8803 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;}
8804 { (exit 1); exit 1; }; }
8808 succeeded=no
8810 if test -z "$PKG_CONFIG"; then
8811 # Extract the first word of "pkg-config", so it can be a program name with args.
8812 set dummy pkg-config; ac_word=$2
8813 echo "$as_me:$LINENO: checking for $ac_word" >&5
8814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8815 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8816 echo $ECHO_N "(cached) $ECHO_C" >&6
8817 else
8818 case $PKG_CONFIG in
8819 [\\/]* | ?:[\\/]*)
8820 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8824 for as_dir in $PATH
8826 IFS=$as_save_IFS
8827 test -z "$as_dir" && as_dir=.
8828 for ac_exec_ext in '' $ac_executable_extensions; do
8829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8830 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8832 break 2
8834 done
8835 done
8837 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8839 esac
8841 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8843 if test -n "$PKG_CONFIG"; then
8844 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8845 echo "${ECHO_T}$PKG_CONFIG" >&6
8846 else
8847 echo "$as_me:$LINENO: result: no" >&5
8848 echo "${ECHO_T}no" >&6
8853 if test "$PKG_CONFIG" = "no" ; then
8854 echo "*** The pkg-config script could not be found. Make sure it is"
8855 echo "*** in your path, or set the PKG_CONFIG environment variable"
8856 echo "*** to the full path to pkg-config."
8857 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8858 else
8859 PKG_CONFIG_MIN_VERSION=0.9.0
8860 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8861 echo "$as_me:$LINENO: checking for pangoft2" >&5
8862 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
8864 if $PKG_CONFIG --exists "pangoft2" ; then
8865 echo "$as_me:$LINENO: result: yes" >&5
8866 echo "${ECHO_T}yes" >&6
8867 succeeded=yes
8869 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
8870 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
8871 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
8872 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
8873 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
8875 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
8876 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
8877 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
8878 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
8879 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
8880 else
8881 PANGOFT2_CFLAGS=""
8882 PANGOFT2_LIBS=""
8883 ## If we have a custom action on failure, don't print errors, but
8884 ## do set a variable so people can do so.
8885 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
8886 echo $PANGOFT2_PKG_ERRORS
8891 else
8892 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8893 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8897 if test $succeeded = yes; then
8899 else
8900 { { 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
8901 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;}
8902 { (exit 1); exit 1; }; }
8911 # FIXME: this should be _libs on some hosts.
8912 libsubdir=.libs
8914 # extra LD Flags which are required for targets
8915 case "${host}" in
8916 *-*-darwin[0-7].*)
8917 # For now we have to disable it on darwin[8-9] because it slows down
8918 # the linking phase. A possible bug in ld?
8919 # on Darwin -single_module speeds up loading of the dynamic libraries.
8920 extra_ldflags_libjava=-Wl,-single_module
8922 esac
8925 # Allow the GC to be disabled. Can be useful when debugging.
8926 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
8927 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
8928 # Check whether --enable-java-gc or --disable-java-gc was given.
8929 if test "${enable_java_gc+set}" = set; then
8930 enableval="$enable_java_gc"
8931 GC=$enableval
8932 else
8933 GC=boehm
8935 GCLIBS=
8936 GCINCS=
8937 GCDEPS=
8938 GCSPEC=
8939 JC1GCSPEC=
8940 GCTESTSPEC=
8941 case "$GC" in
8942 boehm)
8943 echo "$as_me:$LINENO: result: boehm" >&5
8944 echo "${ECHO_T}boehm" >&6
8945 GCLIBS=../boehm-gc/libgcjgc_convenience.la
8946 JC1GCSPEC='-fuse-boehm-gc'
8947 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
8948 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
8949 GCOBJS=boehm.lo
8950 GCHDR=boehm-gc.h
8951 # The POSIX thread support needs to know this.
8953 cat >>confdefs.h <<\_ACEOF
8954 #define HAVE_BOEHM_GC 1
8955 _ACEOF
8959 echo "$as_me:$LINENO: result: none" >&5
8960 echo "${ECHO_T}none" >&6
8961 GCHDR=no-gc.h
8964 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
8965 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
8966 { (exit 1); exit 1; }; }
8968 esac
8975 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
8979 if test "$GC" = boehm; then
8980 USING_BOEHMGC_TRUE=
8981 USING_BOEHMGC_FALSE='#'
8982 else
8983 USING_BOEHMGC_TRUE='#'
8984 USING_BOEHMGC_FALSE=
8989 if test "$GC" = no; then
8990 USING_NOGC_TRUE=
8991 USING_NOGC_FALSE='#'
8992 else
8993 USING_NOGC_TRUE='#'
8994 USING_NOGC_FALSE=
8999 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
9000 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
9001 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
9002 echo "$as_me:$LINENO: result: $THREADS" >&5
9003 echo "${ECHO_T}$THREADS" >&6
9005 case "$THREADS" in
9006 no | none | single)
9007 THREADS=none
9009 posix | posix95 | pthreads)
9010 THREADS=posix
9011 case "$host" in
9012 *-*-linux*)
9014 cat >>confdefs.h <<\_ACEOF
9015 #define LINUX_THREADS 1
9016 _ACEOF
9019 esac
9021 win32)
9023 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
9024 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
9025 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
9026 { (exit 1); exit 1; }; }
9029 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
9030 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
9031 { (exit 1); exit 1; }; }
9033 esac
9035 THREADCXXFLAGS=
9036 THREADLDFLAGS=
9037 THREADLIBS=
9038 THREADINCS=
9039 THREADDEPS=
9040 THREADH=
9041 THREADSPEC=
9042 case "$THREADS" in
9043 posix)
9044 case "$host" in
9045 *-*-cygwin*)
9046 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
9048 *-*-freebsd[1234]*)
9049 # Before FreeBSD 5, it didn't have -lpthread (or any library which
9050 # merely adds pthread_* functions) but it does have a -pthread switch
9051 # which is required at link-time to select -lc_r *instead* of -lc.
9052 THREADLDFLAGS=-pthread
9053 # Don't set THREADSPEC here as might be expected since -pthread is
9054 # not processed when found within a spec file, it must come from
9055 # the command line. For now, the user must provide the -pthread
9056 # switch to link code compiled with gcj. In future, consider adding
9057 # support for weak references to pthread_* functions ala gthr.h API.
9058 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
9060 *-*-freebsd*)
9061 # FreeBSD 5 implements a model much closer to other modern UNIX
9062 # which support threads. However, it still does not support
9063 # -lpthread.
9064 THREADLDFLAGS=-pthread
9065 THREADSPEC=-lc_r
9067 alpha*-dec-osf*)
9068 THREADCXXFLAGS=-pthread
9069 # boehm-gc needs some functions from librt, so link that too.
9070 THREADLIBS='-lpthread -lrt'
9071 THREADSPEC='-lpthread -lrt'
9074 THREADLIBS=-lpthread
9075 THREADSPEC=-lpthread
9077 esac
9078 THREADH=posix-threads.h
9079 # MIT pthreads doesn't seem to have the mutexattr functions.
9080 # But for now we don't check for it. We just assume you aren't
9081 # using MIT pthreads.
9083 cat >>confdefs.h <<\_ACEOF
9084 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9085 _ACEOF
9088 # If we're using the Boehm GC, then we happen to know that it
9089 # defines _REENTRANT, so we don't bother. Eww.
9090 if test "$GC" != boehm; then
9092 cat >>confdefs.h <<\_ACEOF
9093 #define _REENTRANT 1
9094 _ACEOF
9098 cat >>confdefs.h <<\_ACEOF
9099 #define _POSIX_PTHREAD_SEMANTICS 1
9100 _ACEOF
9104 win32)
9105 THREADH=win32-threads.h
9108 none)
9109 THREADH=no-threads.h
9111 esac
9112 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
9122 if test "$THREADS" = posix; then
9123 USING_POSIX_THREADS_TRUE=
9124 USING_POSIX_THREADS_FALSE='#'
9125 else
9126 USING_POSIX_THREADS_TRUE='#'
9127 USING_POSIX_THREADS_FALSE=
9132 if test "$THREADS" = win32; then
9133 USING_WIN32_THREADS_TRUE=
9134 USING_WIN32_THREADS_FALSE='#'
9135 else
9136 USING_WIN32_THREADS_TRUE='#'
9137 USING_WIN32_THREADS_FALSE=
9142 if test "$THREADS" = none; then
9143 USING_NO_THREADS_TRUE=
9144 USING_NO_THREADS_FALSE='#'
9145 else
9146 USING_NO_THREADS_TRUE='#'
9147 USING_NO_THREADS_FALSE=
9151 if test -d sysdep; then true; else mkdir sysdep; fi
9152 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
9154 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
9156 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
9159 HASH_SYNC_SPEC=
9160 # Hash synchronization is only useful with posix threads right now.
9161 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
9162 HASH_SYNC_SPEC=-fhash-synchronization
9164 cat >>confdefs.h <<\_ACEOF
9165 #define JV_HASH_SYNCHRONIZATION 1
9166 _ACEOF
9173 if test "$GCC" = yes; then
9174 USING_GCC_TRUE=
9175 USING_GCC_FALSE='#'
9176 else
9177 USING_GCC_TRUE='#'
9178 USING_GCC_FALSE=
9182 # We're in the tree with gcc, and need to include some of its headers.
9183 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
9185 if test "x${with_newlib}" = "xyes"; then
9186 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
9187 # may not work correctly, because the compiler may not be able to
9188 # link executables.
9190 # We assume newlib. This lets us hard-code the functions we know
9191 # we'll have.
9193 cat >>confdefs.h <<\_ACEOF
9194 #define HAVE_MEMMOVE 1
9195 _ACEOF
9198 cat >>confdefs.h <<\_ACEOF
9199 #define HAVE_MEMCPY 1
9200 _ACEOF
9203 cat >>confdefs.h <<\_ACEOF
9204 #define HAVE_STRERROR 1
9205 _ACEOF
9208 cat >>confdefs.h <<\_ACEOF
9209 #define HAVE_TIME 1
9210 _ACEOF
9213 cat >>confdefs.h <<\_ACEOF
9214 #define HAVE_GMTIME_R 1
9215 _ACEOF
9218 cat >>confdefs.h <<\_ACEOF
9219 #define HAVE_LOCALTIME_R 1
9220 _ACEOF
9223 cat >>confdefs.h <<\_ACEOF
9224 #define HAVE_USLEEP_DECL 1
9225 _ACEOF
9227 # This is only for POSIX threads.
9229 cat >>confdefs.h <<\_ACEOF
9230 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9231 _ACEOF
9233 # We also assume we are using gcc, which provides alloca.
9234 cat >>confdefs.h <<\_ACEOF
9235 #define HAVE_ALLOCA 1
9236 _ACEOF
9239 # Assume we do not have getuid and friends.
9241 cat >>confdefs.h <<\_ACEOF
9242 #define NO_GETUID 1
9243 _ACEOF
9245 PLATFORMNET=NoNet
9246 else
9279 for ac_func in strerror ioctl select fstat open fsync sleep opendir \
9280 gmtime_r localtime_r readdir_r getpwuid_r getcwd \
9281 access stat mkdir rename rmdir unlink realpath utime chmod \
9282 nl_langinfo setlocale \
9283 inet_pton uname inet_ntoa \
9284 fork execvp pipe sigaction ftruncate
9286 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9287 echo "$as_me:$LINENO: checking for $ac_func" >&5
9288 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9289 if eval "test \"\${$as_ac_var+set}\" = set"; then
9290 echo $ECHO_N "(cached) $ECHO_C" >&6
9291 else
9292 if test x$gcc_no_link = xyes; then
9293 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9294 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9295 { (exit 1); exit 1; }; }
9297 cat >conftest.$ac_ext <<_ACEOF
9298 /* confdefs.h. */
9299 _ACEOF
9300 cat confdefs.h >>conftest.$ac_ext
9301 cat >>conftest.$ac_ext <<_ACEOF
9302 /* end confdefs.h. */
9303 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9305 #define $ac_func innocuous_$ac_func
9307 /* System header to define __stub macros and hopefully few prototypes,
9308 which can conflict with char $ac_func (); below.
9309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9310 <limits.h> exists even on freestanding compilers. */
9312 #ifdef __STDC__
9313 # include <limits.h>
9314 #else
9315 # include <assert.h>
9316 #endif
9318 #undef $ac_func
9320 /* Override any gcc2 internal prototype to avoid an error. */
9321 #ifdef __cplusplus
9322 extern "C"
9324 #endif
9325 /* We use char because int might match the return type of a gcc2
9326 builtin and then its argument prototype would still apply. */
9327 char $ac_func ();
9328 /* The GNU C library defines this for functions which it implements
9329 to always fail with ENOSYS. Some functions are actually named
9330 something starting with __ and the normal name is an alias. */
9331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9332 choke me
9333 #else
9334 char (*f) () = $ac_func;
9335 #endif
9336 #ifdef __cplusplus
9338 #endif
9341 main ()
9343 return f != $ac_func;
9345 return 0;
9347 _ACEOF
9348 rm -f conftest.$ac_objext conftest$ac_exeext
9349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9350 (eval $ac_link) 2>conftest.er1
9351 ac_status=$?
9352 grep -v '^ *+' conftest.er1 >conftest.err
9353 rm -f conftest.er1
9354 cat conftest.err >&5
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); } &&
9357 { ac_try='test -z "$ac_c_werror_flag"
9358 || test ! -s conftest.err'
9359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9360 (eval $ac_try) 2>&5
9361 ac_status=$?
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); }; } &&
9364 { ac_try='test -s conftest$ac_exeext'
9365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9366 (eval $ac_try) 2>&5
9367 ac_status=$?
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); }; }; then
9370 eval "$as_ac_var=yes"
9371 else
9372 echo "$as_me: failed program was:" >&5
9373 sed 's/^/| /' conftest.$ac_ext >&5
9375 eval "$as_ac_var=no"
9377 rm -f conftest.err conftest.$ac_objext \
9378 conftest$ac_exeext conftest.$ac_ext
9380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9381 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9382 if test `eval echo '${'$as_ac_var'}'` = yes; then
9383 cat >>confdefs.h <<_ACEOF
9384 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9385 _ACEOF
9388 done
9392 for ac_func in inet_aton inet_addr
9394 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9395 echo "$as_me:$LINENO: checking for $ac_func" >&5
9396 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9397 if eval "test \"\${$as_ac_var+set}\" = set"; then
9398 echo $ECHO_N "(cached) $ECHO_C" >&6
9399 else
9400 if test x$gcc_no_link = xyes; then
9401 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9402 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9403 { (exit 1); exit 1; }; }
9405 cat >conftest.$ac_ext <<_ACEOF
9406 /* confdefs.h. */
9407 _ACEOF
9408 cat confdefs.h >>conftest.$ac_ext
9409 cat >>conftest.$ac_ext <<_ACEOF
9410 /* end confdefs.h. */
9411 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9412 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9413 #define $ac_func innocuous_$ac_func
9415 /* System header to define __stub macros and hopefully few prototypes,
9416 which can conflict with char $ac_func (); below.
9417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9418 <limits.h> exists even on freestanding compilers. */
9420 #ifdef __STDC__
9421 # include <limits.h>
9422 #else
9423 # include <assert.h>
9424 #endif
9426 #undef $ac_func
9428 /* Override any gcc2 internal prototype to avoid an error. */
9429 #ifdef __cplusplus
9430 extern "C"
9432 #endif
9433 /* We use char because int might match the return type of a gcc2
9434 builtin and then its argument prototype would still apply. */
9435 char $ac_func ();
9436 /* The GNU C library defines this for functions which it implements
9437 to always fail with ENOSYS. Some functions are actually named
9438 something starting with __ and the normal name is an alias. */
9439 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9440 choke me
9441 #else
9442 char (*f) () = $ac_func;
9443 #endif
9444 #ifdef __cplusplus
9446 #endif
9449 main ()
9451 return f != $ac_func;
9453 return 0;
9455 _ACEOF
9456 rm -f conftest.$ac_objext conftest$ac_exeext
9457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9458 (eval $ac_link) 2>conftest.er1
9459 ac_status=$?
9460 grep -v '^ *+' conftest.er1 >conftest.err
9461 rm -f conftest.er1
9462 cat conftest.err >&5
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); } &&
9465 { ac_try='test -z "$ac_c_werror_flag"
9466 || test ! -s conftest.err'
9467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9468 (eval $ac_try) 2>&5
9469 ac_status=$?
9470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471 (exit $ac_status); }; } &&
9472 { ac_try='test -s conftest$ac_exeext'
9473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9474 (eval $ac_try) 2>&5
9475 ac_status=$?
9476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477 (exit $ac_status); }; }; then
9478 eval "$as_ac_var=yes"
9479 else
9480 echo "$as_me: failed program was:" >&5
9481 sed 's/^/| /' conftest.$ac_ext >&5
9483 eval "$as_ac_var=no"
9485 rm -f conftest.err conftest.$ac_objext \
9486 conftest$ac_exeext conftest.$ac_ext
9488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9489 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9490 if test `eval echo '${'$as_ac_var'}'` = yes; then
9491 cat >>confdefs.h <<_ACEOF
9492 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9493 _ACEOF
9494 break
9496 done
9498 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9499 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9500 if test "${ac_cv_header_stdc+set}" = set; then
9501 echo $ECHO_N "(cached) $ECHO_C" >&6
9502 else
9503 cat >conftest.$ac_ext <<_ACEOF
9504 /* confdefs.h. */
9505 _ACEOF
9506 cat confdefs.h >>conftest.$ac_ext
9507 cat >>conftest.$ac_ext <<_ACEOF
9508 /* end confdefs.h. */
9509 #include <stdlib.h>
9510 #include <stdarg.h>
9511 #include <string.h>
9512 #include <float.h>
9515 main ()
9519 return 0;
9521 _ACEOF
9522 rm -f conftest.$ac_objext
9523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9524 (eval $ac_compile) 2>conftest.er1
9525 ac_status=$?
9526 grep -v '^ *+' conftest.er1 >conftest.err
9527 rm -f conftest.er1
9528 cat conftest.err >&5
9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530 (exit $ac_status); } &&
9531 { ac_try='test -z "$ac_c_werror_flag"
9532 || test ! -s conftest.err'
9533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9534 (eval $ac_try) 2>&5
9535 ac_status=$?
9536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 (exit $ac_status); }; } &&
9538 { ac_try='test -s conftest.$ac_objext'
9539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9540 (eval $ac_try) 2>&5
9541 ac_status=$?
9542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 (exit $ac_status); }; }; then
9544 ac_cv_header_stdc=yes
9545 else
9546 echo "$as_me: failed program was:" >&5
9547 sed 's/^/| /' conftest.$ac_ext >&5
9549 ac_cv_header_stdc=no
9551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9553 if test $ac_cv_header_stdc = yes; then
9554 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9555 cat >conftest.$ac_ext <<_ACEOF
9556 /* confdefs.h. */
9557 _ACEOF
9558 cat confdefs.h >>conftest.$ac_ext
9559 cat >>conftest.$ac_ext <<_ACEOF
9560 /* end confdefs.h. */
9561 #include <string.h>
9563 _ACEOF
9564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9565 $EGREP "memchr" >/dev/null 2>&1; then
9567 else
9568 ac_cv_header_stdc=no
9570 rm -f conftest*
9574 if test $ac_cv_header_stdc = yes; then
9575 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9576 cat >conftest.$ac_ext <<_ACEOF
9577 /* confdefs.h. */
9578 _ACEOF
9579 cat confdefs.h >>conftest.$ac_ext
9580 cat >>conftest.$ac_ext <<_ACEOF
9581 /* end confdefs.h. */
9582 #include <stdlib.h>
9584 _ACEOF
9585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9586 $EGREP "free" >/dev/null 2>&1; then
9588 else
9589 ac_cv_header_stdc=no
9591 rm -f conftest*
9595 if test $ac_cv_header_stdc = yes; then
9596 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9597 if test "$cross_compiling" = yes; then
9599 else
9600 cat >conftest.$ac_ext <<_ACEOF
9601 /* confdefs.h. */
9602 _ACEOF
9603 cat confdefs.h >>conftest.$ac_ext
9604 cat >>conftest.$ac_ext <<_ACEOF
9605 /* end confdefs.h. */
9606 #include <ctype.h>
9607 #if ((' ' & 0x0FF) == 0x020)
9608 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9609 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9610 #else
9611 # define ISLOWER(c) \
9612 (('a' <= (c) && (c) <= 'i') \
9613 || ('j' <= (c) && (c) <= 'r') \
9614 || ('s' <= (c) && (c) <= 'z'))
9615 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9616 #endif
9618 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9620 main ()
9622 int i;
9623 for (i = 0; i < 256; i++)
9624 if (XOR (islower (i), ISLOWER (i))
9625 || toupper (i) != TOUPPER (i))
9626 exit(2);
9627 exit (0);
9629 _ACEOF
9630 rm -f conftest$ac_exeext
9631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9632 (eval $ac_link) 2>&5
9633 ac_status=$?
9634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9637 (eval $ac_try) 2>&5
9638 ac_status=$?
9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640 (exit $ac_status); }; }; then
9642 else
9643 echo "$as_me: program exited with status $ac_status" >&5
9644 echo "$as_me: failed program was:" >&5
9645 sed 's/^/| /' conftest.$ac_ext >&5
9647 ( exit $ac_status )
9648 ac_cv_header_stdc=no
9650 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9654 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9655 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9656 if test $ac_cv_header_stdc = yes; then
9658 cat >>confdefs.h <<\_ACEOF
9659 #define STDC_HEADERS 1
9660 _ACEOF
9664 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9674 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9675 inttypes.h stdint.h unistd.h
9677 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9678 echo "$as_me:$LINENO: checking for $ac_header" >&5
9679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9681 echo $ECHO_N "(cached) $ECHO_C" >&6
9682 else
9683 cat >conftest.$ac_ext <<_ACEOF
9684 /* confdefs.h. */
9685 _ACEOF
9686 cat confdefs.h >>conftest.$ac_ext
9687 cat >>conftest.$ac_ext <<_ACEOF
9688 /* end confdefs.h. */
9689 $ac_includes_default
9691 #include <$ac_header>
9692 _ACEOF
9693 rm -f conftest.$ac_objext
9694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9695 (eval $ac_compile) 2>conftest.er1
9696 ac_status=$?
9697 grep -v '^ *+' conftest.er1 >conftest.err
9698 rm -f conftest.er1
9699 cat conftest.err >&5
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); } &&
9702 { ac_try='test -z "$ac_c_werror_flag"
9703 || test ! -s conftest.err'
9704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9705 (eval $ac_try) 2>&5
9706 ac_status=$?
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); }; } &&
9709 { ac_try='test -s conftest.$ac_objext'
9710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9711 (eval $ac_try) 2>&5
9712 ac_status=$?
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); }; }; then
9715 eval "$as_ac_Header=yes"
9716 else
9717 echo "$as_me: failed program was:" >&5
9718 sed 's/^/| /' conftest.$ac_ext >&5
9720 eval "$as_ac_Header=no"
9722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9725 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9727 cat >>confdefs.h <<_ACEOF
9728 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9729 _ACEOF
9733 done
9739 for ac_header in execinfo.h unistd.h dlfcn.h
9741 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9743 echo "$as_me:$LINENO: checking for $ac_header" >&5
9744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9746 echo $ECHO_N "(cached) $ECHO_C" >&6
9748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9749 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9750 else
9751 # Is the header compilable?
9752 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9753 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9754 cat >conftest.$ac_ext <<_ACEOF
9755 /* confdefs.h. */
9756 _ACEOF
9757 cat confdefs.h >>conftest.$ac_ext
9758 cat >>conftest.$ac_ext <<_ACEOF
9759 /* end confdefs.h. */
9760 $ac_includes_default
9761 #include <$ac_header>
9762 _ACEOF
9763 rm -f conftest.$ac_objext
9764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9765 (eval $ac_compile) 2>conftest.er1
9766 ac_status=$?
9767 grep -v '^ *+' conftest.er1 >conftest.err
9768 rm -f conftest.er1
9769 cat conftest.err >&5
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); } &&
9772 { ac_try='test -z "$ac_c_werror_flag"
9773 || test ! -s conftest.err'
9774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9775 (eval $ac_try) 2>&5
9776 ac_status=$?
9777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 (exit $ac_status); }; } &&
9779 { ac_try='test -s conftest.$ac_objext'
9780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9781 (eval $ac_try) 2>&5
9782 ac_status=$?
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 (exit $ac_status); }; }; then
9785 ac_header_compiler=yes
9786 else
9787 echo "$as_me: failed program was:" >&5
9788 sed 's/^/| /' conftest.$ac_ext >&5
9790 ac_header_compiler=no
9792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9793 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9794 echo "${ECHO_T}$ac_header_compiler" >&6
9796 # Is the header present?
9797 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9798 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9799 cat >conftest.$ac_ext <<_ACEOF
9800 /* confdefs.h. */
9801 _ACEOF
9802 cat confdefs.h >>conftest.$ac_ext
9803 cat >>conftest.$ac_ext <<_ACEOF
9804 /* end confdefs.h. */
9805 #include <$ac_header>
9806 _ACEOF
9807 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9808 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9809 ac_status=$?
9810 grep -v '^ *+' conftest.er1 >conftest.err
9811 rm -f conftest.er1
9812 cat conftest.err >&5
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 (exit $ac_status); } >/dev/null; then
9815 if test -s conftest.err; then
9816 ac_cpp_err=$ac_c_preproc_warn_flag
9817 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9818 else
9819 ac_cpp_err=
9821 else
9822 ac_cpp_err=yes
9824 if test -z "$ac_cpp_err"; then
9825 ac_header_preproc=yes
9826 else
9827 echo "$as_me: failed program was:" >&5
9828 sed 's/^/| /' conftest.$ac_ext >&5
9830 ac_header_preproc=no
9832 rm -f conftest.err conftest.$ac_ext
9833 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9834 echo "${ECHO_T}$ac_header_preproc" >&6
9836 # So? What about this header?
9837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9838 yes:no: )
9839 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9840 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9842 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9843 ac_header_preproc=yes
9845 no:yes:* )
9846 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9847 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9848 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9849 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9850 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9851 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9852 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9853 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9854 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9855 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9856 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9857 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9859 cat <<\_ASBOX
9860 ## ---------------------------------- ##
9861 ## Report this to the libjava lists. ##
9862 ## ---------------------------------- ##
9863 _ASBOX
9865 sed "s/^/$as_me: WARNING: /" >&2
9867 esac
9868 echo "$as_me:$LINENO: checking for $ac_header" >&5
9869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9871 echo $ECHO_N "(cached) $ECHO_C" >&6
9872 else
9873 eval "$as_ac_Header=\$ac_header_preproc"
9875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9876 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9880 cat >>confdefs.h <<_ACEOF
9881 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9882 _ACEOF
9886 done
9888 echo "$as_me:$LINENO: checking for backtrace" >&5
9889 echo $ECHO_N "checking for backtrace... $ECHO_C" >&6
9890 if test "${ac_cv_func_backtrace+set}" = set; then
9891 echo $ECHO_N "(cached) $ECHO_C" >&6
9892 else
9893 if test x$gcc_no_link = xyes; then
9894 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9895 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9896 { (exit 1); exit 1; }; }
9898 cat >conftest.$ac_ext <<_ACEOF
9899 /* confdefs.h. */
9900 _ACEOF
9901 cat confdefs.h >>conftest.$ac_ext
9902 cat >>conftest.$ac_ext <<_ACEOF
9903 /* end confdefs.h. */
9904 /* Define backtrace to an innocuous variant, in case <limits.h> declares backtrace.
9905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9906 #define backtrace innocuous_backtrace
9908 /* System header to define __stub macros and hopefully few prototypes,
9909 which can conflict with char backtrace (); below.
9910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9911 <limits.h> exists even on freestanding compilers. */
9913 #ifdef __STDC__
9914 # include <limits.h>
9915 #else
9916 # include <assert.h>
9917 #endif
9919 #undef backtrace
9921 /* Override any gcc2 internal prototype to avoid an error. */
9922 #ifdef __cplusplus
9923 extern "C"
9925 #endif
9926 /* We use char because int might match the return type of a gcc2
9927 builtin and then its argument prototype would still apply. */
9928 char backtrace ();
9929 /* The GNU C library defines this for functions which it implements
9930 to always fail with ENOSYS. Some functions are actually named
9931 something starting with __ and the normal name is an alias. */
9932 #if defined (__stub_backtrace) || defined (__stub___backtrace)
9933 choke me
9934 #else
9935 char (*f) () = backtrace;
9936 #endif
9937 #ifdef __cplusplus
9939 #endif
9942 main ()
9944 return f != backtrace;
9946 return 0;
9948 _ACEOF
9949 rm -f conftest.$ac_objext conftest$ac_exeext
9950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9951 (eval $ac_link) 2>conftest.er1
9952 ac_status=$?
9953 grep -v '^ *+' conftest.er1 >conftest.err
9954 rm -f conftest.er1
9955 cat conftest.err >&5
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); } &&
9958 { ac_try='test -z "$ac_c_werror_flag"
9959 || test ! -s conftest.err'
9960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9961 (eval $ac_try) 2>&5
9962 ac_status=$?
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); }; } &&
9965 { ac_try='test -s conftest$ac_exeext'
9966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9967 (eval $ac_try) 2>&5
9968 ac_status=$?
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); }; }; then
9971 ac_cv_func_backtrace=yes
9972 else
9973 echo "$as_me: failed program was:" >&5
9974 sed 's/^/| /' conftest.$ac_ext >&5
9976 ac_cv_func_backtrace=no
9978 rm -f conftest.err conftest.$ac_objext \
9979 conftest$ac_exeext conftest.$ac_ext
9981 echo "$as_me:$LINENO: result: $ac_cv_func_backtrace" >&5
9982 echo "${ECHO_T}$ac_cv_func_backtrace" >&6
9983 if test $ac_cv_func_backtrace = yes; then
9985 case "$host" in
9986 ia64-*-linux*)
9987 # Has broken backtrace()
9989 mips*-*-linux*)
9990 # Has broken backtrace(), but we supply our own.
9991 if test -d sysdep; then true; else mkdir -p sysdep; fi
9992 supply_backtrace=yes
9994 cat >>confdefs.h <<\_ACEOF
9995 #define HAVE_BACKTRACE 1
9996 _ACEOF
10001 cat >>confdefs.h <<\_ACEOF
10002 #define HAVE_BACKTRACE 1
10003 _ACEOF
10006 esac
10008 else
10010 case "$host" in
10011 *mingw*)
10012 # Has backtrace() defined in libgcj itself
10014 cat >>confdefs.h <<\_ACEOF
10015 #define HAVE_BACKTRACE 1
10016 _ACEOF
10019 esac
10024 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
10025 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
10026 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
10027 echo $ECHO_N "(cached) $ECHO_C" >&6
10028 else
10029 ac_check_lib_save_LIBS=$LIBS
10030 LIBS="-ldl $LIBS"
10031 if test x$gcc_no_link = xyes; then
10032 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10033 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10034 { (exit 1); exit 1; }; }
10036 cat >conftest.$ac_ext <<_ACEOF
10037 /* confdefs.h. */
10038 _ACEOF
10039 cat confdefs.h >>conftest.$ac_ext
10040 cat >>conftest.$ac_ext <<_ACEOF
10041 /* end confdefs.h. */
10043 /* Override any gcc2 internal prototype to avoid an error. */
10044 #ifdef __cplusplus
10045 extern "C"
10046 #endif
10047 /* We use char because int might match the return type of a gcc2
10048 builtin and then its argument prototype would still apply. */
10049 char dladdr ();
10051 main ()
10053 dladdr ();
10055 return 0;
10057 _ACEOF
10058 rm -f conftest.$ac_objext conftest$ac_exeext
10059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10060 (eval $ac_link) 2>conftest.er1
10061 ac_status=$?
10062 grep -v '^ *+' conftest.er1 >conftest.err
10063 rm -f conftest.er1
10064 cat conftest.err >&5
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); } &&
10067 { ac_try='test -z "$ac_c_werror_flag"
10068 || test ! -s conftest.err'
10069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10070 (eval $ac_try) 2>&5
10071 ac_status=$?
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); }; } &&
10074 { ac_try='test -s conftest$ac_exeext'
10075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10076 (eval $ac_try) 2>&5
10077 ac_status=$?
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); }; }; then
10080 ac_cv_lib_dl_dladdr=yes
10081 else
10082 echo "$as_me: failed program was:" >&5
10083 sed 's/^/| /' conftest.$ac_ext >&5
10085 ac_cv_lib_dl_dladdr=no
10087 rm -f conftest.err conftest.$ac_objext \
10088 conftest$ac_exeext conftest.$ac_ext
10089 LIBS=$ac_check_lib_save_LIBS
10091 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
10092 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
10093 if test $ac_cv_lib_dl_dladdr = yes; then
10095 if test "x${disable_dladdr}" = "xyes"; then
10096 #Broken dladdr().
10097 true
10098 else
10100 cat >>confdefs.h <<\_ACEOF
10101 #define HAVE_DLADDR 1
10102 _ACEOF
10108 if test x"$build" = x"$host"; then
10109 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
10110 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
10111 if test "${ac_cv_file__proc_self_exe+set}" = set; then
10112 echo $ECHO_N "(cached) $ECHO_C" >&6
10113 else
10114 test "$cross_compiling" = yes &&
10115 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10116 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10117 { (exit 1); exit 1; }; }
10118 if test -r "/proc/self/exe"; then
10119 ac_cv_file__proc_self_exe=yes
10120 else
10121 ac_cv_file__proc_self_exe=no
10124 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
10125 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
10126 if test $ac_cv_file__proc_self_exe = yes; then
10128 cat >>confdefs.h <<_ACEOF
10129 #define HAVE__PROC_SELF_EXE 1
10130 _ACEOF
10134 cat >>confdefs.h <<\_ACEOF
10135 #define HAVE_PROC_SELF_EXE 1
10136 _ACEOF
10140 else
10141 case $host in
10142 *-linux*)
10144 cat >>confdefs.h <<\_ACEOF
10145 #define HAVE_PROC_SELF_EXE 1
10146 _ACEOF
10149 esac
10153 if test "X$prefix" = "XNONE"; then
10154 acl_final_prefix="$ac_default_prefix"
10155 else
10156 acl_final_prefix="$prefix"
10158 if test "X$exec_prefix" = "XNONE"; then
10159 acl_final_exec_prefix='${prefix}'
10160 else
10161 acl_final_exec_prefix="$exec_prefix"
10163 acl_save_prefix="$prefix"
10164 prefix="$acl_final_prefix"
10165 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10166 prefix="$acl_save_prefix"
10169 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10170 if test "${with_gnu_ld+set}" = set; then
10171 withval="$with_gnu_ld"
10172 test "$withval" = no || with_gnu_ld=yes
10173 else
10174 with_gnu_ld=no
10176 # Prepare PATH_SEPARATOR.
10177 # The user is always right.
10178 if test "${PATH_SEPARATOR+set}" != set; then
10179 echo "#! /bin/sh" >conf$$.sh
10180 echo "exit 0" >>conf$$.sh
10181 chmod +x conf$$.sh
10182 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10183 PATH_SEPARATOR=';'
10184 else
10185 PATH_SEPARATOR=:
10187 rm -f conf$$.sh
10189 ac_prog=ld
10190 if test "$GCC" = yes; then
10191 # Check if gcc -print-prog-name=ld gives a path.
10192 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10193 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10194 case $host in
10195 *-*-mingw*)
10196 # gcc leaves a trailing carriage return which upsets mingw
10197 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10199 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10200 esac
10201 case $ac_prog in
10202 # Accept absolute paths.
10203 [\\/]* | [A-Za-z]:[\\/]*)
10204 re_direlt='/[^/][^/]*/\.\./'
10205 # Canonicalize the path of ld
10206 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10207 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10208 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10209 done
10210 test -z "$LD" && LD="$ac_prog"
10213 # If it fails, then pretend we aren't using GCC.
10214 ac_prog=ld
10217 # If it is relative, then search for the first ld in PATH.
10218 with_gnu_ld=unknown
10220 esac
10221 elif test "$with_gnu_ld" = yes; then
10222 echo "$as_me:$LINENO: checking for GNU ld" >&5
10223 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10224 else
10225 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10226 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10228 if test "${acl_cv_path_LD+set}" = set; then
10229 echo $ECHO_N "(cached) $ECHO_C" >&6
10230 else
10231 if test -z "$LD"; then
10232 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10233 for ac_dir in $PATH; do
10234 test -z "$ac_dir" && ac_dir=.
10235 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10236 acl_cv_path_LD="$ac_dir/$ac_prog"
10237 # Check to see if the program is GNU ld. I'd rather use --version,
10238 # but apparently some GNU ld's only accept -v.
10239 # Break only if it was the GNU/non-GNU ld that we prefer.
10240 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10241 test "$with_gnu_ld" != no && break
10242 else
10243 test "$with_gnu_ld" != yes && break
10246 done
10247 IFS="$ac_save_ifs"
10248 else
10249 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10253 LD="$acl_cv_path_LD"
10254 if test -n "$LD"; then
10255 echo "$as_me:$LINENO: result: $LD" >&5
10256 echo "${ECHO_T}$LD" >&6
10257 else
10258 echo "$as_me:$LINENO: result: no" >&5
10259 echo "${ECHO_T}no" >&6
10261 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10262 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10263 { (exit 1); exit 1; }; }
10264 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10265 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10266 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10267 echo $ECHO_N "(cached) $ECHO_C" >&6
10268 else
10269 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10270 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10271 acl_cv_prog_gnu_ld=yes
10272 else
10273 acl_cv_prog_gnu_ld=no
10276 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10277 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10278 with_gnu_ld=$acl_cv_prog_gnu_ld
10282 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10283 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10284 if test "${acl_cv_rpath+set}" = set; then
10285 echo $ECHO_N "(cached) $ECHO_C" >&6
10286 else
10288 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10289 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10290 . ./conftest.sh
10291 rm -f ./conftest.sh
10292 acl_cv_rpath=done
10295 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10296 echo "${ECHO_T}$acl_cv_rpath" >&6
10297 wl="$acl_cv_wl"
10298 libext="$acl_cv_libext"
10299 shlibext="$acl_cv_shlibext"
10300 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10301 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10302 hardcode_direct="$acl_cv_hardcode_direct"
10303 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10304 # Check whether --enable-rpath or --disable-rpath was given.
10305 if test "${enable_rpath+set}" = set; then
10306 enableval="$enable_rpath"
10308 else
10309 enable_rpath=yes
10318 use_additional=yes
10320 acl_save_prefix="$prefix"
10321 prefix="$acl_final_prefix"
10322 acl_save_exec_prefix="$exec_prefix"
10323 exec_prefix="$acl_final_exec_prefix"
10325 eval additional_includedir=\"$includedir\"
10326 eval additional_libdir=\"$libdir\"
10328 exec_prefix="$acl_save_exec_prefix"
10329 prefix="$acl_save_prefix"
10332 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10333 if test "${with_libiconv_prefix+set}" = set; then
10334 withval="$with_libiconv_prefix"
10336 if test "X$withval" = "Xno"; then
10337 use_additional=no
10338 else
10339 if test "X$withval" = "X"; then
10341 acl_save_prefix="$prefix"
10342 prefix="$acl_final_prefix"
10343 acl_save_exec_prefix="$exec_prefix"
10344 exec_prefix="$acl_final_exec_prefix"
10346 eval additional_includedir=\"$includedir\"
10347 eval additional_libdir=\"$libdir\"
10349 exec_prefix="$acl_save_exec_prefix"
10350 prefix="$acl_save_prefix"
10352 else
10353 additional_includedir="$withval/include"
10354 additional_libdir="$withval/lib"
10359 LIBICONV=
10360 LTLIBICONV=
10361 INCICONV=
10362 rpathdirs=
10363 ltrpathdirs=
10364 names_already_handled=
10365 names_next_round='iconv '
10366 while test -n "$names_next_round"; do
10367 names_this_round="$names_next_round"
10368 names_next_round=
10369 for name in $names_this_round; do
10370 already_handled=
10371 for n in $names_already_handled; do
10372 if test "$n" = "$name"; then
10373 already_handled=yes
10374 break
10376 done
10377 if test -z "$already_handled"; then
10378 names_already_handled="$names_already_handled $name"
10379 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10380 eval value=\"\$HAVE_LIB$uppername\"
10381 if test -n "$value"; then
10382 if test "$value" = yes; then
10383 eval value=\"\$LIB$uppername\"
10384 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10385 eval value=\"\$LTLIB$uppername\"
10386 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10387 else
10390 else
10391 found_dir=
10392 found_la=
10393 found_so=
10394 found_a=
10395 if test $use_additional = yes; then
10396 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10397 found_dir="$additional_libdir"
10398 found_so="$additional_libdir/lib$name.$shlibext"
10399 if test -f "$additional_libdir/lib$name.la"; then
10400 found_la="$additional_libdir/lib$name.la"
10402 else
10403 if test -f "$additional_libdir/lib$name.$libext"; then
10404 found_dir="$additional_libdir"
10405 found_a="$additional_libdir/lib$name.$libext"
10406 if test -f "$additional_libdir/lib$name.la"; then
10407 found_la="$additional_libdir/lib$name.la"
10412 if test "X$found_dir" = "X"; then
10413 for x in $LDFLAGS $LTLIBICONV; do
10415 acl_save_prefix="$prefix"
10416 prefix="$acl_final_prefix"
10417 acl_save_exec_prefix="$exec_prefix"
10418 exec_prefix="$acl_final_exec_prefix"
10419 eval x=\"$x\"
10420 exec_prefix="$acl_save_exec_prefix"
10421 prefix="$acl_save_prefix"
10423 case "$x" in
10424 -L*)
10425 dir=`echo "X$x" | sed -e 's/^X-L//'`
10426 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10427 found_dir="$dir"
10428 found_so="$dir/lib$name.$shlibext"
10429 if test -f "$dir/lib$name.la"; then
10430 found_la="$dir/lib$name.la"
10432 else
10433 if test -f "$dir/lib$name.$libext"; then
10434 found_dir="$dir"
10435 found_a="$dir/lib$name.$libext"
10436 if test -f "$dir/lib$name.la"; then
10437 found_la="$dir/lib$name.la"
10442 esac
10443 if test "X$found_dir" != "X"; then
10444 break
10446 done
10448 if test "X$found_dir" != "X"; then
10449 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10450 if test "X$found_so" != "X"; then
10451 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10452 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10453 else
10454 haveit=
10455 for x in $ltrpathdirs; do
10456 if test "X$x" = "X$found_dir"; then
10457 haveit=yes
10458 break
10460 done
10461 if test -z "$haveit"; then
10462 ltrpathdirs="$ltrpathdirs $found_dir"
10464 if test "$hardcode_direct" = yes; then
10465 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10466 else
10467 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10468 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10469 haveit=
10470 for x in $rpathdirs; do
10471 if test "X$x" = "X$found_dir"; then
10472 haveit=yes
10473 break
10475 done
10476 if test -z "$haveit"; then
10477 rpathdirs="$rpathdirs $found_dir"
10479 else
10480 haveit=
10481 for x in $LDFLAGS $LIBICONV; do
10483 acl_save_prefix="$prefix"
10484 prefix="$acl_final_prefix"
10485 acl_save_exec_prefix="$exec_prefix"
10486 exec_prefix="$acl_final_exec_prefix"
10487 eval x=\"$x\"
10488 exec_prefix="$acl_save_exec_prefix"
10489 prefix="$acl_save_prefix"
10491 if test "X$x" = "X-L$found_dir"; then
10492 haveit=yes
10493 break
10495 done
10496 if test -z "$haveit"; then
10497 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10499 if test "$hardcode_minus_L" != no; then
10500 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10501 else
10502 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10507 else
10508 if test "X$found_a" != "X"; then
10509 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10510 else
10511 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10514 additional_includedir=
10515 case "$found_dir" in
10516 */lib | */lib/)
10517 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10518 additional_includedir="$basedir/include"
10520 esac
10521 if test "X$additional_includedir" != "X"; then
10522 if test "X$additional_includedir" != "X/usr/include"; then
10523 haveit=
10524 if test "X$additional_includedir" = "X/usr/local/include"; then
10525 if test -n "$GCC"; then
10526 case $host_os in
10527 linux*) haveit=yes;;
10528 esac
10531 if test -z "$haveit"; then
10532 for x in $CPPFLAGS $INCICONV; do
10534 acl_save_prefix="$prefix"
10535 prefix="$acl_final_prefix"
10536 acl_save_exec_prefix="$exec_prefix"
10537 exec_prefix="$acl_final_exec_prefix"
10538 eval x=\"$x\"
10539 exec_prefix="$acl_save_exec_prefix"
10540 prefix="$acl_save_prefix"
10542 if test "X$x" = "X-I$additional_includedir"; then
10543 haveit=yes
10544 break
10546 done
10547 if test -z "$haveit"; then
10548 if test -d "$additional_includedir"; then
10549 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10555 if test -n "$found_la"; then
10556 save_libdir="$libdir"
10557 case "$found_la" in
10558 */* | *\\*) . "$found_la" ;;
10559 *) . "./$found_la" ;;
10560 esac
10561 libdir="$save_libdir"
10562 for dep in $dependency_libs; do
10563 case "$dep" in
10564 -L*)
10565 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10566 if test "X$additional_libdir" != "X/usr/lib"; then
10567 haveit=
10568 if test "X$additional_libdir" = "X/usr/local/lib"; then
10569 if test -n "$GCC"; then
10570 case $host_os in
10571 linux*) haveit=yes;;
10572 esac
10575 if test -z "$haveit"; then
10576 haveit=
10577 for x in $LDFLAGS $LIBICONV; do
10579 acl_save_prefix="$prefix"
10580 prefix="$acl_final_prefix"
10581 acl_save_exec_prefix="$exec_prefix"
10582 exec_prefix="$acl_final_exec_prefix"
10583 eval x=\"$x\"
10584 exec_prefix="$acl_save_exec_prefix"
10585 prefix="$acl_save_prefix"
10587 if test "X$x" = "X-L$additional_libdir"; then
10588 haveit=yes
10589 break
10591 done
10592 if test -z "$haveit"; then
10593 if test -d "$additional_libdir"; then
10594 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10597 haveit=
10598 for x in $LDFLAGS $LTLIBICONV; do
10600 acl_save_prefix="$prefix"
10601 prefix="$acl_final_prefix"
10602 acl_save_exec_prefix="$exec_prefix"
10603 exec_prefix="$acl_final_exec_prefix"
10604 eval x=\"$x\"
10605 exec_prefix="$acl_save_exec_prefix"
10606 prefix="$acl_save_prefix"
10608 if test "X$x" = "X-L$additional_libdir"; then
10609 haveit=yes
10610 break
10612 done
10613 if test -z "$haveit"; then
10614 if test -d "$additional_libdir"; then
10615 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10621 -R*)
10622 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10623 if test "$enable_rpath" != no; then
10624 haveit=
10625 for x in $rpathdirs; do
10626 if test "X$x" = "X$dir"; then
10627 haveit=yes
10628 break
10630 done
10631 if test -z "$haveit"; then
10632 rpathdirs="$rpathdirs $dir"
10634 haveit=
10635 for x in $ltrpathdirs; do
10636 if test "X$x" = "X$dir"; then
10637 haveit=yes
10638 break
10640 done
10641 if test -z "$haveit"; then
10642 ltrpathdirs="$ltrpathdirs $dir"
10646 -l*)
10647 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10649 *.la)
10650 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10653 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10654 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10656 esac
10657 done
10659 else
10660 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10661 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10665 done
10666 done
10667 if test "X$rpathdirs" != "X"; then
10668 if test -n "$hardcode_libdir_separator"; then
10669 alldirs=
10670 for found_dir in $rpathdirs; do
10671 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10672 done
10673 acl_save_libdir="$libdir"
10674 libdir="$alldirs"
10675 eval flag=\"$hardcode_libdir_flag_spec\"
10676 libdir="$acl_save_libdir"
10677 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10678 else
10679 for found_dir in $rpathdirs; do
10680 acl_save_libdir="$libdir"
10681 libdir="$found_dir"
10682 eval flag=\"$hardcode_libdir_flag_spec\"
10683 libdir="$acl_save_libdir"
10684 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10685 done
10688 if test "X$ltrpathdirs" != "X"; then
10689 for found_dir in $ltrpathdirs; do
10690 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10691 done
10700 am_save_CPPFLAGS="$CPPFLAGS"
10702 for element in $INCICONV; do
10703 haveit=
10704 for x in $CPPFLAGS; do
10706 acl_save_prefix="$prefix"
10707 prefix="$acl_final_prefix"
10708 acl_save_exec_prefix="$exec_prefix"
10709 exec_prefix="$acl_final_exec_prefix"
10710 eval x=\"$x\"
10711 exec_prefix="$acl_save_exec_prefix"
10712 prefix="$acl_save_prefix"
10714 if test "X$x" = "X$element"; then
10715 haveit=yes
10716 break
10718 done
10719 if test -z "$haveit"; then
10720 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10722 done
10725 echo "$as_me:$LINENO: checking for iconv" >&5
10726 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10727 if test "${am_cv_func_iconv+set}" = set; then
10728 echo $ECHO_N "(cached) $ECHO_C" >&6
10729 else
10731 am_cv_func_iconv="no, consider installing GNU libiconv"
10732 am_cv_lib_iconv=no
10733 if test x$gcc_no_link = xyes; then
10734 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10735 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10736 { (exit 1); exit 1; }; }
10738 cat >conftest.$ac_ext <<_ACEOF
10739 /* confdefs.h. */
10740 _ACEOF
10741 cat confdefs.h >>conftest.$ac_ext
10742 cat >>conftest.$ac_ext <<_ACEOF
10743 /* end confdefs.h. */
10744 #include <stdlib.h>
10745 #include <iconv.h>
10747 main ()
10749 iconv_t cd = iconv_open("","");
10750 iconv(cd,NULL,NULL,NULL,NULL);
10751 iconv_close(cd);
10753 return 0;
10755 _ACEOF
10756 rm -f conftest.$ac_objext conftest$ac_exeext
10757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10758 (eval $ac_link) 2>conftest.er1
10759 ac_status=$?
10760 grep -v '^ *+' conftest.er1 >conftest.err
10761 rm -f conftest.er1
10762 cat conftest.err >&5
10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); } &&
10765 { ac_try='test -z "$ac_c_werror_flag"
10766 || test ! -s conftest.err'
10767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10768 (eval $ac_try) 2>&5
10769 ac_status=$?
10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); }; } &&
10772 { ac_try='test -s conftest$ac_exeext'
10773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10774 (eval $ac_try) 2>&5
10775 ac_status=$?
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); }; }; then
10778 am_cv_func_iconv=yes
10779 else
10780 echo "$as_me: failed program was:" >&5
10781 sed 's/^/| /' conftest.$ac_ext >&5
10784 rm -f conftest.err conftest.$ac_objext \
10785 conftest$ac_exeext conftest.$ac_ext
10786 if test "$am_cv_func_iconv" != yes; then
10787 am_save_LIBS="$LIBS"
10788 LIBS="$LIBS $LIBICONV"
10789 if test x$gcc_no_link = xyes; then
10790 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10791 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10792 { (exit 1); exit 1; }; }
10794 cat >conftest.$ac_ext <<_ACEOF
10795 /* confdefs.h. */
10796 _ACEOF
10797 cat confdefs.h >>conftest.$ac_ext
10798 cat >>conftest.$ac_ext <<_ACEOF
10799 /* end confdefs.h. */
10800 #include <stdlib.h>
10801 #include <iconv.h>
10803 main ()
10805 iconv_t cd = iconv_open("","");
10806 iconv(cd,NULL,NULL,NULL,NULL);
10807 iconv_close(cd);
10809 return 0;
10811 _ACEOF
10812 rm -f conftest.$ac_objext conftest$ac_exeext
10813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10814 (eval $ac_link) 2>conftest.er1
10815 ac_status=$?
10816 grep -v '^ *+' conftest.er1 >conftest.err
10817 rm -f conftest.er1
10818 cat conftest.err >&5
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); } &&
10821 { ac_try='test -z "$ac_c_werror_flag"
10822 || test ! -s conftest.err'
10823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10824 (eval $ac_try) 2>&5
10825 ac_status=$?
10826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827 (exit $ac_status); }; } &&
10828 { ac_try='test -s conftest$ac_exeext'
10829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10830 (eval $ac_try) 2>&5
10831 ac_status=$?
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); }; }; then
10834 am_cv_lib_iconv=yes
10835 am_cv_func_iconv=yes
10836 else
10837 echo "$as_me: failed program was:" >&5
10838 sed 's/^/| /' conftest.$ac_ext >&5
10841 rm -f conftest.err conftest.$ac_objext \
10842 conftest$ac_exeext conftest.$ac_ext
10843 LIBS="$am_save_LIBS"
10847 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10848 echo "${ECHO_T}$am_cv_func_iconv" >&6
10849 if test "$am_cv_func_iconv" = yes; then
10851 cat >>confdefs.h <<\_ACEOF
10852 #define HAVE_ICONV 1
10853 _ACEOF
10856 if test "$am_cv_lib_iconv" = yes; then
10857 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10858 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10859 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10860 echo "${ECHO_T}$LIBICONV" >&6
10861 else
10862 CPPFLAGS="$am_save_CPPFLAGS"
10863 LIBICONV=
10864 LTLIBICONV=
10869 if test "$am_cv_func_iconv" = yes; then
10870 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10871 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10872 if test "${am_cv_proto_iconv+set}" = set; then
10873 echo $ECHO_N "(cached) $ECHO_C" >&6
10874 else
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. */
10883 #include <stdlib.h>
10884 #include <iconv.h>
10885 extern
10886 #ifdef __cplusplus
10888 #endif
10889 #if defined(__STDC__) || defined(__cplusplus)
10890 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10891 #else
10892 size_t iconv();
10893 #endif
10896 main ()
10900 return 0;
10902 _ACEOF
10903 rm -f conftest.$ac_objext
10904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10905 (eval $ac_compile) 2>conftest.er1
10906 ac_status=$?
10907 grep -v '^ *+' conftest.er1 >conftest.err
10908 rm -f conftest.er1
10909 cat conftest.err >&5
10910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911 (exit $ac_status); } &&
10912 { ac_try='test -z "$ac_c_werror_flag"
10913 || test ! -s conftest.err'
10914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10915 (eval $ac_try) 2>&5
10916 ac_status=$?
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); }; } &&
10919 { ac_try='test -s conftest.$ac_objext'
10920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10921 (eval $ac_try) 2>&5
10922 ac_status=$?
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); }; }; then
10925 am_cv_proto_iconv_arg1=""
10926 else
10927 echo "$as_me: failed program was:" >&5
10928 sed 's/^/| /' conftest.$ac_ext >&5
10930 am_cv_proto_iconv_arg1="const"
10932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10933 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);"
10936 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10937 echo "$as_me:$LINENO: result: ${ac_t:-
10938 }$am_cv_proto_iconv" >&5
10939 echo "${ECHO_T}${ac_t:-
10940 }$am_cv_proto_iconv" >&6
10942 cat >>confdefs.h <<_ACEOF
10943 #define ICONV_CONST $am_cv_proto_iconv_arg1
10944 _ACEOF
10949 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10950 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10951 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10952 echo $ECHO_N "(cached) $ECHO_C" >&6
10953 else
10954 if test x$gcc_no_link = xyes; then
10955 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10956 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10957 { (exit 1); exit 1; }; }
10959 cat >conftest.$ac_ext <<_ACEOF
10960 /* confdefs.h. */
10961 _ACEOF
10962 cat confdefs.h >>conftest.$ac_ext
10963 cat >>conftest.$ac_ext <<_ACEOF
10964 /* end confdefs.h. */
10965 #include <locale.h>
10967 main ()
10969 return LC_MESSAGES
10971 return 0;
10973 _ACEOF
10974 rm -f conftest.$ac_objext conftest$ac_exeext
10975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10976 (eval $ac_link) 2>conftest.er1
10977 ac_status=$?
10978 grep -v '^ *+' conftest.er1 >conftest.err
10979 rm -f conftest.er1
10980 cat conftest.err >&5
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); } &&
10983 { ac_try='test -z "$ac_c_werror_flag"
10984 || test ! -s conftest.err'
10985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10986 (eval $ac_try) 2>&5
10987 ac_status=$?
10988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989 (exit $ac_status); }; } &&
10990 { ac_try='test -s conftest$ac_exeext'
10991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10992 (eval $ac_try) 2>&5
10993 ac_status=$?
10994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995 (exit $ac_status); }; }; then
10996 am_cv_val_LC_MESSAGES=yes
10997 else
10998 echo "$as_me: failed program was:" >&5
10999 sed 's/^/| /' conftest.$ac_ext >&5
11001 am_cv_val_LC_MESSAGES=no
11003 rm -f conftest.err conftest.$ac_objext \
11004 conftest$ac_exeext conftest.$ac_ext
11006 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11007 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11008 if test $am_cv_val_LC_MESSAGES = yes; then
11010 cat >>confdefs.h <<\_ACEOF
11011 #define HAVE_LC_MESSAGES 1
11012 _ACEOF
11016 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11017 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11018 if test "${ac_cv_struct_tm+set}" = set; then
11019 echo $ECHO_N "(cached) $ECHO_C" >&6
11020 else
11021 cat >conftest.$ac_ext <<_ACEOF
11022 /* confdefs.h. */
11023 _ACEOF
11024 cat confdefs.h >>conftest.$ac_ext
11025 cat >>conftest.$ac_ext <<_ACEOF
11026 /* end confdefs.h. */
11027 #include <sys/types.h>
11028 #include <time.h>
11031 main ()
11033 struct tm *tp; tp->tm_sec;
11035 return 0;
11037 _ACEOF
11038 rm -f conftest.$ac_objext
11039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11040 (eval $ac_compile) 2>conftest.er1
11041 ac_status=$?
11042 grep -v '^ *+' conftest.er1 >conftest.err
11043 rm -f conftest.er1
11044 cat conftest.err >&5
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); } &&
11047 { ac_try='test -z "$ac_c_werror_flag"
11048 || test ! -s conftest.err'
11049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11050 (eval $ac_try) 2>&5
11051 ac_status=$?
11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053 (exit $ac_status); }; } &&
11054 { ac_try='test -s conftest.$ac_objext'
11055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11056 (eval $ac_try) 2>&5
11057 ac_status=$?
11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); }; }; then
11060 ac_cv_struct_tm=time.h
11061 else
11062 echo "$as_me: failed program was:" >&5
11063 sed 's/^/| /' conftest.$ac_ext >&5
11065 ac_cv_struct_tm=sys/time.h
11067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11069 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11070 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11071 if test $ac_cv_struct_tm = sys/time.h; then
11073 cat >>confdefs.h <<\_ACEOF
11074 #define TM_IN_SYS_TIME 1
11075 _ACEOF
11079 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11080 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11081 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11082 echo $ECHO_N "(cached) $ECHO_C" >&6
11083 else
11084 cat >conftest.$ac_ext <<_ACEOF
11085 /* confdefs.h. */
11086 _ACEOF
11087 cat confdefs.h >>conftest.$ac_ext
11088 cat >>conftest.$ac_ext <<_ACEOF
11089 /* end confdefs.h. */
11090 #include <sys/types.h>
11091 #include <$ac_cv_struct_tm>
11095 main ()
11097 static struct tm ac_aggr;
11098 if (ac_aggr.tm_zone)
11099 return 0;
11101 return 0;
11103 _ACEOF
11104 rm -f conftest.$ac_objext
11105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11106 (eval $ac_compile) 2>conftest.er1
11107 ac_status=$?
11108 grep -v '^ *+' conftest.er1 >conftest.err
11109 rm -f conftest.er1
11110 cat conftest.err >&5
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); } &&
11113 { ac_try='test -z "$ac_c_werror_flag"
11114 || test ! -s conftest.err'
11115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11116 (eval $ac_try) 2>&5
11117 ac_status=$?
11118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119 (exit $ac_status); }; } &&
11120 { ac_try='test -s conftest.$ac_objext'
11121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11122 (eval $ac_try) 2>&5
11123 ac_status=$?
11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125 (exit $ac_status); }; }; then
11126 ac_cv_member_struct_tm_tm_zone=yes
11127 else
11128 echo "$as_me: failed program was:" >&5
11129 sed 's/^/| /' conftest.$ac_ext >&5
11131 cat >conftest.$ac_ext <<_ACEOF
11132 /* confdefs.h. */
11133 _ACEOF
11134 cat confdefs.h >>conftest.$ac_ext
11135 cat >>conftest.$ac_ext <<_ACEOF
11136 /* end confdefs.h. */
11137 #include <sys/types.h>
11138 #include <$ac_cv_struct_tm>
11142 main ()
11144 static struct tm ac_aggr;
11145 if (sizeof ac_aggr.tm_zone)
11146 return 0;
11148 return 0;
11150 _ACEOF
11151 rm -f conftest.$ac_objext
11152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11153 (eval $ac_compile) 2>conftest.er1
11154 ac_status=$?
11155 grep -v '^ *+' conftest.er1 >conftest.err
11156 rm -f conftest.er1
11157 cat conftest.err >&5
11158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159 (exit $ac_status); } &&
11160 { ac_try='test -z "$ac_c_werror_flag"
11161 || test ! -s conftest.err'
11162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11163 (eval $ac_try) 2>&5
11164 ac_status=$?
11165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 (exit $ac_status); }; } &&
11167 { ac_try='test -s conftest.$ac_objext'
11168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11169 (eval $ac_try) 2>&5
11170 ac_status=$?
11171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172 (exit $ac_status); }; }; then
11173 ac_cv_member_struct_tm_tm_zone=yes
11174 else
11175 echo "$as_me: failed program was:" >&5
11176 sed 's/^/| /' conftest.$ac_ext >&5
11178 ac_cv_member_struct_tm_tm_zone=no
11180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11184 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11185 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11186 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11188 cat >>confdefs.h <<_ACEOF
11189 #define HAVE_STRUCT_TM_TM_ZONE 1
11190 _ACEOF
11195 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11197 cat >>confdefs.h <<\_ACEOF
11198 #define HAVE_TM_ZONE 1
11199 _ACEOF
11201 else
11202 echo "$as_me:$LINENO: checking for tzname" >&5
11203 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11204 if test "${ac_cv_var_tzname+set}" = set; then
11205 echo $ECHO_N "(cached) $ECHO_C" >&6
11206 else
11207 if test x$gcc_no_link = xyes; then
11208 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11209 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11210 { (exit 1); exit 1; }; }
11212 cat >conftest.$ac_ext <<_ACEOF
11213 /* confdefs.h. */
11214 _ACEOF
11215 cat confdefs.h >>conftest.$ac_ext
11216 cat >>conftest.$ac_ext <<_ACEOF
11217 /* end confdefs.h. */
11218 #include <time.h>
11219 #ifndef tzname /* For SGI. */
11220 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11221 #endif
11224 main ()
11226 atoi(*tzname);
11228 return 0;
11230 _ACEOF
11231 rm -f conftest.$ac_objext conftest$ac_exeext
11232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11233 (eval $ac_link) 2>conftest.er1
11234 ac_status=$?
11235 grep -v '^ *+' conftest.er1 >conftest.err
11236 rm -f conftest.er1
11237 cat conftest.err >&5
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); } &&
11240 { ac_try='test -z "$ac_c_werror_flag"
11241 || test ! -s conftest.err'
11242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11243 (eval $ac_try) 2>&5
11244 ac_status=$?
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); }; } &&
11247 { ac_try='test -s conftest$ac_exeext'
11248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11249 (eval $ac_try) 2>&5
11250 ac_status=$?
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); }; }; then
11253 ac_cv_var_tzname=yes
11254 else
11255 echo "$as_me: failed program was:" >&5
11256 sed 's/^/| /' conftest.$ac_ext >&5
11258 ac_cv_var_tzname=no
11260 rm -f conftest.err conftest.$ac_objext \
11261 conftest$ac_exeext conftest.$ac_ext
11263 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11264 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11265 if test $ac_cv_var_tzname = yes; then
11267 cat >>confdefs.h <<\_ACEOF
11268 #define HAVE_TZNAME 1
11269 _ACEOF
11277 for ac_func in gethostbyname_r
11279 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11280 echo "$as_me:$LINENO: checking for $ac_func" >&5
11281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11282 if eval "test \"\${$as_ac_var+set}\" = set"; then
11283 echo $ECHO_N "(cached) $ECHO_C" >&6
11284 else
11285 if test x$gcc_no_link = xyes; then
11286 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11287 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11288 { (exit 1); exit 1; }; }
11290 cat >conftest.$ac_ext <<_ACEOF
11291 /* confdefs.h. */
11292 _ACEOF
11293 cat confdefs.h >>conftest.$ac_ext
11294 cat >>conftest.$ac_ext <<_ACEOF
11295 /* end confdefs.h. */
11296 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11298 #define $ac_func innocuous_$ac_func
11300 /* System header to define __stub macros and hopefully few prototypes,
11301 which can conflict with char $ac_func (); below.
11302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11303 <limits.h> exists even on freestanding compilers. */
11305 #ifdef __STDC__
11306 # include <limits.h>
11307 #else
11308 # include <assert.h>
11309 #endif
11311 #undef $ac_func
11313 /* Override any gcc2 internal prototype to avoid an error. */
11314 #ifdef __cplusplus
11315 extern "C"
11317 #endif
11318 /* We use char because int might match the return type of a gcc2
11319 builtin and then its argument prototype would still apply. */
11320 char $ac_func ();
11321 /* The GNU C library defines this for functions which it implements
11322 to always fail with ENOSYS. Some functions are actually named
11323 something starting with __ and the normal name is an alias. */
11324 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11325 choke me
11326 #else
11327 char (*f) () = $ac_func;
11328 #endif
11329 #ifdef __cplusplus
11331 #endif
11334 main ()
11336 return f != $ac_func;
11338 return 0;
11340 _ACEOF
11341 rm -f conftest.$ac_objext conftest$ac_exeext
11342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11343 (eval $ac_link) 2>conftest.er1
11344 ac_status=$?
11345 grep -v '^ *+' conftest.er1 >conftest.err
11346 rm -f conftest.er1
11347 cat conftest.err >&5
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); } &&
11350 { ac_try='test -z "$ac_c_werror_flag"
11351 || test ! -s conftest.err'
11352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11353 (eval $ac_try) 2>&5
11354 ac_status=$?
11355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356 (exit $ac_status); }; } &&
11357 { ac_try='test -s conftest$ac_exeext'
11358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11359 (eval $ac_try) 2>&5
11360 ac_status=$?
11361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); }; }; then
11363 eval "$as_ac_var=yes"
11364 else
11365 echo "$as_me: failed program was:" >&5
11366 sed 's/^/| /' conftest.$ac_ext >&5
11368 eval "$as_ac_var=no"
11370 rm -f conftest.err conftest.$ac_objext \
11371 conftest$ac_exeext conftest.$ac_ext
11373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11374 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11375 if test `eval echo '${'$as_ac_var'}'` = yes; then
11376 cat >>confdefs.h <<_ACEOF
11377 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11378 _ACEOF
11381 cat >>confdefs.h <<\_ACEOF
11382 #define HAVE_GETHOSTBYNAME_R 1
11383 _ACEOF
11385 # There are two different kinds of gethostbyname_r.
11386 # We look for the one that returns `int'.
11387 # Hopefully this check is robust enough.
11388 cat >conftest.$ac_ext <<_ACEOF
11389 /* confdefs.h. */
11390 _ACEOF
11391 cat confdefs.h >>conftest.$ac_ext
11392 cat >>conftest.$ac_ext <<_ACEOF
11393 /* end confdefs.h. */
11394 #include <netdb.h>
11396 _ACEOF
11397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11398 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
11401 cat >>confdefs.h <<\_ACEOF
11402 #define GETHOSTBYNAME_R_RETURNS_INT 1
11403 _ACEOF
11406 rm -f conftest*
11409 case " $GCINCS " in
11410 *" -D_REENTRANT "*) ;;
11412 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
11413 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
11414 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
11415 echo $ECHO_N "(cached) $ECHO_C" >&6
11416 else
11417 ac_ext=cc
11418 ac_cpp='$CXXCPP $CPPFLAGS'
11419 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11420 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11421 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11423 cat >conftest.$ac_ext <<_ACEOF
11424 /* confdefs.h. */
11425 _ACEOF
11426 cat confdefs.h >>conftest.$ac_ext
11427 cat >>conftest.$ac_ext <<_ACEOF
11428 /* end confdefs.h. */
11429 #include <netdb.h>
11431 main ()
11433 gethostbyname_r("", 0, 0);
11435 return 0;
11437 _ACEOF
11438 rm -f conftest.$ac_objext
11439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11440 (eval $ac_compile) 2>conftest.er1
11441 ac_status=$?
11442 grep -v '^ *+' conftest.er1 >conftest.err
11443 rm -f conftest.er1
11444 cat conftest.err >&5
11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446 (exit $ac_status); } &&
11447 { ac_try='test -z "$ac_cxx_werror_flag"
11448 || test ! -s conftest.err'
11449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11450 (eval $ac_try) 2>&5
11451 ac_status=$?
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); }; } &&
11454 { ac_try='test -s conftest.$ac_objext'
11455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11456 (eval $ac_try) 2>&5
11457 ac_status=$?
11458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459 (exit $ac_status); }; }; then
11460 libjava_cv_gethostbyname_r_needs_reentrant=no
11461 else
11462 echo "$as_me: failed program was:" >&5
11463 sed 's/^/| /' conftest.$ac_ext >&5
11465 CPPFLAGS_SAVE="$CPPFLAGS"
11466 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
11467 cat >conftest.$ac_ext <<_ACEOF
11468 /* confdefs.h. */
11469 _ACEOF
11470 cat confdefs.h >>conftest.$ac_ext
11471 cat >>conftest.$ac_ext <<_ACEOF
11472 /* end confdefs.h. */
11473 #include <netdb.h>
11475 main ()
11477 gethostbyname_r("", 0, 0);
11479 return 0;
11481 _ACEOF
11482 rm -f conftest.$ac_objext
11483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11484 (eval $ac_compile) 2>conftest.er1
11485 ac_status=$?
11486 grep -v '^ *+' conftest.er1 >conftest.err
11487 rm -f conftest.er1
11488 cat conftest.err >&5
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); } &&
11491 { ac_try='test -z "$ac_cxx_werror_flag"
11492 || test ! -s conftest.err'
11493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11494 (eval $ac_try) 2>&5
11495 ac_status=$?
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); }; } &&
11498 { ac_try='test -s conftest.$ac_objext'
11499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500 (eval $ac_try) 2>&5
11501 ac_status=$?
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; }; then
11504 libjava_cv_gethostbyname_r_needs_reentrant=yes
11505 else
11506 echo "$as_me: failed program was:" >&5
11507 sed 's/^/| /' conftest.$ac_ext >&5
11509 libjava_cv_gethostbyname_r_needs_reentrant=fail
11511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11512 CPPFLAGS="$CPPFLAGS_SAVE"
11515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11516 ac_ext=c
11517 ac_cpp='$CPP $CPPFLAGS'
11518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11524 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
11525 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
11526 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
11528 cat >>confdefs.h <<\_ACEOF
11529 #define _REENTRANT 1
11530 _ACEOF
11534 esac
11536 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
11537 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
11538 if test "${libjava_cv_struct_hostent_data+set}" = set; then
11539 echo $ECHO_N "(cached) $ECHO_C" >&6
11540 else
11541 cat >conftest.$ac_ext <<_ACEOF
11542 /* confdefs.h. */
11543 _ACEOF
11544 cat confdefs.h >>conftest.$ac_ext
11545 cat >>conftest.$ac_ext <<_ACEOF
11546 /* end confdefs.h. */
11548 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
11549 # define _REENTRANT 1
11550 #endif
11551 #include <netdb.h>
11553 main ()
11555 struct hostent_data data;
11557 return 0;
11559 _ACEOF
11560 rm -f conftest.$ac_objext
11561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11562 (eval $ac_compile) 2>conftest.er1
11563 ac_status=$?
11564 grep -v '^ *+' conftest.er1 >conftest.err
11565 rm -f conftest.er1
11566 cat conftest.err >&5
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); } &&
11569 { ac_try='test -z "$ac_c_werror_flag"
11570 || test ! -s conftest.err'
11571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11572 (eval $ac_try) 2>&5
11573 ac_status=$?
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); }; } &&
11576 { ac_try='test -s conftest.$ac_objext'
11577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11578 (eval $ac_try) 2>&5
11579 ac_status=$?
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); }; }; then
11582 libjava_cv_struct_hostent_data=yes
11583 else
11584 echo "$as_me: failed program was:" >&5
11585 sed 's/^/| /' conftest.$ac_ext >&5
11587 libjava_cv_struct_hostent_data=no
11589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11591 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
11592 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
11593 if test "x$libjava_cv_struct_hostent_data" = xyes; then
11595 cat >>confdefs.h <<\_ACEOF
11596 #define HAVE_STRUCT_HOSTENT_DATA 1
11597 _ACEOF
11602 done
11605 # FIXME: libjava source code expects to find a prototype for
11606 # gethostbyaddr_r in netdb.h. The outer check ensures that
11607 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
11608 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
11609 # linkage check is enough, yet C++ code requires proper prototypes.)
11610 cat >conftest.$ac_ext <<_ACEOF
11611 /* confdefs.h. */
11612 _ACEOF
11613 cat confdefs.h >>conftest.$ac_ext
11614 cat >>conftest.$ac_ext <<_ACEOF
11615 /* end confdefs.h. */
11616 #include <netdb.h>
11618 _ACEOF
11619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11620 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
11623 for ac_func in gethostbyaddr_r
11625 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11626 echo "$as_me:$LINENO: checking for $ac_func" >&5
11627 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11628 if eval "test \"\${$as_ac_var+set}\" = set"; then
11629 echo $ECHO_N "(cached) $ECHO_C" >&6
11630 else
11631 if test x$gcc_no_link = xyes; then
11632 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11633 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11634 { (exit 1); exit 1; }; }
11636 cat >conftest.$ac_ext <<_ACEOF
11637 /* confdefs.h. */
11638 _ACEOF
11639 cat confdefs.h >>conftest.$ac_ext
11640 cat >>conftest.$ac_ext <<_ACEOF
11641 /* end confdefs.h. */
11642 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11644 #define $ac_func innocuous_$ac_func
11646 /* System header to define __stub macros and hopefully few prototypes,
11647 which can conflict with char $ac_func (); below.
11648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11649 <limits.h> exists even on freestanding compilers. */
11651 #ifdef __STDC__
11652 # include <limits.h>
11653 #else
11654 # include <assert.h>
11655 #endif
11657 #undef $ac_func
11659 /* Override any gcc2 internal prototype to avoid an error. */
11660 #ifdef __cplusplus
11661 extern "C"
11663 #endif
11664 /* We use char because int might match the return type of a gcc2
11665 builtin and then its argument prototype would still apply. */
11666 char $ac_func ();
11667 /* The GNU C library defines this for functions which it implements
11668 to always fail with ENOSYS. Some functions are actually named
11669 something starting with __ and the normal name is an alias. */
11670 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11671 choke me
11672 #else
11673 char (*f) () = $ac_func;
11674 #endif
11675 #ifdef __cplusplus
11677 #endif
11680 main ()
11682 return f != $ac_func;
11684 return 0;
11686 _ACEOF
11687 rm -f conftest.$ac_objext conftest$ac_exeext
11688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11689 (eval $ac_link) 2>conftest.er1
11690 ac_status=$?
11691 grep -v '^ *+' conftest.er1 >conftest.err
11692 rm -f conftest.er1
11693 cat conftest.err >&5
11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695 (exit $ac_status); } &&
11696 { ac_try='test -z "$ac_c_werror_flag"
11697 || test ! -s conftest.err'
11698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11699 (eval $ac_try) 2>&5
11700 ac_status=$?
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); }; } &&
11703 { ac_try='test -s conftest$ac_exeext'
11704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11705 (eval $ac_try) 2>&5
11706 ac_status=$?
11707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); }; }; then
11709 eval "$as_ac_var=yes"
11710 else
11711 echo "$as_me: failed program was:" >&5
11712 sed 's/^/| /' conftest.$ac_ext >&5
11714 eval "$as_ac_var=no"
11716 rm -f conftest.err conftest.$ac_objext \
11717 conftest$ac_exeext conftest.$ac_ext
11719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11720 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11721 if test `eval echo '${'$as_ac_var'}'` = yes; then
11722 cat >>confdefs.h <<_ACEOF
11723 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11724 _ACEOF
11727 cat >>confdefs.h <<\_ACEOF
11728 #define HAVE_GETHOSTBYADDR_R 1
11729 _ACEOF
11731 # There are two different kinds of gethostbyaddr_r.
11732 # We look for the one that returns `int'.
11733 # Hopefully this check is robust enough.
11734 cat >conftest.$ac_ext <<_ACEOF
11735 /* confdefs.h. */
11736 _ACEOF
11737 cat confdefs.h >>conftest.$ac_ext
11738 cat >>conftest.$ac_ext <<_ACEOF
11739 /* end confdefs.h. */
11740 #include <netdb.h>
11742 _ACEOF
11743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11744 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11747 cat >>confdefs.h <<\_ACEOF
11748 #define GETHOSTBYADDR_R_RETURNS_INT 1
11749 _ACEOF
11752 rm -f conftest*
11755 done
11758 rm -f conftest*
11762 for ac_func in gethostname
11764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11765 echo "$as_me:$LINENO: checking for $ac_func" >&5
11766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11767 if eval "test \"\${$as_ac_var+set}\" = set"; then
11768 echo $ECHO_N "(cached) $ECHO_C" >&6
11769 else
11770 if test x$gcc_no_link = xyes; then
11771 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11772 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11773 { (exit 1); exit 1; }; }
11775 cat >conftest.$ac_ext <<_ACEOF
11776 /* confdefs.h. */
11777 _ACEOF
11778 cat confdefs.h >>conftest.$ac_ext
11779 cat >>conftest.$ac_ext <<_ACEOF
11780 /* end confdefs.h. */
11781 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11783 #define $ac_func innocuous_$ac_func
11785 /* System header to define __stub macros and hopefully few prototypes,
11786 which can conflict with char $ac_func (); below.
11787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11788 <limits.h> exists even on freestanding compilers. */
11790 #ifdef __STDC__
11791 # include <limits.h>
11792 #else
11793 # include <assert.h>
11794 #endif
11796 #undef $ac_func
11798 /* Override any gcc2 internal prototype to avoid an error. */
11799 #ifdef __cplusplus
11800 extern "C"
11802 #endif
11803 /* We use char because int might match the return type of a gcc2
11804 builtin and then its argument prototype would still apply. */
11805 char $ac_func ();
11806 /* The GNU C library defines this for functions which it implements
11807 to always fail with ENOSYS. Some functions are actually named
11808 something starting with __ and the normal name is an alias. */
11809 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11810 choke me
11811 #else
11812 char (*f) () = $ac_func;
11813 #endif
11814 #ifdef __cplusplus
11816 #endif
11819 main ()
11821 return f != $ac_func;
11823 return 0;
11825 _ACEOF
11826 rm -f conftest.$ac_objext conftest$ac_exeext
11827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11828 (eval $ac_link) 2>conftest.er1
11829 ac_status=$?
11830 grep -v '^ *+' conftest.er1 >conftest.err
11831 rm -f conftest.er1
11832 cat conftest.err >&5
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); } &&
11835 { ac_try='test -z "$ac_c_werror_flag"
11836 || test ! -s conftest.err'
11837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11838 (eval $ac_try) 2>&5
11839 ac_status=$?
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); }; } &&
11842 { ac_try='test -s conftest$ac_exeext'
11843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11844 (eval $ac_try) 2>&5
11845 ac_status=$?
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); }; }; then
11848 eval "$as_ac_var=yes"
11849 else
11850 echo "$as_me: failed program was:" >&5
11851 sed 's/^/| /' conftest.$ac_ext >&5
11853 eval "$as_ac_var=no"
11855 rm -f conftest.err conftest.$ac_objext \
11856 conftest$ac_exeext conftest.$ac_ext
11858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11859 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11860 if test `eval echo '${'$as_ac_var'}'` = yes; then
11861 cat >>confdefs.h <<_ACEOF
11862 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11863 _ACEOF
11866 cat >>confdefs.h <<\_ACEOF
11867 #define HAVE_GETHOSTNAME 1
11868 _ACEOF
11870 cat >conftest.$ac_ext <<_ACEOF
11871 /* confdefs.h. */
11872 _ACEOF
11873 cat confdefs.h >>conftest.$ac_ext
11874 cat >>conftest.$ac_ext <<_ACEOF
11875 /* end confdefs.h. */
11876 #include <unistd.h>
11878 _ACEOF
11879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11880 $EGREP "gethostname" >/dev/null 2>&1; then
11883 cat >>confdefs.h <<\_ACEOF
11884 #define HAVE_GETHOSTNAME_DECL 1
11885 _ACEOF
11888 rm -f conftest*
11891 done
11895 for ac_func in usleep
11897 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11898 echo "$as_me:$LINENO: checking for $ac_func" >&5
11899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11900 if eval "test \"\${$as_ac_var+set}\" = set"; then
11901 echo $ECHO_N "(cached) $ECHO_C" >&6
11902 else
11903 if test x$gcc_no_link = xyes; then
11904 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11905 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11906 { (exit 1); exit 1; }; }
11908 cat >conftest.$ac_ext <<_ACEOF
11909 /* confdefs.h. */
11910 _ACEOF
11911 cat confdefs.h >>conftest.$ac_ext
11912 cat >>conftest.$ac_ext <<_ACEOF
11913 /* end confdefs.h. */
11914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11916 #define $ac_func innocuous_$ac_func
11918 /* System header to define __stub macros and hopefully few prototypes,
11919 which can conflict with char $ac_func (); below.
11920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11921 <limits.h> exists even on freestanding compilers. */
11923 #ifdef __STDC__
11924 # include <limits.h>
11925 #else
11926 # include <assert.h>
11927 #endif
11929 #undef $ac_func
11931 /* Override any gcc2 internal prototype to avoid an error. */
11932 #ifdef __cplusplus
11933 extern "C"
11935 #endif
11936 /* We use char because int might match the return type of a gcc2
11937 builtin and then its argument prototype would still apply. */
11938 char $ac_func ();
11939 /* The GNU C library defines this for functions which it implements
11940 to always fail with ENOSYS. Some functions are actually named
11941 something starting with __ and the normal name is an alias. */
11942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11943 choke me
11944 #else
11945 char (*f) () = $ac_func;
11946 #endif
11947 #ifdef __cplusplus
11949 #endif
11952 main ()
11954 return f != $ac_func;
11956 return 0;
11958 _ACEOF
11959 rm -f conftest.$ac_objext conftest$ac_exeext
11960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11961 (eval $ac_link) 2>conftest.er1
11962 ac_status=$?
11963 grep -v '^ *+' conftest.er1 >conftest.err
11964 rm -f conftest.er1
11965 cat conftest.err >&5
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); } &&
11968 { ac_try='test -z "$ac_c_werror_flag"
11969 || test ! -s conftest.err'
11970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11971 (eval $ac_try) 2>&5
11972 ac_status=$?
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); }; } &&
11975 { ac_try='test -s conftest$ac_exeext'
11976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11977 (eval $ac_try) 2>&5
11978 ac_status=$?
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); }; }; then
11981 eval "$as_ac_var=yes"
11982 else
11983 echo "$as_me: failed program was:" >&5
11984 sed 's/^/| /' conftest.$ac_ext >&5
11986 eval "$as_ac_var=no"
11988 rm -f conftest.err conftest.$ac_objext \
11989 conftest$ac_exeext conftest.$ac_ext
11991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11992 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11993 if test `eval echo '${'$as_ac_var'}'` = yes; then
11994 cat >>confdefs.h <<_ACEOF
11995 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11996 _ACEOF
11998 cat >conftest.$ac_ext <<_ACEOF
11999 /* confdefs.h. */
12000 _ACEOF
12001 cat confdefs.h >>conftest.$ac_ext
12002 cat >>conftest.$ac_ext <<_ACEOF
12003 /* end confdefs.h. */
12004 #include <unistd.h>
12006 _ACEOF
12007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12008 $EGREP "usleep" >/dev/null 2>&1; then
12011 cat >>confdefs.h <<\_ACEOF
12012 #define HAVE_USLEEP_DECL 1
12013 _ACEOF
12016 rm -f conftest*
12019 done
12022 # Look for these functions in the thread library, but only bother
12023 # if using POSIX threads.
12024 if test "$THREADS" = posix; then
12025 save_LIBS="$LIBS"
12026 LIBS="$LIBS $THREADLIBS"
12027 # Some POSIX thread systems don't have pthread_mutexattr_settype.
12028 # E.g., Solaris.
12031 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
12033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12034 echo "$as_me:$LINENO: checking for $ac_func" >&5
12035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12036 if eval "test \"\${$as_ac_var+set}\" = set"; then
12037 echo $ECHO_N "(cached) $ECHO_C" >&6
12038 else
12039 if test x$gcc_no_link = xyes; then
12040 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12041 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12042 { (exit 1); exit 1; }; }
12044 cat >conftest.$ac_ext <<_ACEOF
12045 /* confdefs.h. */
12046 _ACEOF
12047 cat confdefs.h >>conftest.$ac_ext
12048 cat >>conftest.$ac_ext <<_ACEOF
12049 /* end confdefs.h. */
12050 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12052 #define $ac_func innocuous_$ac_func
12054 /* System header to define __stub macros and hopefully few prototypes,
12055 which can conflict with char $ac_func (); below.
12056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12057 <limits.h> exists even on freestanding compilers. */
12059 #ifdef __STDC__
12060 # include <limits.h>
12061 #else
12062 # include <assert.h>
12063 #endif
12065 #undef $ac_func
12067 /* Override any gcc2 internal prototype to avoid an error. */
12068 #ifdef __cplusplus
12069 extern "C"
12071 #endif
12072 /* We use char because int might match the return type of a gcc2
12073 builtin and then its argument prototype would still apply. */
12074 char $ac_func ();
12075 /* The GNU C library defines this for functions which it implements
12076 to always fail with ENOSYS. Some functions are actually named
12077 something starting with __ and the normal name is an alias. */
12078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12079 choke me
12080 #else
12081 char (*f) () = $ac_func;
12082 #endif
12083 #ifdef __cplusplus
12085 #endif
12088 main ()
12090 return f != $ac_func;
12092 return 0;
12094 _ACEOF
12095 rm -f conftest.$ac_objext conftest$ac_exeext
12096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12097 (eval $ac_link) 2>conftest.er1
12098 ac_status=$?
12099 grep -v '^ *+' conftest.er1 >conftest.err
12100 rm -f conftest.er1
12101 cat conftest.err >&5
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); } &&
12104 { ac_try='test -z "$ac_c_werror_flag"
12105 || test ! -s conftest.err'
12106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12107 (eval $ac_try) 2>&5
12108 ac_status=$?
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); }; } &&
12111 { ac_try='test -s conftest$ac_exeext'
12112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12113 (eval $ac_try) 2>&5
12114 ac_status=$?
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); }; }; then
12117 eval "$as_ac_var=yes"
12118 else
12119 echo "$as_me: failed program was:" >&5
12120 sed 's/^/| /' conftest.$ac_ext >&5
12122 eval "$as_ac_var=no"
12124 rm -f conftest.err conftest.$ac_objext \
12125 conftest$ac_exeext conftest.$ac_ext
12127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12128 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12129 if test `eval echo '${'$as_ac_var'}'` = yes; then
12130 cat >>confdefs.h <<_ACEOF
12131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12132 _ACEOF
12135 done
12138 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
12139 # Solaris 7 the name librt is preferred.
12141 for ac_func in sched_yield
12143 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12144 echo "$as_me:$LINENO: checking for $ac_func" >&5
12145 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12146 if eval "test \"\${$as_ac_var+set}\" = set"; then
12147 echo $ECHO_N "(cached) $ECHO_C" >&6
12148 else
12149 if test x$gcc_no_link = xyes; then
12150 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12151 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12152 { (exit 1); exit 1; }; }
12154 cat >conftest.$ac_ext <<_ACEOF
12155 /* confdefs.h. */
12156 _ACEOF
12157 cat confdefs.h >>conftest.$ac_ext
12158 cat >>conftest.$ac_ext <<_ACEOF
12159 /* end confdefs.h. */
12160 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12162 #define $ac_func innocuous_$ac_func
12164 /* System header to define __stub macros and hopefully few prototypes,
12165 which can conflict with char $ac_func (); below.
12166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12167 <limits.h> exists even on freestanding compilers. */
12169 #ifdef __STDC__
12170 # include <limits.h>
12171 #else
12172 # include <assert.h>
12173 #endif
12175 #undef $ac_func
12177 /* Override any gcc2 internal prototype to avoid an error. */
12178 #ifdef __cplusplus
12179 extern "C"
12181 #endif
12182 /* We use char because int might match the return type of a gcc2
12183 builtin and then its argument prototype would still apply. */
12184 char $ac_func ();
12185 /* The GNU C library defines this for functions which it implements
12186 to always fail with ENOSYS. Some functions are actually named
12187 something starting with __ and the normal name is an alias. */
12188 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12189 choke me
12190 #else
12191 char (*f) () = $ac_func;
12192 #endif
12193 #ifdef __cplusplus
12195 #endif
12198 main ()
12200 return f != $ac_func;
12202 return 0;
12204 _ACEOF
12205 rm -f conftest.$ac_objext conftest$ac_exeext
12206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12207 (eval $ac_link) 2>conftest.er1
12208 ac_status=$?
12209 grep -v '^ *+' conftest.er1 >conftest.err
12210 rm -f conftest.er1
12211 cat conftest.err >&5
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); } &&
12214 { ac_try='test -z "$ac_c_werror_flag"
12215 || test ! -s conftest.err'
12216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12217 (eval $ac_try) 2>&5
12218 ac_status=$?
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); }; } &&
12221 { ac_try='test -s conftest$ac_exeext'
12222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12223 (eval $ac_try) 2>&5
12224 ac_status=$?
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); }; }; then
12227 eval "$as_ac_var=yes"
12228 else
12229 echo "$as_me: failed program was:" >&5
12230 sed 's/^/| /' conftest.$ac_ext >&5
12232 eval "$as_ac_var=no"
12234 rm -f conftest.err conftest.$ac_objext \
12235 conftest$ac_exeext conftest.$ac_ext
12237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12238 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12239 if test `eval echo '${'$as_ac_var'}'` = yes; then
12240 cat >>confdefs.h <<_ACEOF
12241 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12242 _ACEOF
12244 else
12246 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
12247 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
12248 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
12249 echo $ECHO_N "(cached) $ECHO_C" >&6
12250 else
12251 ac_check_lib_save_LIBS=$LIBS
12252 LIBS="-lrt $LIBS"
12253 if test x$gcc_no_link = xyes; then
12254 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12255 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12256 { (exit 1); exit 1; }; }
12258 cat >conftest.$ac_ext <<_ACEOF
12259 /* confdefs.h. */
12260 _ACEOF
12261 cat confdefs.h >>conftest.$ac_ext
12262 cat >>conftest.$ac_ext <<_ACEOF
12263 /* end confdefs.h. */
12265 /* Override any gcc2 internal prototype to avoid an error. */
12266 #ifdef __cplusplus
12267 extern "C"
12268 #endif
12269 /* We use char because int might match the return type of a gcc2
12270 builtin and then its argument prototype would still apply. */
12271 char sched_yield ();
12273 main ()
12275 sched_yield ();
12277 return 0;
12279 _ACEOF
12280 rm -f conftest.$ac_objext conftest$ac_exeext
12281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12282 (eval $ac_link) 2>conftest.er1
12283 ac_status=$?
12284 grep -v '^ *+' conftest.er1 >conftest.err
12285 rm -f conftest.er1
12286 cat conftest.err >&5
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); } &&
12289 { ac_try='test -z "$ac_c_werror_flag"
12290 || test ! -s conftest.err'
12291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12292 (eval $ac_try) 2>&5
12293 ac_status=$?
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); }; } &&
12296 { ac_try='test -s conftest$ac_exeext'
12297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12298 (eval $ac_try) 2>&5
12299 ac_status=$?
12300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301 (exit $ac_status); }; }; then
12302 ac_cv_lib_rt_sched_yield=yes
12303 else
12304 echo "$as_me: failed program was:" >&5
12305 sed 's/^/| /' conftest.$ac_ext >&5
12307 ac_cv_lib_rt_sched_yield=no
12309 rm -f conftest.err conftest.$ac_objext \
12310 conftest$ac_exeext conftest.$ac_ext
12311 LIBS=$ac_check_lib_save_LIBS
12313 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
12314 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
12315 if test $ac_cv_lib_rt_sched_yield = yes; then
12317 cat >>confdefs.h <<\_ACEOF
12318 #define HAVE_SCHED_YIELD 1
12319 _ACEOF
12321 THREADLIBS="$THREADLIBS -lrt"
12322 THREADSPEC="$THREADSPEC -lrt"
12323 else
12325 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
12326 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
12327 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
12328 echo $ECHO_N "(cached) $ECHO_C" >&6
12329 else
12330 ac_check_lib_save_LIBS=$LIBS
12331 LIBS="-lposix4 $LIBS"
12332 if test x$gcc_no_link = xyes; then
12333 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12334 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12335 { (exit 1); exit 1; }; }
12337 cat >conftest.$ac_ext <<_ACEOF
12338 /* confdefs.h. */
12339 _ACEOF
12340 cat confdefs.h >>conftest.$ac_ext
12341 cat >>conftest.$ac_ext <<_ACEOF
12342 /* end confdefs.h. */
12344 /* Override any gcc2 internal prototype to avoid an error. */
12345 #ifdef __cplusplus
12346 extern "C"
12347 #endif
12348 /* We use char because int might match the return type of a gcc2
12349 builtin and then its argument prototype would still apply. */
12350 char sched_yield ();
12352 main ()
12354 sched_yield ();
12356 return 0;
12358 _ACEOF
12359 rm -f conftest.$ac_objext conftest$ac_exeext
12360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12361 (eval $ac_link) 2>conftest.er1
12362 ac_status=$?
12363 grep -v '^ *+' conftest.er1 >conftest.err
12364 rm -f conftest.er1
12365 cat conftest.err >&5
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); } &&
12368 { ac_try='test -z "$ac_c_werror_flag"
12369 || test ! -s conftest.err'
12370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12371 (eval $ac_try) 2>&5
12372 ac_status=$?
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); }; } &&
12375 { ac_try='test -s conftest$ac_exeext'
12376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12377 (eval $ac_try) 2>&5
12378 ac_status=$?
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); }; }; then
12381 ac_cv_lib_posix4_sched_yield=yes
12382 else
12383 echo "$as_me: failed program was:" >&5
12384 sed 's/^/| /' conftest.$ac_ext >&5
12386 ac_cv_lib_posix4_sched_yield=no
12388 rm -f conftest.err conftest.$ac_objext \
12389 conftest$ac_exeext conftest.$ac_ext
12390 LIBS=$ac_check_lib_save_LIBS
12392 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
12393 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
12394 if test $ac_cv_lib_posix4_sched_yield = yes; then
12396 cat >>confdefs.h <<\_ACEOF
12397 #define HAVE_SCHED_YIELD 1
12398 _ACEOF
12400 THREADLIBS="$THREADLIBS -lposix4"
12401 THREADSPEC="$THREADSPEC -lposix4"
12407 done
12409 LIBS="$save_LIBS"
12411 # We can save a little space at runtime if the mutex has m_count
12412 # or __m_count. This is a nice hack for Linux.
12413 cat >conftest.$ac_ext <<_ACEOF
12414 /* confdefs.h. */
12415 _ACEOF
12416 cat confdefs.h >>conftest.$ac_ext
12417 cat >>conftest.$ac_ext <<_ACEOF
12418 /* end confdefs.h. */
12419 #include <pthread.h>
12421 main ()
12424 extern pthread_mutex_t *mutex; int q = mutex->m_count;
12427 return 0;
12429 _ACEOF
12430 rm -f conftest.$ac_objext
12431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12432 (eval $ac_compile) 2>conftest.er1
12433 ac_status=$?
12434 grep -v '^ *+' conftest.er1 >conftest.err
12435 rm -f conftest.er1
12436 cat conftest.err >&5
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); } &&
12439 { ac_try='test -z "$ac_c_werror_flag"
12440 || test ! -s conftest.err'
12441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12442 (eval $ac_try) 2>&5
12443 ac_status=$?
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); }; } &&
12446 { ac_try='test -s conftest.$ac_objext'
12447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12448 (eval $ac_try) 2>&5
12449 ac_status=$?
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); }; }; then
12453 cat >>confdefs.h <<\_ACEOF
12454 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
12455 _ACEOF
12457 else
12458 echo "$as_me: failed program was:" >&5
12459 sed 's/^/| /' conftest.$ac_ext >&5
12462 cat >conftest.$ac_ext <<_ACEOF
12463 /* confdefs.h. */
12464 _ACEOF
12465 cat confdefs.h >>conftest.$ac_ext
12466 cat >>conftest.$ac_ext <<_ACEOF
12467 /* end confdefs.h. */
12468 #include <pthread.h>
12470 main ()
12473 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
12476 return 0;
12478 _ACEOF
12479 rm -f conftest.$ac_objext
12480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12481 (eval $ac_compile) 2>conftest.er1
12482 ac_status=$?
12483 grep -v '^ *+' conftest.er1 >conftest.err
12484 rm -f conftest.er1
12485 cat conftest.err >&5
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); } &&
12488 { ac_try='test -z "$ac_c_werror_flag"
12489 || test ! -s conftest.err'
12490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12491 (eval $ac_try) 2>&5
12492 ac_status=$?
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); }; } &&
12495 { ac_try='test -s conftest.$ac_objext'
12496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12497 (eval $ac_try) 2>&5
12498 ac_status=$?
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); }; }; then
12502 cat >>confdefs.h <<\_ACEOF
12503 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
12504 _ACEOF
12506 else
12507 echo "$as_me: failed program was:" >&5
12508 sed 's/^/| /' conftest.$ac_ext >&5
12511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12516 # We require a way to get the time.
12517 time_found=no
12521 for ac_func in gettimeofday time ftime
12523 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12524 echo "$as_me:$LINENO: checking for $ac_func" >&5
12525 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12526 if eval "test \"\${$as_ac_var+set}\" = set"; then
12527 echo $ECHO_N "(cached) $ECHO_C" >&6
12528 else
12529 if test x$gcc_no_link = xyes; then
12530 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12531 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12532 { (exit 1); exit 1; }; }
12534 cat >conftest.$ac_ext <<_ACEOF
12535 /* confdefs.h. */
12536 _ACEOF
12537 cat confdefs.h >>conftest.$ac_ext
12538 cat >>conftest.$ac_ext <<_ACEOF
12539 /* end confdefs.h. */
12540 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12542 #define $ac_func innocuous_$ac_func
12544 /* System header to define __stub macros and hopefully few prototypes,
12545 which can conflict with char $ac_func (); below.
12546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12547 <limits.h> exists even on freestanding compilers. */
12549 #ifdef __STDC__
12550 # include <limits.h>
12551 #else
12552 # include <assert.h>
12553 #endif
12555 #undef $ac_func
12557 /* Override any gcc2 internal prototype to avoid an error. */
12558 #ifdef __cplusplus
12559 extern "C"
12561 #endif
12562 /* We use char because int might match the return type of a gcc2
12563 builtin and then its argument prototype would still apply. */
12564 char $ac_func ();
12565 /* The GNU C library defines this for functions which it implements
12566 to always fail with ENOSYS. Some functions are actually named
12567 something starting with __ and the normal name is an alias. */
12568 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12569 choke me
12570 #else
12571 char (*f) () = $ac_func;
12572 #endif
12573 #ifdef __cplusplus
12575 #endif
12578 main ()
12580 return f != $ac_func;
12582 return 0;
12584 _ACEOF
12585 rm -f conftest.$ac_objext conftest$ac_exeext
12586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12587 (eval $ac_link) 2>conftest.er1
12588 ac_status=$?
12589 grep -v '^ *+' conftest.er1 >conftest.err
12590 rm -f conftest.er1
12591 cat conftest.err >&5
12592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593 (exit $ac_status); } &&
12594 { ac_try='test -z "$ac_c_werror_flag"
12595 || test ! -s conftest.err'
12596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12597 (eval $ac_try) 2>&5
12598 ac_status=$?
12599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600 (exit $ac_status); }; } &&
12601 { ac_try='test -s conftest$ac_exeext'
12602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12603 (eval $ac_try) 2>&5
12604 ac_status=$?
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); }; }; then
12607 eval "$as_ac_var=yes"
12608 else
12609 echo "$as_me: failed program was:" >&5
12610 sed 's/^/| /' conftest.$ac_ext >&5
12612 eval "$as_ac_var=no"
12614 rm -f conftest.err conftest.$ac_objext \
12615 conftest$ac_exeext conftest.$ac_ext
12617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12618 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12619 if test `eval echo '${'$as_ac_var'}'` = yes; then
12620 cat >>confdefs.h <<_ACEOF
12621 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12622 _ACEOF
12623 time_found=yes
12625 done
12627 if test "$time_found" = no; then
12628 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
12629 echo "$as_me: error: no function found to get the time" >&2;}
12630 { (exit 1); exit 1; }; }
12634 for ac_func in memmove
12636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12637 echo "$as_me:$LINENO: checking for $ac_func" >&5
12638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12639 if eval "test \"\${$as_ac_var+set}\" = set"; then
12640 echo $ECHO_N "(cached) $ECHO_C" >&6
12641 else
12642 if test x$gcc_no_link = xyes; then
12643 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12644 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12645 { (exit 1); exit 1; }; }
12647 cat >conftest.$ac_ext <<_ACEOF
12648 /* confdefs.h. */
12649 _ACEOF
12650 cat confdefs.h >>conftest.$ac_ext
12651 cat >>conftest.$ac_ext <<_ACEOF
12652 /* end confdefs.h. */
12653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12655 #define $ac_func innocuous_$ac_func
12657 /* System header to define __stub macros and hopefully few prototypes,
12658 which can conflict with char $ac_func (); below.
12659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12660 <limits.h> exists even on freestanding compilers. */
12662 #ifdef __STDC__
12663 # include <limits.h>
12664 #else
12665 # include <assert.h>
12666 #endif
12668 #undef $ac_func
12670 /* Override any gcc2 internal prototype to avoid an error. */
12671 #ifdef __cplusplus
12672 extern "C"
12674 #endif
12675 /* We use char because int might match the return type of a gcc2
12676 builtin and then its argument prototype would still apply. */
12677 char $ac_func ();
12678 /* The GNU C library defines this for functions which it implements
12679 to always fail with ENOSYS. Some functions are actually named
12680 something starting with __ and the normal name is an alias. */
12681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12682 choke me
12683 #else
12684 char (*f) () = $ac_func;
12685 #endif
12686 #ifdef __cplusplus
12688 #endif
12691 main ()
12693 return f != $ac_func;
12695 return 0;
12697 _ACEOF
12698 rm -f conftest.$ac_objext conftest$ac_exeext
12699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12700 (eval $ac_link) 2>conftest.er1
12701 ac_status=$?
12702 grep -v '^ *+' conftest.er1 >conftest.err
12703 rm -f conftest.er1
12704 cat conftest.err >&5
12705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706 (exit $ac_status); } &&
12707 { ac_try='test -z "$ac_c_werror_flag"
12708 || test ! -s conftest.err'
12709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12710 (eval $ac_try) 2>&5
12711 ac_status=$?
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); }; } &&
12714 { ac_try='test -s conftest$ac_exeext'
12715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12716 (eval $ac_try) 2>&5
12717 ac_status=$?
12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); }; }; then
12720 eval "$as_ac_var=yes"
12721 else
12722 echo "$as_me: failed program was:" >&5
12723 sed 's/^/| /' conftest.$ac_ext >&5
12725 eval "$as_ac_var=no"
12727 rm -f conftest.err conftest.$ac_objext \
12728 conftest$ac_exeext conftest.$ac_ext
12730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12731 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12732 if test `eval echo '${'$as_ac_var'}'` = yes; then
12733 cat >>confdefs.h <<_ACEOF
12734 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12735 _ACEOF
12738 done
12741 # We require memcpy.
12742 memcpy_found=no
12744 for ac_func in memcpy
12746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12747 echo "$as_me:$LINENO: checking for $ac_func" >&5
12748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12749 if eval "test \"\${$as_ac_var+set}\" = set"; then
12750 echo $ECHO_N "(cached) $ECHO_C" >&6
12751 else
12752 if test x$gcc_no_link = xyes; then
12753 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12754 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12755 { (exit 1); exit 1; }; }
12757 cat >conftest.$ac_ext <<_ACEOF
12758 /* confdefs.h. */
12759 _ACEOF
12760 cat confdefs.h >>conftest.$ac_ext
12761 cat >>conftest.$ac_ext <<_ACEOF
12762 /* end confdefs.h. */
12763 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12765 #define $ac_func innocuous_$ac_func
12767 /* System header to define __stub macros and hopefully few prototypes,
12768 which can conflict with char $ac_func (); below.
12769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12770 <limits.h> exists even on freestanding compilers. */
12772 #ifdef __STDC__
12773 # include <limits.h>
12774 #else
12775 # include <assert.h>
12776 #endif
12778 #undef $ac_func
12780 /* Override any gcc2 internal prototype to avoid an error. */
12781 #ifdef __cplusplus
12782 extern "C"
12784 #endif
12785 /* We use char because int might match the return type of a gcc2
12786 builtin and then its argument prototype would still apply. */
12787 char $ac_func ();
12788 /* The GNU C library defines this for functions which it implements
12789 to always fail with ENOSYS. Some functions are actually named
12790 something starting with __ and the normal name is an alias. */
12791 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12792 choke me
12793 #else
12794 char (*f) () = $ac_func;
12795 #endif
12796 #ifdef __cplusplus
12798 #endif
12801 main ()
12803 return f != $ac_func;
12805 return 0;
12807 _ACEOF
12808 rm -f conftest.$ac_objext conftest$ac_exeext
12809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12810 (eval $ac_link) 2>conftest.er1
12811 ac_status=$?
12812 grep -v '^ *+' conftest.er1 >conftest.err
12813 rm -f conftest.er1
12814 cat conftest.err >&5
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); } &&
12817 { ac_try='test -z "$ac_c_werror_flag"
12818 || test ! -s conftest.err'
12819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12820 (eval $ac_try) 2>&5
12821 ac_status=$?
12822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); }; } &&
12824 { ac_try='test -s conftest$ac_exeext'
12825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12826 (eval $ac_try) 2>&5
12827 ac_status=$?
12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829 (exit $ac_status); }; }; then
12830 eval "$as_ac_var=yes"
12831 else
12832 echo "$as_me: failed program was:" >&5
12833 sed 's/^/| /' conftest.$ac_ext >&5
12835 eval "$as_ac_var=no"
12837 rm -f conftest.err conftest.$ac_objext \
12838 conftest$ac_exeext conftest.$ac_ext
12840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12841 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12842 if test `eval echo '${'$as_ac_var'}'` = yes; then
12843 cat >>confdefs.h <<_ACEOF
12844 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12845 _ACEOF
12846 memcpy_found=yes
12848 done
12850 if test "$memcpy_found" = no; then
12851 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
12852 echo "$as_me: error: memcpy is required" >&2;}
12853 { (exit 1); exit 1; }; }
12856 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12857 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12858 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12859 echo $ECHO_N "(cached) $ECHO_C" >&6
12860 else
12861 ac_check_lib_save_LIBS=$LIBS
12862 LIBS="-ldl $LIBS"
12863 if test x$gcc_no_link = xyes; then
12864 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12865 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12866 { (exit 1); exit 1; }; }
12868 cat >conftest.$ac_ext <<_ACEOF
12869 /* confdefs.h. */
12870 _ACEOF
12871 cat confdefs.h >>conftest.$ac_ext
12872 cat >>conftest.$ac_ext <<_ACEOF
12873 /* end confdefs.h. */
12875 /* Override any gcc2 internal prototype to avoid an error. */
12876 #ifdef __cplusplus
12877 extern "C"
12878 #endif
12879 /* We use char because int might match the return type of a gcc2
12880 builtin and then its argument prototype would still apply. */
12881 char dlopen ();
12883 main ()
12885 dlopen ();
12887 return 0;
12889 _ACEOF
12890 rm -f conftest.$ac_objext conftest$ac_exeext
12891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12892 (eval $ac_link) 2>conftest.er1
12893 ac_status=$?
12894 grep -v '^ *+' conftest.er1 >conftest.err
12895 rm -f conftest.er1
12896 cat conftest.err >&5
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); } &&
12899 { ac_try='test -z "$ac_c_werror_flag"
12900 || test ! -s conftest.err'
12901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12902 (eval $ac_try) 2>&5
12903 ac_status=$?
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); }; } &&
12906 { ac_try='test -s conftest$ac_exeext'
12907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12908 (eval $ac_try) 2>&5
12909 ac_status=$?
12910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911 (exit $ac_status); }; }; then
12912 ac_cv_lib_dl_dlopen=yes
12913 else
12914 echo "$as_me: failed program was:" >&5
12915 sed 's/^/| /' conftest.$ac_ext >&5
12917 ac_cv_lib_dl_dlopen=no
12919 rm -f conftest.err conftest.$ac_objext \
12920 conftest$ac_exeext conftest.$ac_ext
12921 LIBS=$ac_check_lib_save_LIBS
12923 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12924 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12925 if test $ac_cv_lib_dl_dlopen = yes; then
12928 cat >>confdefs.h <<\_ACEOF
12929 #define HAVE_DLOPEN 1
12930 _ACEOF
12935 # Some library-finding code we stole from Tcl.
12936 #--------------------------------------------------------------------
12937 # Check for the existence of the -lsocket and -lnsl libraries.
12938 # The order here is important, so that they end up in the right
12939 # order in the command line generated by make. Here are some
12940 # special considerations:
12941 # 1. Use "connect" and "accept" to check for -lsocket, and
12942 # "gethostbyname" to check for -lnsl.
12943 # 2. Use each function name only once: can't redo a check because
12944 # autoconf caches the results of the last check and won't redo it.
12945 # 3. Use -lnsl and -lsocket only if they supply procedures that
12946 # aren't already present in the normal libraries. This is because
12947 # IRIX 5.2 has libraries, but they aren't needed and they're
12948 # bogus: they goof up name resolution if used.
12949 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
12950 # To get around this problem, check for both libraries together
12951 # if -lsocket doesn't work by itself.
12952 #--------------------------------------------------------------------
12954 echo "$as_me:$LINENO: checking for socket libraries" >&5
12955 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
12956 if test "${gcj_cv_lib_sockets+set}" = set; then
12957 echo $ECHO_N "(cached) $ECHO_C" >&6
12958 else
12959 gcj_cv_lib_sockets=
12960 gcj_checkBoth=0
12961 unset ac_cv_func_connect
12962 echo "$as_me:$LINENO: checking for connect" >&5
12963 echo $ECHO_N "checking for connect... $ECHO_C" >&6
12964 if test "${ac_cv_func_connect+set}" = set; then
12965 echo $ECHO_N "(cached) $ECHO_C" >&6
12966 else
12967 if test x$gcc_no_link = xyes; then
12968 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12969 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12970 { (exit 1); exit 1; }; }
12972 cat >conftest.$ac_ext <<_ACEOF
12973 /* confdefs.h. */
12974 _ACEOF
12975 cat confdefs.h >>conftest.$ac_ext
12976 cat >>conftest.$ac_ext <<_ACEOF
12977 /* end confdefs.h. */
12978 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
12979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12980 #define connect innocuous_connect
12982 /* System header to define __stub macros and hopefully few prototypes,
12983 which can conflict with char connect (); below.
12984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12985 <limits.h> exists even on freestanding compilers. */
12987 #ifdef __STDC__
12988 # include <limits.h>
12989 #else
12990 # include <assert.h>
12991 #endif
12993 #undef connect
12995 /* Override any gcc2 internal prototype to avoid an error. */
12996 #ifdef __cplusplus
12997 extern "C"
12999 #endif
13000 /* We use char because int might match the return type of a gcc2
13001 builtin and then its argument prototype would still apply. */
13002 char connect ();
13003 /* The GNU C library defines this for functions which it implements
13004 to always fail with ENOSYS. Some functions are actually named
13005 something starting with __ and the normal name is an alias. */
13006 #if defined (__stub_connect) || defined (__stub___connect)
13007 choke me
13008 #else
13009 char (*f) () = connect;
13010 #endif
13011 #ifdef __cplusplus
13013 #endif
13016 main ()
13018 return f != connect;
13020 return 0;
13022 _ACEOF
13023 rm -f conftest.$ac_objext conftest$ac_exeext
13024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13025 (eval $ac_link) 2>conftest.er1
13026 ac_status=$?
13027 grep -v '^ *+' conftest.er1 >conftest.err
13028 rm -f conftest.er1
13029 cat conftest.err >&5
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); } &&
13032 { ac_try='test -z "$ac_c_werror_flag"
13033 || test ! -s conftest.err'
13034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13035 (eval $ac_try) 2>&5
13036 ac_status=$?
13037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038 (exit $ac_status); }; } &&
13039 { ac_try='test -s conftest$ac_exeext'
13040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13041 (eval $ac_try) 2>&5
13042 ac_status=$?
13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); }; }; then
13045 ac_cv_func_connect=yes
13046 else
13047 echo "$as_me: failed program was:" >&5
13048 sed 's/^/| /' conftest.$ac_ext >&5
13050 ac_cv_func_connect=no
13052 rm -f conftest.err conftest.$ac_objext \
13053 conftest$ac_exeext conftest.$ac_ext
13055 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
13056 echo "${ECHO_T}$ac_cv_func_connect" >&6
13057 if test $ac_cv_func_connect = yes; then
13058 gcj_checkSocket=0
13059 else
13060 gcj_checkSocket=1
13063 if test "$gcj_checkSocket" = 1; then
13064 unset ac_cv_func_connect
13065 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
13066 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
13067 if test "${ac_cv_lib_socket_main+set}" = set; then
13068 echo $ECHO_N "(cached) $ECHO_C" >&6
13069 else
13070 ac_check_lib_save_LIBS=$LIBS
13071 LIBS="-lsocket $LIBS"
13072 if test x$gcc_no_link = xyes; then
13073 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13074 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13075 { (exit 1); exit 1; }; }
13077 cat >conftest.$ac_ext <<_ACEOF
13078 /* confdefs.h. */
13079 _ACEOF
13080 cat confdefs.h >>conftest.$ac_ext
13081 cat >>conftest.$ac_ext <<_ACEOF
13082 /* end confdefs.h. */
13086 main ()
13088 main ();
13090 return 0;
13092 _ACEOF
13093 rm -f conftest.$ac_objext conftest$ac_exeext
13094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13095 (eval $ac_link) 2>conftest.er1
13096 ac_status=$?
13097 grep -v '^ *+' conftest.er1 >conftest.err
13098 rm -f conftest.er1
13099 cat conftest.err >&5
13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101 (exit $ac_status); } &&
13102 { ac_try='test -z "$ac_c_werror_flag"
13103 || test ! -s conftest.err'
13104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13105 (eval $ac_try) 2>&5
13106 ac_status=$?
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); }; } &&
13109 { ac_try='test -s conftest$ac_exeext'
13110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13111 (eval $ac_try) 2>&5
13112 ac_status=$?
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); }; }; then
13115 ac_cv_lib_socket_main=yes
13116 else
13117 echo "$as_me: failed program was:" >&5
13118 sed 's/^/| /' conftest.$ac_ext >&5
13120 ac_cv_lib_socket_main=no
13122 rm -f conftest.err conftest.$ac_objext \
13123 conftest$ac_exeext conftest.$ac_ext
13124 LIBS=$ac_check_lib_save_LIBS
13126 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
13127 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
13128 if test $ac_cv_lib_socket_main = yes; then
13129 gcj_cv_lib_sockets="-lsocket"
13130 else
13131 gcj_checkBoth=1
13135 if test "$gcj_checkBoth" = 1; then
13136 gcj_oldLibs=$LIBS
13137 LIBS="$LIBS -lsocket -lnsl"
13138 unset ac_cv_func_accept
13139 echo "$as_me:$LINENO: checking for accept" >&5
13140 echo $ECHO_N "checking for accept... $ECHO_C" >&6
13141 if test "${ac_cv_func_accept+set}" = set; then
13142 echo $ECHO_N "(cached) $ECHO_C" >&6
13143 else
13144 if test x$gcc_no_link = xyes; then
13145 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13146 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13147 { (exit 1); exit 1; }; }
13149 cat >conftest.$ac_ext <<_ACEOF
13150 /* confdefs.h. */
13151 _ACEOF
13152 cat confdefs.h >>conftest.$ac_ext
13153 cat >>conftest.$ac_ext <<_ACEOF
13154 /* end confdefs.h. */
13155 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
13156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13157 #define accept innocuous_accept
13159 /* System header to define __stub macros and hopefully few prototypes,
13160 which can conflict with char accept (); below.
13161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13162 <limits.h> exists even on freestanding compilers. */
13164 #ifdef __STDC__
13165 # include <limits.h>
13166 #else
13167 # include <assert.h>
13168 #endif
13170 #undef accept
13172 /* Override any gcc2 internal prototype to avoid an error. */
13173 #ifdef __cplusplus
13174 extern "C"
13176 #endif
13177 /* We use char because int might match the return type of a gcc2
13178 builtin and then its argument prototype would still apply. */
13179 char accept ();
13180 /* The GNU C library defines this for functions which it implements
13181 to always fail with ENOSYS. Some functions are actually named
13182 something starting with __ and the normal name is an alias. */
13183 #if defined (__stub_accept) || defined (__stub___accept)
13184 choke me
13185 #else
13186 char (*f) () = accept;
13187 #endif
13188 #ifdef __cplusplus
13190 #endif
13193 main ()
13195 return f != accept;
13197 return 0;
13199 _ACEOF
13200 rm -f conftest.$ac_objext conftest$ac_exeext
13201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13202 (eval $ac_link) 2>conftest.er1
13203 ac_status=$?
13204 grep -v '^ *+' conftest.er1 >conftest.err
13205 rm -f conftest.er1
13206 cat conftest.err >&5
13207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208 (exit $ac_status); } &&
13209 { ac_try='test -z "$ac_c_werror_flag"
13210 || test ! -s conftest.err'
13211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13212 (eval $ac_try) 2>&5
13213 ac_status=$?
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); }; } &&
13216 { ac_try='test -s conftest$ac_exeext'
13217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13218 (eval $ac_try) 2>&5
13219 ac_status=$?
13220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221 (exit $ac_status); }; }; then
13222 ac_cv_func_accept=yes
13223 else
13224 echo "$as_me: failed program was:" >&5
13225 sed 's/^/| /' conftest.$ac_ext >&5
13227 ac_cv_func_accept=no
13229 rm -f conftest.err conftest.$ac_objext \
13230 conftest$ac_exeext conftest.$ac_ext
13232 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
13233 echo "${ECHO_T}$ac_cv_func_accept" >&6
13234 if test $ac_cv_func_accept = yes; then
13235 gcj_checkNsl=0
13236 gcj_cv_lib_sockets="-lsocket -lnsl"
13239 unset ac_cv_func_accept
13240 LIBS=$gcj_oldLibs
13242 unset ac_cv_func_gethostbyname
13243 gcj_oldLibs=$LIBS
13244 LIBS="$LIBS $gcj_cv_lib_sockets"
13245 echo "$as_me:$LINENO: checking for gethostbyname" >&5
13246 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
13247 if test "${ac_cv_func_gethostbyname+set}" = set; then
13248 echo $ECHO_N "(cached) $ECHO_C" >&6
13249 else
13250 if test x$gcc_no_link = xyes; then
13251 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13252 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13253 { (exit 1); exit 1; }; }
13255 cat >conftest.$ac_ext <<_ACEOF
13256 /* confdefs.h. */
13257 _ACEOF
13258 cat confdefs.h >>conftest.$ac_ext
13259 cat >>conftest.$ac_ext <<_ACEOF
13260 /* end confdefs.h. */
13261 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
13262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13263 #define gethostbyname innocuous_gethostbyname
13265 /* System header to define __stub macros and hopefully few prototypes,
13266 which can conflict with char gethostbyname (); below.
13267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13268 <limits.h> exists even on freestanding compilers. */
13270 #ifdef __STDC__
13271 # include <limits.h>
13272 #else
13273 # include <assert.h>
13274 #endif
13276 #undef gethostbyname
13278 /* Override any gcc2 internal prototype to avoid an error. */
13279 #ifdef __cplusplus
13280 extern "C"
13282 #endif
13283 /* We use char because int might match the return type of a gcc2
13284 builtin and then its argument prototype would still apply. */
13285 char gethostbyname ();
13286 /* The GNU C library defines this for functions which it implements
13287 to always fail with ENOSYS. Some functions are actually named
13288 something starting with __ and the normal name is an alias. */
13289 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13290 choke me
13291 #else
13292 char (*f) () = gethostbyname;
13293 #endif
13294 #ifdef __cplusplus
13296 #endif
13299 main ()
13301 return f != gethostbyname;
13303 return 0;
13305 _ACEOF
13306 rm -f conftest.$ac_objext conftest$ac_exeext
13307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13308 (eval $ac_link) 2>conftest.er1
13309 ac_status=$?
13310 grep -v '^ *+' conftest.er1 >conftest.err
13311 rm -f conftest.er1
13312 cat conftest.err >&5
13313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); } &&
13315 { ac_try='test -z "$ac_c_werror_flag"
13316 || test ! -s conftest.err'
13317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13318 (eval $ac_try) 2>&5
13319 ac_status=$?
13320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321 (exit $ac_status); }; } &&
13322 { ac_try='test -s conftest$ac_exeext'
13323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13324 (eval $ac_try) 2>&5
13325 ac_status=$?
13326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327 (exit $ac_status); }; }; then
13328 ac_cv_func_gethostbyname=yes
13329 else
13330 echo "$as_me: failed program was:" >&5
13331 sed 's/^/| /' conftest.$ac_ext >&5
13333 ac_cv_func_gethostbyname=no
13335 rm -f conftest.err conftest.$ac_objext \
13336 conftest$ac_exeext conftest.$ac_ext
13338 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
13339 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
13340 if test $ac_cv_func_gethostbyname = yes; then
13342 else
13343 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
13344 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
13345 if test "${ac_cv_lib_nsl_main+set}" = set; then
13346 echo $ECHO_N "(cached) $ECHO_C" >&6
13347 else
13348 ac_check_lib_save_LIBS=$LIBS
13349 LIBS="-lnsl $LIBS"
13350 if test x$gcc_no_link = xyes; then
13351 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13352 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13353 { (exit 1); exit 1; }; }
13355 cat >conftest.$ac_ext <<_ACEOF
13356 /* confdefs.h. */
13357 _ACEOF
13358 cat confdefs.h >>conftest.$ac_ext
13359 cat >>conftest.$ac_ext <<_ACEOF
13360 /* end confdefs.h. */
13364 main ()
13366 main ();
13368 return 0;
13370 _ACEOF
13371 rm -f conftest.$ac_objext conftest$ac_exeext
13372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13373 (eval $ac_link) 2>conftest.er1
13374 ac_status=$?
13375 grep -v '^ *+' conftest.er1 >conftest.err
13376 rm -f conftest.er1
13377 cat conftest.err >&5
13378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); } &&
13380 { ac_try='test -z "$ac_c_werror_flag"
13381 || test ! -s conftest.err'
13382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13383 (eval $ac_try) 2>&5
13384 ac_status=$?
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); }; } &&
13387 { ac_try='test -s conftest$ac_exeext'
13388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13389 (eval $ac_try) 2>&5
13390 ac_status=$?
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); }; }; then
13393 ac_cv_lib_nsl_main=yes
13394 else
13395 echo "$as_me: failed program was:" >&5
13396 sed 's/^/| /' conftest.$ac_ext >&5
13398 ac_cv_lib_nsl_main=no
13400 rm -f conftest.err conftest.$ac_objext \
13401 conftest$ac_exeext conftest.$ac_ext
13402 LIBS=$ac_check_lib_save_LIBS
13404 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
13405 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
13406 if test $ac_cv_lib_nsl_main = yes; then
13407 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
13412 unset ac_cv_func_gethostbyname
13413 LIBS=$gcj_oldLIBS
13416 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
13417 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
13418 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
13420 if test "$with_system_zlib" = yes; then
13421 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
13422 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
13423 if test "${ac_cv_lib_z_deflate+set}" = set; then
13424 echo $ECHO_N "(cached) $ECHO_C" >&6
13425 else
13426 ac_check_lib_save_LIBS=$LIBS
13427 LIBS="-lz $LIBS"
13428 if test x$gcc_no_link = xyes; then
13429 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13430 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13431 { (exit 1); exit 1; }; }
13433 cat >conftest.$ac_ext <<_ACEOF
13434 /* confdefs.h. */
13435 _ACEOF
13436 cat confdefs.h >>conftest.$ac_ext
13437 cat >>conftest.$ac_ext <<_ACEOF
13438 /* end confdefs.h. */
13440 /* Override any gcc2 internal prototype to avoid an error. */
13441 #ifdef __cplusplus
13442 extern "C"
13443 #endif
13444 /* We use char because int might match the return type of a gcc2
13445 builtin and then its argument prototype would still apply. */
13446 char deflate ();
13448 main ()
13450 deflate ();
13452 return 0;
13454 _ACEOF
13455 rm -f conftest.$ac_objext conftest$ac_exeext
13456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13457 (eval $ac_link) 2>conftest.er1
13458 ac_status=$?
13459 grep -v '^ *+' conftest.er1 >conftest.err
13460 rm -f conftest.er1
13461 cat conftest.err >&5
13462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463 (exit $ac_status); } &&
13464 { ac_try='test -z "$ac_c_werror_flag"
13465 || test ! -s conftest.err'
13466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13467 (eval $ac_try) 2>&5
13468 ac_status=$?
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); }; } &&
13471 { ac_try='test -s conftest$ac_exeext'
13472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13473 (eval $ac_try) 2>&5
13474 ac_status=$?
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); }; }; then
13477 ac_cv_lib_z_deflate=yes
13478 else
13479 echo "$as_me: failed program was:" >&5
13480 sed 's/^/| /' conftest.$ac_ext >&5
13482 ac_cv_lib_z_deflate=no
13484 rm -f conftest.err conftest.$ac_objext \
13485 conftest$ac_exeext conftest.$ac_ext
13486 LIBS=$ac_check_lib_save_LIBS
13488 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
13489 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
13490 if test $ac_cv_lib_z_deflate = yes; then
13491 ZLIBSPEC=-lz
13492 else
13493 ZLIBSPEC=
13498 # Test for Gtk stuff, if asked for.
13499 if test "$use_gtk_awt" = yes; then
13501 succeeded=no
13503 if test -z "$PKG_CONFIG"; then
13504 # Extract the first word of "pkg-config", so it can be a program name with args.
13505 set dummy pkg-config; ac_word=$2
13506 echo "$as_me:$LINENO: checking for $ac_word" >&5
13507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13508 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13509 echo $ECHO_N "(cached) $ECHO_C" >&6
13510 else
13511 case $PKG_CONFIG in
13512 [\\/]* | ?:[\\/]*)
13513 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13517 for as_dir in $PATH
13519 IFS=$as_save_IFS
13520 test -z "$as_dir" && as_dir=.
13521 for ac_exec_ext in '' $ac_executable_extensions; do
13522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13523 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13525 break 2
13527 done
13528 done
13530 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13532 esac
13534 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13536 if test -n "$PKG_CONFIG"; then
13537 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13538 echo "${ECHO_T}$PKG_CONFIG" >&6
13539 else
13540 echo "$as_me:$LINENO: result: no" >&5
13541 echo "${ECHO_T}no" >&6
13546 if test "$PKG_CONFIG" = "no" ; then
13547 echo "*** The pkg-config script could not be found. Make sure it is"
13548 echo "*** in your path, or set the PKG_CONFIG environment variable"
13549 echo "*** to the full path to pkg-config."
13550 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13551 else
13552 PKG_CONFIG_MIN_VERSION=0.9.0
13553 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13554 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
13555 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
13557 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
13558 echo "$as_me:$LINENO: result: yes" >&5
13559 echo "${ECHO_T}yes" >&6
13560 succeeded=yes
13562 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
13563 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
13564 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
13565 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
13566 echo "${ECHO_T}$GTK_CFLAGS" >&6
13568 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
13569 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
13570 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
13571 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
13572 echo "${ECHO_T}$GTK_LIBS" >&6
13573 else
13574 GTK_CFLAGS=""
13575 GTK_LIBS=""
13576 ## If we have a custom action on failure, don't print errors, but
13577 ## do set a variable so people can do so.
13578 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
13579 echo $GTK_PKG_ERRORS
13584 else
13585 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13586 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13590 if test $succeeded = yes; then
13592 else
13593 { { 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
13594 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;}
13595 { (exit 1); exit 1; }; }
13602 succeeded=no
13604 if test -z "$PKG_CONFIG"; then
13605 # Extract the first word of "pkg-config", so it can be a program name with args.
13606 set dummy pkg-config; ac_word=$2
13607 echo "$as_me:$LINENO: checking for $ac_word" >&5
13608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13609 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13610 echo $ECHO_N "(cached) $ECHO_C" >&6
13611 else
13612 case $PKG_CONFIG in
13613 [\\/]* | ?:[\\/]*)
13614 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13618 for as_dir in $PATH
13620 IFS=$as_save_IFS
13621 test -z "$as_dir" && as_dir=.
13622 for ac_exec_ext in '' $ac_executable_extensions; do
13623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13624 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13626 break 2
13628 done
13629 done
13631 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13633 esac
13635 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13637 if test -n "$PKG_CONFIG"; then
13638 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13639 echo "${ECHO_T}$PKG_CONFIG" >&6
13640 else
13641 echo "$as_me:$LINENO: result: no" >&5
13642 echo "${ECHO_T}no" >&6
13647 if test "$PKG_CONFIG" = "no" ; then
13648 echo "*** The pkg-config script could not be found. Make sure it is"
13649 echo "*** in your path, or set the PKG_CONFIG environment variable"
13650 echo "*** to the full path to pkg-config."
13651 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13652 else
13653 PKG_CONFIG_MIN_VERSION=0.9.0
13654 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13655 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
13656 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
13658 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
13659 echo "$as_me:$LINENO: result: yes" >&5
13660 echo "${ECHO_T}yes" >&6
13661 succeeded=yes
13663 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
13664 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
13665 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13666 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
13667 echo "${ECHO_T}$GLIB_CFLAGS" >&6
13669 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
13670 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
13671 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13672 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
13673 echo "${ECHO_T}$GLIB_LIBS" >&6
13674 else
13675 GLIB_CFLAGS=""
13676 GLIB_LIBS=""
13677 ## If we have a custom action on failure, don't print errors, but
13678 ## do set a variable so people can do so.
13679 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13680 echo $GLIB_PKG_ERRORS
13685 else
13686 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13687 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13691 if test $succeeded = yes; then
13693 else
13694 { { 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
13695 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;}
13696 { (exit 1); exit 1; }; }
13703 succeeded=no
13705 if test -z "$PKG_CONFIG"; then
13706 # Extract the first word of "pkg-config", so it can be a program name with args.
13707 set dummy pkg-config; ac_word=$2
13708 echo "$as_me:$LINENO: checking for $ac_word" >&5
13709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13710 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13711 echo $ECHO_N "(cached) $ECHO_C" >&6
13712 else
13713 case $PKG_CONFIG in
13714 [\\/]* | ?:[\\/]*)
13715 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13719 for as_dir in $PATH
13721 IFS=$as_save_IFS
13722 test -z "$as_dir" && as_dir=.
13723 for ac_exec_ext in '' $ac_executable_extensions; do
13724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13725 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13727 break 2
13729 done
13730 done
13732 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13734 esac
13736 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13738 if test -n "$PKG_CONFIG"; then
13739 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13740 echo "${ECHO_T}$PKG_CONFIG" >&6
13741 else
13742 echo "$as_me:$LINENO: result: no" >&5
13743 echo "${ECHO_T}no" >&6
13748 if test "$PKG_CONFIG" = "no" ; then
13749 echo "*** The pkg-config script could not be found. Make sure it is"
13750 echo "*** in your path, or set the PKG_CONFIG environment variable"
13751 echo "*** to the full path to pkg-config."
13752 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13753 else
13754 PKG_CONFIG_MIN_VERSION=0.9.0
13755 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13756 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
13757 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
13759 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
13760 echo "$as_me:$LINENO: result: yes" >&5
13761 echo "${ECHO_T}yes" >&6
13762 succeeded=yes
13764 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
13765 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
13766 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
13767 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
13768 echo "${ECHO_T}$LIBART_CFLAGS" >&6
13770 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
13771 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
13772 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
13773 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
13774 echo "${ECHO_T}$LIBART_LIBS" >&6
13775 else
13776 LIBART_CFLAGS=""
13777 LIBART_LIBS=""
13778 ## If we have a custom action on failure, don't print errors, but
13779 ## do set a variable so people can do so.
13780 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
13781 echo $LIBART_PKG_ERRORS
13786 else
13787 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13788 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13792 if test $succeeded = yes; then
13794 else
13795 { { 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
13796 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;}
13797 { (exit 1); exit 1; }; }
13803 # We require the XTest Extension to support java.awt.Robot.
13804 echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
13805 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
13806 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
13807 echo $ECHO_N "(cached) $ECHO_C" >&6
13808 else
13809 ac_check_lib_save_LIBS=$LIBS
13810 LIBS="-lXtst ${X_LIBS} $LIBS"
13811 if test x$gcc_no_link = xyes; then
13812 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13813 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13814 { (exit 1); exit 1; }; }
13816 cat >conftest.$ac_ext <<_ACEOF
13817 /* confdefs.h. */
13818 _ACEOF
13819 cat confdefs.h >>conftest.$ac_ext
13820 cat >>conftest.$ac_ext <<_ACEOF
13821 /* end confdefs.h. */
13823 /* Override any gcc2 internal prototype to avoid an error. */
13824 #ifdef __cplusplus
13825 extern "C"
13826 #endif
13827 /* We use char because int might match the return type of a gcc2
13828 builtin and then its argument prototype would still apply. */
13829 char XTestQueryExtension ();
13831 main ()
13833 XTestQueryExtension ();
13835 return 0;
13837 _ACEOF
13838 rm -f conftest.$ac_objext conftest$ac_exeext
13839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13840 (eval $ac_link) 2>conftest.er1
13841 ac_status=$?
13842 grep -v '^ *+' conftest.er1 >conftest.err
13843 rm -f conftest.er1
13844 cat conftest.err >&5
13845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846 (exit $ac_status); } &&
13847 { ac_try='test -z "$ac_c_werror_flag"
13848 || test ! -s conftest.err'
13849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13850 (eval $ac_try) 2>&5
13851 ac_status=$?
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); }; } &&
13854 { ac_try='test -s conftest$ac_exeext'
13855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13856 (eval $ac_try) 2>&5
13857 ac_status=$?
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); }; }; then
13860 ac_cv_lib_Xtst_XTestQueryExtension=yes
13861 else
13862 echo "$as_me: failed program was:" >&5
13863 sed 's/^/| /' conftest.$ac_ext >&5
13865 ac_cv_lib_Xtst_XTestQueryExtension=no
13867 rm -f conftest.err conftest.$ac_objext \
13868 conftest$ac_exeext conftest.$ac_ext
13869 LIBS=$ac_check_lib_save_LIBS
13871 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
13872 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
13873 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
13874 true
13875 else
13876 { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
13877 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
13878 { (exit 1); exit 1; }; }
13883 # On Solaris, and maybe other architectures, the Boehm collector
13884 # requires -ldl.
13885 if test "$GC" = boehm; then
13886 echo "$as_me:$LINENO: checking for main in -ldl" >&5
13887 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
13888 if test "${ac_cv_lib_dl_main+set}" = set; then
13889 echo $ECHO_N "(cached) $ECHO_C" >&6
13890 else
13891 ac_check_lib_save_LIBS=$LIBS
13892 LIBS="-ldl $LIBS"
13893 if test x$gcc_no_link = xyes; then
13894 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13895 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13896 { (exit 1); exit 1; }; }
13898 cat >conftest.$ac_ext <<_ACEOF
13899 /* confdefs.h. */
13900 _ACEOF
13901 cat confdefs.h >>conftest.$ac_ext
13902 cat >>conftest.$ac_ext <<_ACEOF
13903 /* end confdefs.h. */
13907 main ()
13909 main ();
13911 return 0;
13913 _ACEOF
13914 rm -f conftest.$ac_objext conftest$ac_exeext
13915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13916 (eval $ac_link) 2>conftest.er1
13917 ac_status=$?
13918 grep -v '^ *+' conftest.er1 >conftest.err
13919 rm -f conftest.er1
13920 cat conftest.err >&5
13921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922 (exit $ac_status); } &&
13923 { ac_try='test -z "$ac_c_werror_flag"
13924 || test ! -s conftest.err'
13925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13926 (eval $ac_try) 2>&5
13927 ac_status=$?
13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 (exit $ac_status); }; } &&
13930 { ac_try='test -s conftest$ac_exeext'
13931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13932 (eval $ac_try) 2>&5
13933 ac_status=$?
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); }; }; then
13936 ac_cv_lib_dl_main=yes
13937 else
13938 echo "$as_me: failed program was:" >&5
13939 sed 's/^/| /' conftest.$ac_ext >&5
13941 ac_cv_lib_dl_main=no
13943 rm -f conftest.err conftest.$ac_objext \
13944 conftest$ac_exeext conftest.$ac_ext
13945 LIBS=$ac_check_lib_save_LIBS
13947 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
13948 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
13949 if test $ac_cv_lib_dl_main = yes; then
13950 SYSTEMSPEC="$SYSTEMSPEC -ldl"
13957 if test "$supply_backtrace" = yes; then
13958 SUPPLY_BACKTRACE_TRUE=
13959 SUPPLY_BACKTRACE_FALSE='#'
13960 else
13961 SUPPLY_BACKTRACE_TRUE='#'
13962 SUPPLY_BACKTRACE_FALSE=
13966 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
13967 case $build in
13968 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
13969 *) CLASSPATH_SEPARATOR=':' ;;
13970 esac
13973 # We must search the source tree for java.lang, since we still don't
13974 # have libgcj.jar nor java/lang/*.class
13975 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
13976 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
13978 # Since some classes depend on this one, we need its source available
13979 # before we can do any GCJ compilation test :-(
13980 if test ! -f gnu/classpath/Configuration.java; then
13981 test -d gnu || mkdir gnu
13982 test -d gnu/classpath || mkdir gnu/classpath
13983 # Note that it is not crucial that all the values here be correct.
13984 sed -e "s,@prefix@,$prefix," \
13985 -e "s,@VERSION@,$VERSION," \
13986 -e "s,@LIBDEBUG@,false," \
13987 -e "s,@INIT_LOAD_LIBRARY@,false," \
13988 -e "s,@@,$LIBGCJDEBUG," \
13989 -e "s,@default_toolkit@,$TOOLKIT," \
13990 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
13991 -e "s,@GTK_CAIRO_ENABLED@,false," \
13992 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
13993 > gnu/classpath/Configuration.java
13994 # We do not want to redirect the output of the grep below to /dev/null,
13995 # but we add /dev/null to the input list so that grep will print the
13996 # filename of Configuration.java in case it finds any matches.
13997 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
13998 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
13999 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
14000 { (exit 1); exit 1; }; }
14004 if test -n "$ac_tool_prefix"; then
14005 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
14006 set dummy ${ac_tool_prefix}gcj; ac_word=$2
14007 echo "$as_me:$LINENO: checking for $ac_word" >&5
14008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14009 if test "${ac_cv_prog_GCJ+set}" = set; then
14010 echo $ECHO_N "(cached) $ECHO_C" >&6
14011 else
14012 if test -n "$GCJ"; then
14013 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
14014 else
14015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14016 for as_dir in $PATH
14018 IFS=$as_save_IFS
14019 test -z "$as_dir" && as_dir=.
14020 for ac_exec_ext in '' $ac_executable_extensions; do
14021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14022 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
14023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14024 break 2
14026 done
14027 done
14031 GCJ=$ac_cv_prog_GCJ
14032 if test -n "$GCJ"; then
14033 echo "$as_me:$LINENO: result: $GCJ" >&5
14034 echo "${ECHO_T}$GCJ" >&6
14035 else
14036 echo "$as_me:$LINENO: result: no" >&5
14037 echo "${ECHO_T}no" >&6
14041 if test -z "$ac_cv_prog_GCJ"; then
14042 ac_ct_GCJ=$GCJ
14043 # Extract the first word of "gcj", so it can be a program name with args.
14044 set dummy gcj; ac_word=$2
14045 echo "$as_me:$LINENO: checking for $ac_word" >&5
14046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14047 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
14048 echo $ECHO_N "(cached) $ECHO_C" >&6
14049 else
14050 if test -n "$ac_ct_GCJ"; then
14051 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
14052 else
14053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14054 for as_dir in $PATH
14056 IFS=$as_save_IFS
14057 test -z "$as_dir" && as_dir=.
14058 for ac_exec_ext in '' $ac_executable_extensions; do
14059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14060 ac_cv_prog_ac_ct_GCJ="gcj"
14061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14062 break 2
14064 done
14065 done
14067 test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
14070 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
14071 if test -n "$ac_ct_GCJ"; then
14072 echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
14073 echo "${ECHO_T}$ac_ct_GCJ" >&6
14074 else
14075 echo "$as_me:$LINENO: result: no" >&5
14076 echo "${ECHO_T}no" >&6
14079 GCJ=$ac_ct_GCJ
14080 else
14081 GCJ="$ac_cv_prog_GCJ"
14084 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
14089 # Now remove it.
14090 rm -f gnu/classpath/Configuration.java
14092 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
14094 echo "$as_me:$LINENO: checking for void *" >&5
14095 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14096 if test "${ac_cv_type_void_p+set}" = set; then
14097 echo $ECHO_N "(cached) $ECHO_C" >&6
14098 else
14099 cat >conftest.$ac_ext <<_ACEOF
14100 /* confdefs.h. */
14101 _ACEOF
14102 cat confdefs.h >>conftest.$ac_ext
14103 cat >>conftest.$ac_ext <<_ACEOF
14104 /* end confdefs.h. */
14105 $ac_includes_default
14107 main ()
14109 if ((void * *) 0)
14110 return 0;
14111 if (sizeof (void *))
14112 return 0;
14114 return 0;
14116 _ACEOF
14117 rm -f conftest.$ac_objext
14118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14119 (eval $ac_compile) 2>conftest.er1
14120 ac_status=$?
14121 grep -v '^ *+' conftest.er1 >conftest.err
14122 rm -f conftest.er1
14123 cat conftest.err >&5
14124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); } &&
14126 { ac_try='test -z "$ac_c_werror_flag"
14127 || test ! -s conftest.err'
14128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14129 (eval $ac_try) 2>&5
14130 ac_status=$?
14131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132 (exit $ac_status); }; } &&
14133 { ac_try='test -s conftest.$ac_objext'
14134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14135 (eval $ac_try) 2>&5
14136 ac_status=$?
14137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14138 (exit $ac_status); }; }; then
14139 ac_cv_type_void_p=yes
14140 else
14141 echo "$as_me: failed program was:" >&5
14142 sed 's/^/| /' conftest.$ac_ext >&5
14144 ac_cv_type_void_p=no
14146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14148 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14149 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14151 echo "$as_me:$LINENO: checking size of void *" >&5
14152 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14153 if test "${ac_cv_sizeof_void_p+set}" = set; then
14154 echo $ECHO_N "(cached) $ECHO_C" >&6
14155 else
14156 if test "$ac_cv_type_void_p" = yes; then
14157 # The cast to unsigned long works around a bug in the HP C Compiler
14158 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14159 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14160 # This bug is HP SR number 8606223364.
14161 if test "$cross_compiling" = yes; then
14162 # Depending upon the size, compute the lo and hi bounds.
14163 cat >conftest.$ac_ext <<_ACEOF
14164 /* confdefs.h. */
14165 _ACEOF
14166 cat confdefs.h >>conftest.$ac_ext
14167 cat >>conftest.$ac_ext <<_ACEOF
14168 /* end confdefs.h. */
14169 $ac_includes_default
14171 main ()
14173 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14174 test_array [0] = 0
14177 return 0;
14179 _ACEOF
14180 rm -f conftest.$ac_objext
14181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14182 (eval $ac_compile) 2>conftest.er1
14183 ac_status=$?
14184 grep -v '^ *+' conftest.er1 >conftest.err
14185 rm -f conftest.er1
14186 cat conftest.err >&5
14187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188 (exit $ac_status); } &&
14189 { ac_try='test -z "$ac_c_werror_flag"
14190 || test ! -s conftest.err'
14191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14192 (eval $ac_try) 2>&5
14193 ac_status=$?
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); }; } &&
14196 { ac_try='test -s conftest.$ac_objext'
14197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14198 (eval $ac_try) 2>&5
14199 ac_status=$?
14200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201 (exit $ac_status); }; }; then
14202 ac_lo=0 ac_mid=0
14203 while :; do
14204 cat >conftest.$ac_ext <<_ACEOF
14205 /* confdefs.h. */
14206 _ACEOF
14207 cat confdefs.h >>conftest.$ac_ext
14208 cat >>conftest.$ac_ext <<_ACEOF
14209 /* end confdefs.h. */
14210 $ac_includes_default
14212 main ()
14214 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14215 test_array [0] = 0
14218 return 0;
14220 _ACEOF
14221 rm -f conftest.$ac_objext
14222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14223 (eval $ac_compile) 2>conftest.er1
14224 ac_status=$?
14225 grep -v '^ *+' conftest.er1 >conftest.err
14226 rm -f conftest.er1
14227 cat conftest.err >&5
14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); } &&
14230 { ac_try='test -z "$ac_c_werror_flag"
14231 || test ! -s conftest.err'
14232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14233 (eval $ac_try) 2>&5
14234 ac_status=$?
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); }; } &&
14237 { ac_try='test -s conftest.$ac_objext'
14238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14239 (eval $ac_try) 2>&5
14240 ac_status=$?
14241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 (exit $ac_status); }; }; then
14243 ac_hi=$ac_mid; break
14244 else
14245 echo "$as_me: failed program was:" >&5
14246 sed 's/^/| /' conftest.$ac_ext >&5
14248 ac_lo=`expr $ac_mid + 1`
14249 if test $ac_lo -le $ac_mid; then
14250 ac_lo= ac_hi=
14251 break
14253 ac_mid=`expr 2 '*' $ac_mid + 1`
14255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14256 done
14257 else
14258 echo "$as_me: failed program was:" >&5
14259 sed 's/^/| /' conftest.$ac_ext >&5
14261 cat >conftest.$ac_ext <<_ACEOF
14262 /* confdefs.h. */
14263 _ACEOF
14264 cat confdefs.h >>conftest.$ac_ext
14265 cat >>conftest.$ac_ext <<_ACEOF
14266 /* end confdefs.h. */
14267 $ac_includes_default
14269 main ()
14271 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14272 test_array [0] = 0
14275 return 0;
14277 _ACEOF
14278 rm -f conftest.$ac_objext
14279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14280 (eval $ac_compile) 2>conftest.er1
14281 ac_status=$?
14282 grep -v '^ *+' conftest.er1 >conftest.err
14283 rm -f conftest.er1
14284 cat conftest.err >&5
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 (exit $ac_status); } &&
14287 { ac_try='test -z "$ac_c_werror_flag"
14288 || test ! -s conftest.err'
14289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14290 (eval $ac_try) 2>&5
14291 ac_status=$?
14292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293 (exit $ac_status); }; } &&
14294 { ac_try='test -s conftest.$ac_objext'
14295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14296 (eval $ac_try) 2>&5
14297 ac_status=$?
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); }; }; then
14300 ac_hi=-1 ac_mid=-1
14301 while :; do
14302 cat >conftest.$ac_ext <<_ACEOF
14303 /* confdefs.h. */
14304 _ACEOF
14305 cat confdefs.h >>conftest.$ac_ext
14306 cat >>conftest.$ac_ext <<_ACEOF
14307 /* end confdefs.h. */
14308 $ac_includes_default
14310 main ()
14312 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14313 test_array [0] = 0
14316 return 0;
14318 _ACEOF
14319 rm -f conftest.$ac_objext
14320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14321 (eval $ac_compile) 2>conftest.er1
14322 ac_status=$?
14323 grep -v '^ *+' conftest.er1 >conftest.err
14324 rm -f conftest.er1
14325 cat conftest.err >&5
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); } &&
14328 { ac_try='test -z "$ac_c_werror_flag"
14329 || test ! -s conftest.err'
14330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14331 (eval $ac_try) 2>&5
14332 ac_status=$?
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); }; } &&
14335 { ac_try='test -s conftest.$ac_objext'
14336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14337 (eval $ac_try) 2>&5
14338 ac_status=$?
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); }; }; then
14341 ac_lo=$ac_mid; break
14342 else
14343 echo "$as_me: failed program was:" >&5
14344 sed 's/^/| /' conftest.$ac_ext >&5
14346 ac_hi=`expr '(' $ac_mid ')' - 1`
14347 if test $ac_mid -le $ac_hi; then
14348 ac_lo= ac_hi=
14349 break
14351 ac_mid=`expr 2 '*' $ac_mid`
14353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14354 done
14355 else
14356 echo "$as_me: failed program was:" >&5
14357 sed 's/^/| /' conftest.$ac_ext >&5
14359 ac_lo= ac_hi=
14361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14364 # Binary search between lo and hi bounds.
14365 while test "x$ac_lo" != "x$ac_hi"; do
14366 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14367 cat >conftest.$ac_ext <<_ACEOF
14368 /* confdefs.h. */
14369 _ACEOF
14370 cat confdefs.h >>conftest.$ac_ext
14371 cat >>conftest.$ac_ext <<_ACEOF
14372 /* end confdefs.h. */
14373 $ac_includes_default
14375 main ()
14377 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14378 test_array [0] = 0
14381 return 0;
14383 _ACEOF
14384 rm -f conftest.$ac_objext
14385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14386 (eval $ac_compile) 2>conftest.er1
14387 ac_status=$?
14388 grep -v '^ *+' conftest.er1 >conftest.err
14389 rm -f conftest.er1
14390 cat conftest.err >&5
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); } &&
14393 { ac_try='test -z "$ac_c_werror_flag"
14394 || test ! -s conftest.err'
14395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14396 (eval $ac_try) 2>&5
14397 ac_status=$?
14398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399 (exit $ac_status); }; } &&
14400 { ac_try='test -s conftest.$ac_objext'
14401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14402 (eval $ac_try) 2>&5
14403 ac_status=$?
14404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405 (exit $ac_status); }; }; then
14406 ac_hi=$ac_mid
14407 else
14408 echo "$as_me: failed program was:" >&5
14409 sed 's/^/| /' conftest.$ac_ext >&5
14411 ac_lo=`expr '(' $ac_mid ')' + 1`
14413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14414 done
14415 case $ac_lo in
14416 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14417 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14418 See \`config.log' for more details." >&5
14419 echo "$as_me: error: cannot compute sizeof (void *), 77
14420 See \`config.log' for more details." >&2;}
14421 { (exit 1); exit 1; }; } ;;
14422 esac
14423 else
14424 if test "$cross_compiling" = yes; then
14425 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14426 See \`config.log' for more details." >&5
14427 echo "$as_me: error: cannot run test program while cross compiling
14428 See \`config.log' for more details." >&2;}
14429 { (exit 1); exit 1; }; }
14430 else
14431 cat >conftest.$ac_ext <<_ACEOF
14432 /* confdefs.h. */
14433 _ACEOF
14434 cat confdefs.h >>conftest.$ac_ext
14435 cat >>conftest.$ac_ext <<_ACEOF
14436 /* end confdefs.h. */
14437 $ac_includes_default
14438 long longval () { return (long) (sizeof (void *)); }
14439 unsigned long ulongval () { return (long) (sizeof (void *)); }
14440 #include <stdio.h>
14441 #include <stdlib.h>
14443 main ()
14446 FILE *f = fopen ("conftest.val", "w");
14447 if (! f)
14448 exit (1);
14449 if (((long) (sizeof (void *))) < 0)
14451 long i = longval ();
14452 if (i != ((long) (sizeof (void *))))
14453 exit (1);
14454 fprintf (f, "%ld\n", i);
14456 else
14458 unsigned long i = ulongval ();
14459 if (i != ((long) (sizeof (void *))))
14460 exit (1);
14461 fprintf (f, "%lu\n", i);
14463 exit (ferror (f) || fclose (f) != 0);
14466 return 0;
14468 _ACEOF
14469 rm -f conftest$ac_exeext
14470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14471 (eval $ac_link) 2>&5
14472 ac_status=$?
14473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14476 (eval $ac_try) 2>&5
14477 ac_status=$?
14478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); }; }; then
14480 ac_cv_sizeof_void_p=`cat conftest.val`
14481 else
14482 echo "$as_me: program exited with status $ac_status" >&5
14483 echo "$as_me: failed program was:" >&5
14484 sed 's/^/| /' conftest.$ac_ext >&5
14486 ( exit $ac_status )
14487 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14488 See \`config.log' for more details." >&5
14489 echo "$as_me: error: cannot compute sizeof (void *), 77
14490 See \`config.log' for more details." >&2;}
14491 { (exit 1); exit 1; }; }
14493 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14496 rm -f conftest.val
14497 else
14498 ac_cv_sizeof_void_p=0
14501 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14502 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14503 cat >>confdefs.h <<_ACEOF
14504 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14505 _ACEOF
14509 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14510 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
14511 if test "${ac_cv_c_bigendian+set}" = set; then
14512 echo $ECHO_N "(cached) $ECHO_C" >&6
14513 else
14514 # See if sys/param.h defines the BYTE_ORDER macro.
14515 cat >conftest.$ac_ext <<_ACEOF
14516 /* confdefs.h. */
14517 _ACEOF
14518 cat confdefs.h >>conftest.$ac_ext
14519 cat >>conftest.$ac_ext <<_ACEOF
14520 /* end confdefs.h. */
14521 #include <sys/types.h>
14522 #include <sys/param.h>
14525 main ()
14527 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14528 bogus endian macros
14529 #endif
14532 return 0;
14534 _ACEOF
14535 rm -f conftest.$ac_objext
14536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14537 (eval $ac_compile) 2>conftest.er1
14538 ac_status=$?
14539 grep -v '^ *+' conftest.er1 >conftest.err
14540 rm -f conftest.er1
14541 cat conftest.err >&5
14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); } &&
14544 { ac_try='test -z "$ac_c_werror_flag"
14545 || test ! -s conftest.err'
14546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14547 (eval $ac_try) 2>&5
14548 ac_status=$?
14549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550 (exit $ac_status); }; } &&
14551 { ac_try='test -s conftest.$ac_objext'
14552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14553 (eval $ac_try) 2>&5
14554 ac_status=$?
14555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556 (exit $ac_status); }; }; then
14557 # It does; now see whether it defined to BIG_ENDIAN or not.
14558 cat >conftest.$ac_ext <<_ACEOF
14559 /* confdefs.h. */
14560 _ACEOF
14561 cat confdefs.h >>conftest.$ac_ext
14562 cat >>conftest.$ac_ext <<_ACEOF
14563 /* end confdefs.h. */
14564 #include <sys/types.h>
14565 #include <sys/param.h>
14568 main ()
14570 #if BYTE_ORDER != BIG_ENDIAN
14571 not big endian
14572 #endif
14575 return 0;
14577 _ACEOF
14578 rm -f conftest.$ac_objext
14579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14580 (eval $ac_compile) 2>conftest.er1
14581 ac_status=$?
14582 grep -v '^ *+' conftest.er1 >conftest.err
14583 rm -f conftest.er1
14584 cat conftest.err >&5
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); } &&
14587 { ac_try='test -z "$ac_c_werror_flag"
14588 || test ! -s conftest.err'
14589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14590 (eval $ac_try) 2>&5
14591 ac_status=$?
14592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593 (exit $ac_status); }; } &&
14594 { ac_try='test -s conftest.$ac_objext'
14595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14596 (eval $ac_try) 2>&5
14597 ac_status=$?
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); }; }; then
14600 ac_cv_c_bigendian=yes
14601 else
14602 echo "$as_me: failed program was:" >&5
14603 sed 's/^/| /' conftest.$ac_ext >&5
14605 ac_cv_c_bigendian=no
14607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14608 else
14609 echo "$as_me: failed program was:" >&5
14610 sed 's/^/| /' conftest.$ac_ext >&5
14612 # It does not; compile a test program.
14613 if test "$cross_compiling" = yes; then
14614 # try to guess the endianness by grepping values into an object file
14615 ac_cv_c_bigendian=unknown
14616 cat >conftest.$ac_ext <<_ACEOF
14617 /* confdefs.h. */
14618 _ACEOF
14619 cat confdefs.h >>conftest.$ac_ext
14620 cat >>conftest.$ac_ext <<_ACEOF
14621 /* end confdefs.h. */
14622 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14623 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14624 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14625 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14626 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14627 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14629 main ()
14631 _ascii (); _ebcdic ();
14633 return 0;
14635 _ACEOF
14636 rm -f conftest.$ac_objext
14637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14638 (eval $ac_compile) 2>conftest.er1
14639 ac_status=$?
14640 grep -v '^ *+' conftest.er1 >conftest.err
14641 rm -f conftest.er1
14642 cat conftest.err >&5
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); } &&
14645 { ac_try='test -z "$ac_c_werror_flag"
14646 || test ! -s conftest.err'
14647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14648 (eval $ac_try) 2>&5
14649 ac_status=$?
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); }; } &&
14652 { ac_try='test -s conftest.$ac_objext'
14653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14654 (eval $ac_try) 2>&5
14655 ac_status=$?
14656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); }; }; then
14658 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14659 ac_cv_c_bigendian=yes
14661 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14662 if test "$ac_cv_c_bigendian" = unknown; then
14663 ac_cv_c_bigendian=no
14664 else
14665 # finding both strings is unlikely to happen, but who knows?
14666 ac_cv_c_bigendian=unknown
14669 else
14670 echo "$as_me: failed program was:" >&5
14671 sed 's/^/| /' conftest.$ac_ext >&5
14674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14675 else
14676 cat >conftest.$ac_ext <<_ACEOF
14677 /* confdefs.h. */
14678 _ACEOF
14679 cat confdefs.h >>conftest.$ac_ext
14680 cat >>conftest.$ac_ext <<_ACEOF
14681 /* end confdefs.h. */
14683 main ()
14685 /* Are we little or big endian? From Harbison&Steele. */
14686 union
14688 long l;
14689 char c[sizeof (long)];
14690 } u;
14691 u.l = 1;
14692 exit (u.c[sizeof (long) - 1] == 1);
14694 _ACEOF
14695 rm -f conftest$ac_exeext
14696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14697 (eval $ac_link) 2>&5
14698 ac_status=$?
14699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14702 (eval $ac_try) 2>&5
14703 ac_status=$?
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); }; }; then
14706 ac_cv_c_bigendian=no
14707 else
14708 echo "$as_me: program exited with status $ac_status" >&5
14709 echo "$as_me: failed program was:" >&5
14710 sed 's/^/| /' conftest.$ac_ext >&5
14712 ( exit $ac_status )
14713 ac_cv_c_bigendian=yes
14715 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14720 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14721 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14722 case $ac_cv_c_bigendian in
14723 yes)
14725 cat >>confdefs.h <<\_ACEOF
14726 #define WORDS_BIGENDIAN 1
14727 _ACEOF
14732 { { echo "$as_me:$LINENO: error: unknown endianness
14733 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14734 echo "$as_me: error: unknown endianness
14735 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14736 { (exit 1); exit 1; }; } ;;
14737 esac
14740 ZLIBS=
14741 SYS_ZLIBS=
14742 ZINCS=
14744 if test -z "$ZLIBSPEC"; then
14745 # Use zlib from the GCC tree.
14746 ZINCS='-I$(top_srcdir)/../zlib'
14747 ZLIBS=../zlib/libzgcj_convenience.la
14748 else
14749 # System's zlib.
14750 SYS_ZLIBS="$ZLIBSPEC"
14763 if test "$NATIVE" = yes; then
14764 NATIVE_TRUE=
14765 NATIVE_FALSE='#'
14766 else
14767 NATIVE_TRUE='#'
14768 NATIVE_FALSE=
14773 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
14774 NEEDS_DATA_START_TRUE=
14775 NEEDS_DATA_START_FALSE='#'
14776 else
14777 NEEDS_DATA_START_TRUE='#'
14778 NEEDS_DATA_START_FALSE=
14783 # Process the option "--enable-version-specific-runtime-libs"
14784 # Calculate toolexeclibdir
14785 case ${version_specific_libs} in
14786 yes)
14787 # Need the gcc compiler version to know where to install libraries
14788 # and header files if --enable-version-specific-runtime-libs option
14789 # is selected.
14790 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
14791 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
14792 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
14793 toolexeclibdir=$toolexecmainlibdir
14796 if test -n "$with_cross_host" &&
14797 test x"$with_cross_host" != x"no"; then
14798 # Install a library built with a cross compiler in tooldir, not libdir.
14799 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
14800 toolexecmainlibdir='$(toolexecdir)/lib'
14801 else
14802 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
14803 toolexecmainlibdir='$(libdir)'
14805 multi_os_directory=`$CC -print-multi-os-directory`
14806 case $multi_os_directory in
14807 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
14808 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
14809 esac
14811 esac
14816 # Determine gcj version number.
14817 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
14818 GCJVERSION=$gcjversion
14821 cat >>confdefs.h <<_ACEOF
14822 #define GCJVERSION "$GCJVERSION"
14823 _ACEOF
14827 cat >>confdefs.h <<\_ACEOF
14828 #define JV_VERSION "1.4.2"
14829 _ACEOF
14832 cat >>confdefs.h <<\_ACEOF
14833 #define JV_API_VERSION "1.4"
14834 _ACEOF
14838 case "${with_gxx_include_dir}" in
14839 yes)
14840 { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
14841 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
14842 { (exit 1); exit 1; }; }
14844 no | "")
14845 case "${enable_version_specific_runtime_libs}" in
14846 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
14848 libstdcxx_incdir='c++/$(gcc_version)'
14849 gxx_include_dir='$(prefix)/include/$(libstdcxx_incdir)' ;;
14850 esac ;;
14851 *) gxx_include_dir=${with_gxx_include_dir} ;;
14852 esac
14857 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
14858 # On that system, sys/ioctl.h will not include sys/filio.h unless
14859 # BSD_COMP is defined; just including sys/filio.h is simpler.
14860 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
14861 # for now. If you change this, you also must update natFile.cc.
14882 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
14883 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
14884 sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
14885 pwd.h sys/config.h stdint.h langinfo.h locale.h \
14886 dirent.h
14888 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14890 echo "$as_me:$LINENO: checking for $ac_header" >&5
14891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14892 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14893 echo $ECHO_N "(cached) $ECHO_C" >&6
14895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14896 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14897 else
14898 # Is the header compilable?
14899 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14900 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14901 cat >conftest.$ac_ext <<_ACEOF
14902 /* confdefs.h. */
14903 _ACEOF
14904 cat confdefs.h >>conftest.$ac_ext
14905 cat >>conftest.$ac_ext <<_ACEOF
14906 /* end confdefs.h. */
14907 $ac_includes_default
14908 #include <$ac_header>
14909 _ACEOF
14910 rm -f conftest.$ac_objext
14911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14912 (eval $ac_compile) 2>conftest.er1
14913 ac_status=$?
14914 grep -v '^ *+' conftest.er1 >conftest.err
14915 rm -f conftest.er1
14916 cat conftest.err >&5
14917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918 (exit $ac_status); } &&
14919 { ac_try='test -z "$ac_c_werror_flag"
14920 || test ! -s conftest.err'
14921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14922 (eval $ac_try) 2>&5
14923 ac_status=$?
14924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925 (exit $ac_status); }; } &&
14926 { ac_try='test -s conftest.$ac_objext'
14927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14928 (eval $ac_try) 2>&5
14929 ac_status=$?
14930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14931 (exit $ac_status); }; }; then
14932 ac_header_compiler=yes
14933 else
14934 echo "$as_me: failed program was:" >&5
14935 sed 's/^/| /' conftest.$ac_ext >&5
14937 ac_header_compiler=no
14939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14940 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14941 echo "${ECHO_T}$ac_header_compiler" >&6
14943 # Is the header present?
14944 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14945 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14946 cat >conftest.$ac_ext <<_ACEOF
14947 /* confdefs.h. */
14948 _ACEOF
14949 cat confdefs.h >>conftest.$ac_ext
14950 cat >>conftest.$ac_ext <<_ACEOF
14951 /* end confdefs.h. */
14952 #include <$ac_header>
14953 _ACEOF
14954 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14955 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14956 ac_status=$?
14957 grep -v '^ *+' conftest.er1 >conftest.err
14958 rm -f conftest.er1
14959 cat conftest.err >&5
14960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961 (exit $ac_status); } >/dev/null; then
14962 if test -s conftest.err; then
14963 ac_cpp_err=$ac_c_preproc_warn_flag
14964 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14965 else
14966 ac_cpp_err=
14968 else
14969 ac_cpp_err=yes
14971 if test -z "$ac_cpp_err"; then
14972 ac_header_preproc=yes
14973 else
14974 echo "$as_me: failed program was:" >&5
14975 sed 's/^/| /' conftest.$ac_ext >&5
14977 ac_header_preproc=no
14979 rm -f conftest.err conftest.$ac_ext
14980 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14981 echo "${ECHO_T}$ac_header_preproc" >&6
14983 # So? What about this header?
14984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14985 yes:no: )
14986 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14987 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14989 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14990 ac_header_preproc=yes
14992 no:yes:* )
14993 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14994 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14995 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14996 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14997 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14998 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14999 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15000 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15002 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15003 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15004 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15006 cat <<\_ASBOX
15007 ## ---------------------------------- ##
15008 ## Report this to the libjava lists. ##
15009 ## ---------------------------------- ##
15010 _ASBOX
15012 sed "s/^/$as_me: WARNING: /" >&2
15014 esac
15015 echo "$as_me:$LINENO: checking for $ac_header" >&5
15016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15018 echo $ECHO_N "(cached) $ECHO_C" >&6
15019 else
15020 eval "$as_ac_Header=\$ac_header_preproc"
15022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15023 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15026 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15027 cat >>confdefs.h <<_ACEOF
15028 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15029 _ACEOF
15033 done
15036 for ac_header in inttypes.h
15038 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15039 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15040 echo "$as_me:$LINENO: checking for $ac_header" >&5
15041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15043 echo $ECHO_N "(cached) $ECHO_C" >&6
15045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15046 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15047 else
15048 # Is the header compilable?
15049 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15050 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15051 cat >conftest.$ac_ext <<_ACEOF
15052 /* confdefs.h. */
15053 _ACEOF
15054 cat confdefs.h >>conftest.$ac_ext
15055 cat >>conftest.$ac_ext <<_ACEOF
15056 /* end confdefs.h. */
15057 $ac_includes_default
15058 #include <$ac_header>
15059 _ACEOF
15060 rm -f conftest.$ac_objext
15061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15062 (eval $ac_compile) 2>conftest.er1
15063 ac_status=$?
15064 grep -v '^ *+' conftest.er1 >conftest.err
15065 rm -f conftest.er1
15066 cat conftest.err >&5
15067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068 (exit $ac_status); } &&
15069 { ac_try='test -z "$ac_c_werror_flag"
15070 || test ! -s conftest.err'
15071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15072 (eval $ac_try) 2>&5
15073 ac_status=$?
15074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075 (exit $ac_status); }; } &&
15076 { ac_try='test -s conftest.$ac_objext'
15077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15078 (eval $ac_try) 2>&5
15079 ac_status=$?
15080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081 (exit $ac_status); }; }; then
15082 ac_header_compiler=yes
15083 else
15084 echo "$as_me: failed program was:" >&5
15085 sed 's/^/| /' conftest.$ac_ext >&5
15087 ac_header_compiler=no
15089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15090 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15091 echo "${ECHO_T}$ac_header_compiler" >&6
15093 # Is the header present?
15094 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15095 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15096 cat >conftest.$ac_ext <<_ACEOF
15097 /* confdefs.h. */
15098 _ACEOF
15099 cat confdefs.h >>conftest.$ac_ext
15100 cat >>conftest.$ac_ext <<_ACEOF
15101 /* end confdefs.h. */
15102 #include <$ac_header>
15103 _ACEOF
15104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15105 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15106 ac_status=$?
15107 grep -v '^ *+' conftest.er1 >conftest.err
15108 rm -f conftest.er1
15109 cat conftest.err >&5
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); } >/dev/null; then
15112 if test -s conftest.err; then
15113 ac_cpp_err=$ac_c_preproc_warn_flag
15114 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15115 else
15116 ac_cpp_err=
15118 else
15119 ac_cpp_err=yes
15121 if test -z "$ac_cpp_err"; then
15122 ac_header_preproc=yes
15123 else
15124 echo "$as_me: failed program was:" >&5
15125 sed 's/^/| /' conftest.$ac_ext >&5
15127 ac_header_preproc=no
15129 rm -f conftest.err conftest.$ac_ext
15130 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15131 echo "${ECHO_T}$ac_header_preproc" >&6
15133 # So? What about this header?
15134 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15135 yes:no: )
15136 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15137 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15139 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15140 ac_header_preproc=yes
15142 no:yes:* )
15143 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15144 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15145 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15146 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15147 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15148 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15149 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15150 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15151 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15152 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15153 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15154 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15156 cat <<\_ASBOX
15157 ## ---------------------------------- ##
15158 ## Report this to the libjava lists. ##
15159 ## ---------------------------------- ##
15160 _ASBOX
15162 sed "s/^/$as_me: WARNING: /" >&2
15164 esac
15165 echo "$as_me:$LINENO: checking for $ac_header" >&5
15166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15168 echo $ECHO_N "(cached) $ECHO_C" >&6
15169 else
15170 eval "$as_ac_Header=\$ac_header_preproc"
15172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15173 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15176 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15177 cat >>confdefs.h <<_ACEOF
15178 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15179 _ACEOF
15182 cat >>confdefs.h <<\_ACEOF
15183 #define HAVE_INTTYPES_H 1
15184 _ACEOF
15187 cat >>confdefs.h <<\_ACEOF
15188 #define JV_HAVE_INTTYPES_H 1
15189 _ACEOF
15194 done
15196 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15197 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
15198 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15199 echo $ECHO_N "(cached) $ECHO_C" >&6
15200 else
15201 cat >conftest.$ac_ext <<_ACEOF
15202 /* confdefs.h. */
15203 _ACEOF
15204 cat confdefs.h >>conftest.$ac_ext
15205 cat >>conftest.$ac_ext <<_ACEOF
15206 /* end confdefs.h. */
15207 #include <sys/types.h>
15208 #include <sys/wait.h>
15209 #ifndef WEXITSTATUS
15210 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
15211 #endif
15212 #ifndef WIFEXITED
15213 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15214 #endif
15217 main ()
15219 int s;
15220 wait (&s);
15221 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15223 return 0;
15225 _ACEOF
15226 rm -f conftest.$ac_objext
15227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15228 (eval $ac_compile) 2>conftest.er1
15229 ac_status=$?
15230 grep -v '^ *+' conftest.er1 >conftest.err
15231 rm -f conftest.er1
15232 cat conftest.err >&5
15233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234 (exit $ac_status); } &&
15235 { ac_try='test -z "$ac_c_werror_flag"
15236 || test ! -s conftest.err'
15237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15238 (eval $ac_try) 2>&5
15239 ac_status=$?
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); }; } &&
15242 { ac_try='test -s conftest.$ac_objext'
15243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15244 (eval $ac_try) 2>&5
15245 ac_status=$?
15246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247 (exit $ac_status); }; }; then
15248 ac_cv_header_sys_wait_h=yes
15249 else
15250 echo "$as_me: failed program was:" >&5
15251 sed 's/^/| /' conftest.$ac_ext >&5
15253 ac_cv_header_sys_wait_h=no
15255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15257 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15258 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
15259 if test $ac_cv_header_sys_wait_h = yes; then
15261 cat >>confdefs.h <<\_ACEOF
15262 #define HAVE_SYS_WAIT_H 1
15263 _ACEOF
15268 echo "$as_me:$LINENO: checking for ssize_t" >&5
15269 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15270 if test "${ac_cv_type_ssize_t+set}" = set; then
15271 echo $ECHO_N "(cached) $ECHO_C" >&6
15272 else
15273 cat >conftest.$ac_ext <<_ACEOF
15274 /* confdefs.h. */
15275 _ACEOF
15276 cat confdefs.h >>conftest.$ac_ext
15277 cat >>conftest.$ac_ext <<_ACEOF
15278 /* end confdefs.h. */
15279 $ac_includes_default
15281 main ()
15283 if ((ssize_t *) 0)
15284 return 0;
15285 if (sizeof (ssize_t))
15286 return 0;
15288 return 0;
15290 _ACEOF
15291 rm -f conftest.$ac_objext
15292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15293 (eval $ac_compile) 2>conftest.er1
15294 ac_status=$?
15295 grep -v '^ *+' conftest.er1 >conftest.err
15296 rm -f conftest.er1
15297 cat conftest.err >&5
15298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); } &&
15300 { ac_try='test -z "$ac_c_werror_flag"
15301 || test ! -s conftest.err'
15302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15303 (eval $ac_try) 2>&5
15304 ac_status=$?
15305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306 (exit $ac_status); }; } &&
15307 { ac_try='test -s conftest.$ac_objext'
15308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15309 (eval $ac_try) 2>&5
15310 ac_status=$?
15311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312 (exit $ac_status); }; }; then
15313 ac_cv_type_ssize_t=yes
15314 else
15315 echo "$as_me: failed program was:" >&5
15316 sed 's/^/| /' conftest.$ac_ext >&5
15318 ac_cv_type_ssize_t=no
15320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15322 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
15323 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
15324 if test $ac_cv_type_ssize_t = yes; then
15326 else
15328 cat >>confdefs.h <<_ACEOF
15329 #define ssize_t int
15330 _ACEOF
15335 echo "$as_me:$LINENO: checking for in_addr_t" >&5
15336 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
15337 cat >conftest.$ac_ext <<_ACEOF
15338 /* confdefs.h. */
15339 _ACEOF
15340 cat confdefs.h >>conftest.$ac_ext
15341 cat >>conftest.$ac_ext <<_ACEOF
15342 /* end confdefs.h. */
15343 #include <sys/types.h>
15344 #if STDC_HEADERS
15345 #include <stdlib.h>
15346 #include <stddef.h>
15347 #endif
15348 #if HAVE_NETINET_IN_H
15349 #include <netinet/in.h>
15350 #endif
15352 main ()
15354 in_addr_t foo;
15356 return 0;
15358 _ACEOF
15359 rm -f conftest.$ac_objext
15360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15361 (eval $ac_compile) 2>conftest.er1
15362 ac_status=$?
15363 grep -v '^ *+' conftest.er1 >conftest.err
15364 rm -f conftest.er1
15365 cat conftest.err >&5
15366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367 (exit $ac_status); } &&
15368 { ac_try='test -z "$ac_c_werror_flag"
15369 || test ! -s conftest.err'
15370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15371 (eval $ac_try) 2>&5
15372 ac_status=$?
15373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374 (exit $ac_status); }; } &&
15375 { ac_try='test -s conftest.$ac_objext'
15376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15377 (eval $ac_try) 2>&5
15378 ac_status=$?
15379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); }; }; then
15382 cat >>confdefs.h <<\_ACEOF
15383 #define HAVE_IN_ADDR_T 1
15384 _ACEOF
15386 echo "$as_me:$LINENO: result: yes" >&5
15387 echo "${ECHO_T}yes" >&6
15388 else
15389 echo "$as_me: failed program was:" >&5
15390 sed 's/^/| /' conftest.$ac_ext >&5
15392 echo "$as_me:$LINENO: result: no" >&5
15393 echo "${ECHO_T}no" >&6
15395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15397 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
15398 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
15399 cat >conftest.$ac_ext <<_ACEOF
15400 /* confdefs.h. */
15401 _ACEOF
15402 cat confdefs.h >>conftest.$ac_ext
15403 cat >>conftest.$ac_ext <<_ACEOF
15404 /* end confdefs.h. */
15405 #include <netinet/in.h>
15407 main ()
15409 struct ip_mreq mreq;
15411 return 0;
15413 _ACEOF
15414 rm -f conftest.$ac_objext
15415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15416 (eval $ac_compile) 2>conftest.er1
15417 ac_status=$?
15418 grep -v '^ *+' conftest.er1 >conftest.err
15419 rm -f conftest.er1
15420 cat conftest.err >&5
15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); } &&
15423 { ac_try='test -z "$ac_c_werror_flag"
15424 || test ! -s conftest.err'
15425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15426 (eval $ac_try) 2>&5
15427 ac_status=$?
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); }; } &&
15430 { ac_try='test -s conftest.$ac_objext'
15431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15432 (eval $ac_try) 2>&5
15433 ac_status=$?
15434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435 (exit $ac_status); }; }; then
15437 cat >>confdefs.h <<\_ACEOF
15438 #define HAVE_STRUCT_IP_MREQ 1
15439 _ACEOF
15441 echo "$as_me:$LINENO: result: yes" >&5
15442 echo "${ECHO_T}yes" >&6
15443 else
15444 echo "$as_me: failed program was:" >&5
15445 sed 's/^/| /' conftest.$ac_ext >&5
15447 echo "$as_me:$LINENO: result: no" >&5
15448 echo "${ECHO_T}no" >&6
15450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15452 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
15453 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
15454 cat >conftest.$ac_ext <<_ACEOF
15455 /* confdefs.h. */
15456 _ACEOF
15457 cat confdefs.h >>conftest.$ac_ext
15458 cat >>conftest.$ac_ext <<_ACEOF
15459 /* end confdefs.h. */
15460 #include <netinet/in.h>
15462 main ()
15464 struct ipv6_mreq mreq6;
15466 return 0;
15468 _ACEOF
15469 rm -f conftest.$ac_objext
15470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15471 (eval $ac_compile) 2>conftest.er1
15472 ac_status=$?
15473 grep -v '^ *+' conftest.er1 >conftest.err
15474 rm -f conftest.er1
15475 cat conftest.err >&5
15476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477 (exit $ac_status); } &&
15478 { ac_try='test -z "$ac_c_werror_flag"
15479 || test ! -s conftest.err'
15480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15481 (eval $ac_try) 2>&5
15482 ac_status=$?
15483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484 (exit $ac_status); }; } &&
15485 { ac_try='test -s conftest.$ac_objext'
15486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15487 (eval $ac_try) 2>&5
15488 ac_status=$?
15489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490 (exit $ac_status); }; }; then
15492 cat >>confdefs.h <<\_ACEOF
15493 #define HAVE_STRUCT_IPV6_MREQ 1
15494 _ACEOF
15496 echo "$as_me:$LINENO: result: yes" >&5
15497 echo "${ECHO_T}yes" >&6
15498 else
15499 echo "$as_me: failed program was:" >&5
15500 sed 's/^/| /' conftest.$ac_ext >&5
15502 echo "$as_me:$LINENO: result: no" >&5
15503 echo "${ECHO_T}no" >&6
15505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15507 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
15508 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
15509 cat >conftest.$ac_ext <<_ACEOF
15510 /* confdefs.h. */
15511 _ACEOF
15512 cat confdefs.h >>conftest.$ac_ext
15513 cat >>conftest.$ac_ext <<_ACEOF
15514 /* end confdefs.h. */
15515 #include <netinet/in.h>
15517 main ()
15519 struct sockaddr_in6 addr6;
15521 return 0;
15523 _ACEOF
15524 rm -f conftest.$ac_objext
15525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15526 (eval $ac_compile) 2>conftest.er1
15527 ac_status=$?
15528 grep -v '^ *+' conftest.er1 >conftest.err
15529 rm -f conftest.er1
15530 cat conftest.err >&5
15531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532 (exit $ac_status); } &&
15533 { ac_try='test -z "$ac_c_werror_flag"
15534 || test ! -s conftest.err'
15535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15536 (eval $ac_try) 2>&5
15537 ac_status=$?
15538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539 (exit $ac_status); }; } &&
15540 { ac_try='test -s conftest.$ac_objext'
15541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15542 (eval $ac_try) 2>&5
15543 ac_status=$?
15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); }; }; then
15547 cat >>confdefs.h <<\_ACEOF
15548 #define HAVE_INET6 1
15549 _ACEOF
15551 echo "$as_me:$LINENO: result: yes" >&5
15552 echo "${ECHO_T}yes" >&6
15553 else
15554 echo "$as_me: failed program was:" >&5
15555 sed 's/^/| /' conftest.$ac_ext >&5
15557 echo "$as_me:$LINENO: result: no" >&5
15558 echo "${ECHO_T}no" >&6
15560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15562 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
15563 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
15564 cat >conftest.$ac_ext <<_ACEOF
15565 /* confdefs.h. */
15566 _ACEOF
15567 cat confdefs.h >>conftest.$ac_ext
15568 cat >>conftest.$ac_ext <<_ACEOF
15569 /* end confdefs.h. */
15570 #define _POSIX_PII_SOCKET
15571 #include <sys/types.h>
15572 #include <sys/socket.h>
15574 main ()
15576 socklen_t x = 5;
15578 return 0;
15580 _ACEOF
15581 rm -f conftest.$ac_objext
15582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15583 (eval $ac_compile) 2>conftest.er1
15584 ac_status=$?
15585 grep -v '^ *+' conftest.er1 >conftest.err
15586 rm -f conftest.er1
15587 cat conftest.err >&5
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); } &&
15590 { ac_try='test -z "$ac_c_werror_flag"
15591 || test ! -s conftest.err'
15592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15593 (eval $ac_try) 2>&5
15594 ac_status=$?
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); }; } &&
15597 { ac_try='test -s conftest.$ac_objext'
15598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15599 (eval $ac_try) 2>&5
15600 ac_status=$?
15601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602 (exit $ac_status); }; }; then
15604 cat >>confdefs.h <<\_ACEOF
15605 #define HAVE_SOCKLEN_T 1
15606 _ACEOF
15608 echo "$as_me:$LINENO: result: yes" >&5
15609 echo "${ECHO_T}yes" >&6
15610 else
15611 echo "$as_me: failed program was:" >&5
15612 sed 's/^/| /' conftest.$ac_ext >&5
15614 echo "$as_me:$LINENO: result: no" >&5
15615 echo "${ECHO_T}no" >&6
15617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15619 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
15620 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
15621 cat >conftest.$ac_ext <<_ACEOF
15622 /* confdefs.h. */
15623 _ACEOF
15624 cat confdefs.h >>conftest.$ac_ext
15625 cat >>conftest.$ac_ext <<_ACEOF
15626 /* end confdefs.h. */
15627 #include <time.h>
15629 main ()
15631 struct tm tim; tim.tm_gmtoff = 0;
15633 return 0;
15635 _ACEOF
15636 rm -f conftest.$ac_objext
15637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15638 (eval $ac_compile) 2>conftest.er1
15639 ac_status=$?
15640 grep -v '^ *+' conftest.er1 >conftest.err
15641 rm -f conftest.er1
15642 cat conftest.err >&5
15643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15644 (exit $ac_status); } &&
15645 { ac_try='test -z "$ac_c_werror_flag"
15646 || test ! -s conftest.err'
15647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15648 (eval $ac_try) 2>&5
15649 ac_status=$?
15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); }; } &&
15652 { ac_try='test -s conftest.$ac_objext'
15653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15654 (eval $ac_try) 2>&5
15655 ac_status=$?
15656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657 (exit $ac_status); }; }; then
15659 cat >>confdefs.h <<\_ACEOF
15660 #define STRUCT_TM_HAS_GMTOFF 1
15661 _ACEOF
15663 echo "$as_me:$LINENO: result: yes" >&5
15664 echo "${ECHO_T}yes" >&6
15665 else
15666 echo "$as_me: failed program was:" >&5
15667 sed 's/^/| /' conftest.$ac_ext >&5
15669 echo "$as_me:$LINENO: result: no" >&5
15670 echo "${ECHO_T}no" >&6
15671 echo "$as_me:$LINENO: checking for global timezone variable" >&5
15672 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
15673 cat >conftest.$ac_ext <<_ACEOF
15674 /* confdefs.h. */
15675 _ACEOF
15676 cat confdefs.h >>conftest.$ac_ext
15677 cat >>conftest.$ac_ext <<_ACEOF
15678 /* end confdefs.h. */
15679 #include <time.h>
15681 main ()
15683 void i(){long z2 = 2*timezone;}
15685 return 0;
15687 _ACEOF
15688 rm -f conftest.$ac_objext
15689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15690 (eval $ac_compile) 2>conftest.er1
15691 ac_status=$?
15692 grep -v '^ *+' conftest.er1 >conftest.err
15693 rm -f conftest.er1
15694 cat conftest.err >&5
15695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696 (exit $ac_status); } &&
15697 { ac_try='test -z "$ac_c_werror_flag"
15698 || test ! -s conftest.err'
15699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15700 (eval $ac_try) 2>&5
15701 ac_status=$?
15702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703 (exit $ac_status); }; } &&
15704 { ac_try='test -s conftest.$ac_objext'
15705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15706 (eval $ac_try) 2>&5
15707 ac_status=$?
15708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709 (exit $ac_status); }; }; then
15711 cat >>confdefs.h <<\_ACEOF
15712 #define HAVE_TIMEZONE 1
15713 _ACEOF
15715 echo "$as_me:$LINENO: result: yes" >&5
15716 echo "${ECHO_T}yes" >&6
15717 else
15718 echo "$as_me: failed program was:" >&5
15719 sed 's/^/| /' conftest.$ac_ext >&5
15721 echo "$as_me:$LINENO: result: no" >&5
15722 echo "${ECHO_T}no" >&6
15723 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
15724 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
15725 cat >conftest.$ac_ext <<_ACEOF
15726 /* confdefs.h. */
15727 _ACEOF
15728 cat confdefs.h >>conftest.$ac_ext
15729 cat >>conftest.$ac_ext <<_ACEOF
15730 /* end confdefs.h. */
15731 #include <time.h>
15733 main ()
15735 long z2 = _timezone;
15737 return 0;
15739 _ACEOF
15740 rm -f conftest.$ac_objext
15741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15742 (eval $ac_compile) 2>conftest.er1
15743 ac_status=$?
15744 grep -v '^ *+' conftest.er1 >conftest.err
15745 rm -f conftest.er1
15746 cat conftest.err >&5
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); } &&
15749 { ac_try='test -z "$ac_c_werror_flag"
15750 || test ! -s conftest.err'
15751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15752 (eval $ac_try) 2>&5
15753 ac_status=$?
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); }; } &&
15756 { ac_try='test -s conftest.$ac_objext'
15757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15758 (eval $ac_try) 2>&5
15759 ac_status=$?
15760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761 (exit $ac_status); }; }; then
15763 cat >>confdefs.h <<\_ACEOF
15764 #define HAVE_UNDERSCORE_TIMEZONE 1
15765 _ACEOF
15767 echo "$as_me:$LINENO: result: yes" >&5
15768 echo "${ECHO_T}yes" >&6
15769 else
15770 echo "$as_me: failed program was:" >&5
15771 sed 's/^/| /' conftest.$ac_ext >&5
15773 echo "$as_me:$LINENO: result: no" >&5
15774 echo "${ECHO_T}no" >&6
15776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15782 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15783 # for constant arguments. Useless!
15784 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15785 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15786 if test "${ac_cv_working_alloca_h+set}" = set; then
15787 echo $ECHO_N "(cached) $ECHO_C" >&6
15788 else
15789 if test x$gcc_no_link = xyes; then
15790 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15791 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15792 { (exit 1); exit 1; }; }
15794 cat >conftest.$ac_ext <<_ACEOF
15795 /* confdefs.h. */
15796 _ACEOF
15797 cat confdefs.h >>conftest.$ac_ext
15798 cat >>conftest.$ac_ext <<_ACEOF
15799 /* end confdefs.h. */
15800 #include <alloca.h>
15802 main ()
15804 char *p = (char *) alloca (2 * sizeof (int));
15806 return 0;
15808 _ACEOF
15809 rm -f conftest.$ac_objext conftest$ac_exeext
15810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15811 (eval $ac_link) 2>conftest.er1
15812 ac_status=$?
15813 grep -v '^ *+' conftest.er1 >conftest.err
15814 rm -f conftest.er1
15815 cat conftest.err >&5
15816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817 (exit $ac_status); } &&
15818 { ac_try='test -z "$ac_c_werror_flag"
15819 || test ! -s conftest.err'
15820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15821 (eval $ac_try) 2>&5
15822 ac_status=$?
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); }; } &&
15825 { ac_try='test -s conftest$ac_exeext'
15826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15827 (eval $ac_try) 2>&5
15828 ac_status=$?
15829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830 (exit $ac_status); }; }; then
15831 ac_cv_working_alloca_h=yes
15832 else
15833 echo "$as_me: failed program was:" >&5
15834 sed 's/^/| /' conftest.$ac_ext >&5
15836 ac_cv_working_alloca_h=no
15838 rm -f conftest.err conftest.$ac_objext \
15839 conftest$ac_exeext conftest.$ac_ext
15841 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15842 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15843 if test $ac_cv_working_alloca_h = yes; then
15845 cat >>confdefs.h <<\_ACEOF
15846 #define HAVE_ALLOCA_H 1
15847 _ACEOF
15851 echo "$as_me:$LINENO: checking for alloca" >&5
15852 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15853 if test "${ac_cv_func_alloca_works+set}" = set; then
15854 echo $ECHO_N "(cached) $ECHO_C" >&6
15855 else
15856 if test x$gcc_no_link = xyes; then
15857 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15858 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15859 { (exit 1); exit 1; }; }
15861 cat >conftest.$ac_ext <<_ACEOF
15862 /* confdefs.h. */
15863 _ACEOF
15864 cat confdefs.h >>conftest.$ac_ext
15865 cat >>conftest.$ac_ext <<_ACEOF
15866 /* end confdefs.h. */
15867 #ifdef __GNUC__
15868 # define alloca __builtin_alloca
15869 #else
15870 # ifdef _MSC_VER
15871 # include <malloc.h>
15872 # define alloca _alloca
15873 # else
15874 # if HAVE_ALLOCA_H
15875 # include <alloca.h>
15876 # else
15877 # ifdef _AIX
15878 #pragma alloca
15879 # else
15880 # ifndef alloca /* predefined by HP cc +Olibcalls */
15881 char *alloca ();
15882 # endif
15883 # endif
15884 # endif
15885 # endif
15886 #endif
15889 main ()
15891 char *p = (char *) alloca (1);
15893 return 0;
15895 _ACEOF
15896 rm -f conftest.$ac_objext conftest$ac_exeext
15897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15898 (eval $ac_link) 2>conftest.er1
15899 ac_status=$?
15900 grep -v '^ *+' conftest.er1 >conftest.err
15901 rm -f conftest.er1
15902 cat conftest.err >&5
15903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904 (exit $ac_status); } &&
15905 { ac_try='test -z "$ac_c_werror_flag"
15906 || test ! -s conftest.err'
15907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15908 (eval $ac_try) 2>&5
15909 ac_status=$?
15910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911 (exit $ac_status); }; } &&
15912 { ac_try='test -s conftest$ac_exeext'
15913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15914 (eval $ac_try) 2>&5
15915 ac_status=$?
15916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15917 (exit $ac_status); }; }; then
15918 ac_cv_func_alloca_works=yes
15919 else
15920 echo "$as_me: failed program was:" >&5
15921 sed 's/^/| /' conftest.$ac_ext >&5
15923 ac_cv_func_alloca_works=no
15925 rm -f conftest.err conftest.$ac_objext \
15926 conftest$ac_exeext conftest.$ac_ext
15928 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15929 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15931 if test $ac_cv_func_alloca_works = yes; then
15933 cat >>confdefs.h <<\_ACEOF
15934 #define HAVE_ALLOCA 1
15935 _ACEOF
15937 else
15938 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15939 # that cause trouble. Some versions do not even contain alloca or
15940 # contain a buggy version. If you still want to use their alloca,
15941 # use ar to extract alloca.o from them instead of compiling alloca.c.
15943 ALLOCA=alloca.$ac_objext
15945 cat >>confdefs.h <<\_ACEOF
15946 #define C_ALLOCA 1
15947 _ACEOF
15950 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15951 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15952 if test "${ac_cv_os_cray+set}" = set; then
15953 echo $ECHO_N "(cached) $ECHO_C" >&6
15954 else
15955 cat >conftest.$ac_ext <<_ACEOF
15956 /* confdefs.h. */
15957 _ACEOF
15958 cat confdefs.h >>conftest.$ac_ext
15959 cat >>conftest.$ac_ext <<_ACEOF
15960 /* end confdefs.h. */
15961 #if defined(CRAY) && ! defined(CRAY2)
15962 webecray
15963 #else
15964 wenotbecray
15965 #endif
15967 _ACEOF
15968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15969 $EGREP "webecray" >/dev/null 2>&1; then
15970 ac_cv_os_cray=yes
15971 else
15972 ac_cv_os_cray=no
15974 rm -f conftest*
15977 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15978 echo "${ECHO_T}$ac_cv_os_cray" >&6
15979 if test $ac_cv_os_cray = yes; then
15980 for ac_func in _getb67 GETB67 getb67; do
15981 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15982 echo "$as_me:$LINENO: checking for $ac_func" >&5
15983 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15984 if eval "test \"\${$as_ac_var+set}\" = set"; then
15985 echo $ECHO_N "(cached) $ECHO_C" >&6
15986 else
15987 if test x$gcc_no_link = xyes; then
15988 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15989 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15990 { (exit 1); exit 1; }; }
15992 cat >conftest.$ac_ext <<_ACEOF
15993 /* confdefs.h. */
15994 _ACEOF
15995 cat confdefs.h >>conftest.$ac_ext
15996 cat >>conftest.$ac_ext <<_ACEOF
15997 /* end confdefs.h. */
15998 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16000 #define $ac_func innocuous_$ac_func
16002 /* System header to define __stub macros and hopefully few prototypes,
16003 which can conflict with char $ac_func (); below.
16004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16005 <limits.h> exists even on freestanding compilers. */
16007 #ifdef __STDC__
16008 # include <limits.h>
16009 #else
16010 # include <assert.h>
16011 #endif
16013 #undef $ac_func
16015 /* Override any gcc2 internal prototype to avoid an error. */
16016 #ifdef __cplusplus
16017 extern "C"
16019 #endif
16020 /* We use char because int might match the return type of a gcc2
16021 builtin and then its argument prototype would still apply. */
16022 char $ac_func ();
16023 /* The GNU C library defines this for functions which it implements
16024 to always fail with ENOSYS. Some functions are actually named
16025 something starting with __ and the normal name is an alias. */
16026 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16027 choke me
16028 #else
16029 char (*f) () = $ac_func;
16030 #endif
16031 #ifdef __cplusplus
16033 #endif
16036 main ()
16038 return f != $ac_func;
16040 return 0;
16042 _ACEOF
16043 rm -f conftest.$ac_objext conftest$ac_exeext
16044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16045 (eval $ac_link) 2>conftest.er1
16046 ac_status=$?
16047 grep -v '^ *+' conftest.er1 >conftest.err
16048 rm -f conftest.er1
16049 cat conftest.err >&5
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); } &&
16052 { ac_try='test -z "$ac_c_werror_flag"
16053 || test ! -s conftest.err'
16054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16055 (eval $ac_try) 2>&5
16056 ac_status=$?
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); }; } &&
16059 { ac_try='test -s conftest$ac_exeext'
16060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16061 (eval $ac_try) 2>&5
16062 ac_status=$?
16063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064 (exit $ac_status); }; }; then
16065 eval "$as_ac_var=yes"
16066 else
16067 echo "$as_me: failed program was:" >&5
16068 sed 's/^/| /' conftest.$ac_ext >&5
16070 eval "$as_ac_var=no"
16072 rm -f conftest.err conftest.$ac_objext \
16073 conftest$ac_exeext conftest.$ac_ext
16075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16076 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16077 if test `eval echo '${'$as_ac_var'}'` = yes; then
16079 cat >>confdefs.h <<_ACEOF
16080 #define CRAY_STACKSEG_END $ac_func
16081 _ACEOF
16083 break
16086 done
16089 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16090 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16091 if test "${ac_cv_c_stack_direction+set}" = set; then
16092 echo $ECHO_N "(cached) $ECHO_C" >&6
16093 else
16094 if test "$cross_compiling" = yes; then
16095 ac_cv_c_stack_direction=0
16096 else
16097 cat >conftest.$ac_ext <<_ACEOF
16098 /* confdefs.h. */
16099 _ACEOF
16100 cat confdefs.h >>conftest.$ac_ext
16101 cat >>conftest.$ac_ext <<_ACEOF
16102 /* end confdefs.h. */
16104 find_stack_direction ()
16106 static char *addr = 0;
16107 auto char dummy;
16108 if (addr == 0)
16110 addr = &dummy;
16111 return find_stack_direction ();
16113 else
16114 return (&dummy > addr) ? 1 : -1;
16118 main ()
16120 exit (find_stack_direction () < 0);
16122 _ACEOF
16123 rm -f conftest$ac_exeext
16124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16125 (eval $ac_link) 2>&5
16126 ac_status=$?
16127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16128 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16130 (eval $ac_try) 2>&5
16131 ac_status=$?
16132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133 (exit $ac_status); }; }; then
16134 ac_cv_c_stack_direction=1
16135 else
16136 echo "$as_me: program exited with status $ac_status" >&5
16137 echo "$as_me: failed program was:" >&5
16138 sed 's/^/| /' conftest.$ac_ext >&5
16140 ( exit $ac_status )
16141 ac_cv_c_stack_direction=-1
16143 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16146 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16147 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16149 cat >>confdefs.h <<_ACEOF
16150 #define STACK_DIRECTION $ac_cv_c_stack_direction
16151 _ACEOF
16156 if test x$gcc_no_link = xyes; then
16157 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
16158 ac_cv_func_mmap_fixed_mapped=no
16161 if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
16164 for ac_header in stdlib.h unistd.h
16166 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16168 echo "$as_me:$LINENO: checking for $ac_header" >&5
16169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16171 echo $ECHO_N "(cached) $ECHO_C" >&6
16173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16174 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16175 else
16176 # Is the header compilable?
16177 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16178 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16179 cat >conftest.$ac_ext <<_ACEOF
16180 /* confdefs.h. */
16181 _ACEOF
16182 cat confdefs.h >>conftest.$ac_ext
16183 cat >>conftest.$ac_ext <<_ACEOF
16184 /* end confdefs.h. */
16185 $ac_includes_default
16186 #include <$ac_header>
16187 _ACEOF
16188 rm -f conftest.$ac_objext
16189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16190 (eval $ac_compile) 2>conftest.er1
16191 ac_status=$?
16192 grep -v '^ *+' conftest.er1 >conftest.err
16193 rm -f conftest.er1
16194 cat conftest.err >&5
16195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196 (exit $ac_status); } &&
16197 { ac_try='test -z "$ac_c_werror_flag"
16198 || test ! -s conftest.err'
16199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16200 (eval $ac_try) 2>&5
16201 ac_status=$?
16202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203 (exit $ac_status); }; } &&
16204 { ac_try='test -s conftest.$ac_objext'
16205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16206 (eval $ac_try) 2>&5
16207 ac_status=$?
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); }; }; then
16210 ac_header_compiler=yes
16211 else
16212 echo "$as_me: failed program was:" >&5
16213 sed 's/^/| /' conftest.$ac_ext >&5
16215 ac_header_compiler=no
16217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16218 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16219 echo "${ECHO_T}$ac_header_compiler" >&6
16221 # Is the header present?
16222 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16223 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16224 cat >conftest.$ac_ext <<_ACEOF
16225 /* confdefs.h. */
16226 _ACEOF
16227 cat confdefs.h >>conftest.$ac_ext
16228 cat >>conftest.$ac_ext <<_ACEOF
16229 /* end confdefs.h. */
16230 #include <$ac_header>
16231 _ACEOF
16232 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16233 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16234 ac_status=$?
16235 grep -v '^ *+' conftest.er1 >conftest.err
16236 rm -f conftest.er1
16237 cat conftest.err >&5
16238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239 (exit $ac_status); } >/dev/null; then
16240 if test -s conftest.err; then
16241 ac_cpp_err=$ac_c_preproc_warn_flag
16242 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16243 else
16244 ac_cpp_err=
16246 else
16247 ac_cpp_err=yes
16249 if test -z "$ac_cpp_err"; then
16250 ac_header_preproc=yes
16251 else
16252 echo "$as_me: failed program was:" >&5
16253 sed 's/^/| /' conftest.$ac_ext >&5
16255 ac_header_preproc=no
16257 rm -f conftest.err conftest.$ac_ext
16258 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16259 echo "${ECHO_T}$ac_header_preproc" >&6
16261 # So? What about this header?
16262 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16263 yes:no: )
16264 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16265 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16267 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16268 ac_header_preproc=yes
16270 no:yes:* )
16271 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16272 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16273 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16274 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16275 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16276 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16277 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16278 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16280 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16281 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16282 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16284 cat <<\_ASBOX
16285 ## ---------------------------------- ##
16286 ## Report this to the libjava lists. ##
16287 ## ---------------------------------- ##
16288 _ASBOX
16290 sed "s/^/$as_me: WARNING: /" >&2
16292 esac
16293 echo "$as_me:$LINENO: checking for $ac_header" >&5
16294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16296 echo $ECHO_N "(cached) $ECHO_C" >&6
16297 else
16298 eval "$as_ac_Header=\$ac_header_preproc"
16300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16301 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16304 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16305 cat >>confdefs.h <<_ACEOF
16306 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16307 _ACEOF
16311 done
16314 for ac_func in getpagesize
16316 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16317 echo "$as_me:$LINENO: checking for $ac_func" >&5
16318 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16319 if eval "test \"\${$as_ac_var+set}\" = set"; then
16320 echo $ECHO_N "(cached) $ECHO_C" >&6
16321 else
16322 if test x$gcc_no_link = xyes; then
16323 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16324 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16325 { (exit 1); exit 1; }; }
16327 cat >conftest.$ac_ext <<_ACEOF
16328 /* confdefs.h. */
16329 _ACEOF
16330 cat confdefs.h >>conftest.$ac_ext
16331 cat >>conftest.$ac_ext <<_ACEOF
16332 /* end confdefs.h. */
16333 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16335 #define $ac_func innocuous_$ac_func
16337 /* System header to define __stub macros and hopefully few prototypes,
16338 which can conflict with char $ac_func (); below.
16339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16340 <limits.h> exists even on freestanding compilers. */
16342 #ifdef __STDC__
16343 # include <limits.h>
16344 #else
16345 # include <assert.h>
16346 #endif
16348 #undef $ac_func
16350 /* Override any gcc2 internal prototype to avoid an error. */
16351 #ifdef __cplusplus
16352 extern "C"
16354 #endif
16355 /* We use char because int might match the return type of a gcc2
16356 builtin and then its argument prototype would still apply. */
16357 char $ac_func ();
16358 /* The GNU C library defines this for functions which it implements
16359 to always fail with ENOSYS. Some functions are actually named
16360 something starting with __ and the normal name is an alias. */
16361 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16362 choke me
16363 #else
16364 char (*f) () = $ac_func;
16365 #endif
16366 #ifdef __cplusplus
16368 #endif
16371 main ()
16373 return f != $ac_func;
16375 return 0;
16377 _ACEOF
16378 rm -f conftest.$ac_objext conftest$ac_exeext
16379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16380 (eval $ac_link) 2>conftest.er1
16381 ac_status=$?
16382 grep -v '^ *+' conftest.er1 >conftest.err
16383 rm -f conftest.er1
16384 cat conftest.err >&5
16385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386 (exit $ac_status); } &&
16387 { ac_try='test -z "$ac_c_werror_flag"
16388 || test ! -s conftest.err'
16389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16390 (eval $ac_try) 2>&5
16391 ac_status=$?
16392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16393 (exit $ac_status); }; } &&
16394 { ac_try='test -s conftest$ac_exeext'
16395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16396 (eval $ac_try) 2>&5
16397 ac_status=$?
16398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399 (exit $ac_status); }; }; then
16400 eval "$as_ac_var=yes"
16401 else
16402 echo "$as_me: failed program was:" >&5
16403 sed 's/^/| /' conftest.$ac_ext >&5
16405 eval "$as_ac_var=no"
16407 rm -f conftest.err conftest.$ac_objext \
16408 conftest$ac_exeext conftest.$ac_ext
16410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16411 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16412 if test `eval echo '${'$as_ac_var'}'` = yes; then
16413 cat >>confdefs.h <<_ACEOF
16414 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16415 _ACEOF
16418 done
16420 echo "$as_me:$LINENO: checking for working mmap" >&5
16421 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
16422 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
16423 echo $ECHO_N "(cached) $ECHO_C" >&6
16424 else
16425 if test "$cross_compiling" = yes; then
16426 ac_cv_func_mmap_fixed_mapped=no
16427 else
16428 cat >conftest.$ac_ext <<_ACEOF
16429 /* confdefs.h. */
16430 _ACEOF
16431 cat confdefs.h >>conftest.$ac_ext
16432 cat >>conftest.$ac_ext <<_ACEOF
16433 /* end confdefs.h. */
16434 $ac_includes_default
16435 /* malloc might have been renamed as rpl_malloc. */
16436 #undef malloc
16438 /* Thanks to Mike Haertel and Jim Avera for this test.
16439 Here is a matrix of mmap possibilities:
16440 mmap private not fixed
16441 mmap private fixed at somewhere currently unmapped
16442 mmap private fixed at somewhere already mapped
16443 mmap shared not fixed
16444 mmap shared fixed at somewhere currently unmapped
16445 mmap shared fixed at somewhere already mapped
16446 For private mappings, we should verify that changes cannot be read()
16447 back from the file, nor mmap's back from the file at a different
16448 address. (There have been systems where private was not correctly
16449 implemented like the infamous i386 svr4.0, and systems where the
16450 VM page cache was not coherent with the file system buffer cache
16451 like early versions of FreeBSD and possibly contemporary NetBSD.)
16452 For shared mappings, we should conversely verify that changes get
16453 propagated back to all the places they're supposed to be.
16455 Grep wants private fixed already mapped.
16456 The main things grep needs to know about mmap are:
16457 * does it exist and is it safe to write into the mmap'd area
16458 * how to use it (BSD variants) */
16460 #include <fcntl.h>
16461 #include <sys/mman.h>
16463 #if !STDC_HEADERS && !HAVE_STDLIB_H
16464 char *malloc ();
16465 #endif
16467 /* This mess was copied from the GNU getpagesize.h. */
16468 #if !HAVE_GETPAGESIZE
16469 /* Assume that all systems that can run configure have sys/param.h. */
16470 # if !HAVE_SYS_PARAM_H
16471 # define HAVE_SYS_PARAM_H 1
16472 # endif
16474 # ifdef _SC_PAGESIZE
16475 # define getpagesize() sysconf(_SC_PAGESIZE)
16476 # else /* no _SC_PAGESIZE */
16477 # if HAVE_SYS_PARAM_H
16478 # include <sys/param.h>
16479 # ifdef EXEC_PAGESIZE
16480 # define getpagesize() EXEC_PAGESIZE
16481 # else /* no EXEC_PAGESIZE */
16482 # ifdef NBPG
16483 # define getpagesize() NBPG * CLSIZE
16484 # ifndef CLSIZE
16485 # define CLSIZE 1
16486 # endif /* no CLSIZE */
16487 # else /* no NBPG */
16488 # ifdef NBPC
16489 # define getpagesize() NBPC
16490 # else /* no NBPC */
16491 # ifdef PAGESIZE
16492 # define getpagesize() PAGESIZE
16493 # endif /* PAGESIZE */
16494 # endif /* no NBPC */
16495 # endif /* no NBPG */
16496 # endif /* no EXEC_PAGESIZE */
16497 # else /* no HAVE_SYS_PARAM_H */
16498 # define getpagesize() 8192 /* punt totally */
16499 # endif /* no HAVE_SYS_PARAM_H */
16500 # endif /* no _SC_PAGESIZE */
16502 #endif /* no HAVE_GETPAGESIZE */
16505 main ()
16507 char *data, *data2, *data3;
16508 int i, pagesize;
16509 int fd;
16511 pagesize = getpagesize ();
16513 /* First, make a file with some known garbage in it. */
16514 data = (char *) malloc (pagesize);
16515 if (!data)
16516 exit (1);
16517 for (i = 0; i < pagesize; ++i)
16518 *(data + i) = rand ();
16519 umask (0);
16520 fd = creat ("conftest.mmap", 0600);
16521 if (fd < 0)
16522 exit (1);
16523 if (write (fd, data, pagesize) != pagesize)
16524 exit (1);
16525 close (fd);
16527 /* Next, try to mmap the file at a fixed address which already has
16528 something else allocated at it. If we can, also make sure that
16529 we see the same garbage. */
16530 fd = open ("conftest.mmap", O_RDWR);
16531 if (fd < 0)
16532 exit (1);
16533 data2 = (char *) malloc (2 * pagesize);
16534 if (!data2)
16535 exit (1);
16536 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
16537 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16538 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16539 exit (1);
16540 for (i = 0; i < pagesize; ++i)
16541 if (*(data + i) != *(data2 + i))
16542 exit (1);
16544 /* Finally, make sure that changes to the mapped area do not
16545 percolate back to the file as seen by read(). (This is a bug on
16546 some variants of i386 svr4.0.) */
16547 for (i = 0; i < pagesize; ++i)
16548 *(data2 + i) = *(data2 + i) + 1;
16549 data3 = (char *) malloc (pagesize);
16550 if (!data3)
16551 exit (1);
16552 if (read (fd, data3, pagesize) != pagesize)
16553 exit (1);
16554 for (i = 0; i < pagesize; ++i)
16555 if (*(data + i) != *(data3 + i))
16556 exit (1);
16557 close (fd);
16558 exit (0);
16560 _ACEOF
16561 rm -f conftest$ac_exeext
16562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16563 (eval $ac_link) 2>&5
16564 ac_status=$?
16565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16568 (eval $ac_try) 2>&5
16569 ac_status=$?
16570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); }; }; then
16572 ac_cv_func_mmap_fixed_mapped=yes
16573 else
16574 echo "$as_me: program exited with status $ac_status" >&5
16575 echo "$as_me: failed program was:" >&5
16576 sed 's/^/| /' conftest.$ac_ext >&5
16578 ( exit $ac_status )
16579 ac_cv_func_mmap_fixed_mapped=no
16581 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16584 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16585 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
16586 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16588 cat >>confdefs.h <<\_ACEOF
16589 #define HAVE_MMAP 1
16590 _ACEOF
16593 rm -f conftest.mmap
16597 for ac_prog in perl
16599 # Extract the first word of "$ac_prog", so it can be a program name with args.
16600 set dummy $ac_prog; ac_word=$2
16601 echo "$as_me:$LINENO: checking for $ac_word" >&5
16602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16603 if test "${ac_cv_prog_PERL+set}" = set; then
16604 echo $ECHO_N "(cached) $ECHO_C" >&6
16605 else
16606 if test -n "$PERL"; then
16607 ac_cv_prog_PERL="$PERL" # Let the user override the test.
16608 else
16609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16610 for as_dir in $PATH
16612 IFS=$as_save_IFS
16613 test -z "$as_dir" && as_dir=.
16614 for ac_exec_ext in '' $ac_executable_extensions; do
16615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16616 ac_cv_prog_PERL="$ac_prog"
16617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16618 break 2
16620 done
16621 done
16625 PERL=$ac_cv_prog_PERL
16626 if test -n "$PERL"; then
16627 echo "$as_me:$LINENO: result: $PERL" >&5
16628 echo "${ECHO_T}$PERL" >&6
16629 else
16630 echo "$as_me:$LINENO: result: no" >&5
16631 echo "${ECHO_T}no" >&6
16634 test -n "$PERL" && break
16635 done
16636 test -n "$PERL" || PERL="false"
16639 SYSDEP_SOURCES=
16640 SIGNAL_HANDLER_AUX=
16642 case "${host}" in
16643 i?86-*-linux*)
16644 SIGNAL_HANDLER=include/i386-signal.h
16646 sparc*-sun-solaris*)
16647 SIGNAL_HANDLER=include/sparc-signal.h
16649 # ia64-*)
16650 # SYSDEP_SOURCES=sysdep/ia64.c
16651 # test -d sysdep || mkdir sysdep
16652 # ;;
16653 hppa*-*-linux*)
16654 SIGNAL_HANDLER=include/pa-signal.h
16656 ia64-*-linux*)
16657 SIGNAL_HANDLER=include/dwarf2-signal.h
16659 powerpc*-*-linux*)
16660 SIGNAL_HANDLER=include/powerpc-signal.h
16662 alpha*-*-linux*)
16663 SIGNAL_HANDLER=include/dwarf2-signal.h
16665 s390*-*-linux*)
16666 SIGNAL_HANDLER=include/s390-signal.h
16668 x86_64*-*-linux*)
16669 SIGNAL_HANDLER=include/x86_64-signal.h
16670 SIGNAL_HANDLER_AUX=include/i386-signal.h
16672 sparc*-*-linux*)
16673 SIGNAL_HANDLER=include/dwarf2-signal.h
16675 sh*-*-linux*)
16676 SIGNAL_HANDLER=include/sh-signal.h
16678 *mingw*)
16679 SIGNAL_HANDLER=include/win32-signal.h
16681 mips*-*-linux*)
16682 SIGNAL_HANDLER=include/mips-signal.h
16684 *-*-darwin*)
16685 SIGNAL_HANDLER=include/darwin-signal.h
16688 SIGNAL_HANDLER=include/default-signal.h
16690 esac
16692 # If we're using sjlj exceptions, forget what we just learned.
16693 if test "$enable_sjlj_exceptions" = yes; then
16694 SIGNAL_HANDLER=include/default-signal.h
16695 SIGNAL_HANDLER_AUX=
16700 if test -z "$SIGNAL_HANDLER_AUX"; then
16701 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
16704 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
16707 if test "${multilib}" = "yes"; then
16708 multilib_arg="--enable-multilib"
16709 else
16710 multilib_arg=
16715 here=`${PWDCMD-pwd}`
16718 # We get this from the environment.
16721 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"
16724 ac_config_commands="$ac_config_commands default"
16727 cat >confcache <<\_ACEOF
16728 # This file is a shell script that caches the results of configure
16729 # tests run on this system so they can be shared between configure
16730 # scripts and configure runs, see configure's option --config-cache.
16731 # It is not useful on other systems. If it contains results you don't
16732 # want to keep, you may remove or edit it.
16734 # config.status only pays attention to the cache file if you give it
16735 # the --recheck option to rerun configure.
16737 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16738 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16739 # following values.
16741 _ACEOF
16743 # The following way of writing the cache mishandles newlines in values,
16744 # but we know of no workaround that is simple, portable, and efficient.
16745 # So, don't put newlines in cache variables' values.
16746 # Ultrix sh set writes to stderr and can't be redirected directly,
16747 # and sets the high bit in the cache file unless we assign to the vars.
16749 (set) 2>&1 |
16750 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16751 *ac_space=\ *)
16752 # `set' does not quote correctly, so add quotes (double-quote
16753 # substitution turns \\\\ into \\, and sed turns \\ into \).
16754 sed -n \
16755 "s/'/'\\\\''/g;
16756 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16759 # `set' quotes correctly as required by POSIX, so do not add quotes.
16760 sed -n \
16761 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16763 esac;
16765 sed '
16766 t clear
16767 : clear
16768 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16769 t end
16770 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16771 : end' >>confcache
16772 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16773 if test -w $cache_file; then
16774 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16775 cat confcache >$cache_file
16776 else
16777 echo "not updating unwritable cache $cache_file"
16780 rm -f confcache
16782 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16783 # Let make expand exec_prefix.
16784 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16786 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16787 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16788 # trailing colons and then remove the whole line if VPATH becomes empty
16789 # (actually we leave an empty line to preserve line numbers).
16790 if test "x$srcdir" = x.; then
16791 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16792 s/:*\$(srcdir):*/:/;
16793 s/:*\${srcdir}:*/:/;
16794 s/:*@srcdir@:*/:/;
16795 s/^\([^=]*=[ ]*\):*/\1/;
16796 s/:*$//;
16797 s/^[^=]*=[ ]*$//;
16801 DEFS=-DHAVE_CONFIG_H
16803 ac_libobjs=
16804 ac_ltlibobjs=
16805 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16806 # 1. Remove the extension, and $U if already installed.
16807 ac_i=`echo "$ac_i" |
16808 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16809 # 2. Add them.
16810 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16811 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16812 done
16813 LIBOBJS=$ac_libobjs
16815 LTLIBOBJS=$ac_ltlibobjs
16818 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16819 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16820 Usually this means the macro was only invoked conditionally." >&5
16821 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16822 Usually this means the macro was only invoked conditionally." >&2;}
16823 { (exit 1); exit 1; }; }
16825 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16826 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16827 Usually this means the macro was only invoked conditionally." >&5
16828 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16829 Usually this means the macro was only invoked conditionally." >&2;}
16830 { (exit 1); exit 1; }; }
16832 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16833 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16834 Usually this means the macro was only invoked conditionally." >&5
16835 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16836 Usually this means the macro was only invoked conditionally." >&2;}
16837 { (exit 1); exit 1; }; }
16839 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16840 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16841 Usually this means the macro was only invoked conditionally." >&5
16842 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16843 Usually this means the macro was only invoked conditionally." >&2;}
16844 { (exit 1); exit 1; }; }
16846 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
16847 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
16848 Usually this means the macro was only invoked conditionally." >&5
16849 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
16850 Usually this means the macro was only invoked conditionally." >&2;}
16851 { (exit 1); exit 1; }; }
16853 if test -z "${GTK_AWT_TRUE}" && test -z "${GTK_AWT_FALSE}"; then
16854 { { echo "$as_me:$LINENO: error: conditional \"GTK_AWT\" was never defined.
16855 Usually this means the macro was only invoked conditionally." >&5
16856 echo "$as_me: error: conditional \"GTK_AWT\" was never defined.
16857 Usually this means the macro was only invoked conditionally." >&2;}
16858 { (exit 1); exit 1; }; }
16860 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
16861 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
16862 Usually this means the macro was only invoked conditionally." >&5
16863 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
16864 Usually this means the macro was only invoked conditionally." >&2;}
16865 { (exit 1); exit 1; }; }
16867 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
16868 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
16869 Usually this means the macro was only invoked conditionally." >&5
16870 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
16871 Usually this means the macro was only invoked conditionally." >&2;}
16872 { (exit 1); exit 1; }; }
16874 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
16875 { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
16876 Usually this means the macro was only invoked conditionally." >&5
16877 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
16878 Usually this means the macro was only invoked conditionally." >&2;}
16879 { (exit 1); exit 1; }; }
16881 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
16882 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16883 Usually this means the macro was only invoked conditionally." >&5
16884 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16885 Usually this means the macro was only invoked conditionally." >&2;}
16886 { (exit 1); exit 1; }; }
16888 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
16889 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16890 Usually this means the macro was only invoked conditionally." >&5
16891 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16892 Usually this means the macro was only invoked conditionally." >&2;}
16893 { (exit 1); exit 1; }; }
16895 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
16896 { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
16897 Usually this means the macro was only invoked conditionally." >&5
16898 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
16899 Usually this means the macro was only invoked conditionally." >&2;}
16900 { (exit 1); exit 1; }; }
16902 if test -z "${GTK_CAIRO_TRUE}" && test -z "${GTK_CAIRO_FALSE}"; then
16903 { { echo "$as_me:$LINENO: error: conditional \"GTK_CAIRO\" was never defined.
16904 Usually this means the macro was only invoked conditionally." >&5
16905 echo "$as_me: error: conditional \"GTK_CAIRO\" was never defined.
16906 Usually this means the macro was only invoked conditionally." >&2;}
16907 { (exit 1); exit 1; }; }
16909 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
16910 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
16911 Usually this means the macro was only invoked conditionally." >&5
16912 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
16913 Usually this means the macro was only invoked conditionally." >&2;}
16914 { (exit 1); exit 1; }; }
16916 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
16917 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
16918 Usually this means the macro was only invoked conditionally." >&5
16919 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
16920 Usually this means the macro was only invoked conditionally." >&2;}
16921 { (exit 1); exit 1; }; }
16923 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
16924 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
16925 Usually this means the macro was only invoked conditionally." >&5
16926 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
16927 Usually this means the macro was only invoked conditionally." >&2;}
16928 { (exit 1); exit 1; }; }
16930 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
16931 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
16932 Usually this means the macro was only invoked conditionally." >&5
16933 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
16934 Usually this means the macro was only invoked conditionally." >&2;}
16935 { (exit 1); exit 1; }; }
16937 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
16938 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
16939 Usually this means the macro was only invoked conditionally." >&5
16940 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
16941 Usually this means the macro was only invoked conditionally." >&2;}
16942 { (exit 1); exit 1; }; }
16944 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
16945 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
16946 Usually this means the macro was only invoked conditionally." >&5
16947 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
16948 Usually this means the macro was only invoked conditionally." >&2;}
16949 { (exit 1); exit 1; }; }
16951 if test -z "${SUPPLY_BACKTRACE_TRUE}" && test -z "${SUPPLY_BACKTRACE_FALSE}"; then
16952 { { echo "$as_me:$LINENO: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
16953 Usually this means the macro was only invoked conditionally." >&5
16954 echo "$as_me: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
16955 Usually this means the macro was only invoked conditionally." >&2;}
16956 { (exit 1); exit 1; }; }
16958 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
16959 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
16960 Usually this means the macro was only invoked conditionally." >&5
16961 echo "$as_me: error: conditional \"NATIVE\" was never defined.
16962 Usually this means the macro was only invoked conditionally." >&2;}
16963 { (exit 1); exit 1; }; }
16965 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
16966 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
16967 Usually this means the macro was only invoked conditionally." >&5
16968 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
16969 Usually this means the macro was only invoked conditionally." >&2;}
16970 { (exit 1); exit 1; }; }
16973 : ${CONFIG_STATUS=./config.status}
16974 ac_clean_files_save=$ac_clean_files
16975 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16976 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16977 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16978 cat >$CONFIG_STATUS <<_ACEOF
16979 #! $SHELL
16980 # Generated by $as_me.
16981 # Run this file to recreate the current configuration.
16982 # Compiler output produced by configure, useful for debugging
16983 # configure, is in config.log if it exists.
16985 debug=false
16986 ac_cs_recheck=false
16987 ac_cs_silent=false
16988 SHELL=\${CONFIG_SHELL-$SHELL}
16989 _ACEOF
16991 cat >>$CONFIG_STATUS <<\_ACEOF
16992 ## --------------------- ##
16993 ## M4sh Initialization. ##
16994 ## --------------------- ##
16996 # Be Bourne compatible
16997 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16998 emulate sh
16999 NULLCMD=:
17000 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17001 # is contrary to our usage. Disable this feature.
17002 alias -g '${1+"$@"}'='"$@"'
17003 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17004 set -o posix
17006 DUALCASE=1; export DUALCASE # for MKS sh
17008 # Support unset when possible.
17009 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17010 as_unset=unset
17011 else
17012 as_unset=false
17016 # Work around bugs in pre-3.0 UWIN ksh.
17017 $as_unset ENV MAIL MAILPATH
17018 PS1='$ '
17019 PS2='> '
17020 PS4='+ '
17022 # NLS nuisances.
17023 for as_var in \
17024 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17025 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17026 LC_TELEPHONE LC_TIME
17028 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17029 eval $as_var=C; export $as_var
17030 else
17031 $as_unset $as_var
17033 done
17035 # Required to use basename.
17036 if expr a : '\(a\)' >/dev/null 2>&1; then
17037 as_expr=expr
17038 else
17039 as_expr=false
17042 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17043 as_basename=basename
17044 else
17045 as_basename=false
17049 # Name of the executable.
17050 as_me=`$as_basename "$0" ||
17051 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17052 X"$0" : 'X\(//\)$' \| \
17053 X"$0" : 'X\(/\)$' \| \
17054 . : '\(.\)' 2>/dev/null ||
17055 echo X/"$0" |
17056 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17057 /^X\/\(\/\/\)$/{ s//\1/; q; }
17058 /^X\/\(\/\).*/{ s//\1/; q; }
17059 s/.*/./; q'`
17062 # PATH needs CR, and LINENO needs CR and PATH.
17063 # Avoid depending upon Character Ranges.
17064 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17065 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17066 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17067 as_cr_digits='0123456789'
17068 as_cr_alnum=$as_cr_Letters$as_cr_digits
17070 # The user is always right.
17071 if test "${PATH_SEPARATOR+set}" != set; then
17072 echo "#! /bin/sh" >conf$$.sh
17073 echo "exit 0" >>conf$$.sh
17074 chmod +x conf$$.sh
17075 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17076 PATH_SEPARATOR=';'
17077 else
17078 PATH_SEPARATOR=:
17080 rm -f conf$$.sh
17084 as_lineno_1=$LINENO
17085 as_lineno_2=$LINENO
17086 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17087 test "x$as_lineno_1" != "x$as_lineno_2" &&
17088 test "x$as_lineno_3" = "x$as_lineno_2" || {
17089 # Find who we are. Look in the path if we contain no path at all
17090 # relative or not.
17091 case $0 in
17092 *[\\/]* ) as_myself=$0 ;;
17093 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17094 for as_dir in $PATH
17096 IFS=$as_save_IFS
17097 test -z "$as_dir" && as_dir=.
17098 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17099 done
17102 esac
17103 # We did not find ourselves, most probably we were run as `sh COMMAND'
17104 # in which case we are not to be found in the path.
17105 if test "x$as_myself" = x; then
17106 as_myself=$0
17108 if test ! -f "$as_myself"; then
17109 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17110 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17111 { (exit 1); exit 1; }; }
17113 case $CONFIG_SHELL in
17115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17116 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17118 IFS=$as_save_IFS
17119 test -z "$as_dir" && as_dir=.
17120 for as_base in sh bash ksh sh5; do
17121 case $as_dir in
17123 if ("$as_dir/$as_base" -c '
17124 as_lineno_1=$LINENO
17125 as_lineno_2=$LINENO
17126 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17127 test "x$as_lineno_1" != "x$as_lineno_2" &&
17128 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17129 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17130 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17131 CONFIG_SHELL=$as_dir/$as_base
17132 export CONFIG_SHELL
17133 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17134 fi;;
17135 esac
17136 done
17137 done
17139 esac
17141 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17142 # uniformly replaced by the line number. The first 'sed' inserts a
17143 # line-number line before each line; the second 'sed' does the real
17144 # work. The second script uses 'N' to pair each line-number line
17145 # with the numbered line, and appends trailing '-' during
17146 # substitution so that $LINENO is not a special case at line end.
17147 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17148 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17149 sed '=' <$as_myself |
17150 sed '
17152 s,$,-,
17153 : loop
17154 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17155 t loop
17156 s,-$,,
17157 s,^['$as_cr_digits']*\n,,
17158 ' >$as_me.lineno &&
17159 chmod +x $as_me.lineno ||
17160 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17161 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17162 { (exit 1); exit 1; }; }
17164 # Don't try to exec as it changes $[0], causing all sort of problems
17165 # (the dirname of $[0] is not the place where we might find the
17166 # original and so on. Autoconf is especially sensible to this).
17167 . ./$as_me.lineno
17168 # Exit status is that of the last command.
17169 exit
17173 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17174 *c*,-n*) ECHO_N= ECHO_C='
17175 ' ECHO_T=' ' ;;
17176 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17177 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17178 esac
17180 if expr a : '\(a\)' >/dev/null 2>&1; then
17181 as_expr=expr
17182 else
17183 as_expr=false
17186 rm -f conf$$ conf$$.exe conf$$.file
17187 echo >conf$$.file
17188 if ln -s conf$$.file conf$$ 2>/dev/null; then
17189 # We could just check for DJGPP; but this test a) works b) is more generic
17190 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17191 if test -f conf$$.exe; then
17192 # Don't use ln at all; we don't have any links
17193 as_ln_s='cp -p'
17194 else
17195 as_ln_s='ln -s'
17197 elif ln conf$$.file conf$$ 2>/dev/null; then
17198 as_ln_s=ln
17199 else
17200 as_ln_s='cp -p'
17202 rm -f conf$$ conf$$.exe conf$$.file
17204 if mkdir -p . 2>/dev/null; then
17205 as_mkdir_p=:
17206 else
17207 test -d ./-p && rmdir ./-p
17208 as_mkdir_p=false
17211 as_executable_p="test -f"
17213 # Sed expression to map a string onto a valid CPP name.
17214 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17216 # Sed expression to map a string onto a valid variable name.
17217 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17220 # IFS
17221 # We need space, tab and new line, in precisely that order.
17222 as_nl='
17224 IFS=" $as_nl"
17226 # CDPATH.
17227 $as_unset CDPATH
17229 exec 6>&1
17231 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17232 # report actual input values of CONFIG_FILES etc. instead of their
17233 # values after options handling. Logging --version etc. is OK.
17234 exec 5>>config.log
17236 echo
17237 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17238 ## Running $as_me. ##
17239 _ASBOX
17240 } >&5
17241 cat >&5 <<_CSEOF
17243 This file was extended by libjava $as_me version-unused, which was
17244 generated by GNU Autoconf 2.59. Invocation command line was
17246 CONFIG_FILES = $CONFIG_FILES
17247 CONFIG_HEADERS = $CONFIG_HEADERS
17248 CONFIG_LINKS = $CONFIG_LINKS
17249 CONFIG_COMMANDS = $CONFIG_COMMANDS
17250 $ $0 $@
17252 _CSEOF
17253 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17254 echo >&5
17255 _ACEOF
17257 # Files that config.status was made for.
17258 if test -n "$ac_config_files"; then
17259 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17262 if test -n "$ac_config_headers"; then
17263 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17266 if test -n "$ac_config_links"; then
17267 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17270 if test -n "$ac_config_commands"; then
17271 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17274 cat >>$CONFIG_STATUS <<\_ACEOF
17276 ac_cs_usage="\
17277 \`$as_me' instantiates files from templates according to the
17278 current configuration.
17280 Usage: $0 [OPTIONS] [FILE]...
17282 -h, --help print this help, then exit
17283 -V, --version print version number, then exit
17284 -q, --quiet do not print progress messages
17285 -d, --debug don't remove temporary files
17286 --recheck update $as_me by reconfiguring in the same conditions
17287 --file=FILE[:TEMPLATE]
17288 instantiate the configuration file FILE
17289 --header=FILE[:TEMPLATE]
17290 instantiate the configuration header FILE
17292 Configuration files:
17293 $config_files
17295 Configuration headers:
17296 $config_headers
17298 Configuration links:
17299 $config_links
17301 Configuration commands:
17302 $config_commands
17304 Report bugs to <bug-autoconf@gnu.org>."
17305 _ACEOF
17307 cat >>$CONFIG_STATUS <<_ACEOF
17308 ac_cs_version="\\
17309 libjava config.status version-unused
17310 configured by $0, generated by GNU Autoconf 2.59,
17311 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17313 Copyright (C) 2003 Free Software Foundation, Inc.
17314 This config.status script is free software; the Free Software Foundation
17315 gives unlimited permission to copy, distribute and modify it."
17316 srcdir=$srcdir
17317 INSTALL="$INSTALL"
17318 _ACEOF
17320 cat >>$CONFIG_STATUS <<\_ACEOF
17321 # If no file are specified by the user, then we need to provide default
17322 # value. By we need to know if files were specified by the user.
17323 ac_need_defaults=:
17324 while test $# != 0
17326 case $1 in
17327 --*=*)
17328 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17329 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17330 ac_shift=:
17333 ac_option=$1
17334 ac_optarg=$2
17335 ac_shift=shift
17337 *) # This is not an option, so the user has probably given explicit
17338 # arguments.
17339 ac_option=$1
17340 ac_need_defaults=false;;
17341 esac
17343 case $ac_option in
17344 # Handling of the options.
17345 _ACEOF
17346 cat >>$CONFIG_STATUS <<\_ACEOF
17347 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17348 ac_cs_recheck=: ;;
17349 --version | --vers* | -V )
17350 echo "$ac_cs_version"; exit 0 ;;
17351 --he | --h)
17352 # Conflict between --help and --header
17353 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17354 Try \`$0 --help' for more information." >&5
17355 echo "$as_me: error: ambiguous option: $1
17356 Try \`$0 --help' for more information." >&2;}
17357 { (exit 1); exit 1; }; };;
17358 --help | --hel | -h )
17359 echo "$ac_cs_usage"; exit 0 ;;
17360 --debug | --d* | -d )
17361 debug=: ;;
17362 --file | --fil | --fi | --f )
17363 $ac_shift
17364 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17365 ac_need_defaults=false;;
17366 --header | --heade | --head | --hea )
17367 $ac_shift
17368 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17369 ac_need_defaults=false;;
17370 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17371 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17372 ac_cs_silent=: ;;
17374 # This is an error.
17375 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17376 Try \`$0 --help' for more information." >&5
17377 echo "$as_me: error: unrecognized option: $1
17378 Try \`$0 --help' for more information." >&2;}
17379 { (exit 1); exit 1; }; } ;;
17381 *) ac_config_targets="$ac_config_targets $1" ;;
17383 esac
17384 shift
17385 done
17387 ac_configure_extra_args=
17389 if $ac_cs_silent; then
17390 exec 6>/dev/null
17391 ac_configure_extra_args="$ac_configure_extra_args --silent"
17394 _ACEOF
17395 cat >>$CONFIG_STATUS <<_ACEOF
17396 if \$ac_cs_recheck; then
17397 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17398 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17401 _ACEOF
17403 cat >>$CONFIG_STATUS <<_ACEOF
17405 # INIT-COMMANDS section.
17408 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17409 srcdir=${srcdir}
17410 host=${host}
17411 target=${target}
17412 with_multisubdir=${with_multisubdir}
17413 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17414 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17415 libgcj_basedir=${libgcj_basedir}
17416 CC="${CC}"
17417 CXX="${CXX}"
17418 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
17421 _ACEOF
17425 cat >>$CONFIG_STATUS <<\_ACEOF
17426 for ac_config_target in $ac_config_targets
17428 case "$ac_config_target" in
17429 # Handling of arguments.
17430 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17431 "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
17432 "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
17433 "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
17434 "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
17435 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17436 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17437 "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
17438 "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
17439 "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
17440 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
17441 "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
17442 "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
17443 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
17444 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
17445 "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
17446 "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
17447 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
17448 "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
17449 "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
17450 "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
17451 "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
17452 "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
17453 "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
17454 "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
17455 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17456 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17457 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17458 "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
17459 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17460 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17461 { (exit 1); exit 1; }; };;
17462 esac
17463 done
17465 # If the user did not use the arguments to specify the items to instantiate,
17466 # then the envvar interface is used. Set only those that are not.
17467 # We use the long form for the default assignment because of an extremely
17468 # bizarre bug on SunOS 4.1.3.
17469 if $ac_need_defaults; then
17470 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17471 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17472 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17473 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17476 # Have a temporary directory for convenience. Make it in the build tree
17477 # simply because there is no reason to put it here, and in addition,
17478 # creating and moving files from /tmp can sometimes cause problems.
17479 # Create a temporary directory, and hook for its removal unless debugging.
17480 $debug ||
17482 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17483 trap '{ (exit 1); exit 1; }' 1 2 13 15
17486 # Create a (secure) tmp directory for tmp files.
17489 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17490 test -n "$tmp" && test -d "$tmp"
17491 } ||
17493 tmp=./confstat$$-$RANDOM
17494 (umask 077 && mkdir $tmp)
17495 } ||
17497 echo "$me: cannot create a temporary directory in ." >&2
17498 { (exit 1); exit 1; }
17501 _ACEOF
17503 cat >>$CONFIG_STATUS <<_ACEOF
17506 # CONFIG_FILES section.
17509 # No need to generate the scripts if there are no CONFIG_FILES.
17510 # This happens for instance when ./config.status config.h
17511 if test -n "\$CONFIG_FILES"; then
17512 # Protect against being on the right side of a sed subst in config.status.
17513 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17514 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17515 s,@SHELL@,$SHELL,;t t
17516 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17517 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17518 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17519 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17520 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17521 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17522 s,@exec_prefix@,$exec_prefix,;t t
17523 s,@prefix@,$prefix,;t t
17524 s,@program_transform_name@,$program_transform_name,;t t
17525 s,@bindir@,$bindir,;t t
17526 s,@sbindir@,$sbindir,;t t
17527 s,@libexecdir@,$libexecdir,;t t
17528 s,@datadir@,$datadir,;t t
17529 s,@sysconfdir@,$sysconfdir,;t t
17530 s,@sharedstatedir@,$sharedstatedir,;t t
17531 s,@localstatedir@,$localstatedir,;t t
17532 s,@libdir@,$libdir,;t t
17533 s,@includedir@,$includedir,;t t
17534 s,@oldincludedir@,$oldincludedir,;t t
17535 s,@infodir@,$infodir,;t t
17536 s,@mandir@,$mandir,;t t
17537 s,@build_alias@,$build_alias,;t t
17538 s,@host_alias@,$host_alias,;t t
17539 s,@target_alias@,$target_alias,;t t
17540 s,@DEFS@,$DEFS,;t t
17541 s,@ECHO_C@,$ECHO_C,;t t
17542 s,@ECHO_N@,$ECHO_N,;t t
17543 s,@ECHO_T@,$ECHO_T,;t t
17544 s,@LIBS@,$LIBS,;t t
17545 s,@build@,$build,;t t
17546 s,@build_cpu@,$build_cpu,;t t
17547 s,@build_vendor@,$build_vendor,;t t
17548 s,@build_os@,$build_os,;t t
17549 s,@build_subdir@,$build_subdir,;t t
17550 s,@host_subdir@,$host_subdir,;t t
17551 s,@target_subdir@,$target_subdir,;t t
17552 s,@libgcj_basedir@,$libgcj_basedir,;t t
17553 s,@host@,$host,;t t
17554 s,@host_cpu@,$host_cpu,;t t
17555 s,@host_vendor@,$host_vendor,;t t
17556 s,@host_os@,$host_os,;t t
17557 s,@target@,$target,;t t
17558 s,@target_cpu@,$target_cpu,;t t
17559 s,@target_vendor@,$target_vendor,;t t
17560 s,@target_os@,$target_os,;t t
17561 s,@target_noncanonical@,$target_noncanonical,;t t
17562 s,@LN_S@,$LN_S,;t t
17563 s,@mkinstalldirs@,$mkinstalldirs,;t t
17564 s,@CC@,$CC,;t t
17565 s,@ac_ct_CC@,$ac_ct_CC,;t t
17566 s,@EXEEXT@,$EXEEXT,;t t
17567 s,@OBJEXT@,$OBJEXT,;t t
17568 s,@CXX@,$CXX,;t t
17569 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17570 s,@CFLAGS@,$CFLAGS,;t t
17571 s,@CXXFLAGS@,$CXXFLAGS,;t t
17572 s,@LDFLAGS@,$LDFLAGS,;t t
17573 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17574 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17575 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17576 s,@CYGPATH_W@,$CYGPATH_W,;t t
17577 s,@PACKAGE@,$PACKAGE,;t t
17578 s,@VERSION@,$VERSION,;t t
17579 s,@ACLOCAL@,$ACLOCAL,;t t
17580 s,@AUTOCONF@,$AUTOCONF,;t t
17581 s,@AUTOMAKE@,$AUTOMAKE,;t t
17582 s,@AUTOHEADER@,$AUTOHEADER,;t t
17583 s,@MAKEINFO@,$MAKEINFO,;t t
17584 s,@install_sh@,$install_sh,;t t
17585 s,@STRIP@,$STRIP,;t t
17586 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17587 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17588 s,@mkdir_p@,$mkdir_p,;t t
17589 s,@AWK@,$AWK,;t t
17590 s,@SET_MAKE@,$SET_MAKE,;t t
17591 s,@am__leading_dot@,$am__leading_dot,;t t
17592 s,@AMTAR@,$AMTAR,;t t
17593 s,@am__tar@,$am__tar,;t t
17594 s,@am__untar@,$am__untar,;t t
17595 s,@DEPDIR@,$DEPDIR,;t t
17596 s,@am__include@,$am__include,;t t
17597 s,@am__quote@,$am__quote,;t t
17598 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17599 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17600 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17601 s,@CCDEPMODE@,$CCDEPMODE,;t t
17602 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17603 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17604 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17605 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17606 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17607 s,@AS@,$AS,;t t
17608 s,@ac_ct_AS@,$ac_ct_AS,;t t
17609 s,@AR@,$AR,;t t
17610 s,@ac_ct_AR@,$ac_ct_AR,;t t
17611 s,@RANLIB@,$RANLIB,;t t
17612 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17613 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17614 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17615 s,@MAINT@,$MAINT,;t t
17616 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
17617 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
17618 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
17619 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
17620 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
17621 s,@TOOLKIT@,$TOOLKIT,;t t
17622 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
17623 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
17624 s,@GTK_AWT_TRUE@,$GTK_AWT_TRUE,;t t
17625 s,@GTK_AWT_FALSE@,$GTK_AWT_FALSE,;t t
17626 s,@GCJH@,$GCJH,;t t
17627 s,@ZIP@,$ZIP,;t t
17628 s,@INCLTDL@,$INCLTDL,;t t
17629 s,@LIBLTDL@,$LIBLTDL,;t t
17630 s,@DIRLTDL@,$DIRLTDL,;t t
17631 s,@LIBTOOL@,$LIBTOOL,;t t
17632 s,@CXXCPP@,$CXXCPP,;t t
17633 s,@CPPFLAGS@,$CPPFLAGS,;t t
17634 s,@GCJ@,$GCJ,;t t
17635 s,@GCJFLAGS@,$GCJFLAGS,;t t
17636 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
17637 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
17638 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
17639 s,@subdirs@,$subdirs,;t t
17640 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
17641 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
17642 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
17643 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
17644 s,@JAVA_HOME@,$JAVA_HOME,;t t
17645 s,@INTERPRETER@,$INTERPRETER,;t t
17646 s,@LIBFFI@,$LIBFFI,;t t
17647 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
17648 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
17649 s,@CPP@,$CPP,;t t
17650 s,@EGREP@,$EGREP,;t t
17651 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
17652 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
17653 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
17654 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
17655 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
17656 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
17657 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
17658 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
17659 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
17660 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
17661 s,@X_CFLAGS@,$X_CFLAGS,;t t
17662 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17663 s,@X_LIBS@,$X_LIBS,;t t
17664 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17665 s,@GTK_CAIRO_TRUE@,$GTK_CAIRO_TRUE,;t t
17666 s,@GTK_CAIRO_FALSE@,$GTK_CAIRO_FALSE,;t t
17667 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
17668 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
17669 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
17670 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
17671 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
17672 s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
17673 s,@GCLIBS@,$GCLIBS,;t t
17674 s,@GCINCS@,$GCINCS,;t t
17675 s,@GCDEPS@,$GCDEPS,;t t
17676 s,@GCSPEC@,$GCSPEC,;t t
17677 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
17678 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
17679 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
17680 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
17681 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
17682 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
17683 s,@THREADLIBS@,$THREADLIBS,;t t
17684 s,@THREADINCS@,$THREADINCS,;t t
17685 s,@THREADDEPS@,$THREADDEPS,;t t
17686 s,@THREADSPEC@,$THREADSPEC,;t t
17687 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
17688 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
17689 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
17690 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
17691 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
17692 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
17693 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
17694 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
17695 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
17696 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
17697 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
17698 s,@LIBICONV@,$LIBICONV,;t t
17699 s,@LTLIBICONV@,$LTLIBICONV,;t t
17700 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
17701 s,@GTK_LIBS@,$GTK_LIBS,;t t
17702 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
17703 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
17704 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
17705 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
17706 s,@SUPPLY_BACKTRACE_TRUE@,$SUPPLY_BACKTRACE_TRUE,;t t
17707 s,@SUPPLY_BACKTRACE_FALSE@,$SUPPLY_BACKTRACE_FALSE,;t t
17708 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
17709 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
17710 s,@ZLIBS@,$ZLIBS,;t t
17711 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
17712 s,@ZINCS@,$ZINCS,;t t
17713 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
17714 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
17715 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
17716 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
17717 s,@IEEESPEC@,$IEEESPEC,;t t
17718 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
17719 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
17720 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
17721 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
17722 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
17723 s,@toolexecdir@,$toolexecdir,;t t
17724 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
17725 s,@toolexeclibdir@,$toolexeclibdir,;t t
17726 s,@GCJVERSION@,$GCJVERSION,;t t
17727 s,@gxx_include_dir@,$gxx_include_dir,;t t
17728 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
17729 s,@ALLOCA@,$ALLOCA,;t t
17730 s,@PERL@,$PERL,;t t
17731 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
17732 s,@here@,$here,;t t
17733 s,@LIBOBJS@,$LIBOBJS,;t t
17734 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17735 CEOF
17737 _ACEOF
17739 cat >>$CONFIG_STATUS <<\_ACEOF
17740 # Split the substitutions into bite-sized pieces for seds with
17741 # small command number limits, like on Digital OSF/1 and HP-UX.
17742 ac_max_sed_lines=48
17743 ac_sed_frag=1 # Number of current file.
17744 ac_beg=1 # First line for current file.
17745 ac_end=$ac_max_sed_lines # Line after last line for current file.
17746 ac_more_lines=:
17747 ac_sed_cmds=
17748 while $ac_more_lines; do
17749 if test $ac_beg -gt 1; then
17750 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17751 else
17752 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17754 if test ! -s $tmp/subs.frag; then
17755 ac_more_lines=false
17756 else
17757 # The purpose of the label and of the branching condition is to
17758 # speed up the sed processing (if there are no `@' at all, there
17759 # is no need to browse any of the substitutions).
17760 # These are the two extra sed commands mentioned above.
17761 (echo ':t
17762 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17763 if test -z "$ac_sed_cmds"; then
17764 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17765 else
17766 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17768 ac_sed_frag=`expr $ac_sed_frag + 1`
17769 ac_beg=$ac_end
17770 ac_end=`expr $ac_end + $ac_max_sed_lines`
17772 done
17773 if test -z "$ac_sed_cmds"; then
17774 ac_sed_cmds=cat
17776 fi # test -n "$CONFIG_FILES"
17778 _ACEOF
17779 cat >>$CONFIG_STATUS <<\_ACEOF
17780 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17781 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17782 case $ac_file in
17783 - | *:- | *:-:* ) # input from stdin
17784 cat >$tmp/stdin
17785 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17786 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17787 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17788 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17789 * ) ac_file_in=$ac_file.in ;;
17790 esac
17792 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17793 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17794 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17795 X"$ac_file" : 'X\(//\)[^/]' \| \
17796 X"$ac_file" : 'X\(//\)$' \| \
17797 X"$ac_file" : 'X\(/\)' \| \
17798 . : '\(.\)' 2>/dev/null ||
17799 echo X"$ac_file" |
17800 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17801 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17802 /^X\(\/\/\)$/{ s//\1/; q; }
17803 /^X\(\/\).*/{ s//\1/; q; }
17804 s/.*/./; q'`
17805 { if $as_mkdir_p; then
17806 mkdir -p "$ac_dir"
17807 else
17808 as_dir="$ac_dir"
17809 as_dirs=
17810 while test ! -d "$as_dir"; do
17811 as_dirs="$as_dir $as_dirs"
17812 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17813 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17814 X"$as_dir" : 'X\(//\)[^/]' \| \
17815 X"$as_dir" : 'X\(//\)$' \| \
17816 X"$as_dir" : 'X\(/\)' \| \
17817 . : '\(.\)' 2>/dev/null ||
17818 echo X"$as_dir" |
17819 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17820 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17821 /^X\(\/\/\)$/{ s//\1/; q; }
17822 /^X\(\/\).*/{ s//\1/; q; }
17823 s/.*/./; q'`
17824 done
17825 test ! -n "$as_dirs" || mkdir $as_dirs
17826 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17827 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17828 { (exit 1); exit 1; }; }; }
17830 ac_builddir=.
17832 if test "$ac_dir" != .; then
17833 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17834 # A "../" for each directory in $ac_dir_suffix.
17835 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17836 else
17837 ac_dir_suffix= ac_top_builddir=
17840 case $srcdir in
17841 .) # No --srcdir option. We are building in place.
17842 ac_srcdir=.
17843 if test -z "$ac_top_builddir"; then
17844 ac_top_srcdir=.
17845 else
17846 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17847 fi ;;
17848 [\\/]* | ?:[\\/]* ) # Absolute path.
17849 ac_srcdir=$srcdir$ac_dir_suffix;
17850 ac_top_srcdir=$srcdir ;;
17851 *) # Relative path.
17852 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17853 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17854 esac
17856 # Do not use `cd foo && pwd` to compute absolute paths, because
17857 # the directories may not exist.
17858 case `pwd` in
17859 .) ac_abs_builddir="$ac_dir";;
17861 case "$ac_dir" in
17862 .) ac_abs_builddir=`pwd`;;
17863 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17864 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17865 esac;;
17866 esac
17867 case $ac_abs_builddir in
17868 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17870 case ${ac_top_builddir}. in
17871 .) ac_abs_top_builddir=$ac_abs_builddir;;
17872 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17873 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17874 esac;;
17875 esac
17876 case $ac_abs_builddir in
17877 .) ac_abs_srcdir=$ac_srcdir;;
17879 case $ac_srcdir in
17880 .) ac_abs_srcdir=$ac_abs_builddir;;
17881 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17882 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17883 esac;;
17884 esac
17885 case $ac_abs_builddir in
17886 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17888 case $ac_top_srcdir in
17889 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17890 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17891 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17892 esac;;
17893 esac
17896 case $INSTALL in
17897 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17898 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17899 esac
17901 if test x"$ac_file" != x-; then
17902 { echo "$as_me:$LINENO: creating $ac_file" >&5
17903 echo "$as_me: creating $ac_file" >&6;}
17904 rm -f "$ac_file"
17906 # Let's still pretend it is `configure' which instantiates (i.e., don't
17907 # use $as_me), people would be surprised to read:
17908 # /* config.h. Generated by config.status. */
17909 if test x"$ac_file" = x-; then
17910 configure_input=
17911 else
17912 configure_input="$ac_file. "
17914 configure_input=$configure_input"Generated from `echo $ac_file_in |
17915 sed 's,.*/,,'` by configure."
17917 # First look for the input files in the build tree, otherwise in the
17918 # src tree.
17919 ac_file_inputs=`IFS=:
17920 for f in $ac_file_in; do
17921 case $f in
17922 -) echo $tmp/stdin ;;
17923 [\\/$]*)
17924 # Absolute (can't be DOS-style, as IFS=:)
17925 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17926 echo "$as_me: error: cannot find input file: $f" >&2;}
17927 { (exit 1); exit 1; }; }
17928 echo "$f";;
17929 *) # Relative
17930 if test -f "$f"; then
17931 # Build tree
17932 echo "$f"
17933 elif test -f "$srcdir/$f"; then
17934 # Source tree
17935 echo "$srcdir/$f"
17936 else
17937 # /dev/null tree
17938 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17939 echo "$as_me: error: cannot find input file: $f" >&2;}
17940 { (exit 1); exit 1; }; }
17941 fi;;
17942 esac
17943 done` || { (exit 1); exit 1; }
17944 _ACEOF
17945 cat >>$CONFIG_STATUS <<_ACEOF
17946 sed "$ac_vpsub
17947 $extrasub
17948 _ACEOF
17949 cat >>$CONFIG_STATUS <<\_ACEOF
17951 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17952 s,@configure_input@,$configure_input,;t t
17953 s,@srcdir@,$ac_srcdir,;t t
17954 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17955 s,@top_srcdir@,$ac_top_srcdir,;t t
17956 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17957 s,@builddir@,$ac_builddir,;t t
17958 s,@abs_builddir@,$ac_abs_builddir,;t t
17959 s,@top_builddir@,$ac_top_builddir,;t t
17960 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17961 s,@INSTALL@,$ac_INSTALL,;t t
17962 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17963 rm -f $tmp/stdin
17964 if test x"$ac_file" != x-; then
17965 mv $tmp/out $ac_file
17966 else
17967 cat $tmp/out
17968 rm -f $tmp/out
17971 done
17972 _ACEOF
17973 cat >>$CONFIG_STATUS <<\_ACEOF
17976 # CONFIG_HEADER section.
17979 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17980 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17982 # ac_d sets the value in "#define NAME VALUE" lines.
17983 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17984 ac_dB='[ ].*$,\1#\2'
17985 ac_dC=' '
17986 ac_dD=',;t'
17987 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17988 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17989 ac_uB='$,\1#\2define\3'
17990 ac_uC=' '
17991 ac_uD=',;t'
17993 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17994 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17995 case $ac_file in
17996 - | *:- | *:-:* ) # input from stdin
17997 cat >$tmp/stdin
17998 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17999 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18000 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18001 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18002 * ) ac_file_in=$ac_file.in ;;
18003 esac
18005 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18006 echo "$as_me: creating $ac_file" >&6;}
18008 # First look for the input files in the build tree, otherwise in the
18009 # src tree.
18010 ac_file_inputs=`IFS=:
18011 for f in $ac_file_in; do
18012 case $f in
18013 -) echo $tmp/stdin ;;
18014 [\\/$]*)
18015 # Absolute (can't be DOS-style, as IFS=:)
18016 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18017 echo "$as_me: error: cannot find input file: $f" >&2;}
18018 { (exit 1); exit 1; }; }
18019 # Do quote $f, to prevent DOS paths from being IFS'd.
18020 echo "$f";;
18021 *) # Relative
18022 if test -f "$f"; then
18023 # Build tree
18024 echo "$f"
18025 elif test -f "$srcdir/$f"; then
18026 # Source tree
18027 echo "$srcdir/$f"
18028 else
18029 # /dev/null tree
18030 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18031 echo "$as_me: error: cannot find input file: $f" >&2;}
18032 { (exit 1); exit 1; }; }
18033 fi;;
18034 esac
18035 done` || { (exit 1); exit 1; }
18036 # Remove the trailing spaces.
18037 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18039 _ACEOF
18041 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18042 # `conftest.undefs', that substitutes the proper values into
18043 # config.h.in to produce config.h. The first handles `#define'
18044 # templates, and the second `#undef' templates.
18045 # And first: Protect against being on the right side of a sed subst in
18046 # config.status. Protect against being in an unquoted here document
18047 # in config.status.
18048 rm -f conftest.defines conftest.undefs
18049 # Using a here document instead of a string reduces the quoting nightmare.
18050 # Putting comments in sed scripts is not portable.
18052 # `end' is used to avoid that the second main sed command (meant for
18053 # 0-ary CPP macros) applies to n-ary macro definitions.
18054 # See the Autoconf documentation for `clear'.
18055 cat >confdef2sed.sed <<\_ACEOF
18056 s/[\\&,]/\\&/g
18057 s,[\\$`],\\&,g
18058 t clear
18059 : clear
18060 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18061 t end
18062 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18063 : end
18064 _ACEOF
18065 # If some macros were called several times there might be several times
18066 # the same #defines, which is useless. Nevertheless, we may not want to
18067 # sort them, since we want the *last* AC-DEFINE to be honored.
18068 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18069 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18070 rm -f confdef2sed.sed
18072 # This sed command replaces #undef with comments. This is necessary, for
18073 # example, in the case of _POSIX_SOURCE, which is predefined and required
18074 # on some systems where configure will not decide to define it.
18075 cat >>conftest.undefs <<\_ACEOF
18076 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18077 _ACEOF
18079 # Break up conftest.defines because some shells have a limit on the size
18080 # of here documents, and old seds have small limits too (100 cmds).
18081 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18082 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18083 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18084 echo ' :' >>$CONFIG_STATUS
18085 rm -f conftest.tail
18086 while grep . conftest.defines >/dev/null
18088 # Write a limited-size here document to $tmp/defines.sed.
18089 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18090 # Speed up: don't consider the non `#define' lines.
18091 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18092 # Work around the forget-to-reset-the-flag bug.
18093 echo 't clr' >>$CONFIG_STATUS
18094 echo ': clr' >>$CONFIG_STATUS
18095 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18096 echo 'CEOF
18097 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18098 rm -f $tmp/in
18099 mv $tmp/out $tmp/in
18100 ' >>$CONFIG_STATUS
18101 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18102 rm -f conftest.defines
18103 mv conftest.tail conftest.defines
18104 done
18105 rm -f conftest.defines
18106 echo ' fi # grep' >>$CONFIG_STATUS
18107 echo >>$CONFIG_STATUS
18109 # Break up conftest.undefs because some shells have a limit on the size
18110 # of here documents, and old seds have small limits too (100 cmds).
18111 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18112 rm -f conftest.tail
18113 while grep . conftest.undefs >/dev/null
18115 # Write a limited-size here document to $tmp/undefs.sed.
18116 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18117 # Speed up: don't consider the non `#undef'
18118 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18119 # Work around the forget-to-reset-the-flag bug.
18120 echo 't clr' >>$CONFIG_STATUS
18121 echo ': clr' >>$CONFIG_STATUS
18122 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18123 echo 'CEOF
18124 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18125 rm -f $tmp/in
18126 mv $tmp/out $tmp/in
18127 ' >>$CONFIG_STATUS
18128 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18129 rm -f conftest.undefs
18130 mv conftest.tail conftest.undefs
18131 done
18132 rm -f conftest.undefs
18134 cat >>$CONFIG_STATUS <<\_ACEOF
18135 # Let's still pretend it is `configure' which instantiates (i.e., don't
18136 # use $as_me), people would be surprised to read:
18137 # /* config.h. Generated by config.status. */
18138 if test x"$ac_file" = x-; then
18139 echo "/* Generated by configure. */" >$tmp/config.h
18140 else
18141 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18143 cat $tmp/in >>$tmp/config.h
18144 rm -f $tmp/in
18145 if test x"$ac_file" != x-; then
18146 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18147 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18148 echo "$as_me: $ac_file is unchanged" >&6;}
18149 else
18150 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18151 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18152 X"$ac_file" : 'X\(//\)[^/]' \| \
18153 X"$ac_file" : 'X\(//\)$' \| \
18154 X"$ac_file" : 'X\(/\)' \| \
18155 . : '\(.\)' 2>/dev/null ||
18156 echo X"$ac_file" |
18157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18158 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18159 /^X\(\/\/\)$/{ s//\1/; q; }
18160 /^X\(\/\).*/{ s//\1/; q; }
18161 s/.*/./; q'`
18162 { if $as_mkdir_p; then
18163 mkdir -p "$ac_dir"
18164 else
18165 as_dir="$ac_dir"
18166 as_dirs=
18167 while test ! -d "$as_dir"; do
18168 as_dirs="$as_dir $as_dirs"
18169 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18170 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18171 X"$as_dir" : 'X\(//\)[^/]' \| \
18172 X"$as_dir" : 'X\(//\)$' \| \
18173 X"$as_dir" : 'X\(/\)' \| \
18174 . : '\(.\)' 2>/dev/null ||
18175 echo X"$as_dir" |
18176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18177 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18178 /^X\(\/\/\)$/{ s//\1/; q; }
18179 /^X\(\/\).*/{ s//\1/; q; }
18180 s/.*/./; q'`
18181 done
18182 test ! -n "$as_dirs" || mkdir $as_dirs
18183 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18184 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18185 { (exit 1); exit 1; }; }; }
18187 rm -f $ac_file
18188 mv $tmp/config.h $ac_file
18190 else
18191 cat $tmp/config.h
18192 rm -f $tmp/config.h
18194 # Compute $ac_file's index in $config_headers.
18195 _am_stamp_count=1
18196 for _am_header in $config_headers :; do
18197 case $_am_header in
18198 $ac_file | $ac_file:* )
18199 break ;;
18201 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18202 esac
18203 done
18204 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
18205 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18206 X$ac_file : 'X\(//\)[^/]' \| \
18207 X$ac_file : 'X\(//\)$' \| \
18208 X$ac_file : 'X\(/\)' \| \
18209 . : '\(.\)' 2>/dev/null ||
18210 echo X$ac_file |
18211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18212 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18213 /^X\(\/\/\)$/{ s//\1/; q; }
18214 /^X\(\/\).*/{ s//\1/; q; }
18215 s/.*/./; q'`/stamp-h$_am_stamp_count
18216 done
18217 _ACEOF
18218 cat >>$CONFIG_STATUS <<\_ACEOF
18221 # CONFIG_LINKS section.
18224 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18225 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18226 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18228 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18229 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18231 if test ! -r $srcdir/$ac_source; then
18232 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18233 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18234 { (exit 1); exit 1; }; }
18236 rm -f $ac_dest
18238 # Make relative symlinks.
18239 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18240 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18241 X"$ac_dest" : 'X\(//\)[^/]' \| \
18242 X"$ac_dest" : 'X\(//\)$' \| \
18243 X"$ac_dest" : 'X\(/\)' \| \
18244 . : '\(.\)' 2>/dev/null ||
18245 echo X"$ac_dest" |
18246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18247 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18248 /^X\(\/\/\)$/{ s//\1/; q; }
18249 /^X\(\/\).*/{ s//\1/; q; }
18250 s/.*/./; q'`
18251 { if $as_mkdir_p; then
18252 mkdir -p "$ac_dest_dir"
18253 else
18254 as_dir="$ac_dest_dir"
18255 as_dirs=
18256 while test ! -d "$as_dir"; do
18257 as_dirs="$as_dir $as_dirs"
18258 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18259 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18260 X"$as_dir" : 'X\(//\)[^/]' \| \
18261 X"$as_dir" : 'X\(//\)$' \| \
18262 X"$as_dir" : 'X\(/\)' \| \
18263 . : '\(.\)' 2>/dev/null ||
18264 echo X"$as_dir" |
18265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18266 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18267 /^X\(\/\/\)$/{ s//\1/; q; }
18268 /^X\(\/\).*/{ s//\1/; q; }
18269 s/.*/./; q'`
18270 done
18271 test ! -n "$as_dirs" || mkdir $as_dirs
18272 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
18273 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
18274 { (exit 1); exit 1; }; }; }
18276 ac_builddir=.
18278 if test "$ac_dest_dir" != .; then
18279 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18280 # A "../" for each directory in $ac_dir_suffix.
18281 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18282 else
18283 ac_dir_suffix= ac_top_builddir=
18286 case $srcdir in
18287 .) # No --srcdir option. We are building in place.
18288 ac_srcdir=.
18289 if test -z "$ac_top_builddir"; then
18290 ac_top_srcdir=.
18291 else
18292 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18293 fi ;;
18294 [\\/]* | ?:[\\/]* ) # Absolute path.
18295 ac_srcdir=$srcdir$ac_dir_suffix;
18296 ac_top_srcdir=$srcdir ;;
18297 *) # Relative path.
18298 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18299 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18300 esac
18302 # Do not use `cd foo && pwd` to compute absolute paths, because
18303 # the directories may not exist.
18304 case `pwd` in
18305 .) ac_abs_builddir="$ac_dest_dir";;
18307 case "$ac_dest_dir" in
18308 .) ac_abs_builddir=`pwd`;;
18309 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
18310 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
18311 esac;;
18312 esac
18313 case $ac_abs_builddir in
18314 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18316 case ${ac_top_builddir}. in
18317 .) ac_abs_top_builddir=$ac_abs_builddir;;
18318 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18319 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18320 esac;;
18321 esac
18322 case $ac_abs_builddir in
18323 .) ac_abs_srcdir=$ac_srcdir;;
18325 case $ac_srcdir in
18326 .) ac_abs_srcdir=$ac_abs_builddir;;
18327 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18328 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18329 esac;;
18330 esac
18331 case $ac_abs_builddir in
18332 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18334 case $ac_top_srcdir in
18335 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18336 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18337 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18338 esac;;
18339 esac
18342 case $srcdir in
18343 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18344 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18345 esac
18347 # Try a symlink, then a hard link, then a copy.
18348 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18349 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
18350 cp -p $srcdir/$ac_source $ac_dest ||
18351 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
18352 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
18353 { (exit 1); exit 1; }; }
18354 done
18355 _ACEOF
18356 cat >>$CONFIG_STATUS <<\_ACEOF
18359 # CONFIG_COMMANDS section.
18361 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18362 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18363 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18364 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18365 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18366 X"$ac_dest" : 'X\(//\)[^/]' \| \
18367 X"$ac_dest" : 'X\(//\)$' \| \
18368 X"$ac_dest" : 'X\(/\)' \| \
18369 . : '\(.\)' 2>/dev/null ||
18370 echo X"$ac_dest" |
18371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18372 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18373 /^X\(\/\/\)$/{ s//\1/; q; }
18374 /^X\(\/\).*/{ s//\1/; q; }
18375 s/.*/./; q'`
18376 { if $as_mkdir_p; then
18377 mkdir -p "$ac_dir"
18378 else
18379 as_dir="$ac_dir"
18380 as_dirs=
18381 while test ! -d "$as_dir"; do
18382 as_dirs="$as_dir $as_dirs"
18383 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18384 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18385 X"$as_dir" : 'X\(//\)[^/]' \| \
18386 X"$as_dir" : 'X\(//\)$' \| \
18387 X"$as_dir" : 'X\(/\)' \| \
18388 . : '\(.\)' 2>/dev/null ||
18389 echo X"$as_dir" |
18390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18391 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18392 /^X\(\/\/\)$/{ s//\1/; q; }
18393 /^X\(\/\).*/{ s//\1/; q; }
18394 s/.*/./; q'`
18395 done
18396 test ! -n "$as_dirs" || mkdir $as_dirs
18397 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18398 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18399 { (exit 1); exit 1; }; }; }
18401 ac_builddir=.
18403 if test "$ac_dir" != .; then
18404 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18405 # A "../" for each directory in $ac_dir_suffix.
18406 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18407 else
18408 ac_dir_suffix= ac_top_builddir=
18411 case $srcdir in
18412 .) # No --srcdir option. We are building in place.
18413 ac_srcdir=.
18414 if test -z "$ac_top_builddir"; then
18415 ac_top_srcdir=.
18416 else
18417 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18418 fi ;;
18419 [\\/]* | ?:[\\/]* ) # Absolute path.
18420 ac_srcdir=$srcdir$ac_dir_suffix;
18421 ac_top_srcdir=$srcdir ;;
18422 *) # Relative path.
18423 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18424 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18425 esac
18427 # Do not use `cd foo && pwd` to compute absolute paths, because
18428 # the directories may not exist.
18429 case `pwd` in
18430 .) ac_abs_builddir="$ac_dir";;
18432 case "$ac_dir" in
18433 .) ac_abs_builddir=`pwd`;;
18434 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18435 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18436 esac;;
18437 esac
18438 case $ac_abs_builddir in
18439 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18441 case ${ac_top_builddir}. in
18442 .) ac_abs_top_builddir=$ac_abs_builddir;;
18443 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18444 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18445 esac;;
18446 esac
18447 case $ac_abs_builddir in
18448 .) ac_abs_srcdir=$ac_srcdir;;
18450 case $ac_srcdir in
18451 .) ac_abs_srcdir=$ac_abs_builddir;;
18452 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18453 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18454 esac;;
18455 esac
18456 case $ac_abs_builddir in
18457 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18459 case $ac_top_srcdir in
18460 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18461 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18462 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18463 esac;;
18464 esac
18467 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18468 echo "$as_me: executing $ac_dest commands" >&6;}
18469 case $ac_dest in
18470 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18471 # Strip MF so we end up with the name of the file.
18472 mf=`echo "$mf" | sed -e 's/:.*$//'`
18473 # Check whether this is an Automake generated Makefile or not.
18474 # We used to match only the files named `Makefile.in', but
18475 # some people rename them; so instead we look at the file content.
18476 # Grep'ing the first line is not enough: some people post-process
18477 # each Makefile.in and add a new line on top of each file to say so.
18478 # So let's grep whole file.
18479 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18480 dirpart=`(dirname "$mf") 2>/dev/null ||
18481 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18482 X"$mf" : 'X\(//\)[^/]' \| \
18483 X"$mf" : 'X\(//\)$' \| \
18484 X"$mf" : 'X\(/\)' \| \
18485 . : '\(.\)' 2>/dev/null ||
18486 echo X"$mf" |
18487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18488 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18489 /^X\(\/\/\)$/{ s//\1/; q; }
18490 /^X\(\/\).*/{ s//\1/; q; }
18491 s/.*/./; q'`
18492 else
18493 continue
18495 # Extract the definition of DEPDIR, am__include, and am__quote
18496 # from the Makefile without running `make'.
18497 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18498 test -z "$DEPDIR" && continue
18499 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18500 test -z "am__include" && continue
18501 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18502 # When using ansi2knr, U may be empty or an underscore; expand it
18503 U=`sed -n 's/^U = //p' < "$mf"`
18504 # Find all dependency output files, they are included files with
18505 # $(DEPDIR) in their names. We invoke sed twice because it is the
18506 # simplest approach to changing $(DEPDIR) to its actual value in the
18507 # expansion.
18508 for file in `sed -n "
18509 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18510 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18511 # Make sure the directory exists.
18512 test -f "$dirpart/$file" && continue
18513 fdir=`(dirname "$file") 2>/dev/null ||
18514 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18515 X"$file" : 'X\(//\)[^/]' \| \
18516 X"$file" : 'X\(//\)$' \| \
18517 X"$file" : 'X\(/\)' \| \
18518 . : '\(.\)' 2>/dev/null ||
18519 echo X"$file" |
18520 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18521 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18522 /^X\(\/\/\)$/{ s//\1/; q; }
18523 /^X\(\/\).*/{ s//\1/; q; }
18524 s/.*/./; q'`
18525 { if $as_mkdir_p; then
18526 mkdir -p $dirpart/$fdir
18527 else
18528 as_dir=$dirpart/$fdir
18529 as_dirs=
18530 while test ! -d "$as_dir"; do
18531 as_dirs="$as_dir $as_dirs"
18532 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18533 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18534 X"$as_dir" : 'X\(//\)[^/]' \| \
18535 X"$as_dir" : 'X\(//\)$' \| \
18536 X"$as_dir" : 'X\(/\)' \| \
18537 . : '\(.\)' 2>/dev/null ||
18538 echo X"$as_dir" |
18539 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18540 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18541 /^X\(\/\/\)$/{ s//\1/; q; }
18542 /^X\(\/\).*/{ s//\1/; q; }
18543 s/.*/./; q'`
18544 done
18545 test ! -n "$as_dirs" || mkdir $as_dirs
18546 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18547 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18548 { (exit 1); exit 1; }; }; }
18550 # echo "creating $dirpart/$file"
18551 echo '# dummy' > "$dirpart/$file"
18552 done
18553 done
18555 default ) # Only add multilib support code if we just rebuilt top-level Makefile.
18556 case " $CONFIG_FILES " in
18557 *" Makefile "*)
18558 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
18559 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
18561 esac
18562 for ac_multi_file in $CONFIG_FILES; do
18563 case $ac_multi_file in
18564 */Makefile)
18565 grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;;
18566 esac
18567 done
18569 esac
18570 done
18571 _ACEOF
18573 cat >>$CONFIG_STATUS <<\_ACEOF
18575 { (exit 0); exit 0; }
18576 _ACEOF
18577 chmod +x $CONFIG_STATUS
18578 ac_clean_files=$ac_clean_files_save
18581 # configure is writing to config.log, and then calls config.status.
18582 # config.status does its own redirection, appending to config.log.
18583 # Unfortunately, on DOS this fails, as config.log is still kept open
18584 # by configure, so config.status won't be able to write to it; its
18585 # output is simply discarded. So we exec the FD to /dev/null,
18586 # effectively closing config.log, so it can be properly (re)opened and
18587 # appended to by config.status. When coming back to configure, we
18588 # need to make the FD available again.
18589 if test "$no_create" != yes; then
18590 ac_cs_success=:
18591 ac_config_status_args=
18592 test "$silent" = yes &&
18593 ac_config_status_args="$ac_config_status_args --quiet"
18594 exec 5>/dev/null
18595 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18596 exec 5>>config.log
18597 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18598 # would make configure fail if this is the last instruction.
18599 $ac_cs_success || { (exit 1); exit 1; }
18603 # CONFIG_SUBDIRS section.
18605 if test "$no_recursion" != yes; then
18607 # Remove --cache-file and --srcdir arguments so they do not pile up.
18608 ac_sub_configure_args=
18609 ac_prev=
18610 for ac_arg in $ac_configure_args; do
18611 if test -n "$ac_prev"; then
18612 ac_prev=
18613 continue
18615 case $ac_arg in
18616 -cache-file | --cache-file | --cache-fil | --cache-fi \
18617 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18618 ac_prev=cache_file ;;
18619 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18620 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18621 | --c=*)
18623 --config-cache | -C)
18625 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18626 ac_prev=srcdir ;;
18627 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18629 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18630 ac_prev=prefix ;;
18631 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18633 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18634 esac
18635 done
18637 # Always prepend --prefix to ensure using the same prefix
18638 # in subdir configurations.
18639 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
18641 ac_popdir=`pwd`
18642 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18644 # Do not complain, so a configure script can configure whichever
18645 # parts of a large source tree are present.
18646 test -d $srcdir/$ac_dir || continue
18648 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
18649 echo "$as_me: configuring in $ac_dir" >&6;}
18650 { if $as_mkdir_p; then
18651 mkdir -p "$ac_dir"
18652 else
18653 as_dir="$ac_dir"
18654 as_dirs=
18655 while test ! -d "$as_dir"; do
18656 as_dirs="$as_dir $as_dirs"
18657 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18658 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18659 X"$as_dir" : 'X\(//\)[^/]' \| \
18660 X"$as_dir" : 'X\(//\)$' \| \
18661 X"$as_dir" : 'X\(/\)' \| \
18662 . : '\(.\)' 2>/dev/null ||
18663 echo X"$as_dir" |
18664 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18665 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18666 /^X\(\/\/\)$/{ s//\1/; q; }
18667 /^X\(\/\).*/{ s//\1/; q; }
18668 s/.*/./; q'`
18669 done
18670 test ! -n "$as_dirs" || mkdir $as_dirs
18671 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18672 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18673 { (exit 1); exit 1; }; }; }
18675 ac_builddir=.
18677 if test "$ac_dir" != .; then
18678 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18679 # A "../" for each directory in $ac_dir_suffix.
18680 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18681 else
18682 ac_dir_suffix= ac_top_builddir=
18685 case $srcdir in
18686 .) # No --srcdir option. We are building in place.
18687 ac_srcdir=.
18688 if test -z "$ac_top_builddir"; then
18689 ac_top_srcdir=.
18690 else
18691 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18692 fi ;;
18693 [\\/]* | ?:[\\/]* ) # Absolute path.
18694 ac_srcdir=$srcdir$ac_dir_suffix;
18695 ac_top_srcdir=$srcdir ;;
18696 *) # Relative path.
18697 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18698 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18699 esac
18701 # Do not use `cd foo && pwd` to compute absolute paths, because
18702 # the directories may not exist.
18703 case `pwd` in
18704 .) ac_abs_builddir="$ac_dir";;
18706 case "$ac_dir" in
18707 .) ac_abs_builddir=`pwd`;;
18708 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18709 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18710 esac;;
18711 esac
18712 case $ac_abs_builddir in
18713 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18715 case ${ac_top_builddir}. in
18716 .) ac_abs_top_builddir=$ac_abs_builddir;;
18717 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18718 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18719 esac;;
18720 esac
18721 case $ac_abs_builddir in
18722 .) ac_abs_srcdir=$ac_srcdir;;
18724 case $ac_srcdir in
18725 .) ac_abs_srcdir=$ac_abs_builddir;;
18726 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18727 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18728 esac;;
18729 esac
18730 case $ac_abs_builddir in
18731 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18733 case $ac_top_srcdir in
18734 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18735 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18736 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18737 esac;;
18738 esac
18741 cd $ac_dir
18743 # Check for guested configure; otherwise get Cygnus style configure.
18744 if test -f $ac_srcdir/configure.gnu; then
18745 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
18746 elif test -f $ac_srcdir/configure; then
18747 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
18748 elif test -f $ac_srcdir/configure.in; then
18749 ac_sub_configure=$ac_configure
18750 else
18751 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
18752 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18753 ac_sub_configure=
18756 # The recursion is here.
18757 if test -n "$ac_sub_configure"; then
18758 # Make the cache file name correct relative to the subdirectory.
18759 case $cache_file in
18760 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18761 *) # Relative path.
18762 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
18763 esac
18765 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
18766 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18767 # The eval makes quoting arguments work.
18768 eval $ac_sub_configure $ac_sub_configure_args \
18769 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
18770 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
18771 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
18772 { (exit 1); exit 1; }; }
18775 cd $ac_popdir
18776 done