2005-12-29 Paul Brook <paul@codesourcery.com>
[official-gcc.git] / libjava / configure
blob9d84e3043cefe3aa58fd92ca840487c84d540735
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 QT_AWT_TRUE QT_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 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
879 _g_switchUse thread-local storage
880 [default=yes]
882 Optional Packages:
883 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
884 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
885 --with-target-subdir=SUBDIR
886 configure in a subdirectory
887 --with-cross-host=HOST configure with a cross compiler from HOST
888 --with-newlib configure with newlib
889 --with-gnu-ld assume the C compiler uses GNU ld default=no
890 --with-pic try to use only PIC/non-PIC objects default=use both
891 --with-java-home=DIRECTORY
892 value of java.home system property
893 --with-win32-nlsapi=ansi or unicows or unicode
894 native MinGW libgcj Win32 OS API (default is ansi)
895 --without-libffi don't use libffi
896 --with-ecos enable runtime eCos target support
897 --with-system-zlib use installed libz
898 --with-x use the X Window System
899 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
900 --without-libiconv-prefix don't search for libiconv in includedir and libdir
902 Some influential environment variables:
903 CC C compiler command
904 CFLAGS C compiler flags
905 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
906 nonstandard directory <lib dir>
907 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
908 headers in a nonstandard directory <include dir>
909 CXX C++ compiler command
910 CXXFLAGS C++ compiler flags
911 CXXCPP C++ preprocessor
912 CPP C preprocessor
914 Use these variables to override the choices made by `configure' or to help
915 it to find libraries and programs with nonstandard names/locations.
917 _ACEOF
920 if test "$ac_init_help" = "recursive"; then
921 # If there are subdirs, report their specific --help.
922 ac_popdir=`pwd`
923 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
924 test -d $ac_dir || continue
925 ac_builddir=.
927 if test "$ac_dir" != .; then
928 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
929 # A "../" for each directory in $ac_dir_suffix.
930 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
931 else
932 ac_dir_suffix= ac_top_builddir=
935 case $srcdir in
936 .) # No --srcdir option. We are building in place.
937 ac_srcdir=.
938 if test -z "$ac_top_builddir"; then
939 ac_top_srcdir=.
940 else
941 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
942 fi ;;
943 [\\/]* | ?:[\\/]* ) # Absolute path.
944 ac_srcdir=$srcdir$ac_dir_suffix;
945 ac_top_srcdir=$srcdir ;;
946 *) # Relative path.
947 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
948 ac_top_srcdir=$ac_top_builddir$srcdir ;;
949 esac
951 # Do not use `cd foo && pwd` to compute absolute paths, because
952 # the directories may not exist.
953 case `pwd` in
954 .) ac_abs_builddir="$ac_dir";;
956 case "$ac_dir" in
957 .) ac_abs_builddir=`pwd`;;
958 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
959 *) ac_abs_builddir=`pwd`/"$ac_dir";;
960 esac;;
961 esac
962 case $ac_abs_builddir in
963 .) ac_abs_top_builddir=${ac_top_builddir}.;;
965 case ${ac_top_builddir}. in
966 .) ac_abs_top_builddir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
968 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
969 esac;;
970 esac
971 case $ac_abs_builddir in
972 .) ac_abs_srcdir=$ac_srcdir;;
974 case $ac_srcdir in
975 .) ac_abs_srcdir=$ac_abs_builddir;;
976 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
977 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
978 esac;;
979 esac
980 case $ac_abs_builddir in
981 .) ac_abs_top_srcdir=$ac_top_srcdir;;
983 case $ac_top_srcdir in
984 .) ac_abs_top_srcdir=$ac_abs_builddir;;
985 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
986 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
987 esac;;
988 esac
990 cd $ac_dir
991 # Check for guested configure; otherwise get Cygnus style configure.
992 if test -f $ac_srcdir/configure.gnu; then
993 echo
994 $SHELL $ac_srcdir/configure.gnu --help=recursive
995 elif test -f $ac_srcdir/configure; then
996 echo
997 $SHELL $ac_srcdir/configure --help=recursive
998 elif test -f $ac_srcdir/configure.ac ||
999 test -f $ac_srcdir/configure.in; then
1000 echo
1001 $ac_configure --help
1002 else
1003 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1005 cd $ac_popdir
1006 done
1009 test -n "$ac_init_help" && exit 0
1010 if $ac_init_version; then
1011 cat <<\_ACEOF
1012 libjava configure version-unused
1013 generated by GNU Autoconf 2.59
1015 Copyright (C) 2003 Free Software Foundation, Inc.
1016 This configure script is free software; the Free Software Foundation
1017 gives unlimited permission to copy, distribute and modify it.
1018 _ACEOF
1019 exit 0
1021 exec 5>config.log
1022 cat >&5 <<_ACEOF
1023 This file contains any messages produced by compilers while
1024 running configure, to aid debugging if configure makes a mistake.
1026 It was created by libjava $as_me version-unused, which was
1027 generated by GNU Autoconf 2.59. Invocation command line was
1029 $ $0 $@
1031 _ACEOF
1033 cat <<_ASUNAME
1034 ## --------- ##
1035 ## Platform. ##
1036 ## --------- ##
1038 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1039 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1040 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1041 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1042 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1044 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1045 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1047 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1048 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1049 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1050 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1051 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1052 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1053 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1055 _ASUNAME
1057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1058 for as_dir in $PATH
1060 IFS=$as_save_IFS
1061 test -z "$as_dir" && as_dir=.
1062 echo "PATH: $as_dir"
1063 done
1065 } >&5
1067 cat >&5 <<_ACEOF
1070 ## ----------- ##
1071 ## Core tests. ##
1072 ## ----------- ##
1074 _ACEOF
1077 # Keep a trace of the command line.
1078 # Strip out --no-create and --no-recursion so they do not pile up.
1079 # Strip out --silent because we don't want to record it for future runs.
1080 # Also quote any args containing shell meta-characters.
1081 # Make two passes to allow for proper duplicate-argument suppression.
1082 ac_configure_args=
1083 ac_configure_args0=
1084 ac_configure_args1=
1085 ac_sep=
1086 ac_must_keep_next=false
1087 for ac_pass in 1 2
1089 for ac_arg
1091 case $ac_arg in
1092 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1094 | -silent | --silent | --silen | --sile | --sil)
1095 continue ;;
1096 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1097 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1098 esac
1099 case $ac_pass in
1100 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1102 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1103 if test $ac_must_keep_next = true; then
1104 ac_must_keep_next=false # Got value, back to normal.
1105 else
1106 case $ac_arg in
1107 *=* | --config-cache | -C | -disable-* | --disable-* \
1108 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1109 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1110 | -with-* | --with-* | -without-* | --without-* | --x)
1111 case "$ac_configure_args0 " in
1112 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1113 esac
1115 -* ) ac_must_keep_next=true ;;
1116 esac
1118 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1119 # Get rid of the leading space.
1120 ac_sep=" "
1122 esac
1123 done
1124 done
1125 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1126 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1128 # When interrupted or exit'd, cleanup temporary files, and complete
1129 # config.log. We remove comments because anyway the quotes in there
1130 # would cause problems or look ugly.
1131 # WARNING: Be sure not to use single quotes in there, as some shells,
1132 # such as our DU 5.0 friend, will then `close' the trap.
1133 trap 'exit_status=$?
1134 # Save into config.log some information that might help in debugging.
1136 echo
1138 cat <<\_ASBOX
1139 ## ---------------- ##
1140 ## Cache variables. ##
1141 ## ---------------- ##
1142 _ASBOX
1143 echo
1144 # The following way of writing the cache mishandles newlines in values,
1146 (set) 2>&1 |
1147 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1148 *ac_space=\ *)
1149 sed -n \
1150 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1151 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1154 sed -n \
1155 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1157 esac;
1159 echo
1161 cat <<\_ASBOX
1162 ## ----------------- ##
1163 ## Output variables. ##
1164 ## ----------------- ##
1165 _ASBOX
1166 echo
1167 for ac_var in $ac_subst_vars
1169 eval ac_val=$`echo $ac_var`
1170 echo "$ac_var='"'"'$ac_val'"'"'"
1171 done | sort
1172 echo
1174 if test -n "$ac_subst_files"; then
1175 cat <<\_ASBOX
1176 ## ------------- ##
1177 ## Output files. ##
1178 ## ------------- ##
1179 _ASBOX
1180 echo
1181 for ac_var in $ac_subst_files
1183 eval ac_val=$`echo $ac_var`
1184 echo "$ac_var='"'"'$ac_val'"'"'"
1185 done | sort
1186 echo
1189 if test -s confdefs.h; then
1190 cat <<\_ASBOX
1191 ## ----------- ##
1192 ## confdefs.h. ##
1193 ## ----------- ##
1194 _ASBOX
1195 echo
1196 sed "/^$/d" confdefs.h | sort
1197 echo
1199 test "$ac_signal" != 0 &&
1200 echo "$as_me: caught signal $ac_signal"
1201 echo "$as_me: exit $exit_status"
1202 } >&5
1203 rm -f core *.core &&
1204 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1205 exit $exit_status
1207 for ac_signal in 1 2 13 15; do
1208 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1209 done
1210 ac_signal=0
1212 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1213 rm -rf conftest* confdefs.h
1214 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1215 echo >confdefs.h
1217 # Predefined preprocessor variables.
1219 cat >>confdefs.h <<_ACEOF
1220 #define PACKAGE_NAME "$PACKAGE_NAME"
1221 _ACEOF
1224 cat >>confdefs.h <<_ACEOF
1225 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1226 _ACEOF
1229 cat >>confdefs.h <<_ACEOF
1230 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1231 _ACEOF
1234 cat >>confdefs.h <<_ACEOF
1235 #define PACKAGE_STRING "$PACKAGE_STRING"
1236 _ACEOF
1239 cat >>confdefs.h <<_ACEOF
1240 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1241 _ACEOF
1244 # Let the site file select an alternate cache file if it wants to.
1245 # Prefer explicitly selected file to automatically selected ones.
1246 if test -z "$CONFIG_SITE"; then
1247 if test "x$prefix" != xNONE; then
1248 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1249 else
1250 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1253 for ac_site_file in $CONFIG_SITE; do
1254 if test -r "$ac_site_file"; then
1255 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1256 echo "$as_me: loading site script $ac_site_file" >&6;}
1257 sed 's/^/| /' "$ac_site_file" >&5
1258 . "$ac_site_file"
1260 done
1262 if test -r "$cache_file"; then
1263 # Some versions of bash will fail to source /dev/null (special
1264 # files actually), so we avoid doing that.
1265 if test -f "$cache_file"; then
1266 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1267 echo "$as_me: loading cache $cache_file" >&6;}
1268 case $cache_file in
1269 [\\/]* | ?:[\\/]* ) . $cache_file;;
1270 *) . ./$cache_file;;
1271 esac
1273 else
1274 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1275 echo "$as_me: creating cache $cache_file" >&6;}
1276 >$cache_file
1279 # Check that the precious variables saved in the cache have kept the same
1280 # value.
1281 ac_cache_corrupted=false
1282 for ac_var in `(set) 2>&1 |
1283 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1284 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1285 eval ac_new_set=\$ac_env_${ac_var}_set
1286 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1287 eval ac_new_val="\$ac_env_${ac_var}_value"
1288 case $ac_old_set,$ac_new_set in
1289 set,)
1290 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1291 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1292 ac_cache_corrupted=: ;;
1293 ,set)
1294 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1295 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1296 ac_cache_corrupted=: ;;
1297 ,);;
1299 if test "x$ac_old_val" != "x$ac_new_val"; then
1300 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1301 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1302 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1303 echo "$as_me: former value: $ac_old_val" >&2;}
1304 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1305 echo "$as_me: current value: $ac_new_val" >&2;}
1306 ac_cache_corrupted=:
1307 fi;;
1308 esac
1309 # Pass precious variables to config.status.
1310 if test "$ac_new_set" = set; then
1311 case $ac_new_val in
1312 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1313 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1314 *) ac_arg=$ac_var=$ac_new_val ;;
1315 esac
1316 case " $ac_configure_args " in
1317 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1318 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1319 esac
1321 done
1322 if $ac_cache_corrupted; then
1323 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1324 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1325 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1326 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1327 { (exit 1); exit 1; }; }
1330 ac_ext=c
1331 ac_cpp='$CPP $CPPFLAGS'
1332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1365 ac_aux_dir=
1366 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1367 if test -f $ac_dir/install-sh; then
1368 ac_aux_dir=$ac_dir
1369 ac_install_sh="$ac_aux_dir/install-sh -c"
1370 break
1371 elif test -f $ac_dir/install.sh; then
1372 ac_aux_dir=$ac_dir
1373 ac_install_sh="$ac_aux_dir/install.sh -c"
1374 break
1375 elif test -f $ac_dir/shtool; then
1376 ac_aux_dir=$ac_dir
1377 ac_install_sh="$ac_aux_dir/shtool install -c"
1378 break
1380 done
1381 if test -z "$ac_aux_dir"; then
1382 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1383 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1384 { (exit 1); exit 1; }; }
1386 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1387 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1388 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1390 # Make sure we can run config.sub.
1391 $ac_config_sub sun4 >/dev/null 2>&1 ||
1392 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1393 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1394 { (exit 1); exit 1; }; }
1396 echo "$as_me:$LINENO: checking build system type" >&5
1397 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1398 if test "${ac_cv_build+set}" = set; then
1399 echo $ECHO_N "(cached) $ECHO_C" >&6
1400 else
1401 ac_cv_build_alias=$build_alias
1402 test -z "$ac_cv_build_alias" &&
1403 ac_cv_build_alias=`$ac_config_guess`
1404 test -z "$ac_cv_build_alias" &&
1405 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1406 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1407 { (exit 1); exit 1; }; }
1408 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1409 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1410 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1411 { (exit 1); exit 1; }; }
1414 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1415 echo "${ECHO_T}$ac_cv_build" >&6
1416 build=$ac_cv_build
1417 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1418 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1419 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1422 case ${build_alias} in
1423 "") build_noncanonical=${build} ;;
1424 *) build_noncanonical=${build_alias} ;;
1425 esac
1427 case ${host_alias} in
1428 "") host_noncanonical=${build_noncanonical} ;;
1429 *) host_noncanonical=${host_alias} ;;
1430 esac
1432 case ${target_alias} in
1433 "") target_noncanonical=${host_noncanonical} ;;
1434 *) target_noncanonical=${target_alias} ;;
1435 esac
1437 # Prefix 'build-' so this never conflicts with target_subdir.
1438 build_subdir="build-${build_noncanonical}"
1439 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1440 if ( test $srcdir = . && test -d gcc ) \
1441 || test -d $srcdir/../host-${host_noncanonical}; then
1442 host_subdir="host-${host_noncanonical}"
1443 else
1444 host_subdir=.
1446 # No prefix.
1447 target_subdir=${target_noncanonical}
1450 # We use these options to decide which functions to include.
1452 # Check whether --with-target-subdir or --without-target-subdir was given.
1453 if test "${with_target_subdir+set}" = set; then
1454 withval="$with_target_subdir"
1458 # We may get other options which we don't document:
1459 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1461 # When building with srcdir == objdir, links to the source files will
1462 # be created in directories within the target_subdir. We have to
1463 # adjust toplevel_srcdir accordingly, so that configure finds
1464 # install-sh and other auxiliary files that live in the top-level
1465 # source directory.
1466 if test "${srcdir}" = "."; then
1467 if test -z "${with_target_subdir}"; then
1468 toprel=".."
1469 else
1470 if test "${with_target_subdir}" != "."; then
1471 toprel="${with_multisrctop}../.."
1472 else
1473 toprel="${with_multisrctop}.."
1476 else
1477 toprel=".."
1480 libgcj_basedir=$srcdir/$toprel/./libjava
1483 echo "$as_me:$LINENO: checking host system type" >&5
1484 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1485 if test "${ac_cv_host+set}" = set; then
1486 echo $ECHO_N "(cached) $ECHO_C" >&6
1487 else
1488 ac_cv_host_alias=$host_alias
1489 test -z "$ac_cv_host_alias" &&
1490 ac_cv_host_alias=$ac_cv_build_alias
1491 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1492 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1493 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1494 { (exit 1); exit 1; }; }
1497 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1498 echo "${ECHO_T}$ac_cv_host" >&6
1499 host=$ac_cv_host
1500 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1501 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1502 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1505 echo "$as_me:$LINENO: checking target system type" >&5
1506 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1507 if test "${ac_cv_target+set}" = set; then
1508 echo $ECHO_N "(cached) $ECHO_C" >&6
1509 else
1510 ac_cv_target_alias=$target_alias
1511 test "x$ac_cv_target_alias" = "x" &&
1512 ac_cv_target_alias=$ac_cv_host_alias
1513 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1514 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1515 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1516 { (exit 1); exit 1; }; }
1519 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1520 echo "${ECHO_T}$ac_cv_target" >&6
1521 target=$ac_cv_target
1522 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1523 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1524 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1527 # The aliases save the names the user supplied, while $host etc.
1528 # will get canonicalized.
1529 test -n "$target_alias" &&
1530 test "$program_prefix$program_suffix$program_transform_name" = \
1531 NONENONEs,x,x, &&
1532 program_prefix=${target_alias}-
1533 case ${build_alias} in
1534 "") build_noncanonical=${build} ;;
1535 *) build_noncanonical=${build_alias} ;;
1536 esac
1538 case ${target_alias} in
1539 "") target_noncanonical=${host_noncanonical} ;;
1540 *) target_noncanonical=${target_alias} ;;
1541 esac
1546 # This works around the fact that libtool configuration may change LD
1547 # for this particular configuration, but some shells, instead of
1548 # keeping the changes in LD private, export them just because LD is
1549 # exported.
1550 ORIGINAL_LD_FOR_MULTILIBS=$LD
1552 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1553 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1554 LN_S=$as_ln_s
1555 if test "$LN_S" = "ln -s"; then
1556 echo "$as_me:$LINENO: result: yes" >&5
1557 echo "${ECHO_T}yes" >&6
1558 else
1559 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1560 echo "${ECHO_T}no, using $LN_S" >&6
1564 # This works around an automake problem.
1565 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1569 # Check whether --with-cross-host or --without-cross-host was given.
1570 if test "${with_cross_host+set}" = set; then
1571 withval="$with_cross_host"
1576 # Check whether --with-newlib or --without-newlib was given.
1577 if test "${with_newlib+set}" = set; then
1578 withval="$with_newlib"
1582 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1583 if test "${enable_version_specific_runtime_libs+set}" = set; then
1584 enableval="$enable_version_specific_runtime_libs"
1585 case "$enableval" in
1586 yes) version_specific_libs=yes ;;
1587 no) version_specific_libs=no ;;
1588 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1589 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1590 { (exit 1); exit 1; }; };;
1591 esac
1592 else
1593 version_specific_libs=no
1597 # Default to --enable-multilib
1598 # Check whether --enable-multilib or --disable-multilib was given.
1599 if test "${enable_multilib+set}" = set; then
1600 enableval="$enable_multilib"
1601 case "${enableval}" in
1602 yes) multilib=yes ;;
1603 no) multilib=no ;;
1604 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1605 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1606 { (exit 1); exit 1; }; } ;;
1607 esac
1608 else
1609 multilib=yes
1611 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1614 # (1) We use an abnormal CXX (without library references), so we
1615 # must cache it under a different name.
1616 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1617 # the non-multilib-adjusted value will be used in multilibs.
1618 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1619 # (4) As another side effect, automake doesn't automatically include them
1620 # in Makefile.in.
1621 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1622 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1623 # used in later tests. This may not be necessary in libjava; I don't know.
1627 save_CXXFLAGS="$CXXFLAGS"
1628 CXXFLAGS="$CXXFLAGS -fno-builtin"
1629 ac_ext=c
1630 ac_cpp='$CPP $CPPFLAGS'
1631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1634 if test -n "$ac_tool_prefix"; then
1635 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1636 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1637 echo "$as_me:$LINENO: checking for $ac_word" >&5
1638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1639 if test "${ac_cv_prog_CC+set}" = set; then
1640 echo $ECHO_N "(cached) $ECHO_C" >&6
1641 else
1642 if test -n "$CC"; then
1643 ac_cv_prog_CC="$CC" # Let the user override the test.
1644 else
1645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646 for as_dir in $PATH
1648 IFS=$as_save_IFS
1649 test -z "$as_dir" && as_dir=.
1650 for ac_exec_ext in '' $ac_executable_extensions; do
1651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1652 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1654 break 2
1656 done
1657 done
1661 CC=$ac_cv_prog_CC
1662 if test -n "$CC"; then
1663 echo "$as_me:$LINENO: result: $CC" >&5
1664 echo "${ECHO_T}$CC" >&6
1665 else
1666 echo "$as_me:$LINENO: result: no" >&5
1667 echo "${ECHO_T}no" >&6
1671 if test -z "$ac_cv_prog_CC"; then
1672 ac_ct_CC=$CC
1673 # Extract the first word of "gcc", so it can be a program name with args.
1674 set dummy gcc; ac_word=$2
1675 echo "$as_me:$LINENO: checking for $ac_word" >&5
1676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1677 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1678 echo $ECHO_N "(cached) $ECHO_C" >&6
1679 else
1680 if test -n "$ac_ct_CC"; then
1681 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1682 else
1683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1684 for as_dir in $PATH
1686 IFS=$as_save_IFS
1687 test -z "$as_dir" && as_dir=.
1688 for ac_exec_ext in '' $ac_executable_extensions; do
1689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1690 ac_cv_prog_ac_ct_CC="gcc"
1691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1692 break 2
1694 done
1695 done
1699 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1700 if test -n "$ac_ct_CC"; then
1701 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1702 echo "${ECHO_T}$ac_ct_CC" >&6
1703 else
1704 echo "$as_me:$LINENO: result: no" >&5
1705 echo "${ECHO_T}no" >&6
1708 CC=$ac_ct_CC
1709 else
1710 CC="$ac_cv_prog_CC"
1713 if test -z "$CC"; then
1714 if test -n "$ac_tool_prefix"; then
1715 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1716 set dummy ${ac_tool_prefix}cc; ac_word=$2
1717 echo "$as_me:$LINENO: checking for $ac_word" >&5
1718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1719 if test "${ac_cv_prog_CC+set}" = set; then
1720 echo $ECHO_N "(cached) $ECHO_C" >&6
1721 else
1722 if test -n "$CC"; then
1723 ac_cv_prog_CC="$CC" # Let the user override the test.
1724 else
1725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1726 for as_dir in $PATH
1728 IFS=$as_save_IFS
1729 test -z "$as_dir" && as_dir=.
1730 for ac_exec_ext in '' $ac_executable_extensions; do
1731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1732 ac_cv_prog_CC="${ac_tool_prefix}cc"
1733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1734 break 2
1736 done
1737 done
1741 CC=$ac_cv_prog_CC
1742 if test -n "$CC"; then
1743 echo "$as_me:$LINENO: result: $CC" >&5
1744 echo "${ECHO_T}$CC" >&6
1745 else
1746 echo "$as_me:$LINENO: result: no" >&5
1747 echo "${ECHO_T}no" >&6
1751 if test -z "$ac_cv_prog_CC"; then
1752 ac_ct_CC=$CC
1753 # Extract the first word of "cc", so it can be a program name with args.
1754 set dummy cc; ac_word=$2
1755 echo "$as_me:$LINENO: checking for $ac_word" >&5
1756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1757 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1758 echo $ECHO_N "(cached) $ECHO_C" >&6
1759 else
1760 if test -n "$ac_ct_CC"; then
1761 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1762 else
1763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1764 for as_dir in $PATH
1766 IFS=$as_save_IFS
1767 test -z "$as_dir" && as_dir=.
1768 for ac_exec_ext in '' $ac_executable_extensions; do
1769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1770 ac_cv_prog_ac_ct_CC="cc"
1771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1772 break 2
1774 done
1775 done
1779 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1780 if test -n "$ac_ct_CC"; then
1781 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1782 echo "${ECHO_T}$ac_ct_CC" >&6
1783 else
1784 echo "$as_me:$LINENO: result: no" >&5
1785 echo "${ECHO_T}no" >&6
1788 CC=$ac_ct_CC
1789 else
1790 CC="$ac_cv_prog_CC"
1794 if test -z "$CC"; then
1795 # Extract the first word of "cc", so it can be a program name with args.
1796 set dummy cc; ac_word=$2
1797 echo "$as_me:$LINENO: checking for $ac_word" >&5
1798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1799 if test "${ac_cv_prog_CC+set}" = set; then
1800 echo $ECHO_N "(cached) $ECHO_C" >&6
1801 else
1802 if test -n "$CC"; then
1803 ac_cv_prog_CC="$CC" # Let the user override the test.
1804 else
1805 ac_prog_rejected=no
1806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1807 for as_dir in $PATH
1809 IFS=$as_save_IFS
1810 test -z "$as_dir" && as_dir=.
1811 for ac_exec_ext in '' $ac_executable_extensions; do
1812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1813 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1814 ac_prog_rejected=yes
1815 continue
1817 ac_cv_prog_CC="cc"
1818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1819 break 2
1821 done
1822 done
1824 if test $ac_prog_rejected = yes; then
1825 # We found a bogon in the path, so make sure we never use it.
1826 set dummy $ac_cv_prog_CC
1827 shift
1828 if test $# != 0; then
1829 # We chose a different compiler from the bogus one.
1830 # However, it has the same basename, so the bogon will be chosen
1831 # first if we set CC to just the basename; use the full file name.
1832 shift
1833 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1838 CC=$ac_cv_prog_CC
1839 if test -n "$CC"; then
1840 echo "$as_me:$LINENO: result: $CC" >&5
1841 echo "${ECHO_T}$CC" >&6
1842 else
1843 echo "$as_me:$LINENO: result: no" >&5
1844 echo "${ECHO_T}no" >&6
1848 if test -z "$CC"; then
1849 if test -n "$ac_tool_prefix"; then
1850 for ac_prog in cl
1852 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1853 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1854 echo "$as_me:$LINENO: checking for $ac_word" >&5
1855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1856 if test "${ac_cv_prog_CC+set}" = set; then
1857 echo $ECHO_N "(cached) $ECHO_C" >&6
1858 else
1859 if test -n "$CC"; then
1860 ac_cv_prog_CC="$CC" # Let the user override the test.
1861 else
1862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1863 for as_dir in $PATH
1865 IFS=$as_save_IFS
1866 test -z "$as_dir" && as_dir=.
1867 for ac_exec_ext in '' $ac_executable_extensions; do
1868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1869 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1871 break 2
1873 done
1874 done
1878 CC=$ac_cv_prog_CC
1879 if test -n "$CC"; then
1880 echo "$as_me:$LINENO: result: $CC" >&5
1881 echo "${ECHO_T}$CC" >&6
1882 else
1883 echo "$as_me:$LINENO: result: no" >&5
1884 echo "${ECHO_T}no" >&6
1887 test -n "$CC" && break
1888 done
1890 if test -z "$CC"; then
1891 ac_ct_CC=$CC
1892 for ac_prog in cl
1894 # Extract the first word of "$ac_prog", so it can be a program name with args.
1895 set dummy $ac_prog; ac_word=$2
1896 echo "$as_me:$LINENO: checking for $ac_word" >&5
1897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1898 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1899 echo $ECHO_N "(cached) $ECHO_C" >&6
1900 else
1901 if test -n "$ac_ct_CC"; then
1902 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1903 else
1904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1905 for as_dir in $PATH
1907 IFS=$as_save_IFS
1908 test -z "$as_dir" && as_dir=.
1909 for ac_exec_ext in '' $ac_executable_extensions; do
1910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1911 ac_cv_prog_ac_ct_CC="$ac_prog"
1912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1913 break 2
1915 done
1916 done
1920 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1921 if test -n "$ac_ct_CC"; then
1922 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1923 echo "${ECHO_T}$ac_ct_CC" >&6
1924 else
1925 echo "$as_me:$LINENO: result: no" >&5
1926 echo "${ECHO_T}no" >&6
1929 test -n "$ac_ct_CC" && break
1930 done
1932 CC=$ac_ct_CC
1938 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1939 See \`config.log' for more details." >&5
1940 echo "$as_me: error: no acceptable C compiler found in \$PATH
1941 See \`config.log' for more details." >&2;}
1942 { (exit 1); exit 1; }; }
1944 # Provide some information about the compiler.
1945 echo "$as_me:$LINENO:" \
1946 "checking for C compiler version" >&5
1947 ac_compiler=`set X $ac_compile; echo $2`
1948 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1949 (eval $ac_compiler --version </dev/null >&5) 2>&5
1950 ac_status=$?
1951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1952 (exit $ac_status); }
1953 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1954 (eval $ac_compiler -v </dev/null >&5) 2>&5
1955 ac_status=$?
1956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1957 (exit $ac_status); }
1958 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1959 (eval $ac_compiler -V </dev/null >&5) 2>&5
1960 ac_status=$?
1961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1962 (exit $ac_status); }
1964 cat >conftest.$ac_ext <<_ACEOF
1965 /* confdefs.h. */
1966 _ACEOF
1967 cat confdefs.h >>conftest.$ac_ext
1968 cat >>conftest.$ac_ext <<_ACEOF
1969 /* end confdefs.h. */
1972 main ()
1976 return 0;
1978 _ACEOF
1979 # FIXME: Cleanup?
1980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1981 (eval $ac_link) 2>&5
1982 ac_status=$?
1983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1984 (exit $ac_status); }; then
1985 gcc_no_link=no
1986 else
1987 gcc_no_link=yes
1990 if test x$gcc_no_link = xyes; then
1991 # Setting cross_compile will disable run tests; it will
1992 # also disable AC_CHECK_FILE but that's generally
1993 # correct if we can't link.
1994 cross_compiling=yes
1995 EXEEXT=
1996 else
1997 cat >conftest.$ac_ext <<_ACEOF
1998 /* confdefs.h. */
1999 _ACEOF
2000 cat confdefs.h >>conftest.$ac_ext
2001 cat >>conftest.$ac_ext <<_ACEOF
2002 /* end confdefs.h. */
2005 main ()
2009 return 0;
2011 _ACEOF
2012 ac_clean_files_save=$ac_clean_files
2013 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2014 # Try to create an executable without -o first, disregard a.out.
2015 # It will help us diagnose broken compilers, and finding out an intuition
2016 # of exeext.
2017 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2018 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2019 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2020 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2021 (eval $ac_link_default) 2>&5
2022 ac_status=$?
2023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024 (exit $ac_status); }; then
2025 # Find the output, starting from the most likely. This scheme is
2026 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2027 # resort.
2029 # Be careful to initialize this variable, since it used to be cached.
2030 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2031 ac_cv_exeext=
2032 # b.out is created by i960 compilers.
2033 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2035 test -f "$ac_file" || continue
2036 case $ac_file in
2037 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2039 conftest.$ac_ext )
2040 # This is the source file.
2042 [ab].out )
2043 # We found the default executable, but exeext='' is most
2044 # certainly right.
2045 break;;
2046 *.* )
2047 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2048 # FIXME: I believe we export ac_cv_exeext for Libtool,
2049 # but it would be cool to find out if it's true. Does anybody
2050 # maintain Libtool? --akim.
2051 export ac_cv_exeext
2052 break;;
2054 break;;
2055 esac
2056 done
2057 else
2058 echo "$as_me: failed program was:" >&5
2059 sed 's/^/| /' conftest.$ac_ext >&5
2061 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2062 See \`config.log' for more details." >&5
2063 echo "$as_me: error: C compiler cannot create executables
2064 See \`config.log' for more details." >&2;}
2065 { (exit 77); exit 77; }; }
2068 ac_exeext=$ac_cv_exeext
2069 echo "$as_me:$LINENO: result: $ac_file" >&5
2070 echo "${ECHO_T}$ac_file" >&6
2072 # Check the compiler produces executables we can run. If not, either
2073 # the compiler is broken, or we cross compile.
2074 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2075 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2076 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2077 # If not cross compiling, check that we can run a simple program.
2078 if test "$cross_compiling" != yes; then
2079 if { ac_try='./$ac_file'
2080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2081 (eval $ac_try) 2>&5
2082 ac_status=$?
2083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084 (exit $ac_status); }; }; then
2085 cross_compiling=no
2086 else
2087 if test "$cross_compiling" = maybe; then
2088 cross_compiling=yes
2089 else
2090 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2091 If you meant to cross compile, use \`--host'.
2092 See \`config.log' for more details." >&5
2093 echo "$as_me: error: cannot run C compiled programs.
2094 If you meant to cross compile, use \`--host'.
2095 See \`config.log' for more details." >&2;}
2096 { (exit 1); exit 1; }; }
2100 echo "$as_me:$LINENO: result: yes" >&5
2101 echo "${ECHO_T}yes" >&6
2103 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2104 ac_clean_files=$ac_clean_files_save
2105 # Check the compiler produces executables we can run. If not, either
2106 # the compiler is broken, or we cross compile.
2107 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2108 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2109 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2110 echo "${ECHO_T}$cross_compiling" >&6
2112 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2113 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2115 (eval $ac_link) 2>&5
2116 ac_status=$?
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }; then
2119 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2120 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2121 # work properly (i.e., refer to `conftest.exe'), while it won't with
2122 # `rm'.
2123 for ac_file in conftest.exe conftest conftest.*; do
2124 test -f "$ac_file" || continue
2125 case $ac_file in
2126 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2127 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2128 export ac_cv_exeext
2129 break;;
2130 * ) break;;
2131 esac
2132 done
2133 else
2134 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2135 See \`config.log' for more details." >&5
2136 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2137 See \`config.log' for more details." >&2;}
2138 { (exit 1); exit 1; }; }
2141 rm -f conftest$ac_cv_exeext
2142 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2143 echo "${ECHO_T}$ac_cv_exeext" >&6
2145 rm -f conftest.$ac_ext
2146 EXEEXT=$ac_cv_exeext
2147 ac_exeext=$EXEEXT
2149 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2150 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2151 if test "${ac_cv_objext+set}" = set; then
2152 echo $ECHO_N "(cached) $ECHO_C" >&6
2153 else
2154 cat >conftest.$ac_ext <<_ACEOF
2155 /* confdefs.h. */
2156 _ACEOF
2157 cat confdefs.h >>conftest.$ac_ext
2158 cat >>conftest.$ac_ext <<_ACEOF
2159 /* end confdefs.h. */
2162 main ()
2166 return 0;
2168 _ACEOF
2169 rm -f conftest.o conftest.obj
2170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2171 (eval $ac_compile) 2>&5
2172 ac_status=$?
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }; then
2175 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2176 case $ac_file in
2177 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2178 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2179 break;;
2180 esac
2181 done
2182 else
2183 echo "$as_me: failed program was:" >&5
2184 sed 's/^/| /' conftest.$ac_ext >&5
2186 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2187 See \`config.log' for more details." >&5
2188 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2189 See \`config.log' for more details." >&2;}
2190 { (exit 1); exit 1; }; }
2193 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2195 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2196 echo "${ECHO_T}$ac_cv_objext" >&6
2197 OBJEXT=$ac_cv_objext
2198 ac_objext=$OBJEXT
2199 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2200 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2201 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2202 echo $ECHO_N "(cached) $ECHO_C" >&6
2203 else
2204 cat >conftest.$ac_ext <<_ACEOF
2205 /* confdefs.h. */
2206 _ACEOF
2207 cat confdefs.h >>conftest.$ac_ext
2208 cat >>conftest.$ac_ext <<_ACEOF
2209 /* end confdefs.h. */
2212 main ()
2214 #ifndef __GNUC__
2215 choke me
2216 #endif
2219 return 0;
2221 _ACEOF
2222 rm -f conftest.$ac_objext
2223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2224 (eval $ac_compile) 2>conftest.er1
2225 ac_status=$?
2226 grep -v '^ *+' conftest.er1 >conftest.err
2227 rm -f conftest.er1
2228 cat conftest.err >&5
2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230 (exit $ac_status); } &&
2231 { ac_try='test -z "$ac_c_werror_flag"
2232 || test ! -s conftest.err'
2233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2234 (eval $ac_try) 2>&5
2235 ac_status=$?
2236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237 (exit $ac_status); }; } &&
2238 { ac_try='test -s conftest.$ac_objext'
2239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2240 (eval $ac_try) 2>&5
2241 ac_status=$?
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); }; }; then
2244 ac_compiler_gnu=yes
2245 else
2246 echo "$as_me: failed program was:" >&5
2247 sed 's/^/| /' conftest.$ac_ext >&5
2249 ac_compiler_gnu=no
2251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2252 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2255 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2256 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2257 GCC=`test $ac_compiler_gnu = yes && echo yes`
2258 ac_test_CFLAGS=${CFLAGS+set}
2259 ac_save_CFLAGS=$CFLAGS
2260 CFLAGS="-g"
2261 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2262 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2263 if test "${ac_cv_prog_cc_g+set}" = set; then
2264 echo $ECHO_N "(cached) $ECHO_C" >&6
2265 else
2266 cat >conftest.$ac_ext <<_ACEOF
2267 /* confdefs.h. */
2268 _ACEOF
2269 cat confdefs.h >>conftest.$ac_ext
2270 cat >>conftest.$ac_ext <<_ACEOF
2271 /* end confdefs.h. */
2274 main ()
2278 return 0;
2280 _ACEOF
2281 rm -f conftest.$ac_objext
2282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2283 (eval $ac_compile) 2>conftest.er1
2284 ac_status=$?
2285 grep -v '^ *+' conftest.er1 >conftest.err
2286 rm -f conftest.er1
2287 cat conftest.err >&5
2288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289 (exit $ac_status); } &&
2290 { ac_try='test -z "$ac_c_werror_flag"
2291 || test ! -s conftest.err'
2292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2293 (eval $ac_try) 2>&5
2294 ac_status=$?
2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296 (exit $ac_status); }; } &&
2297 { ac_try='test -s conftest.$ac_objext'
2298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2299 (eval $ac_try) 2>&5
2300 ac_status=$?
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302 (exit $ac_status); }; }; then
2303 ac_cv_prog_cc_g=yes
2304 else
2305 echo "$as_me: failed program was:" >&5
2306 sed 's/^/| /' conftest.$ac_ext >&5
2308 ac_cv_prog_cc_g=no
2310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2312 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2313 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2314 if test "$ac_test_CFLAGS" = set; then
2315 CFLAGS=$ac_save_CFLAGS
2316 elif test $ac_cv_prog_cc_g = yes; then
2317 if test "$GCC" = yes; then
2318 CFLAGS="-g -O2"
2319 else
2320 CFLAGS="-g"
2322 else
2323 if test "$GCC" = yes; then
2324 CFLAGS="-O2"
2325 else
2326 CFLAGS=
2329 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2330 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2331 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2332 echo $ECHO_N "(cached) $ECHO_C" >&6
2333 else
2334 ac_cv_prog_cc_stdc=no
2335 ac_save_CC=$CC
2336 cat >conftest.$ac_ext <<_ACEOF
2337 /* confdefs.h. */
2338 _ACEOF
2339 cat confdefs.h >>conftest.$ac_ext
2340 cat >>conftest.$ac_ext <<_ACEOF
2341 /* end confdefs.h. */
2342 #include <stdarg.h>
2343 #include <stdio.h>
2344 #include <sys/types.h>
2345 #include <sys/stat.h>
2346 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2347 struct buf { int x; };
2348 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2349 static char *e (p, i)
2350 char **p;
2351 int i;
2353 return p[i];
2355 static char *f (char * (*g) (char **, int), char **p, ...)
2357 char *s;
2358 va_list v;
2359 va_start (v,p);
2360 s = g (p, va_arg (v,int));
2361 va_end (v);
2362 return s;
2365 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2366 function prototypes and stuff, but not '\xHH' hex character constants.
2367 These don't provoke an error unfortunately, instead are silently treated
2368 as 'x'. The following induces an error, until -std1 is added to get
2369 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2370 array size at least. It's necessary to write '\x00'==0 to get something
2371 that's true only with -std1. */
2372 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2374 int test (int i, double x);
2375 struct s1 {int (*f) (int a);};
2376 struct s2 {int (*f) (double a);};
2377 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2378 int argc;
2379 char **argv;
2381 main ()
2383 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2385 return 0;
2387 _ACEOF
2388 # Don't try gcc -ansi; that turns off useful extensions and
2389 # breaks some systems' header files.
2390 # AIX -qlanglvl=ansi
2391 # Ultrix and OSF/1 -std1
2392 # HP-UX 10.20 and later -Ae
2393 # HP-UX older versions -Aa -D_HPUX_SOURCE
2394 # SVR4 -Xc -D__EXTENSIONS__
2395 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2397 CC="$ac_save_CC $ac_arg"
2398 rm -f conftest.$ac_objext
2399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2400 (eval $ac_compile) 2>conftest.er1
2401 ac_status=$?
2402 grep -v '^ *+' conftest.er1 >conftest.err
2403 rm -f conftest.er1
2404 cat conftest.err >&5
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); } &&
2407 { ac_try='test -z "$ac_c_werror_flag"
2408 || test ! -s conftest.err'
2409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410 (eval $ac_try) 2>&5
2411 ac_status=$?
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); }; } &&
2414 { ac_try='test -s conftest.$ac_objext'
2415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2416 (eval $ac_try) 2>&5
2417 ac_status=$?
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }; }; then
2420 ac_cv_prog_cc_stdc=$ac_arg
2421 break
2422 else
2423 echo "$as_me: failed program was:" >&5
2424 sed 's/^/| /' conftest.$ac_ext >&5
2427 rm -f conftest.err conftest.$ac_objext
2428 done
2429 rm -f conftest.$ac_ext conftest.$ac_objext
2430 CC=$ac_save_CC
2434 case "x$ac_cv_prog_cc_stdc" in
2435 x|xno)
2436 echo "$as_me:$LINENO: result: none needed" >&5
2437 echo "${ECHO_T}none needed" >&6 ;;
2439 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2440 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2441 CC="$CC $ac_cv_prog_cc_stdc" ;;
2442 esac
2444 # Some people use a C++ compiler to compile C. Since we use `exit',
2445 # in C++ we need to declare it. In case someone uses the same compiler
2446 # for both compiling C and C++ we need to have the C++ compiler decide
2447 # the declaration of exit, since it's the most demanding environment.
2448 cat >conftest.$ac_ext <<_ACEOF
2449 #ifndef __cplusplus
2450 choke me
2451 #endif
2452 _ACEOF
2453 rm -f conftest.$ac_objext
2454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2455 (eval $ac_compile) 2>conftest.er1
2456 ac_status=$?
2457 grep -v '^ *+' conftest.er1 >conftest.err
2458 rm -f conftest.er1
2459 cat conftest.err >&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); } &&
2462 { ac_try='test -z "$ac_c_werror_flag"
2463 || test ! -s conftest.err'
2464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465 (eval $ac_try) 2>&5
2466 ac_status=$?
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }; } &&
2469 { ac_try='test -s conftest.$ac_objext'
2470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471 (eval $ac_try) 2>&5
2472 ac_status=$?
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }; }; then
2475 for ac_declaration in \
2476 '' \
2477 'extern "C" void std::exit (int) throw (); using std::exit;' \
2478 'extern "C" void std::exit (int); using std::exit;' \
2479 'extern "C" void exit (int) throw ();' \
2480 'extern "C" void exit (int);' \
2481 'void exit (int);'
2483 cat >conftest.$ac_ext <<_ACEOF
2484 /* confdefs.h. */
2485 _ACEOF
2486 cat confdefs.h >>conftest.$ac_ext
2487 cat >>conftest.$ac_ext <<_ACEOF
2488 /* end confdefs.h. */
2489 $ac_declaration
2490 #include <stdlib.h>
2492 main ()
2494 exit (42);
2496 return 0;
2498 _ACEOF
2499 rm -f conftest.$ac_objext
2500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2501 (eval $ac_compile) 2>conftest.er1
2502 ac_status=$?
2503 grep -v '^ *+' conftest.er1 >conftest.err
2504 rm -f conftest.er1
2505 cat conftest.err >&5
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); } &&
2508 { ac_try='test -z "$ac_c_werror_flag"
2509 || test ! -s conftest.err'
2510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511 (eval $ac_try) 2>&5
2512 ac_status=$?
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }; } &&
2515 { ac_try='test -s conftest.$ac_objext'
2516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517 (eval $ac_try) 2>&5
2518 ac_status=$?
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); }; }; then
2522 else
2523 echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2526 continue
2528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2529 cat >conftest.$ac_ext <<_ACEOF
2530 /* confdefs.h. */
2531 _ACEOF
2532 cat confdefs.h >>conftest.$ac_ext
2533 cat >>conftest.$ac_ext <<_ACEOF
2534 /* end confdefs.h. */
2535 $ac_declaration
2537 main ()
2539 exit (42);
2541 return 0;
2543 _ACEOF
2544 rm -f conftest.$ac_objext
2545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2546 (eval $ac_compile) 2>conftest.er1
2547 ac_status=$?
2548 grep -v '^ *+' conftest.er1 >conftest.err
2549 rm -f conftest.er1
2550 cat conftest.err >&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); } &&
2553 { ac_try='test -z "$ac_c_werror_flag"
2554 || test ! -s conftest.err'
2555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556 (eval $ac_try) 2>&5
2557 ac_status=$?
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }; } &&
2560 { ac_try='test -s conftest.$ac_objext'
2561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562 (eval $ac_try) 2>&5
2563 ac_status=$?
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }; }; then
2566 break
2567 else
2568 echo "$as_me: failed program was:" >&5
2569 sed 's/^/| /' conftest.$ac_ext >&5
2572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2573 done
2574 rm -f conftest*
2575 if test -n "$ac_declaration"; then
2576 echo '#ifdef __cplusplus' >>confdefs.h
2577 echo $ac_declaration >>confdefs.h
2578 echo '#endif' >>confdefs.h
2581 else
2582 echo "$as_me: failed program was:" >&5
2583 sed 's/^/| /' conftest.$ac_ext >&5
2586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2587 ac_ext=c
2588 ac_cpp='$CPP $CPPFLAGS'
2589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2593 ac_ext=cc
2594 ac_cpp='$CXXCPP $CPPFLAGS'
2595 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2596 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2597 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2598 if test -n "$ac_tool_prefix"; then
2599 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2601 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2602 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2603 echo "$as_me:$LINENO: checking for $ac_word" >&5
2604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2605 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2606 echo $ECHO_N "(cached) $ECHO_C" >&6
2607 else
2608 if test -n "$CXX"; then
2609 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2610 else
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 for as_dir in $PATH
2614 IFS=$as_save_IFS
2615 test -z "$as_dir" && as_dir=.
2616 for ac_exec_ext in '' $ac_executable_extensions; do
2617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2618 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2620 break 2
2622 done
2623 done
2627 CXX=$glibcxx_cv_prog_CXX
2628 if test -n "$CXX"; then
2629 echo "$as_me:$LINENO: result: $CXX" >&5
2630 echo "${ECHO_T}$CXX" >&6
2631 else
2632 echo "$as_me:$LINENO: result: no" >&5
2633 echo "${ECHO_T}no" >&6
2636 test -n "$CXX" && break
2637 done
2639 if test -z "$CXX"; then
2640 ac_ct_CXX=$CXX
2641 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2643 # Extract the first word of "$ac_prog", so it can be a program name with args.
2644 set dummy $ac_prog; ac_word=$2
2645 echo "$as_me:$LINENO: checking for $ac_word" >&5
2646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2647 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2648 echo $ECHO_N "(cached) $ECHO_C" >&6
2649 else
2650 if test -n "$ac_ct_CXX"; then
2651 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2652 else
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 for as_dir in $PATH
2656 IFS=$as_save_IFS
2657 test -z "$as_dir" && as_dir=.
2658 for ac_exec_ext in '' $ac_executable_extensions; do
2659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2660 ac_cv_prog_ac_ct_CXX="$ac_prog"
2661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2662 break 2
2664 done
2665 done
2669 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2670 if test -n "$ac_ct_CXX"; then
2671 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2672 echo "${ECHO_T}$ac_ct_CXX" >&6
2673 else
2674 echo "$as_me:$LINENO: result: no" >&5
2675 echo "${ECHO_T}no" >&6
2678 test -n "$ac_ct_CXX" && break
2679 done
2680 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2682 CXX=$ac_ct_CXX
2686 # Provide some information about the compiler.
2687 echo "$as_me:$LINENO:" \
2688 "checking for C++ compiler version" >&5
2689 ac_compiler=`set X $ac_compile; echo $2`
2690 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2691 (eval $ac_compiler --version </dev/null >&5) 2>&5
2692 ac_status=$?
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); }
2695 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2696 (eval $ac_compiler -v </dev/null >&5) 2>&5
2697 ac_status=$?
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); }
2700 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2701 (eval $ac_compiler -V </dev/null >&5) 2>&5
2702 ac_status=$?
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); }
2706 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2707 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2708 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2709 echo $ECHO_N "(cached) $ECHO_C" >&6
2710 else
2711 cat >conftest.$ac_ext <<_ACEOF
2712 /* confdefs.h. */
2713 _ACEOF
2714 cat confdefs.h >>conftest.$ac_ext
2715 cat >>conftest.$ac_ext <<_ACEOF
2716 /* end confdefs.h. */
2719 main ()
2721 #ifndef __GNUC__
2722 choke me
2723 #endif
2726 return 0;
2728 _ACEOF
2729 rm -f conftest.$ac_objext
2730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2731 (eval $ac_compile) 2>conftest.er1
2732 ac_status=$?
2733 grep -v '^ *+' conftest.er1 >conftest.err
2734 rm -f conftest.er1
2735 cat conftest.err >&5
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); } &&
2738 { ac_try='test -z "$ac_cxx_werror_flag"
2739 || test ! -s conftest.err'
2740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741 (eval $ac_try) 2>&5
2742 ac_status=$?
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); }; } &&
2745 { ac_try='test -s conftest.$ac_objext'
2746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747 (eval $ac_try) 2>&5
2748 ac_status=$?
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }; }; then
2751 ac_compiler_gnu=yes
2752 else
2753 echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.$ac_ext >&5
2756 ac_compiler_gnu=no
2758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2759 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2762 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2763 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2764 GXX=`test $ac_compiler_gnu = yes && echo yes`
2765 ac_test_CXXFLAGS=${CXXFLAGS+set}
2766 ac_save_CXXFLAGS=$CXXFLAGS
2767 CXXFLAGS="-g"
2768 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2769 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2770 if test "${ac_cv_prog_cxx_g+set}" = set; then
2771 echo $ECHO_N "(cached) $ECHO_C" >&6
2772 else
2773 cat >conftest.$ac_ext <<_ACEOF
2774 /* confdefs.h. */
2775 _ACEOF
2776 cat confdefs.h >>conftest.$ac_ext
2777 cat >>conftest.$ac_ext <<_ACEOF
2778 /* end confdefs.h. */
2781 main ()
2785 return 0;
2787 _ACEOF
2788 rm -f conftest.$ac_objext
2789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2790 (eval $ac_compile) 2>conftest.er1
2791 ac_status=$?
2792 grep -v '^ *+' conftest.er1 >conftest.err
2793 rm -f conftest.er1
2794 cat conftest.err >&5
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); } &&
2797 { ac_try='test -z "$ac_cxx_werror_flag"
2798 || test ! -s conftest.err'
2799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800 (eval $ac_try) 2>&5
2801 ac_status=$?
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); }; } &&
2804 { ac_try='test -s conftest.$ac_objext'
2805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806 (eval $ac_try) 2>&5
2807 ac_status=$?
2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809 (exit $ac_status); }; }; then
2810 ac_cv_prog_cxx_g=yes
2811 else
2812 echo "$as_me: failed program was:" >&5
2813 sed 's/^/| /' conftest.$ac_ext >&5
2815 ac_cv_prog_cxx_g=no
2817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2819 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2820 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2821 if test "$ac_test_CXXFLAGS" = set; then
2822 CXXFLAGS=$ac_save_CXXFLAGS
2823 elif test $ac_cv_prog_cxx_g = yes; then
2824 if test "$GXX" = yes; then
2825 CXXFLAGS="-g -O2"
2826 else
2827 CXXFLAGS="-g"
2829 else
2830 if test "$GXX" = yes; then
2831 CXXFLAGS="-O2"
2832 else
2833 CXXFLAGS=
2836 for ac_declaration in \
2837 '' \
2838 'extern "C" void std::exit (int) throw (); using std::exit;' \
2839 'extern "C" void std::exit (int); using std::exit;' \
2840 'extern "C" void exit (int) throw ();' \
2841 'extern "C" void exit (int);' \
2842 'void exit (int);'
2844 cat >conftest.$ac_ext <<_ACEOF
2845 /* confdefs.h. */
2846 _ACEOF
2847 cat confdefs.h >>conftest.$ac_ext
2848 cat >>conftest.$ac_ext <<_ACEOF
2849 /* end confdefs.h. */
2850 $ac_declaration
2851 #include <stdlib.h>
2853 main ()
2855 exit (42);
2857 return 0;
2859 _ACEOF
2860 rm -f conftest.$ac_objext
2861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2862 (eval $ac_compile) 2>conftest.er1
2863 ac_status=$?
2864 grep -v '^ *+' conftest.er1 >conftest.err
2865 rm -f conftest.er1
2866 cat conftest.err >&5
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); } &&
2869 { ac_try='test -z "$ac_cxx_werror_flag"
2870 || test ! -s conftest.err'
2871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872 (eval $ac_try) 2>&5
2873 ac_status=$?
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); }; } &&
2876 { ac_try='test -s conftest.$ac_objext'
2877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2878 (eval $ac_try) 2>&5
2879 ac_status=$?
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); }; }; then
2883 else
2884 echo "$as_me: failed program was:" >&5
2885 sed 's/^/| /' conftest.$ac_ext >&5
2887 continue
2889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2890 cat >conftest.$ac_ext <<_ACEOF
2891 /* confdefs.h. */
2892 _ACEOF
2893 cat confdefs.h >>conftest.$ac_ext
2894 cat >>conftest.$ac_ext <<_ACEOF
2895 /* end confdefs.h. */
2896 $ac_declaration
2898 main ()
2900 exit (42);
2902 return 0;
2904 _ACEOF
2905 rm -f conftest.$ac_objext
2906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2907 (eval $ac_compile) 2>conftest.er1
2908 ac_status=$?
2909 grep -v '^ *+' conftest.er1 >conftest.err
2910 rm -f conftest.er1
2911 cat conftest.err >&5
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); } &&
2914 { ac_try='test -z "$ac_cxx_werror_flag"
2915 || test ! -s conftest.err'
2916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2917 (eval $ac_try) 2>&5
2918 ac_status=$?
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }; } &&
2921 { ac_try='test -s conftest.$ac_objext'
2922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2923 (eval $ac_try) 2>&5
2924 ac_status=$?
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); }; }; then
2927 break
2928 else
2929 echo "$as_me: failed program was:" >&5
2930 sed 's/^/| /' conftest.$ac_ext >&5
2933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2934 done
2935 rm -f conftest*
2936 if test -n "$ac_declaration"; then
2937 echo '#ifdef __cplusplus' >>confdefs.h
2938 echo $ac_declaration >>confdefs.h
2939 echo '#endif' >>confdefs.h
2942 ac_ext=c
2943 ac_cpp='$CPP $CPPFLAGS'
2944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2948 CXXFLAGS="$save_CXXFLAGS"
2954 am__api_version="1.9"
2955 # Find a good install program. We prefer a C program (faster),
2956 # so one script is as good as another. But avoid the broken or
2957 # incompatible versions:
2958 # SysV /etc/install, /usr/sbin/install
2959 # SunOS /usr/etc/install
2960 # IRIX /sbin/install
2961 # AIX /bin/install
2962 # AmigaOS /C/install, which installs bootblocks on floppy discs
2963 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2964 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2965 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2966 # OS/2's system install, which has a completely different semantic
2967 # ./install, which can be erroneously created by make from ./install.sh.
2968 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2969 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2970 if test -z "$INSTALL"; then
2971 if test "${ac_cv_path_install+set}" = set; then
2972 echo $ECHO_N "(cached) $ECHO_C" >&6
2973 else
2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 for as_dir in $PATH
2977 IFS=$as_save_IFS
2978 test -z "$as_dir" && as_dir=.
2979 # Account for people who put trailing slashes in PATH elements.
2980 case $as_dir/ in
2981 ./ | .// | /cC/* | \
2982 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2983 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2984 /usr/ucb/* ) ;;
2986 # OSF1 and SCO ODT 3.0 have their own names for install.
2987 # Don't use installbsd from OSF since it installs stuff as root
2988 # by default.
2989 for ac_prog in ginstall scoinst install; do
2990 for ac_exec_ext in '' $ac_executable_extensions; do
2991 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2992 if test $ac_prog = install &&
2993 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2994 # AIX install. It has an incompatible calling convention.
2996 elif test $ac_prog = install &&
2997 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2998 # program-specific install script used by HP pwplus--don't use.
3000 else
3001 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3002 break 3
3005 done
3006 done
3008 esac
3009 done
3013 if test "${ac_cv_path_install+set}" = set; then
3014 INSTALL=$ac_cv_path_install
3015 else
3016 # As a last resort, use the slow shell script. We don't cache a
3017 # path for INSTALL within a source directory, because that will
3018 # break other packages using the cache if that directory is
3019 # removed, or if the path is relative.
3020 INSTALL=$ac_install_sh
3023 echo "$as_me:$LINENO: result: $INSTALL" >&5
3024 echo "${ECHO_T}$INSTALL" >&6
3026 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3027 # It thinks the first close brace ends the variable substitution.
3028 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3030 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3032 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3034 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3035 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3036 # Just in case
3037 sleep 1
3038 echo timestamp > conftest.file
3039 # Do `set' in a subshell so we don't clobber the current shell's
3040 # arguments. Must try -L first in case configure is actually a
3041 # symlink; some systems play weird games with the mod time of symlinks
3042 # (eg FreeBSD returns the mod time of the symlink's containing
3043 # directory).
3044 if (
3045 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3046 if test "$*" = "X"; then
3047 # -L didn't work.
3048 set X `ls -t $srcdir/configure conftest.file`
3050 rm -f conftest.file
3051 if test "$*" != "X $srcdir/configure conftest.file" \
3052 && test "$*" != "X conftest.file $srcdir/configure"; then
3054 # If neither matched, then we have a broken ls. This can happen
3055 # if, for instance, CONFIG_SHELL is bash and it inherits a
3056 # broken ls alias from the environment. This has actually
3057 # happened. Such a system could not be considered "sane".
3058 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3059 alias in your environment" >&5
3060 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3061 alias in your environment" >&2;}
3062 { (exit 1); exit 1; }; }
3065 test "$2" = conftest.file
3067 then
3068 # Ok.
3070 else
3071 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3072 Check your system clock" >&5
3073 echo "$as_me: error: newly created file is older than distributed files!
3074 Check your system clock" >&2;}
3075 { (exit 1); exit 1; }; }
3077 echo "$as_me:$LINENO: result: yes" >&5
3078 echo "${ECHO_T}yes" >&6
3079 test "$program_prefix" != NONE &&
3080 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3081 # Use a double $ so make ignores it.
3082 test "$program_suffix" != NONE &&
3083 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3084 # Double any \ or $. echo might interpret backslashes.
3085 # By default was `s,x,x', remove it if useless.
3086 cat <<\_ACEOF >conftest.sed
3087 s/[\\$]/&&/g;s/;s,x,x,$//
3088 _ACEOF
3089 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3090 rm conftest.sed
3092 # expand $ac_aux_dir to an absolute path
3093 am_aux_dir=`cd $ac_aux_dir && pwd`
3095 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3096 # Use eval to expand $SHELL
3097 if eval "$MISSING --run true"; then
3098 am_missing_run="$MISSING --run "
3099 else
3100 am_missing_run=
3101 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3102 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3105 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3106 # We used to keeping the `.' as first argument, in order to
3107 # allow $(mkdir_p) to be used without argument. As in
3108 # $(mkdir_p) $(somedir)
3109 # where $(somedir) is conditionally defined. However this is wrong
3110 # for two reasons:
3111 # 1. if the package is installed by a user who cannot write `.'
3112 # make install will fail,
3113 # 2. the above comment should most certainly read
3114 # $(mkdir_p) $(DESTDIR)$(somedir)
3115 # so it does not work when $(somedir) is undefined and
3116 # $(DESTDIR) is not.
3117 # To support the latter case, we have to write
3118 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3119 # so the `.' trick is pointless.
3120 mkdir_p='mkdir -p --'
3121 else
3122 # On NextStep and OpenStep, the `mkdir' command does not
3123 # recognize any option. It will interpret all options as
3124 # directories to create, and then abort because `.' already
3125 # exists.
3126 for d in ./-p ./--version;
3128 test -d $d && rmdir $d
3129 done
3130 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3131 if test -f "$ac_aux_dir/mkinstalldirs"; then
3132 mkdir_p='$(mkinstalldirs)'
3133 else
3134 mkdir_p='$(install_sh) -d'
3138 for ac_prog in gawk mawk nawk awk
3140 # Extract the first word of "$ac_prog", so it can be a program name with args.
3141 set dummy $ac_prog; ac_word=$2
3142 echo "$as_me:$LINENO: checking for $ac_word" >&5
3143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3144 if test "${ac_cv_prog_AWK+set}" = set; then
3145 echo $ECHO_N "(cached) $ECHO_C" >&6
3146 else
3147 if test -n "$AWK"; then
3148 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3149 else
3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 for as_dir in $PATH
3153 IFS=$as_save_IFS
3154 test -z "$as_dir" && as_dir=.
3155 for ac_exec_ext in '' $ac_executable_extensions; do
3156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3157 ac_cv_prog_AWK="$ac_prog"
3158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3159 break 2
3161 done
3162 done
3166 AWK=$ac_cv_prog_AWK
3167 if test -n "$AWK"; then
3168 echo "$as_me:$LINENO: result: $AWK" >&5
3169 echo "${ECHO_T}$AWK" >&6
3170 else
3171 echo "$as_me:$LINENO: result: no" >&5
3172 echo "${ECHO_T}no" >&6
3175 test -n "$AWK" && break
3176 done
3178 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3179 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3180 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3181 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3182 echo $ECHO_N "(cached) $ECHO_C" >&6
3183 else
3184 cat >conftest.make <<\_ACEOF
3185 all:
3186 @echo 'ac_maketemp="$(MAKE)"'
3187 _ACEOF
3188 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3189 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3190 if test -n "$ac_maketemp"; then
3191 eval ac_cv_prog_make_${ac_make}_set=yes
3192 else
3193 eval ac_cv_prog_make_${ac_make}_set=no
3195 rm -f conftest.make
3197 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3198 echo "$as_me:$LINENO: result: yes" >&5
3199 echo "${ECHO_T}yes" >&6
3200 SET_MAKE=
3201 else
3202 echo "$as_me:$LINENO: result: no" >&5
3203 echo "${ECHO_T}no" >&6
3204 SET_MAKE="MAKE=${MAKE-make}"
3207 rm -rf .tst 2>/dev/null
3208 mkdir .tst 2>/dev/null
3209 if test -d .tst; then
3210 am__leading_dot=.
3211 else
3212 am__leading_dot=_
3214 rmdir .tst 2>/dev/null
3216 DEPDIR="${am__leading_dot}deps"
3218 ac_config_commands="$ac_config_commands depfiles"
3221 am_make=${MAKE-make}
3222 cat > confinc << 'END'
3223 am__doit:
3224 @echo done
3225 .PHONY: am__doit
3227 # If we don't find an include directive, just comment out the code.
3228 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3229 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3230 am__include="#"
3231 am__quote=
3232 _am_result=none
3233 # First try GNU make style include.
3234 echo "include confinc" > confmf
3235 # We grep out `Entering directory' and `Leaving directory'
3236 # messages which can occur if `w' ends up in MAKEFLAGS.
3237 # In particular we don't look at `^make:' because GNU make might
3238 # be invoked under some other name (usually "gmake"), in which
3239 # case it prints its new name instead of `make'.
3240 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3241 am__include=include
3242 am__quote=
3243 _am_result=GNU
3245 # Now try BSD make style include.
3246 if test "$am__include" = "#"; then
3247 echo '.include "confinc"' > confmf
3248 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3249 am__include=.include
3250 am__quote="\""
3251 _am_result=BSD
3256 echo "$as_me:$LINENO: result: $_am_result" >&5
3257 echo "${ECHO_T}$_am_result" >&6
3258 rm -f confinc confmf
3260 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3261 if test "${enable_dependency_tracking+set}" = set; then
3262 enableval="$enable_dependency_tracking"
3265 if test "x$enable_dependency_tracking" != xno; then
3266 am_depcomp="$ac_aux_dir/depcomp"
3267 AMDEPBACKSLASH='\'
3271 if test "x$enable_dependency_tracking" != xno; then
3272 AMDEP_TRUE=
3273 AMDEP_FALSE='#'
3274 else
3275 AMDEP_TRUE='#'
3276 AMDEP_FALSE=
3281 # test to see if srcdir already configured
3282 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3283 test -f $srcdir/config.status; then
3284 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3285 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3286 { (exit 1); exit 1; }; }
3289 # test whether we have cygpath
3290 if test -z "$CYGPATH_W"; then
3291 if (cygpath --version) >/dev/null 2>/dev/null; then
3292 CYGPATH_W='cygpath -w'
3293 else
3294 CYGPATH_W=echo
3299 # Define the identity of the package.
3300 PACKAGE='libjava'
3301 VERSION='version-unused'
3304 cat >>confdefs.h <<_ACEOF
3305 #define PACKAGE "$PACKAGE"
3306 _ACEOF
3309 cat >>confdefs.h <<_ACEOF
3310 #define VERSION "$VERSION"
3311 _ACEOF
3313 # Some tools Automake needs.
3315 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3318 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3321 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3324 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3327 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3329 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3331 # Installed binaries are usually stripped using `strip' when the user
3332 # run `make install-strip'. However `strip' might not be the right
3333 # tool to use in cross-compilation environments, therefore Automake
3334 # will honor the `STRIP' environment variable to overrule this program.
3335 if test "$cross_compiling" != no; then
3336 if test -n "$ac_tool_prefix"; then
3337 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3338 set dummy ${ac_tool_prefix}strip; ac_word=$2
3339 echo "$as_me:$LINENO: checking for $ac_word" >&5
3340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3341 if test "${ac_cv_prog_STRIP+set}" = set; then
3342 echo $ECHO_N "(cached) $ECHO_C" >&6
3343 else
3344 if test -n "$STRIP"; then
3345 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3346 else
3347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3348 for as_dir in $PATH
3350 IFS=$as_save_IFS
3351 test -z "$as_dir" && as_dir=.
3352 for ac_exec_ext in '' $ac_executable_extensions; do
3353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3354 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3356 break 2
3358 done
3359 done
3363 STRIP=$ac_cv_prog_STRIP
3364 if test -n "$STRIP"; then
3365 echo "$as_me:$LINENO: result: $STRIP" >&5
3366 echo "${ECHO_T}$STRIP" >&6
3367 else
3368 echo "$as_me:$LINENO: result: no" >&5
3369 echo "${ECHO_T}no" >&6
3373 if test -z "$ac_cv_prog_STRIP"; then
3374 ac_ct_STRIP=$STRIP
3375 # Extract the first word of "strip", so it can be a program name with args.
3376 set dummy strip; ac_word=$2
3377 echo "$as_me:$LINENO: checking for $ac_word" >&5
3378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3379 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3380 echo $ECHO_N "(cached) $ECHO_C" >&6
3381 else
3382 if test -n "$ac_ct_STRIP"; then
3383 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3384 else
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386 for as_dir in $PATH
3388 IFS=$as_save_IFS
3389 test -z "$as_dir" && as_dir=.
3390 for ac_exec_ext in '' $ac_executable_extensions; do
3391 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3392 ac_cv_prog_ac_ct_STRIP="strip"
3393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3394 break 2
3396 done
3397 done
3399 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3402 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3403 if test -n "$ac_ct_STRIP"; then
3404 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3405 echo "${ECHO_T}$ac_ct_STRIP" >&6
3406 else
3407 echo "$as_me:$LINENO: result: no" >&5
3408 echo "${ECHO_T}no" >&6
3411 STRIP=$ac_ct_STRIP
3412 else
3413 STRIP="$ac_cv_prog_STRIP"
3417 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3419 # We need awk for the "check" target. The system "awk" is bad on
3420 # some platforms.
3421 # Always define AMTAR for backward compatibility.
3423 AMTAR=${AMTAR-"${am_missing_run}tar"}
3425 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3430 depcc="$CC" am_compiler_list=
3432 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3433 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3434 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3435 echo $ECHO_N "(cached) $ECHO_C" >&6
3436 else
3437 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3438 # We make a subdir and do the tests there. Otherwise we can end up
3439 # making bogus files that we don't know about and never remove. For
3440 # instance it was reported that on HP-UX the gcc test will end up
3441 # making a dummy file named `D' -- because `-MD' means `put the output
3442 # in D'.
3443 mkdir conftest.dir
3444 # Copy depcomp to subdir because otherwise we won't find it if we're
3445 # using a relative directory.
3446 cp "$am_depcomp" conftest.dir
3447 cd conftest.dir
3448 # We will build objects and dependencies in a subdirectory because
3449 # it helps to detect inapplicable dependency modes. For instance
3450 # both Tru64's cc and ICC support -MD to output dependencies as a
3451 # side effect of compilation, but ICC will put the dependencies in
3452 # the current directory while Tru64 will put them in the object
3453 # directory.
3454 mkdir sub
3456 am_cv_CC_dependencies_compiler_type=none
3457 if test "$am_compiler_list" = ""; then
3458 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3460 for depmode in $am_compiler_list; do
3461 # Setup a source with many dependencies, because some compilers
3462 # like to wrap large dependency lists on column 80 (with \), and
3463 # we should not choose a depcomp mode which is confused by this.
3465 # We need to recreate these files for each test, as the compiler may
3466 # overwrite some of them when testing with obscure command lines.
3467 # This happens at least with the AIX C compiler.
3468 : > sub/conftest.c
3469 for i in 1 2 3 4 5 6; do
3470 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3471 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3472 # Solaris 8's {/usr,}/bin/sh.
3473 touch sub/conftst$i.h
3474 done
3475 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3477 case $depmode in
3478 nosideeffect)
3479 # after this tag, mechanisms are not by side-effect, so they'll
3480 # only be used when explicitly requested
3481 if test "x$enable_dependency_tracking" = xyes; then
3482 continue
3483 else
3484 break
3487 none) break ;;
3488 esac
3489 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3490 # mode. It turns out that the SunPro C++ compiler does not properly
3491 # handle `-M -o', and we need to detect this.
3492 if depmode=$depmode \
3493 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3494 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3495 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3496 >/dev/null 2>conftest.err &&
3497 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3498 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3499 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3500 # icc doesn't choke on unknown options, it will just issue warnings
3501 # or remarks (even with -Werror). So we grep stderr for any message
3502 # that says an option was ignored or not supported.
3503 # When given -MP, icc 7.0 and 7.1 complain thusly:
3504 # icc: Command line warning: ignoring option '-M'; no argument required
3505 # The diagnosis changed in icc 8.0:
3506 # icc: Command line remark: option '-MP' not supported
3507 if (grep 'ignoring option' conftest.err ||
3508 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3509 am_cv_CC_dependencies_compiler_type=$depmode
3510 break
3513 done
3515 cd ..
3516 rm -rf conftest.dir
3517 else
3518 am_cv_CC_dependencies_compiler_type=none
3522 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3523 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3524 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3529 test "x$enable_dependency_tracking" != xno \
3530 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3531 am__fastdepCC_TRUE=
3532 am__fastdepCC_FALSE='#'
3533 else
3534 am__fastdepCC_TRUE='#'
3535 am__fastdepCC_FALSE=
3539 depcc="$CXX" am_compiler_list=
3541 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3542 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3543 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3547 # We make a subdir and do the tests there. Otherwise we can end up
3548 # making bogus files that we don't know about and never remove. For
3549 # instance it was reported that on HP-UX the gcc test will end up
3550 # making a dummy file named `D' -- because `-MD' means `put the output
3551 # in D'.
3552 mkdir conftest.dir
3553 # Copy depcomp to subdir because otherwise we won't find it if we're
3554 # using a relative directory.
3555 cp "$am_depcomp" conftest.dir
3556 cd conftest.dir
3557 # We will build objects and dependencies in a subdirectory because
3558 # it helps to detect inapplicable dependency modes. For instance
3559 # both Tru64's cc and ICC support -MD to output dependencies as a
3560 # side effect of compilation, but ICC will put the dependencies in
3561 # the current directory while Tru64 will put them in the object
3562 # directory.
3563 mkdir sub
3565 am_cv_CXX_dependencies_compiler_type=none
3566 if test "$am_compiler_list" = ""; then
3567 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3569 for depmode in $am_compiler_list; do
3570 # Setup a source with many dependencies, because some compilers
3571 # like to wrap large dependency lists on column 80 (with \), and
3572 # we should not choose a depcomp mode which is confused by this.
3574 # We need to recreate these files for each test, as the compiler may
3575 # overwrite some of them when testing with obscure command lines.
3576 # This happens at least with the AIX C compiler.
3577 : > sub/conftest.c
3578 for i in 1 2 3 4 5 6; do
3579 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3580 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3581 # Solaris 8's {/usr,}/bin/sh.
3582 touch sub/conftst$i.h
3583 done
3584 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3586 case $depmode in
3587 nosideeffect)
3588 # after this tag, mechanisms are not by side-effect, so they'll
3589 # only be used when explicitly requested
3590 if test "x$enable_dependency_tracking" = xyes; then
3591 continue
3592 else
3593 break
3596 none) break ;;
3597 esac
3598 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3599 # mode. It turns out that the SunPro C++ compiler does not properly
3600 # handle `-M -o', and we need to detect this.
3601 if depmode=$depmode \
3602 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3603 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3604 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3605 >/dev/null 2>conftest.err &&
3606 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3607 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3608 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3609 # icc doesn't choke on unknown options, it will just issue warnings
3610 # or remarks (even with -Werror). So we grep stderr for any message
3611 # that says an option was ignored or not supported.
3612 # When given -MP, icc 7.0 and 7.1 complain thusly:
3613 # icc: Command line warning: ignoring option '-M'; no argument required
3614 # The diagnosis changed in icc 8.0:
3615 # icc: Command line remark: option '-MP' not supported
3616 if (grep 'ignoring option' conftest.err ||
3617 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3618 am_cv_CXX_dependencies_compiler_type=$depmode
3619 break
3622 done
3624 cd ..
3625 rm -rf conftest.dir
3626 else
3627 am_cv_CXX_dependencies_compiler_type=none
3631 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3632 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3633 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3638 test "x$enable_dependency_tracking" != xno \
3639 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3640 am__fastdepCXX_TRUE=
3641 am__fastdepCXX_FALSE='#'
3642 else
3643 am__fastdepCXX_TRUE='#'
3644 am__fastdepCXX_FALSE=
3650 if test -n "$ac_tool_prefix"; then
3651 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3652 set dummy ${ac_tool_prefix}as; ac_word=$2
3653 echo "$as_me:$LINENO: checking for $ac_word" >&5
3654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3655 if test "${ac_cv_prog_AS+set}" = set; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3657 else
3658 if test -n "$AS"; then
3659 ac_cv_prog_AS="$AS" # Let the user override the test.
3660 else
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662 for as_dir in $PATH
3664 IFS=$as_save_IFS
3665 test -z "$as_dir" && as_dir=.
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3668 ac_cv_prog_AS="${ac_tool_prefix}as"
3669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3670 break 2
3672 done
3673 done
3677 AS=$ac_cv_prog_AS
3678 if test -n "$AS"; then
3679 echo "$as_me:$LINENO: result: $AS" >&5
3680 echo "${ECHO_T}$AS" >&6
3681 else
3682 echo "$as_me:$LINENO: result: no" >&5
3683 echo "${ECHO_T}no" >&6
3687 if test -z "$ac_cv_prog_AS"; then
3688 ac_ct_AS=$AS
3689 # Extract the first word of "as", so it can be a program name with args.
3690 set dummy as; ac_word=$2
3691 echo "$as_me:$LINENO: checking for $ac_word" >&5
3692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3693 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
3695 else
3696 if test -n "$ac_ct_AS"; then
3697 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3698 else
3699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700 for as_dir in $PATH
3702 IFS=$as_save_IFS
3703 test -z "$as_dir" && as_dir=.
3704 for ac_exec_ext in '' $ac_executable_extensions; do
3705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3706 ac_cv_prog_ac_ct_AS="as"
3707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3708 break 2
3710 done
3711 done
3715 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3716 if test -n "$ac_ct_AS"; then
3717 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3718 echo "${ECHO_T}$ac_ct_AS" >&6
3719 else
3720 echo "$as_me:$LINENO: result: no" >&5
3721 echo "${ECHO_T}no" >&6
3724 AS=$ac_ct_AS
3725 else
3726 AS="$ac_cv_prog_AS"
3729 if test -n "$ac_tool_prefix"; then
3730 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3731 set dummy ${ac_tool_prefix}ar; ac_word=$2
3732 echo "$as_me:$LINENO: checking for $ac_word" >&5
3733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3734 if test "${ac_cv_prog_AR+set}" = set; then
3735 echo $ECHO_N "(cached) $ECHO_C" >&6
3736 else
3737 if test -n "$AR"; then
3738 ac_cv_prog_AR="$AR" # Let the user override the test.
3739 else
3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741 for as_dir in $PATH
3743 IFS=$as_save_IFS
3744 test -z "$as_dir" && as_dir=.
3745 for ac_exec_ext in '' $ac_executable_extensions; do
3746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3747 ac_cv_prog_AR="${ac_tool_prefix}ar"
3748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3749 break 2
3751 done
3752 done
3756 AR=$ac_cv_prog_AR
3757 if test -n "$AR"; then
3758 echo "$as_me:$LINENO: result: $AR" >&5
3759 echo "${ECHO_T}$AR" >&6
3760 else
3761 echo "$as_me:$LINENO: result: no" >&5
3762 echo "${ECHO_T}no" >&6
3766 if test -z "$ac_cv_prog_AR"; then
3767 ac_ct_AR=$AR
3768 # Extract the first word of "ar", so it can be a program name with args.
3769 set dummy ar; ac_word=$2
3770 echo "$as_me:$LINENO: checking for $ac_word" >&5
3771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3772 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3774 else
3775 if test -n "$ac_ct_AR"; then
3776 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3777 else
3778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779 for as_dir in $PATH
3781 IFS=$as_save_IFS
3782 test -z "$as_dir" && as_dir=.
3783 for ac_exec_ext in '' $ac_executable_extensions; do
3784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3785 ac_cv_prog_ac_ct_AR="ar"
3786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3787 break 2
3789 done
3790 done
3794 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3795 if test -n "$ac_ct_AR"; then
3796 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3797 echo "${ECHO_T}$ac_ct_AR" >&6
3798 else
3799 echo "$as_me:$LINENO: result: no" >&5
3800 echo "${ECHO_T}no" >&6
3803 AR=$ac_ct_AR
3804 else
3805 AR="$ac_cv_prog_AR"
3808 if test -n "$ac_tool_prefix"; then
3809 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3810 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3811 echo "$as_me:$LINENO: checking for $ac_word" >&5
3812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3813 if test "${ac_cv_prog_RANLIB+set}" = set; then
3814 echo $ECHO_N "(cached) $ECHO_C" >&6
3815 else
3816 if test -n "$RANLIB"; then
3817 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3818 else
3819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3820 for as_dir in $PATH
3822 IFS=$as_save_IFS
3823 test -z "$as_dir" && as_dir=.
3824 for ac_exec_ext in '' $ac_executable_extensions; do
3825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3826 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3828 break 2
3830 done
3831 done
3835 RANLIB=$ac_cv_prog_RANLIB
3836 if test -n "$RANLIB"; then
3837 echo "$as_me:$LINENO: result: $RANLIB" >&5
3838 echo "${ECHO_T}$RANLIB" >&6
3839 else
3840 echo "$as_me:$LINENO: result: no" >&5
3841 echo "${ECHO_T}no" >&6
3845 if test -z "$ac_cv_prog_RANLIB"; then
3846 ac_ct_RANLIB=$RANLIB
3847 # Extract the first word of "ranlib", so it can be a program name with args.
3848 set dummy ranlib; ac_word=$2
3849 echo "$as_me:$LINENO: checking for $ac_word" >&5
3850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3851 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
3853 else
3854 if test -n "$ac_ct_RANLIB"; then
3855 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3856 else
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858 for as_dir in $PATH
3860 IFS=$as_save_IFS
3861 test -z "$as_dir" && as_dir=.
3862 for ac_exec_ext in '' $ac_executable_extensions; do
3863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3864 ac_cv_prog_ac_ct_RANLIB="ranlib"
3865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3866 break 2
3868 done
3869 done
3871 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3874 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3875 if test -n "$ac_ct_RANLIB"; then
3876 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3877 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3878 else
3879 echo "$as_me:$LINENO: result: no" >&5
3880 echo "${ECHO_T}no" >&6
3883 RANLIB=$ac_ct_RANLIB
3884 else
3885 RANLIB="$ac_cv_prog_RANLIB"
3889 # Find a good install program. We prefer a C program (faster),
3890 # so one script is as good as another. But avoid the broken or
3891 # incompatible versions:
3892 # SysV /etc/install, /usr/sbin/install
3893 # SunOS /usr/etc/install
3894 # IRIX /sbin/install
3895 # AIX /bin/install
3896 # AmigaOS /C/install, which installs bootblocks on floppy discs
3897 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3898 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3899 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3900 # OS/2's system install, which has a completely different semantic
3901 # ./install, which can be erroneously created by make from ./install.sh.
3902 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3903 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3904 if test -z "$INSTALL"; then
3905 if test "${ac_cv_path_install+set}" = set; then
3906 echo $ECHO_N "(cached) $ECHO_C" >&6
3907 else
3908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909 for as_dir in $PATH
3911 IFS=$as_save_IFS
3912 test -z "$as_dir" && as_dir=.
3913 # Account for people who put trailing slashes in PATH elements.
3914 case $as_dir/ in
3915 ./ | .// | /cC/* | \
3916 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3917 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3918 /usr/ucb/* ) ;;
3920 # OSF1 and SCO ODT 3.0 have their own names for install.
3921 # Don't use installbsd from OSF since it installs stuff as root
3922 # by default.
3923 for ac_prog in ginstall scoinst install; do
3924 for ac_exec_ext in '' $ac_executable_extensions; do
3925 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3926 if test $ac_prog = install &&
3927 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3928 # AIX install. It has an incompatible calling convention.
3930 elif test $ac_prog = install &&
3931 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3932 # program-specific install script used by HP pwplus--don't use.
3934 else
3935 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3936 break 3
3939 done
3940 done
3942 esac
3943 done
3947 if test "${ac_cv_path_install+set}" = set; then
3948 INSTALL=$ac_cv_path_install
3949 else
3950 # As a last resort, use the slow shell script. We don't cache a
3951 # path for INSTALL within a source directory, because that will
3952 # break other packages using the cache if that directory is
3953 # removed, or if the path is relative.
3954 INSTALL=$ac_install_sh
3957 echo "$as_me:$LINENO: result: $INSTALL" >&5
3958 echo "${ECHO_T}$INSTALL" >&6
3960 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3961 # It thinks the first close brace ends the variable substitution.
3962 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3964 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3966 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3969 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3970 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3971 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3972 if test "${enable_maintainer_mode+set}" = set; then
3973 enableval="$enable_maintainer_mode"
3974 USE_MAINTAINER_MODE=$enableval
3975 else
3976 USE_MAINTAINER_MODE=no
3978 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3979 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3982 if test $USE_MAINTAINER_MODE = yes; then
3983 MAINTAINER_MODE_TRUE=
3984 MAINTAINER_MODE_FALSE='#'
3985 else
3986 MAINTAINER_MODE_TRUE='#'
3987 MAINTAINER_MODE_FALSE=
3990 MAINT=$MAINTAINER_MODE_TRUE
3996 # configure.host sets the following important variables
3997 # libgcj_cflags - host specific C compiler flags
3998 # libgcj_cxxflags - host specific C++ compiler flags
3999 # libgcj_javaflags - host specific Java compiler flags
4001 libgcj_cflags=
4002 libgcj_cxxflags=
4003 libgcj_javaflags=
4005 . ${srcdir}/configure.host
4007 LIBGCJ_CFLAGS="${libgcj_cflags}"
4008 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4009 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4010 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4016 # Only use libltdl for non-newlib builds.
4017 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4018 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
4019 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4020 library_names_spec=
4021 libname_spec='lib$name'
4022 soname_spec=
4023 shrext=".so"
4024 postinstall_cmds=
4025 postuninstall_cmds=
4026 finish_cmds=
4027 finish_eval=
4028 shlibpath_var=
4029 shlibpath_overrides_runpath=unknown
4030 version_type=none
4031 dynamic_linker="$host_os ld.so"
4032 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4033 if test "$GCC" = yes; then
4034 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
4035 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
4036 # if the path contains ";" then we assume it to be the separator
4037 # otherwise default to the standard path separator (i.e. ":") - it is
4038 # assumed that no part of a normal pathname contains ";" but that should
4039 # okay in the real world where ";" in dirpaths is itself problematic.
4040 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
4041 else
4042 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
4044 else
4045 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4047 need_lib_prefix=unknown
4048 hardcode_into_libs=no
4050 # when you set need_version to no, make sure it does not cause -set_version
4051 # flags to be left without arguments
4052 need_version=unknown
4054 case $host_os in
4055 aix3*)
4056 version_type=linux
4057 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4058 shlibpath_var=LIBPATH
4060 # AIX 3 has no versioning support, so we append a major version to the name.
4061 soname_spec='${libname}${release}${shared_ext}$major'
4064 aix4* | aix5*)
4065 version_type=linux
4066 need_lib_prefix=no
4067 need_version=no
4068 hardcode_into_libs=yes
4069 if test "$host_cpu" = ia64; then
4070 # AIX 5 supports IA64
4071 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4072 shlibpath_var=LD_LIBRARY_PATH
4073 else
4074 # With GCC up to 2.95.x, collect2 would create an import file
4075 # for dependence libraries. The import file would start with
4076 # the line `#! .'. This would cause the generated library to
4077 # depend on `.', always an invalid library. This was fixed in
4078 # development snapshots of GCC prior to 3.0.
4079 case $host_os in
4080 aix4 | aix4.[01] | aix4.[01].*)
4081 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4082 echo ' yes '
4083 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4085 else
4086 can_build_shared=no
4089 esac
4090 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4091 # soname into executable. Probably we can add versioning support to
4092 # collect2, so additional links can be useful in future.
4093 if test "$aix_use_runtimelinking" = yes; then
4094 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4095 # instead of lib<name>.a to let people know that these are not
4096 # typical AIX shared libraries.
4097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4098 else
4099 # We preserve .a as extension for shared libraries through AIX4.2
4100 # and later when we are not doing run time linking.
4101 library_names_spec='${libname}${release}.a $libname.a'
4102 soname_spec='${libname}${release}${shared_ext}$major'
4104 shlibpath_var=LIBPATH
4108 amigaos*)
4109 library_names_spec='$libname.ixlibrary $libname.a'
4110 # Create ${libname}_ixlibrary.a entries in /sys/libs.
4111 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'
4114 beos*)
4115 library_names_spec='${libname}${shared_ext}'
4116 dynamic_linker="$host_os ld.so"
4117 shlibpath_var=LIBRARY_PATH
4120 bsdi4*)
4121 version_type=linux
4122 need_version=no
4123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4124 soname_spec='${libname}${release}${shared_ext}$major'
4125 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4126 shlibpath_var=LD_LIBRARY_PATH
4127 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4128 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4129 # the default ld.so.conf also contains /usr/contrib/lib and
4130 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4131 # libtool to hard-code these into programs
4134 cygwin* | mingw* | pw32*)
4135 version_type=windows
4136 shrext=".dll"
4137 need_version=no
4138 need_lib_prefix=no
4140 case $GCC,$host_os in
4141 yes,cygwin* | yes,mingw* | yes,pw32*)
4142 library_names_spec='$libname.dll.a'
4143 # DLL is installed to $(libdir)/../bin by postinstall_cmds
4144 postinstall_cmds='base_file=`basename \${file}`~
4145 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
4146 dldir=$destdir/`dirname \$dlpath`~
4147 test -d \$dldir || mkdir -p \$dldir~
4148 $install_prog $dir/$dlname \$dldir/$dlname'
4149 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4150 dlpath=$dir/\$dldll~
4151 $rm \$dlpath'
4152 shlibpath_overrides_runpath=yes
4154 case $host_os in
4155 cygwin*)
4156 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4157 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4158 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
4160 mingw*)
4161 # MinGW DLLs use traditional 'lib' prefix
4162 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4163 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
4164 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
4165 # It is most probably a Windows format PATH printed by
4166 # mingw gcc, but we are running on Cygwin. Gcc prints its search
4167 # path with ; separators, and with drive letters. We can handle the
4168 # drive letters (cygwin fileutils understands them), so leave them,
4169 # especially as we might pass files found there to a mingw objdump,
4170 # which wouldn't understand a cygwinified path. Ahh.
4171 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
4172 else
4173 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
4176 pw32*)
4177 # pw32 DLLs use 'pw' prefix rather than 'lib'
4178 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
4180 esac
4184 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
4186 esac
4187 dynamic_linker='Win32 ld.exe'
4188 # FIXME: first we should search . and the directory the executable is in
4189 shlibpath_var=PATH
4192 darwin* | rhapsody*)
4193 dynamic_linker="$host_os dyld"
4194 version_type=darwin
4195 need_lib_prefix=no
4196 need_version=no
4197 # FIXME: Relying on posixy $() will cause problems for
4198 # cross-compilation, but unfortunately the echo tests do not
4199 # yet detect zsh echo's removal of \ escapes.
4200 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4201 soname_spec='${libname}${release}${major}$shared_ext'
4202 shlibpath_overrides_runpath=yes
4203 shlibpath_var=DYLD_LIBRARY_PATH
4204 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
4205 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
4206 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
4207 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"`
4209 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4212 dgux*)
4213 version_type=linux
4214 need_lib_prefix=no
4215 need_version=no
4216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4217 soname_spec='${libname}${release}${shared_ext}$major'
4218 shlibpath_var=LD_LIBRARY_PATH
4221 freebsd1*)
4222 dynamic_linker=no
4225 freebsd*)
4226 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4227 version_type=freebsd-$objformat
4228 case $version_type in
4229 freebsd-elf*)
4230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4231 need_version=no
4232 need_lib_prefix=no
4234 freebsd-*)
4235 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4236 need_version=yes
4238 esac
4239 shlibpath_var=LD_LIBRARY_PATH
4240 case $host_os in
4241 freebsd2*)
4242 shlibpath_overrides_runpath=yes
4244 freebsd3.01* | freebsdelf3.01*)
4245 shlibpath_overrides_runpath=yes
4246 hardcode_into_libs=yes
4248 *) # from 3.2 on
4249 shlibpath_overrides_runpath=no
4250 hardcode_into_libs=yes
4252 esac
4255 gnu*)
4256 version_type=linux
4257 need_lib_prefix=no
4258 need_version=no
4259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4260 soname_spec='${libname}${release}${shared_ext}$major'
4261 shlibpath_var=LD_LIBRARY_PATH
4262 hardcode_into_libs=yes
4265 hpux9* | hpux10* | hpux11*)
4266 # Give a soname corresponding to the major version so that dld.sl refuses to
4267 # link against other versions.
4268 version_type=sunos
4269 need_lib_prefix=no
4270 need_version=no
4271 case "$host_cpu" in
4272 ia64*)
4273 shrext='.so'
4274 hardcode_into_libs=yes
4275 dynamic_linker="$host_os dld.so"
4276 shlibpath_var=LD_LIBRARY_PATH
4277 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4279 soname_spec='${libname}${release}${shared_ext}$major'
4280 if test "X$HPUX_IA64_MODE" = X32; then
4281 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4282 else
4283 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4285 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4287 hppa*64*)
4288 shrext='.sl'
4289 hardcode_into_libs=yes
4290 dynamic_linker="$host_os dld.sl"
4291 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4292 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4294 soname_spec='${libname}${release}${shared_ext}$major'
4295 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
4296 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4299 shrext='.sl'
4300 dynamic_linker="$host_os dld.sl"
4301 shlibpath_var=SHLIB_PATH
4302 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4304 soname_spec='${libname}${release}${shared_ext}$major'
4306 esac
4307 # HP-UX runs *really* slowly unless shared libraries are mode 555.
4308 postinstall_cmds='chmod 555 $lib'
4311 irix5* | irix6* | nonstopux*)
4312 case $host_os in
4313 nonstopux*) version_type=nonstopux ;;
4315 if test "$lt_cv_prog_gnu_ld" = yes; then
4316 version_type=linux
4317 else
4318 version_type=irix
4319 fi ;;
4320 esac
4321 need_lib_prefix=no
4322 need_version=no
4323 soname_spec='${libname}${release}${shared_ext}$major'
4324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4325 case $host_os in
4326 irix5* | nonstopux*)
4327 libsuff= shlibsuff=
4330 case $LD in # libtool.m4 will add one of these switches to LD
4331 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
4332 libsuff= shlibsuff= libmagic=32-bit;;
4333 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
4334 libsuff=32 shlibsuff=N32 libmagic=N32;;
4335 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
4336 libsuff=64 shlibsuff=64 libmagic=64-bit;;
4337 *) libsuff= shlibsuff= libmagic=never-match;;
4338 esac
4340 esac
4341 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4342 shlibpath_overrides_runpath=no
4343 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4344 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4345 hardcode_into_libs=yes
4348 # No shared lib support for Linux oldld, aout, or coff.
4349 linux*oldld* | linux*aout* | linux*coff*)
4350 dynamic_linker=no
4353 # This must be Linux ELF.
4354 linux*)
4355 version_type=linux
4356 need_lib_prefix=no
4357 need_version=no
4358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4359 soname_spec='${libname}${release}${shared_ext}$major'
4360 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4361 shlibpath_var=LD_LIBRARY_PATH
4362 shlibpath_overrides_runpath=no
4363 # This implies no fast_install, which is unacceptable.
4364 # Some rework will be needed to allow for fast_install
4365 # before this can be enabled.
4366 hardcode_into_libs=yes
4368 # We used to test for /lib/ld.so.1 and disable shared libraries on
4369 # powerpc, because MkLinux only supported shared libraries with the
4370 # GNU dynamic linker. Since this was broken with cross compilers,
4371 # most powerpc-linux boxes support dynamic linking these days and
4372 # people can always --disable-shared, the test was removed, and we
4373 # assume the GNU/Linux dynamic linker is in use.
4374 dynamic_linker='GNU/Linux ld.so'
4377 netbsd*)
4378 version_type=sunos
4379 need_lib_prefix=no
4380 need_version=no
4381 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4383 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4384 dynamic_linker='NetBSD (a.out) ld.so'
4385 else
4386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
4387 soname_spec='${libname}${release}${shared_ext}$major'
4388 dynamic_linker='NetBSD ld.elf_so'
4390 shlibpath_var=LD_LIBRARY_PATH
4391 shlibpath_overrides_runpath=yes
4392 hardcode_into_libs=yes
4395 newsos6)
4396 version_type=linux
4397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4398 shlibpath_var=LD_LIBRARY_PATH
4399 shlibpath_overrides_runpath=yes
4402 nto-qnx)
4403 version_type=linux
4404 need_lib_prefix=no
4405 need_version=no
4406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4407 soname_spec='${libname}${release}${shared_ext}$major'
4408 shlibpath_var=LD_LIBRARY_PATH
4409 shlibpath_overrides_runpath=yes
4412 openbsd*)
4413 version_type=sunos
4414 need_lib_prefix=no
4415 need_version=no
4416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4417 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4418 shlibpath_var=LD_LIBRARY_PATH
4419 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4420 case $host_os in
4421 openbsd2.[89] | openbsd2.[89].*)
4422 shlibpath_overrides_runpath=no
4425 shlibpath_overrides_runpath=yes
4427 esac
4428 else
4429 shlibpath_overrides_runpath=yes
4433 os2*)
4434 libname_spec='$name'
4435 shrext=".dll"
4436 need_lib_prefix=no
4437 library_names_spec='$libname${shared_ext} $libname.a'
4438 dynamic_linker='OS/2 ld.exe'
4439 shlibpath_var=LIBPATH
4442 osf3* | osf4* | osf5*)
4443 version_type=osf
4444 need_lib_prefix=no
4445 need_version=no
4446 soname_spec='${libname}${release}${shared_ext}$major'
4447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4448 shlibpath_var=LD_LIBRARY_PATH
4449 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4450 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4453 sco3.2v5*)
4454 version_type=osf
4455 soname_spec='${libname}${release}${shared_ext}$major'
4456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4457 shlibpath_var=LD_LIBRARY_PATH
4460 solaris*)
4461 version_type=linux
4462 need_lib_prefix=no
4463 need_version=no
4464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4465 soname_spec='${libname}${release}${shared_ext}$major'
4466 shlibpath_var=LD_LIBRARY_PATH
4467 shlibpath_overrides_runpath=yes
4468 hardcode_into_libs=yes
4469 # ldd complains unless libraries are executable
4470 postinstall_cmds='chmod +x $lib'
4473 sunos4*)
4474 version_type=sunos
4475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4476 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4477 shlibpath_var=LD_LIBRARY_PATH
4478 shlibpath_overrides_runpath=yes
4479 if test "$with_gnu_ld" = yes; then
4480 need_lib_prefix=no
4482 need_version=yes
4485 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4486 version_type=linux
4487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4488 soname_spec='${libname}${release}${shared_ext}$major'
4489 shlibpath_var=LD_LIBRARY_PATH
4490 case $host_vendor in
4491 sni)
4492 shlibpath_overrides_runpath=no
4493 need_lib_prefix=no
4494 export_dynamic_flag_spec='${wl}-Blargedynsym'
4495 runpath_var=LD_RUN_PATH
4497 siemens)
4498 need_lib_prefix=no
4500 motorola)
4501 need_lib_prefix=no
4502 need_version=no
4503 shlibpath_overrides_runpath=no
4504 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4506 esac
4509 sysv4*MP*)
4510 if test -d /usr/nec ;then
4511 version_type=linux
4512 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
4513 soname_spec='$libname${shared_ext}.$major'
4514 shlibpath_var=LD_LIBRARY_PATH
4518 uts4*)
4519 version_type=linux
4520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4521 soname_spec='${libname}${release}${shared_ext}$major'
4522 shlibpath_var=LD_LIBRARY_PATH
4526 dynamic_linker=no
4528 esac
4529 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
4530 echo "${ECHO_T}$dynamic_linker" >&6
4531 test "$dynamic_linker" = no && can_build_shared=no
4534 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
4535 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
4536 if test "${libltdl_cv_shlibpath_var+set}" = set; then
4537 echo $ECHO_N "(cached) $ECHO_C" >&6
4538 else
4539 libltdl_cv_shlibpath_var="$shlibpath_var"
4541 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
4542 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
4543 if test -n "$libltdl_cv_shlibpath_var"; then
4545 cat >>confdefs.h <<_ACEOF
4546 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
4547 _ACEOF
4553 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
4556 # See if the user has requested runtime debugging.
4557 LIBGCJDEBUG="disable"
4559 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
4560 if test "${enable_libgcj_debug+set}" = set; then
4561 enableval="$enable_libgcj_debug"
4562 if test "$enable_libgcj_debug" = yes; then
4564 cat >>confdefs.h <<\_ACEOF
4565 #define DEBUG 1
4566 _ACEOF
4568 LIBGCJDEBUG="enable"
4572 # Determine which AWT peer libraries to build
4573 # Check whether --enable-java-awt or --disable-java-awt was given.
4574 if test "${enable_java_awt+set}" = set; then
4575 enableval="$enable_java_awt"
4579 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
4580 use_xlib_awt=""
4581 use_gtk_awt=""
4582 use_qt_awt=""
4583 # The default toolkit to use is the first one specified.
4584 TOOLKIT=
4587 for peer in $peerlibs ; do
4588 case $peer in
4589 xlib)
4590 if test "$no_x" = yes; then
4591 echo "*** xlib peers requested but no X library available" 1>&2
4592 exit 1
4593 else
4594 use_xlib_awt="yes"
4595 if test -z "$TOOLKIT"; then
4596 TOOLKIT=gnu.awt.xlib.XToolkit
4600 gtk)
4601 if test "$no_x" = yes; then
4602 echo "*** gtk peers requested but no X library available" 1>&2
4603 exit 1
4604 else
4605 use_gtk_awt=yes
4606 if test -z "$TOOLKIT"; then
4607 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
4612 if test "$no_x" = yes; then
4613 # Perhaps we should admit the possibility of embedded Qt.
4614 echo "*** Qt peers requested but no X library available" 1>&2
4615 exit 1
4616 else
4617 use_qt_awt=yes
4618 if test -z "$TOOLKIT"; then
4619 TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
4624 use_xlib_awt=
4625 use_gtk_awt=
4626 use_qt_awt=
4627 break
4630 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
4631 exit 1
4632 esac
4633 done
4637 if test "$use_xlib_awt" = yes; then
4638 XLIB_AWT_TRUE=
4639 XLIB_AWT_FALSE='#'
4640 else
4641 XLIB_AWT_TRUE='#'
4642 XLIB_AWT_FALSE=
4647 if test "$use_gtk_awt" = yes; then
4648 GTK_AWT_TRUE=
4649 GTK_AWT_FALSE='#'
4650 else
4651 GTK_AWT_TRUE='#'
4652 GTK_AWT_FALSE=
4657 if test "$use_qt_awt" = yes; then
4658 QT_AWT_TRUE=
4659 QT_AWT_FALSE='#'
4660 else
4661 QT_AWT_TRUE='#'
4662 QT_AWT_FALSE=
4666 # Create standard.omit based on decisions we just made.
4667 cp $srcdir/standard.omit.in standard.omit
4668 if test "$use_xlib_awt" != yes; then
4669 echo gnu/awt/xlib >> standard.omit
4670 echo gnu/gcj/xlib >> standard.omit
4672 if test "$use_gtk_awt" != yes; then
4673 echo gnu/java/awt/peer/gtk >> standard.omit
4675 if test "$use_qt_awt" != yes; then
4676 echo gnu/java/awt/peer/qt >> standard.omit
4679 if test -z "${with_multisubdir}"; then
4680 builddotdot=.
4681 else
4682 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
4685 NATIVE=yes
4687 # Which gcj do we use?
4688 which_gcj=default
4689 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
4690 if test -n "${with_cross_host}"; then
4691 # We are being configured with a cross compiler. We can't
4692 # use ac_exeext, because that is for the target platform.
4693 NATIVE=no
4694 cross_host_exeext=
4695 case "${with_cross_host}" in
4696 *mingw* | *cygwin*)
4697 cross_host_exeext=.exe
4699 esac
4700 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
4701 if test x"$build_noncanonical" = x"$with_cross_host"; then
4702 # Ordinary cross (host!=target and host=build)
4703 which_gcj=built
4704 else
4705 # Canadian cross (host!=target and host!=build)
4706 which_gcj=cross
4708 else
4709 which_gcj=cross
4711 else
4712 # We are being configured with a native or crossed-native compiler
4713 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
4714 if test x"$build" = x"$host"; then
4715 # True native build (host=target and host=build)
4716 which_gcj=built
4717 else
4718 # Crossed-native build (host=target and host!=build)
4719 which_gcj=cross
4721 else
4722 which_gcj=path
4725 case "${which_gcj}" in
4726 built)
4727 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
4728 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
4729 ZIP='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/fastjar/fastjar'
4731 cross)
4732 if test "x${with_newlib}" = "xyes"; then
4733 # FIXME (comment): Why is this needed?
4734 GCC_UNWIND_INCLUDE=
4735 GCJ="${target_noncanonical}-gcj"
4736 else
4737 GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
4739 ZIP='$(target_noncanonical)-fastjar'
4740 GCJH='$(target_noncanonical)-gcjh'
4742 path)
4743 GCJ="gcj -B`${PWDCMD-pwd}`/"
4744 ## In this case, gcj is found outside the build tree. However, zip is
4745 ## found in the build tree.
4746 ZIP='$(top_builddir)/$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
4747 GCJH=gcjh
4749 esac
4754 # Create it, so that compile/link tests don't fail
4755 test -f libgcj.spec || touch libgcj.spec
4759 # Set up to configure Classpath.
4760 # FIXME: no supported way to pass args in autoconf.
4761 ac_configure_args="$ac_configure_args --disable-load-library"
4762 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
4763 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
4764 dir1=`cd $srcdir && pwd`
4765 dir2=`pwd`
4766 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
4767 ac_configure_args="$ac_configure_args --disable-core-jni"
4768 ac_configure_args="$ac_configure_args --disable-examples"
4769 ac_configure_args="$ac_configure_args --with-glibj=build"
4770 if test "$use_gtk_awt" != yes; then
4771 ac_configure_args="$ac_configure_args --disable-gtk-peer"
4773 if test "$use_qt_awt" != yes; then
4774 ac_configure_args="$ac_configure_args --disable-qt-peer"
4775 else
4776 # We need this as qt is disabled by default in classpath.
4777 ac_configure_args="$ac_configure_args --enable-qt-peer"
4780 # Only use libltdl for non-newlib builds.
4781 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4782 case $enable_ltdl_convenience in
4783 no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
4784 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
4785 { (exit 1); exit 1; }; } ;;
4786 "") enable_ltdl_convenience=yes
4787 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
4788 esac
4789 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
4790 INCLTDL='-I${top_srcdir}/''libltdl'
4793 DIRLTDL=libltdl
4795 cat >>confdefs.h <<\_ACEOF
4796 #define USE_LTDL 1
4797 _ACEOF
4799 # Sigh. Libtool's macro doesn't do the right thing.
4800 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
4801 # FIXME: this is a hack.
4802 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
4803 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
4808 # Check whether --enable-shared or --disable-shared was given.
4809 if test "${enable_shared+set}" = set; then
4810 enableval="$enable_shared"
4811 p=${PACKAGE-default}
4812 case $enableval in
4813 yes) enable_shared=yes ;;
4814 no) enable_shared=no ;;
4816 enable_shared=no
4817 # Look at the argument we got. We use all the common list separators.
4818 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4819 for pkg in $enableval; do
4820 if test "X$pkg" = "X$p"; then
4821 enable_shared=yes
4823 done
4824 IFS="$ac_save_ifs"
4826 esac
4827 else
4828 enable_shared=yes
4830 # Check whether --enable-static or --disable-static was given.
4831 if test "${enable_static+set}" = set; then
4832 enableval="$enable_static"
4833 p=${PACKAGE-default}
4834 case $enableval in
4835 yes) enable_static=yes ;;
4836 no) enable_static=no ;;
4838 enable_static=no
4839 # Look at the argument we got. We use all the common list separators.
4840 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4841 for pkg in $enableval; do
4842 if test "X$pkg" = "X$p"; then
4843 enable_static=yes
4845 done
4846 IFS="$ac_save_ifs"
4848 esac
4849 else
4850 enable_static=yes
4852 # Check whether --enable-fast-install or --disable-fast-install was given.
4853 if test "${enable_fast_install+set}" = set; then
4854 enableval="$enable_fast_install"
4855 p=${PACKAGE-default}
4856 case $enableval in
4857 yes) enable_fast_install=yes ;;
4858 no) enable_fast_install=no ;;
4860 enable_fast_install=no
4861 # Look at the argument we got. We use all the common list separators.
4862 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4863 for pkg in $enableval; do
4864 if test "X$pkg" = "X$p"; then
4865 enable_fast_install=yes
4867 done
4868 IFS="$ac_save_ifs"
4870 esac
4871 else
4872 enable_fast_install=yes
4875 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4876 if test "${with_gnu_ld+set}" = set; then
4877 withval="$with_gnu_ld"
4878 test "$withval" = no || with_gnu_ld=yes
4879 else
4880 with_gnu_ld=no
4882 ac_prog=ld
4883 if test "$GCC" = yes; then
4884 # Check if gcc -print-prog-name=ld gives a path.
4885 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4886 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4887 case $host in
4888 *-*-mingw*)
4889 # gcc leaves a trailing carriage return which upsets mingw
4890 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4892 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4893 esac
4894 case $ac_prog in
4895 # Accept absolute paths.
4896 [\\/]* | [A-Za-z]:[\\/]*)
4897 re_direlt='/[^/][^/]*/\.\./'
4898 # Canonicalize the path of ld
4899 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4900 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4901 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4902 done
4903 test -z "$LD" && LD="$ac_prog"
4906 # If it fails, then pretend we aren't using GCC.
4907 ac_prog=ld
4910 # If it is relative, then search for the first ld in PATH.
4911 with_gnu_ld=unknown
4913 esac
4914 elif test "$with_gnu_ld" = yes; then
4915 echo "$as_me:$LINENO: checking for GNU ld" >&5
4916 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4917 else
4918 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4919 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4921 if test "${lt_cv_path_LD+set}" = set; then
4922 echo $ECHO_N "(cached) $ECHO_C" >&6
4923 else
4924 if test -z "$LD"; then
4925 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4926 for ac_dir in $PATH; do
4927 test -z "$ac_dir" && ac_dir=.
4928 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4929 lt_cv_path_LD="$ac_dir/$ac_prog"
4930 # Check to see if the program is GNU ld. I'd rather use --version,
4931 # but apparently some GNU ld's only accept -v.
4932 # Break only if it was the GNU/non-GNU ld that we prefer.
4933 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4934 test "$with_gnu_ld" != no && break
4935 else
4936 test "$with_gnu_ld" != yes && break
4939 done
4940 IFS="$ac_save_ifs"
4941 else
4942 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4946 LD="$lt_cv_path_LD"
4947 if test -n "$LD"; then
4948 echo "$as_me:$LINENO: result: $LD" >&5
4949 echo "${ECHO_T}$LD" >&6
4950 else
4951 echo "$as_me:$LINENO: result: no" >&5
4952 echo "${ECHO_T}no" >&6
4954 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4955 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4956 { (exit 1); exit 1; }; }
4957 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4958 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4959 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4960 echo $ECHO_N "(cached) $ECHO_C" >&6
4961 else
4962 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4963 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4964 lt_cv_prog_gnu_ld=yes
4965 else
4966 lt_cv_prog_gnu_ld=no
4969 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4970 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4971 with_gnu_ld=$lt_cv_prog_gnu_ld
4974 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4975 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4976 if test "${lt_cv_ld_reload_flag+set}" = set; then
4977 echo $ECHO_N "(cached) $ECHO_C" >&6
4978 else
4979 lt_cv_ld_reload_flag='-r'
4981 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4982 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4983 reload_flag=$lt_cv_ld_reload_flag
4984 test -n "$reload_flag" && reload_flag=" $reload_flag"
4986 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4987 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4988 if test "${lt_cv_path_NM+set}" = set; then
4989 echo $ECHO_N "(cached) $ECHO_C" >&6
4990 else
4991 if test -n "$NM"; then
4992 # Let the user override the test.
4993 lt_cv_path_NM="$NM"
4994 else
4995 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4996 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4997 test -z "$ac_dir" && ac_dir=.
4998 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4999 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
5000 # Check to see if the nm accepts a BSD-compat flag.
5001 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5002 # nm: unknown option "B" ignored
5003 # Tru64's nm complains that /dev/null is an invalid object file
5004 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
5005 lt_cv_path_NM="$tmp_nm -B"
5006 break
5007 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
5008 lt_cv_path_NM="$tmp_nm -p"
5009 break
5010 else
5011 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5012 continue # so that we can try to find one that supports BSD flags
5015 done
5016 IFS="$ac_save_ifs"
5017 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5021 NM="$lt_cv_path_NM"
5022 echo "$as_me:$LINENO: result: $NM" >&5
5023 echo "${ECHO_T}$NM" >&6
5025 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
5026 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
5027 if test "${lt_cv_deplibs_check_method+set}" = set; then
5028 echo $ECHO_N "(cached) $ECHO_C" >&6
5029 else
5030 lt_cv_file_magic_cmd='$MAGIC_CMD'
5031 lt_cv_file_magic_test_file=
5032 lt_cv_deplibs_check_method='unknown'
5033 # Need to set the preceding variable on all platforms that support
5034 # interlibrary dependencies.
5035 # 'none' -- dependencies not supported.
5036 # `unknown' -- same as none, but documents that we really don't know.
5037 # 'pass_all' -- all dependencies passed with no checks.
5038 # 'test_compile' -- check by making test program.
5039 # 'file_magic [regex]' -- check by looking for files in library path
5040 # which responds to the $file_magic_cmd with a given egrep regex.
5041 # If you have `file' or equivalent on your system and you're not sure
5042 # whether `pass_all' will *always* work, you probably want this one.
5044 case $host_os in
5045 aix*)
5046 lt_cv_deplibs_check_method=pass_all
5049 beos*)
5050 lt_cv_deplibs_check_method=pass_all
5053 bsdi4*)
5054 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5055 lt_cv_file_magic_cmd='/usr/bin/file -L'
5056 lt_cv_file_magic_test_file=/shlib/libc.so
5059 cygwin* | mingw* |pw32*)
5060 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5061 lt_cv_file_magic_cmd='$OBJDUMP -f'
5064 darwin* | rhapsody*)
5065 # this will be overwritten by pass_all, but leave it in just in case
5066 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5067 lt_cv_file_magic_cmd='/usr/bin/file -L'
5068 case "$host_os" in
5069 rhapsody* | darwin1.012)
5070 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
5072 *) # Darwin 1.3 on
5073 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5075 esac
5076 lt_cv_deplibs_check_method=pass_all
5079 freebsd* | kfreebsd*-gnu)
5080 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5081 case $host_cpu in
5082 i*86 )
5083 # Not sure whether the presence of OpenBSD here was a mistake.
5084 # Let's accept both of them until this is cleared up.
5085 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5086 lt_cv_file_magic_cmd=/usr/bin/file
5087 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5089 esac
5090 else
5091 lt_cv_deplibs_check_method=pass_all
5095 gnu*)
5096 lt_cv_deplibs_check_method=pass_all
5099 hpux10.20*|hpux11*)
5100 case $host_cpu in
5101 hppa*)
5102 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5103 lt_cv_file_magic_cmd=/usr/bin/file
5104 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5106 ia64*)
5107 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5108 lt_cv_file_magic_cmd=/usr/bin/file
5109 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5111 esac
5114 irix5* | irix6*)
5115 case $host_os in
5116 irix5*)
5117 # this will be overridden with pass_all, but let us keep it just in case
5118 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5121 case $LD in
5122 *-32|*"-32 ") libmagic=32-bit;;
5123 *-n32|*"-n32 ") libmagic=N32;;
5124 *-64|*"-64 ") libmagic=64-bit;;
5125 *) libmagic=never-match;;
5126 esac
5127 # this will be overridden with pass_all, but let us keep it just in case
5128 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5130 esac
5131 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5132 lt_cv_deplibs_check_method=pass_all
5135 # This must be Linux ELF.
5136 linux-gnu*)
5137 lt_cv_deplibs_check_method=pass_all
5140 netbsd* | knetbsd*-gnu)
5141 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5142 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
5143 else
5144 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
5148 newsos6)
5149 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5150 lt_cv_file_magic_cmd=/usr/bin/file
5151 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5154 osf3* | osf4* | osf5*)
5155 # this will be overridden with pass_all, but let us keep it just in case
5156 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5157 lt_cv_file_magic_test_file=/shlib/libc.so
5158 lt_cv_deplibs_check_method=pass_all
5161 sco3.2v5*)
5162 lt_cv_deplibs_check_method=pass_all
5165 solaris*)
5166 lt_cv_deplibs_check_method=pass_all
5167 lt_cv_file_magic_test_file=/lib/libc.so
5170 sysv5uw[78]* | sysv4*uw2*)
5171 lt_cv_deplibs_check_method=pass_all
5174 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5175 case $host_vendor in
5176 ncr)
5177 lt_cv_deplibs_check_method=pass_all
5179 motorola)
5180 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]'
5181 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5183 esac
5185 esac
5188 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5189 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5190 file_magic_cmd=$lt_cv_file_magic_cmd
5191 deplibs_check_method=$lt_cv_deplibs_check_method
5196 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5198 # find the maximum length of command line arguments
5199 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5200 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5201 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5202 echo $ECHO_N "(cached) $ECHO_C" >&6
5203 else
5205 teststring="ABCD"
5207 case $build_os in
5208 msdosdjgpp*)
5209 # On DJGPP, this test can blow up pretty badly due to problems in libc
5210 # (any single argument exceeding 2000 bytes causes a buffer overrun
5211 # during glob expansion). Even if it were fixed, the result of this
5212 # check would be larger than it should be.
5213 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5216 cygwin* | mingw*)
5217 # On Win9x/ME, this test blows up -- it succeeds, but takes
5218 # about 5 minutes as the teststring grows exponentially.
5219 # Worse, since 9x/ME are not pre-emptively multitasking,
5220 # you end up with a "frozen" computer, even though with patience
5221 # the test eventually succeeds (with a max line length of 256k).
5222 # Instead, let's just punt: use the minimum linelength reported by
5223 # all of the supported platforms: 8192 (on NT/2K/XP).
5224 lt_cv_sys_max_cmd_len=8192;
5227 amigaos*)
5228 # On AmigaOS with pdksh, this test takes hours, literally.
5229 # So we just punt and use a minimum line length of 8192.
5230 lt_cv_sys_max_cmd_len=8192;
5233 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5234 # This has been around since 386BSD, at least. Likely further.
5235 if test -x /sbin/sysctl; then
5236 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5237 elif test -x /usr/sbin/sysctl; then
5238 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5239 else
5240 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5242 # And add a safety zone
5243 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5244 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5246 esac
5250 if test -n "$lt_cv_sys_max_cmd_len" ; then
5251 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5252 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5253 else
5254 echo "$as_me:$LINENO: result: none" >&5
5255 echo "${ECHO_T}none" >&6
5259 # Only perform the check for file, if the check method requires it
5260 case $deplibs_check_method in
5261 file_magic*)
5262 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5263 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5264 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5265 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5266 echo $ECHO_N "(cached) $ECHO_C" >&6
5267 else
5268 case $MAGIC_CMD in
5270 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5272 ?:/*)
5273 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5276 ac_save_MAGIC_CMD="$MAGIC_CMD"
5277 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5278 ac_dummy="/usr/bin:$PATH"
5279 for ac_dir in $ac_dummy; do
5280 test -z "$ac_dir" && ac_dir=.
5281 if test -f $ac_dir/${ac_tool_prefix}file; then
5282 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5283 if test -n "$file_magic_test_file"; then
5284 case $deplibs_check_method in
5285 "file_magic "*)
5286 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5287 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5288 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5289 egrep "$file_magic_regex" > /dev/null; then
5291 else
5292 cat <<EOF 1>&2
5294 *** Warning: the command libtool uses to detect shared libraries,
5295 *** $file_magic_cmd, produces output that libtool cannot recognize.
5296 *** The result is that libtool may fail to recognize shared libraries
5297 *** as such. This will affect the creation of libtool libraries that
5298 *** depend on shared libraries, but programs linked with such libtool
5299 *** libraries will work regardless of this problem. Nevertheless, you
5300 *** may want to report the problem to your system manager and/or to
5301 *** bug-libtool@gnu.org
5304 fi ;;
5305 esac
5307 break
5309 done
5310 IFS="$ac_save_ifs"
5311 MAGIC_CMD="$ac_save_MAGIC_CMD"
5313 esac
5316 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5317 if test -n "$MAGIC_CMD"; then
5318 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5319 echo "${ECHO_T}$MAGIC_CMD" >&6
5320 else
5321 echo "$as_me:$LINENO: result: no" >&5
5322 echo "${ECHO_T}no" >&6
5325 if test -z "$lt_cv_path_MAGIC_CMD"; then
5326 if test -n "$ac_tool_prefix"; then
5327 echo "$as_me:$LINENO: checking for file" >&5
5328 echo $ECHO_N "checking for file... $ECHO_C" >&6
5329 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5330 echo $ECHO_N "(cached) $ECHO_C" >&6
5331 else
5332 case $MAGIC_CMD in
5334 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5336 ?:/*)
5337 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5340 ac_save_MAGIC_CMD="$MAGIC_CMD"
5341 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5342 ac_dummy="/usr/bin:$PATH"
5343 for ac_dir in $ac_dummy; do
5344 test -z "$ac_dir" && ac_dir=.
5345 if test -f $ac_dir/file; then
5346 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5347 if test -n "$file_magic_test_file"; then
5348 case $deplibs_check_method in
5349 "file_magic "*)
5350 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5351 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5352 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5353 egrep "$file_magic_regex" > /dev/null; then
5355 else
5356 cat <<EOF 1>&2
5358 *** Warning: the command libtool uses to detect shared libraries,
5359 *** $file_magic_cmd, produces output that libtool cannot recognize.
5360 *** The result is that libtool may fail to recognize shared libraries
5361 *** as such. This will affect the creation of libtool libraries that
5362 *** depend on shared libraries, but programs linked with such libtool
5363 *** libraries will work regardless of this problem. Nevertheless, you
5364 *** may want to report the problem to your system manager and/or to
5365 *** bug-libtool@gnu.org
5368 fi ;;
5369 esac
5371 break
5373 done
5374 IFS="$ac_save_ifs"
5375 MAGIC_CMD="$ac_save_MAGIC_CMD"
5377 esac
5380 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5381 if test -n "$MAGIC_CMD"; then
5382 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5383 echo "${ECHO_T}$MAGIC_CMD" >&6
5384 else
5385 echo "$as_me:$LINENO: result: no" >&5
5386 echo "${ECHO_T}no" >&6
5389 else
5390 MAGIC_CMD=:
5396 esac
5398 if test -n "$ac_tool_prefix"; then
5399 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5400 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5401 echo "$as_me:$LINENO: checking for $ac_word" >&5
5402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5403 if test "${ac_cv_prog_RANLIB+set}" = set; then
5404 echo $ECHO_N "(cached) $ECHO_C" >&6
5405 else
5406 if test -n "$RANLIB"; then
5407 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5408 else
5409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5410 for as_dir in $PATH
5412 IFS=$as_save_IFS
5413 test -z "$as_dir" && as_dir=.
5414 for ac_exec_ext in '' $ac_executable_extensions; do
5415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5416 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5418 break 2
5420 done
5421 done
5425 RANLIB=$ac_cv_prog_RANLIB
5426 if test -n "$RANLIB"; then
5427 echo "$as_me:$LINENO: result: $RANLIB" >&5
5428 echo "${ECHO_T}$RANLIB" >&6
5429 else
5430 echo "$as_me:$LINENO: result: no" >&5
5431 echo "${ECHO_T}no" >&6
5435 if test -z "$ac_cv_prog_RANLIB"; then
5436 ac_ct_RANLIB=$RANLIB
5437 # Extract the first word of "ranlib", so it can be a program name with args.
5438 set dummy ranlib; ac_word=$2
5439 echo "$as_me:$LINENO: checking for $ac_word" >&5
5440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5441 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5442 echo $ECHO_N "(cached) $ECHO_C" >&6
5443 else
5444 if test -n "$ac_ct_RANLIB"; then
5445 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5446 else
5447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5448 for as_dir in $PATH
5450 IFS=$as_save_IFS
5451 test -z "$as_dir" && as_dir=.
5452 for ac_exec_ext in '' $ac_executable_extensions; do
5453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5454 ac_cv_prog_ac_ct_RANLIB="ranlib"
5455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5456 break 2
5458 done
5459 done
5461 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5464 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5465 if test -n "$ac_ct_RANLIB"; then
5466 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5467 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5468 else
5469 echo "$as_me:$LINENO: result: no" >&5
5470 echo "${ECHO_T}no" >&6
5473 RANLIB=$ac_ct_RANLIB
5474 else
5475 RANLIB="$ac_cv_prog_RANLIB"
5478 if test -n "$ac_tool_prefix"; then
5479 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5480 set dummy ${ac_tool_prefix}strip; ac_word=$2
5481 echo "$as_me:$LINENO: checking for $ac_word" >&5
5482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5483 if test "${ac_cv_prog_STRIP+set}" = set; then
5484 echo $ECHO_N "(cached) $ECHO_C" >&6
5485 else
5486 if test -n "$STRIP"; then
5487 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5488 else
5489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5490 for as_dir in $PATH
5492 IFS=$as_save_IFS
5493 test -z "$as_dir" && as_dir=.
5494 for ac_exec_ext in '' $ac_executable_extensions; do
5495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5496 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5498 break 2
5500 done
5501 done
5505 STRIP=$ac_cv_prog_STRIP
5506 if test -n "$STRIP"; then
5507 echo "$as_me:$LINENO: result: $STRIP" >&5
5508 echo "${ECHO_T}$STRIP" >&6
5509 else
5510 echo "$as_me:$LINENO: result: no" >&5
5511 echo "${ECHO_T}no" >&6
5515 if test -z "$ac_cv_prog_STRIP"; then
5516 ac_ct_STRIP=$STRIP
5517 # Extract the first word of "strip", so it can be a program name with args.
5518 set dummy strip; ac_word=$2
5519 echo "$as_me:$LINENO: checking for $ac_word" >&5
5520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5521 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5522 echo $ECHO_N "(cached) $ECHO_C" >&6
5523 else
5524 if test -n "$ac_ct_STRIP"; then
5525 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5526 else
5527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528 for as_dir in $PATH
5530 IFS=$as_save_IFS
5531 test -z "$as_dir" && as_dir=.
5532 for ac_exec_ext in '' $ac_executable_extensions; do
5533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5534 ac_cv_prog_ac_ct_STRIP="strip"
5535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5536 break 2
5538 done
5539 done
5541 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5544 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5545 if test -n "$ac_ct_STRIP"; then
5546 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5547 echo "${ECHO_T}$ac_ct_STRIP" >&6
5548 else
5549 echo "$as_me:$LINENO: result: no" >&5
5550 echo "${ECHO_T}no" >&6
5553 STRIP=$ac_ct_STRIP
5554 else
5555 STRIP="$ac_cv_prog_STRIP"
5559 # Check for any special flags to pass to ltconfig.
5560 libtool_flags="--cache-file=$cache_file"
5561 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
5562 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
5563 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
5564 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
5565 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
5568 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5569 if test "${enable_libtool_lock+set}" = set; then
5570 enableval="$enable_libtool_lock"
5573 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
5574 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
5577 # Check whether --with-pic or --without-pic was given.
5578 if test "${with_pic+set}" = set; then
5579 withval="$with_pic"
5580 pic_mode="$withval"
5581 else
5582 pic_mode=default
5584 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
5585 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
5587 # Some flags need to be propagated to the compiler or linker for good
5588 # libtool support.
5589 case $host in
5590 *-*-irix6*)
5591 # Find out which ABI we are using.
5592 echo '#line 5592 "configure"' > conftest.$ac_ext
5593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5594 (eval $ac_compile) 2>&5
5595 ac_status=$?
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); }; then
5598 if test "$lt_cv_prog_gnu_ld" = yes; then
5599 case `/usr/bin/file conftest.$ac_objext` in
5600 *32-bit*)
5601 LD="${LD-ld} -melf32bsmip"
5603 *N32*)
5604 LD="${LD-ld} -melf32bmipn32"
5606 *64-bit*)
5607 LD="${LD-ld} -melf64bmip"
5609 esac
5610 else
5611 case `/usr/bin/file conftest.$ac_objext` in
5612 *32-bit*)
5613 LD="${LD-ld} -32"
5615 *N32*)
5616 LD="${LD-ld} -n32"
5618 *64-bit*)
5619 LD="${LD-ld} -64"
5621 esac
5624 rm -rf conftest*
5627 ia64-*-hpux*)
5628 # Find out which ABI we are using.
5629 echo 'int i;' > conftest.$ac_ext
5630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5631 (eval $ac_compile) 2>&5
5632 ac_status=$?
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); }; then
5635 case "`/usr/bin/file conftest.o`" in
5636 *ELF-32*)
5637 HPUX_IA64_MODE="32"
5639 *ELF-64*)
5640 HPUX_IA64_MODE="64"
5642 esac
5644 rm -rf conftest*
5647 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5648 # Find out which ABI we are using.
5649 echo 'int i;' > conftest.$ac_ext
5650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5651 (eval $ac_compile) 2>&5
5652 ac_status=$?
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); }; then
5655 case "`/usr/bin/file conftest.o`" in
5656 *32-bit*)
5657 case $host in
5658 x86_64-*linux*)
5659 LD="${LD-ld} -m elf_i386"
5661 ppc64-*linux*|powerpc64-*linux*)
5662 LD="${LD-ld} -m elf32ppclinux"
5664 s390x-*linux*)
5665 LD="${LD-ld} -m elf_s390"
5667 sparc64-*linux*)
5668 LD="${LD-ld} -m elf32_sparc"
5670 esac
5672 *64-bit*)
5673 case $host in
5674 x86_64-*linux*)
5675 LD="${LD-ld} -m elf_x86_64"
5677 ppc*-*linux*|powerpc*-*linux*)
5678 LD="${LD-ld} -m elf64ppc"
5680 s390*-*linux*)
5681 LD="${LD-ld} -m elf64_s390"
5683 sparc*-*linux*)
5684 LD="${LD-ld} -m elf64_sparc"
5686 esac
5688 esac
5690 rm -rf conftest*
5693 *-*-sco3.2v5*)
5694 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5695 SAVE_CFLAGS="$CFLAGS"
5696 CFLAGS="$CFLAGS -belf"
5697 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5698 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5699 if test "${lt_cv_cc_needs_belf+set}" = set; then
5700 echo $ECHO_N "(cached) $ECHO_C" >&6
5701 else
5704 ac_ext=c
5705 ac_cpp='$CPP $CPPFLAGS'
5706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5710 if test x$gcc_no_link = xyes; then
5711 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5712 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5713 { (exit 1); exit 1; }; }
5715 cat >conftest.$ac_ext <<_ACEOF
5716 /* confdefs.h. */
5717 _ACEOF
5718 cat confdefs.h >>conftest.$ac_ext
5719 cat >>conftest.$ac_ext <<_ACEOF
5720 /* end confdefs.h. */
5723 main ()
5727 return 0;
5729 _ACEOF
5730 rm -f conftest.$ac_objext conftest$ac_exeext
5731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5732 (eval $ac_link) 2>conftest.er1
5733 ac_status=$?
5734 grep -v '^ *+' conftest.er1 >conftest.err
5735 rm -f conftest.er1
5736 cat conftest.err >&5
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); } &&
5739 { ac_try='test -z "$ac_c_werror_flag"
5740 || test ! -s conftest.err'
5741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742 (eval $ac_try) 2>&5
5743 ac_status=$?
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); }; } &&
5746 { ac_try='test -s conftest$ac_exeext'
5747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748 (eval $ac_try) 2>&5
5749 ac_status=$?
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); }; }; then
5752 lt_cv_cc_needs_belf=yes
5753 else
5754 echo "$as_me: failed program was:" >&5
5755 sed 's/^/| /' conftest.$ac_ext >&5
5757 lt_cv_cc_needs_belf=no
5759 rm -f conftest.err conftest.$ac_objext \
5760 conftest$ac_exeext conftest.$ac_ext
5761 ac_ext=c
5762 ac_cpp='$CPP $CPPFLAGS'
5763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5768 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5769 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5770 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5771 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5772 CFLAGS="$SAVE_CFLAGS"
5777 esac
5780 # Save cache, so that ltconfig can load it
5781 cat >confcache <<\_ACEOF
5782 # This file is a shell script that caches the results of configure
5783 # tests run on this system so they can be shared between configure
5784 # scripts and configure runs, see configure's option --config-cache.
5785 # It is not useful on other systems. If it contains results you don't
5786 # want to keep, you may remove or edit it.
5788 # config.status only pays attention to the cache file if you give it
5789 # the --recheck option to rerun configure.
5791 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5792 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5793 # following values.
5795 _ACEOF
5797 # The following way of writing the cache mishandles newlines in values,
5798 # but we know of no workaround that is simple, portable, and efficient.
5799 # So, don't put newlines in cache variables' values.
5800 # Ultrix sh set writes to stderr and can't be redirected directly,
5801 # and sets the high bit in the cache file unless we assign to the vars.
5803 (set) 2>&1 |
5804 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5805 *ac_space=\ *)
5806 # `set' does not quote correctly, so add quotes (double-quote
5807 # substitution turns \\\\ into \\, and sed turns \\ into \).
5808 sed -n \
5809 "s/'/'\\\\''/g;
5810 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5813 # `set' quotes correctly as required by POSIX, so do not add quotes.
5814 sed -n \
5815 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5817 esac;
5819 sed '
5820 t clear
5821 : clear
5822 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5823 t end
5824 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5825 : end' >>confcache
5826 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5827 if test -w $cache_file; then
5828 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5829 cat confcache >$cache_file
5830 else
5831 echo "not updating unwritable cache $cache_file"
5834 rm -f confcache
5836 # Actually configure libtool. ac_aux_dir is where install-sh is found.
5837 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
5838 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5839 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5840 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5841 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5842 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
5843 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
5844 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5845 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5846 echo "$as_me: error: libtool configure failed" >&2;}
5847 { (exit 1); exit 1; }; }
5849 # Reload cache, that may have been modified by ltconfig
5850 if test -r "$cache_file"; then
5851 # Some versions of bash will fail to source /dev/null (special
5852 # files actually), so we avoid doing that.
5853 if test -f "$cache_file"; then
5854 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5855 echo "$as_me: loading cache $cache_file" >&6;}
5856 case $cache_file in
5857 [\\/]* | ?:[\\/]* ) . $cache_file;;
5858 *) . ./$cache_file;;
5859 esac
5861 else
5862 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5863 echo "$as_me: creating cache $cache_file" >&6;}
5864 >$cache_file
5868 # This can be used to rebuild libtool when needed
5869 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5871 # Always use our own libtool.
5872 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5874 # Redirect the config.log output again, so that the ltconfig log is not
5875 # clobbered by the next message.
5876 exec 5>>./config.log
5878 ac_ext=cc
5879 ac_cpp='$CXXCPP $CPPFLAGS'
5880 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5881 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5882 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5883 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5884 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5885 if test -z "$CXXCPP"; then
5886 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5888 else
5889 # Double quotes because CXXCPP needs to be expanded
5890 for CXXCPP in "$CXX -E" "/lib/cpp"
5892 ac_preproc_ok=false
5893 for ac_cxx_preproc_warn_flag in '' yes
5895 # Use a header file that comes with gcc, so configuring glibc
5896 # with a fresh cross-compiler works.
5897 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5898 # <limits.h> exists even on freestanding compilers.
5899 # On the NeXT, cc -E runs the code through the compiler's parser,
5900 # not just through cpp. "Syntax error" is here to catch this case.
5901 cat >conftest.$ac_ext <<_ACEOF
5902 /* confdefs.h. */
5903 _ACEOF
5904 cat confdefs.h >>conftest.$ac_ext
5905 cat >>conftest.$ac_ext <<_ACEOF
5906 /* end confdefs.h. */
5907 #ifdef __STDC__
5908 # include <limits.h>
5909 #else
5910 # include <assert.h>
5911 #endif
5912 Syntax error
5913 _ACEOF
5914 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5915 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5916 ac_status=$?
5917 grep -v '^ *+' conftest.er1 >conftest.err
5918 rm -f conftest.er1
5919 cat conftest.err >&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); } >/dev/null; then
5922 if test -s conftest.err; then
5923 ac_cpp_err=$ac_cxx_preproc_warn_flag
5924 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5925 else
5926 ac_cpp_err=
5928 else
5929 ac_cpp_err=yes
5931 if test -z "$ac_cpp_err"; then
5933 else
5934 echo "$as_me: failed program was:" >&5
5935 sed 's/^/| /' conftest.$ac_ext >&5
5937 # Broken: fails on valid input.
5938 continue
5940 rm -f conftest.err conftest.$ac_ext
5942 # OK, works on sane cases. Now check whether non-existent headers
5943 # can be detected and how.
5944 cat >conftest.$ac_ext <<_ACEOF
5945 /* confdefs.h. */
5946 _ACEOF
5947 cat confdefs.h >>conftest.$ac_ext
5948 cat >>conftest.$ac_ext <<_ACEOF
5949 /* end confdefs.h. */
5950 #include <ac_nonexistent.h>
5951 _ACEOF
5952 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5953 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5954 ac_status=$?
5955 grep -v '^ *+' conftest.er1 >conftest.err
5956 rm -f conftest.er1
5957 cat conftest.err >&5
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); } >/dev/null; then
5960 if test -s conftest.err; then
5961 ac_cpp_err=$ac_cxx_preproc_warn_flag
5962 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5963 else
5964 ac_cpp_err=
5966 else
5967 ac_cpp_err=yes
5969 if test -z "$ac_cpp_err"; then
5970 # Broken: success on invalid input.
5971 continue
5972 else
5973 echo "$as_me: failed program was:" >&5
5974 sed 's/^/| /' conftest.$ac_ext >&5
5976 # Passes both tests.
5977 ac_preproc_ok=:
5978 break
5980 rm -f conftest.err conftest.$ac_ext
5982 done
5983 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5984 rm -f conftest.err conftest.$ac_ext
5985 if $ac_preproc_ok; then
5986 break
5989 done
5990 ac_cv_prog_CXXCPP=$CXXCPP
5993 CXXCPP=$ac_cv_prog_CXXCPP
5994 else
5995 ac_cv_prog_CXXCPP=$CXXCPP
5997 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5998 echo "${ECHO_T}$CXXCPP" >&6
5999 ac_preproc_ok=false
6000 for ac_cxx_preproc_warn_flag in '' yes
6002 # Use a header file that comes with gcc, so configuring glibc
6003 # with a fresh cross-compiler works.
6004 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6005 # <limits.h> exists even on freestanding compilers.
6006 # On the NeXT, cc -E runs the code through the compiler's parser,
6007 # not just through cpp. "Syntax error" is here to catch this case.
6008 cat >conftest.$ac_ext <<_ACEOF
6009 /* confdefs.h. */
6010 _ACEOF
6011 cat confdefs.h >>conftest.$ac_ext
6012 cat >>conftest.$ac_ext <<_ACEOF
6013 /* end confdefs.h. */
6014 #ifdef __STDC__
6015 # include <limits.h>
6016 #else
6017 # include <assert.h>
6018 #endif
6019 Syntax error
6020 _ACEOF
6021 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6023 ac_status=$?
6024 grep -v '^ *+' conftest.er1 >conftest.err
6025 rm -f conftest.er1
6026 cat conftest.err >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); } >/dev/null; then
6029 if test -s conftest.err; then
6030 ac_cpp_err=$ac_cxx_preproc_warn_flag
6031 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6032 else
6033 ac_cpp_err=
6035 else
6036 ac_cpp_err=yes
6038 if test -z "$ac_cpp_err"; then
6040 else
6041 echo "$as_me: failed program was:" >&5
6042 sed 's/^/| /' conftest.$ac_ext >&5
6044 # Broken: fails on valid input.
6045 continue
6047 rm -f conftest.err conftest.$ac_ext
6049 # OK, works on sane cases. Now check whether non-existent headers
6050 # can be detected and how.
6051 cat >conftest.$ac_ext <<_ACEOF
6052 /* confdefs.h. */
6053 _ACEOF
6054 cat confdefs.h >>conftest.$ac_ext
6055 cat >>conftest.$ac_ext <<_ACEOF
6056 /* end confdefs.h. */
6057 #include <ac_nonexistent.h>
6058 _ACEOF
6059 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6060 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6061 ac_status=$?
6062 grep -v '^ *+' conftest.er1 >conftest.err
6063 rm -f conftest.er1
6064 cat conftest.err >&5
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); } >/dev/null; then
6067 if test -s conftest.err; then
6068 ac_cpp_err=$ac_cxx_preproc_warn_flag
6069 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6070 else
6071 ac_cpp_err=
6073 else
6074 ac_cpp_err=yes
6076 if test -z "$ac_cpp_err"; then
6077 # Broken: success on invalid input.
6078 continue
6079 else
6080 echo "$as_me: failed program was:" >&5
6081 sed 's/^/| /' conftest.$ac_ext >&5
6083 # Passes both tests.
6084 ac_preproc_ok=:
6085 break
6087 rm -f conftest.err conftest.$ac_ext
6089 done
6090 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6091 rm -f conftest.err conftest.$ac_ext
6092 if $ac_preproc_ok; then
6094 else
6095 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6096 See \`config.log' for more details." >&5
6097 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6098 See \`config.log' for more details." >&2;}
6099 { (exit 1); exit 1; }; }
6102 ac_ext=c
6103 ac_cpp='$CPP $CPPFLAGS'
6104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6110 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
6111 lt_save_CC="$CC"
6112 lt_save_CFLAGS="$CFLAGS"
6113 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
6114 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6115 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6116 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6117 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6118 deplibs_check_method="$deplibs_check_method" \
6119 file_magic_cmd="$file_magic_cmd" \
6120 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6121 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
6122 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6123 echo "$as_me: error: libtool tag configuration failed" >&2;}
6124 { (exit 1); exit 1; }; }
6125 CC="$lt_save_CC"
6126 CFLAGS="$lt_save_CFLAGS"
6128 # Redirect the config.log output again, so that the ltconfig log is not
6129 # clobbered by the next message.
6130 exec 5>>./config.log
6138 for ac_prog in gcj
6140 # Extract the first word of "$ac_prog", so it can be a program name with args.
6141 set dummy $ac_prog; ac_word=$2
6142 echo "$as_me:$LINENO: checking for $ac_word" >&5
6143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6144 if test "${ac_cv_prog_GCJ+set}" = set; then
6145 echo $ECHO_N "(cached) $ECHO_C" >&6
6146 else
6147 if test -n "$GCJ"; then
6148 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
6149 else
6150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151 for as_dir in $PATH
6153 IFS=$as_save_IFS
6154 test -z "$as_dir" && as_dir=.
6155 for ac_exec_ext in '' $ac_executable_extensions; do
6156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6157 ac_cv_prog_GCJ="$ac_prog"
6158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6159 break 2
6161 done
6162 done
6166 GCJ=$ac_cv_prog_GCJ
6167 if test -n "$GCJ"; then
6168 echo "$as_me:$LINENO: result: $GCJ" >&5
6169 echo "${ECHO_T}$GCJ" >&6
6170 else
6171 echo "$as_me:$LINENO: result: no" >&5
6172 echo "${ECHO_T}no" >&6
6175 test -n "$GCJ" && break
6176 done
6177 test -n "$GCJ" || GCJ="gcj"
6179 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
6180 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
6181 { (exit 1); exit 1; }; }
6182 if test "x${GCJFLAGS-unset}" = xunset; then
6183 GCJFLAGS="-g -O2"
6187 depcc="$GCJ" am_compiler_list='gcc3 gcc'
6189 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6190 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6191 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
6192 echo $ECHO_N "(cached) $ECHO_C" >&6
6193 else
6194 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6195 # We make a subdir and do the tests there. Otherwise we can end up
6196 # making bogus files that we don't know about and never remove. For
6197 # instance it was reported that on HP-UX the gcc test will end up
6198 # making a dummy file named `D' -- because `-MD' means `put the output
6199 # in D'.
6200 mkdir conftest.dir
6201 # Copy depcomp to subdir because otherwise we won't find it if we're
6202 # using a relative directory.
6203 cp "$am_depcomp" conftest.dir
6204 cd conftest.dir
6205 # We will build objects and dependencies in a subdirectory because
6206 # it helps to detect inapplicable dependency modes. For instance
6207 # both Tru64's cc and ICC support -MD to output dependencies as a
6208 # side effect of compilation, but ICC will put the dependencies in
6209 # the current directory while Tru64 will put them in the object
6210 # directory.
6211 mkdir sub
6213 am_cv_GCJ_dependencies_compiler_type=none
6214 if test "$am_compiler_list" = ""; then
6215 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6217 for depmode in $am_compiler_list; do
6218 # Setup a source with many dependencies, because some compilers
6219 # like to wrap large dependency lists on column 80 (with \), and
6220 # we should not choose a depcomp mode which is confused by this.
6222 # We need to recreate these files for each test, as the compiler may
6223 # overwrite some of them when testing with obscure command lines.
6224 # This happens at least with the AIX C compiler.
6225 : > sub/conftest.c
6226 for i in 1 2 3 4 5 6; do
6227 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6228 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6229 # Solaris 8's {/usr,}/bin/sh.
6230 touch sub/conftst$i.h
6231 done
6232 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6234 case $depmode in
6235 nosideeffect)
6236 # after this tag, mechanisms are not by side-effect, so they'll
6237 # only be used when explicitly requested
6238 if test "x$enable_dependency_tracking" = xyes; then
6239 continue
6240 else
6241 break
6244 none) break ;;
6245 esac
6246 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6247 # mode. It turns out that the SunPro C++ compiler does not properly
6248 # handle `-M -o', and we need to detect this.
6249 if depmode=$depmode \
6250 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6251 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6252 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6253 >/dev/null 2>conftest.err &&
6254 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6255 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6256 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6257 # icc doesn't choke on unknown options, it will just issue warnings
6258 # or remarks (even with -Werror). So we grep stderr for any message
6259 # that says an option was ignored or not supported.
6260 # When given -MP, icc 7.0 and 7.1 complain thusly:
6261 # icc: Command line warning: ignoring option '-M'; no argument required
6262 # The diagnosis changed in icc 8.0:
6263 # icc: Command line remark: option '-MP' not supported
6264 if (grep 'ignoring option' conftest.err ||
6265 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6266 am_cv_GCJ_dependencies_compiler_type=$depmode
6267 break
6270 done
6272 cd ..
6273 rm -rf conftest.dir
6274 else
6275 am_cv_GCJ_dependencies_compiler_type=none
6279 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
6280 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
6281 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
6286 test "x$enable_dependency_tracking" != xno \
6287 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
6288 am__fastdepGCJ_TRUE=
6289 am__fastdepGCJ_FALSE='#'
6290 else
6291 am__fastdepGCJ_TRUE='#'
6292 am__fastdepGCJ_FALSE=
6298 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
6299 lt_save_CC="$CC"
6300 lt_save_CFLAGS="$CFLAGS"
6301 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
6302 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6303 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6304 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6305 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6306 deplibs_check_method="$deplibs_check_method" \
6307 file_magic_cmd="$file_magic_cmd" \
6308 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6309 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
6310 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6311 echo "$as_me: error: libtool tag configuration failed" >&2;}
6312 { (exit 1); exit 1; }; }
6313 CC="$lt_save_CC"
6314 CFLAGS="$lt_save_CFLAGS"
6316 # Redirect the config.log output again, so that the ltconfig log is not
6317 # clobbered by the next message.
6318 exec 5>>./config.log
6322 if test "x$CC" != xcc; then
6323 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
6324 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
6325 else
6326 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
6327 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
6329 set dummy $CC; ac_cc=`echo $2 |
6330 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6331 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
6332 echo $ECHO_N "(cached) $ECHO_C" >&6
6333 else
6334 cat >conftest.$ac_ext <<_ACEOF
6335 /* confdefs.h. */
6336 _ACEOF
6337 cat confdefs.h >>conftest.$ac_ext
6338 cat >>conftest.$ac_ext <<_ACEOF
6339 /* end confdefs.h. */
6342 main ()
6346 return 0;
6348 _ACEOF
6349 # Make sure it works both with $CC and with simple cc.
6350 # We do the test twice because some compilers refuse to overwrite an
6351 # existing .o file with -o, though they will create one.
6352 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6353 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6354 (eval $ac_try) 2>&5
6355 ac_status=$?
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); } &&
6358 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6359 (eval $ac_try) 2>&5
6360 ac_status=$?
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); };
6363 then
6364 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6365 if test "x$CC" != xcc; then
6366 # Test first that cc exists at all.
6367 if { ac_try='cc -c conftest.$ac_ext >&5'
6368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6369 (eval $ac_try) 2>&5
6370 ac_status=$?
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); }; }; then
6373 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6374 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6375 (eval $ac_try) 2>&5
6376 ac_status=$?
6377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378 (exit $ac_status); } &&
6379 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6380 (eval $ac_try) 2>&5
6381 ac_status=$?
6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); };
6384 then
6385 # cc works too.
6387 else
6388 # cc exists but doesn't like -o.
6389 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6393 else
6394 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6396 rm -f conftest*
6399 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
6400 echo "$as_me:$LINENO: result: yes" >&5
6401 echo "${ECHO_T}yes" >&6
6402 else
6403 echo "$as_me:$LINENO: result: no" >&5
6404 echo "${ECHO_T}no" >&6
6406 cat >>confdefs.h <<\_ACEOF
6407 #define NO_MINUS_C_MINUS_O 1
6408 _ACEOF
6412 # FIXME: we rely on the cache variable name because
6413 # there is no other way.
6414 set dummy $CC
6415 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6416 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
6417 # Losing compiler, so override with the script.
6418 # FIXME: It is wrong to rewrite CC.
6419 # But if we don't then we get into trouble of one sort or another.
6420 # A longer-term fix would be to have automake use am__CC in this case,
6421 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6422 CC="$am_aux_dir/compile $CC"
6428 subdirs="$subdirs classpath libltdl"
6431 # The -no-testsuite modules omit the test subdir.
6434 if test -d $srcdir/testsuite; then
6435 TESTSUBDIR_TRUE=
6436 TESTSUBDIR_FALSE='#'
6437 else
6438 TESTSUBDIR_TRUE='#'
6439 TESTSUBDIR_FALSE=
6443 # Should the runtime set system properties by examining the
6444 # environment variable GCJ_PROPERTIES?
6445 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
6446 if test "${enable_getenv_properties+set}" = set; then
6447 enableval="$enable_getenv_properties"
6451 # Whether GCJ_PROPERTIES is used depends on the target.
6452 if test -z "$enable_getenv_properties"; then
6453 enable_getenv_properties=${enable_getenv_properties_default-yes}
6455 if test "$enable_getenv_properties" = no; then
6457 cat >>confdefs.h <<\_ACEOF
6458 #define DISABLE_GETENV_PROPERTIES 1
6459 _ACEOF
6463 # Whether we should use arguments to main()
6464 if test -z "$enable_main_args"; then
6465 enable_main_args=${enable_main_args_default-yes}
6467 if test "$enable_main_args" = no; then
6469 cat >>confdefs.h <<\_ACEOF
6470 #define DISABLE_MAIN_ARGS 1
6471 _ACEOF
6476 # Should we use hashtable-based synchronization?
6477 # Currently works only for Linux X86/ia64
6478 # Typically faster and more space-efficient
6479 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
6480 if test "${enable_hash_synchronization+set}" = set; then
6481 enableval="$enable_hash_synchronization"
6485 if test -z "$enable_hash_synchronization"; then
6486 enable_hash_synchronization=$enable_hash_synchronization_default
6490 # Check whether --with-java-home or --without-java-home was given.
6491 if test "${with_java_home+set}" = set; then
6492 withval="$with_java_home"
6493 JAVA_HOME="${withval}"
6494 else
6495 JAVA_HOME=""
6499 if test ! -z "$JAVA_HOME"; then
6500 JAVA_HOME_SET_TRUE=
6501 JAVA_HOME_SET_FALSE='#'
6502 else
6503 JAVA_HOME_SET_TRUE='#'
6504 JAVA_HOME_SET_FALSE=
6509 # What is the native OS API for MinGW?
6511 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
6512 if test "${with_win32_nlsapi+set}" = set; then
6513 withval="$with_win32_nlsapi"
6514 case "${withval}" in
6515 ansi) with_win32_nlsapi=ansi ;;
6516 unicows) with_win32_nlsapi=unicows ;;
6517 unicode) with_win32_nlsapi=unicode ;;
6518 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
6519 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
6520 { (exit 1); exit 1; }; } ;;
6521 esac
6522 else
6523 with_win32_nlsapi=ansi
6526 case "${with_win32_nlsapi}" in
6527 unicows | unicode)
6529 cat >>confdefs.h <<\_ACEOF
6530 #define MINGW_LIBGCJ_UNICODE 1
6531 _ACEOF
6534 esac
6536 # configure.host sets slow_pthread_self if the synchronization code should
6537 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
6538 if test "${slow_pthread_self}" = "yes"; then
6540 cat >>confdefs.h <<\_ACEOF
6541 #define SLOW_PTHREAD_SELF 1
6542 _ACEOF
6546 # Check for gc debugging. This option is handled both here and in the GC.
6547 # Check whether --enable-gc-debug or --disable-gc-debug was given.
6548 if test "${enable_gc_debug+set}" = set; then
6549 enableval="$enable_gc_debug"
6550 if test "$enable_gc_debug" = "yes"; then
6552 cat >>confdefs.h <<\_ACEOF
6553 #define LIBGCJ_GC_DEBUG 1
6554 _ACEOF
6559 # See if the user has the interpreter included.
6560 # Check whether --enable-interpreter or --disable-interpreter was given.
6561 if test "${enable_interpreter+set}" = set; then
6562 enableval="$enable_interpreter"
6563 if test "$enable_interpreter" = yes; then
6564 # This can also be set in configure.host.
6565 libgcj_interpreter=yes
6566 elif test "$enable_interpreter" = no; then
6567 libgcj_interpreter=no
6571 if test "$libgcj_interpreter" = yes; then
6573 cat >>confdefs.h <<\_ACEOF
6574 #define INTERPRETER 1
6575 _ACEOF
6578 INTERPRETER="$libgcj_interpreter"
6581 echo "$as_me:$LINENO: checking for exception model to use" >&5
6582 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
6583 ac_ext=cc
6584 ac_cpp='$CXXCPP $CPPFLAGS'
6585 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6586 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6587 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6589 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
6590 if test "${enable_sjlj_exceptions+set}" = set; then
6591 enableval="$enable_sjlj_exceptions"
6593 else
6594 cat > conftest.$ac_ext << EOF
6595 #line 6595 "configure"
6596 struct S { ~S(); };
6597 void bar();
6598 void foo()
6600 S s;
6601 bar();
6604 old_CXXFLAGS="$CXXFLAGS"
6605 CXXFLAGS=-S
6606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6607 (eval $ac_compile) 2>&5
6608 ac_status=$?
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); }; then
6611 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
6612 enable_sjlj_exceptions=yes
6613 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
6614 enable_sjlj_exceptions=no
6617 CXXFLAGS="$old_CXXFLAGS"
6618 rm -f conftest*
6620 if test x$enable_sjlj_exceptions = xyes; then
6622 cat >>confdefs.h <<\_ACEOF
6623 #define SJLJ_EXCEPTIONS 1
6624 _ACEOF
6626 ac_exception_model_name=sjlj
6627 elif test x$enable_sjlj_exceptions = xno; then
6628 ac_exception_model_name="call frame"
6629 else
6630 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
6631 echo "$as_me: error: unable to detect exception model" >&2;}
6632 { (exit 1); exit 1; }; }
6634 ac_ext=c
6635 ac_cpp='$CPP $CPPFLAGS'
6636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6640 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
6641 echo "${ECHO_T}$ac_exception_model_name" >&6
6643 # If we are non using SJLJ exceptions, and this host does not have support
6644 # for unwinding from a signal handler, enable checked dereferences and divides.
6645 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
6646 CHECKREFSPEC=-fcheck-references
6647 DIVIDESPEC=-fuse-divide-subroutine
6648 EXCEPTIONSPEC=
6651 # See if the user wants to disable java.net. This is the mildly
6652 # ugly way that we admit that target-side configuration sucks.
6653 # Check whether --enable-java-net or --disable-java-net was given.
6654 if test "${enable_java_net+set}" = set; then
6655 enableval="$enable_java_net"
6659 # Whether java.net is built by default can depend on the target.
6660 if test -z "$enable_java_net"; then
6661 enable_java_net=${enable_java_net_default-yes}
6663 if test "$enable_java_net" = no; then
6665 cat >>confdefs.h <<\_ACEOF
6666 #define DISABLE_JAVA_NET 1
6667 _ACEOF
6671 # See if the user wants to configure without libffi. Some
6672 # architectures don't support it, and default values are set in
6673 # configure.host.
6675 # Check whether --with-libffi or --without-libffi was given.
6676 if test "${with_libffi+set}" = set; then
6677 withval="$with_libffi"
6679 else
6680 with_libffi=${with_libffi_default-yes}
6683 LIBFFI=
6684 LIBFFIINCS=
6685 if test "$with_libffi" != no; then
6687 cat >>confdefs.h <<\_ACEOF
6688 #define USE_LIBFFI 1
6689 _ACEOF
6691 LIBFFI=../libffi/libffi_convenience.la
6692 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
6697 # See if the user wants to disable JVMPI support.
6698 # Check whether --enable-jvmpi or --disable-jvmpi was given.
6699 if test "${enable_jvmpi+set}" = set; then
6700 enableval="$enable_jvmpi"
6704 if test "$enable_jvmpi" != no; then
6706 cat >>confdefs.h <<\_ACEOF
6707 #define ENABLE_JVMPI 1
6708 _ACEOF
6712 # If the target is an eCos system, use the appropriate eCos
6713 # I/O routines.
6714 # FIXME: this should not be a local option but a global target
6715 # system; at present there is no eCos target.
6716 TARGET_ECOS=${PROCESS-"no"}
6718 # Check whether --with-ecos or --without-ecos was given.
6719 if test "${with_ecos+set}" = set; then
6720 withval="$with_ecos"
6721 TARGET_ECOS="$with_ecos"
6725 PLATFORM_INNER_NAT_HDRS=
6726 case "$TARGET_ECOS" in
6727 no) case "$host" in
6728 *mingw*)
6729 PLATFORM=Win32
6730 PLATFORMNET=Win32
6731 PLATFORMH=win32.h
6733 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
6734 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
6735 LD_PROG=`$CC --print-prog-name=ld`
6736 LD_VERSION=`$LD_PROG --version`
6737 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
6738 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
6739 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
6740 LD_OK="ok"
6741 else
6742 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
6743 LD_OK="ok"
6746 if test "x$LD_OK" != x; then
6747 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
6748 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
6749 else
6750 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
6751 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
6752 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
6753 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
6755 cat >>confdefs.h <<\_ACEOF
6756 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
6757 _ACEOF
6762 PLATFORM=Posix
6763 PLATFORMNET=Posix
6764 PLATFORMH=posix.h
6765 PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
6767 esac
6770 PLATFORM=Ecos
6771 PLATFORMNET=NoNet
6773 cat >>confdefs.h <<\_ACEOF
6774 #define ECOS 1
6775 _ACEOF
6777 PLATFORMH=posix.h
6779 esac
6781 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
6784 ac_ext=c
6785 ac_cpp='$CPP $CPPFLAGS'
6786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6789 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6790 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6791 # On Suns, sometimes $CPP names a directory.
6792 if test -n "$CPP" && test -d "$CPP"; then
6793 CPP=
6795 if test -z "$CPP"; then
6796 if test "${ac_cv_prog_CPP+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
6798 else
6799 # Double quotes because CPP needs to be expanded
6800 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6802 ac_preproc_ok=false
6803 for ac_c_preproc_warn_flag in '' yes
6805 # Use a header file that comes with gcc, so configuring glibc
6806 # with a fresh cross-compiler works.
6807 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6808 # <limits.h> exists even on freestanding compilers.
6809 # On the NeXT, cc -E runs the code through the compiler's parser,
6810 # not just through cpp. "Syntax error" is here to catch this case.
6811 cat >conftest.$ac_ext <<_ACEOF
6812 /* confdefs.h. */
6813 _ACEOF
6814 cat confdefs.h >>conftest.$ac_ext
6815 cat >>conftest.$ac_ext <<_ACEOF
6816 /* end confdefs.h. */
6817 #ifdef __STDC__
6818 # include <limits.h>
6819 #else
6820 # include <assert.h>
6821 #endif
6822 Syntax error
6823 _ACEOF
6824 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6825 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6826 ac_status=$?
6827 grep -v '^ *+' conftest.er1 >conftest.err
6828 rm -f conftest.er1
6829 cat conftest.err >&5
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); } >/dev/null; then
6832 if test -s conftest.err; then
6833 ac_cpp_err=$ac_c_preproc_warn_flag
6834 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6835 else
6836 ac_cpp_err=
6838 else
6839 ac_cpp_err=yes
6841 if test -z "$ac_cpp_err"; then
6843 else
6844 echo "$as_me: failed program was:" >&5
6845 sed 's/^/| /' conftest.$ac_ext >&5
6847 # Broken: fails on valid input.
6848 continue
6850 rm -f conftest.err conftest.$ac_ext
6852 # OK, works on sane cases. Now check whether non-existent headers
6853 # can be detected and how.
6854 cat >conftest.$ac_ext <<_ACEOF
6855 /* confdefs.h. */
6856 _ACEOF
6857 cat confdefs.h >>conftest.$ac_ext
6858 cat >>conftest.$ac_ext <<_ACEOF
6859 /* end confdefs.h. */
6860 #include <ac_nonexistent.h>
6861 _ACEOF
6862 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6863 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6864 ac_status=$?
6865 grep -v '^ *+' conftest.er1 >conftest.err
6866 rm -f conftest.er1
6867 cat conftest.err >&5
6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); } >/dev/null; then
6870 if test -s conftest.err; then
6871 ac_cpp_err=$ac_c_preproc_warn_flag
6872 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6873 else
6874 ac_cpp_err=
6876 else
6877 ac_cpp_err=yes
6879 if test -z "$ac_cpp_err"; then
6880 # Broken: success on invalid input.
6881 continue
6882 else
6883 echo "$as_me: failed program was:" >&5
6884 sed 's/^/| /' conftest.$ac_ext >&5
6886 # Passes both tests.
6887 ac_preproc_ok=:
6888 break
6890 rm -f conftest.err conftest.$ac_ext
6892 done
6893 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6894 rm -f conftest.err conftest.$ac_ext
6895 if $ac_preproc_ok; then
6896 break
6899 done
6900 ac_cv_prog_CPP=$CPP
6903 CPP=$ac_cv_prog_CPP
6904 else
6905 ac_cv_prog_CPP=$CPP
6907 echo "$as_me:$LINENO: result: $CPP" >&5
6908 echo "${ECHO_T}$CPP" >&6
6909 ac_preproc_ok=false
6910 for ac_c_preproc_warn_flag in '' yes
6912 # Use a header file that comes with gcc, so configuring glibc
6913 # with a fresh cross-compiler works.
6914 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6915 # <limits.h> exists even on freestanding compilers.
6916 # On the NeXT, cc -E runs the code through the compiler's parser,
6917 # not just through cpp. "Syntax error" is here to catch this case.
6918 cat >conftest.$ac_ext <<_ACEOF
6919 /* confdefs.h. */
6920 _ACEOF
6921 cat confdefs.h >>conftest.$ac_ext
6922 cat >>conftest.$ac_ext <<_ACEOF
6923 /* end confdefs.h. */
6924 #ifdef __STDC__
6925 # include <limits.h>
6926 #else
6927 # include <assert.h>
6928 #endif
6929 Syntax error
6930 _ACEOF
6931 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6932 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6933 ac_status=$?
6934 grep -v '^ *+' conftest.er1 >conftest.err
6935 rm -f conftest.er1
6936 cat conftest.err >&5
6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938 (exit $ac_status); } >/dev/null; then
6939 if test -s conftest.err; then
6940 ac_cpp_err=$ac_c_preproc_warn_flag
6941 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6942 else
6943 ac_cpp_err=
6945 else
6946 ac_cpp_err=yes
6948 if test -z "$ac_cpp_err"; then
6950 else
6951 echo "$as_me: failed program was:" >&5
6952 sed 's/^/| /' conftest.$ac_ext >&5
6954 # Broken: fails on valid input.
6955 continue
6957 rm -f conftest.err conftest.$ac_ext
6959 # OK, works on sane cases. Now check whether non-existent headers
6960 # can be detected and how.
6961 cat >conftest.$ac_ext <<_ACEOF
6962 /* confdefs.h. */
6963 _ACEOF
6964 cat confdefs.h >>conftest.$ac_ext
6965 cat >>conftest.$ac_ext <<_ACEOF
6966 /* end confdefs.h. */
6967 #include <ac_nonexistent.h>
6968 _ACEOF
6969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6971 ac_status=$?
6972 grep -v '^ *+' conftest.er1 >conftest.err
6973 rm -f conftest.er1
6974 cat conftest.err >&5
6975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976 (exit $ac_status); } >/dev/null; then
6977 if test -s conftest.err; then
6978 ac_cpp_err=$ac_c_preproc_warn_flag
6979 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6980 else
6981 ac_cpp_err=
6983 else
6984 ac_cpp_err=yes
6986 if test -z "$ac_cpp_err"; then
6987 # Broken: success on invalid input.
6988 continue
6989 else
6990 echo "$as_me: failed program was:" >&5
6991 sed 's/^/| /' conftest.$ac_ext >&5
6993 # Passes both tests.
6994 ac_preproc_ok=:
6995 break
6997 rm -f conftest.err conftest.$ac_ext
6999 done
7000 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7001 rm -f conftest.err conftest.$ac_ext
7002 if $ac_preproc_ok; then
7004 else
7005 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7006 See \`config.log' for more details." >&5
7007 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7008 See \`config.log' for more details." >&2;}
7009 { (exit 1); exit 1; }; }
7012 ac_ext=c
7013 ac_cpp='$CPP $CPPFLAGS'
7014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7019 echo "$as_me:$LINENO: checking for egrep" >&5
7020 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
7021 if test "${ac_cv_prog_egrep+set}" = set; then
7022 echo $ECHO_N "(cached) $ECHO_C" >&6
7023 else
7024 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
7025 then ac_cv_prog_egrep='grep -E'
7026 else ac_cv_prog_egrep='egrep'
7029 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
7030 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
7031 EGREP=$ac_cv_prog_egrep
7034 cat >conftest.$ac_ext <<_ACEOF
7035 /* confdefs.h. */
7036 _ACEOF
7037 cat confdefs.h >>conftest.$ac_ext
7038 cat >>conftest.$ac_ext <<_ACEOF
7039 /* end confdefs.h. */
7040 #include <stdint.h>
7042 _ACEOF
7043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7044 $EGREP "uint32_t" >/dev/null 2>&1; then
7046 cat >>confdefs.h <<\_ACEOF
7047 #define HAVE_INT32_DEFINED 1
7048 _ACEOF
7051 rm -f conftest*
7053 cat >conftest.$ac_ext <<_ACEOF
7054 /* confdefs.h. */
7055 _ACEOF
7056 cat confdefs.h >>conftest.$ac_ext
7057 cat >>conftest.$ac_ext <<_ACEOF
7058 /* end confdefs.h. */
7059 #include <inttypes.h>
7061 _ACEOF
7062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7063 $EGREP "uint32_t" >/dev/null 2>&1; then
7065 cat >>confdefs.h <<\_ACEOF
7066 #define HAVE_INT32_DEFINED 1
7067 _ACEOF
7070 rm -f conftest*
7072 cat >conftest.$ac_ext <<_ACEOF
7073 /* confdefs.h. */
7074 _ACEOF
7075 cat confdefs.h >>conftest.$ac_ext
7076 cat >>conftest.$ac_ext <<_ACEOF
7077 /* end confdefs.h. */
7078 #include <sys/types.h>
7080 _ACEOF
7081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7082 $EGREP "u_int32_t" >/dev/null 2>&1; then
7084 cat >>confdefs.h <<\_ACEOF
7085 #define HAVE_BSD_INT32_DEFINED 1
7086 _ACEOF
7089 rm -f conftest*
7091 cat >conftest.$ac_ext <<_ACEOF
7092 /* confdefs.h. */
7093 _ACEOF
7094 cat confdefs.h >>conftest.$ac_ext
7095 cat >>conftest.$ac_ext <<_ACEOF
7096 /* end confdefs.h. */
7097 #include <sys/config.h>
7099 _ACEOF
7100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7101 $EGREP "u_int32_t" >/dev/null 2>&1; then
7103 cat >>confdefs.h <<\_ACEOF
7104 #define HAVE_BSD_INT32_DEFINED 1
7105 _ACEOF
7108 rm -f conftest*
7113 if test "$PLATFORM" = Win32; then
7114 USING_WIN32_PLATFORM_TRUE=
7115 USING_WIN32_PLATFORM_FALSE='#'
7116 else
7117 USING_WIN32_PLATFORM_TRUE='#'
7118 USING_WIN32_PLATFORM_FALSE=
7123 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
7124 USING_POSIX_PLATFORM_TRUE=
7125 USING_POSIX_PLATFORM_FALSE='#'
7126 else
7127 USING_POSIX_PLATFORM_TRUE='#'
7128 USING_POSIX_PLATFORM_FALSE=
7132 case "$host" in
7133 *-darwin*) DARWIN_CRT=true ;;
7134 *) DARWIN_CRT=false ;;
7135 esac
7138 if $DARWIN_CRT; then
7139 USING_DARWIN_CRT_TRUE=
7140 USING_DARWIN_CRT_FALSE='#'
7141 else
7142 USING_DARWIN_CRT_TRUE='#'
7143 USING_DARWIN_CRT_FALSE=
7147 # These may not be defined in a non-ANS conformant embedded system.
7148 # FIXME: Should these case a runtime exception in that case?
7149 cat >conftest.$ac_ext <<_ACEOF
7150 /* confdefs.h. */
7151 _ACEOF
7152 cat confdefs.h >>conftest.$ac_ext
7153 cat >>conftest.$ac_ext <<_ACEOF
7154 /* end confdefs.h. */
7155 #include <time.h>
7157 _ACEOF
7158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7159 $EGREP "mktime" >/dev/null 2>&1; then
7161 cat >>confdefs.h <<\_ACEOF
7162 #define HAVE_MKTIME 1
7163 _ACEOF
7166 rm -f conftest*
7168 cat >conftest.$ac_ext <<_ACEOF
7169 /* confdefs.h. */
7170 _ACEOF
7171 cat confdefs.h >>conftest.$ac_ext
7172 cat >>conftest.$ac_ext <<_ACEOF
7173 /* end confdefs.h. */
7174 #include <time.h>
7176 _ACEOF
7177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7178 $EGREP "localtime" >/dev/null 2>&1; then
7180 cat >>confdefs.h <<\_ACEOF
7181 #define HAVE_LOCALTIME 1
7182 _ACEOF
7185 rm -f conftest*
7188 # Create the subdirectory for natFile.cc, or the attempt
7189 # to create the link will fail.
7190 test -d java || mkdir java
7191 test -d java/io || mkdir java/io
7192 test -d gnu || mkdir gnu
7193 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
7196 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
7197 test -d java/lang || mkdir java/lang
7198 ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
7200 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
7203 # Likewise for natInetAddress.cc and natVMNetworkInterface.cc.
7204 test -d java/net || mkdir java/net
7205 ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
7207 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
7210 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
7211 test -d gnu/java || mkdir gnu/java
7212 test -d gnu/java/net || mkdir gnu/java/net
7213 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
7215 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
7218 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
7219 test -d gnu/java/nio || mkdir gnu/java/nio
7220 ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
7222 ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
7224 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
7225 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
7228 case "${host}" in
7229 *mingw*)
7230 SYSTEMSPEC="-lgdi32 -lws2_32"
7231 if test "${with_win32_nlsapi}" = "unicows"; then
7232 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
7236 SYSTEMSPEC=
7238 esac
7241 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
7245 # Check whether --with-system-zlib or --without-system-zlib was given.
7246 if test "${with_system_zlib+set}" = set; then
7247 withval="$with_system_zlib"
7250 ZLIBSPEC=
7252 ZLIBTESTSPEC=
7255 echo "$as_me:$LINENO: checking for X" >&5
7256 echo $ECHO_N "checking for X... $ECHO_C" >&6
7259 # Check whether --with-x or --without-x was given.
7260 if test "${with_x+set}" = set; then
7261 withval="$with_x"
7264 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7265 if test "x$with_x" = xno; then
7266 # The user explicitly disabled X.
7267 have_x=disabled
7268 else
7269 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7270 # Both variables are already set.
7271 have_x=yes
7272 else
7273 if test "${ac_cv_have_x+set}" = set; then
7274 echo $ECHO_N "(cached) $ECHO_C" >&6
7275 else
7276 # One or both of the vars are not set, and there is no cached value.
7277 ac_x_includes=no ac_x_libraries=no
7278 rm -fr conftest.dir
7279 if mkdir conftest.dir; then
7280 cd conftest.dir
7281 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7282 cat >Imakefile <<'_ACEOF'
7283 acfindx:
7284 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7285 _ACEOF
7286 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7287 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7288 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7289 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7290 for ac_extension in a so sl; do
7291 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7292 test -f $ac_im_libdir/libX11.$ac_extension; then
7293 ac_im_usrlibdir=$ac_im_libdir; break
7295 done
7296 # Screen out bogus values from the imake configuration. They are
7297 # bogus both because they are the default anyway, and because
7298 # using them would break gcc on systems where it needs fixed includes.
7299 case $ac_im_incroot in
7300 /usr/include) ;;
7301 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7302 esac
7303 case $ac_im_usrlibdir in
7304 /usr/lib | /lib) ;;
7305 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7306 esac
7308 cd ..
7309 rm -fr conftest.dir
7312 # Standard set of common directories for X headers.
7313 # Check X11 before X11Rn because it is often a symlink to the current release.
7314 ac_x_header_dirs='
7315 /usr/X11/include
7316 /usr/X11R6/include
7317 /usr/X11R5/include
7318 /usr/X11R4/include
7320 /usr/include/X11
7321 /usr/include/X11R6
7322 /usr/include/X11R5
7323 /usr/include/X11R4
7325 /usr/local/X11/include
7326 /usr/local/X11R6/include
7327 /usr/local/X11R5/include
7328 /usr/local/X11R4/include
7330 /usr/local/include/X11
7331 /usr/local/include/X11R6
7332 /usr/local/include/X11R5
7333 /usr/local/include/X11R4
7335 /usr/X386/include
7336 /usr/x386/include
7337 /usr/XFree86/include/X11
7339 /usr/include
7340 /usr/local/include
7341 /usr/unsupported/include
7342 /usr/athena/include
7343 /usr/local/x11r5/include
7344 /usr/lpp/Xamples/include
7346 /usr/openwin/include
7347 /usr/openwin/share/include'
7349 if test "$ac_x_includes" = no; then
7350 # Guess where to find include files, by looking for Intrinsic.h.
7351 # First, try using that file with no special directory specified.
7352 cat >conftest.$ac_ext <<_ACEOF
7353 /* confdefs.h. */
7354 _ACEOF
7355 cat confdefs.h >>conftest.$ac_ext
7356 cat >>conftest.$ac_ext <<_ACEOF
7357 /* end confdefs.h. */
7358 #include <X11/Intrinsic.h>
7359 _ACEOF
7360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7362 ac_status=$?
7363 grep -v '^ *+' conftest.er1 >conftest.err
7364 rm -f conftest.er1
7365 cat conftest.err >&5
7366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367 (exit $ac_status); } >/dev/null; then
7368 if test -s conftest.err; then
7369 ac_cpp_err=$ac_c_preproc_warn_flag
7370 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7371 else
7372 ac_cpp_err=
7374 else
7375 ac_cpp_err=yes
7377 if test -z "$ac_cpp_err"; then
7378 # We can compile using X headers with no special include directory.
7379 ac_x_includes=
7380 else
7381 echo "$as_me: failed program was:" >&5
7382 sed 's/^/| /' conftest.$ac_ext >&5
7384 for ac_dir in $ac_x_header_dirs; do
7385 if test -r "$ac_dir/X11/Intrinsic.h"; then
7386 ac_x_includes=$ac_dir
7387 break
7389 done
7391 rm -f conftest.err conftest.$ac_ext
7392 fi # $ac_x_includes = no
7394 if test "$ac_x_libraries" = no; then
7395 # Check for the libraries.
7396 # See if we find them without any special options.
7397 # Don't add to $LIBS permanently.
7398 ac_save_LIBS=$LIBS
7399 LIBS="-lXt $LIBS"
7400 if test x$gcc_no_link = xyes; then
7401 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7402 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7403 { (exit 1); exit 1; }; }
7405 cat >conftest.$ac_ext <<_ACEOF
7406 /* confdefs.h. */
7407 _ACEOF
7408 cat confdefs.h >>conftest.$ac_ext
7409 cat >>conftest.$ac_ext <<_ACEOF
7410 /* end confdefs.h. */
7411 #include <X11/Intrinsic.h>
7413 main ()
7415 XtMalloc (0)
7417 return 0;
7419 _ACEOF
7420 rm -f conftest.$ac_objext conftest$ac_exeext
7421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7422 (eval $ac_link) 2>conftest.er1
7423 ac_status=$?
7424 grep -v '^ *+' conftest.er1 >conftest.err
7425 rm -f conftest.er1
7426 cat conftest.err >&5
7427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); } &&
7429 { ac_try='test -z "$ac_c_werror_flag"
7430 || test ! -s conftest.err'
7431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7432 (eval $ac_try) 2>&5
7433 ac_status=$?
7434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435 (exit $ac_status); }; } &&
7436 { ac_try='test -s conftest$ac_exeext'
7437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7438 (eval $ac_try) 2>&5
7439 ac_status=$?
7440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441 (exit $ac_status); }; }; then
7442 LIBS=$ac_save_LIBS
7443 # We can link X programs with no special library path.
7444 ac_x_libraries=
7445 else
7446 echo "$as_me: failed program was:" >&5
7447 sed 's/^/| /' conftest.$ac_ext >&5
7449 LIBS=$ac_save_LIBS
7450 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7452 # Don't even attempt the hair of trying to link an X program!
7453 for ac_extension in a so sl; do
7454 if test -r $ac_dir/libXt.$ac_extension; then
7455 ac_x_libraries=$ac_dir
7456 break 2
7458 done
7459 done
7461 rm -f conftest.err conftest.$ac_objext \
7462 conftest$ac_exeext conftest.$ac_ext
7463 fi # $ac_x_libraries = no
7465 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7466 # Didn't find X anywhere. Cache the known absence of X.
7467 ac_cv_have_x="have_x=no"
7468 else
7469 # Record where we found X for the cache.
7470 ac_cv_have_x="have_x=yes \
7471 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7476 eval "$ac_cv_have_x"
7477 fi # $with_x != no
7479 if test "$have_x" != yes; then
7480 echo "$as_me:$LINENO: result: $have_x" >&5
7481 echo "${ECHO_T}$have_x" >&6
7482 no_x=yes
7483 else
7484 # If each of the values was on the command line, it overrides each guess.
7485 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7486 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7487 # Update the cache value to reflect the command line values.
7488 ac_cv_have_x="have_x=yes \
7489 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7490 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7491 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7494 if test "$no_x" = yes; then
7495 # Not all programs may use this symbol, but it does not hurt to define it.
7497 cat >>confdefs.h <<\_ACEOF
7498 #define X_DISPLAY_MISSING 1
7499 _ACEOF
7501 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7502 else
7503 if test -n "$x_includes"; then
7504 X_CFLAGS="$X_CFLAGS -I$x_includes"
7507 # It would also be nice to do this for all -L options, not just this one.
7508 if test -n "$x_libraries"; then
7509 X_LIBS="$X_LIBS -L$x_libraries"
7510 # For Solaris; some versions of Sun CC require a space after -R and
7511 # others require no space. Words are not sufficient . . . .
7512 case `(uname -sr) 2>/dev/null` in
7513 "SunOS 5"*)
7514 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7515 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7516 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7517 if test x$gcc_no_link = xyes; then
7518 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7519 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7520 { (exit 1); exit 1; }; }
7522 cat >conftest.$ac_ext <<_ACEOF
7523 /* confdefs.h. */
7524 _ACEOF
7525 cat confdefs.h >>conftest.$ac_ext
7526 cat >>conftest.$ac_ext <<_ACEOF
7527 /* end confdefs.h. */
7530 main ()
7534 return 0;
7536 _ACEOF
7537 rm -f conftest.$ac_objext conftest$ac_exeext
7538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7539 (eval $ac_link) 2>conftest.er1
7540 ac_status=$?
7541 grep -v '^ *+' conftest.er1 >conftest.err
7542 rm -f conftest.er1
7543 cat conftest.err >&5
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); } &&
7546 { ac_try='test -z "$ac_c_werror_flag"
7547 || test ! -s conftest.err'
7548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7549 (eval $ac_try) 2>&5
7550 ac_status=$?
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); }; } &&
7553 { ac_try='test -s conftest$ac_exeext'
7554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7555 (eval $ac_try) 2>&5
7556 ac_status=$?
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); }; }; then
7559 ac_R_nospace=yes
7560 else
7561 echo "$as_me: failed program was:" >&5
7562 sed 's/^/| /' conftest.$ac_ext >&5
7564 ac_R_nospace=no
7566 rm -f conftest.err conftest.$ac_objext \
7567 conftest$ac_exeext conftest.$ac_ext
7568 if test $ac_R_nospace = yes; then
7569 echo "$as_me:$LINENO: result: no" >&5
7570 echo "${ECHO_T}no" >&6
7571 X_LIBS="$X_LIBS -R$x_libraries"
7572 else
7573 LIBS="$ac_xsave_LIBS -R $x_libraries"
7574 if test x$gcc_no_link = xyes; then
7575 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7576 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7577 { (exit 1); exit 1; }; }
7579 cat >conftest.$ac_ext <<_ACEOF
7580 /* confdefs.h. */
7581 _ACEOF
7582 cat confdefs.h >>conftest.$ac_ext
7583 cat >>conftest.$ac_ext <<_ACEOF
7584 /* end confdefs.h. */
7587 main ()
7591 return 0;
7593 _ACEOF
7594 rm -f conftest.$ac_objext conftest$ac_exeext
7595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7596 (eval $ac_link) 2>conftest.er1
7597 ac_status=$?
7598 grep -v '^ *+' conftest.er1 >conftest.err
7599 rm -f conftest.er1
7600 cat conftest.err >&5
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); } &&
7603 { ac_try='test -z "$ac_c_werror_flag"
7604 || test ! -s conftest.err'
7605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7606 (eval $ac_try) 2>&5
7607 ac_status=$?
7608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609 (exit $ac_status); }; } &&
7610 { ac_try='test -s conftest$ac_exeext'
7611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7612 (eval $ac_try) 2>&5
7613 ac_status=$?
7614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615 (exit $ac_status); }; }; then
7616 ac_R_space=yes
7617 else
7618 echo "$as_me: failed program was:" >&5
7619 sed 's/^/| /' conftest.$ac_ext >&5
7621 ac_R_space=no
7623 rm -f conftest.err conftest.$ac_objext \
7624 conftest$ac_exeext conftest.$ac_ext
7625 if test $ac_R_space = yes; then
7626 echo "$as_me:$LINENO: result: yes" >&5
7627 echo "${ECHO_T}yes" >&6
7628 X_LIBS="$X_LIBS -R $x_libraries"
7629 else
7630 echo "$as_me:$LINENO: result: neither works" >&5
7631 echo "${ECHO_T}neither works" >&6
7634 LIBS=$ac_xsave_LIBS
7635 esac
7638 # Check for system-dependent libraries X programs must link with.
7639 # Do this before checking for the system-independent R6 libraries
7640 # (-lICE), since we may need -lsocket or whatever for X linking.
7642 if test "$ISC" = yes; then
7643 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7644 else
7645 # Martyn Johnson says this is needed for Ultrix, if the X
7646 # libraries were built with DECnet support. And Karl Berry says
7647 # the Alpha needs dnet_stub (dnet does not exist).
7648 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7649 if test x$gcc_no_link = xyes; then
7650 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7651 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7652 { (exit 1); exit 1; }; }
7654 cat >conftest.$ac_ext <<_ACEOF
7655 /* confdefs.h. */
7656 _ACEOF
7657 cat confdefs.h >>conftest.$ac_ext
7658 cat >>conftest.$ac_ext <<_ACEOF
7659 /* end confdefs.h. */
7661 /* Override any gcc2 internal prototype to avoid an error. */
7662 #ifdef __cplusplus
7663 extern "C"
7664 #endif
7665 /* We use char because int might match the return type of a gcc2
7666 builtin and then its argument prototype would still apply. */
7667 char XOpenDisplay ();
7669 main ()
7671 XOpenDisplay ();
7673 return 0;
7675 _ACEOF
7676 rm -f conftest.$ac_objext conftest$ac_exeext
7677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7678 (eval $ac_link) 2>conftest.er1
7679 ac_status=$?
7680 grep -v '^ *+' conftest.er1 >conftest.err
7681 rm -f conftest.er1
7682 cat conftest.err >&5
7683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684 (exit $ac_status); } &&
7685 { ac_try='test -z "$ac_c_werror_flag"
7686 || test ! -s conftest.err'
7687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7688 (eval $ac_try) 2>&5
7689 ac_status=$?
7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 (exit $ac_status); }; } &&
7692 { ac_try='test -s conftest$ac_exeext'
7693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7694 (eval $ac_try) 2>&5
7695 ac_status=$?
7696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697 (exit $ac_status); }; }; then
7699 else
7700 echo "$as_me: failed program was:" >&5
7701 sed 's/^/| /' conftest.$ac_ext >&5
7703 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7704 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7705 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7706 echo $ECHO_N "(cached) $ECHO_C" >&6
7707 else
7708 ac_check_lib_save_LIBS=$LIBS
7709 LIBS="-ldnet $LIBS"
7710 if test x$gcc_no_link = xyes; then
7711 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7712 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7713 { (exit 1); exit 1; }; }
7715 cat >conftest.$ac_ext <<_ACEOF
7716 /* confdefs.h. */
7717 _ACEOF
7718 cat confdefs.h >>conftest.$ac_ext
7719 cat >>conftest.$ac_ext <<_ACEOF
7720 /* end confdefs.h. */
7722 /* Override any gcc2 internal prototype to avoid an error. */
7723 #ifdef __cplusplus
7724 extern "C"
7725 #endif
7726 /* We use char because int might match the return type of a gcc2
7727 builtin and then its argument prototype would still apply. */
7728 char dnet_ntoa ();
7730 main ()
7732 dnet_ntoa ();
7734 return 0;
7736 _ACEOF
7737 rm -f conftest.$ac_objext conftest$ac_exeext
7738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7739 (eval $ac_link) 2>conftest.er1
7740 ac_status=$?
7741 grep -v '^ *+' conftest.er1 >conftest.err
7742 rm -f conftest.er1
7743 cat conftest.err >&5
7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); } &&
7746 { ac_try='test -z "$ac_c_werror_flag"
7747 || test ! -s conftest.err'
7748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7749 (eval $ac_try) 2>&5
7750 ac_status=$?
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); }; } &&
7753 { ac_try='test -s conftest$ac_exeext'
7754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7755 (eval $ac_try) 2>&5
7756 ac_status=$?
7757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758 (exit $ac_status); }; }; then
7759 ac_cv_lib_dnet_dnet_ntoa=yes
7760 else
7761 echo "$as_me: failed program was:" >&5
7762 sed 's/^/| /' conftest.$ac_ext >&5
7764 ac_cv_lib_dnet_dnet_ntoa=no
7766 rm -f conftest.err conftest.$ac_objext \
7767 conftest$ac_exeext conftest.$ac_ext
7768 LIBS=$ac_check_lib_save_LIBS
7770 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7771 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7772 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7773 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7776 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7777 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
7778 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
7779 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
7780 echo $ECHO_N "(cached) $ECHO_C" >&6
7781 else
7782 ac_check_lib_save_LIBS=$LIBS
7783 LIBS="-ldnet_stub $LIBS"
7784 if test x$gcc_no_link = xyes; then
7785 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7786 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7787 { (exit 1); exit 1; }; }
7789 cat >conftest.$ac_ext <<_ACEOF
7790 /* confdefs.h. */
7791 _ACEOF
7792 cat confdefs.h >>conftest.$ac_ext
7793 cat >>conftest.$ac_ext <<_ACEOF
7794 /* end confdefs.h. */
7796 /* Override any gcc2 internal prototype to avoid an error. */
7797 #ifdef __cplusplus
7798 extern "C"
7799 #endif
7800 /* We use char because int might match the return type of a gcc2
7801 builtin and then its argument prototype would still apply. */
7802 char dnet_ntoa ();
7804 main ()
7806 dnet_ntoa ();
7808 return 0;
7810 _ACEOF
7811 rm -f conftest.$ac_objext conftest$ac_exeext
7812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7813 (eval $ac_link) 2>conftest.er1
7814 ac_status=$?
7815 grep -v '^ *+' conftest.er1 >conftest.err
7816 rm -f conftest.er1
7817 cat conftest.err >&5
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); } &&
7820 { ac_try='test -z "$ac_c_werror_flag"
7821 || test ! -s conftest.err'
7822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7823 (eval $ac_try) 2>&5
7824 ac_status=$?
7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); }; } &&
7827 { ac_try='test -s conftest$ac_exeext'
7828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7829 (eval $ac_try) 2>&5
7830 ac_status=$?
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); }; }; then
7833 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7834 else
7835 echo "$as_me: failed program was:" >&5
7836 sed 's/^/| /' conftest.$ac_ext >&5
7838 ac_cv_lib_dnet_stub_dnet_ntoa=no
7840 rm -f conftest.err conftest.$ac_objext \
7841 conftest$ac_exeext conftest.$ac_ext
7842 LIBS=$ac_check_lib_save_LIBS
7844 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7845 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7846 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7847 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7852 rm -f conftest.err conftest.$ac_objext \
7853 conftest$ac_exeext conftest.$ac_ext
7854 LIBS="$ac_xsave_LIBS"
7856 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7857 # to get the SysV transport functions.
7858 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7859 # needs -lnsl.
7860 # The nsl library prevents programs from opening the X display
7861 # on Irix 5.2, according to T.E. Dickey.
7862 # The functions gethostbyname, getservbyname, and inet_addr are
7863 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7864 echo "$as_me:$LINENO: checking for gethostbyname" >&5
7865 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7866 if test "${ac_cv_func_gethostbyname+set}" = set; then
7867 echo $ECHO_N "(cached) $ECHO_C" >&6
7868 else
7869 if test x$gcc_no_link = xyes; then
7870 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7871 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7872 { (exit 1); exit 1; }; }
7874 cat >conftest.$ac_ext <<_ACEOF
7875 /* confdefs.h. */
7876 _ACEOF
7877 cat confdefs.h >>conftest.$ac_ext
7878 cat >>conftest.$ac_ext <<_ACEOF
7879 /* end confdefs.h. */
7880 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
7881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7882 #define gethostbyname innocuous_gethostbyname
7884 /* System header to define __stub macros and hopefully few prototypes,
7885 which can conflict with char gethostbyname (); below.
7886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7887 <limits.h> exists even on freestanding compilers. */
7889 #ifdef __STDC__
7890 # include <limits.h>
7891 #else
7892 # include <assert.h>
7893 #endif
7895 #undef gethostbyname
7897 /* Override any gcc2 internal prototype to avoid an error. */
7898 #ifdef __cplusplus
7899 extern "C"
7901 #endif
7902 /* We use char because int might match the return type of a gcc2
7903 builtin and then its argument prototype would still apply. */
7904 char gethostbyname ();
7905 /* The GNU C library defines this for functions which it implements
7906 to always fail with ENOSYS. Some functions are actually named
7907 something starting with __ and the normal name is an alias. */
7908 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7909 choke me
7910 #else
7911 char (*f) () = gethostbyname;
7912 #endif
7913 #ifdef __cplusplus
7915 #endif
7918 main ()
7920 return f != gethostbyname;
7922 return 0;
7924 _ACEOF
7925 rm -f conftest.$ac_objext conftest$ac_exeext
7926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7927 (eval $ac_link) 2>conftest.er1
7928 ac_status=$?
7929 grep -v '^ *+' conftest.er1 >conftest.err
7930 rm -f conftest.er1
7931 cat conftest.err >&5
7932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); } &&
7934 { ac_try='test -z "$ac_c_werror_flag"
7935 || test ! -s conftest.err'
7936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7937 (eval $ac_try) 2>&5
7938 ac_status=$?
7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940 (exit $ac_status); }; } &&
7941 { ac_try='test -s conftest$ac_exeext'
7942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7943 (eval $ac_try) 2>&5
7944 ac_status=$?
7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); }; }; then
7947 ac_cv_func_gethostbyname=yes
7948 else
7949 echo "$as_me: failed program was:" >&5
7950 sed 's/^/| /' conftest.$ac_ext >&5
7952 ac_cv_func_gethostbyname=no
7954 rm -f conftest.err conftest.$ac_objext \
7955 conftest$ac_exeext conftest.$ac_ext
7957 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7958 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7960 if test $ac_cv_func_gethostbyname = no; then
7961 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7962 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7963 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7964 echo $ECHO_N "(cached) $ECHO_C" >&6
7965 else
7966 ac_check_lib_save_LIBS=$LIBS
7967 LIBS="-lnsl $LIBS"
7968 if test x$gcc_no_link = xyes; then
7969 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7970 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7971 { (exit 1); exit 1; }; }
7973 cat >conftest.$ac_ext <<_ACEOF
7974 /* confdefs.h. */
7975 _ACEOF
7976 cat confdefs.h >>conftest.$ac_ext
7977 cat >>conftest.$ac_ext <<_ACEOF
7978 /* end confdefs.h. */
7980 /* Override any gcc2 internal prototype to avoid an error. */
7981 #ifdef __cplusplus
7982 extern "C"
7983 #endif
7984 /* We use char because int might match the return type of a gcc2
7985 builtin and then its argument prototype would still apply. */
7986 char gethostbyname ();
7988 main ()
7990 gethostbyname ();
7992 return 0;
7994 _ACEOF
7995 rm -f conftest.$ac_objext conftest$ac_exeext
7996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7997 (eval $ac_link) 2>conftest.er1
7998 ac_status=$?
7999 grep -v '^ *+' conftest.er1 >conftest.err
8000 rm -f conftest.er1
8001 cat conftest.err >&5
8002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 (exit $ac_status); } &&
8004 { ac_try='test -z "$ac_c_werror_flag"
8005 || test ! -s conftest.err'
8006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8007 (eval $ac_try) 2>&5
8008 ac_status=$?
8009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010 (exit $ac_status); }; } &&
8011 { ac_try='test -s conftest$ac_exeext'
8012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8013 (eval $ac_try) 2>&5
8014 ac_status=$?
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); }; }; then
8017 ac_cv_lib_nsl_gethostbyname=yes
8018 else
8019 echo "$as_me: failed program was:" >&5
8020 sed 's/^/| /' conftest.$ac_ext >&5
8022 ac_cv_lib_nsl_gethostbyname=no
8024 rm -f conftest.err conftest.$ac_objext \
8025 conftest$ac_exeext conftest.$ac_ext
8026 LIBS=$ac_check_lib_save_LIBS
8028 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8029 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8030 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8031 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8034 if test $ac_cv_lib_nsl_gethostbyname = no; then
8035 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8036 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8037 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8038 echo $ECHO_N "(cached) $ECHO_C" >&6
8039 else
8040 ac_check_lib_save_LIBS=$LIBS
8041 LIBS="-lbsd $LIBS"
8042 if test x$gcc_no_link = xyes; then
8043 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8044 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8045 { (exit 1); exit 1; }; }
8047 cat >conftest.$ac_ext <<_ACEOF
8048 /* confdefs.h. */
8049 _ACEOF
8050 cat confdefs.h >>conftest.$ac_ext
8051 cat >>conftest.$ac_ext <<_ACEOF
8052 /* end confdefs.h. */
8054 /* Override any gcc2 internal prototype to avoid an error. */
8055 #ifdef __cplusplus
8056 extern "C"
8057 #endif
8058 /* We use char because int might match the return type of a gcc2
8059 builtin and then its argument prototype would still apply. */
8060 char gethostbyname ();
8062 main ()
8064 gethostbyname ();
8066 return 0;
8068 _ACEOF
8069 rm -f conftest.$ac_objext conftest$ac_exeext
8070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8071 (eval $ac_link) 2>conftest.er1
8072 ac_status=$?
8073 grep -v '^ *+' conftest.er1 >conftest.err
8074 rm -f conftest.er1
8075 cat conftest.err >&5
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); } &&
8078 { ac_try='test -z "$ac_c_werror_flag"
8079 || test ! -s conftest.err'
8080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8081 (eval $ac_try) 2>&5
8082 ac_status=$?
8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 (exit $ac_status); }; } &&
8085 { ac_try='test -s conftest$ac_exeext'
8086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8087 (eval $ac_try) 2>&5
8088 ac_status=$?
8089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090 (exit $ac_status); }; }; then
8091 ac_cv_lib_bsd_gethostbyname=yes
8092 else
8093 echo "$as_me: failed program was:" >&5
8094 sed 's/^/| /' conftest.$ac_ext >&5
8096 ac_cv_lib_bsd_gethostbyname=no
8098 rm -f conftest.err conftest.$ac_objext \
8099 conftest$ac_exeext conftest.$ac_ext
8100 LIBS=$ac_check_lib_save_LIBS
8102 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8103 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8104 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8105 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8111 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8112 # socket/setsockopt and other routines are undefined under SCO ODT
8113 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8114 # on later versions), says Simon Leinen: it contains gethostby*
8115 # variants that don't use the name server (or something). -lsocket
8116 # must be given before -lnsl if both are needed. We assume that
8117 # if connect needs -lnsl, so does gethostbyname.
8118 echo "$as_me:$LINENO: checking for connect" >&5
8119 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8120 if test "${ac_cv_func_connect+set}" = set; then
8121 echo $ECHO_N "(cached) $ECHO_C" >&6
8122 else
8123 if test x$gcc_no_link = xyes; then
8124 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8125 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8126 { (exit 1); exit 1; }; }
8128 cat >conftest.$ac_ext <<_ACEOF
8129 /* confdefs.h. */
8130 _ACEOF
8131 cat confdefs.h >>conftest.$ac_ext
8132 cat >>conftest.$ac_ext <<_ACEOF
8133 /* end confdefs.h. */
8134 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
8135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8136 #define connect innocuous_connect
8138 /* System header to define __stub macros and hopefully few prototypes,
8139 which can conflict with char connect (); below.
8140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8141 <limits.h> exists even on freestanding compilers. */
8143 #ifdef __STDC__
8144 # include <limits.h>
8145 #else
8146 # include <assert.h>
8147 #endif
8149 #undef connect
8151 /* Override any gcc2 internal prototype to avoid an error. */
8152 #ifdef __cplusplus
8153 extern "C"
8155 #endif
8156 /* We use char because int might match the return type of a gcc2
8157 builtin and then its argument prototype would still apply. */
8158 char connect ();
8159 /* The GNU C library defines this for functions which it implements
8160 to always fail with ENOSYS. Some functions are actually named
8161 something starting with __ and the normal name is an alias. */
8162 #if defined (__stub_connect) || defined (__stub___connect)
8163 choke me
8164 #else
8165 char (*f) () = connect;
8166 #endif
8167 #ifdef __cplusplus
8169 #endif
8172 main ()
8174 return f != connect;
8176 return 0;
8178 _ACEOF
8179 rm -f conftest.$ac_objext conftest$ac_exeext
8180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8181 (eval $ac_link) 2>conftest.er1
8182 ac_status=$?
8183 grep -v '^ *+' conftest.er1 >conftest.err
8184 rm -f conftest.er1
8185 cat conftest.err >&5
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); } &&
8188 { ac_try='test -z "$ac_c_werror_flag"
8189 || test ! -s conftest.err'
8190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8191 (eval $ac_try) 2>&5
8192 ac_status=$?
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); }; } &&
8195 { ac_try='test -s conftest$ac_exeext'
8196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8197 (eval $ac_try) 2>&5
8198 ac_status=$?
8199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200 (exit $ac_status); }; }; then
8201 ac_cv_func_connect=yes
8202 else
8203 echo "$as_me: failed program was:" >&5
8204 sed 's/^/| /' conftest.$ac_ext >&5
8206 ac_cv_func_connect=no
8208 rm -f conftest.err conftest.$ac_objext \
8209 conftest$ac_exeext conftest.$ac_ext
8211 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8212 echo "${ECHO_T}$ac_cv_func_connect" >&6
8214 if test $ac_cv_func_connect = no; then
8215 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8216 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8217 if test "${ac_cv_lib_socket_connect+set}" = set; then
8218 echo $ECHO_N "(cached) $ECHO_C" >&6
8219 else
8220 ac_check_lib_save_LIBS=$LIBS
8221 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8222 if test x$gcc_no_link = xyes; then
8223 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8224 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8225 { (exit 1); exit 1; }; }
8227 cat >conftest.$ac_ext <<_ACEOF
8228 /* confdefs.h. */
8229 _ACEOF
8230 cat confdefs.h >>conftest.$ac_ext
8231 cat >>conftest.$ac_ext <<_ACEOF
8232 /* end confdefs.h. */
8234 /* Override any gcc2 internal prototype to avoid an error. */
8235 #ifdef __cplusplus
8236 extern "C"
8237 #endif
8238 /* We use char because int might match the return type of a gcc2
8239 builtin and then its argument prototype would still apply. */
8240 char connect ();
8242 main ()
8244 connect ();
8246 return 0;
8248 _ACEOF
8249 rm -f conftest.$ac_objext conftest$ac_exeext
8250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8251 (eval $ac_link) 2>conftest.er1
8252 ac_status=$?
8253 grep -v '^ *+' conftest.er1 >conftest.err
8254 rm -f conftest.er1
8255 cat conftest.err >&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); } &&
8258 { ac_try='test -z "$ac_c_werror_flag"
8259 || test ! -s conftest.err'
8260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8261 (eval $ac_try) 2>&5
8262 ac_status=$?
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); }; } &&
8265 { ac_try='test -s conftest$ac_exeext'
8266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8267 (eval $ac_try) 2>&5
8268 ac_status=$?
8269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270 (exit $ac_status); }; }; then
8271 ac_cv_lib_socket_connect=yes
8272 else
8273 echo "$as_me: failed program was:" >&5
8274 sed 's/^/| /' conftest.$ac_ext >&5
8276 ac_cv_lib_socket_connect=no
8278 rm -f conftest.err conftest.$ac_objext \
8279 conftest$ac_exeext conftest.$ac_ext
8280 LIBS=$ac_check_lib_save_LIBS
8282 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8283 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8284 if test $ac_cv_lib_socket_connect = yes; then
8285 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8290 # Guillermo Gomez says -lposix is necessary on A/UX.
8291 echo "$as_me:$LINENO: checking for remove" >&5
8292 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8293 if test "${ac_cv_func_remove+set}" = set; then
8294 echo $ECHO_N "(cached) $ECHO_C" >&6
8295 else
8296 if test x$gcc_no_link = xyes; then
8297 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8298 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8299 { (exit 1); exit 1; }; }
8301 cat >conftest.$ac_ext <<_ACEOF
8302 /* confdefs.h. */
8303 _ACEOF
8304 cat confdefs.h >>conftest.$ac_ext
8305 cat >>conftest.$ac_ext <<_ACEOF
8306 /* end confdefs.h. */
8307 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
8308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8309 #define remove innocuous_remove
8311 /* System header to define __stub macros and hopefully few prototypes,
8312 which can conflict with char remove (); below.
8313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8314 <limits.h> exists even on freestanding compilers. */
8316 #ifdef __STDC__
8317 # include <limits.h>
8318 #else
8319 # include <assert.h>
8320 #endif
8322 #undef remove
8324 /* Override any gcc2 internal prototype to avoid an error. */
8325 #ifdef __cplusplus
8326 extern "C"
8328 #endif
8329 /* We use char because int might match the return type of a gcc2
8330 builtin and then its argument prototype would still apply. */
8331 char remove ();
8332 /* The GNU C library defines this for functions which it implements
8333 to always fail with ENOSYS. Some functions are actually named
8334 something starting with __ and the normal name is an alias. */
8335 #if defined (__stub_remove) || defined (__stub___remove)
8336 choke me
8337 #else
8338 char (*f) () = remove;
8339 #endif
8340 #ifdef __cplusplus
8342 #endif
8345 main ()
8347 return f != remove;
8349 return 0;
8351 _ACEOF
8352 rm -f conftest.$ac_objext conftest$ac_exeext
8353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8354 (eval $ac_link) 2>conftest.er1
8355 ac_status=$?
8356 grep -v '^ *+' conftest.er1 >conftest.err
8357 rm -f conftest.er1
8358 cat conftest.err >&5
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); } &&
8361 { ac_try='test -z "$ac_c_werror_flag"
8362 || test ! -s conftest.err'
8363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8364 (eval $ac_try) 2>&5
8365 ac_status=$?
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); }; } &&
8368 { ac_try='test -s conftest$ac_exeext'
8369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8370 (eval $ac_try) 2>&5
8371 ac_status=$?
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); }; }; then
8374 ac_cv_func_remove=yes
8375 else
8376 echo "$as_me: failed program was:" >&5
8377 sed 's/^/| /' conftest.$ac_ext >&5
8379 ac_cv_func_remove=no
8381 rm -f conftest.err conftest.$ac_objext \
8382 conftest$ac_exeext conftest.$ac_ext
8384 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8385 echo "${ECHO_T}$ac_cv_func_remove" >&6
8387 if test $ac_cv_func_remove = no; then
8388 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8389 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8390 if test "${ac_cv_lib_posix_remove+set}" = set; then
8391 echo $ECHO_N "(cached) $ECHO_C" >&6
8392 else
8393 ac_check_lib_save_LIBS=$LIBS
8394 LIBS="-lposix $LIBS"
8395 if test x$gcc_no_link = xyes; then
8396 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8397 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8398 { (exit 1); exit 1; }; }
8400 cat >conftest.$ac_ext <<_ACEOF
8401 /* confdefs.h. */
8402 _ACEOF
8403 cat confdefs.h >>conftest.$ac_ext
8404 cat >>conftest.$ac_ext <<_ACEOF
8405 /* end confdefs.h. */
8407 /* Override any gcc2 internal prototype to avoid an error. */
8408 #ifdef __cplusplus
8409 extern "C"
8410 #endif
8411 /* We use char because int might match the return type of a gcc2
8412 builtin and then its argument prototype would still apply. */
8413 char remove ();
8415 main ()
8417 remove ();
8419 return 0;
8421 _ACEOF
8422 rm -f conftest.$ac_objext conftest$ac_exeext
8423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8424 (eval $ac_link) 2>conftest.er1
8425 ac_status=$?
8426 grep -v '^ *+' conftest.er1 >conftest.err
8427 rm -f conftest.er1
8428 cat conftest.err >&5
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); } &&
8431 { ac_try='test -z "$ac_c_werror_flag"
8432 || test ! -s conftest.err'
8433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8434 (eval $ac_try) 2>&5
8435 ac_status=$?
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); }; } &&
8438 { ac_try='test -s conftest$ac_exeext'
8439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8440 (eval $ac_try) 2>&5
8441 ac_status=$?
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); }; }; then
8444 ac_cv_lib_posix_remove=yes
8445 else
8446 echo "$as_me: failed program was:" >&5
8447 sed 's/^/| /' conftest.$ac_ext >&5
8449 ac_cv_lib_posix_remove=no
8451 rm -f conftest.err conftest.$ac_objext \
8452 conftest$ac_exeext conftest.$ac_ext
8453 LIBS=$ac_check_lib_save_LIBS
8455 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8456 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8457 if test $ac_cv_lib_posix_remove = yes; then
8458 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8463 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8464 echo "$as_me:$LINENO: checking for shmat" >&5
8465 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8466 if test "${ac_cv_func_shmat+set}" = set; then
8467 echo $ECHO_N "(cached) $ECHO_C" >&6
8468 else
8469 if test x$gcc_no_link = xyes; then
8470 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8471 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8472 { (exit 1); exit 1; }; }
8474 cat >conftest.$ac_ext <<_ACEOF
8475 /* confdefs.h. */
8476 _ACEOF
8477 cat confdefs.h >>conftest.$ac_ext
8478 cat >>conftest.$ac_ext <<_ACEOF
8479 /* end confdefs.h. */
8480 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
8481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8482 #define shmat innocuous_shmat
8484 /* System header to define __stub macros and hopefully few prototypes,
8485 which can conflict with char shmat (); below.
8486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8487 <limits.h> exists even on freestanding compilers. */
8489 #ifdef __STDC__
8490 # include <limits.h>
8491 #else
8492 # include <assert.h>
8493 #endif
8495 #undef shmat
8497 /* Override any gcc2 internal prototype to avoid an error. */
8498 #ifdef __cplusplus
8499 extern "C"
8501 #endif
8502 /* We use char because int might match the return type of a gcc2
8503 builtin and then its argument prototype would still apply. */
8504 char shmat ();
8505 /* The GNU C library defines this for functions which it implements
8506 to always fail with ENOSYS. Some functions are actually named
8507 something starting with __ and the normal name is an alias. */
8508 #if defined (__stub_shmat) || defined (__stub___shmat)
8509 choke me
8510 #else
8511 char (*f) () = shmat;
8512 #endif
8513 #ifdef __cplusplus
8515 #endif
8518 main ()
8520 return f != shmat;
8522 return 0;
8524 _ACEOF
8525 rm -f conftest.$ac_objext conftest$ac_exeext
8526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8527 (eval $ac_link) 2>conftest.er1
8528 ac_status=$?
8529 grep -v '^ *+' conftest.er1 >conftest.err
8530 rm -f conftest.er1
8531 cat conftest.err >&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); } &&
8534 { ac_try='test -z "$ac_c_werror_flag"
8535 || test ! -s conftest.err'
8536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8537 (eval $ac_try) 2>&5
8538 ac_status=$?
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); }; } &&
8541 { ac_try='test -s conftest$ac_exeext'
8542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8543 (eval $ac_try) 2>&5
8544 ac_status=$?
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); }; }; then
8547 ac_cv_func_shmat=yes
8548 else
8549 echo "$as_me: failed program was:" >&5
8550 sed 's/^/| /' conftest.$ac_ext >&5
8552 ac_cv_func_shmat=no
8554 rm -f conftest.err conftest.$ac_objext \
8555 conftest$ac_exeext conftest.$ac_ext
8557 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8558 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8560 if test $ac_cv_func_shmat = no; then
8561 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8562 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8563 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8564 echo $ECHO_N "(cached) $ECHO_C" >&6
8565 else
8566 ac_check_lib_save_LIBS=$LIBS
8567 LIBS="-lipc $LIBS"
8568 if test x$gcc_no_link = xyes; then
8569 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8570 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8571 { (exit 1); exit 1; }; }
8573 cat >conftest.$ac_ext <<_ACEOF
8574 /* confdefs.h. */
8575 _ACEOF
8576 cat confdefs.h >>conftest.$ac_ext
8577 cat >>conftest.$ac_ext <<_ACEOF
8578 /* end confdefs.h. */
8580 /* Override any gcc2 internal prototype to avoid an error. */
8581 #ifdef __cplusplus
8582 extern "C"
8583 #endif
8584 /* We use char because int might match the return type of a gcc2
8585 builtin and then its argument prototype would still apply. */
8586 char shmat ();
8588 main ()
8590 shmat ();
8592 return 0;
8594 _ACEOF
8595 rm -f conftest.$ac_objext conftest$ac_exeext
8596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8597 (eval $ac_link) 2>conftest.er1
8598 ac_status=$?
8599 grep -v '^ *+' conftest.er1 >conftest.err
8600 rm -f conftest.er1
8601 cat conftest.err >&5
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); } &&
8604 { ac_try='test -z "$ac_c_werror_flag"
8605 || test ! -s conftest.err'
8606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8607 (eval $ac_try) 2>&5
8608 ac_status=$?
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); }; } &&
8611 { ac_try='test -s conftest$ac_exeext'
8612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8613 (eval $ac_try) 2>&5
8614 ac_status=$?
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); }; }; then
8617 ac_cv_lib_ipc_shmat=yes
8618 else
8619 echo "$as_me: failed program was:" >&5
8620 sed 's/^/| /' conftest.$ac_ext >&5
8622 ac_cv_lib_ipc_shmat=no
8624 rm -f conftest.err conftest.$ac_objext \
8625 conftest$ac_exeext conftest.$ac_ext
8626 LIBS=$ac_check_lib_save_LIBS
8628 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8629 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8630 if test $ac_cv_lib_ipc_shmat = yes; then
8631 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8637 # Check for libraries that X11R6 Xt/Xaw programs need.
8638 ac_save_LDFLAGS=$LDFLAGS
8639 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8640 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8641 # check for ICE first), but we must link in the order -lSM -lICE or
8642 # we get undefined symbols. So assume we have SM if we have ICE.
8643 # These have to be linked with before -lX11, unlike the other
8644 # libraries we check for below, so use a different variable.
8645 # John Interrante, Karl Berry
8646 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8647 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8648 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8649 echo $ECHO_N "(cached) $ECHO_C" >&6
8650 else
8651 ac_check_lib_save_LIBS=$LIBS
8652 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8653 if test x$gcc_no_link = xyes; then
8654 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8655 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8656 { (exit 1); exit 1; }; }
8658 cat >conftest.$ac_ext <<_ACEOF
8659 /* confdefs.h. */
8660 _ACEOF
8661 cat confdefs.h >>conftest.$ac_ext
8662 cat >>conftest.$ac_ext <<_ACEOF
8663 /* end confdefs.h. */
8665 /* Override any gcc2 internal prototype to avoid an error. */
8666 #ifdef __cplusplus
8667 extern "C"
8668 #endif
8669 /* We use char because int might match the return type of a gcc2
8670 builtin and then its argument prototype would still apply. */
8671 char IceConnectionNumber ();
8673 main ()
8675 IceConnectionNumber ();
8677 return 0;
8679 _ACEOF
8680 rm -f conftest.$ac_objext conftest$ac_exeext
8681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8682 (eval $ac_link) 2>conftest.er1
8683 ac_status=$?
8684 grep -v '^ *+' conftest.er1 >conftest.err
8685 rm -f conftest.er1
8686 cat conftest.err >&5
8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 (exit $ac_status); } &&
8689 { ac_try='test -z "$ac_c_werror_flag"
8690 || test ! -s conftest.err'
8691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8692 (eval $ac_try) 2>&5
8693 ac_status=$?
8694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695 (exit $ac_status); }; } &&
8696 { ac_try='test -s conftest$ac_exeext'
8697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8698 (eval $ac_try) 2>&5
8699 ac_status=$?
8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); }; }; then
8702 ac_cv_lib_ICE_IceConnectionNumber=yes
8703 else
8704 echo "$as_me: failed program was:" >&5
8705 sed 's/^/| /' conftest.$ac_ext >&5
8707 ac_cv_lib_ICE_IceConnectionNumber=no
8709 rm -f conftest.err conftest.$ac_objext \
8710 conftest$ac_exeext conftest.$ac_ext
8711 LIBS=$ac_check_lib_save_LIBS
8713 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8714 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8715 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8716 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8719 LDFLAGS=$ac_save_LDFLAGS
8724 # determine whether to enable the cairo GTK Graphics2D backend
8725 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
8726 if test "${enable_gtk_cairo+set}" = set; then
8727 enableval="$enable_gtk_cairo"
8732 if test "x${enable_gtk_cairo}" = xyes; then
8733 GTK_CAIRO_TRUE=
8734 GTK_CAIRO_FALSE='#'
8735 else
8736 GTK_CAIRO_TRUE='#'
8737 GTK_CAIRO_FALSE=
8740 if test "x${enable_gtk_cairo}" = xyes
8741 then
8743 succeeded=no
8745 if test -z "$PKG_CONFIG"; then
8746 # Extract the first word of "pkg-config", so it can be a program name with args.
8747 set dummy pkg-config; ac_word=$2
8748 echo "$as_me:$LINENO: checking for $ac_word" >&5
8749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8750 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8751 echo $ECHO_N "(cached) $ECHO_C" >&6
8752 else
8753 case $PKG_CONFIG in
8754 [\\/]* | ?:[\\/]*)
8755 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8759 for as_dir in $PATH
8761 IFS=$as_save_IFS
8762 test -z "$as_dir" && as_dir=.
8763 for ac_exec_ext in '' $ac_executable_extensions; do
8764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8765 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8767 break 2
8769 done
8770 done
8772 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8774 esac
8776 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8778 if test -n "$PKG_CONFIG"; then
8779 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8780 echo "${ECHO_T}$PKG_CONFIG" >&6
8781 else
8782 echo "$as_me:$LINENO: result: no" >&5
8783 echo "${ECHO_T}no" >&6
8788 if test "$PKG_CONFIG" = "no" ; then
8789 echo "*** The pkg-config script could not be found. Make sure it is"
8790 echo "*** in your path, or set the PKG_CONFIG environment variable"
8791 echo "*** to the full path to pkg-config."
8792 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8793 else
8794 PKG_CONFIG_MIN_VERSION=0.9.0
8795 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8796 echo "$as_me:$LINENO: checking for cairo" >&5
8797 echo $ECHO_N "checking for cairo... $ECHO_C" >&6
8799 if $PKG_CONFIG --exists "cairo" ; then
8800 echo "$as_me:$LINENO: result: yes" >&5
8801 echo "${ECHO_T}yes" >&6
8802 succeeded=yes
8804 echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
8805 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
8806 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo"`
8807 echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
8808 echo "${ECHO_T}$CAIRO_CFLAGS" >&6
8810 echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
8811 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
8812 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo"`
8813 echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
8814 echo "${ECHO_T}$CAIRO_LIBS" >&6
8815 else
8816 CAIRO_CFLAGS=""
8817 CAIRO_LIBS=""
8818 ## If we have a custom action on failure, don't print errors, but
8819 ## do set a variable so people can do so.
8820 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
8821 echo $CAIRO_PKG_ERRORS
8826 else
8827 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8828 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8832 if test $succeeded = yes; then
8834 else
8835 { { 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
8836 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;}
8837 { (exit 1); exit 1; }; }
8841 succeeded=no
8843 if test -z "$PKG_CONFIG"; then
8844 # Extract the first word of "pkg-config", so it can be a program name with args.
8845 set dummy pkg-config; ac_word=$2
8846 echo "$as_me:$LINENO: checking for $ac_word" >&5
8847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8848 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8849 echo $ECHO_N "(cached) $ECHO_C" >&6
8850 else
8851 case $PKG_CONFIG in
8852 [\\/]* | ?:[\\/]*)
8853 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8857 for as_dir in $PATH
8859 IFS=$as_save_IFS
8860 test -z "$as_dir" && as_dir=.
8861 for ac_exec_ext in '' $ac_executable_extensions; do
8862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8863 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8865 break 2
8867 done
8868 done
8870 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8872 esac
8874 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8876 if test -n "$PKG_CONFIG"; then
8877 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8878 echo "${ECHO_T}$PKG_CONFIG" >&6
8879 else
8880 echo "$as_me:$LINENO: result: no" >&5
8881 echo "${ECHO_T}no" >&6
8886 if test "$PKG_CONFIG" = "no" ; then
8887 echo "*** The pkg-config script could not be found. Make sure it is"
8888 echo "*** in your path, or set the PKG_CONFIG environment variable"
8889 echo "*** to the full path to pkg-config."
8890 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8891 else
8892 PKG_CONFIG_MIN_VERSION=0.9.0
8893 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8894 echo "$as_me:$LINENO: checking for pangoft2" >&5
8895 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
8897 if $PKG_CONFIG --exists "pangoft2" ; then
8898 echo "$as_me:$LINENO: result: yes" >&5
8899 echo "${ECHO_T}yes" >&6
8900 succeeded=yes
8902 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
8903 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
8904 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
8905 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
8906 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
8908 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
8909 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
8910 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
8911 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
8912 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
8913 else
8914 PANGOFT2_CFLAGS=""
8915 PANGOFT2_LIBS=""
8916 ## If we have a custom action on failure, don't print errors, but
8917 ## do set a variable so people can do so.
8918 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
8919 echo $PANGOFT2_PKG_ERRORS
8924 else
8925 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8926 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8930 if test $succeeded = yes; then
8932 else
8933 { { 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
8934 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;}
8935 { (exit 1); exit 1; }; }
8944 # FIXME: this should be _libs on some hosts.
8945 libsubdir=.libs
8947 # extra LD Flags which are required for targets
8948 case "${host}" in
8949 *-*-darwin[0-7].*)
8950 # For now we have to disable it on darwin[8-9] because it slows down
8951 # the linking phase. A possible bug in ld?
8952 # on Darwin -single_module speeds up loading of the dynamic libraries.
8953 extra_ldflags_libjava=-Wl,-single_module
8955 esac
8958 # Allow the GC to be disabled. Can be useful when debugging.
8959 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
8960 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
8961 # Check whether --enable-java-gc or --disable-java-gc was given.
8962 if test "${enable_java_gc+set}" = set; then
8963 enableval="$enable_java_gc"
8964 GC=$enableval
8965 else
8966 GC=boehm
8968 GCLIBS=
8969 GCINCS=
8970 GCDEPS=
8971 GCSPEC=
8972 JC1GCSPEC=
8973 GCTESTSPEC=
8974 case "$GC" in
8975 boehm)
8976 echo "$as_me:$LINENO: result: boehm" >&5
8977 echo "${ECHO_T}boehm" >&6
8978 GCLIBS=../boehm-gc/libgcjgc_convenience.la
8979 JC1GCSPEC='-fuse-boehm-gc'
8980 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
8981 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
8982 GCOBJS=boehm.lo
8983 GCHDR=boehm-gc.h
8984 # The POSIX thread support needs to know this.
8986 cat >>confdefs.h <<\_ACEOF
8987 #define HAVE_BOEHM_GC 1
8988 _ACEOF
8992 echo "$as_me:$LINENO: result: none" >&5
8993 echo "${ECHO_T}none" >&6
8994 GCHDR=no-gc.h
8997 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
8998 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
8999 { (exit 1); exit 1; }; }
9001 esac
9008 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
9012 if test "$GC" = boehm; then
9013 USING_BOEHMGC_TRUE=
9014 USING_BOEHMGC_FALSE='#'
9015 else
9016 USING_BOEHMGC_TRUE='#'
9017 USING_BOEHMGC_FALSE=
9022 if test "$GC" = no; then
9023 USING_NOGC_TRUE=
9024 USING_NOGC_FALSE='#'
9025 else
9026 USING_NOGC_TRUE='#'
9027 USING_NOGC_FALSE=
9032 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
9033 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
9034 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
9035 echo "$as_me:$LINENO: result: $THREADS" >&5
9036 echo "${ECHO_T}$THREADS" >&6
9038 case "$THREADS" in
9039 no | none | single)
9040 THREADS=none
9042 posix | posix95 | pthreads)
9043 THREADS=posix
9044 case "$host" in
9045 *-*-linux*)
9047 cat >>confdefs.h <<\_ACEOF
9048 #define LINUX_THREADS 1
9049 _ACEOF
9052 esac
9054 win32)
9056 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
9057 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
9058 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
9059 { (exit 1); exit 1; }; }
9062 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
9063 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
9064 { (exit 1); exit 1; }; }
9066 esac
9068 THREADCXXFLAGS=
9069 THREADLDFLAGS=
9070 THREADLIBS=
9071 THREADINCS=
9072 THREADDEPS=
9073 THREADH=
9074 THREADSPEC=
9075 case "$THREADS" in
9076 posix)
9077 case "$host" in
9078 *-*-cygwin*)
9079 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
9081 *-*-freebsd[1234]*)
9082 # Before FreeBSD 5, it didn't have -lpthread (or any library which
9083 # merely adds pthread_* functions) but it does have a -pthread switch
9084 # which is required at link-time to select -lc_r *instead* of -lc.
9085 THREADLDFLAGS=-pthread
9086 # Don't set THREADSPEC here as might be expected since -pthread is
9087 # not processed when found within a spec file, it must come from
9088 # the command line. For now, the user must provide the -pthread
9089 # switch to link code compiled with gcj. In future, consider adding
9090 # support for weak references to pthread_* functions ala gthr.h API.
9091 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
9093 *-*-freebsd*)
9094 # FreeBSD 5 implements a model much closer to other modern UNIX
9095 # which support threads. However, it still does not support
9096 # -lpthread.
9097 THREADLDFLAGS=-pthread
9098 THREADSPEC=-lc_r
9100 alpha*-dec-osf*)
9101 THREADCXXFLAGS=-pthread
9102 # boehm-gc needs some functions from librt, so link that too.
9103 THREADLIBS='-lpthread -lrt'
9104 THREADSPEC='-lpthread -lrt'
9107 THREADLIBS=-lpthread
9108 THREADSPEC=-lpthread
9110 esac
9111 THREADH=posix-threads.h
9112 # MIT pthreads doesn't seem to have the mutexattr functions.
9113 # But for now we don't check for it. We just assume you aren't
9114 # using MIT pthreads.
9116 cat >>confdefs.h <<\_ACEOF
9117 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9118 _ACEOF
9121 # If we're using the Boehm GC, then we happen to know that it
9122 # defines _REENTRANT, so we don't bother. Eww.
9123 if test "$GC" != boehm; then
9125 cat >>confdefs.h <<\_ACEOF
9126 #define _REENTRANT 1
9127 _ACEOF
9131 cat >>confdefs.h <<\_ACEOF
9132 #define _POSIX_PTHREAD_SEMANTICS 1
9133 _ACEOF
9137 win32)
9138 THREADH=win32-threads.h
9141 none)
9142 THREADH=no-threads.h
9144 esac
9145 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
9155 if test "$THREADS" = posix; then
9156 USING_POSIX_THREADS_TRUE=
9157 USING_POSIX_THREADS_FALSE='#'
9158 else
9159 USING_POSIX_THREADS_TRUE='#'
9160 USING_POSIX_THREADS_FALSE=
9165 if test "$THREADS" = win32; then
9166 USING_WIN32_THREADS_TRUE=
9167 USING_WIN32_THREADS_FALSE='#'
9168 else
9169 USING_WIN32_THREADS_TRUE='#'
9170 USING_WIN32_THREADS_FALSE=
9175 if test "$THREADS" = none; then
9176 USING_NO_THREADS_TRUE=
9177 USING_NO_THREADS_FALSE='#'
9178 else
9179 USING_NO_THREADS_TRUE='#'
9180 USING_NO_THREADS_FALSE=
9184 if test -d sysdep; then true; else mkdir sysdep; fi
9185 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
9187 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
9189 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
9192 HASH_SYNC_SPEC=
9193 # Hash synchronization is only useful with posix threads right now.
9194 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
9195 HASH_SYNC_SPEC=-fhash-synchronization
9197 cat >>confdefs.h <<\_ACEOF
9198 #define JV_HASH_SYNCHRONIZATION 1
9199 _ACEOF
9206 if test "$GCC" = yes; then
9207 USING_GCC_TRUE=
9208 USING_GCC_FALSE='#'
9209 else
9210 USING_GCC_TRUE='#'
9211 USING_GCC_FALSE=
9215 # We're in the tree with gcc, and need to include some of its headers.
9216 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
9218 if test "x${with_newlib}" = "xyes"; then
9219 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
9220 # may not work correctly, because the compiler may not be able to
9221 # link executables.
9223 # We assume newlib. This lets us hard-code the functions we know
9224 # we'll have.
9226 cat >>confdefs.h <<\_ACEOF
9227 #define HAVE_MEMMOVE 1
9228 _ACEOF
9231 cat >>confdefs.h <<\_ACEOF
9232 #define HAVE_MEMCPY 1
9233 _ACEOF
9236 cat >>confdefs.h <<\_ACEOF
9237 #define HAVE_STRERROR 1
9238 _ACEOF
9241 cat >>confdefs.h <<\_ACEOF
9242 #define HAVE_TIME 1
9243 _ACEOF
9246 cat >>confdefs.h <<\_ACEOF
9247 #define HAVE_GMTIME_R 1
9248 _ACEOF
9251 cat >>confdefs.h <<\_ACEOF
9252 #define HAVE_LOCALTIME_R 1
9253 _ACEOF
9256 cat >>confdefs.h <<\_ACEOF
9257 #define HAVE_USLEEP_DECL 1
9258 _ACEOF
9260 # This is only for POSIX threads.
9262 cat >>confdefs.h <<\_ACEOF
9263 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9264 _ACEOF
9266 # We also assume we are using gcc, which provides alloca.
9267 cat >>confdefs.h <<\_ACEOF
9268 #define HAVE_ALLOCA 1
9269 _ACEOF
9272 # Assume we do not have getuid and friends.
9274 cat >>confdefs.h <<\_ACEOF
9275 #define NO_GETUID 1
9276 _ACEOF
9278 PLATFORMNET=NoNet
9279 else
9312 for ac_func in strerror ioctl select fstat open fsync sleep opendir \
9313 gmtime_r localtime_r readdir_r getpwuid_r getcwd \
9314 access stat mkdir rename rmdir unlink realpath utime chmod \
9315 nl_langinfo setlocale \
9316 inet_pton uname inet_ntoa \
9317 fork execvp pipe sigaction ftruncate
9319 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9320 echo "$as_me:$LINENO: checking for $ac_func" >&5
9321 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9322 if eval "test \"\${$as_ac_var+set}\" = set"; then
9323 echo $ECHO_N "(cached) $ECHO_C" >&6
9324 else
9325 if test x$gcc_no_link = xyes; then
9326 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9327 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9328 { (exit 1); exit 1; }; }
9330 cat >conftest.$ac_ext <<_ACEOF
9331 /* confdefs.h. */
9332 _ACEOF
9333 cat confdefs.h >>conftest.$ac_ext
9334 cat >>conftest.$ac_ext <<_ACEOF
9335 /* end confdefs.h. */
9336 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9338 #define $ac_func innocuous_$ac_func
9340 /* System header to define __stub macros and hopefully few prototypes,
9341 which can conflict with char $ac_func (); below.
9342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9343 <limits.h> exists even on freestanding compilers. */
9345 #ifdef __STDC__
9346 # include <limits.h>
9347 #else
9348 # include <assert.h>
9349 #endif
9351 #undef $ac_func
9353 /* Override any gcc2 internal prototype to avoid an error. */
9354 #ifdef __cplusplus
9355 extern "C"
9357 #endif
9358 /* We use char because int might match the return type of a gcc2
9359 builtin and then its argument prototype would still apply. */
9360 char $ac_func ();
9361 /* The GNU C library defines this for functions which it implements
9362 to always fail with ENOSYS. Some functions are actually named
9363 something starting with __ and the normal name is an alias. */
9364 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9365 choke me
9366 #else
9367 char (*f) () = $ac_func;
9368 #endif
9369 #ifdef __cplusplus
9371 #endif
9374 main ()
9376 return f != $ac_func;
9378 return 0;
9380 _ACEOF
9381 rm -f conftest.$ac_objext conftest$ac_exeext
9382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9383 (eval $ac_link) 2>conftest.er1
9384 ac_status=$?
9385 grep -v '^ *+' conftest.er1 >conftest.err
9386 rm -f conftest.er1
9387 cat conftest.err >&5
9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389 (exit $ac_status); } &&
9390 { ac_try='test -z "$ac_c_werror_flag"
9391 || test ! -s conftest.err'
9392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9393 (eval $ac_try) 2>&5
9394 ac_status=$?
9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396 (exit $ac_status); }; } &&
9397 { ac_try='test -s conftest$ac_exeext'
9398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9399 (eval $ac_try) 2>&5
9400 ac_status=$?
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); }; }; then
9403 eval "$as_ac_var=yes"
9404 else
9405 echo "$as_me: failed program was:" >&5
9406 sed 's/^/| /' conftest.$ac_ext >&5
9408 eval "$as_ac_var=no"
9410 rm -f conftest.err conftest.$ac_objext \
9411 conftest$ac_exeext conftest.$ac_ext
9413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9414 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9415 if test `eval echo '${'$as_ac_var'}'` = yes; then
9416 cat >>confdefs.h <<_ACEOF
9417 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9418 _ACEOF
9421 done
9425 for ac_func in inet_aton inet_addr
9427 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9428 echo "$as_me:$LINENO: checking for $ac_func" >&5
9429 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9430 if eval "test \"\${$as_ac_var+set}\" = set"; then
9431 echo $ECHO_N "(cached) $ECHO_C" >&6
9432 else
9433 if test x$gcc_no_link = xyes; then
9434 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9435 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9436 { (exit 1); exit 1; }; }
9438 cat >conftest.$ac_ext <<_ACEOF
9439 /* confdefs.h. */
9440 _ACEOF
9441 cat confdefs.h >>conftest.$ac_ext
9442 cat >>conftest.$ac_ext <<_ACEOF
9443 /* end confdefs.h. */
9444 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9445 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9446 #define $ac_func innocuous_$ac_func
9448 /* System header to define __stub macros and hopefully few prototypes,
9449 which can conflict with char $ac_func (); below.
9450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9451 <limits.h> exists even on freestanding compilers. */
9453 #ifdef __STDC__
9454 # include <limits.h>
9455 #else
9456 # include <assert.h>
9457 #endif
9459 #undef $ac_func
9461 /* Override any gcc2 internal prototype to avoid an error. */
9462 #ifdef __cplusplus
9463 extern "C"
9465 #endif
9466 /* We use char because int might match the return type of a gcc2
9467 builtin and then its argument prototype would still apply. */
9468 char $ac_func ();
9469 /* The GNU C library defines this for functions which it implements
9470 to always fail with ENOSYS. Some functions are actually named
9471 something starting with __ and the normal name is an alias. */
9472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9473 choke me
9474 #else
9475 char (*f) () = $ac_func;
9476 #endif
9477 #ifdef __cplusplus
9479 #endif
9482 main ()
9484 return f != $ac_func;
9486 return 0;
9488 _ACEOF
9489 rm -f conftest.$ac_objext conftest$ac_exeext
9490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9491 (eval $ac_link) 2>conftest.er1
9492 ac_status=$?
9493 grep -v '^ *+' conftest.er1 >conftest.err
9494 rm -f conftest.er1
9495 cat conftest.err >&5
9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497 (exit $ac_status); } &&
9498 { ac_try='test -z "$ac_c_werror_flag"
9499 || test ! -s conftest.err'
9500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9501 (eval $ac_try) 2>&5
9502 ac_status=$?
9503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); }; } &&
9505 { ac_try='test -s conftest$ac_exeext'
9506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9507 (eval $ac_try) 2>&5
9508 ac_status=$?
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); }; }; then
9511 eval "$as_ac_var=yes"
9512 else
9513 echo "$as_me: failed program was:" >&5
9514 sed 's/^/| /' conftest.$ac_ext >&5
9516 eval "$as_ac_var=no"
9518 rm -f conftest.err conftest.$ac_objext \
9519 conftest$ac_exeext conftest.$ac_ext
9521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9522 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9523 if test `eval echo '${'$as_ac_var'}'` = yes; then
9524 cat >>confdefs.h <<_ACEOF
9525 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9526 _ACEOF
9527 break
9529 done
9531 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9532 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9533 if test "${ac_cv_header_stdc+set}" = set; then
9534 echo $ECHO_N "(cached) $ECHO_C" >&6
9535 else
9536 cat >conftest.$ac_ext <<_ACEOF
9537 /* confdefs.h. */
9538 _ACEOF
9539 cat confdefs.h >>conftest.$ac_ext
9540 cat >>conftest.$ac_ext <<_ACEOF
9541 /* end confdefs.h. */
9542 #include <stdlib.h>
9543 #include <stdarg.h>
9544 #include <string.h>
9545 #include <float.h>
9548 main ()
9552 return 0;
9554 _ACEOF
9555 rm -f conftest.$ac_objext
9556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9557 (eval $ac_compile) 2>conftest.er1
9558 ac_status=$?
9559 grep -v '^ *+' conftest.er1 >conftest.err
9560 rm -f conftest.er1
9561 cat conftest.err >&5
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); } &&
9564 { ac_try='test -z "$ac_c_werror_flag"
9565 || test ! -s conftest.err'
9566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9567 (eval $ac_try) 2>&5
9568 ac_status=$?
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); }; } &&
9571 { ac_try='test -s conftest.$ac_objext'
9572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9573 (eval $ac_try) 2>&5
9574 ac_status=$?
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); }; }; then
9577 ac_cv_header_stdc=yes
9578 else
9579 echo "$as_me: failed program was:" >&5
9580 sed 's/^/| /' conftest.$ac_ext >&5
9582 ac_cv_header_stdc=no
9584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9586 if test $ac_cv_header_stdc = yes; then
9587 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9588 cat >conftest.$ac_ext <<_ACEOF
9589 /* confdefs.h. */
9590 _ACEOF
9591 cat confdefs.h >>conftest.$ac_ext
9592 cat >>conftest.$ac_ext <<_ACEOF
9593 /* end confdefs.h. */
9594 #include <string.h>
9596 _ACEOF
9597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9598 $EGREP "memchr" >/dev/null 2>&1; then
9600 else
9601 ac_cv_header_stdc=no
9603 rm -f conftest*
9607 if test $ac_cv_header_stdc = yes; then
9608 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9609 cat >conftest.$ac_ext <<_ACEOF
9610 /* confdefs.h. */
9611 _ACEOF
9612 cat confdefs.h >>conftest.$ac_ext
9613 cat >>conftest.$ac_ext <<_ACEOF
9614 /* end confdefs.h. */
9615 #include <stdlib.h>
9617 _ACEOF
9618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9619 $EGREP "free" >/dev/null 2>&1; then
9621 else
9622 ac_cv_header_stdc=no
9624 rm -f conftest*
9628 if test $ac_cv_header_stdc = yes; then
9629 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9630 if test "$cross_compiling" = yes; then
9632 else
9633 cat >conftest.$ac_ext <<_ACEOF
9634 /* confdefs.h. */
9635 _ACEOF
9636 cat confdefs.h >>conftest.$ac_ext
9637 cat >>conftest.$ac_ext <<_ACEOF
9638 /* end confdefs.h. */
9639 #include <ctype.h>
9640 #if ((' ' & 0x0FF) == 0x020)
9641 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9642 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9643 #else
9644 # define ISLOWER(c) \
9645 (('a' <= (c) && (c) <= 'i') \
9646 || ('j' <= (c) && (c) <= 'r') \
9647 || ('s' <= (c) && (c) <= 'z'))
9648 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9649 #endif
9651 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9653 main ()
9655 int i;
9656 for (i = 0; i < 256; i++)
9657 if (XOR (islower (i), ISLOWER (i))
9658 || toupper (i) != TOUPPER (i))
9659 exit(2);
9660 exit (0);
9662 _ACEOF
9663 rm -f conftest$ac_exeext
9664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9665 (eval $ac_link) 2>&5
9666 ac_status=$?
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9670 (eval $ac_try) 2>&5
9671 ac_status=$?
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); }; }; then
9675 else
9676 echo "$as_me: program exited with status $ac_status" >&5
9677 echo "$as_me: failed program was:" >&5
9678 sed 's/^/| /' conftest.$ac_ext >&5
9680 ( exit $ac_status )
9681 ac_cv_header_stdc=no
9683 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9687 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9688 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9689 if test $ac_cv_header_stdc = yes; then
9691 cat >>confdefs.h <<\_ACEOF
9692 #define STDC_HEADERS 1
9693 _ACEOF
9697 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9707 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9708 inttypes.h stdint.h unistd.h
9710 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9711 echo "$as_me:$LINENO: checking for $ac_header" >&5
9712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9714 echo $ECHO_N "(cached) $ECHO_C" >&6
9715 else
9716 cat >conftest.$ac_ext <<_ACEOF
9717 /* confdefs.h. */
9718 _ACEOF
9719 cat confdefs.h >>conftest.$ac_ext
9720 cat >>conftest.$ac_ext <<_ACEOF
9721 /* end confdefs.h. */
9722 $ac_includes_default
9724 #include <$ac_header>
9725 _ACEOF
9726 rm -f conftest.$ac_objext
9727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9728 (eval $ac_compile) 2>conftest.er1
9729 ac_status=$?
9730 grep -v '^ *+' conftest.er1 >conftest.err
9731 rm -f conftest.er1
9732 cat conftest.err >&5
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); } &&
9735 { ac_try='test -z "$ac_c_werror_flag"
9736 || test ! -s conftest.err'
9737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9738 (eval $ac_try) 2>&5
9739 ac_status=$?
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); }; } &&
9742 { ac_try='test -s conftest.$ac_objext'
9743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9744 (eval $ac_try) 2>&5
9745 ac_status=$?
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); }; }; then
9748 eval "$as_ac_Header=yes"
9749 else
9750 echo "$as_me: failed program was:" >&5
9751 sed 's/^/| /' conftest.$ac_ext >&5
9753 eval "$as_ac_Header=no"
9755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9759 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9760 cat >>confdefs.h <<_ACEOF
9761 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9762 _ACEOF
9766 done
9772 for ac_header in execinfo.h unistd.h dlfcn.h
9774 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9775 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9776 echo "$as_me:$LINENO: checking for $ac_header" >&5
9777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9779 echo $ECHO_N "(cached) $ECHO_C" >&6
9781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9783 else
9784 # Is the header compilable?
9785 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9786 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9787 cat >conftest.$ac_ext <<_ACEOF
9788 /* confdefs.h. */
9789 _ACEOF
9790 cat confdefs.h >>conftest.$ac_ext
9791 cat >>conftest.$ac_ext <<_ACEOF
9792 /* end confdefs.h. */
9793 $ac_includes_default
9794 #include <$ac_header>
9795 _ACEOF
9796 rm -f conftest.$ac_objext
9797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9798 (eval $ac_compile) 2>conftest.er1
9799 ac_status=$?
9800 grep -v '^ *+' conftest.er1 >conftest.err
9801 rm -f conftest.er1
9802 cat conftest.err >&5
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); } &&
9805 { ac_try='test -z "$ac_c_werror_flag"
9806 || test ! -s conftest.err'
9807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9808 (eval $ac_try) 2>&5
9809 ac_status=$?
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); }; } &&
9812 { ac_try='test -s conftest.$ac_objext'
9813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9814 (eval $ac_try) 2>&5
9815 ac_status=$?
9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 (exit $ac_status); }; }; then
9818 ac_header_compiler=yes
9819 else
9820 echo "$as_me: failed program was:" >&5
9821 sed 's/^/| /' conftest.$ac_ext >&5
9823 ac_header_compiler=no
9825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9826 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9827 echo "${ECHO_T}$ac_header_compiler" >&6
9829 # Is the header present?
9830 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9831 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9832 cat >conftest.$ac_ext <<_ACEOF
9833 /* confdefs.h. */
9834 _ACEOF
9835 cat confdefs.h >>conftest.$ac_ext
9836 cat >>conftest.$ac_ext <<_ACEOF
9837 /* end confdefs.h. */
9838 #include <$ac_header>
9839 _ACEOF
9840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9841 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9842 ac_status=$?
9843 grep -v '^ *+' conftest.er1 >conftest.err
9844 rm -f conftest.er1
9845 cat conftest.err >&5
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); } >/dev/null; then
9848 if test -s conftest.err; then
9849 ac_cpp_err=$ac_c_preproc_warn_flag
9850 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9851 else
9852 ac_cpp_err=
9854 else
9855 ac_cpp_err=yes
9857 if test -z "$ac_cpp_err"; then
9858 ac_header_preproc=yes
9859 else
9860 echo "$as_me: failed program was:" >&5
9861 sed 's/^/| /' conftest.$ac_ext >&5
9863 ac_header_preproc=no
9865 rm -f conftest.err conftest.$ac_ext
9866 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9867 echo "${ECHO_T}$ac_header_preproc" >&6
9869 # So? What about this header?
9870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9871 yes:no: )
9872 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9873 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9875 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9876 ac_header_preproc=yes
9878 no:yes:* )
9879 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9880 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9881 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9882 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9883 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9884 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9885 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9886 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9888 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9889 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9890 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9892 cat <<\_ASBOX
9893 ## ---------------------------------- ##
9894 ## Report this to the libjava lists. ##
9895 ## ---------------------------------- ##
9896 _ASBOX
9898 sed "s/^/$as_me: WARNING: /" >&2
9900 esac
9901 echo "$as_me:$LINENO: checking for $ac_header" >&5
9902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9904 echo $ECHO_N "(cached) $ECHO_C" >&6
9905 else
9906 eval "$as_ac_Header=\$ac_header_preproc"
9908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9909 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9913 cat >>confdefs.h <<_ACEOF
9914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9915 _ACEOF
9919 done
9921 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
9922 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
9923 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
9924 echo $ECHO_N "(cached) $ECHO_C" >&6
9925 else
9926 ac_check_lib_save_LIBS=$LIBS
9927 LIBS="-ldl $LIBS"
9928 if test x$gcc_no_link = xyes; then
9929 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9930 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9931 { (exit 1); exit 1; }; }
9933 cat >conftest.$ac_ext <<_ACEOF
9934 /* confdefs.h. */
9935 _ACEOF
9936 cat confdefs.h >>conftest.$ac_ext
9937 cat >>conftest.$ac_ext <<_ACEOF
9938 /* end confdefs.h. */
9940 /* Override any gcc2 internal prototype to avoid an error. */
9941 #ifdef __cplusplus
9942 extern "C"
9943 #endif
9944 /* We use char because int might match the return type of a gcc2
9945 builtin and then its argument prototype would still apply. */
9946 char dladdr ();
9948 main ()
9950 dladdr ();
9952 return 0;
9954 _ACEOF
9955 rm -f conftest.$ac_objext conftest$ac_exeext
9956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9957 (eval $ac_link) 2>conftest.er1
9958 ac_status=$?
9959 grep -v '^ *+' conftest.er1 >conftest.err
9960 rm -f conftest.er1
9961 cat conftest.err >&5
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963 (exit $ac_status); } &&
9964 { ac_try='test -z "$ac_c_werror_flag"
9965 || test ! -s conftest.err'
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); }; } &&
9971 { ac_try='test -s conftest$ac_exeext'
9972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9973 (eval $ac_try) 2>&5
9974 ac_status=$?
9975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976 (exit $ac_status); }; }; then
9977 ac_cv_lib_dl_dladdr=yes
9978 else
9979 echo "$as_me: failed program was:" >&5
9980 sed 's/^/| /' conftest.$ac_ext >&5
9982 ac_cv_lib_dl_dladdr=no
9984 rm -f conftest.err conftest.$ac_objext \
9985 conftest$ac_exeext conftest.$ac_ext
9986 LIBS=$ac_check_lib_save_LIBS
9988 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
9989 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
9990 if test $ac_cv_lib_dl_dladdr = yes; then
9992 if test "x${disable_dladdr}" = "xyes"; then
9993 #Broken dladdr().
9994 true
9995 else
9997 cat >>confdefs.h <<\_ACEOF
9998 #define HAVE_DLADDR 1
9999 _ACEOF
10005 if test x"$build" = x"$host"; then
10006 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
10007 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
10008 if test "${ac_cv_file__proc_self_exe+set}" = set; then
10009 echo $ECHO_N "(cached) $ECHO_C" >&6
10010 else
10011 test "$cross_compiling" = yes &&
10012 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10013 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10014 { (exit 1); exit 1; }; }
10015 if test -r "/proc/self/exe"; then
10016 ac_cv_file__proc_self_exe=yes
10017 else
10018 ac_cv_file__proc_self_exe=no
10021 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
10022 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
10023 if test $ac_cv_file__proc_self_exe = yes; then
10025 cat >>confdefs.h <<_ACEOF
10026 #define HAVE__PROC_SELF_EXE 1
10027 _ACEOF
10031 cat >>confdefs.h <<\_ACEOF
10032 #define HAVE_PROC_SELF_EXE 1
10033 _ACEOF
10037 else
10038 case $host in
10039 *-linux*)
10041 cat >>confdefs.h <<\_ACEOF
10042 #define HAVE_PROC_SELF_EXE 1
10043 _ACEOF
10046 esac
10050 if test "X$prefix" = "XNONE"; then
10051 acl_final_prefix="$ac_default_prefix"
10052 else
10053 acl_final_prefix="$prefix"
10055 if test "X$exec_prefix" = "XNONE"; then
10056 acl_final_exec_prefix='${prefix}'
10057 else
10058 acl_final_exec_prefix="$exec_prefix"
10060 acl_save_prefix="$prefix"
10061 prefix="$acl_final_prefix"
10062 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10063 prefix="$acl_save_prefix"
10066 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10067 if test "${with_gnu_ld+set}" = set; then
10068 withval="$with_gnu_ld"
10069 test "$withval" = no || with_gnu_ld=yes
10070 else
10071 with_gnu_ld=no
10073 # Prepare PATH_SEPARATOR.
10074 # The user is always right.
10075 if test "${PATH_SEPARATOR+set}" != set; then
10076 echo "#! /bin/sh" >conf$$.sh
10077 echo "exit 0" >>conf$$.sh
10078 chmod +x conf$$.sh
10079 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10080 PATH_SEPARATOR=';'
10081 else
10082 PATH_SEPARATOR=:
10084 rm -f conf$$.sh
10086 ac_prog=ld
10087 if test "$GCC" = yes; then
10088 # Check if gcc -print-prog-name=ld gives a path.
10089 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10090 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10091 case $host in
10092 *-*-mingw*)
10093 # gcc leaves a trailing carriage return which upsets mingw
10094 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10096 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10097 esac
10098 case $ac_prog in
10099 # Accept absolute paths.
10100 [\\/]* | [A-Za-z]:[\\/]*)
10101 re_direlt='/[^/][^/]*/\.\./'
10102 # Canonicalize the path of ld
10103 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10104 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10105 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10106 done
10107 test -z "$LD" && LD="$ac_prog"
10110 # If it fails, then pretend we aren't using GCC.
10111 ac_prog=ld
10114 # If it is relative, then search for the first ld in PATH.
10115 with_gnu_ld=unknown
10117 esac
10118 elif test "$with_gnu_ld" = yes; then
10119 echo "$as_me:$LINENO: checking for GNU ld" >&5
10120 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10121 else
10122 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10123 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10125 if test "${acl_cv_path_LD+set}" = set; then
10126 echo $ECHO_N "(cached) $ECHO_C" >&6
10127 else
10128 if test -z "$LD"; then
10129 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10130 for ac_dir in $PATH; do
10131 test -z "$ac_dir" && ac_dir=.
10132 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10133 acl_cv_path_LD="$ac_dir/$ac_prog"
10134 # Check to see if the program is GNU ld. I'd rather use --version,
10135 # but apparently some GNU ld's only accept -v.
10136 # Break only if it was the GNU/non-GNU ld that we prefer.
10137 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10138 test "$with_gnu_ld" != no && break
10139 else
10140 test "$with_gnu_ld" != yes && break
10143 done
10144 IFS="$ac_save_ifs"
10145 else
10146 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10150 LD="$acl_cv_path_LD"
10151 if test -n "$LD"; then
10152 echo "$as_me:$LINENO: result: $LD" >&5
10153 echo "${ECHO_T}$LD" >&6
10154 else
10155 echo "$as_me:$LINENO: result: no" >&5
10156 echo "${ECHO_T}no" >&6
10158 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10159 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10160 { (exit 1); exit 1; }; }
10161 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10162 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10163 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10164 echo $ECHO_N "(cached) $ECHO_C" >&6
10165 else
10166 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10167 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10168 acl_cv_prog_gnu_ld=yes
10169 else
10170 acl_cv_prog_gnu_ld=no
10173 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10174 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10175 with_gnu_ld=$acl_cv_prog_gnu_ld
10179 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10180 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10181 if test "${acl_cv_rpath+set}" = set; then
10182 echo $ECHO_N "(cached) $ECHO_C" >&6
10183 else
10185 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10186 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10187 . ./conftest.sh
10188 rm -f ./conftest.sh
10189 acl_cv_rpath=done
10192 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10193 echo "${ECHO_T}$acl_cv_rpath" >&6
10194 wl="$acl_cv_wl"
10195 libext="$acl_cv_libext"
10196 shlibext="$acl_cv_shlibext"
10197 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10198 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10199 hardcode_direct="$acl_cv_hardcode_direct"
10200 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10201 # Check whether --enable-rpath or --disable-rpath was given.
10202 if test "${enable_rpath+set}" = set; then
10203 enableval="$enable_rpath"
10205 else
10206 enable_rpath=yes
10215 use_additional=yes
10217 acl_save_prefix="$prefix"
10218 prefix="$acl_final_prefix"
10219 acl_save_exec_prefix="$exec_prefix"
10220 exec_prefix="$acl_final_exec_prefix"
10222 eval additional_includedir=\"$includedir\"
10223 eval additional_libdir=\"$libdir\"
10225 exec_prefix="$acl_save_exec_prefix"
10226 prefix="$acl_save_prefix"
10229 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10230 if test "${with_libiconv_prefix+set}" = set; then
10231 withval="$with_libiconv_prefix"
10233 if test "X$withval" = "Xno"; then
10234 use_additional=no
10235 else
10236 if test "X$withval" = "X"; then
10238 acl_save_prefix="$prefix"
10239 prefix="$acl_final_prefix"
10240 acl_save_exec_prefix="$exec_prefix"
10241 exec_prefix="$acl_final_exec_prefix"
10243 eval additional_includedir=\"$includedir\"
10244 eval additional_libdir=\"$libdir\"
10246 exec_prefix="$acl_save_exec_prefix"
10247 prefix="$acl_save_prefix"
10249 else
10250 additional_includedir="$withval/include"
10251 additional_libdir="$withval/lib"
10256 LIBICONV=
10257 LTLIBICONV=
10258 INCICONV=
10259 rpathdirs=
10260 ltrpathdirs=
10261 names_already_handled=
10262 names_next_round='iconv '
10263 while test -n "$names_next_round"; do
10264 names_this_round="$names_next_round"
10265 names_next_round=
10266 for name in $names_this_round; do
10267 already_handled=
10268 for n in $names_already_handled; do
10269 if test "$n" = "$name"; then
10270 already_handled=yes
10271 break
10273 done
10274 if test -z "$already_handled"; then
10275 names_already_handled="$names_already_handled $name"
10276 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10277 eval value=\"\$HAVE_LIB$uppername\"
10278 if test -n "$value"; then
10279 if test "$value" = yes; then
10280 eval value=\"\$LIB$uppername\"
10281 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10282 eval value=\"\$LTLIB$uppername\"
10283 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10284 else
10287 else
10288 found_dir=
10289 found_la=
10290 found_so=
10291 found_a=
10292 if test $use_additional = yes; then
10293 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10294 found_dir="$additional_libdir"
10295 found_so="$additional_libdir/lib$name.$shlibext"
10296 if test -f "$additional_libdir/lib$name.la"; then
10297 found_la="$additional_libdir/lib$name.la"
10299 else
10300 if test -f "$additional_libdir/lib$name.$libext"; then
10301 found_dir="$additional_libdir"
10302 found_a="$additional_libdir/lib$name.$libext"
10303 if test -f "$additional_libdir/lib$name.la"; then
10304 found_la="$additional_libdir/lib$name.la"
10309 if test "X$found_dir" = "X"; then
10310 for x in $LDFLAGS $LTLIBICONV; do
10312 acl_save_prefix="$prefix"
10313 prefix="$acl_final_prefix"
10314 acl_save_exec_prefix="$exec_prefix"
10315 exec_prefix="$acl_final_exec_prefix"
10316 eval x=\"$x\"
10317 exec_prefix="$acl_save_exec_prefix"
10318 prefix="$acl_save_prefix"
10320 case "$x" in
10321 -L*)
10322 dir=`echo "X$x" | sed -e 's/^X-L//'`
10323 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10324 found_dir="$dir"
10325 found_so="$dir/lib$name.$shlibext"
10326 if test -f "$dir/lib$name.la"; then
10327 found_la="$dir/lib$name.la"
10329 else
10330 if test -f "$dir/lib$name.$libext"; then
10331 found_dir="$dir"
10332 found_a="$dir/lib$name.$libext"
10333 if test -f "$dir/lib$name.la"; then
10334 found_la="$dir/lib$name.la"
10339 esac
10340 if test "X$found_dir" != "X"; then
10341 break
10343 done
10345 if test "X$found_dir" != "X"; then
10346 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10347 if test "X$found_so" != "X"; then
10348 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10349 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10350 else
10351 haveit=
10352 for x in $ltrpathdirs; do
10353 if test "X$x" = "X$found_dir"; then
10354 haveit=yes
10355 break
10357 done
10358 if test -z "$haveit"; then
10359 ltrpathdirs="$ltrpathdirs $found_dir"
10361 if test "$hardcode_direct" = yes; then
10362 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10363 else
10364 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10365 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10366 haveit=
10367 for x in $rpathdirs; do
10368 if test "X$x" = "X$found_dir"; then
10369 haveit=yes
10370 break
10372 done
10373 if test -z "$haveit"; then
10374 rpathdirs="$rpathdirs $found_dir"
10376 else
10377 haveit=
10378 for x in $LDFLAGS $LIBICONV; do
10380 acl_save_prefix="$prefix"
10381 prefix="$acl_final_prefix"
10382 acl_save_exec_prefix="$exec_prefix"
10383 exec_prefix="$acl_final_exec_prefix"
10384 eval x=\"$x\"
10385 exec_prefix="$acl_save_exec_prefix"
10386 prefix="$acl_save_prefix"
10388 if test "X$x" = "X-L$found_dir"; then
10389 haveit=yes
10390 break
10392 done
10393 if test -z "$haveit"; then
10394 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10396 if test "$hardcode_minus_L" != no; then
10397 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10398 else
10399 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10404 else
10405 if test "X$found_a" != "X"; then
10406 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10407 else
10408 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10411 additional_includedir=
10412 case "$found_dir" in
10413 */lib | */lib/)
10414 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10415 additional_includedir="$basedir/include"
10417 esac
10418 if test "X$additional_includedir" != "X"; then
10419 if test "X$additional_includedir" != "X/usr/include"; then
10420 haveit=
10421 if test "X$additional_includedir" = "X/usr/local/include"; then
10422 if test -n "$GCC"; then
10423 case $host_os in
10424 linux*) haveit=yes;;
10425 esac
10428 if test -z "$haveit"; then
10429 for x in $CPPFLAGS $INCICONV; do
10431 acl_save_prefix="$prefix"
10432 prefix="$acl_final_prefix"
10433 acl_save_exec_prefix="$exec_prefix"
10434 exec_prefix="$acl_final_exec_prefix"
10435 eval x=\"$x\"
10436 exec_prefix="$acl_save_exec_prefix"
10437 prefix="$acl_save_prefix"
10439 if test "X$x" = "X-I$additional_includedir"; then
10440 haveit=yes
10441 break
10443 done
10444 if test -z "$haveit"; then
10445 if test -d "$additional_includedir"; then
10446 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10452 if test -n "$found_la"; then
10453 save_libdir="$libdir"
10454 case "$found_la" in
10455 */* | *\\*) . "$found_la" ;;
10456 *) . "./$found_la" ;;
10457 esac
10458 libdir="$save_libdir"
10459 for dep in $dependency_libs; do
10460 case "$dep" in
10461 -L*)
10462 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10463 if test "X$additional_libdir" != "X/usr/lib"; then
10464 haveit=
10465 if test "X$additional_libdir" = "X/usr/local/lib"; then
10466 if test -n "$GCC"; then
10467 case $host_os in
10468 linux*) haveit=yes;;
10469 esac
10472 if test -z "$haveit"; then
10473 haveit=
10474 for x in $LDFLAGS $LIBICONV; do
10476 acl_save_prefix="$prefix"
10477 prefix="$acl_final_prefix"
10478 acl_save_exec_prefix="$exec_prefix"
10479 exec_prefix="$acl_final_exec_prefix"
10480 eval x=\"$x\"
10481 exec_prefix="$acl_save_exec_prefix"
10482 prefix="$acl_save_prefix"
10484 if test "X$x" = "X-L$additional_libdir"; then
10485 haveit=yes
10486 break
10488 done
10489 if test -z "$haveit"; then
10490 if test -d "$additional_libdir"; then
10491 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10494 haveit=
10495 for x in $LDFLAGS $LTLIBICONV; do
10497 acl_save_prefix="$prefix"
10498 prefix="$acl_final_prefix"
10499 acl_save_exec_prefix="$exec_prefix"
10500 exec_prefix="$acl_final_exec_prefix"
10501 eval x=\"$x\"
10502 exec_prefix="$acl_save_exec_prefix"
10503 prefix="$acl_save_prefix"
10505 if test "X$x" = "X-L$additional_libdir"; then
10506 haveit=yes
10507 break
10509 done
10510 if test -z "$haveit"; then
10511 if test -d "$additional_libdir"; then
10512 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10518 -R*)
10519 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10520 if test "$enable_rpath" != no; then
10521 haveit=
10522 for x in $rpathdirs; do
10523 if test "X$x" = "X$dir"; then
10524 haveit=yes
10525 break
10527 done
10528 if test -z "$haveit"; then
10529 rpathdirs="$rpathdirs $dir"
10531 haveit=
10532 for x in $ltrpathdirs; do
10533 if test "X$x" = "X$dir"; then
10534 haveit=yes
10535 break
10537 done
10538 if test -z "$haveit"; then
10539 ltrpathdirs="$ltrpathdirs $dir"
10543 -l*)
10544 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10546 *.la)
10547 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10550 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10551 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10553 esac
10554 done
10556 else
10557 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10558 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10562 done
10563 done
10564 if test "X$rpathdirs" != "X"; then
10565 if test -n "$hardcode_libdir_separator"; then
10566 alldirs=
10567 for found_dir in $rpathdirs; do
10568 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10569 done
10570 acl_save_libdir="$libdir"
10571 libdir="$alldirs"
10572 eval flag=\"$hardcode_libdir_flag_spec\"
10573 libdir="$acl_save_libdir"
10574 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10575 else
10576 for found_dir in $rpathdirs; do
10577 acl_save_libdir="$libdir"
10578 libdir="$found_dir"
10579 eval flag=\"$hardcode_libdir_flag_spec\"
10580 libdir="$acl_save_libdir"
10581 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10582 done
10585 if test "X$ltrpathdirs" != "X"; then
10586 for found_dir in $ltrpathdirs; do
10587 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10588 done
10597 am_save_CPPFLAGS="$CPPFLAGS"
10599 for element in $INCICONV; do
10600 haveit=
10601 for x in $CPPFLAGS; do
10603 acl_save_prefix="$prefix"
10604 prefix="$acl_final_prefix"
10605 acl_save_exec_prefix="$exec_prefix"
10606 exec_prefix="$acl_final_exec_prefix"
10607 eval x=\"$x\"
10608 exec_prefix="$acl_save_exec_prefix"
10609 prefix="$acl_save_prefix"
10611 if test "X$x" = "X$element"; then
10612 haveit=yes
10613 break
10615 done
10616 if test -z "$haveit"; then
10617 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10619 done
10622 echo "$as_me:$LINENO: checking for iconv" >&5
10623 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10624 if test "${am_cv_func_iconv+set}" = set; then
10625 echo $ECHO_N "(cached) $ECHO_C" >&6
10626 else
10628 am_cv_func_iconv="no, consider installing GNU libiconv"
10629 am_cv_lib_iconv=no
10630 if test x$gcc_no_link = xyes; then
10631 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10632 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10633 { (exit 1); exit 1; }; }
10635 cat >conftest.$ac_ext <<_ACEOF
10636 /* confdefs.h. */
10637 _ACEOF
10638 cat confdefs.h >>conftest.$ac_ext
10639 cat >>conftest.$ac_ext <<_ACEOF
10640 /* end confdefs.h. */
10641 #include <stdlib.h>
10642 #include <iconv.h>
10644 main ()
10646 iconv_t cd = iconv_open("","");
10647 iconv(cd,NULL,NULL,NULL,NULL);
10648 iconv_close(cd);
10650 return 0;
10652 _ACEOF
10653 rm -f conftest.$ac_objext conftest$ac_exeext
10654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10655 (eval $ac_link) 2>conftest.er1
10656 ac_status=$?
10657 grep -v '^ *+' conftest.er1 >conftest.err
10658 rm -f conftest.er1
10659 cat conftest.err >&5
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); } &&
10662 { ac_try='test -z "$ac_c_werror_flag"
10663 || test ! -s conftest.err'
10664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10665 (eval $ac_try) 2>&5
10666 ac_status=$?
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); }; } &&
10669 { ac_try='test -s conftest$ac_exeext'
10670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10671 (eval $ac_try) 2>&5
10672 ac_status=$?
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); }; }; then
10675 am_cv_func_iconv=yes
10676 else
10677 echo "$as_me: failed program was:" >&5
10678 sed 's/^/| /' conftest.$ac_ext >&5
10681 rm -f conftest.err conftest.$ac_objext \
10682 conftest$ac_exeext conftest.$ac_ext
10683 if test "$am_cv_func_iconv" != yes; then
10684 am_save_LIBS="$LIBS"
10685 LIBS="$LIBS $LIBICONV"
10686 if test x$gcc_no_link = xyes; then
10687 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10688 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10689 { (exit 1); exit 1; }; }
10691 cat >conftest.$ac_ext <<_ACEOF
10692 /* confdefs.h. */
10693 _ACEOF
10694 cat confdefs.h >>conftest.$ac_ext
10695 cat >>conftest.$ac_ext <<_ACEOF
10696 /* end confdefs.h. */
10697 #include <stdlib.h>
10698 #include <iconv.h>
10700 main ()
10702 iconv_t cd = iconv_open("","");
10703 iconv(cd,NULL,NULL,NULL,NULL);
10704 iconv_close(cd);
10706 return 0;
10708 _ACEOF
10709 rm -f conftest.$ac_objext conftest$ac_exeext
10710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10711 (eval $ac_link) 2>conftest.er1
10712 ac_status=$?
10713 grep -v '^ *+' conftest.er1 >conftest.err
10714 rm -f conftest.er1
10715 cat conftest.err >&5
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); } &&
10718 { ac_try='test -z "$ac_c_werror_flag"
10719 || test ! -s conftest.err'
10720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10721 (eval $ac_try) 2>&5
10722 ac_status=$?
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); }; } &&
10725 { ac_try='test -s conftest$ac_exeext'
10726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10727 (eval $ac_try) 2>&5
10728 ac_status=$?
10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); }; }; then
10731 am_cv_lib_iconv=yes
10732 am_cv_func_iconv=yes
10733 else
10734 echo "$as_me: failed program was:" >&5
10735 sed 's/^/| /' conftest.$ac_ext >&5
10738 rm -f conftest.err conftest.$ac_objext \
10739 conftest$ac_exeext conftest.$ac_ext
10740 LIBS="$am_save_LIBS"
10744 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10745 echo "${ECHO_T}$am_cv_func_iconv" >&6
10746 if test "$am_cv_func_iconv" = yes; then
10748 cat >>confdefs.h <<\_ACEOF
10749 #define HAVE_ICONV 1
10750 _ACEOF
10753 if test "$am_cv_lib_iconv" = yes; then
10754 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10755 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10756 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10757 echo "${ECHO_T}$LIBICONV" >&6
10758 else
10759 CPPFLAGS="$am_save_CPPFLAGS"
10760 LIBICONV=
10761 LTLIBICONV=
10766 if test "$am_cv_func_iconv" = yes; then
10767 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10768 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10769 if test "${am_cv_proto_iconv+set}" = set; then
10770 echo $ECHO_N "(cached) $ECHO_C" >&6
10771 else
10773 cat >conftest.$ac_ext <<_ACEOF
10774 /* confdefs.h. */
10775 _ACEOF
10776 cat confdefs.h >>conftest.$ac_ext
10777 cat >>conftest.$ac_ext <<_ACEOF
10778 /* end confdefs.h. */
10780 #include <stdlib.h>
10781 #include <iconv.h>
10782 extern
10783 #ifdef __cplusplus
10785 #endif
10786 #if defined(__STDC__) || defined(__cplusplus)
10787 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10788 #else
10789 size_t iconv();
10790 #endif
10793 main ()
10797 return 0;
10799 _ACEOF
10800 rm -f conftest.$ac_objext
10801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10802 (eval $ac_compile) 2>conftest.er1
10803 ac_status=$?
10804 grep -v '^ *+' conftest.er1 >conftest.err
10805 rm -f conftest.er1
10806 cat conftest.err >&5
10807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); } &&
10809 { ac_try='test -z "$ac_c_werror_flag"
10810 || test ! -s conftest.err'
10811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10812 (eval $ac_try) 2>&5
10813 ac_status=$?
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); }; } &&
10816 { ac_try='test -s conftest.$ac_objext'
10817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10818 (eval $ac_try) 2>&5
10819 ac_status=$?
10820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821 (exit $ac_status); }; }; then
10822 am_cv_proto_iconv_arg1=""
10823 else
10824 echo "$as_me: failed program was:" >&5
10825 sed 's/^/| /' conftest.$ac_ext >&5
10827 am_cv_proto_iconv_arg1="const"
10829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10830 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);"
10833 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10834 echo "$as_me:$LINENO: result: ${ac_t:-
10835 }$am_cv_proto_iconv" >&5
10836 echo "${ECHO_T}${ac_t:-
10837 }$am_cv_proto_iconv" >&6
10839 cat >>confdefs.h <<_ACEOF
10840 #define ICONV_CONST $am_cv_proto_iconv_arg1
10841 _ACEOF
10846 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10847 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10848 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10849 echo $ECHO_N "(cached) $ECHO_C" >&6
10850 else
10851 if test x$gcc_no_link = xyes; then
10852 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10853 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10854 { (exit 1); exit 1; }; }
10856 cat >conftest.$ac_ext <<_ACEOF
10857 /* confdefs.h. */
10858 _ACEOF
10859 cat confdefs.h >>conftest.$ac_ext
10860 cat >>conftest.$ac_ext <<_ACEOF
10861 /* end confdefs.h. */
10862 #include <locale.h>
10864 main ()
10866 return LC_MESSAGES
10868 return 0;
10870 _ACEOF
10871 rm -f conftest.$ac_objext conftest$ac_exeext
10872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10873 (eval $ac_link) 2>conftest.er1
10874 ac_status=$?
10875 grep -v '^ *+' conftest.er1 >conftest.err
10876 rm -f conftest.er1
10877 cat conftest.err >&5
10878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); } &&
10880 { ac_try='test -z "$ac_c_werror_flag"
10881 || test ! -s conftest.err'
10882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10883 (eval $ac_try) 2>&5
10884 ac_status=$?
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); }; } &&
10887 { ac_try='test -s conftest$ac_exeext'
10888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10889 (eval $ac_try) 2>&5
10890 ac_status=$?
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); }; }; then
10893 am_cv_val_LC_MESSAGES=yes
10894 else
10895 echo "$as_me: failed program was:" >&5
10896 sed 's/^/| /' conftest.$ac_ext >&5
10898 am_cv_val_LC_MESSAGES=no
10900 rm -f conftest.err conftest.$ac_objext \
10901 conftest$ac_exeext conftest.$ac_ext
10903 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10904 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10905 if test $am_cv_val_LC_MESSAGES = yes; then
10907 cat >>confdefs.h <<\_ACEOF
10908 #define HAVE_LC_MESSAGES 1
10909 _ACEOF
10913 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10914 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10915 if test "${ac_cv_struct_tm+set}" = set; then
10916 echo $ECHO_N "(cached) $ECHO_C" >&6
10917 else
10918 cat >conftest.$ac_ext <<_ACEOF
10919 /* confdefs.h. */
10920 _ACEOF
10921 cat confdefs.h >>conftest.$ac_ext
10922 cat >>conftest.$ac_ext <<_ACEOF
10923 /* end confdefs.h. */
10924 #include <sys/types.h>
10925 #include <time.h>
10928 main ()
10930 struct tm *tp; tp->tm_sec;
10932 return 0;
10934 _ACEOF
10935 rm -f conftest.$ac_objext
10936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10937 (eval $ac_compile) 2>conftest.er1
10938 ac_status=$?
10939 grep -v '^ *+' conftest.er1 >conftest.err
10940 rm -f conftest.er1
10941 cat conftest.err >&5
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); } &&
10944 { ac_try='test -z "$ac_c_werror_flag"
10945 || test ! -s conftest.err'
10946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10947 (eval $ac_try) 2>&5
10948 ac_status=$?
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); }; } &&
10951 { ac_try='test -s conftest.$ac_objext'
10952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10953 (eval $ac_try) 2>&5
10954 ac_status=$?
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); }; }; then
10957 ac_cv_struct_tm=time.h
10958 else
10959 echo "$as_me: failed program was:" >&5
10960 sed 's/^/| /' conftest.$ac_ext >&5
10962 ac_cv_struct_tm=sys/time.h
10964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10966 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10967 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10968 if test $ac_cv_struct_tm = sys/time.h; then
10970 cat >>confdefs.h <<\_ACEOF
10971 #define TM_IN_SYS_TIME 1
10972 _ACEOF
10976 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10977 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10978 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10979 echo $ECHO_N "(cached) $ECHO_C" >&6
10980 else
10981 cat >conftest.$ac_ext <<_ACEOF
10982 /* confdefs.h. */
10983 _ACEOF
10984 cat confdefs.h >>conftest.$ac_ext
10985 cat >>conftest.$ac_ext <<_ACEOF
10986 /* end confdefs.h. */
10987 #include <sys/types.h>
10988 #include <$ac_cv_struct_tm>
10992 main ()
10994 static struct tm ac_aggr;
10995 if (ac_aggr.tm_zone)
10996 return 0;
10998 return 0;
11000 _ACEOF
11001 rm -f conftest.$ac_objext
11002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11003 (eval $ac_compile) 2>conftest.er1
11004 ac_status=$?
11005 grep -v '^ *+' conftest.er1 >conftest.err
11006 rm -f conftest.er1
11007 cat conftest.err >&5
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); } &&
11010 { ac_try='test -z "$ac_c_werror_flag"
11011 || test ! -s conftest.err'
11012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11013 (eval $ac_try) 2>&5
11014 ac_status=$?
11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); }; } &&
11017 { ac_try='test -s conftest.$ac_objext'
11018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11019 (eval $ac_try) 2>&5
11020 ac_status=$?
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); }; }; then
11023 ac_cv_member_struct_tm_tm_zone=yes
11024 else
11025 echo "$as_me: failed program was:" >&5
11026 sed 's/^/| /' conftest.$ac_ext >&5
11028 cat >conftest.$ac_ext <<_ACEOF
11029 /* confdefs.h. */
11030 _ACEOF
11031 cat confdefs.h >>conftest.$ac_ext
11032 cat >>conftest.$ac_ext <<_ACEOF
11033 /* end confdefs.h. */
11034 #include <sys/types.h>
11035 #include <$ac_cv_struct_tm>
11039 main ()
11041 static struct tm ac_aggr;
11042 if (sizeof ac_aggr.tm_zone)
11043 return 0;
11045 return 0;
11047 _ACEOF
11048 rm -f conftest.$ac_objext
11049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11050 (eval $ac_compile) 2>conftest.er1
11051 ac_status=$?
11052 grep -v '^ *+' conftest.er1 >conftest.err
11053 rm -f conftest.er1
11054 cat conftest.err >&5
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); } &&
11057 { ac_try='test -z "$ac_c_werror_flag"
11058 || test ! -s conftest.err'
11059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11060 (eval $ac_try) 2>&5
11061 ac_status=$?
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); }; } &&
11064 { ac_try='test -s conftest.$ac_objext'
11065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11066 (eval $ac_try) 2>&5
11067 ac_status=$?
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); }; }; then
11070 ac_cv_member_struct_tm_tm_zone=yes
11071 else
11072 echo "$as_me: failed program was:" >&5
11073 sed 's/^/| /' conftest.$ac_ext >&5
11075 ac_cv_member_struct_tm_tm_zone=no
11077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11081 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11082 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11083 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11085 cat >>confdefs.h <<_ACEOF
11086 #define HAVE_STRUCT_TM_TM_ZONE 1
11087 _ACEOF
11092 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11094 cat >>confdefs.h <<\_ACEOF
11095 #define HAVE_TM_ZONE 1
11096 _ACEOF
11098 else
11099 echo "$as_me:$LINENO: checking for tzname" >&5
11100 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11101 if test "${ac_cv_var_tzname+set}" = set; then
11102 echo $ECHO_N "(cached) $ECHO_C" >&6
11103 else
11104 if test x$gcc_no_link = xyes; then
11105 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11106 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11107 { (exit 1); exit 1; }; }
11109 cat >conftest.$ac_ext <<_ACEOF
11110 /* confdefs.h. */
11111 _ACEOF
11112 cat confdefs.h >>conftest.$ac_ext
11113 cat >>conftest.$ac_ext <<_ACEOF
11114 /* end confdefs.h. */
11115 #include <time.h>
11116 #ifndef tzname /* For SGI. */
11117 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11118 #endif
11121 main ()
11123 atoi(*tzname);
11125 return 0;
11127 _ACEOF
11128 rm -f conftest.$ac_objext conftest$ac_exeext
11129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11130 (eval $ac_link) 2>conftest.er1
11131 ac_status=$?
11132 grep -v '^ *+' conftest.er1 >conftest.err
11133 rm -f conftest.er1
11134 cat conftest.err >&5
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); } &&
11137 { ac_try='test -z "$ac_c_werror_flag"
11138 || test ! -s conftest.err'
11139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11140 (eval $ac_try) 2>&5
11141 ac_status=$?
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); }; } &&
11144 { ac_try='test -s conftest$ac_exeext'
11145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11146 (eval $ac_try) 2>&5
11147 ac_status=$?
11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); }; }; then
11150 ac_cv_var_tzname=yes
11151 else
11152 echo "$as_me: failed program was:" >&5
11153 sed 's/^/| /' conftest.$ac_ext >&5
11155 ac_cv_var_tzname=no
11157 rm -f conftest.err conftest.$ac_objext \
11158 conftest$ac_exeext conftest.$ac_ext
11160 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11161 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11162 if test $ac_cv_var_tzname = yes; then
11164 cat >>confdefs.h <<\_ACEOF
11165 #define HAVE_TZNAME 1
11166 _ACEOF
11174 for ac_func in gethostbyname_r
11176 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11177 echo "$as_me:$LINENO: checking for $ac_func" >&5
11178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11179 if eval "test \"\${$as_ac_var+set}\" = set"; then
11180 echo $ECHO_N "(cached) $ECHO_C" >&6
11181 else
11182 if test x$gcc_no_link = xyes; then
11183 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11184 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11185 { (exit 1); exit 1; }; }
11187 cat >conftest.$ac_ext <<_ACEOF
11188 /* confdefs.h. */
11189 _ACEOF
11190 cat confdefs.h >>conftest.$ac_ext
11191 cat >>conftest.$ac_ext <<_ACEOF
11192 /* end confdefs.h. */
11193 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11195 #define $ac_func innocuous_$ac_func
11197 /* System header to define __stub macros and hopefully few prototypes,
11198 which can conflict with char $ac_func (); below.
11199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11200 <limits.h> exists even on freestanding compilers. */
11202 #ifdef __STDC__
11203 # include <limits.h>
11204 #else
11205 # include <assert.h>
11206 #endif
11208 #undef $ac_func
11210 /* Override any gcc2 internal prototype to avoid an error. */
11211 #ifdef __cplusplus
11212 extern "C"
11214 #endif
11215 /* We use char because int might match the return type of a gcc2
11216 builtin and then its argument prototype would still apply. */
11217 char $ac_func ();
11218 /* The GNU C library defines this for functions which it implements
11219 to always fail with ENOSYS. Some functions are actually named
11220 something starting with __ and the normal name is an alias. */
11221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11222 choke me
11223 #else
11224 char (*f) () = $ac_func;
11225 #endif
11226 #ifdef __cplusplus
11228 #endif
11231 main ()
11233 return f != $ac_func;
11235 return 0;
11237 _ACEOF
11238 rm -f conftest.$ac_objext conftest$ac_exeext
11239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11240 (eval $ac_link) 2>conftest.er1
11241 ac_status=$?
11242 grep -v '^ *+' conftest.er1 >conftest.err
11243 rm -f conftest.er1
11244 cat conftest.err >&5
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); } &&
11247 { ac_try='test -z "$ac_c_werror_flag"
11248 || test ! -s conftest.err'
11249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11250 (eval $ac_try) 2>&5
11251 ac_status=$?
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); }; } &&
11254 { ac_try='test -s conftest$ac_exeext'
11255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11256 (eval $ac_try) 2>&5
11257 ac_status=$?
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); }; }; then
11260 eval "$as_ac_var=yes"
11261 else
11262 echo "$as_me: failed program was:" >&5
11263 sed 's/^/| /' conftest.$ac_ext >&5
11265 eval "$as_ac_var=no"
11267 rm -f conftest.err conftest.$ac_objext \
11268 conftest$ac_exeext conftest.$ac_ext
11270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11271 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11272 if test `eval echo '${'$as_ac_var'}'` = yes; then
11273 cat >>confdefs.h <<_ACEOF
11274 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11275 _ACEOF
11278 cat >>confdefs.h <<\_ACEOF
11279 #define HAVE_GETHOSTBYNAME_R 1
11280 _ACEOF
11282 # There are two different kinds of gethostbyname_r.
11283 # We look for the one that returns `int'.
11284 # Hopefully this check is robust enough.
11285 cat >conftest.$ac_ext <<_ACEOF
11286 /* confdefs.h. */
11287 _ACEOF
11288 cat confdefs.h >>conftest.$ac_ext
11289 cat >>conftest.$ac_ext <<_ACEOF
11290 /* end confdefs.h. */
11291 #include <netdb.h>
11293 _ACEOF
11294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11295 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
11298 cat >>confdefs.h <<\_ACEOF
11299 #define GETHOSTBYNAME_R_RETURNS_INT 1
11300 _ACEOF
11303 rm -f conftest*
11306 case " $GCINCS " in
11307 *" -D_REENTRANT "*) ;;
11309 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
11310 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
11311 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
11312 echo $ECHO_N "(cached) $ECHO_C" >&6
11313 else
11314 ac_ext=cc
11315 ac_cpp='$CXXCPP $CPPFLAGS'
11316 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11317 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11318 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11320 cat >conftest.$ac_ext <<_ACEOF
11321 /* confdefs.h. */
11322 _ACEOF
11323 cat confdefs.h >>conftest.$ac_ext
11324 cat >>conftest.$ac_ext <<_ACEOF
11325 /* end confdefs.h. */
11326 #include <netdb.h>
11328 main ()
11330 gethostbyname_r("", 0, 0);
11332 return 0;
11334 _ACEOF
11335 rm -f conftest.$ac_objext
11336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11337 (eval $ac_compile) 2>conftest.er1
11338 ac_status=$?
11339 grep -v '^ *+' conftest.er1 >conftest.err
11340 rm -f conftest.er1
11341 cat conftest.err >&5
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); } &&
11344 { ac_try='test -z "$ac_cxx_werror_flag"
11345 || test ! -s conftest.err'
11346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11347 (eval $ac_try) 2>&5
11348 ac_status=$?
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); }; } &&
11351 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
11357 libjava_cv_gethostbyname_r_needs_reentrant=no
11358 else
11359 echo "$as_me: failed program was:" >&5
11360 sed 's/^/| /' conftest.$ac_ext >&5
11362 CPPFLAGS_SAVE="$CPPFLAGS"
11363 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
11364 cat >conftest.$ac_ext <<_ACEOF
11365 /* confdefs.h. */
11366 _ACEOF
11367 cat confdefs.h >>conftest.$ac_ext
11368 cat >>conftest.$ac_ext <<_ACEOF
11369 /* end confdefs.h. */
11370 #include <netdb.h>
11372 main ()
11374 gethostbyname_r("", 0, 0);
11376 return 0;
11378 _ACEOF
11379 rm -f conftest.$ac_objext
11380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11381 (eval $ac_compile) 2>conftest.er1
11382 ac_status=$?
11383 grep -v '^ *+' conftest.er1 >conftest.err
11384 rm -f conftest.er1
11385 cat conftest.err >&5
11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); } &&
11388 { ac_try='test -z "$ac_cxx_werror_flag"
11389 || test ! -s conftest.err'
11390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11391 (eval $ac_try) 2>&5
11392 ac_status=$?
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); }; } &&
11395 { ac_try='test -s conftest.$ac_objext'
11396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11397 (eval $ac_try) 2>&5
11398 ac_status=$?
11399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400 (exit $ac_status); }; }; then
11401 libjava_cv_gethostbyname_r_needs_reentrant=yes
11402 else
11403 echo "$as_me: failed program was:" >&5
11404 sed 's/^/| /' conftest.$ac_ext >&5
11406 libjava_cv_gethostbyname_r_needs_reentrant=fail
11408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11409 CPPFLAGS="$CPPFLAGS_SAVE"
11412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11413 ac_ext=c
11414 ac_cpp='$CPP $CPPFLAGS'
11415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11421 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
11422 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
11423 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
11425 cat >>confdefs.h <<\_ACEOF
11426 #define _REENTRANT 1
11427 _ACEOF
11431 esac
11433 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
11434 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
11435 if test "${libjava_cv_struct_hostent_data+set}" = set; then
11436 echo $ECHO_N "(cached) $ECHO_C" >&6
11437 else
11438 cat >conftest.$ac_ext <<_ACEOF
11439 /* confdefs.h. */
11440 _ACEOF
11441 cat confdefs.h >>conftest.$ac_ext
11442 cat >>conftest.$ac_ext <<_ACEOF
11443 /* end confdefs.h. */
11445 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
11446 # define _REENTRANT 1
11447 #endif
11448 #include <netdb.h>
11450 main ()
11452 struct hostent_data data;
11454 return 0;
11456 _ACEOF
11457 rm -f conftest.$ac_objext
11458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11459 (eval $ac_compile) 2>conftest.er1
11460 ac_status=$?
11461 grep -v '^ *+' conftest.er1 >conftest.err
11462 rm -f conftest.er1
11463 cat conftest.err >&5
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); } &&
11466 { ac_try='test -z "$ac_c_werror_flag"
11467 || test ! -s conftest.err'
11468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11469 (eval $ac_try) 2>&5
11470 ac_status=$?
11471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); }; } &&
11473 { ac_try='test -s conftest.$ac_objext'
11474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11475 (eval $ac_try) 2>&5
11476 ac_status=$?
11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); }; }; then
11479 libjava_cv_struct_hostent_data=yes
11480 else
11481 echo "$as_me: failed program was:" >&5
11482 sed 's/^/| /' conftest.$ac_ext >&5
11484 libjava_cv_struct_hostent_data=no
11486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11488 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
11489 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
11490 if test "x$libjava_cv_struct_hostent_data" = xyes; then
11492 cat >>confdefs.h <<\_ACEOF
11493 #define HAVE_STRUCT_HOSTENT_DATA 1
11494 _ACEOF
11499 done
11502 # FIXME: libjava source code expects to find a prototype for
11503 # gethostbyaddr_r in netdb.h. The outer check ensures that
11504 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
11505 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
11506 # linkage check is enough, yet C++ code requires proper prototypes.)
11507 cat >conftest.$ac_ext <<_ACEOF
11508 /* confdefs.h. */
11509 _ACEOF
11510 cat confdefs.h >>conftest.$ac_ext
11511 cat >>conftest.$ac_ext <<_ACEOF
11512 /* end confdefs.h. */
11513 #include <netdb.h>
11515 _ACEOF
11516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11517 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
11520 for ac_func in gethostbyaddr_r
11522 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11523 echo "$as_me:$LINENO: checking for $ac_func" >&5
11524 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11525 if eval "test \"\${$as_ac_var+set}\" = set"; then
11526 echo $ECHO_N "(cached) $ECHO_C" >&6
11527 else
11528 if test x$gcc_no_link = xyes; then
11529 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11530 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11531 { (exit 1); exit 1; }; }
11533 cat >conftest.$ac_ext <<_ACEOF
11534 /* confdefs.h. */
11535 _ACEOF
11536 cat confdefs.h >>conftest.$ac_ext
11537 cat >>conftest.$ac_ext <<_ACEOF
11538 /* end confdefs.h. */
11539 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11540 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11541 #define $ac_func innocuous_$ac_func
11543 /* System header to define __stub macros and hopefully few prototypes,
11544 which can conflict with char $ac_func (); below.
11545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11546 <limits.h> exists even on freestanding compilers. */
11548 #ifdef __STDC__
11549 # include <limits.h>
11550 #else
11551 # include <assert.h>
11552 #endif
11554 #undef $ac_func
11556 /* Override any gcc2 internal prototype to avoid an error. */
11557 #ifdef __cplusplus
11558 extern "C"
11560 #endif
11561 /* We use char because int might match the return type of a gcc2
11562 builtin and then its argument prototype would still apply. */
11563 char $ac_func ();
11564 /* The GNU C library defines this for functions which it implements
11565 to always fail with ENOSYS. Some functions are actually named
11566 something starting with __ and the normal name is an alias. */
11567 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11568 choke me
11569 #else
11570 char (*f) () = $ac_func;
11571 #endif
11572 #ifdef __cplusplus
11574 #endif
11577 main ()
11579 return f != $ac_func;
11581 return 0;
11583 _ACEOF
11584 rm -f conftest.$ac_objext conftest$ac_exeext
11585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11586 (eval $ac_link) 2>conftest.er1
11587 ac_status=$?
11588 grep -v '^ *+' conftest.er1 >conftest.err
11589 rm -f conftest.er1
11590 cat conftest.err >&5
11591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592 (exit $ac_status); } &&
11593 { ac_try='test -z "$ac_c_werror_flag"
11594 || test ! -s conftest.err'
11595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11596 (eval $ac_try) 2>&5
11597 ac_status=$?
11598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599 (exit $ac_status); }; } &&
11600 { ac_try='test -s conftest$ac_exeext'
11601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11602 (eval $ac_try) 2>&5
11603 ac_status=$?
11604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605 (exit $ac_status); }; }; then
11606 eval "$as_ac_var=yes"
11607 else
11608 echo "$as_me: failed program was:" >&5
11609 sed 's/^/| /' conftest.$ac_ext >&5
11611 eval "$as_ac_var=no"
11613 rm -f conftest.err conftest.$ac_objext \
11614 conftest$ac_exeext conftest.$ac_ext
11616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11617 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11618 if test `eval echo '${'$as_ac_var'}'` = yes; then
11619 cat >>confdefs.h <<_ACEOF
11620 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11621 _ACEOF
11624 cat >>confdefs.h <<\_ACEOF
11625 #define HAVE_GETHOSTBYADDR_R 1
11626 _ACEOF
11628 # There are two different kinds of gethostbyaddr_r.
11629 # We look for the one that returns `int'.
11630 # Hopefully this check is robust enough.
11631 cat >conftest.$ac_ext <<_ACEOF
11632 /* confdefs.h. */
11633 _ACEOF
11634 cat confdefs.h >>conftest.$ac_ext
11635 cat >>conftest.$ac_ext <<_ACEOF
11636 /* end confdefs.h. */
11637 #include <netdb.h>
11639 _ACEOF
11640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11641 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11644 cat >>confdefs.h <<\_ACEOF
11645 #define GETHOSTBYADDR_R_RETURNS_INT 1
11646 _ACEOF
11649 rm -f conftest*
11652 done
11655 rm -f conftest*
11659 for ac_func in gethostname
11661 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11662 echo "$as_me:$LINENO: checking for $ac_func" >&5
11663 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11664 if eval "test \"\${$as_ac_var+set}\" = set"; then
11665 echo $ECHO_N "(cached) $ECHO_C" >&6
11666 else
11667 if test x$gcc_no_link = xyes; then
11668 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11669 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11670 { (exit 1); exit 1; }; }
11672 cat >conftest.$ac_ext <<_ACEOF
11673 /* confdefs.h. */
11674 _ACEOF
11675 cat confdefs.h >>conftest.$ac_ext
11676 cat >>conftest.$ac_ext <<_ACEOF
11677 /* end confdefs.h. */
11678 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11680 #define $ac_func innocuous_$ac_func
11682 /* System header to define __stub macros and hopefully few prototypes,
11683 which can conflict with char $ac_func (); below.
11684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11685 <limits.h> exists even on freestanding compilers. */
11687 #ifdef __STDC__
11688 # include <limits.h>
11689 #else
11690 # include <assert.h>
11691 #endif
11693 #undef $ac_func
11695 /* Override any gcc2 internal prototype to avoid an error. */
11696 #ifdef __cplusplus
11697 extern "C"
11699 #endif
11700 /* We use char because int might match the return type of a gcc2
11701 builtin and then its argument prototype would still apply. */
11702 char $ac_func ();
11703 /* The GNU C library defines this for functions which it implements
11704 to always fail with ENOSYS. Some functions are actually named
11705 something starting with __ and the normal name is an alias. */
11706 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11707 choke me
11708 #else
11709 char (*f) () = $ac_func;
11710 #endif
11711 #ifdef __cplusplus
11713 #endif
11716 main ()
11718 return f != $ac_func;
11720 return 0;
11722 _ACEOF
11723 rm -f conftest.$ac_objext conftest$ac_exeext
11724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11725 (eval $ac_link) 2>conftest.er1
11726 ac_status=$?
11727 grep -v '^ *+' conftest.er1 >conftest.err
11728 rm -f conftest.er1
11729 cat conftest.err >&5
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); } &&
11732 { ac_try='test -z "$ac_c_werror_flag"
11733 || test ! -s conftest.err'
11734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11735 (eval $ac_try) 2>&5
11736 ac_status=$?
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); }; } &&
11739 { ac_try='test -s conftest$ac_exeext'
11740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11741 (eval $ac_try) 2>&5
11742 ac_status=$?
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); }; }; then
11745 eval "$as_ac_var=yes"
11746 else
11747 echo "$as_me: failed program was:" >&5
11748 sed 's/^/| /' conftest.$ac_ext >&5
11750 eval "$as_ac_var=no"
11752 rm -f conftest.err conftest.$ac_objext \
11753 conftest$ac_exeext conftest.$ac_ext
11755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11756 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11757 if test `eval echo '${'$as_ac_var'}'` = yes; then
11758 cat >>confdefs.h <<_ACEOF
11759 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11760 _ACEOF
11763 cat >>confdefs.h <<\_ACEOF
11764 #define HAVE_GETHOSTNAME 1
11765 _ACEOF
11767 cat >conftest.$ac_ext <<_ACEOF
11768 /* confdefs.h. */
11769 _ACEOF
11770 cat confdefs.h >>conftest.$ac_ext
11771 cat >>conftest.$ac_ext <<_ACEOF
11772 /* end confdefs.h. */
11773 #include <unistd.h>
11775 _ACEOF
11776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11777 $EGREP "gethostname" >/dev/null 2>&1; then
11780 cat >>confdefs.h <<\_ACEOF
11781 #define HAVE_GETHOSTNAME_DECL 1
11782 _ACEOF
11785 rm -f conftest*
11788 done
11792 for ac_func in usleep
11794 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11795 echo "$as_me:$LINENO: checking for $ac_func" >&5
11796 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11797 if eval "test \"\${$as_ac_var+set}\" = set"; then
11798 echo $ECHO_N "(cached) $ECHO_C" >&6
11799 else
11800 if test x$gcc_no_link = xyes; then
11801 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11802 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11803 { (exit 1); exit 1; }; }
11805 cat >conftest.$ac_ext <<_ACEOF
11806 /* confdefs.h. */
11807 _ACEOF
11808 cat confdefs.h >>conftest.$ac_ext
11809 cat >>conftest.$ac_ext <<_ACEOF
11810 /* end confdefs.h. */
11811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11813 #define $ac_func innocuous_$ac_func
11815 /* System header to define __stub macros and hopefully few prototypes,
11816 which can conflict with char $ac_func (); below.
11817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11818 <limits.h> exists even on freestanding compilers. */
11820 #ifdef __STDC__
11821 # include <limits.h>
11822 #else
11823 # include <assert.h>
11824 #endif
11826 #undef $ac_func
11828 /* Override any gcc2 internal prototype to avoid an error. */
11829 #ifdef __cplusplus
11830 extern "C"
11832 #endif
11833 /* We use char because int might match the return type of a gcc2
11834 builtin and then its argument prototype would still apply. */
11835 char $ac_func ();
11836 /* The GNU C library defines this for functions which it implements
11837 to always fail with ENOSYS. Some functions are actually named
11838 something starting with __ and the normal name is an alias. */
11839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11840 choke me
11841 #else
11842 char (*f) () = $ac_func;
11843 #endif
11844 #ifdef __cplusplus
11846 #endif
11849 main ()
11851 return f != $ac_func;
11853 return 0;
11855 _ACEOF
11856 rm -f conftest.$ac_objext conftest$ac_exeext
11857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11858 (eval $ac_link) 2>conftest.er1
11859 ac_status=$?
11860 grep -v '^ *+' conftest.er1 >conftest.err
11861 rm -f conftest.er1
11862 cat conftest.err >&5
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); } &&
11865 { ac_try='test -z "$ac_c_werror_flag"
11866 || test ! -s conftest.err'
11867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11868 (eval $ac_try) 2>&5
11869 ac_status=$?
11870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871 (exit $ac_status); }; } &&
11872 { ac_try='test -s conftest$ac_exeext'
11873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11874 (eval $ac_try) 2>&5
11875 ac_status=$?
11876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 (exit $ac_status); }; }; then
11878 eval "$as_ac_var=yes"
11879 else
11880 echo "$as_me: failed program was:" >&5
11881 sed 's/^/| /' conftest.$ac_ext >&5
11883 eval "$as_ac_var=no"
11885 rm -f conftest.err conftest.$ac_objext \
11886 conftest$ac_exeext conftest.$ac_ext
11888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11889 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11890 if test `eval echo '${'$as_ac_var'}'` = yes; then
11891 cat >>confdefs.h <<_ACEOF
11892 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11893 _ACEOF
11895 cat >conftest.$ac_ext <<_ACEOF
11896 /* confdefs.h. */
11897 _ACEOF
11898 cat confdefs.h >>conftest.$ac_ext
11899 cat >>conftest.$ac_ext <<_ACEOF
11900 /* end confdefs.h. */
11901 #include <unistd.h>
11903 _ACEOF
11904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11905 $EGREP "usleep" >/dev/null 2>&1; then
11908 cat >>confdefs.h <<\_ACEOF
11909 #define HAVE_USLEEP_DECL 1
11910 _ACEOF
11913 rm -f conftest*
11916 done
11919 # Look for these functions in the thread library, but only bother
11920 # if using POSIX threads.
11921 if test "$THREADS" = posix; then
11922 save_LIBS="$LIBS"
11923 LIBS="$LIBS $THREADLIBS"
11924 # Some POSIX thread systems don't have pthread_mutexattr_settype.
11925 # E.g., Solaris.
11928 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
11930 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11931 echo "$as_me:$LINENO: checking for $ac_func" >&5
11932 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11933 if eval "test \"\${$as_ac_var+set}\" = set"; then
11934 echo $ECHO_N "(cached) $ECHO_C" >&6
11935 else
11936 if test x$gcc_no_link = xyes; then
11937 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11938 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11939 { (exit 1); exit 1; }; }
11941 cat >conftest.$ac_ext <<_ACEOF
11942 /* confdefs.h. */
11943 _ACEOF
11944 cat confdefs.h >>conftest.$ac_ext
11945 cat >>conftest.$ac_ext <<_ACEOF
11946 /* end confdefs.h. */
11947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11949 #define $ac_func innocuous_$ac_func
11951 /* System header to define __stub macros and hopefully few prototypes,
11952 which can conflict with char $ac_func (); below.
11953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11954 <limits.h> exists even on freestanding compilers. */
11956 #ifdef __STDC__
11957 # include <limits.h>
11958 #else
11959 # include <assert.h>
11960 #endif
11962 #undef $ac_func
11964 /* Override any gcc2 internal prototype to avoid an error. */
11965 #ifdef __cplusplus
11966 extern "C"
11968 #endif
11969 /* We use char because int might match the return type of a gcc2
11970 builtin and then its argument prototype would still apply. */
11971 char $ac_func ();
11972 /* The GNU C library defines this for functions which it implements
11973 to always fail with ENOSYS. Some functions are actually named
11974 something starting with __ and the normal name is an alias. */
11975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11976 choke me
11977 #else
11978 char (*f) () = $ac_func;
11979 #endif
11980 #ifdef __cplusplus
11982 #endif
11985 main ()
11987 return f != $ac_func;
11989 return 0;
11991 _ACEOF
11992 rm -f conftest.$ac_objext conftest$ac_exeext
11993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11994 (eval $ac_link) 2>conftest.er1
11995 ac_status=$?
11996 grep -v '^ *+' conftest.er1 >conftest.err
11997 rm -f conftest.er1
11998 cat conftest.err >&5
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); } &&
12001 { ac_try='test -z "$ac_c_werror_flag"
12002 || test ! -s conftest.err'
12003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004 (eval $ac_try) 2>&5
12005 ac_status=$?
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); }; } &&
12008 { ac_try='test -s conftest$ac_exeext'
12009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12010 (eval $ac_try) 2>&5
12011 ac_status=$?
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); }; }; then
12014 eval "$as_ac_var=yes"
12015 else
12016 echo "$as_me: failed program was:" >&5
12017 sed 's/^/| /' conftest.$ac_ext >&5
12019 eval "$as_ac_var=no"
12021 rm -f conftest.err conftest.$ac_objext \
12022 conftest$ac_exeext conftest.$ac_ext
12024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12025 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12026 if test `eval echo '${'$as_ac_var'}'` = yes; then
12027 cat >>confdefs.h <<_ACEOF
12028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12029 _ACEOF
12032 done
12035 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
12036 # Solaris 7 the name librt is preferred.
12038 for ac_func in sched_yield
12040 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12041 echo "$as_me:$LINENO: checking for $ac_func" >&5
12042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12043 if eval "test \"\${$as_ac_var+set}\" = set"; then
12044 echo $ECHO_N "(cached) $ECHO_C" >&6
12045 else
12046 if test x$gcc_no_link = xyes; then
12047 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12048 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12049 { (exit 1); exit 1; }; }
12051 cat >conftest.$ac_ext <<_ACEOF
12052 /* confdefs.h. */
12053 _ACEOF
12054 cat confdefs.h >>conftest.$ac_ext
12055 cat >>conftest.$ac_ext <<_ACEOF
12056 /* end confdefs.h. */
12057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12059 #define $ac_func innocuous_$ac_func
12061 /* System header to define __stub macros and hopefully few prototypes,
12062 which can conflict with char $ac_func (); below.
12063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12064 <limits.h> exists even on freestanding compilers. */
12066 #ifdef __STDC__
12067 # include <limits.h>
12068 #else
12069 # include <assert.h>
12070 #endif
12072 #undef $ac_func
12074 /* Override any gcc2 internal prototype to avoid an error. */
12075 #ifdef __cplusplus
12076 extern "C"
12078 #endif
12079 /* We use char because int might match the return type of a gcc2
12080 builtin and then its argument prototype would still apply. */
12081 char $ac_func ();
12082 /* The GNU C library defines this for functions which it implements
12083 to always fail with ENOSYS. Some functions are actually named
12084 something starting with __ and the normal name is an alias. */
12085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12086 choke me
12087 #else
12088 char (*f) () = $ac_func;
12089 #endif
12090 #ifdef __cplusplus
12092 #endif
12095 main ()
12097 return f != $ac_func;
12099 return 0;
12101 _ACEOF
12102 rm -f conftest.$ac_objext conftest$ac_exeext
12103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12104 (eval $ac_link) 2>conftest.er1
12105 ac_status=$?
12106 grep -v '^ *+' conftest.er1 >conftest.err
12107 rm -f conftest.er1
12108 cat conftest.err >&5
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); } &&
12111 { ac_try='test -z "$ac_c_werror_flag"
12112 || test ! -s conftest.err'
12113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12114 (eval $ac_try) 2>&5
12115 ac_status=$?
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); }; } &&
12118 { ac_try='test -s conftest$ac_exeext'
12119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120 (eval $ac_try) 2>&5
12121 ac_status=$?
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); }; }; then
12124 eval "$as_ac_var=yes"
12125 else
12126 echo "$as_me: failed program was:" >&5
12127 sed 's/^/| /' conftest.$ac_ext >&5
12129 eval "$as_ac_var=no"
12131 rm -f conftest.err conftest.$ac_objext \
12132 conftest$ac_exeext conftest.$ac_ext
12134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12135 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12136 if test `eval echo '${'$as_ac_var'}'` = yes; then
12137 cat >>confdefs.h <<_ACEOF
12138 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12139 _ACEOF
12141 else
12143 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
12144 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
12145 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
12146 echo $ECHO_N "(cached) $ECHO_C" >&6
12147 else
12148 ac_check_lib_save_LIBS=$LIBS
12149 LIBS="-lrt $LIBS"
12150 if test x$gcc_no_link = xyes; then
12151 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12152 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12153 { (exit 1); exit 1; }; }
12155 cat >conftest.$ac_ext <<_ACEOF
12156 /* confdefs.h. */
12157 _ACEOF
12158 cat confdefs.h >>conftest.$ac_ext
12159 cat >>conftest.$ac_ext <<_ACEOF
12160 /* end confdefs.h. */
12162 /* Override any gcc2 internal prototype to avoid an error. */
12163 #ifdef __cplusplus
12164 extern "C"
12165 #endif
12166 /* We use char because int might match the return type of a gcc2
12167 builtin and then its argument prototype would still apply. */
12168 char sched_yield ();
12170 main ()
12172 sched_yield ();
12174 return 0;
12176 _ACEOF
12177 rm -f conftest.$ac_objext conftest$ac_exeext
12178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12179 (eval $ac_link) 2>conftest.er1
12180 ac_status=$?
12181 grep -v '^ *+' conftest.er1 >conftest.err
12182 rm -f conftest.er1
12183 cat conftest.err >&5
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); } &&
12186 { ac_try='test -z "$ac_c_werror_flag"
12187 || test ! -s conftest.err'
12188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12189 (eval $ac_try) 2>&5
12190 ac_status=$?
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); }; } &&
12193 { ac_try='test -s conftest$ac_exeext'
12194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12195 (eval $ac_try) 2>&5
12196 ac_status=$?
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); }; }; then
12199 ac_cv_lib_rt_sched_yield=yes
12200 else
12201 echo "$as_me: failed program was:" >&5
12202 sed 's/^/| /' conftest.$ac_ext >&5
12204 ac_cv_lib_rt_sched_yield=no
12206 rm -f conftest.err conftest.$ac_objext \
12207 conftest$ac_exeext conftest.$ac_ext
12208 LIBS=$ac_check_lib_save_LIBS
12210 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
12211 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
12212 if test $ac_cv_lib_rt_sched_yield = yes; then
12214 cat >>confdefs.h <<\_ACEOF
12215 #define HAVE_SCHED_YIELD 1
12216 _ACEOF
12218 THREADLIBS="$THREADLIBS -lrt"
12219 THREADSPEC="$THREADSPEC -lrt"
12220 else
12222 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
12223 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
12224 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
12225 echo $ECHO_N "(cached) $ECHO_C" >&6
12226 else
12227 ac_check_lib_save_LIBS=$LIBS
12228 LIBS="-lposix4 $LIBS"
12229 if test x$gcc_no_link = xyes; then
12230 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12231 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12232 { (exit 1); exit 1; }; }
12234 cat >conftest.$ac_ext <<_ACEOF
12235 /* confdefs.h. */
12236 _ACEOF
12237 cat confdefs.h >>conftest.$ac_ext
12238 cat >>conftest.$ac_ext <<_ACEOF
12239 /* end confdefs.h. */
12241 /* Override any gcc2 internal prototype to avoid an error. */
12242 #ifdef __cplusplus
12243 extern "C"
12244 #endif
12245 /* We use char because int might match the return type of a gcc2
12246 builtin and then its argument prototype would still apply. */
12247 char sched_yield ();
12249 main ()
12251 sched_yield ();
12253 return 0;
12255 _ACEOF
12256 rm -f conftest.$ac_objext conftest$ac_exeext
12257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12258 (eval $ac_link) 2>conftest.er1
12259 ac_status=$?
12260 grep -v '^ *+' conftest.er1 >conftest.err
12261 rm -f conftest.er1
12262 cat conftest.err >&5
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); } &&
12265 { ac_try='test -z "$ac_c_werror_flag"
12266 || test ! -s conftest.err'
12267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12268 (eval $ac_try) 2>&5
12269 ac_status=$?
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); }; } &&
12272 { ac_try='test -s conftest$ac_exeext'
12273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12274 (eval $ac_try) 2>&5
12275 ac_status=$?
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); }; }; then
12278 ac_cv_lib_posix4_sched_yield=yes
12279 else
12280 echo "$as_me: failed program was:" >&5
12281 sed 's/^/| /' conftest.$ac_ext >&5
12283 ac_cv_lib_posix4_sched_yield=no
12285 rm -f conftest.err conftest.$ac_objext \
12286 conftest$ac_exeext conftest.$ac_ext
12287 LIBS=$ac_check_lib_save_LIBS
12289 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
12290 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
12291 if test $ac_cv_lib_posix4_sched_yield = yes; then
12293 cat >>confdefs.h <<\_ACEOF
12294 #define HAVE_SCHED_YIELD 1
12295 _ACEOF
12297 THREADLIBS="$THREADLIBS -lposix4"
12298 THREADSPEC="$THREADSPEC -lposix4"
12304 done
12306 LIBS="$save_LIBS"
12308 # We can save a little space at runtime if the mutex has m_count
12309 # or __m_count. This is a nice hack for Linux.
12310 cat >conftest.$ac_ext <<_ACEOF
12311 /* confdefs.h. */
12312 _ACEOF
12313 cat confdefs.h >>conftest.$ac_ext
12314 cat >>conftest.$ac_ext <<_ACEOF
12315 /* end confdefs.h. */
12316 #include <pthread.h>
12318 main ()
12321 extern pthread_mutex_t *mutex; int q = mutex->m_count;
12324 return 0;
12326 _ACEOF
12327 rm -f conftest.$ac_objext
12328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12329 (eval $ac_compile) 2>conftest.er1
12330 ac_status=$?
12331 grep -v '^ *+' conftest.er1 >conftest.err
12332 rm -f conftest.er1
12333 cat conftest.err >&5
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); } &&
12336 { ac_try='test -z "$ac_c_werror_flag"
12337 || test ! -s conftest.err'
12338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12339 (eval $ac_try) 2>&5
12340 ac_status=$?
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); }; } &&
12343 { ac_try='test -s conftest.$ac_objext'
12344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12345 (eval $ac_try) 2>&5
12346 ac_status=$?
12347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); }; }; then
12350 cat >>confdefs.h <<\_ACEOF
12351 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
12352 _ACEOF
12354 else
12355 echo "$as_me: failed program was:" >&5
12356 sed 's/^/| /' conftest.$ac_ext >&5
12359 cat >conftest.$ac_ext <<_ACEOF
12360 /* confdefs.h. */
12361 _ACEOF
12362 cat confdefs.h >>conftest.$ac_ext
12363 cat >>conftest.$ac_ext <<_ACEOF
12364 /* end confdefs.h. */
12365 #include <pthread.h>
12367 main ()
12370 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
12373 return 0;
12375 _ACEOF
12376 rm -f conftest.$ac_objext
12377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12378 (eval $ac_compile) 2>conftest.er1
12379 ac_status=$?
12380 grep -v '^ *+' conftest.er1 >conftest.err
12381 rm -f conftest.er1
12382 cat conftest.err >&5
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); } &&
12385 { ac_try='test -z "$ac_c_werror_flag"
12386 || test ! -s conftest.err'
12387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12388 (eval $ac_try) 2>&5
12389 ac_status=$?
12390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 (exit $ac_status); }; } &&
12392 { ac_try='test -s conftest.$ac_objext'
12393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12394 (eval $ac_try) 2>&5
12395 ac_status=$?
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); }; }; then
12399 cat >>confdefs.h <<\_ACEOF
12400 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
12401 _ACEOF
12403 else
12404 echo "$as_me: failed program was:" >&5
12405 sed 's/^/| /' conftest.$ac_ext >&5
12408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12413 # We require a way to get the time.
12414 time_found=no
12418 for ac_func in gettimeofday time ftime
12420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12421 echo "$as_me:$LINENO: checking for $ac_func" >&5
12422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12423 if eval "test \"\${$as_ac_var+set}\" = set"; then
12424 echo $ECHO_N "(cached) $ECHO_C" >&6
12425 else
12426 if test x$gcc_no_link = xyes; then
12427 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12428 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12429 { (exit 1); exit 1; }; }
12431 cat >conftest.$ac_ext <<_ACEOF
12432 /* confdefs.h. */
12433 _ACEOF
12434 cat confdefs.h >>conftest.$ac_ext
12435 cat >>conftest.$ac_ext <<_ACEOF
12436 /* end confdefs.h. */
12437 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12438 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12439 #define $ac_func innocuous_$ac_func
12441 /* System header to define __stub macros and hopefully few prototypes,
12442 which can conflict with char $ac_func (); below.
12443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12444 <limits.h> exists even on freestanding compilers. */
12446 #ifdef __STDC__
12447 # include <limits.h>
12448 #else
12449 # include <assert.h>
12450 #endif
12452 #undef $ac_func
12454 /* Override any gcc2 internal prototype to avoid an error. */
12455 #ifdef __cplusplus
12456 extern "C"
12458 #endif
12459 /* We use char because int might match the return type of a gcc2
12460 builtin and then its argument prototype would still apply. */
12461 char $ac_func ();
12462 /* The GNU C library defines this for functions which it implements
12463 to always fail with ENOSYS. Some functions are actually named
12464 something starting with __ and the normal name is an alias. */
12465 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12466 choke me
12467 #else
12468 char (*f) () = $ac_func;
12469 #endif
12470 #ifdef __cplusplus
12472 #endif
12475 main ()
12477 return f != $ac_func;
12479 return 0;
12481 _ACEOF
12482 rm -f conftest.$ac_objext conftest$ac_exeext
12483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12484 (eval $ac_link) 2>conftest.er1
12485 ac_status=$?
12486 grep -v '^ *+' conftest.er1 >conftest.err
12487 rm -f conftest.er1
12488 cat conftest.err >&5
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); } &&
12491 { ac_try='test -z "$ac_c_werror_flag"
12492 || test ! -s conftest.err'
12493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12494 (eval $ac_try) 2>&5
12495 ac_status=$?
12496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497 (exit $ac_status); }; } &&
12498 { ac_try='test -s conftest$ac_exeext'
12499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12500 (eval $ac_try) 2>&5
12501 ac_status=$?
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); }; }; then
12504 eval "$as_ac_var=yes"
12505 else
12506 echo "$as_me: failed program was:" >&5
12507 sed 's/^/| /' conftest.$ac_ext >&5
12509 eval "$as_ac_var=no"
12511 rm -f conftest.err conftest.$ac_objext \
12512 conftest$ac_exeext conftest.$ac_ext
12514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12515 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12516 if test `eval echo '${'$as_ac_var'}'` = yes; then
12517 cat >>confdefs.h <<_ACEOF
12518 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12519 _ACEOF
12520 time_found=yes
12522 done
12524 if test "$time_found" = no; then
12525 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
12526 echo "$as_me: error: no function found to get the time" >&2;}
12527 { (exit 1); exit 1; }; }
12531 for ac_func in memmove
12533 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12534 echo "$as_me:$LINENO: checking for $ac_func" >&5
12535 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12536 if eval "test \"\${$as_ac_var+set}\" = set"; then
12537 echo $ECHO_N "(cached) $ECHO_C" >&6
12538 else
12539 if test x$gcc_no_link = xyes; then
12540 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12541 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12542 { (exit 1); exit 1; }; }
12544 cat >conftest.$ac_ext <<_ACEOF
12545 /* confdefs.h. */
12546 _ACEOF
12547 cat confdefs.h >>conftest.$ac_ext
12548 cat >>conftest.$ac_ext <<_ACEOF
12549 /* end confdefs.h. */
12550 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12551 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12552 #define $ac_func innocuous_$ac_func
12554 /* System header to define __stub macros and hopefully few prototypes,
12555 which can conflict with char $ac_func (); below.
12556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12557 <limits.h> exists even on freestanding compilers. */
12559 #ifdef __STDC__
12560 # include <limits.h>
12561 #else
12562 # include <assert.h>
12563 #endif
12565 #undef $ac_func
12567 /* Override any gcc2 internal prototype to avoid an error. */
12568 #ifdef __cplusplus
12569 extern "C"
12571 #endif
12572 /* We use char because int might match the return type of a gcc2
12573 builtin and then its argument prototype would still apply. */
12574 char $ac_func ();
12575 /* The GNU C library defines this for functions which it implements
12576 to always fail with ENOSYS. Some functions are actually named
12577 something starting with __ and the normal name is an alias. */
12578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12579 choke me
12580 #else
12581 char (*f) () = $ac_func;
12582 #endif
12583 #ifdef __cplusplus
12585 #endif
12588 main ()
12590 return f != $ac_func;
12592 return 0;
12594 _ACEOF
12595 rm -f conftest.$ac_objext conftest$ac_exeext
12596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12597 (eval $ac_link) 2>conftest.er1
12598 ac_status=$?
12599 grep -v '^ *+' conftest.er1 >conftest.err
12600 rm -f conftest.er1
12601 cat conftest.err >&5
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); } &&
12604 { ac_try='test -z "$ac_c_werror_flag"
12605 || test ! -s conftest.err'
12606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12607 (eval $ac_try) 2>&5
12608 ac_status=$?
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); }; } &&
12611 { ac_try='test -s conftest$ac_exeext'
12612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12613 (eval $ac_try) 2>&5
12614 ac_status=$?
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); }; }; then
12617 eval "$as_ac_var=yes"
12618 else
12619 echo "$as_me: failed program was:" >&5
12620 sed 's/^/| /' conftest.$ac_ext >&5
12622 eval "$as_ac_var=no"
12624 rm -f conftest.err conftest.$ac_objext \
12625 conftest$ac_exeext conftest.$ac_ext
12627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12628 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12629 if test `eval echo '${'$as_ac_var'}'` = yes; then
12630 cat >>confdefs.h <<_ACEOF
12631 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12632 _ACEOF
12635 done
12638 # We require memcpy.
12639 memcpy_found=no
12641 for ac_func in memcpy
12643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12644 echo "$as_me:$LINENO: checking for $ac_func" >&5
12645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12646 if eval "test \"\${$as_ac_var+set}\" = set"; then
12647 echo $ECHO_N "(cached) $ECHO_C" >&6
12648 else
12649 if test x$gcc_no_link = xyes; then
12650 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12651 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12652 { (exit 1); exit 1; }; }
12654 cat >conftest.$ac_ext <<_ACEOF
12655 /* confdefs.h. */
12656 _ACEOF
12657 cat confdefs.h >>conftest.$ac_ext
12658 cat >>conftest.$ac_ext <<_ACEOF
12659 /* end confdefs.h. */
12660 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12662 #define $ac_func innocuous_$ac_func
12664 /* System header to define __stub macros and hopefully few prototypes,
12665 which can conflict with char $ac_func (); below.
12666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12667 <limits.h> exists even on freestanding compilers. */
12669 #ifdef __STDC__
12670 # include <limits.h>
12671 #else
12672 # include <assert.h>
12673 #endif
12675 #undef $ac_func
12677 /* Override any gcc2 internal prototype to avoid an error. */
12678 #ifdef __cplusplus
12679 extern "C"
12681 #endif
12682 /* We use char because int might match the return type of a gcc2
12683 builtin and then its argument prototype would still apply. */
12684 char $ac_func ();
12685 /* The GNU C library defines this for functions which it implements
12686 to always fail with ENOSYS. Some functions are actually named
12687 something starting with __ and the normal name is an alias. */
12688 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12689 choke me
12690 #else
12691 char (*f) () = $ac_func;
12692 #endif
12693 #ifdef __cplusplus
12695 #endif
12698 main ()
12700 return f != $ac_func;
12702 return 0;
12704 _ACEOF
12705 rm -f conftest.$ac_objext conftest$ac_exeext
12706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12707 (eval $ac_link) 2>conftest.er1
12708 ac_status=$?
12709 grep -v '^ *+' conftest.er1 >conftest.err
12710 rm -f conftest.er1
12711 cat conftest.err >&5
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); } &&
12714 { ac_try='test -z "$ac_c_werror_flag"
12715 || test ! -s conftest.err'
12716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12717 (eval $ac_try) 2>&5
12718 ac_status=$?
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); }; } &&
12721 { ac_try='test -s conftest$ac_exeext'
12722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12723 (eval $ac_try) 2>&5
12724 ac_status=$?
12725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); }; }; then
12727 eval "$as_ac_var=yes"
12728 else
12729 echo "$as_me: failed program was:" >&5
12730 sed 's/^/| /' conftest.$ac_ext >&5
12732 eval "$as_ac_var=no"
12734 rm -f conftest.err conftest.$ac_objext \
12735 conftest$ac_exeext conftest.$ac_ext
12737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12738 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12739 if test `eval echo '${'$as_ac_var'}'` = yes; then
12740 cat >>confdefs.h <<_ACEOF
12741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12742 _ACEOF
12743 memcpy_found=yes
12745 done
12747 if test "$memcpy_found" = no; then
12748 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
12749 echo "$as_me: error: memcpy is required" >&2;}
12750 { (exit 1); exit 1; }; }
12753 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12754 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12755 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12756 echo $ECHO_N "(cached) $ECHO_C" >&6
12757 else
12758 ac_check_lib_save_LIBS=$LIBS
12759 LIBS="-ldl $LIBS"
12760 if test x$gcc_no_link = xyes; then
12761 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12762 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12763 { (exit 1); exit 1; }; }
12765 cat >conftest.$ac_ext <<_ACEOF
12766 /* confdefs.h. */
12767 _ACEOF
12768 cat confdefs.h >>conftest.$ac_ext
12769 cat >>conftest.$ac_ext <<_ACEOF
12770 /* end confdefs.h. */
12772 /* Override any gcc2 internal prototype to avoid an error. */
12773 #ifdef __cplusplus
12774 extern "C"
12775 #endif
12776 /* We use char because int might match the return type of a gcc2
12777 builtin and then its argument prototype would still apply. */
12778 char dlopen ();
12780 main ()
12782 dlopen ();
12784 return 0;
12786 _ACEOF
12787 rm -f conftest.$ac_objext conftest$ac_exeext
12788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12789 (eval $ac_link) 2>conftest.er1
12790 ac_status=$?
12791 grep -v '^ *+' conftest.er1 >conftest.err
12792 rm -f conftest.er1
12793 cat conftest.err >&5
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); } &&
12796 { ac_try='test -z "$ac_c_werror_flag"
12797 || test ! -s conftest.err'
12798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12799 (eval $ac_try) 2>&5
12800 ac_status=$?
12801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 (exit $ac_status); }; } &&
12803 { ac_try='test -s conftest$ac_exeext'
12804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12805 (eval $ac_try) 2>&5
12806 ac_status=$?
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); }; }; then
12809 ac_cv_lib_dl_dlopen=yes
12810 else
12811 echo "$as_me: failed program was:" >&5
12812 sed 's/^/| /' conftest.$ac_ext >&5
12814 ac_cv_lib_dl_dlopen=no
12816 rm -f conftest.err conftest.$ac_objext \
12817 conftest$ac_exeext conftest.$ac_ext
12818 LIBS=$ac_check_lib_save_LIBS
12820 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12821 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12822 if test $ac_cv_lib_dl_dlopen = yes; then
12825 cat >>confdefs.h <<\_ACEOF
12826 #define HAVE_DLOPEN 1
12827 _ACEOF
12832 # Some library-finding code we stole from Tcl.
12833 #--------------------------------------------------------------------
12834 # Check for the existence of the -lsocket and -lnsl libraries.
12835 # The order here is important, so that they end up in the right
12836 # order in the command line generated by make. Here are some
12837 # special considerations:
12838 # 1. Use "connect" and "accept" to check for -lsocket, and
12839 # "gethostbyname" to check for -lnsl.
12840 # 2. Use each function name only once: can't redo a check because
12841 # autoconf caches the results of the last check and won't redo it.
12842 # 3. Use -lnsl and -lsocket only if they supply procedures that
12843 # aren't already present in the normal libraries. This is because
12844 # IRIX 5.2 has libraries, but they aren't needed and they're
12845 # bogus: they goof up name resolution if used.
12846 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
12847 # To get around this problem, check for both libraries together
12848 # if -lsocket doesn't work by itself.
12849 #--------------------------------------------------------------------
12851 echo "$as_me:$LINENO: checking for socket libraries" >&5
12852 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
12853 if test "${gcj_cv_lib_sockets+set}" = set; then
12854 echo $ECHO_N "(cached) $ECHO_C" >&6
12855 else
12856 gcj_cv_lib_sockets=
12857 gcj_checkBoth=0
12858 unset ac_cv_func_connect
12859 echo "$as_me:$LINENO: checking for connect" >&5
12860 echo $ECHO_N "checking for connect... $ECHO_C" >&6
12861 if test "${ac_cv_func_connect+set}" = set; then
12862 echo $ECHO_N "(cached) $ECHO_C" >&6
12863 else
12864 if test x$gcc_no_link = xyes; then
12865 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12866 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12867 { (exit 1); exit 1; }; }
12869 cat >conftest.$ac_ext <<_ACEOF
12870 /* confdefs.h. */
12871 _ACEOF
12872 cat confdefs.h >>conftest.$ac_ext
12873 cat >>conftest.$ac_ext <<_ACEOF
12874 /* end confdefs.h. */
12875 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
12876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12877 #define connect innocuous_connect
12879 /* System header to define __stub macros and hopefully few prototypes,
12880 which can conflict with char connect (); below.
12881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12882 <limits.h> exists even on freestanding compilers. */
12884 #ifdef __STDC__
12885 # include <limits.h>
12886 #else
12887 # include <assert.h>
12888 #endif
12890 #undef connect
12892 /* Override any gcc2 internal prototype to avoid an error. */
12893 #ifdef __cplusplus
12894 extern "C"
12896 #endif
12897 /* We use char because int might match the return type of a gcc2
12898 builtin and then its argument prototype would still apply. */
12899 char connect ();
12900 /* The GNU C library defines this for functions which it implements
12901 to always fail with ENOSYS. Some functions are actually named
12902 something starting with __ and the normal name is an alias. */
12903 #if defined (__stub_connect) || defined (__stub___connect)
12904 choke me
12905 #else
12906 char (*f) () = connect;
12907 #endif
12908 #ifdef __cplusplus
12910 #endif
12913 main ()
12915 return f != connect;
12917 return 0;
12919 _ACEOF
12920 rm -f conftest.$ac_objext conftest$ac_exeext
12921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12922 (eval $ac_link) 2>conftest.er1
12923 ac_status=$?
12924 grep -v '^ *+' conftest.er1 >conftest.err
12925 rm -f conftest.er1
12926 cat conftest.err >&5
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); } &&
12929 { ac_try='test -z "$ac_c_werror_flag"
12930 || test ! -s conftest.err'
12931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12932 (eval $ac_try) 2>&5
12933 ac_status=$?
12934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935 (exit $ac_status); }; } &&
12936 { ac_try='test -s conftest$ac_exeext'
12937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12938 (eval $ac_try) 2>&5
12939 ac_status=$?
12940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941 (exit $ac_status); }; }; then
12942 ac_cv_func_connect=yes
12943 else
12944 echo "$as_me: failed program was:" >&5
12945 sed 's/^/| /' conftest.$ac_ext >&5
12947 ac_cv_func_connect=no
12949 rm -f conftest.err conftest.$ac_objext \
12950 conftest$ac_exeext conftest.$ac_ext
12952 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
12953 echo "${ECHO_T}$ac_cv_func_connect" >&6
12954 if test $ac_cv_func_connect = yes; then
12955 gcj_checkSocket=0
12956 else
12957 gcj_checkSocket=1
12960 if test "$gcj_checkSocket" = 1; then
12961 unset ac_cv_func_connect
12962 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
12963 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
12964 if test "${ac_cv_lib_socket_main+set}" = set; then
12965 echo $ECHO_N "(cached) $ECHO_C" >&6
12966 else
12967 ac_check_lib_save_LIBS=$LIBS
12968 LIBS="-lsocket $LIBS"
12969 if test x$gcc_no_link = xyes; then
12970 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12971 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12972 { (exit 1); exit 1; }; }
12974 cat >conftest.$ac_ext <<_ACEOF
12975 /* confdefs.h. */
12976 _ACEOF
12977 cat confdefs.h >>conftest.$ac_ext
12978 cat >>conftest.$ac_ext <<_ACEOF
12979 /* end confdefs.h. */
12983 main ()
12985 main ();
12987 return 0;
12989 _ACEOF
12990 rm -f conftest.$ac_objext conftest$ac_exeext
12991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12992 (eval $ac_link) 2>conftest.er1
12993 ac_status=$?
12994 grep -v '^ *+' conftest.er1 >conftest.err
12995 rm -f conftest.er1
12996 cat conftest.err >&5
12997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 (exit $ac_status); } &&
12999 { ac_try='test -z "$ac_c_werror_flag"
13000 || test ! -s conftest.err'
13001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13002 (eval $ac_try) 2>&5
13003 ac_status=$?
13004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); }; } &&
13006 { ac_try='test -s conftest$ac_exeext'
13007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13008 (eval $ac_try) 2>&5
13009 ac_status=$?
13010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011 (exit $ac_status); }; }; then
13012 ac_cv_lib_socket_main=yes
13013 else
13014 echo "$as_me: failed program was:" >&5
13015 sed 's/^/| /' conftest.$ac_ext >&5
13017 ac_cv_lib_socket_main=no
13019 rm -f conftest.err conftest.$ac_objext \
13020 conftest$ac_exeext conftest.$ac_ext
13021 LIBS=$ac_check_lib_save_LIBS
13023 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
13024 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
13025 if test $ac_cv_lib_socket_main = yes; then
13026 gcj_cv_lib_sockets="-lsocket"
13027 else
13028 gcj_checkBoth=1
13032 if test "$gcj_checkBoth" = 1; then
13033 gcj_oldLibs=$LIBS
13034 LIBS="$LIBS -lsocket -lnsl"
13035 unset ac_cv_func_accept
13036 echo "$as_me:$LINENO: checking for accept" >&5
13037 echo $ECHO_N "checking for accept... $ECHO_C" >&6
13038 if test "${ac_cv_func_accept+set}" = set; then
13039 echo $ECHO_N "(cached) $ECHO_C" >&6
13040 else
13041 if test x$gcc_no_link = xyes; then
13042 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13043 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13044 { (exit 1); exit 1; }; }
13046 cat >conftest.$ac_ext <<_ACEOF
13047 /* confdefs.h. */
13048 _ACEOF
13049 cat confdefs.h >>conftest.$ac_ext
13050 cat >>conftest.$ac_ext <<_ACEOF
13051 /* end confdefs.h. */
13052 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
13053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13054 #define accept innocuous_accept
13056 /* System header to define __stub macros and hopefully few prototypes,
13057 which can conflict with char accept (); below.
13058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13059 <limits.h> exists even on freestanding compilers. */
13061 #ifdef __STDC__
13062 # include <limits.h>
13063 #else
13064 # include <assert.h>
13065 #endif
13067 #undef accept
13069 /* Override any gcc2 internal prototype to avoid an error. */
13070 #ifdef __cplusplus
13071 extern "C"
13073 #endif
13074 /* We use char because int might match the return type of a gcc2
13075 builtin and then its argument prototype would still apply. */
13076 char accept ();
13077 /* The GNU C library defines this for functions which it implements
13078 to always fail with ENOSYS. Some functions are actually named
13079 something starting with __ and the normal name is an alias. */
13080 #if defined (__stub_accept) || defined (__stub___accept)
13081 choke me
13082 #else
13083 char (*f) () = accept;
13084 #endif
13085 #ifdef __cplusplus
13087 #endif
13090 main ()
13092 return f != accept;
13094 return 0;
13096 _ACEOF
13097 rm -f conftest.$ac_objext conftest$ac_exeext
13098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13099 (eval $ac_link) 2>conftest.er1
13100 ac_status=$?
13101 grep -v '^ *+' conftest.er1 >conftest.err
13102 rm -f conftest.er1
13103 cat conftest.err >&5
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); } &&
13106 { ac_try='test -z "$ac_c_werror_flag"
13107 || test ! -s conftest.err'
13108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13109 (eval $ac_try) 2>&5
13110 ac_status=$?
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); }; } &&
13113 { ac_try='test -s conftest$ac_exeext'
13114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13115 (eval $ac_try) 2>&5
13116 ac_status=$?
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); }; }; then
13119 ac_cv_func_accept=yes
13120 else
13121 echo "$as_me: failed program was:" >&5
13122 sed 's/^/| /' conftest.$ac_ext >&5
13124 ac_cv_func_accept=no
13126 rm -f conftest.err conftest.$ac_objext \
13127 conftest$ac_exeext conftest.$ac_ext
13129 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
13130 echo "${ECHO_T}$ac_cv_func_accept" >&6
13131 if test $ac_cv_func_accept = yes; then
13132 gcj_checkNsl=0
13133 gcj_cv_lib_sockets="-lsocket -lnsl"
13136 unset ac_cv_func_accept
13137 LIBS=$gcj_oldLibs
13139 unset ac_cv_func_gethostbyname
13140 gcj_oldLibs=$LIBS
13141 LIBS="$LIBS $gcj_cv_lib_sockets"
13142 echo "$as_me:$LINENO: checking for gethostbyname" >&5
13143 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
13144 if test "${ac_cv_func_gethostbyname+set}" = set; then
13145 echo $ECHO_N "(cached) $ECHO_C" >&6
13146 else
13147 if test x$gcc_no_link = xyes; then
13148 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13149 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13150 { (exit 1); exit 1; }; }
13152 cat >conftest.$ac_ext <<_ACEOF
13153 /* confdefs.h. */
13154 _ACEOF
13155 cat confdefs.h >>conftest.$ac_ext
13156 cat >>conftest.$ac_ext <<_ACEOF
13157 /* end confdefs.h. */
13158 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
13159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13160 #define gethostbyname innocuous_gethostbyname
13162 /* System header to define __stub macros and hopefully few prototypes,
13163 which can conflict with char gethostbyname (); below.
13164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13165 <limits.h> exists even on freestanding compilers. */
13167 #ifdef __STDC__
13168 # include <limits.h>
13169 #else
13170 # include <assert.h>
13171 #endif
13173 #undef gethostbyname
13175 /* Override any gcc2 internal prototype to avoid an error. */
13176 #ifdef __cplusplus
13177 extern "C"
13179 #endif
13180 /* We use char because int might match the return type of a gcc2
13181 builtin and then its argument prototype would still apply. */
13182 char gethostbyname ();
13183 /* The GNU C library defines this for functions which it implements
13184 to always fail with ENOSYS. Some functions are actually named
13185 something starting with __ and the normal name is an alias. */
13186 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13187 choke me
13188 #else
13189 char (*f) () = gethostbyname;
13190 #endif
13191 #ifdef __cplusplus
13193 #endif
13196 main ()
13198 return f != gethostbyname;
13200 return 0;
13202 _ACEOF
13203 rm -f conftest.$ac_objext conftest$ac_exeext
13204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13205 (eval $ac_link) 2>conftest.er1
13206 ac_status=$?
13207 grep -v '^ *+' conftest.er1 >conftest.err
13208 rm -f conftest.er1
13209 cat conftest.err >&5
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); } &&
13212 { ac_try='test -z "$ac_c_werror_flag"
13213 || test ! -s conftest.err'
13214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13215 (eval $ac_try) 2>&5
13216 ac_status=$?
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); }; } &&
13219 { ac_try='test -s conftest$ac_exeext'
13220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13221 (eval $ac_try) 2>&5
13222 ac_status=$?
13223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224 (exit $ac_status); }; }; then
13225 ac_cv_func_gethostbyname=yes
13226 else
13227 echo "$as_me: failed program was:" >&5
13228 sed 's/^/| /' conftest.$ac_ext >&5
13230 ac_cv_func_gethostbyname=no
13232 rm -f conftest.err conftest.$ac_objext \
13233 conftest$ac_exeext conftest.$ac_ext
13235 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
13236 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
13237 if test $ac_cv_func_gethostbyname = yes; then
13239 else
13240 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
13241 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
13242 if test "${ac_cv_lib_nsl_main+set}" = set; then
13243 echo $ECHO_N "(cached) $ECHO_C" >&6
13244 else
13245 ac_check_lib_save_LIBS=$LIBS
13246 LIBS="-lnsl $LIBS"
13247 if test x$gcc_no_link = xyes; then
13248 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13249 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13250 { (exit 1); exit 1; }; }
13252 cat >conftest.$ac_ext <<_ACEOF
13253 /* confdefs.h. */
13254 _ACEOF
13255 cat confdefs.h >>conftest.$ac_ext
13256 cat >>conftest.$ac_ext <<_ACEOF
13257 /* end confdefs.h. */
13261 main ()
13263 main ();
13265 return 0;
13267 _ACEOF
13268 rm -f conftest.$ac_objext conftest$ac_exeext
13269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13270 (eval $ac_link) 2>conftest.er1
13271 ac_status=$?
13272 grep -v '^ *+' conftest.er1 >conftest.err
13273 rm -f conftest.er1
13274 cat conftest.err >&5
13275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13276 (exit $ac_status); } &&
13277 { ac_try='test -z "$ac_c_werror_flag"
13278 || test ! -s conftest.err'
13279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13280 (eval $ac_try) 2>&5
13281 ac_status=$?
13282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283 (exit $ac_status); }; } &&
13284 { ac_try='test -s conftest$ac_exeext'
13285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13286 (eval $ac_try) 2>&5
13287 ac_status=$?
13288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289 (exit $ac_status); }; }; then
13290 ac_cv_lib_nsl_main=yes
13291 else
13292 echo "$as_me: failed program was:" >&5
13293 sed 's/^/| /' conftest.$ac_ext >&5
13295 ac_cv_lib_nsl_main=no
13297 rm -f conftest.err conftest.$ac_objext \
13298 conftest$ac_exeext conftest.$ac_ext
13299 LIBS=$ac_check_lib_save_LIBS
13301 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
13302 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
13303 if test $ac_cv_lib_nsl_main = yes; then
13304 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
13309 unset ac_cv_func_gethostbyname
13310 LIBS=$gcj_oldLIBS
13313 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
13314 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
13315 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
13317 if test "$with_system_zlib" = yes; then
13318 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
13319 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
13320 if test "${ac_cv_lib_z_deflate+set}" = set; then
13321 echo $ECHO_N "(cached) $ECHO_C" >&6
13322 else
13323 ac_check_lib_save_LIBS=$LIBS
13324 LIBS="-lz $LIBS"
13325 if test x$gcc_no_link = xyes; then
13326 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13327 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13328 { (exit 1); exit 1; }; }
13330 cat >conftest.$ac_ext <<_ACEOF
13331 /* confdefs.h. */
13332 _ACEOF
13333 cat confdefs.h >>conftest.$ac_ext
13334 cat >>conftest.$ac_ext <<_ACEOF
13335 /* end confdefs.h. */
13337 /* Override any gcc2 internal prototype to avoid an error. */
13338 #ifdef __cplusplus
13339 extern "C"
13340 #endif
13341 /* We use char because int might match the return type of a gcc2
13342 builtin and then its argument prototype would still apply. */
13343 char deflate ();
13345 main ()
13347 deflate ();
13349 return 0;
13351 _ACEOF
13352 rm -f conftest.$ac_objext conftest$ac_exeext
13353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13354 (eval $ac_link) 2>conftest.er1
13355 ac_status=$?
13356 grep -v '^ *+' conftest.er1 >conftest.err
13357 rm -f conftest.er1
13358 cat conftest.err >&5
13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); } &&
13361 { ac_try='test -z "$ac_c_werror_flag"
13362 || test ! -s conftest.err'
13363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13364 (eval $ac_try) 2>&5
13365 ac_status=$?
13366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367 (exit $ac_status); }; } &&
13368 { ac_try='test -s conftest$ac_exeext'
13369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13370 (eval $ac_try) 2>&5
13371 ac_status=$?
13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); }; }; then
13374 ac_cv_lib_z_deflate=yes
13375 else
13376 echo "$as_me: failed program was:" >&5
13377 sed 's/^/| /' conftest.$ac_ext >&5
13379 ac_cv_lib_z_deflate=no
13381 rm -f conftest.err conftest.$ac_objext \
13382 conftest$ac_exeext conftest.$ac_ext
13383 LIBS=$ac_check_lib_save_LIBS
13385 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
13386 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
13387 if test $ac_cv_lib_z_deflate = yes; then
13388 ZLIBSPEC=-lz
13389 else
13390 ZLIBSPEC=
13395 # Test for Gtk stuff, if asked for.
13396 if test "$use_gtk_awt" = yes; then
13398 succeeded=no
13400 if test -z "$PKG_CONFIG"; then
13401 # Extract the first word of "pkg-config", so it can be a program name with args.
13402 set dummy pkg-config; ac_word=$2
13403 echo "$as_me:$LINENO: checking for $ac_word" >&5
13404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13405 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13406 echo $ECHO_N "(cached) $ECHO_C" >&6
13407 else
13408 case $PKG_CONFIG in
13409 [\\/]* | ?:[\\/]*)
13410 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13414 for as_dir in $PATH
13416 IFS=$as_save_IFS
13417 test -z "$as_dir" && as_dir=.
13418 for ac_exec_ext in '' $ac_executable_extensions; do
13419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13420 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13422 break 2
13424 done
13425 done
13427 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13429 esac
13431 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13433 if test -n "$PKG_CONFIG"; then
13434 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13435 echo "${ECHO_T}$PKG_CONFIG" >&6
13436 else
13437 echo "$as_me:$LINENO: result: no" >&5
13438 echo "${ECHO_T}no" >&6
13443 if test "$PKG_CONFIG" = "no" ; then
13444 echo "*** The pkg-config script could not be found. Make sure it is"
13445 echo "*** in your path, or set the PKG_CONFIG environment variable"
13446 echo "*** to the full path to pkg-config."
13447 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13448 else
13449 PKG_CONFIG_MIN_VERSION=0.9.0
13450 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13451 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
13452 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
13454 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
13455 echo "$as_me:$LINENO: result: yes" >&5
13456 echo "${ECHO_T}yes" >&6
13457 succeeded=yes
13459 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
13460 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
13461 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
13462 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
13463 echo "${ECHO_T}$GTK_CFLAGS" >&6
13465 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
13466 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
13467 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
13468 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
13469 echo "${ECHO_T}$GTK_LIBS" >&6
13470 else
13471 GTK_CFLAGS=""
13472 GTK_LIBS=""
13473 ## If we have a custom action on failure, don't print errors, but
13474 ## do set a variable so people can do so.
13475 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
13476 echo $GTK_PKG_ERRORS
13481 else
13482 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13483 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13487 if test $succeeded = yes; then
13489 else
13490 { { 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
13491 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;}
13492 { (exit 1); exit 1; }; }
13499 succeeded=no
13501 if test -z "$PKG_CONFIG"; then
13502 # Extract the first word of "pkg-config", so it can be a program name with args.
13503 set dummy pkg-config; ac_word=$2
13504 echo "$as_me:$LINENO: checking for $ac_word" >&5
13505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13506 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13507 echo $ECHO_N "(cached) $ECHO_C" >&6
13508 else
13509 case $PKG_CONFIG in
13510 [\\/]* | ?:[\\/]*)
13511 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13515 for as_dir in $PATH
13517 IFS=$as_save_IFS
13518 test -z "$as_dir" && as_dir=.
13519 for ac_exec_ext in '' $ac_executable_extensions; do
13520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13521 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13523 break 2
13525 done
13526 done
13528 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13530 esac
13532 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13534 if test -n "$PKG_CONFIG"; then
13535 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13536 echo "${ECHO_T}$PKG_CONFIG" >&6
13537 else
13538 echo "$as_me:$LINENO: result: no" >&5
13539 echo "${ECHO_T}no" >&6
13544 if test "$PKG_CONFIG" = "no" ; then
13545 echo "*** The pkg-config script could not be found. Make sure it is"
13546 echo "*** in your path, or set the PKG_CONFIG environment variable"
13547 echo "*** to the full path to pkg-config."
13548 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13549 else
13550 PKG_CONFIG_MIN_VERSION=0.9.0
13551 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13552 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
13553 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
13555 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
13556 echo "$as_me:$LINENO: result: yes" >&5
13557 echo "${ECHO_T}yes" >&6
13558 succeeded=yes
13560 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
13561 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
13562 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13563 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
13564 echo "${ECHO_T}$GLIB_CFLAGS" >&6
13566 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
13567 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
13568 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13569 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
13570 echo "${ECHO_T}$GLIB_LIBS" >&6
13571 else
13572 GLIB_CFLAGS=""
13573 GLIB_LIBS=""
13574 ## If we have a custom action on failure, don't print errors, but
13575 ## do set a variable so people can do so.
13576 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13577 echo $GLIB_PKG_ERRORS
13582 else
13583 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13584 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13588 if test $succeeded = yes; then
13590 else
13591 { { 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
13592 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;}
13593 { (exit 1); exit 1; }; }
13600 succeeded=no
13602 if test -z "$PKG_CONFIG"; then
13603 # Extract the first word of "pkg-config", so it can be a program name with args.
13604 set dummy pkg-config; ac_word=$2
13605 echo "$as_me:$LINENO: checking for $ac_word" >&5
13606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13607 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13608 echo $ECHO_N "(cached) $ECHO_C" >&6
13609 else
13610 case $PKG_CONFIG in
13611 [\\/]* | ?:[\\/]*)
13612 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13616 for as_dir in $PATH
13618 IFS=$as_save_IFS
13619 test -z "$as_dir" && as_dir=.
13620 for ac_exec_ext in '' $ac_executable_extensions; do
13621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13622 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13624 break 2
13626 done
13627 done
13629 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13631 esac
13633 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13635 if test -n "$PKG_CONFIG"; then
13636 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13637 echo "${ECHO_T}$PKG_CONFIG" >&6
13638 else
13639 echo "$as_me:$LINENO: result: no" >&5
13640 echo "${ECHO_T}no" >&6
13645 if test "$PKG_CONFIG" = "no" ; then
13646 echo "*** The pkg-config script could not be found. Make sure it is"
13647 echo "*** in your path, or set the PKG_CONFIG environment variable"
13648 echo "*** to the full path to pkg-config."
13649 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13650 else
13651 PKG_CONFIG_MIN_VERSION=0.9.0
13652 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13653 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
13654 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
13656 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
13657 echo "$as_me:$LINENO: result: yes" >&5
13658 echo "${ECHO_T}yes" >&6
13659 succeeded=yes
13661 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
13662 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
13663 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
13664 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
13665 echo "${ECHO_T}$LIBART_CFLAGS" >&6
13667 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
13668 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
13669 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
13670 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
13671 echo "${ECHO_T}$LIBART_LIBS" >&6
13672 else
13673 LIBART_CFLAGS=""
13674 LIBART_LIBS=""
13675 ## If we have a custom action on failure, don't print errors, but
13676 ## do set a variable so people can do so.
13677 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
13678 echo $LIBART_PKG_ERRORS
13683 else
13684 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13685 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13689 if test $succeeded = yes; then
13691 else
13692 { { 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
13693 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;}
13694 { (exit 1); exit 1; }; }
13700 # We require the XTest Extension to support java.awt.Robot.
13701 echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
13702 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
13703 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
13704 echo $ECHO_N "(cached) $ECHO_C" >&6
13705 else
13706 ac_check_lib_save_LIBS=$LIBS
13707 LIBS="-lXtst ${X_LIBS} $LIBS"
13708 if test x$gcc_no_link = xyes; then
13709 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13710 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13711 { (exit 1); exit 1; }; }
13713 cat >conftest.$ac_ext <<_ACEOF
13714 /* confdefs.h. */
13715 _ACEOF
13716 cat confdefs.h >>conftest.$ac_ext
13717 cat >>conftest.$ac_ext <<_ACEOF
13718 /* end confdefs.h. */
13720 /* Override any gcc2 internal prototype to avoid an error. */
13721 #ifdef __cplusplus
13722 extern "C"
13723 #endif
13724 /* We use char because int might match the return type of a gcc2
13725 builtin and then its argument prototype would still apply. */
13726 char XTestQueryExtension ();
13728 main ()
13730 XTestQueryExtension ();
13732 return 0;
13734 _ACEOF
13735 rm -f conftest.$ac_objext conftest$ac_exeext
13736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13737 (eval $ac_link) 2>conftest.er1
13738 ac_status=$?
13739 grep -v '^ *+' conftest.er1 >conftest.err
13740 rm -f conftest.er1
13741 cat conftest.err >&5
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); } &&
13744 { ac_try='test -z "$ac_c_werror_flag"
13745 || test ! -s conftest.err'
13746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13747 (eval $ac_try) 2>&5
13748 ac_status=$?
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); }; } &&
13751 { ac_try='test -s conftest$ac_exeext'
13752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13753 (eval $ac_try) 2>&5
13754 ac_status=$?
13755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756 (exit $ac_status); }; }; then
13757 ac_cv_lib_Xtst_XTestQueryExtension=yes
13758 else
13759 echo "$as_me: failed program was:" >&5
13760 sed 's/^/| /' conftest.$ac_ext >&5
13762 ac_cv_lib_Xtst_XTestQueryExtension=no
13764 rm -f conftest.err conftest.$ac_objext \
13765 conftest$ac_exeext conftest.$ac_ext
13766 LIBS=$ac_check_lib_save_LIBS
13768 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
13769 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
13770 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
13771 true
13772 else
13773 { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
13774 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
13775 { (exit 1); exit 1; }; }
13780 # On Solaris, and maybe other architectures, the Boehm collector
13781 # requires -ldl.
13782 if test "$GC" = boehm; then
13783 echo "$as_me:$LINENO: checking for main in -ldl" >&5
13784 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
13785 if test "${ac_cv_lib_dl_main+set}" = set; then
13786 echo $ECHO_N "(cached) $ECHO_C" >&6
13787 else
13788 ac_check_lib_save_LIBS=$LIBS
13789 LIBS="-ldl $LIBS"
13790 if test x$gcc_no_link = xyes; then
13791 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13792 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13793 { (exit 1); exit 1; }; }
13795 cat >conftest.$ac_ext <<_ACEOF
13796 /* confdefs.h. */
13797 _ACEOF
13798 cat confdefs.h >>conftest.$ac_ext
13799 cat >>conftest.$ac_ext <<_ACEOF
13800 /* end confdefs.h. */
13804 main ()
13806 main ();
13808 return 0;
13810 _ACEOF
13811 rm -f conftest.$ac_objext conftest$ac_exeext
13812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13813 (eval $ac_link) 2>conftest.er1
13814 ac_status=$?
13815 grep -v '^ *+' conftest.er1 >conftest.err
13816 rm -f conftest.er1
13817 cat conftest.err >&5
13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819 (exit $ac_status); } &&
13820 { ac_try='test -z "$ac_c_werror_flag"
13821 || test ! -s conftest.err'
13822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823 (eval $ac_try) 2>&5
13824 ac_status=$?
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); }; } &&
13827 { ac_try='test -s conftest$ac_exeext'
13828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13829 (eval $ac_try) 2>&5
13830 ac_status=$?
13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 (exit $ac_status); }; }; then
13833 ac_cv_lib_dl_main=yes
13834 else
13835 echo "$as_me: failed program was:" >&5
13836 sed 's/^/| /' conftest.$ac_ext >&5
13838 ac_cv_lib_dl_main=no
13840 rm -f conftest.err conftest.$ac_objext \
13841 conftest$ac_exeext conftest.$ac_ext
13842 LIBS=$ac_check_lib_save_LIBS
13844 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
13845 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
13846 if test $ac_cv_lib_dl_main = yes; then
13847 SYSTEMSPEC="$SYSTEMSPEC -ldl"
13853 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
13854 case $build in
13855 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
13856 *) CLASSPATH_SEPARATOR=':' ;;
13857 esac
13860 # We must search the source tree for java.lang, since we still don't
13861 # have libgcj.jar nor java/lang/*.class
13862 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
13863 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
13865 # Since some classes depend on this one, we need its source available
13866 # before we can do any GCJ compilation test :-(
13867 if test ! -f gnu/classpath/Configuration.java; then
13868 test -d gnu || mkdir gnu
13869 test -d gnu/classpath || mkdir gnu/classpath
13870 # Note that it is not crucial that all the values here be correct.
13871 sed -e "s,@prefix@,$prefix," \
13872 -e "s,@VERSION@,$VERSION," \
13873 -e "s,@LIBDEBUG@,false," \
13874 -e "s,@INIT_LOAD_LIBRARY@,false," \
13875 -e "s,@@,$LIBGCJDEBUG," \
13876 -e "s,@default_toolkit@,$TOOLKIT," \
13877 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
13878 -e "s,@GTK_CAIRO_ENABLED@,false," \
13879 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
13880 > gnu/classpath/Configuration.java
13881 # We do not want to redirect the output of the grep below to /dev/null,
13882 # but we add /dev/null to the input list so that grep will print the
13883 # filename of Configuration.java in case it finds any matches.
13884 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
13885 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
13886 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
13887 { (exit 1); exit 1; }; }
13891 if test -n "$ac_tool_prefix"; then
13892 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
13893 set dummy ${ac_tool_prefix}gcj; ac_word=$2
13894 echo "$as_me:$LINENO: checking for $ac_word" >&5
13895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13896 if test "${ac_cv_prog_GCJ+set}" = set; then
13897 echo $ECHO_N "(cached) $ECHO_C" >&6
13898 else
13899 if test -n "$GCJ"; then
13900 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
13901 else
13902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13903 for as_dir in $PATH
13905 IFS=$as_save_IFS
13906 test -z "$as_dir" && as_dir=.
13907 for ac_exec_ext in '' $ac_executable_extensions; do
13908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13909 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
13910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13911 break 2
13913 done
13914 done
13918 GCJ=$ac_cv_prog_GCJ
13919 if test -n "$GCJ"; then
13920 echo "$as_me:$LINENO: result: $GCJ" >&5
13921 echo "${ECHO_T}$GCJ" >&6
13922 else
13923 echo "$as_me:$LINENO: result: no" >&5
13924 echo "${ECHO_T}no" >&6
13928 if test -z "$ac_cv_prog_GCJ"; then
13929 ac_ct_GCJ=$GCJ
13930 # Extract the first word of "gcj", so it can be a program name with args.
13931 set dummy gcj; ac_word=$2
13932 echo "$as_me:$LINENO: checking for $ac_word" >&5
13933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13934 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
13935 echo $ECHO_N "(cached) $ECHO_C" >&6
13936 else
13937 if test -n "$ac_ct_GCJ"; then
13938 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
13939 else
13940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13941 for as_dir in $PATH
13943 IFS=$as_save_IFS
13944 test -z "$as_dir" && as_dir=.
13945 for ac_exec_ext in '' $ac_executable_extensions; do
13946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13947 ac_cv_prog_ac_ct_GCJ="gcj"
13948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13949 break 2
13951 done
13952 done
13954 test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
13957 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
13958 if test -n "$ac_ct_GCJ"; then
13959 echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
13960 echo "${ECHO_T}$ac_ct_GCJ" >&6
13961 else
13962 echo "$as_me:$LINENO: result: no" >&5
13963 echo "${ECHO_T}no" >&6
13966 GCJ=$ac_ct_GCJ
13967 else
13968 GCJ="$ac_cv_prog_GCJ"
13971 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
13976 # Now remove it.
13977 rm -f gnu/classpath/Configuration.java
13979 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
13981 echo "$as_me:$LINENO: checking for void *" >&5
13982 echo $ECHO_N "checking for void *... $ECHO_C" >&6
13983 if test "${ac_cv_type_void_p+set}" = set; then
13984 echo $ECHO_N "(cached) $ECHO_C" >&6
13985 else
13986 cat >conftest.$ac_ext <<_ACEOF
13987 /* confdefs.h. */
13988 _ACEOF
13989 cat confdefs.h >>conftest.$ac_ext
13990 cat >>conftest.$ac_ext <<_ACEOF
13991 /* end confdefs.h. */
13992 $ac_includes_default
13994 main ()
13996 if ((void * *) 0)
13997 return 0;
13998 if (sizeof (void *))
13999 return 0;
14001 return 0;
14003 _ACEOF
14004 rm -f conftest.$ac_objext
14005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14006 (eval $ac_compile) 2>conftest.er1
14007 ac_status=$?
14008 grep -v '^ *+' conftest.er1 >conftest.err
14009 rm -f conftest.er1
14010 cat conftest.err >&5
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); } &&
14013 { ac_try='test -z "$ac_c_werror_flag"
14014 || test ! -s conftest.err'
14015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14016 (eval $ac_try) 2>&5
14017 ac_status=$?
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); }; } &&
14020 { ac_try='test -s conftest.$ac_objext'
14021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14022 (eval $ac_try) 2>&5
14023 ac_status=$?
14024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025 (exit $ac_status); }; }; then
14026 ac_cv_type_void_p=yes
14027 else
14028 echo "$as_me: failed program was:" >&5
14029 sed 's/^/| /' conftest.$ac_ext >&5
14031 ac_cv_type_void_p=no
14033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14035 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14036 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14038 echo "$as_me:$LINENO: checking size of void *" >&5
14039 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14040 if test "${ac_cv_sizeof_void_p+set}" = set; then
14041 echo $ECHO_N "(cached) $ECHO_C" >&6
14042 else
14043 if test "$ac_cv_type_void_p" = yes; then
14044 # The cast to unsigned long works around a bug in the HP C Compiler
14045 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14046 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14047 # This bug is HP SR number 8606223364.
14048 if test "$cross_compiling" = yes; then
14049 # Depending upon the size, compute the lo and hi bounds.
14050 cat >conftest.$ac_ext <<_ACEOF
14051 /* confdefs.h. */
14052 _ACEOF
14053 cat confdefs.h >>conftest.$ac_ext
14054 cat >>conftest.$ac_ext <<_ACEOF
14055 /* end confdefs.h. */
14056 $ac_includes_default
14058 main ()
14060 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14061 test_array [0] = 0
14064 return 0;
14066 _ACEOF
14067 rm -f conftest.$ac_objext
14068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14069 (eval $ac_compile) 2>conftest.er1
14070 ac_status=$?
14071 grep -v '^ *+' conftest.er1 >conftest.err
14072 rm -f conftest.er1
14073 cat conftest.err >&5
14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075 (exit $ac_status); } &&
14076 { ac_try='test -z "$ac_c_werror_flag"
14077 || test ! -s conftest.err'
14078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14079 (eval $ac_try) 2>&5
14080 ac_status=$?
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); }; } &&
14083 { ac_try='test -s conftest.$ac_objext'
14084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14085 (eval $ac_try) 2>&5
14086 ac_status=$?
14087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088 (exit $ac_status); }; }; then
14089 ac_lo=0 ac_mid=0
14090 while :; do
14091 cat >conftest.$ac_ext <<_ACEOF
14092 /* confdefs.h. */
14093 _ACEOF
14094 cat confdefs.h >>conftest.$ac_ext
14095 cat >>conftest.$ac_ext <<_ACEOF
14096 /* end confdefs.h. */
14097 $ac_includes_default
14099 main ()
14101 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14102 test_array [0] = 0
14105 return 0;
14107 _ACEOF
14108 rm -f conftest.$ac_objext
14109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14110 (eval $ac_compile) 2>conftest.er1
14111 ac_status=$?
14112 grep -v '^ *+' conftest.er1 >conftest.err
14113 rm -f conftest.er1
14114 cat conftest.err >&5
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); } &&
14117 { ac_try='test -z "$ac_c_werror_flag"
14118 || test ! -s conftest.err'
14119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14120 (eval $ac_try) 2>&5
14121 ac_status=$?
14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); }; } &&
14124 { ac_try='test -s conftest.$ac_objext'
14125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14126 (eval $ac_try) 2>&5
14127 ac_status=$?
14128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129 (exit $ac_status); }; }; then
14130 ac_hi=$ac_mid; break
14131 else
14132 echo "$as_me: failed program was:" >&5
14133 sed 's/^/| /' conftest.$ac_ext >&5
14135 ac_lo=`expr $ac_mid + 1`
14136 if test $ac_lo -le $ac_mid; then
14137 ac_lo= ac_hi=
14138 break
14140 ac_mid=`expr 2 '*' $ac_mid + 1`
14142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14143 done
14144 else
14145 echo "$as_me: failed program was:" >&5
14146 sed 's/^/| /' conftest.$ac_ext >&5
14148 cat >conftest.$ac_ext <<_ACEOF
14149 /* confdefs.h. */
14150 _ACEOF
14151 cat confdefs.h >>conftest.$ac_ext
14152 cat >>conftest.$ac_ext <<_ACEOF
14153 /* end confdefs.h. */
14154 $ac_includes_default
14156 main ()
14158 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14159 test_array [0] = 0
14162 return 0;
14164 _ACEOF
14165 rm -f conftest.$ac_objext
14166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14167 (eval $ac_compile) 2>conftest.er1
14168 ac_status=$?
14169 grep -v '^ *+' conftest.er1 >conftest.err
14170 rm -f conftest.er1
14171 cat conftest.err >&5
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); } &&
14174 { ac_try='test -z "$ac_c_werror_flag"
14175 || test ! -s conftest.err'
14176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14177 (eval $ac_try) 2>&5
14178 ac_status=$?
14179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180 (exit $ac_status); }; } &&
14181 { ac_try='test -s conftest.$ac_objext'
14182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14183 (eval $ac_try) 2>&5
14184 ac_status=$?
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); }; }; then
14187 ac_hi=-1 ac_mid=-1
14188 while :; do
14189 cat >conftest.$ac_ext <<_ACEOF
14190 /* confdefs.h. */
14191 _ACEOF
14192 cat confdefs.h >>conftest.$ac_ext
14193 cat >>conftest.$ac_ext <<_ACEOF
14194 /* end confdefs.h. */
14195 $ac_includes_default
14197 main ()
14199 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14200 test_array [0] = 0
14203 return 0;
14205 _ACEOF
14206 rm -f conftest.$ac_objext
14207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14208 (eval $ac_compile) 2>conftest.er1
14209 ac_status=$?
14210 grep -v '^ *+' conftest.er1 >conftest.err
14211 rm -f conftest.er1
14212 cat conftest.err >&5
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); } &&
14215 { ac_try='test -z "$ac_c_werror_flag"
14216 || test ! -s conftest.err'
14217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14218 (eval $ac_try) 2>&5
14219 ac_status=$?
14220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221 (exit $ac_status); }; } &&
14222 { ac_try='test -s conftest.$ac_objext'
14223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14224 (eval $ac_try) 2>&5
14225 ac_status=$?
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); }; }; then
14228 ac_lo=$ac_mid; break
14229 else
14230 echo "$as_me: failed program was:" >&5
14231 sed 's/^/| /' conftest.$ac_ext >&5
14233 ac_hi=`expr '(' $ac_mid ')' - 1`
14234 if test $ac_mid -le $ac_hi; then
14235 ac_lo= ac_hi=
14236 break
14238 ac_mid=`expr 2 '*' $ac_mid`
14240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14241 done
14242 else
14243 echo "$as_me: failed program was:" >&5
14244 sed 's/^/| /' conftest.$ac_ext >&5
14246 ac_lo= ac_hi=
14248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14251 # Binary search between lo and hi bounds.
14252 while test "x$ac_lo" != "x$ac_hi"; do
14253 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14254 cat >conftest.$ac_ext <<_ACEOF
14255 /* confdefs.h. */
14256 _ACEOF
14257 cat confdefs.h >>conftest.$ac_ext
14258 cat >>conftest.$ac_ext <<_ACEOF
14259 /* end confdefs.h. */
14260 $ac_includes_default
14262 main ()
14264 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14265 test_array [0] = 0
14268 return 0;
14270 _ACEOF
14271 rm -f conftest.$ac_objext
14272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14273 (eval $ac_compile) 2>conftest.er1
14274 ac_status=$?
14275 grep -v '^ *+' conftest.er1 >conftest.err
14276 rm -f conftest.er1
14277 cat conftest.err >&5
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); } &&
14280 { ac_try='test -z "$ac_c_werror_flag"
14281 || test ! -s conftest.err'
14282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14283 (eval $ac_try) 2>&5
14284 ac_status=$?
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 (exit $ac_status); }; } &&
14287 { ac_try='test -s conftest.$ac_objext'
14288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14289 (eval $ac_try) 2>&5
14290 ac_status=$?
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); }; }; then
14293 ac_hi=$ac_mid
14294 else
14295 echo "$as_me: failed program was:" >&5
14296 sed 's/^/| /' conftest.$ac_ext >&5
14298 ac_lo=`expr '(' $ac_mid ')' + 1`
14300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14301 done
14302 case $ac_lo in
14303 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14304 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14305 See \`config.log' for more details." >&5
14306 echo "$as_me: error: cannot compute sizeof (void *), 77
14307 See \`config.log' for more details." >&2;}
14308 { (exit 1); exit 1; }; } ;;
14309 esac
14310 else
14311 if test "$cross_compiling" = yes; then
14312 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14313 See \`config.log' for more details." >&5
14314 echo "$as_me: error: cannot run test program while cross compiling
14315 See \`config.log' for more details." >&2;}
14316 { (exit 1); exit 1; }; }
14317 else
14318 cat >conftest.$ac_ext <<_ACEOF
14319 /* confdefs.h. */
14320 _ACEOF
14321 cat confdefs.h >>conftest.$ac_ext
14322 cat >>conftest.$ac_ext <<_ACEOF
14323 /* end confdefs.h. */
14324 $ac_includes_default
14325 long longval () { return (long) (sizeof (void *)); }
14326 unsigned long ulongval () { return (long) (sizeof (void *)); }
14327 #include <stdio.h>
14328 #include <stdlib.h>
14330 main ()
14333 FILE *f = fopen ("conftest.val", "w");
14334 if (! f)
14335 exit (1);
14336 if (((long) (sizeof (void *))) < 0)
14338 long i = longval ();
14339 if (i != ((long) (sizeof (void *))))
14340 exit (1);
14341 fprintf (f, "%ld\n", i);
14343 else
14345 unsigned long i = ulongval ();
14346 if (i != ((long) (sizeof (void *))))
14347 exit (1);
14348 fprintf (f, "%lu\n", i);
14350 exit (ferror (f) || fclose (f) != 0);
14353 return 0;
14355 _ACEOF
14356 rm -f conftest$ac_exeext
14357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14358 (eval $ac_link) 2>&5
14359 ac_status=$?
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14363 (eval $ac_try) 2>&5
14364 ac_status=$?
14365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366 (exit $ac_status); }; }; then
14367 ac_cv_sizeof_void_p=`cat conftest.val`
14368 else
14369 echo "$as_me: program exited with status $ac_status" >&5
14370 echo "$as_me: failed program was:" >&5
14371 sed 's/^/| /' conftest.$ac_ext >&5
14373 ( exit $ac_status )
14374 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14375 See \`config.log' for more details." >&5
14376 echo "$as_me: error: cannot compute sizeof (void *), 77
14377 See \`config.log' for more details." >&2;}
14378 { (exit 1); exit 1; }; }
14380 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14383 rm -f conftest.val
14384 else
14385 ac_cv_sizeof_void_p=0
14388 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14389 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14390 cat >>confdefs.h <<_ACEOF
14391 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14392 _ACEOF
14396 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14397 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
14398 if test "${ac_cv_c_bigendian+set}" = set; then
14399 echo $ECHO_N "(cached) $ECHO_C" >&6
14400 else
14401 # See if sys/param.h defines the BYTE_ORDER macro.
14402 cat >conftest.$ac_ext <<_ACEOF
14403 /* confdefs.h. */
14404 _ACEOF
14405 cat confdefs.h >>conftest.$ac_ext
14406 cat >>conftest.$ac_ext <<_ACEOF
14407 /* end confdefs.h. */
14408 #include <sys/types.h>
14409 #include <sys/param.h>
14412 main ()
14414 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14415 bogus endian macros
14416 #endif
14419 return 0;
14421 _ACEOF
14422 rm -f conftest.$ac_objext
14423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14424 (eval $ac_compile) 2>conftest.er1
14425 ac_status=$?
14426 grep -v '^ *+' conftest.er1 >conftest.err
14427 rm -f conftest.er1
14428 cat conftest.err >&5
14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); } &&
14431 { ac_try='test -z "$ac_c_werror_flag"
14432 || test ! -s conftest.err'
14433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14434 (eval $ac_try) 2>&5
14435 ac_status=$?
14436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437 (exit $ac_status); }; } &&
14438 { ac_try='test -s conftest.$ac_objext'
14439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14440 (eval $ac_try) 2>&5
14441 ac_status=$?
14442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443 (exit $ac_status); }; }; then
14444 # It does; now see whether it defined to BIG_ENDIAN or not.
14445 cat >conftest.$ac_ext <<_ACEOF
14446 /* confdefs.h. */
14447 _ACEOF
14448 cat confdefs.h >>conftest.$ac_ext
14449 cat >>conftest.$ac_ext <<_ACEOF
14450 /* end confdefs.h. */
14451 #include <sys/types.h>
14452 #include <sys/param.h>
14455 main ()
14457 #if BYTE_ORDER != BIG_ENDIAN
14458 not big endian
14459 #endif
14462 return 0;
14464 _ACEOF
14465 rm -f conftest.$ac_objext
14466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14467 (eval $ac_compile) 2>conftest.er1
14468 ac_status=$?
14469 grep -v '^ *+' conftest.er1 >conftest.err
14470 rm -f conftest.er1
14471 cat conftest.err >&5
14472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473 (exit $ac_status); } &&
14474 { ac_try='test -z "$ac_c_werror_flag"
14475 || test ! -s conftest.err'
14476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14477 (eval $ac_try) 2>&5
14478 ac_status=$?
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); }; } &&
14481 { ac_try='test -s conftest.$ac_objext'
14482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14483 (eval $ac_try) 2>&5
14484 ac_status=$?
14485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486 (exit $ac_status); }; }; then
14487 ac_cv_c_bigendian=yes
14488 else
14489 echo "$as_me: failed program was:" >&5
14490 sed 's/^/| /' conftest.$ac_ext >&5
14492 ac_cv_c_bigendian=no
14494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14495 else
14496 echo "$as_me: failed program was:" >&5
14497 sed 's/^/| /' conftest.$ac_ext >&5
14499 # It does not; compile a test program.
14500 if test "$cross_compiling" = yes; then
14501 # try to guess the endianness by grepping values into an object file
14502 ac_cv_c_bigendian=unknown
14503 cat >conftest.$ac_ext <<_ACEOF
14504 /* confdefs.h. */
14505 _ACEOF
14506 cat confdefs.h >>conftest.$ac_ext
14507 cat >>conftest.$ac_ext <<_ACEOF
14508 /* end confdefs.h. */
14509 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14510 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14511 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14512 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14513 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14514 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14516 main ()
14518 _ascii (); _ebcdic ();
14520 return 0;
14522 _ACEOF
14523 rm -f conftest.$ac_objext
14524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14525 (eval $ac_compile) 2>conftest.er1
14526 ac_status=$?
14527 grep -v '^ *+' conftest.er1 >conftest.err
14528 rm -f conftest.er1
14529 cat conftest.err >&5
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); } &&
14532 { ac_try='test -z "$ac_c_werror_flag"
14533 || test ! -s conftest.err'
14534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14535 (eval $ac_try) 2>&5
14536 ac_status=$?
14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); }; } &&
14539 { ac_try='test -s conftest.$ac_objext'
14540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14541 (eval $ac_try) 2>&5
14542 ac_status=$?
14543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14544 (exit $ac_status); }; }; then
14545 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14546 ac_cv_c_bigendian=yes
14548 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14549 if test "$ac_cv_c_bigendian" = unknown; then
14550 ac_cv_c_bigendian=no
14551 else
14552 # finding both strings is unlikely to happen, but who knows?
14553 ac_cv_c_bigendian=unknown
14556 else
14557 echo "$as_me: failed program was:" >&5
14558 sed 's/^/| /' conftest.$ac_ext >&5
14561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14562 else
14563 cat >conftest.$ac_ext <<_ACEOF
14564 /* confdefs.h. */
14565 _ACEOF
14566 cat confdefs.h >>conftest.$ac_ext
14567 cat >>conftest.$ac_ext <<_ACEOF
14568 /* end confdefs.h. */
14570 main ()
14572 /* Are we little or big endian? From Harbison&Steele. */
14573 union
14575 long l;
14576 char c[sizeof (long)];
14577 } u;
14578 u.l = 1;
14579 exit (u.c[sizeof (long) - 1] == 1);
14581 _ACEOF
14582 rm -f conftest$ac_exeext
14583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14584 (eval $ac_link) 2>&5
14585 ac_status=$?
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14589 (eval $ac_try) 2>&5
14590 ac_status=$?
14591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14592 (exit $ac_status); }; }; then
14593 ac_cv_c_bigendian=no
14594 else
14595 echo "$as_me: program exited with status $ac_status" >&5
14596 echo "$as_me: failed program was:" >&5
14597 sed 's/^/| /' conftest.$ac_ext >&5
14599 ( exit $ac_status )
14600 ac_cv_c_bigendian=yes
14602 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14607 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14608 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14609 case $ac_cv_c_bigendian in
14610 yes)
14612 cat >>confdefs.h <<\_ACEOF
14613 #define WORDS_BIGENDIAN 1
14614 _ACEOF
14619 { { echo "$as_me:$LINENO: error: unknown endianness
14620 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14621 echo "$as_me: error: unknown endianness
14622 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14623 { (exit 1); exit 1; }; } ;;
14624 esac
14627 ZLIBS=
14628 SYS_ZLIBS=
14629 ZINCS=
14631 if test -z "$ZLIBSPEC"; then
14632 # Use zlib from the GCC tree.
14633 ZINCS='-I$(top_srcdir)/../zlib'
14634 ZLIBS=../zlib/libzgcj_convenience.la
14635 else
14636 # System's zlib.
14637 SYS_ZLIBS="$ZLIBSPEC"
14650 if test "$NATIVE" = yes; then
14651 NATIVE_TRUE=
14652 NATIVE_FALSE='#'
14653 else
14654 NATIVE_TRUE='#'
14655 NATIVE_FALSE=
14660 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
14661 NEEDS_DATA_START_TRUE=
14662 NEEDS_DATA_START_FALSE='#'
14663 else
14664 NEEDS_DATA_START_TRUE='#'
14665 NEEDS_DATA_START_FALSE=
14670 # Process the option "--enable-version-specific-runtime-libs"
14671 # Calculate toolexeclibdir
14672 case ${version_specific_libs} in
14673 yes)
14674 # Need the gcc compiler version to know where to install libraries
14675 # and header files if --enable-version-specific-runtime-libs option
14676 # is selected.
14677 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
14678 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
14679 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
14680 toolexeclibdir=$toolexecmainlibdir
14683 if test -n "$with_cross_host" &&
14684 test x"$with_cross_host" != x"no"; then
14685 # Install a library built with a cross compiler in tooldir, not libdir.
14686 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
14687 toolexecmainlibdir='$(toolexecdir)/lib'
14688 else
14689 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
14690 toolexecmainlibdir='$(libdir)'
14692 multi_os_directory=`$CC -print-multi-os-directory`
14693 case $multi_os_directory in
14694 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
14695 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
14696 esac
14698 esac
14703 # Determine gcj version number.
14704 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
14705 GCJVERSION=$gcjversion
14708 cat >>confdefs.h <<_ACEOF
14709 #define GCJVERSION "$GCJVERSION"
14710 _ACEOF
14714 cat >>confdefs.h <<\_ACEOF
14715 #define JV_VERSION "1.4.2"
14716 _ACEOF
14719 cat >>confdefs.h <<\_ACEOF
14720 #define JV_API_VERSION "1.4"
14721 _ACEOF
14725 case "${with_gxx_include_dir}" in
14726 yes)
14727 { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
14728 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
14729 { (exit 1); exit 1; }; }
14731 no | "")
14732 case "${enable_version_specific_runtime_libs}" in
14733 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
14735 libstdcxx_incdir='c++/$(gcc_version)'
14736 gxx_include_dir='$(prefix)/include/$(libstdcxx_incdir)' ;;
14737 esac ;;
14738 *) gxx_include_dir=${with_gxx_include_dir} ;;
14739 esac
14744 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
14745 # On that system, sys/ioctl.h will not include sys/filio.h unless
14746 # BSD_COMP is defined; just including sys/filio.h is simpler.
14747 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
14748 # for now. If you change this, you also must update natFile.cc.
14769 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
14770 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
14771 sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
14772 pwd.h sys/config.h stdint.h langinfo.h locale.h \
14773 dirent.h
14775 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14777 echo "$as_me:$LINENO: checking for $ac_header" >&5
14778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14780 echo $ECHO_N "(cached) $ECHO_C" >&6
14782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14783 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14784 else
14785 # Is the header compilable?
14786 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14787 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14788 cat >conftest.$ac_ext <<_ACEOF
14789 /* confdefs.h. */
14790 _ACEOF
14791 cat confdefs.h >>conftest.$ac_ext
14792 cat >>conftest.$ac_ext <<_ACEOF
14793 /* end confdefs.h. */
14794 $ac_includes_default
14795 #include <$ac_header>
14796 _ACEOF
14797 rm -f conftest.$ac_objext
14798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14799 (eval $ac_compile) 2>conftest.er1
14800 ac_status=$?
14801 grep -v '^ *+' conftest.er1 >conftest.err
14802 rm -f conftest.er1
14803 cat conftest.err >&5
14804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805 (exit $ac_status); } &&
14806 { ac_try='test -z "$ac_c_werror_flag"
14807 || test ! -s conftest.err'
14808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14809 (eval $ac_try) 2>&5
14810 ac_status=$?
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); }; } &&
14813 { ac_try='test -s conftest.$ac_objext'
14814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14815 (eval $ac_try) 2>&5
14816 ac_status=$?
14817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818 (exit $ac_status); }; }; then
14819 ac_header_compiler=yes
14820 else
14821 echo "$as_me: failed program was:" >&5
14822 sed 's/^/| /' conftest.$ac_ext >&5
14824 ac_header_compiler=no
14826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14827 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14828 echo "${ECHO_T}$ac_header_compiler" >&6
14830 # Is the header present?
14831 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14832 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14833 cat >conftest.$ac_ext <<_ACEOF
14834 /* confdefs.h. */
14835 _ACEOF
14836 cat confdefs.h >>conftest.$ac_ext
14837 cat >>conftest.$ac_ext <<_ACEOF
14838 /* end confdefs.h. */
14839 #include <$ac_header>
14840 _ACEOF
14841 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14842 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14843 ac_status=$?
14844 grep -v '^ *+' conftest.er1 >conftest.err
14845 rm -f conftest.er1
14846 cat conftest.err >&5
14847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848 (exit $ac_status); } >/dev/null; then
14849 if test -s conftest.err; then
14850 ac_cpp_err=$ac_c_preproc_warn_flag
14851 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14852 else
14853 ac_cpp_err=
14855 else
14856 ac_cpp_err=yes
14858 if test -z "$ac_cpp_err"; then
14859 ac_header_preproc=yes
14860 else
14861 echo "$as_me: failed program was:" >&5
14862 sed 's/^/| /' conftest.$ac_ext >&5
14864 ac_header_preproc=no
14866 rm -f conftest.err conftest.$ac_ext
14867 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14868 echo "${ECHO_T}$ac_header_preproc" >&6
14870 # So? What about this header?
14871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14872 yes:no: )
14873 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14874 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14876 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14877 ac_header_preproc=yes
14879 no:yes:* )
14880 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14881 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14882 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14883 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14884 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14885 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14886 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14887 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14889 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14890 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14891 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14893 cat <<\_ASBOX
14894 ## ---------------------------------- ##
14895 ## Report this to the libjava lists. ##
14896 ## ---------------------------------- ##
14897 _ASBOX
14899 sed "s/^/$as_me: WARNING: /" >&2
14901 esac
14902 echo "$as_me:$LINENO: checking for $ac_header" >&5
14903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14905 echo $ECHO_N "(cached) $ECHO_C" >&6
14906 else
14907 eval "$as_ac_Header=\$ac_header_preproc"
14909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14910 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14914 cat >>confdefs.h <<_ACEOF
14915 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14916 _ACEOF
14920 done
14923 for ac_header in inttypes.h
14925 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14927 echo "$as_me:$LINENO: checking for $ac_header" >&5
14928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14930 echo $ECHO_N "(cached) $ECHO_C" >&6
14932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14933 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14934 else
14935 # Is the header compilable?
14936 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14937 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14938 cat >conftest.$ac_ext <<_ACEOF
14939 /* confdefs.h. */
14940 _ACEOF
14941 cat confdefs.h >>conftest.$ac_ext
14942 cat >>conftest.$ac_ext <<_ACEOF
14943 /* end confdefs.h. */
14944 $ac_includes_default
14945 #include <$ac_header>
14946 _ACEOF
14947 rm -f conftest.$ac_objext
14948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14949 (eval $ac_compile) 2>conftest.er1
14950 ac_status=$?
14951 grep -v '^ *+' conftest.er1 >conftest.err
14952 rm -f conftest.er1
14953 cat conftest.err >&5
14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); } &&
14956 { ac_try='test -z "$ac_c_werror_flag"
14957 || test ! -s conftest.err'
14958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14959 (eval $ac_try) 2>&5
14960 ac_status=$?
14961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); }; } &&
14963 { ac_try='test -s conftest.$ac_objext'
14964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14965 (eval $ac_try) 2>&5
14966 ac_status=$?
14967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968 (exit $ac_status); }; }; then
14969 ac_header_compiler=yes
14970 else
14971 echo "$as_me: failed program was:" >&5
14972 sed 's/^/| /' conftest.$ac_ext >&5
14974 ac_header_compiler=no
14976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14977 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14978 echo "${ECHO_T}$ac_header_compiler" >&6
14980 # Is the header present?
14981 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14983 cat >conftest.$ac_ext <<_ACEOF
14984 /* confdefs.h. */
14985 _ACEOF
14986 cat confdefs.h >>conftest.$ac_ext
14987 cat >>conftest.$ac_ext <<_ACEOF
14988 /* end confdefs.h. */
14989 #include <$ac_header>
14990 _ACEOF
14991 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14992 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14993 ac_status=$?
14994 grep -v '^ *+' conftest.er1 >conftest.err
14995 rm -f conftest.er1
14996 cat conftest.err >&5
14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998 (exit $ac_status); } >/dev/null; then
14999 if test -s conftest.err; then
15000 ac_cpp_err=$ac_c_preproc_warn_flag
15001 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15002 else
15003 ac_cpp_err=
15005 else
15006 ac_cpp_err=yes
15008 if test -z "$ac_cpp_err"; then
15009 ac_header_preproc=yes
15010 else
15011 echo "$as_me: failed program was:" >&5
15012 sed 's/^/| /' conftest.$ac_ext >&5
15014 ac_header_preproc=no
15016 rm -f conftest.err conftest.$ac_ext
15017 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15018 echo "${ECHO_T}$ac_header_preproc" >&6
15020 # So? What about this header?
15021 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15022 yes:no: )
15023 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15024 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15026 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15027 ac_header_preproc=yes
15029 no:yes:* )
15030 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15031 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15032 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15033 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15034 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15035 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15036 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15037 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15039 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15040 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15041 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15043 cat <<\_ASBOX
15044 ## ---------------------------------- ##
15045 ## Report this to the libjava lists. ##
15046 ## ---------------------------------- ##
15047 _ASBOX
15049 sed "s/^/$as_me: WARNING: /" >&2
15051 esac
15052 echo "$as_me:$LINENO: checking for $ac_header" >&5
15053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15055 echo $ECHO_N "(cached) $ECHO_C" >&6
15056 else
15057 eval "$as_ac_Header=\$ac_header_preproc"
15059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15064 cat >>confdefs.h <<_ACEOF
15065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15066 _ACEOF
15069 cat >>confdefs.h <<\_ACEOF
15070 #define HAVE_INTTYPES_H 1
15071 _ACEOF
15074 cat >>confdefs.h <<\_ACEOF
15075 #define JV_HAVE_INTTYPES_H 1
15076 _ACEOF
15081 done
15083 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15084 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
15085 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15086 echo $ECHO_N "(cached) $ECHO_C" >&6
15087 else
15088 cat >conftest.$ac_ext <<_ACEOF
15089 /* confdefs.h. */
15090 _ACEOF
15091 cat confdefs.h >>conftest.$ac_ext
15092 cat >>conftest.$ac_ext <<_ACEOF
15093 /* end confdefs.h. */
15094 #include <sys/types.h>
15095 #include <sys/wait.h>
15096 #ifndef WEXITSTATUS
15097 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
15098 #endif
15099 #ifndef WIFEXITED
15100 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15101 #endif
15104 main ()
15106 int s;
15107 wait (&s);
15108 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15110 return 0;
15112 _ACEOF
15113 rm -f conftest.$ac_objext
15114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15115 (eval $ac_compile) 2>conftest.er1
15116 ac_status=$?
15117 grep -v '^ *+' conftest.er1 >conftest.err
15118 rm -f conftest.er1
15119 cat conftest.err >&5
15120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 (exit $ac_status); } &&
15122 { ac_try='test -z "$ac_c_werror_flag"
15123 || test ! -s conftest.err'
15124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15125 (eval $ac_try) 2>&5
15126 ac_status=$?
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); }; } &&
15129 { ac_try='test -s conftest.$ac_objext'
15130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15131 (eval $ac_try) 2>&5
15132 ac_status=$?
15133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134 (exit $ac_status); }; }; then
15135 ac_cv_header_sys_wait_h=yes
15136 else
15137 echo "$as_me: failed program was:" >&5
15138 sed 's/^/| /' conftest.$ac_ext >&5
15140 ac_cv_header_sys_wait_h=no
15142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15144 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15145 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
15146 if test $ac_cv_header_sys_wait_h = yes; then
15148 cat >>confdefs.h <<\_ACEOF
15149 #define HAVE_SYS_WAIT_H 1
15150 _ACEOF
15155 echo "$as_me:$LINENO: checking for ssize_t" >&5
15156 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15157 if test "${ac_cv_type_ssize_t+set}" = set; then
15158 echo $ECHO_N "(cached) $ECHO_C" >&6
15159 else
15160 cat >conftest.$ac_ext <<_ACEOF
15161 /* confdefs.h. */
15162 _ACEOF
15163 cat confdefs.h >>conftest.$ac_ext
15164 cat >>conftest.$ac_ext <<_ACEOF
15165 /* end confdefs.h. */
15166 $ac_includes_default
15168 main ()
15170 if ((ssize_t *) 0)
15171 return 0;
15172 if (sizeof (ssize_t))
15173 return 0;
15175 return 0;
15177 _ACEOF
15178 rm -f conftest.$ac_objext
15179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15180 (eval $ac_compile) 2>conftest.er1
15181 ac_status=$?
15182 grep -v '^ *+' conftest.er1 >conftest.err
15183 rm -f conftest.er1
15184 cat conftest.err >&5
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); } &&
15187 { ac_try='test -z "$ac_c_werror_flag"
15188 || test ! -s conftest.err'
15189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15190 (eval $ac_try) 2>&5
15191 ac_status=$?
15192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15193 (exit $ac_status); }; } &&
15194 { ac_try='test -s conftest.$ac_objext'
15195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15196 (eval $ac_try) 2>&5
15197 ac_status=$?
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); }; }; then
15200 ac_cv_type_ssize_t=yes
15201 else
15202 echo "$as_me: failed program was:" >&5
15203 sed 's/^/| /' conftest.$ac_ext >&5
15205 ac_cv_type_ssize_t=no
15207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15209 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
15210 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
15211 if test $ac_cv_type_ssize_t = yes; then
15213 else
15215 cat >>confdefs.h <<_ACEOF
15216 #define ssize_t int
15217 _ACEOF
15222 echo "$as_me:$LINENO: checking for in_addr_t" >&5
15223 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
15224 cat >conftest.$ac_ext <<_ACEOF
15225 /* confdefs.h. */
15226 _ACEOF
15227 cat confdefs.h >>conftest.$ac_ext
15228 cat >>conftest.$ac_ext <<_ACEOF
15229 /* end confdefs.h. */
15230 #include <sys/types.h>
15231 #if STDC_HEADERS
15232 #include <stdlib.h>
15233 #include <stddef.h>
15234 #endif
15235 #if HAVE_NETINET_IN_H
15236 #include <netinet/in.h>
15237 #endif
15239 main ()
15241 in_addr_t foo;
15243 return 0;
15245 _ACEOF
15246 rm -f conftest.$ac_objext
15247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15248 (eval $ac_compile) 2>conftest.er1
15249 ac_status=$?
15250 grep -v '^ *+' conftest.er1 >conftest.err
15251 rm -f conftest.er1
15252 cat conftest.err >&5
15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); } &&
15255 { ac_try='test -z "$ac_c_werror_flag"
15256 || test ! -s conftest.err'
15257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15258 (eval $ac_try) 2>&5
15259 ac_status=$?
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); }; } &&
15262 { ac_try='test -s conftest.$ac_objext'
15263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15264 (eval $ac_try) 2>&5
15265 ac_status=$?
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); }; }; then
15269 cat >>confdefs.h <<\_ACEOF
15270 #define HAVE_IN_ADDR_T 1
15271 _ACEOF
15273 echo "$as_me:$LINENO: result: yes" >&5
15274 echo "${ECHO_T}yes" >&6
15275 else
15276 echo "$as_me: failed program was:" >&5
15277 sed 's/^/| /' conftest.$ac_ext >&5
15279 echo "$as_me:$LINENO: result: no" >&5
15280 echo "${ECHO_T}no" >&6
15282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15284 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
15285 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
15286 cat >conftest.$ac_ext <<_ACEOF
15287 /* confdefs.h. */
15288 _ACEOF
15289 cat confdefs.h >>conftest.$ac_ext
15290 cat >>conftest.$ac_ext <<_ACEOF
15291 /* end confdefs.h. */
15292 #include <netinet/in.h>
15294 main ()
15296 struct ip_mreq mreq;
15298 return 0;
15300 _ACEOF
15301 rm -f conftest.$ac_objext
15302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15303 (eval $ac_compile) 2>conftest.er1
15304 ac_status=$?
15305 grep -v '^ *+' conftest.er1 >conftest.err
15306 rm -f conftest.er1
15307 cat conftest.err >&5
15308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309 (exit $ac_status); } &&
15310 { ac_try='test -z "$ac_c_werror_flag"
15311 || test ! -s conftest.err'
15312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15313 (eval $ac_try) 2>&5
15314 ac_status=$?
15315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316 (exit $ac_status); }; } &&
15317 { ac_try='test -s conftest.$ac_objext'
15318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15319 (eval $ac_try) 2>&5
15320 ac_status=$?
15321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322 (exit $ac_status); }; }; then
15324 cat >>confdefs.h <<\_ACEOF
15325 #define HAVE_STRUCT_IP_MREQ 1
15326 _ACEOF
15328 echo "$as_me:$LINENO: result: yes" >&5
15329 echo "${ECHO_T}yes" >&6
15330 else
15331 echo "$as_me: failed program was:" >&5
15332 sed 's/^/| /' conftest.$ac_ext >&5
15334 echo "$as_me:$LINENO: result: no" >&5
15335 echo "${ECHO_T}no" >&6
15337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15339 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
15340 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
15341 cat >conftest.$ac_ext <<_ACEOF
15342 /* confdefs.h. */
15343 _ACEOF
15344 cat confdefs.h >>conftest.$ac_ext
15345 cat >>conftest.$ac_ext <<_ACEOF
15346 /* end confdefs.h. */
15347 #include <netinet/in.h>
15349 main ()
15351 struct ipv6_mreq mreq6;
15353 return 0;
15355 _ACEOF
15356 rm -f conftest.$ac_objext
15357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15358 (eval $ac_compile) 2>conftest.er1
15359 ac_status=$?
15360 grep -v '^ *+' conftest.er1 >conftest.err
15361 rm -f conftest.er1
15362 cat conftest.err >&5
15363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364 (exit $ac_status); } &&
15365 { ac_try='test -z "$ac_c_werror_flag"
15366 || test ! -s conftest.err'
15367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15368 (eval $ac_try) 2>&5
15369 ac_status=$?
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); }; } &&
15372 { ac_try='test -s conftest.$ac_objext'
15373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15374 (eval $ac_try) 2>&5
15375 ac_status=$?
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); }; }; then
15379 cat >>confdefs.h <<\_ACEOF
15380 #define HAVE_STRUCT_IPV6_MREQ 1
15381 _ACEOF
15383 echo "$as_me:$LINENO: result: yes" >&5
15384 echo "${ECHO_T}yes" >&6
15385 else
15386 echo "$as_me: failed program was:" >&5
15387 sed 's/^/| /' conftest.$ac_ext >&5
15389 echo "$as_me:$LINENO: result: no" >&5
15390 echo "${ECHO_T}no" >&6
15392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15394 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
15395 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
15396 cat >conftest.$ac_ext <<_ACEOF
15397 /* confdefs.h. */
15398 _ACEOF
15399 cat confdefs.h >>conftest.$ac_ext
15400 cat >>conftest.$ac_ext <<_ACEOF
15401 /* end confdefs.h. */
15402 #include <netinet/in.h>
15404 main ()
15406 struct sockaddr_in6 addr6;
15408 return 0;
15410 _ACEOF
15411 rm -f conftest.$ac_objext
15412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15413 (eval $ac_compile) 2>conftest.er1
15414 ac_status=$?
15415 grep -v '^ *+' conftest.er1 >conftest.err
15416 rm -f conftest.er1
15417 cat conftest.err >&5
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); } &&
15420 { ac_try='test -z "$ac_c_werror_flag"
15421 || test ! -s conftest.err'
15422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15423 (eval $ac_try) 2>&5
15424 ac_status=$?
15425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426 (exit $ac_status); }; } &&
15427 { ac_try='test -s conftest.$ac_objext'
15428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15429 (eval $ac_try) 2>&5
15430 ac_status=$?
15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432 (exit $ac_status); }; }; then
15434 cat >>confdefs.h <<\_ACEOF
15435 #define HAVE_INET6 1
15436 _ACEOF
15438 echo "$as_me:$LINENO: result: yes" >&5
15439 echo "${ECHO_T}yes" >&6
15440 else
15441 echo "$as_me: failed program was:" >&5
15442 sed 's/^/| /' conftest.$ac_ext >&5
15444 echo "$as_me:$LINENO: result: no" >&5
15445 echo "${ECHO_T}no" >&6
15447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15449 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
15450 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
15451 cat >conftest.$ac_ext <<_ACEOF
15452 /* confdefs.h. */
15453 _ACEOF
15454 cat confdefs.h >>conftest.$ac_ext
15455 cat >>conftest.$ac_ext <<_ACEOF
15456 /* end confdefs.h. */
15457 #define _POSIX_PII_SOCKET
15458 #include <sys/types.h>
15459 #include <sys/socket.h>
15461 main ()
15463 socklen_t x = 5;
15465 return 0;
15467 _ACEOF
15468 rm -f conftest.$ac_objext
15469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15470 (eval $ac_compile) 2>conftest.er1
15471 ac_status=$?
15472 grep -v '^ *+' conftest.er1 >conftest.err
15473 rm -f conftest.er1
15474 cat conftest.err >&5
15475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476 (exit $ac_status); } &&
15477 { ac_try='test -z "$ac_c_werror_flag"
15478 || test ! -s conftest.err'
15479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15480 (eval $ac_try) 2>&5
15481 ac_status=$?
15482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483 (exit $ac_status); }; } &&
15484 { ac_try='test -s conftest.$ac_objext'
15485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15486 (eval $ac_try) 2>&5
15487 ac_status=$?
15488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489 (exit $ac_status); }; }; then
15491 cat >>confdefs.h <<\_ACEOF
15492 #define HAVE_SOCKLEN_T 1
15493 _ACEOF
15495 echo "$as_me:$LINENO: result: yes" >&5
15496 echo "${ECHO_T}yes" >&6
15497 else
15498 echo "$as_me: failed program was:" >&5
15499 sed 's/^/| /' conftest.$ac_ext >&5
15501 echo "$as_me:$LINENO: result: no" >&5
15502 echo "${ECHO_T}no" >&6
15504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15506 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
15507 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
15508 cat >conftest.$ac_ext <<_ACEOF
15509 /* confdefs.h. */
15510 _ACEOF
15511 cat confdefs.h >>conftest.$ac_ext
15512 cat >>conftest.$ac_ext <<_ACEOF
15513 /* end confdefs.h. */
15514 #include <time.h>
15516 main ()
15518 struct tm tim; tim.tm_gmtoff = 0;
15520 return 0;
15522 _ACEOF
15523 rm -f conftest.$ac_objext
15524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15525 (eval $ac_compile) 2>conftest.er1
15526 ac_status=$?
15527 grep -v '^ *+' conftest.er1 >conftest.err
15528 rm -f conftest.er1
15529 cat conftest.err >&5
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); } &&
15532 { ac_try='test -z "$ac_c_werror_flag"
15533 || test ! -s conftest.err'
15534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15535 (eval $ac_try) 2>&5
15536 ac_status=$?
15537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538 (exit $ac_status); }; } &&
15539 { ac_try='test -s conftest.$ac_objext'
15540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15541 (eval $ac_try) 2>&5
15542 ac_status=$?
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); }; }; then
15546 cat >>confdefs.h <<\_ACEOF
15547 #define STRUCT_TM_HAS_GMTOFF 1
15548 _ACEOF
15550 echo "$as_me:$LINENO: result: yes" >&5
15551 echo "${ECHO_T}yes" >&6
15552 else
15553 echo "$as_me: failed program was:" >&5
15554 sed 's/^/| /' conftest.$ac_ext >&5
15556 echo "$as_me:$LINENO: result: no" >&5
15557 echo "${ECHO_T}no" >&6
15558 echo "$as_me:$LINENO: checking for global timezone variable" >&5
15559 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
15560 cat >conftest.$ac_ext <<_ACEOF
15561 /* confdefs.h. */
15562 _ACEOF
15563 cat confdefs.h >>conftest.$ac_ext
15564 cat >>conftest.$ac_ext <<_ACEOF
15565 /* end confdefs.h. */
15566 #include <time.h>
15568 main ()
15570 void i(){long z2 = 2*timezone;}
15572 return 0;
15574 _ACEOF
15575 rm -f conftest.$ac_objext
15576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15577 (eval $ac_compile) 2>conftest.er1
15578 ac_status=$?
15579 grep -v '^ *+' conftest.er1 >conftest.err
15580 rm -f conftest.er1
15581 cat conftest.err >&5
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); } &&
15584 { ac_try='test -z "$ac_c_werror_flag"
15585 || test ! -s conftest.err'
15586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15587 (eval $ac_try) 2>&5
15588 ac_status=$?
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); }; } &&
15591 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15598 cat >>confdefs.h <<\_ACEOF
15599 #define HAVE_TIMEZONE 1
15600 _ACEOF
15602 echo "$as_me:$LINENO: result: yes" >&5
15603 echo "${ECHO_T}yes" >&6
15604 else
15605 echo "$as_me: failed program was:" >&5
15606 sed 's/^/| /' conftest.$ac_ext >&5
15608 echo "$as_me:$LINENO: result: no" >&5
15609 echo "${ECHO_T}no" >&6
15610 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
15611 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
15612 cat >conftest.$ac_ext <<_ACEOF
15613 /* confdefs.h. */
15614 _ACEOF
15615 cat confdefs.h >>conftest.$ac_ext
15616 cat >>conftest.$ac_ext <<_ACEOF
15617 /* end confdefs.h. */
15618 #include <time.h>
15620 main ()
15622 long z2 = _timezone;
15624 return 0;
15626 _ACEOF
15627 rm -f conftest.$ac_objext
15628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15629 (eval $ac_compile) 2>conftest.er1
15630 ac_status=$?
15631 grep -v '^ *+' conftest.er1 >conftest.err
15632 rm -f conftest.er1
15633 cat conftest.err >&5
15634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15635 (exit $ac_status); } &&
15636 { ac_try='test -z "$ac_c_werror_flag"
15637 || test ! -s conftest.err'
15638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15639 (eval $ac_try) 2>&5
15640 ac_status=$?
15641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642 (exit $ac_status); }; } &&
15643 { ac_try='test -s conftest.$ac_objext'
15644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15645 (eval $ac_try) 2>&5
15646 ac_status=$?
15647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648 (exit $ac_status); }; }; then
15650 cat >>confdefs.h <<\_ACEOF
15651 #define HAVE_UNDERSCORE_TIMEZONE 1
15652 _ACEOF
15654 echo "$as_me:$LINENO: result: yes" >&5
15655 echo "${ECHO_T}yes" >&6
15656 else
15657 echo "$as_me: failed program was:" >&5
15658 sed 's/^/| /' conftest.$ac_ext >&5
15660 echo "$as_me:$LINENO: result: no" >&5
15661 echo "${ECHO_T}no" >&6
15663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15669 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15670 # for constant arguments. Useless!
15671 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15672 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15673 if test "${ac_cv_working_alloca_h+set}" = set; then
15674 echo $ECHO_N "(cached) $ECHO_C" >&6
15675 else
15676 if test x$gcc_no_link = xyes; then
15677 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15678 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15679 { (exit 1); exit 1; }; }
15681 cat >conftest.$ac_ext <<_ACEOF
15682 /* confdefs.h. */
15683 _ACEOF
15684 cat confdefs.h >>conftest.$ac_ext
15685 cat >>conftest.$ac_ext <<_ACEOF
15686 /* end confdefs.h. */
15687 #include <alloca.h>
15689 main ()
15691 char *p = (char *) alloca (2 * sizeof (int));
15693 return 0;
15695 _ACEOF
15696 rm -f conftest.$ac_objext conftest$ac_exeext
15697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15698 (eval $ac_link) 2>conftest.er1
15699 ac_status=$?
15700 grep -v '^ *+' conftest.er1 >conftest.err
15701 rm -f conftest.er1
15702 cat conftest.err >&5
15703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704 (exit $ac_status); } &&
15705 { ac_try='test -z "$ac_c_werror_flag"
15706 || test ! -s conftest.err'
15707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15708 (eval $ac_try) 2>&5
15709 ac_status=$?
15710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711 (exit $ac_status); }; } &&
15712 { ac_try='test -s conftest$ac_exeext'
15713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15714 (eval $ac_try) 2>&5
15715 ac_status=$?
15716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717 (exit $ac_status); }; }; then
15718 ac_cv_working_alloca_h=yes
15719 else
15720 echo "$as_me: failed program was:" >&5
15721 sed 's/^/| /' conftest.$ac_ext >&5
15723 ac_cv_working_alloca_h=no
15725 rm -f conftest.err conftest.$ac_objext \
15726 conftest$ac_exeext conftest.$ac_ext
15728 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15729 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15730 if test $ac_cv_working_alloca_h = yes; then
15732 cat >>confdefs.h <<\_ACEOF
15733 #define HAVE_ALLOCA_H 1
15734 _ACEOF
15738 echo "$as_me:$LINENO: checking for alloca" >&5
15739 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15740 if test "${ac_cv_func_alloca_works+set}" = set; then
15741 echo $ECHO_N "(cached) $ECHO_C" >&6
15742 else
15743 if test x$gcc_no_link = xyes; then
15744 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15745 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15746 { (exit 1); exit 1; }; }
15748 cat >conftest.$ac_ext <<_ACEOF
15749 /* confdefs.h. */
15750 _ACEOF
15751 cat confdefs.h >>conftest.$ac_ext
15752 cat >>conftest.$ac_ext <<_ACEOF
15753 /* end confdefs.h. */
15754 #ifdef __GNUC__
15755 # define alloca __builtin_alloca
15756 #else
15757 # ifdef _MSC_VER
15758 # include <malloc.h>
15759 # define alloca _alloca
15760 # else
15761 # if HAVE_ALLOCA_H
15762 # include <alloca.h>
15763 # else
15764 # ifdef _AIX
15765 #pragma alloca
15766 # else
15767 # ifndef alloca /* predefined by HP cc +Olibcalls */
15768 char *alloca ();
15769 # endif
15770 # endif
15771 # endif
15772 # endif
15773 #endif
15776 main ()
15778 char *p = (char *) alloca (1);
15780 return 0;
15782 _ACEOF
15783 rm -f conftest.$ac_objext conftest$ac_exeext
15784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15785 (eval $ac_link) 2>conftest.er1
15786 ac_status=$?
15787 grep -v '^ *+' conftest.er1 >conftest.err
15788 rm -f conftest.er1
15789 cat conftest.err >&5
15790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791 (exit $ac_status); } &&
15792 { ac_try='test -z "$ac_c_werror_flag"
15793 || test ! -s conftest.err'
15794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15795 (eval $ac_try) 2>&5
15796 ac_status=$?
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 (exit $ac_status); }; } &&
15799 { ac_try='test -s conftest$ac_exeext'
15800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15801 (eval $ac_try) 2>&5
15802 ac_status=$?
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); }; }; then
15805 ac_cv_func_alloca_works=yes
15806 else
15807 echo "$as_me: failed program was:" >&5
15808 sed 's/^/| /' conftest.$ac_ext >&5
15810 ac_cv_func_alloca_works=no
15812 rm -f conftest.err conftest.$ac_objext \
15813 conftest$ac_exeext conftest.$ac_ext
15815 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15816 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15818 if test $ac_cv_func_alloca_works = yes; then
15820 cat >>confdefs.h <<\_ACEOF
15821 #define HAVE_ALLOCA 1
15822 _ACEOF
15824 else
15825 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15826 # that cause trouble. Some versions do not even contain alloca or
15827 # contain a buggy version. If you still want to use their alloca,
15828 # use ar to extract alloca.o from them instead of compiling alloca.c.
15830 ALLOCA=alloca.$ac_objext
15832 cat >>confdefs.h <<\_ACEOF
15833 #define C_ALLOCA 1
15834 _ACEOF
15837 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15838 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15839 if test "${ac_cv_os_cray+set}" = set; then
15840 echo $ECHO_N "(cached) $ECHO_C" >&6
15841 else
15842 cat >conftest.$ac_ext <<_ACEOF
15843 /* confdefs.h. */
15844 _ACEOF
15845 cat confdefs.h >>conftest.$ac_ext
15846 cat >>conftest.$ac_ext <<_ACEOF
15847 /* end confdefs.h. */
15848 #if defined(CRAY) && ! defined(CRAY2)
15849 webecray
15850 #else
15851 wenotbecray
15852 #endif
15854 _ACEOF
15855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15856 $EGREP "webecray" >/dev/null 2>&1; then
15857 ac_cv_os_cray=yes
15858 else
15859 ac_cv_os_cray=no
15861 rm -f conftest*
15864 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15865 echo "${ECHO_T}$ac_cv_os_cray" >&6
15866 if test $ac_cv_os_cray = yes; then
15867 for ac_func in _getb67 GETB67 getb67; do
15868 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15869 echo "$as_me:$LINENO: checking for $ac_func" >&5
15870 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15871 if eval "test \"\${$as_ac_var+set}\" = set"; then
15872 echo $ECHO_N "(cached) $ECHO_C" >&6
15873 else
15874 if test x$gcc_no_link = xyes; then
15875 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15876 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15877 { (exit 1); exit 1; }; }
15879 cat >conftest.$ac_ext <<_ACEOF
15880 /* confdefs.h. */
15881 _ACEOF
15882 cat confdefs.h >>conftest.$ac_ext
15883 cat >>conftest.$ac_ext <<_ACEOF
15884 /* end confdefs.h. */
15885 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15887 #define $ac_func innocuous_$ac_func
15889 /* System header to define __stub macros and hopefully few prototypes,
15890 which can conflict with char $ac_func (); below.
15891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15892 <limits.h> exists even on freestanding compilers. */
15894 #ifdef __STDC__
15895 # include <limits.h>
15896 #else
15897 # include <assert.h>
15898 #endif
15900 #undef $ac_func
15902 /* Override any gcc2 internal prototype to avoid an error. */
15903 #ifdef __cplusplus
15904 extern "C"
15906 #endif
15907 /* We use char because int might match the return type of a gcc2
15908 builtin and then its argument prototype would still apply. */
15909 char $ac_func ();
15910 /* The GNU C library defines this for functions which it implements
15911 to always fail with ENOSYS. Some functions are actually named
15912 something starting with __ and the normal name is an alias. */
15913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15914 choke me
15915 #else
15916 char (*f) () = $ac_func;
15917 #endif
15918 #ifdef __cplusplus
15920 #endif
15923 main ()
15925 return f != $ac_func;
15927 return 0;
15929 _ACEOF
15930 rm -f conftest.$ac_objext conftest$ac_exeext
15931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15932 (eval $ac_link) 2>conftest.er1
15933 ac_status=$?
15934 grep -v '^ *+' conftest.er1 >conftest.err
15935 rm -f conftest.er1
15936 cat conftest.err >&5
15937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938 (exit $ac_status); } &&
15939 { ac_try='test -z "$ac_c_werror_flag"
15940 || test ! -s conftest.err'
15941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15942 (eval $ac_try) 2>&5
15943 ac_status=$?
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); }; } &&
15946 { ac_try='test -s conftest$ac_exeext'
15947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15948 (eval $ac_try) 2>&5
15949 ac_status=$?
15950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951 (exit $ac_status); }; }; then
15952 eval "$as_ac_var=yes"
15953 else
15954 echo "$as_me: failed program was:" >&5
15955 sed 's/^/| /' conftest.$ac_ext >&5
15957 eval "$as_ac_var=no"
15959 rm -f conftest.err conftest.$ac_objext \
15960 conftest$ac_exeext conftest.$ac_ext
15962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15963 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15964 if test `eval echo '${'$as_ac_var'}'` = yes; then
15966 cat >>confdefs.h <<_ACEOF
15967 #define CRAY_STACKSEG_END $ac_func
15968 _ACEOF
15970 break
15973 done
15976 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15977 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15978 if test "${ac_cv_c_stack_direction+set}" = set; then
15979 echo $ECHO_N "(cached) $ECHO_C" >&6
15980 else
15981 if test "$cross_compiling" = yes; then
15982 ac_cv_c_stack_direction=0
15983 else
15984 cat >conftest.$ac_ext <<_ACEOF
15985 /* confdefs.h. */
15986 _ACEOF
15987 cat confdefs.h >>conftest.$ac_ext
15988 cat >>conftest.$ac_ext <<_ACEOF
15989 /* end confdefs.h. */
15991 find_stack_direction ()
15993 static char *addr = 0;
15994 auto char dummy;
15995 if (addr == 0)
15997 addr = &dummy;
15998 return find_stack_direction ();
16000 else
16001 return (&dummy > addr) ? 1 : -1;
16005 main ()
16007 exit (find_stack_direction () < 0);
16009 _ACEOF
16010 rm -f conftest$ac_exeext
16011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16012 (eval $ac_link) 2>&5
16013 ac_status=$?
16014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16017 (eval $ac_try) 2>&5
16018 ac_status=$?
16019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020 (exit $ac_status); }; }; then
16021 ac_cv_c_stack_direction=1
16022 else
16023 echo "$as_me: program exited with status $ac_status" >&5
16024 echo "$as_me: failed program was:" >&5
16025 sed 's/^/| /' conftest.$ac_ext >&5
16027 ( exit $ac_status )
16028 ac_cv_c_stack_direction=-1
16030 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16033 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16034 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16036 cat >>confdefs.h <<_ACEOF
16037 #define STACK_DIRECTION $ac_cv_c_stack_direction
16038 _ACEOF
16043 if test x$gcc_no_link = xyes; then
16044 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
16045 ac_cv_func_mmap_fixed_mapped=no
16048 if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
16051 for ac_header in stdlib.h unistd.h
16053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16055 echo "$as_me:$LINENO: checking for $ac_header" >&5
16056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16058 echo $ECHO_N "(cached) $ECHO_C" >&6
16060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16061 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16062 else
16063 # Is the header compilable?
16064 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16065 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16066 cat >conftest.$ac_ext <<_ACEOF
16067 /* confdefs.h. */
16068 _ACEOF
16069 cat confdefs.h >>conftest.$ac_ext
16070 cat >>conftest.$ac_ext <<_ACEOF
16071 /* end confdefs.h. */
16072 $ac_includes_default
16073 #include <$ac_header>
16074 _ACEOF
16075 rm -f conftest.$ac_objext
16076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16077 (eval $ac_compile) 2>conftest.er1
16078 ac_status=$?
16079 grep -v '^ *+' conftest.er1 >conftest.err
16080 rm -f conftest.er1
16081 cat conftest.err >&5
16082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); } &&
16084 { ac_try='test -z "$ac_c_werror_flag"
16085 || test ! -s conftest.err'
16086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16087 (eval $ac_try) 2>&5
16088 ac_status=$?
16089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090 (exit $ac_status); }; } &&
16091 { ac_try='test -s conftest.$ac_objext'
16092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16093 (eval $ac_try) 2>&5
16094 ac_status=$?
16095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096 (exit $ac_status); }; }; then
16097 ac_header_compiler=yes
16098 else
16099 echo "$as_me: failed program was:" >&5
16100 sed 's/^/| /' conftest.$ac_ext >&5
16102 ac_header_compiler=no
16104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16105 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16106 echo "${ECHO_T}$ac_header_compiler" >&6
16108 # Is the header present?
16109 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16110 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16111 cat >conftest.$ac_ext <<_ACEOF
16112 /* confdefs.h. */
16113 _ACEOF
16114 cat confdefs.h >>conftest.$ac_ext
16115 cat >>conftest.$ac_ext <<_ACEOF
16116 /* end confdefs.h. */
16117 #include <$ac_header>
16118 _ACEOF
16119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16120 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16121 ac_status=$?
16122 grep -v '^ *+' conftest.er1 >conftest.err
16123 rm -f conftest.er1
16124 cat conftest.err >&5
16125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126 (exit $ac_status); } >/dev/null; then
16127 if test -s conftest.err; then
16128 ac_cpp_err=$ac_c_preproc_warn_flag
16129 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16130 else
16131 ac_cpp_err=
16133 else
16134 ac_cpp_err=yes
16136 if test -z "$ac_cpp_err"; then
16137 ac_header_preproc=yes
16138 else
16139 echo "$as_me: failed program was:" >&5
16140 sed 's/^/| /' conftest.$ac_ext >&5
16142 ac_header_preproc=no
16144 rm -f conftest.err conftest.$ac_ext
16145 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16146 echo "${ECHO_T}$ac_header_preproc" >&6
16148 # So? What about this header?
16149 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16150 yes:no: )
16151 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16152 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16154 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16155 ac_header_preproc=yes
16157 no:yes:* )
16158 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16159 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16160 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16161 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16162 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16163 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16164 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16165 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16167 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16168 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16169 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16171 cat <<\_ASBOX
16172 ## ---------------------------------- ##
16173 ## Report this to the libjava lists. ##
16174 ## ---------------------------------- ##
16175 _ASBOX
16177 sed "s/^/$as_me: WARNING: /" >&2
16179 esac
16180 echo "$as_me:$LINENO: checking for $ac_header" >&5
16181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16183 echo $ECHO_N "(cached) $ECHO_C" >&6
16184 else
16185 eval "$as_ac_Header=\$ac_header_preproc"
16187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16188 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16191 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16192 cat >>confdefs.h <<_ACEOF
16193 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16194 _ACEOF
16198 done
16201 for ac_func in getpagesize
16203 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16204 echo "$as_me:$LINENO: checking for $ac_func" >&5
16205 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16206 if eval "test \"\${$as_ac_var+set}\" = set"; then
16207 echo $ECHO_N "(cached) $ECHO_C" >&6
16208 else
16209 if test x$gcc_no_link = xyes; then
16210 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16211 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16212 { (exit 1); exit 1; }; }
16214 cat >conftest.$ac_ext <<_ACEOF
16215 /* confdefs.h. */
16216 _ACEOF
16217 cat confdefs.h >>conftest.$ac_ext
16218 cat >>conftest.$ac_ext <<_ACEOF
16219 /* end confdefs.h. */
16220 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16222 #define $ac_func innocuous_$ac_func
16224 /* System header to define __stub macros and hopefully few prototypes,
16225 which can conflict with char $ac_func (); below.
16226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16227 <limits.h> exists even on freestanding compilers. */
16229 #ifdef __STDC__
16230 # include <limits.h>
16231 #else
16232 # include <assert.h>
16233 #endif
16235 #undef $ac_func
16237 /* Override any gcc2 internal prototype to avoid an error. */
16238 #ifdef __cplusplus
16239 extern "C"
16241 #endif
16242 /* We use char because int might match the return type of a gcc2
16243 builtin and then its argument prototype would still apply. */
16244 char $ac_func ();
16245 /* The GNU C library defines this for functions which it implements
16246 to always fail with ENOSYS. Some functions are actually named
16247 something starting with __ and the normal name is an alias. */
16248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16249 choke me
16250 #else
16251 char (*f) () = $ac_func;
16252 #endif
16253 #ifdef __cplusplus
16255 #endif
16258 main ()
16260 return f != $ac_func;
16262 return 0;
16264 _ACEOF
16265 rm -f conftest.$ac_objext conftest$ac_exeext
16266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16267 (eval $ac_link) 2>conftest.er1
16268 ac_status=$?
16269 grep -v '^ *+' conftest.er1 >conftest.err
16270 rm -f conftest.er1
16271 cat conftest.err >&5
16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); } &&
16274 { ac_try='test -z "$ac_c_werror_flag"
16275 || test ! -s conftest.err'
16276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16277 (eval $ac_try) 2>&5
16278 ac_status=$?
16279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 (exit $ac_status); }; } &&
16281 { ac_try='test -s conftest$ac_exeext'
16282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16283 (eval $ac_try) 2>&5
16284 ac_status=$?
16285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286 (exit $ac_status); }; }; then
16287 eval "$as_ac_var=yes"
16288 else
16289 echo "$as_me: failed program was:" >&5
16290 sed 's/^/| /' conftest.$ac_ext >&5
16292 eval "$as_ac_var=no"
16294 rm -f conftest.err conftest.$ac_objext \
16295 conftest$ac_exeext conftest.$ac_ext
16297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16298 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16299 if test `eval echo '${'$as_ac_var'}'` = yes; then
16300 cat >>confdefs.h <<_ACEOF
16301 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16302 _ACEOF
16305 done
16307 echo "$as_me:$LINENO: checking for working mmap" >&5
16308 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
16309 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
16310 echo $ECHO_N "(cached) $ECHO_C" >&6
16311 else
16312 if test "$cross_compiling" = yes; then
16313 ac_cv_func_mmap_fixed_mapped=no
16314 else
16315 cat >conftest.$ac_ext <<_ACEOF
16316 /* confdefs.h. */
16317 _ACEOF
16318 cat confdefs.h >>conftest.$ac_ext
16319 cat >>conftest.$ac_ext <<_ACEOF
16320 /* end confdefs.h. */
16321 $ac_includes_default
16322 /* malloc might have been renamed as rpl_malloc. */
16323 #undef malloc
16325 /* Thanks to Mike Haertel and Jim Avera for this test.
16326 Here is a matrix of mmap possibilities:
16327 mmap private not fixed
16328 mmap private fixed at somewhere currently unmapped
16329 mmap private fixed at somewhere already mapped
16330 mmap shared not fixed
16331 mmap shared fixed at somewhere currently unmapped
16332 mmap shared fixed at somewhere already mapped
16333 For private mappings, we should verify that changes cannot be read()
16334 back from the file, nor mmap's back from the file at a different
16335 address. (There have been systems where private was not correctly
16336 implemented like the infamous i386 svr4.0, and systems where the
16337 VM page cache was not coherent with the file system buffer cache
16338 like early versions of FreeBSD and possibly contemporary NetBSD.)
16339 For shared mappings, we should conversely verify that changes get
16340 propagated back to all the places they're supposed to be.
16342 Grep wants private fixed already mapped.
16343 The main things grep needs to know about mmap are:
16344 * does it exist and is it safe to write into the mmap'd area
16345 * how to use it (BSD variants) */
16347 #include <fcntl.h>
16348 #include <sys/mman.h>
16350 #if !STDC_HEADERS && !HAVE_STDLIB_H
16351 char *malloc ();
16352 #endif
16354 /* This mess was copied from the GNU getpagesize.h. */
16355 #if !HAVE_GETPAGESIZE
16356 /* Assume that all systems that can run configure have sys/param.h. */
16357 # if !HAVE_SYS_PARAM_H
16358 # define HAVE_SYS_PARAM_H 1
16359 # endif
16361 # ifdef _SC_PAGESIZE
16362 # define getpagesize() sysconf(_SC_PAGESIZE)
16363 # else /* no _SC_PAGESIZE */
16364 # if HAVE_SYS_PARAM_H
16365 # include <sys/param.h>
16366 # ifdef EXEC_PAGESIZE
16367 # define getpagesize() EXEC_PAGESIZE
16368 # else /* no EXEC_PAGESIZE */
16369 # ifdef NBPG
16370 # define getpagesize() NBPG * CLSIZE
16371 # ifndef CLSIZE
16372 # define CLSIZE 1
16373 # endif /* no CLSIZE */
16374 # else /* no NBPG */
16375 # ifdef NBPC
16376 # define getpagesize() NBPC
16377 # else /* no NBPC */
16378 # ifdef PAGESIZE
16379 # define getpagesize() PAGESIZE
16380 # endif /* PAGESIZE */
16381 # endif /* no NBPC */
16382 # endif /* no NBPG */
16383 # endif /* no EXEC_PAGESIZE */
16384 # else /* no HAVE_SYS_PARAM_H */
16385 # define getpagesize() 8192 /* punt totally */
16386 # endif /* no HAVE_SYS_PARAM_H */
16387 # endif /* no _SC_PAGESIZE */
16389 #endif /* no HAVE_GETPAGESIZE */
16392 main ()
16394 char *data, *data2, *data3;
16395 int i, pagesize;
16396 int fd;
16398 pagesize = getpagesize ();
16400 /* First, make a file with some known garbage in it. */
16401 data = (char *) malloc (pagesize);
16402 if (!data)
16403 exit (1);
16404 for (i = 0; i < pagesize; ++i)
16405 *(data + i) = rand ();
16406 umask (0);
16407 fd = creat ("conftest.mmap", 0600);
16408 if (fd < 0)
16409 exit (1);
16410 if (write (fd, data, pagesize) != pagesize)
16411 exit (1);
16412 close (fd);
16414 /* Next, try to mmap the file at a fixed address which already has
16415 something else allocated at it. If we can, also make sure that
16416 we see the same garbage. */
16417 fd = open ("conftest.mmap", O_RDWR);
16418 if (fd < 0)
16419 exit (1);
16420 data2 = (char *) malloc (2 * pagesize);
16421 if (!data2)
16422 exit (1);
16423 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
16424 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16425 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16426 exit (1);
16427 for (i = 0; i < pagesize; ++i)
16428 if (*(data + i) != *(data2 + i))
16429 exit (1);
16431 /* Finally, make sure that changes to the mapped area do not
16432 percolate back to the file as seen by read(). (This is a bug on
16433 some variants of i386 svr4.0.) */
16434 for (i = 0; i < pagesize; ++i)
16435 *(data2 + i) = *(data2 + i) + 1;
16436 data3 = (char *) malloc (pagesize);
16437 if (!data3)
16438 exit (1);
16439 if (read (fd, data3, pagesize) != pagesize)
16440 exit (1);
16441 for (i = 0; i < pagesize; ++i)
16442 if (*(data + i) != *(data3 + i))
16443 exit (1);
16444 close (fd);
16445 exit (0);
16447 _ACEOF
16448 rm -f conftest$ac_exeext
16449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16450 (eval $ac_link) 2>&5
16451 ac_status=$?
16452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16455 (eval $ac_try) 2>&5
16456 ac_status=$?
16457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458 (exit $ac_status); }; }; then
16459 ac_cv_func_mmap_fixed_mapped=yes
16460 else
16461 echo "$as_me: program exited with status $ac_status" >&5
16462 echo "$as_me: failed program was:" >&5
16463 sed 's/^/| /' conftest.$ac_ext >&5
16465 ( exit $ac_status )
16466 ac_cv_func_mmap_fixed_mapped=no
16468 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16471 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16472 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
16473 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16475 cat >>confdefs.h <<\_ACEOF
16476 #define HAVE_MMAP 1
16477 _ACEOF
16480 rm -f conftest.mmap
16484 for ac_prog in perl
16486 # Extract the first word of "$ac_prog", so it can be a program name with args.
16487 set dummy $ac_prog; ac_word=$2
16488 echo "$as_me:$LINENO: checking for $ac_word" >&5
16489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16490 if test "${ac_cv_prog_PERL+set}" = set; then
16491 echo $ECHO_N "(cached) $ECHO_C" >&6
16492 else
16493 if test -n "$PERL"; then
16494 ac_cv_prog_PERL="$PERL" # Let the user override the test.
16495 else
16496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16497 for as_dir in $PATH
16499 IFS=$as_save_IFS
16500 test -z "$as_dir" && as_dir=.
16501 for ac_exec_ext in '' $ac_executable_extensions; do
16502 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16503 ac_cv_prog_PERL="$ac_prog"
16504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16505 break 2
16507 done
16508 done
16512 PERL=$ac_cv_prog_PERL
16513 if test -n "$PERL"; then
16514 echo "$as_me:$LINENO: result: $PERL" >&5
16515 echo "${ECHO_T}$PERL" >&6
16516 else
16517 echo "$as_me:$LINENO: result: no" >&5
16518 echo "${ECHO_T}no" >&6
16521 test -n "$PERL" && break
16522 done
16523 test -n "$PERL" || PERL="false"
16526 SYSDEP_SOURCES=
16527 SIGNAL_HANDLER_AUX=
16529 case "${host}" in
16530 i?86-*-linux*)
16531 SIGNAL_HANDLER=include/i386-signal.h
16533 sparc*-sun-solaris*)
16534 SIGNAL_HANDLER=include/sparc-signal.h
16536 # ia64-*)
16537 # SYSDEP_SOURCES=sysdep/ia64.c
16538 # test -d sysdep || mkdir sysdep
16539 # ;;
16540 hppa*-*-linux*)
16541 SIGNAL_HANDLER=include/pa-signal.h
16543 ia64-*-linux*)
16544 SIGNAL_HANDLER=include/dwarf2-signal.h
16546 powerpc*-*-linux*)
16547 SIGNAL_HANDLER=include/powerpc-signal.h
16549 alpha*-*-linux*)
16550 SIGNAL_HANDLER=include/dwarf2-signal.h
16552 s390*-*-linux*)
16553 SIGNAL_HANDLER=include/s390-signal.h
16555 x86_64*-*-linux*)
16556 SIGNAL_HANDLER=include/x86_64-signal.h
16557 SIGNAL_HANDLER_AUX=include/i386-signal.h
16559 sparc*-*-linux*)
16560 SIGNAL_HANDLER=include/dwarf2-signal.h
16562 sh*-*-linux*)
16563 SIGNAL_HANDLER=include/sh-signal.h
16565 *mingw*)
16566 SIGNAL_HANDLER=include/win32-signal.h
16568 mips*-*-linux*)
16569 SIGNAL_HANDLER=include/mips-signal.h
16571 *-*-darwin*)
16572 SIGNAL_HANDLER=include/darwin-signal.h
16575 SIGNAL_HANDLER=include/default-signal.h
16577 esac
16579 # If we're using sjlj exceptions, forget what we just learned.
16580 if test "$enable_sjlj_exceptions" = yes; then
16581 SIGNAL_HANDLER=include/default-signal.h
16582 SIGNAL_HANDLER_AUX=
16587 if test -z "$SIGNAL_HANDLER_AUX"; then
16588 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
16591 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
16594 if test "${multilib}" = "yes"; then
16595 multilib_arg="--enable-multilib"
16596 else
16597 multilib_arg=
16600 # See if we support thread-local storage.
16602 # Check whether --enable-tls or --disable-tls was given.
16603 if test "${enable_tls+set}" = set; then
16604 enableval="$enable_tls"
16606 case "$enableval" in
16607 yes|no) ;;
16608 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
16609 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
16610 { (exit 1); exit 1; }; } ;;
16611 esac
16613 else
16614 enable_tls=yes
16617 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
16618 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
16619 if test "${have_tls+set}" = set; then
16620 echo $ECHO_N "(cached) $ECHO_C" >&6
16621 else
16623 if test "$cross_compiling" = yes; then
16624 cat >conftest.$ac_ext <<_ACEOF
16625 __thread int foo;
16626 _ACEOF
16627 rm -f conftest.$ac_objext
16628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16629 (eval $ac_compile) 2>conftest.er1
16630 ac_status=$?
16631 grep -v '^ *+' conftest.er1 >conftest.err
16632 rm -f conftest.er1
16633 cat conftest.err >&5
16634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16635 (exit $ac_status); } &&
16636 { ac_try='test -z "$ac_c_werror_flag"
16637 || test ! -s conftest.err'
16638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16639 (eval $ac_try) 2>&5
16640 ac_status=$?
16641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642 (exit $ac_status); }; } &&
16643 { ac_try='test -s conftest.$ac_objext'
16644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16645 (eval $ac_try) 2>&5
16646 ac_status=$?
16647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648 (exit $ac_status); }; }; then
16649 have_tls=yes
16650 else
16651 echo "$as_me: failed program was:" >&5
16652 sed 's/^/| /' conftest.$ac_ext >&5
16654 have_tls=no
16656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16658 else
16659 cat >conftest.$ac_ext <<_ACEOF
16660 __thread int a; int b; int main() { return a = b; }
16661 _ACEOF
16662 rm -f conftest$ac_exeext
16663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16664 (eval $ac_link) 2>&5
16665 ac_status=$?
16666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16669 (eval $ac_try) 2>&5
16670 ac_status=$?
16671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); }; }; then
16673 save_LDFLAGS="$LDFLAGS"
16674 LDFLAGS="-static $LDFLAGS"
16675 if test "$cross_compiling" = yes; then
16676 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16677 See \`config.log' for more details." >&5
16678 echo "$as_me: error: cannot run test program while cross compiling
16679 See \`config.log' for more details." >&2;}
16680 { (exit 1); exit 1; }; }
16681 else
16682 cat >conftest.$ac_ext <<_ACEOF
16683 __thread int a; int b; int main() { return a = b; }
16684 _ACEOF
16685 rm -f conftest$ac_exeext
16686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16687 (eval $ac_link) 2>&5
16688 ac_status=$?
16689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16692 (eval $ac_try) 2>&5
16693 ac_status=$?
16694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695 (exit $ac_status); }; }; then
16696 have_tls=yes
16697 else
16698 echo "$as_me: program exited with status $ac_status" >&5
16699 echo "$as_me: failed program was:" >&5
16700 sed 's/^/| /' conftest.$ac_ext >&5
16702 ( exit $ac_status )
16703 have_tls=no
16705 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16707 LDFLAGS="$save_LDFLAGS"
16708 else
16709 echo "$as_me: program exited with status $ac_status" >&5
16710 echo "$as_me: failed program was:" >&5
16711 sed 's/^/| /' conftest.$ac_ext >&5
16713 ( exit $ac_status )
16714 have_tls=no
16716 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16719 echo "$as_me:$LINENO: result: $have_tls" >&5
16720 echo "${ECHO_T}$have_tls" >&6
16721 if test "$enable_tls $have_tls" = "yes yes"; then
16723 cat >>confdefs.h <<\_ACEOF
16724 #define HAVE_TLS 1
16725 _ACEOF
16730 here=`${PWDCMD-pwd}`
16733 # We get this from the environment.
16736 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"
16739 ac_config_commands="$ac_config_commands default"
16742 cat >confcache <<\_ACEOF
16743 # This file is a shell script that caches the results of configure
16744 # tests run on this system so they can be shared between configure
16745 # scripts and configure runs, see configure's option --config-cache.
16746 # It is not useful on other systems. If it contains results you don't
16747 # want to keep, you may remove or edit it.
16749 # config.status only pays attention to the cache file if you give it
16750 # the --recheck option to rerun configure.
16752 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16753 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16754 # following values.
16756 _ACEOF
16758 # The following way of writing the cache mishandles newlines in values,
16759 # but we know of no workaround that is simple, portable, and efficient.
16760 # So, don't put newlines in cache variables' values.
16761 # Ultrix sh set writes to stderr and can't be redirected directly,
16762 # and sets the high bit in the cache file unless we assign to the vars.
16764 (set) 2>&1 |
16765 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16766 *ac_space=\ *)
16767 # `set' does not quote correctly, so add quotes (double-quote
16768 # substitution turns \\\\ into \\, and sed turns \\ into \).
16769 sed -n \
16770 "s/'/'\\\\''/g;
16771 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16774 # `set' quotes correctly as required by POSIX, so do not add quotes.
16775 sed -n \
16776 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16778 esac;
16780 sed '
16781 t clear
16782 : clear
16783 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16784 t end
16785 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16786 : end' >>confcache
16787 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16788 if test -w $cache_file; then
16789 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16790 cat confcache >$cache_file
16791 else
16792 echo "not updating unwritable cache $cache_file"
16795 rm -f confcache
16797 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16798 # Let make expand exec_prefix.
16799 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16801 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16802 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16803 # trailing colons and then remove the whole line if VPATH becomes empty
16804 # (actually we leave an empty line to preserve line numbers).
16805 if test "x$srcdir" = x.; then
16806 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16807 s/:*\$(srcdir):*/:/;
16808 s/:*\${srcdir}:*/:/;
16809 s/:*@srcdir@:*/:/;
16810 s/^\([^=]*=[ ]*\):*/\1/;
16811 s/:*$//;
16812 s/^[^=]*=[ ]*$//;
16816 DEFS=-DHAVE_CONFIG_H
16818 ac_libobjs=
16819 ac_ltlibobjs=
16820 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16821 # 1. Remove the extension, and $U if already installed.
16822 ac_i=`echo "$ac_i" |
16823 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16824 # 2. Add them.
16825 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16826 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16827 done
16828 LIBOBJS=$ac_libobjs
16830 LTLIBOBJS=$ac_ltlibobjs
16833 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16834 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16835 Usually this means the macro was only invoked conditionally." >&5
16836 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16837 Usually this means the macro was only invoked conditionally." >&2;}
16838 { (exit 1); exit 1; }; }
16840 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16841 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16842 Usually this means the macro was only invoked conditionally." >&5
16843 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16844 Usually this means the macro was only invoked conditionally." >&2;}
16845 { (exit 1); exit 1; }; }
16847 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16848 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16849 Usually this means the macro was only invoked conditionally." >&5
16850 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16851 Usually this means the macro was only invoked conditionally." >&2;}
16852 { (exit 1); exit 1; }; }
16854 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16855 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16856 Usually this means the macro was only invoked conditionally." >&5
16857 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16858 Usually this means the macro was only invoked conditionally." >&2;}
16859 { (exit 1); exit 1; }; }
16861 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
16862 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
16863 Usually this means the macro was only invoked conditionally." >&5
16864 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
16865 Usually this means the macro was only invoked conditionally." >&2;}
16866 { (exit 1); exit 1; }; }
16868 if test -z "${GTK_AWT_TRUE}" && test -z "${GTK_AWT_FALSE}"; then
16869 { { echo "$as_me:$LINENO: error: conditional \"GTK_AWT\" was never defined.
16870 Usually this means the macro was only invoked conditionally." >&5
16871 echo "$as_me: error: conditional \"GTK_AWT\" was never defined.
16872 Usually this means the macro was only invoked conditionally." >&2;}
16873 { (exit 1); exit 1; }; }
16875 if test -z "${QT_AWT_TRUE}" && test -z "${QT_AWT_FALSE}"; then
16876 { { echo "$as_me:$LINENO: error: conditional \"QT_AWT\" was never defined.
16877 Usually this means the macro was only invoked conditionally." >&5
16878 echo "$as_me: error: conditional \"QT_AWT\" was never defined.
16879 Usually this means the macro was only invoked conditionally." >&2;}
16880 { (exit 1); exit 1; }; }
16882 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
16883 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
16884 Usually this means the macro was only invoked conditionally." >&5
16885 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
16886 Usually this means the macro was only invoked conditionally." >&2;}
16887 { (exit 1); exit 1; }; }
16889 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
16890 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
16891 Usually this means the macro was only invoked conditionally." >&5
16892 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
16893 Usually this means the macro was only invoked conditionally." >&2;}
16894 { (exit 1); exit 1; }; }
16896 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
16897 { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
16898 Usually this means the macro was only invoked conditionally." >&5
16899 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
16900 Usually this means the macro was only invoked conditionally." >&2;}
16901 { (exit 1); exit 1; }; }
16903 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
16904 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16905 Usually this means the macro was only invoked conditionally." >&5
16906 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16907 Usually this means the macro was only invoked conditionally." >&2;}
16908 { (exit 1); exit 1; }; }
16910 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
16911 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16912 Usually this means the macro was only invoked conditionally." >&5
16913 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16914 Usually this means the macro was only invoked conditionally." >&2;}
16915 { (exit 1); exit 1; }; }
16917 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
16918 { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
16919 Usually this means the macro was only invoked conditionally." >&5
16920 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
16921 Usually this means the macro was only invoked conditionally." >&2;}
16922 { (exit 1); exit 1; }; }
16924 if test -z "${GTK_CAIRO_TRUE}" && test -z "${GTK_CAIRO_FALSE}"; then
16925 { { echo "$as_me:$LINENO: error: conditional \"GTK_CAIRO\" was never defined.
16926 Usually this means the macro was only invoked conditionally." >&5
16927 echo "$as_me: error: conditional \"GTK_CAIRO\" was never defined.
16928 Usually this means the macro was only invoked conditionally." >&2;}
16929 { (exit 1); exit 1; }; }
16931 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
16932 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
16933 Usually this means the macro was only invoked conditionally." >&5
16934 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
16935 Usually this means the macro was only invoked conditionally." >&2;}
16936 { (exit 1); exit 1; }; }
16938 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
16939 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
16940 Usually this means the macro was only invoked conditionally." >&5
16941 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
16942 Usually this means the macro was only invoked conditionally." >&2;}
16943 { (exit 1); exit 1; }; }
16945 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
16946 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
16947 Usually this means the macro was only invoked conditionally." >&5
16948 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
16949 Usually this means the macro was only invoked conditionally." >&2;}
16950 { (exit 1); exit 1; }; }
16952 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
16953 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
16954 Usually this means the macro was only invoked conditionally." >&5
16955 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
16956 Usually this means the macro was only invoked conditionally." >&2;}
16957 { (exit 1); exit 1; }; }
16959 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
16960 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
16961 Usually this means the macro was only invoked conditionally." >&5
16962 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
16963 Usually this means the macro was only invoked conditionally." >&2;}
16964 { (exit 1); exit 1; }; }
16966 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
16967 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
16968 Usually this means the macro was only invoked conditionally." >&5
16969 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
16970 Usually this means the macro was only invoked conditionally." >&2;}
16971 { (exit 1); exit 1; }; }
16973 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
16974 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
16975 Usually this means the macro was only invoked conditionally." >&5
16976 echo "$as_me: error: conditional \"NATIVE\" was never defined.
16977 Usually this means the macro was only invoked conditionally." >&2;}
16978 { (exit 1); exit 1; }; }
16980 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
16981 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
16982 Usually this means the macro was only invoked conditionally." >&5
16983 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
16984 Usually this means the macro was only invoked conditionally." >&2;}
16985 { (exit 1); exit 1; }; }
16988 : ${CONFIG_STATUS=./config.status}
16989 ac_clean_files_save=$ac_clean_files
16990 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16991 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16992 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16993 cat >$CONFIG_STATUS <<_ACEOF
16994 #! $SHELL
16995 # Generated by $as_me.
16996 # Run this file to recreate the current configuration.
16997 # Compiler output produced by configure, useful for debugging
16998 # configure, is in config.log if it exists.
17000 debug=false
17001 ac_cs_recheck=false
17002 ac_cs_silent=false
17003 SHELL=\${CONFIG_SHELL-$SHELL}
17004 _ACEOF
17006 cat >>$CONFIG_STATUS <<\_ACEOF
17007 ## --------------------- ##
17008 ## M4sh Initialization. ##
17009 ## --------------------- ##
17011 # Be Bourne compatible
17012 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17013 emulate sh
17014 NULLCMD=:
17015 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17016 # is contrary to our usage. Disable this feature.
17017 alias -g '${1+"$@"}'='"$@"'
17018 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17019 set -o posix
17021 DUALCASE=1; export DUALCASE # for MKS sh
17023 # Support unset when possible.
17024 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17025 as_unset=unset
17026 else
17027 as_unset=false
17031 # Work around bugs in pre-3.0 UWIN ksh.
17032 $as_unset ENV MAIL MAILPATH
17033 PS1='$ '
17034 PS2='> '
17035 PS4='+ '
17037 # NLS nuisances.
17038 for as_var in \
17039 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17040 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17041 LC_TELEPHONE LC_TIME
17043 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17044 eval $as_var=C; export $as_var
17045 else
17046 $as_unset $as_var
17048 done
17050 # Required to use basename.
17051 if expr a : '\(a\)' >/dev/null 2>&1; then
17052 as_expr=expr
17053 else
17054 as_expr=false
17057 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17058 as_basename=basename
17059 else
17060 as_basename=false
17064 # Name of the executable.
17065 as_me=`$as_basename "$0" ||
17066 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17067 X"$0" : 'X\(//\)$' \| \
17068 X"$0" : 'X\(/\)$' \| \
17069 . : '\(.\)' 2>/dev/null ||
17070 echo X/"$0" |
17071 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17072 /^X\/\(\/\/\)$/{ s//\1/; q; }
17073 /^X\/\(\/\).*/{ s//\1/; q; }
17074 s/.*/./; q'`
17077 # PATH needs CR, and LINENO needs CR and PATH.
17078 # Avoid depending upon Character Ranges.
17079 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17080 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17081 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17082 as_cr_digits='0123456789'
17083 as_cr_alnum=$as_cr_Letters$as_cr_digits
17085 # The user is always right.
17086 if test "${PATH_SEPARATOR+set}" != set; then
17087 echo "#! /bin/sh" >conf$$.sh
17088 echo "exit 0" >>conf$$.sh
17089 chmod +x conf$$.sh
17090 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17091 PATH_SEPARATOR=';'
17092 else
17093 PATH_SEPARATOR=:
17095 rm -f conf$$.sh
17099 as_lineno_1=$LINENO
17100 as_lineno_2=$LINENO
17101 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17102 test "x$as_lineno_1" != "x$as_lineno_2" &&
17103 test "x$as_lineno_3" = "x$as_lineno_2" || {
17104 # Find who we are. Look in the path if we contain no path at all
17105 # relative or not.
17106 case $0 in
17107 *[\\/]* ) as_myself=$0 ;;
17108 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17109 for as_dir in $PATH
17111 IFS=$as_save_IFS
17112 test -z "$as_dir" && as_dir=.
17113 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17114 done
17117 esac
17118 # We did not find ourselves, most probably we were run as `sh COMMAND'
17119 # in which case we are not to be found in the path.
17120 if test "x$as_myself" = x; then
17121 as_myself=$0
17123 if test ! -f "$as_myself"; then
17124 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17125 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17126 { (exit 1); exit 1; }; }
17128 case $CONFIG_SHELL in
17130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17133 IFS=$as_save_IFS
17134 test -z "$as_dir" && as_dir=.
17135 for as_base in sh bash ksh sh5; do
17136 case $as_dir in
17138 if ("$as_dir/$as_base" -c '
17139 as_lineno_1=$LINENO
17140 as_lineno_2=$LINENO
17141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17142 test "x$as_lineno_1" != "x$as_lineno_2" &&
17143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17146 CONFIG_SHELL=$as_dir/$as_base
17147 export CONFIG_SHELL
17148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17149 fi;;
17150 esac
17151 done
17152 done
17154 esac
17156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17157 # uniformly replaced by the line number. The first 'sed' inserts a
17158 # line-number line before each line; the second 'sed' does the real
17159 # work. The second script uses 'N' to pair each line-number line
17160 # with the numbered line, and appends trailing '-' during
17161 # substitution so that $LINENO is not a special case at line end.
17162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17164 sed '=' <$as_myself |
17165 sed '
17167 s,$,-,
17168 : loop
17169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17170 t loop
17171 s,-$,,
17172 s,^['$as_cr_digits']*\n,,
17173 ' >$as_me.lineno &&
17174 chmod +x $as_me.lineno ||
17175 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17176 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17177 { (exit 1); exit 1; }; }
17179 # Don't try to exec as it changes $[0], causing all sort of problems
17180 # (the dirname of $[0] is not the place where we might find the
17181 # original and so on. Autoconf is especially sensible to this).
17182 . ./$as_me.lineno
17183 # Exit status is that of the last command.
17184 exit
17188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17189 *c*,-n*) ECHO_N= ECHO_C='
17190 ' ECHO_T=' ' ;;
17191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17193 esac
17195 if expr a : '\(a\)' >/dev/null 2>&1; then
17196 as_expr=expr
17197 else
17198 as_expr=false
17201 rm -f conf$$ conf$$.exe conf$$.file
17202 echo >conf$$.file
17203 if ln -s conf$$.file conf$$ 2>/dev/null; then
17204 # We could just check for DJGPP; but this test a) works b) is more generic
17205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17206 if test -f conf$$.exe; then
17207 # Don't use ln at all; we don't have any links
17208 as_ln_s='cp -p'
17209 else
17210 as_ln_s='ln -s'
17212 elif ln conf$$.file conf$$ 2>/dev/null; then
17213 as_ln_s=ln
17214 else
17215 as_ln_s='cp -p'
17217 rm -f conf$$ conf$$.exe conf$$.file
17219 if mkdir -p . 2>/dev/null; then
17220 as_mkdir_p=:
17221 else
17222 test -d ./-p && rmdir ./-p
17223 as_mkdir_p=false
17226 as_executable_p="test -f"
17228 # Sed expression to map a string onto a valid CPP name.
17229 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17231 # Sed expression to map a string onto a valid variable name.
17232 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17235 # IFS
17236 # We need space, tab and new line, in precisely that order.
17237 as_nl='
17239 IFS=" $as_nl"
17241 # CDPATH.
17242 $as_unset CDPATH
17244 exec 6>&1
17246 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17247 # report actual input values of CONFIG_FILES etc. instead of their
17248 # values after options handling. Logging --version etc. is OK.
17249 exec 5>>config.log
17251 echo
17252 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17253 ## Running $as_me. ##
17254 _ASBOX
17255 } >&5
17256 cat >&5 <<_CSEOF
17258 This file was extended by libjava $as_me version-unused, which was
17259 generated by GNU Autoconf 2.59. Invocation command line was
17261 CONFIG_FILES = $CONFIG_FILES
17262 CONFIG_HEADERS = $CONFIG_HEADERS
17263 CONFIG_LINKS = $CONFIG_LINKS
17264 CONFIG_COMMANDS = $CONFIG_COMMANDS
17265 $ $0 $@
17267 _CSEOF
17268 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17269 echo >&5
17270 _ACEOF
17272 # Files that config.status was made for.
17273 if test -n "$ac_config_files"; then
17274 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17277 if test -n "$ac_config_headers"; then
17278 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17281 if test -n "$ac_config_links"; then
17282 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17285 if test -n "$ac_config_commands"; then
17286 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17289 cat >>$CONFIG_STATUS <<\_ACEOF
17291 ac_cs_usage="\
17292 \`$as_me' instantiates files from templates according to the
17293 current configuration.
17295 Usage: $0 [OPTIONS] [FILE]...
17297 -h, --help print this help, then exit
17298 -V, --version print version number, then exit
17299 -q, --quiet do not print progress messages
17300 -d, --debug don't remove temporary files
17301 --recheck update $as_me by reconfiguring in the same conditions
17302 --file=FILE[:TEMPLATE]
17303 instantiate the configuration file FILE
17304 --header=FILE[:TEMPLATE]
17305 instantiate the configuration header FILE
17307 Configuration files:
17308 $config_files
17310 Configuration headers:
17311 $config_headers
17313 Configuration links:
17314 $config_links
17316 Configuration commands:
17317 $config_commands
17319 Report bugs to <bug-autoconf@gnu.org>."
17320 _ACEOF
17322 cat >>$CONFIG_STATUS <<_ACEOF
17323 ac_cs_version="\\
17324 libjava config.status version-unused
17325 configured by $0, generated by GNU Autoconf 2.59,
17326 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17328 Copyright (C) 2003 Free Software Foundation, Inc.
17329 This config.status script is free software; the Free Software Foundation
17330 gives unlimited permission to copy, distribute and modify it."
17331 srcdir=$srcdir
17332 INSTALL="$INSTALL"
17333 _ACEOF
17335 cat >>$CONFIG_STATUS <<\_ACEOF
17336 # If no file are specified by the user, then we need to provide default
17337 # value. By we need to know if files were specified by the user.
17338 ac_need_defaults=:
17339 while test $# != 0
17341 case $1 in
17342 --*=*)
17343 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17344 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17345 ac_shift=:
17348 ac_option=$1
17349 ac_optarg=$2
17350 ac_shift=shift
17352 *) # This is not an option, so the user has probably given explicit
17353 # arguments.
17354 ac_option=$1
17355 ac_need_defaults=false;;
17356 esac
17358 case $ac_option in
17359 # Handling of the options.
17360 _ACEOF
17361 cat >>$CONFIG_STATUS <<\_ACEOF
17362 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17363 ac_cs_recheck=: ;;
17364 --version | --vers* | -V )
17365 echo "$ac_cs_version"; exit 0 ;;
17366 --he | --h)
17367 # Conflict between --help and --header
17368 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17369 Try \`$0 --help' for more information." >&5
17370 echo "$as_me: error: ambiguous option: $1
17371 Try \`$0 --help' for more information." >&2;}
17372 { (exit 1); exit 1; }; };;
17373 --help | --hel | -h )
17374 echo "$ac_cs_usage"; exit 0 ;;
17375 --debug | --d* | -d )
17376 debug=: ;;
17377 --file | --fil | --fi | --f )
17378 $ac_shift
17379 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17380 ac_need_defaults=false;;
17381 --header | --heade | --head | --hea )
17382 $ac_shift
17383 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17384 ac_need_defaults=false;;
17385 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17386 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17387 ac_cs_silent=: ;;
17389 # This is an error.
17390 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17391 Try \`$0 --help' for more information." >&5
17392 echo "$as_me: error: unrecognized option: $1
17393 Try \`$0 --help' for more information." >&2;}
17394 { (exit 1); exit 1; }; } ;;
17396 *) ac_config_targets="$ac_config_targets $1" ;;
17398 esac
17399 shift
17400 done
17402 ac_configure_extra_args=
17404 if $ac_cs_silent; then
17405 exec 6>/dev/null
17406 ac_configure_extra_args="$ac_configure_extra_args --silent"
17409 _ACEOF
17410 cat >>$CONFIG_STATUS <<_ACEOF
17411 if \$ac_cs_recheck; then
17412 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17413 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17416 _ACEOF
17418 cat >>$CONFIG_STATUS <<_ACEOF
17420 # INIT-COMMANDS section.
17423 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17424 srcdir=${srcdir}
17425 host=${host}
17426 target=${target}
17427 with_multisubdir=${with_multisubdir}
17428 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17429 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17430 libgcj_basedir=${libgcj_basedir}
17431 CC="${CC}"
17432 CXX="${CXX}"
17433 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
17436 _ACEOF
17440 cat >>$CONFIG_STATUS <<\_ACEOF
17441 for ac_config_target in $ac_config_targets
17443 case "$ac_config_target" in
17444 # Handling of arguments.
17445 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17446 "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
17447 "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
17448 "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
17449 "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
17450 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17451 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17452 "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
17453 "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
17454 "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
17455 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
17456 "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
17457 "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
17458 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
17459 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
17460 "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
17461 "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
17462 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
17463 "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
17464 "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
17465 "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
17466 "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
17467 "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
17468 "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
17469 "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
17470 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17471 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17472 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17473 "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
17474 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17475 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17476 { (exit 1); exit 1; }; };;
17477 esac
17478 done
17480 # If the user did not use the arguments to specify the items to instantiate,
17481 # then the envvar interface is used. Set only those that are not.
17482 # We use the long form for the default assignment because of an extremely
17483 # bizarre bug on SunOS 4.1.3.
17484 if $ac_need_defaults; then
17485 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17486 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17487 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17488 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17491 # Have a temporary directory for convenience. Make it in the build tree
17492 # simply because there is no reason to put it here, and in addition,
17493 # creating and moving files from /tmp can sometimes cause problems.
17494 # Create a temporary directory, and hook for its removal unless debugging.
17495 $debug ||
17497 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17498 trap '{ (exit 1); exit 1; }' 1 2 13 15
17501 # Create a (secure) tmp directory for tmp files.
17504 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17505 test -n "$tmp" && test -d "$tmp"
17506 } ||
17508 tmp=./confstat$$-$RANDOM
17509 (umask 077 && mkdir $tmp)
17510 } ||
17512 echo "$me: cannot create a temporary directory in ." >&2
17513 { (exit 1); exit 1; }
17516 _ACEOF
17518 cat >>$CONFIG_STATUS <<_ACEOF
17521 # CONFIG_FILES section.
17524 # No need to generate the scripts if there are no CONFIG_FILES.
17525 # This happens for instance when ./config.status config.h
17526 if test -n "\$CONFIG_FILES"; then
17527 # Protect against being on the right side of a sed subst in config.status.
17528 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17529 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17530 s,@SHELL@,$SHELL,;t t
17531 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17532 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17533 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17534 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17535 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17536 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17537 s,@exec_prefix@,$exec_prefix,;t t
17538 s,@prefix@,$prefix,;t t
17539 s,@program_transform_name@,$program_transform_name,;t t
17540 s,@bindir@,$bindir,;t t
17541 s,@sbindir@,$sbindir,;t t
17542 s,@libexecdir@,$libexecdir,;t t
17543 s,@datadir@,$datadir,;t t
17544 s,@sysconfdir@,$sysconfdir,;t t
17545 s,@sharedstatedir@,$sharedstatedir,;t t
17546 s,@localstatedir@,$localstatedir,;t t
17547 s,@libdir@,$libdir,;t t
17548 s,@includedir@,$includedir,;t t
17549 s,@oldincludedir@,$oldincludedir,;t t
17550 s,@infodir@,$infodir,;t t
17551 s,@mandir@,$mandir,;t t
17552 s,@build_alias@,$build_alias,;t t
17553 s,@host_alias@,$host_alias,;t t
17554 s,@target_alias@,$target_alias,;t t
17555 s,@DEFS@,$DEFS,;t t
17556 s,@ECHO_C@,$ECHO_C,;t t
17557 s,@ECHO_N@,$ECHO_N,;t t
17558 s,@ECHO_T@,$ECHO_T,;t t
17559 s,@LIBS@,$LIBS,;t t
17560 s,@build@,$build,;t t
17561 s,@build_cpu@,$build_cpu,;t t
17562 s,@build_vendor@,$build_vendor,;t t
17563 s,@build_os@,$build_os,;t t
17564 s,@build_subdir@,$build_subdir,;t t
17565 s,@host_subdir@,$host_subdir,;t t
17566 s,@target_subdir@,$target_subdir,;t t
17567 s,@libgcj_basedir@,$libgcj_basedir,;t t
17568 s,@host@,$host,;t t
17569 s,@host_cpu@,$host_cpu,;t t
17570 s,@host_vendor@,$host_vendor,;t t
17571 s,@host_os@,$host_os,;t t
17572 s,@target@,$target,;t t
17573 s,@target_cpu@,$target_cpu,;t t
17574 s,@target_vendor@,$target_vendor,;t t
17575 s,@target_os@,$target_os,;t t
17576 s,@target_noncanonical@,$target_noncanonical,;t t
17577 s,@LN_S@,$LN_S,;t t
17578 s,@mkinstalldirs@,$mkinstalldirs,;t t
17579 s,@CC@,$CC,;t t
17580 s,@ac_ct_CC@,$ac_ct_CC,;t t
17581 s,@EXEEXT@,$EXEEXT,;t t
17582 s,@OBJEXT@,$OBJEXT,;t t
17583 s,@CXX@,$CXX,;t t
17584 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17585 s,@CFLAGS@,$CFLAGS,;t t
17586 s,@CXXFLAGS@,$CXXFLAGS,;t t
17587 s,@LDFLAGS@,$LDFLAGS,;t t
17588 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17589 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17590 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17591 s,@CYGPATH_W@,$CYGPATH_W,;t t
17592 s,@PACKAGE@,$PACKAGE,;t t
17593 s,@VERSION@,$VERSION,;t t
17594 s,@ACLOCAL@,$ACLOCAL,;t t
17595 s,@AUTOCONF@,$AUTOCONF,;t t
17596 s,@AUTOMAKE@,$AUTOMAKE,;t t
17597 s,@AUTOHEADER@,$AUTOHEADER,;t t
17598 s,@MAKEINFO@,$MAKEINFO,;t t
17599 s,@install_sh@,$install_sh,;t t
17600 s,@STRIP@,$STRIP,;t t
17601 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17602 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17603 s,@mkdir_p@,$mkdir_p,;t t
17604 s,@AWK@,$AWK,;t t
17605 s,@SET_MAKE@,$SET_MAKE,;t t
17606 s,@am__leading_dot@,$am__leading_dot,;t t
17607 s,@AMTAR@,$AMTAR,;t t
17608 s,@am__tar@,$am__tar,;t t
17609 s,@am__untar@,$am__untar,;t t
17610 s,@DEPDIR@,$DEPDIR,;t t
17611 s,@am__include@,$am__include,;t t
17612 s,@am__quote@,$am__quote,;t t
17613 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17614 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17615 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17616 s,@CCDEPMODE@,$CCDEPMODE,;t t
17617 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17618 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17619 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17620 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17621 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17622 s,@AS@,$AS,;t t
17623 s,@ac_ct_AS@,$ac_ct_AS,;t t
17624 s,@AR@,$AR,;t t
17625 s,@ac_ct_AR@,$ac_ct_AR,;t t
17626 s,@RANLIB@,$RANLIB,;t t
17627 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17628 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17629 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17630 s,@MAINT@,$MAINT,;t t
17631 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
17632 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
17633 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
17634 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
17635 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
17636 s,@TOOLKIT@,$TOOLKIT,;t t
17637 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
17638 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
17639 s,@GTK_AWT_TRUE@,$GTK_AWT_TRUE,;t t
17640 s,@GTK_AWT_FALSE@,$GTK_AWT_FALSE,;t t
17641 s,@QT_AWT_TRUE@,$QT_AWT_TRUE,;t t
17642 s,@QT_AWT_FALSE@,$QT_AWT_FALSE,;t t
17643 s,@GCJH@,$GCJH,;t t
17644 s,@ZIP@,$ZIP,;t t
17645 s,@INCLTDL@,$INCLTDL,;t t
17646 s,@LIBLTDL@,$LIBLTDL,;t t
17647 s,@DIRLTDL@,$DIRLTDL,;t t
17648 s,@LIBTOOL@,$LIBTOOL,;t t
17649 s,@CXXCPP@,$CXXCPP,;t t
17650 s,@CPPFLAGS@,$CPPFLAGS,;t t
17651 s,@GCJ@,$GCJ,;t t
17652 s,@GCJFLAGS@,$GCJFLAGS,;t t
17653 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
17654 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
17655 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
17656 s,@subdirs@,$subdirs,;t t
17657 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
17658 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
17659 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
17660 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
17661 s,@JAVA_HOME@,$JAVA_HOME,;t t
17662 s,@INTERPRETER@,$INTERPRETER,;t t
17663 s,@LIBFFI@,$LIBFFI,;t t
17664 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
17665 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
17666 s,@CPP@,$CPP,;t t
17667 s,@EGREP@,$EGREP,;t t
17668 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
17669 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
17670 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
17671 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
17672 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
17673 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
17674 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
17675 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
17676 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
17677 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
17678 s,@X_CFLAGS@,$X_CFLAGS,;t t
17679 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17680 s,@X_LIBS@,$X_LIBS,;t t
17681 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17682 s,@GTK_CAIRO_TRUE@,$GTK_CAIRO_TRUE,;t t
17683 s,@GTK_CAIRO_FALSE@,$GTK_CAIRO_FALSE,;t t
17684 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
17685 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
17686 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
17687 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
17688 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
17689 s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
17690 s,@GCLIBS@,$GCLIBS,;t t
17691 s,@GCINCS@,$GCINCS,;t t
17692 s,@GCDEPS@,$GCDEPS,;t t
17693 s,@GCSPEC@,$GCSPEC,;t t
17694 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
17695 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
17696 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
17697 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
17698 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
17699 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
17700 s,@THREADLIBS@,$THREADLIBS,;t t
17701 s,@THREADINCS@,$THREADINCS,;t t
17702 s,@THREADDEPS@,$THREADDEPS,;t t
17703 s,@THREADSPEC@,$THREADSPEC,;t t
17704 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
17705 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
17706 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
17707 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
17708 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
17709 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
17710 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
17711 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
17712 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
17713 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
17714 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
17715 s,@LIBICONV@,$LIBICONV,;t t
17716 s,@LTLIBICONV@,$LTLIBICONV,;t t
17717 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
17718 s,@GTK_LIBS@,$GTK_LIBS,;t t
17719 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
17720 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
17721 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
17722 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
17723 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
17724 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
17725 s,@ZLIBS@,$ZLIBS,;t t
17726 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
17727 s,@ZINCS@,$ZINCS,;t t
17728 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
17729 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
17730 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
17731 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
17732 s,@IEEESPEC@,$IEEESPEC,;t t
17733 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
17734 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
17735 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
17736 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
17737 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
17738 s,@toolexecdir@,$toolexecdir,;t t
17739 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
17740 s,@toolexeclibdir@,$toolexeclibdir,;t t
17741 s,@GCJVERSION@,$GCJVERSION,;t t
17742 s,@gxx_include_dir@,$gxx_include_dir,;t t
17743 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
17744 s,@ALLOCA@,$ALLOCA,;t t
17745 s,@PERL@,$PERL,;t t
17746 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
17747 s,@here@,$here,;t t
17748 s,@LIBOBJS@,$LIBOBJS,;t t
17749 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17750 CEOF
17752 _ACEOF
17754 cat >>$CONFIG_STATUS <<\_ACEOF
17755 # Split the substitutions into bite-sized pieces for seds with
17756 # small command number limits, like on Digital OSF/1 and HP-UX.
17757 ac_max_sed_lines=48
17758 ac_sed_frag=1 # Number of current file.
17759 ac_beg=1 # First line for current file.
17760 ac_end=$ac_max_sed_lines # Line after last line for current file.
17761 ac_more_lines=:
17762 ac_sed_cmds=
17763 while $ac_more_lines; do
17764 if test $ac_beg -gt 1; then
17765 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17766 else
17767 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17769 if test ! -s $tmp/subs.frag; then
17770 ac_more_lines=false
17771 else
17772 # The purpose of the label and of the branching condition is to
17773 # speed up the sed processing (if there are no `@' at all, there
17774 # is no need to browse any of the substitutions).
17775 # These are the two extra sed commands mentioned above.
17776 (echo ':t
17777 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17778 if test -z "$ac_sed_cmds"; then
17779 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17780 else
17781 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17783 ac_sed_frag=`expr $ac_sed_frag + 1`
17784 ac_beg=$ac_end
17785 ac_end=`expr $ac_end + $ac_max_sed_lines`
17787 done
17788 if test -z "$ac_sed_cmds"; then
17789 ac_sed_cmds=cat
17791 fi # test -n "$CONFIG_FILES"
17793 _ACEOF
17794 cat >>$CONFIG_STATUS <<\_ACEOF
17795 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17796 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17797 case $ac_file in
17798 - | *:- | *:-:* ) # input from stdin
17799 cat >$tmp/stdin
17800 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17801 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17802 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17803 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17804 * ) ac_file_in=$ac_file.in ;;
17805 esac
17807 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17808 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17809 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17810 X"$ac_file" : 'X\(//\)[^/]' \| \
17811 X"$ac_file" : 'X\(//\)$' \| \
17812 X"$ac_file" : 'X\(/\)' \| \
17813 . : '\(.\)' 2>/dev/null ||
17814 echo X"$ac_file" |
17815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17816 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17817 /^X\(\/\/\)$/{ s//\1/; q; }
17818 /^X\(\/\).*/{ s//\1/; q; }
17819 s/.*/./; q'`
17820 { if $as_mkdir_p; then
17821 mkdir -p "$ac_dir"
17822 else
17823 as_dir="$ac_dir"
17824 as_dirs=
17825 while test ! -d "$as_dir"; do
17826 as_dirs="$as_dir $as_dirs"
17827 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17828 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17829 X"$as_dir" : 'X\(//\)[^/]' \| \
17830 X"$as_dir" : 'X\(//\)$' \| \
17831 X"$as_dir" : 'X\(/\)' \| \
17832 . : '\(.\)' 2>/dev/null ||
17833 echo X"$as_dir" |
17834 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17835 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17836 /^X\(\/\/\)$/{ s//\1/; q; }
17837 /^X\(\/\).*/{ s//\1/; q; }
17838 s/.*/./; q'`
17839 done
17840 test ! -n "$as_dirs" || mkdir $as_dirs
17841 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17842 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17843 { (exit 1); exit 1; }; }; }
17845 ac_builddir=.
17847 if test "$ac_dir" != .; then
17848 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17849 # A "../" for each directory in $ac_dir_suffix.
17850 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17851 else
17852 ac_dir_suffix= ac_top_builddir=
17855 case $srcdir in
17856 .) # No --srcdir option. We are building in place.
17857 ac_srcdir=.
17858 if test -z "$ac_top_builddir"; then
17859 ac_top_srcdir=.
17860 else
17861 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17862 fi ;;
17863 [\\/]* | ?:[\\/]* ) # Absolute path.
17864 ac_srcdir=$srcdir$ac_dir_suffix;
17865 ac_top_srcdir=$srcdir ;;
17866 *) # Relative path.
17867 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17868 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17869 esac
17871 # Do not use `cd foo && pwd` to compute absolute paths, because
17872 # the directories may not exist.
17873 case `pwd` in
17874 .) ac_abs_builddir="$ac_dir";;
17876 case "$ac_dir" in
17877 .) ac_abs_builddir=`pwd`;;
17878 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17879 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17880 esac;;
17881 esac
17882 case $ac_abs_builddir in
17883 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17885 case ${ac_top_builddir}. in
17886 .) ac_abs_top_builddir=$ac_abs_builddir;;
17887 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17888 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17889 esac;;
17890 esac
17891 case $ac_abs_builddir in
17892 .) ac_abs_srcdir=$ac_srcdir;;
17894 case $ac_srcdir in
17895 .) ac_abs_srcdir=$ac_abs_builddir;;
17896 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17897 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17898 esac;;
17899 esac
17900 case $ac_abs_builddir in
17901 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17903 case $ac_top_srcdir in
17904 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17905 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17906 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17907 esac;;
17908 esac
17911 case $INSTALL in
17912 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17913 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17914 esac
17916 if test x"$ac_file" != x-; then
17917 { echo "$as_me:$LINENO: creating $ac_file" >&5
17918 echo "$as_me: creating $ac_file" >&6;}
17919 rm -f "$ac_file"
17921 # Let's still pretend it is `configure' which instantiates (i.e., don't
17922 # use $as_me), people would be surprised to read:
17923 # /* config.h. Generated by config.status. */
17924 if test x"$ac_file" = x-; then
17925 configure_input=
17926 else
17927 configure_input="$ac_file. "
17929 configure_input=$configure_input"Generated from `echo $ac_file_in |
17930 sed 's,.*/,,'` by configure."
17932 # First look for the input files in the build tree, otherwise in the
17933 # src tree.
17934 ac_file_inputs=`IFS=:
17935 for f in $ac_file_in; do
17936 case $f in
17937 -) echo $tmp/stdin ;;
17938 [\\/$]*)
17939 # Absolute (can't be DOS-style, as IFS=:)
17940 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17941 echo "$as_me: error: cannot find input file: $f" >&2;}
17942 { (exit 1); exit 1; }; }
17943 echo "$f";;
17944 *) # Relative
17945 if test -f "$f"; then
17946 # Build tree
17947 echo "$f"
17948 elif test -f "$srcdir/$f"; then
17949 # Source tree
17950 echo "$srcdir/$f"
17951 else
17952 # /dev/null tree
17953 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17954 echo "$as_me: error: cannot find input file: $f" >&2;}
17955 { (exit 1); exit 1; }; }
17956 fi;;
17957 esac
17958 done` || { (exit 1); exit 1; }
17959 _ACEOF
17960 cat >>$CONFIG_STATUS <<_ACEOF
17961 sed "$ac_vpsub
17962 $extrasub
17963 _ACEOF
17964 cat >>$CONFIG_STATUS <<\_ACEOF
17966 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17967 s,@configure_input@,$configure_input,;t t
17968 s,@srcdir@,$ac_srcdir,;t t
17969 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17970 s,@top_srcdir@,$ac_top_srcdir,;t t
17971 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17972 s,@builddir@,$ac_builddir,;t t
17973 s,@abs_builddir@,$ac_abs_builddir,;t t
17974 s,@top_builddir@,$ac_top_builddir,;t t
17975 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17976 s,@INSTALL@,$ac_INSTALL,;t t
17977 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17978 rm -f $tmp/stdin
17979 if test x"$ac_file" != x-; then
17980 mv $tmp/out $ac_file
17981 else
17982 cat $tmp/out
17983 rm -f $tmp/out
17986 done
17987 _ACEOF
17988 cat >>$CONFIG_STATUS <<\_ACEOF
17991 # CONFIG_HEADER section.
17994 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17995 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17997 # ac_d sets the value in "#define NAME VALUE" lines.
17998 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17999 ac_dB='[ ].*$,\1#\2'
18000 ac_dC=' '
18001 ac_dD=',;t'
18002 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18003 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18004 ac_uB='$,\1#\2define\3'
18005 ac_uC=' '
18006 ac_uD=',;t'
18008 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18009 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18010 case $ac_file in
18011 - | *:- | *:-:* ) # input from stdin
18012 cat >$tmp/stdin
18013 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18014 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18015 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18016 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18017 * ) ac_file_in=$ac_file.in ;;
18018 esac
18020 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18021 echo "$as_me: creating $ac_file" >&6;}
18023 # First look for the input files in the build tree, otherwise in the
18024 # src tree.
18025 ac_file_inputs=`IFS=:
18026 for f in $ac_file_in; do
18027 case $f in
18028 -) echo $tmp/stdin ;;
18029 [\\/$]*)
18030 # Absolute (can't be DOS-style, as IFS=:)
18031 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18032 echo "$as_me: error: cannot find input file: $f" >&2;}
18033 { (exit 1); exit 1; }; }
18034 # Do quote $f, to prevent DOS paths from being IFS'd.
18035 echo "$f";;
18036 *) # Relative
18037 if test -f "$f"; then
18038 # Build tree
18039 echo "$f"
18040 elif test -f "$srcdir/$f"; then
18041 # Source tree
18042 echo "$srcdir/$f"
18043 else
18044 # /dev/null tree
18045 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18046 echo "$as_me: error: cannot find input file: $f" >&2;}
18047 { (exit 1); exit 1; }; }
18048 fi;;
18049 esac
18050 done` || { (exit 1); exit 1; }
18051 # Remove the trailing spaces.
18052 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18054 _ACEOF
18056 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18057 # `conftest.undefs', that substitutes the proper values into
18058 # config.h.in to produce config.h. The first handles `#define'
18059 # templates, and the second `#undef' templates.
18060 # And first: Protect against being on the right side of a sed subst in
18061 # config.status. Protect against being in an unquoted here document
18062 # in config.status.
18063 rm -f conftest.defines conftest.undefs
18064 # Using a here document instead of a string reduces the quoting nightmare.
18065 # Putting comments in sed scripts is not portable.
18067 # `end' is used to avoid that the second main sed command (meant for
18068 # 0-ary CPP macros) applies to n-ary macro definitions.
18069 # See the Autoconf documentation for `clear'.
18070 cat >confdef2sed.sed <<\_ACEOF
18071 s/[\\&,]/\\&/g
18072 s,[\\$`],\\&,g
18073 t clear
18074 : clear
18075 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18076 t end
18077 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18078 : end
18079 _ACEOF
18080 # If some macros were called several times there might be several times
18081 # the same #defines, which is useless. Nevertheless, we may not want to
18082 # sort them, since we want the *last* AC-DEFINE to be honored.
18083 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18084 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18085 rm -f confdef2sed.sed
18087 # This sed command replaces #undef with comments. This is necessary, for
18088 # example, in the case of _POSIX_SOURCE, which is predefined and required
18089 # on some systems where configure will not decide to define it.
18090 cat >>conftest.undefs <<\_ACEOF
18091 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18092 _ACEOF
18094 # Break up conftest.defines because some shells have a limit on the size
18095 # of here documents, and old seds have small limits too (100 cmds).
18096 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18097 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18098 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18099 echo ' :' >>$CONFIG_STATUS
18100 rm -f conftest.tail
18101 while grep . conftest.defines >/dev/null
18103 # Write a limited-size here document to $tmp/defines.sed.
18104 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18105 # Speed up: don't consider the non `#define' lines.
18106 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18107 # Work around the forget-to-reset-the-flag bug.
18108 echo 't clr' >>$CONFIG_STATUS
18109 echo ': clr' >>$CONFIG_STATUS
18110 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18111 echo 'CEOF
18112 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18113 rm -f $tmp/in
18114 mv $tmp/out $tmp/in
18115 ' >>$CONFIG_STATUS
18116 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18117 rm -f conftest.defines
18118 mv conftest.tail conftest.defines
18119 done
18120 rm -f conftest.defines
18121 echo ' fi # grep' >>$CONFIG_STATUS
18122 echo >>$CONFIG_STATUS
18124 # Break up conftest.undefs because some shells have a limit on the size
18125 # of here documents, and old seds have small limits too (100 cmds).
18126 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18127 rm -f conftest.tail
18128 while grep . conftest.undefs >/dev/null
18130 # Write a limited-size here document to $tmp/undefs.sed.
18131 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18132 # Speed up: don't consider the non `#undef'
18133 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18134 # Work around the forget-to-reset-the-flag bug.
18135 echo 't clr' >>$CONFIG_STATUS
18136 echo ': clr' >>$CONFIG_STATUS
18137 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18138 echo 'CEOF
18139 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18140 rm -f $tmp/in
18141 mv $tmp/out $tmp/in
18142 ' >>$CONFIG_STATUS
18143 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18144 rm -f conftest.undefs
18145 mv conftest.tail conftest.undefs
18146 done
18147 rm -f conftest.undefs
18149 cat >>$CONFIG_STATUS <<\_ACEOF
18150 # Let's still pretend it is `configure' which instantiates (i.e., don't
18151 # use $as_me), people would be surprised to read:
18152 # /* config.h. Generated by config.status. */
18153 if test x"$ac_file" = x-; then
18154 echo "/* Generated by configure. */" >$tmp/config.h
18155 else
18156 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18158 cat $tmp/in >>$tmp/config.h
18159 rm -f $tmp/in
18160 if test x"$ac_file" != x-; then
18161 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18162 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18163 echo "$as_me: $ac_file is unchanged" >&6;}
18164 else
18165 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18166 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18167 X"$ac_file" : 'X\(//\)[^/]' \| \
18168 X"$ac_file" : 'X\(//\)$' \| \
18169 X"$ac_file" : 'X\(/\)' \| \
18170 . : '\(.\)' 2>/dev/null ||
18171 echo X"$ac_file" |
18172 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18173 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18174 /^X\(\/\/\)$/{ s//\1/; q; }
18175 /^X\(\/\).*/{ s//\1/; q; }
18176 s/.*/./; q'`
18177 { if $as_mkdir_p; then
18178 mkdir -p "$ac_dir"
18179 else
18180 as_dir="$ac_dir"
18181 as_dirs=
18182 while test ! -d "$as_dir"; do
18183 as_dirs="$as_dir $as_dirs"
18184 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18185 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18186 X"$as_dir" : 'X\(//\)[^/]' \| \
18187 X"$as_dir" : 'X\(//\)$' \| \
18188 X"$as_dir" : 'X\(/\)' \| \
18189 . : '\(.\)' 2>/dev/null ||
18190 echo X"$as_dir" |
18191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18192 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18193 /^X\(\/\/\)$/{ s//\1/; q; }
18194 /^X\(\/\).*/{ s//\1/; q; }
18195 s/.*/./; q'`
18196 done
18197 test ! -n "$as_dirs" || mkdir $as_dirs
18198 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18199 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18200 { (exit 1); exit 1; }; }; }
18202 rm -f $ac_file
18203 mv $tmp/config.h $ac_file
18205 else
18206 cat $tmp/config.h
18207 rm -f $tmp/config.h
18209 # Compute $ac_file's index in $config_headers.
18210 _am_stamp_count=1
18211 for _am_header in $config_headers :; do
18212 case $_am_header in
18213 $ac_file | $ac_file:* )
18214 break ;;
18216 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18217 esac
18218 done
18219 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
18220 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18221 X$ac_file : 'X\(//\)[^/]' \| \
18222 X$ac_file : 'X\(//\)$' \| \
18223 X$ac_file : 'X\(/\)' \| \
18224 . : '\(.\)' 2>/dev/null ||
18225 echo X$ac_file |
18226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18227 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18228 /^X\(\/\/\)$/{ s//\1/; q; }
18229 /^X\(\/\).*/{ s//\1/; q; }
18230 s/.*/./; q'`/stamp-h$_am_stamp_count
18231 done
18232 _ACEOF
18233 cat >>$CONFIG_STATUS <<\_ACEOF
18236 # CONFIG_LINKS section.
18239 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18240 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18241 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18243 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18244 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18246 if test ! -r $srcdir/$ac_source; then
18247 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18248 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18249 { (exit 1); exit 1; }; }
18251 rm -f $ac_dest
18253 # Make relative symlinks.
18254 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18255 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18256 X"$ac_dest" : 'X\(//\)[^/]' \| \
18257 X"$ac_dest" : 'X\(//\)$' \| \
18258 X"$ac_dest" : 'X\(/\)' \| \
18259 . : '\(.\)' 2>/dev/null ||
18260 echo X"$ac_dest" |
18261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18262 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18263 /^X\(\/\/\)$/{ s//\1/; q; }
18264 /^X\(\/\).*/{ s//\1/; q; }
18265 s/.*/./; q'`
18266 { if $as_mkdir_p; then
18267 mkdir -p "$ac_dest_dir"
18268 else
18269 as_dir="$ac_dest_dir"
18270 as_dirs=
18271 while test ! -d "$as_dir"; do
18272 as_dirs="$as_dir $as_dirs"
18273 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18274 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18275 X"$as_dir" : 'X\(//\)[^/]' \| \
18276 X"$as_dir" : 'X\(//\)$' \| \
18277 X"$as_dir" : 'X\(/\)' \| \
18278 . : '\(.\)' 2>/dev/null ||
18279 echo X"$as_dir" |
18280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18281 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18282 /^X\(\/\/\)$/{ s//\1/; q; }
18283 /^X\(\/\).*/{ s//\1/; q; }
18284 s/.*/./; q'`
18285 done
18286 test ! -n "$as_dirs" || mkdir $as_dirs
18287 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
18288 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
18289 { (exit 1); exit 1; }; }; }
18291 ac_builddir=.
18293 if test "$ac_dest_dir" != .; then
18294 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18295 # A "../" for each directory in $ac_dir_suffix.
18296 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18297 else
18298 ac_dir_suffix= ac_top_builddir=
18301 case $srcdir in
18302 .) # No --srcdir option. We are building in place.
18303 ac_srcdir=.
18304 if test -z "$ac_top_builddir"; then
18305 ac_top_srcdir=.
18306 else
18307 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18308 fi ;;
18309 [\\/]* | ?:[\\/]* ) # Absolute path.
18310 ac_srcdir=$srcdir$ac_dir_suffix;
18311 ac_top_srcdir=$srcdir ;;
18312 *) # Relative path.
18313 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18314 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18315 esac
18317 # Do not use `cd foo && pwd` to compute absolute paths, because
18318 # the directories may not exist.
18319 case `pwd` in
18320 .) ac_abs_builddir="$ac_dest_dir";;
18322 case "$ac_dest_dir" in
18323 .) ac_abs_builddir=`pwd`;;
18324 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
18325 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
18326 esac;;
18327 esac
18328 case $ac_abs_builddir in
18329 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18331 case ${ac_top_builddir}. in
18332 .) ac_abs_top_builddir=$ac_abs_builddir;;
18333 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18334 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18335 esac;;
18336 esac
18337 case $ac_abs_builddir in
18338 .) ac_abs_srcdir=$ac_srcdir;;
18340 case $ac_srcdir in
18341 .) ac_abs_srcdir=$ac_abs_builddir;;
18342 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18343 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18344 esac;;
18345 esac
18346 case $ac_abs_builddir in
18347 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18349 case $ac_top_srcdir in
18350 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18351 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18352 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18353 esac;;
18354 esac
18357 case $srcdir in
18358 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18359 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18360 esac
18362 # Try a symlink, then a hard link, then a copy.
18363 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18364 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
18365 cp -p $srcdir/$ac_source $ac_dest ||
18366 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
18367 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
18368 { (exit 1); exit 1; }; }
18369 done
18370 _ACEOF
18371 cat >>$CONFIG_STATUS <<\_ACEOF
18374 # CONFIG_COMMANDS section.
18376 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18377 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18378 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18379 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18380 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18381 X"$ac_dest" : 'X\(//\)[^/]' \| \
18382 X"$ac_dest" : 'X\(//\)$' \| \
18383 X"$ac_dest" : 'X\(/\)' \| \
18384 . : '\(.\)' 2>/dev/null ||
18385 echo X"$ac_dest" |
18386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18387 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18388 /^X\(\/\/\)$/{ s//\1/; q; }
18389 /^X\(\/\).*/{ s//\1/; q; }
18390 s/.*/./; q'`
18391 { if $as_mkdir_p; then
18392 mkdir -p "$ac_dir"
18393 else
18394 as_dir="$ac_dir"
18395 as_dirs=
18396 while test ! -d "$as_dir"; do
18397 as_dirs="$as_dir $as_dirs"
18398 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18399 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18400 X"$as_dir" : 'X\(//\)[^/]' \| \
18401 X"$as_dir" : 'X\(//\)$' \| \
18402 X"$as_dir" : 'X\(/\)' \| \
18403 . : '\(.\)' 2>/dev/null ||
18404 echo X"$as_dir" |
18405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18406 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18407 /^X\(\/\/\)$/{ s//\1/; q; }
18408 /^X\(\/\).*/{ s//\1/; q; }
18409 s/.*/./; q'`
18410 done
18411 test ! -n "$as_dirs" || mkdir $as_dirs
18412 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18413 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18414 { (exit 1); exit 1; }; }; }
18416 ac_builddir=.
18418 if test "$ac_dir" != .; then
18419 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18420 # A "../" for each directory in $ac_dir_suffix.
18421 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18422 else
18423 ac_dir_suffix= ac_top_builddir=
18426 case $srcdir in
18427 .) # No --srcdir option. We are building in place.
18428 ac_srcdir=.
18429 if test -z "$ac_top_builddir"; then
18430 ac_top_srcdir=.
18431 else
18432 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18433 fi ;;
18434 [\\/]* | ?:[\\/]* ) # Absolute path.
18435 ac_srcdir=$srcdir$ac_dir_suffix;
18436 ac_top_srcdir=$srcdir ;;
18437 *) # Relative path.
18438 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18439 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18440 esac
18442 # Do not use `cd foo && pwd` to compute absolute paths, because
18443 # the directories may not exist.
18444 case `pwd` in
18445 .) ac_abs_builddir="$ac_dir";;
18447 case "$ac_dir" in
18448 .) ac_abs_builddir=`pwd`;;
18449 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18450 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18451 esac;;
18452 esac
18453 case $ac_abs_builddir in
18454 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18456 case ${ac_top_builddir}. in
18457 .) ac_abs_top_builddir=$ac_abs_builddir;;
18458 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18459 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18460 esac;;
18461 esac
18462 case $ac_abs_builddir in
18463 .) ac_abs_srcdir=$ac_srcdir;;
18465 case $ac_srcdir in
18466 .) ac_abs_srcdir=$ac_abs_builddir;;
18467 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18468 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18469 esac;;
18470 esac
18471 case $ac_abs_builddir in
18472 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18474 case $ac_top_srcdir in
18475 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18476 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18477 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18478 esac;;
18479 esac
18482 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18483 echo "$as_me: executing $ac_dest commands" >&6;}
18484 case $ac_dest in
18485 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18486 # Strip MF so we end up with the name of the file.
18487 mf=`echo "$mf" | sed -e 's/:.*$//'`
18488 # Check whether this is an Automake generated Makefile or not.
18489 # We used to match only the files named `Makefile.in', but
18490 # some people rename them; so instead we look at the file content.
18491 # Grep'ing the first line is not enough: some people post-process
18492 # each Makefile.in and add a new line on top of each file to say so.
18493 # So let's grep whole file.
18494 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18495 dirpart=`(dirname "$mf") 2>/dev/null ||
18496 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18497 X"$mf" : 'X\(//\)[^/]' \| \
18498 X"$mf" : 'X\(//\)$' \| \
18499 X"$mf" : 'X\(/\)' \| \
18500 . : '\(.\)' 2>/dev/null ||
18501 echo X"$mf" |
18502 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18503 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18504 /^X\(\/\/\)$/{ s//\1/; q; }
18505 /^X\(\/\).*/{ s//\1/; q; }
18506 s/.*/./; q'`
18507 else
18508 continue
18510 # Extract the definition of DEPDIR, am__include, and am__quote
18511 # from the Makefile without running `make'.
18512 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18513 test -z "$DEPDIR" && continue
18514 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18515 test -z "am__include" && continue
18516 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18517 # When using ansi2knr, U may be empty or an underscore; expand it
18518 U=`sed -n 's/^U = //p' < "$mf"`
18519 # Find all dependency output files, they are included files with
18520 # $(DEPDIR) in their names. We invoke sed twice because it is the
18521 # simplest approach to changing $(DEPDIR) to its actual value in the
18522 # expansion.
18523 for file in `sed -n "
18524 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18525 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18526 # Make sure the directory exists.
18527 test -f "$dirpart/$file" && continue
18528 fdir=`(dirname "$file") 2>/dev/null ||
18529 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18530 X"$file" : 'X\(//\)[^/]' \| \
18531 X"$file" : 'X\(//\)$' \| \
18532 X"$file" : 'X\(/\)' \| \
18533 . : '\(.\)' 2>/dev/null ||
18534 echo X"$file" |
18535 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18536 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18537 /^X\(\/\/\)$/{ s//\1/; q; }
18538 /^X\(\/\).*/{ s//\1/; q; }
18539 s/.*/./; q'`
18540 { if $as_mkdir_p; then
18541 mkdir -p $dirpart/$fdir
18542 else
18543 as_dir=$dirpart/$fdir
18544 as_dirs=
18545 while test ! -d "$as_dir"; do
18546 as_dirs="$as_dir $as_dirs"
18547 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18548 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18549 X"$as_dir" : 'X\(//\)[^/]' \| \
18550 X"$as_dir" : 'X\(//\)$' \| \
18551 X"$as_dir" : 'X\(/\)' \| \
18552 . : '\(.\)' 2>/dev/null ||
18553 echo X"$as_dir" |
18554 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18555 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18556 /^X\(\/\/\)$/{ s//\1/; q; }
18557 /^X\(\/\).*/{ s//\1/; q; }
18558 s/.*/./; q'`
18559 done
18560 test ! -n "$as_dirs" || mkdir $as_dirs
18561 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18562 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18563 { (exit 1); exit 1; }; }; }
18565 # echo "creating $dirpart/$file"
18566 echo '# dummy' > "$dirpart/$file"
18567 done
18568 done
18570 default ) # Only add multilib support code if we just rebuilt top-level Makefile.
18571 case " $CONFIG_FILES " in
18572 *" Makefile "*)
18573 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
18574 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
18576 esac
18577 for ac_multi_file in $CONFIG_FILES; do
18578 case $ac_multi_file in
18579 */Makefile)
18580 grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;;
18581 esac
18582 done
18584 esac
18585 done
18586 _ACEOF
18588 cat >>$CONFIG_STATUS <<\_ACEOF
18590 { (exit 0); exit 0; }
18591 _ACEOF
18592 chmod +x $CONFIG_STATUS
18593 ac_clean_files=$ac_clean_files_save
18596 # configure is writing to config.log, and then calls config.status.
18597 # config.status does its own redirection, appending to config.log.
18598 # Unfortunately, on DOS this fails, as config.log is still kept open
18599 # by configure, so config.status won't be able to write to it; its
18600 # output is simply discarded. So we exec the FD to /dev/null,
18601 # effectively closing config.log, so it can be properly (re)opened and
18602 # appended to by config.status. When coming back to configure, we
18603 # need to make the FD available again.
18604 if test "$no_create" != yes; then
18605 ac_cs_success=:
18606 ac_config_status_args=
18607 test "$silent" = yes &&
18608 ac_config_status_args="$ac_config_status_args --quiet"
18609 exec 5>/dev/null
18610 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18611 exec 5>>config.log
18612 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18613 # would make configure fail if this is the last instruction.
18614 $ac_cs_success || { (exit 1); exit 1; }
18618 # CONFIG_SUBDIRS section.
18620 if test "$no_recursion" != yes; then
18622 # Remove --cache-file and --srcdir arguments so they do not pile up.
18623 ac_sub_configure_args=
18624 ac_prev=
18625 for ac_arg in $ac_configure_args; do
18626 if test -n "$ac_prev"; then
18627 ac_prev=
18628 continue
18630 case $ac_arg in
18631 -cache-file | --cache-file | --cache-fil | --cache-fi \
18632 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18633 ac_prev=cache_file ;;
18634 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18635 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18636 | --c=*)
18638 --config-cache | -C)
18640 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18641 ac_prev=srcdir ;;
18642 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18644 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18645 ac_prev=prefix ;;
18646 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18648 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18649 esac
18650 done
18652 # Always prepend --prefix to ensure using the same prefix
18653 # in subdir configurations.
18654 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
18656 ac_popdir=`pwd`
18657 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18659 # Do not complain, so a configure script can configure whichever
18660 # parts of a large source tree are present.
18661 test -d $srcdir/$ac_dir || continue
18663 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
18664 echo "$as_me: configuring in $ac_dir" >&6;}
18665 { if $as_mkdir_p; then
18666 mkdir -p "$ac_dir"
18667 else
18668 as_dir="$ac_dir"
18669 as_dirs=
18670 while test ! -d "$as_dir"; do
18671 as_dirs="$as_dir $as_dirs"
18672 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18673 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18674 X"$as_dir" : 'X\(//\)[^/]' \| \
18675 X"$as_dir" : 'X\(//\)$' \| \
18676 X"$as_dir" : 'X\(/\)' \| \
18677 . : '\(.\)' 2>/dev/null ||
18678 echo X"$as_dir" |
18679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18681 /^X\(\/\/\)$/{ s//\1/; q; }
18682 /^X\(\/\).*/{ s//\1/; q; }
18683 s/.*/./; q'`
18684 done
18685 test ! -n "$as_dirs" || mkdir $as_dirs
18686 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18687 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18688 { (exit 1); exit 1; }; }; }
18690 ac_builddir=.
18692 if test "$ac_dir" != .; then
18693 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18694 # A "../" for each directory in $ac_dir_suffix.
18695 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18696 else
18697 ac_dir_suffix= ac_top_builddir=
18700 case $srcdir in
18701 .) # No --srcdir option. We are building in place.
18702 ac_srcdir=.
18703 if test -z "$ac_top_builddir"; then
18704 ac_top_srcdir=.
18705 else
18706 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18707 fi ;;
18708 [\\/]* | ?:[\\/]* ) # Absolute path.
18709 ac_srcdir=$srcdir$ac_dir_suffix;
18710 ac_top_srcdir=$srcdir ;;
18711 *) # Relative path.
18712 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18713 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18714 esac
18716 # Do not use `cd foo && pwd` to compute absolute paths, because
18717 # the directories may not exist.
18718 case `pwd` in
18719 .) ac_abs_builddir="$ac_dir";;
18721 case "$ac_dir" in
18722 .) ac_abs_builddir=`pwd`;;
18723 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18724 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18725 esac;;
18726 esac
18727 case $ac_abs_builddir in
18728 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18730 case ${ac_top_builddir}. in
18731 .) ac_abs_top_builddir=$ac_abs_builddir;;
18732 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18733 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18734 esac;;
18735 esac
18736 case $ac_abs_builddir in
18737 .) ac_abs_srcdir=$ac_srcdir;;
18739 case $ac_srcdir in
18740 .) ac_abs_srcdir=$ac_abs_builddir;;
18741 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18742 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18743 esac;;
18744 esac
18745 case $ac_abs_builddir in
18746 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18748 case $ac_top_srcdir in
18749 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18750 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18751 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18752 esac;;
18753 esac
18756 cd $ac_dir
18758 # Check for guested configure; otherwise get Cygnus style configure.
18759 if test -f $ac_srcdir/configure.gnu; then
18760 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
18761 elif test -f $ac_srcdir/configure; then
18762 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
18763 elif test -f $ac_srcdir/configure.in; then
18764 ac_sub_configure=$ac_configure
18765 else
18766 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
18767 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18768 ac_sub_configure=
18771 # The recursion is here.
18772 if test -n "$ac_sub_configure"; then
18773 # Make the cache file name correct relative to the subdirectory.
18774 case $cache_file in
18775 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18776 *) # Relative path.
18777 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
18778 esac
18780 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
18781 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18782 # The eval makes quoting arguments work.
18783 eval $ac_sub_configure $ac_sub_configure_args \
18784 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
18785 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
18786 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
18787 { (exit 1); exit 1; }; }
18790 cd $ac_popdir
18791 done